@betterinternship/components 3.0.0 → 3.0.2

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 (573) hide show
  1. package/dist/components/animated-count.js +2 -3
  2. package/dist/components/animated-count.js.map +1 -1
  3. package/dist/components/app-header.js +1 -0
  4. package/dist/components/app-header.js.map +1 -1
  5. package/dist/components/calendar.js +1 -0
  6. package/dist/components/calendar.js.map +1 -1
  7. package/dist/components/checkbox.js +1 -0
  8. package/dist/components/checkbox.js.map +1 -1
  9. package/dist/components/dropdown.d.ts +0 -8
  10. package/dist/components/filter-chip.js +1 -0
  11. package/dist/components/filter-chip.js.map +1 -1
  12. package/dist/components/form-checkbox-group.js +1 -0
  13. package/dist/components/form-checkbox-group.js.map +1 -1
  14. package/dist/components/form-checkbox.js +1 -0
  15. package/dist/components/form-checkbox.js.map +1 -1
  16. package/dist/components/form-date-picker.js +1 -0
  17. package/dist/components/form-date-picker.js.map +1 -1
  18. package/dist/components/form-input.js +1 -0
  19. package/dist/components/form-input.js.map +1 -1
  20. package/dist/components/form-month-picker.js +1 -0
  21. package/dist/components/form-month-picker.js.map +1 -1
  22. package/dist/components/form-textarea.js +1 -0
  23. package/dist/components/form-textarea.js.map +1 -1
  24. package/dist/components/input.js +1 -0
  25. package/dist/components/input.js.map +1 -1
  26. package/dist/components/select.js +1 -0
  27. package/dist/components/select.js.map +1 -1
  28. package/dist/components/tabs.js +40 -0
  29. package/dist/components/tabs.js.map +1 -0
  30. package/dist/components/textarea.js +1 -0
  31. package/dist/components/textarea.js.map +1 -1
  32. package/dist/components/time-input-native.js +1 -0
  33. package/dist/components/time-input-native.js.map +1 -1
  34. package/dist/hooks/use-field-focus.js +1 -0
  35. package/dist/hooks/use-field-focus.js.map +1 -1
  36. package/dist/hooks/use-mobile.js +1 -0
  37. package/dist/hooks/use-mobile.js.map +1 -1
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.js +1 -0
  40. package/dist/index.js.map +1 -1
  41. package/package.json +8 -2
  42. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -118
  43. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +0 -1
  44. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -77
  45. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +0 -1
  46. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -190
  47. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +0 -1
  48. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -46
  49. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +0 -1
  50. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -15
  51. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +0 -1
  52. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -7
  53. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +0 -1
  54. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -7
  55. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +0 -1
  56. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -14
  57. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +0 -1
  58. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -15
  59. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +0 -1
  60. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -7
  61. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +0 -1
  62. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -18
  63. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +0 -1
  64. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -11
  65. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +0 -1
  66. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -10
  67. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +0 -1
  68. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
  69. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +0 -1
  70. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  71. package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +0 -1
  72. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -586
  73. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +0 -1
  74. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -51
  75. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +0 -1
  76. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -130
  77. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +0 -1
  78. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -42
  79. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +0 -1
  80. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -31
  81. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +0 -1
  82. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -285
  83. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +0 -1
  84. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -51
  85. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +0 -1
  86. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -38
  87. package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +0 -1
  88. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -71
  89. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +0 -1
  90. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -41
  91. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +0 -1
  92. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
  93. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +0 -1
  94. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -49
  95. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +0 -1
  96. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
  97. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +0 -1
  98. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
  99. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +0 -1
  100. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -138
  101. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +0 -1
  102. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
  103. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +0 -1
  104. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -16
  105. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +0 -1
  106. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -77
  107. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +0 -1
  108. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -50
  109. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +0 -1
  110. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -113
  111. package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +0 -1
  112. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  113. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +0 -1
  114. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -52
  115. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +0 -1
  116. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -166
  117. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +0 -1
  118. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -81
  119. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +0 -1
  120. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -59
  121. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +0 -1
  122. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -46
  123. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +0 -1
  124. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -14
  125. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +0 -1
  126. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -8
  127. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +0 -1
  128. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -19
  129. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +0 -1
  130. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -28
  131. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +0 -1
  132. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -37
  133. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +0 -1
  134. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -31
  135. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +0 -1
  136. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -12
  137. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +0 -1
  138. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -59
  139. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +0 -1
  140. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  141. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +0 -1
  142. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -34
  143. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +0 -1
  144. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -26
  145. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +0 -1
  146. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -12
  147. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +0 -1
  148. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
  149. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +0 -1
  150. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
  151. package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +0 -1
  152. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -7
  153. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +0 -1
  154. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  155. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +0 -1
  156. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -8
  157. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +0 -1
  158. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -49
  159. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +0 -1
  160. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -61
  161. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +0 -1
  162. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -20
  163. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +0 -1
  164. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -8
  165. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +0 -1
  166. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -200
  167. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +0 -1
  168. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -386
  169. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +0 -1
  170. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -181
  171. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +0 -1
  172. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -88
  173. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +0 -1
  174. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -12
  175. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +0 -1
  176. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -18
  177. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +0 -1
  178. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -88
  179. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +0 -1
  180. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -52
  181. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +0 -1
  182. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -331
  183. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +0 -1
  184. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -18
  185. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +0 -1
  186. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -20
  187. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +0 -1
  188. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  189. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +0 -1
  190. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -10
  191. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +0 -1
  192. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -106
  193. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +0 -1
  194. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -109
  195. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +0 -1
  196. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -60
  197. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +0 -1
  198. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -27
  199. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +0 -1
  200. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -142
  201. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +0 -1
  202. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -148
  203. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +0 -1
  204. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -12
  205. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +0 -1
  206. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -10
  207. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +0 -1
  208. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -13
  209. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +0 -1
  210. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  211. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +0 -1
  212. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -8
  213. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +0 -1
  214. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -16
  215. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +0 -1
  216. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -31
  217. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +0 -1
  218. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -47
  219. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +0 -1
  220. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -7
  221. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +0 -1
  222. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
  223. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +0 -1
  224. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  225. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +0 -1
  226. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -16
  227. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +0 -1
  228. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -44
  229. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +0 -1
  230. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -43
  231. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +0 -1
  232. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -41
  233. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +0 -1
  234. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -14
  235. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +0 -1
  236. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -31
  237. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +0 -1
  238. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -27
  239. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +0 -1
  240. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -27
  241. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +0 -1
  242. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -7
  243. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +0 -1
  244. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -19
  245. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +0 -1
  246. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -15
  247. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +0 -1
  248. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  249. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +0 -1
  250. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -29
  251. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +0 -1
  252. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -16
  253. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +0 -1
  254. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -29
  255. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +0 -1
  256. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -55
  257. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +0 -1
  258. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -13
  259. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +0 -1
  260. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -16
  261. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +0 -1
  262. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -13
  263. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +0 -1
  264. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
  265. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +0 -1
  266. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -21
  267. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +0 -1
  268. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -7
  269. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +0 -1
  270. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -73
  271. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +0 -1
  272. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -7
  273. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +0 -1
  274. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -7
  275. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +0 -1
  276. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -13
  277. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +0 -1
  278. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -84
  279. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +0 -1
  280. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -32
  281. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +0 -1
  282. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -10
  283. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +0 -1
  284. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -29
  285. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +0 -1
  286. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -70
  287. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +0 -1
  288. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -97
  289. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +0 -1
  290. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -34
  291. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +0 -1
  292. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -39
  293. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +0 -1
  294. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  295. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +0 -1
  296. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -21
  297. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +0 -1
  298. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -19
  299. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +0 -1
  300. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -16
  301. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +0 -1
  302. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -69
  303. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +0 -1
  304. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -34
  305. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +0 -1
  306. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -32
  307. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +0 -1
  308. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -125
  309. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +0 -1
  310. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -59
  311. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +0 -1
  312. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -55
  313. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +0 -1
  314. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  315. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +0 -1
  316. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -32
  317. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +0 -1
  318. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -14
  319. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +0 -1
  320. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -28
  321. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +0 -1
  322. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -1660
  323. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +0 -1
  324. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -20
  325. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +0 -1
  326. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -85
  327. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +0 -1
  328. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -42
  329. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +0 -1
  330. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -36
  331. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +0 -1
  332. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -18
  333. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +0 -1
  334. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -53
  335. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +0 -1
  336. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  337. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +0 -1
  338. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  339. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +0 -1
  340. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -25
  341. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +0 -1
  342. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -27
  343. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +0 -1
  344. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -18
  345. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +0 -1
  346. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -15
  347. package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +0 -1
  348. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -564
  349. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +0 -1
  350. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -43
  351. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +0 -1
  352. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  353. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +0 -1
  354. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -84
  355. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +0 -1
  356. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -10
  357. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +0 -1
  358. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  359. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +0 -1
  360. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -55
  361. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +0 -1
  362. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -66
  363. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +0 -1
  364. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -72
  365. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +0 -1
  366. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -18
  367. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +0 -1
  368. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -22
  369. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +0 -1
  370. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  371. package/dist/node_modules/motion-dom/dist/es/render/store.js.map +0 -1
  372. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -52
  373. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +0 -1
  374. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -64
  375. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +0 -1
  376. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -31
  377. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +0 -1
  378. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  379. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +0 -1
  380. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -32
  381. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +0 -1
  382. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -13
  383. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +0 -1
  384. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -20
  385. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +0 -1
  386. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -387
  387. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +0 -1
  388. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -33
  389. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +0 -1
  390. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -8
  391. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +0 -1
  392. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -14
  393. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +0 -1
  394. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -12
  395. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +0 -1
  396. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -6
  397. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +0 -1
  398. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -9
  399. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +0 -1
  400. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -14
  401. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +0 -1
  402. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -36
  403. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +0 -1
  404. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -56
  405. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +0 -1
  406. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -20
  407. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +0 -1
  408. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -6
  409. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +0 -1
  410. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
  411. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +0 -1
  412. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -37
  413. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +0 -1
  414. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -32
  415. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +0 -1
  416. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -15
  417. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +0 -1
  418. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  419. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +0 -1
  420. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -64
  421. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +0 -1
  422. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -32
  423. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +0 -1
  424. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -9
  425. package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +0 -1
  426. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +0 -15
  427. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +0 -1
  428. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -21
  429. package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +0 -1
  430. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -80
  431. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +0 -1
  432. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -14
  433. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +0 -1
  434. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -12
  435. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +0 -1
  436. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -12
  437. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +0 -1
  438. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -48
  439. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +0 -1
  440. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -94
  441. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +0 -1
  442. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  443. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +0 -1
  444. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -15
  445. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +0 -1
  446. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -27
  447. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +0 -1
  448. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -17
  449. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +0 -1
  450. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -18
  451. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +0 -1
  452. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -8
  453. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +0 -1
  454. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -16
  455. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +0 -1
  456. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -10
  457. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +0 -1
  458. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -6
  459. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +0 -1
  460. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -320
  461. package/dist/node_modules/motion-dom/dist/es/value/index.js.map +0 -1
  462. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -10
  463. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +0 -1
  464. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -41
  465. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +0 -1
  466. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -43
  467. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +0 -1
  468. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -23
  469. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +0 -1
  470. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -33
  471. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +0 -1
  472. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -26
  473. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +0 -1
  474. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -30
  475. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +0 -1
  476. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -31
  477. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +0 -1
  478. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -114
  479. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +0 -1
  480. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -13
  481. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +0 -1
  482. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -16
  483. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +0 -1
  484. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -9
  485. package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +0 -1
  486. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -34
  487. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +0 -1
  488. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -71
  489. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +0 -1
  490. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -38
  491. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +0 -1
  492. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -18
  493. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +0 -1
  494. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -19
  495. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +0 -1
  496. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -7
  497. package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +0 -1
  498. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -18
  499. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +0 -1
  500. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  501. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +0 -1
  502. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -16
  503. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +0 -1
  504. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  505. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +0 -1
  506. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -11
  507. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +0 -1
  508. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  509. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +0 -1
  510. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -6
  511. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +0 -1
  512. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  513. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +0 -1
  514. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  515. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +0 -1
  516. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -11
  517. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +0 -1
  518. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -21
  519. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +0 -1
  520. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -8
  521. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +0 -1
  522. package/dist/node_modules/motion-utils/dist/es/array.js +0 -12
  523. package/dist/node_modules/motion-utils/dist/es/array.js.map +0 -1
  524. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -10
  525. package/dist/node_modules/motion-utils/dist/es/clamp.js.map +0 -1
  526. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -10
  527. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +0 -1
  528. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -10
  529. package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +0 -1
  530. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -9
  531. package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +0 -1
  532. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -53
  533. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +0 -1
  534. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -8
  535. package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +0 -1
  536. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -7
  537. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +0 -1
  538. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -7
  539. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +0 -1
  540. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -5
  541. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +0 -1
  542. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -7
  543. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +0 -1
  544. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -42
  545. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +0 -1
  546. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -20
  547. package/dist/node_modules/motion-utils/dist/es/errors.js.map +0 -1
  548. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -8
  549. package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +0 -1
  550. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  551. package/dist/node_modules/motion-utils/dist/es/global-config.js.map +0 -1
  552. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -7
  553. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +0 -1
  554. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
  555. package/dist/node_modules/motion-utils/dist/es/is-object.js.map +0 -1
  556. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -7
  557. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +0 -1
  558. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -12
  559. package/dist/node_modules/motion-utils/dist/es/memo.js.map +0 -1
  560. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
  561. package/dist/node_modules/motion-utils/dist/es/noop.js.map +0 -1
  562. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -11
  563. package/dist/node_modules/motion-utils/dist/es/pipe.js.map +0 -1
  564. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -15
  565. package/dist/node_modules/motion-utils/dist/es/progress.js.map +0 -1
  566. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -41
  567. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +0 -1
  568. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -13
  569. package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +0 -1
  570. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -8
  571. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +0 -1
  572. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -12
  573. package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"VisualElementDragControls.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs"],"sourcesContent":["import { createBox, frame, eachAxis, measurePageBox, convertBoxToBoundingBox, convertBoundingBoxToBox, addValueToWillChange, animateMotionValue, mixNumber, addDomEvent, setDragLock, percent, calcLength, resize, isElementTextInput } from 'motion-dom';\nimport { invariant } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { PanSession } from '../pan/PanSession.mjs';\nimport { applyConstraints, calcRelativeConstraints, resolveDragElastic, rebaseAxisConstraints, calcViewportConstraints, calcOrigin, defaultElastic } from './utils/constraints.mjs';\n\nconst elementDragControls = new WeakMap();\nclass VisualElementDragControls {\n constructor(visualElement) {\n this.openDragLock = null;\n this.isDragging = false;\n this.currentDirection = null;\n this.originPoint = { x: 0, y: 0 };\n /**\n * The permitted boundaries of travel, in pixels.\n */\n this.constraints = false;\n this.hasMutatedConstraints = false;\n /**\n * The per-axis resolved elastic values.\n */\n this.elastic = createBox();\n /**\n * The latest pointer event. Used as fallback when the `cancel` and `stop` functions are called without arguments.\n */\n this.latestPointerEvent = null;\n /**\n * The latest pan info. Used as fallback when the `cancel` and `stop` functions are called without arguments.\n */\n this.latestPanInfo = null;\n this.visualElement = visualElement;\n }\n start(originEvent, { snapToCursor = false, distanceThreshold } = {}) {\n /**\n * Don't start dragging if this component is exiting\n */\n const { presenceContext } = this.visualElement;\n if (presenceContext && presenceContext.isPresent === false)\n return;\n const onSessionStart = (event) => {\n if (snapToCursor) {\n this.snapToCursor(extractEventInfo(event).point);\n }\n this.stopAnimation();\n };\n const onStart = (event, info) => {\n // Attempt to grab the global drag gesture lock - maybe make this part of PanSession\n const { drag, dragPropagation, onDragStart } = this.getProps();\n if (drag && !dragPropagation) {\n if (this.openDragLock)\n this.openDragLock();\n this.openDragLock = setDragLock(drag);\n // If we don 't have the lock, don't start dragging\n if (!this.openDragLock)\n return;\n }\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n this.isDragging = true;\n this.currentDirection = null;\n this.resolveConstraints();\n if (this.visualElement.projection) {\n this.visualElement.projection.isAnimationBlocked = true;\n this.visualElement.projection.target = undefined;\n }\n /**\n * Record gesture origin and pointer offset\n */\n eachAxis((axis) => {\n let current = this.getAxisMotionValue(axis).get() || 0;\n /**\n * If the MotionValue is a percentage value convert to px\n */\n if (percent.test(current)) {\n const { projection } = this.visualElement;\n if (projection && projection.layout) {\n const measuredAxis = projection.layout.layoutBox[axis];\n if (measuredAxis) {\n const length = calcLength(measuredAxis);\n current = length * (parseFloat(current) / 100);\n }\n }\n }\n this.originPoint[axis] = current;\n });\n // Fire onDragStart event\n if (onDragStart) {\n frame.update(() => onDragStart(event, info), false, true);\n }\n addValueToWillChange(this.visualElement, \"transform\");\n const { animationState } = this.visualElement;\n animationState && animationState.setActive(\"whileDrag\", true);\n };\n const onMove = (event, info) => {\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag, } = this.getProps();\n // If we didn't successfully receive the gesture lock, early return.\n if (!dragPropagation && !this.openDragLock)\n return;\n const { offset } = info;\n // Attempt to detect drag direction if directionLock is true\n if (dragDirectionLock && this.currentDirection === null) {\n this.currentDirection = getCurrentDirection(offset);\n // If we've successfully set a direction, notify listener\n if (this.currentDirection !== null) {\n onDirectionLock && onDirectionLock(this.currentDirection);\n }\n return;\n }\n // Update each point with the latest position\n this.updateAxis(\"x\", info.point, offset);\n this.updateAxis(\"y\", info.point, offset);\n /**\n * Ideally we would leave the renderer to fire naturally at the end of\n * this frame but if the element is about to change layout as the result\n * of a re-render we want to ensure the browser can read the latest\n * bounding box to ensure the pointer and element don't fall out of sync.\n */\n this.visualElement.render();\n /**\n * This must fire after the render call as it might trigger a state\n * change which itself might trigger a layout update.\n */\n if (onDrag) {\n frame.update(() => onDrag(event, info), false, true);\n }\n };\n const onSessionEnd = (event, info) => {\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n this.stop(event, info);\n this.latestPointerEvent = null;\n this.latestPanInfo = null;\n };\n const resumeAnimation = () => {\n const { dragSnapToOrigin: snap } = this.getProps();\n if (snap || this.constraints) {\n this.startAnimation({ x: 0, y: 0 });\n }\n };\n const { dragSnapToOrigin } = this.getProps();\n this.panSession = new PanSession(originEvent, {\n onSessionStart,\n onStart,\n onMove,\n onSessionEnd,\n resumeAnimation,\n }, {\n transformPagePoint: this.visualElement.getTransformPagePoint(),\n dragSnapToOrigin,\n distanceThreshold,\n contextWindow: getContextWindow(this.visualElement),\n element: this.visualElement.current,\n });\n }\n /**\n * @internal\n */\n stop(event, panInfo) {\n const finalEvent = event || this.latestPointerEvent;\n const finalPanInfo = panInfo || this.latestPanInfo;\n const isDragging = this.isDragging;\n this.cancel();\n if (!isDragging || !finalPanInfo || !finalEvent)\n return;\n const { velocity } = finalPanInfo;\n this.startAnimation(velocity);\n const { onDragEnd } = this.getProps();\n if (onDragEnd) {\n frame.postRender(() => onDragEnd(finalEvent, finalPanInfo));\n }\n }\n /**\n * @internal\n */\n cancel() {\n this.isDragging = false;\n const { projection, animationState } = this.visualElement;\n if (projection) {\n projection.isAnimationBlocked = false;\n }\n this.endPanSession();\n const { dragPropagation } = this.getProps();\n if (!dragPropagation && this.openDragLock) {\n this.openDragLock();\n this.openDragLock = null;\n }\n animationState && animationState.setActive(\"whileDrag\", false);\n }\n /**\n * Clean up the pan session without modifying other drag state.\n * This is used during unmount to ensure event listeners are removed\n * without affecting projection animations or drag locks.\n * @internal\n */\n endPanSession() {\n this.panSession && this.panSession.end();\n this.panSession = undefined;\n }\n updateAxis(axis, _point, offset) {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!offset || !shouldDrag(axis, drag, this.currentDirection))\n return;\n const axisValue = this.getAxisMotionValue(axis);\n let next = this.originPoint[axis] + offset[axis];\n // Apply constraints\n if (this.constraints && this.constraints[axis]) {\n next = applyConstraints(next, this.constraints[axis], this.elastic[axis]);\n }\n axisValue.set(next);\n }\n resolveConstraints() {\n const { dragConstraints, dragElastic } = this.getProps();\n const layout = this.visualElement.projection &&\n !this.visualElement.projection.layout\n ? this.visualElement.projection.measure(false)\n : this.visualElement.projection?.layout;\n const prevConstraints = this.constraints;\n if (dragConstraints && isRefObject(dragConstraints)) {\n if (!this.constraints) {\n this.constraints = this.resolveRefConstraints();\n }\n }\n else {\n if (dragConstraints && layout) {\n this.constraints = calcRelativeConstraints(layout.layoutBox, dragConstraints);\n }\n else {\n this.constraints = false;\n }\n }\n this.elastic = resolveDragElastic(dragElastic);\n /**\n * If we're outputting to external MotionValues, we want to rebase the measured constraints\n * from viewport-relative to component-relative. This only applies to relative (non-ref)\n * constraints, as ref-based constraints from calcViewportConstraints are already in the\n * correct coordinate space for the motion value transform offset.\n */\n if (prevConstraints !== this.constraints &&\n !isRefObject(dragConstraints) &&\n layout &&\n this.constraints &&\n !this.hasMutatedConstraints) {\n eachAxis((axis) => {\n if (this.constraints !== false &&\n this.getAxisMotionValue(axis)) {\n this.constraints[axis] = rebaseAxisConstraints(layout.layoutBox[axis], this.constraints[axis]);\n }\n });\n }\n }\n resolveRefConstraints() {\n const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();\n if (!constraints || !isRefObject(constraints))\n return false;\n const constraintsElement = constraints.current;\n invariant(constraintsElement !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\", \"drag-constraints-ref\");\n const { projection } = this.visualElement;\n // TODO\n if (!projection || !projection.layout)\n return false;\n /**\n * Refresh the root scroll offset so the constraint's viewport box\n * translates to correct page coordinates. The scroll captured at\n * drag mount can be stale if the document was scrolled afterwards —\n * e.g. via the browser restoring scroll on refresh, or an ancestor\n * layout effect running after this element's mount (#2829).\n *\n * Clear the cached scroll first so `updateScroll` bypasses its\n * per-animationId cache and re-reads the live value.\n */\n if (projection.root) {\n projection.root.scroll = undefined;\n projection.root.updateScroll();\n }\n const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());\n let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);\n /**\n * If there's an onMeasureDragConstraints listener we call it and\n * if different constraints are returned, set constraints to that\n */\n if (onMeasureDragConstraints) {\n const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));\n this.hasMutatedConstraints = !!userConstraints;\n if (userConstraints) {\n measuredConstraints = convertBoundingBoxToBox(userConstraints);\n }\n }\n return measuredConstraints;\n }\n startAnimation(velocity) {\n const { drag, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd, } = this.getProps();\n const constraints = this.constraints || {};\n const momentumAnimations = eachAxis((axis) => {\n if (!shouldDrag(axis, drag, this.currentDirection)) {\n return;\n }\n let transition = (constraints && constraints[axis]) || {};\n if (dragSnapToOrigin === true ||\n dragSnapToOrigin === axis)\n transition = { min: 0, max: 0 };\n /**\n * Overdamp the boundary spring if `dragElastic` is disabled. There's still a frame\n * of spring animations so we should look into adding a disable spring option to `inertia`.\n * We could do something here where we affect the `bounceStiffness` and `bounceDamping`\n * using the value of `dragElastic`.\n */\n const bounceStiffness = dragElastic ? 200 : 1000000;\n const bounceDamping = dragElastic ? 40 : 10000000;\n const inertia = {\n type: \"inertia\",\n velocity: dragMomentum ? velocity[axis] : 0,\n bounceStiffness,\n bounceDamping,\n timeConstant: 750,\n restDelta: 1,\n restSpeed: 10,\n ...dragTransition,\n ...transition,\n };\n // If we're not animating on an externally-provided `MotionValue` we can use the\n // component's animation controls which will handle interactions with whileHover (etc),\n // otherwise we just have to animate the `MotionValue` itself.\n return this.startAxisValueAnimation(axis, inertia);\n });\n // Run all animations and then resolve the new drag constraints.\n return Promise.all(momentumAnimations).then(onDragTransitionEnd);\n }\n startAxisValueAnimation(axis, transition) {\n const axisValue = this.getAxisMotionValue(axis);\n addValueToWillChange(this.visualElement, axis);\n return axisValue.start(animateMotionValue(axis, axisValue, 0, transition, this.visualElement, false));\n }\n stopAnimation() {\n eachAxis((axis) => this.getAxisMotionValue(axis).stop());\n }\n /**\n * Drag works differently depending on which props are provided.\n *\n * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n * - Otherwise, we apply the delta to the x/y motion values.\n */\n getAxisMotionValue(axis) {\n const dragKey = `_drag${axis.toUpperCase()}`;\n const props = this.visualElement.getProps();\n const externalMotionValue = props[dragKey];\n return externalMotionValue\n ? externalMotionValue\n : this.visualElement.getValue(axis, this.visualElement.latestValues[axis] ?? 0);\n }\n snapToCursor(point) {\n eachAxis((axis) => {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!shouldDrag(axis, drag, this.currentDirection))\n return;\n const { projection } = this.visualElement;\n const axisValue = this.getAxisMotionValue(axis);\n if (projection && projection.layout) {\n const { min, max } = projection.layout.layoutBox[axis];\n /**\n * The layout measurement includes the current transform value,\n * so we need to add it back to get the correct snap position.\n * This fixes an issue where elements with initial coordinates\n * would snap to the wrong position on the first drag.\n */\n const current = axisValue.get() || 0;\n axisValue.set(point[axis] - mixNumber(min, max, 0.5) + current);\n }\n });\n }\n /**\n * When the viewport resizes we want to check if the measured constraints\n * have changed and, if so, reposition the element within those new constraints\n * relative to where it was before the resize.\n */\n scalePositionWithinConstraints() {\n if (!this.visualElement.current)\n return;\n const { drag, dragConstraints } = this.getProps();\n const { projection } = this.visualElement;\n if (!isRefObject(dragConstraints) || !projection || !this.constraints)\n return;\n /**\n * Stop current animations as there can be visual glitching if we try to do\n * this mid-animation\n */\n this.stopAnimation();\n /**\n * Record the relative position of the dragged element relative to the\n * constraints box and save as a progress value.\n */\n const boxProgress = { x: 0, y: 0 };\n eachAxis((axis) => {\n const axisValue = this.getAxisMotionValue(axis);\n if (axisValue && this.constraints !== false) {\n const latest = axisValue.get();\n boxProgress[axis] = calcOrigin({ min: latest, max: latest }, this.constraints[axis]);\n }\n });\n /**\n * Update the layout of this element and resolve the latest drag constraints\n */\n const { transformTemplate } = this.visualElement.getProps();\n this.visualElement.current.style.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n /**\n * Reset constraints so resolveConstraints() will recalculate them\n * with the freshly measured layout rather than returning the cached value.\n */\n this.constraints = false;\n this.resolveConstraints();\n /**\n * For each axis, calculate the current progress of the layout axis\n * within the new constraints.\n */\n eachAxis((axis) => {\n if (!shouldDrag(axis, drag, null))\n return;\n /**\n * Calculate a new transform based on the previous box progress\n */\n const axisValue = this.getAxisMotionValue(axis);\n const { min, max } = this.constraints[axis];\n axisValue.set(mixNumber(min, max, boxProgress[axis]));\n });\n /**\n * Flush the updated transform to the DOM synchronously to prevent\n * a visual flash at the element's CSS layout position (0,0) when\n * the transform was stripped for measurement.\n */\n this.visualElement.render();\n }\n addListeners() {\n if (!this.visualElement.current)\n return;\n elementDragControls.set(this.visualElement, this);\n const element = this.visualElement.current;\n /**\n * Attach a pointerdown event listener on this DOM element to initiate drag tracking.\n */\n const stopPointerListener = addPointerEvent(element, \"pointerdown\", (event) => {\n const { drag, dragListener = true } = this.getProps();\n const target = event.target;\n /**\n * Only block drag if clicking on a text input child element\n * (input, textarea, select, contenteditable) where users might\n * want to select text or interact with the control.\n *\n * Buttons and links don't block drag since they don't have\n * click-and-move actions of their own.\n */\n const isClickingTextInputChild = target !== element && isElementTextInput(target);\n if (drag && dragListener && !isClickingTextInputChild) {\n this.start(event);\n }\n });\n /**\n * If using ref-based constraints, observe both the draggable element\n * and the constraint container for size changes via ResizeObserver.\n * Setup is deferred because dragConstraints.current is null when\n * addListeners first runs (React hasn't committed the ref yet).\n */\n let stopResizeObservers;\n const measureDragConstraints = () => {\n const { dragConstraints } = this.getProps();\n if (isRefObject(dragConstraints) && dragConstraints.current) {\n this.constraints = this.resolveRefConstraints();\n if (!stopResizeObservers) {\n stopResizeObservers = startResizeObservers(element, dragConstraints.current, () => this.scalePositionWithinConstraints());\n }\n }\n };\n const { projection } = this.visualElement;\n const stopMeasureLayoutListener = projection.addEventListener(\"measure\", measureDragConstraints);\n if (projection && !projection.layout) {\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n }\n frame.read(measureDragConstraints);\n /**\n * Attach a window resize listener to scale the draggable target within its defined\n * constraints as the window resizes.\n */\n const stopResizeListener = addDomEvent(window, \"resize\", () => this.scalePositionWithinConstraints());\n /**\n * If the element's layout changes, calculate the delta and apply that to\n * the drag gesture's origin point.\n */\n const stopLayoutUpdateListener = projection.addEventListener(\"didUpdate\", (({ delta, hasLayoutChanged }) => {\n if (this.isDragging && hasLayoutChanged) {\n eachAxis((axis) => {\n const motionValue = this.getAxisMotionValue(axis);\n if (!motionValue)\n return;\n this.originPoint[axis] += delta[axis].translate;\n motionValue.set(motionValue.get() + delta[axis].translate);\n });\n this.visualElement.render();\n }\n }));\n return () => {\n stopResizeListener();\n stopPointerListener();\n stopMeasureLayoutListener();\n stopLayoutUpdateListener && stopLayoutUpdateListener();\n stopResizeObservers && stopResizeObservers();\n };\n }\n getProps() {\n const props = this.visualElement.getProps();\n const { drag = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true, } = props;\n return {\n ...props,\n drag,\n dragDirectionLock,\n dragPropagation,\n dragConstraints,\n dragElastic,\n dragMomentum,\n };\n }\n}\nfunction skipFirstCall(callback) {\n let isFirst = true;\n return () => {\n if (isFirst) {\n isFirst = false;\n return;\n }\n callback();\n };\n}\nfunction startResizeObservers(element, constraintsElement, onResize) {\n const stopElement = resize(element, skipFirstCall(onResize));\n const stopContainer = resize(constraintsElement, skipFirstCall(onResize));\n return () => {\n stopElement();\n stopContainer();\n };\n}\nfunction shouldDrag(direction, drag, currentDirection) {\n return ((drag === true || drag === direction) &&\n (currentDirection === null || currentDirection === direction));\n}\n/**\n * Based on an x/y offset determine the current drag direction. If both axis' offsets are lower\n * than the provided threshold, return `null`.\n *\n * @param offset - The x/y offset from origin.\n * @param lockThreshold - (Optional) - the minimum absolute offset before we can determine a drag direction.\n */\nfunction getCurrentDirection(offset, lockThreshold = 10) {\n let direction = null;\n if (Math.abs(offset.y) > lockThreshold) {\n direction = \"y\";\n }\n else if (Math.abs(offset.x) > lockThreshold) {\n direction = \"x\";\n }\n return direction;\n}\n\nexport { VisualElementDragControls, elementDragControls };\n//# sourceMappingURL=VisualElementDragControls.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASK,MAAC,mBAAmB,GAAG,IAAI,OAAO;AACvC,MAAM,yBAAyB,CAAC;AAChC,IAAI,WAAW,CAAC,aAAa,EAAE;AAC/B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI;AAChC,QAAQ,IAAI,CAAC,UAAU,GAAG,KAAK;AAC/B,QAAQ,IAAI,CAAC,gBAAgB,GAAG,IAAI;AACpC,QAAQ,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC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AAE,QAAQ,EAAE;AACrE,IAAI,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChE,IAAI,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC7E,IAAI,OAAO,MAAM;AACjB,QAAQ,WAAW,EAAE;AACrB,QAAQ,aAAa,EAAE;AACvB,IAAI,CAAC;AACL;AACA,SAAS,UAAU,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE;AACvD,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS;AAChD,SAAS,gBAAgB,KAAK,IAAI,IAAI,gBAAgB,KAAK,SAAS,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,EAAE,EAAE;AACzD,IAAI,IAAI,SAAS,GAAG,IAAI;AACxB,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,aAAa,EAAE;AAC5C,QAAQ,SAAS,GAAG,GAAG;AACvB,IAAI;AACJ,SAAS,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,aAAa,EAAE;AACjD,QAAQ,SAAS,GAAG,GAAG;AACvB,IAAI;AACJ,IAAI,OAAO,SAAS;AACpB;;;;","x_google_ignoreList":[0]}
