@burdenoff/microfe-mybodyshield 2026.705.1 → 2026.706.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/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +10 -0
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.js +5 -5
- package/dist/mybodyshield/components/DataTable.js +8 -4
- package/dist/mybodyshield/components/DataTable.js.map +1 -1
- package/dist/mybodyshield/components/EvidenceUpload.js +92 -4
- package/dist/mybodyshield/components/EvidenceUpload.js.map +1 -0
- package/dist/mybodyshield/components/FileLink.js +35 -2
- package/dist/mybodyshield/components/FileLink.js.map +1 -0
- package/dist/mybodyshield/components/MybDiscussion.js +107 -6
- package/dist/mybodyshield/components/MybDiscussion.js.map +1 -0
- package/dist/mybodyshield/components/MybTags.js +148 -4
- package/dist/mybodyshield/components/MybTags.js.map +1 -0
- package/dist/mybodyshield/components/Pagination.js.map +1 -1
- package/dist/mybodyshield/components/UserSearchSelect.js +148 -0
- package/dist/mybodyshield/components/UserSearchSelect.js.map +1 -0
- package/dist/mybodyshield/components/index.js +1 -0
- package/dist/mybodyshield/hooks/index.js +1 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +47 -27
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/hooks/useMybComments.js +44 -2
- package/dist/mybodyshield/hooks/useMybComments.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybFiles.js +80 -3
- package/dist/mybodyshield/hooks/useMybFiles.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybTags.js +88 -2
- package/dist/mybodyshield/hooks/useMybTags.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybUsers.js +36 -0
- package/dist/mybodyshield/hooks/useMybUsers.js.map +1 -0
- package/dist/mybodyshield/pages/DashboardPage.js +444 -340
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/_shared/visuals.js +29 -23
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +272 -179
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -257
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +745 -504
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +688 -320
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramsPage.js +282 -234
- package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -1
- package/dist/mybodyshield/pages/progress/ProgressPage.js +447 -299
- package/dist/mybodyshield/pages/progress/ProgressPage.js.map +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +335 -246
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionDetailPage.js +380 -267
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionsPage.js +111 -78
- package/dist/mybodyshield/pages/train/SessionsPage.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +260 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +140 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +109 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +131 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +86 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +168 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +63 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +69 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +41 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +586 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +206 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +58 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +137 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +35 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +94 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +66 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +33 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +28 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js +435 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/{LineChart.js → AreaChart.js} +5 -5
- package/dist/node_modules/recharts/es6/chart/{LineChart.js.map → AreaChart.js.map} +1 -1
- package/package.json +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -473
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Feature as e } from "../../../../../../motion-dom/dist/es/render/Feature.js";
|
|
2
|
+
import { observeIntersection as t } from "./observers.js";
|
|
3
|
+
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
|
|
4
|
+
var n = {
|
|
5
|
+
some: 0,
|
|
6
|
+
all: 1
|
|
7
|
+
}, r = class extends e {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
10
|
+
}
|
|
11
|
+
startObserver() {
|
|
12
|
+
this.stopObserver?.();
|
|
13
|
+
let { viewport: e = {} } = this.node.getProps(), { root: r, margin: i, amount: a = "some", once: o } = e, s = {
|
|
14
|
+
root: r ? r.current : void 0,
|
|
15
|
+
rootMargin: i,
|
|
16
|
+
threshold: typeof a == "number" ? a : n[a]
|
|
17
|
+
};
|
|
18
|
+
this.stopObserver = t(this.node.current, s, (e) => {
|
|
19
|
+
let { isIntersecting: t } = e;
|
|
20
|
+
if (this.isInView === t || (this.isInView = t, o && !t && this.hasEnteredView)) return;
|
|
21
|
+
t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
|
|
22
|
+
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), i = t ? n : r;
|
|
23
|
+
i && i(e);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
mount() {
|
|
27
|
+
this.startObserver();
|
|
28
|
+
}
|
|
29
|
+
update() {
|
|
30
|
+
if (typeof IntersectionObserver > "u") return;
|
|
31
|
+
let { props: e, prevProps: t } = this.node;
|
|
32
|
+
[
|
|
33
|
+
"amount",
|
|
34
|
+
"margin",
|
|
35
|
+
"root"
|
|
36
|
+
].some(i(e, t)) && this.startObserver();
|
|
37
|
+
}
|
|
38
|
+
unmount() {
|
|
39
|
+
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
function i({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
43
|
+
return (n) => e[n] !== t[n];
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { r as InViewFeature };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs"],"sourcesContent":["import { Feature } from 'motion-dom';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.stopObserver?.();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n this.stopObserver = observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() {\n this.stopObserver?.();\n this.hasEnteredView = false;\n this.isInView = false;\n }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAM,IAAiB;CACnB,MAAM;CACN,KAAK;CACR,EACK,IAAN,cAA4B,EAAQ;CAChC,cAAc;AAGV,EAFA,MAAM,GAAG,UAAU,EACnB,KAAK,iBAAiB,IACtB,KAAK,WAAW;;CAEpB,gBAAgB;AACZ,OAAK,gBAAgB;EACrB,IAAM,EAAE,cAAW,EAAE,KAAK,KAAK,KAAK,UAAU,EACxC,EAAE,SAAM,QAAQ,GAAY,YAAS,QAAQ,YAAS,GACtD,IAAU;GACZ,MAAM,IAAO,EAAK,UAAU,KAAA;GAC5B;GACA,WAAW,OAAO,KAAW,WAAW,IAAS,EAAe;GACnE;AA8BD,OAAK,eAAe,EAAoB,KAAK,KAAK,SAAS,IA7B7B,MAAU;GACpC,IAAM,EAAE,sBAAmB;AAW3B,OAPI,KAAK,aAAa,MAEtB,KAAK,WAAW,GAKZ,KAAQ,CAAC,KAAkB,KAAK,gBAChC;AAKJ,GAHS,MACL,KAAK,iBAAiB,KAEtB,KAAK,KAAK,kBACV,KAAK,KAAK,eAAe,UAAU,eAAe,EAAe;GAMrE,IAAM,EAAE,oBAAiB,uBAAoB,KAAK,KAAK,UAAU,EAC3D,IAAW,IAAiB,IAAkB;AACpD,QAAY,EAAS,EAAM;IAE0D;;CAE7F,QAAQ;AACJ,OAAK,eAAe;;CAExB,SAAS;AACL,MAAI,OAAO,uBAAyB,IAChC;EACJ,IAAM,EAAE,UAAO,iBAAc,KAAK;AAElC,EAD0B;GAAC;GAAU;GAAU;GAAO,CAAC,KAAK,EAAyB,GAAO,EAAU,CAAC,IAEnG,KAAK,eAAe;;CAG5B,UAAU;AAGN,EAFA,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,IACtB,KAAK,WAAW;;;AAGxB,SAAS,EAAyB,EAAE,cAAW,EAAE,IAAI,EAAE,UAAU,IAAe,EAAE,KAAK,EAAE,EAAE;AACvF,SAAQ,MAAS,EAAS,OAAU,EAAa"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs
|
|
2
|
+
var e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), n = (t) => {
|
|
3
|
+
let n = e.get(t.target);
|
|
4
|
+
n && n(t);
|
|
5
|
+
}, r = (e) => {
|
|
6
|
+
e.forEach(n);
|
|
7
|
+
};
|
|
8
|
+
function i({ root: e, ...n }) {
|
|
9
|
+
let i = e || document;
|
|
10
|
+
t.has(i) || t.set(i, {});
|
|
11
|
+
let a = t.get(i), o = JSON.stringify(n);
|
|
12
|
+
return a[o] || (a[o] = new IntersectionObserver(r, {
|
|
13
|
+
root: e,
|
|
14
|
+
...n
|
|
15
|
+
})), a[o];
|
|
16
|
+
}
|
|
17
|
+
function a(t, n, r) {
|
|
18
|
+
let a = i(n);
|
|
19
|
+
return e.set(t, r), a.observe(t), () => {
|
|
20
|
+
e.delete(t), a.unobserve(t);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as observeIntersection };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=observers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observers.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs"],"sourcesContent":["/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n//# sourceMappingURL=observers.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAM,oBAAoB,IAAI,SAAS,EAMjC,oBAAY,IAAI,SAAS,EACzB,KAAwB,MAAU;CACpC,IAAM,IAAW,EAAkB,IAAI,EAAM,OAAO;AACpD,MAAY,EAAS,EAAM;GAEzB,KAA4B,MAAY;AAC1C,GAAQ,QAAQ,EAAqB;;AAEzC,SAAS,EAAyB,EAAE,SAAM,GAAG,KAAW;CACpD,IAAM,IAAa,KAAQ;AAI3B,CAAK,EAAU,IAAI,EAAW,IAC1B,EAAU,IAAI,GAAY,EAAE,CAAC;CAEjC,IAAM,IAAgB,EAAU,IAAI,EAAW,EACzC,IAAM,KAAK,UAAU,EAAQ;AAQnC,QAHK,EAAc,OACf,EAAc,KAAO,IAAI,qBAAqB,GAA0B;EAAE;EAAM,GAAG;EAAS,CAAC,GAE1F,EAAc;;AAEzB,SAAS,EAAoB,GAAS,GAAS,GAAU;CACrD,IAAM,IAA4B,EAAyB,EAAQ;AAGnE,QAFA,EAAkB,IAAI,GAAS,EAAS,EACxC,EAA0B,QAAQ,EAAQ,QAC7B;AAET,EADA,EAAkB,OAAO,EAAQ,EACjC,EAA0B,UAAU,EAAQ"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { LayoutGroupContext as e } from "../context/LayoutGroupContext.js";
|
|
3
|
+
import { invariant as t, warning as n } from "../../../../motion-utils/dist/es/errors.js";
|
|
4
|
+
import { MotionConfigContext as r } from "../context/MotionConfigContext.js";
|
|
5
|
+
import { LazyContext as i } from "../context/LazyContext.js";
|
|
6
|
+
import { getInitializedFeatureDefinitions as a } from "./features/definitions.js";
|
|
7
|
+
import { loadFeatures as o } from "./features/load-features.js";
|
|
8
|
+
import { MotionContext as s } from "../context/MotionContext/index.js";
|
|
9
|
+
import { useCreateMotionContext as c } from "../context/MotionContext/create.js";
|
|
10
|
+
import { isSVGComponent as l } from "../render/dom/utils/is-svg-component.js";
|
|
11
|
+
import { useRender as u } from "../render/dom/use-render.js";
|
|
12
|
+
import { useHTMLVisualState as d } from "../render/html/use-html-visual-state.js";
|
|
13
|
+
import { useSVGVisualState as f } from "../render/svg/use-svg-visual-state.js";
|
|
14
|
+
import { motionComponentSymbol as p } from "./utils/symbol.js";
|
|
15
|
+
import { useMotionRef as m } from "./utils/use-motion-ref.js";
|
|
16
|
+
import { useVisualElement as h } from "./utils/use-visual-element.js";
|
|
17
|
+
import { forwardRef as g, useContext as _ } from "react";
|
|
18
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
19
|
+
//#region node_modules/framer-motion/dist/es/motion/index.mjs
|
|
20
|
+
function b(e, { forwardMotionProps: t = !1, type: n } = {}, i, a) {
|
|
21
|
+
i && o(i);
|
|
22
|
+
let b = n ? n === "svg" : l(e), w = b ? f : d;
|
|
23
|
+
function T(n, o) {
|
|
24
|
+
let l, d = {
|
|
25
|
+
..._(r),
|
|
26
|
+
...n,
|
|
27
|
+
layoutId: x(n)
|
|
28
|
+
}, { isStatic: f } = d, p = c(n), g = w(n, f);
|
|
29
|
+
if (!f && typeof window < "u") {
|
|
30
|
+
S(d, i);
|
|
31
|
+
let t = C(d);
|
|
32
|
+
l = t.MeasureLayout, p.visualElement = h(e, g, d, a, t.ProjectionNode, b);
|
|
33
|
+
}
|
|
34
|
+
return y(s.Provider, {
|
|
35
|
+
value: p,
|
|
36
|
+
children: [l && p.visualElement ? v(l, {
|
|
37
|
+
visualElement: p.visualElement,
|
|
38
|
+
...d
|
|
39
|
+
}) : null, u(e, n, m(g, p.visualElement, o), g, f, t, b)]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
T.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
43
|
+
let E = g(T);
|
|
44
|
+
return E[p] = e, E;
|
|
45
|
+
}
|
|
46
|
+
function x({ layoutId: t }) {
|
|
47
|
+
let n = _(e).id;
|
|
48
|
+
return n && t !== void 0 ? n + "-" + t : t;
|
|
49
|
+
}
|
|
50
|
+
function S(e, r) {
|
|
51
|
+
let a = _(i).strict;
|
|
52
|
+
if (process.env.NODE_ENV !== "production" && r && a) {
|
|
53
|
+
let r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
54
|
+
e.ignoreStrict ? n(!1, r, "lazy-strict-mode") : t(!1, r, "lazy-strict-mode");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function C(e) {
|
|
58
|
+
let { drag: t, layout: n } = a();
|
|
59
|
+
if (!t && !n) return {};
|
|
60
|
+
let r = {
|
|
61
|
+
...t,
|
|
62
|
+
...n
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0,
|
|
66
|
+
ProjectionNode: r.ProjectionNode
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { b as createMotionComponent };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/framer-motion/dist/es/motion/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { useRender } from '../render/dom/use-render.mjs';\nimport { isSVGComponent } from '../render/dom/utils/is-svg-component.mjs';\nimport { useHTMLVisualState } from '../render/html/use-html-visual-state.mjs';\nimport { useSVGVisualState } from '../render/svg/use-svg-visual-state.mjs';\nimport { getInitializedFeatureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent(Component, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n /**\n * Determine whether to use SVG or HTML rendering based on:\n * 1. Explicit `type` option (highest priority)\n * 2. Auto-detection via `isSVGComponent`\n */\n const isSVG = type ? type === \"svg\" : isSVGComponent(Component);\n const useVisualState = isSVG ? useSVGVisualState : useHTMLVisualState;\n function MotionDOMComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && typeof window !== \"undefined\") {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode, isSVG);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG)] }));\n }\n MotionDOMComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage, \"lazy-strict-mode\")\n : invariant(false, strictMessage, \"lazy-strict-mode\");\n }\n}\nfunction getProjectionFunctionality(props) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createMotionComponent };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;AA4BA,SAAS,EAAsB,GAAW,EAAE,wBAAqB,IAAO,YAAS,EAAE,EAAE,GAAmB,GAAqB;AACzH,MAAqB,EAAa,EAAkB;CAMpD,IAAM,IAAQ,IAAO,MAAS,QAAQ,EAAe,EAAU,EACzD,IAAiB,IAAQ,IAAoB;CACnD,SAAS,EAAmB,GAAO,GAAa;EAK5C,IAAI,GACE,IAAiB;GACnB,GAAG,EAAW,EAAoB;GAClC,GAAG;GACH,UAAU,EAAY,EAAM;GAC/B,EACK,EAAE,gBAAa,GACf,IAAU,EAAuB,EAAM,EACvC,IAAc,EAAe,GAAO,EAAS;AACnD,MAAI,CAAC,KAAY,OAAO,SAAW,KAAa;AAC5C,KAAc,GAAgB,EAAkB;GAChD,IAAM,IAAmB,EAA2B,EAAe;AAQnE,GAPA,IAAgB,EAAiB,eAOjC,EAAQ,gBAAgB,EAAiB,GAAW,GAAa,GAAgB,GAAqB,EAAiB,gBAAgB,EAAM;;AAMjJ,SAAQ,EAAK,EAAc,UAAU;GAAE,OAAO;GAAS,UAAU,CAAC,KAAiB,EAAQ,gBAAiB,EAAI,GAAe;IAAE,eAAe,EAAQ;IAAe,GAAG;IAAgB,CAAC,GAAI,MAAM,EAAU,GAAW,GAAO,EAAa,GAAa,EAAQ,eAAe,EAAY,EAAE,GAAa,GAAU,GAAoB,EAAM,CAAC;GAAE,CAAC;;AAEzV,GAAmB,cAAc,UAAU,OAAO,KAAc,WAC1D,IACA,UAAU,EAAU,eAAe,EAAU,QAAQ,GAAG;CAC9D,IAAM,IAA4B,EAAW,EAAmB;AAEhE,QADA,EAA0B,KAAyB,GAC5C;;AAEX,SAAS,EAAY,EAAE,eAAY;CAC/B,IAAM,IAAgB,EAAW,EAAmB,CAAC;AACrD,QAAO,KAAiB,MAAa,KAAA,IAC/B,IAAgB,MAAM,IACtB;;AAEV,SAAS,EAAc,GAAgB,GAAmB;CACtD,IAAM,IAAW,EAAW,EAAY,CAAC;AAKzC,KAAA,QAAA,IAAA,aAA6B,gBACzB,KACA,GAAU;EACV,IAAM,IAAgB;AACtB,IAAe,eACT,EAAQ,IAAO,GAAe,mBAAmB,GACjD,EAAU,IAAO,GAAe,mBAAmB;;;AAGjE,SAAS,EAA2B,GAAO;CAEvC,IAAM,EAAE,SAAM,cADa,GAAkC;AAE7D,KAAI,CAAC,KAAQ,CAAC,EACV,QAAO,EAAE;CACb,IAAM,IAAW;EAAE,GAAG;EAAM,GAAG;EAAQ;AACvC,QAAO;EACH,eAAe,GAAM,UAAU,EAAM,IAAI,GAAQ,UAAU,EAAM,GAC3D,EAAS,gBACT,KAAA;EACN,gBAAgB,EAAS;EAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs"],"sourcesContent":["const motionComponentSymbol = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n//# sourceMappingURL=symbol.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAAwB,OAAO,IAAI,wBAAwB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback as e, useInsertionEffect as t, useRef as n } from "react";
|
|
3
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
|
4
|
+
function r(r, i, a) {
|
|
5
|
+
let o = n(a);
|
|
6
|
+
t(() => {
|
|
7
|
+
o.current = a;
|
|
8
|
+
});
|
|
9
|
+
let s = n(null);
|
|
10
|
+
return e((e) => {
|
|
11
|
+
e && r.onMount?.(e), i && (e ? i.mount(e) : i.unmount());
|
|
12
|
+
let t = o.current;
|
|
13
|
+
if (typeof t == "function") if (e) {
|
|
14
|
+
let n = t(e);
|
|
15
|
+
typeof n == "function" && (s.current = n);
|
|
16
|
+
} else s.current ? (s.current(), s.current = null) : t(e);
|
|
17
|
+
else t && (t.current = e);
|
|
18
|
+
}, [i]);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as useMotionRef };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=use-motion-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-motion-ref.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs"],"sourcesContent":["\"use client\";\nimport { useRef, useInsertionEffect, useCallback } from 'react';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n /**\n * Store externalRef in a ref to avoid including it in the useCallback\n * dependency array. Including externalRef in dependencies causes issues\n * with libraries like Radix UI that create new callback refs on each render\n * when using asChild - this would cause the callback to be recreated,\n * triggering element remounts and breaking AnimatePresence exit animations.\n */\n const externalRefContainer = useRef(externalRef);\n useInsertionEffect(() => {\n externalRefContainer.current = externalRef;\n });\n // Store cleanup function returned by callback refs (React 19 feature)\n const refCleanup = useRef(null);\n return useCallback((instance) => {\n if (instance) {\n visualState.onMount?.(instance);\n }\n if (visualElement) {\n instance ? visualElement.mount(instance) : visualElement.unmount();\n }\n const ref = externalRefContainer.current;\n if (typeof ref === \"function\") {\n if (instance) {\n const cleanup = ref(instance);\n if (typeof cleanup === \"function\") {\n refCleanup.current = cleanup;\n }\n }\n else if (refCleanup.current) {\n refCleanup.current();\n refCleanup.current = null;\n }\n else {\n ref(instance);\n }\n }\n else if (ref) {\n ref.current = instance;\n }\n }, [visualElement]);\n}\n\nexport { useMotionRef };\n//# sourceMappingURL=use-motion-ref.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAOA,SAAS,EAAa,GAAa,GAAe,GAAa;CAQ3D,IAAM,IAAuB,EAAO,EAAY;AAChD,SAAyB;AACrB,IAAqB,UAAU;GACjC;CAEF,IAAM,IAAa,EAAO,KAAK;AAC/B,QAAO,GAAa,MAAa;AAI7B,EAHI,KACA,EAAY,UAAU,EAAS,EAE/B,MACA,IAAW,EAAc,MAAM,EAAS,GAAG,EAAc,SAAS;EAEtE,IAAM,IAAM,EAAqB;AACjC,MAAI,OAAO,KAAQ,WACf,KAAI,GAAU;GACV,IAAM,IAAU,EAAI,EAAS;AAC7B,GAAI,OAAO,KAAY,eACnB,EAAW,UAAU;SAGpB,EAAW,WAChB,EAAW,SAAS,EACpB,EAAW,UAAU,QAGrB,EAAI,EAAS;OAGZ,MACL,EAAI,UAAU;IAEnB,CAAC,EAAc,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIsomorphicLayoutEffect as e } from "../../utils/use-isomorphic-effect.js";
|
|
3
|
+
import { PresenceContext as t } from "../../context/PresenceContext.js";
|
|
4
|
+
import { optimizedAppearDataAttribute as n } from "../../../../../motion-dom/dist/es/animation/optimized-appear/data-id.js";
|
|
5
|
+
import { MotionConfigContext as r } from "../../context/MotionConfigContext.js";
|
|
6
|
+
import { LazyContext as i } from "../../context/LazyContext.js";
|
|
7
|
+
import { MotionContext as a } from "../../context/MotionContext/index.js";
|
|
8
|
+
import { SwitchLayoutGroupContext as o } from "../../context/SwitchLayoutGroupContext.js";
|
|
9
|
+
import { isRefObject as s } from "../../utils/is-ref-object.js";
|
|
10
|
+
import { useContext as c, useEffect as l, useInsertionEffect as u, useRef as d } from "react";
|
|
11
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
|
12
|
+
function f(s, f, m, h, g, _) {
|
|
13
|
+
let { visualElement: v } = c(a), y = c(i), b = c(t), x = c(r), S = x.reducedMotion, C = x.skipAnimations, w = d(null), T = d(!1);
|
|
14
|
+
h ||= y.renderer, !w.current && h && (w.current = h(s, {
|
|
15
|
+
visualState: f,
|
|
16
|
+
parent: v,
|
|
17
|
+
props: m,
|
|
18
|
+
presenceContext: b,
|
|
19
|
+
blockInitialAnimation: b ? b.initial === !1 : !1,
|
|
20
|
+
reducedMotionConfig: S,
|
|
21
|
+
skipAnimations: C,
|
|
22
|
+
isSVG: _
|
|
23
|
+
}), T.current && w.current && (w.current.manuallyAnimateOnMount = !0));
|
|
24
|
+
let E = w.current, D = c(o);
|
|
25
|
+
E && !E.projection && g && (E.type === "html" || E.type === "svg") && p(w.current, m, g, D);
|
|
26
|
+
let O = d(!1);
|
|
27
|
+
u(() => {
|
|
28
|
+
E && O.current && E.update(m, b);
|
|
29
|
+
});
|
|
30
|
+
let k = m[n], A = d(!!k && typeof window < "u" && !window.MotionHandoffIsComplete?.(k) && window.MotionHasOptimisedAnimation?.(k));
|
|
31
|
+
return e(() => {
|
|
32
|
+
T.current = !0, E && (O.current = !0, window.MotionIsMounted = !0, E.updateFeatures(), E.scheduleRenderMicrotask(), A.current && E.animationState && E.animationState.animateChanges());
|
|
33
|
+
}), l(() => {
|
|
34
|
+
E && (!A.current && E.animationState && E.animationState.animateChanges(), A.current &&= (queueMicrotask(() => {
|
|
35
|
+
window.MotionHandoffMarkAsComplete?.(k);
|
|
36
|
+
}), !1), E.enteringChildren = void 0);
|
|
37
|
+
}), E;
|
|
38
|
+
}
|
|
39
|
+
function p(e, t, n, r) {
|
|
40
|
+
let { layoutId: i, layout: a, drag: o, dragConstraints: c, layoutScroll: l, layoutRoot: u, layoutAnchor: d, layoutCrossfade: f } = t;
|
|
41
|
+
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : m(e.parent)), e.projection.setOptions({
|
|
42
|
+
layoutId: i,
|
|
43
|
+
layout: a,
|
|
44
|
+
alwaysMeasureLayout: !!o || c && s(c),
|
|
45
|
+
visualElement: e,
|
|
46
|
+
animationType: typeof a == "string" ? a : "both",
|
|
47
|
+
initialPromotionConfig: r,
|
|
48
|
+
crossfade: f,
|
|
49
|
+
layoutScroll: l,
|
|
50
|
+
layoutRoot: u,
|
|
51
|
+
layoutAnchor: d
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function m(e) {
|
|
55
|
+
if (e) return e.options.allowProjection === !1 ? m(e.parent) : e.projection;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { f as useVisualElement };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=use-visual-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-visual-element.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs"],"sourcesContent":["\"use client\";\nimport { optimizedAppearDataAttribute } from 'motion-dom';\nimport { useContext, useRef, useInsertionEffect, useEffect } from 'react';\nimport { LazyContext } from '../../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../context/SwitchLayoutGroupContext.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\nfunction useVisualElement(Component, visualState, props, createVisualElement, ProjectionNodeConstructor, isSVG) {\n const { visualElement: parent } = useContext(MotionContext);\n const lazyContext = useContext(LazyContext);\n const presenceContext = useContext(PresenceContext);\n const motionConfig = useContext(MotionConfigContext);\n const reducedMotionConfig = motionConfig.reducedMotion;\n const skipAnimations = motionConfig.skipAnimations;\n const visualElementRef = useRef(null);\n /**\n * Track whether the component has been through React's commit phase.\n * Used to detect when LazyMotion features load after the component has mounted.\n */\n const hasMountedOnce = useRef(false);\n /**\n * If we haven't preloaded a renderer, check to see if we have one lazy-loaded\n */\n createVisualElement =\n createVisualElement ||\n lazyContext.renderer;\n if (!visualElementRef.current && createVisualElement) {\n visualElementRef.current = createVisualElement(Component, {\n visualState,\n parent,\n props,\n presenceContext,\n blockInitialAnimation: presenceContext\n ? presenceContext.initial === false\n : false,\n reducedMotionConfig,\n skipAnimations,\n isSVG,\n });\n /**\n * If the component has already mounted before features loaded (e.g. via\n * LazyMotion with async feature loading), we need to force the initial\n * animation to run. Otherwise state changes that occurred before features\n * loaded will be lost and the element will snap to its final state.\n */\n if (hasMountedOnce.current && visualElementRef.current) {\n visualElementRef.current.manuallyAnimateOnMount = true;\n }\n }\n const visualElement = visualElementRef.current;\n /**\n * Load Motion gesture and animation features. These are rendered as renderless\n * components so each feature can optionally make use of React lifecycle methods.\n */\n const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);\n if (visualElement &&\n !visualElement.projection &&\n ProjectionNodeConstructor &&\n (visualElement.type === \"html\" || visualElement.type === \"svg\")) {\n createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);\n }\n const isMounted = useRef(false);\n useInsertionEffect(() => {\n /**\n * Check the component has already mounted before calling\n * `update` unnecessarily. This ensures we skip the initial update.\n */\n if (visualElement && isMounted.current) {\n visualElement.update(props, presenceContext);\n }\n });\n /**\n * Cache this value as we want to know whether HandoffAppearAnimations\n * was present on initial render - it will be deleted after this.\n */\n const optimisedAppearId = props[optimizedAppearDataAttribute];\n const wantsHandoff = useRef(Boolean(optimisedAppearId) &&\n typeof window !== \"undefined\" &&\n !window.MotionHandoffIsComplete?.(optimisedAppearId) &&\n window.MotionHasOptimisedAnimation?.(optimisedAppearId));\n useIsomorphicLayoutEffect(() => {\n /**\n * Track that this component has mounted. This is used to detect when\n * LazyMotion features load after the component has already committed.\n */\n hasMountedOnce.current = true;\n if (!visualElement)\n return;\n isMounted.current = true;\n window.MotionIsMounted = true;\n visualElement.updateFeatures();\n visualElement.scheduleRenderMicrotask();\n /**\n * Ideally this function would always run in a useEffect.\n *\n * However, if we have optimised appear animations to handoff from,\n * it needs to happen synchronously to ensure there's no flash of\n * incorrect styles in the event of a hydration error.\n *\n * So if we detect a situtation where optimised appear animations\n * are running, we use useLayoutEffect to trigger animations.\n */\n if (wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n });\n useEffect(() => {\n if (!visualElement)\n return;\n if (!wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n if (wantsHandoff.current) {\n // This ensures all future calls to animateChanges() in this component will run in useEffect\n queueMicrotask(() => {\n window.MotionHandoffMarkAsComplete?.(optimisedAppearId);\n });\n wantsHandoff.current = false;\n }\n /**\n * Now we've finished triggering animations for this element we\n * can wipe the enteringChildren set for the next render.\n */\n visualElement.enteringChildren = undefined;\n });\n return visualElement;\n}\nfunction createProjectionNode(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {\n const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, layoutAnchor, layoutCrossfade, } = props;\n visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props[\"data-framer-portal-id\"]\n ? undefined\n : getClosestProjectingNode(visualElement.parent));\n visualElement.projection.setOptions({\n layoutId,\n layout,\n alwaysMeasureLayout: Boolean(drag) || (dragConstraints && isRefObject(dragConstraints)),\n visualElement,\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof layout === \"string\" ? layout : \"both\",\n initialPromotionConfig,\n crossfade: layoutCrossfade,\n layoutScroll,\n layoutRoot,\n layoutAnchor,\n });\n}\nfunction getClosestProjectingNode(visualElement) {\n if (!visualElement)\n return undefined;\n return visualElement.options.allowProjection !== false\n ? visualElement.projection\n : getClosestProjectingNode(visualElement.parent);\n}\n\nexport { useVisualElement };\n//# sourceMappingURL=use-visual-element.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AAWA,SAAS,EAAiB,GAAW,GAAa,GAAO,GAAqB,GAA2B,GAAO;CAC5G,IAAM,EAAE,eAAe,MAAW,EAAW,EAAc,EACrD,IAAc,EAAW,EAAY,EACrC,IAAkB,EAAW,EAAgB,EAC7C,IAAe,EAAW,EAAoB,EAC9C,IAAsB,EAAa,eACnC,IAAiB,EAAa,gBAC9B,IAAmB,EAAO,KAAK,EAK/B,IAAiB,EAAO,GAAM;AAOpC,CAHA,MAEQ,EAAY,UAChB,CAAC,EAAiB,WAAW,MAC7B,EAAiB,UAAU,EAAoB,GAAW;EACtD;EACA;EACA;EACA;EACA,uBAAuB,IACjB,EAAgB,YAAY,KAC5B;EACN;EACA;EACA;EACH,CAAC,EAOE,EAAe,WAAW,EAAiB,YAC3C,EAAiB,QAAQ,yBAAyB;CAG1D,IAAM,IAAgB,EAAiB,SAKjC,IAA2B,EAAW,EAAyB;AACrE,CAAI,KACA,CAAC,EAAc,cACf,MACC,EAAc,SAAS,UAAU,EAAc,SAAS,UACzD,EAAqB,EAAiB,SAAS,GAAO,GAA2B,EAAyB;CAE9G,IAAM,IAAY,EAAO,GAAM;AAC/B,SAAyB;AAKrB,EAAI,KAAiB,EAAU,WAC3B,EAAc,OAAO,GAAO,EAAgB;GAElD;CAKF,IAAM,IAAoB,EAAM,IAC1B,IAAe,EAAO,EAAQ,KAChC,OAAO,SAAW,OAClB,CAAC,OAAO,0BAA0B,EAAkB,IACpD,OAAO,8BAA8B,EAAkB,CAAC;AA8C5D,QA7CA,QAAgC;AAK5B,IAAe,UAAU,IACpB,MAEL,EAAU,UAAU,IACpB,OAAO,kBAAkB,IACzB,EAAc,gBAAgB,EAC9B,EAAc,yBAAyB,EAWnC,EAAa,WAAW,EAAc,kBACtC,EAAc,eAAe,gBAAgB;GAEnD,EACF,QAAgB;AACP,QAED,CAAC,EAAa,WAAW,EAAc,kBACvC,EAAc,eAAe,gBAAgB,EAEjD,AAKI,EAAa,aAHb,qBAAqB;AACjB,UAAO,8BAA8B,EAAkB;IACzD,EACqB,KAM3B,EAAc,mBAAmB,KAAA;GACnC,EACK;;AAEX,SAAS,EAAqB,GAAe,GAAO,GAA2B,GAAwB;CACnG,IAAM,EAAE,aAAU,WAAQ,SAAM,oBAAiB,iBAAc,eAAY,iBAAc,uBAAqB;AAI9G,CAHA,EAAc,aAAa,IAAI,EAA0B,EAAc,cAAc,EAAM,2BACrF,KAAA,IACA,EAAyB,EAAc,OAAO,CAAC,EACrD,EAAc,WAAW,WAAW;EAChC;EACA;EACA,qBAAqB,EAAQ,KAAU,KAAmB,EAAY,EAAgB;EACtF;EAQA,eAAe,OAAO,KAAW,WAAW,IAAS;EACrD;EACA,WAAW;EACX;EACA;EACA;EACH,CAAC;;AAEN,SAAS,EAAyB,GAAe;AACxC,OAEL,QAAO,EAAc,QAAQ,oBAAoB,KAE3C,EAAyB,EAAc,OAAO,GAD9C,EAAc"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useConstant as e } from "../../utils/use-constant.js";
|
|
3
|
+
import { PresenceContext as t } from "../../context/PresenceContext.js";
|
|
4
|
+
import { resolveVariantFromProps as n } from "../../../../../motion-dom/dist/es/render/utils/resolve-variants.js";
|
|
5
|
+
import { isAnimationControls as r } from "../../../../../motion-dom/dist/es/render/utils/is-animation-controls.js";
|
|
6
|
+
import { isControllingVariants as i, isVariantNode as a } from "../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.js";
|
|
7
|
+
import { resolveMotionValue as o } from "../../../../../motion-dom/dist/es/value/utils/resolve-motion-value.js";
|
|
8
|
+
import { MotionContext as s } from "../../context/MotionContext/index.js";
|
|
9
|
+
import { useContext as c } from "react";
|
|
10
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
|
|
11
|
+
function l({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
|
|
12
|
+
return {
|
|
13
|
+
latestValues: u(n, r, i, e),
|
|
14
|
+
renderState: t()
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function u(e, t, s, c) {
|
|
18
|
+
let l = {}, u = c(e, {});
|
|
19
|
+
for (let e in u) l[e] = o(u[e]);
|
|
20
|
+
let { initial: d, animate: f } = e, p = i(e), m = a(e);
|
|
21
|
+
t && m && !p && e.inherit !== !1 && (d === void 0 && (d = t.initial), f === void 0 && (f = t.animate));
|
|
22
|
+
let h = s ? s.initial === !1 : !1;
|
|
23
|
+
h ||= d === !1;
|
|
24
|
+
let g = h ? f : d;
|
|
25
|
+
if (g && typeof g != "boolean" && !r(g)) {
|
|
26
|
+
let t = Array.isArray(g) ? g : [g];
|
|
27
|
+
for (let r = 0; r < t.length; r++) {
|
|
28
|
+
let i = n(e, t[r]);
|
|
29
|
+
if (i) {
|
|
30
|
+
let { transitionEnd: e, transition: t, ...n } = i;
|
|
31
|
+
for (let e in n) {
|
|
32
|
+
let t = n[e];
|
|
33
|
+
if (Array.isArray(t)) {
|
|
34
|
+
let e = h ? t.length - 1 : 0;
|
|
35
|
+
t = t[e];
|
|
36
|
+
}
|
|
37
|
+
t !== null && (l[e] = t);
|
|
38
|
+
}
|
|
39
|
+
for (let t in e) l[t] = e[t];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return l;
|
|
44
|
+
}
|
|
45
|
+
var d = (n) => (r, i) => {
|
|
46
|
+
let a = c(s), o = c(t), u = () => l(n, r, a, o);
|
|
47
|
+
return i ? u() : e(u);
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { d as makeUseVisualState };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=use-visual-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-visual-state.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs"],"sourcesContent":["\"use client\";\nimport { resolveMotionValue, isControllingVariants, isVariantNode, isAnimationControls, resolveVariantFromProps } from 'motion-dom';\nimport { useContext } from 'react';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\n\nfunction makeState({ scrapeMotionValuesFromProps, createRenderState, }, props, context, presenceContext) {\n const state = {\n latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),\n renderState: createRenderState(),\n };\n return state;\n}\nfunction makeLatestValues(props, context, presenceContext, scrapeMotionValues) {\n const values = {};\n const motionValues = scrapeMotionValues(props, {});\n for (const key in motionValues) {\n values[key] = resolveMotionValue(motionValues[key]);\n }\n let { initial, animate } = props;\n const isControllingVariants$1 = isControllingVariants(props);\n const isVariantNode$1 = isVariantNode(props);\n if (context &&\n isVariantNode$1 &&\n !isControllingVariants$1 &&\n props.inherit !== false) {\n if (initial === undefined)\n initial = context.initial;\n if (animate === undefined)\n animate = context.animate;\n }\n let isInitialAnimationBlocked = presenceContext\n ? presenceContext.initial === false\n : false;\n isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n const variantToSet = isInitialAnimationBlocked ? animate : initial;\n if (variantToSet &&\n typeof variantToSet !== \"boolean\" &&\n !isAnimationControls(variantToSet)) {\n const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];\n for (let i = 0; i < list.length; i++) {\n const resolved = resolveVariantFromProps(props, list[i]);\n if (resolved) {\n const { transitionEnd, transition, ...target } = resolved;\n for (const key in target) {\n let valueTarget = target[key];\n if (Array.isArray(valueTarget)) {\n /**\n * Take final keyframe if the initial animation is blocked because\n * we want to initialise at the end of that blocked animation.\n */\n const index = isInitialAnimationBlocked\n ? valueTarget.length - 1\n : 0;\n valueTarget = valueTarget[index];\n }\n if (valueTarget !== null) {\n values[key] = valueTarget;\n }\n }\n for (const key in transitionEnd) {\n values[key] = transitionEnd[key];\n }\n }\n }\n }\n return values;\n}\nconst makeUseVisualState = (config) => (props, isStatic) => {\n const context = useContext(MotionContext);\n const presenceContext = useContext(PresenceContext);\n const make = () => makeState(config, props, context, presenceContext);\n return isStatic ? make() : useConstant(make);\n};\n\nexport { makeUseVisualState };\n//# sourceMappingURL=use-visual-state.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAOA,SAAS,EAAU,EAAE,gCAA6B,wBAAsB,GAAO,GAAS,GAAiB;AAKrG,QAJc;EACV,cAAc,EAAiB,GAAO,GAAS,GAAiB,EAA4B;EAC5F,aAAa,GAAmB;EACnC;;AAGL,SAAS,EAAiB,GAAO,GAAS,GAAiB,GAAoB;CAC3E,IAAM,IAAS,EAAE,EACX,IAAe,EAAmB,GAAO,EAAE,CAAC;AAClD,MAAK,IAAM,KAAO,EACd,GAAO,KAAO,EAAmB,EAAa,GAAK;CAEvD,IAAI,EAAE,YAAS,eAAY,GACrB,IAA0B,EAAsB,EAAM,EACtD,IAAkB,EAAc,EAAM;AAC5C,CAAI,KACA,KACA,CAAC,KACD,EAAM,YAAY,OACd,MAAY,KAAA,MACZ,IAAU,EAAQ,UAClB,MAAY,KAAA,MACZ,IAAU,EAAQ;CAE1B,IAAI,IAA4B,IAC1B,EAAgB,YAAY,KAC5B;AACN,OAAyD,MAAY;CACrE,IAAM,IAAe,IAA4B,IAAU;AAC3D,KAAI,KACA,OAAO,KAAiB,aACxB,CAAC,EAAoB,EAAa,EAAE;EACpC,IAAM,IAAO,MAAM,QAAQ,EAAa,GAAG,IAAe,CAAC,EAAa;AACxE,OAAK,IAAI,IAAI,GAAG,IAAI,EAAK,QAAQ,KAAK;GAClC,IAAM,IAAW,EAAwB,GAAO,EAAK,GAAG;AACxD,OAAI,GAAU;IACV,IAAM,EAAE,kBAAe,eAAY,GAAG,MAAW;AACjD,SAAK,IAAM,KAAO,GAAQ;KACtB,IAAI,IAAc,EAAO;AACzB,SAAI,MAAM,QAAQ,EAAY,EAAE;MAK5B,IAAM,IAAQ,IACR,EAAY,SAAS,IACrB;AACN,UAAc,EAAY;;AAE9B,KAAI,MAAgB,SAChB,EAAO,KAAO;;AAGtB,SAAK,IAAM,KAAO,EACd,GAAO,KAAO,EAAc;;;;AAK5C,QAAO;;AAEX,IAAM,KAAsB,OAAY,GAAO,MAAa;CACxD,IAAM,IAAU,EAAW,EAAc,EACnC,IAAkB,EAAW,EAAgB,EAC7C,UAAa,EAAU,GAAQ,GAAO,GAAS,EAAgB;AACrE,QAAO,IAAW,GAAM,GAAG,EAAY,EAAK"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
|
|
2
|
+
var e = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
|
|
3
|
+
function t(t) {
|
|
4
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || e.has(t);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as isValidMotionProp };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=valid-prop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valid-prop.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs"],"sourcesContent":["/**\n * A list of all valid MotionProps.\n *\n * @privateRemarks\n * This doesn't throw if a `MotionProp` name is missing - it should.\n */\nconst validMotionProps = new Set([\n \"animate\",\n \"exit\",\n \"variants\",\n \"initial\",\n \"style\",\n \"values\",\n \"variants\",\n \"transition\",\n \"transformTemplate\",\n \"custom\",\n \"inherit\",\n \"onBeforeLayoutMeasure\",\n \"onAnimationStart\",\n \"onAnimationComplete\",\n \"onUpdate\",\n \"onDragStart\",\n \"onDrag\",\n \"onDragEnd\",\n \"onMeasureDragConstraints\",\n \"onDirectionLock\",\n \"onDragTransitionEnd\",\n \"_dragX\",\n \"_dragY\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onViewportEnter\",\n \"onViewportLeave\",\n \"globalTapTarget\",\n \"propagate\",\n \"ignoreStrict\",\n \"viewport\",\n]);\n/**\n * Check whether a prop name is a valid `MotionProp` key.\n *\n * @param key - Name of the property to check\n * @returns `true` is key is a valid `MotionProp`.\n *\n * @public\n */\nfunction isValidMotionProp(key) {\n return (key.startsWith(\"while\") ||\n (key.startsWith(\"drag\") && key !== \"draggable\") ||\n key.startsWith(\"layout\") ||\n key.startsWith(\"onTap\") ||\n key.startsWith(\"onPan\") ||\n key.startsWith(\"onLayout\") ||\n validMotionProps.has(key));\n}\n\nexport { isValidMotionProp };\n//# sourceMappingURL=valid-prop.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAMA,IAAM,IAAmB,IAAI,IAAI,gZAgChC,CAAC;AASF,SAAS,EAAkB,GAAK;AAC5B,QAAQ,EAAI,WAAW,QAAQ,IAC1B,EAAI,WAAW,OAAO,IAAI,MAAQ,eACnC,EAAI,WAAW,SAAS,IACxB,EAAI,WAAW,QAAQ,IACvB,EAAI,WAAW,QAAQ,IACvB,EAAI,WAAW,WAAW,IAC1B,EAAiB,IAAI,EAAI"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { warnOnce as e } from "../../../../../motion-utils/dist/es/warn-once.js";
|
|
2
|
+
import { createMotionComponent as t } from "../../motion/index.js";
|
|
3
|
+
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
if (typeof Proxy > "u") return t;
|
|
6
|
+
let i = /* @__PURE__ */ new Map(), a = (e, i) => t(e, i, n, r);
|
|
7
|
+
return new Proxy((t, n) => (process.env.NODE_ENV !== "production" && e(!1, "motion() is deprecated. Use motion.create() instead."), a(t, n)), { get: (e, o) => o === "create" ? a : (i.has(o) || i.set(o, t(o, void 0, n, r)), i.get(o)) });
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as createMotionProxy };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=create-proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-proxy.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/render/components/create-proxy.mjs"],"sourcesContent":["import { warnOnce } from 'motion-utils';\nimport { createMotionComponent } from '../../motion/index.mjs';\n\nfunction createMotionProxy(preloadedFeatures, createVisualElement) {\n if (typeof Proxy === \"undefined\") {\n return createMotionComponent;\n }\n /**\n * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.\n * Rather than generating them anew every render.\n */\n const componentCache = new Map();\n const factory = (Component, options) => {\n return createMotionComponent(Component, options, preloadedFeatures, createVisualElement);\n };\n /**\n * Support for deprecated`motion(Component)` pattern\n */\n const deprecatedFactoryFunction = (Component, options) => {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, \"motion() is deprecated. Use motion.create() instead.\");\n }\n return factory(Component, options);\n };\n return new Proxy(deprecatedFactoryFunction, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (_target, key) => {\n if (key === \"create\")\n return factory;\n /**\n * If this element doesn't exist in the component cache, create it and cache.\n */\n if (!componentCache.has(key)) {\n componentCache.set(key, createMotionComponent(key, undefined, preloadedFeatures, createVisualElement));\n }\n return componentCache.get(key);\n },\n });\n}\n\nexport { createMotionProxy };\n//# sourceMappingURL=create-proxy.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAS,EAAkB,GAAmB,GAAqB;AAC/D,KAAI,OAAO,QAAU,IACjB,QAAO;CAMX,IAAM,oBAAiB,IAAI,KAAK,EAC1B,KAAW,GAAW,MACjB,EAAsB,GAAW,GAAS,GAAmB,EAAoB;AAW5F,QAAO,IAAI,OANwB,GAAW,OAC1C,QAAA,IAAA,aAA6B,gBACzB,EAAS,IAAO,uDAAuD,EAEpE,EAAQ,GAAW,EAAQ,GAEM,EAMxC,MAAM,GAAS,MACP,MAAQ,WACD,KAIN,EAAe,IAAI,EAAI,IACxB,EAAe,IAAI,GAAK,EAAsB,GAAK,KAAA,GAAW,GAAmB,EAAoB,CAAC,EAEnG,EAAe,IAAI,EAAI,GAErC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { animations as e } from "../../../motion/features/animations.js";
|
|
2
|
+
import { drag as t } from "../../../motion/features/drag.js";
|
|
3
|
+
import { gestureAnimations as n } from "../../../motion/features/gestures.js";
|
|
4
|
+
import { layout as r } from "../../../motion/features/layout.js";
|
|
5
|
+
//#region node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs
|
|
6
|
+
var i = {
|
|
7
|
+
...e,
|
|
8
|
+
...n,
|
|
9
|
+
...t,
|
|
10
|
+
...r
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as featureBundle };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=feature-bundle.js.map
|
package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-bundle.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs"],"sourcesContent":["import { animations } from '../../../motion/features/animations.mjs';\nimport { drag } from '../../../motion/features/drag.mjs';\nimport { gestureAnimations } from '../../../motion/features/gestures.mjs';\nimport { layout } from '../../../motion/features/layout.mjs';\n\nconst featureBundle = {\n ...animations,\n ...gestureAnimations,\n ...drag,\n ...layout,\n};\n\nexport { featureBundle };\n//# sourceMappingURL=feature-bundle.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,IAAM,IAAgB;CAClB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACN"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createMotionProxy as e } from "../create-proxy.js";
|
|
2
|
+
import { createDomVisualElement as t } from "../../dom/create-visual-element.js";
|
|
3
|
+
import { featureBundle as n } from "./feature-bundle.js";
|
|
4
|
+
//#region node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
|
|
5
|
+
var r = /* @__PURE__ */ e(n, t);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { r as motion };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"],"sourcesContent":["import { createDomVisualElement } from '../../dom/create-visual-element.mjs';\nimport { createMotionProxy } from '../create-proxy.mjs';\nimport { featureBundle } from './feature-bundle.mjs';\n\nconst motion = /*@__PURE__*/ createMotionProxy(featureBundle, createDomVisualElement);\n\nexport { motion };\n//# sourceMappingURL=proxy.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAM,IAAuB,kBAAkB,GAAe,EAAuB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLVisualElement as e } from "../../../../../motion-dom/dist/es/render/html/HTMLVisualElement.js";
|
|
2
|
+
import { SVGVisualElement as t } from "../../../../../motion-dom/dist/es/render/svg/SVGVisualElement.js";
|
|
3
|
+
import { isSVGComponent as n } from "./utils/is-svg-component.js";
|
|
4
|
+
import { Fragment as r } from "react";
|
|
5
|
+
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
|
|
6
|
+
var i = (i, a) => a.isSVG ?? n(i) ? new t(a) : new e(a, { allowProjection: i !== r });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { i as createDomVisualElement };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=create-visual-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-visual-element.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs"],"sourcesContent":["import { SVGVisualElement, HTMLVisualElement } from 'motion-dom';\nimport { Fragment } from 'react';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\n\nconst createDomVisualElement = (Component, options) => {\n /**\n * Use explicit isSVG override if provided, otherwise auto-detect\n */\n const isSVG = options.isSVG ?? isSVGComponent(Component);\n return isSVG\n ? new SVGVisualElement(options)\n : new HTMLVisualElement(options, {\n allowProjection: Component !== Fragment,\n });\n};\n\nexport { createDomVisualElement };\n//# sourceMappingURL=create-visual-element.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAIA,IAAM,KAA0B,GAAW,MAIzB,EAAQ,SAAS,EAAe,EAAU,GAElD,IAAI,EAAiB,EAAQ,GAC7B,IAAI,EAAkB,GAAS,EAC7B,iBAAiB,MAAc,GAClC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { isMotionValue as e } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
|
|
3
|
+
import { filterProps as t } from "./utils/filter-props.js";
|
|
4
|
+
import { useHTMLProps as n } from "../html/use-props.js";
|
|
5
|
+
import { useSVGProps as r } from "../svg/use-props.js";
|
|
6
|
+
import { isSVGComponent as i } from "./utils/is-svg-component.js";
|
|
7
|
+
import { Fragment as a, createElement as o, useMemo as s } from "react";
|
|
8
|
+
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
|
|
9
|
+
function c(c, l, u, { latestValues: d }, f, p = !1, m) {
|
|
10
|
+
let h = (m ?? i(c) ? r : n)(l, d, f, c), g = t(l, typeof c == "string", p), _ = c === a ? {} : {
|
|
11
|
+
...g,
|
|
12
|
+
...h,
|
|
13
|
+
ref: u
|
|
14
|
+
}, { children: v } = l, y = s(() => e(v) ? v.get() : v, [v]);
|
|
15
|
+
return o(c, {
|
|
16
|
+
..._,
|
|
17
|
+
children: y
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { c as useRender };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=use-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-render.js","names":[],"sources":["../../../../../../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs"],"sourcesContent":["\"use client\";\nimport { isMotionValue } from 'motion-dom';\nimport { Fragment, useMemo, createElement } from 'react';\nimport { useHTMLProps } from '../html/use-props.mjs';\nimport { useSVGProps } from '../svg/use-props.mjs';\nimport { filterProps } from './utils/filter-props.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\n\nfunction useRender(Component, props, ref, { latestValues, }, isStatic, forwardMotionProps = false, isSVG) {\n const useVisualProps = (isSVG ?? isSVGComponent(Component)) ? useSVGProps : useHTMLProps;\n const visualProps = useVisualProps(props, latestValues, isStatic, Component);\n const filteredProps = filterProps(props, typeof Component === \"string\", forwardMotionProps);\n const elementProps = Component !== Fragment ? { ...filteredProps, ...visualProps, ref } : {};\n /**\n * If component has been handed a motion value as its child,\n * memoise its initial value and render that. Subsequent updates\n * will be handled by the onChange handler\n */\n const { children } = props;\n const renderedChildren = useMemo(() => (isMotionValue(children) ? children.get() : children), [children]);\n return createElement(Component, {\n ...elementProps,\n children: renderedChildren,\n });\n}\n\nexport { useRender };\n//# sourceMappingURL=use-render.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAQA,SAAS,EAAU,GAAW,GAAO,GAAK,EAAE,mBAAiB,GAAU,IAAqB,IAAO,GAAO;CAEtG,IAAM,KADkB,KAAS,EAAe,EAAU,GAAI,IAAc,GACzC,GAAO,GAAc,GAAU,EAAU,EACtE,IAAgB,EAAY,GAAO,OAAO,KAAc,UAAU,EAAmB,EACrF,IAAe,MAAc,IAAuD,EAAE,GAA9C;EAAE,GAAG;EAAe,GAAG;EAAa;EAAK,EAMjF,EAAE,gBAAa,GACf,IAAmB,QAAe,EAAc,EAAS,GAAG,EAAS,KAAK,GAAG,GAAW,CAAC,EAAS,CAAC;AACzG,QAAO,EAAc,GAAW;EAC5B,GAAG;EACH,UAAU;EACb,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __toCommonJS as e } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { isMotionValue as t } from "../../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
|
|
3
|
+
import { isValidMotionProp as n } from "../../../motion/utils/valid-prop.js";
|
|
4
|
+
import { init_is_prop_valid_framer_motion as r, is_prop_valid_framer_motion_exports as i } from "../../../../../../../_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js";
|
|
5
|
+
//#region node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
|
|
6
|
+
var a = (e) => !n(e);
|
|
7
|
+
function o(e) {
|
|
8
|
+
typeof e == "function" && (a = (t) => t.startsWith("on") ? !n(t) : e(t));
|
|
9
|
+
}
|
|
10
|
+
try {
|
|
11
|
+
o((r(), e(i)).default);
|
|
12
|
+
} catch {}
|
|
13
|
+
function s(e, r, i) {
|
|
14
|
+
let o = {};
|
|
15
|
+
for (let s in e) s === "values" && typeof e.values == "object" || t(e[s]) || (a(s) || i === !0 && n(s) || !r && !n(s) || e.draggable && s.startsWith("onDrag")) && (o[s] = e[s]);
|
|
16
|
+
return o;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { s as filterProps };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=filter-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-props.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs"],"sourcesContent":["import { isMotionValue } from 'motion-dom';\nimport { isValidMotionProp } from '../../../motion/utils/valid-prop.mjs';\n\nlet shouldForward = (key) => !isValidMotionProp(key);\nfunction loadExternalIsValidProp(isValidProp) {\n if (typeof isValidProp !== \"function\")\n return;\n // Explicitly filter our events\n shouldForward = (key) => key.startsWith(\"on\") ? !isValidMotionProp(key) : isValidProp(key);\n}\n/**\n * Emotion and Styled Components both allow users to pass through arbitrary props to their components\n * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which\n * of these should be passed to the underlying DOM node.\n *\n * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props\n * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props\n * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of\n * `@emotion/is-prop-valid`, however to fix this problem we need to use it.\n *\n * By making it an optionalDependency we can offer this functionality only in the situations where it's\n * actually required.\n */\ntry {\n /**\n * We attempt to import this package but require won't be defined in esm environments, in that case\n * isPropValid will have to be provided via `MotionContext`. In a 6.0.0 this should probably be removed\n * in favour of explicit injection.\n *\n * String concatenation prevents bundlers like webpack (e.g. Storybook)\n * from statically resolving this optional dependency at build time.\n */\n const emotionPkg = \"@emotion/is-prop-\" + \"valid\";\n loadExternalIsValidProp(require(emotionPkg).default);\n}\ncatch {\n // We don't need to actually do anything here - the fallback is the existing `isPropValid`.\n}\nfunction filterProps(props, isDom, forwardMotionProps) {\n const filteredProps = {};\n for (const key in props) {\n /**\n * values is considered a valid prop by Emotion, so if it's present\n * this will be rendered out to the DOM unless explicitly filtered.\n *\n * We check the type as it could be used with the `feColorMatrix`\n * element, which we support.\n */\n if (key === \"values\" && typeof props.values === \"object\")\n continue;\n if (isMotionValue(props[key]))\n continue;\n if (shouldForward(key) ||\n (forwardMotionProps === true && isValidMotionProp(key)) ||\n (!isDom && !isValidMotionProp(key)) ||\n // If trying to use native HTML drag events, forward drag listeners\n (props[\"draggable\"] &&\n key.startsWith(\"onDrag\"))) {\n filteredProps[key] =\n props[key];\n }\n }\n return filteredProps;\n}\n\nexport { filterProps, loadExternalIsValidProp };\n//# sourceMappingURL=filter-props.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAGA,IAAI,KAAiB,MAAQ,CAAC,EAAkB,EAAI;AACpD,SAAS,EAAwB,GAAa;AACtC,QAAO,KAAgB,eAG3B,KAAiB,MAAQ,EAAI,WAAW,KAAK,GAAG,CAAC,EAAkB,EAAI,GAAG,EAAY,EAAI;;AAe9F,IAAI;AAUA,IAAA,GAAA,EAAA,EAAA,EAAA,EAA4C,QAAQ;QAElD;AAGN,SAAS,EAAY,GAAO,GAAO,GAAoB;CACnD,IAAM,IAAgB,EAAE;AACxB,MAAK,IAAM,KAAO,EAQV,OAAQ,YAAY,OAAO,EAAM,UAAW,YAE5C,EAAc,EAAM,GAAK,KAEzB,EAAc,EAAI,IACjB,MAAuB,MAAQ,EAAkB,EAAI,IACrD,CAAC,KAAS,CAAC,EAAkB,EAAI,IAEjC,EAAM,aACH,EAAI,WAAW,SAAS,MAC5B,EAAc,KACV,EAAM;AAGlB,QAAO"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { lowercaseSVGElements as e } from "../../svg/lowercase-elements.js";
|
|
2
|
+
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
return typeof t != "string" || t.includes("-") ? !1 : !!(e.indexOf(t) > -1 || /[A-Z]/u.test(t));
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as isSVGComponent };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=is-svg-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-svg-component.js","names":[],"sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs"],"sourcesContent":["import { lowercaseSVGElements } from '../../svg/lowercase-elements.mjs';\n\nfunction isSVGComponent(Component) {\n if (\n /**\n * If it's not a string, it's a custom React component. Currently we only support\n * HTML custom React components.\n */\n typeof Component !== \"string\" ||\n /**\n * If it contains a dash, the element is a custom HTML webcomponent.\n */\n Component.includes(\"-\")) {\n return false;\n }\n else if (\n /**\n * If it's in our list of lowercase SVG tags, it's an SVG component\n */\n lowercaseSVGElements.indexOf(Component) > -1 ||\n /**\n * If it contains a capital letter, it's an SVG component\n */\n /[A-Z]/u.test(Component)) {\n return true;\n }\n return false;\n}\n\nexport { isSVGComponent };\n//# sourceMappingURL=is-svg-component.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAe,GAAW;AAwB/B,QAlBA,OAAO,KAAc,YAIjB,EAAU,SAAS,IAAI,GAChB,QAMX,EAAqB,QAAQ,EAAU,GAAG,MAItC,SAAS,KAAK,EAAU"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { scrapeMotionValuesFromProps as e } from "../../../../../motion-dom/dist/es/render/html/utils/scrape-motion-values.js";
|
|
3
|
+
import { createHtmlRenderState as t } from "./utils/create-render-state.js";
|
|
4
|
+
import { makeUseVisualState as n } from "../../motion/utils/use-visual-state.js";
|
|
5
|
+
//#region node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs
|
|
6
|
+
var r = /* @__PURE__ */ n({
|
|
7
|
+
scrapeMotionValuesFromProps: e,
|
|
8
|
+
createRenderState: t
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as useHTMLVisualState };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=use-html-visual-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-html-visual-state.js","names":["scrapeHTMLMotionValuesFromProps"],"sources":["../../../../../../../node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs"],"sourcesContent":["\"use client\";\nimport { scrapeHTMLMotionValuesFromProps } from 'motion-dom';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nconst useHTMLVisualState = /*@__PURE__*/ makeUseVisualState({\n scrapeMotionValuesFromProps: scrapeHTMLMotionValuesFromProps,\n createRenderState: createHtmlRenderState,\n});\n\nexport { useHTMLVisualState };\n//# sourceMappingURL=use-html-visual-state.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,IAAM,IAAmC,kBAAmB;CAC3BA;CAC7B,mBAAmB;CACtB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { isMotionValue as e } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
|
|
3
|
+
import { buildHTMLStyles as t } from "../../../../../motion-dom/dist/es/render/html/utils/build-styles.js";
|
|
4
|
+
import { isForcedMotionValue as n } from "../../../../../motion-dom/dist/es/render/utils/is-forced-motion-value.js";
|
|
5
|
+
import { createHtmlRenderState as r } from "./utils/create-render-state.js";
|
|
6
|
+
import { useMemo as i } from "react";
|
|
7
|
+
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
|
|
8
|
+
function a(t, r, i) {
|
|
9
|
+
for (let a in r) !e(r[a]) && !n(a, i) && (t[a] = r[a]);
|
|
10
|
+
}
|
|
11
|
+
function o({ transformTemplate: e }, n) {
|
|
12
|
+
return i(() => {
|
|
13
|
+
let i = r();
|
|
14
|
+
return t(i, n, e), Object.assign({}, i.vars, i.style);
|
|
15
|
+
}, [n]);
|
|
16
|
+
}
|
|
17
|
+
function s(e, t) {
|
|
18
|
+
let n = e.style || {}, r = {};
|
|
19
|
+
return a(r, n, e), Object.assign(r, o(e, t)), r;
|
|
20
|
+
}
|
|
21
|
+
function c(e, t) {
|
|
22
|
+
let n = {}, r = s(e, t);
|
|
23
|
+
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { a as copyRawValuesOnly, c as useHTMLProps };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=use-props.js.map
|