@useloops/design-system 1.4.669 → 1.4.671

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 (612) hide show
  1. package/dist/esm/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +1 -1
  2. package/dist/esm/node_modules/framer-motion/dist/es/events/add-pointer-event.js +1 -1
  3. package/dist/esm/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +1 -1
  4. package/dist/esm/node_modules/framer-motion/dist/es/gestures/drag/index.js +1 -1
  5. package/dist/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +1 -1
  6. package/dist/esm/node_modules/framer-motion/dist/es/gestures/focus.js +1 -1
  7. package/dist/esm/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
  8. package/dist/esm/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +1 -1
  9. package/dist/esm/node_modules/framer-motion/dist/es/gestures/pan/index.js +1 -1
  10. package/dist/esm/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
  11. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
  12. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/animation/index.js +1 -1
  13. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/definitions.js +1 -1
  14. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
  15. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +1 -1
  16. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/layout.js +1 -1
  17. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/load-features.js +1 -1
  18. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +1 -1
  19. package/dist/esm/node_modules/framer-motion/dist/es/motion/index.js +1 -1
  20. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +1 -1
  21. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +1 -1
  22. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +1 -1
  23. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +1 -1
  24. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +1 -1
  25. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/use-render.js +1 -1
  26. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +1 -1
  27. package/dist/esm/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +1 -1
  28. package/dist/esm/node_modules/framer-motion/dist/es/render/html/use-props.js +1 -1
  29. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/use-props.js +1 -1
  30. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
  31. package/dist/esm/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +1 -1
  32. package/dist/esm/node_modules/motion-dom/dist/es/animation/JSAnimation.js +1 -1
  33. package/dist/esm/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +1 -1
  34. package/dist/esm/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +1 -1
  35. package/dist/esm/node_modules/motion-dom/dist/es/animation/animate/single-value.js +1 -0
  36. package/dist/esm/node_modules/motion-dom/dist/es/animation/generators/inertia.js +1 -1
  37. package/dist/esm/node_modules/motion-dom/dist/es/animation/generators/spring.js +1 -0
  38. package/dist/esm/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +1 -1
  39. package/dist/esm/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +1 -0
  40. package/dist/esm/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +1 -0
  41. package/dist/esm/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +1 -1
  42. package/dist/esm/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +1 -1
  43. package/dist/esm/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +1 -0
  44. package/dist/esm/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +1 -1
  45. package/dist/esm/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +1 -1
  46. package/dist/esm/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +1 -0
  47. package/dist/esm/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +1 -1
  48. package/dist/esm/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +1 -0
  49. package/dist/esm/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +1 -1
  50. package/dist/esm/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +1 -0
  51. package/dist/esm/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +1 -0
  52. package/dist/esm/node_modules/motion-dom/dist/es/frameloop/batcher.js +1 -1
  53. package/dist/esm/node_modules/motion-dom/dist/es/frameloop/render-step.js +1 -1
  54. package/dist/esm/node_modules/motion-dom/dist/es/gestures/hover.js +1 -1
  55. package/dist/esm/node_modules/motion-dom/dist/es/gestures/press/index.js +1 -1
  56. package/dist/esm/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
  57. package/dist/esm/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +1 -0
  58. package/dist/esm/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +1 -0
  59. package/dist/esm/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +1 -0
  60. package/dist/esm/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +1 -0
  61. package/dist/esm/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +1 -0
  62. package/dist/esm/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1 -0
  63. package/dist/esm/node_modules/motion-dom/dist/es/projection/shared/stack.js +1 -0
  64. package/dist/esm/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +1 -0
  65. package/dist/esm/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +1 -0
  66. package/dist/esm/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +1 -0
  67. package/dist/esm/node_modules/motion-dom/dist/es/projection/styles/transform.js +1 -0
  68. package/dist/esm/node_modules/motion-dom/dist/es/render/VisualElement.js +1 -0
  69. package/dist/esm/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +1 -0
  70. package/dist/esm/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +1 -0
  71. package/dist/esm/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +1 -0
  72. package/dist/esm/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +1 -0
  73. package/dist/esm/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +1 -0
  74. package/dist/esm/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +1 -0
  75. package/dist/esm/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +1 -0
  76. package/dist/esm/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +1 -0
  77. package/dist/esm/node_modules/motion-dom/dist/es/render/svg/utils/path.js +1 -0
  78. package/dist/esm/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +1 -0
  79. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/animation-state.js +1 -0
  80. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +1 -0
  81. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +1 -0
  82. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +1 -1
  83. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/motion-values.js +1 -0
  84. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +1 -0
  85. package/dist/esm/node_modules/motion-dom/dist/es/render/utils/setters.js +1 -0
  86. package/dist/esm/node_modules/motion-dom/dist/es/resize/handle-element.js +1 -0
  87. package/dist/esm/node_modules/motion-dom/dist/es/resize/handle-window.js +1 -0
  88. package/dist/esm/node_modules/motion-dom/dist/es/resize/index.js +1 -0
  89. package/dist/esm/node_modules/motion-dom/dist/es/utils/delay.js +1 -0
  90. package/dist/esm/node_modules/motion-dom/dist/es/utils/interpolate.js +1 -1
  91. package/dist/esm/node_modules/motion-dom/dist/es/utils/is-html-element.js +1 -1
  92. package/dist/esm/node_modules/motion-dom/dist/es/utils/resolve-elements.js +1 -1
  93. package/dist/esm/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +1 -1
  94. package/dist/esm/node_modules/motion-dom/dist/es/value/types/color/hsla.js +1 -1
  95. package/dist/esm/node_modules/motion-dom/dist/es/value/types/color/rgba.js +1 -1
  96. package/dist/esm/node_modules/motion-dom/dist/es/value/types/complex/index.js +1 -1
  97. package/dist/esm/node_modules/motion-dom/dist/es/value/types/complex/mask.js +1 -0
  98. package/dist/esm/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +1 -1
  99. package/dist/esm/node_modules/motion-dom/dist/es/value/types/maps/number.js +1 -1
  100. package/dist/esm/node_modules/motion-dom/dist/es/value/types/maps/transform.js +1 -1
  101. package/dist/esm/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +1 -1
  102. package/dist/esm/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +1 -0
  103. package/dist/esm/node_modules/motion-dom/dist/es/value/will-change/is.js +1 -0
  104. package/dist/esm/node_modules/motion-utils/dist/es/easing/anticipate.js +1 -1
  105. package/dist/esm/node_modules/motion-utils/dist/es/errors.js +1 -1
  106. package/dist/esm/node_modules/motion-utils/dist/es/is-object.js +1 -1
  107. package/dist/esm/node_modules/motion-utils/dist/es/pipe.js +1 -1
  108. package/dist/esm/node_modules/motion-utils/dist/es/progress.js +1 -1
  109. package/dist/esm/node_modules/motion-utils/dist/es/velocity-per-second.js +1 -1
  110. package/dist/esm/node_modules/uuid/dist/esm-browser/rng.js +1 -1
  111. package/dist/esm/node_modules/uuid/dist/esm-browser/stringify.js +1 -1
  112. package/dist/esm/node_modules/uuid/dist/esm-browser/v4.js +1 -1
  113. package/dist/esm/systems/BrandCore/colorRamps.js +1 -1
  114. package/dist/esm/systems/Platform/AISummary/AISummary.js +1 -1
  115. package/dist/esm/systems/Platform/utils/mapQuestionTypeToLabel.js +1 -1
  116. package/dist/esm/theme/theme.hooks.js +1 -1
  117. package/dist/esm/theme/theme.js +1 -1
  118. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +1 -1
  119. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +1 -1
  120. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +1 -1
  121. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +1 -1
  122. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +1 -1
  123. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +1 -1
  124. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
  125. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +1 -1
  126. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +1 -1
  127. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
  128. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
  129. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +1 -1
  130. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +1 -1
  131. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
  132. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +1 -1
  133. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +1 -1
  135. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +1 -1
  136. package/dist/node_modules/framer-motion/dist/es/motion/index.js +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +1 -1
  139. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +1 -1
  140. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +1 -1
  141. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +1 -1
  142. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +1 -1
  143. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +1 -1
  144. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +1 -1
  145. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +1 -1
  146. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +1 -1
  147. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
  148. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +1 -1
  149. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +1 -1
  150. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +1 -1
  151. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +1 -1
  152. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +1 -0
  153. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +1 -1
  154. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +1 -0
  155. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +1 -1
  156. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +1 -0
  157. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +1 -0
  158. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +1 -1
  159. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +1 -1
  160. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +1 -0
  161. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +1 -1
  162. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +1 -1
  163. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +1 -0
  164. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +1 -0
  166. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +1 -1
  167. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +1 -0
  168. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +1 -0
  169. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +1 -1
  170. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +1 -1
  171. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +1 -1
  172. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +1 -1
  173. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
  174. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +1 -0
  175. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +1 -0
  176. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +1 -0
  177. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +1 -0
  178. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +1 -1
  179. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1 -0
  180. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +1 -0
  181. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +1 -0
  182. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +1 -0
  183. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +1 -0
  184. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +1 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +1 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +1 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +1 -0
  188. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +1 -0
  189. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +1 -0
  190. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +1 -0
  191. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +1 -0
  192. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +1 -0
  193. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +1 -0
  194. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +1 -0
  195. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +1 -0
  196. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +1 -0
  197. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +1 -0
  198. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +1 -0
  199. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +1 -1
  200. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +1 -0
  201. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +1 -0
  202. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +1 -0
  203. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +1 -0
  204. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +1 -0
  205. package/dist/node_modules/motion-dom/dist/es/resize/index.js +1 -0
  206. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +1 -0
  207. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +1 -1
  208. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +1 -1
  209. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +1 -1
  210. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +1 -1
  211. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +1 -1
  212. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +1 -0
  213. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +1 -1
  214. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +1 -1
  215. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +1 -1
  216. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +1 -1
  217. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +1 -0
  218. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +1 -0
  219. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +1 -1
  220. package/dist/node_modules/motion-utils/dist/es/errors.js +1 -1
  221. package/dist/node_modules/motion-utils/dist/es/is-object.js +1 -1
  222. package/dist/node_modules/motion-utils/dist/es/pipe.js +1 -1
  223. package/dist/node_modules/motion-utils/dist/es/progress.js +1 -1
  224. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +1 -1
  225. package/dist/node_modules/uuid/dist/esm-browser/rng.js +1 -1
  226. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +1 -1
  227. package/dist/node_modules/uuid/dist/esm-browser/v4.js +1 -1
  228. package/dist/systems/BrandCore/Icon/components/Add.d.ts +2 -2
  229. package/dist/systems/BrandCore/Icon/components/Ai.d.ts +2 -2
  230. package/dist/systems/BrandCore/Icon/components/AlertDot.d.ts +2 -2
  231. package/dist/systems/BrandCore/Icon/components/ArrowDown.d.ts +2 -2
  232. package/dist/systems/BrandCore/Icon/components/ArrowLeft.d.ts +2 -2
  233. package/dist/systems/BrandCore/Icon/components/ArrowRight.d.ts +2 -2
  234. package/dist/systems/BrandCore/Icon/components/ArrowUp.d.ts +2 -2
  235. package/dist/systems/BrandCore/Icon/components/AttachFile.d.ts +2 -2
  236. package/dist/systems/BrandCore/Icon/components/BadgeCross.d.ts +2 -2
  237. package/dist/systems/BrandCore/Icon/components/BadgeCrossInCircle.d.ts +2 -2
  238. package/dist/systems/BrandCore/Icon/components/BadgeFlag.d.ts +2 -2
  239. package/dist/systems/BrandCore/Icon/components/BadgeFlagInCircle.d.ts +2 -2
  240. package/dist/systems/BrandCore/Icon/components/BadgeHyphen.d.ts +2 -2
  241. package/dist/systems/BrandCore/Icon/components/BadgeHyphenInCircle.d.ts +2 -2
  242. package/dist/systems/BrandCore/Icon/components/BadgeQuestion.d.ts +2 -2
  243. package/dist/systems/BrandCore/Icon/components/BadgeQuestionInCircle.d.ts +2 -2
  244. package/dist/systems/BrandCore/Icon/components/BadgeThumbUp.d.ts +2 -2
  245. package/dist/systems/BrandCore/Icon/components/BadgeThumbUpInCircle.d.ts +2 -2
  246. package/dist/systems/BrandCore/Icon/components/BadgeTick.d.ts +2 -2
  247. package/dist/systems/BrandCore/Icon/components/BadgeTickInCircle.d.ts +2 -2
  248. package/dist/systems/BrandCore/Icon/components/BatteryFull.d.ts +2 -2
  249. package/dist/systems/BrandCore/Icon/components/BrandLogomark.d.ts +2 -2
  250. package/dist/systems/BrandCore/Icon/components/BrandWordmark.d.ts +2 -2
  251. package/dist/systems/BrandCore/Icon/components/Cancel.d.ts +2 -2
  252. package/dist/systems/BrandCore/Icon/components/Chat.d.ts +2 -2
  253. package/dist/systems/BrandCore/Icon/components/Check.d.ts +2 -2
  254. package/dist/systems/BrandCore/Icon/components/CheckCircle.d.ts +2 -2
  255. package/dist/systems/BrandCore/Icon/components/CheckCircleFilled.d.ts +2 -2
  256. package/dist/systems/BrandCore/Icon/components/CheckDouble.d.ts +2 -2
  257. package/dist/systems/BrandCore/Icon/components/ChevronDown.d.ts +2 -2
  258. package/dist/systems/BrandCore/Icon/components/ChevronLeft.d.ts +2 -2
  259. package/dist/systems/BrandCore/Icon/components/ChevronRight.d.ts +2 -2
  260. package/dist/systems/BrandCore/Icon/components/ChevronUp.d.ts +2 -2
  261. package/dist/systems/BrandCore/Icon/components/Close.d.ts +2 -2
  262. package/dist/systems/BrandCore/Icon/components/Comment.d.ts +2 -2
  263. package/dist/systems/BrandCore/Icon/components/CommentFilled.d.ts +2 -2
  264. package/dist/systems/BrandCore/Icon/components/Compress.d.ts +2 -2
  265. package/dist/systems/BrandCore/Icon/components/Controls.d.ts +2 -2
  266. package/dist/systems/BrandCore/Icon/components/Copy.d.ts +2 -2
  267. package/dist/systems/BrandCore/Icon/components/Crosshair.d.ts +2 -2
  268. package/dist/systems/BrandCore/Icon/components/Dashboard.d.ts +2 -2
  269. package/dist/systems/BrandCore/Icon/components/DataBar.d.ts +2 -2
  270. package/dist/systems/BrandCore/Icon/components/Delete.d.ts +2 -2
  271. package/dist/systems/BrandCore/Icon/components/Document.d.ts +2 -2
  272. package/dist/systems/BrandCore/Icon/components/Dollar.d.ts +2 -2
  273. package/dist/systems/BrandCore/Icon/components/DragHandle.d.ts +2 -2
  274. package/dist/systems/BrandCore/Icon/components/DragSelect.d.ts +2 -2
  275. package/dist/systems/BrandCore/Icon/components/Edit.d.ts +2 -2
  276. package/dist/systems/BrandCore/Icon/components/Email.d.ts +2 -2
  277. package/dist/systems/BrandCore/Icon/components/Emoticon.d.ts +2 -2
  278. package/dist/systems/BrandCore/Icon/components/Error.d.ts +2 -2
  279. package/dist/systems/BrandCore/Icon/components/Euro.d.ts +2 -2
  280. package/dist/systems/BrandCore/Icon/components/Expand.d.ts +2 -2
  281. package/dist/systems/BrandCore/Icon/components/ExpandWindow.d.ts +2 -2
  282. package/dist/systems/BrandCore/Icon/components/Eye.d.ts +2 -2
  283. package/dist/systems/BrandCore/Icon/components/EyeOff.d.ts +2 -2
  284. package/dist/systems/BrandCore/Icon/components/FilterList.d.ts +2 -2
  285. package/dist/systems/BrandCore/Icon/components/Fingerprint.d.ts +2 -2
  286. package/dist/systems/BrandCore/Icon/components/FocusHollow.d.ts +2 -2
  287. package/dist/systems/BrandCore/Icon/components/FocusPoint.d.ts +2 -2
  288. package/dist/systems/BrandCore/Icon/components/Folder.d.ts +2 -2
  289. package/dist/systems/BrandCore/Icon/components/FormatBold.d.ts +2 -2
  290. package/dist/systems/BrandCore/Icon/components/FormatItalic.d.ts +2 -2
  291. package/dist/systems/BrandCore/Icon/components/FormatUnderlined.d.ts +2 -2
  292. package/dist/systems/BrandCore/Icon/components/Gift.d.ts +2 -2
  293. package/dist/systems/BrandCore/Icon/components/GridView.d.ts +2 -2
  294. package/dist/systems/BrandCore/Icon/components/GridViewFilled.d.ts +2 -2
  295. package/dist/systems/BrandCore/Icon/components/GridViewLarge.d.ts +2 -2
  296. package/dist/systems/BrandCore/Icon/components/GridViewSmall.d.ts +2 -2
  297. package/dist/systems/BrandCore/Icon/components/Hand.d.ts +2 -2
  298. package/dist/systems/BrandCore/Icon/components/Help.d.ts +2 -2
  299. package/dist/systems/BrandCore/Icon/components/Home.d.ts +2 -2
  300. package/dist/systems/BrandCore/Icon/components/HomeFilled.d.ts +2 -2
  301. package/dist/systems/BrandCore/Icon/components/Image.d.ts +2 -2
  302. package/dist/systems/BrandCore/Icon/components/ImageAdd.d.ts +2 -2
  303. package/dist/systems/BrandCore/Icon/components/ImageNo.d.ts +2 -2
  304. package/dist/systems/BrandCore/Icon/components/ImageSearch.d.ts +2 -2
  305. package/dist/systems/BrandCore/Icon/components/Info.d.ts +2 -2
  306. package/dist/systems/BrandCore/Icon/components/InfoFilled.d.ts +2 -2
  307. package/dist/systems/BrandCore/Icon/components/Keyboard.d.ts +2 -2
  308. package/dist/systems/BrandCore/Icon/components/Label.d.ts +2 -2
  309. package/dist/systems/BrandCore/Icon/components/Lasso.d.ts +2 -2
  310. package/dist/systems/BrandCore/Icon/components/Layers.d.ts +2 -2
  311. package/dist/systems/BrandCore/Icon/components/Lightbulb.d.ts +2 -2
  312. package/dist/systems/BrandCore/Icon/components/LinearScale.d.ts +2 -2
  313. package/dist/systems/BrandCore/Icon/components/Link.d.ts +2 -2
  314. package/dist/systems/BrandCore/Icon/components/ListView.d.ts +2 -2
  315. package/dist/systems/BrandCore/Icon/components/Lock.d.ts +2 -2
  316. package/dist/systems/BrandCore/Icon/components/Menu.d.ts +2 -2
  317. package/dist/systems/BrandCore/Icon/components/MenuOpen.d.ts +2 -2
  318. package/dist/systems/BrandCore/Icon/components/Microphone.d.ts +2 -2
  319. package/dist/systems/BrandCore/Icon/components/MicrophoneOff.d.ts +2 -2
  320. package/dist/systems/BrandCore/Icon/components/Monitor.d.ts +2 -2
  321. package/dist/systems/BrandCore/Icon/components/MoreHorizontal.d.ts +2 -2
  322. package/dist/systems/BrandCore/Icon/components/MoreVertical.d.ts +2 -2
  323. package/dist/systems/BrandCore/Icon/components/NavPushDown.d.ts +2 -2
  324. package/dist/systems/BrandCore/Icon/components/NavPushLeft.d.ts +2 -2
  325. package/dist/systems/BrandCore/Icon/components/NavPushRight.d.ts +2 -2
  326. package/dist/systems/BrandCore/Icon/components/NavPushUp.d.ts +2 -2
  327. package/dist/systems/BrandCore/Icon/components/NavToggle.d.ts +2 -2
  328. package/dist/systems/BrandCore/Icon/components/NetworkSignalStrength.d.ts +2 -2
  329. package/dist/systems/BrandCore/Icon/components/Notification.d.ts +2 -2
  330. package/dist/systems/BrandCore/Icon/components/Number0.d.ts +2 -2
  331. package/dist/systems/BrandCore/Icon/components/Number1.d.ts +2 -2
  332. package/dist/systems/BrandCore/Icon/components/Number10.d.ts +2 -2
  333. package/dist/systems/BrandCore/Icon/components/Number11.d.ts +2 -2
  334. package/dist/systems/BrandCore/Icon/components/Number12.d.ts +2 -2
  335. package/dist/systems/BrandCore/Icon/components/Number13.d.ts +2 -2
  336. package/dist/systems/BrandCore/Icon/components/Number14.d.ts +2 -2
  337. package/dist/systems/BrandCore/Icon/components/Number15.d.ts +2 -2
  338. package/dist/systems/BrandCore/Icon/components/Number16.d.ts +2 -2
  339. package/dist/systems/BrandCore/Icon/components/Number17.d.ts +2 -2
  340. package/dist/systems/BrandCore/Icon/components/Number18.d.ts +2 -2
  341. package/dist/systems/BrandCore/Icon/components/Number19.d.ts +2 -2
  342. package/dist/systems/BrandCore/Icon/components/Number2.d.ts +2 -2
  343. package/dist/systems/BrandCore/Icon/components/Number20.d.ts +2 -2
  344. package/dist/systems/BrandCore/Icon/components/Number21.d.ts +2 -2
  345. package/dist/systems/BrandCore/Icon/components/Number22.d.ts +2 -2
  346. package/dist/systems/BrandCore/Icon/components/Number23.d.ts +2 -2
  347. package/dist/systems/BrandCore/Icon/components/Number24.d.ts +2 -2
  348. package/dist/systems/BrandCore/Icon/components/Number25.d.ts +2 -2
  349. package/dist/systems/BrandCore/Icon/components/Number26.d.ts +2 -2
  350. package/dist/systems/BrandCore/Icon/components/Number27.d.ts +2 -2
  351. package/dist/systems/BrandCore/Icon/components/Number28.d.ts +2 -2
  352. package/dist/systems/BrandCore/Icon/components/Number29.d.ts +2 -2
  353. package/dist/systems/BrandCore/Icon/components/Number3.d.ts +2 -2
  354. package/dist/systems/BrandCore/Icon/components/Number30.d.ts +2 -2
  355. package/dist/systems/BrandCore/Icon/components/Number31.d.ts +2 -2
  356. package/dist/systems/BrandCore/Icon/components/Number32.d.ts +2 -2
  357. package/dist/systems/BrandCore/Icon/components/Number33.d.ts +2 -2
  358. package/dist/systems/BrandCore/Icon/components/Number34.d.ts +2 -2
  359. package/dist/systems/BrandCore/Icon/components/Number35.d.ts +2 -2
  360. package/dist/systems/BrandCore/Icon/components/Number36.d.ts +2 -2
  361. package/dist/systems/BrandCore/Icon/components/Number37.d.ts +2 -2
  362. package/dist/systems/BrandCore/Icon/components/Number38.d.ts +2 -2
  363. package/dist/systems/BrandCore/Icon/components/Number39.d.ts +2 -2
  364. package/dist/systems/BrandCore/Icon/components/Number4.d.ts +2 -2
  365. package/dist/systems/BrandCore/Icon/components/Number40.d.ts +2 -2
  366. package/dist/systems/BrandCore/Icon/components/Number41.d.ts +2 -2
  367. package/dist/systems/BrandCore/Icon/components/Number42.d.ts +2 -2
  368. package/dist/systems/BrandCore/Icon/components/Number43.d.ts +2 -2
  369. package/dist/systems/BrandCore/Icon/components/Number44.d.ts +2 -2
  370. package/dist/systems/BrandCore/Icon/components/Number45.d.ts +2 -2
  371. package/dist/systems/BrandCore/Icon/components/Number46.d.ts +2 -2
  372. package/dist/systems/BrandCore/Icon/components/Number47.d.ts +2 -2
  373. package/dist/systems/BrandCore/Icon/components/Number48.d.ts +2 -2
  374. package/dist/systems/BrandCore/Icon/components/Number49.d.ts +2 -2
  375. package/dist/systems/BrandCore/Icon/components/Number5.d.ts +2 -2
  376. package/dist/systems/BrandCore/Icon/components/Number50.d.ts +2 -2
  377. package/dist/systems/BrandCore/Icon/components/Number6.d.ts +2 -2
  378. package/dist/systems/BrandCore/Icon/components/Number7.d.ts +2 -2
  379. package/dist/systems/BrandCore/Icon/components/Number8.d.ts +2 -2
  380. package/dist/systems/BrandCore/Icon/components/Number9.d.ts +2 -2
  381. package/dist/systems/BrandCore/Icon/components/OpenInNew.d.ts +2 -2
  382. package/dist/systems/BrandCore/Icon/components/Pause.d.ts +2 -2
  383. package/dist/systems/BrandCore/Icon/components/PaymentCardAmex.d.ts +2 -2
  384. package/dist/systems/BrandCore/Icon/components/PaymentCardMastercard.d.ts +2 -2
  385. package/dist/systems/BrandCore/Icon/components/PaymentCardVisa.d.ts +2 -2
  386. package/dist/systems/BrandCore/Icon/components/Phone.d.ts +2 -2
  387. package/dist/systems/BrandCore/Icon/components/Pin.d.ts +2 -2
  388. package/dist/systems/BrandCore/Icon/components/PinFilled.d.ts +2 -2
  389. package/dist/systems/BrandCore/Icon/components/PinLocation.d.ts +2 -2
  390. package/dist/systems/BrandCore/Icon/components/Play.d.ts +2 -2
  391. package/dist/systems/BrandCore/Icon/components/PlayCircle.d.ts +2 -2
  392. package/dist/systems/BrandCore/Icon/components/PlayVideo.d.ts +2 -2
  393. package/dist/systems/BrandCore/Icon/components/Pound.d.ts +2 -2
  394. package/dist/systems/BrandCore/Icon/components/Rank.d.ts +2 -2
  395. package/dist/systems/BrandCore/Icon/components/Redo.d.ts +2 -2
  396. package/dist/systems/BrandCore/Icon/components/ReduceWindow.d.ts +2 -2
  397. package/dist/systems/BrandCore/Icon/components/Remove.d.ts +2 -2
  398. package/dist/systems/BrandCore/Icon/components/Replay.d.ts +2 -2
  399. package/dist/systems/BrandCore/Icon/components/RotateDevice.d.ts +2 -2
  400. package/dist/systems/BrandCore/Icon/components/Save.d.ts +2 -2
  401. package/dist/systems/BrandCore/Icon/components/Search.d.ts +2 -2
  402. package/dist/systems/BrandCore/Icon/components/Select.d.ts +2 -2
  403. package/dist/systems/BrandCore/Icon/components/Send.d.ts +2 -2
  404. package/dist/systems/BrandCore/Icon/components/SentimentDoubleDown.d.ts +2 -2
  405. package/dist/systems/BrandCore/Icon/components/SentimentDoubleUp.d.ts +2 -2
  406. package/dist/systems/BrandCore/Icon/components/SentimentDown.d.ts +2 -2
  407. package/dist/systems/BrandCore/Icon/components/SentimentFlat.d.ts +2 -2
  408. package/dist/systems/BrandCore/Icon/components/SentimentUp.d.ts +2 -2
  409. package/dist/systems/BrandCore/Icon/components/Settings.d.ts +2 -2
  410. package/dist/systems/BrandCore/Icon/components/Shuffle.d.ts +2 -2
  411. package/dist/systems/BrandCore/Icon/components/SocialGoogleFullColour.d.ts +2 -2
  412. package/dist/systems/BrandCore/Icon/components/SocialLinkedinFullColour.d.ts +2 -2
  413. package/dist/systems/BrandCore/Icon/components/SocialLinkedinSingleColour.d.ts +2 -2
  414. package/dist/systems/BrandCore/Icon/components/SocialMediumSingleColour.d.ts +2 -2
  415. package/dist/systems/BrandCore/Icon/components/SocialYoutubeSingleColour.d.ts +2 -2
  416. package/dist/systems/BrandCore/Icon/components/Sort.d.ts +2 -2
  417. package/dist/systems/BrandCore/Icon/components/Star.d.ts +2 -2
  418. package/dist/systems/BrandCore/Icon/components/StarFilled.d.ts +2 -2
  419. package/dist/systems/BrandCore/Icon/components/StarHalf.d.ts +2 -2
  420. package/dist/systems/BrandCore/Icon/components/Stop.d.ts +2 -2
  421. package/dist/systems/BrandCore/Icon/components/Tablet.d.ts +2 -2
  422. package/dist/systems/BrandCore/Icon/components/Test.d.ts +2 -2
  423. package/dist/systems/BrandCore/Icon/components/TestEdit.d.ts +2 -2
  424. package/dist/systems/BrandCore/Icon/components/TestPending.d.ts +2 -2
  425. package/dist/systems/BrandCore/Icon/components/ThumbDown.d.ts +2 -2
  426. package/dist/systems/BrandCore/Icon/components/ThumbUp.d.ts +2 -2
  427. package/dist/systems/BrandCore/Icon/components/ThumbsUpDown.d.ts +2 -2
  428. package/dist/systems/BrandCore/Icon/components/Time.d.ts +2 -2
  429. package/dist/systems/BrandCore/Icon/components/TimeFilled.d.ts +2 -2
  430. package/dist/systems/BrandCore/Icon/components/Translate.d.ts +2 -2
  431. package/dist/systems/BrandCore/Icon/components/Unfold.d.ts +2 -2
  432. package/dist/systems/BrandCore/Icon/components/Upload.d.ts +2 -2
  433. package/dist/systems/BrandCore/Icon/components/UploadCloud.d.ts +2 -2
  434. package/dist/systems/BrandCore/Icon/components/UploadCloudFilled.d.ts +2 -2
  435. package/dist/systems/BrandCore/Icon/components/UserSearch.d.ts +2 -2
  436. package/dist/systems/BrandCore/Icon/components/Users.d.ts +2 -2
  437. package/dist/systems/BrandCore/Icon/components/VolumeHigh.d.ts +2 -2
  438. package/dist/systems/BrandCore/Icon/components/VolumeLow.d.ts +2 -2
  439. package/dist/systems/BrandCore/Icon/components/VolumeMute.d.ts +2 -2
  440. package/dist/systems/BrandCore/Icon/components/Warning.d.ts +2 -2
  441. package/dist/systems/BrandCore/Icon/components/Wifi.d.ts +2 -2
  442. package/dist/systems/BrandCore/Icon/components/Work.d.ts +2 -2
  443. package/dist/systems/BrandCore/Icon/components/ZoomIn.d.ts +2 -2
  444. package/dist/systems/BrandCore/Icon/components/ZoomOut.d.ts +2 -2
  445. package/dist/systems/Platform/ForgotYourPassword/ForgotYourPasswordForm.d.ts +2 -2
  446. package/dist/systems/Platform/LinkExpired/LinkExpired.d.ts +2 -2
  447. package/dist/systems/Platform/LoginForm/LoginForm.d.ts +2 -2
  448. package/dist/systems/Platform/MFACodeVerify/MFACodeVerify.d.ts +2 -2
  449. package/dist/systems/Platform/MiniResultCard/graphVariants.d.ts +5 -5
  450. package/dist/systems/Platform/ResetPassword/ResetPasswordForm.d.ts +2 -2
  451. package/dist/systems/Platform/SignUpForm/SignUpForm.d.ts +2 -2
  452. package/dist/systems/Platform/SliderGraph/_partials/StyledComponents.d.ts +8 -8
  453. package/dist/systems/Platform/utils/mapQuestionTypeToLabel.js +1 -1
  454. package/dist/systems/WebCore/ButtonBase/ButtonBase.d.ts +2 -2
  455. package/dist/systems/WebCore/Checkbox/Checkbox.d.ts +1 -1
  456. package/dist/systems/WebCore/FormControlLabel/FormControlLabel.d.ts +1 -1
  457. package/dist/systems/WebCore/FormGenerator/types.d.ts +1 -1
  458. package/dist/systems/WebCore/IconButtonBase/IconButton.variant-helpers.d.ts +1 -1
  459. package/dist/systems/WebCore/InputFieldBase/InputFieldBase.d.ts +1 -1
  460. package/dist/systems/WebCore/Menu/Menu.d.ts +1 -1
  461. package/dist/systems/WebCore/Popper/Popper.d.ts +3 -3
  462. package/dist/systems/WebCore/PoweredByWatermarkLogo/PoweredByWatermarkLogo.d.ts +2 -2
  463. package/dist/systems/WebCore/SortableList/SortableList.d.ts +2 -2
  464. package/dist/systems/WebCore/SortableList/components/SortableItem/SortableItem.d.ts +4 -4
  465. package/dist/systems/WebCore/Typography/Typography.d.ts +1 -1
  466. package/dist/theme/theme.hooks.d.ts +1 -1
  467. package/package.json +91 -75
  468. package/dist/esm/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -1
  469. package/dist/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -1
  470. package/dist/esm/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -1
  471. package/dist/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -1
  472. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -1
  473. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -1
  474. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -1
  475. package/dist/esm/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -1
  476. package/dist/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -1
  477. package/dist/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -1
  478. package/dist/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -1
  479. package/dist/esm/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -1
  480. package/dist/esm/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1
  481. package/dist/esm/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -1
  482. package/dist/esm/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -1
  483. package/dist/esm/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -1
  484. package/dist/esm/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -1
  485. package/dist/esm/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -1
  486. package/dist/esm/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -1
  487. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -1
  488. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -1
  489. package/dist/esm/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -1
  490. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -1
  491. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -1
  492. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -1
  493. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -1
  494. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -1
  495. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -1
  496. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -1
  497. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -1
  498. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -1
  499. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -1
  500. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -1
  501. package/dist/esm/node_modules/framer-motion/dist/es/utils/delay.js +0 -1
  502. package/dist/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -1
  503. package/dist/esm/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -1
  504. package/dist/esm/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -1
  505. package/dist/esm/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -1
  506. package/dist/esm/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -1
  507. package/dist/esm/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -1
  508. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -1
  509. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -1
  510. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -1
  511. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -1
  512. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -1
  513. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -1
  514. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -1
  515. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -1
  516. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -1
  517. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -1
  518. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -1
  519. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1
  520. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -1
  521. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -1
  522. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -1
  523. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -1
  524. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -1
  525. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -1
  526. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -1
  527. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -1
  528. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -1
  529. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -1
  530. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -1
  531. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -1
  532. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -1
  533. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -1
  534. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -1
  535. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -1
  536. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -1
  537. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -1
  538. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -1
  539. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -1
  540. package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -1
  541. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -1
  542. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -1
  543. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -1
  544. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -1
  545. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -1
  546. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -1
  547. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
  548. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
  549. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
  550. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
  551. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
  552. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
  553. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
  554. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
  555. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
  556. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
  557. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
  558. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
  559. /package/dist/esm/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
  560. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
  561. /package/dist/esm/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
  562. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
  563. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
  564. /package/dist/esm/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
  565. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
  566. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
  567. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
  568. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
  569. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
  570. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
  571. /package/dist/esm/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
  572. /package/dist/esm/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
  573. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
  574. /package/dist/esm/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
  575. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
  576. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
  577. /package/dist/esm/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
  578. /package/dist/esm/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
  579. /package/dist/esm/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.js +0 -0
  580. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
  581. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
  582. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
  583. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
  584. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
  585. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
  586. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
  587. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
  588. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
  589. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
  590. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
  591. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
  592. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
  593. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
  594. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
  595. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
  596. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
  597. /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
  598. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
  599. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
  600. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
  601. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
  602. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
  603. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
  604. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
  605. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
  606. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
  607. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
  608. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
  609. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
  610. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
  611. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
  612. /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.js +0 -0