@@ -1,51 +0,0 @@
1
- import { VisualElementDragControls } from './VisualElementDragControls.js';
2
- import { Feature } from '../../../../../motion-dom/dist/es/render/Feature.js';
3
- import { noop } from '../../../../../motion-utils/dist/es/noop.js';
4
-
5
- class DragGesture extends Feature {
6
- constructor(node) {
7
- super(node);
8
- this.removeGroupControls = noop;
9
- this.removeListeners = noop;
10
- this.controls = new VisualElementDragControls(node);
11
- }
12
- mount() {
13
- // If we've been provided a DragControls for manual control over the drag gesture,
14
- // subscribe this component to it on mount.
15
- const { dragControls } = this.node.getProps();
16
- if (dragControls) {
17
- this.removeGroupControls = dragControls.subscribe(this.controls);
18
- }
19
- this.removeListeners = this.controls.addListeners() || noop;
20
- }
21
- update() {
22
- const { dragControls } = this.node.getProps();
23
- const { dragControls: prevDragControls } = this.node.prevProps || {};
24
- if (dragControls !== prevDragControls) {
25
- this.removeGroupControls();
26
- if (dragControls) {
27
- this.removeGroupControls = dragControls.subscribe(this.controls);
28
- }
29
- }
30
- }
31
- unmount() {
32
- this.removeGroupControls();
33
- this.removeListeners();
34
- /**
35
- * In React 19, during list reorder reconciliation, components may
36
- * briefly unmount and remount while the drag is still active. If we're
37
- * actively dragging, we should NOT end the pan session - it will
38
- * continue tracking pointer events via its window-level listeners.
39
- *
40
- * The pan session will be properly cleaned up when:
41
- * 1. The drag ends naturally (pointerup/pointercancel)
42
- * 2. The component is truly removed from the DOM
43
- */
44
- if (!this.controls.isDragging) {
45
- this.controls.endPanSession();
46
- }
47
- }
48
- }
49
-
50
- export { DragGesture };
51
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs"],"sourcesContent":["import { Feature } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { VisualElementDragControls } from './VisualElementDragControls.mjs';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n update() {\n const { dragControls } = this.node.getProps();\n const { dragControls: prevDragControls } = this.node.prevProps || {};\n if (dragControls !== prevDragControls) {\n this.removeGroupControls();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n }\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n /**\n * In React 19, during list reorder reconciliation, components may\n * briefly unmount and remount while the drag is still active. If we're\n * actively dragging, we should NOT end the pan session - it will\n * continue tracking pointer events via its window-level listeners.\n *\n * The pan session will be properly cleaned up when:\n * 1. The drag ends naturally (pointerup/pointercancel)\n * 2. The component is truly removed from the DOM\n */\n if (!this.controls.isDragging) {\n this.controls.endPanSession();\n }\n }\n}\n\nexport { DragGesture };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;AAIA,MAAM,WAAW,SAAS,OAAO,CAAC;AAClC,IAAI,WAAW,CAAC,IAAI,EAAE;AACtB,QAAQ,KAAK,CAAC,IAAI,CAAC;AACnB,QAAQ,IAAI,CAAC,mBAAmB,GAAG,IAAI;AACvC,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI;AACnC,QAAQ,IAAI,CAAC,QAAQ,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC;AAC3D,IAAI;AACJ,IAAI,KAAK,GAAG;AACZ;AACA;AACA,QAAQ,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AACrD,QAAQ,IAAI,YAAY,EAAE;AAC1B,YAAY,IAAI,CAAC,mBAAmB,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC5E,QAAQ;AACR,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,IAAI;AACnE,IAAI;AACJ,IAAI,MAAM,GAAG;AACb,QAAQ,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AACrD,QAAQ,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE;AAC5E,QAAQ,IAAI,YAAY,KAAK,gBAAgB,EAAE;AAC/C,YAAY,IAAI,CAAC,mBAAmB,EAAE;AACtC,YAAY,IAAI,YAAY,EAAE;AAC9B,gBAAgB,IAAI,CAAC,mBAAmB,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;AAChF,YAAY;AACZ,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,mBAAmB,EAAE;AAClC,QAAQ,IAAI,CAAC,eAAe,EAAE;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;AACvC,YAAY,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE;AACzC,QAAQ;AACR,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,130 +0,0 @@
1
- import { mixNumber } from '../../../../../../motion-dom/dist/es/utils/mix/number.js';
2
- import { calcLength } from '../../../../../../motion-dom/dist/es/projection/geometry/delta-calc.js';
3
- import { progress } from '../../../../../../motion-utils/dist/es/progress.js';
4
- import { clamp } from '../../../../../../motion-utils/dist/es/clamp.js';
5
-
6
- /**
7
- * Apply constraints to a point. These constraints are both physical along an
8
- * axis, and an elastic factor that determines how much to constrain the point
9
- * by if it does lie outside the defined parameters.
10
- */
11
- function applyConstraints(point, { min, max }, elastic) {
12
- if (min !== undefined && point < min) {
13
- // If we have a min point defined, and this is outside of that, constrain
14
- point = elastic
15
- ? mixNumber(min, point, elastic.min)
16
- : Math.max(point, min);
17
- }
18
- else if (max !== undefined && point > max) {
19
- // If we have a max point defined, and this is outside of that, constrain
20
- point = elastic
21
- ? mixNumber(max, point, elastic.max)
22
- : Math.min(point, max);
23
- }
24
- return point;
25
- }
26
- /**
27
- * Calculate constraints in terms of the viewport when defined relatively to the
28
- * measured axis. This is measured from the nearest edge, so a max constraint of 200
29
- * on an axis with a max value of 300 would return a constraint of 500 - axis length
30
- */
31
- function calcRelativeAxisConstraints(axis, min, max) {
32
- return {
33
- min: min !== undefined ? axis.min + min : undefined,
34
- max: max !== undefined
35
- ? axis.max + max - (axis.max - axis.min)
36
- : undefined,
37
- };
38
- }
39
- /**
40
- * Calculate constraints in terms of the viewport when
41
- * defined relatively to the measured bounding box.
42
- */
43
- function calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {
44
- return {
45
- x: calcRelativeAxisConstraints(layoutBox.x, left, right),
46
- y: calcRelativeAxisConstraints(layoutBox.y, top, bottom),
47
- };
48
- }
49
- /**
50
- * Calculate viewport constraints when defined as another viewport-relative axis
51
- */
52
- function calcViewportAxisConstraints(layoutAxis, constraintsAxis) {
53
- let min = constraintsAxis.min - layoutAxis.min;
54
- let max = constraintsAxis.max - layoutAxis.max;
55
- // If the constraints axis is actually smaller than the layout axis then we can
56
- // flip the constraints
57
- if (constraintsAxis.max - constraintsAxis.min <
58
- layoutAxis.max - layoutAxis.min) {
59
- [min, max] = [max, min];
60
- }
61
- return { min, max };
62
- }
63
- /**
64
- * Calculate viewport constraints when defined as another viewport-relative box
65
- */
66
- function calcViewportConstraints(layoutBox, constraintsBox) {
67
- return {
68
- x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),
69
- y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y),
70
- };
71
- }
72
- /**
73
- * Calculate a transform origin relative to the source axis, between 0-1, that results
74
- * in an asthetically pleasing scale/transform needed to project from source to target.
75
- */
76
- function calcOrigin(source, target) {
77
- let origin = 0.5;
78
- const sourceLength = calcLength(source);
79
- const targetLength = calcLength(target);
80
- if (targetLength > sourceLength) {
81
- origin = progress(target.min, target.max - sourceLength, source.min);
82
- }
83
- else if (sourceLength > targetLength) {
84
- origin = progress(source.min, source.max - targetLength, target.min);
85
- }
86
- return clamp(0, 1, origin);
87
- }
88
- /**
89
- * Rebase the calculated viewport constraints relative to the layout.min point.
90
- */
91
- function rebaseAxisConstraints(layout, constraints) {
92
- const relativeConstraints = {};
93
- if (constraints.min !== undefined) {
94
- relativeConstraints.min = constraints.min - layout.min;
95
- }
96
- if (constraints.max !== undefined) {
97
- relativeConstraints.max = constraints.max - layout.min;
98
- }
99
- return relativeConstraints;
100
- }
101
- const defaultElastic = 0.35;
102
- /**
103
- * Accepts a dragElastic prop and returns resolved elastic values for each axis.
104
- */
105
- function resolveDragElastic(dragElastic = defaultElastic) {
106
- if (dragElastic === false) {
107
- dragElastic = 0;
108
- }
109
- else if (dragElastic === true) {
110
- dragElastic = defaultElastic;
111
- }
112
- return {
113
- x: resolveAxisElastic(dragElastic, "left", "right"),
114
- y: resolveAxisElastic(dragElastic, "top", "bottom"),
115
- };
116
- }
117
- function resolveAxisElastic(dragElastic, minLabel, maxLabel) {
118
- return {
119
- min: resolvePointElastic(dragElastic, minLabel),
120
- max: resolvePointElastic(dragElastic, maxLabel),
121
- };
122
- }
123
- function resolvePointElastic(dragElastic, label) {
124
- return typeof dragElastic === "number"
125
- ? dragElastic
126
- : dragElastic[label] || 0;
127
- }
128
-
129
- export { applyConstraints, calcOrigin, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };
130
- //# sourceMappingURL=constraints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constraints.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs"],"sourcesContent":["import { mixNumber, calcLength } from 'motion-dom';\nimport { progress, clamp } from 'motion-utils';\n\n/**\n * Apply constraints to a point. These constraints are both physical along an\n * axis, and an elastic factor that determines how much to constrain the point\n * by if it does lie outside the defined parameters.\n */\nfunction applyConstraints(point, { min, max }, elastic) {\n if (min !== undefined && point < min) {\n // If we have a min point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(min, point, elastic.min)\n : Math.max(point, min);\n }\n else if (max !== undefined && point > max) {\n // If we have a max point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(max, point, elastic.max)\n : Math.min(point, max);\n }\n return point;\n}\n/**\n * Calculate constraints in terms of the viewport when defined relatively to the\n * measured axis. This is measured from the nearest edge, so a max constraint of 200\n * on an axis with a max value of 300 would return a constraint of 500 - axis length\n */\nfunction calcRelativeAxisConstraints(axis, min, max) {\n return {\n min: min !== undefined ? axis.min + min : undefined,\n max: max !== undefined\n ? axis.max + max - (axis.max - axis.min)\n : undefined,\n };\n}\n/**\n * Calculate constraints in terms of the viewport when\n * defined relatively to the measured bounding box.\n */\nfunction calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {\n return {\n x: calcRelativeAxisConstraints(layoutBox.x, left, right),\n y: calcRelativeAxisConstraints(layoutBox.y, top, bottom),\n };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative axis\n */\nfunction calcViewportAxisConstraints(layoutAxis, constraintsAxis) {\n let min = constraintsAxis.min - layoutAxis.min;\n let max = constraintsAxis.max - layoutAxis.max;\n // If the constraints axis is actually smaller than the layout axis then we can\n // flip the constraints\n if (constraintsAxis.max - constraintsAxis.min <\n layoutAxis.max - layoutAxis.min) {\n [min, max] = [max, min];\n }\n return { min, max };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative box\n */\nfunction calcViewportConstraints(layoutBox, constraintsBox) {\n return {\n x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),\n y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y),\n };\n}\n/**\n * Calculate a transform origin relative to the source axis, between 0-1, that results\n * in an asthetically pleasing scale/transform needed to project from source to target.\n */\nfunction calcOrigin(source, target) {\n let origin = 0.5;\n const sourceLength = calcLength(source);\n const targetLength = calcLength(target);\n if (targetLength > sourceLength) {\n origin = progress(target.min, target.max - sourceLength, source.min);\n }\n else if (sourceLength > targetLength) {\n origin = progress(source.min, source.max - targetLength, target.min);\n }\n return clamp(0, 1, origin);\n}\n/**\n * Rebase the calculated viewport constraints relative to the layout.min point.\n */\nfunction rebaseAxisConstraints(layout, constraints) {\n const relativeConstraints = {};\n if (constraints.min !== undefined) {\n relativeConstraints.min = constraints.min - layout.min;\n }\n if (constraints.max !== undefined) {\n relativeConstraints.max = constraints.max - layout.min;\n }\n return relativeConstraints;\n}\nconst defaultElastic = 0.35;\n/**\n * Accepts a dragElastic prop and returns resolved elastic values for each axis.\n */\nfunction resolveDragElastic(dragElastic = defaultElastic) {\n if (dragElastic === false) {\n dragElastic = 0;\n }\n else if (dragElastic === true) {\n dragElastic = defaultElastic;\n }\n return {\n x: resolveAxisElastic(dragElastic, \"left\", \"right\"),\n y: resolveAxisElastic(dragElastic, \"top\", \"bottom\"),\n };\n}\nfunction resolveAxisElastic(dragElastic, minLabel, maxLabel) {\n return {\n min: resolvePointElastic(dragElastic, minLabel),\n max: resolvePointElastic(dragElastic, maxLabel),\n };\n}\nfunction resolvePointElastic(dragElastic, label) {\n return typeof dragElastic === \"number\"\n ? dragElastic\n : dragElastic[label] || 0;\n}\n\nexport { applyConstraints, calcOrigin, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };\n//# sourceMappingURL=constraints.mjs.map\n"],"names":[],"mappings":";;;;;AAGA;AACA;AACA;AACA;AACA;AACA,SAAS,gBAAgB,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE;AACxD,IAAI,IAAI,GAAG,KAAK,SAAS,IAAI,KAAK,GAAG,GAAG,EAAE;AAC1C;AACA,QAAQ,KAAK,GAAG;AAChB,cAAc,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG;AAC/C,cAAc,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC;AAClC,IAAI;AACJ,SAAS,IAAI,GAAG,KAAK,SAAS,IAAI,KAAK,GAAG,GAAG,EAAE;AAC/C;AACA,QAAQ,KAAK,GAAG;AAChB,cAAc,SAAS,CAAC,GAAG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AG;AAC9D,IAAI;AACJ,IAAI,IAAI,WAAW,CAAC,GAAG,KAAK,SAAS,EAAE;AACvC,QAAQ,mBAAmB,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG;AAC9D,IAAI;AACJ,IAAI,OAAO,mBAAmB;AAC9B;AACK,MAAC,cAAc,GAAG;AACvB;AACA;AACA;AACA,SAAS,kBAAkB,CAAC,WAAW,GAAG,cAAc,EAAE;AAC1D,IAAI,IAAI,WAAW,KAAK,KAAK,EAAE;AAC/B,QAAQ,WAAW,GAAG,CAAC;AACvB,IAAI;AACJ,SAAS,IAAI,WAAW,KAAK,IAAI,EAAE;AACnC,QAAQ,WAAW,GAAG,cAAc;AACpC,IAAI;AACJ,IAAI,OAAO;AACX,QAAQ,CAAC,EAAE,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC;AAC3D,QAAQ,CAAC,EAAE,kBAAkB,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,CAAC;AAC3D,KAAK;AACL;AACA,SAAS,kBAAkB,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC7D,IAAI,OAAO;AACX,QAAQ,GAAG,EAAE,mBAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC;AACvD,QAAQ,GAAG,EAAE,mBAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC;AACvD,KAAK;AACL;AACA,SAAS,mBAAmB,CAAC,WAAW,EAAE,KAAK,EAAE;AACjD,IAAI,OAAO,OAAO,WAAW,KAAK;AAClC,UAAU;AACV,UAAU,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC;AACjC;;;;","x_google_ignoreList":[0]}
@@ -1,42 +0,0 @@
1
- import { Feature } from '../../../../motion-dom/dist/es/render/Feature.js';
2
- import { pipe } from '../../../../motion-utils/dist/es/pipe.js';
3
- import { addDomEvent } from '../../../../motion-dom/dist/es/events/add-dom-event.js';
4
-
5
- class FocusGesture extends Feature {
6
- constructor() {
7
- super(...arguments);
8
- this.isActive = false;
9
- }
10
- onFocus() {
11
- let isFocusVisible = false;
12
- /**
13
- * If this element doesn't match focus-visible then don't
14
- * apply whileHover. But, if matches throws that focus-visible
15
- * is not a valid selector then in that browser outline styles will be applied
16
- * to the element by default and we want to match that behaviour with whileFocus.
17
- */
18
- try {
19
- isFocusVisible = this.node.current.matches(":focus-visible");
20
- }
21
- catch (e) {
22
- isFocusVisible = true;
23
- }
24
- if (!isFocusVisible || !this.node.animationState)
25
- return;
26
- this.node.animationState.setActive("whileFocus", true);
27
- this.isActive = true;
28
- }
29
- onBlur() {
30
- if (!this.isActive || !this.node.animationState)
31
- return;
32
- this.node.animationState.setActive("whileFocus", false);
33
- this.isActive = false;
34
- }
35
- mount() {
36
- this.unmount = pipe(addDomEvent(this.node.current, "focus", () => this.onFocus()), addDomEvent(this.node.current, "blur", () => this.onBlur()));
37
- }
38
- unmount() { }
39
- }
40
-
41
- export { FocusGesture };
42
- //# sourceMappingURL=focus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focus.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/focus.mjs"],"sourcesContent":["import { Feature, addDomEvent } from 'motion-dom';\nimport { pipe } from 'motion-utils';\n\nclass FocusGesture extends Feature {\n constructor() {\n super(...arguments);\n this.isActive = false;\n }\n onFocus() {\n let isFocusVisible = false;\n /**\n * If this element doesn't match focus-visible then don't\n * apply whileHover. But, if matches throws that focus-visible\n * is not a valid selector then in that browser outline styles will be applied\n * to the element by default and we want to match that behaviour with whileFocus.\n */\n try {\n isFocusVisible = this.node.current.matches(\":focus-visible\");\n }\n catch (e) {\n isFocusVisible = true;\n }\n if (!isFocusVisible || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", true);\n this.isActive = true;\n }\n onBlur() {\n if (!this.isActive || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", false);\n this.isActive = false;\n }\n mount() {\n this.unmount = pipe(addDomEvent(this.node.current, \"focus\", () => this.onFocus()), addDomEvent(this.node.current, \"blur\", () => this.onBlur()));\n }\n unmount() { }\n}\n\nexport { FocusGesture };\n//# sourceMappingURL=focus.mjs.map\n"],"names":[],"mappings":";;;;AAGA,MAAM,YAAY,SAAS,OAAO,CAAC;AACnC,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;AAC3B,QAAQ,IAAI,CAAC,QAAQ,GAAG,KAAK;AAC7B,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,cAAc,GAAG,KAAK;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,IAAI;AACZ,YAAY,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACxE,QAAQ;AACR,QAAQ,OAAO,CAAC,EAAE;AAClB,YAAY,cAAc,GAAG,IAAI;AACjC,QAAQ;AACR,QAAQ,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc;AACxD,YAAY;AACZ,QAAQ,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC;AAC9D,QAAQ,IAAI,CAAC,QAAQ,GAAG,IAAI;AAC5B,IAAI;AACJ,IAAI,MAAM,GAAG;AACb,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc;AACvD,YAAY;AACZ,QAAQ,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC;AAC/D,QAAQ,IAAI,CAAC,QAAQ,GAAG,KAAK;AAC7B,IAAI;AACJ,IAAI,KAAK,GAAG;AACZ,QAAQ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AACvJ,IAAI;AACJ,IAAI,OAAO,GAAG,EAAE;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,31 +0,0 @@
1
- import { extractEventInfo } from '../events/event-info.js';
2
- import { Feature } from '../../../../motion-dom/dist/es/render/Feature.js';
3
- import { hover } from '../../../../motion-dom/dist/es/gestures/hover.js';
4
- import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.js';
5
-
6
- function handleHoverEvent(node, event, lifecycle) {
7
- const { props } = node;
8
- if (node.animationState && props.whileHover) {
9
- node.animationState.setActive("whileHover", lifecycle === "Start");
10
- }
11
- const eventName = ("onHover" + lifecycle);
12
- const callback = props[eventName];
13
- if (callback) {
14
- frame.postRender(() => callback(event, extractEventInfo(event)));
15
- }
16
- }
17
- class HoverGesture extends Feature {
18
- mount() {
19
- const { current } = this.node;
20
- if (!current)
21
- return;
22
- this.unmount = hover(current, (_element, startEvent) => {
23
- handleHoverEvent(this.node, startEvent, "Start");
24
- return (endEvent) => handleHoverEvent(this.node, endEvent, "End");
25
- });
26
- }
27
- unmount() { }
28
- }
29
-
30
- export { HoverGesture };
31
- //# sourceMappingURL=hover.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hover.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/hover.mjs"],"sourcesContent":["import { Feature, hover, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handleHoverEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", lifecycle === \"Start\");\n }\n const eventName = (\"onHover\" + lifecycle);\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass HoverGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = hover(current, (_element, startEvent) => {\n handleHoverEvent(this.node, startEvent, \"Start\");\n return (endEvent) => handleHoverEvent(this.node, endEvent, \"End\");\n });\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n//# sourceMappingURL=hover.mjs.map\n"],"names":[],"mappings":";;;;;AAGA,SAAS,gBAAgB,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;AAClD,IAAI,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI;AAC1B,IAAI,IAAI,IAAI,CAAC,cAAc,IAAI,KAAK,CAAC,UAAU,EAAE;AACjD,QAAQ,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,KAAK,OAAO,CAAC;AAC1E,IAAI;AACJ,IAAI,MAAM,SAAS,IAAI,SAAS,GAAG,SAAS,CAAC;AAC7C,IAAI,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC;AACrC,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,KAAK,CAAC,UAAU,CAAC,MAAM,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;AACxE,IAAI;AACJ;AACA,MAAM,YAAY,SAAS,OAAO,CAAC;AACnC,IAAI,KAAK,GAAG;AACZ,QAAQ,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI;AACrC,QAAQ,IAAI,CAAC,OAAO;AACpB,YAAY;AACZ,QAAQ,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,KAAK;AAChE,YAAY,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC;AAC5D,YAAY,OAAO,CAAC,QAAQ,KAAK,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC;AAC7E,QAAQ,CAAC,CAAC;AACV,IAAI;AACJ,IAAI,OAAO,GAAG,EAAE;AAChB;;;;","x_google_ignoreList":[0]}