laif-ds 0.1.9 → 0.1.11

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 (392) hide show
  1. package/dist/_virtual/index2.js +5 -2
  2. package/dist/_virtual/index3.js +5 -5
  3. package/dist/_virtual/index4.js +2 -5
  4. package/dist/_virtual/index5.js +2 -5
  5. package/dist/_virtual/index6.js +5 -2
  6. package/dist/components/ui/accordion.js +20 -20
  7. package/dist/components/ui/alert-dialog.js +41 -41
  8. package/dist/components/ui/alert.js +10 -10
  9. package/dist/components/ui/aspect-ratio.js +4 -4
  10. package/dist/components/ui/async-select.js +112 -112
  11. package/dist/components/ui/audio-visualizer.js +26 -26
  12. package/dist/components/ui/avatar.js +17 -17
  13. package/dist/components/ui/badge.js +9 -10
  14. package/dist/components/ui/breadcrumb.js +24 -25
  15. package/dist/components/ui/button.js +17 -17
  16. package/dist/components/ui/calendar.js +8 -8
  17. package/dist/components/ui/card.js +15 -15
  18. package/dist/components/ui/carousel.js +66 -66
  19. package/dist/components/ui/chart.js +80 -80
  20. package/dist/components/ui/chat-message.js +104 -104
  21. package/dist/components/ui/chat.js +109 -109
  22. package/dist/components/ui/checkbox.js +5 -5
  23. package/dist/components/ui/collapsible.js +10 -10
  24. package/dist/components/ui/command.js +52 -52
  25. package/dist/components/ui/context-menu.js +61 -61
  26. package/dist/components/ui/copy-button.js +19 -19
  27. package/dist/components/ui/data-table.js +73 -73
  28. package/dist/components/ui/date-picker.js +18 -18
  29. package/dist/components/ui/dialog.js +49 -49
  30. package/dist/components/ui/drawer.js +43 -43
  31. package/dist/components/ui/file-preview.js +49 -49
  32. package/dist/components/ui/form.js +33 -33
  33. package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
  34. package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
  35. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
  36. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
  37. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
  38. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
  39. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
  40. package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
  41. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
  42. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
  43. package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
  44. package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
  45. package/dist/components/ui/hover-card.js +4 -4
  46. package/dist/components/ui/icon.js +9 -9
  47. package/dist/components/ui/input-otp.js +14 -14
  48. package/dist/components/ui/input-selector.js +38 -38
  49. package/dist/components/ui/input.js +32 -32
  50. package/dist/components/ui/interrupt-prompt.js +9 -10
  51. package/dist/components/ui/label.js +4 -4
  52. package/dist/components/ui/markdown-renderer.js +60 -63
  53. package/dist/components/ui/menubar.js +89 -89
  54. package/dist/components/ui/message-input.js +149 -150
  55. package/dist/components/ui/message-list.js +15 -15
  56. package/dist/components/ui/multiple-selector.js +159 -159
  57. package/dist/components/ui/navigation-menu.js +44 -44
  58. package/dist/components/ui/pagination.js +39 -39
  59. package/dist/components/ui/popover.js +13 -13
  60. package/dist/components/ui/progress.js +14 -14
  61. package/dist/components/ui/prompt-suggestions.js +10 -10
  62. package/dist/components/ui/radio-group.js +15 -15
  63. package/dist/components/ui/resizable.js +13 -13
  64. package/dist/components/ui/scroll-area.js +25 -25
  65. package/dist/components/ui/select.js +80 -80
  66. package/dist/components/ui/separator.js +4 -4
  67. package/dist/components/ui/sheet.js +48 -48
  68. package/dist/components/ui/sidebar.js +178 -182
  69. package/dist/components/ui/skeleton.js +4 -4
  70. package/dist/components/ui/switch.js +5 -5
  71. package/dist/components/ui/table.js +14 -14
  72. package/dist/components/ui/tabs.js +10 -10
  73. package/dist/components/ui/textarea.js +2 -2
  74. package/dist/components/ui/toaster.js +2 -2
  75. package/dist/components/ui/toggle-group.js +6 -6
  76. package/dist/components/ui/toggle.js +2 -2
  77. package/dist/components/ui/tooltip.js +19 -19
  78. package/dist/components/ui/typing-indicator.js +7 -7
  79. package/dist/components/ui/typo.js +10 -10
  80. package/dist/dist/components/ui/checkbox.js +6 -6
  81. package/dist/dist/components/ui/scroll-area.js +30 -30
  82. package/dist/dist/components/ui/table.js +15 -15
  83. package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
  84. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
  85. package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
  86. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
  87. package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
  88. package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
  89. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
  90. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
  91. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
  92. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
  93. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
  94. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
  95. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
  96. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
  97. package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
  98. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
  99. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
  100. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
  101. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
  102. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
  103. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
  104. package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
  105. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
  106. package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
  107. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
  108. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
  109. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
  110. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
  111. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
  112. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
  113. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
  114. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
  115. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
  116. package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
  117. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
  118. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
  119. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
  120. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
  121. package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
  122. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
  123. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
  124. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
  125. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  126. package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
  127. package/dist/node_modules/react-is/index.js +1 -1
  128. package/dist/node_modules/react-markdown/lib/index.js +39 -39
  129. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  130. package/dist/node_modules/unified/lib/index.js +1 -1
  131. package/package.json +3 -2
  132. package/dist/_virtual/jsx-runtime.js +0 -6
  133. package/dist/_virtual/jsx-runtime2.js +0 -5
  134. package/dist/_virtual/react-jsx-runtime.development.js +0 -5
  135. package/dist/_virtual/react-jsx-runtime.production.js +0 -5
  136. package/dist/dist/_virtual/jsx-runtime.js +0 -6
  137. package/dist/dist/_virtual/jsx-runtime2.js +0 -5
  138. package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
  139. package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
  140. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
  141. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
  142. package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
  143. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
  144. package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
  145. package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
  146. package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
  147. package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
  148. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
  149. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
  150. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
  151. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
  152. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
  153. package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
  154. package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
  155. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
  156. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
  157. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
  158. package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
  159. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
  160. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
  161. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
  162. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
  163. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
  164. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
  165. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
  166. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
  167. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
  168. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
  169. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
  170. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
  171. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
  172. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
  173. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  174. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  175. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -13
  176. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
  177. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
  178. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
  179. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
  180. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
  181. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
  182. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
  183. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
  184. package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
  185. package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
  186. package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
  187. package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
  188. package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
  189. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
  190. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
  191. package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
  192. package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
  193. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
  194. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
  195. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
  196. package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
  197. package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
  198. package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
  199. package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
  200. package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
  202. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
  203. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
  204. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
  205. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
  206. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
  207. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
  208. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
  219. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
  220. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
  221. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
  225. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
  226. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -54
  227. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
  228. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
  229. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
  230. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
  231. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
  232. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
  233. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
  234. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
  235. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
  236. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
  237. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
  238. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
  239. package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
  240. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
  241. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
  242. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
  243. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
  244. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
  245. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
  246. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
  247. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
  248. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
  249. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
  250. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  251. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -16
  252. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  253. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -67
  254. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
  255. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
  256. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
  257. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
  258. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
  259. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
  260. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
  261. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
  262. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
  263. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
  264. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
  265. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
  266. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
  267. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
  268. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
  269. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
  270. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
  271. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
  272. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
  273. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
  274. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
  275. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
  276. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
  277. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
  278. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
  279. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
  280. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
  281. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
  282. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
  283. package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
  284. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
  285. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
  286. package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
  287. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
  288. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
  289. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
  290. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
  291. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
  292. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
  293. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
  294. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
  295. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
  296. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
  297. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
  298. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
  299. package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
  300. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
  301. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
  302. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
  303. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
  304. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
  305. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
  306. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
  307. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
  308. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
  309. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
  310. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
  311. package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
  312. package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
  313. package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
  314. package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
  315. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
  316. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
  317. package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
  318. package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
  319. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
  320. package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
  321. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
  322. package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
  323. package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
  324. package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
  325. package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
  326. package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
  327. package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
  328. package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
  329. package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
  330. package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
  331. package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
  332. package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
  333. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
  334. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
  335. package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
  336. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
  337. package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
  338. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
  339. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
  340. package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
  341. package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
  342. package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
  343. package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
  344. package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
  345. package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
  346. package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
  347. package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
  348. package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
  349. package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
  350. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
  351. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
  352. package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
  353. package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
  354. package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
  355. package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
  356. package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
  357. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
  358. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
  359. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
  360. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
  361. package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
  362. package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
  363. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
  364. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
  365. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
  366. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
  367. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
  368. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
  369. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
  370. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
  371. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
  372. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
  373. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
  374. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
  375. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
  376. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
  377. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
  378. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
  379. package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
  380. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  381. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
  382. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
  383. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
  384. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
  385. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
  386. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
  387. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
  388. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
  389. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
  390. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
  391. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
  392. package/dist/node_modules/react/jsx-runtime.js +0 -11
