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,59 +0,0 @@
1
- "use client";
2
- import { addUniqueItem as a, removeItem as o } from "../../utils/array.js";
3
- class n {
4
- constructor() {
5
- this.members = [];
6
- }
7
- add(e) {
8
- a(this.members, e), e.scheduleRender();
9
- }
10
- remove(e) {
11
- if (o(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
12
- const t = this.members[this.members.length - 1];
13
- t && this.promote(t);
14
- }
15
- }
16
- relegate(e) {
17
- const t = this.members.findIndex((i) => e === i);
18
- if (t === 0)
19
- return !1;
20
- let s;
21
- for (let i = t; i >= 0; i--) {
22
- const r = this.members[i];
23
- if (r.isPresent !== !1) {
24
- s = r;
25
- break;
26
- }
27
- }
28
- return s ? (this.promote(s), !0) : !1;
29
- }
30
- promote(e, t) {
31
- const s = this.lead;
32
- if (e !== s && (this.prevLead = s, this.lead = e, e.show(), s)) {
33
- s.instance && s.scheduleRender(), e.scheduleRender(), e.resumeFrom = s, t && (e.resumeFrom.preserveOpacity = !0), s.snapshot && (e.snapshot = s.snapshot, e.snapshot.latestValues = s.animationValues || s.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0);
34
- const { crossfade: i } = e.options;
35
- i === !1 && s.hide();
36
- }
37
- }
38
- exitAnimationComplete() {
39
- this.members.forEach((e) => {
40
- const { options: t, resumingFrom: s } = e;
41
- t.onExitComplete && t.onExitComplete(), s && s.options.onExitComplete && s.options.onExitComplete();
42
- });
43
- }
44
- scheduleRender() {
45
- this.members.forEach((e) => {
46
- e.instance && e.scheduleRender(!1);
47
- });
48
- }
49
- /**
50
- * Clear any leads that have been removed this render to prevent them from being
51
- * used in future animations and to prevent memory leaks
52
- */
53
- removeLeadSnapshot() {
54
- this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
55
- }
56
- }
57
- export {
58
- n as NodeStack
59
- };
@@ -1,22 +0,0 @@
1
- "use client";
2
- import { px as c } from "../../value/types/numbers/units.js";
3
- function n(r, e) {
4
- return e.max === e.min ? 0 : r / (e.max - e.min) * 100;
5
- }
6
- const u = {
7
- correct: (r, e) => {
8
- if (!e.target)
9
- return r;
10
- if (typeof r == "string")
11
- if (c.test(r))
12
- r = parseFloat(r);
13
- else
14
- return r;
15
- const t = n(r, e.target.x), o = n(r, e.target.y);
16
- return `${t}% ${o}%`;
17
- }
18
- };
19
- export {
20
- u as correctBorderRadius,
21
- n as pixelsToPercent
22
- };
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { mixNumber as p } from "../../utils/mix/number.js";
3
- import { complex as f } from "../../value/types/complex/index.js";
4
- const l = {
5
- correct: (r, { treeScale: c, projectionDelta: t }) => {
6
- const a = r, e = f.parse(r);
7
- if (e.length > 5)
8
- return a;
9
- const i = f.createTransformer(r), o = typeof e[0] != "number" ? 1 : 0, n = t.x.scale * c.x, s = t.y.scale * c.y;
10
- e[0 + o] /= n, e[1 + o] /= s;
11
- const m = p(n, s, 0.5);
12
- return typeof e[2 + o] == "number" && (e[2 + o] /= m), typeof e[3 + o] == "number" && (e[3 + o] /= m), i(e);
13
- }
14
- };
15
- export {
16
- l as correctBoxShadow
17
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- const e = {};
3
- function o(c) {
4
- Object.assign(e, c);
5
- }
6
- export {
7
- o as addScaleCorrector,
8
- e as scaleCorrectors
9
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- function g(i, t, e) {
3
- let n = "";
4
- const o = i.x.translate / t.x, s = i.y.translate / t.y, $ = (e == null ? void 0 : e.z) || 0;
5
- if ((o || s || $) && (n = `translate3d(${o}px, ${s}px, ${$}px) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), e) {
6
- const { transformPerspective: f, rotate: a, rotateX: r, rotateY: p, skewX: y, skewY: d } = e;
7
- f && (n = `perspective(${f}px) ${n}`), a && (n += `rotate(${a}deg) `), r && (n += `rotateX(${r}deg) `), p && (n += `rotateY(${p}deg) `), y && (n += `skewX(${y}deg) `), d && (n += `skewY(${d}deg) `);
8
- }
9
- const x = i.x.scale * t.x, c = i.y.scale * t.y;
10
- return (x !== 1 || c !== 1) && (n += `scale(${x}, ${c})`), n || "none";
11
- }
12
- export {
13
- g as buildProjectionTransform
14
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function n(e) {
3
- return [e("x"), e("y")];
4
- }
5
- export {
6
- n as eachAxis
7
- };
@@ -1,21 +0,0 @@
1
- "use client";
2
- function t(n) {
3
- return n === void 0 || n === 1;
4
- }
5
- function o({ scale: n, scaleX: e, scaleY: i }) {
6
- return !t(n) || !t(e) || !t(i);
7
- }
8
- function f(n) {
9
- return o(n) || c(n) || n.z || n.rotate || n.rotateX || n.rotateY || n.skewX || n.skewY;
10
- }
11
- function c(n) {
12
- return r(n.x) || r(n.y);
13
- }
14
- function r(n) {
15
- return n && n !== "0%";
16
- }
17
- export {
18
- c as has2DTranslate,
19
- o as hasScale,
20
- f as hasTransform
21
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { convertBoundingBoxToBox as s, transformBoxPoints as f } from "../geometry/conversion.js";
3
- import { translateAxis as r } from "../geometry/delta-apply.js";
4
- function x(o, t) {
5
- return s(f(o.getBoundingClientRect(), t));
6
- }
7
- function B(o, t, i) {
8
- const e = x(o, i), { scroll: n } = t;
9
- return n && (r(e.x, n.offset.x), r(e.y, n.offset.y)), e;
10
- }
11
- export {
12
- B as measurePageBox,
13
- x as measureViewportBox
14
- };
@@ -1,227 +0,0 @@
1
- "use client";
2
- import { time as M } from "../frameloop/sync-time.js";
3
- import { featureDefinitions as d } from "../motion/features/definitions.js";
4
- import { createBox as S } from "../projection/geometry/models.js";
5
- import { isNumericalString as C } from "../utils/is-numerical-string.js";
6
- import { isZeroValueString as b } from "../utils/is-zero-value-string.js";
7
- import { initPrefersReducedMotion as P } from "../utils/reduced-motion/index.js";
8
- import { hasReducedMotionListener as T, prefersReducedMotion as w } from "../utils/reduced-motion/state.js";
9
- import { SubscriptionManager as F } from "../utils/subscription-manager.js";
10
- import { warnOnce as R } from "../utils/warn-once.js";
11
- import { motionValue as N } from "../value/index.js";
12
- import { complex as E } from "../value/types/complex/index.js";
13
- import { isMotionValue as h } from "../value/utils/is-motion-value.js";
14
- import { getAnimatableNone as x } from "./dom/value-types/animatable-none.js";
15
- import { findValueType as A } from "./dom/value-types/find.js";
16
- import { transformProps as B } from "./html/utils/keys-transform.js";
17
- import { visualElementStore as c } from "./store.js";
18
- import { isControllingVariants as U, isVariantNode as j } from "./utils/is-controlling-variants.js";
19
- import { KeyframeResolver as y } from "./utils/KeyframesResolver.js";
20
- import { updateMotionValuesFromProps as I } from "./utils/motion-values.js";
21
- import { resolveVariantFromProps as _ } from "./utils/resolve-variants.js";
22
- import { frame as f, cancelFrame as m } from "../frameloop/frame.js";
23
- const V = [
24
- "AnimationStart",
25
- "AnimationComplete",
26
- "Update",
27
- "BeforeLayoutMeasure",
28
- "LayoutMeasure",
29
- "LayoutAnimationStart",
30
- "LayoutAnimationComplete"
31
- ];
32
- class at {
33
- /**
34
- * This method takes React props and returns found MotionValues. For example, HTML
35
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
36
- *
37
- * This isn't an abstract method as it needs calling in the constructor, but it is
38
- * intended to be one.
39
- */
40
- scrapeMotionValuesFromProps(t, e, s) {
41
- return {};
42
- }
43
- constructor({ parent: t, props: e, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: r, visualState: n }, u = {}) {
44
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = y, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
45
- this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
46
- }, this.renderScheduledAt = 0, this.scheduleRender = () => {
47
- const o = M.now();
48
- this.renderScheduledAt < o && (this.renderScheduledAt = o, f.render(this.render, !1, !0));
49
- };
50
- const { latestValues: a, renderState: v, onUpdate: g } = n;
51
- this.onUpdate = g, this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = e.initial ? { ...a } : {}, this.renderState = v, this.parent = t, this.props = e, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = u, this.blockInitialAnimation = !!r, this.isControllingVariants = U(e), this.isVariantNode = j(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
52
- const { willChange: L, ...l } = this.scrapeMotionValuesFromProps(e, {}, this);
53
- for (const o in l) {
54
- const p = l[o];
55
- a[o] !== void 0 && h(p) && p.set(a[o], !1);
56
- }
57
- }
58
- mount(t) {
59
- this.current = t, c.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, s) => this.bindToMotionValue(s, e)), T.current || P(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : w.current, process.env.NODE_ENV !== "production" && R(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
60
- }
61
- unmount() {
62
- c.delete(this.current), this.projection && this.projection.unmount(), m(this.notifyUpdate), m(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
63
- for (const t in this.events)
64
- this.events[t].clear();
65
- for (const t in this.features) {
66
- const e = this.features[t];
67
- e && (e.unmount(), e.isMounted = !1);
68
- }
69
- this.current = null;
70
- }
71
- bindToMotionValue(t, e) {
72
- this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
73
- const s = B.has(t), i = e.on("change", (u) => {
74
- this.latestValues[t] = u, this.props.onUpdate && f.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
75
- }), r = e.on("renderRequest", this.scheduleRender);
76
- let n;
77
- window.MotionCheckAppearSync && (n = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
78
- i(), r(), n && n(), e.owner && e.stop();
79
- });
80
- }
81
- sortNodePosition(t) {
82
- return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
83
- }
84
- updateFeatures() {
85
- let t = "animation";
86
- for (t in d) {
87
- const e = d[t];
88
- if (!e)
89
- continue;
90
- const { isEnabled: s, Feature: i } = e;
91
- if (!this.features[t] && i && s(this.props) && (this.features[t] = new i(this)), this.features[t]) {
92
- const r = this.features[t];
93
- r.isMounted ? r.update() : (r.mount(), r.isMounted = !0);
94
- }
95
- }
96
- }
97
- triggerBuild() {
98
- this.build(this.renderState, this.latestValues, this.props);
99
- }
100
- /**
101
- * Measure the current viewport box with or without transforms.
102
- * Only measures axis-aligned boxes, rotate and skew must be manually
103
- * removed with a re-render to work.
104
- */
105
- measureViewportBox() {
106
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : S();
107
- }
108
- getStaticValue(t) {
109
- return this.latestValues[t];
110
- }
111
- setStaticValue(t, e) {
112
- this.latestValues[t] = e;
113
- }
114
- /**
115
- * Update the provided props. Ensure any newly-added motion values are
116
- * added to our map, old ones removed, and listeners updated.
117
- */
118
- update(t, e) {
119
- (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
120
- for (let s = 0; s < V.length; s++) {
121
- const i = V[s];
122
- this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
123
- const r = "on" + i, n = t[r];
124
- n && (this.propEventSubscriptions[i] = this.on(i, n));
125
- }
126
- this.prevMotionValues = I(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
127
- }
128
- getProps() {
129
- return this.props;
130
- }
131
- /**
132
- * Returns the variant definition with a given name.
133
- */
134
- getVariant(t) {
135
- return this.props.variants ? this.props.variants[t] : void 0;
136
- }
137
- /**
138
- * Returns the defined default transition on this component.
139
- */
140
- getDefaultTransition() {
141
- return this.props.transition;
142
- }
143
- getTransformPagePoint() {
144
- return this.props.transformPagePoint;
145
- }
146
- getClosestVariantNode() {
147
- return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
148
- }
149
- /**
150
- * Add a child visual element to our set of children.
151
- */
152
- addVariantChild(t) {
153
- const e = this.getClosestVariantNode();
154
- if (e)
155
- return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
156
- }
157
- /**
158
- * Add a motion value and bind it to this visual element.
159
- */
160
- addValue(t, e) {
161
- const s = this.values.get(t);
162
- e !== s && (s && this.removeValue(t), this.bindToMotionValue(t, e), this.values.set(t, e), this.latestValues[t] = e.get());
163
- }
164
- /**
165
- * Remove a motion value and unbind any active subscriptions.
166
- */
167
- removeValue(t) {
168
- this.values.delete(t);
169
- const e = this.valueSubscriptions.get(t);
170
- e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
171
- }
172
- /**
173
- * Check whether we have a motion value for this key
174
- */
175
- hasValue(t) {
176
- return this.values.has(t);
177
- }
178
- getValue(t, e) {
179
- if (this.props.values && this.props.values[t])
180
- return this.props.values[t];
181
- let s = this.values.get(t);
182
- return s === void 0 && e !== void 0 && (s = N(e === null ? void 0 : e, { owner: this }), this.addValue(t, s)), s;
183
- }
184
- /**
185
- * If we're trying to animate to a previously unencountered value,
186
- * we need to check for it in our state and as a last resort read it
187
- * directly from the instance (which might have performance implications).
188
- */
189
- readValue(t, e) {
190
- var s;
191
- let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (s = this.getBaseTargetFromProps(this.props, t)) !== null && s !== void 0 ? s : this.readValueFromInstance(this.current, t, this.options);
192
- return i != null && (typeof i == "string" && (C(i) || b(i)) ? i = parseFloat(i) : !A(i) && E.test(e) && (i = x(t, e)), this.setBaseTarget(t, h(i) ? i.get() : i)), h(i) ? i.get() : i;
193
- }
194
- /**
195
- * Set the base target to later animate back to. This is currently
196
- * only hydrated on creation and when we first read a value.
197
- */
198
- setBaseTarget(t, e) {
199
- this.baseTarget[t] = e;
200
- }
201
- /**
202
- * Find the base target for a value thats been removed from all animation
203
- * props.
204
- */
205
- getBaseTarget(t) {
206
- var e;
207
- const { initial: s } = this.props;
208
- let i;
209
- if (typeof s == "string" || typeof s == "object") {
210
- const n = _(this.props, s, (e = this.presenceContext) === null || e === void 0 ? void 0 : e.custom);
211
- n && (i = n[t]);
212
- }
213
- if (s && i !== void 0)
214
- return i;
215
- const r = this.getBaseTargetFromProps(this.props, t);
216
- return r !== void 0 && !h(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
217
- }
218
- on(t, e) {
219
- return this.events[t] || (this.events[t] = new F()), this.events[t].add(e);
220
- }
221
- notify(t, ...e) {
222
- this.events[t] && this.events[t].notify(...e);
223
- }
224
- }
225
- export {
226
- at as VisualElement
227
- };
@@ -1,21 +0,0 @@
1
- "use client";
2
- import { createRendererMotionComponent as i } from "../../motion/index.js";
3
- import { isSVGComponent as f } from "../dom/utils/is-svg-component.js";
4
- import { svgMotionConfig as m } from "../svg/config-motion.js";
5
- import { htmlMotionConfig as c } from "../html/config-motion.js";
6
- import { createUseRender as s } from "../dom/use-render.js";
7
- function l(n, e) {
8
- return function(o, { forwardMotionProps: t } = { forwardMotionProps: !1 }) {
9
- const r = {
10
- ...f(o) ? m : c,
11
- preloadedFeatures: n,
12
- useRender: s(t),
13
- createVisualElement: e,
14
- Component: o
15
- };
16
- return i(r);
17
- };
18
- }
19
- export {
20
- l as createMotionComponentFactory
21
- };
@@ -1,18 +0,0 @@
1
- "use client";
2
- import { warnOnce as i } from "../../utils/warn-once.js";
3
- function a(t) {
4
- if (typeof Proxy > "u")
5
- return t;
6
- const r = /* @__PURE__ */ new Map(), o = (...n) => (process.env.NODE_ENV !== "production" && i(!1, "motion() is deprecated. Use motion.create() instead."), t(...n));
7
- return new Proxy(o, {
8
- /**
9
- * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
10
- * The prop name is passed through as `key` and we can use that to generate a `motion`
11
- * DOM component with that name.
12
- */
13
- get: (n, e) => e === "create" ? t : (r.has(e) || r.set(e, t(e)), r.get(e))
14
- });
15
- }
16
- export {
17
- a as createDOMMotionComponentProxy
18
- };
@@ -1,16 +0,0 @@
1
- "use client";
2
- import { animations as o } from "../../../motion/features/animations.js";
3
- import { drag as t } from "../../../motion/features/drag.js";
4
- import { gestureAnimations as r } from "../../../motion/features/gestures.js";
5
- import { layout as m } from "../../../motion/features/layout.js";
6
- import { createMotionComponentFactory as e } from "../create-factory.js";
7
- import { createDomVisualElement as i } from "../../dom/create-visual-element.js";
8
- const l = /* @__PURE__ */ e({
9
- ...o,
10
- ...r,
11
- ...t,
12
- ...m
13
- }, i);
14
- export {
15
- l as createMotionComponent
16
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { createDOMMotionComponentProxy as o } from "../create-proxy.js";
3
- import { createMotionComponent as t } from "./create.js";
4
- const r = /* @__PURE__ */ o(t);
5
- export {
6
- r as motion
7
- };
@@ -1,67 +0,0 @@
1
- "use client";
2
- import { isNone as h } from "../../animation/utils/is-none.js";
3
- import { positionalKeys as p } from "../html/utils/keys-position.js";
4
- import { makeNoneKeyframesAnimatable as y } from "../html/utils/make-none-animatable.js";
5
- import { KeyframeResolver as c } from "../utils/KeyframesResolver.js";
6
- import { getVariableValue as g } from "./utils/css-variables-conversion.js";
7
- import { isCSSVariableToken as K } from "./utils/is-css-variable.js";
8
- import { isNumOrPxType as l, positionalValues as u } from "./utils/unit-conversion.js";
9
- import { findDimensionValueType as d } from "./value-types/dimensions.js";
10
- class k extends c {
11
- constructor(e, r, n, t, o) {
12
- super(e, r, n, t, o, !0);
13
- }
14
- readKeyframes() {
15
- const { unresolvedKeyframes: e, element: r, name: n } = this;
16
- if (!r || !r.current)
17
- return;
18
- super.readKeyframes();
19
- for (let s = 0; s < e.length; s++) {
20
- let i = e[s];
21
- if (typeof i == "string" && (i = i.trim(), K(i))) {
22
- const m = g(i, r.current);
23
- m !== void 0 && (e[s] = m), s === e.length - 1 && (this.finalKeyframe = i);
24
- }
25
- }
26
- if (this.resolveNoneKeyframes(), !p.has(n) || e.length !== 2)
27
- return;
28
- const [t, o] = e, a = d(t), f = d(o);
29
- if (a !== f)
30
- if (l(a) && l(f))
31
- for (let s = 0; s < e.length; s++) {
32
- const i = e[s];
33
- typeof i == "string" && (e[s] = parseFloat(i));
34
- }
35
- else
36
- this.needsMeasurement = !0;
37
- }
38
- resolveNoneKeyframes() {
39
- const { unresolvedKeyframes: e, name: r } = this, n = [];
40
- for (let t = 0; t < e.length; t++)
41
- h(e[t]) && n.push(t);
42
- n.length && y(e, n, r);
43
- }
44
- measureInitialState() {
45
- const { element: e, unresolvedKeyframes: r, name: n } = this;
46
- if (!e || !e.current)
47
- return;
48
- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = u[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r[0] = this.measuredOrigin;
49
- const t = r[r.length - 1];
50
- t !== void 0 && e.getValue(n, t).jump(t, !1);
51
- }
52
- measureEndState() {
53
- var e;
54
- const { element: r, name: n, unresolvedKeyframes: t } = this;
55
- if (!r || !r.current)
56
- return;
57
- const o = r.getValue(n);
58
- o && o.jump(this.measuredOrigin, !1);
59
- const a = t.length - 1, f = t[a];
60
- t[a] = u[n](r.measureViewportBox(), window.getComputedStyle(r.current)), f !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = f), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([s, i]) => {
61
- r.getValue(s).set(i);
62
- }), this.resolveNoneKeyframes();
63
- }
64
- }
65
- export {
66
- k as DOMKeyframesResolver
67
- };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import { VisualElement as r } from "../VisualElement.js";
3
- import { DOMKeyframesResolver as o } from "./DOMKeyframesResolver.js";
4
- import { isMotionValue as s } from "../../value/utils/is-motion-value.js";
5
- class a extends r {
6
- constructor() {
7
- super(...arguments), this.KeyframeResolver = o;
8
- }
9
- sortInstanceNodePosition(e, t) {
10
- return e.compareDocumentPosition(t) & 2 ? 1 : -1;
11
- }
12
- getBaseTargetFromProps(e, t) {
13
- return e.style ? e.style[t] : void 0;
14
- }
15
- removeValueFromRenderState(e, { vars: t, style: i }) {
16
- delete t[e], delete i[e];
17
- }
18
- handleChildMotionValue() {
19
- this.childSubscription && (this.childSubscription(), delete this.childSubscription);
20
- const { children: e } = this.props;
21
- s(e) && (this.childSubscription = e.on("change", (t) => {
22
- this.current && (this.current.textContent = `${t}`);
23
- }));
24
- }
25
- }
26
- export {
27
- a as DOMVisualElement
28
- };
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { Fragment as m } from "react";
3
- import { HTMLVisualElement as t } from "../html/HTMLVisualElement.js";
4
- import { SVGVisualElement as o } from "../svg/SVGVisualElement.js";
5
- import { isSVGComponent as i } from "./utils/is-svg-component.js";
6
- const u = (e, r) => i(e) ? new o(r) : new t(r, {
7
- allowProjection: e !== m
8
- });
9
- export {
10
- u as createDomVisualElement
11
- };
@@ -1,19 +0,0 @@
1
- "use client";
2
- import { Fragment as f, useMemo as d, createElement as p } from "react";
3
- import { useHTMLProps as a } from "../html/use-props.js";
4
- import { filterProps as P } from "./utils/filter-props.js";
5
- import { isSVGComponent as V } from "./utils/is-svg-component.js";
6
- import { useSVGProps as g } from "../svg/use-props.js";
7
- import { isMotionValue as h } from "../../value/utils/is-motion-value.js";
8
- function F(t = !1) {
9
- return (e, s, o, { latestValues: i }, n) => {
10
- const u = (V(e) ? g : a)(s, i, n, e), c = P(s, typeof e == "string", t), l = e !== f ? { ...c, ...u, ref: o } : {}, { children: r } = s, m = d(() => h(r) ? r.get() : r, [r]);
11
- return p(e, {
12
- ...l,
13
- children: m
14
- });
15
- };
16
- }
17
- export {
18
- F as createUseRender
19
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const a = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
3
- export {
4
- a as camelToDash
5
- };
@@ -1,32 +0,0 @@
1
- "use client";
2
- import { invariant as l } from "../../../../../../motion-utils/dist/es/errors.js";
3
- import { isNumericalString as c } from "../../../utils/is-numerical-string.js";
4
- import { isCSSVariableToken as s } from "./is-css-variable.js";
5
- const u = (
6
- // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
7
- /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
8
- );
9
- function m(r) {
10
- const t = u.exec(r);
11
- if (!t)
12
- return [,];
13
- const [, e, i, a] = t;
14
- return [`--${e ?? i}`, a];
15
- }
16
- const p = 4;
17
- function f(r, t, e = 1) {
18
- l(e <= p, `Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`);
19
- const [i, a] = m(r);
20
- if (!i)
21
- return;
22
- const o = window.getComputedStyle(t).getPropertyValue(i);
23
- if (o) {
24
- const n = o.trim();
25
- return c(n) ? parseFloat(n) : n;
26
- }
27
- return s(a) ? f(a, t, e + 1) : a;
28
- }
29
- export {
30
- f as getVariableValue,
31
- m as parseCSSVariable
32
- };
@@ -1,21 +0,0 @@
1
- "use client";
2
- import { isValidMotionProp as o } from "../../../motion/utils/valid-prop.js";
3
- let n = (t) => !o(t);
4
- function l(t) {
5
- t && (n = (e) => e.startsWith("on") ? !o(e) : t(e));
6
- }
7
- try {
8
- l(require("@emotion/is-prop-valid").default);
9
- } catch {
10
- }
11
- function f(t, e, a) {
12
- const i = {};
13
- for (const r in t)
14
- r === "values" && typeof t.values == "object" || (n(r) || a === !0 && o(r) || !e && !o(r) || // If trying to use native HTML drag events, forward drag listeners
15
- t.draggable && r.startsWith("onDrag")) && (i[r] = t[r]);
16
- return i;
17
- }
18
- export {
19
- f as filterProps,
20
- l as loadExternalIsValidProp
21
- };