motion-v 0.3.1-beta.1 → 0.4.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 +1826 -47
- package/dist/es/animation/use-animate.mjs +1 -1
- package/dist/es/components/LayoutGroup.vue.mjs +39 -0
- package/dist/es/components/LayoutGroup.vue2.mjs +4 -0
- package/dist/es/components/Motion.vue.mjs +22 -10
- package/dist/es/components/context.mjs +12 -1
- package/dist/es/components/group.mjs +30 -0
- package/dist/es/components/use-force-update.mjs +11 -0
- package/dist/es/constants/index.mjs +8 -2
- package/dist/es/features/events.mjs +2 -2
- package/dist/es/features/feature-manager.mjs +3 -1
- package/dist/es/features/gestures/hover.mjs +1 -1
- package/dist/es/features/gestures/in-view.mjs +2 -2
- package/dist/es/features/gestures/press.mjs +1 -1
- package/dist/es/features/layout/config.mjs +21 -0
- package/dist/es/features/layout/layout.mjs +74 -0
- package/dist/es/features/layout/utils.mjs +8 -0
- package/dist/es/features/svg.mjs +2 -2
- package/dist/es/index.mjs +47 -30
- package/dist/es/node_modules/.pnpm/@vueuse_shared@12.0.0_typescript@5.5.4/node_modules/@vueuse/shared/index.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/events/add-dom-event.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/microtask.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs +60 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs +19 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs +81 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs +55 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs +40 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/models.mjs +21 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs +34 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +13 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +28 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs +1086 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/node/state.mjs +15 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/shared/stack.mjs +94 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +26 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +25 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/transform.mjs +36 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs +20 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs +24 -0
- package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/resolve-value.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +9 -0
- package/dist/es/state/create-visual-element.mjs +9 -0
- package/dist/es/state/motion-state.mjs +27 -14
- package/dist/es/state/style.mjs +2 -2
- package/dist/es/state/transform.mjs +0 -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-motion-value-event.mjs +11 -0
- 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 +20 -0
- package/dist/src/components/LayoutGroup.d.ts +30 -0
- package/dist/src/components/context.d.ts +17 -0
- package/dist/src/components/group.d.ts +7 -0
- package/dist/src/components/use-force-update.d.ts +2 -0
- package/dist/src/features/index.d.ts +1 -0
- package/dist/src/features/layout/config.d.ts +8 -0
- package/dist/src/features/layout/layout.d.ts +10 -0
- package/dist/src/features/layout/types.d.ts +7 -0
- package/dist/src/features/layout/utils.d.ts +4 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/state/create-visual-element.d.ts +1 -0
- package/dist/src/state/motion-state.d.ts +1 -2
- package/dist/src/types/state.d.ts +2 -1
- package/dist/src/value/index.d.ts +4 -0
- package/package.json +1 -1
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -9
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -4
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animate/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animate/single-value.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animate/subject.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/easing.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/attach-timeline.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/linear.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/spring/find.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/spring/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/utils/is-generator.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/generators/utils/velocity.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/interfaces/motion-value.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/sequence/create.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/sequence/utils/edit.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/get-value-transition.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/anticipate.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/back.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/circ.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/cubic-bezier.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/ease.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/steps.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/easing/utils/map.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/frameloop/batcher.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/frameloop/frame.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/frameloop/render-step.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/frameloop/sync-time.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/VisualElement.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/resize/handle-element.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/info.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/observe.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/supports.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/scroll/track.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/dom/viewport/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/html/utils/transform.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/store.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/motion-values.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/setters.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/array.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/clamp.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/delay.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/distance.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/errors.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/interpolate.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/is-browser.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/memo.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/mix/color.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/mix/complex.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/mix/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/mix/number.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/noop.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/offsets/fill.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/pipe.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/progress.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/subscription-manager.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/time-conversion.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/transform.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/velocity-per-second.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/warn-once.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/utils/wrap.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/color/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
- /package/dist/es/{external/.pnpm/framer-motion@11.11.11/external → node_modules/.pnpm/framer-motion@11.11.11/node_modules}/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
- /package/dist/es/{external/.pnpm/hey-listen@1.0.8/external → node_modules/.pnpm/hey-listen@1.0.8/node_modules}/hey-listen/dist/hey-listen.es.mjs +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, onUnmounted } from "vue";
|
|
2
|
-
import { createScopedAnimate } from "../
|
|
2
|
+
import { createScopedAnimate } from "../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/index.mjs";
|
|
3
3
|
function useAnimate() {
|
|
4
4
|
const dom = ref(null);
|
|
5
5
|
const domProxy = new Proxy(dom, {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent, watch, renderSlot } from "vue";
|
|
2
|
+
import { injectLayoutGroup, provideLayoutGroup, shouldInheritId, shouldInheritGroup } from "./context.mjs";
|
|
3
|
+
import { nodeGroup } from "./group.mjs";
|
|
4
|
+
import { useForceUpdate } from "./use-force-update.mjs";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "LayoutGroup",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
inherit: { type: [Boolean, String] }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const layoutGroup = injectLayoutGroup(null);
|
|
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);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return renderSlot(_ctx.$slots, "default");
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
_sfc_main as default
|
|
39
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, mergeDefaults, ref, useAttrs, getCurrentInstance, onMounted, onUnmounted, onUpdated, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { injectMotion, provideMotion } from "./context.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { injectMotion, injectLayoutGroup, provideMotion } from "./context.mjs";
|
|
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
6
|
import { isSVGElement } from "../state/utils.mjs";
|
|
@@ -34,20 +34,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
onPressStart: { type: Function },
|
|
35
35
|
onPressEnd: { type: Function },
|
|
36
36
|
onViewEnter: { type: Function },
|
|
37
|
-
onViewLeave: { type: Function }
|
|
37
|
+
onViewLeave: { type: Function },
|
|
38
|
+
layout: { type: Boolean },
|
|
39
|
+
layoutId: {},
|
|
40
|
+
layoutScroll: { type: Boolean },
|
|
41
|
+
layoutRoot: { type: Boolean },
|
|
42
|
+
"data-framer-portal-id": {}
|
|
38
43
|
}, {
|
|
39
44
|
as: "div",
|
|
40
45
|
asChild: false,
|
|
41
46
|
initial: void 0,
|
|
42
47
|
animate: void 0,
|
|
43
48
|
hover: void 0,
|
|
44
|
-
inView: void 0
|
|
49
|
+
inView: void 0,
|
|
50
|
+
layout: false,
|
|
51
|
+
layoutId: void 0,
|
|
52
|
+
layoutScroll: false,
|
|
53
|
+
layoutRoot: false
|
|
45
54
|
}),
|
|
46
55
|
setup(__props) {
|
|
47
56
|
const props = __props;
|
|
48
57
|
const { initial: presenceInitial, safeUnmount } = injectAnimatePresence({ initial: ref(void 0), safeUnmount: () => true });
|
|
49
58
|
const parentState = injectMotion(null);
|
|
50
59
|
const attrs = useAttrs();
|
|
60
|
+
const layoutGroup = injectLayoutGroup({});
|
|
51
61
|
const state = new MotionState(
|
|
52
62
|
{
|
|
53
63
|
...attrs,
|
|
@@ -61,8 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
71
|
state.mount(instance == null ? void 0 : instance.vnode.el);
|
|
62
72
|
state.update({
|
|
63
73
|
...attrs,
|
|
64
|
-
...props
|
|
65
|
-
style: { ...createStyles(state.getTarget()), ...props.style }
|
|
74
|
+
...props
|
|
66
75
|
});
|
|
67
76
|
});
|
|
68
77
|
onUnmounted(() => {
|
|
@@ -91,23 +100,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
100
|
Object.assign(attrsProps, attributes);
|
|
92
101
|
Object.assign(styleProps, style, props.style);
|
|
93
102
|
} else {
|
|
94
|
-
Object.assign(styleProps,
|
|
103
|
+
Object.assign(styleProps, state.getTarget(), props.style);
|
|
95
104
|
}
|
|
96
105
|
}
|
|
97
106
|
styleProps = createStyles(styleProps);
|
|
98
|
-
attrsProps.style =
|
|
107
|
+
attrsProps.style = styleProps;
|
|
99
108
|
return attrsProps;
|
|
100
109
|
}
|
|
101
110
|
return (_ctx, _cache) => {
|
|
111
|
+
var _a, _b;
|
|
102
112
|
return openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
103
113
|
as: _ctx.as,
|
|
104
114
|
"as-child": _ctx.asChild
|
|
105
|
-
}, getProps()
|
|
115
|
+
}, getProps(), {
|
|
116
|
+
"data-layout-group-key": (_b = (_a = unref(layoutGroup)) == null ? void 0 : _a.key) == null ? void 0 : _b.value
|
|
117
|
+
}), {
|
|
106
118
|
default: withCtx(() => [
|
|
107
119
|
renderSlot(_ctx.$slots, "default")
|
|
108
120
|
]),
|
|
109
121
|
_: 3
|
|
110
|
-
}, 16, ["as", "as-child"]);
|
|
122
|
+
}, 16, ["as", "as-child", "data-layout-group-key"]);
|
|
111
123
|
};
|
|
112
124
|
}
|
|
113
125
|
});
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { createContext } from "../utils/createContext.mjs";
|
|
2
2
|
const [injectMotion, provideMotion] = createContext("Motion");
|
|
3
|
+
const [injectLayoutGroup, provideLayoutGroup] = createContext("LayoutGroup");
|
|
4
|
+
function shouldInheritGroup(inherit) {
|
|
5
|
+
return inherit === true;
|
|
6
|
+
}
|
|
7
|
+
function shouldInheritId(inherit) {
|
|
8
|
+
return shouldInheritGroup(inherit === true) || inherit === "id";
|
|
9
|
+
}
|
|
3
10
|
export {
|
|
11
|
+
injectLayoutGroup,
|
|
4
12
|
injectMotion,
|
|
5
|
-
|
|
13
|
+
provideLayoutGroup,
|
|
14
|
+
provideMotion,
|
|
15
|
+
shouldInheritGroup,
|
|
16
|
+
shouldInheritId
|
|
6
17
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function notify(node) {
|
|
2
|
+
return !node.isLayoutDirty && node.willUpdate(false);
|
|
3
|
+
}
|
|
4
|
+
function nodeGroup() {
|
|
5
|
+
const nodes = /* @__PURE__ */ new Set();
|
|
6
|
+
const subscriptions = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
const dirtyAll = () => nodes.forEach(notify);
|
|
8
|
+
return {
|
|
9
|
+
add: (node) => {
|
|
10
|
+
nodes.add(node);
|
|
11
|
+
subscriptions.set(
|
|
12
|
+
node,
|
|
13
|
+
node.addEventListener("willUpdate", dirtyAll)
|
|
14
|
+
);
|
|
15
|
+
},
|
|
16
|
+
remove: (node) => {
|
|
17
|
+
nodes.delete(node);
|
|
18
|
+
const unsubscribe = subscriptions.get(node);
|
|
19
|
+
if (unsubscribe) {
|
|
20
|
+
unsubscribe();
|
|
21
|
+
subscriptions.delete(node);
|
|
22
|
+
}
|
|
23
|
+
dirtyAll();
|
|
24
|
+
},
|
|
25
|
+
dirty: dirtyAll
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
nodeGroup
|
|
30
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const components = {
|
|
2
2
|
motion: [
|
|
3
3
|
"Motion",
|
|
4
|
-
"MotionPresence"
|
|
4
|
+
"MotionPresence",
|
|
5
|
+
"LayoutGroup"
|
|
5
6
|
]
|
|
6
7
|
};
|
|
7
8
|
const utilities = {
|
|
@@ -11,7 +12,12 @@ const utilities = {
|
|
|
11
12
|
"useMotionTemplate",
|
|
12
13
|
"useSpring",
|
|
13
14
|
"useScroll",
|
|
14
|
-
"useMotionValue"
|
|
15
|
+
"useMotionValue",
|
|
16
|
+
"useVelocity",
|
|
17
|
+
"useAnimate",
|
|
18
|
+
"useInView",
|
|
19
|
+
"useAnimationFrame",
|
|
20
|
+
"useMotionValueEvent"
|
|
15
21
|
]
|
|
16
22
|
};
|
|
17
23
|
export {
|
|
@@ -5,7 +5,7 @@ class EventFeature extends Feature {
|
|
|
5
5
|
this.handlers = {};
|
|
6
6
|
}
|
|
7
7
|
mount() {
|
|
8
|
-
const element = this.state.
|
|
8
|
+
const element = this.state.element;
|
|
9
9
|
if (!element)
|
|
10
10
|
return;
|
|
11
11
|
this.handlers.motionstart = (event) => {
|
|
@@ -53,7 +53,7 @@ class EventFeature extends Feature {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
unmount() {
|
|
56
|
-
const element = this.state.
|
|
56
|
+
const element = this.state.element;
|
|
57
57
|
if (!element)
|
|
58
58
|
return;
|
|
59
59
|
Object.entries(this.handlers).forEach(([event, handler]) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventFeature } from "./events.mjs";
|
|
2
2
|
import { SVGFeature } from "./svg.mjs";
|
|
3
|
+
import { LayoutFeature } from "./layout/layout.mjs";
|
|
3
4
|
import { HoverGesture } from "./gestures/hover.mjs";
|
|
4
5
|
import { PressGesture } from "./gestures/press.mjs";
|
|
5
6
|
import { InViewGesture } from "./gestures/in-view.mjs";
|
|
@@ -11,7 +12,8 @@ class FeatureManager {
|
|
|
11
12
|
new PressGesture(state),
|
|
12
13
|
new InViewGesture(state),
|
|
13
14
|
new SVGFeature(state),
|
|
14
|
-
new EventFeature(state)
|
|
15
|
+
new EventFeature(state),
|
|
16
|
+
new LayoutFeature(state)
|
|
15
17
|
];
|
|
16
18
|
}
|
|
17
19
|
mount() {
|
|
@@ -15,7 +15,7 @@ class HoverGesture extends BaseGesture {
|
|
|
15
15
|
constructor(state) {
|
|
16
16
|
super(state);
|
|
17
17
|
this.subscribeEvents = () => {
|
|
18
|
-
const element = this.state.
|
|
18
|
+
const element = this.state.element;
|
|
19
19
|
const onEnter = mouseEvent(element, "hoverstart", () => {
|
|
20
20
|
this.state.setActive("hover", true);
|
|
21
21
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dispatchPointerEvent } from "../../utils/events.mjs";
|
|
2
|
-
import { inView } from "../../
|
|
2
|
+
import { inView } from "../../node_modules/.pnpm/framer-motion@11.11.11/node_modules/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() {
|
|
@@ -9,7 +9,7 @@ class InViewGesture extends BaseGesture {
|
|
|
9
9
|
super(state);
|
|
10
10
|
this.subscribeEvents = () => {
|
|
11
11
|
var _a;
|
|
12
|
-
const element = this.state.
|
|
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
15
|
this.state.setActive("inView", true);
|
|
@@ -7,7 +7,7 @@ class PressGesture extends BaseGesture {
|
|
|
7
7
|
constructor(state) {
|
|
8
8
|
super(state);
|
|
9
9
|
this.subscribeEvents = () => {
|
|
10
|
-
const element = this.state.
|
|
10
|
+
const element = this.state.element;
|
|
11
11
|
const onPointerUp = (event) => {
|
|
12
12
|
this.state.setActive("press", false);
|
|
13
13
|
dispatchPointerEvent(element, "pressend", event);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { correctBorderRadius } from "../../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs";
|
|
2
|
+
import { correctBoxShadow } from "../../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs";
|
|
3
|
+
const defaultScaleCorrector = {
|
|
4
|
+
borderRadius: {
|
|
5
|
+
...correctBorderRadius,
|
|
6
|
+
applyTo: [
|
|
7
|
+
"borderTopLeftRadius",
|
|
8
|
+
"borderTopRightRadius",
|
|
9
|
+
"borderBottomLeftRadius",
|
|
10
|
+
"borderBottomRightRadius"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
borderTopLeftRadius: correctBorderRadius,
|
|
14
|
+
borderTopRightRadius: correctBorderRadius,
|
|
15
|
+
borderBottomLeftRadius: correctBorderRadius,
|
|
16
|
+
borderBottomRightRadius: correctBorderRadius,
|
|
17
|
+
boxShadow: correctBoxShadow
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
defaultScaleCorrector
|
|
21
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Feature } from "../feature.mjs";
|
|
2
|
+
import { HTMLProjectionNode } from "../../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs";
|
|
3
|
+
import { getClosestProjectingNode } from "./utils.mjs";
|
|
4
|
+
import { onBeforeMount, onBeforeUpdate, onUpdated, onBeforeUnmount } from "vue";
|
|
5
|
+
import { addScaleCorrector } from "../../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs";
|
|
6
|
+
import { defaultScaleCorrector } from "./config.mjs";
|
|
7
|
+
import { globalProjectionState } from "../../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/node/state.mjs";
|
|
8
|
+
import { injectLayoutGroup } from "../../components/context.mjs";
|
|
9
|
+
class LayoutFeature extends Feature {
|
|
10
|
+
constructor(state) {
|
|
11
|
+
super(state);
|
|
12
|
+
const options = this.state.getOptions();
|
|
13
|
+
const visualElement = this.state.visualElement;
|
|
14
|
+
if (options.layout || options.layoutId) {
|
|
15
|
+
addScaleCorrector(defaultScaleCorrector);
|
|
16
|
+
this.layoutGroup = injectLayoutGroup({});
|
|
17
|
+
onBeforeMount(() => {
|
|
18
|
+
visualElement.projection = new HTMLProjectionNode(
|
|
19
|
+
visualElement.latestValues,
|
|
20
|
+
options["data-framer-portal-id"] ? void 0 : getClosestProjectingNode(visualElement.parent)
|
|
21
|
+
);
|
|
22
|
+
visualElement.projection.setOptions({
|
|
23
|
+
layout: options.layout,
|
|
24
|
+
layoutId: options.layoutId,
|
|
25
|
+
// TODO: drag
|
|
26
|
+
alwaysMeasureLayout: false,
|
|
27
|
+
visualElement,
|
|
28
|
+
animationType: typeof options.layout === "string" ? options.layout : "both",
|
|
29
|
+
// initialPromotionConfig
|
|
30
|
+
layoutRoot: options.layoutRoot,
|
|
31
|
+
layoutScroll: options.layoutScroll
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
onBeforeUpdate(() => {
|
|
35
|
+
var _a;
|
|
36
|
+
(_a = visualElement.projection) == null ? void 0 : _a.willUpdate();
|
|
37
|
+
});
|
|
38
|
+
onUpdated(() => {
|
|
39
|
+
var _a;
|
|
40
|
+
(_a = visualElement.projection) == null ? void 0 : _a.root.didUpdate();
|
|
41
|
+
});
|
|
42
|
+
onBeforeUnmount(() => {
|
|
43
|
+
var _a;
|
|
44
|
+
if (visualElement.projection) {
|
|
45
|
+
visualElement.projection.unmount();
|
|
46
|
+
if ((_a = this.layoutGroup) == null ? void 0 : _a.group)
|
|
47
|
+
this.layoutGroup.group.remove(visualElement.projection);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
update() {
|
|
53
|
+
var _a;
|
|
54
|
+
(_a = this.state.visualElement.projection) == null ? void 0 : _a.setOptions(this.state.getOptions());
|
|
55
|
+
}
|
|
56
|
+
mount() {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
const options = this.state.getOptions();
|
|
59
|
+
if (options.layout || options.layoutId) {
|
|
60
|
+
const projection = this.state.visualElement.projection;
|
|
61
|
+
if (projection) {
|
|
62
|
+
(_b = (_a = this.layoutGroup) == null ? void 0 : _a.group) == null ? void 0 : _b.add(projection);
|
|
63
|
+
}
|
|
64
|
+
globalProjectionState.hasEverUpdated = true;
|
|
65
|
+
projection == null ? void 0 : projection.mount(this.state.element);
|
|
66
|
+
projection == null ? void 0 : projection.root.didUpdate();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
unmount() {
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
LayoutFeature
|
|
74
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function getClosestProjectingNode(visualElement) {
|
|
2
|
+
if (!visualElement)
|
|
3
|
+
return void 0;
|
|
4
|
+
return visualElement.options.allowProjection !== false ? visualElement.projection : getClosestProjectingNode(visualElement.parent);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
getClosestProjectingNode
|
|
8
|
+
};
|
package/dist/es/features/svg.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Feature } from "./feature.mjs";
|
|
2
|
-
import { frame } from "../
|
|
2
|
+
import { frame } from "../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/frame.mjs";
|
|
3
3
|
function isSVGElement(element) {
|
|
4
4
|
return element instanceof SVGElement && element.tagName !== "svg";
|
|
5
5
|
}
|
|
6
6
|
class SVGFeature extends Feature {
|
|
7
7
|
mount() {
|
|
8
|
-
const instance = this.state.
|
|
8
|
+
const instance = this.state.element;
|
|
9
9
|
if (!isSVGElement(instance)) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
import { default as default2 } from "./components/Motion.vue.mjs";
|
|
2
2
|
import { default as default3 } from "./components/AnimatePresence.vue.mjs";
|
|
3
|
+
import { default as default4 } from "./components/LayoutGroup.vue.mjs";
|
|
4
|
+
import { injectLayoutGroup, injectMotion, provideLayoutGroup, provideMotion, shouldInheritGroup, shouldInheritId } from "./components/context.mjs";
|
|
3
5
|
import { components, utilities } from "./constants/index.mjs";
|
|
4
|
-
import { MotionValue, motionValue, motionValue as motionValue2 } from "./
|
|
5
|
-
import { animate, createScopedAnimate } from "./
|
|
6
|
-
import { animateMini } from "./
|
|
7
|
-
import { scroll } from "./
|
|
8
|
-
import { scrollInfo } from "./
|
|
9
|
-
import { inView } from "./
|
|
10
|
-
import { anticipate } from "./
|
|
11
|
-
import { backIn, backInOut, backOut } from "./
|
|
12
|
-
import { circIn, circInOut, circOut } from "./
|
|
13
|
-
import { easeIn, easeInOut, easeOut } from "./
|
|
14
|
-
import { cubicBezier } from "./
|
|
15
|
-
import { steps } from "./
|
|
16
|
-
import { mirrorEasing } from "./
|
|
17
|
-
import { reverseEasing } from "./
|
|
18
|
-
import { spring } from "./
|
|
19
|
-
import { inertia } from "./
|
|
20
|
-
import { keyframes } from "./
|
|
21
|
-
import { stagger } from "./
|
|
22
|
-
import { transform } from "./
|
|
23
|
-
import { clamp } from "./
|
|
24
|
-
import { delayInSeconds } from "./
|
|
25
|
-
import { distance, distance2D } from "./
|
|
26
|
-
import { invariant, warning } from "./
|
|
27
|
-
import { interpolate } from "./
|
|
28
|
-
import { mix } from "./
|
|
29
|
-
import { pipe } from "./
|
|
30
|
-
import { progress } from "./
|
|
31
|
-
import { wrap } from "./
|
|
32
|
-
import { cancelSync, sync } from "./
|
|
33
|
-
import { cancelFrame, frame, frameData, frameSteps } from "./
|
|
6
|
+
import { MotionValue, motionValue, motionValue as motionValue2 } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/index.mjs";
|
|
7
|
+
import { animate, createScopedAnimate } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/index.mjs";
|
|
8
|
+
import { animateMini } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs";
|
|
9
|
+
import { scroll } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/index.mjs";
|
|
10
|
+
import { scrollInfo } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/track.mjs";
|
|
11
|
+
import { inView } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/viewport/index.mjs";
|
|
12
|
+
import { anticipate } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/anticipate.mjs";
|
|
13
|
+
import { backIn, backInOut, backOut } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/back.mjs";
|
|
14
|
+
import { circIn, circInOut, circOut } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/circ.mjs";
|
|
15
|
+
import { easeIn, easeInOut, easeOut } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/ease.mjs";
|
|
16
|
+
import { cubicBezier } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs";
|
|
17
|
+
import { steps } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/steps.mjs";
|
|
18
|
+
import { mirrorEasing } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs";
|
|
19
|
+
import { reverseEasing } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs";
|
|
20
|
+
import { spring } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs";
|
|
21
|
+
import { inertia } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/inertia.mjs";
|
|
22
|
+
import { keyframes } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs";
|
|
23
|
+
import { stagger } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/stagger.mjs";
|
|
24
|
+
import { transform } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/transform.mjs";
|
|
25
|
+
import { clamp } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/clamp.mjs";
|
|
26
|
+
import { delayInSeconds } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/delay.mjs";
|
|
27
|
+
import { distance, distance2D } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/distance.mjs";
|
|
28
|
+
import { invariant, warning } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/errors.mjs";
|
|
29
|
+
import { interpolate } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/interpolate.mjs";
|
|
30
|
+
import { mix } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/index.mjs";
|
|
31
|
+
import { pipe } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/pipe.mjs";
|
|
32
|
+
import { progress } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/progress.mjs";
|
|
33
|
+
import { wrap } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/wrap.mjs";
|
|
34
|
+
import { cancelSync, sync } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/index-legacy.mjs";
|
|
35
|
+
import { cancelFrame, frame, frameData, frameSteps } from "./node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/frame.mjs";
|
|
36
|
+
import { useComputed } from "./value/use-computed.mjs";
|
|
37
|
+
import { useCombineMotionValues } from "./value/use-combine-values.mjs";
|
|
34
38
|
import { useTransform } from "./value/use-transform.mjs";
|
|
35
39
|
import { useTime } from "./value/use-time.mjs";
|
|
36
40
|
import { useMotionTemplate } from "./value/use-motion-template.mjs";
|
|
41
|
+
import { useMotionValueEvent } from "./value/use-motion-value-event.mjs";
|
|
37
42
|
import { useSpring } from "./value/use-spring.mjs";
|
|
38
43
|
import { useScroll } from "./value/use-scroll.mjs";
|
|
44
|
+
import { useVelocity } from "./value/use-velocity.mjs";
|
|
39
45
|
import { useAnimate } from "./animation/use-animate.mjs";
|
|
40
46
|
import { createContext } from "./utils/createContext.mjs";
|
|
41
47
|
import { isMotionValue } from "./utils/motion-value.mjs";
|
|
@@ -43,6 +49,7 @@ import { useInView } from "./utils/use-in-view.mjs";
|
|
|
43
49
|
import { useAnimationFrame } from "./utils/use-animation-frame.mjs";
|
|
44
50
|
export {
|
|
45
51
|
default3 as AnimatePresence,
|
|
52
|
+
default4 as LayoutGroup,
|
|
46
53
|
default2 as Motion,
|
|
47
54
|
MotionValue,
|
|
48
55
|
animate,
|
|
@@ -72,6 +79,8 @@ export {
|
|
|
72
79
|
frameSteps,
|
|
73
80
|
inView,
|
|
74
81
|
inertia,
|
|
82
|
+
injectLayoutGroup,
|
|
83
|
+
injectMotion,
|
|
75
84
|
interpolate,
|
|
76
85
|
invariant,
|
|
77
86
|
isMotionValue,
|
|
@@ -81,9 +90,13 @@ export {
|
|
|
81
90
|
motionValue,
|
|
82
91
|
pipe,
|
|
83
92
|
progress,
|
|
93
|
+
provideLayoutGroup,
|
|
94
|
+
provideMotion,
|
|
84
95
|
reverseEasing,
|
|
85
96
|
scroll,
|
|
86
97
|
scrollInfo,
|
|
98
|
+
shouldInheritGroup,
|
|
99
|
+
shouldInheritId,
|
|
87
100
|
spring,
|
|
88
101
|
stagger,
|
|
89
102
|
steps,
|
|
@@ -91,13 +104,17 @@ export {
|
|
|
91
104
|
transform,
|
|
92
105
|
useAnimate,
|
|
93
106
|
useAnimationFrame,
|
|
107
|
+
useCombineMotionValues,
|
|
108
|
+
useComputed,
|
|
94
109
|
useInView,
|
|
95
110
|
useMotionTemplate,
|
|
96
111
|
motionValue2 as useMotionValue,
|
|
112
|
+
useMotionValueEvent,
|
|
97
113
|
useScroll,
|
|
98
114
|
useSpring,
|
|
99
115
|
useTime,
|
|
100
116
|
useTransform,
|
|
117
|
+
useVelocity,
|
|
101
118
|
utilities,
|
|
102
119
|
warning,
|
|
103
120
|
wrap
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { circOut } from "../../easing/circ.mjs";
|
|
2
|
+
import { progress } from "../../utils/progress.mjs";
|
|
3
|
+
import { mixNumber } from "../../utils/mix/number.mjs";
|
|
4
|
+
import { noop } from "../../utils/noop.mjs";
|
|
5
|
+
import { percent, px } from "../../value/types/numbers/units.mjs";
|
|
6
|
+
const borders = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"];
|
|
7
|
+
const numBorders = borders.length;
|
|
8
|
+
const asNumber = (value) => typeof value === "string" ? parseFloat(value) : value;
|
|
9
|
+
const isPx = (value) => typeof value === "number" || px.test(value);
|
|
10
|
+
function mixValues(target, follow, lead, progress2, shouldCrossfadeOpacity, isOnlyMember) {
|
|
11
|
+
if (shouldCrossfadeOpacity) {
|
|
12
|
+
target.opacity = mixNumber(
|
|
13
|
+
0,
|
|
14
|
+
// TODO Reinstate this if only child
|
|
15
|
+
lead.opacity !== void 0 ? lead.opacity : 1,
|
|
16
|
+
easeCrossfadeIn(progress2)
|
|
17
|
+
);
|
|
18
|
+
target.opacityExit = mixNumber(follow.opacity !== void 0 ? follow.opacity : 1, 0, easeCrossfadeOut(progress2));
|
|
19
|
+
} else if (isOnlyMember) {
|
|
20
|
+
target.opacity = mixNumber(follow.opacity !== void 0 ? follow.opacity : 1, lead.opacity !== void 0 ? lead.opacity : 1, progress2);
|
|
21
|
+
}
|
|
22
|
+
for (let i = 0; i < numBorders; i++) {
|
|
23
|
+
const borderLabel = `border${borders[i]}Radius`;
|
|
24
|
+
let followRadius = getRadius(follow, borderLabel);
|
|
25
|
+
let leadRadius = getRadius(lead, borderLabel);
|
|
26
|
+
if (followRadius === void 0 && leadRadius === void 0)
|
|
27
|
+
continue;
|
|
28
|
+
followRadius || (followRadius = 0);
|
|
29
|
+
leadRadius || (leadRadius = 0);
|
|
30
|
+
const canMix = followRadius === 0 || leadRadius === 0 || isPx(followRadius) === isPx(leadRadius);
|
|
31
|
+
if (canMix) {
|
|
32
|
+
target[borderLabel] = Math.max(mixNumber(asNumber(followRadius), asNumber(leadRadius), progress2), 0);
|
|
33
|
+
if (percent.test(leadRadius) || percent.test(followRadius)) {
|
|
34
|
+
target[borderLabel] += "%";
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
target[borderLabel] = leadRadius;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (follow.rotate || lead.rotate) {
|
|
41
|
+
target.rotate = mixNumber(follow.rotate || 0, lead.rotate || 0, progress2);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function getRadius(values, radiusName) {
|
|
45
|
+
return values[radiusName] !== void 0 ? values[radiusName] : values.borderRadius;
|
|
46
|
+
}
|
|
47
|
+
const easeCrossfadeIn = /* @__PURE__ */ compress(0, 0.5, circOut);
|
|
48
|
+
const easeCrossfadeOut = /* @__PURE__ */ compress(0.5, 0.95, noop);
|
|
49
|
+
function compress(min, max, easing) {
|
|
50
|
+
return (p) => {
|
|
51
|
+
if (p < min)
|
|
52
|
+
return 0;
|
|
53
|
+
if (p > max)
|
|
54
|
+
return 1;
|
|
55
|
+
return easing(progress(min, max, p));
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
mixValues
|
|
60
|
+
};
|