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,6 +0,0 @@
1
- "use client";
2
- import { backIn as o } from "./back.js";
3
- const c = (t) => (t *= 2) < 1 ? 0.5 * o(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1)));
4
- export {
5
- c as anticipate
6
- };
@@ -1,10 +0,0 @@
1
- "use client";
2
- import { cubicBezier as r } from "./cubic-bezier.js";
3
- import { mirrorEasing as o } from "./modifiers/mirror.js";
4
- import { reverseEasing as t } from "./modifiers/reverse.js";
5
- const c = /* @__PURE__ */ r(0.33, 1.53, 0.69, 0.99), i = /* @__PURE__ */ t(c), s = /* @__PURE__ */ o(i);
6
- export {
7
- i as backIn,
8
- s as backInOut,
9
- c as backOut
10
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { mirrorEasing as t } from "./modifiers/mirror.js";
3
- import { reverseEasing as i } from "./modifiers/reverse.js";
4
- const r = (c) => 1 - Math.sin(Math.acos(c)), s = i(r), e = t(r);
5
- export {
6
- r as circIn,
7
- e as circInOut,
8
- s as circOut
9
- };
@@ -1,20 +0,0 @@
1
- "use client";
2
- import "../../../../motion-utils/dist/es/errors.js";
3
- import { noop as b } from "../../../../motion-utils/dist/es/noop.js";
4
- const s = (n, i, r) => (((1 - 3 * r + 3 * i) * n + (3 * r - 6 * i)) * n + 3 * i) * n, f = 1e-7, l = 12;
5
- function a(n, i, r, c, o) {
6
- let e, t, u = 0;
7
- do
8
- t = i + (r - i) / 2, e = s(t, c, o) - n, e > 0 ? r = t : i = t;
9
- while (Math.abs(e) > f && ++u < l);
10
- return t;
11
- }
12
- function h(n, i, r, c) {
13
- if (n === i && r === c)
14
- return b;
15
- const o = (e) => a(e, 0, 1, n, r);
16
- return (e) => e === 0 || e === 1 ? e : s(o(e), i, c);
17
- }
18
- export {
19
- h as cubicBezier
20
- };
@@ -1,8 +0,0 @@
1
- "use client";
2
- import { cubicBezier as e } from "./cubic-bezier.js";
3
- const s = /* @__PURE__ */ e(0.42, 0, 1, 1), c = /* @__PURE__ */ e(0, 0, 0.58, 1), n = /* @__PURE__ */ e(0.42, 0, 0.58, 1);
4
- export {
5
- s as easeIn,
6
- n as easeInOut,
7
- c as easeOut
8
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const t = (o) => (r) => r <= 0.5 ? o(2 * r) / 2 : (2 - o(2 * (1 - r))) / 2;
3
- export {
4
- t as mirrorEasing
5
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const n = (e) => (s) => 1 - e(1 - s);
3
- export {
4
- n as reverseEasing
5
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const n = (r) => Array.isArray(r) && typeof r[0] != "number";
3
- export {
4
- n as isEasingArray
5
- };
@@ -1,33 +0,0 @@
1
- "use client";
2
- import { invariant as e } from "../../../../../motion-utils/dist/es/errors.js";
3
- import { noop as i } from "../../../../../motion-utils/dist/es/noop.js";
4
- import { isBezierDefinition as u } from "../../../../../motion-dom/dist/es/utils/is-bezier-definition.js";
5
- import { anticipate as m } from "../anticipate.js";
6
- import { backOut as s, backInOut as p, backIn as f } from "../back.js";
7
- import { circOut as l, circInOut as I, circIn as b } from "../circ.js";
8
- import { cubicBezier as O } from "../cubic-bezier.js";
9
- import { easeOut as g, easeInOut as y, easeIn as k } from "../ease.js";
10
- const t = {
11
- linear: i,
12
- easeIn: k,
13
- easeInOut: y,
14
- easeOut: g,
15
- circIn: b,
16
- circInOut: I,
17
- circOut: l,
18
- backIn: f,
19
- backInOut: p,
20
- backOut: s,
21
- anticipate: m
22
- }, L = (r) => {
23
- if (u(r)) {
24
- e(r.length === 4, "Cubic bezier arrays must contain four numerical values.");
25
- const [o, n, a, c] = r;
26
- return O(o, n, a, c);
27
- } else if (typeof r == "string")
28
- return e(t[r] !== void 0, `Invalid easing type '${r}'`), t[r];
29
- return r;
30
- };
31
- export {
32
- L as easingDefinitionToFunction
33
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function r(e, n, t, i = { passive: !0 }) {
3
- return e.addEventListener(n, t, i), () => e.removeEventListener(n, t);
4
- }
5
- export {
6
- r as addDomEvent
7
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { addDomEvent as e } from "./add-dom-event.js";
3
- import { addPointerInfo as d } from "./event-info.js";
4
- function f(o, t, n, r) {
5
- return e(o, t, d(n), r);
6
- }
7
- export {
8
- f as addPointerEvent
9
- };
@@ -1,16 +0,0 @@
1
- "use client";
2
- import "../../../../motion-utils/dist/es/errors.js";
3
- import { isPrimaryPointer as t } from "../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
4
- function i(r) {
5
- return {
6
- point: {
7
- x: r.pageX,
8
- y: r.pageY
9
- }
10
- };
11
- }
12
- const a = (r) => (o) => t(o) && r(o, i(o));
13
- export {
14
- a as addPointerInfo,
15
- i as extractEventInfo
16
- };
@@ -1,40 +0,0 @@
1
- "use client";
2
- import { createRenderStep as E } from "./render-step.js";
3
- const a = [
4
- "read",
5
- // Read
6
- "resolveKeyframes",
7
- // Write/Read/Write/Read
8
- "update",
9
- // Compute
10
- "preRender",
11
- // Compute
12
- "render",
13
- // Write
14
- "postRender"
15
- // Compute
16
- ], F = 40;
17
- function B(o, l) {
18
- let t = !1, c = !0;
19
- const e = {
20
- delta: 0,
21
- timestamp: 0,
22
- isProcessing: !1
23
- }, d = () => t = !0, n = a.reduce((s, r) => (s[r] = E(d), s), {}), { read: u, resolveKeyframes: i, update: f, preRender: m, render: R, postRender: g } = n, p = () => {
24
- const s = performance.now();
25
- t = !1, e.delta = c ? 1e3 / 60 : Math.max(Math.min(s - e.timestamp, F), 1), e.timestamp = s, e.isProcessing = !0, u.process(e), i.process(e), f.process(e), m.process(e), R.process(e), g.process(e), e.isProcessing = !1, t && l && (c = !1, o(p));
26
- }, h = () => {
27
- t = !0, c = !0, e.isProcessing || o(p);
28
- };
29
- return { schedule: a.reduce((s, r) => {
30
- const x = n[r];
31
- return s[r] = (P, v = !1, w = !1) => (t || h(), x.schedule(P, v, w)), s;
32
- }, {}), cancel: (s) => {
33
- for (let r = 0; r < a.length; r++)
34
- n[a[r]].cancel(s);
35
- }, state: e, steps: n };
36
- }
37
- export {
38
- B as createRenderBatcher,
39
- a as stepsOrder
40
- };
@@ -1,11 +0,0 @@
1
- "use client";
2
- import "../../../../motion-utils/dist/es/errors.js";
3
- import { noop as e } from "../../../../motion-utils/dist/es/noop.js";
4
- import { createRenderBatcher as t } from "./batcher.js";
5
- const { schedule: n, cancel: o, state: c, steps: i } = t(typeof requestAnimationFrame < "u" ? requestAnimationFrame : e, !0);
6
- export {
7
- o as cancelFrame,
8
- n as frame,
9
- c as frameData,
10
- i as frameSteps
11
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { createRenderBatcher as e } from "./batcher.js";
3
- const { schedule: t } = e(queueMicrotask, !1);
4
- export {
5
- t as microtask
6
- };
@@ -1,42 +0,0 @@
1
- "use client";
2
- function m(u) {
3
- let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, n = !1;
4
- const a = /* @__PURE__ */ new WeakSet();
5
- let f = {
6
- delta: 0,
7
- timestamp: 0,
8
- isProcessing: !1
9
- };
10
- function d(e) {
11
- a.has(e) && (i.schedule(e), u()), e(f);
12
- }
13
- const i = {
14
- /**
15
- * Schedule a process to run on the next frame.
16
- */
17
- schedule: (e, l = !1, c = !1) => {
18
- const o = c && r ? t : s;
19
- return l && a.add(e), o.has(e) || o.add(e), e;
20
- },
21
- /**
22
- * Cancel the provided callback from running on the next frame.
23
- */
24
- cancel: (e) => {
25
- s.delete(e), a.delete(e);
26
- },
27
- /**
28
- * Execute all schedule callbacks.
29
- */
30
- process: (e) => {
31
- if (f = e, r) {
32
- n = !0;
33
- return;
34
- }
35
- r = !0, [t, s] = [s, t], t.forEach(d), t.clear(), r = !1, n && (n = !1, i.process(e));
36
- }
37
- };
38
- return i;
39
- }
40
- export {
41
- m as createRenderStep
42
- };
@@ -1,16 +0,0 @@
1
- "use client";
2
- import { MotionGlobalConfig as o } from "../utils/GlobalConfig.js";
3
- import { frameData as n } from "./frame.js";
4
- let e;
5
- function t() {
6
- e = void 0;
7
- }
8
- const r = {
9
- now: () => (e === void 0 && r.set(n.isProcessing || o.useManualTiming ? n.timestamp : performance.now()), e),
10
- set: (i) => {
11
- e = i, queueMicrotask(t);
12
- }
13
- };
14
- export {
15
- r as time
16
- };
@@ -1,257 +0,0 @@
1
- "use client";
2
- import { invariant as L } from "../../../../../motion-utils/dist/es/errors.js";
3
- import { setDragLock as M } from "../../../../../motion-dom/dist/es/gestures/drag/state/set-active.js";
4
- import { PanSession as S } from "../pan/PanSession.js";
5
- import { isRefObject as D } from "../../utils/is-ref-object.js";
6
- import { addPointerEvent as B } from "../../events/add-pointer-event.js";
7
- import { applyConstraints as k, calcRelativeConstraints as j, resolveDragElastic as T, calcViewportConstraints as w, defaultElastic as b, rebaseAxisConstraints as R, calcOrigin as W } from "./utils/constraints.js";
8
- import { createBox as _ } from "../../projection/geometry/models.js";
9
- import { eachAxis as u } from "../../projection/utils/each-axis.js";
10
- import { measurePageBox as O } from "../../projection/utils/measure.js";
11
- import { extractEventInfo as U } from "../../events/event-info.js";
12
- import { convertBoxToBoundingBox as z, convertBoundingBoxToBox as I } from "../../projection/geometry/conversion.js";
13
- import { addDomEvent as F } from "../../events/add-dom-event.js";
14
- import { calcLength as K } from "../../projection/geometry/delta-calc.js";
15
- import { mixNumber as V } from "../../utils/mix/number.js";
16
- import { percent as N } from "../../value/types/numbers/units.js";
17
- import { animateMotionValue as $ } from "../../animation/interfaces/motion-value.js";
18
- import { getContextWindow as q } from "../../utils/get-context-window.js";
19
- import { addValueToWillChange as x } from "../../value/use-will-change/add-will-change.js";
20
- import { frame as C } from "../../frameloop/frame.js";
21
- const G = /* @__PURE__ */ new WeakMap();
22
- class ft {
23
- constructor(t) {
24
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = _(), this.visualElement = t;
25
- }
26
- start(t, { snapToCursor: s = !1 } = {}) {
27
- const { presenceContext: i } = this.visualElement;
28
- if (i && i.isPresent === !1)
29
- return;
30
- const n = (o) => {
31
- const { dragSnapToOrigin: a } = this.getProps();
32
- a ? this.pauseAnimation() : this.stopAnimation(), s && this.snapToCursor(U(o).point);
33
- }, r = (o, a) => {
34
- const { drag: f, dragPropagation: d, onDragStart: g } = this.getProps();
35
- if (f && !d && (this.openDragLock && this.openDragLock(), this.openDragLock = M(f), !this.openDragLock))
36
- return;
37
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), u((m) => {
38
- let E = this.getAxisMotionValue(m).get() || 0;
39
- if (N.test(E)) {
40
- const { projection: A } = this.visualElement;
41
- if (A && A.layout) {
42
- const y = A.layout.layoutBox[m];
43
- y && (E = K(y) * (parseFloat(E) / 100));
44
- }
45
- }
46
- this.originPoint[m] = E;
47
- }), g && C.postRender(() => g(o, a)), x(this.visualElement, "transform");
48
- const { animationState: v } = this.visualElement;
49
- v && v.setActive("whileDrag", !0);
50
- }, e = (o, a) => {
51
- const { dragPropagation: f, dragDirectionLock: d, onDirectionLock: g, onDrag: v } = this.getProps();
52
- if (!f && !this.openDragLock)
53
- return;
54
- const { offset: m } = a;
55
- if (d && this.currentDirection === null) {
56
- this.currentDirection = H(m), this.currentDirection !== null && g && g(this.currentDirection);
57
- return;
58
- }
59
- this.updateAxis("x", a.point, m), this.updateAxis("y", a.point, m), this.visualElement.render(), v && v(o, a);
60
- }, l = (o, a) => this.stop(o, a), c = () => u((o) => {
61
- var a;
62
- return this.getAnimationState(o) === "paused" && ((a = this.getAxisMotionValue(o).animation) === null || a === void 0 ? void 0 : a.play());
63
- }), { dragSnapToOrigin: h } = this.getProps();
64
- this.panSession = new S(t, {
65
- onSessionStart: n,
66
- onStart: r,
67
- onMove: e,
68
- onSessionEnd: l,
69
- resumeAnimation: c
70
- }, {
71
- transformPagePoint: this.visualElement.getTransformPagePoint(),
72
- dragSnapToOrigin: h,
73
- contextWindow: q(this.visualElement)
74
- });
75
- }
76
- stop(t, s) {
77
- const i = this.isDragging;
78
- if (this.cancel(), !i)
79
- return;
80
- const { velocity: n } = s;
81
- this.startAnimation(n);
82
- const { onDragEnd: r } = this.getProps();
83
- r && C.postRender(() => r(t, s));
84
- }
85
- cancel() {
86
- this.isDragging = !1;
87
- const { projection: t, animationState: s } = this.visualElement;
88
- t && (t.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0;
89
- const { dragPropagation: i } = this.getProps();
90
- !i && this.openDragLock && (this.openDragLock(), this.openDragLock = null), s && s.setActive("whileDrag", !1);
91
- }
92
- updateAxis(t, s, i) {
93
- const { drag: n } = this.getProps();
94
- if (!i || !P(t, n, this.currentDirection))
95
- return;
96
- const r = this.getAxisMotionValue(t);
97
- let e = this.originPoint[t] + i[t];
98
- this.constraints && this.constraints[t] && (e = k(e, this.constraints[t], this.elastic[t])), r.set(e);
99
- }
100
- resolveConstraints() {
101
- var t;
102
- const { dragConstraints: s, dragElastic: i } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, r = this.constraints;
103
- s && D(s) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : s && n ? this.constraints = j(n.layoutBox, s) : this.constraints = !1, this.elastic = T(i), r !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && u((e) => {
104
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = R(n.layoutBox[e], this.constraints[e]));
105
- });
106
- }
107
- resolveRefConstraints() {
108
- const { dragConstraints: t, onMeasureDragConstraints: s } = this.getProps();
109
- if (!t || !D(t))
110
- return !1;
111
- const i = t.current;
112
- L(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
113
- const { projection: n } = this.visualElement;
114
- if (!n || !n.layout)
115
- return !1;
116
- const r = O(i, n.root, this.visualElement.getTransformPagePoint());
117
- let e = w(n.layout.layoutBox, r);
118
- if (s) {
119
- const l = s(z(e));
120
- this.hasMutatedConstraints = !!l, l && (e = I(l));
121
- }
122
- return e;
123
- }
124
- startAnimation(t) {
125
- const { drag: s, dragMomentum: i, dragElastic: n, dragTransition: r, dragSnapToOrigin: e, onDragTransitionEnd: l } = this.getProps(), c = this.constraints || {}, h = u((o) => {
126
- if (!P(o, s, this.currentDirection))
127
- return;
128
- let a = c && c[o] || {};
129
- e && (a = { min: 0, max: 0 });
130
- const f = n ? 200 : 1e6, d = n ? 40 : 1e7, g = {
131
- type: "inertia",
132
- velocity: i ? t[o] : 0,
133
- bounceStiffness: f,
134
- bounceDamping: d,
135
- timeConstant: 750,
136
- restDelta: 1,
137
- restSpeed: 10,
138
- ...r,
139
- ...a
140
- };
141
- return this.startAxisValueAnimation(o, g);
142
- });
143
- return Promise.all(h).then(l);
144
- }
145
- startAxisValueAnimation(t, s) {
146
- const i = this.getAxisMotionValue(t);
147
- return x(this.visualElement, t), i.start($(t, i, 0, s, this.visualElement, !1));
148
- }
149
- stopAnimation() {
150
- u((t) => this.getAxisMotionValue(t).stop());
151
- }
152
- pauseAnimation() {
153
- u((t) => {
154
- var s;
155
- return (s = this.getAxisMotionValue(t).animation) === null || s === void 0 ? void 0 : s.pause();
156
- });
157
- }
158
- getAnimationState(t) {
159
- var s;
160
- return (s = this.getAxisMotionValue(t).animation) === null || s === void 0 ? void 0 : s.state;
161
- }
162
- /**
163
- * Drag works differently depending on which props are provided.
164
- *
165
- * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.
166
- * - Otherwise, we apply the delta to the x/y motion values.
167
- */
168
- getAxisMotionValue(t) {
169
- const s = `_drag${t.toUpperCase()}`, i = this.visualElement.getProps(), n = i[s];
170
- return n || this.visualElement.getValue(t, (i.initial ? i.initial[t] : void 0) || 0);
171
- }
172
- snapToCursor(t) {
173
- u((s) => {
174
- const { drag: i } = this.getProps();
175
- if (!P(s, i, this.currentDirection))
176
- return;
177
- const { projection: n } = this.visualElement, r = this.getAxisMotionValue(s);
178
- if (n && n.layout) {
179
- const { min: e, max: l } = n.layout.layoutBox[s];
180
- r.set(t[s] - V(e, l, 0.5));
181
- }
182
- });
183
- }
184
- /**
185
- * When the viewport resizes we want to check if the measured constraints
186
- * have changed and, if so, reposition the element within those new constraints
187
- * relative to where it was before the resize.
188
- */
189
- scalePositionWithinConstraints() {
190
- if (!this.visualElement.current)
191
- return;
192
- const { drag: t, dragConstraints: s } = this.getProps(), { projection: i } = this.visualElement;
193
- if (!D(s) || !i || !this.constraints)
194
- return;
195
- this.stopAnimation();
196
- const n = { x: 0, y: 0 };
197
- u((e) => {
198
- const l = this.getAxisMotionValue(e);
199
- if (l && this.constraints !== !1) {
200
- const c = l.get();
201
- n[e] = W({ min: c, max: c }, this.constraints[e]);
202
- }
203
- });
204
- const { transformTemplate: r } = this.visualElement.getProps();
205
- this.visualElement.current.style.transform = r ? r({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), u((e) => {
206
- if (!P(e, t, null))
207
- return;
208
- const l = this.getAxisMotionValue(e), { min: c, max: h } = this.constraints[e];
209
- l.set(V(c, h, n[e]));
210
- });
211
- }
212
- addListeners() {
213
- if (!this.visualElement.current)
214
- return;
215
- G.set(this.visualElement, this);
216
- const t = this.visualElement.current, s = B(t, "pointerdown", (c) => {
217
- const { drag: h, dragListener: o = !0 } = this.getProps();
218
- h && o && this.start(c);
219
- }), i = () => {
220
- const { dragConstraints: c } = this.getProps();
221
- D(c) && c.current && (this.constraints = this.resolveRefConstraints());
222
- }, { projection: n } = this.visualElement, r = n.addEventListener("measure", i);
223
- n && !n.layout && (n.root && n.root.updateScroll(), n.updateLayout()), C.read(i);
224
- const e = F(window, "resize", () => this.scalePositionWithinConstraints()), l = n.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: h }) => {
225
- this.isDragging && h && (u((o) => {
226
- const a = this.getAxisMotionValue(o);
227
- a && (this.originPoint[o] += c[o].translate, a.set(a.get() + c[o].translate));
228
- }), this.visualElement.render());
229
- });
230
- return () => {
231
- e(), s(), r(), l && l();
232
- };
233
- }
234
- getProps() {
235
- const t = this.visualElement.getProps(), { drag: s = !1, dragDirectionLock: i = !1, dragPropagation: n = !1, dragConstraints: r = !1, dragElastic: e = b, dragMomentum: l = !0 } = t;
236
- return {
237
- ...t,
238
- drag: s,
239
- dragDirectionLock: i,
240
- dragPropagation: n,
241
- dragConstraints: r,
242
- dragElastic: e,
243
- dragMomentum: l
244
- };
245
- }
246
- }
247
- function P(p, t, s) {
248
- return (t === !0 || t === p) && (s === null || s === p);
249
- }
250
- function H(p, t = 10) {
251
- let s = null;
252
- return Math.abs(p.y) > t ? s = "y" : Math.abs(p.x) > t && (s = "x"), s;
253
- }
254
- export {
255
- ft as VisualElementDragControls,
256
- G as elementDragControls
257
- };
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { Feature as s } from "../../motion/features/Feature.js";
3
- import "../../../../../motion-utils/dist/es/errors.js";
4
- import { noop as r } from "../../../../../motion-utils/dist/es/noop.js";
5
- import { VisualElementDragControls as t } from "./VisualElementDragControls.js";
6
- class l extends s {
7
- constructor(o) {
8
- super(o), this.removeGroupControls = r, this.removeListeners = r, this.controls = new t(o);
9
- }
10
- mount() {
11
- const { dragControls: o } = this.node.getProps();
12
- o && (this.removeGroupControls = o.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || r;
13
- }
14
- unmount() {
15
- this.removeGroupControls(), this.removeListeners();
16
- }
17
- }
18
- export {
19
- l as DragGesture
20
- };
@@ -1,69 +0,0 @@
1
- "use client";
2
- import "../../../../../../motion-utils/dist/es/errors.js";
3
- import { progress as r } from "../../../../../../motion-utils/dist/es/progress.js";
4
- import { calcLength as t } from "../../../projection/geometry/delta-calc.js";
5
- import { clamp as C } from "../../../utils/clamp.js";
6
- import { mixNumber as u } from "../../../utils/mix/number.js";
7
- function L(n, { min: e, max: m }, i) {
8
- return e !== void 0 && n < e ? n = i ? u(e, n, i.min) : Math.max(n, e) : m !== void 0 && n > m && (n = i ? u(m, n, i.max) : Math.min(n, m)), n;
9
- }
10
- function o(n, e, m) {
11
- return {
12
- min: e !== void 0 ? n.min + e : void 0,
13
- max: m !== void 0 ? n.max + m - (n.max - n.min) : void 0
14
- };
15
- }
16
- function w(n, { top: e, left: m, bottom: i, right: f }) {
17
- return {
18
- x: o(n.x, m, f),
19
- y: o(n.y, e, i)
20
- };
21
- }
22
- function c(n, e) {
23
- let m = e.min - n.min, i = e.max - n.max;
24
- return e.max - e.min < n.max - n.min && ([m, i] = [i, m]), { min: m, max: i };
25
- }
26
- function y(n, e) {
27
- return {
28
- x: c(n.x, e.x),
29
- y: c(n.y, e.y)
30
- };
31
- }
32
- function M(n, e) {
33
- let m = 0.5;
34
- const i = t(n), f = t(e);
35
- return f > i ? m = r(e.min, e.max - i, n.min) : i > f && (m = r(n.min, n.max - f, e.min)), C(0, 1, m);
36
- }
37
- function R(n, e) {
38
- const m = {};
39
- return e.min !== void 0 && (m.min = e.min - n.min), e.max !== void 0 && (m.max = e.max - n.min), m;
40
- }
41
- const x = 0.35;
42
- function V(n = x) {
43
- return n === !1 ? n = 0 : n === !0 && (n = x), {
44
- x: l(n, "left", "right"),
45
- y: l(n, "top", "bottom")
46
- };
47
- }
48
- function l(n, e, m) {
49
- return {
50
- min: d(n, e),
51
- max: d(n, m)
52
- };
53
- }
54
- function d(n, e) {
55
- return typeof n == "number" ? n : n[e] || 0;
56
- }
57
- export {
58
- L as applyConstraints,
59
- M as calcOrigin,
60
- o as calcRelativeAxisConstraints,
61
- w as calcRelativeConstraints,
62
- c as calcViewportAxisConstraints,
63
- y as calcViewportConstraints,
64
- x as defaultElastic,
65
- R as rebaseAxisConstraints,
66
- l as resolveAxisElastic,
67
- V as resolveDragElastic,
68
- d as resolvePointElastic
69
- };
@@ -1,29 +0,0 @@
1
- "use client";
2
- import { addDomEvent as e } from "../events/add-dom-event.js";
3
- import { Feature as i } from "../motion/features/Feature.js";
4
- import { pipe as s } from "../utils/pipe.js";
5
- class a extends i {
6
- constructor() {
7
- super(...arguments), this.isActive = !1;
8
- }
9
- onFocus() {
10
- let t = !1;
11
- try {
12
- t = this.node.current.matches(":focus-visible");
13
- } catch {
14
- t = !0;
15
- }
16
- !t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
17
- }
18
- onBlur() {
19
- !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
20
- }
21
- mount() {
22
- this.unmount = s(e(this.node.current, "focus", () => this.onFocus()), e(this.node.current, "blur", () => this.onBlur()));
23
- }
24
- unmount() {
25
- }
26
- }
27
- export {
28
- a as FocusGesture
29
- };