@pibit.ai/cure-design-system 0.3.5 → 0.3.6

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 (268) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +25 -21
  4. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +59 -0
  5. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +34 -0
  6. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +47 -0
  7. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  8. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
  9. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  10. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  11. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  12. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  13. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  14. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  15. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  16. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  17. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  18. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
  19. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +277 -0
  20. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
  21. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
  22. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
  23. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
  24. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +131 -0
  25. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
  26. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +23 -0
  27. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
  28. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
  29. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  30. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
  31. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  32. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  33. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
  34. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  35. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
  36. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
  37. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  38. package/dist/node_modules/framer-motion/dist/es/motion/index.js +63 -0
  39. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  40. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +22 -0
  41. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +66 -0
  42. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
  43. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
  44. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
  45. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
  46. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
  47. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  48. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
  49. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
  50. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  51. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
  52. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
  53. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  54. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  55. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
  56. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
  57. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  58. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
  59. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
  60. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  61. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  62. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +28 -0
  63. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
  64. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  65. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +106 -0
  66. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +133 -0
  67. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +109 -0
  68. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +37 -0
  69. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  70. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
  71. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
  72. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
  73. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +32 -0
  74. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +52 -0
  75. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +98 -0
  76. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  77. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
  78. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  79. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
  80. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
  81. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +49 -0
  82. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +30 -0
  83. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
  84. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +69 -0
  85. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +75 -0
  86. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
  87. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
  88. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
  89. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
  90. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
  91. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
  92. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
  93. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +31 -0
  94. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
  95. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  96. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
  97. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
  98. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
  99. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
  100. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
  101. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +8 -0
  102. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
  103. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
  104. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
  105. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +6 -0
  106. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
  107. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
  108. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
  109. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
  110. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
  111. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
  112. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +24 -0
  113. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
  114. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
  115. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
  116. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
  117. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
  118. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
  119. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  120. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
  121. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +41 -0
  122. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
  123. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  124. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  125. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
  126. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +33 -0
  127. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
  128. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  129. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  130. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  131. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  132. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  133. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
  134. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
  135. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
  136. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +52 -0
  137. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +36 -0
  138. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
  139. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
  140. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
  141. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +16 -0
  142. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  143. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +623 -0
  144. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
  145. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
  146. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
  147. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
  148. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  149. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
  150. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
  151. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
  152. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
  153. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
  154. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
  155. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
  156. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +247 -0
  157. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
  158. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
  159. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
  160. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
  161. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  162. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
  163. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  164. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
  165. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
  166. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
  167. package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
  168. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  169. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  170. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  171. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  172. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  173. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
  174. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  175. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +141 -0
  176. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
  177. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
  178. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
  179. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  180. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
  181. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
  182. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
  183. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
  184. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  188. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
  189. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
  190. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
  191. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
  192. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
  193. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
  194. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
  195. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
  196. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
  197. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
  198. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
  199. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
  200. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
  201. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
  202. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
  203. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
  204. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
  205. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  206. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
  207. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
  208. package/dist/node_modules/motion-dom/dist/es/value/index.js +215 -0
  209. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
  210. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
  211. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
  212. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
  213. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
  214. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
  215. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
  216. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
  217. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +49 -0
  218. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
  219. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
  220. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +24 -0
  221. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
  222. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +31 -0
  223. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
  224. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
  225. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
  226. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +10 -0
  227. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
  228. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
  229. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
  230. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
  231. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
  232. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
  233. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
  234. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
  235. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  236. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
  237. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  238. package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
  239. package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
  240. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
  241. package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
  242. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
  243. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +18 -0
  244. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
  245. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
  246. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
  247. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
  248. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
  249. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
  250. package/dist/node_modules/motion-utils/dist/es/errors.js +15 -0
  251. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
  252. package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
  253. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
  254. package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
  255. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
  256. package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
  257. package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
  258. package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
  259. package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
  260. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
  261. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
  262. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
  263. package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
  264. package/dist/patterns/tree/TreeStructure.js +110 -0
  265. package/dist/patterns/tree/helper.js +21 -0
  266. package/dist/patterns/tree/index.d.ts +4 -0
  267. package/dist/patterns/tree/index.d.ts.map +1 -0
  268. package/package.json +2 -2