@@ -1,206 +0,0 @@
1
- "use client";
2
- import "../../../../../motion-utils/dist/es/errors.js";
3
- import { noop as y } from "../../../../../motion-utils/dist/es/noop.js";
4
- import { millisecondsToSeconds as g, secondsToMilliseconds as T } from "../../../../../motion-utils/dist/es/time-conversion.js";
5
- import { isGenerator as V } from "../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
6
- import { attachTimeline as w } from "../../../../../motion-dom/dist/es/animation/waapi/utils/attach-timeline.js";
7
- import { isWaapiSupportedEasing as F } from "../../../../../motion-dom/dist/es/animation/waapi/utils/easing.js";
8
- import { supportsLinearEasing as K } from "../../../../../motion-dom/dist/es/utils/supports/linear-easing.js";
9
- import { anticipate as E } from "../../easing/anticipate.js";
10
- import { backInOut as R } from "../../easing/back.js";
11
- import { circInOut as b } from "../../easing/circ.js";
12
- import { DOMKeyframesResolver as D } from "../../render/dom/DOMKeyframesResolver.js";
13
- import { BaseAnimation as M } from "./BaseAnimation.js";
14
- import { MainThreadAnimation as S } from "./MainThreadAnimation.js";
15
- import { acceleratedValues as U } from "./utils/accelerated-values.js";
16
- import { startWaapiAnimation as W } from "./waapi/index.js";
17
- import { getFinalKeyframe as x } from "./waapi/utils/get-final-keyframe.js";
18
- import { supportsWaapi as C } from "./waapi/utils/supports-waapi.js";
19
- const f = 10, G = 2e4;
20
- function O(r) {
21
- return V(r.type) || r.type === "spring" || !F(r.ease);
22
- }
23
- function k(r, e) {
24
- const t = new S({
25
- ...e,
26
- keyframes: r,
27
- repeat: 0,
28
- delay: 0,
29
- isGenerator: !0
30
- });
31
- let i = { done: !1, value: r[0] };
32
- const s = [];
33
- let n = 0;
34
- for (; !i.done && n < G; )
35
- i = t.sample(n), s.push(i.value), n += f;
36
- return {
37
- times: void 0,
38
- keyframes: s,
39
- duration: n - f,
40
- ease: "linear"
41
- };
42
- }
43
- const A = {
44
- anticipate: E,
45
- backInOut: R,
46
- circInOut: b
47
- };
48
- function I(r) {
49
- return r in A;
50
- }
51
- class ne extends M {
52
- constructor(e) {
53
- super(e);
54
- const { name: t, motionValue: i, element: s, keyframes: n } = this.options;
55
- this.resolver = new D(n, (a, o) => this.onKeyframesResolved(a, o), t, i, s), this.resolver.scheduleResolve();
56
- }
57
- initPlayback(e, t) {
58
- let { duration: i = 300, times: s, ease: n, type: a, motionValue: o, name: p, startTime: m } = this.options;
59
- if (!o.owner || !o.owner.current)
60
- return !1;
61
- if (typeof n == "string" && K() && I(n) && (n = A[n]), O(this.options)) {
62
- const { onComplete: c, onUpdate: P, motionValue: v, element: h, ...u } = this.options, d = k(e, u);
63
- e = d.keyframes, e.length === 1 && (e[1] = e[0]), i = d.duration, s = d.times, n = d.ease, a = "keyframes";
64
- }
65
- const l = W(o.owner.current, p, e, { ...this.options, duration: i, times: s, ease: n });
66
- return l.startTime = m ?? this.calcStartTime(), this.pendingTimeline ? (w(l, this.pendingTimeline), this.pendingTimeline = void 0) : l.onfinish = () => {
67
- const { onComplete: c } = this.options;
68
- o.set(x(e, this.options, t)), c && c(), this.cancel(), this.resolveFinishedPromise();
69
- }, {
70
- animation: l,
71
- duration: i,
72
- times: s,
73
- type: a,
74
- ease: n,
75
- keyframes: e
76
- };
77
- }
78
- get duration() {
79
- const { resolved: e } = this;
80
- if (!e)
81
- return 0;
82
- const { duration: t } = e;
83
- return g(t);
84
- }
85
- get time() {
86
- const { resolved: e } = this;
87
- if (!e)
88
- return 0;
89
- const { animation: t } = e;
90
- return g(t.currentTime || 0);
91
- }
92
- set time(e) {
93
- const { resolved: t } = this;
94
- if (!t)
95
- return;
96
- const { animation: i } = t;
97
- i.currentTime = T(e);
98
- }
99
- get speed() {
100
- const { resolved: e } = this;
101
- if (!e)
102
- return 1;
103
- const { animation: t } = e;
104
- return t.playbackRate;
105
- }
106
- set speed(e) {
107
- const { resolved: t } = this;
108
- if (!t)
109
- return;
110
- const { animation: i } = t;
111
- i.playbackRate = e;
112
- }
113
- get state() {
114
- const { resolved: e } = this;
115
- if (!e)
116
- return "idle";
117
- const { animation: t } = e;
118
- return t.playState;
119
- }
120
- get startTime() {
121
- const { resolved: e } = this;
122
- if (!e)
123
- return null;
124
- const { animation: t } = e;
125
- return t.startTime;
126
- }
127
- /**
128
- * Replace the default DocumentTimeline with another AnimationTimeline.
129
- * Currently used for scroll animations.
130
- */
131
- attachTimeline(e) {
132
- if (!this._resolved)
133
- this.pendingTimeline = e;
134
- else {
135
- const { resolved: t } = this;
136
- if (!t)
137
- return y;
138
- const { animation: i } = t;
139
- w(i, e);
140
- }
141
- return y;
142
- }
143
- play() {
144
- if (this.isStopped)
145
- return;
146
- const { resolved: e } = this;
147
- if (!e)
148
- return;
149
- const { animation: t } = e;
150
- t.playState === "finished" && this.updateFinishedPromise(), t.play();
151
- }
152
- pause() {
153
- const { resolved: e } = this;
154
- if (!e)
155
- return;
156
- const { animation: t } = e;
157
- t.pause();
158
- }
159
- stop() {
160
- if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
161
- return;
162
- this.resolveFinishedPromise(), this.updateFinishedPromise();
163
- const { resolved: e } = this;
164
- if (!e)
165
- return;
166
- const { animation: t, keyframes: i, duration: s, type: n, ease: a, times: o } = e;
167
- if (t.playState === "idle" || t.playState === "finished")
168
- return;
169
- if (this.time) {
170
- const { motionValue: m, onUpdate: l, onComplete: c, element: P, ...v } = this.options, h = new S({
171
- ...v,
172
- keyframes: i,
173
- duration: s,
174
- type: n,
175
- ease: a,
176
- times: o,
177
- isGenerator: !0
178
- }), u = T(this.time);
179
- m.setWithVelocity(h.sample(u - f).value, h.sample(u).value, f);
180
- }
181
- const { onStop: p } = this.options;
182
- p && p(), this.cancel();
183
- }
184
- complete() {
185
- const { resolved: e } = this;
186
- e && e.animation.finish();
187
- }
188
- cancel() {
189
- const { resolved: e } = this;
190
- e && e.animation.cancel();
191
- }
192
- static supports(e) {
193
- const { motionValue: t, name: i, repeatDelay: s, repeatType: n, damping: a, type: o } = e;
194
- if (!t || !t.owner || !(t.owner.current instanceof HTMLElement))
195
- return !1;
196
- const { onUpdate: p, transformTemplate: m } = t.owner.getProps();
197
- return C() && i && U.has(i) && /**
198
- * If we're outputting values to onUpdate then we can't use WAAPI as there's
199
- * no way to read the value from WAAPI every frame.
200
- */
201
- !p && !m && !s && n !== "mirror" && a !== 0 && o !== "inertia";
202
- }
203
- }
204
- export {
205
- ne as AcceleratedAnimation
206
- };
@@ -1,83 +0,0 @@
1
- "use client";
2
- import { time as d } from "../../frameloop/sync-time.js";
3
- import { flushKeyframeResolvers as m } from "../../render/utils/KeyframesResolver.js";
4
- import { canAnimate as p } from "./utils/can-animate.js";
5
- import { getFinalKeyframe as v } from "./waapi/utils/get-final-keyframe.js";
6
- const c = 40;
7
- class F {
8
- constructor({ autoplay: e = !0, delay: t = 0, type: i = "keyframes", repeat: o = 0, repeatDelay: r = 0, repeatType: n = "loop", ...s }) {
9
- this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = d.now(), this.options = {
10
- autoplay: e,
11
- delay: t,
12
- type: i,
13
- repeat: o,
14
- repeatDelay: r,
15
- repeatType: n,
16
- ...s
17
- }, this.updateFinishedPromise();
18
- }
19
- /**
20
- * This method uses the createdAt and resolvedAt to calculate the
21
- * animation startTime. *Ideally*, we would use the createdAt time as t=0
22
- * as the following frame would then be the first frame of the animation in
23
- * progress, which would feel snappier.
24
- *
25
- * However, if there's a delay (main thread work) between the creation of
26
- * the animation and the first commited frame, we prefer to use resolvedAt
27
- * to avoid a sudden jump into the animation.
28
- */
29
- calcStartTime() {
30
- return this.resolvedAt ? this.resolvedAt - this.createdAt > c ? this.resolvedAt : this.createdAt : this.createdAt;
31
- }
32
- /**
33
- * A getter for resolved data. If keyframes are not yet resolved, accessing
34
- * this.resolved will synchronously flush all pending keyframe resolvers.
35
- * This is a deoptimisation, but at its worst still batches read/writes.
36
- */
37
- get resolved() {
38
- return !this._resolved && !this.hasAttemptedResolve && m(), this._resolved;
39
- }
40
- /**
41
- * A method to be called when the keyframes resolver completes. This method
42
- * will check if its possible to run the animation and, if not, skip it.
43
- * Otherwise, it will call initPlayback on the implementing class.
44
- */
45
- onKeyframesResolved(e, t) {
46
- this.resolvedAt = d.now(), this.hasAttemptedResolve = !0;
47
- const { name: i, type: o, velocity: r, delay: n, onComplete: s, onUpdate: h, isGenerator: a } = this.options;
48
- if (!a && !p(e, i, o, r))
49
- if (n)
50
- this.options.duration = 0;
51
- else {
52
- h && h(v(e, this.options, t)), s && s(), this.resolveFinishedPromise();
53
- return;
54
- }
55
- const l = this.initPlayback(e, t);
56
- l !== !1 && (this._resolved = {
57
- keyframes: e,
58
- finalKeyframe: t,
59
- ...l
60
- }, this.onPostResolved());
61
- }
62
- onPostResolved() {
63
- }
64
- /**
65
- * Allows the returned animation to be awaited or promise-chained. Currently
66
- * resolves when the animation finishes at all but in a future update could/should
67
- * reject if its cancels.
68
- */
69
- then(e, t) {
70
- return this.currentFinishedPromise.then(e, t);
71
- }
72
- flatten() {
73
- this.options.type = "keyframes", this.options.ease = "linear";
74
- }
75
- updateFinishedPromise() {
76
- this.currentFinishedPromise = new Promise((e) => {
77
- this.resolveFinishedPromise = e;
78
- });
79
- }
80
- }
81
- export {
82
- F as BaseAnimation
83
- };
@@ -1,148 +0,0 @@
1
- "use client";
2
- import { invariant as w } from "../../../../../motion-utils/dist/es/errors.js";
3
- import { millisecondsToSeconds as g, secondsToMilliseconds as x } from "../../../../../motion-utils/dist/es/time-conversion.js";
4
- import { calcGeneratorDuration as G } from "../../../../../motion-dom/dist/es/animation/generators/utils/calc-duration.js";
5
- import { isGenerator as O } from "../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
6
- import { KeyframeResolver as I } from "../../render/utils/KeyframesResolver.js";
7
- import { clamp as A } from "../../utils/clamp.js";
8
- import { mix as B } from "../../utils/mix/index.js";
9
- import { pipe as C } from "../../utils/pipe.js";
10
- import { inertia as _ } from "../generators/inertia.js";
11
- import { keyframes as v } from "../generators/keyframes.js";
12
- import { spring as E } from "../generators/spring/index.js";
13
- import { BaseAnimation as N } from "./BaseAnimation.js";
14
- import { frameloopDriver as V } from "./drivers/driver-frameloop.js";
15
- import { getFinalKeyframe as j } from "./waapi/utils/get-final-keyframe.js";
16
- const U = {
17
- decay: _,
18
- inertia: _,
19
- tween: v,
20
- keyframes: v,
21
- spring: E
22
- }, W = (P) => P / 100;
23
- class nt extends N {
24
- constructor(t) {
25
- super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
26
- if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
27
- return;
28
- this.teardown();
29
- const { onStop: n } = this.options;
30
- n && n();
31
- };
32
- const { name: i, motionValue: r, element: e, keyframes: o } = this.options, u = (e == null ? void 0 : e.KeyframeResolver) || I, a = (n, l) => this.onKeyframesResolved(n, l);
33
- this.resolver = new u(o, a, i, r, e), this.resolver.scheduleResolve();
34
- }
35
- flatten() {
36
- super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
37
- }
38
- initPlayback(t) {
39
- const { type: i = "keyframes", repeat: r = 0, repeatDelay: e = 0, repeatType: o, velocity: u = 0 } = this.options, a = O(i) ? i : U[i] || v;
40
- let n, l;
41
- a !== v && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && w(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), n = C(W, B(t[0], t[1])), t = [0, 100]);
42
- const s = a({ ...this.options, keyframes: t });
43
- o === "mirror" && (l = a({
44
- ...this.options,
45
- keyframes: [...t].reverse(),
46
- velocity: -u
47
- })), s.calculatedDuration === null && (s.calculatedDuration = G(s));
48
- const { calculatedDuration: d } = s, p = d + e, f = p * (r + 1) - e;
49
- return {
50
- generator: s,
51
- mirroredGenerator: l,
52
- mapPercentToKeyframes: n,
53
- calculatedDuration: d,
54
- resolvedDuration: p,
55
- totalDuration: f
56
- };
57
- }
58
- onPostResolved() {
59
- const { autoplay: t = !0 } = this.options;
60
- this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState;
61
- }
62
- tick(t, i = !1) {
63
- const { resolved: r } = this;
64
- if (!r) {
65
- const { keyframes: c } = this.options;
66
- return { done: !0, value: c[c.length - 1] };
67
- }
68
- const { finalKeyframe: e, generator: o, mirroredGenerator: u, mapPercentToKeyframes: a, keyframes: n, calculatedDuration: l, totalDuration: s, resolvedDuration: d } = r;
69
- if (this.startTime === null)
70
- return o.next(0);
71
- const { delay: p, repeat: f, repeatType: D, repeatDelay: S, onUpdate: k } = this.options;
72
- this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - s / this.speed, this.startTime)), i ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
73
- const y = this.currentTime - p * (this.speed >= 0 ? 1 : -1), M = this.speed >= 0 ? y < 0 : y > s;
74
- this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
75
- let b = this.currentTime, K = o;
76
- if (f) {
77
- const c = Math.min(this.currentTime, s) / d;
78
- let T = Math.floor(c), h = c % 1;
79
- !h && c >= 1 && (h = 1), h === 1 && T--, T = Math.min(T, f + 1), !!(T % 2) && (D === "reverse" ? (h = 1 - h, S && (h -= S / d)) : D === "mirror" && (K = u)), b = A(0, 1, h) * d;
80
- }
81
- const m = M ? { done: !1, value: n[0] } : K.next(b);
82
- a && (m.value = a(m.value));
83
- let { done: F } = m;
84
- !M && l !== null && (F = this.speed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
85
- const R = this.holdTime === null && (this.state === "finished" || this.state === "running" && F);
86
- return R && e !== void 0 && (m.value = j(n, this.options, e)), k && k(m.value), R && this.finish(), m;
87
- }
88
- get duration() {
89
- const { resolved: t } = this;
90
- return t ? g(t.calculatedDuration) : 0;
91
- }
92
- get time() {
93
- return g(this.currentTime);
94
- }
95
- set time(t) {
96
- t = x(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
97
- }
98
- get speed() {
99
- return this.playbackSpeed;
100
- }
101
- set speed(t) {
102
- const i = this.playbackSpeed !== t;
103
- this.playbackSpeed = t, i && (this.time = g(this.currentTime));
104
- }
105
- play() {
106
- if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) {
107
- this.pendingPlayState = "running";
108
- return;
109
- }
110
- if (this.isStopped)
111
- return;
112
- const { driver: t = V, onPlay: i, startTime: r } = this.options;
113
- this.driver || (this.driver = t((o) => this.tick(o))), i && i();
114
- const e = this.driver.now();
115
- this.holdTime !== null ? this.startTime = e - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = e) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
116
- }
117
- pause() {
118
- var t;
119
- if (!this._resolved) {
120
- this.pendingPlayState = "paused";
121
- return;
122
- }
123
- this.state = "paused", this.holdTime = (t = this.currentTime) !== null && t !== void 0 ? t : 0;
124
- }
125
- complete() {
126
- this.state !== "running" && this.play(), this.pendingPlayState = this.state = "finished", this.holdTime = null;
127
- }
128
- finish() {
129
- this.teardown(), this.state = "finished";
130
- const { onComplete: t } = this.options;
131
- t && t();
132
- }
133
- cancel() {
134
- this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
135
- }
136
- teardown() {
137
- this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel();
138
- }
139
- stopDriver() {
140
- this.driver && (this.driver.stop(), this.driver = void 0);
141
- }
142
- sample(t) {
143
- return this.startTime = 0, this.tick(t, !0);
144
- }
145
- }
146
- export {
147
- nt as MainThreadAnimation
148
- };
@@ -1,18 +0,0 @@
1
- "use client";
2
- import { time as o } from "../../../frameloop/sync-time.js";
3
- import { frameData as e, cancelFrame as a, frame as s } from "../../../frameloop/frame.js";
4
- const n = (r) => {
5
- const t = ({ timestamp: m }) => r(m);
6
- return {
7
- start: () => s.update(t, !0),
8
- stop: () => a(t),
9
- /**
10
- * If we're processing this frame we can use the
11
- * framelocked timestamp to keep things in sync.
12
- */
13
- now: () => e.isProcessing ? e.timestamp : o.now()
14
- };
15
- };
16
- export {
17
- n as frameloopDriver
18
- };
@@ -1,13 +0,0 @@
1
- "use client";
2
- const e = /* @__PURE__ */ new Set([
3
- "opacity",
4
- "clipPath",
5
- "filter",
6
- "transform"
7
- // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
8
- // or until we implement support for linear() easing.
9
- // "background-color"
10
- ]);
11
- export {
12
- e as acceleratedValues
13
- };
@@ -1,24 +0,0 @@
1
- "use client";
2
- import { warning as s } from "../../../../../../motion-utils/dist/es/errors.js";
3
- import { isGenerator as f } from "../../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
4
- import { isAnimatable as l } from "../../utils/is-animatable.js";
5
- function g(t) {
6
- const i = t[0];
7
- if (t.length === 1)
8
- return !0;
9
- for (let n = 0; n < t.length; n++)
10
- if (t[n] !== i)
11
- return !0;
12
- }
13
- function h(t, i, n, u) {
14
- const r = t[0];
15
- if (r === null)
16
- return !1;
17
- if (i === "display" || i === "visibility")
18
- return !0;
19
- const e = t[t.length - 1], a = l(r, i), o = l(e, i);
20
- return s(a === o, `You are trying to animate ${i} from "${r}" to "${e}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${e} via the \`style\` property.`), !a || !o ? !1 : g(t) || (n === "spring" || f(n)) && u;
21
- }
22
- export {
23
- h as canAnimate
24
- };
@@ -1,19 +0,0 @@
1
- "use client";
2
- import "../../../../../../motion-utils/dist/es/errors.js";
3
- import { mapEasingToNativeEasing as p } from "../../../../../../motion-dom/dist/es/animation/waapi/utils/easing.js";
4
- function y(n, t, o, { delay: s = 0, duration: r = 300, repeat: f = 0, repeatType: l = "loop", ease: m = "easeInOut", times: e } = {}) {
5
- const i = { [t]: o };
6
- e && (i.offset = e);
7
- const a = p(m, r);
8
- return Array.isArray(a) && (i.easing = a), n.animate(i, {
9
- delay: s,
10
- duration: r,
11
- easing: Array.isArray(a) ? "linear" : a,
12
- fill: "both",
13
- iterations: f + 1,
14
- direction: l === "reverse" ? "alternate" : "normal"
15
- });
16
- }
17
- export {
18
- y as startWaapiAnimation
19
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- const i = (e) => e !== null;
3
- function u(e, { repeat: n, repeatType: s = "loop" }, o) {
4
- const l = e.filter(i), t = n && s !== "loop" && n % 2 === 1 ? 0 : l.length - 1;
5
- return !t || o === void 0 ? l[t] : o;
6
- }
7
- export {
8
- u as getFinalKeyframe
9
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- import "../../../../../../../motion-utils/dist/es/errors.js";
3
- import { memo as t } from "../../../../../../../motion-utils/dist/es/memo.js";
4
- const p = /* @__PURE__ */ t(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
5
- export {
6
- p as supportsWaapi
7
- };
@@ -1,38 +0,0 @@
1
- "use client";
2
- import { spring as L } from "./spring/index.js";
3
- import { calcGeneratorVelocity as R } from "./utils/velocity.js";
4
- function $({ keyframes: g, velocity: B = 0, power: M = 0.8, timeConstant: b = 325, bounceDamping: k = 10, bounceStiffness: F = 500, modifyTarget: l, min: t, max: a, restDelta: f = 0.5, restSpeed: O }) {
5
- const o = g[0], n = {
6
- done: !1,
7
- value: o
8
- }, C = (e) => t !== void 0 && e < t || a !== void 0 && e > a, D = (e) => t === void 0 ? a : a === void 0 || Math.abs(t - e) < Math.abs(a - e) ? t : a;
9
- let c = M * B;
10
- const d = o + c, u = l === void 0 ? d : l(d);
11
- u !== d && (c = u - o);
12
- const p = (e) => -c * Math.exp(-e / b), h = (e) => u + p(e), y = (e) => {
13
- const s = p(e), G = h(e);
14
- n.done = Math.abs(s) <= f, n.value = n.done ? u : G;
15
- };
16
- let r, i;
17
- const v = (e) => {
18
- C(n.value) && (r = e, i = L({
19
- keyframes: [n.value, D(n.value)],
20
- velocity: R(h, e, n.value),
21
- // TODO: This should be passing * 1000
22
- damping: k,
23
- stiffness: F,
24
- restDelta: f,
25
- restSpeed: O
26
- }));
27
- };
28
- return v(0), {
29
- calculatedDuration: null,
30
- next: (e) => {
31
- let s = !1;
32
- return !i && r === void 0 && (s = !0, y(e), v(e)), r !== void 0 && e >= r ? i.next(e - r) : (!s && y(e), n);
33
- }
34
- };
35
- }
36
- export {
37
- $ as inertia
38
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import { easeInOut as c } from "../../easing/ease.js";
3
- import { isEasingArray as p } from "../../easing/utils/is-easing-array.js";
4
- import { easingDefinitionToFunction as f } from "../../easing/utils/map.js";
5
- import { interpolate as u } from "../../utils/interpolate.js";
6
- import { defaultOffset as l } from "../../utils/offsets/default.js";
7
- import { convertOffsetToTimes as g } from "../../utils/offsets/time.js";
8
- function T(n, t) {
9
- return n.map(() => t || c).splice(0, n.length - 1);
10
- }
11
- function y({ duration: n = 300, keyframes: t, times: o, ease: e = "easeInOut" }) {
12
- const r = p(e) ? e.map(f) : f(e), i = {
13
- done: !1,
14
- value: t[0]
15
- }, m = g(
16
- // Only use the provided offsets if they're the correct length
17
- // TODO Maybe we should warn here if there's a length mismatch
18
- o && o.length === t.length ? o : l(t),
19
- n
20
- ), a = u(m, t, {
21
- ease: Array.isArray(r) ? r : T(t, r)
22
- });
23
- return {
24
- calculatedDuration: n,
25
- next: (s) => (i.value = a(s), i.done = s >= n, i)
26
- };
27
- }
28
- export {
29
- T as defaultEasing,
30
- y as keyframes
31
- };
@@ -1,33 +0,0 @@
1
- "use client";
2
- const a = {
3
- // Default spring physics
4
- stiffness: 100,
5
- damping: 10,
6
- mass: 1,
7
- velocity: 0,
8
- // Default duration/bounce-based options
9
- duration: 800,
10
- // in ms
11
- bounce: 0.3,
12
- visualDuration: 0.3,
13
- // in seconds
14
- // Rest thresholds
15
- restSpeed: {
16
- granular: 0.01,
17
- default: 2
18
- },
19
- restDelta: {
20
- granular: 5e-3,
21
- default: 0.5
22
- },
23
- // Limits
24
- minDuration: 0.01,
25
- // in seconds
26
- maxDuration: 10,
27
- // in seconds
28
- minDamping: 0.05,
29
- maxDamping: 1
30
- };
31
- export {
32
- a as springDefaults
33
- };