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

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 (299) hide show
  1. package/dist/foundations/dot-icon/index.d.ts +7 -0
  2. package/dist/foundations/dot-icon/index.d.ts.map +1 -0
  3. package/dist/foundations/dot-icon/index.js +10 -0
  4. package/dist/index.d.ts +3 -3
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +42 -40
  7. package/dist/patterns/table/table.js +1 -1
  8. package/dist/patterns/tree-view/index.d.ts +2 -0
  9. package/dist/patterns/tree-view/index.d.ts.map +1 -0
  10. package/dist/patterns/tree-view/tree-view.d.ts +61 -0
  11. package/dist/patterns/tree-view/tree-view.d.ts.map +1 -0
  12. package/dist/patterns/tree-view/tree-view.js +167 -0
  13. package/dist/primitives/badge/badge-types.d.ts +17 -0
  14. package/dist/primitives/badge/badge-types.d.ts.map +1 -0
  15. package/dist/primitives/badge/badge-types.js +8 -0
  16. package/dist/primitives/badge/badge.d.ts +115 -22
  17. package/dist/primitives/badge/badge.d.ts.map +1 -1
  18. package/dist/primitives/badge/badge.js +292 -38
  19. package/dist/primitives/badge/index.d.ts +2 -1
  20. package/dist/primitives/badge/index.d.ts.map +1 -1
  21. package/dist/primitives/heading/heading.d.ts +1 -1
  22. package/dist/primitives/text/text.d.ts +1 -1
  23. package/dist/styles/components.css +1 -1
  24. package/package.json +2 -1
  25. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  26. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
  27. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  28. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  29. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  30. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  31. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  32. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  33. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  34. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  35. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  36. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  37. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  38. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  39. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  40. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -277
  41. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
  42. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
  43. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  44. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
  45. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -131
  46. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
  47. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
  48. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
  49. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
  50. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  51. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
  52. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  53. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  54. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
  55. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  56. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
  57. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
  58. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  59. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -63
  60. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  61. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -22
  62. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -66
  63. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  64. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
  65. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  66. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  67. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  68. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  69. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
  70. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
  71. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  72. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  73. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  74. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  75. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  76. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  77. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  78. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  79. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  80. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  81. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  82. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  83. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
  84. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  85. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  86. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -106
  87. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -133
  88. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -109
  89. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -37
  90. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
  91. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  92. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
  93. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
  94. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -32
  95. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -52
  96. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -98
  97. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  98. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
  99. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  100. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  101. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
  102. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -49
  103. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -30
  104. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
  105. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -69
  106. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -75
  107. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
  108. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
  109. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  110. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  111. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  112. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
  113. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  114. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -31
  115. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  116. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  117. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  118. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
  119. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
  120. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
  121. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
  122. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +0 -8
  123. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
  124. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  125. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  126. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -6
  127. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  128. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
  129. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  130. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
  131. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  132. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
  133. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -24
  134. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
  135. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  136. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
  137. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
  138. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  139. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
  140. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  141. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
  142. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
  143. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
  144. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  145. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  146. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
  147. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
  148. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
  149. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  150. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  151. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  152. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  153. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  154. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -27
  155. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
  156. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  157. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -52
  158. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -36
  159. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
  160. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  161. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
  162. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -16
  163. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  164. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -623
  165. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
  166. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -60
  167. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
  168. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
  169. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
  170. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
  171. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  172. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  173. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
  174. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  175. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
  176. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
  177. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -247
  178. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
  179. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  180. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
  181. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
  182. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  183. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -38
  184. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
  185. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
  186. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
  187. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -14
  188. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  189. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
  190. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
  191. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  192. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  193. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
  194. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
  195. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  196. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -141
  197. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
  198. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
  199. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
  200. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
  201. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
  202. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
  203. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  204. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
  205. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
  206. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
  207. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
  208. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  209. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
  210. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
  211. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
  212. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  213. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
  214. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
  215. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
  216. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
  217. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
  218. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
  219. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
  220. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  221. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
  222. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
  223. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
  224. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  225. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
  226. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  227. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  228. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  229. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -215
  230. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
  231. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
  232. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
  233. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
  234. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
  235. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
  236. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  237. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  238. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -49
  239. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
  240. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  241. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -24
  242. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
  243. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
  244. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  245. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
  246. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
  247. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
  248. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  249. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
  250. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  251. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
  252. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  253. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
  254. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  255. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  256. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
  257. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
  258. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
  259. package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  260. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
  261. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  262. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  263. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  264. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -18
  265. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  266. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
  267. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
  268. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
  269. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
  270. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
  271. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -15
  272. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
  273. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  274. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
  275. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -6
  276. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
  277. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  278. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  279. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
  280. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  281. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  282. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  283. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
  284. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
  285. package/dist/patterns/table/TableWrapper.js +0 -141
  286. package/dist/patterns/tree/TreeDemo.d.ts +0 -7
  287. package/dist/patterns/tree/TreeDemo.d.ts.map +0 -1
  288. package/dist/patterns/tree/TreeStructure.d.ts +0 -14
  289. package/dist/patterns/tree/TreeStructure.d.ts.map +0 -1
  290. package/dist/patterns/tree/TreeStructure.js +0 -110
  291. package/dist/patterns/tree/constants.d.ts +0 -18
  292. package/dist/patterns/tree/constants.d.ts.map +0 -1
  293. package/dist/patterns/tree/helper.d.ts +0 -6
  294. package/dist/patterns/tree/helper.d.ts.map +0 -1
  295. package/dist/patterns/tree/helper.js +0 -21
  296. package/dist/patterns/tree/index.d.ts +0 -4
  297. package/dist/patterns/tree/index.d.ts.map +0 -1
  298. package/dist/patterns/tree/interface.d.ts +0 -9
  299. package/dist/patterns/tree/interface.d.ts.map +0 -1
