@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,18 +0,0 @@
1
- import { DragGesture } from '../../gestures/drag/index.js';
2
- import { PanGesture } from '../../gestures/pan/index.js';
3
- import { MeasureLayout } from './layout/MeasureLayout.js';
4
- import { HTMLProjectionNode } from '../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode.js';
5
-
6
- const drag = {
7
- pan: {
8
- Feature: PanGesture,
9
- },
10
- drag: {
11
- Feature: DragGesture,
12
- ProjectionNode: HTMLProjectionNode,
13
- MeasureLayout,
14
- },
15
- };
16
-
17
- export { drag };
18
- //# sourceMappingURL=drag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drag.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/drag.mjs"],"sourcesContent":["import { DragGesture } from '../../gestures/drag/index.mjs';\nimport { PanGesture } from '../../gestures/pan/index.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\nimport { HTMLProjectionNode } from 'motion-dom';\n\nconst drag = {\n pan: {\n Feature: PanGesture,\n },\n drag: {\n Feature: DragGesture,\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { drag };\n//# sourceMappingURL=drag.mjs.map\n"],"names":[],"mappings":";;;;;AAKK,MAAC,IAAI,GAAG;AACb,IAAI,GAAG,EAAE;AACT,QAAQ,OAAO,EAAE,UAAU;AAC3B,KAAK;AACL,IAAI,IAAI,EAAE;AACV,QAAQ,OAAO,EAAE,WAAW;AAC5B,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,QAAQ,aAAa;AACrB,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,22 +0,0 @@
1
- import { HoverGesture } from '../../gestures/hover.js';
2
- import { FocusGesture } from '../../gestures/focus.js';
3
- import { PressGesture } from '../../gestures/press.js';
4
- import { InViewFeature } from './viewport/index.js';
5
-
6
- const gestureAnimations = {
7
- inView: {
8
- Feature: InViewFeature,
9
- },
10
- tap: {
11
- Feature: PressGesture,
12
- },
13
- focus: {
14
- Feature: FocusGesture,
15
- },
16
- hover: {
17
- Feature: HoverGesture,
18
- },
19
- };
20
-
21
- export { gestureAnimations };
22
- //# sourceMappingURL=gestures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gestures.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs"],"sourcesContent":["import { HoverGesture } from '../../gestures/hover.mjs';\nimport { FocusGesture } from '../../gestures/focus.mjs';\nimport { PressGesture } from '../../gestures/press.mjs';\nimport { InViewFeature } from './viewport/index.mjs';\n\nconst gestureAnimations = {\n inView: {\n Feature: InViewFeature,\n },\n tap: {\n Feature: PressGesture,\n },\n focus: {\n Feature: FocusGesture,\n },\n hover: {\n Feature: HoverGesture,\n },\n};\n\nexport { gestureAnimations };\n//# sourceMappingURL=gestures.mjs.map\n"],"names":[],"mappings":";;;;;AAKK,MAAC,iBAAiB,GAAG;AAC1B,IAAI,MAAM,EAAE;AACZ,QAAQ,OAAO,EAAE,aAAa;AAC9B,KAAK;AACL,IAAI,GAAG,EAAE;AACT,QAAQ,OAAO,EAAE,YAAY;AAC7B,KAAK;AACL,IAAI,KAAK,EAAE;AACX,QAAQ,OAAO,EAAE,YAAY;AAC7B,KAAK;AACL,IAAI,KAAK,EAAE;AACX,QAAQ,OAAO,EAAE,YAAY;AAC7B,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,138 +0,0 @@
1
- "use client";
2
- import { jsx } from 'react/jsx-runtime';
3
- import { useContext, Component } from 'react';
4
- import { usePresence } from '../../../components/AnimatePresence/use-presence.js';
5
- import { LayoutGroupContext } from '../../../context/LayoutGroupContext.js';
6
- import { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.js';
7
- import { globalProjectionState } from '../../../../../../motion-dom/dist/es/projection/node/state.js';
8
- import { frame } from '../../../../../../motion-dom/dist/es/frameloop/frame.js';
9
- import { microtask } from '../../../../../../motion-dom/dist/es/frameloop/microtask.js';
10
-
11
- /**
12
- * Track whether we've taken any snapshots yet. If not,
13
- * we can safely skip notification of didUpdate.
14
- *
15
- * Difficult to capture in a test but to prevent flickering
16
- * we must set this to true either on update or unmount.
17
- * Running `next-env/layout-id` in Safari will show this behaviour if broken.
18
- */
19
- let hasTakenAnySnapshot = false;
20
- class MeasureLayoutWithContext extends Component {
21
- /**
22
- * This only mounts projection nodes for components that
23
- * need measuring, we might want to do it for all components
24
- * in order to incorporate transforms
25
- */
26
- componentDidMount() {
27
- const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;
28
- const { projection } = visualElement;
29
- if (projection) {
30
- if (layoutGroup.group)
31
- layoutGroup.group.add(projection);
32
- if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {
33
- switchLayoutGroup.register(projection);
34
- }
35
- if (hasTakenAnySnapshot) {
36
- projection.root.didUpdate();
37
- }
38
- projection.addEventListener("animationComplete", () => {
39
- this.safeToRemove();
40
- });
41
- projection.setOptions({
42
- ...projection.options,
43
- layoutDependency: this.props.layoutDependency,
44
- onExitComplete: () => this.safeToRemove(),
45
- });
46
- }
47
- globalProjectionState.hasEverUpdated = true;
48
- }
49
- getSnapshotBeforeUpdate(prevProps) {
50
- const { layoutDependency, visualElement, drag, isPresent } = this.props;
51
- const { projection } = visualElement;
52
- if (!projection)
53
- return null;
54
- /**
55
- * TODO: We use this data in relegate to determine whether to
56
- * promote a previous element. There's no guarantee its presence data
57
- * will have updated by this point - if a bug like this arises it will
58
- * have to be that we markForRelegation and then find a new lead some other way,
59
- * perhaps in didUpdate
60
- */
61
- projection.isPresent = isPresent;
62
- if (prevProps.layoutDependency !== layoutDependency) {
63
- projection.setOptions({
64
- ...projection.options,
65
- layoutDependency,
66
- });
67
- }
68
- hasTakenAnySnapshot = true;
69
- if (drag ||
70
- prevProps.layoutDependency !== layoutDependency ||
71
- layoutDependency === undefined ||
72
- prevProps.isPresent !== isPresent) {
73
- projection.willUpdate();
74
- }
75
- else {
76
- this.safeToRemove();
77
- }
78
- if (prevProps.isPresent !== isPresent) {
79
- if (isPresent) {
80
- projection.promote();
81
- }
82
- else if (!projection.relegate()) {
83
- /**
84
- * If there's another stack member taking over from this one,
85
- * it's in charge of the exit animation and therefore should
86
- * be in charge of the safe to remove. Otherwise we call it here.
87
- */
88
- frame.postRender(() => {
89
- const stack = projection.getStack();
90
- if (!stack || !stack.members.length) {
91
- this.safeToRemove();
92
- }
93
- });
94
- }
95
- }
96
- return null;
97
- }
98
- componentDidUpdate() {
99
- const { visualElement, layoutAnchor } = this.props;
100
- const { projection } = visualElement;
101
- if (projection) {
102
- projection.options.layoutAnchor = layoutAnchor;
103
- projection.root.didUpdate();
104
- microtask.postRender(() => {
105
- if (!projection.currentAnimation && projection.isLead()) {
106
- this.safeToRemove();
107
- }
108
- });
109
- }
110
- }
111
- componentWillUnmount() {
112
- const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;
113
- const { projection } = visualElement;
114
- hasTakenAnySnapshot = true;
115
- if (projection) {
116
- projection.scheduleCheckAfterUnmount();
117
- if (layoutGroup && layoutGroup.group)
118
- layoutGroup.group.remove(projection);
119
- if (promoteContext && promoteContext.deregister)
120
- promoteContext.deregister(projection);
121
- }
122
- }
123
- safeToRemove() {
124
- const { safeToRemove } = this.props;
125
- safeToRemove && safeToRemove();
126
- }
127
- render() {
128
- return null;
129
- }
130
- }
131
- function MeasureLayout(props) {
132
- const [isPresent, safeToRemove] = usePresence();
133
- const layoutGroup = useContext(LayoutGroupContext);
134
- return (jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));
135
- }
136
-
137
- export { MeasureLayout };
138
- //# sourceMappingURL=MeasureLayout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MeasureLayout.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { globalProjectionState, frame, microtask } from 'motion-dom';\nimport { useContext, Component } from 'react';\nimport { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';\nimport { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.mjs';\n\n/**\n * Track whether we've taken any snapshots yet. If not,\n * we can safely skip notification of didUpdate.\n *\n * Difficult to capture in a test but to prevent flickering\n * we must set this to true either on update or unmount.\n * Running `next-env/layout-id` in Safari will show this behaviour if broken.\n */\nlet hasTakenAnySnapshot = false;\nclass MeasureLayoutWithContext extends Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n const { projection } = visualElement;\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n if (hasTakenAnySnapshot) {\n projection.root.didUpdate();\n }\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\n layoutDependency: this.props.layoutDependency,\n onExitComplete: () => this.safeToRemove(),\n });\n }\n globalProjectionState.hasEverUpdated = true;\n }\n getSnapshotBeforeUpdate(prevProps) {\n const { layoutDependency, visualElement, drag, isPresent } = this.props;\n const { projection } = visualElement;\n if (!projection)\n return null;\n /**\n * TODO: We use this data in relegate to determine whether to\n * promote a previous element. There's no guarantee its presence data\n * will have updated by this point - if a bug like this arises it will\n * have to be that we markForRelegation and then find a new lead some other way,\n * perhaps in didUpdate\n */\n projection.isPresent = isPresent;\n if (prevProps.layoutDependency !== layoutDependency) {\n projection.setOptions({\n ...projection.options,\n layoutDependency,\n });\n }\n hasTakenAnySnapshot = true;\n if (drag ||\n prevProps.layoutDependency !== layoutDependency ||\n layoutDependency === undefined ||\n prevProps.isPresent !== isPresent) {\n projection.willUpdate();\n }\n else {\n this.safeToRemove();\n }\n if (prevProps.isPresent !== isPresent) {\n if (isPresent) {\n projection.promote();\n }\n else if (!projection.relegate()) {\n /**\n * If there's another stack member taking over from this one,\n * it's in charge of the exit animation and therefore should\n * be in charge of the safe to remove. Otherwise we call it here.\n */\n frame.postRender(() => {\n const stack = projection.getStack();\n if (!stack || !stack.members.length) {\n this.safeToRemove();\n }\n });\n }\n }\n return null;\n }\n componentDidUpdate() {\n const { visualElement, layoutAnchor } = this.props;\n const { projection } = visualElement;\n if (projection) {\n projection.options.layoutAnchor = layoutAnchor;\n projection.root.didUpdate();\n microtask.postRender(() => {\n if (!projection.currentAnimation && projection.isLead()) {\n this.safeToRemove();\n }\n });\n }\n }\n componentWillUnmount() {\n const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;\n const { projection } = visualElement;\n hasTakenAnySnapshot = true;\n if (projection) {\n projection.scheduleCheckAfterUnmount();\n if (layoutGroup && layoutGroup.group)\n layoutGroup.group.remove(projection);\n if (promoteContext && promoteContext.deregister)\n promoteContext.deregister(projection);\n }\n }\n safeToRemove() {\n const { safeToRemove } = this.props;\n safeToRemove && safeToRemove();\n }\n render() {\n return null;\n }\n}\nfunction MeasureLayout(props) {\n const [isPresent, safeToRemove] = usePresence();\n const layoutGroup = useContext(LayoutGroupContext);\n return (jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));\n}\n\nexport { MeasureLayout };\n//# sourceMappingURL=MeasureLayout.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","x_google_ignoreList":[0]}
@@ -1,12 +0,0 @@
1
- import { MeasureLayout } from './layout/MeasureLayout.js';
2
- import { HTMLProjectionNode } from '../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode.js';
3
-
4
- const layout = {
5
- layout: {
6
- ProjectionNode: HTMLProjectionNode,
7
- MeasureLayout,
8
- },
9
- };
10
-
11
- export { layout };
12
- //# sourceMappingURL=layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/layout.mjs"],"sourcesContent":["import { HTMLProjectionNode } from 'motion-dom';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\n\nconst layout = {\n layout: {\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { layout };\n//# sourceMappingURL=layout.mjs.map\n"],"names":[],"mappings":";;;AAGK,MAAC,MAAM,GAAG;AACf,IAAI,MAAM,EAAE;AACZ,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,QAAQ,aAAa;AACrB,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,16 +0,0 @@
1
- import { getInitializedFeatureDefinitions } from './definitions.js';
2
- import { setFeatureDefinitions } from '../../../../../motion-dom/dist/es/render/VisualElement.js';
3
-
4
- function loadFeatures(features) {
5
- const featureDefinitions = getInitializedFeatureDefinitions();
6
- for (const key in features) {
7
- featureDefinitions[key] = {
8
- ...featureDefinitions[key],
9
- ...features[key],
10
- };
11
- }
12
- setFeatureDefinitions(featureDefinitions);
13
- }
14
-
15
- export { loadFeatures };
16
- //# sourceMappingURL=load-features.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-features.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs"],"sourcesContent":["import { setFeatureDefinitions } from 'motion-dom';\nimport { getInitializedFeatureDefinitions } from './definitions.mjs';\n\nfunction loadFeatures(features) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n for (const key in features) {\n featureDefinitions[key] = {\n ...featureDefinitions[key],\n ...features[key],\n };\n }\n setFeatureDefinitions(featureDefinitions);\n}\n\nexport { loadFeatures };\n//# sourceMappingURL=load-features.mjs.map\n"],"names":[],"mappings":";;;AAGA,SAAS,YAAY,CAAC,QAAQ,EAAE;AAChC,IAAI,MAAM,kBAAkB,GAAG,gCAAgC,EAAE;AACjE,IAAI,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE;AAChC,QAAQ,kBAAkB,CAAC,GAAG,CAAC,GAAG;AAClC,YAAY,GAAG,kBAAkB,CAAC,GAAG,CAAC;AACtC,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC;AAC5B,SAAS;AACT,IAAI;AACJ,IAAI,qBAAqB,CAAC,kBAAkB,CAAC;AAC7C;;;;","x_google_ignoreList":[0]}
@@ -1,77 +0,0 @@
1
- import { observeIntersection } from './observers.js';
2
- import { Feature } from '../../../../../../motion-dom/dist/es/render/Feature.js';
3
-
4
- const thresholdNames = {
5
- some: 0,
6
- all: 1,
7
- };
8
- class InViewFeature extends Feature {
9
- constructor() {
10
- super(...arguments);
11
- this.hasEnteredView = false;
12
- this.isInView = false;
13
- }
14
- startObserver() {
15
- this.stopObserver?.();
16
- const { viewport = {} } = this.node.getProps();
17
- const { root, margin: rootMargin, amount = "some", once } = viewport;
18
- const options = {
19
- root: root ? root.current : undefined,
20
- rootMargin,
21
- threshold: typeof amount === "number" ? amount : thresholdNames[amount],
22
- };
23
- const onIntersectionUpdate = (entry) => {
24
- const { isIntersecting } = entry;
25
- /**
26
- * If there's been no change in the viewport state, early return.
27
- */
28
- if (this.isInView === isIntersecting)
29
- return;
30
- this.isInView = isIntersecting;
31
- /**
32
- * Handle hasEnteredView. If this is only meant to run once, and
33
- * element isn't visible, early return. Otherwise set hasEnteredView to true.
34
- */
35
- if (once && !isIntersecting && this.hasEnteredView) {
36
- return;
37
- }
38
- else if (isIntersecting) {
39
- this.hasEnteredView = true;
40
- }
41
- if (this.node.animationState) {
42
- this.node.animationState.setActive("whileInView", isIntersecting);
43
- }
44
- /**
45
- * Use the latest committed props rather than the ones in scope
46
- * when this observer is created
47
- */
48
- const { onViewportEnter, onViewportLeave } = this.node.getProps();
49
- const callback = isIntersecting ? onViewportEnter : onViewportLeave;
50
- callback && callback(entry);
51
- };
52
- this.stopObserver = observeIntersection(this.node.current, options, onIntersectionUpdate);
53
- }
54
- mount() {
55
- this.startObserver();
56
- }
57
- update() {
58
- if (typeof IntersectionObserver === "undefined")
59
- return;
60
- const { props, prevProps } = this.node;
61
- const hasOptionsChanged = ["amount", "margin", "root"].some(hasViewportOptionChanged(props, prevProps));
62
- if (hasOptionsChanged) {
63
- this.startObserver();
64
- }
65
- }
66
- unmount() {
67
- this.stopObserver?.();
68
- this.hasEnteredView = false;
69
- this.isInView = false;
70
- }
71
- }
72
- function hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {
73
- return (name) => viewport[name] !== prevViewport[name];
74
- }
75
-
76
- export { InViewFeature };
77
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs"],"sourcesContent":["import { Feature } from 'motion-dom';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.stopObserver?.();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n this.stopObserver = observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() {\n this.stopObserver?.();\n this.hasEnteredView = false;\n this.isInView = false;\n }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;AAGA,MAAM,cAAc,GAAG;AACvB,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,GAAG,EAAE,CAAC;AACV,CAAC;AACD,MAAM,aAAa,SAAS,OAAO,CAAC;AACpC,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;AAC3B,QAAQ,IAAI,CAAC,cAAc,GAAG,KAAK;AACnC,QAAQ,IAAI,CAAC,QAAQ,GAAG,KAAK;AAC7B,IAAI;AACJ,IAAI,aAAa,GAAG;AACpB,QAAQ,IAAI,CAAC,YAAY,IAAI;AAC7B,QAAQ,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AACtD,QAAQ,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ;AAC5E,QAAQ,MAAM,OAAO,GAAG;AACxB,YAAY,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,OAAO,GAAG,SAAS;AACjD,YAAY,UAAU;AACtB,YAAY,SAAS,EAAE,OAAO,MAAM,KAAK,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;AACnF,SAAS;AACT,QAAQ,MAAM,oBAAoB,GAAG,CAAC,KAAK,KAAK;AAChD,YAAY,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK;AAC5C;AACA;AACA;AACA,YAAY,IAAI,IAAI,CAAC,QAAQ,KAAK,cAAc;AAChD,gBAAgB;AAChB,YAAY,IAAI,CAAC,QAAQ,GAAG,cAAc;AAC1C;AACA;AACA;AACA;AACA,YAAY,IAAI,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;AAChE,gBAAgB;AAChB,YAAY;AACZ,iBAAiB,IAAI,cAAc,EAAE;AACrC,gBAAgB,IAAI,CAAC,cAAc,GAAG,IAAI;AAC1C,YAAY;AACZ,YAAY,IAAI,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;AAC1C,gBAAgB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;AACjF,YAAY;AACZ;AACA;AACA;AACA;AACA,YAAY,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAC7E,YAAY,MAAM,QAAQ,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe;AAC/E,YAAY,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC;AACvC,QAAQ,CAAC;AACT,QAAQ,IAAI,CAAC,YAAY,GAAG,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC;AACjG,IAAI;AACJ,IAAI,KAAK,GAAG;AACZ,QAAQ,IAAI,CAAC,aAAa,EAAE;AAC5B,IAAI;AACJ,IAAI,MAAM,GAAG;AACb,QAAQ,IAAI,OAAO,oBAAoB,KAAK,WAAW;AACvD,YAAY;AACZ,QAAQ,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,IAAI;AAC9C,QAAQ,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AAC/G,QAAQ,IAAI,iBAAiB,EAAE;AAC/B,YAAY,IAAI,CAAC,aAAa,EAAE;AAChC,QAAQ;AACR,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,QAAQ,IAAI,CAAC,YAAY,IAAI;AAC7B,QAAQ,IAAI,CAAC,cAAc,GAAG,KAAK;AACnC,QAAQ,IAAI,CAAC,QAAQ,GAAG,KAAK;AAC7B,IAAI;AACJ;AACA,SAAS,wBAAwB,CAAC,EAAE,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE;AAC3F,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC,KAAK,YAAY,CAAC,IAAI,CAAC;AAC1D;;;;","x_google_ignoreList":[0]}
@@ -1,50 +0,0 @@
1
- /**
2
- * Map an IntersectionHandler callback to an element. We only ever make one handler for one
3
- * element, so even though these handlers might all be triggered by different
4
- * observers, we can keep them in the same map.
5
- */
6
- const observerCallbacks = new WeakMap();
7
- /**
8
- * Multiple observers can be created for multiple element/document roots. Each with
9
- * different settings. So here we store dictionaries of observers to each root,
10
- * using serialised settings (threshold/margin) as lookup keys.
11
- */
12
- const observers = new WeakMap();
13
- const fireObserverCallback = (entry) => {
14
- const callback = observerCallbacks.get(entry.target);
15
- callback && callback(entry);
16
- };
17
- const fireAllObserverCallbacks = (entries) => {
18
- entries.forEach(fireObserverCallback);
19
- };
20
- function initIntersectionObserver({ root, ...options }) {
21
- const lookupRoot = root || document;
22
- /**
23
- * If we don't have an observer lookup map for this root, create one.
24
- */
25
- if (!observers.has(lookupRoot)) {
26
- observers.set(lookupRoot, {});
27
- }
28
- const rootObservers = observers.get(lookupRoot);
29
- const key = JSON.stringify(options);
30
- /**
31
- * If we don't have an observer for this combination of root and settings,
32
- * create one.
33
- */
34
- if (!rootObservers[key]) {
35
- rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });
36
- }
37
- return rootObservers[key];
38
- }
39
- function observeIntersection(element, options, callback) {
40
- const rootInteresectionObserver = initIntersectionObserver(options);
41
- observerCallbacks.set(element, callback);
42
- rootInteresectionObserver.observe(element);
43
- return () => {
44
- observerCallbacks.delete(element);
45
- rootInteresectionObserver.unobserve(element);
46
- };
47
- }
48
-
49
- export { observeIntersection };
50
- //# sourceMappingURL=observers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observers.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs"],"sourcesContent":["/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n//# sourceMappingURL=observers.mjs.map\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAAE;AACvC;AACA;AACA;AACA;AACA;AACA,MAAM,SAAS,GAAG,IAAI,OAAO,EAAE;AAC/B,MAAM,oBAAoB,GAAG,CAAC,KAAK,KAAK;AACxC,IAAI,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;AACxD,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC;AAC/B,CAAC;AACD,MAAM,wBAAwB,GAAG,CAAC,OAAO,KAAK;AAC9C,IAAI,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC;AACzC,CAAC;AACD,SAAS,wBAAwB,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE;AACxD,IAAI,MAAM,UAAU,GAAG,IAAI,IAAI,QAAQ;AACvC;AACA;AACA;AACA,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;AACpC,QAAQ,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC;AACrC,IAAI;AACJ,IAAI,MAAM,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC;AACnD,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;AACvC;AACA;AACA;AACA;AACA,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE;AAC7B,QAAQ,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,oBAAoB,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;AACrG,IAAI;AACJ,IAAI,OAAO,aAAa,CAAC,GAAG,CAAC;AAC7B;AACA,SAAS,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;AACzD,IAAI,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,OAAO,CAAC;AACvE,IAAI,iBAAiB,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC;AAC5C,IAAI,yBAAyB,CAAC,OAAO,CAAC,OAAO,CAAC;AAC9C,IAAI,OAAO,MAAM;AACjB,QAAQ,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC;AACzC,QAAQ,yBAAyB,CAAC,SAAS,CAAC,OAAO,CAAC;AACpD,IAAI,CAAC;AACL;;;;","x_google_ignoreList":[0]}
@@ -1,113 +0,0 @@
1
- "use client";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { forwardRef, useContext } from 'react';
4
- import { LayoutGroupContext } from '../context/LayoutGroupContext.js';
5
- import { LazyContext } from '../context/LazyContext.js';
6
- import { MotionConfigContext } from '../context/MotionConfigContext.js';
7
- import { MotionContext } from '../context/MotionContext/index.js';
8
- import { useCreateMotionContext } from '../context/MotionContext/create.js';
9
- import { useRender } from '../render/dom/use-render.js';
10
- import { isSVGComponent } from '../render/dom/utils/is-svg-component.js';
11
- import { useHTMLVisualState } from '../render/html/use-html-visual-state.js';
12
- import { useSVGVisualState } from '../render/svg/use-svg-visual-state.js';
13
- import { getInitializedFeatureDefinitions } from './features/definitions.js';
14
- import { loadFeatures } from './features/load-features.js';
15
- import { motionComponentSymbol } from './utils/symbol.js';
16
- import { useMotionRef } from './utils/use-motion-ref.js';
17
- import { useVisualElement } from './utils/use-visual-element.js';
18
- import { warning, invariant } from '../../../../motion-utils/dist/es/errors.js';
19
-
20
- /**
21
- * Create a `motion` component.
22
- *
23
- * This function accepts a Component argument, which can be either a string (ie "div"
24
- * for `motion.div`), or an actual React component.
25
- *
26
- * Alongside this is a config option which provides a way of rendering the provided
27
- * component "offline", or outside the React render cycle.
28
- */
29
- function createMotionComponent(Component, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement) {
30
- preloadedFeatures && loadFeatures(preloadedFeatures);
31
- /**
32
- * Determine whether to use SVG or HTML rendering based on:
33
- * 1. Explicit `type` option (highest priority)
34
- * 2. Auto-detection via `isSVGComponent`
35
- */
36
- const isSVG = type ? type === "svg" : isSVGComponent(Component);
37
- const useVisualState = isSVG ? useSVGVisualState : useHTMLVisualState;
38
- function MotionDOMComponent(props, externalRef) {
39
- /**
40
- * If we need to measure the element we load this functionality in a
41
- * separate class component in order to gain access to getSnapshotBeforeUpdate.
42
- */
43
- let MeasureLayout;
44
- const configAndProps = {
45
- ...useContext(MotionConfigContext),
46
- ...props,
47
- layoutId: useLayoutId(props),
48
- };
49
- const { isStatic, isValidProp } = configAndProps;
50
- const context = useCreateMotionContext(props);
51
- const visualState = useVisualState(props, isStatic);
52
- if (!isStatic && typeof window !== "undefined") {
53
- useStrictMode(configAndProps, preloadedFeatures);
54
- const layoutProjection = getProjectionFunctionality(configAndProps);
55
- MeasureLayout = layoutProjection.MeasureLayout;
56
- /**
57
- * Create a VisualElement for this component. A VisualElement provides a common
58
- * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as
59
- * providing a way of rendering to these APIs outside of the React render loop
60
- * for more performant animations and interactions
61
- */
62
- context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode, isSVG);
63
- }
64
- /**
65
- * The mount order and hierarchy is specific to ensure our element ref
66
- * is hydrated by the time features fire their effects.
67
- */
68
- return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG, isValidProp)] }));
69
- }
70
- MotionDOMComponent.displayName = `motion.${typeof Component === "string"
71
- ? Component
72
- : `create(${Component.displayName ?? Component.name ?? ""})`}`;
73
- const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);
74
- ForwardRefMotionComponent[motionComponentSymbol] = Component;
75
- return ForwardRefMotionComponent;
76
- }
77
- function useLayoutId({ layoutId }) {
78
- const layoutGroupId = useContext(LayoutGroupContext).id;
79
- return layoutGroupId && layoutId !== undefined
80
- ? layoutGroupId + "-" + layoutId
81
- : layoutId;
82
- }
83
- function useStrictMode(configAndProps, preloadedFeatures) {
84
- const isStrict = useContext(LazyContext).strict;
85
- /**
86
- * If we're in development mode, check to make sure we're not rendering a motion component
87
- * as a child of LazyMotion, as this will break the file-size benefits of using it.
88
- */
89
- if (process.env.NODE_ENV !== "production" &&
90
- preloadedFeatures &&
91
- isStrict) {
92
- const strictMessage = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
93
- configAndProps.ignoreStrict
94
- ? warning(false, strictMessage, "lazy-strict-mode")
95
- : invariant(false, strictMessage, "lazy-strict-mode");
96
- }
97
- }
98
- function getProjectionFunctionality(props) {
99
- const featureDefinitions = getInitializedFeatureDefinitions();
100
- const { drag, layout } = featureDefinitions;
101
- if (!drag && !layout)
102
- return {};
103
- const combined = { ...drag, ...layout };
104
- return {
105
- MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)
106
- ? combined.MeasureLayout
107
- : undefined,
108
- ProjectionNode: combined.ProjectionNode,
109
- };
110
- }
111
-
112
- export { createMotionComponent };
113
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/framer-motion/dist/es/motion/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { useRender } from '../render/dom/use-render.mjs';\nimport { isSVGComponent } from '../render/dom/utils/is-svg-component.mjs';\nimport { useHTMLVisualState } from '../render/html/use-html-visual-state.mjs';\nimport { useSVGVisualState } from '../render/svg/use-svg-visual-state.mjs';\nimport { getInitializedFeatureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent(Component, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n /**\n * Determine whether to use SVG or HTML rendering based on:\n * 1. Explicit `type` option (highest priority)\n * 2. Auto-detection via `isSVGComponent`\n */\n const isSVG = type ? type === \"svg\" : isSVGComponent(Component);\n const useVisualState = isSVG ? useSVGVisualState : useHTMLVisualState;\n function MotionDOMComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic, isValidProp } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && typeof window !== \"undefined\") {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode, isSVG);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG, isValidProp)] }));\n }\n MotionDOMComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage, \"lazy-strict-mode\")\n : invariant(false, strictMessage, \"lazy-strict-mode\");\n }\n}\nfunction getProjectionFunctionality(props) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createMotionComponent };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","x_google_ignoreList":[0]}
@@ -1,4 +0,0 @@
1
- const motionComponentSymbol = Symbol.for("motionComponentSymbol");
2
-
3
- export { motionComponentSymbol };
4
- //# sourceMappingURL=symbol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"symbol.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs"],"sourcesContent":["const motionComponentSymbol = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n//# sourceMappingURL=symbol.mjs.map\n"],"names":[],"mappings":"AAAK,MAAC,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB;;;;","x_google_ignoreList":[0]}
@@ -1,52 +0,0 @@
1
- "use client";
2
- import { useRef, useInsertionEffect, useCallback } from 'react';
3
-
4
- /**
5
- * Creates a ref function that, when called, hydrates the provided
6
- * external ref and VisualElement.
7
- */
8
- function useMotionRef(visualState, visualElement, externalRef) {
9
- /**
10
- * Store externalRef in a ref to avoid including it in the useCallback
11
- * dependency array. Including externalRef in dependencies causes issues
12
- * with libraries like Radix UI that create new callback refs on each render
13
- * when using asChild - this would cause the callback to be recreated,
14
- * triggering element remounts and breaking AnimatePresence exit animations.
15
- */
16
- const externalRefContainer = useRef(externalRef);
17
- useInsertionEffect(() => {
18
- externalRefContainer.current = externalRef;
19
- });
20
- // Store cleanup function returned by callback refs (React 19 feature)
21
- const refCleanup = useRef(null);
22
- return useCallback((instance) => {
23
- if (instance) {
24
- visualState.onMount?.(instance);
25
- }
26
- if (visualElement) {
27
- instance ? visualElement.mount(instance) : visualElement.unmount();
28
- }
29
- const ref = externalRefContainer.current;
30
- if (typeof ref === "function") {
31
- if (instance) {
32
- const cleanup = ref(instance);
33
- if (typeof cleanup === "function") {
34
- refCleanup.current = cleanup;
35
- }
36
- }
37
- else if (refCleanup.current) {
38
- refCleanup.current();
39
- refCleanup.current = null;
40
- }
41
- else {
42
- ref(instance);
43
- }
44
- }
45
- else if (ref) {
46
- ref.current = instance;
47
- }
48
- }, [visualElement]);
49
- }
50
-
51
- export { useMotionRef };
52
- //# sourceMappingURL=use-motion-ref.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-motion-ref.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs"],"sourcesContent":["\"use client\";\nimport { useRef, useInsertionEffect, useCallback } from 'react';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n /**\n * Store externalRef in a ref to avoid including it in the useCallback\n * dependency array. Including externalRef in dependencies causes issues\n * with libraries like Radix UI that create new callback refs on each render\n * when using asChild - this would cause the callback to be recreated,\n * triggering element remounts and breaking AnimatePresence exit animations.\n */\n const externalRefContainer = useRef(externalRef);\n useInsertionEffect(() => {\n externalRefContainer.current = externalRef;\n });\n // Store cleanup function returned by callback refs (React 19 feature)\n const refCleanup = useRef(null);\n return useCallback((instance) => {\n if (instance) {\n visualState.onMount?.(instance);\n }\n if (visualElement) {\n instance ? visualElement.mount(instance) : visualElement.unmount();\n }\n const ref = externalRefContainer.current;\n if (typeof ref === \"function\") {\n if (instance) {\n const cleanup = ref(instance);\n if (typeof cleanup === \"function\") {\n refCleanup.current = cleanup;\n }\n }\n else if (refCleanup.current) {\n refCleanup.current();\n refCleanup.current = null;\n }\n else {\n ref(instance);\n }\n }\n else if (ref) {\n ref.current = instance;\n }\n }, [visualElement]);\n}\n\nexport { useMotionRef };\n//# sourceMappingURL=use-motion-ref.mjs.map\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","x_google_ignoreList":[0]}