motion-v 0.12.0-beta.2 → 0.13.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/dist/cjs/index.js +478 -1218
  2. package/dist/es/animation/hooks/animation-controls.mjs +1 -1
  3. package/dist/es/animation/hooks/use-animate.mjs +1 -1
  4. package/dist/es/animation/hooks/use-reduced-motion.mjs +9 -0
  5. package/dist/es/components/animate-presence/AnimatePresence.vue.mjs +27 -19
  6. package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -1
  7. package/dist/es/components/motion/Motion.vue.mjs +1 -0
  8. package/dist/es/components/reorder/utils.mjs +1 -1
  9. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/index.mjs +1 -2
  10. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
  11. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -1
  12. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
  13. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +4 -7
  14. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +3 -1
  15. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +5 -4
  16. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +1 -2
  17. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +2 -2
  18. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +3 -6
  19. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +4 -4
  20. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +1 -2
  21. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +9 -2
  22. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +2 -2
  23. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +2 -2
  24. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/find.mjs +2 -2
  25. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/index.mjs +3 -4
  26. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/utils/velocity.mjs +2 -1
  27. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +4 -5
  28. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +1 -3
  29. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +4 -5
  30. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +2 -1
  31. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -2
  32. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/map.mjs +3 -3
  33. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +3 -3
  34. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +27 -7
  35. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
  36. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/VisualElement.mjs +4 -5
  37. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +1 -2
  38. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +3 -3
  39. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +3 -3
  40. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +1 -1
  41. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
  42. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +1 -1
  43. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
  44. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +3 -18
  45. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
  46. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +2 -3
  47. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils/parse-transform.mjs +82 -0
  48. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +1 -1
  49. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +1 -1
  50. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
  51. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
  52. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/setters.mjs +1 -1
  53. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/delay.mjs +3 -4
  54. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/interpolate.mjs +3 -3
  55. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/color.mjs +1 -1
  56. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
  57. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/fill.mjs +2 -2
  58. package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -2
  59. package/dist/es/features/gestures/drag/index.mjs +2 -2
  60. package/dist/es/features/gestures/focus/index.mjs +1 -1
  61. package/dist/es/features/gestures/hover/index.mjs +1 -3
  62. package/dist/es/features/gestures/in-view/index.mjs +2 -2
  63. package/dist/es/features/gestures/pan/PanSession.mjs +3 -3
  64. package/dist/es/features/gestures/pan/index.mjs +3 -3
  65. package/dist/es/features/gestures/press/index.mjs +30 -19
  66. package/dist/es/features/layout/config.mjs +2 -2
  67. package/dist/es/features/layout/layout.mjs +2 -2
  68. package/dist/es/features/layout/projection.mjs +2 -2
  69. package/dist/es/index.mjs +32 -42
  70. package/dist/es/state/animate-updates.mjs +6 -5
  71. package/dist/es/state/create-visual-element.mjs +2 -2
  72. package/dist/es/state/motion-state.mjs +3 -3
  73. package/dist/es/state/utils.mjs +0 -1
  74. package/dist/es/utils/use-animation-frame.mjs +1 -1
  75. package/dist/es/utils/use-in-view.mjs +6 -3
  76. package/dist/es/value/use-combine-values.mjs +1 -2
  77. package/dist/es/value/use-computed.mjs +1 -1
  78. package/dist/es/value/use-scroll.mjs +26 -24
  79. package/dist/es/value/use-spring.mjs +2 -3
  80. package/dist/es/value/use-time.mjs +1 -1
  81. package/dist/es/value/use-transform.mjs +3 -5
  82. package/dist/es/value/use-velocity.mjs +1 -2
  83. package/dist/nuxt/index.cjs +39 -27
  84. package/dist/nuxt/index.d.cts +7 -3
  85. package/dist/nuxt/index.d.mts +7 -3
  86. package/dist/nuxt/index.mjs +39 -27
  87. package/package.json +4 -3
  88. package/dist/es/animation/hooks/animation-controls.d.ts +0 -8
  89. package/dist/es/animation/hooks/use-animate.d.ts +0 -8
  90. package/dist/es/animation/hooks/use-animation-controls.d.ts +0 -33
  91. package/dist/es/animation/index.d.ts +0 -2
  92. package/dist/es/animation/types.d.ts +0 -68
  93. package/dist/es/animation/utils.d.ts +0 -2
  94. package/dist/es/components/LayoutGroup.d.ts +0 -43
  95. package/dist/es/components/RowValue.d.ts +0 -18
  96. package/dist/es/components/animate-presence/AnimatePresence.d.ts +0 -49
  97. package/dist/es/components/animate-presence/index.d.ts +0 -2
  98. package/dist/es/components/animate-presence/types.d.ts +0 -9
  99. package/dist/es/components/animate-presence/use-pop-layout.d.ts +0 -7
  100. package/dist/es/components/animate-presence/use-presence.d.ts +0 -2
  101. package/dist/es/components/animate-presence/utils.d.ts +0 -0
  102. package/dist/es/components/context.d.ts +0 -16
  103. package/dist/es/components/group.d.ts +0 -7
  104. package/dist/es/components/hooks/use-motion-elm.d.ts +0 -13
  105. package/dist/es/components/index.d.ts +0 -6
  106. package/dist/es/components/motion/Motion.d.ts +0 -32
  107. package/dist/es/components/motion/NameSpace.d.ts +0 -14
  108. package/dist/es/components/motion/Primitive.d.ts +0 -48
  109. package/dist/es/components/motion/Slot.d.ts +0 -5
  110. package/dist/es/components/motion/index.d.ts +0 -2
  111. package/dist/es/components/motion/renderSlotFragments.d.ts +0 -2
  112. package/dist/es/components/motion/utils.d.ts +0 -7
  113. package/dist/es/components/motion-config/MotionConfig.d.ts +0 -39
  114. package/dist/es/components/motion-config/context.d.ts +0 -11
  115. package/dist/es/components/motion-config/index.d.ts +0 -2
  116. package/dist/es/components/motion-config/types.d.ts +0 -16
  117. package/dist/es/components/presence.d.ts +0 -7
  118. package/dist/es/components/reorder/Group.d.ts +0 -71
  119. package/dist/es/components/reorder/Item.d.ts +0 -36
  120. package/dist/es/components/reorder/context.d.ts +0 -8
  121. package/dist/es/components/reorder/index.d.ts +0 -8942
  122. package/dist/es/components/reorder/types.d.ts +0 -5
  123. package/dist/es/components/reorder/utils.d.ts +0 -6
  124. package/dist/es/components/use-force-update.d.ts +0 -2
  125. package/dist/es/components/use-layout-group.d.ts +0 -23
  126. package/dist/es/components/use-slot-change-index.d.ts +0 -1
  127. package/dist/es/constants/index.d.ts +0 -9
  128. package/dist/es/constants/index.mjs +0 -31
  129. package/dist/es/events/add-dom-event.d.ts +0 -1
  130. package/dist/es/events/add-pointer-event.d.ts +0 -2
  131. package/dist/es/events/event-info.d.ts +0 -4
  132. package/dist/es/events/index.d.ts +0 -5
  133. package/dist/es/events/types.d.ts +0 -5
  134. package/dist/es/events/utils/index.d.ts +0 -1
  135. package/dist/es/events/utils/is-primary-pointer.d.ts +0 -1
  136. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/batcher.mjs +0 -63
  137. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/frame.mjs +0 -10
  138. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -11
  139. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/microtask.mjs +0 -6
  140. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/order.mjs +0 -17
  141. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/render-step.mjs +0 -70
  142. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/frameloop/sync-time.mjs +0 -21
  143. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/stats/buffer.mjs +0 -7
  144. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -7
  145. package/dist/es/external/.pnpm/framer-motion@12.4.10/external/framer-motion/dist/es/value/index.mjs +0 -282
  146. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs +0 -79
  147. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
  148. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -15
  149. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +0 -17
  150. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
  151. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
  152. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
  153. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
  154. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
  155. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +0 -13
  156. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +0 -11
  157. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/hover.mjs +0 -30
  158. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
  159. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -13
  160. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -32
  161. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -4
  162. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
  163. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -12
  164. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -10
  165. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -15
  166. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/is-bezier-definition.mjs +0 -4
  167. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/resolve-elements.mjs +0 -17
  168. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
  169. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -12
  170. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
  171. package/dist/es/external/.pnpm/motion-dom@12.4.10/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +0 -6
  172. package/dist/es/features/animation/animation.d.ts +0 -13
  173. package/dist/es/features/feature-manager.d.ts +0 -12
  174. package/dist/es/features/feature.d.ts +0 -11
  175. package/dist/es/features/gestures/base.d.ts +0 -8
  176. package/dist/es/features/gestures/drag/VisualElementDragControls.d.ts +0 -57
  177. package/dist/es/features/gestures/drag/index.d.ts +0 -10
  178. package/dist/es/features/gestures/drag/lock.d.ts +0 -4
  179. package/dist/es/features/gestures/drag/types.d.ts +0 -225
  180. package/dist/es/features/gestures/drag/use-drag-controls.d.ts +0 -73
  181. package/dist/es/features/gestures/drag/utils/constraints.d.ts +0 -55
  182. package/dist/es/features/gestures/drag/utils/is.d.ts +0 -1
  183. package/dist/es/features/gestures/focus/index.d.ts +0 -7
  184. package/dist/es/features/gestures/focus/types.d.ts +0 -13
  185. package/dist/es/features/gestures/hover/index.d.ts +0 -7
  186. package/dist/es/features/gestures/hover/types.d.ts +0 -15
  187. package/dist/es/features/gestures/in-view/index.d.ts +0 -9
  188. package/dist/es/features/gestures/in-view/types.d.ts +0 -25
  189. package/dist/es/features/gestures/index.d.ts +0 -5
  190. package/dist/es/features/gestures/pan/PanSession.d.ts +0 -139
  191. package/dist/es/features/gestures/pan/index.d.ts +0 -16
  192. package/dist/es/features/gestures/pan/types.d.ts +0 -7
  193. package/dist/es/features/gestures/press/index.d.ts +0 -9
  194. package/dist/es/features/gestures/press/types.d.ts +0 -20
  195. package/dist/es/features/gestures/types.d.ts +0 -22
  196. package/dist/es/features/index.d.ts +0 -6
  197. package/dist/es/features/layout/config.d.ts +0 -8
  198. package/dist/es/features/layout/layout.d.ts +0 -11
  199. package/dist/es/features/layout/projection.d.ts +0 -9
  200. package/dist/es/features/layout/types.d.ts +0 -21
  201. package/dist/es/features/layout/utils.d.ts +0 -4
  202. package/dist/es/index.d.ts +0 -15
  203. package/dist/es/projection/conversion.d.ts +0 -14
  204. package/dist/es/projection/geometry/delta-apply.d.ts +0 -2
  205. package/dist/es/projection/geometry/delta-calc.d.ts +0 -2
  206. package/dist/es/projection/geometry/models.d.ts +0 -3
  207. package/dist/es/projection/node/types.d.ts +0 -16
  208. package/dist/es/projection/utils/each-axis.d.ts +0 -3
  209. package/dist/es/projection/utils/measure.d.ts +0 -3
  210. package/dist/es/render/utils/setters.d.ts +0 -3
  211. package/dist/es/shared/test.d.ts +0 -1
  212. package/dist/es/state/animate-updates.d.ts +0 -20
  213. package/dist/es/state/animate-variants-children.d.ts +0 -15
  214. package/dist/es/state/animation/index.d.ts +0 -0
  215. package/dist/es/state/animation/types.d.ts +0 -0
  216. package/dist/es/state/create-visual-element.d.ts +0 -1
  217. package/dist/es/state/event.d.ts +0 -6
  218. package/dist/es/state/index.d.ts +0 -1
  219. package/dist/es/state/motion-state.d.ts +0 -50
  220. package/dist/es/state/style.d.ts +0 -11
  221. package/dist/es/state/transform.d.ts +0 -25
  222. package/dist/es/state/utils/is-present.d.ts +0 -2
  223. package/dist/es/state/utils/is-variant-labels.d.ts +0 -2
  224. package/dist/es/state/utils.d.ts +0 -19
  225. package/dist/es/types/framer-motion.d.ts +0 -43
  226. package/dist/es/types/index.d.ts +0 -4
  227. package/dist/es/types/motion-values.d.ts +0 -93
  228. package/dist/es/types/state.d.ts +0 -79
  229. package/dist/es/types/transform.d.ts +0 -23
  230. package/dist/es/utils/clamp.d.ts +0 -1
  231. package/dist/es/utils/createContext.d.ts +0 -8
  232. package/dist/es/utils/delay.d.ts +0 -1
  233. package/dist/es/utils/get-context-window.d.ts +0 -2
  234. package/dist/es/utils/index.d.ts +0 -7
  235. package/dist/es/utils/mix/number.d.ts +0 -1
  236. package/dist/es/utils/motion-value.d.ts +0 -2
  237. package/dist/es/utils/noop.d.ts +0 -1
  238. package/dist/es/utils/progress.d.ts +0 -1
  239. package/dist/es/utils/time-conversion.d.ts +0 -8
  240. package/dist/es/utils/use-animation-frame.d.ts +0 -2
  241. package/dist/es/utils/use-dom-ref.d.ts +0 -1
  242. package/dist/es/utils/use-in-view.d.ts +0 -3
  243. package/dist/es/value/index.d.ts +0 -9
  244. package/dist/es/value/types/numbers/units.d.ts +0 -30
  245. package/dist/es/value/use-combine-values.d.ts +0 -6
  246. package/dist/es/value/use-computed.d.ts +0 -2
  247. package/dist/es/value/use-motion-template.d.ts +0 -21
  248. package/dist/es/value/use-motion-value-event.d.ts +0 -3
  249. package/dist/es/value/use-scroll.d.ts +0 -12
  250. package/dist/es/value/use-spring.d.ts +0 -4
  251. package/dist/es/value/use-time.d.ts +0 -1
  252. package/dist/es/value/use-transform.d.ts +0 -59
  253. package/dist/es/value/use-velocity.d.ts +0 -13
  254. package/dist/es/value/use-will-change/add-will-change.d.ts +0 -2
  255. package/dist/es/value/use-will-change/is.d.ts +0 -2
  256. package/dist/es/value/use-will-change/types.d.ts +0 -4
  257. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
  258. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
  259. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
  260. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
  261. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
  262. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
  263. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/generators/spring/defaults.mjs +0 -0
  264. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
  265. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
  266. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
  267. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
  268. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
  269. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
  270. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
  271. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +0 -0
  272. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
  273. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
  274. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
  275. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
  276. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
  277. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
  278. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
  279. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/anticipate.mjs +0 -0
  280. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/back.mjs +0 -0
  281. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/circ.mjs +0 -0
  282. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/ease.mjs +0 -0
  283. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
  284. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
  285. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/steps.mjs +0 -0
  286. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
  287. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
  288. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
  289. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
  290. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +0 -0
  291. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
  292. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
  293. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
  294. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
  295. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
  296. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
  297. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
  298. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
  299. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
  300. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
  301. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
  302. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
  303. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -0
  304. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
  305. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
  306. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
  307. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
  308. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +0 -0
  309. package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
  310. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
  311. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
  312. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
  313. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +0 -0
  314. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
  315. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
  316. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
  317. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
  318. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
  319. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
  320. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
  321. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
  322. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
  323. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
  324. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
  325. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
  326. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
  327. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
  328. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
  329. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
  330. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
  331. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +0 -0
  332. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +0 -0
  333. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/keys-position.mjs +0 -0
  334. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/keys-transform.mjs +0 -0
  335. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
  336. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
  337. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
  338. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
  339. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
  340. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
  341. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
  342. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
  343. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -0
  344. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
  345. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
  346. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +0 -0
  347. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
  348. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
  349. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
  350. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
  351. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
  352. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
  353. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
  354. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/clamp.mjs +0 -0
  355. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
  356. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
  357. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
  358. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
  359. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
  360. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
  361. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/index.mjs +0 -0
  362. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/number.mjs +0 -0
  363. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
  364. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
  365. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
  366. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/pipe.mjs +0 -0
  367. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
  368. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
  369. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
  370. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/transform.mjs +0 -0
  371. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/wrap.mjs +0 -0
  372. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
  373. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
  374. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/index.mjs +0 -0
  375. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
  376. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
  377. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
  378. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
  379. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
  380. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
  381. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
  382. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
  383. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
  384. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
  385. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
  386. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
  387. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
  388. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
  389. /package/dist/es/external/.pnpm/{framer-motion@12.4.10 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
  390. /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/array.mjs +0 -0
  391. /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/errors.mjs +0 -0
  392. /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/memo.mjs +0 -0
  393. /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/noop.mjs +0 -0
  394. /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/progress.mjs +0 -0
  395. /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/subscription-manager.mjs +0 -0
  396. /package/dist/es/external/.pnpm/{motion-utils@12.4.10 → motion-utils@12.5.0}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
  397. /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/velocity-per-second.mjs +0 -0
  398. /package/dist/es/external/.pnpm/{framer-motion@12.4.10/external/framer-motion/dist/es/utils → motion-utils@12.5.0/external/motion-utils/dist/es}/warn-once.mjs +0 -0
@@ -1,57 +0,0 @@
1
- import { MotionProps } from '../../../components/motion/Motion';
2
- import { Options } from '../../../types';
3
- import { Point, VisualElement } from 'framer-motion';
4
- export declare const elementDragControls: WeakMap<VisualElement<unknown, unknown, {}>, VisualElementDragControls>;
5
- export interface DragControlOptions {
6
- snapToCursor?: boolean;
7
- cursorProgress?: Point;
8
- }
9
- /**
10
- *
11
- */
12
- export declare class VisualElementDragControls {
13
- private visualElement;
14
- private panSession?;
15
- private openGlobalLock;
16
- isDragging: boolean;
17
- private currentDirection;
18
- private originPoint;
19
- /**
20
- * The permitted boundaries of travel, in pixels.
21
- */
22
- private constraints;
23
- private hasMutatedConstraints;
24
- /**
25
- * The per-axis resolved elastic values.
26
- */
27
- private elastic;
28
- constructor(visualElement: VisualElement<HTMLElement>);
29
- start(originEvent: PointerEvent, { snapToCursor }?: DragControlOptions): void;
30
- private stop;
31
- private cancel;
32
- private updateAxis;
33
- private resolveConstraints;
34
- private resolveRefConstraints;
35
- private startAnimation;
36
- private startAxisValueAnimation;
37
- private stopAnimation;
38
- private pauseAnimation;
39
- private getAnimationState;
40
- /**
41
- * Drag works differently depending on which props are provided.
42
- *
43
- * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.
44
- * - Otherwise, we apply the delta to the x/y motion values.
45
- */
46
- private getAxisMotionValue;
47
- private snapToCursor;
48
- /**
49
- * When the viewport resizes we want to check if the measured constraints
50
- * have changed and, if so, reposition the element within those new constraints
51
- * relative to where it was before the resize.
52
- */
53
- scalePositionWithinConstraints(): void;
54
- addListeners(): () => void;
55
- getProps(): Options;
56
- }
57
- export declare function expectsResolvedDragConstraints({ dragConstraints, onMeasureDragConstraints, }: MotionProps): boolean;
@@ -1,10 +0,0 @@
1
- import { Feature } from '../../feature';
2
- import { VisualElementDragControls } from './VisualElementDragControls';
3
- export declare class DragGesture extends Feature {
4
- controls: VisualElementDragControls;
5
- removeGroupControls: Function;
6
- removeListeners: Function;
7
- constructor(state: any);
8
- mount(): void;
9
- unmount(): void;
10
- }
@@ -1,4 +0,0 @@
1
- export type Lock = (() => void) | false;
2
- export declare function createLock(name: string): () => Lock;
3
- export declare function getGlobalLock(drag: boolean | 'x' | 'y' | 'lockDirection'): Lock;
4
- export declare function isDragActive(): boolean;
@@ -1,225 +0,0 @@
1
- import { DragControls } from './use-drag-controls';
2
- import { Variant, VariantLabels } from '../../../types';
3
- import { Axis, BoundingBox, DragElastic, InertiaOptions, PanInfo } from 'framer-motion';
4
- export interface ResolvedConstraints {
5
- x: Partial<Axis>;
6
- y: Partial<Axis>;
7
- }
8
- /**
9
- * @public
10
- */
11
- export interface DragHandlers {
12
- /**
13
- * Callback function that fires when dragging starts.
14
- *
15
- * ```jsx
16
- * <motion.div
17
- * drag
18
- * onDragStart={
19
- * (event, info) => console.log(info.point.x, info.point.y)
20
- * }
21
- * />
22
- * ```
23
- *
24
- * @public
25
- */
26
- onDragStart?: (event: PointerEvent, info: PanInfo) => void;
27
- /**
28
- * Callback function that fires when dragging ends.
29
- *
30
- * ```jsx
31
- * <motion.div
32
- * drag
33
- * onDragEnd={
34
- * (event, info) => console.log(info.point.x, info.point.y)
35
- * }
36
- * />
37
- * ```
38
- *
39
- * @public
40
- */
41
- onDragEnd?: (event: PointerEvent, info: PanInfo) => void;
42
- /**
43
- * Callback function that fires when the component is dragged.
44
- *
45
- * ```jsx
46
- * <motion.div
47
- * drag
48
- * onDrag={
49
- * (event, info) => console.log(info.point.x, info.point.y)
50
- * }
51
- * />
52
- * ```
53
- *
54
- * @public
55
- */
56
- onDrag?: (event: PointerEvent, info: PanInfo) => void;
57
- /**
58
- * Callback function that fires a drag direction is determined.
59
- *
60
- * ```jsx
61
- * <motion.div
62
- * drag
63
- * dragDirectionLock
64
- * onDirectionLock={axis => console.log(axis)}
65
- * />
66
- * ```
67
- *
68
- * @public
69
- */
70
- onDirectionLock?: (axis: 'x' | 'y') => void;
71
- /**
72
- * Callback function that fires when drag momentum/bounce transition finishes.
73
- *
74
- * ```jsx
75
- * <motion.div
76
- * drag
77
- * onDragTransitionEnd={() => console.log('Drag transition complete')}
78
- * />
79
- * ```
80
- *
81
- * @public
82
- */
83
- onDragTransitionEnd?: () => void;
84
- /**
85
- * If `dragConstraints` is set to a HTMLElement, this callback will call with the measured drag constraints.
86
- *
87
- * @public
88
- */
89
- onMeasureDragConstraints?: (constraints: BoundingBox) => BoundingBox | void;
90
- }
91
- export interface DragProps extends DragHandlers {
92
- /**
93
- * Enable dragging for this element. Set to `false` by default.
94
- * Set `true` to drag in both directions.
95
- * Set `"x"` or `"y"` to only drag in a specific direction.
96
- *
97
- * ```jsx
98
- * <motion.div drag="x" />
99
- * ```
100
- */
101
- drag?: boolean | 'x' | 'y';
102
- /**
103
- * If true, element will snap back to its origin when dragging ends.
104
- *
105
- * Enabling this is the equivalent of setting all `dragConstraints` axes to `0`
106
- * with `dragElastic={1}`, but when used together `dragConstraints` can define
107
- * a wider draggable area and `dragSnapToOrigin` will ensure the element
108
- * animates back to its origin on release.
109
- */
110
- dragSnapToOrigin?: boolean;
111
- /**
112
- * If `true`, this will lock dragging to the initially-detected direction. Defaults to `false`.
113
- *
114
- * ```jsx
115
- * <motion.div drag dragDirectionLock />
116
- * ```
117
- */
118
- dragDirectionLock?: boolean;
119
- /**
120
- * Allows drag gesture propagation to child components. Set to `false` by
121
- * default.
122
- *
123
- * ```jsx
124
- * <motion.div drag="x" dragPropagation />
125
- * ```
126
- */
127
- dragPropagation?: boolean;
128
- dragConstraints?: false | Partial<BoundingBox> | HTMLElement;
129
- /**
130
- * The degree of movement allowed outside constraints. 0 = no movement, 1 =
131
- * full movement.
132
- *
133
- * Set to `0.5` by default. Can also be set as `false` to disable movement.
134
- *
135
- * By passing an object of `top`/`right`/`bottom`/`left`, individual values can be set
136
- * per constraint. Any missing values will be set to `0`.
137
- *
138
- * ```jsx
139
- * <motion.div
140
- * drag
141
- * dragConstraints={{ left: 0, right: 300 }}
142
- * dragElastic={0.2}
143
- * />
144
- * ```
145
- */
146
- dragElastic?: DragElastic;
147
- /**
148
- * Apply momentum from the pan gesture to the component when dragging
149
- * finishes. Set to `true` by default.
150
- *
151
- * ```jsx
152
- * <motion.div
153
- * drag
154
- * dragConstraints={{ left: 0, right: 300 }}
155
- * dragMomentum={false}
156
- * />
157
- * ```
158
- */
159
- dragMomentum?: boolean;
160
- /**
161
- * Allows you to change dragging inertia parameters.
162
- * When releasing a draggable Frame, an animation with type `inertia` starts. The animation is based on your dragging velocity. This property allows you to customize it.
163
- * See {@link https://framer.com/api/animation/#inertia | Inertia} for all properties you can use.
164
- *
165
- * ```jsx
166
- * <motion.div
167
- * drag
168
- * dragTransition={{ bounceStiffness: 600, bounceDamping: 10 }}
169
- * />
170
- * ```
171
- */
172
- dragTransition?: InertiaOptions;
173
- /**
174
- * By default, if `drag` is defined on a component then an event listener will be attached
175
- * to automatically initiate dragging when a user presses down on it.
176
- *
177
- * By setting `dragListener` to `false`, this event listener will not be created.
178
- *
179
- * ```jsx
180
- * const dragControls = useDragControls()
181
- *
182
- * function startDrag(event) {
183
- * dragControls.start(event, { snapToCursor: true })
184
- * }
185
- *
186
- * return (
187
- * <>
188
- * <div onPointerDown={startDrag} />
189
- * <motion.div
190
- * drag="x"
191
- * dragControls={dragControls}
192
- * dragListener={false}
193
- * />
194
- * </>
195
- * )
196
- * ```
197
- */
198
- dragListener?: boolean;
199
- /**
200
- * Usually, dragging is initiated by pressing down on a component and moving it. For some
201
- * use-cases, for instance clicking at an arbitrary point on a video scrubber, we
202
- * might want to initiate dragging from a different component than the draggable one.
203
- *
204
- * By creating a `dragControls` using the `useDragControls` hook, we can pass this into
205
- * the draggable component's `dragControls` prop. It exposes a `start` method
206
- * that can start dragging from pointer events on other components.
207
- *
208
- * ```jsx
209
- * const dragControls = useDragControls()
210
- *
211
- * function startDrag(event) {
212
- * dragControls.start(event, { snapToCursor: true })
213
- * }
214
- *
215
- * return (
216
- * <>
217
- * <div onPointerDown={startDrag} />
218
- * <motion.div drag="x" dragControls={dragControls} />
219
- * </>
220
- * )
221
- * ```
222
- */
223
- dragControls?: DragControls;
224
- whileDrag?: VariantLabels | Variant;
225
- }
@@ -1,73 +0,0 @@
1
- import { DragControlOptions, VisualElementDragControls } from './VisualElementDragControls';
2
- /**
3
- * Can manually trigger a drag gesture on one or more `drag`-enabled `motion` components.
4
- *
5
- * ```jsx
6
- * const dragControls = useDragControls()
7
- *
8
- * function startDrag(event) {
9
- * dragControls.start(event, { snapToCursor: true })
10
- * }
11
- *
12
- * return (
13
- * <>
14
- * <div onPointerDown={startDrag} />
15
- * <motion.div drag="x" dragControls={dragControls} />
16
- * </>
17
- * )
18
- * ```
19
- *
20
- * @public
21
- */
22
- export declare class DragControls {
23
- private componentControls;
24
- /**
25
- * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.
26
- *
27
- * @internal
28
- */
29
- subscribe(controls: VisualElementDragControls): () => void;
30
- /**
31
- * Start a drag gesture on every `motion` component that has this set of drag controls
32
- * passed into it via the `dragControls` prop.
33
- *
34
- * ```jsx
35
- * dragControls.start(e, {
36
- * snapToCursor: true
37
- * })
38
- * ```
39
- *
40
- * @param event - PointerEvent
41
- * @param options - Options
42
- *
43
- * @public
44
- */
45
- start(event: PointerEvent, options?: DragControlOptions): void;
46
- }
47
- /**
48
- * Usually, dragging is initiated by pressing down on a `motion` component with a `drag` prop
49
- * and moving it. For some use-cases, for instance clicking at an arbitrary point on a video scrubber, we
50
- * might want to initiate that dragging from a different component than the draggable one.
51
- *
52
- * By creating a `dragControls` using the `useDragControls` hook, we can pass this into
53
- * the draggable component's `dragControls` prop. It exposes a `start` method
54
- * that can start dragging from pointer events on other components.
55
- *
56
- * ```jsx
57
- * const dragControls = useDragControls()
58
- *
59
- * function startDrag(event) {
60
- * dragControls.start(event, { snapToCursor: true })
61
- * }
62
- *
63
- * return (
64
- * <>
65
- * <div onPointerDown={startDrag} />
66
- * <motion.div drag="x" dragControls={dragControls} />
67
- * </>
68
- * )
69
- * ```
70
- *
71
- * @public
72
- */
73
- export declare const useDragControls: () => DragControls;
@@ -1,55 +0,0 @@
1
- import { ResolvedConstraints } from '../types';
2
- import { Axis, BoundingBox, Box, DragElastic } from 'framer-motion';
3
- /**
4
- * Apply constraints to a point. These constraints are both physical along an
5
- * axis, and an elastic factor that determines how much to constrain the point
6
- * by if it does lie outside the defined parameters.
7
- */
8
- export declare function applyConstraints(point: number, { min, max }: Partial<Axis>, elastic?: Axis): number;
9
- export declare const defaultElastic = 0.35;
10
- /**
11
- * Calculate constraints in terms of the viewport when
12
- * defined relatively to the measured bounding box.
13
- */
14
- export declare function calcRelativeConstraints(layoutBox: Box, { top, left, bottom, right }: Partial<BoundingBox>): ResolvedConstraints;
15
- /**
16
- * Calculate constraints in terms of the viewport when defined relatively to the
17
- * measured axis. This is measured from the nearest edge, so a max constraint of 200
18
- * on an axis with a max value of 300 would return a constraint of 500 - axis length
19
- */
20
- export declare function calcRelativeAxisConstraints(axis: Axis, min?: number, max?: number): Partial<Axis>;
21
- /**
22
- * Accepts a dragElastic prop and returns resolved elastic values for each axis.
23
- */
24
- export declare function resolveDragElastic(dragElastic?: DragElastic): Box;
25
- export declare function resolveAxisElastic(dragElastic: DragElastic, minLabel: string, maxLabel: string): Axis;
26
- export declare function resolvePointElastic(dragElastic: DragElastic, label: string): number;
27
- /**
28
- * Rebase the calculated viewport constraints relative to the layout.min point.
29
- */
30
- export declare function rebaseAxisConstraints(layout: Axis, constraints: Partial<Axis>): Partial<Axis>;
31
- /**
32
- * Calculate viewport constraints when defined as another viewport-relative box
33
- */
34
- export declare function calcViewportConstraints(layoutBox: Box, constraintsBox: Box): {
35
- x: {
36
- min: number;
37
- max: number;
38
- };
39
- y: {
40
- min: number;
41
- max: number;
42
- };
43
- };
44
- /**
45
- * Calculate viewport constraints when defined as another viewport-relative axis
46
- */
47
- export declare function calcViewportAxisConstraints(layoutAxis: Axis, constraintsAxis: Axis): {
48
- min: number;
49
- max: number;
50
- };
51
- /**
52
- * Calculate a transform origin relative to the source axis, between 0-1, that results
53
- * in an asthetically pleasing scale/transform needed to project from source to target.
54
- */
55
- export declare function calcOrigin(source: Axis, target: Axis): number;
@@ -1 +0,0 @@
1
- export declare function isHTMLElement(value: any): value is HTMLElement;
@@ -1,7 +0,0 @@
1
- import { Feature } from '../../feature';
2
- export declare class FocusGesture extends Feature {
3
- private isActive;
4
- onFocus(): void;
5
- onBlur(): void;
6
- mount(): void;
7
- }
@@ -1,13 +0,0 @@
1
- import { Variant, VariantLabels } from '../../../types';
2
- export type FocusProps = {
3
- /**
4
- * @deprecated Use `whileFocus` instead.
5
- */
6
- focus?: VariantLabels | Variant;
7
- /**
8
- * Variant to apply when the element is focused.
9
- */
10
- whileFocus?: VariantLabels | Variant;
11
- onFocus?: (e: FocusEvent) => void;
12
- onBlur?: (e: FocusEvent) => void;
13
- };
@@ -1,7 +0,0 @@
1
- import { MotionState } from '../../../state/motion-state';
2
- import { Feature } from '../..';
3
- export declare class HoverGesture extends Feature {
4
- isActive(): boolean;
5
- constructor(state: MotionState);
6
- mount(): void;
7
- }
@@ -1,15 +0,0 @@
1
- import { Variant, VariantLabels } from '../../../types';
2
- import { EventInfo } from 'framer-motion';
3
- export type HoverEvent = (event: MouseEvent, info: EventInfo) => void;
4
- export interface HoverProps {
5
- /**
6
- * @deprecated Use `whileHover` instead.
7
- */
8
- hover?: VariantLabels | Variant;
9
- /**
10
- * Variant to apply when the element is hovered.
11
- */
12
- whileHover?: VariantLabels | Variant;
13
- onHoverStart?: HoverEvent;
14
- onHoverEnd?: HoverEvent;
15
- }
@@ -1,9 +0,0 @@
1
- import { MotionState } from '../../../state/motion-state';
2
- import { Feature } from '../..';
3
- export declare class InViewGesture extends Feature {
4
- isActive(): boolean;
5
- constructor(state: MotionState);
6
- startObserver(): void;
7
- mount(): void;
8
- update(): void;
9
- }
@@ -1,25 +0,0 @@
1
- import { Variant, VariantLabels } from '../../../types';
2
- type MarginValue = `${number}${'px' | '%'}`;
3
- type MarginType = MarginValue | `${MarginValue} ${MarginValue}` | `${MarginValue} ${MarginValue} ${MarginValue}` | `${MarginValue} ${MarginValue} ${MarginValue} ${MarginValue}`;
4
- export interface InViewOptions {
5
- root?: Element | Document;
6
- margin?: MarginType;
7
- amount?: 'some' | 'all' | number;
8
- }
9
- type ViewportEventHandler = (entry: IntersectionObserverEntry | null) => void;
10
- export interface InViewProps {
11
- inViewOptions?: InViewOptions & {
12
- once?: boolean;
13
- };
14
- /**
15
- * @deprecated Use `whileInView` instead.
16
- */
17
- inView?: VariantLabels | Variant;
18
- /**
19
- * Variant to apply when the element is in view.
20
- */
21
- whileInView?: VariantLabels | Variant;
22
- onViewportEnter?: ViewportEventHandler;
23
- onViewportLeave?: ViewportEventHandler;
24
- }
25
- export {};
@@ -1,5 +0,0 @@
1
- export * from './base';
2
- export * from './hover';
3
- export * from './press';
4
- export * from './in-view';
5
- export * from './drag';
@@ -1,139 +0,0 @@
1
- import { Point, TransformPoint } from 'framer-motion';
2
- /**
3
- * Passed in to pan event handlers like `onPan` the `PanInfo` object contains
4
- * information about the current state of the tap gesture such as its
5
- * `point`, `delta`, `offset` and `velocity`.
6
- *
7
- * ```jsx
8
- * <motion.div onPan={(event, info) => {
9
- * console.log(info.point.x, info.point.y)
10
- * }} />
11
- * ```
12
- *
13
- * @public
14
- */
15
- export interface PanInfo {
16
- /**
17
- * Contains `x` and `y` values for the current pan position relative
18
- * to the device or page.
19
- *
20
- * ```jsx
21
- * function onPan(event, info) {
22
- * console.log(info.point.x, info.point.y)
23
- * }
24
- *
25
- * <motion.div onPan={onPan} />
26
- * ```
27
- *
28
- * @public
29
- */
30
- point: Point;
31
- /**
32
- * Contains `x` and `y` values for the distance moved since
33
- * the last event.
34
- *
35
- * ```jsx
36
- * function onPan(event, info) {
37
- * console.log(info.delta.x, info.delta.y)
38
- * }
39
- *
40
- * <motion.div onPan={onPan} />
41
- * ```
42
- *
43
- * @public
44
- */
45
- delta: Point;
46
- /**
47
- * Contains `x` and `y` values for the distance moved from
48
- * the first pan event.
49
- *
50
- * ```jsx
51
- * function onPan(event, info) {
52
- * console.log(info.offset.x, info.offset.y)
53
- * }
54
- *
55
- * <motion.div onPan={onPan} />
56
- * ```
57
- *
58
- * @public
59
- */
60
- offset: Point;
61
- /**
62
- * Contains `x` and `y` values for the current velocity of the pointer, in px/ms.
63
- *
64
- * ```jsx
65
- * function onPan(event, info) {
66
- * console.log(info.velocity.x, info.velocity.y)
67
- * }
68
- *
69
- * <motion.div onPan={onPan} />
70
- * ```
71
- *
72
- * @public
73
- */
74
- velocity: Point;
75
- }
76
- export type PanHandler = (event: Event, info: PanInfo) => void;
77
- interface PanSessionHandlers {
78
- onSessionStart: PanHandler;
79
- onStart: PanHandler;
80
- onMove: PanHandler;
81
- onEnd: PanHandler;
82
- onSessionEnd: PanHandler;
83
- resumeAnimation: () => void;
84
- }
85
- interface PanSessionOptions {
86
- transformPagePoint?: TransformPoint;
87
- contextWindow?: (Window & typeof globalThis) | null;
88
- dragSnapToOrigin?: boolean;
89
- }
90
- /**
91
- * @internal
92
- */
93
- export declare class PanSession {
94
- /**
95
- * @internal
96
- */
97
- private history;
98
- /**
99
- * @internal
100
- */
101
- private startEvent;
102
- /**
103
- * @internal
104
- */
105
- private lastMoveEvent;
106
- /**
107
- * @internal
108
- */
109
- private lastMoveEventInfo;
110
- /**
111
- * @internal
112
- */
113
- private transformPagePoint?;
114
- /**
115
- * @internal
116
- */
117
- private handlers;
118
- /**
119
- * @internal
120
- */
121
- private removeListeners;
122
- /**
123
- * For determining if an animation should resume after it is interupted
124
- *
125
- * @internal
126
- */
127
- private dragSnapToOrigin;
128
- /**
129
- * @internal
130
- */
131
- private contextWindow;
132
- constructor(event: PointerEvent, handlers: Partial<PanSessionHandlers>, { transformPagePoint, contextWindow, dragSnapToOrigin }?: PanSessionOptions);
133
- private updatePoint;
134
- private handlePointerMove;
135
- private handlePointerUp;
136
- updateHandlers(handlers: Partial<PanSessionHandlers>): void;
137
- end(): void;
138
- }
139
- export {};
@@ -1,16 +0,0 @@
1
- import { PanInfo } from './PanSession';
2
- import { Feature } from '../../feature';
3
- export declare class PanGesture extends Feature {
4
- private session?;
5
- private removePointerDownListener;
6
- onPointerDown(pointerDownEvent: PointerEvent): void;
7
- createPanHandlers(): {
8
- onSessionStart: (event: PointerEvent, info: PanInfo) => void;
9
- onStart: (event: PointerEvent, info: PanInfo) => void;
10
- onMove: (event: any, info: any) => void;
11
- onEnd: (event: PointerEvent, info: PanInfo) => void;
12
- };
13
- mount(): void;
14
- update(): void;
15
- unmount(): void;
16
- }
@@ -1,7 +0,0 @@
1
- import { PanInfo } from './PanSession';
2
- export interface PanProps {
3
- onPanSessionStart?: (event: PointerEvent, info: PanInfo) => void;
4
- onPanStart?: (event: PointerEvent, info: PanInfo) => void;
5
- onPan?: (event: PointerEvent, info: PanInfo) => void;
6
- onPanEnd?: (event: PointerEvent, info: PanInfo) => void;
7
- }