@burdenoff/microfe-mybodyshield 2026.705.2 → 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/pages/DashboardPage.js +422 -323
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/_shared/visuals.js +16 -16
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +235 -166
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -249
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +700 -533
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +518 -454
- 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 +422 -311
- 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 +395 -302
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionsPage.js +111 -75
- 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 +1 -1
- 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,59 @@
|
|
|
1
|
+
import { frame as e } from "../../frameloop/frame.js";
|
|
2
|
+
import { resolveTransition as t } from "../utils/resolve-transition.js";
|
|
3
|
+
import { getValueTransition as n } from "../utils/get-value-transition.js";
|
|
4
|
+
import { animateMotionValue as r } from "./motion-value.js";
|
|
5
|
+
import { positionalKeys as i } from "../../render/utils/keys-position.js";
|
|
6
|
+
import { setTarget as a } from "../../render/utils/setters.js";
|
|
7
|
+
import { addValueToWillChange as o } from "../../value/will-change/add-will-change.js";
|
|
8
|
+
import { getOptimisedAppearId as s } from "../optimized-appear/get-appear-id.js";
|
|
9
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
10
|
+
function c({ protectedKeys: e, needsAnimating: t }, n) {
|
|
11
|
+
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
12
|
+
return t[n] = !1, r;
|
|
13
|
+
}
|
|
14
|
+
function l(l, u, { delay: d = 0, transitionOverride: f, type: p } = {}) {
|
|
15
|
+
let { transition: m, transitionEnd: h, ...g } = u, _ = l.getDefaultTransition();
|
|
16
|
+
m = m ? t(m, _) : _;
|
|
17
|
+
let v = m?.reduceMotion, y = m?.skipAnimations;
|
|
18
|
+
f && (m = f);
|
|
19
|
+
let b = [], x = p && l.animationState && l.animationState.getState()[p], S = m?.path;
|
|
20
|
+
S && S.animateVisualElement(l, g, m, d, b);
|
|
21
|
+
for (let t in g) {
|
|
22
|
+
let a = l.getValue(t, l.latestValues[t] ?? null), u = g[t];
|
|
23
|
+
if (u === void 0 || x && c(x, t)) continue;
|
|
24
|
+
let f = {
|
|
25
|
+
delay: d,
|
|
26
|
+
...n(m || {}, t)
|
|
27
|
+
};
|
|
28
|
+
y && (f.skipAnimations = !0);
|
|
29
|
+
let p = a.get();
|
|
30
|
+
if (p !== void 0 && !a.isAnimating() && !Array.isArray(u) && u === p && !f.velocity) {
|
|
31
|
+
e.update(() => a.set(u));
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
let h = !1;
|
|
35
|
+
if (window.MotionHandoffAnimation) {
|
|
36
|
+
let n = s(l);
|
|
37
|
+
if (n) {
|
|
38
|
+
let r = window.MotionHandoffAnimation(n, t, e);
|
|
39
|
+
r !== null && (f.startTime = r, h = !0);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
o(l, t);
|
|
43
|
+
let _ = v ?? l.shouldReduceMotion;
|
|
44
|
+
a.start(r(t, a, u, _ && i.has(t) ? { type: !1 } : f, l, h));
|
|
45
|
+
let S = a.animation;
|
|
46
|
+
S && b.push(S);
|
|
47
|
+
}
|
|
48
|
+
if (h) {
|
|
49
|
+
let t = () => e.update(() => {
|
|
50
|
+
h && a(l, h);
|
|
51
|
+
});
|
|
52
|
+
b.length ? Promise.all(b).then(t) : t();
|
|
53
|
+
}
|
|
54
|
+
return b;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { l as animateTarget };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=visual-element-target.js.map
|
package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-element-target.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs"],"sourcesContent":["import { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { resolveTransition } from '../utils/resolve-transition.mjs';\nimport { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { addValueToWillChange } from '../../value/will-change/add-will-change.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n let { transition, transitionEnd, ...target } = targetAndTransition;\n const defaultTransition = visualElement.getDefaultTransition();\n transition = transition\n ? resolveTransition(transition, defaultTransition)\n : defaultTransition;\n const reduceMotion = transition?.reduceMotion;\n const skipAnimations = transition?.skipAnimations;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n const path = transition?.path;\n if (path) {\n // path mutates `target` to claim x/y; loop below skips them.\n path.animateVisualElement(visualElement, target, transition, delay, animations);\n }\n for (const key in target) {\n const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n if (skipAnimations)\n valueTransition.skipAnimations = true;\n /**\n * If the value is already at the defined target, skip the animation.\n * We still re-assert the value via frame.update to take precedence\n * over any stale transitionEnd callbacks from previous animations.\n */\n const currentValue = value.get();\n if (currentValue !== undefined &&\n !value.isAnimating() &&\n !Array.isArray(valueTarget) &&\n valueTarget === currentValue &&\n !valueTransition.velocity) {\n frame.update(() => value.set(valueTarget));\n continue;\n }\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n addValueToWillChange(visualElement, key);\n const shouldReduceMotion = reduceMotion ?? visualElement.shouldReduceMotion;\n value.start(animateMotionValue(key, value, valueTarget, shouldReduceMotion && positionalKeys.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n const applyTransitionEnd = () => frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n if (animations.length) {\n Promise.all(animations).then(applyTransitionEnd);\n }\n else {\n applyTransitionEnd();\n }\n }\n return animations;\n}\n\nexport { animateTarget };\n//# sourceMappingURL=visual-element-target.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAeA,SAAS,EAAqB,EAAE,kBAAe,qBAAkB,GAAK;CAClE,IAAM,IAAc,EAAc,eAAe,EAAI,IAAI,EAAe,OAAS;AAEjF,QADA,EAAe,KAAO,IACf;;AAEX,SAAS,EAAc,GAAe,GAAqB,EAAE,WAAQ,GAAG,uBAAoB,YAAS,EAAE,EAAE;CACrG,IAAI,EAAE,eAAY,kBAAe,GAAG,MAAW,GACzC,IAAoB,EAAc,sBAAsB;AAC9D,KAAa,IACP,EAAkB,GAAY,EAAkB,GAChD;CACN,IAAM,IAAe,GAAY,cAC3B,IAAiB,GAAY;AACnC,CAAI,MACA,IAAa;CACjB,IAAM,IAAa,EAAE,EACf,IAAqB,KACvB,EAAc,kBACd,EAAc,eAAe,UAAU,CAAC,IACtC,IAAO,GAAY;AACzB,CAAI,KAEA,EAAK,qBAAqB,GAAe,GAAQ,GAAY,GAAO,EAAW;AAEnF,MAAK,IAAM,KAAO,GAAQ;EACtB,IAAM,IAAQ,EAAc,SAAS,GAAK,EAAc,aAAa,MAAQ,KAAK,EAC5E,IAAc,EAAO;AAC3B,MAAI,MAAgB,KAAA,KACf,KACG,EAAqB,GAAoB,EAAI,CACjD;EAEJ,IAAM,IAAkB;GACpB;GACA,GAAG,EAAmB,KAAc,EAAE,EAAE,EAAI;GAC/C;AACD,EAAI,MACA,EAAgB,iBAAiB;EAMrC,IAAM,IAAe,EAAM,KAAK;AAChC,MAAI,MAAiB,KAAA,KACjB,CAAC,EAAM,aAAa,IACpB,CAAC,MAAM,QAAQ,EAAY,IAC3B,MAAgB,KAChB,CAAC,EAAgB,UAAU;AAC3B,KAAM,aAAa,EAAM,IAAI,EAAY,CAAC;AAC1C;;EAMJ,IAAI,IAAY;AAChB,MAAI,OAAO,wBAAwB;GAC/B,IAAM,IAAW,EAAqB,EAAc;AACpD,OAAI,GAAU;IACV,IAAM,IAAY,OAAO,uBAAuB,GAAU,GAAK,EAAM;AACrE,IAAI,MAAc,SACd,EAAgB,YAAY,GAC5B,IAAY;;;AAIxB,IAAqB,GAAe,EAAI;EACxC,IAAM,IAAqB,KAAgB,EAAc;AACzD,IAAM,MAAM,EAAmB,GAAK,GAAO,GAAa,KAAsB,EAAe,IAAI,EAAI,GAC/F,EAAE,MAAM,IAAO,GACf,GAAiB,GAAe,EAAU,CAAC;EACjD,IAAM,IAAY,EAAM;AACxB,EAAI,KACA,EAAW,KAAK,EAAU;;AAGlC,KAAI,GAAe;EACf,IAAM,UAA2B,EAAM,aAAa;AAChD,QAAiB,EAAU,GAAe,EAAc;IAC1D;AACF,EAAI,EAAW,SACX,QAAQ,IAAI,EAAW,CAAC,KAAK,EAAmB,GAGhD,GAAoB;;AAG5B,QAAO"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { calcChildStagger as e } from "../utils/calc-child-stagger.js";
|
|
2
|
+
import { resolveVariant as t } from "../../render/utils/resolve-dynamic-variants.js";
|
|
3
|
+
import { animateTarget as n } from "./visual-element-target.js";
|
|
4
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
|
|
5
|
+
function r(e, r, a = {}) {
|
|
6
|
+
let o = t(e, r, a.type === "exit" ? e.presenceContext?.custom : void 0), { transition: s = e.getDefaultTransition() || {} } = o || {};
|
|
7
|
+
a.transitionOverride && (s = a.transitionOverride);
|
|
8
|
+
let c = o ? () => Promise.all(n(e, o, a)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (t = 0) => {
|
|
9
|
+
let { delayChildren: n = 0, staggerChildren: o, staggerDirection: c } = s;
|
|
10
|
+
return i(e, r, t, n, o, c, a);
|
|
11
|
+
} : () => Promise.resolve(), { when: u } = s;
|
|
12
|
+
if (u) {
|
|
13
|
+
let [e, t] = u === "beforeChildren" ? [c, l] : [l, c];
|
|
14
|
+
return e().then(() => t());
|
|
15
|
+
} else return Promise.all([c(), l(a.delay)]);
|
|
16
|
+
}
|
|
17
|
+
function i(t, n, i = 0, a = 0, o = 0, s = 1, c) {
|
|
18
|
+
let l = [];
|
|
19
|
+
for (let u of t.variantChildren) u.notify("AnimationStart", n), l.push(r(u, n, {
|
|
20
|
+
...c,
|
|
21
|
+
delay: i + (typeof a == "function" ? 0 : a) + e(t.variantChildren, u, a, o, s)
|
|
22
|
+
}).then(() => u.notify("AnimationComplete", n)));
|
|
23
|
+
return Promise.all(l);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { r as animateVariant };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=visual-element-variant.js.map
|
package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-element-variant.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { calcChildStagger } from '../utils/calc-child-stagger.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, forwardDelay, delayChildren, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delay = 0, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n for (const child of visualElement.variantChildren) {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delay +\n (typeof delayChildren === \"function\" ? 0 : delayChildren) +\n calcChildStagger(visualElement.variantChildren, child, delayChildren, staggerChildren, staggerDirection),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n }\n return Promise.all(animations);\n}\n\nexport { animateVariant };\n//# sourceMappingURL=visual-element-variant.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,EAAe,GAAe,GAAS,IAAU,EAAE,EAAE;CAC1D,IAAM,IAAW,EAAe,GAAe,GAAS,EAAQ,SAAS,SACnE,EAAc,iBAAiB,SAC/B,KAAA,EAAU,EACZ,EAAE,gBAAa,EAAc,sBAAsB,IAAI,EAAE,KAAK,KAAY,EAAE;AAChF,CAAI,EAAQ,uBACR,IAAa,EAAQ;CAMzB,IAAM,IAAe,UACT,QAAQ,IAAI,EAAc,GAAe,GAAU,EAAQ,CAAC,SAC5D,QAAQ,SAAS,EAKvB,IAAqB,EAAc,mBAAmB,EAAc,gBAAgB,QACnF,IAAe,MAAM;EACpB,IAAM,EAAE,mBAAgB,GAAG,oBAAiB,wBAAsB;AAClE,SAAO,EAAgB,GAAe,GAAS,GAAc,GAAe,GAAiB,GAAkB,EAAQ;WAEnH,QAAQ,SAAS,EAKvB,EAAE,YAAS;AACjB,KAAI,GAAM;EACN,IAAM,CAAC,GAAO,KAAQ,MAAS,mBACzB,CAAC,GAAc,EAAmB,GAClC,CAAC,GAAoB,EAAa;AACxC,SAAO,GAAO,CAAC,WAAW,GAAM,CAAC;OAGjC,QAAO,QAAQ,IAAI,CAAC,GAAc,EAAE,EAAmB,EAAQ,MAAM,CAAC,CAAC;;AAG/E,SAAS,EAAgB,GAAe,GAAS,IAAQ,GAAG,IAAgB,GAAG,IAAkB,GAAG,IAAmB,GAAG,GAAS;CAC/H,IAAM,IAAa,EAAE;AACrB,MAAK,IAAM,KAAS,EAAc,gBAE9B,CADA,EAAM,OAAO,kBAAkB,EAAQ,EACvC,EAAW,KAAK,EAAe,GAAO,GAAS;EAC3C,GAAG;EACH,OAAO,KACF,OAAO,KAAkB,aAAa,IAAI,KAC3C,EAAiB,EAAc,iBAAiB,GAAO,GAAe,GAAiB,EAAiB;EAC/G,CAAC,CAAC,WAAW,EAAM,OAAO,qBAAqB,EAAQ,CAAC,CAAC;AAE9D,QAAO,QAAQ,IAAI,EAAW"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { resolveVariant as e } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
+
import { animateTarget as t } from "./visual-element-target.js";
|
|
3
|
+
import { animateVariant as n } from "./visual-element-variant.js";
|
|
4
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
|
|
5
|
+
function r(r, i, a = {}) {
|
|
6
|
+
r.notify("AnimationStart", i);
|
|
7
|
+
let o;
|
|
8
|
+
if (Array.isArray(i)) {
|
|
9
|
+
let e = i.map((e) => n(r, e, a));
|
|
10
|
+
o = Promise.all(e);
|
|
11
|
+
} else if (typeof i == "string") o = n(r, i, a);
|
|
12
|
+
else {
|
|
13
|
+
let n = typeof i == "function" ? e(r, i, a.custom) : i;
|
|
14
|
+
o = Promise.all(t(r, n, a));
|
|
15
|
+
}
|
|
16
|
+
return o.then(() => {
|
|
17
|
+
r.notify("AnimationComplete", i);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as animateVisualElement };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=visual-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-element.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n//# sourceMappingURL=visual-element.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,EAAqB,GAAe,GAAY,IAAU,EAAE,EAAE;AACnE,GAAc,OAAO,kBAAkB,EAAW;CAClD,IAAI;AACJ,KAAI,MAAM,QAAQ,EAAW,EAAE;EAC3B,IAAM,IAAa,EAAW,KAAK,MAAY,EAAe,GAAe,GAAS,EAAQ,CAAC;AAC/F,MAAY,QAAQ,IAAI,EAAW;YAE9B,OAAO,KAAe,SAC3B,KAAY,EAAe,GAAe,GAAY,EAAQ;MAE7D;EACD,IAAM,IAAqB,OAAO,KAAe,aAC3C,EAAe,GAAe,GAAY,EAAQ,OAAO,GACzD;AACN,MAAY,QAAQ,IAAI,EAAc,GAAe,GAAoB,EAAQ,CAAC;;AAEtF,QAAO,EAAU,WAAW;AACxB,IAAc,OAAO,qBAAqB,EAAW;GACvD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { containsCSSVariable as e, isCSSVariableToken as t } from "../utils/is-css-variable.js";
|
|
2
|
+
import { isNumOrPxType as n, positionalValues as r } from "./utils/unit-conversion.js";
|
|
3
|
+
import { KeyframeResolver as i } from "./KeyframesResolver.js";
|
|
4
|
+
import { getVariableValue as a } from "../utils/css-variables-conversion.js";
|
|
5
|
+
import { positionalKeys as o } from "../../render/utils/keys-position.js";
|
|
6
|
+
import { findDimensionValueType as s } from "../../value/types/dimensions.js";
|
|
7
|
+
import { isNone as c } from "./utils/is-none.js";
|
|
8
|
+
import { makeNoneKeyframesAnimatable as l } from "./utils/make-none-animatable.js";
|
|
9
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
10
|
+
var u = class extends i {
|
|
11
|
+
constructor(e, t, n, r, i) {
|
|
12
|
+
super(e, t, n, r, i, !0);
|
|
13
|
+
}
|
|
14
|
+
readKeyframes() {
|
|
15
|
+
let { unresolvedKeyframes: i, element: c, name: l } = this;
|
|
16
|
+
if (!c || !c.current) return;
|
|
17
|
+
super.readKeyframes();
|
|
18
|
+
for (let e = 0; e < i.length; e++) {
|
|
19
|
+
let n = i[e];
|
|
20
|
+
if (typeof n == "string" && (n = n.trim(), t(n))) {
|
|
21
|
+
let t = a(n, c.current);
|
|
22
|
+
t !== void 0 && (i[e] = t), e === i.length - 1 && (this.finalKeyframe = n);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (this.resolveNoneKeyframes(), !o.has(l) || i.length !== 2) return;
|
|
26
|
+
let [u, d] = i, f = s(u), p = s(d);
|
|
27
|
+
if (e(u) !== e(d) && r[l]) {
|
|
28
|
+
this.needsMeasurement = !0;
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (f !== p) if (n(f) && n(p)) for (let e = 0; e < i.length; e++) {
|
|
32
|
+
let t = i[e];
|
|
33
|
+
typeof t == "string" && (i[e] = parseFloat(t));
|
|
34
|
+
}
|
|
35
|
+
else r[l] && (this.needsMeasurement = !0);
|
|
36
|
+
}
|
|
37
|
+
resolveNoneKeyframes() {
|
|
38
|
+
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
39
|
+
for (let t = 0; t < e.length; t++) (e[t] === null || c(e[t])) && n.push(t);
|
|
40
|
+
n.length && l(e, n, t);
|
|
41
|
+
}
|
|
42
|
+
measureInitialState() {
|
|
43
|
+
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
44
|
+
if (!e || !e.current) return;
|
|
45
|
+
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = r[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
|
|
46
|
+
let i = t[t.length - 1];
|
|
47
|
+
i !== void 0 && e.getValue(n, i).jump(i, !1);
|
|
48
|
+
}
|
|
49
|
+
measureEndState() {
|
|
50
|
+
let { element: e, name: t, unresolvedKeyframes: n } = this;
|
|
51
|
+
if (!e || !e.current) return;
|
|
52
|
+
let i = e.getValue(t);
|
|
53
|
+
i && i.jump(this.measuredOrigin, !1);
|
|
54
|
+
let a = n.length - 1, o = n[a];
|
|
55
|
+
n[a] = r[t](e.measureViewportBox(), window.getComputedStyle(e.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
|
|
56
|
+
e.getValue(t).set(n);
|
|
57
|
+
}), this.resolveNoneKeyframes();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { u as DOMKeyframesResolver };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=DOMKeyframesResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DOMKeyframesResolver.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs"],"sourcesContent":["import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { positionalValues, isNumOrPxType } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other\n * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.\n */\n const originHasVar = containsCSSVariable(origin);\n const targetHasVar = containsCSSVariable(target);\n if (originHasVar !== targetHasVar && positionalValues[name]) {\n this.needsMeasurement = true;\n return;\n }\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else if (positionalValues[name]) {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n//# sourceMappingURL=DOMKeyframesResolver.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,IAAM,IAAN,cAAmC,EAAiB;CAChD,YAAY,GAAqB,GAAY,GAAM,GAAa,GAAS;AACrE,QAAM,GAAqB,GAAY,GAAM,GAAa,GAAS,GAAK;;CAE5E,gBAAgB;EACZ,IAAM,EAAE,wBAAqB,YAAS,YAAS;AAC/C,MAAI,CAAC,KAAW,CAAC,EAAQ,QACrB;AACJ,QAAM,eAAe;AAIrB,OAAK,IAAI,IAAI,GAAG,IAAI,EAAoB,QAAQ,KAAK;GACjD,IAAI,IAAW,EAAoB;AACnC,OAAI,OAAO,KAAa,aACpB,IAAW,EAAS,MAAM,EACtB,EAAmB,EAAS,GAAE;IAC9B,IAAM,IAAW,EAAiB,GAAU,EAAQ,QAAQ;AAI5D,IAHI,MAAa,KAAA,MACb,EAAoB,KAAK,IAEzB,MAAM,EAAoB,SAAS,MACnC,KAAK,gBAAgB;;;AAiBrC,MAPA,KAAK,sBAAsB,EAOvB,CAAC,EAAe,IAAI,EAAK,IAAI,EAAoB,WAAW,EAC5D;EAEJ,IAAM,CAAC,GAAQ,KAAU,GACnB,IAAa,EAAuB,EAAO,EAC3C,IAAa,EAAuB,EAAO;AAOjD,MAFqB,EAAoB,EAAO,KAC3B,EAAoB,EAAO,IACX,EAAiB,IAAO;AACzD,QAAK,mBAAmB;AACxB;;AAKA,YAAe,EAMnB,KAAI,EAAc,EAAW,IAAI,EAAc,EAAW,CACtD,MAAK,IAAI,IAAI,GAAG,IAAI,EAAoB,QAAQ,KAAK;GACjD,IAAM,IAAQ,EAAoB;AAClC,GAAI,OAAO,KAAU,aACjB,EAAoB,KAAK,WAAW,EAAM;;OAI7C,EAAiB,OAItB,KAAK,mBAAmB;;CAGhC,uBAAuB;EACnB,IAAM,EAAE,wBAAqB,YAAS,MAChC,IAAsB,EAAE;AAC9B,OAAK,IAAI,IAAI,GAAG,IAAI,EAAoB,QAAQ,IAC5C,EAAI,EAAoB,OAAO,QAC3B,EAAO,EAAoB,GAAG,KAC9B,EAAoB,KAAK,EAAE;AAGnC,EAAI,EAAoB,UACpB,EAA4B,GAAqB,GAAqB,EAAK;;CAGnF,sBAAsB;EAClB,IAAM,EAAE,YAAS,wBAAqB,YAAS;AAC/C,MAAI,CAAC,KAAW,CAAC,EAAQ,QACrB;AAKJ,EAJI,MAAS,aACT,KAAK,mBAAmB,OAAO,cAEnC,KAAK,iBAAiB,EAAiB,GAAM,EAAQ,oBAAoB,EAAE,OAAO,iBAAiB,EAAQ,QAAQ,CAAC,EACpH,EAAoB,KAAK,KAAK;EAE9B,IAAM,IAAkB,EAAoB,EAAoB,SAAS;AACzE,EAAI,MAAoB,KAAA,KACpB,EAAQ,SAAS,GAAM,EAAgB,CAAC,KAAK,GAAiB,GAAM;;CAG5E,kBAAkB;EACd,IAAM,EAAE,YAAS,SAAM,2BAAwB;AAC/C,MAAI,CAAC,KAAW,CAAC,EAAQ,QACrB;EACJ,IAAM,IAAQ,EAAQ,SAAS,EAAK;AACpC,OAAS,EAAM,KAAK,KAAK,gBAAgB,GAAM;EAC/C,IAAM,IAAqB,EAAoB,SAAS,GAClD,IAAgB,EAAoB;AAa1C,EAZA,EAAoB,KAAsB,EAAiB,GAAM,EAAQ,oBAAoB,EAAE,OAAO,iBAAiB,EAAQ,QAAQ,CAAC,EACpI,MAAkB,QAAQ,KAAK,kBAAkB,KAAA,MACjD,KAAK,gBAAgB,IAGrB,KAAK,mBAAmB,UACxB,KAAK,kBAAkB,SAAS,CAAC,GAAoB,OAAyB;AAC1E,KACK,SAAS,EAAmB,CAC5B,IAAI,EAAoB;IAC/B,EAEN,KAAK,sBAAsB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { frame as e } from "../../frameloop/frame.js";
|
|
2
|
+
import { fillWildcards as t } from "./utils/fill-wildcards.js";
|
|
3
|
+
import { removeNonTranslationalTransform as n } from "./utils/unit-conversion.js";
|
|
4
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
5
|
+
var r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = !1;
|
|
6
|
+
function s() {
|
|
7
|
+
if (a) {
|
|
8
|
+
let e = Array.from(r).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), i = /* @__PURE__ */ new Map();
|
|
9
|
+
t.forEach((e) => {
|
|
10
|
+
let t = n(e);
|
|
11
|
+
t.length && (i.set(e, t), e.render());
|
|
12
|
+
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
13
|
+
e.render();
|
|
14
|
+
let t = i.get(e);
|
|
15
|
+
t && t.forEach(([t, n]) => {
|
|
16
|
+
e.getValue(t)?.set(n);
|
|
17
|
+
});
|
|
18
|
+
}), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
|
|
19
|
+
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
a = !1, i = !1, r.forEach((e) => e.complete(o)), r.clear();
|
|
23
|
+
}
|
|
24
|
+
function c() {
|
|
25
|
+
r.forEach((e) => {
|
|
26
|
+
e.readKeyframes(), e.needsMeasurement && (a = !0);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function l() {
|
|
30
|
+
o = !0, c(), s(), o = !1;
|
|
31
|
+
}
|
|
32
|
+
var u = class {
|
|
33
|
+
constructor(e, t, n, r, i, a = !1) {
|
|
34
|
+
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
35
|
+
}
|
|
36
|
+
scheduleResolve() {
|
|
37
|
+
this.state = "scheduled", this.isAsync ? (r.add(this), i || (i = !0, e.read(c), e.resolveKeyframes(s))) : (this.readKeyframes(), this.complete());
|
|
38
|
+
}
|
|
39
|
+
readKeyframes() {
|
|
40
|
+
let { unresolvedKeyframes: e, name: n, element: r, motionValue: i } = this;
|
|
41
|
+
if (e[0] === null) {
|
|
42
|
+
let t = i?.get(), a = e[e.length - 1];
|
|
43
|
+
if (t !== void 0) e[0] = t;
|
|
44
|
+
else if (r && n) {
|
|
45
|
+
let t = r.readValue(n, a);
|
|
46
|
+
t != null && (e[0] = t);
|
|
47
|
+
}
|
|
48
|
+
e[0] === void 0 && (e[0] = a), i && t === void 0 && i.set(e[0]);
|
|
49
|
+
}
|
|
50
|
+
t(e);
|
|
51
|
+
}
|
|
52
|
+
setFinalKeyframe() {}
|
|
53
|
+
measureInitialState() {}
|
|
54
|
+
renderEndStyles() {}
|
|
55
|
+
measureEndState() {}
|
|
56
|
+
complete(e = !1) {
|
|
57
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), r.delete(this);
|
|
58
|
+
}
|
|
59
|
+
cancel() {
|
|
60
|
+
this.state === "scheduled" && (r.delete(this), this.state = "pending");
|
|
61
|
+
}
|
|
62
|
+
resume() {
|
|
63
|
+
this.state === "pending" && this.scheduleResolve();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { u as KeyframeResolver, l as flushKeyframeResolvers };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=KeyframesResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyframesResolver.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs"],"sourcesContent":["import { fillWildcards } from './utils/fill-wildcards.mjs';\nimport { removeNonTranslationalTransform } from './utils/unit-conversion.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst toResolve = new Set();\nlet isScheduled = false;\nlet anyNeedsMeasurement = false;\nlet isForced = false;\nfunction measureAllKeyframes() {\n if (anyNeedsMeasurement) {\n const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);\n const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));\n const transformsToRestore = new Map();\n /**\n * Write pass\n * If we're measuring elements we want to remove bounding box-changing transforms.\n */\n elementsToMeasure.forEach((element) => {\n const removedTransforms = removeNonTranslationalTransform(element);\n if (!removedTransforms.length)\n return;\n transformsToRestore.set(element, removedTransforms);\n element.render();\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n // Write\n elementsToMeasure.forEach((element) => {\n element.render();\n const restore = transformsToRestore.get(element);\n if (restore) {\n restore.forEach(([key, value]) => {\n element.getValue(key)?.set(value);\n });\n }\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n // Write\n resolversToMeasure.forEach((resolver) => {\n if (resolver.suspendedScrollY !== undefined) {\n window.scrollTo(0, resolver.suspendedScrollY);\n }\n });\n }\n anyNeedsMeasurement = false;\n isScheduled = false;\n toResolve.forEach((resolver) => resolver.complete(isForced));\n toResolve.clear();\n}\nfunction readAllKeyframes() {\n toResolve.forEach((resolver) => {\n resolver.readKeyframes();\n if (resolver.needsMeasurement) {\n anyNeedsMeasurement = true;\n }\n });\n}\nfunction flushKeyframeResolvers() {\n isForced = true;\n readAllKeyframes();\n measureAllKeyframes();\n isForced = false;\n}\nclass KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {\n this.state = \"pending\";\n /**\n * Track whether this resolver is async. If it is, it'll be added to the\n * resolver queue and flushed in the next frame. Resolvers that aren't going\n * to trigger read/write thrashing don't need to be async.\n */\n this.isAsync = false;\n /**\n * Track whether this resolver needs to perform a measurement\n * to resolve its keyframes.\n */\n this.needsMeasurement = false;\n this.unresolvedKeyframes = [...unresolvedKeyframes];\n this.onComplete = onComplete;\n this.name = name;\n this.motionValue = motionValue;\n this.element = element;\n this.isAsync = isAsync;\n }\n scheduleResolve() {\n this.state = \"scheduled\";\n if (this.isAsync) {\n toResolve.add(this);\n if (!isScheduled) {\n isScheduled = true;\n frame.read(readAllKeyframes);\n frame.resolveKeyframes(measureAllKeyframes);\n }\n }\n else {\n this.readKeyframes();\n this.complete();\n }\n }\n readKeyframes() {\n const { unresolvedKeyframes, name, element, motionValue } = this;\n // If initial keyframe is null we need to read it from the DOM\n if (unresolvedKeyframes[0] === null) {\n const currentValue = motionValue?.get();\n // TODO: This doesn't work if the final keyframe is a wildcard\n const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (currentValue !== undefined) {\n unresolvedKeyframes[0] = currentValue;\n }\n else if (element && name) {\n const valueAsRead = element.readValue(name, finalKeyframe);\n if (valueAsRead !== undefined && valueAsRead !== null) {\n unresolvedKeyframes[0] = valueAsRead;\n }\n }\n if (unresolvedKeyframes[0] === undefined) {\n unresolvedKeyframes[0] = finalKeyframe;\n }\n if (motionValue && currentValue === undefined) {\n motionValue.set(unresolvedKeyframes[0]);\n }\n }\n fillWildcards(unresolvedKeyframes);\n }\n setFinalKeyframe() { }\n measureInitialState() { }\n renderEndStyles() { }\n measureEndState() { }\n complete(isForcedComplete = false) {\n this.state = \"complete\";\n this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n toResolve.delete(this);\n }\n cancel() {\n if (this.state === \"scheduled\") {\n toResolve.delete(this);\n this.state = \"pending\";\n }\n }\n resume() {\n if (this.state === \"pending\")\n this.scheduleResolve();\n }\n}\n\nexport { KeyframeResolver, flushKeyframeResolvers };\n//# sourceMappingURL=KeyframesResolver.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAM,oBAAY,IAAI,KAAK,EACvB,IAAc,IACd,IAAsB,IACtB,IAAW;AACf,SAAS,IAAsB;AAC3B,KAAI,GAAqB;EACrB,IAAM,IAAqB,MAAM,KAAK,EAAU,CAAC,QAAQ,MAAa,EAAS,iBAAiB,EAC1F,IAAoB,IAAI,IAAI,EAAmB,KAAK,MAAa,EAAS,QAAQ,CAAC,EACnF,oBAAsB,IAAI,KAAK;AA2BrC,EAtBA,EAAkB,SAAS,MAAY;GACnC,IAAM,IAAoB,EAAgC,EAAQ;AAC7D,KAAkB,WAEvB,EAAoB,IAAI,GAAS,EAAkB,EACnD,EAAQ,QAAQ;IAClB,EAEF,EAAmB,SAAS,MAAa,EAAS,qBAAqB,CAAC,EAExE,EAAkB,SAAS,MAAY;AACnC,KAAQ,QAAQ;GAChB,IAAM,IAAU,EAAoB,IAAI,EAAQ;AAChD,GAAI,KACA,EAAQ,SAAS,CAAC,GAAK,OAAW;AAC9B,MAAQ,SAAS,EAAI,EAAE,IAAI,EAAM;KACnC;IAER,EAEF,EAAmB,SAAS,MAAa,EAAS,iBAAiB,CAAC,EAEpE,EAAmB,SAAS,MAAa;AACrC,GAAI,EAAS,qBAAqB,KAAA,KAC9B,OAAO,SAAS,GAAG,EAAS,iBAAiB;IAEnD;;AAKN,CAHA,IAAsB,IACtB,IAAc,IACd,EAAU,SAAS,MAAa,EAAS,SAAS,EAAS,CAAC,EAC5D,EAAU,OAAO;;AAErB,SAAS,IAAmB;AACxB,GAAU,SAAS,MAAa;AAE5B,EADA,EAAS,eAAe,EACpB,EAAS,qBACT,IAAsB;GAE5B;;AAEN,SAAS,IAAyB;AAI9B,CAHA,IAAW,IACX,GAAkB,EAClB,GAAqB,EACrB,IAAW;;AAEf,IAAM,IAAN,MAAuB;CACnB,YAAY,GAAqB,GAAY,GAAM,GAAa,GAAS,IAAU,IAAO;AAkBtF,EAjBA,KAAK,QAAQ,WAMb,KAAK,UAAU,IAKf,KAAK,mBAAmB,IACxB,KAAK,sBAAsB,CAAC,GAAG,EAAoB,EACnD,KAAK,aAAa,GAClB,KAAK,OAAO,GACZ,KAAK,cAAc,GACnB,KAAK,UAAU,GACf,KAAK,UAAU;;CAEnB,kBAAkB;AAEd,EADA,KAAK,QAAQ,aACT,KAAK,WACL,EAAU,IAAI,KAAK,EACd,MACD,IAAc,IACd,EAAM,KAAK,EAAiB,EAC5B,EAAM,iBAAiB,EAAoB,MAI/C,KAAK,eAAe,EACpB,KAAK,UAAU;;CAGvB,gBAAgB;EACZ,IAAM,EAAE,wBAAqB,SAAM,YAAS,mBAAgB;AAE5D,MAAI,EAAoB,OAAO,MAAM;GACjC,IAAM,IAAe,GAAa,KAAK,EAEjC,IAAgB,EAAoB,EAAoB,SAAS;AACvE,OAAI,MAAiB,KAAA,EACjB,GAAoB,KAAK;YAEpB,KAAW,GAAM;IACtB,IAAM,IAAc,EAAQ,UAAU,GAAM,EAAc;AAC1D,IAAI,KAA6C,SAC7C,EAAoB,KAAK;;AAMjC,GAHI,EAAoB,OAAO,KAAA,MAC3B,EAAoB,KAAK,IAEzB,KAAe,MAAiB,KAAA,KAChC,EAAY,IAAI,EAAoB,GAAG;;AAG/C,IAAc,EAAoB;;CAEtC,mBAAmB;CACnB,sBAAsB;CACtB,kBAAkB;CAClB,kBAAkB;CAClB,SAAS,IAAmB,IAAO;AAG/B,EAFA,KAAK,QAAQ,YACb,KAAK,WAAW,KAAK,qBAAqB,KAAK,eAAe,EAAiB,EAC/E,EAAU,OAAO,KAAK;;CAE1B,SAAS;AACL,EAAI,KAAK,UAAU,gBACf,EAAU,OAAO,KAAK,EACtB,KAAK,QAAQ;;CAGrB,SAAS;AACL,EAAI,KAAK,UAAU,aACf,KAAK,iBAAiB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
2
|
+
var e = (e) => e !== null;
|
|
3
|
+
function t(t, { repeat: n, repeatType: r = "loop" }, i, a = 1) {
|
|
4
|
+
let o = t.filter(e), s = a < 0 || n && r !== "loop" && n % 2 == 1 ? 0 : o.length - 1;
|
|
5
|
+
return !s || i === void 0 ? o[s] : i;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as getFinalKeyframe };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=get-final.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-final.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs"],"sourcesContent":["const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe, speed = 1) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const useFirstKeyframe = speed < 0 || (repeat && repeatType !== \"loop\" && repeat % 2 === 1);\n const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n//# sourceMappingURL=get-final.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,KAAa,MAAU,MAAU;AACvC,SAAS,EAAiB,GAAW,EAAE,WAAQ,gBAAa,UAAU,GAAe,IAAQ,GAAG;CAC5F,IAAM,IAAoB,EAAU,OAAO,EAAU,EAE/C,IADmB,IAAQ,KAAM,KAAU,MAAe,UAAU,IAAS,KAAM,IACxD,IAAI,EAAkB,SAAS;AAChE,QAAO,CAAC,KAAS,MAAkB,KAAA,IAC7B,EAAkB,KAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { fillOffset as e } from "./fill.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = [0];
|
|
5
|
+
return e(n, t.length - 1), n;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as defaultOffset };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs"],"sourcesContent":["import { fillOffset } from './fill.mjs';\n\nfunction defaultOffset(arr) {\n const offset = [0];\n fillOffset(offset, arr.length - 1);\n return offset;\n}\n\nexport { defaultOffset };\n//# sourceMappingURL=default.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAc,GAAK;CACxB,IAAM,IAAS,CAAC,EAAE;AAElB,QADA,EAAW,GAAQ,EAAI,SAAS,EAAE,EAC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { progress as e } from "../../../../../../motion-utils/dist/es/progress.js";
|
|
2
|
+
import { mixNumber as t } from "../../../utils/mix/number.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = n[n.length - 1];
|
|
6
|
+
for (let a = 1; a <= r; a++) {
|
|
7
|
+
let o = e(0, r, a);
|
|
8
|
+
n.push(t(i, 1, o));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as fillOffset };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs"],"sourcesContent":["import { progress } from 'motion-utils';\nimport { mixNumber } from '../../../utils/mix/number.mjs';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mixNumber(min, 1, offsetProgress));\n }\n}\n\nexport { fillOffset };\n//# sourceMappingURL=fill.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAS,EAAW,GAAQ,GAAW;CACnC,IAAM,IAAM,EAAO,EAAO,SAAS;AACnC,MAAK,IAAI,IAAI,GAAG,KAAK,GAAW,KAAK;EACjC,IAAM,IAAiB,EAAS,GAAG,GAAW,EAAE;AAChD,IAAO,KAAK,EAAU,GAAK,GAAG,EAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs"],"sourcesContent":["function convertOffsetToTimes(offset, duration) {\n return offset.map((o) => o * duration);\n}\n\nexport { convertOffsetToTimes };\n//# sourceMappingURL=time.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAqB,GAAQ,GAAU;AAC5C,QAAO,EAAO,KAAK,MAAM,IAAI,EAAS"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as fillWildcards };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=fill-wildcards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill-wildcards.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs"],"sourcesContent":["function fillWildcards(keyframes) {\n for (let i = 1; i < keyframes.length; i++) {\n keyframes[i] ?? (keyframes[i] = keyframes[i - 1]);\n }\n}\n\nexport { fillWildcards };\n//# sourceMappingURL=fill-wildcards.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAc,GAAW;AAC9B,MAAK,IAAI,IAAI,GAAG,IAAI,EAAU,QAAQ,IAClC,GAAU,OAAO,EAAU,KAAK,EAAU,IAAI"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isZeroValueString as e } from "../../../../../../motion-utils/dist/es/is-zero-value-string.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
return typeof t == "number" ? t === 0 : t === null ? !0 : t === "none" || t === "0" || e(t);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as isNone };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=is-none.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-none.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs"],"sourcesContent":["import { isZeroValueString } from 'motion-utils';\n\nfunction isNone(value) {\n if (typeof value === \"number\") {\n return value === 0;\n }\n else if (value !== null) {\n return value === \"none\" || value === \"0\" || isZeroValueString(value);\n }\n else {\n return true;\n }\n}\n\nexport { isNone };\n//# sourceMappingURL=is-none.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAO,GAAO;AAQf,QAPA,OAAO,KAAU,WACV,MAAU,IAEZ,MAAU,OAIR,KAHA,MAAU,UAAU,MAAU,OAAO,EAAkB,EAAM"}
|
package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { analyseComplexValue as e } from "../../../value/types/complex/index.js";
|
|
2
|
+
import { getAnimatableNone as t } from "../../../value/types/utils/animatable-none.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
4
|
+
var n = new Set([
|
|
5
|
+
"auto",
|
|
6
|
+
"none",
|
|
7
|
+
"0"
|
|
8
|
+
]);
|
|
9
|
+
function r(r, i, a) {
|
|
10
|
+
let o = 0, s;
|
|
11
|
+
for (; o < r.length && !s;) {
|
|
12
|
+
let t = r[o];
|
|
13
|
+
typeof t == "string" && !n.has(t) && e(t).values.length && (s = r[o]), o++;
|
|
14
|
+
}
|
|
15
|
+
if (s && a) for (let e of i) r[e] = t(a, s);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as makeNoneKeyframesAnimatable };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=make-none-animatable.js.map
|
package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-none-animatable.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs"],"sourcesContent":["import { analyseComplexValue } from '../../../value/types/complex/index.mjs';\nimport { getAnimatableNone } from '../../../value/types/utils/animatable-none.mjs';\n\n/**\n * If we encounter keyframes like \"none\" or \"0\" and we also have keyframes like\n * \"#fff\" or \"200px 200px\" we want to find a keyframe to serve as a template for\n * the \"none\" keyframes. In this case \"#fff\" or \"200px 200px\" - then these get turned into\n * zero equivalents, i.e. \"#fff0\" or \"0px 0px\".\n */\nconst invalidTemplates = new Set([\"auto\", \"none\", \"0\"]);\nfunction makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {\n let i = 0;\n let animatableTemplate = undefined;\n while (i < unresolvedKeyframes.length && !animatableTemplate) {\n const keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\" &&\n !invalidTemplates.has(keyframe) &&\n analyseComplexValue(keyframe).values.length) {\n animatableTemplate = unresolvedKeyframes[i];\n }\n i++;\n }\n if (animatableTemplate && name) {\n for (const noneIndex of noneKeyframeIndexes) {\n unresolvedKeyframes[noneIndex] = getAnimatableNone(name, animatableTemplate);\n }\n }\n}\n\nexport { makeNoneKeyframesAnimatable };\n//# sourceMappingURL=make-none-animatable.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AASA,IAAM,IAAmB,IAAI,IAAI;CAAC;CAAQ;CAAQ;CAAI,CAAC;AACvD,SAAS,EAA4B,GAAqB,GAAqB,GAAM;CACjF,IAAI,IAAI,GACJ;AACJ,QAAO,IAAI,EAAoB,UAAU,CAAC,IAAoB;EAC1D,IAAM,IAAW,EAAoB;AAMrC,EALI,OAAO,KAAa,YACpB,CAAC,EAAiB,IAAI,EAAS,IAC/B,EAAoB,EAAS,CAAC,OAAO,WACrC,IAAqB,EAAoB,KAE7C;;AAEJ,KAAI,KAAsB,EACtB,MAAK,IAAM,KAAa,EACpB,GAAoB,KAAa,EAAkB,GAAM,EAAmB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { number as e } from "../../../value/types/numbers/index.js";
|
|
2
|
+
import { px as t } from "../../../value/types/numbers/units.js";
|
|
3
|
+
import { parseValueFromTransform as n } from "../../../render/dom/parse-transform.js";
|
|
4
|
+
import { transformPropOrder as r } from "../../../render/utils/keys-transform.js";
|
|
5
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs
|
|
6
|
+
var i = (n) => n === e || n === t, a = new Set([
|
|
7
|
+
"x",
|
|
8
|
+
"y",
|
|
9
|
+
"z"
|
|
10
|
+
]), o = r.filter((e) => !a.has(e));
|
|
11
|
+
function s(e) {
|
|
12
|
+
let t = [];
|
|
13
|
+
return o.forEach((n) => {
|
|
14
|
+
let r = e.getValue(n);
|
|
15
|
+
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
16
|
+
}), t;
|
|
17
|
+
}
|
|
18
|
+
var c = {
|
|
19
|
+
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
|
|
20
|
+
let i = e.max - e.min;
|
|
21
|
+
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
22
|
+
},
|
|
23
|
+
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }) => {
|
|
24
|
+
let i = e.max - e.min;
|
|
25
|
+
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
26
|
+
},
|
|
27
|
+
top: (e, { top: t }) => parseFloat(t),
|
|
28
|
+
left: (e, { left: t }) => parseFloat(t),
|
|
29
|
+
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
30
|
+
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
31
|
+
x: (e, { transform: t }) => n(t, "x"),
|
|
32
|
+
y: (e, { transform: t }) => n(t, "y")
|
|
33
|
+
};
|
|
34
|
+
c.translateX = c.x, c.translateY = c.y;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { i as isNumOrPxType, c as positionalValues, s as removeNonTranslationalTransform };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=unit-conversion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-conversion.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs"],"sourcesContent":["import { parseValueFromTransform } from '../../../render/dom/parse-transform.mjs';\nimport { transformPropOrder } from '../../../render/utils/keys-transform.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst isNumOrPxType = (v) => v === number || v === px;\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\", boxSizing }) => {\n const width = x.max - x.min;\n return boxSizing === \"border-box\"\n ? width\n : width - parseFloat(paddingLeft) - parseFloat(paddingRight);\n },\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\", boxSizing }) => {\n const height = y.max - y.min;\n return boxSizing === \"border-box\"\n ? height\n : height - parseFloat(paddingTop) - parseFloat(paddingBottom);\n },\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: (_bbox, { transform }) => parseValueFromTransform(transform, \"x\"),\n y: (_bbox, { transform }) => parseValueFromTransform(transform, \"y\"),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\nexport { isNumOrPxType, positionalValues, removeNonTranslationalTransform };\n//# sourceMappingURL=unit-conversion.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,IAAM,KAAiB,MAAM,MAAM,KAAU,MAAM,GAC7C,IAAgB,IAAI,IAAI;CAAC;CAAK;CAAK;CAAI,CAAC,EACxC,IAAgC,EAAmB,QAAQ,MAAQ,CAAC,EAAc,IAAI,EAAI,CAAC;AACjG,SAAS,EAAgC,GAAe;CACpD,IAAM,IAAoB,EAAE;AAQ5B,QAPA,EAA8B,SAAS,MAAQ;EAC3C,IAAM,IAAQ,EAAc,SAAS,EAAI;AACzC,EAAI,MAAU,KAAA,MACV,EAAkB,KAAK,CAAC,GAAK,EAAM,KAAK,CAAC,CAAC,EAC1C,EAAM,IAAI,KAAI,WAAW,QAAQ,CAAS;GAEhD,EACK;;AAEX,IAAM,IAAmB;CAErB,QAAQ,EAAE,QAAK,EAAE,iBAAc,KAAK,kBAAe,KAAK,mBAAgB;EACpE,IAAM,IAAQ,EAAE,MAAM,EAAE;AACxB,SAAO,MAAc,eACf,IACA,IAAQ,WAAW,EAAY,GAAG,WAAW,EAAa;;CAEpE,SAAS,EAAE,QAAK,EAAE,gBAAa,KAAK,mBAAgB,KAAK,mBAAgB;EACrE,IAAM,IAAS,EAAE,MAAM,EAAE;AACzB,SAAO,MAAc,eACf,IACA,IAAS,WAAW,EAAW,GAAG,WAAW,EAAc;;CAErE,MAAM,GAAO,EAAE,aAAU,WAAW,EAAI;CACxC,OAAO,GAAO,EAAE,cAAW,WAAW,EAAK;CAC3C,SAAS,EAAE,QAAK,EAAE,aAAU,WAAW,EAAI,IAAI,EAAE,MAAM,EAAE;CACzD,QAAQ,EAAE,QAAK,EAAE,cAAW,WAAW,EAAK,IAAI,EAAE,MAAM,EAAE;CAE1D,IAAI,GAAO,EAAE,mBAAgB,EAAwB,GAAW,IAAI;CACpE,IAAI,GAAO,EAAE,mBAAgB,EAAwB,GAAW,IAAI;CACvE;AAED,EAAiB,aAAa,EAAiB,GAC/C,EAAiB,aAAa,EAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-id.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs"],"sourcesContent":["import { camelToDash } from '../../render/dom/utils/camel-to-dash.mjs';\n\nconst optimizedAppearDataId = \"framerAppearId\";\nconst optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\nexport { optimizedAppearDataAttribute, optimizedAppearDataId };\n//# sourceMappingURL=data-id.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAGA,IAAM,IAA+B,UAAU,EADjB,iBACmD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { optimizedAppearDataAttribute as e } from "./data-id.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
return t.props[e];
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as getOptimisedAppearId };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=get-appear-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-appear-id.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs"],"sourcesContent":["import { optimizedAppearDataAttribute } from './data-id.mjs';\n\nfunction getOptimisedAppearId(visualElement) {\n return visualElement.props[optimizedAppearDataAttribute];\n}\n\nexport { getOptimisedAppearId };\n//# sourceMappingURL=get-appear-id.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAqB,GAAe;AACzC,QAAO,EAAc,MAAM"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.updateFinished();
|
|
5
|
+
}
|
|
6
|
+
get finished() {
|
|
7
|
+
return this._finished;
|
|
8
|
+
}
|
|
9
|
+
updateFinished() {
|
|
10
|
+
this._finished = new Promise((e) => {
|
|
11
|
+
this.resolve = e;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
notifyFinished() {
|
|
15
|
+
this.resolve();
|
|
16
|
+
}
|
|
17
|
+
then(e, t) {
|
|
18
|
+
return this.finished.then(e, t);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { e as WithPromise };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=WithPromise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithPromise.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs"],"sourcesContent":["class WithPromise {\n constructor() {\n this.updateFinished();\n }\n get finished() {\n return this._finished;\n }\n updateFinished() {\n this._finished = new Promise((resolve) => {\n this.resolve = resolve;\n });\n }\n notifyFinished() {\n this.resolve();\n }\n /**\n * Allows the animation to be awaited.\n *\n * @deprecated Use `finished` instead.\n */\n then(onResolve, onReject) {\n return this.finished.then(onResolve, onReject);\n }\n}\n\nexport { WithPromise };\n//# sourceMappingURL=WithPromise.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAAN,MAAkB;CACd,cAAc;AACV,OAAK,gBAAgB;;CAEzB,IAAI,WAAW;AACX,SAAO,KAAK;;CAEhB,iBAAiB;AACb,OAAK,YAAY,IAAI,SAAS,MAAY;AACtC,QAAK,UAAU;IACjB;;CAEN,iBAAiB;AACb,OAAK,SAAS;;CAOlB,KAAK,GAAW,GAAU;AACtB,SAAO,KAAK,SAAS,KAAK,GAAW,EAAS"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
|
|
2
|
+
function e(e, t, n, r = 0, i = 1) {
|
|
3
|
+
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
|
|
4
|
+
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as calcChildStagger };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=calc-child-stagger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calc-child-stagger.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs"],"sourcesContent":["function calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {\n const index = Array.from(children)\n .sort((a, b) => a.sortNodePosition(b))\n .indexOf(child);\n const numChildren = children.size;\n const maxStaggerDuration = (numChildren - 1) * staggerChildren;\n const delayIsFunction = typeof delayChildren === \"function\";\n return delayIsFunction\n ? delayChildren(index, numChildren)\n : staggerDirection === 1\n ? index * staggerChildren\n : maxStaggerDuration - index * staggerChildren;\n}\n\nexport { calcChildStagger };\n//# sourceMappingURL=calc-child-stagger.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAiB,GAAU,GAAO,GAAe,IAAkB,GAAG,IAAmB,GAAG;CACjG,IAAM,IAAQ,MAAM,KAAK,EAAS,CAC7B,MAAM,GAAG,MAAM,EAAE,iBAAiB,EAAE,CAAC,CACrC,QAAQ,EAAM,EACb,IAAc,EAAS,MACvB,KAAsB,IAAc,KAAK;AAE/C,QADwB,OAAO,KAAkB,aAE3C,EAAc,GAAO,EAAY,GACjC,MAAqB,IACjB,IAAQ,IACR,IAAqB,IAAQ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { warning as e } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { isGenerator as t } from "../generators/utils/is-generator.js";
|
|
3
|
+
import { isAnimatable as n } from "./is-animatable.js";
|
|
4
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
5
|
+
function r(e) {
|
|
6
|
+
let t = e[0];
|
|
7
|
+
if (e.length === 1) return !0;
|
|
8
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
9
|
+
}
|
|
10
|
+
function i(i, a, o, s) {
|
|
11
|
+
let c = i[0];
|
|
12
|
+
if (c === null) return !1;
|
|
13
|
+
if (a === "display" || a === "visibility") return !0;
|
|
14
|
+
let l = i[i.length - 1], u = n(c, a), d = n(l, a);
|
|
15
|
+
return e(u === d, `You are trying to animate ${a} from "${c}" to "${l}". "${u ? l : c}" is not an animatable value.`, "value-not-animatable"), !u || !d ? !1 : r(i) || (o === "spring" || t(o)) && s;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { i as canAnimate };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=can-animate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"can-animate.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs"],"sourcesContent":["import { warning } from 'motion-utils';\nimport { isGenerator } from '../generators/utils/is-generator.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\n\nfunction hasKeyframesChanged(keyframes) {\n const current = keyframes[0];\n if (keyframes.length === 1)\n return true;\n for (let i = 0; i < keyframes.length; i++) {\n if (keyframes[i] !== current)\n return true;\n }\n}\nfunction canAnimate(keyframes, name, type, velocity) {\n /**\n * Check if we're able to animate between the start and end keyframes,\n * and throw a warning if we're attempting to animate between one that's\n * animatable and another that isn't.\n */\n const originKeyframe = keyframes[0];\n if (originKeyframe === null) {\n return false;\n }\n /**\n * These aren't traditionally animatable but we do support them.\n * In future we could look into making this more generic or replacing\n * this function with mix() === mixImmediate\n */\n if (name === \"display\" || name === \"visibility\")\n return true;\n const targetKeyframe = keyframes[keyframes.length - 1];\n const isOriginAnimatable = isAnimatable(originKeyframe, name);\n const isTargetAnimatable = isAnimatable(targetKeyframe, name);\n warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from \"${originKeyframe}\" to \"${targetKeyframe}\". \"${isOriginAnimatable ? targetKeyframe : originKeyframe}\" is not an animatable value.`, \"value-not-animatable\");\n // Always skip if any of these are true\n if (!isOriginAnimatable || !isTargetAnimatable) {\n return false;\n }\n return (hasKeyframesChanged(keyframes) ||\n ((type === \"spring\" || isGenerator(type)) && velocity));\n}\n\nexport { canAnimate };\n//# sourceMappingURL=can-animate.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,EAAoB,GAAW;CACpC,IAAM,IAAU,EAAU;AAC1B,KAAI,EAAU,WAAW,EACrB,QAAO;AACX,MAAK,IAAI,IAAI,GAAG,IAAI,EAAU,QAAQ,IAClC,KAAI,EAAU,OAAO,EACjB,QAAO;;AAGnB,SAAS,EAAW,GAAW,GAAM,GAAM,GAAU;CAMjD,IAAM,IAAiB,EAAU;AACjC,KAAI,MAAmB,KACnB,QAAO;AAOX,KAAI,MAAS,aAAa,MAAS,aAC/B,QAAO;CACX,IAAM,IAAiB,EAAU,EAAU,SAAS,IAC9C,IAAqB,EAAa,GAAgB,EAAK,EACvD,IAAqB,EAAa,GAAgB,EAAK;AAM7D,QALA,EAAQ,MAAuB,GAAoB,6BAA6B,EAAK,SAAS,EAAe,QAAQ,EAAe,MAAM,IAAqB,IAAiB,EAAe,gCAAgC,uBAAuB,EAElP,CAAC,KAAsB,CAAC,IACjB,KAEH,EAAoB,EAAU,KAChC,MAAS,YAAY,EAAY,EAAK,KAAK"}
|