@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,17 @@
|
|
|
1
|
+
import { MotionGlobalConfig as e } from "../../../../motion-utils/dist/es/global-config.js";
|
|
2
|
+
import { frameData as t } from "./frame.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/frameloop/sync-time.mjs
|
|
4
|
+
var n;
|
|
5
|
+
function r() {
|
|
6
|
+
n = void 0;
|
|
7
|
+
}
|
|
8
|
+
var i = {
|
|
9
|
+
now: () => (n === void 0 && i.set(t.isProcessing || e.useManualTiming ? t.timestamp : performance.now()), n),
|
|
10
|
+
set: (e) => {
|
|
11
|
+
n = e, queueMicrotask(r);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as time };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=sync-time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-time.js","names":[],"sources":["../../../../../../node_modules/motion-dom/dist/es/frameloop/sync-time.mjs"],"sourcesContent":["import { MotionGlobalConfig } from 'motion-utils';\nimport { frameData } from './frame.mjs';\n\nlet now;\nfunction clearTime() {\n now = undefined;\n}\n/**\n * An eventloop-synchronous alternative to performance.now().\n *\n * Ensures that time measurements remain consistent within a synchronous context.\n * Usually calling performance.now() twice within the same synchronous context\n * will return different values which isn't useful for animations when we're usually\n * trying to sync animations to the same frame.\n */\nconst time = {\n now: () => {\n if (now === undefined) {\n time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming\n ? frameData.timestamp\n : performance.now());\n }\n return now;\n },\n set: (newTime) => {\n now = newTime;\n queueMicrotask(clearTime);\n },\n};\n\nexport { time };\n//# sourceMappingURL=sync-time.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAI;AACJ,SAAS,IAAY;AACjB,KAAM,KAAA;;AAUV,IAAM,IAAO;CACT,YACQ,MAAQ,KAAA,KACR,EAAK,IAAI,EAAU,gBAAgB,EAAmB,kBAChD,EAAU,YACV,YAAY,KAAK,CAAC,EAErB;CAEX,MAAM,MAAY;AAEd,EADA,IAAM,GACN,eAAe,EAAU;;CAEhC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
|
|
2
|
+
var e = {
|
|
3
|
+
x: !1,
|
|
4
|
+
y: !1
|
|
5
|
+
};
|
|
6
|
+
function t() {
|
|
7
|
+
return e.x || e.y;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as isDragActive, e as isDragging };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=is-active.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-active.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs"],"sourcesContent":["const isDragging = {\n x: false,\n y: false,\n};\nfunction isDragActive() {\n return isDragging.x || isDragging.y;\n}\n\nexport { isDragActive, isDragging };\n//# sourceMappingURL=is-active.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAAa;CACf,GAAG;CACH,GAAG;CACN;AACD,SAAS,IAAe;AACpB,QAAO,EAAW,KAAK,EAAW"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isDragging as e } from "./is-active.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
return t === "x" || t === "y" ? e[t] ? null : (e[t] = !0, () => {
|
|
5
|
+
e[t] = !1;
|
|
6
|
+
}) : e.x || e.y ? null : (e.x = e.y = !0, () => {
|
|
7
|
+
e.x = e.y = !1;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as setDragLock };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=set-active.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-active.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs"],"sourcesContent":["import { isDragging } from './is-active.mjs';\n\nfunction setDragLock(axis) {\n if (axis === \"x\" || axis === \"y\") {\n if (isDragging[axis]) {\n return null;\n }\n else {\n isDragging[axis] = true;\n return () => {\n isDragging[axis] = false;\n };\n }\n }\n else {\n if (isDragging.x || isDragging.y) {\n return null;\n }\n else {\n isDragging.x = isDragging.y = true;\n return () => {\n isDragging.x = isDragging.y = false;\n };\n }\n }\n}\n\nexport { setDragLock };\n//# sourceMappingURL=set-active.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAY,GAAM;AAkBf,QAjBJ,MAAS,OAAO,MAAS,MACrB,EAAW,KACJ,QAGP,EAAW,KAAQ,UACN;AACT,IAAW,KAAQ;MAKvB,EAAW,KAAK,EAAW,IACpB,QAGP,EAAW,IAAI,EAAW,IAAI,UACjB;AACT,IAAW,IAAI,EAAW,IAAI"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isDragActive as e } from "./drag/state/is-active.js";
|
|
2
|
+
import { setupGesture as t } from "./utils/setup.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
|
|
4
|
+
function n(t) {
|
|
5
|
+
return !(t.pointerType === "touch" || e());
|
|
6
|
+
}
|
|
7
|
+
function r(e, r, i = {}) {
|
|
8
|
+
let [a, o, s] = t(e, i);
|
|
9
|
+
return a.forEach((e) => {
|
|
10
|
+
let t = !1, i = !1, a, s = () => {
|
|
11
|
+
e.removeEventListener("pointerleave", d);
|
|
12
|
+
}, c = (e) => {
|
|
13
|
+
a &&= (a(e), void 0), s();
|
|
14
|
+
}, l = (e) => {
|
|
15
|
+
t = !1, window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), i && (i = !1, c(e));
|
|
16
|
+
}, u = () => {
|
|
17
|
+
t = !0, window.addEventListener("pointerup", l, o), window.addEventListener("pointercancel", l, o);
|
|
18
|
+
}, d = (e) => {
|
|
19
|
+
if (e.pointerType !== "touch") {
|
|
20
|
+
if (t) {
|
|
21
|
+
i = !0;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
c(e);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
e.addEventListener("pointerenter", (t) => {
|
|
28
|
+
if (!n(t)) return;
|
|
29
|
+
i = !1;
|
|
30
|
+
let s = r(e, t);
|
|
31
|
+
typeof s == "function" && (a = s, e.addEventListener("pointerleave", d, o));
|
|
32
|
+
}, o), e.addEventListener("pointerdown", u, o);
|
|
33
|
+
}), s;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as hover };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=hover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover.js","names":[],"sources":["../../../../../../node_modules/motion-dom/dist/es/gestures/hover.mjs"],"sourcesContent":["import { isDragActive } from './drag/state/is-active.mjs';\nimport { setupGesture } from './utils/setup.mjs';\n\nfunction isValidHover(event) {\n return !(event.pointerType === \"touch\" || isDragActive());\n}\n/**\n * Create a hover gesture. hover() is different to .addEventListener(\"pointerenter\")\n * in that it has an easier syntax, filters out polyfilled touch events, interoperates\n * with drag gestures, and automatically removes the \"pointerennd\" event listener when the hover ends.\n *\n * @public\n */\nfunction hover(elementOrSelector, onHoverStart, options = {}) {\n const [elements, eventOptions, cancel] = setupGesture(elementOrSelector, options);\n elements.forEach((element) => {\n let isPressed = false;\n let deferredHoverEnd = false;\n let hoverEndCallback;\n const removePointerLeave = () => {\n element.removeEventListener(\"pointerleave\", onPointerLeave);\n };\n const endHover = (event) => {\n if (hoverEndCallback) {\n hoverEndCallback(event);\n hoverEndCallback = undefined;\n }\n removePointerLeave();\n };\n const onPointerUp = (event) => {\n isPressed = false;\n window.removeEventListener(\"pointerup\", onPointerUp);\n window.removeEventListener(\"pointercancel\", onPointerUp);\n if (deferredHoverEnd) {\n deferredHoverEnd = false;\n endHover(event);\n }\n };\n const onPointerDown = () => {\n isPressed = true;\n window.addEventListener(\"pointerup\", onPointerUp, eventOptions);\n window.addEventListener(\"pointercancel\", onPointerUp, eventOptions);\n };\n const onPointerLeave = (leaveEvent) => {\n if (leaveEvent.pointerType === \"touch\")\n return;\n if (isPressed) {\n deferredHoverEnd = true;\n return;\n }\n endHover(leaveEvent);\n };\n const onPointerEnter = (enterEvent) => {\n if (!isValidHover(enterEvent))\n return;\n deferredHoverEnd = false;\n const onHoverEnd = onHoverStart(element, enterEvent);\n if (typeof onHoverEnd !== \"function\")\n return;\n hoverEndCallback = onHoverEnd;\n element.addEventListener(\"pointerleave\", onPointerLeave, eventOptions);\n };\n element.addEventListener(\"pointerenter\", onPointerEnter, eventOptions);\n element.addEventListener(\"pointerdown\", onPointerDown, eventOptions);\n });\n return cancel;\n}\n\nexport { hover };\n//# sourceMappingURL=hover.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAS,EAAa,GAAO;AACzB,QAAO,EAAE,EAAM,gBAAgB,WAAW,GAAc;;AAS5D,SAAS,EAAM,GAAmB,GAAc,IAAU,EAAE,EAAE;CAC1D,IAAM,CAAC,GAAU,GAAc,KAAU,EAAa,GAAmB,EAAQ;AAmDjF,QAlDA,EAAS,SAAS,MAAY;EAC1B,IAAI,IAAY,IACZ,IAAmB,IACnB,GACE,UAA2B;AAC7B,KAAQ,oBAAoB,gBAAgB,EAAe;KAEzD,KAAY,MAAU;AAKxB,GAJA,AAEI,OADA,EAAiB,EAAM,EACJ,KAAA,IAEvB,GAAoB;KAElB,KAAe,MAAU;AAI3B,GAHA,IAAY,IACZ,OAAO,oBAAoB,aAAa,EAAY,EACpD,OAAO,oBAAoB,iBAAiB,EAAY,EACpD,MACA,IAAmB,IACnB,EAAS,EAAM;KAGjB,UAAsB;AAGxB,GAFA,IAAY,IACZ,OAAO,iBAAiB,aAAa,GAAa,EAAa,EAC/D,OAAO,iBAAiB,iBAAiB,GAAa,EAAa;KAEjE,KAAkB,MAAe;AAC/B,SAAW,gBAAgB,SAE/B;QAAI,GAAW;AACX,SAAmB;AACnB;;AAEJ,MAAS,EAAW;;;AAaxB,EADA,EAAQ,iBAAiB,iBAVD,MAAe;AACnC,OAAI,CAAC,EAAa,EAAW,CACzB;AACJ,OAAmB;GACnB,IAAM,IAAa,EAAa,GAAS,EAAW;AAChD,UAAO,KAAe,eAE1B,IAAmB,GACnB,EAAQ,iBAAiB,gBAAgB,GAAgB,EAAa;KAEjB,EAAa,EACtE,EAAQ,iBAAiB,eAAe,GAAe,EAAa;GACtE,EACK"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isHTMLElement as e } from "../../utils/is-html-element.js";
|
|
2
|
+
import { isDragActive as t } from "../drag/state/is-active.js";
|
|
3
|
+
import { setupGesture as n } from "../utils/setup.js";
|
|
4
|
+
import { isNodeOrChild as r } from "../utils/is-node-or-child.js";
|
|
5
|
+
import { isPrimaryPointer as i } from "../utils/is-primary-pointer.js";
|
|
6
|
+
import { isElementKeyboardAccessible as a } from "./utils/is-keyboard-accessible.js";
|
|
7
|
+
import { isPressing as o } from "./utils/state.js";
|
|
8
|
+
import { enableKeyboardPress as s } from "./utils/keyboard.js";
|
|
9
|
+
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
|
|
10
|
+
function c(e) {
|
|
11
|
+
return i(e) && !t();
|
|
12
|
+
}
|
|
13
|
+
var l = /* @__PURE__ */ new WeakSet();
|
|
14
|
+
function u(t, i, u = {}) {
|
|
15
|
+
let [d, f, p] = n(t, u), m = (e) => {
|
|
16
|
+
let t = e.currentTarget;
|
|
17
|
+
if (!c(e) || l.has(e)) return;
|
|
18
|
+
o.add(t), u.stopPropagation && l.add(e);
|
|
19
|
+
let n = i(t, e), a = {
|
|
20
|
+
...f,
|
|
21
|
+
capture: !0
|
|
22
|
+
}, s = (e, r) => {
|
|
23
|
+
window.removeEventListener("pointerup", d, a), window.removeEventListener("pointercancel", p, a), o.has(t) && o.delete(t), c(e) && typeof n == "function" && n(e, { success: r });
|
|
24
|
+
}, d = (e) => {
|
|
25
|
+
s(e, t === window || t === document || u.useGlobalTarget || r(t, e.target));
|
|
26
|
+
}, p = (e) => {
|
|
27
|
+
s(e, !1);
|
|
28
|
+
};
|
|
29
|
+
window.addEventListener("pointerup", d, a), window.addEventListener("pointercancel", p, a);
|
|
30
|
+
};
|
|
31
|
+
return d.forEach((t) => {
|
|
32
|
+
(u.useGlobalTarget ? window : t).addEventListener("pointerdown", m, f), e(t) && (t.addEventListener("focus", (e) => s(e, f)), !a(t) && !t.hasAttribute("tabindex") && (t.tabIndex = 0));
|
|
33
|
+
}), p;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { u as press };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/gestures/press/index.mjs"],"sourcesContent":["import { isHTMLElement } from '../../utils/is-html-element.mjs';\nimport { isDragActive } from '../drag/state/is-active.mjs';\nimport { isNodeOrChild } from '../utils/is-node-or-child.mjs';\nimport { isPrimaryPointer } from '../utils/is-primary-pointer.mjs';\nimport { setupGesture } from '../utils/setup.mjs';\nimport { isElementKeyboardAccessible } from './utils/is-keyboard-accessible.mjs';\nimport { enableKeyboardPress } from './utils/keyboard.mjs';\nimport { isPressing } from './utils/state.mjs';\n\n/**\n * Filter out events that are not primary pointer events, or are triggering\n * while a Motion gesture is active.\n */\nfunction isValidPressEvent(event) {\n return isPrimaryPointer(event) && !isDragActive();\n}\nconst claimedPointerDownEvents = new WeakSet();\n/**\n * Create a press gesture.\n *\n * Press is different to `\"pointerdown\"`, `\"pointerup\"` in that it\n * automatically filters out secondary pointer events like right\n * click and multitouch.\n *\n * It also adds accessibility support for keyboards, where\n * an element with a press gesture will receive focus and\n * trigger on Enter `\"keydown\"` and `\"keyup\"` events.\n *\n * This is different to a browser's `\"click\"` event, which does\n * respond to keyboards but only for the `\"click\"` itself, rather\n * than the press start and end/cancel. The element also needs\n * to be focusable for this to work, whereas a press gesture will\n * make an element focusable by default.\n *\n * @public\n */\nfunction press(targetOrSelector, onPressStart, options = {}) {\n const [targets, eventOptions, cancelEvents] = setupGesture(targetOrSelector, options);\n const startPress = (startEvent) => {\n const target = startEvent.currentTarget;\n if (!isValidPressEvent(startEvent))\n return;\n if (claimedPointerDownEvents.has(startEvent))\n return;\n isPressing.add(target);\n if (options.stopPropagation) {\n claimedPointerDownEvents.add(startEvent);\n }\n const onPressEnd = onPressStart(target, startEvent);\n /**\n * End listeners run in the capture phase so a descendant calling\n * stopPropagation() in its own pointerup handler can't prevent the\n * press gesture from ending. This also keeps the gesture-end\n * ordering consistent with the drag gesture. See #2794.\n */\n const endEventOptions = { ...eventOptions, capture: true };\n const onPointerEnd = (endEvent, success) => {\n window.removeEventListener(\"pointerup\", onPointerUp, endEventOptions);\n window.removeEventListener(\"pointercancel\", onPointerCancel, endEventOptions);\n if (isPressing.has(target)) {\n isPressing.delete(target);\n }\n if (!isValidPressEvent(endEvent)) {\n return;\n }\n if (typeof onPressEnd === \"function\") {\n onPressEnd(endEvent, { success });\n }\n };\n const onPointerUp = (upEvent) => {\n onPointerEnd(upEvent, target === window ||\n target === document ||\n options.useGlobalTarget ||\n isNodeOrChild(target, upEvent.target));\n };\n const onPointerCancel = (cancelEvent) => {\n onPointerEnd(cancelEvent, false);\n };\n window.addEventListener(\"pointerup\", onPointerUp, endEventOptions);\n window.addEventListener(\"pointercancel\", onPointerCancel, endEventOptions);\n };\n targets.forEach((target) => {\n const pointerDownTarget = options.useGlobalTarget ? window : target;\n pointerDownTarget.addEventListener(\"pointerdown\", startPress, eventOptions);\n if (isHTMLElement(target)) {\n target.addEventListener(\"focus\", (event) => enableKeyboardPress(event, eventOptions));\n if (!isElementKeyboardAccessible(target) &&\n !target.hasAttribute(\"tabindex\")) {\n target.tabIndex = 0;\n }\n }\n });\n return cancelEvents;\n}\n\nexport { press };\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAaA,SAAS,EAAkB,GAAO;AAC9B,QAAO,EAAiB,EAAM,IAAI,CAAC,GAAc;;AAErD,IAAM,oBAA2B,IAAI,SAAS;AAoB9C,SAAS,EAAM,GAAkB,GAAc,IAAU,EAAE,EAAE;CACzD,IAAM,CAAC,GAAS,GAAc,KAAgB,EAAa,GAAkB,EAAQ,EAC/E,KAAc,MAAe;EAC/B,IAAM,IAAS,EAAW;AAG1B,MAFI,CAAC,EAAkB,EAAW,IAE9B,EAAyB,IAAI,EAAW,CACxC;AAEJ,EADA,EAAW,IAAI,EAAO,EAClB,EAAQ,mBACR,EAAyB,IAAI,EAAW;EAE5C,IAAM,IAAa,EAAa,GAAQ,EAAW,EAO7C,IAAkB;GAAE,GAAG;GAAc,SAAS;GAAM,EACpD,KAAgB,GAAU,MAAY;AACxC,UAAO,oBAAoB,aAAa,GAAa,EAAgB,EACrE,OAAO,oBAAoB,iBAAiB,GAAiB,EAAgB,EACzE,EAAW,IAAI,EAAO,IACtB,EAAW,OAAO,EAAO,EAExB,EAAkB,EAAS,IAG5B,OAAO,KAAe,cACtB,EAAW,GAAU,EAAE,YAAS,CAAC;KAGnC,KAAe,MAAY;AAC7B,KAAa,GAAS,MAAW,UAC7B,MAAW,YACX,EAAQ,mBACR,EAAc,GAAQ,EAAQ,OAAO,CAAC;KAExC,KAAmB,MAAgB;AACrC,KAAa,GAAa,GAAM;;AAGpC,EADA,OAAO,iBAAiB,aAAa,GAAa,EAAgB,EAClE,OAAO,iBAAiB,iBAAiB,GAAiB,EAAgB;;AAa9E,QAXA,EAAQ,SAAS,MAAW;AAGxB,GAF0B,EAAQ,kBAAkB,SAAS,GAC3C,iBAAiB,eAAe,GAAY,EAAa,EACvE,EAAc,EAAO,KACrB,EAAO,iBAAiB,UAAU,MAAU,EAAoB,GAAO,EAAa,CAAC,EACjF,CAAC,EAA4B,EAAO,IACpC,CAAC,EAAO,aAAa,WAAW,KAChC,EAAO,WAAW;GAG5B,EACK"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
|
|
2
|
+
var e = new Set([
|
|
3
|
+
"BUTTON",
|
|
4
|
+
"INPUT",
|
|
5
|
+
"SELECT",
|
|
6
|
+
"TEXTAREA",
|
|
7
|
+
"A"
|
|
8
|
+
]);
|
|
9
|
+
function t(t) {
|
|
10
|
+
return e.has(t.tagName) || t.isContentEditable === !0;
|
|
11
|
+
}
|
|
12
|
+
var n = new Set([
|
|
13
|
+
"INPUT",
|
|
14
|
+
"SELECT",
|
|
15
|
+
"TEXTAREA"
|
|
16
|
+
]);
|
|
17
|
+
function r(e) {
|
|
18
|
+
return n.has(e.tagName) || e.isContentEditable === !0;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { t as isElementKeyboardAccessible, r as isElementTextInput };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=is-keyboard-accessible.js.map
|
package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-keyboard-accessible.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs"],"sourcesContent":["const keyboardAccessibleElements = new Set([\n \"BUTTON\",\n \"INPUT\",\n \"SELECT\",\n \"TEXTAREA\",\n \"A\",\n]);\n/**\n * Checks if an element is natively keyboard accessible (focusable).\n * Used by the press gesture to determine if we need to add tabIndex.\n */\nfunction isElementKeyboardAccessible(element) {\n return (keyboardAccessibleElements.has(element.tagName) ||\n element.isContentEditable === true);\n}\nconst textInputElements = new Set([\"INPUT\", \"SELECT\", \"TEXTAREA\"]);\n/**\n * Checks if an element has text selection or direct interaction behavior\n * that should block drag gestures from starting.\n *\n * This specifically targets form controls where the user might want to select\n * text or interact with the control (e.g., sliders, dropdowns).\n *\n * Buttons and links are NOT included because they don't have click-and-move\n * actions of their own - they only respond to click events, so dragging\n * should still work when initiated from these elements.\n */\nfunction isElementTextInput(element) {\n return (textInputElements.has(element.tagName) ||\n element.isContentEditable === true);\n}\n\nexport { isElementKeyboardAccessible, isElementTextInput };\n//# sourceMappingURL=is-keyboard-accessible.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAA6B,IAAI,IAAI;CACvC;CACA;CACA;CACA;CACA;CACH,CAAC;AAKF,SAAS,EAA4B,GAAS;AAC1C,QAAQ,EAA2B,IAAI,EAAQ,QAAQ,IACnD,EAAQ,sBAAsB;;AAEtC,IAAM,IAAoB,IAAI,IAAI;CAAC;CAAS;CAAU;CAAW,CAAC;AAYlE,SAAS,EAAmB,GAAS;AACjC,QAAQ,EAAkB,IAAI,EAAQ,QAAQ,IAC1C,EAAQ,sBAAsB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isPressing as e } from "./state.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
|
|
3
|
+
function t(e) {
|
|
4
|
+
return (t) => {
|
|
5
|
+
t.key === "Enter" && e(t);
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function n(e, t) {
|
|
9
|
+
e.dispatchEvent(new PointerEvent("pointer" + t, {
|
|
10
|
+
isPrimary: !0,
|
|
11
|
+
bubbles: !0
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
var r = (r, i) => {
|
|
15
|
+
let a = r.currentTarget;
|
|
16
|
+
if (!a) return;
|
|
17
|
+
let o = t(() => {
|
|
18
|
+
if (e.has(a)) return;
|
|
19
|
+
n(a, "down");
|
|
20
|
+
let r = t(() => {
|
|
21
|
+
n(a, "up");
|
|
22
|
+
});
|
|
23
|
+
a.addEventListener("keyup", r, i), a.addEventListener("blur", () => n(a, "cancel"), i);
|
|
24
|
+
});
|
|
25
|
+
a.addEventListener("keydown", o, i), a.addEventListener("blur", () => a.removeEventListener("keydown", o), i);
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as enableKeyboardPress };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=keyboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs"],"sourcesContent":["import { isPressing } from './state.mjs';\n\n/**\n * Filter out events that are not \"Enter\" keys.\n */\nfunction filterEvents(callback) {\n return (event) => {\n if (event.key !== \"Enter\")\n return;\n callback(event);\n };\n}\nfunction firePointerEvent(target, type) {\n target.dispatchEvent(new PointerEvent(\"pointer\" + type, { isPrimary: true, bubbles: true }));\n}\nconst enableKeyboardPress = (focusEvent, eventOptions) => {\n const element = focusEvent.currentTarget;\n if (!element)\n return;\n const handleKeydown = filterEvents(() => {\n if (isPressing.has(element))\n return;\n firePointerEvent(element, \"down\");\n const handleKeyup = filterEvents(() => {\n firePointerEvent(element, \"up\");\n });\n const handleBlur = () => firePointerEvent(element, \"cancel\");\n element.addEventListener(\"keyup\", handleKeyup, eventOptions);\n element.addEventListener(\"blur\", handleBlur, eventOptions);\n });\n element.addEventListener(\"keydown\", handleKeydown, eventOptions);\n /**\n * Add an event listener that fires on blur to remove the keydown events.\n */\n element.addEventListener(\"blur\", () => element.removeEventListener(\"keydown\", handleKeydown), eventOptions);\n};\n\nexport { enableKeyboardPress };\n//# sourceMappingURL=keyboard.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAKA,SAAS,EAAa,GAAU;AAC5B,SAAQ,MAAU;AACV,IAAM,QAAQ,WAElB,EAAS,EAAM;;;AAGvB,SAAS,EAAiB,GAAQ,GAAM;AACpC,GAAO,cAAc,IAAI,aAAa,YAAY,GAAM;EAAE,WAAW;EAAM,SAAS;EAAM,CAAC,CAAC;;AAEhG,IAAM,KAAuB,GAAY,MAAiB;CACtD,IAAM,IAAU,EAAW;AAC3B,KAAI,CAAC,EACD;CACJ,IAAM,IAAgB,QAAmB;AACrC,MAAI,EAAW,IAAI,EAAQ,CACvB;AACJ,IAAiB,GAAS,OAAO;EACjC,IAAM,IAAc,QAAmB;AACnC,KAAiB,GAAS,KAAK;IACjC;AAGF,EADA,EAAQ,iBAAiB,SAAS,GAAa,EAAa,EAC5D,EAAQ,iBAAiB,cAFA,EAAiB,GAAS,SAAS,EAEf,EAAa;GAC5D;AAKF,CAJA,EAAQ,iBAAiB,WAAW,GAAe,EAAa,EAIhE,EAAQ,iBAAiB,cAAc,EAAQ,oBAAoB,WAAW,EAAc,EAAE,EAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","names":[],"sources":["../../../../../../../../node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs"],"sourcesContent":["const isPressing = new WeakSet();\n\nexport { isPressing };\n//# sourceMappingURL=state.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,oBAAa,IAAI,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-node-or-child.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs"],"sourcesContent":["/**\n * Recursively traverse up the tree to check whether the provided child node\n * is the parent or a descendant of it.\n *\n * @param parent - Element to find\n * @param child - Element to test against parent\n */\nconst isNodeOrChild = (parent, child) => {\n if (!child) {\n return false;\n }\n else if (parent === child) {\n return true;\n }\n else {\n return isNodeOrChild(parent, child.parentElement);\n }\n};\n\nexport { isNodeOrChild };\n//# sourceMappingURL=is-node-or-child.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,KAAiB,GAAQ,MACtB,IAGI,MAAW,IACT,KAGA,EAAc,GAAQ,EAAM,cAAc,GAN1C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs
|
|
2
|
+
var e = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as isPrimaryPointer };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=is-primary-pointer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-primary-pointer.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs"],"sourcesContent":["const isPrimaryPointer = (event) => {\n if (event.pointerType === \"mouse\") {\n return typeof event.button !== \"number\" || event.button <= 0;\n }\n else {\n /**\n * isPrimary is true for all mice buttons, whereas every touch point\n * is regarded as its own input. So subsequent concurrent touch points\n * will be false.\n *\n * Specifically match against false here as incomplete versions of\n * PointerEvents in very old browser might have it set as undefined.\n */\n return event.isPrimary !== false;\n }\n};\n\nexport { isPrimaryPointer };\n//# sourceMappingURL=is-primary-pointer.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,KAAoB,MAClB,EAAM,gBAAgB,UACf,OAAO,EAAM,UAAW,YAAY,EAAM,UAAU,IAWpD,EAAM,cAAc"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolveElements as e } from "../../utils/resolve-elements.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = e(t), i = new AbortController();
|
|
5
|
+
return [
|
|
6
|
+
r,
|
|
7
|
+
{
|
|
8
|
+
passive: !0,
|
|
9
|
+
...n,
|
|
10
|
+
signal: i.signal
|
|
11
|
+
},
|
|
12
|
+
() => i.abort()
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as setupGesture };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/gestures/utils/setup.mjs"],"sourcesContent":["import { resolveElements } from '../../utils/resolve-elements.mjs';\n\nfunction setupGesture(elementOrSelector, options) {\n const elements = resolveElements(elementOrSelector);\n const gestureAbortController = new AbortController();\n const eventOptions = {\n passive: true,\n ...options,\n signal: gestureAbortController.signal,\n };\n const cancel = () => gestureAbortController.abort();\n return [elements, eventOptions, cancel];\n}\n\nexport { setupGesture };\n//# sourceMappingURL=setup.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAa,GAAmB,GAAS;CAC9C,IAAM,IAAW,EAAgB,EAAkB,EAC7C,IAAyB,IAAI,iBAAiB;AAOpD,QAAO;EAAC;EANa;GACjB,SAAS;GACT,GAAG;GACH,QAAQ,EAAuB;GAClC;QACoB,EAAuB,OAAO;EACZ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { noop as e } from "../../../../../motion-utils/dist/es/noop.js";
|
|
2
|
+
import { progress as t } from "../../../../../motion-utils/dist/es/progress.js";
|
|
3
|
+
import { circOut as n } from "../../../../../motion-utils/dist/es/easing/circ.js";
|
|
4
|
+
import { percent as r, px as i } from "../../value/types/numbers/units.js";
|
|
5
|
+
import { mixNumber as a } from "../../utils/mix/number.js";
|
|
6
|
+
import { cornerRadiusProps as o } from "../../utils/border-radius.js";
|
|
7
|
+
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
|
|
8
|
+
var s = o.length, c = (e) => typeof e == "string" ? parseFloat(e) : e, l = (e) => typeof e == "number" || i.test(e);
|
|
9
|
+
function u(e, t, n, i, u, m) {
|
|
10
|
+
u ? (e.opacity = a(0, n.opacity ?? 1, f(i)), e.opacityExit = a(t.opacity ?? 1, 0, p(i))) : m && (e.opacity = a(t.opacity ?? 1, n.opacity ?? 1, i));
|
|
11
|
+
for (let u = 0; u < s; u++) {
|
|
12
|
+
let s = o[u], f = d(t, s), p = d(n, s);
|
|
13
|
+
f === void 0 && p === void 0 || (f ||= 0, p ||= 0, f === 0 || p === 0 || l(f) === l(p) ? (e[s] = Math.max(a(c(f), c(p), i), 0), (r.test(p) || r.test(f)) && (e[s] += "%")) : e[s] = p);
|
|
14
|
+
}
|
|
15
|
+
(t.rotate || n.rotate) && (e.rotate = a(t.rotate || 0, n.rotate || 0, i));
|
|
16
|
+
}
|
|
17
|
+
function d(e, t) {
|
|
18
|
+
return e[t] === void 0 ? e.borderRadius : e[t];
|
|
19
|
+
}
|
|
20
|
+
var f = /* @__PURE__ */ m(0, .5, n), p = /* @__PURE__ */ m(.5, .95, e);
|
|
21
|
+
function m(e, n, r) {
|
|
22
|
+
return (i) => i < e ? 0 : i > n ? 1 : r(t(e, n, i));
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { u as mixValues };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=mix-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mix-values.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs"],"sourcesContent":["import { mixNumber } from '../../utils/mix/number.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\nimport { progress, circOut, noop } from 'motion-utils';\nimport { cornerRadiusProps } from '../../utils/border-radius.mjs';\n\nconst numBorders = cornerRadiusProps.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mixNumber(0, lead.opacity ?? 1, easeCrossfadeIn(progress));\n target.opacityExit = mixNumber(follow.opacity ?? 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mixNumber(follow.opacity ?? 1, lead.opacity ?? 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = cornerRadiusProps[i];\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mixNumber(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mixNumber(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\nconst easeCrossfadeIn = /*@__PURE__*/ compress(0, 0.5, circOut);\nconst easeCrossfadeOut = /*@__PURE__*/ compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n//# sourceMappingURL=mix-values.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAKA,IAAM,IAAa,EAAkB,QAC/B,KAAY,MAAU,OAAO,KAAU,WAAW,WAAW,EAAM,GAAG,GACtE,KAAQ,MAAU,OAAO,KAAU,YAAY,EAAG,KAAK,EAAM;AACnE,SAAS,EAAU,GAAQ,GAAQ,GAAM,GAAU,GAAwB,GAAc;AACrF,CAAI,KACA,EAAO,UAAU,EAAU,GAAG,EAAK,WAAW,GAAG,EAAgB,EAAS,CAAC,EAC3E,EAAO,cAAc,EAAU,EAAO,WAAW,GAAG,GAAG,EAAiB,EAAS,CAAC,IAE7E,MACL,EAAO,UAAU,EAAU,EAAO,WAAW,GAAG,EAAK,WAAW,GAAG,EAAS;AAKhF,MAAK,IAAI,IAAI,GAAG,IAAI,GAAY,KAAK;EACjC,IAAM,IAAc,EAAkB,IAClC,IAAe,EAAU,GAAQ,EAAY,EAC7C,IAAa,EAAU,GAAM,EAAY;AACzC,QAAiB,KAAA,KAAa,MAAe,KAAA,MAEjD,AAAiB,MAAe,GAChC,AAAe,MAAa,GACb,MAAiB,KAC5B,MAAe,KACf,EAAK,EAAa,KAAK,EAAK,EAAW,IAEvC,EAAO,KAAe,KAAK,IAAI,EAAU,EAAS,EAAa,EAAE,EAAS,EAAW,EAAE,EAAS,EAAE,EAAE,GAChG,EAAQ,KAAK,EAAW,IAAI,EAAQ,KAAK,EAAa,MACtD,EAAO,MAAgB,QAI3B,EAAO,KAAe;;AAM9B,EAAI,EAAO,UAAU,EAAK,YACtB,EAAO,SAAS,EAAU,EAAO,UAAU,GAAG,EAAK,UAAU,GAAG,EAAS;;AAGjF,SAAS,EAAU,GAAQ,GAAY;AACnC,QAAO,EAAO,OAAgB,KAAA,IAExB,EAAO,eADP,EAAO;;AAGjB,IAAM,IAAgC,kBAAS,GAAG,IAAK,EAAQ,EACzD,IAAiC,kBAAS,IAAK,KAAM,EAAK;AAChE,SAAS,EAAS,GAAK,GAAK,GAAQ;AAChC,SAAQ,MAEA,IAAI,IACG,IACP,IAAI,IACG,IACJ,EAAO,EAAS,GAAK,GAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2
|
+
function e({ top: e, left: t, right: n, bottom: r }) {
|
|
3
|
+
return {
|
|
4
|
+
x: {
|
|
5
|
+
min: t,
|
|
6
|
+
max: n
|
|
7
|
+
},
|
|
8
|
+
y: {
|
|
9
|
+
min: e,
|
|
10
|
+
max: r
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function t({ x: e, y: t }) {
|
|
15
|
+
return {
|
|
16
|
+
top: t.min,
|
|
17
|
+
right: e.max,
|
|
18
|
+
bottom: t.max,
|
|
19
|
+
left: e.min
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function n(e, t) {
|
|
23
|
+
if (!t) return e;
|
|
24
|
+
let n = t({
|
|
25
|
+
x: e.left,
|
|
26
|
+
y: e.top
|
|
27
|
+
}), r = t({
|
|
28
|
+
x: e.right,
|
|
29
|
+
y: e.bottom
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
top: n.y,
|
|
33
|
+
left: n.x,
|
|
34
|
+
bottom: r.y,
|
|
35
|
+
right: r.x
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { e as convertBoundingBoxToBox, t as convertBoxToBoundingBox, n as transformBoxPoints };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=conversion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversion.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs"],"sourcesContent":["/**\n * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n * it's easier to consider each axis individually. This function returns a bounding box\n * as a map of single-axis min/max values.\n */\nfunction convertBoundingBoxToBox({ top, left, right, bottom, }) {\n return {\n x: { min: left, max: right },\n y: { min: top, max: bottom },\n };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\n/**\n * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n * provided by Framer to allow measured points to be corrected for device scaling. This is used\n * when measuring DOM elements and DOM event points.\n */\nfunction transformBoxPoints(point, transformPoint) {\n if (!transformPoint)\n return point;\n const topLeft = transformPoint({ x: point.left, y: point.top });\n const bottomRight = transformPoint({ x: point.right, y: point.bottom });\n return {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x,\n };\n}\n\nexport { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };\n//# sourceMappingURL=conversion.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAKA,SAAS,EAAwB,EAAE,QAAK,SAAM,UAAO,aAAW;AAC5D,QAAO;EACH,GAAG;GAAE,KAAK;GAAM,KAAK;GAAO;EAC5B,GAAG;GAAE,KAAK;GAAK,KAAK;GAAQ;EAC/B;;AAEL,SAAS,EAAwB,EAAE,MAAG,QAAK;AACvC,QAAO;EAAE,KAAK,EAAE;EAAK,OAAO,EAAE;EAAK,QAAQ,EAAE;EAAK,MAAM,EAAE;EAAK;;AAOnE,SAAS,EAAmB,GAAO,GAAgB;AAC/C,KAAI,CAAC,EACD,QAAO;CACX,IAAM,IAAU,EAAe;EAAE,GAAG,EAAM;EAAM,GAAG,EAAM;EAAK,CAAC,EACzD,IAAc,EAAe;EAAE,GAAG,EAAM;EAAO,GAAG,EAAM;EAAQ,CAAC;AACvE,QAAO;EACH,KAAK,EAAQ;EACb,MAAM,EAAQ;EACd,QAAQ,EAAY;EACpB,OAAO,EAAY;EACtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
e.min = t.min, e.max = t.max;
|
|
4
|
+
}
|
|
5
|
+
function t(t, n) {
|
|
6
|
+
e(t.x, n.x), e(t.y, n.y);
|
|
7
|
+
}
|
|
8
|
+
function n(e, t) {
|
|
9
|
+
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as copyAxisDeltaInto, e as copyAxisInto, t as copyBoxInto };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/copy.mjs"],"sourcesContent":["/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n/**\n * Reset a delta to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisDeltaInto(delta, originDelta) {\n delta.translate = originDelta.translate;\n delta.scale = originDelta.scale;\n delta.originPoint = originDelta.originPoint;\n delta.origin = originDelta.origin;\n}\n\nexport { copyAxisDeltaInto, copyAxisInto, copyBoxInto };\n//# sourceMappingURL=copy.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAKA,SAAS,EAAa,GAAM,GAAY;AAEpC,CADA,EAAK,MAAM,EAAW,KACtB,EAAK,MAAM,EAAW;;AAO1B,SAAS,EAAY,GAAK,GAAW;AAEjC,CADA,EAAa,EAAI,GAAG,EAAU,EAAE,EAChC,EAAa,EAAI,GAAG,EAAU,EAAE;;AAOpC,SAAS,EAAkB,GAAO,GAAa;AAI3C,CAHA,EAAM,YAAY,EAAY,WAC9B,EAAM,QAAQ,EAAY,OAC1B,EAAM,cAAc,EAAY,aAChC,EAAM,SAAS,EAAY"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { mixNumber as e } from "../../utils/mix/number.js";
|
|
2
|
+
import { hasTransform as t } from "../utils/has-transform.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
|
|
4
|
+
function n(e, t, n) {
|
|
5
|
+
return n + t * (e - n);
|
|
6
|
+
}
|
|
7
|
+
function r(e, t, r, i, a) {
|
|
8
|
+
return a !== void 0 && (e = n(e, a, i)), n(e, r, i) + t;
|
|
9
|
+
}
|
|
10
|
+
function i(e, t = 0, n = 1, i, a) {
|
|
11
|
+
e.min = r(e.min, t, n, i, a), e.max = r(e.max, t, n, i, a);
|
|
12
|
+
}
|
|
13
|
+
function a(e, { x: t, y: n }) {
|
|
14
|
+
i(e.x, t.translate, t.scale, t.originPoint), i(e.y, n.translate, n.scale, n.originPoint);
|
|
15
|
+
}
|
|
16
|
+
var o = .999999999999, s = 1.0000000000001;
|
|
17
|
+
function c(e, n, r, i = !1) {
|
|
18
|
+
let c = r.length;
|
|
19
|
+
if (!c) return;
|
|
20
|
+
n.x = n.y = 1;
|
|
21
|
+
let u, d;
|
|
22
|
+
for (let o = 0; o < c; o++) {
|
|
23
|
+
u = r[o], d = u.projectionDelta;
|
|
24
|
+
let { visualElement: s } = u.options;
|
|
25
|
+
s && s.props.style && s.props.style.display === "contents" || (i && u.options.layoutScroll && u.scroll && u !== u.root && (l(e.x, -u.scroll.offset.x), l(e.y, -u.scroll.offset.y)), d && (n.x *= d.x.scale, n.y *= d.y.scale, a(e, d)), i && t(u.latestValues) && f(e, u.latestValues, u.layout?.layoutBox));
|
|
26
|
+
}
|
|
27
|
+
n.x < s && n.x > o && (n.x = 1), n.y < s && n.y > o && (n.y = 1);
|
|
28
|
+
}
|
|
29
|
+
function l(e, t) {
|
|
30
|
+
e.min += t, e.max += t;
|
|
31
|
+
}
|
|
32
|
+
function u(t, n, r, a, o = .5) {
|
|
33
|
+
i(t, n, r, e(t.min, t.max, o), a);
|
|
34
|
+
}
|
|
35
|
+
function d(e, t) {
|
|
36
|
+
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
|
|
37
|
+
}
|
|
38
|
+
function f(e, t, n) {
|
|
39
|
+
let r = n ?? e;
|
|
40
|
+
u(e.x, d(t.x, r.x), t.scaleX, t.scale, t.originX), u(e.y, d(t.y, r.y), t.scaleY, t.scale, t.originY);
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { a as applyBoxDelta, c as applyTreeDeltas, n as scalePoint, f as transformBox, l as translateAxis };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=delta-apply.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delta-apply.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs"],"sourcesContent":["import { mixNumber } from '../../utils/mix/number.mjs';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\nconst TREE_SCALE_SNAP_MIN = 0.999999999999;\nconst TREE_SCALE_SNAP_MAX = 1.0000000000001;\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const { visualElement } = node.options;\n if (visualElement &&\n visualElement.props.style &&\n visualElement.props.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n translateAxis(box.x, -node.scroll.offset.x);\n translateAxis(box.y, -node.scroll.offset.y);\n }\n if (delta) {\n // Incoporate each ancestor's scale into a cumulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues, node.layout?.layoutBox);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n if (treeScale.x < TREE_SCALE_SNAP_MAX &&\n treeScale.x > TREE_SCALE_SNAP_MIN) {\n treeScale.x = 1.0;\n }\n if (treeScale.y < TREE_SCALE_SNAP_MAX &&\n treeScale.y > TREE_SCALE_SNAP_MIN) {\n treeScale.y = 1.0;\n }\n}\nfunction translateAxis(axis, distance) {\n axis.min += distance;\n axis.max += distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {\n const originPoint = mixNumber(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);\n}\nfunction resolveAxisTranslate(value, axis) {\n if (typeof value === \"string\") {\n return (parseFloat(value) / 100) * (axis.max - axis.min);\n }\n return value;\n}\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform, sourceBox) {\n const resolveBox = sourceBox ?? box;\n transformAxis(box.x, resolveAxisTranslate(transform.x, resolveBox.x), transform.scaleX, transform.scale, transform.originX);\n transformAxis(box.y, resolveAxisTranslate(transform.y, resolveBox.y), transform.scaleY, transform.scale, transform.originY);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n//# sourceMappingURL=delta-apply.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAMA,SAAS,EAAW,GAAO,GAAO,GAAa;AAG3C,QAAO,IADQ,KADY,IAAQ;;AAOvC,SAAS,EAAgB,GAAO,GAAW,GAAO,GAAa,GAAU;AAIrE,QAHI,MAAa,KAAA,MACb,IAAQ,EAAW,GAAO,GAAU,EAAY,GAE7C,EAAW,GAAO,GAAO,EAAY,GAAG;;AAKnD,SAAS,EAAe,GAAM,IAAY,GAAG,IAAQ,GAAG,GAAa,GAAU;AAE3E,CADA,EAAK,MAAM,EAAgB,EAAK,KAAK,GAAW,GAAO,GAAa,EAAS,EAC7E,EAAK,MAAM,EAAgB,EAAK,KAAK,GAAW,GAAO,GAAa,EAAS;;AAKjF,SAAS,EAAc,GAAK,EAAE,MAAG,QAAK;AAElC,CADA,EAAe,EAAI,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAC1D,EAAe,EAAI,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY;;AAE9D,IAAM,IAAsB,eACtB,IAAsB;AAO5B,SAAS,EAAgB,GAAK,GAAW,GAAU,IAAqB,IAAO;CAC3E,IAAM,IAAa,EAAS;AAC5B,KAAI,CAAC,EACD;AAEJ,GAAU,IAAI,EAAU,IAAI;CAC5B,IAAI,GACA;AACJ,MAAK,IAAI,IAAI,GAAG,IAAI,GAAY,KAAK;AAEjC,EADA,IAAO,EAAS,IAChB,IAAQ,EAAK;EAKb,IAAM,EAAE,qBAAkB,EAAK;AAC3B,OACA,EAAc,MAAM,SACpB,EAAc,MAAM,MAAM,YAAY,eAGtC,KACA,EAAK,QAAQ,gBACb,EAAK,UACL,MAAS,EAAK,SACd,EAAc,EAAI,GAAG,CAAC,EAAK,OAAO,OAAO,EAAE,EAC3C,EAAc,EAAI,GAAG,CAAC,EAAK,OAAO,OAAO,EAAE,GAE3C,MAEA,EAAU,KAAK,EAAM,EAAE,OACvB,EAAU,KAAK,EAAM,EAAE,OAEvB,EAAc,GAAK,EAAM,GAEzB,KAAsB,EAAa,EAAK,aAAa,IACrD,EAAa,GAAK,EAAK,cAAc,EAAK,QAAQ,UAAU;;AAWpE,CAJI,EAAU,IAAI,KACd,EAAU,IAAI,MACd,EAAU,IAAI,IAEd,EAAU,IAAI,KACd,EAAU,IAAI,MACd,EAAU,IAAI;;AAGtB,SAAS,EAAc,GAAM,GAAU;AAEnC,CADA,EAAK,OAAO,GACZ,EAAK,OAAO;;AAOhB,SAAS,EAAc,GAAM,GAAe,GAAW,GAAU,IAAa,IAAK;AAG/E,GAAe,GAAM,GAAe,GAFhB,EAAU,EAAK,KAAK,EAAK,KAAK,EAAW,EAED,EAAS;;AAEzE,SAAS,EAAqB,GAAO,GAAM;AAIvC,QAHI,OAAO,KAAU,WACT,WAAW,EAAM,GAAG,OAAQ,EAAK,MAAM,EAAK,OAEjD;;AAKX,SAAS,EAAa,GAAK,GAAW,GAAW;CAC7C,IAAM,IAAa,KAAa;AAEhC,CADA,EAAc,EAAI,GAAG,EAAqB,EAAU,GAAG,EAAW,EAAE,EAAE,EAAU,QAAQ,EAAU,OAAO,EAAU,QAAQ,EAC3H,EAAc,EAAI,GAAG,EAAqB,EAAU,GAAG,EAAW,EAAE,EAAE,EAAU,QAAQ,EAAU,OAAO,EAAU,QAAQ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { mixNumber as e } from "../../utils/mix/number.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
|
|
3
|
+
var t = 1e-4, n = 1 - t, r = 1 + t, i = .01, a = 0 - i, o = 0 + i;
|
|
4
|
+
function s(e) {
|
|
5
|
+
return e.max - e.min;
|
|
6
|
+
}
|
|
7
|
+
function c(e, t, n) {
|
|
8
|
+
return Math.abs(e - t) <= n;
|
|
9
|
+
}
|
|
10
|
+
function l(t, i, c, l = .5) {
|
|
11
|
+
t.origin = l, t.originPoint = e(i.min, i.max, t.origin), t.scale = s(c) / s(i), t.translate = e(c.min, c.max, t.origin) - t.originPoint, (t.scale >= n && t.scale <= r || isNaN(t.scale)) && (t.scale = 1), (t.translate >= a && t.translate <= o || isNaN(t.translate)) && (t.translate = 0);
|
|
12
|
+
}
|
|
13
|
+
function u(e, t, n, r) {
|
|
14
|
+
l(e.x, t.x, n.x, r ? r.originX : void 0), l(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
15
|
+
}
|
|
16
|
+
function d(t, n, r, i = 0) {
|
|
17
|
+
t.min = (i ? e(r.min, r.max, i) : r.min) + n.min, t.max = t.min + s(n);
|
|
18
|
+
}
|
|
19
|
+
function f(e, t, n, r) {
|
|
20
|
+
d(e.x, t.x, n.x, r?.x), d(e.y, t.y, n.y, r?.y);
|
|
21
|
+
}
|
|
22
|
+
function p(t, n, r, i = 0) {
|
|
23
|
+
let a = i ? e(r.min, r.max, i) : r.min;
|
|
24
|
+
t.min = n.min - a, t.max = t.min + s(n);
|
|
25
|
+
}
|
|
26
|
+
function m(e, t, n, r) {
|
|
27
|
+
p(e.x, t.x, n.x, r?.x), p(e.y, t.y, n.y, r?.y);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { u as calcBoxDelta, s as calcLength, f as calcRelativeBox, m as calcRelativePosition, c as isNear };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=delta-calc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delta-calc.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs"],"sourcesContent":["import { mixNumber } from '../../utils/mix/number.mjs';\n\nconst SCALE_PRECISION = 0.0001;\nconst SCALE_MIN = 1 - SCALE_PRECISION;\nconst SCALE_MAX = 1 + SCALE_PRECISION;\nconst TRANSLATE_PRECISION = 0.01;\nconst TRANSLATE_MIN = 0 - TRANSLATE_PRECISION;\nconst TRANSLATE_MAX = 0 + TRANSLATE_PRECISION;\nfunction calcLength(axis) {\n return axis.max - axis.min;\n}\nfunction isNear(value, target, maxDistance) {\n return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n delta.origin = origin;\n delta.originPoint = mixNumber(source.min, source.max, delta.origin);\n delta.scale = calcLength(target) / calcLength(source);\n delta.translate =\n mixNumber(target.min, target.max, delta.origin) - delta.originPoint;\n if ((delta.scale >= SCALE_MIN && delta.scale <= SCALE_MAX) ||\n isNaN(delta.scale)) {\n delta.scale = 1.0;\n }\n if ((delta.translate >= TRANSLATE_MIN &&\n delta.translate <= TRANSLATE_MAX) ||\n isNaN(delta.translate)) {\n delta.translate = 0.0;\n }\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);\n calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);\n}\nfunction calcRelativeAxis(target, relative, parent, anchor = 0) {\n const anchorPoint = anchor\n ? mixNumber(parent.min, parent.max, anchor)\n : parent.min;\n target.min = anchorPoint + relative.min;\n target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent, anchor) {\n calcRelativeAxis(target.x, relative.x, parent.x, anchor?.x);\n calcRelativeAxis(target.y, relative.y, parent.y, anchor?.y);\n}\nfunction calcRelativeAxisPosition(target, layout, parent, anchor = 0) {\n const anchorPoint = anchor\n ? mixNumber(parent.min, parent.max, anchor)\n : parent.min;\n target.min = layout.min - anchorPoint;\n target.max = target.min + calcLength(layout);\n}\nfunction calcRelativePosition(target, layout, parent, anchor) {\n calcRelativeAxisPosition(target.x, layout.x, parent.x, anchor?.x);\n calcRelativeAxisPosition(target.y, layout.y, parent.y, anchor?.y);\n}\n\nexport { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };\n//# sourceMappingURL=delta-calc.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAM,IAAkB,MAClB,IAAY,IAAI,GAChB,IAAY,IAAI,GAChB,IAAsB,KACtB,IAAgB,IAAI,GACpB,IAAgB,IAAI;AAC1B,SAAS,EAAW,GAAM;AACtB,QAAO,EAAK,MAAM,EAAK;;AAE3B,SAAS,EAAO,GAAO,GAAQ,GAAa;AACxC,QAAO,KAAK,IAAI,IAAQ,EAAO,IAAI;;AAEvC,SAAS,EAAc,GAAO,GAAQ,GAAQ,IAAS,IAAK;AAUxD,CATA,EAAM,SAAS,GACf,EAAM,cAAc,EAAU,EAAO,KAAK,EAAO,KAAK,EAAM,OAAO,EACnE,EAAM,QAAQ,EAAW,EAAO,GAAG,EAAW,EAAO,EACrD,EAAM,YACF,EAAU,EAAO,KAAK,EAAO,KAAK,EAAM,OAAO,GAAG,EAAM,cACvD,EAAM,SAAS,KAAa,EAAM,SAAS,KAC5C,MAAM,EAAM,MAAM,MAClB,EAAM,QAAQ,KAEb,EAAM,aAAa,KACpB,EAAM,aAAa,KACnB,MAAM,EAAM,UAAU,MACtB,EAAM,YAAY;;AAG1B,SAAS,EAAa,GAAO,GAAQ,GAAQ,GAAQ;AAEjD,CADA,EAAc,EAAM,GAAG,EAAO,GAAG,EAAO,GAAG,IAAS,EAAO,UAAU,KAAA,EAAU,EAC/E,EAAc,EAAM,GAAG,EAAO,GAAG,EAAO,GAAG,IAAS,EAAO,UAAU,KAAA,EAAU;;AAEnF,SAAS,EAAiB,GAAQ,GAAU,GAAQ,IAAS,GAAG;AAK5D,CADA,EAAO,OAHa,IACd,EAAU,EAAO,KAAK,EAAO,KAAK,EAAO,GACzC,EAAO,OACc,EAAS,KACpC,EAAO,MAAM,EAAO,MAAM,EAAW,EAAS;;AAElD,SAAS,EAAgB,GAAQ,GAAU,GAAQ,GAAQ;AAEvD,CADA,EAAiB,EAAO,GAAG,EAAS,GAAG,EAAO,GAAG,GAAQ,EAAE,EAC3D,EAAiB,EAAO,GAAG,EAAS,GAAG,EAAO,GAAG,GAAQ,EAAE;;AAE/D,SAAS,EAAyB,GAAQ,GAAQ,GAAQ,IAAS,GAAG;CAClE,IAAM,IAAc,IACd,EAAU,EAAO,KAAK,EAAO,KAAK,EAAO,GACzC,EAAO;AAEb,CADA,EAAO,MAAM,EAAO,MAAM,GAC1B,EAAO,MAAM,EAAO,MAAM,EAAW,EAAO;;AAEhD,SAAS,EAAqB,GAAQ,GAAQ,GAAQ,GAAQ;AAE1D,CADA,EAAyB,EAAO,GAAG,EAAO,GAAG,EAAO,GAAG,GAAQ,EAAE,EACjE,EAAyB,EAAO,GAAG,EAAO,GAAG,EAAO,GAAG,GAAQ,EAAE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { percent as e } from "../../value/types/numbers/units.js";
|
|
2
|
+
import { mixNumber as t } from "../../utils/mix/number.js";
|
|
3
|
+
import { scalePoint as n } from "./delta-apply.js";
|
|
4
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
|
|
5
|
+
function r(e, t, r, i, a) {
|
|
6
|
+
return e -= t, e = n(e, 1 / r, i), a !== void 0 && (e = n(e, 1 / a, i)), e;
|
|
7
|
+
}
|
|
8
|
+
function i(n, i = 0, a = 1, o = .5, s, c = n, l = n) {
|
|
9
|
+
if (e.test(i) && (i = parseFloat(i), i = t(l.min, l.max, i / 100) - l.min), typeof i != "number") return;
|
|
10
|
+
let u = t(c.min, c.max, o);
|
|
11
|
+
n === c && (u -= i), n.min = r(n.min, i, a, u, s), n.max = r(n.max, i, a, u, s);
|
|
12
|
+
}
|
|
13
|
+
function a(e, t, [n, r, a], o, s) {
|
|
14
|
+
i(e, t[n], t[r], t[a], t.scale, o, s);
|
|
15
|
+
}
|
|
16
|
+
var o = [
|
|
17
|
+
"x",
|
|
18
|
+
"scaleX",
|
|
19
|
+
"originX"
|
|
20
|
+
], s = [
|
|
21
|
+
"y",
|
|
22
|
+
"scaleY",
|
|
23
|
+
"originY"
|
|
24
|
+
];
|
|
25
|
+
function c(e, t, n, r) {
|
|
26
|
+
a(e.x, t, o, n ? n.x : void 0, r ? r.x : void 0), a(e.y, t, s, n ? n.y : void 0, r ? r.y : void 0);
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { c as removeBoxTransforms };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=delta-remove.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delta-remove.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs"],"sourcesContent":["import { mixNumber } from '../../utils/mix/number.mjs';\nimport { percent } from '../../value/types/numbers/units.mjs';\nimport { scalePoint } from './delta-apply.mjs';\n\n/**\n * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse\n */\nfunction removePointDelta(point, translate, scale, originPoint, boxScale) {\n point -= translate;\n point = scalePoint(point, 1 / scale, originPoint);\n if (boxScale !== undefined) {\n point = scalePoint(point, 1 / boxScale, originPoint);\n }\n return point;\n}\n/**\n * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse\n */\nfunction removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n if (percent.test(translate)) {\n translate = parseFloat(translate);\n const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);\n translate = relativeProgress - sourceAxis.min;\n }\n if (typeof translate !== \"number\")\n return;\n let originPoint = mixNumber(originAxis.min, originAxis.max, origin);\n if (axis === originAxis)\n originPoint -= translate;\n axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);\n removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);\n}\n\nexport { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };\n//# sourceMappingURL=delta-remove.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAOA,SAAS,EAAiB,GAAO,GAAW,GAAO,GAAa,GAAU;AAMtE,QALA,KAAS,GACT,IAAQ,EAAW,GAAO,IAAI,GAAO,EAAY,EAC7C,MAAa,KAAA,MACb,IAAQ,EAAW,GAAO,IAAI,GAAU,EAAY,GAEjD;;AAKX,SAAS,EAAgB,GAAM,IAAY,GAAG,IAAQ,GAAG,IAAS,IAAK,GAAU,IAAa,GAAM,IAAa,GAAM;AAMnH,KALI,EAAQ,KAAK,EAAU,KACvB,IAAY,WAAW,EAAU,EAEjC,IADyB,EAAU,EAAW,KAAK,EAAW,KAAK,IAAY,IAAI,GACpD,EAAW,MAE1C,OAAO,KAAc,SACrB;CACJ,IAAI,IAAc,EAAU,EAAW,KAAK,EAAW,KAAK,EAAO;AAInE,CAHI,MAAS,MACT,KAAe,IACnB,EAAK,MAAM,EAAiB,EAAK,KAAK,GAAW,GAAO,GAAa,EAAS,EAC9E,EAAK,MAAM,EAAiB,EAAK,KAAK,GAAW,GAAO,GAAa,EAAS;;AAMlF,SAAS,EAAqB,GAAM,GAAY,CAAC,GAAK,GAAU,IAAY,GAAQ,GAAY;AAC5F,GAAgB,GAAM,EAAW,IAAM,EAAW,IAAW,EAAW,IAAY,EAAW,OAAO,GAAQ,EAAW;;AAK7H,IAAM,IAAQ;CAAC;CAAK;CAAU;CAAU,EAClC,IAAQ;CAAC;CAAK;CAAU;CAAU;AAKxC,SAAS,EAAoB,GAAK,GAAY,GAAW,GAAW;AAEhE,CADA,EAAqB,EAAI,GAAG,GAAY,GAAO,IAAY,EAAU,IAAI,KAAA,GAAW,IAAY,EAAU,IAAI,KAAA,EAAU,EACxH,EAAqB,EAAI,GAAG,GAAY,GAAO,IAAY,EAAU,IAAI,KAAA,GAAW,IAAY,EAAU,IAAI,KAAA,EAAU"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/models.mjs
|
|
2
|
+
var e = () => ({
|
|
3
|
+
translate: 0,
|
|
4
|
+
scale: 1,
|
|
5
|
+
origin: 0,
|
|
6
|
+
originPoint: 0
|
|
7
|
+
}), t = () => ({
|
|
8
|
+
x: e(),
|
|
9
|
+
y: e()
|
|
10
|
+
}), n = () => ({
|
|
11
|
+
min: 0,
|
|
12
|
+
max: 0
|
|
13
|
+
}), r = () => ({
|
|
14
|
+
x: n(),
|
|
15
|
+
y: n()
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as createBox, t as createDelta };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/models.mjs"],"sourcesContent":["const createAxisDelta = () => ({\n translate: 0,\n scale: 1,\n origin: 0,\n originPoint: 0,\n});\nconst createDelta = () => ({\n x: createAxisDelta(),\n y: createAxisDelta(),\n});\nconst createAxis = () => ({ min: 0, max: 0 });\nconst createBox = () => ({\n x: createAxis(),\n y: createAxis(),\n});\n\nexport { createAxis, createAxisDelta, createBox, createDelta };\n//# sourceMappingURL=models.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,WAAyB;CAC3B,WAAW;CACX,OAAO;CACP,QAAQ;CACR,aAAa;CAChB,GACK,WAAqB;CACvB,GAAG,GAAiB;CACpB,GAAG,GAAiB;CACvB,GACK,WAAoB;CAAE,KAAK;CAAG,KAAK;CAAG,GACtC,WAAmB;CACrB,GAAG,GAAY;CACf,GAAG,GAAY;CAClB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { calcLength as e } from "./delta-calc.js";
|
|
2
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e.translate === 0 && e.scale === 1;
|
|
5
|
+
}
|
|
6
|
+
function n(e) {
|
|
7
|
+
return t(e.x) && t(e.y);
|
|
8
|
+
}
|
|
9
|
+
function r(e, t) {
|
|
10
|
+
return e.min === t.min && e.max === t.max;
|
|
11
|
+
}
|
|
12
|
+
function i(e, t) {
|
|
13
|
+
return r(e.x, t.x) && r(e.y, t.y);
|
|
14
|
+
}
|
|
15
|
+
function a(e, t) {
|
|
16
|
+
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
17
|
+
}
|
|
18
|
+
function o(e, t) {
|
|
19
|
+
return a(e.x, t.x) && a(e.y, t.y);
|
|
20
|
+
}
|
|
21
|
+
function s(t) {
|
|
22
|
+
return e(t.x) / e(t.y);
|
|
23
|
+
}
|
|
24
|
+
function c(e, t) {
|
|
25
|
+
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { s as aspectRatio, c as axisDeltaEquals, i as boxEquals, o as boxEqualsRounded, n as isDeltaZero };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=utils.js.map
|