motion 10.18.0 → 11.11.13

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.
Files changed (384) hide show
  1. package/.turbo/turbo-build.log +32 -0
  2. package/{LICENSE → LICENSE.md} +2 -2
  3. package/README.md +99 -7
  4. package/dist/cjs/index.js +6117 -0
  5. package/dist/cjs/react-client.js +10003 -0
  6. package/dist/cjs/react-m.js +1852 -0
  7. package/dist/es/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +78 -0
  8. package/dist/es/framer-motion/dist/es/animation/animate/index.mjs +34 -0
  9. package/dist/es/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +19 -0
  10. package/dist/es/framer-motion/dist/es/animation/animate/sequence.mjs +14 -0
  11. package/dist/es/framer-motion/dist/es/animation/animate/single-value.mjs +11 -0
  12. package/dist/es/framer-motion/dist/es/animation/animate/subject.mjs +52 -0
  13. package/dist/es/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +318 -0
  14. package/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +113 -0
  15. package/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +384 -0
  16. package/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +17 -0
  17. package/dist/es/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +14 -0
  18. package/dist/es/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +42 -0
  19. package/dist/es/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +169 -0
  20. package/dist/es/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +36 -0
  21. package/dist/es/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +12 -0
  22. package/dist/es/framer-motion/dist/es/animation/animators/waapi/easing.mjs +44 -0
  23. package/dist/es/framer-motion/dist/es/animation/animators/waapi/index.mjs +23 -0
  24. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/attach-timeline.mjs +6 -0
  25. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +12 -0
  26. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/linear.mjs +15 -0
  27. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +9 -0
  28. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +8 -0
  29. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs +9 -0
  30. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs +15 -0
  31. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +13 -0
  32. package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +5 -0
  33. package/dist/es/framer-motion/dist/es/animation/generators/inertia.mjs +87 -0
  34. package/dist/es/framer-motion/dist/es/animation/generators/keyframes.mjs +51 -0
  35. package/dist/es/framer-motion/dist/es/animation/generators/spring/find.mjs +89 -0
  36. package/dist/es/framer-motion/dist/es/animation/generators/spring/index.mjs +129 -0
  37. package/dist/es/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs +17 -0
  38. package/dist/es/framer-motion/dist/es/animation/generators/utils/is-generator.mjs +5 -0
  39. package/dist/es/framer-motion/dist/es/animation/generators/utils/velocity.mjs +9 -0
  40. package/dist/es/framer-motion/dist/es/animation/hooks/animation-controls.mjs +80 -0
  41. package/dist/es/framer-motion/dist/es/animation/hooks/use-animate-style.mjs +17 -0
  42. package/dist/es/framer-motion/dist/es/animation/hooks/use-animate.mjs +17 -0
  43. package/dist/es/framer-motion/dist/es/animation/hooks/use-animated-state.mjs +64 -0
  44. package/dist/es/framer-motion/dist/es/animation/hooks/use-animation.mjs +41 -0
  45. package/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.mjs +113 -0
  46. package/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +75 -0
  47. package/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs +66 -0
  48. package/dist/es/framer-motion/dist/es/animation/interfaces/visual-element.mjs +26 -0
  49. package/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +6 -0
  50. package/dist/es/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +7 -0
  51. package/dist/es/framer-motion/dist/es/animation/optimized-appear/handoff.mjs +40 -0
  52. package/dist/es/framer-motion/dist/es/animation/optimized-appear/start.mjs +173 -0
  53. package/dist/es/framer-motion/dist/es/animation/optimized-appear/store-id.mjs +8 -0
  54. package/dist/es/framer-motion/dist/es/animation/optimized-appear/store.mjs +4 -0
  55. package/dist/es/framer-motion/dist/es/animation/sequence/create.mjs +230 -0
  56. package/dist/es/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +21 -0
  57. package/dist/es/framer-motion/dist/es/animation/sequence/utils/edit.mjs +31 -0
  58. package/dist/es/framer-motion/dist/es/animation/sequence/utils/sort.mjs +14 -0
  59. package/dist/es/framer-motion/dist/es/animation/utils/create-visual-element.mjs +44 -0
  60. package/dist/es/framer-motion/dist/es/animation/utils/default-transitions.mjs +40 -0
  61. package/dist/es/framer-motion/dist/es/animation/utils/get-value-transition.mjs +9 -0
  62. package/dist/es/framer-motion/dist/es/animation/utils/is-animatable.mjs +30 -0
  63. package/dist/es/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +7 -0
  64. package/dist/es/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +5 -0
  65. package/dist/es/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +5 -0
  66. package/dist/es/framer-motion/dist/es/animation/utils/is-none.mjs +15 -0
  67. package/dist/es/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +10 -0
  68. package/dist/es/framer-motion/dist/es/animation/utils/stagger.mjs +26 -0
  69. package/dist/es/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs +77 -0
  70. package/dist/es/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs +61 -0
  71. package/dist/es/framer-motion/dist/es/components/AnimatePresence/index.mjs +163 -0
  72. package/dist/es/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs +66 -0
  73. package/dist/es/framer-motion/dist/es/components/AnimatePresence/utils.mjs +14 -0
  74. package/dist/es/framer-motion/dist/es/components/AnimateSharedLayout.mjs +15 -0
  75. package/dist/es/framer-motion/dist/es/components/LayoutGroup/index.mjs +32 -0
  76. package/dist/es/framer-motion/dist/es/components/LazyMotion/index.mjs +68 -0
  77. package/dist/es/framer-motion/dist/es/components/MotionConfig/index.mjs +48 -0
  78. package/dist/es/framer-motion/dist/es/components/Reorder/Group.mjs +53 -0
  79. package/dist/es/framer-motion/dist/es/components/Reorder/Item.mjs +34 -0
  80. package/dist/es/framer-motion/dist/es/components/Reorder/namespace.mjs +2 -0
  81. package/dist/es/framer-motion/dist/es/components/Reorder/utils/check-reorder.mjs +24 -0
  82. package/dist/es/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs +10 -0
  83. package/dist/es/framer-motion/dist/es/context/LayoutGroupContext.mjs +6 -0
  84. package/dist/es/framer-motion/dist/es/context/LazyContext.mjs +6 -0
  85. package/dist/es/framer-motion/dist/es/context/MotionConfigContext.mjs +13 -0
  86. package/dist/es/framer-motion/dist/es/context/MotionContext/create.mjs +13 -0
  87. package/dist/es/framer-motion/dist/es/context/MotionContext/index.mjs +6 -0
  88. package/dist/es/framer-motion/dist/es/context/MotionContext/utils.mjs +17 -0
  89. package/dist/es/framer-motion/dist/es/context/PresenceContext.mjs +9 -0
  90. package/dist/es/framer-motion/dist/es/context/ReorderContext.mjs +6 -0
  91. package/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs +9 -0
  92. package/dist/es/framer-motion/dist/es/easing/anticipate.mjs +5 -0
  93. package/dist/es/framer-motion/dist/es/easing/back.mjs +9 -0
  94. package/dist/es/framer-motion/dist/es/easing/circ.mjs +8 -0
  95. package/dist/es/framer-motion/dist/es/easing/cubic-bezier.mjs +51 -0
  96. package/dist/es/framer-motion/dist/es/easing/ease.mjs +7 -0
  97. package/dist/es/framer-motion/dist/es/easing/modifiers/mirror.mjs +5 -0
  98. package/dist/es/framer-motion/dist/es/easing/modifiers/reverse.mjs +5 -0
  99. package/dist/es/framer-motion/dist/es/easing/steps.mjs +15 -0
  100. package/dist/es/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +17 -0
  101. package/dist/es/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +8 -0
  102. package/dist/es/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs +3 -0
  103. package/dist/es/framer-motion/dist/es/easing/utils/is-easing-array.mjs +5 -0
  104. package/dist/es/framer-motion/dist/es/easing/utils/map.mjs +38 -0
  105. package/dist/es/framer-motion/dist/es/events/add-dom-event.mjs +6 -0
  106. package/dist/es/framer-motion/dist/es/events/add-pointer-event.mjs +8 -0
  107. package/dist/es/framer-motion/dist/es/events/event-info.mjs +15 -0
  108. package/dist/es/framer-motion/dist/es/events/use-dom-event.mjs +34 -0
  109. package/dist/es/framer-motion/dist/es/events/utils/is-primary-pointer.mjs +18 -0
  110. package/dist/es/framer-motion/dist/es/frameloop/batcher.mjs +74 -0
  111. package/dist/es/framer-motion/dist/es/frameloop/frame.mjs +6 -0
  112. package/dist/es/framer-motion/dist/es/frameloop/index-legacy.mjs +20 -0
  113. package/dist/es/framer-motion/dist/es/frameloop/microtask.mjs +5 -0
  114. package/dist/es/framer-motion/dist/es/frameloop/render-step.mjs +80 -0
  115. package/dist/es/framer-motion/dist/es/frameloop/sync-time.mjs +31 -0
  116. package/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +487 -0
  117. package/dist/es/framer-motion/dist/es/gestures/drag/index.mjs +27 -0
  118. package/dist/es/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs +88 -0
  119. package/dist/es/framer-motion/dist/es/gestures/drag/utils/constraints.mjs +129 -0
  120. package/dist/es/framer-motion/dist/es/gestures/drag/utils/lock.mjs +53 -0
  121. package/dist/es/framer-motion/dist/es/gestures/focus.mjs +41 -0
  122. package/dist/es/framer-motion/dist/es/gestures/hover.mjs +33 -0
  123. package/dist/es/framer-motion/dist/es/gestures/pan/PanSession.mjs +156 -0
  124. package/dist/es/framer-motion/dist/es/gestures/pan/index.mjs +50 -0
  125. package/dist/es/framer-motion/dist/es/gestures/press.mjs +130 -0
  126. package/dist/es/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs +20 -0
  127. package/dist/es/framer-motion/dist/es/motion/features/Feature.mjs +9 -0
  128. package/dist/es/framer-motion/dist/es/motion/features/animation/exit.mjs +31 -0
  129. package/dist/es/framer-motion/dist/es/motion/features/animation/index.mjs +41 -0
  130. package/dist/es/framer-motion/dist/es/motion/features/animations.mjs +13 -0
  131. package/dist/es/framer-motion/dist/es/motion/features/definitions.mjs +28 -0
  132. package/dist/es/framer-motion/dist/es/motion/features/drag.mjs +17 -0
  133. package/dist/es/framer-motion/dist/es/motion/features/gestures.mjs +21 -0
  134. package/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +134 -0
  135. package/dist/es/framer-motion/dist/es/motion/features/layout.mjs +11 -0
  136. package/dist/es/framer-motion/dist/es/motion/features/load-features.mjs +12 -0
  137. package/dist/es/framer-motion/dist/es/motion/features/viewport/index.mjs +72 -0
  138. package/dist/es/framer-motion/dist/es/motion/features/viewport/observers.mjs +49 -0
  139. package/dist/es/framer-motion/dist/es/motion/index.mjs +98 -0
  140. package/dist/es/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +11 -0
  141. package/dist/es/framer-motion/dist/es/motion/utils/is-motion-component.mjs +12 -0
  142. package/dist/es/framer-motion/dist/es/motion/utils/symbol.mjs +3 -0
  143. package/dist/es/framer-motion/dist/es/motion/utils/unwrap-motion-component.mjs +17 -0
  144. package/dist/es/framer-motion/dist/es/motion/utils/use-motion-ref.mjs +36 -0
  145. package/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.mjs +134 -0
  146. package/dist/es/framer-motion/dist/es/motion/utils/use-visual-state.mjs +82 -0
  147. package/dist/es/framer-motion/dist/es/motion/utils/valid-prop.mjs +57 -0
  148. package/dist/es/framer-motion/dist/es/projection/animation/mix-values.mjs +93 -0
  149. package/dist/es/framer-motion/dist/es/projection/geometry/conversion.mjs +33 -0
  150. package/dist/es/framer-motion/dist/es/projection/geometry/copy.mjs +31 -0
  151. package/dist/es/framer-motion/dist/es/projection/geometry/delta-apply.mjs +119 -0
  152. package/dist/es/framer-motion/dist/es/projection/geometry/delta-calc.mjs +52 -0
  153. package/dist/es/framer-motion/dist/es/projection/geometry/delta-remove.mjs +54 -0
  154. package/dist/es/framer-motion/dist/es/projection/geometry/models.mjs +17 -0
  155. package/dist/es/framer-motion/dist/es/projection/geometry/utils.mjs +31 -0
  156. package/dist/es/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +13 -0
  157. package/dist/es/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +27 -0
  158. package/dist/es/framer-motion/dist/es/projection/node/create-projection-node.mjs +1583 -0
  159. package/dist/es/framer-motion/dist/es/projection/node/group.mjs +24 -0
  160. package/dist/es/framer-motion/dist/es/projection/node/state.mjs +19 -0
  161. package/dist/es/framer-motion/dist/es/projection/shared/stack.mjs +112 -0
  162. package/dist/es/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +41 -0
  163. package/dist/es/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +35 -0
  164. package/dist/es/framer-motion/dist/es/projection/styles/scale-correction.mjs +6 -0
  165. package/dist/es/framer-motion/dist/es/projection/styles/transform.mjs +49 -0
  166. package/dist/es/framer-motion/dist/es/projection/use-instant-layout-transition.mjs +14 -0
  167. package/dist/es/framer-motion/dist/es/projection/use-reset-projection.mjs +14 -0
  168. package/dist/es/framer-motion/dist/es/projection/utils/each-axis.mjs +5 -0
  169. package/dist/es/framer-motion/dist/es/projection/utils/has-transform.mjs +26 -0
  170. package/dist/es/framer-motion/dist/es/projection/utils/measure.mjs +17 -0
  171. package/dist/es/framer-motion/dist/es/render/VisualElement.mjs +477 -0
  172. package/dist/es/framer-motion/dist/es/render/components/create-factory.mjs +23 -0
  173. package/dist/es/framer-motion/dist/es/render/components/create-proxy.mjs +38 -0
  174. package/dist/es/framer-motion/dist/es/render/components/m/create.mjs +6 -0
  175. package/dist/es/framer-motion/dist/es/render/components/m/elements.mjs +227 -0
  176. package/dist/es/framer-motion/dist/es/render/components/m/proxy.mjs +6 -0
  177. package/dist/es/framer-motion/dist/es/render/components/motion/create.mjs +15 -0
  178. package/dist/es/framer-motion/dist/es/render/components/motion/elements.mjs +194 -0
  179. package/dist/es/framer-motion/dist/es/render/components/motion/proxy.mjs +6 -0
  180. package/dist/es/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +130 -0
  181. package/dist/es/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +28 -0
  182. package/dist/es/framer-motion/dist/es/render/dom/create-visual-element.mjs +14 -0
  183. package/dist/es/framer-motion/dist/es/render/dom/features-animation.mjs +14 -0
  184. package/dist/es/framer-motion/dist/es/render/dom/features-max.mjs +14 -0
  185. package/dist/es/framer-motion/dist/es/render/dom/features-min.mjs +12 -0
  186. package/dist/es/framer-motion/dist/es/render/dom/resize/handle-element.mjs +64 -0
  187. package/dist/es/framer-motion/dist/es/render/dom/resize/handle-window.mjs +30 -0
  188. package/dist/es/framer-motion/dist/es/render/dom/resize/index.mjs +8 -0
  189. package/dist/es/framer-motion/dist/es/render/dom/scroll/index.mjs +80 -0
  190. package/dist/es/framer-motion/dist/es/render/dom/scroll/info.mjs +56 -0
  191. package/dist/es/framer-motion/dist/es/render/dom/scroll/observe.mjs +18 -0
  192. package/dist/es/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +45 -0
  193. package/dist/es/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +59 -0
  194. package/dist/es/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +45 -0
  195. package/dist/es/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +35 -0
  196. package/dist/es/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +20 -0
  197. package/dist/es/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +48 -0
  198. package/dist/es/framer-motion/dist/es/render/dom/scroll/supports.mjs +5 -0
  199. package/dist/es/framer-motion/dist/es/render/dom/scroll/track.mjs +84 -0
  200. package/dist/es/framer-motion/dist/es/render/dom/use-render.mjs +33 -0
  201. package/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +6 -0
  202. package/dist/es/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +42 -0
  203. package/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.mjs +59 -0
  204. package/dist/es/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +15 -0
  205. package/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs +30 -0
  206. package/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +5 -0
  207. package/dist/es/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +28 -0
  208. package/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +65 -0
  209. package/dist/es/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +15 -0
  210. package/dist/es/framer-motion/dist/es/render/dom/value-types/defaults.mjs +30 -0
  211. package/dist/es/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +15 -0
  212. package/dist/es/framer-motion/dist/es/render/dom/value-types/find.mjs +15 -0
  213. package/dist/es/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +10 -0
  214. package/dist/es/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +41 -0
  215. package/dist/es/framer-motion/dist/es/render/dom/value-types/number.mjs +18 -0
  216. package/dist/es/framer-motion/dist/es/render/dom/value-types/test.mjs +6 -0
  217. package/dist/es/framer-motion/dist/es/render/dom/value-types/transform.mjs +31 -0
  218. package/dist/es/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +9 -0
  219. package/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.mjs +8 -0
  220. package/dist/es/framer-motion/dist/es/render/dom/viewport/index.mjs +43 -0
  221. package/dist/es/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +57 -0
  222. package/dist/es/framer-motion/dist/es/render/html/config-motion.mjs +12 -0
  223. package/dist/es/framer-motion/dist/es/render/html/use-props.mjs +57 -0
  224. package/dist/es/framer-motion/dist/es/render/html/utils/build-styles.mjs +65 -0
  225. package/dist/es/framer-motion/dist/es/render/html/utils/build-transform.mjs +62 -0
  226. package/dist/es/framer-motion/dist/es/render/html/utils/create-render-state.mjs +8 -0
  227. package/dist/es/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +30 -0
  228. package/dist/es/framer-motion/dist/es/render/html/utils/render.mjs +9 -0
  229. package/dist/es/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +20 -0
  230. package/dist/es/framer-motion/dist/es/render/html/utils/transform.mjs +28 -0
  231. package/dist/es/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +41 -0
  232. package/dist/es/framer-motion/dist/es/render/store.mjs +3 -0
  233. package/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +45 -0
  234. package/dist/es/framer-motion/dist/es/render/svg/config-motion.mjs +40 -0
  235. package/dist/es/framer-motion/dist/es/render/svg/lowercase-elements.mjs +33 -0
  236. package/dist/es/framer-motion/dist/es/render/svg/use-props.mjs +24 -0
  237. package/dist/es/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +52 -0
  238. package/dist/es/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +30 -0
  239. package/dist/es/framer-motion/dist/es/render/svg/utils/create-render-state.mjs +8 -0
  240. package/dist/es/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +3 -0
  241. package/dist/es/framer-motion/dist/es/render/svg/utils/path.mjs +32 -0
  242. package/dist/es/framer-motion/dist/es/render/svg/utils/render.mjs +12 -0
  243. package/dist/es/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +19 -0
  244. package/dist/es/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +18 -0
  245. package/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +164 -0
  246. package/dist/es/framer-motion/dist/es/render/utils/animation-state.mjs +332 -0
  247. package/dist/es/framer-motion/dist/es/render/utils/compare-by-depth.mjs +3 -0
  248. package/dist/es/framer-motion/dist/es/render/utils/flat-tree.mjs +24 -0
  249. package/dist/es/framer-motion/dist/es/render/utils/get-variant-context.mjs +28 -0
  250. package/dist/es/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +13 -0
  251. package/dist/es/framer-motion/dist/es/render/utils/is-variant-label.mjs +8 -0
  252. package/dist/es/framer-motion/dist/es/render/utils/motion-values.mjs +59 -0
  253. package/dist/es/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +8 -0
  254. package/dist/es/framer-motion/dist/es/render/utils/resolve-variants.mjs +36 -0
  255. package/dist/es/framer-motion/dist/es/render/utils/setters.mjs +27 -0
  256. package/dist/es/framer-motion/dist/es/render/utils/variant-props.mjs +12 -0
  257. package/dist/es/framer-motion/dist/es/utils/GlobalConfig.mjs +6 -0
  258. package/dist/es/framer-motion/dist/es/utils/array.mjs +21 -0
  259. package/dist/es/framer-motion/dist/es/utils/clamp.mjs +9 -0
  260. package/dist/es/framer-motion/dist/es/utils/delay.mjs +24 -0
  261. package/dist/es/framer-motion/dist/es/utils/distance.mjs +9 -0
  262. package/dist/es/framer-motion/dist/es/utils/errors.mjs +18 -0
  263. package/dist/es/framer-motion/dist/es/utils/get-context-window.mjs +6 -0
  264. package/dist/es/framer-motion/dist/es/utils/hsla-to-rgba.mjs +42 -0
  265. package/dist/es/framer-motion/dist/es/utils/interpolate.mjs +75 -0
  266. package/dist/es/framer-motion/dist/es/utils/is-browser.mjs +3 -0
  267. package/dist/es/framer-motion/dist/es/utils/is-numerical-string.mjs +6 -0
  268. package/dist/es/framer-motion/dist/es/utils/is-ref-object.mjs +7 -0
  269. package/dist/es/framer-motion/dist/es/utils/is-zero-value-string.mjs +6 -0
  270. package/dist/es/framer-motion/dist/es/utils/memo.mjs +10 -0
  271. package/dist/es/framer-motion/dist/es/utils/mix/color.mjs +47 -0
  272. package/dist/es/framer-motion/dist/es/utils/mix/complex.mjs +94 -0
  273. package/dist/es/framer-motion/dist/es/utils/mix/immediate.mjs +5 -0
  274. package/dist/es/framer-motion/dist/es/utils/mix/index.mjs +14 -0
  275. package/dist/es/framer-motion/dist/es/utils/mix/number.mjs +26 -0
  276. package/dist/es/framer-motion/dist/es/utils/mix/visibility.mjs +16 -0
  277. package/dist/es/framer-motion/dist/es/utils/noop.mjs +3 -0
  278. package/dist/es/framer-motion/dist/es/utils/offsets/default.mjs +9 -0
  279. package/dist/es/framer-motion/dist/es/utils/offsets/fill.mjs +12 -0
  280. package/dist/es/framer-motion/dist/es/utils/offsets/time.mjs +5 -0
  281. package/dist/es/framer-motion/dist/es/utils/pipe.mjs +11 -0
  282. package/dist/es/framer-motion/dist/es/utils/progress.mjs +18 -0
  283. package/dist/es/framer-motion/dist/es/utils/reduced-motion/index.mjs +19 -0
  284. package/dist/es/framer-motion/dist/es/utils/reduced-motion/state.mjs +5 -0
  285. package/dist/es/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs +19 -0
  286. package/dist/es/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs +47 -0
  287. package/dist/es/framer-motion/dist/es/utils/resolve-value.mjs +11 -0
  288. package/dist/es/framer-motion/dist/es/utils/shallow-compare.mjs +14 -0
  289. package/dist/es/framer-motion/dist/es/utils/subscription-manager.mjs +40 -0
  290. package/dist/es/framer-motion/dist/es/utils/time-conversion.mjs +10 -0
  291. package/dist/es/framer-motion/dist/es/utils/transform.mjs +21 -0
  292. package/dist/es/framer-motion/dist/es/utils/use-animation-frame.mjs +21 -0
  293. package/dist/es/framer-motion/dist/es/utils/use-constant.mjs +18 -0
  294. package/dist/es/framer-motion/dist/es/utils/use-cycle.mjs +47 -0
  295. package/dist/es/framer-motion/dist/es/utils/use-force-update.mjs +19 -0
  296. package/dist/es/framer-motion/dist/es/utils/use-in-view.mjs +23 -0
  297. package/dist/es/framer-motion/dist/es/utils/use-instant-transition-state.mjs +5 -0
  298. package/dist/es/framer-motion/dist/es/utils/use-instant-transition.mjs +41 -0
  299. package/dist/es/framer-motion/dist/es/utils/use-is-mounted.mjs +15 -0
  300. package/dist/es/framer-motion/dist/es/utils/use-isomorphic-effect.mjs +6 -0
  301. package/dist/es/framer-motion/dist/es/utils/use-motion-value-event.mjs +13 -0
  302. package/dist/es/framer-motion/dist/es/utils/use-unmount-effect.mjs +7 -0
  303. package/dist/es/framer-motion/dist/es/utils/velocity-per-second.mjs +11 -0
  304. package/dist/es/framer-motion/dist/es/utils/warn-once.mjs +11 -0
  305. package/dist/es/framer-motion/dist/es/utils/wrap.mjs +6 -0
  306. package/dist/es/framer-motion/dist/es/value/index.mjs +319 -0
  307. package/dist/es/framer-motion/dist/es/value/scroll/use-element-scroll.mjs +14 -0
  308. package/dist/es/framer-motion/dist/es/value/scroll/use-viewport-scroll.mjs +14 -0
  309. package/dist/es/framer-motion/dist/es/value/types/color/hex.mjs +40 -0
  310. package/dist/es/framer-motion/dist/es/value/types/color/hsla.mjs +22 -0
  311. package/dist/es/framer-motion/dist/es/value/types/color/index.mjs +27 -0
  312. package/dist/es/framer-motion/dist/es/value/types/color/rgba.mjs +25 -0
  313. package/dist/es/framer-motion/dist/es/value/types/color/utils.mjs +29 -0
  314. package/dist/es/framer-motion/dist/es/value/types/complex/filter.mjs +30 -0
  315. package/dist/es/framer-motion/dist/es/value/types/complex/index.mjs +92 -0
  316. package/dist/es/framer-motion/dist/es/value/types/numbers/index.mjs +17 -0
  317. package/dist/es/framer-motion/dist/es/value/types/numbers/units.mjs +17 -0
  318. package/dist/es/framer-motion/dist/es/value/types/utils/color-regex.mjs +3 -0
  319. package/dist/es/framer-motion/dist/es/value/types/utils/float-regex.mjs +3 -0
  320. package/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.mjs +5 -0
  321. package/dist/es/framer-motion/dist/es/value/types/utils/sanitize.mjs +5 -0
  322. package/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +3 -0
  323. package/dist/es/framer-motion/dist/es/value/use-combine-values.mjs +37 -0
  324. package/dist/es/framer-motion/dist/es/value/use-computed.mjs +19 -0
  325. package/dist/es/framer-motion/dist/es/value/use-inverted-scale.mjs +52 -0
  326. package/dist/es/framer-motion/dist/es/value/use-motion-template.mjs +45 -0
  327. package/dist/es/framer-motion/dist/es/value/use-motion-value.mjs +38 -0
  328. package/dist/es/framer-motion/dist/es/value/use-scroll.mjs +39 -0
  329. package/dist/es/framer-motion/dist/es/value/use-spring.mjs +85 -0
  330. package/dist/es/framer-motion/dist/es/value/use-time.mjs +10 -0
  331. package/dist/es/framer-motion/dist/es/value/use-transform.mjs +29 -0
  332. package/dist/es/framer-motion/dist/es/value/use-velocity.mjs +35 -0
  333. package/dist/es/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs +22 -0
  334. package/dist/es/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +14 -0
  335. package/dist/es/framer-motion/dist/es/value/use-will-change/get-will-change-name.mjs +14 -0
  336. package/dist/es/framer-motion/dist/es/value/use-will-change/index.mjs +8 -0
  337. package/dist/es/framer-motion/dist/es/value/use-will-change/is.mjs +7 -0
  338. package/dist/es/framer-motion/dist/es/value/utils/is-motion-value.mjs +3 -0
  339. package/dist/es/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +16 -0
  340. package/dist/es/motion/lib/index.mjs +30 -0
  341. package/dist/es/motion/lib/react-client.mjs +3 -0
  342. package/dist/es/motion/lib/react-m.mjs +3 -0
  343. package/dist/es/motion/lib/react.mjs +110 -0
  344. package/dist/index.d.ts +1 -0
  345. package/dist/motion.dev.js +6121 -0
  346. package/dist/motion.js +1 -0
  347. package/dist/react-client.d.ts +1 -0
  348. package/dist/react-m.d.ts +1 -0
  349. package/dist/react.d.ts +1 -0
  350. package/lib/index.js +1 -3
  351. package/lib/index.js.map +1 -1
  352. package/lib/react-client.js +3 -0
  353. package/lib/react-client.js.map +1 -0
  354. package/lib/react-m.js +3 -0
  355. package/lib/react-m.js.map +1 -0
  356. package/lib/react.js +3 -0
  357. package/lib/react.js.map +1 -0
  358. package/package.json +79 -29
  359. package/react/package.json +6 -0
  360. package/react-client/package.json +6 -0
  361. package/react-m/package.json +6 -0
  362. package/rollup.config.mjs +184 -0
  363. package/src/index.ts +1 -0
  364. package/src/react-client.ts +3 -0
  365. package/src/react-m.ts +3 -0
  366. package/src/react.ts +3 -0
  367. package/tsconfig.json +25 -0
  368. package/types/index.d.ts +1 -4
  369. package/types/react-client.d.ts +1 -0
  370. package/types/react-m.d.ts +1 -0
  371. package/types/react.d.ts +1 -0
  372. package/CHANGELOG.md +0 -378
  373. package/dist/animate.cjs.js +0 -22
  374. package/dist/animate.es.js +0 -19
  375. package/dist/main.cjs.js +0 -21
  376. package/dist/main.es.js +0 -3
  377. package/dist/motion.min.js +0 -1
  378. package/dist/motion.umd.js +0 -2364
  379. package/dist/size-index.js +0 -1
  380. package/lib/animate.js +0 -17
  381. package/lib/animate.js.map +0 -1
  382. package/types/animate.d.ts +0 -6
  383. package/types/animate.d.ts.map +0 -1
  384. package/types/index.d.ts.map +0 -1