@@ -0,0 +1,13 @@
1
+ const a = 2e4;
2
+ function o(n) {
3
+ let t = 0;
4
+ const r = 50;
5
+ let e = n.next(t);
6
+ for (; !e.done && t < 2e4; )
7
+ t += r, e = n.next(t);
8
+ return t >= 2e4 ? 1 / 0 : t;
9
+ }
10
+ export {
11
+ o as calcGeneratorDuration,
12
+ a as maxGeneratorDuration
13
+ };
@@ -0,0 +1,13 @@
1
+ import { calcGeneratorDuration as i, maxGeneratorDuration as m } from "./calc-duration.js";
2
+ import { millisecondsToSeconds as s } from "../../../../../../motion-utils/dist/es/time-conversion.js";
3
+ function f(n, r = 100, o) {
4
+ const e = o({ ...n, keyframes: [0, r] }), t = Math.min(i(e), m);
5
+ return {
6
+ type: "keyframes",
7
+ ease: (a) => e.next(t * a).value / r,
8
+ duration: s(t)
9
+ };
10
+ }
11
+ export {
12
+ f as createGeneratorEasing
13
+ };
@@ -0,0 +1,6 @@
1
+ function o(n) {
2
+ return typeof n == "function" && "applyToOptions" in n;
3
+ }
4
+ export {
5
+ o as isGenerator
6
+ };
@@ -0,0 +1,9 @@
1
+ import { velocityPerSecond as c } from "../../../../../../motion-utils/dist/es/velocity-per-second.js";
2
+ const n = 5;
3
+ function i(t, o, r) {
4
+ const e = Math.max(o - n, 0);
5
+ return c(r - t(e), o - e);
6
+ }
7
+ export {
8
+ i as calcGeneratorVelocity
9
+ };
@@ -0,0 +1,46 @@
1
+ import { AsyncMotionValueAnimation as A } from "../AsyncMotionValueAnimation.js";
2
+ import { JSAnimation as k } from "../JSAnimation.js";
3
+ import { getValueTransition as D } from "../utils/get-value-transition.js";
4
+ import { makeAnimationInstant as d } from "../utils/make-animation-instant.js";
5
+ import { getDefaultTransition as g } from "../utils/default-transitions.js";
6
+ import { getFinalKeyframe as C } from "../utils/get-final-keyframe.js";
7
+ import { isTransitionDefined as T } from "../utils/is-transition-defined.js";
8
+ import { frame as V } from "../../frameloop/frame.js";
9
+ import { secondsToMilliseconds as l } from "../../../../../motion-utils/dist/es/time-conversion.js";
10
+ import { MotionGlobalConfig as y } from "../../../../../motion-utils/dist/es/global-config.js";
11
+ const x = (a, t, r, m = {}, n, p) => (u) => {
12
+ const o = D(m, a) || {}, c = o.delay || m.delay || 0;
13
+ let { elapsed: s = 0 } = m;
14
+ s = s - l(c);
15
+ const e = {
16
+ keyframes: Array.isArray(r) ? r : [null, r],
17
+ ease: "easeOut",
18
+ velocity: t.getVelocity(),
19
+ ...o,
20
+ delay: -s,
21
+ onUpdate: (i) => {
22
+ t.set(i), o.onUpdate && o.onUpdate(i);
23
+ },
24
+ onComplete: () => {
25
+ u(), o.onComplete && o.onComplete();
26
+ },
27
+ name: a,
28
+ motionValue: t,
29
+ element: p ? void 0 : n
30
+ };
31
+ T(o) || Object.assign(e, g(a, e)), e.duration && (e.duration = l(e.duration)), e.repeatDelay && (e.repeatDelay = l(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
32
+ let f = !1;
33
+ if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (d(e), e.delay === 0 && (f = !0)), (y.instantAnimations || y.skipAnimations || n != null && n.shouldSkipAnimations) && (f = !0, d(e), e.delay = 0), e.allowFlatten = !o.type && !o.ease, f && !p && t.get() !== void 0) {
34
+ const i = C(e.keyframes, o);
35
+ if (i !== void 0) {
36
+ V.update(() => {
37
+ e.onUpdate(i), e.onComplete();
38
+ });
39
+ return;
40
+ }
41
+ }
42
+ return o.isSync ? new k(e) : new A(e);
43
+ };
44
+ export {
45
+ x as animateMotionValue
46
+ };
@@ -0,0 +1,49 @@
1
+ import { getValueTransition as y } from "../utils/get-value-transition.js";
2
+ import { positionalKeys as S } from "../../render/utils/keys-position.js";
3
+ import { setTarget as H } from "../../render/utils/setters.js";
4
+ import { addValueToWillChange as B } from "../../value/will-change/add-will-change.js";
5
+ import { getOptimisedAppearId as I } from "../optimized-appear/get-appear-id.js";
6
+ import { animateMotionValue as P } from "./motion-value.js";
7
+ import { frame as A } from "../../frameloop/frame.js";
8
+ function R({ protectedKeys: t, needsAnimating: e }, n) {
9
+ const r = t.hasOwnProperty(n) && e[n] !== !0;
10
+ return e[n] = !1, r;
11
+ }
12
+ function b(t, e, { delay: n = 0, transitionOverride: r, type: d } = {}) {
13
+ let { transition: i = t.getDefaultTransition(), transitionEnd: s, ...m } = e;
14
+ const V = i == null ? void 0 : i.reduceMotion;
15
+ r && (i = r);
16
+ const c = [], p = d && t.animationState && t.animationState.getState()[d];
17
+ for (const o in m) {
18
+ const a = t.getValue(o, t.latestValues[o] ?? null), f = m[o];
19
+ if (f === void 0 || p && R(p, o))
20
+ continue;
21
+ const u = {
22
+ delay: n,
23
+ ...y(i || {}, o)
24
+ }, l = a.get();
25
+ if (l !== void 0 && !a.isAnimating && !Array.isArray(f) && f === l && !u.velocity)
26
+ continue;
27
+ let g = !1;
28
+ if (window.MotionHandoffAnimation) {
29
+ const h = I(t);
30
+ if (h) {
31
+ const M = window.MotionHandoffAnimation(h, o, A);
32
+ M !== null && (u.startTime = M, g = !0);
33
+ }
34
+ }
35
+ B(t, o);
36
+ const w = V ?? t.shouldReduceMotion;
37
+ a.start(P(o, a, f, w && S.has(o) ? { type: !1 } : u, t, g));
38
+ const T = a.animation;
39
+ T && c.push(T);
40
+ }
41
+ return s && Promise.all(c).then(() => {
42
+ A.update(() => {
43
+ s && H(t, s);
44
+ });
45
+ }), c;
46
+ }
47
+ export {
48
+ b as animateTarget
49
+ };
@@ -0,0 +1,30 @@
1
+ import { resolveVariant as l } from "../../render/utils/resolve-dynamic-variants.js";
2
+ import { calcChildStagger as g } from "../utils/calc-child-stagger.js";
3
+ import { animateTarget as C } from "./visual-element-target.js";
4
+ function y(r, i, t = {}) {
5
+ var n;
6
+ const e = l(r, i, t.type === "exit" ? (n = r.presenceContext) == null ? void 0 : n.custom : void 0);
7
+ let { transition: o = r.getDefaultTransition() || {} } = e || {};
8
+ t.transitionOverride && (o = t.transitionOverride);
9
+ const a = e ? () => Promise.all(C(r, e, t)) : () => Promise.resolve(), s = r.variantChildren && r.variantChildren.size ? (f = 0) => {
10
+ const { delayChildren: d = 0, staggerChildren: m, staggerDirection: h } = o;
11
+ return P(r, i, f, d, m, h, t);
12
+ } : () => Promise.resolve(), { when: c } = o;
13
+ if (c) {
14
+ const [f, d] = c === "beforeChildren" ? [a, s] : [s, a];
15
+ return f().then(() => d());
16
+ } else
17
+ return Promise.all([a(), s(t.delay)]);
18
+ }
19
+ function P(r, i, t = 0, e = 0, o = 0, a = 1, s) {
20
+ const c = [];
21
+ for (const n of r.variantChildren)
22
+ n.notify("AnimationStart", i), c.push(y(n, i, {
23
+ ...s,
24
+ delay: t + (typeof e == "function" ? 0 : e) + g(r.variantChildren, n, e, o, a)
25
+ }).then(() => n.notify("AnimationComplete", i)));
26
+ return Promise.all(c);
27
+ }
28
+ export {
29
+ y as animateVariant
30
+ };
@@ -0,0 +1,22 @@
1
+ import { resolveVariant as c } from "../../render/utils/resolve-dynamic-variants.js";
2
+ import { animateTarget as p } from "./visual-element-target.js";
3
+ import { animateVariant as e } from "./visual-element-variant.js";
4
+ function n(a, r, t = {}) {
5
+ a.notify("AnimationStart", r);
6
+ let m;
7
+ if (Array.isArray(r)) {
8
+ const o = r.map((y) => e(a, y, t));
9
+ m = Promise.all(o);
10
+ } else if (typeof r == "string")
11
+ m = e(a, r, t);
12
+ else {
13
+ const o = typeof r == "function" ? c(a, r, t.custom) : r;
14
+ m = Promise.all(p(a, o, t));
15
+ }
16
+ return m.then(() => {
17
+ a.notify("AnimationComplete", r);
18
+ });
19
+ }
20
+ export {
21
+ n as animateVisualElement
22
+ };
@@ -0,0 +1,69 @@
1
+ import { positionalKeys as c } from "../../render/utils/keys-position.js";
2
+ import { findDimensionValueType as h } from "../../value/types/dimensions.js";
3
+ import { getVariableValue as g } from "../utils/css-variables-conversion.js";
4
+ import { isCSSVariableToken as K, containsCSSVariable as p } from "../utils/is-css-variable.js";
5
+ import { KeyframeResolver as v } from "./KeyframesResolver.js";
6
+ import { isNone as V } from "./utils/is-none.js";
7
+ import { makeNoneKeyframesAnimatable as S } from "./utils/make-none-animatable.js";
8
+ import { positionalValues as m, isNumOrPxType as y } from "./utils/unit-conversion.js";
9
+ class M extends v {
10
+ constructor(e, n, r, t, o) {
11
+ super(e, n, r, t, o, !0);
12
+ }
13
+ readKeyframes() {
14
+ const { unresolvedKeyframes: e, element: n, name: r } = this;
15
+ if (!n || !n.current)
16
+ return;
17
+ super.readKeyframes();
18
+ for (let s = 0; s < e.length; s++) {
19
+ let i = e[s];
20
+ if (typeof i == "string" && (i = i.trim(), K(i))) {
21
+ const d = g(i, n.current);
22
+ d !== void 0 && (e[s] = d), s === e.length - 1 && (this.finalKeyframe = i);
23
+ }
24
+ }
25
+ if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
26
+ return;
27
+ const [t, o] = e, a = h(t), f = h(o), l = p(t), u = p(o);
28
+ if (l !== u && m[r]) {
29
+ this.needsMeasurement = !0;
30
+ return;
31
+ }
32
+ if (a !== f)
33
+ if (y(a) && y(f))
34
+ for (let s = 0; s < e.length; s++) {
35
+ const i = e[s];
36
+ typeof i == "string" && (e[s] = parseFloat(i));
37
+ }
38
+ else m[r] && (this.needsMeasurement = !0);
39
+ }
40
+ resolveNoneKeyframes() {
41
+ const { unresolvedKeyframes: e, name: n } = this, r = [];
42
+ for (let t = 0; t < e.length; t++)
43
+ (e[t] === null || V(e[t])) && r.push(t);
44
+ r.length && S(e, r, n);
45
+ }
46
+ measureInitialState() {
47
+ const { element: e, unresolvedKeyframes: n, name: r } = this;
48
+ if (!e || !e.current)
49
+ return;
50
+ r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = m[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
51
+ const t = n[n.length - 1];
52
+ t !== void 0 && e.getValue(r, t).jump(t, !1);
53
+ }
54
+ measureEndState() {
55
+ var f;
56
+ const { element: e, name: n, unresolvedKeyframes: r } = this;
57
+ if (!e || !e.current)
58
+ return;
59
+ const t = e.getValue(n);
60
+ t && t.jump(this.measuredOrigin, !1);
61
+ const o = r.length - 1, a = r[o];
62
+ r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), (f = this.removedTransforms) != null && f.length && this.removedTransforms.forEach(([l, u]) => {
63
+ e.getValue(l).set(u);
64
+ }), this.resolveNoneKeyframes();
65
+ }
66
+ }
67
+ export {
68
+ M as DOMKeyframesResolver
69
+ };
@@ -0,0 +1,75 @@
1
+ import { fillWildcards as y } from "./utils/fill-wildcards.js";
2
+ import { removeNonTranslationalTransform as p } from "./utils/unit-conversion.js";
3
+ import { frame as c } from "../../frameloop/frame.js";
4
+ const l = /* @__PURE__ */ new Set();
5
+ let o = !1, d = !1, m = !1;
6
+ function u() {
7
+ if (d) {
8
+ const r = Array.from(l).filter((e) => e.needsMeasurement), s = new Set(r.map((e) => e.element)), a = /* @__PURE__ */ new Map();
9
+ s.forEach((e) => {
10
+ const t = p(e);
11
+ t.length && (a.set(e, t), e.render());
12
+ }), r.forEach((e) => e.measureInitialState()), s.forEach((e) => {
13
+ e.render();
14
+ const t = a.get(e);
15
+ t && t.forEach(([n, i]) => {
16
+ var f;
17
+ (f = e.getValue(n)) == null || f.set(i);
18
+ });
19
+ }), r.forEach((e) => e.measureEndState()), r.forEach((e) => {
20
+ e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
21
+ });
22
+ }
23
+ d = !1, o = !1, l.forEach((r) => r.complete(m)), l.clear();
24
+ }
25
+ function h() {
26
+ l.forEach((r) => {
27
+ r.readKeyframes(), r.needsMeasurement && (d = !0);
28
+ });
29
+ }
30
+ function S() {
31
+ m = !0, h(), u(), m = !1;
32
+ }
33
+ class g {
34
+ constructor(s, a, e, t, n, i = !1) {
35
+ this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...s], this.onComplete = a, this.name = e, this.motionValue = t, this.element = n, this.isAsync = i;
36
+ }
37
+ scheduleResolve() {
38
+ this.state = "scheduled", this.isAsync ? (l.add(this), o || (o = !0, c.read(h), c.resolveKeyframes(u))) : (this.readKeyframes(), this.complete());
39
+ }
40
+ readKeyframes() {
41
+ const { unresolvedKeyframes: s, name: a, element: e, motionValue: t } = this;
42
+ if (s[0] === null) {
43
+ const n = t == null ? void 0 : t.get(), i = s[s.length - 1];
44
+ if (n !== void 0)
45
+ s[0] = n;
46
+ else if (e && a) {
47
+ const f = e.readValue(a, i);
48
+ f != null && (s[0] = f);
49
+ }
50
+ s[0] === void 0 && (s[0] = i), t && n === void 0 && t.set(s[0]);
51
+ }
52
+ y(s);
53
+ }
54
+ setFinalKeyframe() {
55
+ }
56
+ measureInitialState() {
57
+ }
58
+ renderEndStyles() {
59
+ }
60
+ measureEndState() {
61
+ }
62
+ complete(s = !1) {
63
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, s), l.delete(this);
64
+ }
65
+ cancel() {
66
+ this.state === "scheduled" && (l.delete(this), this.state = "pending");
67
+ }
68
+ resume() {
69
+ this.state === "pending" && this.scheduleResolve();
70
+ }
71
+ }
72
+ export {
73
+ g as KeyframeResolver,
74
+ S as flushKeyframeResolvers
75
+ };
@@ -0,0 +1,8 @@
1
+ const i = (e) => e !== null;
2
+ function c(e, { repeat: n, repeatType: l = "loop" }, o, r = 1) {
3
+ const t = e.filter(i), s = r < 0 || n && l !== "loop" && n % 2 === 1 ? 0 : t.length - 1;
4
+ return !s || o === void 0 ? t[s] : o;
5
+ }
6
+ export {
7
+ c as getFinalKeyframe
8
+ };
@@ -0,0 +1,8 @@
1
+ import { fillOffset as e } from "./fill.js";
2
+ function n(t) {
3
+ const f = [0];
4
+ return e(f, t.length - 1), f;
5
+ }
6
+ export {
7
+ n as defaultOffset
8
+ };
@@ -0,0 +1,12 @@
1
+ import { mixNumber as e } from "../../../utils/mix/number.js";
2
+ import { progress as f } from "../../../../../../motion-utils/dist/es/progress.js";
3
+ function l(o, t) {
4
+ const s = o[o.length - 1];
5
+ for (let r = 1; r <= t; r++) {
6
+ const m = f(0, t, r);
7
+ o.push(e(s, 1, m));
8
+ }
9
+ }
10
+ export {
11
+ l as fillOffset
12
+ };
@@ -0,0 +1,6 @@
1
+ function o(e, t) {
2
+ return e.map((n) => n * t);
3
+ }
4
+ export {
5
+ o as convertOffsetToTimes
6
+ };
@@ -0,0 +1,7 @@
1
+ function t(i) {
2
+ for (let l = 1; l < i.length; l++)
3
+ i[l] ?? (i[l] = i[l - 1]);
4
+ }
5
+ export {
6
+ t as fillWildcards
7
+ };
@@ -0,0 +1,7 @@
1
+ import { isZeroValueString as n } from "../../../../../../motion-utils/dist/es/is-zero-value-string.js";
2
+ function t(r) {
3
+ return typeof r == "number" ? r === 0 : r !== null ? r === "none" || r === "0" || n(r) : !0;
4
+ }
5
+ export {
6
+ t as isNone
7
+ };
@@ -0,0 +1,16 @@
1
+ import { analyseComplexValue as l } from "../../../value/types/complex/index.js";
2
+ import { getAnimatableNone as m } from "../../../value/types/utils/animatable-none.js";
3
+ const f = /* @__PURE__ */ new Set(["auto", "none", "0"]);
4
+ function g(e, i, o) {
5
+ let n = 0, a;
6
+ for (; n < e.length && !a; ) {
7
+ const t = e[n];
8
+ typeof t == "string" && !f.has(t) && l(t).values.length && (a = e[n]), n++;
9
+ }
10
+ if (a && o)
11
+ for (const t of i)
12
+ e[t] = m(o, a);
13
+ }
14
+ export {
15
+ g as makeNoneKeyframesAnimatable
16
+ };
@@ -0,0 +1,31 @@
1
+ import { parseValueFromTransform as e } from "../../../render/dom/parse-transform.js";
2
+ import { transformPropOrder as n } from "../../../render/utils/keys-transform.js";
3
+ import { number as m } from "../../../value/types/numbers/index.js";
4
+ import { px as l } from "../../../value/types/numbers/units.js";
5
+ const c = (o) => o === m || o === l, i = /* @__PURE__ */ new Set(["x", "y", "z"]), p = n.filter((o) => !i.has(o));
6
+ function F(o) {
7
+ const r = [];
8
+ return p.forEach((a) => {
9
+ const s = o.getValue(a);
10
+ s !== void 0 && (r.push([a, s.get()]), s.set(a.startsWith("scale") ? 1 : 0));
11
+ }), r;
12
+ }
13
+ const t = {
14
+ // Dimensions
15
+ width: ({ x: o }, { paddingLeft: r = "0", paddingRight: a = "0" }) => o.max - o.min - parseFloat(r) - parseFloat(a),
16
+ height: ({ y: o }, { paddingTop: r = "0", paddingBottom: a = "0" }) => o.max - o.min - parseFloat(r) - parseFloat(a),
17
+ top: (o, { top: r }) => parseFloat(r),
18
+ left: (o, { left: r }) => parseFloat(r),
19
+ bottom: ({ y: o }, { top: r }) => parseFloat(r) + (o.max - o.min),
20
+ right: ({ x: o }, { left: r }) => parseFloat(r) + (o.max - o.min),
21
+ // Transform
22
+ x: (o, { transform: r }) => e(r, "x"),
23
+ y: (o, { transform: r }) => e(r, "y")
24
+ };
25
+ t.translateX = t.x;
26
+ t.translateY = t.y;
27
+ export {
28
+ c as isNumOrPxType,
29
+ t as positionalValues,
30
+ F as removeNonTranslationalTransform
31
+ };
@@ -0,0 +1,6 @@
1
+ import { camelToDash as a } from "../../render/dom/utils/camel-to-dash.js";
2
+ const t = "framerAppearId", e = "data-" + a(t);
3
+ export {
4
+ e as optimizedAppearDataAttribute,
5
+ t as optimizedAppearDataId
6
+ };
@@ -0,0 +1,7 @@
1
+ import { optimizedAppearDataAttribute as p } from "./data-id.js";
2
+ function e(t) {
3
+ return t.props[p];
4
+ }
5
+ export {
6
+ e as getOptimisedAppearId
7
+ };
@@ -0,0 +1,27 @@
1
+ class t {
2
+ constructor() {
3
+ this.updateFinished();
4
+ }
5
+ get finished() {
6
+ return this._finished;
7
+ }
8
+ updateFinished() {
9
+ this._finished = new Promise((i) => {
10
+ this.resolve = i;
11
+ });
12
+ }
13
+ notifyFinished() {
14
+ this.resolve();
15
+ }
16
+ /**
17
+ * Allows the animation to be awaited.
18
+ *
19
+ * @deprecated Use `finished` instead.
20
+ */
21
+ then(i, e) {
22
+ return this.finished.then(i, e);
23
+ }
24
+ }
25
+ export {
26
+ t as WithPromise
27
+ };
@@ -0,0 +1,7 @@
1
+ function x(t, s, c, o = 0, u = 1) {
2
+ const n = Array.from(t).sort((a, e) => a.sortNodePosition(e)).indexOf(s), i = t.size, r = (i - 1) * o;
3
+ return typeof c == "function" ? c(n, i) : u === 1 ? n * o : r - n * o;
4
+ }
5
+ export {
6
+ x as calcChildStagger
7
+ };
@@ -0,0 +1,23 @@
1
+ import { isGenerator as f } from "../generators/utils/is-generator.js";
2
+ import { isAnimatable as l } from "./is-animatable.js";
3
+ import { warning as g } from "../../../../../motion-utils/dist/es/errors.js";
4
+ function s(t) {
5
+ const i = t[0];
6
+ if (t.length === 1)
7
+ return !0;
8
+ for (let n = 0; n < t.length; n++)
9
+ if (t[n] !== i)
10
+ return !0;
11
+ }
12
+ function h(t, i, n, u) {
13
+ const r = t[0];
14
+ if (r === null)
15
+ return !1;
16
+ if (i === "display" || i === "visibility")
17
+ return !0;
18
+ const o = t[t.length - 1], a = l(r, i), e = l(o, i);
19
+ return g(a === e, `You are trying to animate ${i} from "${r}" to "${o}". "${a ? o : r}" is not an animatable value.`, "value-not-animatable"), !a || !e ? !1 : s(t) || (n === "spring" || f(n)) && u;
20
+ }
21
+ export {
22
+ h as canAnimate
23
+ };
@@ -0,0 +1,31 @@
1
+ import { isCSSVariableToken as c } from "./is-css-variable.js";
2
+ import { invariant as l } from "../../../../../motion-utils/dist/es/errors.js";
3
+ import { isNumericalString as s } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
4
+ const m = (
5
+ // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
6
+ /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
7
+ );
8
+ function p(a) {
9
+ const e = m.exec(a);
10
+ if (!e)
11
+ return [,];
12
+ const [, r, i, t] = e;
13
+ return [`--${r ?? i}`, t];
14
+ }
15
+ const f = 4;
16
+ function u(a, e, r = 1) {
17
+ l(r <= f, `Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
18
+ const [i, t] = p(a);
19
+ if (!i)
20
+ return;
21
+ const o = window.getComputedStyle(e).getPropertyValue(i);
22
+ if (o) {
23
+ const n = o.trim();
24
+ return s(n) ? parseFloat(n) : n;
25
+ }
26
+ return c(t) ? u(t, e, r + 1) : t;
27
+ }
28
+ export {
29
+ u as getVariableValue,
30
+ p as parseCSSVariable
31
+ };
@@ -0,0 +1,22 @@
1
+ import { transformProps as s } from "../../render/utils/keys-transform.js";
2
+ const r = {
3
+ type: "spring",
4
+ stiffness: 500,
5
+ damping: 25,
6
+ restSpeed: 10
7
+ }, n = (t) => ({
8
+ type: "spring",
9
+ stiffness: 550,
10
+ damping: t === 0 ? 2 * Math.sqrt(550) : 30,
11
+ restSpeed: 10
12
+ }), i = {
13
+ type: "keyframes",
14
+ duration: 0.8
15
+ }, a = {
16
+ type: "keyframes",
17
+ ease: [0.25, 0.1, 0.35, 1],
18
+ duration: 0.3
19
+ }, o = (t, { keyframes: e }) => e.length > 2 ? i : s.has(t) ? t.startsWith("scale") ? n(e[1]) : r : a;
20
+ export {
21
+ o as getDefaultTransition
22
+ };
@@ -0,0 +1,8 @@
1
+ const r = (e) => e !== null;
2
+ function i(e, { repeat: l, repeatType: o = "loop" }, f) {
3
+ const n = e.filter(r), t = l && o !== "loop" && l % 2 === 1 ? 0 : n.length - 1;
4
+ return n[t];
5
+ }
6
+ export {
7
+ i as getFinalKeyframe
8
+ };
@@ -0,0 +1,6 @@
1
+ function f(e, u) {
2
+ return (e == null ? void 0 : e[u]) ?? (e == null ? void 0 : e.default) ?? e;
3
+ }
4
+ export {
5
+ f as getValueTransition
6
+ };
@@ -0,0 +1,7 @@
1
+ import { complex as e } from "../../value/types/complex/index.js";
2
+ const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
3
+ (e.test(r) || r === "0") && // And it contains numbers and/or colors
4
+ !r.startsWith("url("));
5
+ export {
6
+ n as isAnimatable
7
+ };
@@ -0,0 +1,9 @@
1
+ const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2
+ function o(t) {
3
+ return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
4
+ }
5
+ export {
6
+ o as containsCSSVariable,
7
+ e as isCSSVariableName,
8
+ a as isCSSVariableToken
9
+ };
@@ -0,0 +1,6 @@
1
+ function g({ when: r, delay: t, delayChildren: a, staggerChildren: n, staggerDirection: i, repeat: l, repeatType: d, repeatDelay: p, from: s, elapsed: y, ...e }) {
2
+ return !!Object.keys(e).length;
3
+ }
4
+ export {
5
+ g as isTransitionDefined
6
+ };
@@ -0,0 +1,6 @@
1
+ function t(n) {
2
+ n.duration = 0, n.type = "keyframes";
3
+ }
4
+ export {
5
+ t as makeAnimationInstant
6
+ };
@@ -0,0 +1,16 @@
1
+ import { inertia as p } from "../generators/inertia.js";
2
+ import { keyframes as r } from "../generators/keyframes.js";
3
+ import { spring as t } from "../generators/spring/index.js";
4
+ const o = {
5
+ decay: p,
6
+ inertia: p,
7
+ tween: r,
8
+ keyframes: r,
9
+ spring: t
10
+ };
11
+ function m(e) {
12
+ typeof e.type == "string" && (e.type = o[e.type]);
13
+ }
14
+ export {
15
+ m as replaceTransitionType
16
+ };