motion-v 1.0.0-beta.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/dist/cjs/index.js +3089 -3584
  2. package/dist/es/animation/hooks/animation-controls.mjs +1 -1
  3. package/dist/es/animation/hooks/use-animate.mjs +1 -1
  4. package/dist/es/components/animate-presence/use-pop-layout.mjs +2 -1
  5. package/dist/es/components/motion/use-motion-state.d.ts +706 -706
  6. package/dist/es/components/reorder/index.d.ts +2808 -2808
  7. package/dist/es/components/reorder/utils.d.ts +1 -1
  8. package/dist/es/components/reorder/utils.mjs +2 -1
  9. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/index.mjs +3 -2
  10. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -1
  11. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
  12. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +2 -1
  13. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
  14. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +247 -0
  15. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +102 -0
  16. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +281 -0
  17. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/drivers/driver-frameloop.mjs +3 -2
  18. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/utils/can-animate.mjs +3 -3
  19. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +108 -0
  20. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +32 -0
  21. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +14 -0
  22. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +22 -0
  23. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +10 -0
  24. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs} +2 -1
  25. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +6 -0
  26. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/keyframes.mjs +5 -5
  27. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/find.mjs +3 -3
  28. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/index.mjs +6 -15
  29. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/utils/velocity.mjs +2 -1
  30. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +24 -16
  31. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +6 -8
  32. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
  33. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +2 -1
  34. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +4 -3
  35. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
  36. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/animation}/utils/is-none.mjs +1 -1
  37. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
  38. package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/cubic-bezier.mjs +2 -1
  39. package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/steps.mjs +1 -1
  40. package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
  41. package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/map.mjs +4 -7
  42. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
  43. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +14 -8
  44. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
  45. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
  46. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
  47. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +25 -48
  48. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
  49. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
  50. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
  51. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
  52. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
  53. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/VisualElement.mjs +19 -15
  54. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/DOMKeyframesResolver.mjs +9 -9
  55. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
  56. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +7 -6
  57. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +70 -0
  58. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +3 -2
  59. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/scroll/observe.mjs +3 -2
  60. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
  61. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
  62. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +4 -3
  63. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/css-variables-conversion.mjs +3 -3
  64. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/unit-conversion.mjs +2 -2
  65. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/animatable-none.mjs +3 -3
  66. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/defaults.mjs +2 -2
  67. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/dimensions.mjs +3 -3
  68. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +9 -0
  69. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs} +4 -13
  70. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +18 -0
  71. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/transform.mjs +2 -2
  72. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/int.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs} +1 -1
  73. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +2 -1
  74. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
  75. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
  76. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
  77. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/keys-transform.mjs +1 -1
  78. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/make-none-animatable.mjs +1 -1
  79. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
  80. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +15 -2
  81. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +8 -9
  82. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +15 -0
  83. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
  84. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
  85. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +12 -0
  86. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/render/utils}/KeyframesResolver.mjs +28 -26
  87. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
  88. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
  89. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
  90. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/setters.mjs +3 -5
  91. package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/delay.mjs +5 -4
  92. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/interpolate.mjs +6 -7
  93. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/color.mjs +4 -4
  94. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/complex.mjs +8 -7
  95. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/fill.mjs +3 -2
  96. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +11 -0
  97. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/transform.mjs +8 -1
  98. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/rgba.mjs +1 -1
  99. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/complex/index.mjs +1 -1
  100. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/numbers/index.mjs +1 -1
  101. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/numbers/units.mjs +3 -3
  102. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +10 -0
  103. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +9 -0
  104. package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimation.mjs → motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs} +15 -8
  105. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +9 -0
  106. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +2 -1
  107. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
  108. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
  109. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +81 -0
  110. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +7 -0
  111. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +37 -0
  112. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +3 -1
  113. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +4 -6
  114. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/frame.mjs +2 -1
  115. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/order.mjs +0 -4
  116. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +2 -1
  117. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
  118. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +74 -0
  119. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +12 -0
  120. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +2 -1
  121. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +6 -0
  122. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +13 -0
  123. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +2 -1
  124. package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/value/index.mjs +10 -12
  125. package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +13 -0
  126. package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/errors.mjs +3 -4
  127. package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +7 -0
  128. package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/warn-once.mjs +0 -6
  129. package/dist/es/features/animation/animation.mjs +4 -3
  130. package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +3 -2
  131. package/dist/es/features/gestures/drag/index.mjs +2 -1
  132. package/dist/es/features/gestures/focus/index.mjs +1 -1
  133. package/dist/es/features/gestures/hover/index.mjs +3 -2
  134. package/dist/es/features/gestures/in-view/index.mjs +3 -2
  135. package/dist/es/features/gestures/pan/PanSession.mjs +5 -4
  136. package/dist/es/features/gestures/pan/index.mjs +3 -2
  137. package/dist/es/features/gestures/press/index.mjs +3 -2
  138. package/dist/es/features/layout/config.mjs +2 -2
  139. package/dist/es/features/layout/layout.mjs +2 -2
  140. package/dist/es/features/layout/projection.mjs +2 -2
  141. package/dist/es/index.mjs +36 -243
  142. package/dist/es/state/animate-variants-children.d.ts +15 -0
  143. package/dist/es/state/create-visual-element.mjs +2 -2
  144. package/dist/es/state/motion-state.mjs +6 -2
  145. package/dist/es/state/utils.d.ts +2 -2
  146. package/dist/es/types/index.d.ts +1 -0
  147. package/dist/es/types/transform.d.ts +23 -0
  148. package/dist/es/utils/index.d.ts +1 -0
  149. package/dist/es/utils/time-conversion.mjs +8 -0
  150. package/dist/es/utils/use-animation-frame.mjs +2 -1
  151. package/dist/es/utils/use-in-view.mjs +1 -1
  152. package/dist/es/value/use-combine-values.mjs +3 -2
  153. package/dist/es/value/use-computed.mjs +2 -1
  154. package/dist/es/value/use-scroll.d.ts +4 -4
  155. package/dist/es/value/use-scroll.mjs +3 -2
  156. package/dist/es/value/use-spring.mjs +7 -6
  157. package/dist/es/value/use-time.d.ts +1 -1
  158. package/dist/es/value/use-time.mjs +2 -1
  159. package/dist/es/value/use-transform.d.ts +2 -1
  160. package/dist/es/value/use-transform.mjs +1 -1
  161. package/dist/es/value/use-velocity.mjs +3 -2
  162. package/package.json +4 -3
  163. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -73
  164. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -13
  165. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +0 -17
  166. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +0 -18
  167. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -9
  168. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +0 -27
  169. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -15
  170. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -7
  171. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +0 -133
  172. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +0 -10
  173. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/JSAnimation.mjs +0 -261
  174. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimation.mjs +0 -150
  175. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +0 -44
  176. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +0 -14
  177. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
  178. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +0 -10
  179. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +0 -11
  180. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +0 -8
  181. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +0 -29
  182. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/active-animations.mjs +0 -11
  183. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
  184. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +0 -18
  185. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +0 -4
  186. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +0 -9
  187. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +0 -21
  188. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +0 -15
  189. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +0 -36
  190. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +0 -26
  191. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +0 -14
  192. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +0 -40
  193. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +0 -19
  194. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/effects/style-effect.mjs +0 -30
  195. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/index-legacy.mjs +0 -11
  196. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +0 -25
  197. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -53
  198. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/is-css-var.mjs +0 -4
  199. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-computed.mjs +0 -8
  200. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-set.mjs +0 -7
  201. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs +0 -8
  202. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/index.mjs +0 -114
  203. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -4
  204. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -9
  205. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs +0 -9
  206. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/subscribe-value.mjs +0 -13
  207. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/transform-value.mjs +0 -14
  208. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs +0 -9
  209. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/index.mjs +0 -65
  210. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/queue.mjs +0 -45
  211. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/start.mjs +0 -115
  212. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +0 -12
  213. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs +0 -35
  214. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +0 -9
  215. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +0 -13
  216. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/has-target.mjs +0 -6
  217. package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs +0 -23
  218. package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs +0 -4
  219. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi → framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators}/utils/accelerated-values.mjs +0 -0
  220. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
  221. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/inertia.mjs +0 -0
  222. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/generators/spring/defaults.mjs +0 -0
  223. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
  224. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
  225. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
  226. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
  227. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
  228. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
  229. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/animation/utils/is-animatable.mjs +0 -0
  230. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
  231. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
  232. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
  233. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
  234. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/anticipate.mjs +0 -0
  235. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/back.mjs +0 -0
  236. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/circ.mjs +0 -0
  237. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/ease.mjs +0 -0
  238. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/modifiers/mirror.mjs +0 -0
  239. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/modifiers/reverse.mjs +0 -0
  240. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils → framer-motion@12.5.0/external/framer-motion}/dist/es/easing/utils/is-easing-array.mjs +0 -0
  241. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
  242. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
  243. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
  244. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
  245. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
  246. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
  247. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
  248. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
  249. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
  250. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
  251. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
  252. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
  253. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
  254. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
  255. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
  256. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
  257. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
  258. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
  259. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
  260. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom}/utils/is-css-variable.mjs +0 -0
  261. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
  262. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/get-as-type.mjs +0 -0
  263. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types}/test.mjs +0 -0
  264. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/auto.mjs → framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs} +0 -0
  265. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render → framer-motion@12.5.0/external/framer-motion/dist/es/render/html}/utils/keys-position.mjs +0 -0
  266. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/render/dom → framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils}/parse-transform.mjs +0 -0
  267. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
  268. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
  269. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
  270. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
  271. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
  272. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
  273. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
  274. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
  275. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
  276. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
  277. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
  278. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/clamp.mjs +0 -0
  279. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
  280. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/value/types/color → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/hsla-to-rgba.mjs +0 -0
  281. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
  282. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/is-numerical-string.mjs +0 -0
  283. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/is-zero-value-string.mjs +0 -0
  284. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/immediate.mjs +0 -0
  285. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/index.mjs +0 -0
  286. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/number.mjs +0 -0
  287. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/utils/mix/visibility.mjs +0 -0
  288. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/default.mjs +0 -0
  289. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/offsets/time.mjs +0 -0
  290. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/pipe.mjs +0 -0
  291. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
  292. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
  293. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es → framer-motion@12.5.0/external/framer-motion/dist/es/utils}/wrap.mjs +0 -0
  294. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/hex.mjs +0 -0
  295. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/hsla.mjs +0 -0
  296. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/index.mjs +0 -0
  297. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/color/utils.mjs +0 -0
  298. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/complex/filter.mjs +0 -0
  299. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/color-regex.mjs +0 -0
  300. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/float-regex.mjs +0 -0
  301. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/is-nullish.mjs +0 -0
  302. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/sanitize.mjs +0 -0
  303. /package/dist/es/external/.pnpm/{motion-dom@12.9.0/external/motion-dom → framer-motion@12.5.0/external/framer-motion}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
  304. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
  305. /package/dist/es/external/.pnpm/{framer-motion@12.9.0 → framer-motion@12.5.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
  306. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
  307. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
  308. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
  309. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
  310. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
  311. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
  312. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
  313. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
  314. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
  315. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
  316. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
  317. /package/dist/es/external/.pnpm/{motion-utils@12.8.3/external/motion-utils/dist/es/easing → motion-dom@12.5.0/external/motion-dom/dist/es}/utils/is-bezier-definition.mjs +0 -0
  318. /package/dist/es/external/.pnpm/{motion-dom@12.9.0 → motion-dom@12.5.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
  319. /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/memo.mjs +0 -0
  320. /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/noop.mjs +0 -0
  321. /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/progress.mjs +0 -0
  322. /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
  323. /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
  324. /package/dist/es/external/.pnpm/{motion-utils@12.8.3 → motion-utils@12.5.0}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
@@ -1,150 +0,0 @@
1
- import { setStyle } from "../render/dom/style-set.mjs";
2
- import { supportsScrollTimeline } from "../utils/supports/scroll-timeline.mjs";
3
- import { getFinalKeyframe } from "./keyframes/get-final.mjs";
4
- import { WithPromise } from "./utils/WithPromise.mjs";
5
- import { startWaapiAnimation } from "./waapi/start-waapi-animation.mjs";
6
- import { applyGeneratorOptions } from "./waapi/utils/apply-generator.mjs";
7
- import { invariant } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/errors.mjs";
8
- import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/time-conversion.mjs";
9
- import { noop } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/noop.mjs";
10
- class NativeAnimation extends WithPromise {
11
- constructor(options) {
12
- super();
13
- this.finishedTime = null;
14
- this.isStopped = false;
15
- if (!options)
16
- return;
17
- const { element, name, keyframes, pseudoElement, allowFlatten = false, finalKeyframe, onComplete } = options;
18
- this.isPseudoElement = Boolean(pseudoElement);
19
- this.allowFlatten = allowFlatten;
20
- this.options = options;
21
- invariant(typeof options.type !== "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
22
- const transition = applyGeneratorOptions(options);
23
- this.animation = startWaapiAnimation(element, name, keyframes, transition, pseudoElement);
24
- if (transition.autoplay === false) {
25
- this.animation.pause();
26
- }
27
- this.animation.onfinish = () => {
28
- this.finishedTime = this.time;
29
- if (!pseudoElement) {
30
- const keyframe = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);
31
- if (this.updateMotionValue) {
32
- this.updateMotionValue(keyframe);
33
- } else {
34
- setStyle(element, name, keyframe);
35
- }
36
- this.animation.cancel();
37
- }
38
- onComplete == null ? void 0 : onComplete();
39
- this.notifyFinished();
40
- };
41
- this.animation.oncancel = () => this.notifyFinished();
42
- }
43
- play() {
44
- if (this.isStopped)
45
- return;
46
- this.animation.play();
47
- if (this.state === "finished") {
48
- this.updateFinished();
49
- }
50
- }
51
- pause() {
52
- this.animation.pause();
53
- }
54
- complete() {
55
- var _a, _b;
56
- (_b = (_a = this.animation).finish) == null ? void 0 : _b.call(_a);
57
- }
58
- cancel() {
59
- try {
60
- this.animation.cancel();
61
- } catch (e) {
62
- }
63
- }
64
- stop() {
65
- if (this.isStopped)
66
- return;
67
- this.isStopped = true;
68
- const { state } = this;
69
- if (state === "idle" || state === "finished") {
70
- return;
71
- }
72
- if (this.updateMotionValue) {
73
- this.updateMotionValue();
74
- } else {
75
- this.commitStyles();
76
- }
77
- if (!this.isPseudoElement)
78
- this.cancel();
79
- }
80
- /**
81
- * WAAPI doesn't natively have any interruption capabilities.
82
- *
83
- * In this method, we commit styles back to the DOM before cancelling
84
- * the animation.
85
- *
86
- * This is designed to be overridden by NativeAnimationExtended, which
87
- * will create a renderless JS animation and sample it twice to calculate
88
- * its current value, "previous" value, and therefore allow
89
- * Motion to also correctly calculate velocity for any subsequent animation
90
- * while deferring the commit until the next animation frame.
91
- */
92
- commitStyles() {
93
- var _a, _b;
94
- if (!this.isPseudoElement) {
95
- (_b = (_a = this.animation).commitStyles) == null ? void 0 : _b.call(_a);
96
- }
97
- }
98
- get duration() {
99
- var _a, _b;
100
- const duration = ((_b = (_a = this.animation.effect) == null ? void 0 : _a.getComputedTiming) == null ? void 0 : _b.call(_a).duration) || 0;
101
- return millisecondsToSeconds(Number(duration));
102
- }
103
- get time() {
104
- return millisecondsToSeconds(Number(this.animation.currentTime) || 0);
105
- }
106
- set time(newTime) {
107
- this.finishedTime = null;
108
- this.animation.currentTime = secondsToMilliseconds(newTime);
109
- }
110
- /**
111
- * The playback speed of the animation.
112
- * 1 = normal speed, 2 = double speed, 0.5 = half speed.
113
- */
114
- get speed() {
115
- return this.animation.playbackRate;
116
- }
117
- set speed(newSpeed) {
118
- if (newSpeed < 0)
119
- this.finishedTime = null;
120
- this.animation.playbackRate = newSpeed;
121
- }
122
- get state() {
123
- return this.finishedTime !== null ? "finished" : this.animation.playState;
124
- }
125
- get startTime() {
126
- return Number(this.animation.startTime);
127
- }
128
- set startTime(newStartTime) {
129
- this.animation.startTime = newStartTime;
130
- }
131
- /**
132
- * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
133
- */
134
- attachTimeline({ timeline, observe }) {
135
- var _a;
136
- if (this.allowFlatten) {
137
- (_a = this.animation.effect) == null ? void 0 : _a.updateTiming({ easing: "linear" });
138
- }
139
- this.animation.onfinish = null;
140
- if (timeline && supportsScrollTimeline()) {
141
- this.animation.timeline = timeline;
142
- return noop;
143
- } else {
144
- return observe(this);
145
- }
146
- }
147
- }
148
- export {
149
- NativeAnimation
150
- };
@@ -1,44 +0,0 @@
1
- import { JSAnimation } from "./JSAnimation.mjs";
2
- import { NativeAnimation } from "./NativeAnimation.mjs";
3
- import { replaceTransitionType } from "./utils/replace-transition-type.mjs";
4
- import { replaceStringEasing } from "./waapi/utils/unsupported-easing.mjs";
5
- import { secondsToMilliseconds } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/time-conversion.mjs";
6
- const sampleDelta = 10;
7
- class NativeAnimationExtended extends NativeAnimation {
8
- constructor(options) {
9
- replaceStringEasing(options);
10
- replaceTransitionType(options);
11
- super(options);
12
- if (options.startTime) {
13
- this.startTime = options.startTime;
14
- }
15
- this.options = options;
16
- }
17
- /**
18
- * WAAPI doesn't natively have any interruption capabilities.
19
- *
20
- * Rather than read commited styles back out of the DOM, we can
21
- * create a renderless JS animation and sample it twice to calculate
22
- * its current value, "previous" value, and therefore allow
23
- * Motion to calculate velocity for any subsequent animation.
24
- */
25
- updateMotionValue(value) {
26
- const { motionValue, onUpdate, onComplete, element, ...options } = this.options;
27
- if (!motionValue)
28
- return;
29
- if (value !== void 0) {
30
- motionValue.set(value);
31
- return;
32
- }
33
- const sampleAnimation = new JSAnimation({
34
- ...options,
35
- autoplay: false
36
- });
37
- const sampleTime = secondsToMilliseconds(this.finishedTime ?? this.time);
38
- motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);
39
- sampleAnimation.stop();
40
- }
41
- }
42
- export {
43
- NativeAnimationExtended
44
- };
@@ -1,14 +0,0 @@
1
- import { NativeAnimation } from "./NativeAnimation.mjs";
2
- class NativeAnimationWrapper extends NativeAnimation {
3
- constructor(animation) {
4
- super();
5
- this.animation = animation;
6
- animation.onfinish = () => {
7
- this.finishedTime = this.time;
8
- this.notifyFinished();
9
- };
10
- }
11
- }
12
- export {
13
- NativeAnimationWrapper
14
- };
@@ -1,6 +0,0 @@
1
- function isGenerator(type) {
2
- return typeof type === "function" && "applyToOptions" in type;
3
- }
4
- export {
5
- isGenerator
6
- };
@@ -1,10 +0,0 @@
1
- const isNotNull = (value) => value !== null;
2
- function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe, speed = 1) {
3
- const resolvedKeyframes = keyframes.filter(isNotNull);
4
- const useFirstKeyframe = speed < 0 || repeat && repeatType !== "loop" && repeat % 2 === 1;
5
- const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;
6
- return !index || finalKeyframe === void 0 ? resolvedKeyframes[index] : finalKeyframe;
7
- }
8
- export {
9
- getFinalKeyframe
10
- };
@@ -1,11 +0,0 @@
1
- import { pxValues } from "../../waapi/utils/px-values.mjs";
2
- function applyPxDefaults(keyframes, name) {
3
- for (let i = 0; i < keyframes.length; i++) {
4
- if (typeof keyframes[i] === "number" && pxValues.has(name)) {
5
- keyframes[i] = keyframes[i] + "px";
6
- }
7
- }
8
- }
9
- export {
10
- applyPxDefaults
11
- };
@@ -1,8 +0,0 @@
1
- function fillWildcards(keyframes) {
2
- for (let i = 1; i < keyframes.length; i++) {
3
- keyframes[i] ?? (keyframes[i] = keyframes[i - 1]);
4
- }
5
- }
6
- export {
7
- fillWildcards
8
- };
@@ -1,29 +0,0 @@
1
- class WithPromise {
2
- constructor() {
3
- this.count = 0;
4
- this.updateFinished();
5
- }
6
- get finished() {
7
- return this._finished;
8
- }
9
- updateFinished() {
10
- this.count++;
11
- this._finished = new Promise((resolve) => {
12
- this.resolve = resolve;
13
- });
14
- }
15
- notifyFinished() {
16
- this.resolve();
17
- }
18
- /**
19
- * Allows the animation to be awaited.
20
- *
21
- * @deprecated Use `finished` instead.
22
- */
23
- then(onResolve, onReject) {
24
- return this.finished.then(onResolve, onReject);
25
- }
26
- }
27
- export {
28
- WithPromise
29
- };
@@ -1,11 +0,0 @@
1
- const animationMaps = /* @__PURE__ */ new WeakMap();
2
- const animationMapKey = (name, pseudoElement = "") => `${name}:${pseudoElement}`;
3
- function getAnimationMap(element) {
4
- const map = animationMaps.get(element) || /* @__PURE__ */ new Map();
5
- animationMaps.set(element, map);
6
- return map;
7
- }
8
- export {
9
- animationMapKey,
10
- getAnimationMap
11
- };
@@ -1,6 +0,0 @@
1
- function getValueTransition(transition, key) {
2
- return (transition == null ? void 0 : transition[key]) ?? (transition == null ? void 0 : transition["default"]) ?? transition;
3
- }
4
- export {
5
- getValueTransition
6
- };
@@ -1,18 +0,0 @@
1
- import { inertia } from "../generators/inertia.mjs";
2
- import { keyframes } from "../generators/keyframes.mjs";
3
- import { spring } from "../generators/spring/index.mjs";
4
- const transitionTypeMap = {
5
- decay: inertia,
6
- inertia,
7
- tween: keyframes,
8
- keyframes,
9
- spring
10
- };
11
- function replaceTransitionType(transition) {
12
- if (typeof transition.type === "string") {
13
- transition.type = transitionTypeMap[transition.type];
14
- }
15
- }
16
- export {
17
- replaceTransitionType
18
- };
@@ -1,4 +0,0 @@
1
- const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;
2
- export {
3
- cubicBezierAsString
4
- };
@@ -1,9 +0,0 @@
1
- import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
2
- import { supportedWaapiEasing } from "./supported.mjs";
3
- import { isBezierDefinition } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs";
4
- function isWaapiSupportedEasing(easing) {
5
- return Boolean(typeof easing === "function" && supportsLinearEasing() || !easing || typeof easing === "string" && (easing in supportedWaapiEasing || supportsLinearEasing()) || isBezierDefinition(easing) || Array.isArray(easing) && easing.every(isWaapiSupportedEasing));
6
- }
7
- export {
8
- isWaapiSupportedEasing
9
- };
@@ -1,21 +0,0 @@
1
- import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
2
- import { generateLinearEasing } from "../utils/linear.mjs";
3
- import { cubicBezierAsString } from "./cubic-bezier.mjs";
4
- import { supportedWaapiEasing } from "./supported.mjs";
5
- import { isBezierDefinition } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs";
6
- function mapEasingToNativeEasing(easing, duration) {
7
- if (!easing) {
8
- return void 0;
9
- } else if (typeof easing === "function") {
10
- return supportsLinearEasing() ? generateLinearEasing(easing, duration) : "ease-out";
11
- } else if (isBezierDefinition(easing)) {
12
- return cubicBezierAsString(easing);
13
- } else if (Array.isArray(easing)) {
14
- return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut);
15
- } else {
16
- return supportedWaapiEasing[easing];
17
- }
18
- }
19
- export {
20
- mapEasingToNativeEasing
21
- };
@@ -1,15 +0,0 @@
1
- import { cubicBezierAsString } from "./cubic-bezier.mjs";
2
- const supportedWaapiEasing = {
3
- linear: "linear",
4
- ease: "ease",
5
- easeIn: "ease-in",
6
- easeOut: "ease-out",
7
- easeInOut: "ease-in-out",
8
- circIn: /* @__PURE__ */ cubicBezierAsString([0, 0.65, 0.55, 1]),
9
- circOut: /* @__PURE__ */ cubicBezierAsString([0.55, 0, 1, 0.45]),
10
- backIn: /* @__PURE__ */ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
11
- backOut: /* @__PURE__ */ cubicBezierAsString([0.33, 1.53, 0.69, 0.99])
12
- };
13
- export {
14
- supportedWaapiEasing
15
- };
@@ -1,36 +0,0 @@
1
- import { activeAnimations } from "../../stats/animation-count.mjs";
2
- import { statsBuffer } from "../../stats/buffer.mjs";
3
- import { mapEasingToNativeEasing } from "./easing/map-easing.mjs";
4
- function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease = "easeOut", times } = {}, pseudoElement = void 0) {
5
- const keyframeOptions = {
6
- [valueName]: keyframes
7
- };
8
- if (times)
9
- keyframeOptions.offset = times;
10
- const easing = mapEasingToNativeEasing(ease, duration);
11
- if (Array.isArray(easing))
12
- keyframeOptions.easing = easing;
13
- if (statsBuffer.value) {
14
- activeAnimations.waapi++;
15
- }
16
- const options = {
17
- delay,
18
- duration,
19
- easing: !Array.isArray(easing) ? easing : "linear",
20
- fill: "both",
21
- iterations: repeat + 1,
22
- direction: repeatType === "reverse" ? "alternate" : "normal"
23
- };
24
- if (pseudoElement)
25
- options.pseudoElement = pseudoElement;
26
- const animation = element.animate(keyframeOptions, options);
27
- if (statsBuffer.value) {
28
- animation.finished.finally(() => {
29
- activeAnimations.waapi--;
30
- });
31
- }
32
- return animation;
33
- }
34
- export {
35
- startWaapiAnimation
36
- };
@@ -1,26 +0,0 @@
1
- import { memo } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/memo.mjs";
2
- const acceleratedValues = /* @__PURE__ */ new Set([
3
- "opacity",
4
- "clipPath",
5
- "filter",
6
- "transform"
7
- // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
8
- // or until we implement support for linear() easing.
9
- // "background-color"
10
- ]);
11
- const supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
12
- function supportsBrowserAnimation(options) {
13
- const { motionValue, name, repeatDelay, repeatType, damping, type } = options;
14
- if (!motionValue || !motionValue.owner || !(motionValue.owner.current instanceof HTMLElement)) {
15
- return false;
16
- }
17
- const { onUpdate, transformTemplate } = motionValue.owner.getProps();
18
- return supportsWaapi() && name && acceleratedValues.has(name) && (name !== "transform" || !transformTemplate) && /**
19
- * If we're outputting values to onUpdate then we can't use WAAPI as there's
20
- * no way to read the value from WAAPI every frame.
21
- */
22
- !onUpdate && !repeatDelay && repeatType !== "mirror" && damping !== 0 && type !== "inertia";
23
- }
24
- export {
25
- supportsBrowserAnimation
26
- };
@@ -1,14 +0,0 @@
1
- import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
2
- import { isGenerator } from "../../generators/utils/is-generator.mjs";
3
- function applyGeneratorOptions({ type, ...options }) {
4
- if (isGenerator(type) && supportsLinearEasing()) {
5
- return type.applyToOptions(options);
6
- } else {
7
- options.duration ?? (options.duration = 300);
8
- options.ease ?? (options.ease = "easeOut");
9
- }
10
- return options;
11
- }
12
- export {
13
- applyGeneratorOptions
14
- };
@@ -1,40 +0,0 @@
1
- const pxValues = /* @__PURE__ */ new Set([
2
- // Border props
3
- "borderWidth",
4
- "borderTopWidth",
5
- "borderRightWidth",
6
- "borderBottomWidth",
7
- "borderLeftWidth",
8
- "borderRadius",
9
- "radius",
10
- "borderTopLeftRadius",
11
- "borderTopRightRadius",
12
- "borderBottomRightRadius",
13
- "borderBottomLeftRadius",
14
- // Positioning props
15
- "width",
16
- "maxWidth",
17
- "height",
18
- "maxHeight",
19
- "top",
20
- "right",
21
- "bottom",
22
- "left",
23
- // Spacing props
24
- "padding",
25
- "paddingTop",
26
- "paddingRight",
27
- "paddingBottom",
28
- "paddingLeft",
29
- "margin",
30
- "marginTop",
31
- "marginRight",
32
- "marginBottom",
33
- "marginLeft",
34
- // Misc
35
- "backgroundPositionX",
36
- "backgroundPositionY"
37
- ]);
38
- export {
39
- pxValues
40
- };
@@ -1,19 +0,0 @@
1
- import { anticipate } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/anticipate.mjs";
2
- import { backInOut } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/back.mjs";
3
- import { circInOut } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/circ.mjs";
4
- const unsupportedEasingFunctions = {
5
- anticipate,
6
- backInOut,
7
- circInOut
8
- };
9
- function isUnsupportedEase(key) {
10
- return key in unsupportedEasingFunctions;
11
- }
12
- function replaceStringEasing(transition) {
13
- if (typeof transition.ease === "string" && isUnsupportedEase(transition.ease)) {
14
- transition.ease = unsupportedEasingFunctions[transition.ease];
15
- }
16
- }
17
- export {
18
- replaceStringEasing
19
- };
@@ -1,30 +0,0 @@
1
- import { resolveElements } from "../utils/resolve-elements.mjs";
2
- import { frame, cancelFrame } from "../frameloop/frame.mjs";
3
- function styleEffect(subject, values) {
4
- const elements = resolveElements(subject);
5
- const subscriptions = [];
6
- for (let i = 0; i < elements.length; i++) {
7
- const element = elements[i];
8
- for (const key in values) {
9
- const value = values[key];
10
- const updateStyle = () => {
11
- element.style[key] = value.get();
12
- };
13
- const scheduleUpdate = () => frame.render(updateStyle);
14
- const cancel = value.on("change", scheduleUpdate);
15
- scheduleUpdate();
16
- subscriptions.push(() => {
17
- cancel();
18
- cancelFrame(updateStyle);
19
- });
20
- }
21
- }
22
- return () => {
23
- for (const cancel of subscriptions) {
24
- cancel();
25
- }
26
- };
27
- }
28
- export {
29
- styleEffect
30
- };
@@ -1,11 +0,0 @@
1
- import { stepsOrder } from "./order.mjs";
2
- import { frame, cancelFrame } from "./frame.mjs";
3
- const sync = frame;
4
- const cancelSync = stepsOrder.reduce((acc, key) => {
5
- acc[key] = (process) => cancelFrame(process);
6
- return acc;
7
- }, {});
8
- export {
9
- cancelSync,
10
- sync
11
- };
@@ -1,25 +0,0 @@
1
- import { isDragging } from "./is-active.mjs";
2
- function setDragLock(axis) {
3
- if (axis === "x" || axis === "y") {
4
- if (isDragging[axis]) {
5
- return null;
6
- } else {
7
- isDragging[axis] = true;
8
- return () => {
9
- isDragging[axis] = false;
10
- };
11
- }
12
- } else {
13
- if (isDragging.x || isDragging.y) {
14
- return null;
15
- } else {
16
- isDragging.x = isDragging.y = true;
17
- return () => {
18
- isDragging.x = isDragging.y = false;
19
- };
20
- }
21
- }
22
- }
23
- export {
24
- setDragLock
25
- };
@@ -1,53 +0,0 @@
1
- import { isDragActive } from "../drag/state/is-active.mjs";
2
- import { isNodeOrChild } from "../utils/is-node-or-child.mjs";
3
- import { isPrimaryPointer } from "../utils/is-primary-pointer.mjs";
4
- import { setupGesture } from "../utils/setup.mjs";
5
- import { isElementKeyboardAccessible } from "./utils/is-keyboard-accessible.mjs";
6
- import { enableKeyboardPress } from "./utils/keyboard.mjs";
7
- import { isPressing } from "./utils/state.mjs";
8
- function isValidPressEvent(event) {
9
- return isPrimaryPointer(event) && !isDragActive();
10
- }
11
- function press(targetOrSelector, onPressStart, options = {}) {
12
- const [targets, eventOptions, cancelEvents] = setupGesture(targetOrSelector, options);
13
- const startPress = (startEvent) => {
14
- const target = startEvent.currentTarget;
15
- if (!isValidPressEvent(startEvent) || isPressing.has(target))
16
- return;
17
- isPressing.add(target);
18
- const onPressEnd = onPressStart(target, startEvent);
19
- const onPointerEnd = (endEvent, success) => {
20
- window.removeEventListener("pointerup", onPointerUp);
21
- window.removeEventListener("pointercancel", onPointerCancel);
22
- if (!isValidPressEvent(endEvent) || !isPressing.has(target)) {
23
- return;
24
- }
25
- isPressing.delete(target);
26
- if (typeof onPressEnd === "function") {
27
- onPressEnd(endEvent, { success });
28
- }
29
- };
30
- const onPointerUp = (upEvent) => {
31
- onPointerEnd(upEvent, target === window || target === document || options.useGlobalTarget || isNodeOrChild(target, upEvent.target));
32
- };
33
- const onPointerCancel = (cancelEvent) => {
34
- onPointerEnd(cancelEvent, false);
35
- };
36
- window.addEventListener("pointerup", onPointerUp, eventOptions);
37
- window.addEventListener("pointercancel", onPointerCancel, eventOptions);
38
- };
39
- targets.forEach((target) => {
40
- const pointerDownTarget = options.useGlobalTarget ? window : target;
41
- pointerDownTarget.addEventListener("pointerdown", startPress, eventOptions);
42
- if (target instanceof HTMLElement) {
43
- target.addEventListener("focus", (event) => enableKeyboardPress(event, eventOptions));
44
- if (!isElementKeyboardAccessible(target) && !target.hasAttribute("tabindex")) {
45
- target.tabIndex = 0;
46
- }
47
- }
48
- });
49
- return cancelEvents;
50
- }
51
- export {
52
- press
53
- };
@@ -1,4 +0,0 @@
1
- const isCSSVar = (name) => name.startsWith("--");
2
- export {
3
- isCSSVar
4
- };
@@ -1,8 +0,0 @@
1
- import { isCSSVar } from "./is-css-var.mjs";
2
- function getComputedStyle(element, name) {
3
- const computedStyle = window.getComputedStyle(element);
4
- return isCSSVar(name) ? computedStyle.getPropertyValue(name) : computedStyle[name];
5
- }
6
- export {
7
- getComputedStyle
8
- };
@@ -1,7 +0,0 @@
1
- import { isCSSVar } from "./is-css-var.mjs";
2
- function setStyle(element, name, value) {
3
- isCSSVar(name) ? element.style.setProperty(name, value) : element.style[name] = value;
4
- }
5
- export {
6
- setStyle
7
- };