@@ -0,0 +1,227 @@
1
+ "use client";
2
+ import { createMinimalMotionComponent } from './create.mjs';
3
+
4
+ /**
5
+ * HTML components
6
+ */
7
+ const MotionA = /*@__PURE__*/ createMinimalMotionComponent("a");
8
+ const MotionAbbr = /*@__PURE__*/ createMinimalMotionComponent("abbr");
9
+ const MotionAddress =
10
+ /*@__PURE__*/ createMinimalMotionComponent("address");
11
+ const MotionArea = /*@__PURE__*/ createMinimalMotionComponent("area");
12
+ const MotionArticle =
13
+ /*@__PURE__*/ createMinimalMotionComponent("article");
14
+ const MotionAside = /*@__PURE__*/ createMinimalMotionComponent("aside");
15
+ const MotionAudio = /*@__PURE__*/ createMinimalMotionComponent("audio");
16
+ const MotionB = /*@__PURE__*/ createMinimalMotionComponent("b");
17
+ const MotionBase = /*@__PURE__*/ createMinimalMotionComponent("base");
18
+ const MotionBdi = /*@__PURE__*/ createMinimalMotionComponent("bdi");
19
+ const MotionBdo = /*@__PURE__*/ createMinimalMotionComponent("bdo");
20
+ const MotionBig = /*@__PURE__*/ createMinimalMotionComponent("big");
21
+ const MotionBlockquote =
22
+ /*@__PURE__*/ createMinimalMotionComponent("blockquote");
23
+ const MotionBody = /*@__PURE__*/ createMinimalMotionComponent("body");
24
+ const MotionButton = /*@__PURE__*/ createMinimalMotionComponent("button");
25
+ const MotionCanvas = /*@__PURE__*/ createMinimalMotionComponent("canvas");
26
+ const MotionCaption =
27
+ /*@__PURE__*/ createMinimalMotionComponent("caption");
28
+ const MotionCite = /*@__PURE__*/ createMinimalMotionComponent("cite");
29
+ const MotionCode = /*@__PURE__*/ createMinimalMotionComponent("code");
30
+ const MotionCol = /*@__PURE__*/ createMinimalMotionComponent("col");
31
+ const MotionColgroup =
32
+ /*@__PURE__*/ createMinimalMotionComponent("colgroup");
33
+ const MotionData = /*@__PURE__*/ createMinimalMotionComponent("data");
34
+ const MotionDatalist =
35
+ /*@__PURE__*/ createMinimalMotionComponent("datalist");
36
+ const MotionDd = /*@__PURE__*/ createMinimalMotionComponent("dd");
37
+ const MotionDel = /*@__PURE__*/ createMinimalMotionComponent("del");
38
+ const MotionDetails =
39
+ /*@__PURE__*/ createMinimalMotionComponent("details");
40
+ const MotionDfn = /*@__PURE__*/ createMinimalMotionComponent("dfn");
41
+ const MotionDialog = /*@__PURE__*/ createMinimalMotionComponent("dialog");
42
+ const MotionDiv = /*@__PURE__*/ createMinimalMotionComponent("div");
43
+ const MotionDl = /*@__PURE__*/ createMinimalMotionComponent("dl");
44
+ const MotionDt = /*@__PURE__*/ createMinimalMotionComponent("dt");
45
+ const MotionEm = /*@__PURE__*/ createMinimalMotionComponent("em");
46
+ const MotionEmbed = /*@__PURE__*/ createMinimalMotionComponent("embed");
47
+ const MotionFieldset =
48
+ /*@__PURE__*/ createMinimalMotionComponent("fieldset");
49
+ const MotionFigcaption =
50
+ /*@__PURE__*/ createMinimalMotionComponent("figcaption");
51
+ const MotionFigure = /*@__PURE__*/ createMinimalMotionComponent("figure");
52
+ const MotionFooter = /*@__PURE__*/ createMinimalMotionComponent("footer");
53
+ const MotionForm = /*@__PURE__*/ createMinimalMotionComponent("form");
54
+ const MotionH1 = /*@__PURE__*/ createMinimalMotionComponent("h1");
55
+ const MotionH2 = /*@__PURE__*/ createMinimalMotionComponent("h2");
56
+ const MotionH3 = /*@__PURE__*/ createMinimalMotionComponent("h3");
57
+ const MotionH4 = /*@__PURE__*/ createMinimalMotionComponent("h4");
58
+ const MotionH5 = /*@__PURE__*/ createMinimalMotionComponent("h5");
59
+ const MotionH6 = /*@__PURE__*/ createMinimalMotionComponent("h6");
60
+ const MotionHead = /*@__PURE__*/ createMinimalMotionComponent("head");
61
+ const MotionHeader = /*@__PURE__*/ createMinimalMotionComponent("header");
62
+ const MotionHgroup = /*@__PURE__*/ createMinimalMotionComponent("hgroup");
63
+ const MotionHr = /*@__PURE__*/ createMinimalMotionComponent("hr");
64
+ const MotionHtml = /*@__PURE__*/ createMinimalMotionComponent("html");
65
+ const MotionI = /*@__PURE__*/ createMinimalMotionComponent("i");
66
+ const MotionIframe = /*@__PURE__*/ createMinimalMotionComponent("iframe");
67
+ const MotionImg = /*@__PURE__*/ createMinimalMotionComponent("img");
68
+ const MotionInput = /*@__PURE__*/ createMinimalMotionComponent("input");
69
+ const MotionIns = /*@__PURE__*/ createMinimalMotionComponent("ins");
70
+ const MotionKbd = /*@__PURE__*/ createMinimalMotionComponent("kbd");
71
+ const MotionKeygen = /*@__PURE__*/ createMinimalMotionComponent("keygen");
72
+ const MotionLabel = /*@__PURE__*/ createMinimalMotionComponent("label");
73
+ const MotionLegend = /*@__PURE__*/ createMinimalMotionComponent("legend");
74
+ const MotionLi = /*@__PURE__*/ createMinimalMotionComponent("li");
75
+ const MotionLink = /*@__PURE__*/ createMinimalMotionComponent("link");
76
+ const MotionMain = /*@__PURE__*/ createMinimalMotionComponent("main");
77
+ const MotionMap = /*@__PURE__*/ createMinimalMotionComponent("map");
78
+ const MotionMark = /*@__PURE__*/ createMinimalMotionComponent("mark");
79
+ const MotionMenu = /*@__PURE__*/ createMinimalMotionComponent("menu");
80
+ const MotionMenuitem =
81
+ /*@__PURE__*/ createMinimalMotionComponent("menuitem");
82
+ const MotionMeter = /*@__PURE__*/ createMinimalMotionComponent("meter");
83
+ const MotionNav = /*@__PURE__*/ createMinimalMotionComponent("nav");
84
+ const MotionObject = /*@__PURE__*/ createMinimalMotionComponent("object");
85
+ const MotionOl = /*@__PURE__*/ createMinimalMotionComponent("ol");
86
+ const MotionOptgroup =
87
+ /*@__PURE__*/ createMinimalMotionComponent("optgroup");
88
+ const MotionOption = /*@__PURE__*/ createMinimalMotionComponent("option");
89
+ const MotionOutput = /*@__PURE__*/ createMinimalMotionComponent("output");
90
+ const MotionP = /*@__PURE__*/ createMinimalMotionComponent("p");
91
+ const MotionParam = /*@__PURE__*/ createMinimalMotionComponent("param");
92
+ const MotionPicture =
93
+ /*@__PURE__*/ createMinimalMotionComponent("picture");
94
+ const MotionPre = /*@__PURE__*/ createMinimalMotionComponent("pre");
95
+ const MotionProgress =
96
+ /*@__PURE__*/ createMinimalMotionComponent("progress");
97
+ const MotionQ = /*@__PURE__*/ createMinimalMotionComponent("q");
98
+ const MotionRp = /*@__PURE__*/ createMinimalMotionComponent("rp");
99
+ const MotionRt = /*@__PURE__*/ createMinimalMotionComponent("rt");
100
+ const MotionRuby = /*@__PURE__*/ createMinimalMotionComponent("ruby");
101
+ const MotionS = /*@__PURE__*/ createMinimalMotionComponent("s");
102
+ const MotionSamp = /*@__PURE__*/ createMinimalMotionComponent("samp");
103
+ const MotionScript = /*@__PURE__*/ createMinimalMotionComponent("script");
104
+ const MotionSection =
105
+ /*@__PURE__*/ createMinimalMotionComponent("section");
106
+ const MotionSelect = /*@__PURE__*/ createMinimalMotionComponent("select");
107
+ const MotionSmall = /*@__PURE__*/ createMinimalMotionComponent("small");
108
+ const MotionSource = /*@__PURE__*/ createMinimalMotionComponent("source");
109
+ const MotionSpan = /*@__PURE__*/ createMinimalMotionComponent("span");
110
+ const MotionStrong = /*@__PURE__*/ createMinimalMotionComponent("strong");
111
+ const MotionStyle = /*@__PURE__*/ createMinimalMotionComponent("style");
112
+ const MotionSub = /*@__PURE__*/ createMinimalMotionComponent("sub");
113
+ const MotionSummary =
114
+ /*@__PURE__*/ createMinimalMotionComponent("summary");
115
+ const MotionSup = /*@__PURE__*/ createMinimalMotionComponent("sup");
116
+ const MotionTable = /*@__PURE__*/ createMinimalMotionComponent("table");
117
+ const MotionTbody = /*@__PURE__*/ createMinimalMotionComponent("tbody");
118
+ const MotionTd = /*@__PURE__*/ createMinimalMotionComponent("td");
119
+ const MotionTextarea =
120
+ /*@__PURE__*/ createMinimalMotionComponent("textarea");
121
+ const MotionTfoot = /*@__PURE__*/ createMinimalMotionComponent("tfoot");
122
+ const MotionTh = /*@__PURE__*/ createMinimalMotionComponent("th");
123
+ const MotionThead = /*@__PURE__*/ createMinimalMotionComponent("thead");
124
+ const MotionTime = /*@__PURE__*/ createMinimalMotionComponent("time");
125
+ const MotionTitle = /*@__PURE__*/ createMinimalMotionComponent("title");
126
+ const MotionTr = /*@__PURE__*/ createMinimalMotionComponent("tr");
127
+ const MotionTrack = /*@__PURE__*/ createMinimalMotionComponent("track");
128
+ const MotionU = /*@__PURE__*/ createMinimalMotionComponent("u");
129
+ const MotionUl = /*@__PURE__*/ createMinimalMotionComponent("ul");
130
+ const MotionVideo = /*@__PURE__*/ createMinimalMotionComponent("video");
131
+ const MotionWbr = /*@__PURE__*/ createMinimalMotionComponent("wbr");
132
+ const MotionWebview =
133
+ /*@__PURE__*/ createMinimalMotionComponent("webview");
134
+ /**
135
+ * SVG components
136
+ */
137
+ const MotionAnimate =
138
+ /*@__PURE__*/ createMinimalMotionComponent("animate");
139
+ const MotionCircle = /*@__PURE__*/ createMinimalMotionComponent("circle");
140
+ const MotionDefs = /*@__PURE__*/ createMinimalMotionComponent("defs");
141
+ const MotionDesc = /*@__PURE__*/ createMinimalMotionComponent("desc");
142
+ const MotionEllipse =
143
+ /*@__PURE__*/ createMinimalMotionComponent("ellipse");
144
+ const MotionG = /*@__PURE__*/ createMinimalMotionComponent("g");
145
+ const MotionImage = /*@__PURE__*/ createMinimalMotionComponent("image");
146
+ const MotionLine = /*@__PURE__*/ createMinimalMotionComponent("line");
147
+ const MotionFilter = /*@__PURE__*/ createMinimalMotionComponent("filter");
148
+ const MotionMarker = /*@__PURE__*/ createMinimalMotionComponent("marker");
149
+ const MotionMask = /*@__PURE__*/ createMinimalMotionComponent("mask");
150
+ const MotionMetadata =
151
+ /*@__PURE__*/ createMinimalMotionComponent("metadata");
152
+ const MotionPath = /*@__PURE__*/ createMinimalMotionComponent("path");
153
+ const MotionPattern =
154
+ /*@__PURE__*/ createMinimalMotionComponent("pattern");
155
+ const MotionPolygon =
156
+ /*@__PURE__*/ createMinimalMotionComponent("polygon");
157
+ const MotionPolyline =
158
+ /*@__PURE__*/ createMinimalMotionComponent("polyline");
159
+ const MotionRect = /*@__PURE__*/ createMinimalMotionComponent("rect");
160
+ const MotionStop = /*@__PURE__*/ createMinimalMotionComponent("stop");
161
+ const MotionSvg = /*@__PURE__*/ createMinimalMotionComponent("svg");
162
+ const MotionSymbol = /*@__PURE__*/ createMinimalMotionComponent("symbol");
163
+ const MotionText = /*@__PURE__*/ createMinimalMotionComponent("text");
164
+ const MotionTspan = /*@__PURE__*/ createMinimalMotionComponent("tspan");
165
+ const MotionUse = /*@__PURE__*/ createMinimalMotionComponent("use");
166
+ const MotionView = /*@__PURE__*/ createMinimalMotionComponent("view");
167
+ const MotionClipPath =
168
+ /*@__PURE__*/ createMinimalMotionComponent("clipPath");
169
+ const MotionFeBlend =
170
+ /*@__PURE__*/ createMinimalMotionComponent("feBlend");
171
+ const MotionFeColorMatrix =
172
+ /*@__PURE__*/ createMinimalMotionComponent("feColorMatrix");
173
+ const MotionFeComponentTransfer =
174
+ /*@__PURE__*/ createMinimalMotionComponent("feComponentTransfer");
175
+ const MotionFeComposite =
176
+ /*@__PURE__*/ createMinimalMotionComponent("feComposite");
177
+ const MotionFeConvolveMatrix =
178
+ /*@__PURE__*/ createMinimalMotionComponent("feConvolveMatrix");
179
+ const MotionFeDiffuseLighting =
180
+ /*@__PURE__*/ createMinimalMotionComponent("feDiffuseLighting");
181
+ const MotionFeDisplacementMap =
182
+ /*@__PURE__*/ createMinimalMotionComponent("feDisplacementMap");
183
+ const MotionFeDistantLight =
184
+ /*@__PURE__*/ createMinimalMotionComponent("feDistantLight");
185
+ const MotionFeDropShadow =
186
+ /*@__PURE__*/ createMinimalMotionComponent("feDropShadow");
187
+ const MotionFeFlood =
188
+ /*@__PURE__*/ createMinimalMotionComponent("feFlood");
189
+ const MotionFeFuncA =
190
+ /*@__PURE__*/ createMinimalMotionComponent("feFuncA");
191
+ const MotionFeFuncB =
192
+ /*@__PURE__*/ createMinimalMotionComponent("feFuncB");
193
+ const MotionFeFuncG =
194
+ /*@__PURE__*/ createMinimalMotionComponent("feFuncG");
195
+ const MotionFeFuncR =
196
+ /*@__PURE__*/ createMinimalMotionComponent("feFuncR");
197
+ const MotionFeGaussianBlur =
198
+ /*@__PURE__*/ createMinimalMotionComponent("feGaussianBlur");
199
+ const MotionFeImage =
200
+ /*@__PURE__*/ createMinimalMotionComponent("feImage");
201
+ const MotionFeMerge =
202
+ /*@__PURE__*/ createMinimalMotionComponent("feMerge");
203
+ const MotionFeMergeNode =
204
+ /*@__PURE__*/ createMinimalMotionComponent("feMergeNode");
205
+ const MotionFeMorphology =
206
+ /*@__PURE__*/ createMinimalMotionComponent("feMorphology");
207
+ const MotionFeOffset =
208
+ /*@__PURE__*/ createMinimalMotionComponent("feOffset");
209
+ const MotionFePointLight =
210
+ /*@__PURE__*/ createMinimalMotionComponent("fePointLight");
211
+ const MotionFeSpecularLighting =
212
+ /*@__PURE__*/ createMinimalMotionComponent("feSpecularLighting");
213
+ const MotionFeSpotLight =
214
+ /*@__PURE__*/ createMinimalMotionComponent("feSpotLight");
215
+ const MotionFeTile = /*@__PURE__*/ createMinimalMotionComponent("feTile");
216
+ const MotionFeTurbulence =
217
+ /*@__PURE__*/ createMinimalMotionComponent("feTurbulence");
218
+ const MotionForeignObject =
219
+ /*@__PURE__*/ createMinimalMotionComponent("foreignObject");
220
+ const MotionLinearGradient =
221
+ /*@__PURE__*/ createMinimalMotionComponent("linearGradient");
222
+ const MotionRadialGradient =
223
+ /*@__PURE__*/ createMinimalMotionComponent("radialGradient");
224
+ const MotionTextPath =
225
+ /*@__PURE__*/ createMinimalMotionComponent("textPath");
226
+
227
+ export { MotionA, MotionAbbr, MotionAddress, MotionAnimate, MotionArea, MotionArticle, MotionAside, MotionAudio, MotionB, MotionBase, MotionBdi, MotionBdo, MotionBig, MotionBlockquote, MotionBody, MotionButton, MotionCanvas, MotionCaption, MotionCircle, MotionCite, MotionClipPath, MotionCode, MotionCol, MotionColgroup, MotionData, MotionDatalist, MotionDd, MotionDefs, MotionDel, MotionDesc, MotionDetails, MotionDfn, MotionDialog, MotionDiv, MotionDl, MotionDt, MotionEllipse, MotionEm, MotionEmbed, MotionFeBlend, MotionFeColorMatrix, MotionFeComponentTransfer, MotionFeComposite, MotionFeConvolveMatrix, MotionFeDiffuseLighting, MotionFeDisplacementMap, MotionFeDistantLight, MotionFeDropShadow, MotionFeFlood, MotionFeFuncA, MotionFeFuncB, MotionFeFuncG, MotionFeFuncR, MotionFeGaussianBlur, MotionFeImage, MotionFeMerge, MotionFeMergeNode, MotionFeMorphology, MotionFeOffset, MotionFePointLight, MotionFeSpecularLighting, MotionFeSpotLight, MotionFeTile, MotionFeTurbulence, MotionFieldset, MotionFigcaption, MotionFigure, MotionFilter, MotionFooter, MotionForeignObject, MotionForm, MotionG, MotionH1, MotionH2, MotionH3, MotionH4, MotionH5, MotionH6, MotionHead, MotionHeader, MotionHgroup, MotionHr, MotionHtml, MotionI, MotionIframe, MotionImage, MotionImg, MotionInput, MotionIns, MotionKbd, MotionKeygen, MotionLabel, MotionLegend, MotionLi, MotionLine, MotionLinearGradient, MotionLink, MotionMain, MotionMap, MotionMark, MotionMarker, MotionMask, MotionMenu, MotionMenuitem, MotionMetadata, MotionMeter, MotionNav, MotionObject, MotionOl, MotionOptgroup, MotionOption, MotionOutput, MotionP, MotionParam, MotionPath, MotionPattern, MotionPicture, MotionPolygon, MotionPolyline, MotionPre, MotionProgress, MotionQ, MotionRadialGradient, MotionRect, MotionRp, MotionRt, MotionRuby, MotionS, MotionSamp, MotionScript, MotionSection, MotionSelect, MotionSmall, MotionSource, MotionSpan, MotionStop, MotionStrong, MotionStyle, MotionSub, MotionSummary, MotionSup, MotionSvg, MotionSymbol, MotionTable, MotionTbody, MotionTd, MotionText, MotionTextPath, MotionTextarea, MotionTfoot, MotionTh, MotionThead, MotionTime, MotionTitle, MotionTr, MotionTrack, MotionTspan, MotionU, MotionUl, MotionUse, MotionVideo, MotionView, MotionWbr, MotionWebview };
@@ -0,0 +1,6 @@
1
+ import { createDOMMotionComponentProxy } from '../create-proxy.mjs';
2
+ import { createMinimalMotionComponent } from './create.mjs';
3
+
4
+ const m = /*@__PURE__*/ createDOMMotionComponentProxy(createMinimalMotionComponent);
5
+
6
+ export { m };
@@ -0,0 +1,15 @@
1
+ import { animations } from '../../../motion/features/animations.mjs';
2
+ import { drag } from '../../../motion/features/drag.mjs';
3
+ import { gestureAnimations } from '../../../motion/features/gestures.mjs';
4
+ import { layout } from '../../../motion/features/layout.mjs';
5
+ import { createMotionComponentFactory } from '../create-factory.mjs';
6
+ import { createDomVisualElement } from '../../dom/create-visual-element.mjs';
7
+
8
+ const createMotionComponent = /*@__PURE__*/ createMotionComponentFactory({
9
+ ...animations,
10
+ ...gestureAnimations,
11
+ ...drag,
12
+ ...layout,
13
+ }, createDomVisualElement);
14
+
15
+ export { createMotionComponent };
@@ -0,0 +1,194 @@
1
+ "use client";
2
+ import { createMotionComponent } from './create.mjs';
3
+
4
+ /**
5
+ * HTML components
6
+ */
7
+ const MotionA = /*@__PURE__*/ createMotionComponent("a");
8
+ const MotionAbbr = /*@__PURE__*/ createMotionComponent("abbr");
9
+ const MotionAddress = /*@__PURE__*/ createMotionComponent("address");
10
+ const MotionArea = /*@__PURE__*/ createMotionComponent("area");
11
+ const MotionArticle = /*@__PURE__*/ createMotionComponent("article");
12
+ const MotionAside = /*@__PURE__*/ createMotionComponent("aside");
13
+ const MotionAudio = /*@__PURE__*/ createMotionComponent("audio");
14
+ const MotionB = /*@__PURE__*/ createMotionComponent("b");
15
+ const MotionBase = /*@__PURE__*/ createMotionComponent("base");
16
+ const MotionBdi = /*@__PURE__*/ createMotionComponent("bdi");
17
+ const MotionBdo = /*@__PURE__*/ createMotionComponent("bdo");
18
+ const MotionBig = /*@__PURE__*/ createMotionComponent("big");
19
+ const MotionBlockquote =
20
+ /*@__PURE__*/ createMotionComponent("blockquote");
21
+ const MotionBody = /*@__PURE__*/ createMotionComponent("body");
22
+ const MotionButton = /*@__PURE__*/ createMotionComponent("button");
23
+ const MotionCanvas = /*@__PURE__*/ createMotionComponent("canvas");
24
+ const MotionCaption = /*@__PURE__*/ createMotionComponent("caption");
25
+ const MotionCite = /*@__PURE__*/ createMotionComponent("cite");
26
+ const MotionCode = /*@__PURE__*/ createMotionComponent("code");
27
+ const MotionCol = /*@__PURE__*/ createMotionComponent("col");
28
+ const MotionColgroup = /*@__PURE__*/ createMotionComponent("colgroup");
29
+ const MotionData = /*@__PURE__*/ createMotionComponent("data");
30
+ const MotionDatalist = /*@__PURE__*/ createMotionComponent("datalist");
31
+ const MotionDd = /*@__PURE__*/ createMotionComponent("dd");
32
+ const MotionDel = /*@__PURE__*/ createMotionComponent("del");
33
+ const MotionDetails = /*@__PURE__*/ createMotionComponent("details");
34
+ const MotionDfn = /*@__PURE__*/ createMotionComponent("dfn");
35
+ const MotionDialog = /*@__PURE__*/ createMotionComponent("dialog");
36
+ const MotionDiv = /*@__PURE__*/ createMotionComponent("div");
37
+ const MotionDl = /*@__PURE__*/ createMotionComponent("dl");
38
+ const MotionDt = /*@__PURE__*/ createMotionComponent("dt");
39
+ const MotionEm = /*@__PURE__*/ createMotionComponent("em");
40
+ const MotionEmbed = /*@__PURE__*/ createMotionComponent("embed");
41
+ const MotionFieldset = /*@__PURE__*/ createMotionComponent("fieldset");
42
+ const MotionFigcaption =
43
+ /*@__PURE__*/ createMotionComponent("figcaption");
44
+ const MotionFigure = /*@__PURE__*/ createMotionComponent("figure");
45
+ const MotionFooter = /*@__PURE__*/ createMotionComponent("footer");
46
+ const MotionForm = /*@__PURE__*/ createMotionComponent("form");
47
+ const MotionH1 = /*@__PURE__*/ createMotionComponent("h1");
48
+ const MotionH2 = /*@__PURE__*/ createMotionComponent("h2");
49
+ const MotionH3 = /*@__PURE__*/ createMotionComponent("h3");
50
+ const MotionH4 = /*@__PURE__*/ createMotionComponent("h4");
51
+ const MotionH5 = /*@__PURE__*/ createMotionComponent("h5");
52
+ const MotionH6 = /*@__PURE__*/ createMotionComponent("h6");
53
+ const MotionHead = /*@__PURE__*/ createMotionComponent("head");
54
+ const MotionHeader = /*@__PURE__*/ createMotionComponent("header");
55
+ const MotionHgroup = /*@__PURE__*/ createMotionComponent("hgroup");
56
+ const MotionHr = /*@__PURE__*/ createMotionComponent("hr");
57
+ const MotionHtml = /*@__PURE__*/ createMotionComponent("html");
58
+ const MotionI = /*@__PURE__*/ createMotionComponent("i");
59
+ const MotionIframe = /*@__PURE__*/ createMotionComponent("iframe");
60
+ const MotionImg = /*@__PURE__*/ createMotionComponent("img");
61
+ const MotionInput = /*@__PURE__*/ createMotionComponent("input");
62
+ const MotionIns = /*@__PURE__*/ createMotionComponent("ins");
63
+ const MotionKbd = /*@__PURE__*/ createMotionComponent("kbd");
64
+ const MotionKeygen = /*@__PURE__*/ createMotionComponent("keygen");
65
+ const MotionLabel = /*@__PURE__*/ createMotionComponent("label");
66
+ const MotionLegend = /*@__PURE__*/ createMotionComponent("legend");
67
+ const MotionLi = /*@__PURE__*/ createMotionComponent("li");
68
+ const MotionLink = /*@__PURE__*/ createMotionComponent("link");
69
+ const MotionMain = /*@__PURE__*/ createMotionComponent("main");
70
+ const MotionMap = /*@__PURE__*/ createMotionComponent("map");
71
+ const MotionMark = /*@__PURE__*/ createMotionComponent("mark");
72
+ const MotionMenu = /*@__PURE__*/ createMotionComponent("menu");
73
+ const MotionMenuitem = /*@__PURE__*/ createMotionComponent("menuitem");
74
+ const MotionMeter = /*@__PURE__*/ createMotionComponent("meter");
75
+ const MotionNav = /*@__PURE__*/ createMotionComponent("nav");
76
+ const MotionObject = /*@__PURE__*/ createMotionComponent("object");
77
+ const MotionOl = /*@__PURE__*/ createMotionComponent("ol");
78
+ const MotionOptgroup = /*@__PURE__*/ createMotionComponent("optgroup");
79
+ const MotionOption = /*@__PURE__*/ createMotionComponent("option");
80
+ const MotionOutput = /*@__PURE__*/ createMotionComponent("output");
81
+ const MotionP = /*@__PURE__*/ createMotionComponent("p");
82
+ const MotionParam = /*@__PURE__*/ createMotionComponent("param");
83
+ const MotionPicture = /*@__PURE__*/ createMotionComponent("picture");
84
+ const MotionPre = /*@__PURE__*/ createMotionComponent("pre");
85
+ const MotionProgress = /*@__PURE__*/ createMotionComponent("progress");
86
+ const MotionQ = /*@__PURE__*/ createMotionComponent("q");
87
+ const MotionRp = /*@__PURE__*/ createMotionComponent("rp");
88
+ const MotionRt = /*@__PURE__*/ createMotionComponent("rt");
89
+ const MotionRuby = /*@__PURE__*/ createMotionComponent("ruby");
90
+ const MotionS = /*@__PURE__*/ createMotionComponent("s");
91
+ const MotionSamp = /*@__PURE__*/ createMotionComponent("samp");
92
+ const MotionScript = /*@__PURE__*/ createMotionComponent("script");
93
+ const MotionSection = /*@__PURE__*/ createMotionComponent("section");
94
+ const MotionSelect = /*@__PURE__*/ createMotionComponent("select");
95
+ const MotionSmall = /*@__PURE__*/ createMotionComponent("small");
96
+ const MotionSource = /*@__PURE__*/ createMotionComponent("source");
97
+ const MotionSpan = /*@__PURE__*/ createMotionComponent("span");
98
+ const MotionStrong = /*@__PURE__*/ createMotionComponent("strong");
99
+ const MotionStyle = /*@__PURE__*/ createMotionComponent("style");
100
+ const MotionSub = /*@__PURE__*/ createMotionComponent("sub");
101
+ const MotionSummary = /*@__PURE__*/ createMotionComponent("summary");
102
+ const MotionSup = /*@__PURE__*/ createMotionComponent("sup");
103
+ const MotionTable = /*@__PURE__*/ createMotionComponent("table");
104
+ const MotionTbody = /*@__PURE__*/ createMotionComponent("tbody");
105
+ const MotionTd = /*@__PURE__*/ createMotionComponent("td");
106
+ const MotionTextarea = /*@__PURE__*/ createMotionComponent("textarea");
107
+ const MotionTfoot = /*@__PURE__*/ createMotionComponent("tfoot");
108
+ const MotionTh = /*@__PURE__*/ createMotionComponent("th");
109
+ const MotionThead = /*@__PURE__*/ createMotionComponent("thead");
110
+ const MotionTime = /*@__PURE__*/ createMotionComponent("time");
111
+ const MotionTitle = /*@__PURE__*/ createMotionComponent("title");
112
+ const MotionTr = /*@__PURE__*/ createMotionComponent("tr");
113
+ const MotionTrack = /*@__PURE__*/ createMotionComponent("track");
114
+ const MotionU = /*@__PURE__*/ createMotionComponent("u");
115
+ const MotionUl = /*@__PURE__*/ createMotionComponent("ul");
116
+ const MotionVideo = /*@__PURE__*/ createMotionComponent("video");
117
+ const MotionWbr = /*@__PURE__*/ createMotionComponent("wbr");
118
+ const MotionWebview = /*@__PURE__*/ createMotionComponent("webview");
119
+ /**
120
+ * SVG components
121
+ */
122
+ const MotionAnimate = /*@__PURE__*/ createMotionComponent("animate");
123
+ const MotionCircle = /*@__PURE__*/ createMotionComponent("circle");
124
+ const MotionDefs = /*@__PURE__*/ createMotionComponent("defs");
125
+ const MotionDesc = /*@__PURE__*/ createMotionComponent("desc");
126
+ const MotionEllipse = /*@__PURE__*/ createMotionComponent("ellipse");
127
+ const MotionG = /*@__PURE__*/ createMotionComponent("g");
128
+ const MotionImage = /*@__PURE__*/ createMotionComponent("image");
129
+ const MotionLine = /*@__PURE__*/ createMotionComponent("line");
130
+ const MotionFilter = /*@__PURE__*/ createMotionComponent("filter");
131
+ const MotionMarker = /*@__PURE__*/ createMotionComponent("marker");
132
+ const MotionMask = /*@__PURE__*/ createMotionComponent("mask");
133
+ const MotionMetadata = /*@__PURE__*/ createMotionComponent("metadata");
134
+ const MotionPath = /*@__PURE__*/ createMotionComponent("path");
135
+ const MotionPattern = /*@__PURE__*/ createMotionComponent("pattern");
136
+ const MotionPolygon = /*@__PURE__*/ createMotionComponent("polygon");
137
+ const MotionPolyline = /*@__PURE__*/ createMotionComponent("polyline");
138
+ const MotionRect = /*@__PURE__*/ createMotionComponent("rect");
139
+ const MotionStop = /*@__PURE__*/ createMotionComponent("stop");
140
+ const MotionSvg = /*@__PURE__*/ createMotionComponent("svg");
141
+ const MotionSymbol = /*@__PURE__*/ createMotionComponent("symbol");
142
+ const MotionText = /*@__PURE__*/ createMotionComponent("text");
143
+ const MotionTspan = /*@__PURE__*/ createMotionComponent("tspan");
144
+ const MotionUse = /*@__PURE__*/ createMotionComponent("use");
145
+ const MotionView = /*@__PURE__*/ createMotionComponent("view");
146
+ const MotionClipPath = /*@__PURE__*/ createMotionComponent("clipPath");
147
+ const MotionFeBlend = /*@__PURE__*/ createMotionComponent("feBlend");
148
+ const MotionFeColorMatrix =
149
+ /*@__PURE__*/ createMotionComponent("feColorMatrix");
150
+ const MotionFeComponentTransfer = /*@__PURE__*/ createMotionComponent("feComponentTransfer");
151
+ const MotionFeComposite =
152
+ /*@__PURE__*/ createMotionComponent("feComposite");
153
+ const MotionFeConvolveMatrix =
154
+ /*@__PURE__*/ createMotionComponent("feConvolveMatrix");
155
+ const MotionFeDiffuseLighting =
156
+ /*@__PURE__*/ createMotionComponent("feDiffuseLighting");
157
+ const MotionFeDisplacementMap =
158
+ /*@__PURE__*/ createMotionComponent("feDisplacementMap");
159
+ const MotionFeDistantLight =
160
+ /*@__PURE__*/ createMotionComponent("feDistantLight");
161
+ const MotionFeDropShadow =
162
+ /*@__PURE__*/ createMotionComponent("feDropShadow");
163
+ const MotionFeFlood = /*@__PURE__*/ createMotionComponent("feFlood");
164
+ const MotionFeFuncA = /*@__PURE__*/ createMotionComponent("feFuncA");
165
+ const MotionFeFuncB = /*@__PURE__*/ createMotionComponent("feFuncB");
166
+ const MotionFeFuncG = /*@__PURE__*/ createMotionComponent("feFuncG");
167
+ const MotionFeFuncR = /*@__PURE__*/ createMotionComponent("feFuncR");
168
+ const MotionFeGaussianBlur =
169
+ /*@__PURE__*/ createMotionComponent("feGaussianBlur");
170
+ const MotionFeImage = /*@__PURE__*/ createMotionComponent("feImage");
171
+ const MotionFeMerge = /*@__PURE__*/ createMotionComponent("feMerge");
172
+ const MotionFeMergeNode =
173
+ /*@__PURE__*/ createMotionComponent("feMergeNode");
174
+ const MotionFeMorphology =
175
+ /*@__PURE__*/ createMotionComponent("feMorphology");
176
+ const MotionFeOffset = /*@__PURE__*/ createMotionComponent("feOffset");
177
+ const MotionFePointLight =
178
+ /*@__PURE__*/ createMotionComponent("fePointLight");
179
+ const MotionFeSpecularLighting =
180
+ /*@__PURE__*/ createMotionComponent("feSpecularLighting");
181
+ const MotionFeSpotLight =
182
+ /*@__PURE__*/ createMotionComponent("feSpotLight");
183
+ const MotionFeTile = /*@__PURE__*/ createMotionComponent("feTile");
184
+ const MotionFeTurbulence =
185
+ /*@__PURE__*/ createMotionComponent("feTurbulence");
186
+ const MotionForeignObject =
187
+ /*@__PURE__*/ createMotionComponent("foreignObject");
188
+ const MotionLinearGradient =
189
+ /*@__PURE__*/ createMotionComponent("linearGradient");
190
+ const MotionRadialGradient =
191
+ /*@__PURE__*/ createMotionComponent("radialGradient");
192
+ const MotionTextPath = /*@__PURE__*/ createMotionComponent("textPath");
193
+
194
+ export { MotionA, MotionAbbr, MotionAddress, MotionAnimate, MotionArea, MotionArticle, MotionAside, MotionAudio, MotionB, MotionBase, MotionBdi, MotionBdo, MotionBig, MotionBlockquote, MotionBody, MotionButton, MotionCanvas, MotionCaption, MotionCircle, MotionCite, MotionClipPath, MotionCode, MotionCol, MotionColgroup, MotionData, MotionDatalist, MotionDd, MotionDefs, MotionDel, MotionDesc, MotionDetails, MotionDfn, MotionDialog, MotionDiv, MotionDl, MotionDt, MotionEllipse, MotionEm, MotionEmbed, MotionFeBlend, MotionFeColorMatrix, MotionFeComponentTransfer, MotionFeComposite, MotionFeConvolveMatrix, MotionFeDiffuseLighting, MotionFeDisplacementMap, MotionFeDistantLight, MotionFeDropShadow, MotionFeFlood, MotionFeFuncA, MotionFeFuncB, MotionFeFuncG, MotionFeFuncR, MotionFeGaussianBlur, MotionFeImage, MotionFeMerge, MotionFeMergeNode, MotionFeMorphology, MotionFeOffset, MotionFePointLight, MotionFeSpecularLighting, MotionFeSpotLight, MotionFeTile, MotionFeTurbulence, MotionFieldset, MotionFigcaption, MotionFigure, MotionFilter, MotionFooter, MotionForeignObject, MotionForm, MotionG, MotionH1, MotionH2, MotionH3, MotionH4, MotionH5, MotionH6, MotionHead, MotionHeader, MotionHgroup, MotionHr, MotionHtml, MotionI, MotionIframe, MotionImage, MotionImg, MotionInput, MotionIns, MotionKbd, MotionKeygen, MotionLabel, MotionLegend, MotionLi, MotionLine, MotionLinearGradient, MotionLink, MotionMain, MotionMap, MotionMark, MotionMarker, MotionMask, MotionMenu, MotionMenuitem, MotionMetadata, MotionMeter, MotionNav, MotionObject, MotionOl, MotionOptgroup, MotionOption, MotionOutput, MotionP, MotionParam, MotionPath, MotionPattern, MotionPicture, MotionPolygon, MotionPolyline, MotionPre, MotionProgress, MotionQ, MotionRadialGradient, MotionRect, MotionRp, MotionRt, MotionRuby, MotionS, MotionSamp, MotionScript, MotionSection, MotionSelect, MotionSmall, MotionSource, MotionSpan, MotionStop, MotionStrong, MotionStyle, MotionSub, MotionSummary, MotionSup, MotionSvg, MotionSymbol, MotionTable, MotionTbody, MotionTd, MotionText, MotionTextPath, MotionTextarea, MotionTfoot, MotionTh, MotionThead, MotionTime, MotionTitle, MotionTr, MotionTrack, MotionTspan, MotionU, MotionUl, MotionUse, MotionVideo, MotionView, MotionWbr, MotionWebview };
@@ -0,0 +1,6 @@
1
+ import { createDOMMotionComponentProxy } from '../create-proxy.mjs';
2
+ import { createMotionComponent } from './create.mjs';
3
+
4
+ const motion = /*@__PURE__*/ createDOMMotionComponentProxy(createMotionComponent);
5
+
6
+ export { motion };
@@ -0,0 +1,130 @@
1
+ import { isNone } from '../../animation/utils/is-none.mjs';
2
+ import { getVariableValue } from './utils/css-variables-conversion.mjs';
3
+ import { isCSSVariableToken } from './utils/is-css-variable.mjs';
4
+ import { positionalKeys, isNumOrPxType, positionalValues } from './utils/unit-conversion.mjs';
5
+ import { findDimensionValueType } from './value-types/dimensions.mjs';
6
+ import { KeyframeResolver } from '../utils/KeyframesResolver.mjs';
7
+ import { makeNoneKeyframesAnimatable } from '../html/utils/make-none-animatable.mjs';
8
+
9
+ class DOMKeyframesResolver extends KeyframeResolver {
10
+ constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {
11
+ super(unresolvedKeyframes, onComplete, name, motionValue, element, true);
12
+ }
13
+ readKeyframes() {
14
+ const { unresolvedKeyframes, element, name } = this;
15
+ if (!element || !element.current)
16
+ return;
17
+ super.readKeyframes();
18
+ /**
19
+ * If any keyframe is a CSS variable, we need to find its value by sampling the element
20
+ */
21
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
22
+ let keyframe = unresolvedKeyframes[i];
23
+ if (typeof keyframe === "string") {
24
+ keyframe = keyframe.trim();
25
+ if (isCSSVariableToken(keyframe)) {
26
+ const resolved = getVariableValue(keyframe, element.current);
27
+ if (resolved !== undefined) {
28
+ unresolvedKeyframes[i] = resolved;
29
+ }
30
+ if (i === unresolvedKeyframes.length - 1) {
31
+ this.finalKeyframe = keyframe;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ /**
37
+ * Resolve "none" values. We do this potentially twice - once before and once after measuring keyframes.
38
+ * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which
39
+ * have a far bigger performance impact.
40
+ */
41
+ this.resolveNoneKeyframes();
42
+ /**
43
+ * Check to see if unit type has changed. If so schedule jobs that will
44
+ * temporarily set styles to the destination keyframes.
45
+ * Skip if we have more than two keyframes or this isn't a positional value.
46
+ * TODO: We can throw if there are multiple keyframes and the value type changes.
47
+ */
48
+ if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {
49
+ return;
50
+ }
51
+ const [origin, target] = unresolvedKeyframes;
52
+ const originType = findDimensionValueType(origin);
53
+ const targetType = findDimensionValueType(target);
54
+ /**
55
+ * Either we don't recognise these value types or we can animate between them.
56
+ */
57
+ if (originType === targetType)
58
+ return;
59
+ /**
60
+ * If both values are numbers or pixels, we can animate between them by
61
+ * converting them to numbers.
62
+ */
63
+ if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {
64
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
65
+ const value = unresolvedKeyframes[i];
66
+ if (typeof value === "string") {
67
+ unresolvedKeyframes[i] = parseFloat(value);
68
+ }
69
+ }
70
+ }
71
+ else {
72
+ /**
73
+ * Else, the only way to resolve this is by measuring the element.
74
+ */
75
+ this.needsMeasurement = true;
76
+ }
77
+ }
78
+ resolveNoneKeyframes() {
79
+ const { unresolvedKeyframes, name } = this;
80
+ const noneKeyframeIndexes = [];
81
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
82
+ if (isNone(unresolvedKeyframes[i])) {
83
+ noneKeyframeIndexes.push(i);
84
+ }
85
+ }
86
+ if (noneKeyframeIndexes.length) {
87
+ makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);
88
+ }
89
+ }
90
+ measureInitialState() {
91
+ const { element, unresolvedKeyframes, name } = this;
92
+ if (!element || !element.current)
93
+ return;
94
+ if (name === "height") {
95
+ this.suspendedScrollY = window.pageYOffset;
96
+ }
97
+ this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
98
+ unresolvedKeyframes[0] = this.measuredOrigin;
99
+ // Set final key frame to measure after next render
100
+ const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
101
+ if (measureKeyframe !== undefined) {
102
+ element.getValue(name, measureKeyframe).jump(measureKeyframe, false);
103
+ }
104
+ }
105
+ measureEndState() {
106
+ var _a;
107
+ const { element, name, unresolvedKeyframes } = this;
108
+ if (!element || !element.current)
109
+ return;
110
+ const value = element.getValue(name);
111
+ value && value.jump(this.measuredOrigin, false);
112
+ const finalKeyframeIndex = unresolvedKeyframes.length - 1;
113
+ const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];
114
+ unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
115
+ if (finalKeyframe !== null && this.finalKeyframe === undefined) {
116
+ this.finalKeyframe = finalKeyframe;
117
+ }
118
+ // If we removed transform values, reapply them before the next render
119
+ if ((_a = this.removedTransforms) === null || _a === void 0 ? void 0 : _a.length) {
120
+ this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
121
+ element
122
+ .getValue(unsetTransformName)
123
+ .set(unsetTransformValue);
124
+ });
125
+ }
126
+ this.resolveNoneKeyframes();
127
+ }
128
+ }
129
+
130
+ export { DOMKeyframesResolver };
@@ -0,0 +1,28 @@
1
+ import { VisualElement } from '../VisualElement.mjs';
2
+ import { DOMKeyframesResolver } from './DOMKeyframesResolver.mjs';
3
+
4
+ class DOMVisualElement extends VisualElement {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.KeyframeResolver = DOMKeyframesResolver;
8
+ }
9
+ sortInstanceNodePosition(a, b) {
10
+ /**
11
+ * compareDocumentPosition returns a bitmask, by using the bitwise &
12
+ * we're returning true if 2 in that bitmask is set to true. 2 is set
13
+ * to true if b preceeds a.
14
+ */
15
+ return a.compareDocumentPosition(b) & 2 ? 1 : -1;
16
+ }
17
+ getBaseTargetFromProps(props, key) {
18
+ return props.style
19
+ ? props.style[key]
20
+ : undefined;
21
+ }
22
+ removeValueFromRenderState(key, { vars, style }) {
23
+ delete vars[key];
24
+ delete style[key];
25
+ }
26
+ }
27
+
28
+ export { DOMVisualElement };
@@ -0,0 +1,14 @@
1
+ import { Fragment } from 'react';
2
+ import { HTMLVisualElement } from '../html/HTMLVisualElement.mjs';
3
+ import { SVGVisualElement } from '../svg/SVGVisualElement.mjs';
4
+ import { isSVGComponent } from './utils/is-svg-component.mjs';
5
+
6
+ const createDomVisualElement = (Component, options) => {
7
+ return isSVGComponent(Component)
8
+ ? new SVGVisualElement(options)
9
+ : new HTMLVisualElement(options, {
10
+ allowProjection: Component !== Fragment,
11
+ });
12
+ };
13
+
14
+ export { createDomVisualElement };
@@ -0,0 +1,14 @@
1
+ import { animations } from '../../motion/features/animations.mjs';
2
+ import { gestureAnimations } from '../../motion/features/gestures.mjs';
3
+ import { createDomVisualElement } from './create-visual-element.mjs';
4
+
5
+ /**
6
+ * @public
7
+ */
8
+ const domAnimation = {
9
+ renderer: createDomVisualElement,
10
+ ...animations,
11
+ ...gestureAnimations,
12
+ };
13
+
14
+ export { domAnimation };