motion-v 0.4.0 → 0.5.0-beta.1
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 +287 -96
- package/dist/es/animation/use-animate.mjs +1 -1
- package/dist/es/components/AnimatePresence.vue.mjs +13 -2
- package/dist/es/components/LayoutGroup.vue.mjs +3 -23
- package/dist/es/components/Motion.vue.mjs +16 -15
- package/dist/es/components/presence.mjs +5 -2
- package/dist/es/components/use-layout-group.mjs +34 -0
- package/dist/es/components/use-pop-layout.mjs +47 -0
- package/dist/es/components/utils.mjs +8 -0
- package/dist/es/constants/index.mjs +1 -1
- package/dist/es/features/gestures/hover.mjs +4 -0
- package/dist/es/features/gestures/in-view.mjs +5 -1
- package/dist/es/features/layout/config.mjs +2 -2
- package/dist/es/features/layout/layout.mjs +10 -7
- package/dist/es/features/svg.mjs +1 -1
- package/dist/es/index.mjs +30 -30
- package/dist/es/state/animate-variants-children.mjs +72 -0
- package/dist/es/state/create-visual-element.mjs +2 -2
- package/dist/es/state/motion-state.mjs +70 -23
- package/dist/es/state/schedule.mjs +1 -1
- package/dist/es/utils/use-animation-frame.mjs +1 -1
- package/dist/es/utils/use-in-view.mjs +1 -1
- package/dist/es/value/use-combine-values.mjs +2 -2
- package/dist/es/value/use-computed.mjs +1 -1
- package/dist/es/value/use-scroll.mjs +3 -3
- package/dist/es/value/use-spring.mjs +3 -3
- package/dist/es/value/use-time.mjs +1 -1
- package/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/value/use-velocity.mjs +2 -2
- package/dist/src/components/AnimatePresence.d.ts +2 -7
- package/dist/src/components/LayoutGroup.d.ts +1 -5
- package/dist/src/components/Motion.d.ts +1 -3
- package/dist/src/components/presence.d.ts +2 -1
- package/dist/src/components/type.d.ts +5 -24
- package/dist/src/components/use-layout-group.d.ts +20 -0
- package/dist/src/components/use-pop-layout.d.ts +6 -0
- package/dist/src/components/utils.d.ts +1 -0
- package/dist/src/features/layout/types.d.ts +1 -1
- package/dist/src/index.d.ts +5 -3
- package/dist/src/state/animate-variants-children.d.ts +15 -0
- package/dist/src/state/motion-state.d.ts +7 -7
- package/dist/src/types/state.d.ts +11 -2
- package/package.json +1 -1
- /package/dist/es/{node_modules/.pnpm/@vueuse_shared@12.0.0_typescript@5.5.4/node_modules → external/.pnpm/@vueuse_shared@12.0.0_typescript@5.7.2/external}/@vueuse/shared/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animate/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animate/single-value.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animate/subject.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/easing.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/attach-timeline.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/linear.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/spring/find.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/spring/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/utils/is-generator.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/generators/utils/velocity.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/interfaces/motion-value.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/sequence/create.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/sequence/utils/edit.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/get-value-transition.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/back.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/cubic-bezier.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/steps.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/easing/utils/map.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/frameloop/batcher.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/frameloop/frame.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/frameloop/microtask.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/frameloop/sync-time.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/animation/mix-values.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/node/create-projection-node.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/node/state.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/shared/stack.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/VisualElement.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/resize/handle-element.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/info.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/observe.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/supports.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/scroll/track.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/dom/viewport/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/html/utils/transform.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/flat-tree.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/motion-values.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/setters.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/array.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/clamp.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/delay.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/errors.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/interpolate.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/memo.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/mix/color.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/mix/complex.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/noop.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/offsets/fill.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/pipe.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/progress.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/subscription-manager.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/time-conversion.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/velocity-per-second.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/warn-once.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/utils/wrap.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/framer-motion@11.11.11/node_modules → external/.pnpm/framer-motion@11.11.11/external}/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
- /package/dist/es/{node_modules/.pnpm/hey-listen@1.0.8/node_modules → external/.pnpm/hey-listen@1.0.8/external}/hey-listen/dist/hey-listen.es.mjs +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
3
|
-
import { nodeGroup } from "./group.mjs";
|
|
4
|
-
import { useForceUpdate } from "./use-force-update.mjs";
|
|
1
|
+
import { defineComponent, renderSlot } from "vue";
|
|
2
|
+
import { useLayoutGroup } from "./use-layout-group.mjs";
|
|
5
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
4
|
__name: "LayoutGroup",
|
|
7
5
|
props: {
|
|
@@ -10,25 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
8
|
},
|
|
11
9
|
setup(__props) {
|
|
12
10
|
const props = __props;
|
|
13
|
-
|
|
14
|
-
const [forceRender, key] = useForceUpdate();
|
|
15
|
-
function generateId() {
|
|
16
|
-
const upstreamId = layoutGroup == null ? void 0 : layoutGroup.id;
|
|
17
|
-
return shouldInheritId(props.inherit) && upstreamId ? props.id ? `${upstreamId}-${props.id}` : upstreamId : props.id;
|
|
18
|
-
}
|
|
19
|
-
function generateGroup() {
|
|
20
|
-
return shouldInheritGroup(props.inherit) ? (layoutGroup == null ? void 0 : layoutGroup.group) || nodeGroup() : nodeGroup();
|
|
21
|
-
}
|
|
22
|
-
const memoizedContext = {
|
|
23
|
-
id: generateId(),
|
|
24
|
-
group: generateGroup(),
|
|
25
|
-
forceRender,
|
|
26
|
-
key
|
|
27
|
-
};
|
|
28
|
-
watch(key, () => {
|
|
29
|
-
memoizedContext.id = generateId();
|
|
30
|
-
});
|
|
31
|
-
provideLayoutGroup(memoizedContext);
|
|
11
|
+
useLayoutGroup(props);
|
|
32
12
|
return (_ctx, _cache) => {
|
|
33
13
|
return renderSlot(_ctx.$slots, "default");
|
|
34
14
|
};
|
|
@@ -3,8 +3,8 @@ import { injectMotion, injectLayoutGroup, provideMotion } from "./context.mjs";
|
|
|
3
3
|
import { convertSvgStyleToAttributes, createStyles } from "../state/style.mjs";
|
|
4
4
|
import { Primitive } from "./Primitive.mjs";
|
|
5
5
|
import { MotionState } from "../state/motion-state.mjs";
|
|
6
|
-
import { isSVGElement } from "../state/utils.mjs";
|
|
7
6
|
import { injectAnimatePresence } from "./presence.mjs";
|
|
7
|
+
import { getMotionElement } from "./utils.mjs";
|
|
8
8
|
import { isMotionValue } from "../utils/motion-value.mjs";
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
...{
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
onPressEnd: { type: Function },
|
|
36
36
|
onViewEnter: { type: Function },
|
|
37
37
|
onViewLeave: { type: Function },
|
|
38
|
-
layout: { type: Boolean },
|
|
38
|
+
layout: { type: [Boolean, String] },
|
|
39
39
|
layoutId: {},
|
|
40
40
|
layoutScroll: { type: Boolean },
|
|
41
41
|
layoutRoot: { type: Boolean },
|
|
@@ -66,16 +66,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
parentState
|
|
67
67
|
);
|
|
68
68
|
provideMotion(state);
|
|
69
|
-
const instance = getCurrentInstance();
|
|
69
|
+
const instance = getCurrentInstance().proxy;
|
|
70
70
|
onMounted(() => {
|
|
71
|
-
state.mount(instance
|
|
72
|
-
state.update({
|
|
71
|
+
state.mount(getMotionElement(instance.$el), {
|
|
73
72
|
...attrs,
|
|
74
|
-
...props
|
|
73
|
+
...props,
|
|
74
|
+
initial: presenceInitial.value === false ? presenceInitial.value : props.initial === true ? void 0 : props.initial
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
onUnmounted(() => {
|
|
78
|
-
if (safeUnmount(instance
|
|
78
|
+
if (safeUnmount(getMotionElement(instance.$el)))
|
|
79
79
|
state.unmount();
|
|
80
80
|
});
|
|
81
81
|
onUpdated(() => {
|
|
@@ -86,22 +86,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
function getProps() {
|
|
89
|
+
const isSVG = state.visualElement.type === "svg";
|
|
89
90
|
const attrsProps = { ...attrs };
|
|
90
91
|
Object.keys(attrs).forEach((key) => {
|
|
91
92
|
if (isMotionValue(attrs[key]))
|
|
92
93
|
attrsProps[key] = attrs[key].get();
|
|
93
94
|
});
|
|
94
95
|
let styleProps = {
|
|
95
|
-
...props.style
|
|
96
|
+
...props.style,
|
|
97
|
+
...isSVG ? {} : state.visualElement.latestValues
|
|
96
98
|
};
|
|
99
|
+
if (isSVG) {
|
|
100
|
+
const { attributes, style } = convertSvgStyleToAttributes(state.target);
|
|
101
|
+
Object.assign(attrsProps, attributes);
|
|
102
|
+
Object.assign(styleProps, style, props.style);
|
|
103
|
+
}
|
|
97
104
|
if (!state.isMounted()) {
|
|
98
|
-
|
|
99
|
-
const { attributes, style } = convertSvgStyleToAttributes(state.getTarget());
|
|
100
|
-
Object.assign(attrsProps, attributes);
|
|
101
|
-
Object.assign(styleProps, style, props.style);
|
|
102
|
-
} else {
|
|
103
|
-
Object.assign(styleProps, state.getTarget(), props.style);
|
|
104
|
-
}
|
|
105
|
+
Object.assign(styleProps, state.target, props.style);
|
|
105
106
|
}
|
|
106
107
|
styleProps = createStyles(styleProps);
|
|
107
108
|
attrsProps.style = styleProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
1
2
|
import { createContext } from "../utils/createContext.mjs";
|
|
2
|
-
const doneCallbacks = /* @__PURE__ */ new
|
|
3
|
+
const doneCallbacks = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
const unPresenceDom = ref(/* @__PURE__ */ new WeakMap());
|
|
3
5
|
function removeDoneCallback(element) {
|
|
4
6
|
const prevDoneCallback = doneCallbacks.get(element);
|
|
5
7
|
if (prevDoneCallback) {
|
|
@@ -12,5 +14,6 @@ export {
|
|
|
12
14
|
doneCallbacks,
|
|
13
15
|
injectAnimatePresence,
|
|
14
16
|
provideAnimatePresence,
|
|
15
|
-
removeDoneCallback
|
|
17
|
+
removeDoneCallback,
|
|
18
|
+
unPresenceDom
|
|
16
19
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { watch } from "vue";
|
|
2
|
+
import { injectLayoutGroup, provideLayoutGroup } from "./context.mjs";
|
|
3
|
+
import { useForceUpdate } from "./use-force-update.mjs";
|
|
4
|
+
import { nodeGroup } from "./group.mjs";
|
|
5
|
+
function useLayoutGroup(props) {
|
|
6
|
+
const parentGroup = injectLayoutGroup(null);
|
|
7
|
+
const [forceRender, key] = useForceUpdate();
|
|
8
|
+
const context = {
|
|
9
|
+
id: getGroupId(props, parentGroup),
|
|
10
|
+
group: getGroup(props, parentGroup),
|
|
11
|
+
forceRender,
|
|
12
|
+
key
|
|
13
|
+
};
|
|
14
|
+
watch(key, () => {
|
|
15
|
+
context.id = getGroupId(props, parentGroup);
|
|
16
|
+
});
|
|
17
|
+
provideLayoutGroup(context);
|
|
18
|
+
return context;
|
|
19
|
+
}
|
|
20
|
+
function getGroupId(props, parentGroup) {
|
|
21
|
+
const shouldInherit = props.inherit === true || props.inherit === "id";
|
|
22
|
+
const parentId = parentGroup == null ? void 0 : parentGroup.id;
|
|
23
|
+
if (shouldInherit && parentId) {
|
|
24
|
+
return props.id ? `${parentId}-${props.id}` : parentId;
|
|
25
|
+
}
|
|
26
|
+
return props.id;
|
|
27
|
+
}
|
|
28
|
+
function getGroup(props, parentGroup) {
|
|
29
|
+
const shouldInherit = props.inherit === true || props.inherit === "group";
|
|
30
|
+
return shouldInherit ? (parentGroup == null ? void 0 : parentGroup.group) || nodeGroup() : nodeGroup();
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
useLayoutGroup
|
|
34
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function usePopLayout(props) {
|
|
2
|
+
const styles = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function addPopStyle(state) {
|
|
4
|
+
if (props.mode !== "popLayout")
|
|
5
|
+
return;
|
|
6
|
+
const size = {
|
|
7
|
+
height: state.element.offsetHeight || 0,
|
|
8
|
+
width: state.element.offsetWidth || 0,
|
|
9
|
+
top: state.element.offsetTop,
|
|
10
|
+
left: state.element.offsetLeft
|
|
11
|
+
};
|
|
12
|
+
state.element.dataset.motionPopId = state.id;
|
|
13
|
+
const style = document.createElement("style");
|
|
14
|
+
styles.set(state, style);
|
|
15
|
+
document.head.appendChild(style);
|
|
16
|
+
style.textContent = `
|
|
17
|
+
[data-motion-pop-id="${state.id}"] {
|
|
18
|
+
animation: pop 0.3s ease-in-out;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
if (style.sheet) {
|
|
22
|
+
style.sheet.insertRule(`
|
|
23
|
+
[data-motion-pop-id="${state.id}"] {
|
|
24
|
+
position: absolute !important;
|
|
25
|
+
width: ${size.width}px !important;
|
|
26
|
+
height: ${size.height}px !important;
|
|
27
|
+
top: ${size.top}px !important;
|
|
28
|
+
left: ${size.left}px !important;
|
|
29
|
+
}
|
|
30
|
+
`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function removePopStyle(state) {
|
|
34
|
+
const style = styles.get(state);
|
|
35
|
+
if (style) {
|
|
36
|
+
styles.delete(state);
|
|
37
|
+
document.head.removeChild(style);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
addPopStyle,
|
|
42
|
+
removePopStyle
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
usePopLayout
|
|
47
|
+
};
|
|
@@ -20,7 +20,11 @@ class HoverGesture extends BaseGesture {
|
|
|
20
20
|
this.state.setActive("hover", true);
|
|
21
21
|
});
|
|
22
22
|
const onLeave = mouseEvent(element, "hoverend", () => {
|
|
23
|
+
var _a;
|
|
23
24
|
this.state.setActive("hover", false);
|
|
25
|
+
(_a = this.state.visualElement.variantChildren) == null ? void 0 : _a.forEach((child) => {
|
|
26
|
+
child.state.setActive("hover", false);
|
|
27
|
+
});
|
|
24
28
|
});
|
|
25
29
|
element.addEventListener("pointerenter", onEnter);
|
|
26
30
|
element.addEventListener("pointerleave", onLeave);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dispatchPointerEvent } from "../../utils/events.mjs";
|
|
2
|
-
import { inView } from "../../
|
|
2
|
+
import { inView } from "../../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
3
3
|
import { BaseGesture } from "./base.mjs";
|
|
4
4
|
class InViewGesture extends BaseGesture {
|
|
5
5
|
isActive() {
|
|
@@ -12,7 +12,11 @@ class InViewGesture extends BaseGesture {
|
|
|
12
12
|
const element = this.state.element;
|
|
13
13
|
const { once, ...viewOptions } = ((_a = this.state.getOptions()) == null ? void 0 : _a.inViewOptions) || {};
|
|
14
14
|
return inView(element, (enterEntry) => {
|
|
15
|
+
var _a2;
|
|
15
16
|
this.state.setActive("inView", true);
|
|
17
|
+
(_a2 = this.state.visualElement.variantChildren) == null ? void 0 : _a2.forEach((child) => {
|
|
18
|
+
child.state.setActive("inView", true);
|
|
19
|
+
});
|
|
16
20
|
dispatchPointerEvent(element, "viewenter", enterEntry);
|
|
17
21
|
if (!once) {
|
|
18
22
|
return (leaveEntry) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { correctBorderRadius } from "../../
|
|
2
|
-
import { correctBoxShadow } from "../../
|
|
1
|
+
import { correctBorderRadius } from "../../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs";
|
|
2
|
+
import { correctBoxShadow } from "../../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs";
|
|
3
3
|
const defaultScaleCorrector = {
|
|
4
4
|
borderRadius: {
|
|
5
5
|
...correctBorderRadius,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Feature } from "../feature.mjs";
|
|
2
|
-
import { HTMLProjectionNode } from "../../
|
|
2
|
+
import { HTMLProjectionNode } from "../../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs";
|
|
3
3
|
import { getClosestProjectingNode } from "./utils.mjs";
|
|
4
4
|
import { onBeforeMount, onBeforeUpdate, onUpdated, onBeforeUnmount } from "vue";
|
|
5
|
-
import { addScaleCorrector } from "../../
|
|
5
|
+
import { addScaleCorrector } from "../../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/styles/scale-correction.mjs";
|
|
6
6
|
import { defaultScaleCorrector } from "./config.mjs";
|
|
7
|
-
import { globalProjectionState } from "../../
|
|
7
|
+
import { globalProjectionState } from "../../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/node/state.mjs";
|
|
8
8
|
import { injectLayoutGroup } from "../../components/context.mjs";
|
|
9
9
|
class LayoutFeature extends Feature {
|
|
10
10
|
constructor(state) {
|
|
@@ -40,11 +40,8 @@ class LayoutFeature extends Feature {
|
|
|
40
40
|
(_a = visualElement.projection) == null ? void 0 : _a.root.didUpdate();
|
|
41
41
|
});
|
|
42
42
|
onBeforeUnmount(() => {
|
|
43
|
-
var _a;
|
|
44
43
|
if (visualElement.projection) {
|
|
45
|
-
visualElement.projection.
|
|
46
|
-
if ((_a = this.layoutGroup) == null ? void 0 : _a.group)
|
|
47
|
-
this.layoutGroup.group.remove(visualElement.projection);
|
|
44
|
+
visualElement.projection.willUpdate();
|
|
48
45
|
}
|
|
49
46
|
});
|
|
50
47
|
}
|
|
@@ -67,6 +64,12 @@ class LayoutFeature extends Feature {
|
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
unmount() {
|
|
67
|
+
var _a;
|
|
68
|
+
if (this.state.visualElement.projection) {
|
|
69
|
+
this.state.visualElement.projection.unmount();
|
|
70
|
+
if ((_a = this.layoutGroup) == null ? void 0 : _a.group)
|
|
71
|
+
this.layoutGroup.group.remove(this.state.visualElement.projection);
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
export {
|
package/dist/es/features/svg.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feature } from "./feature.mjs";
|
|
2
|
-
import { frame } from "../
|
|
2
|
+
import { frame } from "../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
3
3
|
function isSVGElement(element) {
|
|
4
4
|
return element instanceof SVGElement && element.tagName !== "svg";
|
|
5
5
|
}
|
package/dist/es/index.mjs
CHANGED
|
@@ -3,36 +3,36 @@ import { default as default3 } from "./components/AnimatePresence.vue.mjs";
|
|
|
3
3
|
import { default as default4 } from "./components/LayoutGroup.vue.mjs";
|
|
4
4
|
import { injectLayoutGroup, injectMotion, provideLayoutGroup, provideMotion, shouldInheritGroup, shouldInheritId } from "./components/context.mjs";
|
|
5
5
|
import { components, utilities } from "./constants/index.mjs";
|
|
6
|
-
import { MotionValue, motionValue, motionValue as motionValue2 } from "./
|
|
7
|
-
import { animate, createScopedAnimate } from "./
|
|
8
|
-
import { animateMini } from "./
|
|
9
|
-
import { scroll } from "./
|
|
10
|
-
import { scrollInfo } from "./
|
|
11
|
-
import { inView } from "./
|
|
12
|
-
import { anticipate } from "./
|
|
13
|
-
import { backIn, backInOut, backOut } from "./
|
|
14
|
-
import { circIn, circInOut, circOut } from "./
|
|
15
|
-
import { easeIn, easeInOut, easeOut } from "./
|
|
16
|
-
import { cubicBezier } from "./
|
|
17
|
-
import { steps } from "./
|
|
18
|
-
import { mirrorEasing } from "./
|
|
19
|
-
import { reverseEasing } from "./
|
|
20
|
-
import { spring } from "./
|
|
21
|
-
import { inertia } from "./
|
|
22
|
-
import { keyframes } from "./
|
|
23
|
-
import { stagger } from "./
|
|
24
|
-
import { transform } from "./
|
|
25
|
-
import { clamp } from "./
|
|
26
|
-
import { delayInSeconds } from "./
|
|
27
|
-
import { distance, distance2D } from "./
|
|
28
|
-
import { invariant, warning } from "./
|
|
29
|
-
import { interpolate } from "./
|
|
30
|
-
import { mix } from "./
|
|
31
|
-
import { pipe } from "./
|
|
32
|
-
import { progress } from "./
|
|
33
|
-
import { wrap } from "./
|
|
34
|
-
import { cancelSync, sync } from "./
|
|
35
|
-
import { cancelFrame, frame, frameData, frameSteps } from "./
|
|
6
|
+
import { MotionValue, motionValue, motionValue as motionValue2 } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/index.mjs";
|
|
7
|
+
import { animate, createScopedAnimate } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
8
|
+
import { animateMini } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs";
|
|
9
|
+
import { scroll } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/index.mjs";
|
|
10
|
+
import { scrollInfo } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/track.mjs";
|
|
11
|
+
import { inView } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
12
|
+
import { anticipate } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/anticipate.mjs";
|
|
13
|
+
import { backIn, backInOut, backOut } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/back.mjs";
|
|
14
|
+
import { circIn, circInOut, circOut } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/circ.mjs";
|
|
15
|
+
import { easeIn, easeInOut, easeOut } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/ease.mjs";
|
|
16
|
+
import { cubicBezier } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/cubic-bezier.mjs";
|
|
17
|
+
import { steps } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/steps.mjs";
|
|
18
|
+
import { mirrorEasing } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/modifiers/mirror.mjs";
|
|
19
|
+
import { reverseEasing } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/modifiers/reverse.mjs";
|
|
20
|
+
import { spring } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/spring/index.mjs";
|
|
21
|
+
import { inertia } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/inertia.mjs";
|
|
22
|
+
import { keyframes } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/keyframes.mjs";
|
|
23
|
+
import { stagger } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/stagger.mjs";
|
|
24
|
+
import { transform } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/transform.mjs";
|
|
25
|
+
import { clamp } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/clamp.mjs";
|
|
26
|
+
import { delayInSeconds } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/delay.mjs";
|
|
27
|
+
import { distance, distance2D } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/distance.mjs";
|
|
28
|
+
import { invariant, warning } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/errors.mjs";
|
|
29
|
+
import { interpolate } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/interpolate.mjs";
|
|
30
|
+
import { mix } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/index.mjs";
|
|
31
|
+
import { pipe } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/pipe.mjs";
|
|
32
|
+
import { progress } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/progress.mjs";
|
|
33
|
+
import { wrap } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/wrap.mjs";
|
|
34
|
+
import { cancelSync, sync } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/index-legacy.mjs";
|
|
35
|
+
import { cancelFrame, frame, frameData, frameSteps } from "./external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/frame.mjs";
|
|
36
36
|
import { useComputed } from "./value/use-computed.mjs";
|
|
37
37
|
import { useCombineMotionValues } from "./value/use-combine-values.mjs";
|
|
38
38
|
import { useTransform } from "./value/use-transform.mjs";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { style } from "./style.mjs";
|
|
2
|
+
import { transformResetValue } from "./transform.mjs";
|
|
3
|
+
import { resolveVariant, hasChanged, getOptions } from "./utils.mjs";
|
|
4
|
+
import { animate } from "../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/index.mjs";
|
|
5
|
+
function animateVariantsChildren(state, activeState) {
|
|
6
|
+
const variantChildren = state.visualElement.variantChildren;
|
|
7
|
+
if (!(variantChildren == null ? void 0 : variantChildren.size)) {
|
|
8
|
+
return {
|
|
9
|
+
animations: [],
|
|
10
|
+
getAnimations: () => Promise.resolve()
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const animationFactories = [];
|
|
14
|
+
Array.from(variantChildren).forEach((child, index) => {
|
|
15
|
+
var _a;
|
|
16
|
+
const prevTarget = child.state.target;
|
|
17
|
+
const childState = child.state;
|
|
18
|
+
childState.target = {};
|
|
19
|
+
for (const name in activeState) {
|
|
20
|
+
childState.activeStates[name] = true;
|
|
21
|
+
const { definition, transition } = activeState[name];
|
|
22
|
+
const { staggerChildren = 0, staggerDirection = 1, delayChildren = 0 } = transition;
|
|
23
|
+
const maxStaggerDuration = (variantChildren.size - 1) * staggerChildren;
|
|
24
|
+
const generateStaggerDuration = staggerDirection === 1 ? (i = 0) => i * staggerChildren : (i = 0) => maxStaggerDuration - i * staggerChildren;
|
|
25
|
+
const variant = resolveVariant(
|
|
26
|
+
definition,
|
|
27
|
+
child.props.variants,
|
|
28
|
+
child.props.custom
|
|
29
|
+
);
|
|
30
|
+
const animationOptions = {};
|
|
31
|
+
const allTarget = { ...prevTarget, ...variant };
|
|
32
|
+
for (const key in allTarget) {
|
|
33
|
+
if (key === "transition")
|
|
34
|
+
continue;
|
|
35
|
+
childState.target[key] = allTarget[key];
|
|
36
|
+
if (childState.target[key] === void 0) {
|
|
37
|
+
childState.target[key] = childState.baseTarget[key];
|
|
38
|
+
}
|
|
39
|
+
if (hasChanged(prevTarget[key], childState.target[key])) {
|
|
40
|
+
(_a = childState.baseTarget)[key] ?? (_a[key] = style.get(child.current, key));
|
|
41
|
+
animationOptions[key] = getOptions(
|
|
42
|
+
Object.assign({}, transition, allTarget.transition, child.props.transition),
|
|
43
|
+
key
|
|
44
|
+
);
|
|
45
|
+
const keyValue = childState.target[key] === "none" ? transformResetValue[key] : childState.target[key];
|
|
46
|
+
animationFactories.push(
|
|
47
|
+
() => {
|
|
48
|
+
var _a2;
|
|
49
|
+
return animate(
|
|
50
|
+
child.current,
|
|
51
|
+
{
|
|
52
|
+
[key]: keyValue
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
...animationOptions[key] || {},
|
|
56
|
+
delay: (((_a2 = animationOptions[key]) == null ? void 0 : _a2.delay) || 0) + delayChildren + generateStaggerDuration(index)
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return {
|
|
66
|
+
animations: animationFactories,
|
|
67
|
+
getAnimations: () => Promise.all(animationFactories.map((factory) => factory()))
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
animateVariantsChildren
|
|
72
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isSVGElement } from "./utils.mjs";
|
|
2
|
-
import { HTMLVisualElement } from "../
|
|
3
|
-
import { SVGVisualElement } from "../
|
|
2
|
+
import { HTMLVisualElement } from "../external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs";
|
|
3
|
+
import { SVGVisualElement } from "../external/.pnpm/framer-motion@11.11.11/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
|
}
|