@@ -1,49 +0,0 @@
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
- };
@@ -1,30 +0,0 @@
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
- };
@@ -1,22 +0,0 @@
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
- };
@@ -1,69 +0,0 @@
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
- };
@@ -1,75 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- function o(e, t) {
2
- return e.map((n) => n * t);
3
- }
4
- export {
5
- o as convertOffsetToTimes
6
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,31 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,27 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,23 +0,0 @@
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
- };
@@ -1,31 +0,0 @@
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
- };
@@ -1,22 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- function t(n) {
2
- n.duration = 0, n.type = "keyframes";
3
- }
4
- export {
5
- t as makeAnimationInstant
6
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- const $ = ([c, e, i, r]) => `cubic-bezier(${c}, ${e}, ${i}, ${r})`;
2
- export {
3
- $ as cubicBezierAsString
4
- };
@@ -1,12 +0,0 @@
1
- import { supportsLinearEasing as o } from "../../../utils/supports/linear-easing.js";
2
- import { generateLinearEasing as f } from "../utils/linear.js";
3
- import { cubicBezierAsString as n } from "./cubic-bezier.js";
4
- import { supportedWaapiEasing as i } from "./supported.js";
5
- import { isBezierDefinition as p } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
6
- function m(r, e) {
7
- if (r)
8
- return typeof r == "function" ? o() ? f(r, e) : "ease-out" : p(r) ? n(r) : Array.isArray(r) ? r.map((t) => m(t, e) || i.easeOut) : i[r];
9
- }
10
- export {
11
- m as mapEasingToNativeEasing
12
- };
@@ -1,15 +0,0 @@
1
- import { cubicBezierAsString as e } from "./cubic-bezier.js";
2
- const i = {
3
- linear: "linear",
4
- ease: "ease",
5
- easeIn: "ease-in",
6
- easeOut: "ease-out",
7
- easeInOut: "ease-in-out",
8
- circIn: /* @__PURE__ */ e([0, 0.65, 0.55, 1]),
9
- circOut: /* @__PURE__ */ e([0.55, 0, 1, 0.45]),
10
- backIn: /* @__PURE__ */ e([0.31, 0.01, 0.66, -0.59]),
11
- backOut: /* @__PURE__ */ e([0.33, 1.53, 0.69, 0.99])
12
- };
13
- export {
14
- i as supportedWaapiEasing
15
- };
@@ -1,21 +0,0 @@
1
- import { mapEasingToNativeEasing as g } from "./easing/map-easing.js";
2
- function u(r, s, f, { delay: m = 0, duration: n = 300, repeat: p = 0, repeatType: c = "loop", ease: l = "easeOut", times: t } = {}, e = void 0) {
3
- const a = {
4
- [s]: f
5
- };
6
- t && (a.offset = t);
7
- const i = g(l, n);
8
- Array.isArray(i) && (a.easing = i);
9
- const o = {
10
- delay: m,
11
- duration: n,
12
- easing: Array.isArray(i) ? "linear" : i,
13
- fill: "both",
14
- iterations: p + 1,
15
- direction: c === "reverse" ? "alternate" : "normal"
16
- };
17
- return e && (o.pseudoElement = e), r.animate(a, o);
18
- }
19
- export {
20
- u as startWaapiAnimation
21
- };
@@ -1,24 +0,0 @@
1
- import { memo as m } from "../../../../../../motion-utils/dist/es/memo.js";
2
- const l = /* @__PURE__ */ new Set([
3
- "opacity",
4
- "clipPath",
5
- "filter",
6
- "transform"
7
- // TODO: Could be re-enabled now we have support for linear() easing
8
- // "background-color"
9
- ]), f = /* @__PURE__ */ m(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
10
- function w(n) {
11
- var r;
12
- const { motionValue: e, name: t, repeatDelay: a, repeatType: o, damping: s, type: p } = n;
13
- if (!(((r = e == null ? void 0 : e.owner) == null ? void 0 : r.current) instanceof HTMLElement))
14
- return !1;
15
- const { onUpdate: c, transformTemplate: i } = e.owner.getProps();
16
- return f() && t && l.has(t) && (t !== "transform" || !i) && /**
17
- * If we're outputting values to onUpdate then we can't use WAAPI as there's
18
- * no way to read the value from WAAPI every frame.
19
- */
20
- !c && !a && o !== "mirror" && s !== 0 && p !== "inertia";
21
- }
22
- export {
23
- w as supportsBrowserAnimation
24
- };
@@ -1,8 +0,0 @@
1
- import { supportsLinearEasing as a } from "../../../utils/supports/linear-easing.js";
2
- import { isGenerator as t } from "../../generators/utils/is-generator.js";
3
- function i({ type: e, ...r }) {
4
- return t(e) && a() ? e.applyToOptions(r) : (r.duration ?? (r.duration = 300), r.ease ?? (r.ease = "easeOut"), r);
5
- }
6
- export {
7
- i as applyGeneratorOptions
8
- };