@@ -1 +1 @@
1
- import{isControllingVariants as i}from"../../render/utils/is-controlling-variants.js";import{isVariantLabel as r}from"../../render/utils/is-variant-label.js";function t(t,n){if(i(t)){const{initial:i,animate:n}=t;return{initial:!1===i||r(i)?i:void 0,animate:r(n)?n:void 0}}return!1!==t.inherit?n:{}}export{t as getCurrentTreeVariants};
1
+ import{isControllingVariants as i}from"../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.js";import{isVariantLabel as t}from"../../../../../motion-dom/dist/es/render/utils/is-variant-label.js";function n(n,o){if(i(n)){const{initial:i,animate:o}=n;return{initial:!1===i||t(i)?i:void 0,animate:t(o)?o:void 0}}return!1!==n.inherit?o:{}}export{n as getCurrentTreeVariants};
@@ -1 +1 @@
1
- import{addDomEvent as o}from"./add-dom-event.js";import{addPointerInfo as r}from"./event-info.js";function t(t,e,n,m){return o(t,e,r(n),m)}export{t as addPointerEvent};
1
+ import{addPointerInfo as o}from"./event-info.js";import{addDomEvent as t}from"../../../../motion-dom/dist/es/events/add-dom-event.js";function e(e,n,m,r){return t(e,n,o(m),r)}export{e as addPointerEvent};
@@ -1 +1 @@
1
- import{animateMotionValue as t}from"../../animation/interfaces/motion-value.js";import{addDomEvent as s}from"../../events/add-dom-event.js";import{addPointerEvent as i}from"../../events/add-pointer-event.js";import{extractEventInfo as n}from"../../events/event-info.js";import{convertBoxToBoundingBox as o,convertBoundingBoxToBox as e}from"../../projection/geometry/conversion.js";import{calcLength as r}from"../../projection/geometry/delta-calc.js";import{createBox as a}from"../../projection/geometry/models.js";import{eachAxis as l}from"../../projection/utils/each-axis.js";import{measurePageBox as c}from"../../projection/utils/measure.js";import{getContextWindow as h}from"../../utils/get-context-window.js";import{isRefObject as u}from"../../utils/is-ref-object.js";import{addValueToWillChange as m}from"../../value/use-will-change/add-will-change.js";import{PanSession as g}from"../pan/PanSession.js";import{applyConstraints as p,calcRelativeConstraints as d,resolveDragElastic as f,calcViewportConstraints as v,defaultElastic as P,rebaseAxisConstraints as E,calcOrigin as j}from"./utils/constraints.js";import{frame as x}from"../../../../../motion-dom/dist/es/frameloop/frame.js";import{invariant as D}from"../../../../../motion-utils/dist/es/errors.js";import{setDragLock as A}from"../../../../../motion-dom/dist/es/gestures/drag/state/set-active.js";import{percent as y}from"../../../../../motion-dom/dist/es/value/types/numbers/units.js";import{mixNumber as C}from"../../../../../motion-dom/dist/es/utils/mix/number.js";const M=new WeakMap;class S{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=a(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&!1===o.isPresent)return;const{dragSnapToOrigin:e}=this.getProps();this.panSession=new g(t,{onSessionStart:t=>{const{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(n(t).point)},onStart:(t,s)=>{const{drag:i,dragPropagation:n,onDragStart:o}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=A(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=s,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),l(t=>{let s=this.getAxisMotionValue(t).get()||0;if(y.test(s)){const{projection:i}=this.visualElement;if(i&&i.layout){const n=i.layout.layoutBox[t];if(n){s=r(n)*(parseFloat(s)/100)}}}this.originPoint[t]=s}),o&&x.postRender(()=>o(t,s)),m(this.visualElement,"transform");const{animationState:e}=this.visualElement;e&&e.setActive("whileDrag",!0)},onMove:(t,s)=>{this.latestPointerEvent=t,this.latestPanInfo=s;const{dragPropagation:i,dragDirectionLock:n,onDirectionLock:o,onDrag:e}=this.getProps();if(!i&&!this.openDragLock)return;const{offset:r}=s;if(n&&null===this.currentDirection)return this.currentDirection=function(t,s=10){let i=null;Math.abs(t.y)>s?i="y":Math.abs(t.x)>s&&(i="x");return i}(r),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",s.point,r),this.updateAxis("y",s.point,r),this.visualElement.render(),e&&e(t,s)},onSessionEnd:(t,s)=>{this.latestPointerEvent=t,this.latestPanInfo=s,this.stop(t,s),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>l(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:e,distanceThreshold:i,contextWindow:h(this.visualElement)})}stop(t,s){const i=t||this.latestPointerEvent,n=s||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!i)return;const{velocity:e}=n;this.startAnimation(e);const{onDragEnd:r}=this.getProps();r&&x.postRender(()=>r(i,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,i){const{drag:n}=this.getProps();if(!i||!L(t,n,this.currentDirection))return;const o=this.getAxisMotionValue(t);let e=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(e=p(e,this.constraints[t],this.elastic[t])),o.set(e)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&u(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!i)&&d(i.layoutBox,t),this.elastic=f(s),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&l(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=E(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!u(t))return!1;const i=t.current;D(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const r=c(i,n.root,this.visualElement.getTransformPagePoint());let a=v(n.layout.layoutBox,r);if(s){const t=s(o(a));this.hasMutatedConstraints=!!t,t&&(a=e(t))}return a}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:n,dragTransition:o,dragSnapToOrigin:e,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},c=l(r=>{if(!L(r,s,this.currentDirection))return;let l=a&&a[r]||{};e&&(l={min:0,max:0});const c=n?200:1e6,h=n?40:1e7,u={type:"inertia",velocity:i?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,u)});return Promise.all(c).then(r)}startAxisValueAnimation(s,i){const n=this.getAxisMotionValue(s);return m(this.visualElement,s),n.start(t(s,n,0,i,this.visualElement,!1))}stopAnimation(){l(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){l(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),n=i[s];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){l(s=>{const{drag:i}=this.getProps();if(!L(s,i,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(s);if(n&&n.layout){const{min:i,max:e}=n.layout.layoutBox[s];o.set(t[s]-C(i,e,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!u(s)||!i||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};l(t=>{const s=this.getAxisMotionValue(t);if(s&&!1!==this.constraints){const i=s.get();n[t]=j({min:i,max:i},this.constraints[t])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),l(s=>{if(!L(s,t,null))return;const i=this.getAxisMotionValue(s),{min:o,max:e}=this.constraints[s];i.set(C(o,e,n[s]))})}addListeners(){if(!this.visualElement.current)return;M.set(this.visualElement,this);const t=this.visualElement.current,n=i(t,"pointerdown",t=>{const{drag:s,dragListener:i=!0}=this.getProps();s&&i&&this.start(t)}),o=()=>{const{dragConstraints:t}=this.getProps();u(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:e}=this.visualElement,r=e.addEventListener("measure",o);e&&!e.layout&&(e.root&&e.root.updateScroll(),e.updateLayout()),x.read(o);const a=s(window,"resize",()=>this.scalePositionWithinConstraints()),c=e.addEventListener("didUpdate",({delta:t,hasLayoutChanged:s})=>{this.isDragging&&s&&(l(s=>{const i=this.getAxisMotionValue(s);i&&(this.originPoint[s]+=t[s].translate,i.set(i.get()+t[s].translate))}),this.visualElement.render())});return()=>{a(),n(),r(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:e=P,dragMomentum:r=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:n,dragConstraints:o,dragElastic:e,dragMomentum:r}}}function L(t,s,i){return!(!0!==s&&s!==t||null!==i&&i!==t)}export{S as VisualElementDragControls,M as elementDragControls};
1
+ import{addPointerEvent as t}from"../../events/add-pointer-event.js";import{extractEventInfo as s}from"../../events/event-info.js";import{getContextWindow as i}from"../../utils/get-context-window.js";import{isRefObject as n}from"../../utils/is-ref-object.js";import{PanSession as o}from"../pan/PanSession.js";import{applyConstraints as e,calcRelativeConstraints as r,resolveDragElastic as a,calcViewportConstraints as l,defaultElastic as c,rebaseAxisConstraints as u,calcOrigin as h}from"./utils/constraints.js";import{createBox as m}from"../../../../../motion-dom/dist/es/projection/geometry/models.js";import{frame as g}from"../../../../../motion-dom/dist/es/frameloop/frame.js";import{eachAxis as d}from"../../../../../motion-dom/dist/es/projection/utils/each-axis.js";import{invariant as p}from"../../../../../motion-utils/dist/es/errors.js";import{measurePageBox as f}from"../../../../../motion-dom/dist/es/projection/utils/measure.js";import{convertBoxToBoundingBox as v,convertBoundingBoxToBox as P}from"../../../../../motion-dom/dist/es/projection/geometry/conversion.js";import{addValueToWillChange as E}from"../../../../../motion-dom/dist/es/value/will-change/add-will-change.js";import{animateMotionValue as j}from"../../../../../motion-dom/dist/es/animation/interfaces/motion-value.js";import{addDomEvent as x}from"../../../../../motion-dom/dist/es/events/add-dom-event.js";import{setDragLock as D}from"../../../../../motion-dom/dist/es/gestures/drag/state/set-active.js";import{resize as y}from"../../../../../motion-dom/dist/es/resize/index.js";import{percent as A}from"../../../../../motion-dom/dist/es/value/types/numbers/units.js";import{calcLength as C}from"../../../../../motion-dom/dist/es/projection/geometry/delta-calc.js";import{mixNumber as S}from"../../../../../motion-dom/dist/es/utils/mix/number.js";import{isElementTextInput as M}from"../../../../../motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js";const L=new WeakMap;class k{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=m(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:e}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:a}=this.getProps();this.panSession=new o(t,{onSessionStart:t=>{n&&this.snapToCursor(s(t).point),this.stopAnimation()},onStart:(t,s)=>{const{drag:i,dragPropagation:n,onDragStart:o}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=D(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=s,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),d(t=>{let s=this.getAxisMotionValue(t).get()||0;if(A.test(s)){const{projection:i}=this.visualElement;if(i&&i.layout){const n=i.layout.layoutBox[t];if(n){s=C(n)*(parseFloat(s)/100)}}}this.originPoint[t]=s}),o&&g.update(()=>o(t,s),!1,!0),E(this.visualElement,"transform");const{animationState:e}=this.visualElement;e&&e.setActive("whileDrag",!0)},onMove:(t,s)=>{this.latestPointerEvent=t,this.latestPanInfo=s;const{dragPropagation:i,dragDirectionLock:n,onDirectionLock:o,onDrag:e}=this.getProps();if(!i&&!this.openDragLock)return;const{offset:r}=s;if(n&&null===this.currentDirection)return this.currentDirection=function(t,s=10){let i=null;Math.abs(t.y)>s?i="y":Math.abs(t.x)>s&&(i="x");return i}(r),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",s.point,r),this.updateAxis("y",s.point,r),this.visualElement.render(),e&&g.update(()=>e(t,s),!1,!0)},onSessionEnd:(t,s)=>{this.latestPointerEvent=t,this.latestPanInfo=s,this.stop(t,s),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:e,contextWindow:i(this.visualElement),element:this.visualElement.current})}stop(t,s){const i=t||this.latestPointerEvent,n=s||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!i)return;const{velocity:e}=n;this.startAnimation(e);const{onDragEnd:r}=this.getProps();r&&g.postRender(()=>r(i,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,s,i){const{drag:n}=this.getProps();if(!i||!V(t,n,this.currentDirection))return;const o=this.getAxisMotionValue(t);let r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=e(r,this.constraints[t],this.elastic[t])),o.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&n(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!i)&&r(i.layoutBox,t),this.elastic=a(s),o!==this.constraints&&!n(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&d(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=u(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!n(t))return!1;const i=t.current;p(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;o.root&&(o.root.scroll=void 0,o.root.updateScroll());const e=f(i,o.root,this.visualElement.getTransformPagePoint());let r=l(o.layout.layoutBox,e);if(s){const t=s(v(r));this.hasMutatedConstraints=!!t,t&&(r=P(t))}return r}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:n,dragTransition:o,dragSnapToOrigin:e,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=d(r=>{if(!V(r,s,this.currentDirection))return;let l=a&&a[r]||{};!0!==e&&e!==r||(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,h)});return Promise.all(l).then(r)}startAxisValueAnimation(t,s){const i=this.getAxisMotionValue(t);return E(this.visualElement,t),i.start(j(t,i,0,s,this.visualElement,!1))}stopAnimation(){d(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[s];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){d(s=>{const{drag:i}=this.getProps();if(!V(s,i,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(s);if(n&&n.layout){const{min:i,max:e}=n.layout.layoutBox[s],r=o.get()||0;o.set(t[s]-S(i,e,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!n(s)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};d(t=>{const s=this.getAxisMotionValue(t);if(s&&!1!==this.constraints){const i=s.get();o[t]=h({min:i,max:i},this.constraints[t])}});const{transformTemplate:e}=this.visualElement.getProps();this.visualElement.current.style.transform=e?e({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),d(s=>{if(!V(s,t,null))return;const i=this.getAxisMotionValue(s),{min:n,max:e}=this.constraints[s];i.set(S(n,e,o[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;L.set(this.visualElement,this);const s=this.visualElement.current,i=t(s,"pointerdown",t=>{const{drag:i,dragListener:n=!0}=this.getProps(),o=t.target,e=o!==s&&M(o);i&&n&&!e&&this.start(t)});let o;const e=()=>{const{dragConstraints:t}=this.getProps();n(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),o||(o=function(t,s,i){const n=y(t,T(i)),o=y(s,T(i));return()=>{n(),o()}}(s,t.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,a=r.addEventListener("measure",e);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),g.read(e);const l=x(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:s})=>{this.isDragging&&s&&(d(s=>{const i=this.getAxisMotionValue(s);i&&(this.originPoint[s]+=t[s].translate,i.set(i.get()+t[s].translate))}),this.visualElement.render())});return()=>{l(),i(),a(),c&&c(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:e=c,dragMomentum:r=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:n,dragConstraints:o,dragElastic:e,dragMomentum:r}}}function T(t){let s=!0;return()=>{s?s=!1:t()}}function V(t,s,i){return!(!0!==s&&s!==t||null!==i&&i!==t)}export{k as VisualElementDragControls,L as elementDragControls};
@@ -1 +1 @@
1
- import{Feature as o}from"../../motion/features/Feature.js";import{VisualElementDragControls as s}from"./VisualElementDragControls.js";import{noop as t}from"../../../../../motion-utils/dist/es/noop.js";class r extends o{constructor(o){super(o),this.removeGroupControls=t,this.removeListeners=t,this.controls=new s(o)}mount(){const{dragControls:o}=this.node.getProps();o&&(this.removeGroupControls=o.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t}unmount(){this.removeGroupControls(),this.removeListeners()}}export{r as DragGesture};
1
+ import{VisualElementDragControls as o}from"./VisualElementDragControls.js";import{Feature as s}from"../../../../../motion-dom/dist/es/render/Feature.js";import{noop as t}from"../../../../../motion-utils/dist/es/noop.js";class r extends s{constructor(s){super(s),this.removeGroupControls=t,this.removeListeners=t,this.controls=new o(s)}mount(){const{dragControls:o}=this.node.getProps();o&&(this.removeGroupControls=o.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t}update(){const{dragControls:o}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};o!==s&&(this.removeGroupControls(),o&&(this.removeGroupControls=o.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}export{r as DragGesture};
@@ -1 +1 @@
1
- import{calcLength as n}from"../../../projection/geometry/delta-calc.js";import{mixNumber as m}from"../../../../../../motion-dom/dist/es/utils/mix/number.js";import{progress as i}from"../../../../../../motion-utils/dist/es/progress.js";import{clamp as t}from"../../../../../../motion-utils/dist/es/clamp.js";function o(n,{min:i,max:t},o){return void 0!==i&&n<i?n=o?m(i,n,o.min):Math.max(n,i):void 0!==t&&n>t&&(n=o?m(t,n,o.max):Math.min(n,t)),n}function r(n,m,i){return{min:void 0!==m?n.min+m:void 0,max:void 0!==i?n.max+i-(n.max-n.min):void 0}}function e(n,{top:m,left:i,bottom:t,right:o}){return{x:r(n.x,i,o),y:r(n.y,m,t)}}function u(n,m){let i=m.min-n.min,t=m.max-n.max;return m.max-m.min<n.max-n.min&&([i,t]=[t,i]),{min:i,max:t}}function x(n,m){return{x:u(n.x,m.x),y:u(n.y,m.y)}}function a(m,o){let r=.5;const e=n(m),u=n(o);return u>e?r=i(o.min,o.max-e,m.min):e>u&&(r=i(m.min,m.max-u,o.min)),t(0,1,r)}function s(n,m){const i={};return void 0!==m.min&&(i.min=m.min-n.min),void 0!==m.max&&(i.max=m.max-n.min),i}const c=.35;function f(n=.35){return!1===n?n=0:!0===n&&(n=c),{x:d(n,"left","right"),y:d(n,"top","bottom")}}function d(n,m,i){return{min:p(n,m),max:p(n,i)}}function p(n,m){return"number"==typeof n?n:n[m]||0}export{o as applyConstraints,a as calcOrigin,r as calcRelativeAxisConstraints,e as calcRelativeConstraints,u as calcViewportAxisConstraints,x as calcViewportConstraints,c as defaultElastic,s as rebaseAxisConstraints,d as resolveAxisElastic,f as resolveDragElastic,p as resolvePointElastic};
1
+ import{mixNumber as n}from"../../../../../../motion-dom/dist/es/utils/mix/number.js";import{calcLength as m}from"../../../../../../motion-dom/dist/es/projection/geometry/delta-calc.js";import{progress as i}from"../../../../../../motion-utils/dist/es/progress.js";import{clamp as t}from"../../../../../../motion-utils/dist/es/clamp.js";function o(m,{min:i,max:t},o){return void 0!==i&&m<i?m=o?n(i,m,o.min):Math.max(m,i):void 0!==t&&m>t&&(m=o?n(t,m,o.max):Math.min(m,t)),m}function r(n,m,i){return{min:void 0!==m?n.min+m:void 0,max:void 0!==i?n.max+i-(n.max-n.min):void 0}}function e(n,{top:m,left:i,bottom:t,right:o}){return{x:r(n.x,i,o),y:r(n.y,m,t)}}function u(n,m){let i=m.min-n.min,t=m.max-n.max;return m.max-m.min<n.max-n.min&&([i,t]=[t,i]),{min:i,max:t}}function x(n,m){return{x:u(n.x,m.x),y:u(n.y,m.y)}}function a(n,o){let r=.5;const e=m(n),u=m(o);return u>e?r=i(o.min,o.max-e,n.min):e>u&&(r=i(n.min,n.max-u,o.min)),t(0,1,r)}function s(n,m){const i={};return void 0!==m.min&&(i.min=m.min-n.min),void 0!==m.max&&(i.max=m.max-n.min),i}const c=.35;function f(n=.35){return!1===n?n=0:!0===n&&(n=c),{x:d(n,"left","right"),y:d(n,"top","bottom")}}function d(n,m,i){return{min:p(n,m),max:p(n,i)}}function p(n,m){return"number"==typeof n?n:n[m]||0}export{o as applyConstraints,a as calcOrigin,r as calcRelativeAxisConstraints,e as calcRelativeConstraints,u as calcViewportAxisConstraints,x as calcViewportConstraints,c as defaultElastic,s as rebaseAxisConstraints,d as resolveAxisElastic,f as resolveDragElastic,p as resolvePointElastic};
@@ -1 +1 @@
1
- import{addDomEvent as t}from"../events/add-dom-event.js";import{Feature as i}from"../motion/features/Feature.js";import{pipe as e}from"../../../../motion-utils/dist/es/pipe.js";class s extends i{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(i){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=e(t(this.node.current,"focus",()=>this.onFocus()),t(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}export{s as FocusGesture};
1
+ import{Feature as t}from"../../../../motion-dom/dist/es/render/Feature.js";import{pipe as i}from"../../../../motion-utils/dist/es/pipe.js";import{addDomEvent as s}from"../../../../motion-dom/dist/es/events/add-dom-event.js";class e extends t{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(i){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=i(s(this.node.current,"focus",()=>this.onFocus()),s(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}export{e as FocusGesture};
@@ -1 +1 @@
1
- import{extractEventInfo as t}from"../events/event-info.js";import{Feature as o}from"../motion/features/Feature.js";import{hover as e}from"../../../../motion-dom/dist/es/gestures/hover.js";import{frame as n}from"../../../../motion-dom/dist/es/frameloop/frame.js";function s(o,e,s){const{props:r}=o;o.animationState&&r.whileHover&&o.animationState.setActive("whileHover","Start"===s);const i=r["onHover"+s];i&&n.postRender(()=>i(e,t(e)))}class r extends o{mount(){const{current:t}=this.node;t&&(this.unmount=e(t,(t,o)=>(s(this.node,o,"Start"),t=>s(this.node,t,"End"))))}unmount(){}}export{r as HoverGesture};
1
+ import{extractEventInfo as t}from"../events/event-info.js";import{Feature as o}from"../../../../motion-dom/dist/es/render/Feature.js";import{hover as e}from"../../../../motion-dom/dist/es/gestures/hover.js";import{frame as n}from"../../../../motion-dom/dist/es/frameloop/frame.js";function s(o,e,s){const{props:r}=o;o.animationState&&r.whileHover&&o.animationState.setActive("whileHover","Start"===s);const i=r["onHover"+s];i&&n.postRender(()=>i(e,t(e)))}class r extends o{mount(){const{current:t}=this.node;t&&(this.unmount=e(t,(t,o)=>(s(this.node,o,"Start"),t=>s(this.node,t,"End"))))}unmount(){}}export{r as HoverGesture};
@@ -1 +1 @@
1
- import{addPointerEvent as t}from"../../events/add-pointer-event.js";import{extractEventInfo as n}from"../../events/event-info.js";import{distance2D as i}from"../../utils/distance.js";import{frameData as s,frame as e,cancelFrame as o}from"../../../../../motion-dom/dist/es/frameloop/frame.js";import{isPrimaryPointer as r}from"../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";import{pipe as h}from"../../../../../motion-utils/dist/es/pipe.js";import{secondsToMilliseconds as a,millisecondsToSeconds as l}from"../../../../../motion-utils/dist/es/time-conversion.js";class m{constructor(o,a,{transformPagePoint:l,contextWindow:m=window,dragSnapToOrigin:p=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=v(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,e=i(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!n&&!e)return;const{point:o}=t,{timestamp:r}=s;this.history.push({...o,timestamp:r});const{onStart:h,onMove:a}=this.handlers;n||(h&&h(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,n)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=d(n,this.transformPagePoint),e.update(this.updatePoint,!0)},this.handlePointerUp=(t,n)=>{this.end();const{onEnd:i,onSessionEnd:s,resumeAnimation:e}=this.handlers;if(this.dragSnapToOrigin&&e&&e(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=v("pointercancel"===t.type?this.lastMoveEventInfo:d(n,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!r(o))return;this.dragSnapToOrigin=p,this.handlers=a,this.transformPagePoint=l,this.distanceThreshold=f,this.contextWindow=m||window;const u=d(n(o),this.transformPagePoint),{point:c}=u,{timestamp:y}=s;this.history=[{...c,timestamp:y}];const{onSessionStart:x}=a;x&&x(o,v(u,this.history)),this.removeListeners=h(t(this.contextWindow,"pointermove",this.handlePointerMove),t(this.contextWindow,"pointerup",this.handlePointerUp),t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),o(this.updatePoint)}}function d(t,n){return n?{point:n(t.point)}:t}function p(t,n){return{x:t.x-n.x,y:t.y-n.y}}function v({point:t},n){return{point:t,delta:p(t,u(n)),offset:p(t,f(n)),velocity:c(n,.1)}}function f(t){return t[0]}function u(t){return t[t.length-1]}function c(t,n){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const e=u(t);for(;i>=0&&(s=t[i],!(e.timestamp-s.timestamp>a(n)));)i--;if(!s)return{x:0,y:0};const o=l(e.timestamp-s.timestamp);if(0===o)return{x:0,y:0};const r={x:(e.x-s.x)/o,y:(e.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}export{m as PanSession};
1
+ import{addPointerEvent as t}from"../../events/add-pointer-event.js";import{extractEventInfo as s}from"../../events/event-info.js";import{distance2D as o}from"../../utils/distance.js";import{frameData as n,frame as e,cancelFrame as i}from"../../../../../motion-dom/dist/es/frameloop/frame.js";import{isPrimaryPointer as r}from"../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";import{pipe as l}from"../../../../../motion-utils/dist/es/pipe.js";import{secondsToMilliseconds as h,millisecondsToSeconds as a}from"../../../../../motion-utils/dist/es/time-conversion.js";const c=new Set(["auto","scroll"]);class d{constructor(i,h,{transformPagePoint:a,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:m=3,element:f}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=v(this.lastRawMoveEventInfo,this.transformPagePoint));const t=p(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,e=o(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!s&&!e)return;const{point:i}=t,{timestamp:r}=n;this.history.push({...i,timestamp:r});const{onStart:l,onMove:h}=this.handlers;s||(l&&l(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,t)},this.handlePointerMove=(t,s)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=s,this.lastMoveEventInfo=v(s,this.transformPagePoint),e.update(this.updatePoint,!0)},this.handlePointerUp=(t,s)=>{this.end();const{onEnd:o,onSessionEnd:n,resumeAnimation:e}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||e&&e(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=p("pointercancel"===t.type?this.lastMoveEventInfo:v(s,this.transformPagePoint),this.history);this.startEvent&&o&&o(t,i),n&&n(t,i)},!r(i))return;this.dragSnapToOrigin=d,this.handlers=h,this.transformPagePoint=a,this.distanceThreshold=m,this.contextWindow=c||window;const u=v(s(i),this.transformPagePoint),{point:w}=u,{timestamp:E}=n;this.history=[{...w,timestamp:E}];const{onSessionStart:y}=h;y&&y(i,p(u,this.history)),this.removeListeners=l(t(this.contextWindow,"pointermove",this.handlePointerMove),t(this.contextWindow,"pointerup",this.handlePointerUp),t(this.contextWindow,"pointercancel",this.handlePointerUp)),f&&this.startScrollTracking(f)}startScrollTracking(t){let s=t.parentElement;for(;s;){const t=getComputedStyle(s);(c.has(t.overflowX)||c.has(t.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const s=this.scrollPositions.get(t);if(!s)return;const o=t===window,n=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i=n.x-s.x,r=n.y-s.y;0===i&&0===r||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i,this.lastMoveEventInfo.point.y+=r):this.history.length>0&&(this.history[0].x-=i,this.history[0].y-=r),this.scrollPositions.set(t,n),e.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),i(this.updatePoint)}}function v(t,s){return s?{point:s(t.point)}:t}function m(t,s){return{x:t.x-s.x,y:t.y-s.y}}function p({point:t},s){return{point:t,delta:m(t,u(s)),offset:m(t,f(s)),velocity:w(s,.1)}}function f(t){return t[0]}function u(t){return t[t.length-1]}function w(t,s){if(t.length<2)return{x:0,y:0};let o=t.length-1,n=null;const e=u(t);for(;o>=0&&(n=t[o],!(e.timestamp-n.timestamp>h(s)));)o--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&e.timestamp-n.timestamp>2*h(s)&&(n=t[1]);const i=a(e.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const r={x:(e.x-n.x)/i,y:(e.y-n.y)/i};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}export{d as PanSession};
@@ -1 +1 @@
1
- import{addPointerEvent as o}from"../../events/add-pointer-event.js";import{Feature as n}from"../../motion/features/Feature.js";import{getContextWindow as e}from"../../utils/get-context-window.js";import{PanSession as t}from"./PanSession.js";import{noop as s}from"../../../../../motion-utils/dist/es/noop.js";import{frame as r}from"../../../../../motion-dom/dist/es/frameloop/frame.js";const i=o=>(n,e)=>{o&&r.postRender(()=>o(n,e))};class a extends n{constructor(){super(...arguments),this.removePointerDownListener=s}onPointerDown(o){this.session=new t(o,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e(this.node)})}createPanHandlers(){const{onPanSessionStart:o,onPanStart:n,onPan:e,onPanEnd:t}=this.node.getProps();return{onSessionStart:i(o),onStart:i(n),onMove:e,onEnd:(o,n)=>{delete this.session,t&&r.postRender(()=>t(o,n))}}}mount(){this.removePointerDownListener=o(this.node.current,"pointerdown",o=>this.onPointerDown(o))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}export{a as PanGesture};
1
+ import{addPointerEvent as o}from"../../events/add-pointer-event.js";import{getContextWindow as n}from"../../utils/get-context-window.js";import{PanSession as e}from"./PanSession.js";import{Feature as t}from"../../../../../motion-dom/dist/es/render/Feature.js";import{noop as s}from"../../../../../motion-utils/dist/es/noop.js";import{frame as r}from"../../../../../motion-dom/dist/es/frameloop/frame.js";const i=o=>(n,e)=>{o&&r.update(()=>o(n,e),!1,!0)};class a extends t{constructor(){super(...arguments),this.removePointerDownListener=s}onPointerDown(o){this.session=new e(o,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n(this.node)})}createPanHandlers(){const{onPanSessionStart:o,onPanStart:n,onPan:e,onPanEnd:t}=this.node.getProps();return{onSessionStart:i(o),onStart:i(n),onMove:i(e),onEnd:(o,n)=>{delete this.session,t&&r.postRender(()=>t(o,n))}}}mount(){this.removePointerDownListener=o(this.node.current,"pointerdown",o=>this.onPointerDown(o))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}export{a as PanGesture};
@@ -1 +1 @@
1
- import{extractEventInfo as t}from"../events/event-info.js";import{Feature as e}from"../motion/features/Feature.js";import{press as o}from"../../../../motion-dom/dist/es/gestures/press/index.js";import{frame as n}from"../../../../motion-dom/dist/es/frameloop/frame.js";function s(e,o,s){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===s);const i=r["onTap"+("End"===s?"":s)];i&&n.postRender(()=>i(o,t(o)))}class r extends e{mount(){const{current:t}=this.node;t&&(this.unmount=o(t,(t,e)=>(s(this.node,e,"Start"),(t,{success:e})=>s(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}export{r as PressGesture};
1
+ import{extractEventInfo as t}from"../events/event-info.js";import{Feature as e}from"../../../../motion-dom/dist/es/render/Feature.js";import{press as o}from"../../../../motion-dom/dist/es/gestures/press/index.js";import{frame as n}from"../../../../motion-dom/dist/es/frameloop/frame.js";function s(e,o,s){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===s);const i=r["onTap"+("End"===s?"":s)];i&&n.postRender(()=>i(o,t(o)))}class r extends e{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=o(t,(t,e)=>(s(this.node,e,"Start"),(t,{success:e})=>s(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:!1===n?.tap})}unmount(){}}export{r as PressGesture};
@@ -1 +1 @@
1
- import{Feature as t}from"../Feature.js";let e=0;class n extends t{constructor(){super(...arguments),this.id=e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}export{n as ExitAnimationFeature};
1
+ import{Feature as t}from"../../../../../../motion-dom/dist/es/render/Feature.js";import{resolveVariant as e}from"../../../../../../motion-dom/dist/es/render/utils/resolve-dynamic-variants.js";let i=0;class n extends t{constructor(){super(...arguments),this.id=i++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&!1===n){if(this.isExitComplete){const{initial:t,custom:i}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){const n=e(this.node,t,i);if(n){const{transition:t,transitionEnd:e,...i}=n;for(const t in i)this.node.getValue(t)?.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const s=this.node.animationState.setActive("exit",!t);i&&!t&&s.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}export{n as ExitAnimationFeature};
@@ -1 +1 @@
1
- import{isAnimationControls as t}from"../../../animation/utils/is-animation-controls.js";import{createAnimationState as n}from"../../../render/utils/animation-state.js";import{Feature as o}from"../Feature.js";class i extends o{constructor(t){super(t),t.animationState||(t.animationState=n(t))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();t(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}export{i as AnimationFeature};
1
+ import{Feature as t}from"../../../../../../motion-dom/dist/es/render/Feature.js";import{createAnimationState as o}from"../../../../../../motion-dom/dist/es/render/utils/animation-state.js";import{isAnimationControls as n}from"../../../../../../motion-dom/dist/es/render/utils/is-animation-controls.js";class i extends t{constructor(t){super(t),t.animationState||(t.animationState=o(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:o}=this.node.prevProps||{};t!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}export{i as AnimationFeature};
@@ -1 +1 @@
1
- const n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},o={};for(const a in n)o[a]={isEnabled:o=>n[a].some(n=>!!o[n])};export{o as featureDefinitions};
1
+ import{getFeatureDefinitions as n,setFeatureDefinitions as o}from"../../../../../motion-dom/dist/es/render/VisualElement.js";const e={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let t=!1;function a(){if(t)return;const n={};for(const o in e)n[o]={isEnabled:n=>e[o].some(o=>!!n[o])};o(n),t=!0}function i(){return a(),n()}export{i as getInitializedFeatureDefinitions,a as initFeatureDefinitions};
@@ -1 +1 @@
1
- import{DragGesture as o}from"../../gestures/drag/index.js";import{PanGesture as e}from"../../gestures/pan/index.js";import{MeasureLayout as r}from"./layout/MeasureLayout.js";import{HTMLProjectionNode as t}from"../../projection/node/HTMLProjectionNode.js";const a={pan:{Feature:e},drag:{Feature:o,ProjectionNode:t,MeasureLayout:r}};export{a as drag};
1
+ import{DragGesture as o}from"../../gestures/drag/index.js";import{PanGesture as e}from"../../gestures/pan/index.js";import{MeasureLayout as r}from"./layout/MeasureLayout.js";import{HTMLProjectionNode as t}from"../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode.js";const s={pan:{Feature:e},drag:{Feature:o,ProjectionNode:t,MeasureLayout:r}};export{s as drag};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{useContext as e,Component as t}from"react";import{usePresence as r}from"../../../components/AnimatePresence/use-presence.js";import{LayoutGroupContext as s}from"../../../context/LayoutGroupContext.js";import{SwitchLayoutGroupContext as i}from"../../../context/SwitchLayoutGroupContext.js";import{globalProjectionState as n}from"../../../projection/node/state.js";import{correctBorderRadius as p}from"../../../projection/styles/scale-border-radius.js";import{correctBoxShadow as a}from"../../../projection/styles/scale-box-shadow.js";import{addScaleCorrector as m}from"../../../projection/styles/scale-correction.js";import{frame as d}from"../../../../../../motion-dom/dist/es/frameloop/frame.js";import{microtask as u}from"../../../../../../motion-dom/dist/es/frameloop/microtask.js";let c=!1;class l extends t{componentDidMount(){const{visualElement:o,layoutGroup:e,switchLayoutGroup:t,layoutId:r}=this.props,{projection:s}=o;m(h),s&&(e.group&&e.group.add(s),t&&t.register&&r&&t.register(s),c&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),n.hasEverUpdated=!0}getSnapshotBeforeUpdate(o){const{layoutDependency:e,visualElement:t,drag:r,isPresent:s}=this.props,{projection:i}=t;return i?(i.isPresent=s,c=!0,r||o.layoutDependency!==e||void 0===e||o.isPresent!==s?i.willUpdate():this.safeToRemove(),o.isPresent!==s&&(s?i.promote():i.relegate()||d.postRender(()=>{const o=i.getStack();o&&o.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:o}=this.props.visualElement;o&&(o.root.didUpdate(),u.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:o,layoutGroup:e,switchLayoutGroup:t}=this.props,{projection:r}=o;c=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),t&&t.deregister&&t.deregister(r))}safeToRemove(){const{safeToRemove:o}=this.props;o&&o()}render(){return null}}function f(t){const[n,p]=r(),a=e(s);return o(l,{...t,layoutGroup:a,switchLayoutGroup:e(i),isPresent:n,safeToRemove:p})}const h={borderRadius:{...p,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomLeftRadius:p,borderBottomRightRadius:p,boxShadow:a};export{f as MeasureLayout};
1
+ import{jsx as e}from"react/jsx-runtime";import{useContext as o,Component as t}from"react";import{usePresence as s}from"../../../components/AnimatePresence/use-presence.js";import{LayoutGroupContext as n}from"../../../context/LayoutGroupContext.js";import{SwitchLayoutGroupContext as r}from"../../../context/SwitchLayoutGroupContext.js";import{frame as i}from"../../../../../../motion-dom/dist/es/frameloop/frame.js";import{microtask as p}from"../../../../../../motion-dom/dist/es/frameloop/microtask.js";import{globalProjectionState as a}from"../../../../../../motion-dom/dist/es/projection/node/state.js";let m=!1;class u extends t{componentDidMount(){const{visualElement:e,layoutGroup:o,switchLayoutGroup:t,layoutId:s}=this.props,{projection:n}=e;n&&(o.group&&o.group.add(n),t&&t.register&&s&&t.register(n),m&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),a.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:o,visualElement:t,drag:s,isPresent:n}=this.props,{projection:r}=t;return r?(r.isPresent=n,e.layoutDependency!==o&&r.setOptions({...r.options,layoutDependency:o}),m=!0,s||e.layoutDependency!==o||void 0===o||e.isPresent!==n?r.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?r.promote():r.relegate()||i.postRender(()=>{const e=r.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:o}=this.props,{projection:t}=e;t&&(t.options.layoutAnchor=o,t.root.didUpdate(),p.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:o,switchLayoutGroup:t}=this.props,{projection:s}=e;m=!0,s&&(s.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(s),t&&t.deregister&&t.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function c(t){const[i,p]=s(),a=o(n);return e(u,{...t,layoutGroup:a,switchLayoutGroup:o(r),isPresent:i,safeToRemove:p})}export{c as MeasureLayout};
@@ -1 +1 @@
1
- import{HTMLProjectionNode as o}from"../../projection/node/HTMLProjectionNode.js";import{MeasureLayout as e}from"./layout/MeasureLayout.js";const t={layout:{ProjectionNode:o,MeasureLayout:e}};export{t as layout};
1
+ import{MeasureLayout as o}from"./layout/MeasureLayout.js";import{HTMLProjectionNode as t}from"../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode.js";const e={layout:{ProjectionNode:t,MeasureLayout:o}};export{e as layout};
@@ -1 +1 @@
1
- import{featureDefinitions as o}from"./definitions.js";function i(i){for(const n in i)o[n]={...o[n],...i[n]}}export{i as loadFeatures};
1
+ import{getInitializedFeatureDefinitions as o}from"./definitions.js";import{setFeatureDefinitions as i}from"../../../../../motion-dom/dist/es/render/VisualElement.js";function n(n){const t=o();for(const o in n)t[o]={...t[o],...n[o]};i(t)}export{n as loadFeatures};
@@ -1 +1 @@
1
- import{Feature as t}from"../Feature.js";import{observeIntersection as e}from"./observers.js";const r={some:0,all:1};class o extends t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:o,margin:n,amount:s="some",once:i}=t,a={root:o?o.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:r[s]};return e(this.node.current,a,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:r,onViewportLeave:o}=this.node.getProps(),n=e?r:o;n&&n(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}(t,e))&&this.startObserver()}unmount(){}}export{o as InViewFeature};
1
+ import{observeIntersection as e}from"./observers.js";import{Feature as t}from"../../../../../../motion-dom/dist/es/render/Feature.js";const r={some:0,all:1};class s extends t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:s,margin:o,amount:i="some",once:n}=t,h={root:s?s.current:void 0,rootMargin:o,threshold:"number"==typeof i?i:r[i]};this.stopObserver=e(this.node.current,h,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,n&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:s}=this.node.getProps(),o=t?r:s;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}export{s as InViewFeature};
@@ -1 +1 @@
1
- import{jsxs as t,jsx as o}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{LayoutGroupContext as i}from"../context/LayoutGroupContext.js";import{LazyContext as n}from"../context/LazyContext.js";import{MotionConfigContext as s}from"../context/MotionConfigContext.js";import{MotionContext as m}from"../context/MotionContext/index.js";import{useCreateMotionContext as a}from"../context/MotionContext/create.js";import{useRender as u}from"../render/dom/use-render.js";import{isSVGComponent as l}from"../render/dom/utils/is-svg-component.js";import{useHTMLVisualState as c}from"../render/html/use-html-visual-state.js";import{useSVGVisualState as d}from"../render/svg/use-svg-visual-state.js";import{isBrowser as f}from"../utils/is-browser.js";import{featureDefinitions as p}from"./features/definitions.js";import{loadFeatures as j}from"./features/load-features.js";import{motionComponentSymbol as v}from"./utils/symbol.js";import{useMotionRef as y}from"./utils/use-motion-ref.js";import{useVisualElement as x}from"./utils/use-visual-element.js";import{warning as E,invariant as g}from"../../../../motion-utils/dist/es/errors.js";function M(i,{forwardMotionProps:M=!1}={},N,C){N&&j(N);const L=l(i)?d:c;function b(e,l){let c;const d={...r(s),...e,layoutId:h(e)},{isStatic:j}=d,v=a(e),b=L(e,j);if(!j&&f){!function(t,o){const e=r(n).strict;if("production"!==process.env.NODE_ENV&&o&&e){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?E(!1,o,"lazy-strict-mode"):g(!1,o,"lazy-strict-mode")}}(d,N);const t=function(t){const{drag:o,layout:e}=p;if(!o&&!e)return{};const r={...o,...e};return{MeasureLayout:o?.isEnabled(t)||e?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);c=t.MeasureLayout,v.visualElement=x(i,b,d,C,t.ProjectionNode)}return t(m.Provider,{value:v,children:[c&&v.visualElement?o(c,{visualElement:v.visualElement,...d}):null,u(i,e,y(b,v.visualElement,l),b,j,M)]})}b.displayName=`motion.${"string"==typeof i?i:`create(${i.displayName??i.name??""})`}`;const P=e(b);return P[v]=i,P}function h({layoutId:t}){const o=r(i).id;return o&&void 0!==t?o+"-"+t:t}export{M as createMotionComponent};
1
+ import{jsxs as t,jsx as o}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{LayoutGroupContext as n}from"../context/LayoutGroupContext.js";import{LazyContext as i}from"../context/LazyContext.js";import{MotionConfigContext as s}from"../context/MotionConfigContext.js";import{MotionContext as m}from"../context/MotionContext/index.js";import{useCreateMotionContext as a}from"../context/MotionContext/create.js";import{useRender as u}from"../render/dom/use-render.js";import{isSVGComponent as l}from"../render/dom/utils/is-svg-component.js";import{useHTMLVisualState as c}from"../render/html/use-html-visual-state.js";import{useSVGVisualState as d}from"../render/svg/use-svg-visual-state.js";import{getInitializedFeatureDefinitions as f}from"./features/definitions.js";import{loadFeatures as p}from"./features/load-features.js";import{motionComponentSymbol as j}from"./utils/symbol.js";import{useMotionRef as v}from"./utils/use-motion-ref.js";import{useVisualElement as y}from"./utils/use-visual-element.js";import{warning as x,invariant as g}from"../../../../motion-utils/dist/es/errors.js";function E(n,{forwardMotionProps:E=!1,type:h}={},N,C){N&&p(N);const L=h?"svg"===h:l(n),w=L?d:c;function P(e,l){let c;const d={...r(s),...e,layoutId:M(e)},{isStatic:p}=d,j=a(e),h=w(e,p);if(!p&&"undefined"!=typeof window){!function(t,o){const e=r(i).strict;if("production"!==process.env.NODE_ENV&&o&&e){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?x(!1,o,"lazy-strict-mode"):g(!1,o,"lazy-strict-mode")}}(d,N);const t=function(t){const o=f(),{drag:e,layout:r}=o;if(!e&&!r)return{};const n={...e,...r};return{MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);c=t.MeasureLayout,j.visualElement=y(n,h,d,C,t.ProjectionNode,L)}return t(m.Provider,{value:j,children:[c&&j.visualElement?o(c,{visualElement:j.visualElement,...d}):null,u(n,e,v(h,j.visualElement,l),h,p,E,L)]})}P.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const b=e(P);return b[j]=n,b}function M({layoutId:t}){const o=r(n).id;return o&&void 0!==t?o+"-"+t:t}export{E as createMotionComponent};
@@ -1 +1 @@
1
- import{useCallback as o}from"react";import{isRefObject as t}from"../../utils/is-ref-object.js";function n(n,r,u){return o(o=>{o&&n.onMount&&n.onMount(o),r&&(o?r.mount(o):r.unmount()),u&&("function"==typeof u?u(o):t(u)&&(u.current=o))},[r])}export{n as useMotionRef};
1
+ import{useRef as n,useInsertionEffect as t,useCallback as r}from"react";function u(u,e,o){const c=n(o);t(()=>{c.current=o});const f=n(null);return r(n=>{n&&u.onMount?.(n),e&&(n?e.mount(n):e.unmount());const t=c.current;if("function"==typeof t)if(n){const r=t(n);"function"==typeof r&&(f.current=r)}else f.current?(f.current(),f.current=null):t(n);else t&&(t.current=n)},[e])}export{u as useMotionRef};
@@ -1 +1 @@
1
- import{useContext as t,useRef as o,useInsertionEffect as n,useEffect as e}from"react";import{optimizedAppearDataAttribute as i}from"../../animation/optimized-appear/data-id.js";import{LazyContext as r}from"../../context/LazyContext.js";import{MotionConfigContext as a}from"../../context/MotionConfigContext.js";import{MotionContext as s}from"../../context/MotionContext/index.js";import{PresenceContext as u}from"../../context/PresenceContext.js";import{SwitchLayoutGroupContext as c}from"../../context/SwitchLayoutGroupContext.js";import{isRefObject as l}from"../../utils/is-ref-object.js";import{useIsomorphicLayoutEffect as m}from"../../utils/use-isomorphic-effect.js";function p(p,f,y,C,j){const{visualElement:x}=t(s),M=t(r),w=t(u),g=t(a).reducedMotion,h=o(null);C=C||M.renderer,!h.current&&C&&(h.current=C(p,{visualState:f,parent:x,props:y,presenceContext:w,blockInitialAnimation:!!w&&!1===w.initial,reducedMotionConfig:g}));const S=h.current,v=t(c);!S||S.projection||!j||"html"!==S.type&&"svg"!==S.type||function(t,o,n,e){const{layoutId:i,layout:r,drag:a,dragConstraints:s,layoutScroll:u,layoutRoot:c,layoutCrossfade:m}=o;t.projection=new n(t.latestValues,o["data-framer-portal-id"]?void 0:d(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(a)||s&&l(s),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:e,crossfade:m,layoutScroll:u,layoutRoot:c})}(h.current,y,j,v);const I=o(!1);n(()=>{S&&I.current&&S.update(y,w)});const k=y[i],b=o(Boolean(k)&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return m(()=>{S&&(I.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),b.current&&S.animationState&&S.animationState.animateChanges())}),e(()=>{S&&(!b.current&&S.animationState&&S.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),b.current=!1),S.enteringChildren=void 0)}),S}function d(t){if(t)return!1!==t.options.allowProjection?t.projection:d(t.parent)}export{p as useVisualElement};
1
+ import{useContext as t,useRef as o,useInsertionEffect as n,useEffect as e}from"react";import{LazyContext as i}from"../../context/LazyContext.js";import{MotionConfigContext as r}from"../../context/MotionConfigContext.js";import{MotionContext as a}from"../../context/MotionContext/index.js";import{PresenceContext as s}from"../../context/PresenceContext.js";import{SwitchLayoutGroupContext as u}from"../../context/SwitchLayoutGroupContext.js";import{isRefObject as c}from"../../utils/is-ref-object.js";import{useIsomorphicLayoutEffect as m}from"../../utils/use-isomorphic-effect.js";import{optimizedAppearDataAttribute as l}from"../../../../../motion-dom/dist/es/animation/optimized-appear/data-id.js";function p(p,f,y,C,j,w){const{visualElement:M}=t(a),x=t(i),g=t(s),h=t(r),S=h.reducedMotion,A=h.skipAnimations,k=o(null),v=o(!1);C=C||x.renderer,!k.current&&C&&(k.current=C(p,{visualState:f,parent:M,props:y,presenceContext:g,blockInitialAnimation:!!g&&!1===g.initial,reducedMotionConfig:S,skipAnimations:A,isSVG:w}),v.current&&k.current&&(k.current.manuallyAnimateOnMount=!0));const I=k.current,b=t(u);!I||I.projection||!j||"html"!==I.type&&"svg"!==I.type||function(t,o,n,e){const{layoutId:i,layout:r,drag:a,dragConstraints:s,layoutScroll:u,layoutRoot:m,layoutAnchor:l,layoutCrossfade:p}=o;t.projection=new n(t.latestValues,o["data-framer-portal-id"]?void 0:d(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(a)||s&&c(s),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:e,crossfade:p,layoutScroll:u,layoutRoot:m,layoutAnchor:l})}(k.current,y,j,b);const H=o(!1);n(()=>{I&&H.current&&I.update(y,g)});const L=y[l],O=o(Boolean(L)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(L)&&window.MotionHasOptimisedAnimation?.(L));return m(()=>{v.current=!0,I&&(H.current=!0,window.MotionIsMounted=!0,I.updateFeatures(),I.scheduleRenderMicrotask(),O.current&&I.animationState&&I.animationState.animateChanges())}),e(()=>{I&&(!O.current&&I.animationState&&I.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(L)}),O.current=!1),I.enteringChildren=void 0)}),I}function d(t){if(t)return!1!==t.options.allowProjection?t.projection:d(t.parent)}export{p as useVisualElement};
@@ -1 +1 @@
1
- import{useContext as t}from"react";import{isAnimationControls as o}from"../../animation/utils/is-animation-controls.js";import{MotionContext as n}from"../../context/MotionContext/index.js";import{PresenceContext as r}from"../../context/PresenceContext.js";import{isControllingVariants as i,isVariantNode as e}from"../../render/utils/is-controlling-variants.js";import{resolveVariantFromProps as s}from"../../render/utils/resolve-variants.js";import{useConstant as a}from"../../utils/use-constant.js";import{resolveMotionValue as l}from"../../value/utils/resolve-motion-value.js";function c(t,n,r,a){const c={},m=a(t,{});for(const t in m)c[t]=l(m[t]);let{initial:f,animate:u}=t;const p=i(t),d=e(t);n&&d&&!p&&!1!==t.inherit&&(void 0===f&&(f=n.initial),void 0===u&&(u=n.animate));let v=!!r&&!1===r.initial;v=v||!1===f;const j=v?u:f;if(j&&"boolean"!=typeof j&&!o(j)){const o=Array.isArray(j)?j:[j];for(let n=0;n<o.length;n++){const r=s(t,o[n]);if(r){const{transitionEnd:t,transition:o,...n}=r;for(const t in n){let o=n[t];if(Array.isArray(o)){o=o[v?o.length-1:0]}null!==o&&(c[t]=o)}for(const o in t)c[o]=t[o]}}}return c}const m=o=>(i,e)=>{const s=t(n),l=t(r),m=()=>function({scrapeMotionValuesFromProps:t,createRenderState:o},n,r,i){return{latestValues:c(n,r,i,t),renderState:o()}}(o,i,s,l);return e?m():a(m)};export{m as makeUseVisualState};
1
+ import{useContext as t}from"react";import{MotionContext as o}from"../../context/MotionContext/index.js";import{PresenceContext as n}from"../../context/PresenceContext.js";import{useConstant as i}from"../../utils/use-constant.js";import{resolveMotionValue as r}from"../../../../../motion-dom/dist/es/value/utils/resolve-motion-value.js";import{isControllingVariants as e,isVariantNode as s}from"../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.js";import{isAnimationControls as a}from"../../../../../motion-dom/dist/es/render/utils/is-animation-controls.js";import{resolveVariantFromProps as m}from"../../../../../motion-dom/dist/es/render/utils/resolve-variants.js";function l(t,o,n,i){const l={},c=i(t,{});for(const t in c)l[t]=r(c[t]);let{initial:f,animate:d}=t;const u=e(t),p=s(t);o&&p&&!u&&!1!==t.inherit&&(void 0===f&&(f=o.initial),void 0===d&&(d=o.animate));let v=!!n&&!1===n.initial;v=v||!1===f;const j=v?d:f;if(j&&"boolean"!=typeof j&&!a(j)){const o=Array.isArray(j)?j:[j];for(let n=0;n<o.length;n++){const i=m(t,o[n]);if(i){const{transitionEnd:t,transition:o,...n}=i;for(const t in n){let o=n[t];if(Array.isArray(o)){o=o[v?o.length-1:0]}null!==o&&(l[t]=o)}for(const o in t)l[o]=t[o]}}}return l}const c=r=>(e,s)=>{const a=t(o),m=t(n),c=()=>function({scrapeMotionValuesFromProps:t,createRenderState:o},n,i,r){return{latestValues:l(n,i,r,t),renderState:o()}}(r,e,a,m);return s?c():i(c)};export{c as makeUseVisualState};
@@ -1 +1 @@
1
- const t=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function a(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||t.has(a)}export{a as isValidMotionProp};
1
+ const t=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function a(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||t.has(a)}export{a as isValidMotionProp};
@@ -1 +1 @@
1
- import{Fragment as o}from"react";import{HTMLVisualElement as t}from"../html/HTMLVisualElement.js";import{SVGVisualElement as m}from"../svg/SVGVisualElement.js";import{isSVGComponent as r}from"./utils/is-svg-component.js";const e=(e,s)=>r(e)?new m(s):new t(s,{allowProjection:e!==o});export{e as createDomVisualElement};
1
+ import{Fragment as o}from"react";import{isSVGComponent as t}from"./utils/is-svg-component.js";import{SVGVisualElement as e}from"../../../../../motion-dom/dist/es/render/svg/SVGVisualElement.js";import{HTMLVisualElement as m}from"../../../../../motion-dom/dist/es/render/html/HTMLVisualElement.js";const r=(r,s)=>s.isSVG??t(r)?new e(s):new m(s,{allowProjection:r!==o});export{r as createDomVisualElement};
@@ -1 +1 @@
1
- import{Fragment as o,useMemo as t,createElement as r}from"react";import{useHTMLProps as s}from"../html/use-props.js";import{useSVGProps as i}from"../svg/use-props.js";import{filterProps as e}from"./utils/filter-props.js";import{isSVGComponent as m}from"./utils/is-svg-component.js";import{isMotionValue as p}from"../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";function l(l,n,f,{latestValues:u},c,a=!1){const j=(m(l)?i:s)(n,u,c,l),d=e(n,"string"==typeof l,a),g=l!==o?{...d,...j,ref:f}:{},{children:v}=n,h=t(()=>p(v)?v.get():v,[v]);return r(l,{...g,children:h})}export{l as useRender};
1
+ import{Fragment as o,useMemo as t,createElement as r}from"react";import{useHTMLProps as s}from"../html/use-props.js";import{useSVGProps as i}from"../svg/use-props.js";import{filterProps as e}from"./utils/filter-props.js";import{isSVGComponent as m}from"./utils/is-svg-component.js";import{isMotionValue as p}from"../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";function l(l,n,f,{latestValues:u},c,a=!1,j){const d=(j??m(l)?i:s)(n,u,c,l),g=e(n,"string"==typeof l,a),v=l!==o?{...g,...d,ref:f}:{},{children:h}=n,x=t(()=>p(h)?h.get():h,[h]);return r(l,{...v,children:x})}export{l as useRender};
@@ -1 +1 @@
1
- import{isValidMotionProp as t}from"../../../motion/utils/valid-prop.js";let o=o=>!t(o);function r(r){"function"==typeof r&&(o=o=>o.startsWith("on")?!t(o):r(o))}try{r(require("@emotion/is-prop-valid").default)}catch{}function i(r,i,n){const e={};for(const a in r)"values"===a&&"object"==typeof r.values||(o(a)||!0===n&&t(a)||!i&&!t(a)||r.draggable&&a.startsWith("onDrag"))&&(e[a]=r[a]);return e}export{i as filterProps,r as loadExternalIsValidProp};
1
+ import{isValidMotionProp as t}from"../../../motion/utils/valid-prop.js";import{isMotionValue as o}from"../../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";let i=o=>!t(o);function r(o){"function"==typeof o&&(i=i=>i.startsWith("on")?!t(i):o(i))}try{r(require("@emotion/is-prop-valid").default)}catch{}function e(r,e,n){const s={};for(const a in r)"values"===a&&"object"==typeof r.values||o(r[a])||(i(a)||!0===n&&t(a)||!e&&!t(a)||r.draggable&&a.startsWith("onDrag"))&&(s[a]=r[a]);return s}export{e as filterProps,r as loadExternalIsValidProp};
@@ -1 +1 @@
1
- import{makeUseVisualState as t}from"../../motion/utils/use-visual-state.js";import{createHtmlRenderState as e}from"./utils/create-render-state.js";import{scrapeMotionValuesFromProps as o}from"./utils/scrape-motion-values.js";const r=t({scrapeMotionValuesFromProps:o,createRenderState:e});export{r as useHTMLVisualState};
1
+ import{makeUseVisualState as t}from"../../motion/utils/use-visual-state.js";import{createHtmlRenderState as e}from"./utils/create-render-state.js";import{scrapeMotionValuesFromProps as o}from"../../../../../motion-dom/dist/es/render/html/utils/scrape-motion-values.js";const r=t({scrapeMotionValuesFromProps:o,createRenderState:e});export{r as useHTMLVisualState};
@@ -1 +1 @@
1
- import{useMemo as t}from"react";import{isForcedMotionValue as e}from"../../motion/utils/is-forced-motion-value.js";import{buildHTMLStyles as o}from"./utils/build-styles.js";import{createHtmlRenderState as r}from"./utils/create-render-state.js";import{isMotionValue as n}from"../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";function s(t,o,r){for(const s in o)n(o[s])||e(s,r)||(t[s]=o[s])}function i(e,n){const i={};return s(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n){return t(()=>{const t=r();return o(t,n,e),Object.assign({},t.vars,t.style)},[n])}(e,n)),i}function a(t,e){const o={},r=i(t,e);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o}export{s as copyRawValuesOnly,a as useHTMLProps};
1
+ import{useMemo as t}from"react";import{createHtmlRenderState as e}from"./utils/create-render-state.js";import{isMotionValue as o}from"../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";import{isForcedMotionValue as r}from"../../../../../motion-dom/dist/es/render/utils/is-forced-motion-value.js";import{buildHTMLStyles as n}from"../../../../../motion-dom/dist/es/render/html/utils/build-styles.js";function s(t,e,n){for(const s in e)o(e[s])||r(s,n)||(t[s]=e[s])}function i(o,r){const i={};return s(i,o.style||{},o),Object.assign(i,function({transformTemplate:o},r){return t(()=>{const t=e();return n(t,r,o),Object.assign({},t.vars,t.style)},[r])}(o,r)),i}function a(t,e){const o={},r=i(t,e);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o}export{s as copyRawValuesOnly,a as useHTMLProps};
@@ -1 +1 @@
1
- import{useMemo as t}from"react";import{copyRawValuesOnly as s}from"../html/use-props.js";import{buildSVGAttrs as r}from"./utils/build-attrs.js";import{createSvgRenderState as e}from"./utils/create-render-state.js";import{isSVGTag as o}from"./utils/is-svg-tag.js";function l(l,m,i,n){const p=t(()=>{const t=e();return r(t,m,o(n),l.transformTemplate,l.style),{...t.attrs,style:{...t.style}}},[m]);if(l.style){const t={};s(t,l.style,l),p.style={...t,...p.style}}return p}export{l as useSVGProps};
1
+ import{useMemo as t}from"react";import{copyRawValuesOnly as s}from"../html/use-props.js";import{createSvgRenderState as r}from"./utils/create-render-state.js";import{buildSVGAttrs as e}from"../../../../../motion-dom/dist/es/render/svg/utils/build-attrs.js";import{isSVGTag as o}from"../../../../../motion-dom/dist/es/render/svg/utils/is-svg-tag.js";function m(m,i,l,n){const p=t(()=>{const t=r();return e(t,i,o(n),m.transformTemplate,m.style),{...t.attrs,style:{...t.style}}},[i]);if(m.style){const t={};s(t,m.style,m),p.style={...t,...p.style}}return p}export{m as useSVGProps};
@@ -1 +1 @@
1
- import{makeUseVisualState as t}from"../../motion/utils/use-visual-state.js";import{createSvgRenderState as e}from"./utils/create-render-state.js";import{scrapeMotionValuesFromProps as o}from"./utils/scrape-motion-values.js";const r=t({scrapeMotionValuesFromProps:o,createRenderState:e});export{r as useSVGVisualState};
1
+ import{makeUseVisualState as t}from"../../motion/utils/use-visual-state.js";import{createSvgRenderState as e}from"./utils/create-render-state.js";import{scrapeMotionValuesFromProps as o}from"../../../../../motion-dom/dist/es/render/svg/utils/scrape-motion-values.js";const s=t({scrapeMotionValuesFromProps:o,createRenderState:e});export{s as useSVGVisualState};
@@ -1 +1 @@
1
- import{time as e}from"../frameloop/sync-time.js";import{JSAnimation as t}from"./JSAnimation.js";import{getFinalKeyframe as i}from"./keyframes/get-final.js";import{KeyframeResolver as n,flushKeyframeResolvers as a}from"./keyframes/KeyframesResolver.js";import{NativeAnimationExtended as s}from"./NativeAnimationExtended.js";import{canAnimate as o}from"./utils/can-animate.js";import{makeAnimationInstant as m}from"./utils/make-animation-instant.js";import{WithPromise as r}from"./utils/WithPromise.js";import{supportsBrowserAnimation as h}from"./waapi/supports/waapi.js";import{MotionGlobalConfig as l}from"../../../../motion-utils/dist/es/global-config.js";import{noop as p}from"../../../../motion-utils/dist/es/noop.js";class f extends r{constructor({autoplay:t=!0,delay:i=0,type:a="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:m="loop",keyframes:r,name:h,motionValue:l,element:p,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=e.now();const d={autoplay:t,delay:i,type:a,repeat:s,repeatDelay:o,repeatType:m,name:h,motionValue:l,element:p,...f},y=p?.KeyframeResolver||n;this.keyframeResolver=new y(r,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),h,l,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,r,f){this.keyframeResolver=void 0;const{name:d,type:y,velocity:u,delay:c,isHandoff:v,onUpdate:g}=r;this.resolvedAt=e.now(),o(n,d,y,u)||(!l.instantAnimations&&c||g?.(i(n,r,a)),n[0]=n[n.length-1],m(r),r.repeat=0);const T={startTime:f?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:n},k=!v&&h(T)?new s({...T,element:T.motionValue.owner.current}):new t(T);k.finished.then(()=>this.notifyFinished()).catch(p),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}export{f as AsyncMotionValueAnimation};
1
+ import{time as e}from"../frameloop/sync-time.js";import{JSAnimation as t}from"./JSAnimation.js";import{getFinalKeyframe as i}from"./keyframes/get-final.js";import{KeyframeResolver as n,flushKeyframeResolvers as a}from"./keyframes/KeyframesResolver.js";import{NativeAnimationExtended as s}from"./NativeAnimationExtended.js";import{canAnimate as o}from"./utils/can-animate.js";import{makeAnimationInstant as m}from"./utils/make-animation-instant.js";import{WithPromise as r}from"./utils/WithPromise.js";import{supportsBrowserAnimation as l}from"./waapi/supports/waapi.js";import{MotionGlobalConfig as h}from"../../../../motion-utils/dist/es/global-config.js";import{noop as p}from"../../../../motion-utils/dist/es/noop.js";class f extends r{constructor({autoplay:t=!0,delay:i=0,type:a="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:m="loop",keyframes:r,name:l,motionValue:h,element:p,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=e.now();const d={autoplay:t,delay:i,type:a,repeat:s,repeatDelay:o,repeatType:m,name:l,motionValue:h,element:p,...f},y=p?.KeyframeResolver||n;this.keyframeResolver=new y(r,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),l,h,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,r,f){this.keyframeResolver=void 0;const{name:d,type:y,velocity:c,delay:u,isHandoff:v,onUpdate:g}=r;this.resolvedAt=e.now();let T=!0;o(n,d,y,c)||(T=!1,!h.instantAnimations&&u||g?.(i(n,r,a)),n[0]=n[n.length-1],m(r),r.repeat=0);const k={startTime:f?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:n},j=T&&!v&&l(k),R=k.motionValue?.owner?.current;let A;if(j)try{A=new s({...k,element:R})}catch{A=new t(k)}else A=new t(k);A.finished.then(()=>{this.notifyFinished()}).catch(p),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}export{f as AsyncMotionValueAnimation};
@@ -1 +1 @@
1
- import{time as t}from"../frameloop/sync-time.js";import{mix as i}from"../utils/mix/index.js";import{frameloopDriver as e}from"./drivers/frame.js";import{inertia as s}from"./generators/inertia.js";import{keyframes as r}from"./generators/keyframes.js";import{calcGeneratorDuration as o}from"./generators/utils/calc-duration.js";import{getFinalKeyframe as n}from"./keyframes/get-final.js";import{replaceTransitionType as a}from"./utils/replace-transition-type.js";import{WithPromise as h}from"./utils/WithPromise.js";import{invariant as l}from"../../../../motion-utils/dist/es/errors.js";import{pipe as m}from"../../../../motion-utils/dist/es/pipe.js";import{millisecondsToSeconds as p,secondsToMilliseconds as d}from"../../../../motion-utils/dist/es/time-conversion.js";import{clamp as u}from"../../../../motion-utils/dist/es/clamp.js";const c=t=>t/100;class T extends h{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==t.now()&&this.tick(t.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),!1===i.autoplay&&this.pause()}initAnimation(){const{options:t}=this;a(t);const{type:e=r,repeat:s=0,repeatDelay:n=0,repeatType:h,velocity:p=0}=t;let{keyframes:d}=t;const u=e||r;"production"!==process.env.NODE_ENV&&u!==r&&l(d.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${d}`,"spring-two-frames"),u!==r&&"number"!=typeof d[0]&&(this.mixKeyframes=m(c,i(d[0],d[1])),d=[0,100]);const T=u({...t,keyframes:d});"mirror"===h&&(this.mirroredGenerator=u({...t,keyframes:[...d].reverse(),velocity:-p})),null===T.calculatedDuration&&(T.calculatedDuration=o(T));const{calculatedDuration:f}=T;this.calculatedDuration=f,this.resolvedDuration=f+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=T}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:e,totalDuration:r,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:h,calculatedDuration:l}=this;if(null===this.startTime)return e.next(0);const{delay:m=0,keyframes:p,repeat:d,repeatType:c,repeatDelay:T,type:f,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const k=this.currentTime-m*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?k<0:k>r;this.currentTime=Math.max(k,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let g=this.currentTime,w=e;if(d){const t=Math.min(this.currentTime,r)/h;let i=Math.floor(t),e=t%1;!e&&t>=1&&(e=1),1===e&&i--,i=Math.min(i,d+1);Boolean(i%2)&&("reverse"===c?(e=1-e,T&&(e-=T/h)):"mirror"===c&&(w=a)),g=u(0,1,e)*h}const S=D?{done:!1,value:p[0]}:w.next(g);o&&(S.value=o(S.value));let{done:j}=S;D||null===l||(j=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return b&&f!==s&&(S.value=n(p,this.options,v,this.speed)),y&&y(S.value),b&&this.finish(),S}then(t,i){return this.finished.then(t,i)}get duration(){return p(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+p(t)}get time(){return p(this.currentTime)}set time(t){t=d(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(t.now());const e=this.playbackSpeed!==i;this.playbackSpeed=i,e&&(this.time=p(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}export{T as JSAnimation};
1
+ import{time as t}from"../frameloop/sync-time.js";import{mix as i}from"../utils/mix/index.js";import{frameloopDriver as e}from"./drivers/frame.js";import{inertia as s}from"./generators/inertia.js";import{keyframes as r}from"./generators/keyframes.js";import{calcGeneratorDuration as o}from"./generators/utils/calc-duration.js";import{getGeneratorVelocity as n}from"./generators/utils/velocity.js";import{getFinalKeyframe as a}from"./keyframes/get-final.js";import{replaceTransitionType as h}from"./utils/replace-transition-type.js";import{WithPromise as l}from"./utils/WithPromise.js";import{invariant as m}from"../../../../motion-utils/dist/es/errors.js";import{pipe as p}from"../../../../motion-utils/dist/es/pipe.js";import{millisecondsToSeconds as d,secondsToMilliseconds as u}from"../../../../motion-utils/dist/es/time-conversion.js";import{clamp as c}from"../../../../motion-utils/dist/es/clamp.js";const T=t=>t/100;class y extends l{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==t.now()&&this.tick(t.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),!1===i.autoplay&&this.pause()}initAnimation(){const{options:t}=this;h(t);const{type:e=r,repeat:s=0,repeatDelay:n=0,repeatType:a,velocity:l=0}=t;let{keyframes:d}=t;const u=e||r;"production"!==process.env.NODE_ENV&&u!==r&&m(d.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${d}`,"spring-two-frames"),u!==r&&"number"!=typeof d[0]&&(this.mixKeyframes=p(T,i(d[0],d[1])),d=[0,100]);const c=u({...t,keyframes:d});"mirror"===a&&(this.mirroredGenerator=u({...t,keyframes:[...d].reverse(),velocity:-l})),null===c.calculatedDuration&&(c.calculatedDuration=o(c));const{calculatedDuration:y}=c;this.calculatedDuration=y,this.resolvedDuration=y+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=c}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:e,totalDuration:r,mixKeyframes:o,mirroredGenerator:n,resolvedDuration:h,calculatedDuration:l}=this;if(null===this.startTime)return e.next(0);const{delay:m=0,keyframes:p,repeat:d,repeatType:u,repeatDelay:T,type:y,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const k=this.currentTime-m*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?k<0:k>r;this.currentTime=Math.max(k,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let D,S=this.currentTime,j=e;if(d){const t=Math.min(this.currentTime,r)/h;let i=Math.floor(t),e=t%1;!e&&t>=1&&(e=1),1===e&&i--,i=Math.min(i,d+1);Boolean(i%2)&&("reverse"===u?(e=1-e,T&&(e-=T/h)):"mirror"===u&&(j=n)),S=c(0,1,e)*h}g?(this.delayState.value=p[0],D=this.delayState):D=j.next(S),o&&!g&&(D.value=o(D.value));let{done:w}=D;g||null===l||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return b&&y!==s&&(D.value=a(p,this.options,v,this.speed)),f&&f(D.value),b&&this.finish(),D}then(t,i){return this.finished.then(t,i)}get duration(){return d(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+d(t)}get time(){return d(this.currentTime)}set time(t){t=u(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const i=this.generator.next(t).value;return n(t=>this.generator.next(t).value,t,i)}get speed(){return this.playbackSpeed}set speed(i){const e=this.playbackSpeed!==i;e&&this.driver&&this.updateTime(t.now()),this.playbackSpeed=i,e&&this.driver&&(this.time=d(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}export{y as JSAnimation};
@@ -1 +1 @@
1
- import{setStyle as t}from"../render/dom/style-set.js";import{supportsScrollTimeline as i}from"../utils/supports/scroll-timeline.js";import{getFinalKeyframe as e}from"./keyframes/get-final.js";import{WithPromise as s}from"./utils/WithPromise.js";import{startWaapiAnimation as n}from"./waapi/start-waapi-animation.js";import{applyGeneratorOptions as a}from"./waapi/utils/apply-generator.js";import{invariant as o}from"../../../../motion-utils/dist/es/errors.js";import{millisecondsToSeconds as m,secondsToMilliseconds as r}from"../../../../motion-utils/dist/es/time-conversion.js";import{noop as h}from"../../../../motion-utils/dist/es/noop.js";class l extends s{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:m,keyframes:r,pseudoElement:h,allowFlatten:l=!1,finalKeyframe:p,onComplete:u}=i;this.isPseudoElement=Boolean(h),this.allowFlatten=l,this.options=i,o("string"!=typeof i.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const d=a(i);this.animation=n(s,m,r,d,h),!1===d.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const i=e(r,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(i):t(s,m,i),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return m(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+m(t)}get time(){return m(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=r(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i()?(this.animation.timeline=t,h):e(this)}}export{l as NativeAnimation};
1
+ import{setStyle as t}from"../render/dom/style-set.js";import{supportsScrollTimeline as i}from"../utils/supports/scroll-timeline.js";import{getFinalKeyframe as e}from"./keyframes/get-final.js";import{WithPromise as s}from"./utils/WithPromise.js";import{startWaapiAnimation as n}from"./waapi/start-waapi-animation.js";import{applyGeneratorOptions as a}from"./waapi/utils/apply-generator.js";import{invariant as o}from"../../../../motion-utils/dist/es/errors.js";import{millisecondsToSeconds as m,secondsToMilliseconds as r}from"../../../../motion-utils/dist/es/time-conversion.js";import{noop as h}from"../../../../motion-utils/dist/es/noop.js";class l extends s{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:m,keyframes:r,pseudoElement:h,allowFlatten:l=!1,finalKeyframe:u,onComplete:p}=i;this.isPseudoElement=Boolean(h),this.allowFlatten=l,this.options=i,o("string"!=typeof i.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const d=a(i);this.animation=n(s,m,r,d,h),!1===d.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const i=e(r,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(i),t(s,m,i),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return m(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+m(t)}get time(){return m(Number(this.animation.currentTime)||0)}set time(t){const i=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=r(t),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:s,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),s&&(this.animation.rangeEnd=s),h):n(this)}}export{l as NativeAnimation};
@@ -1 +1 @@
1
- import{JSAnimation as t}from"./JSAnimation.js";import{NativeAnimation as i}from"./NativeAnimation.js";import{replaceTransitionType as o}from"./utils/replace-transition-type.js";import{replaceStringEasing as e}from"./waapi/utils/unsupported-easing.js";import{secondsToMilliseconds as s}from"../../../../motion-utils/dist/es/time-conversion.js";class n extends i{constructor(t){e(t),o(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(i){const{motionValue:o,onUpdate:e,onComplete:n,element:r,...m}=this.options;if(!o)return;if(void 0!==i)return void o.set(i);const a=new t({...m,autoplay:!1}),p=s(this.finishedTime??this.time);o.setWithVelocity(a.sample(p-10).value,a.sample(p).value,10),a.stop()}}export{n as NativeAnimationExtended};
1
+ import{time as t}from"../frameloop/sync-time.js";import{setStyle as o}from"../render/dom/style-set.js";import{JSAnimation as i}from"./JSAnimation.js";import{NativeAnimation as s}from"./NativeAnimation.js";import{replaceTransitionType as e}from"./utils/replace-transition-type.js";import{replaceStringEasing as m}from"./waapi/utils/unsupported-easing.js";import{clamp as a}from"../../../../motion-utils/dist/es/clamp.js";class r extends s{constructor(t){m(t),e(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(s){const{motionValue:e,onUpdate:m,onComplete:r,element:n,...p}=this.options;if(!e)return;if(void 0!==s)return void e.set(s);const l=new i({...p,autoplay:!1}),u=Math.max(10,t.now()-this.startTime),d=a(0,10,u-10),f=l.sample(u).value,{name:c}=this.options;n&&c&&o(n,c,f),e.setWithVelocity(l.sample(Math.max(0,u-d)).value,f,d),l.stop()}}export{r as NativeAnimationExtended};
@@ -0,0 +1 @@
1
+ import{animateMotionValue as o}from"../interfaces/motion-value.js";import{motionValue as t}from"../../value/index.js";import{isMotionValue as i}from"../../value/utils/is-motion-value.js";function r(r,n,e){const m=i(r)?r:t(r);return m.start(o("",m,n,e)),m.animation}export{r as animateSingleValue};
@@ -1 +1 @@
1
- import{spring as e}from"./spring/index.js";import{calcGeneratorVelocity as t}from"./utils/velocity.js";function o({keyframes:o,velocity:n=0,power:a=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:l,min:v,max:d,restDelta:u=.5,restSpeed:c}){const m=o[0],f={done:!1,value:m},p=e=>void 0===v?d:void 0===d||Math.abs(v-e)<Math.abs(d-e)?v:d;let x=a*n;const y=m+x,b=void 0===l?y:l(y);b!==y&&(x=b-m);const g=e=>-x*Math.exp(-e/i),h=e=>b+g(e),D=e=>{const t=g(e),o=h(e);f.done=Math.abs(t)<=u,f.value=f.done?b:o};let M,S;const j=o=>{var n;(n=f.value,void 0!==v&&n<v||void 0!==d&&n>d)&&(M=o,S=e({keyframes:[f.value,p(f.value)],velocity:t(h,o,f.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==M||(t=!0,D(e),j(e)),void 0!==M&&e>=M?S.next(e-M):(!t&&D(e),f)}}}export{o as inertia};
1
+ import{spring as e}from"./spring.js";import{getGeneratorVelocity as t}from"./utils/velocity.js";function o({keyframes:o,velocity:a=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:l,min:v,max:d,restDelta:u=.5,restSpeed:c}){const m=o[0],f={done:!1,value:m},p=e=>void 0===v?d:void 0===d||Math.abs(v-e)<Math.abs(d-e)?v:d;let y=n*a;const b=m+y,x=void 0===l?b:l(b);x!==b&&(y=x-m);const g=e=>-y*Math.exp(-e/s),h=e=>x+g(e),D=e=>{const t=g(e),o=h(e);f.done=Math.abs(t)<=u,f.value=f.done?x:o};let M,S;const j=o=>{var a;(a=f.value,void 0!==v&&a<v||void 0!==d&&a>d)&&(M=o,S=e({keyframes:[f.value,p(f.value)],velocity:t(h,o,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==M||(t=!0,D(e),j(e)),void 0!==M&&e>=M?S.next(e-M):(!t&&D(e),f)}}}export{o as inertia};
@@ -0,0 +1 @@
1
+ import{generateLinearEasing as t}from"../waapi/utils/linear.js";import{calcGeneratorDuration as s,maxGeneratorDuration as e}from"./utils/calc-duration.js";import{createGeneratorEasing as n}from"./utils/create-generator-easing.js";import{millisecondsToSeconds as a,secondsToMilliseconds as o}from"../../../../../motion-utils/dist/es/time-conversion.js";import{clamp as r}from"../../../../../motion-utils/dist/es/clamp.js";import{warning as i}from"../../../../../motion-utils/dist/es/errors.js";const u=100,c=10,l=1,h=0,m=800,f=.3,M=.3,p={granular:.01,default:2},d={granular:.005,default:.5},v=.01,g=10,y=.05,x=1;function b(t,s){return t*Math.sqrt(1-s*s)}const D=.001;const j=["duration","bounce"],q=["stiffness","damping","mass"];function k(t,s){return s.some(s=>void 0!==t[s])}function w(t){let s={velocity:h,stiffness:u,damping:c,mass:l,isResolvedFromDuration:!1,...t};if(!k(t,q)&&k(t,j))if(s.velocity=0,t.visualDuration){const e=t.visualDuration,n=2*Math.PI/(1.2*e),a=n*n,o=2*r(.05,1,1-(t.bounce||0))*Math.sqrt(a);s={...s,mass:l,stiffness:a,damping:o}}else{const e=function({duration:t=m,bounce:s=f,velocity:e=h,mass:n=l}){let M,p;i(t<=o(g),"Spring duration must be 10 seconds or less","spring-duration-limit");let d=1-s;d=r(y,x,d),t=r(v,g,a(t)),d<1?(M=s=>{const n=s*d,a=n*t,o=n-e,r=b(s,d),i=Math.exp(-a);return D-o/r*i},p=s=>{const n=s*d*t,a=n*e+e,o=Math.pow(d,2)*Math.pow(s,2)*t,r=Math.exp(-n),i=b(Math.pow(s,2),d);return(-M(s)+D>0?-1:1)*((a-o)*r)/i}):(M=s=>Math.exp(-s*t)*((s-e)*t+1)-.001,p=s=>Math.exp(-s*t)*(t*t*(e-s)));const j=function(t,s,e){let n=e;for(let e=1;e<12;e++)n-=t(n)/s(n);return n}(M,p,5/t);if(t=o(t),isNaN(j))return{stiffness:u,damping:c,duration:t};{const s=Math.pow(j,2)*n;return{stiffness:s,damping:2*d*Math.sqrt(n*s),duration:t}}}({...t,velocity:0});s={...s,...e,mass:l},s.isResolvedFromDuration=!0}return s}function F(n=M,r=f){const i="object"!=typeof n?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:u,restDelta:c}=i;const l=i.keyframes[0],h=i.keyframes[i.keyframes.length-1],m={done:!1,value:l},{stiffness:v,damping:g,mass:y,duration:x,velocity:D,isResolvedFromDuration:j}=w({...i,velocity:-a(i.velocity||0)}),q=D||0,k=g/(2*Math.sqrt(v*y)),F=h-l,R=a(Math.sqrt(v/y)),S=Math.abs(F)<5;let N,T,I,O,P,z;if(u||(u=S?p.granular:p.default),c||(c=S?d.granular:d.default),k<1)I=b(R,k),O=(q+k*R*F)/I,N=t=>{const s=Math.exp(-k*R*t);return h-s*(O*Math.sin(I*t)+F*Math.cos(I*t))},P=k*R*O+F*I,z=k*R*F-O*I,T=t=>Math.exp(-k*R*t)*(P*Math.sin(I*t)+z*Math.cos(I*t));else if(1===k){N=t=>h-Math.exp(-R*t)*(F+(q+R*F)*t);const t=q+R*F;T=s=>Math.exp(-R*s)*(R*t*s-q)}else{const t=R*Math.sqrt(k*k-1);N=s=>{const e=Math.exp(-k*R*s),n=Math.min(t*s,300);return h-e*((q+k*R*F)*Math.sinh(n)+t*F*Math.cosh(n))/t};const s=(q+k*R*F)/t,e=k*R*s-F*t,n=k*R*F-s*t;T=s=>{const a=Math.exp(-k*R*s),o=Math.min(t*s,300);return a*(e*Math.sinh(o)+n*Math.cosh(o))}}const A={calculatedDuration:j&&x||null,velocity:t=>o(T(t)),next:t=>{if(!j&&k<1){const s=Math.exp(-k*R*t),e=Math.sin(I*t),n=Math.cos(I*t),a=h-s*(O*e+F*n),r=o(s*(P*e+z*n));return m.done=Math.abs(r)<=u&&Math.abs(h-a)<=c,m.value=m.done?h:a,m}const s=N(t);if(j)m.done=t>=x;else{const e=o(T(t));m.done=Math.abs(e)<=u&&Math.abs(h-s)<=c}return m.value=m.done?h:s,m},toString:()=>{const n=Math.min(s(A),e),a=t(t=>A.next(n*t).value,n,30);return n+"ms "+a},toTransition:()=>{}};return A}F.applyToOptions=t=>{const s=n(t,100,F);return t.ease=s.ease,t.duration=o(s.duration),t.type="keyframes",t};export{F as spring};
@@ -1 +1 @@
1
- import{velocityPerSecond as t}from"../../../../../../motion-utils/dist/es/velocity-per-second.js";function o(o,e,i){const n=Math.max(e-5,0);return t(i-o(n),e-n)}export{o as calcGeneratorVelocity};
1
+ import{velocityPerSecond as t}from"../../../../../../motion-utils/dist/es/velocity-per-second.js";function o(o,e,i){const n=Math.max(e-5,0);return t(i-o(n),e-n)}export{o as getGeneratorVelocity};
@@ -0,0 +1 @@
1
+ import{AsyncMotionValueAnimation as e}from"../AsyncMotionValueAnimation.js";import{JSAnimation as t}from"../JSAnimation.js";import{getValueTransition as o}from"../utils/get-value-transition.js";import{makeAnimationInstant as i}from"../utils/make-animation-instant.js";import{getDefaultTransition as n}from"../utils/default-transitions.js";import{getFinalKeyframe as a}from"../keyframes/get-final.js";import{isTransitionDefined as s}from"../utils/is-transition-defined.js";import{frame as r}from"../../frameloop/frame.js";import{secondsToMilliseconds as m}from"../../../../../motion-utils/dist/es/time-conversion.js";import{MotionGlobalConfig as l}from"../../../../../motion-utils/dist/es/global-config.js";const p=(p,d,f,y={},u,c)=>j=>{const A=o(y,p)||{},k=A.delay||y.delay||0;let{elapsed:v=0}=y;v-=m(k);const g={keyframes:Array.isArray(f)?f:[null,f],ease:"easeOut",velocity:d.getVelocity(),...A,delay:-v,onUpdate:e=>{d.set(e),A.onUpdate&&A.onUpdate(e)},onComplete:()=>{j(),A.onComplete&&A.onComplete()},name:p,motionValue:d,element:c?void 0:u};s(A)||Object.assign(g,n(p,g)),g.duration&&(g.duration=m(g.duration)),g.repeatDelay&&(g.repeatDelay=m(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let C=!1;if((!1===g.type||0===g.duration&&!g.repeatDelay)&&(i(g),0===g.delay&&(C=!0)),(l.instantAnimations||l.skipAnimations||u?.shouldSkipAnimations||A.skipAnimations)&&(C=!0,i(g),g.delay=0),g.allowFlatten=!A.type&&!A.ease,C&&!c&&void 0!==d.get()){const e=a(g.keyframes,A);if(void 0!==e)return void r.update(()=>{g.onUpdate(e),g.onComplete()})}return A.isSync?new t(g):new e(g)};export{p as animateMotionValue};
@@ -0,0 +1 @@
1
+ import{getValueTransition as t}from"../utils/get-value-transition.js";import{resolveTransition as i}from"../utils/resolve-transition.js";import{positionalKeys as n}from"../../render/utils/keys-position.js";import{setTarget as o}from"../../render/utils/setters.js";import{addValueToWillChange as e}from"../../value/will-change/add-will-change.js";import{getOptimisedAppearId as s}from"../optimized-appear/get-appear-id.js";import{animateMotionValue as a}from"./motion-value.js";import{frame as r}from"../../frameloop/frame.js";function m({protectedKeys:t,needsAnimating:i},n){const o=t.hasOwnProperty(n)&&!0!==i[n];return i[n]=!1,o}function l(l,p,{delay:u=0,transitionOverride:c,type:d}={}){let{transition:f,transitionEnd:g,...y}=p;const h=l.getDefaultTransition();f=f?i(f,h):h;const j=f?.reduceMotion,v=f?.skipAnimations;c&&(f=c);const A=[],w=d&&l.animationState&&l.animationState.getState()[d],M=f?.path;M&&M.animateVisualElement(l,y,f,u,A);for(const i in y){const o=l.getValue(i,l.latestValues[i]??null),p=y[i];if(void 0===p||w&&m(w,i))continue;const c={delay:u,...t(f||{},i)};v&&(c.skipAnimations=!0);const d=o.get();if(void 0!==d&&!o.isAnimating()&&!Array.isArray(p)&&p===d&&!c.velocity){r.update(()=>o.set(p));continue}let g=!1;if(window.MotionHandoffAnimation){const t=s(l);if(t){const n=window.MotionHandoffAnimation(t,i,r);null!==n&&(c.startTime=n,g=!0)}}e(l,i);const h=j??l.shouldReduceMotion;o.start(a(i,o,p,h&&n.has(i)?{type:!1}:c,l,g));const M=o.animation;M&&A.push(M)}if(g){const t=()=>r.update(()=>{g&&o(l,g)});A.length?Promise.all(A).then(t):t()}return A}export{l as animateTarget};
@@ -1 +1 @@
1
- import{positionalKeys as e}from"../../render/utils/keys-position.js";import{findDimensionValueType as s}from"../../value/types/dimensions.js";import{getVariableValue as t}from"../utils/css-variables-conversion.js";import{isCSSVariableToken as r}from"../utils/is-css-variable.js";import{KeyframeResolver as n}from"./KeyframesResolver.js";import{isNone as o}from"./utils/is-none.js";import{makeNoneKeyframesAnimatable as i}from"./utils/make-none-animatable.js";import{isNumOrPxType as m,positionalValues as a}from"./utils/unit-conversion.js";class l extends n{constructor(e,s,t,r,n){super(e,s,t,r,n,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:o,name:i}=this;if(!o||!o.current)return;super.readKeyframes();for(let e=0;e<n.length;e++){let s=n[e];if("string"==typeof s&&(s=s.trim(),r(s))){const r=t(s,o.current);void 0!==r&&(n[e]=r),e===n.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!e.has(i)||2!==n.length)return;const[l,u]=n,f=s(l),h=s(u);if(f!==h)if(m(f)&&m(h))for(let e=0;e<n.length;e++){const s=n[e];"string"==typeof s&&(n[e]=parseFloat(s))}else a[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,t=[];for(let s=0;s<e.length;s++)(null===e[s]||o(e[s]))&&t.push(s);t.length&&i(e,t,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:t}=this;if(!e||!e.current)return;"height"===t&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=a[t](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];void 0!==r&&e.getValue(t,r).jump(r,!1)}measureEndState(){const{element:e,name:s,unresolvedKeyframes:t}=this;if(!e||!e.current)return;const r=e.getValue(s);r&&r.jump(this.measuredOrigin,!1);const n=t.length-1,o=t[n];t[n]=a[s](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,t])=>{e.getValue(s).set(t)}),this.resolveNoneKeyframes()}}export{l as DOMKeyframesResolver};
1
+ import{positionalKeys as e}from"../../render/utils/keys-position.js";import{findDimensionValueType as s}from"../../value/types/dimensions.js";import{getVariableValue as t}from"../utils/css-variables-conversion.js";import{isCSSVariableToken as r,containsCSSVariable as n}from"../utils/is-css-variable.js";import{KeyframeResolver as i}from"./KeyframesResolver.js";import{isNone as o}from"./utils/is-none.js";import{makeNoneKeyframesAnimatable as m}from"./utils/make-none-animatable.js";import{positionalValues as a,isNumOrPxType as l}from"./utils/unit-conversion.js";class u extends i{constructor(e,s,t,r,n){super(e,s,t,r,n,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:o,name:m}=this;if(!o||!o.current)return;super.readKeyframes();for(let e=0;e<i.length;e++){let s=i[e];if("string"==typeof s&&(s=s.trim(),r(s))){const r=t(s,o.current);void 0!==r&&(i[e]=r),e===i.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!e.has(m)||2!==i.length)return;const[u,f]=i,h=s(u),d=s(f);if(n(u)!==n(f)&&a[m])this.needsMeasurement=!0;else if(h!==d)if(l(h)&&l(d))for(let e=0;e<i.length;e++){const s=i[e];"string"==typeof s&&(i[e]=parseFloat(s))}else a[m]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,t=[];for(let s=0;s<e.length;s++)(null===e[s]||o(e[s]))&&t.push(s);t.length&&m(e,t,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:t}=this;if(!e||!e.current)return;"height"===t&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=a[t](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];void 0!==r&&e.getValue(t,r).jump(r,!1)}measureEndState(){const{element:e,name:s,unresolvedKeyframes:t}=this;if(!e||!e.current)return;const r=e.getValue(s);r&&r.jump(this.measuredOrigin,!1);const n=t.length-1,i=t[n];t[n]=a[s](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,t])=>{e.getValue(s).set(t)}),this.resolveNoneKeyframes()}}export{u as DOMKeyframesResolver};
@@ -1 +1 @@
1
- import{parseValueFromTransform as t}from"../../../render/dom/parse-transform.js";import{transformPropOrder as a}from"../../../render/utils/keys-transform.js";import{number as r}from"../../../value/types/numbers/index.js";import{px as e}from"../../../value/types/numbers/units.js";const o=t=>t===r||t===e,s=new Set(["x","y","z"]),n=a.filter(t=>!s.has(t));function m(t){const a=[];return n.forEach(r=>{const e=t.getValue(r);void 0!==e&&(a.push([r,e.get()]),e.set(r.startsWith("scale")?1:0))}),a}const p={width:({x:t},{paddingLeft:a="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(a)-parseFloat(r),height:({y:t},{paddingTop:a="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(a)-parseFloat(r),top:(t,{top:a})=>parseFloat(a),left:(t,{left:a})=>parseFloat(a),bottom:({y:t},{top:a})=>parseFloat(a)+(t.max-t.min),right:({x:t},{left:a})=>parseFloat(a)+(t.max-t.min),x:(a,{transform:r})=>t(r,"x"),y:(a,{transform:r})=>t(r,"y")};p.translateX=p.x,p.translateY=p.y;export{o as isNumOrPxType,p as positionalValues,m as removeNonTranslationalTransform};
1
+ import{parseValueFromTransform as t}from"../../../render/dom/parse-transform.js";import{transformPropOrder as r}from"../../../render/utils/keys-transform.js";import{number as o}from"../../../value/types/numbers/index.js";import{px as e}from"../../../value/types/numbers/units.js";const a=t=>t===o||t===e,s=new Set(["x","y","z"]),n=r.filter(t=>!s.has(t));function i(t){const r=[];return n.forEach(o=>{const e=t.getValue(o);void 0!==e&&(r.push([o,e.get()]),e.set(o.startsWith("scale")?1:0))}),r}const m={width:({x:t},{paddingLeft:r="0",paddingRight:o="0",boxSizing:e})=>{const a=t.max-t.min;return"border-box"===e?a:a-parseFloat(r)-parseFloat(o)},height:({y:t},{paddingTop:r="0",paddingBottom:o="0",boxSizing:e})=>{const a=t.max-t.min;return"border-box"===e?a:a-parseFloat(r)-parseFloat(o)},top:(t,{top:r})=>parseFloat(r),left:(t,{left:r})=>parseFloat(r),bottom:({y:t},{top:r})=>parseFloat(r)+(t.max-t.min),right:({x:t},{left:r})=>parseFloat(r)+(t.max-t.min),x:(r,{transform:o})=>t(o,"x"),y:(r,{transform:o})=>t(o,"y")};m.translateX=m.x,m.translateY=m.y;export{a as isNumOrPxType,m as positionalValues,i as removeNonTranslationalTransform};
@@ -0,0 +1 @@
1
+ import{transformProps as e}from"../../render/utils/keys-transform.js";const s={type:"spring",stiffness:500,damping:25,restSpeed:10},t={type:"keyframes",duration:.8},r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},a=(a,{keyframes:n})=>n.length>2?t:e.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:s:r;export{a as getDefaultTransition};
@@ -1 +1 @@
1
- function t(t,e){return t?.[e]??t?.default??t}export{t as getValueTransition};
1
+ import{resolveTransition as t}from"./resolve-transition.js";function o(o,r){const n=o?.[r]??o?.default??o;return n!==o?t(n,o):n}export{o as getValueTransition};
@@ -1 +1 @@
1
- const s=s=>t=>"string"==typeof t&&t.startsWith(s),t=s("--"),r=s("var(--"),i=s=>!!r(s)&&a.test(s.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;export{t as isCSSVariableName,i as isCSSVariableToken};
1
+ const t=t=>s=>"string"==typeof s&&s.startsWith(t),s=t("--"),r=t("var(--"),i=t=>!!r(t)&&n.test(t.split("/*")[0].trim()),n=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function e(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}export{e as containsCSSVariable,s as isCSSVariableName,i as isCSSVariableToken};
@@ -0,0 +1 @@
1
+ const e=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function r(r){for(const t in r)if(!e.has(t))return!0;return!1}export{r as isTransitionDefined};
@@ -1 +1 @@
1
- import{inertia as e}from"../generators/inertia.js";import{keyframes as r}from"../generators/keyframes.js";import{spring as t}from"../generators/spring/index.js";const n={decay:e,inertia:e,tween:r,keyframes:r,spring:t};function o(e){"string"==typeof e.type&&(e.type=n[e.type])}export{o as replaceTransitionType};
1
+ import{inertia as e}from"../generators/inertia.js";import{keyframes as r}from"../generators/keyframes.js";import{spring as t}from"../generators/spring.js";const o={decay:e,inertia:e,tween:r,keyframes:r,spring:t};function n(e){"string"==typeof e.type&&(e.type=o[e.type])}export{n as replaceTransitionType};
@@ -0,0 +1 @@
1
+ function n(n,r){if(n?.inherit&&r){const{inherit:t,...i}=n;return{...r,...i}}return n}export{n as resolveTransition};
@@ -1 +1 @@
1
- import{memo as t}from"../../../../../../motion-utils/dist/es/memo.js";const e=new Set(["opacity","clipPath","filter","transform"]),r=t(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function n(t){const{motionValue:n,name:o,repeatDelay:a,repeatType:i,damping:m,type:p}=t,s=n?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return r()&&o&&e.has(o)&&("transform"!==o||!l)&&!c&&!a&&"mirror"!==i&&0!==m&&"inertia"!==p}export{n as supportsBrowserAnimation};
1
+ import{acceleratedValues as o}from"../utils/accelerated-values.js";import{hasBrowserOnlyColors as r}from"../utils/is-browser-color.js";import{memo as e}from"../../../../../../motion-utils/dist/es/memo.js";const t=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),n=e(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function l(e){const{motionValue:l,name:a,repeatDelay:s,repeatType:i,damping:m,type:p,keyframes:c}=e,f=l?.owner?.current;if(!(f instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=l.owner.getProps();return n()&&a&&(o.has(a)||t.has(a)&&r(c))&&("transform"!==a||!d)&&!u&&!s&&"mirror"!==i&&0!==m&&"inertia"!==p}export{l as supportsBrowserAnimation};
@@ -0,0 +1 @@
1
+ const t=new Set(["opacity","clipPath","filter","transform"]);export{t as acceleratedValues};
@@ -0,0 +1 @@
1
+ const t=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function o(o){for(let r=0;r<o.length;r++)if("string"==typeof o[r]&&t.test(o[r]))return!0;return!1}export{o as hasBrowserOnlyColors};