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,5 +0,0 @@
1
- "use client";
2
- const e = typeof window < "u";
3
- export {
4
- e as isBrowser
5
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const e = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
3
- export {
4
- e as isNumericalString
5
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function e(t) {
3
- return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
4
- }
5
- export {
6
- e as isRefObject
7
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const t = (e) => /^0[^.\s]+$/u.test(e);
3
- export {
4
- t as isZeroValueString
5
- };
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { mixNumber as p } from "./number.js";
3
- import { warning as c } from "../../../../../motion-utils/dist/es/errors.js";
4
- import { hslaToRgba as f } from "../hsla-to-rgba.js";
5
- import { hex as u } from "../../value/types/color/hex.js";
6
- import { rgba as s } from "../../value/types/color/rgba.js";
7
- import { hsla as l } from "../../value/types/color/hsla.js";
8
- import { mixImmediate as d } from "./immediate.js";
9
- const i = (o, e, r) => {
10
- const t = o * o, n = r * (e * e - t) + t;
11
- return n < 0 ? 0 : Math.sqrt(n);
12
- }, b = [u, s, l], h = (o) => b.find((e) => e.test(o));
13
- function m(o) {
14
- const e = h(o);
15
- if (c(!!e, `'${o}' is not an animatable color. Use the equivalent color code instead.`), !e)
16
- return !1;
17
- let r = e.parse(o);
18
- return e === l && (r = f(r)), r;
19
- }
20
- const G = (o, e) => {
21
- const r = m(o), t = m(e);
22
- if (!r || !t)
23
- return d(o, e);
24
- const n = { ...r };
25
- return (a) => (n.red = i(r.red, t.red, a), n.green = i(r.green, t.green, a), n.blue = i(r.blue, t.blue, a), n.alpha = p(r.alpha, t.alpha, a), s.transform(n));
26
- };
27
- export {
28
- G as mixColor,
29
- i as mixLinearColor
30
- };
@@ -1,53 +0,0 @@
1
- "use client";
2
- import { mixNumber as h } from "./number.js";
3
- import { mixColor as u } from "./color.js";
4
- import { pipe as b } from "../pipe.js";
5
- import { warning as y } from "../../../../../motion-utils/dist/es/errors.js";
6
- import { color as m } from "../../value/types/color/index.js";
7
- import { complex as v, analyseComplexValue as a } from "../../value/types/complex/index.js";
8
- import { isCSSVariableToken as g } from "../../render/dom/utils/is-css-variable.js";
9
- import { invisibleValues as c, mixVisibility as V } from "./visibility.js";
10
- import { mixImmediate as l } from "./immediate.js";
11
- function C(e, t) {
12
- return (r) => h(e, t, r);
13
- }
14
- function f(e) {
15
- return typeof e == "number" ? C : typeof e == "string" ? g(e) ? l : m.test(e) ? u : S : Array.isArray(e) ? p : typeof e == "object" ? m.test(e) ? u : k : l;
16
- }
17
- function p(e, t) {
18
- const r = [...e], o = r.length, n = e.map((i, s) => f(i)(i, t[s]));
19
- return (i) => {
20
- for (let s = 0; s < o; s++)
21
- r[s] = n[s](i);
22
- return r;
23
- };
24
- }
25
- function k(e, t) {
26
- const r = { ...e, ...t }, o = {};
27
- for (const n in r)
28
- e[n] !== void 0 && t[n] !== void 0 && (o[n] = f(e[n])(e[n], t[n]));
29
- return (n) => {
30
- for (const i in o)
31
- r[i] = o[i](n);
32
- return r;
33
- };
34
- }
35
- function I(e, t) {
36
- var r;
37
- const o = [], n = { color: 0, var: 0, number: 0 };
38
- for (let i = 0; i < t.values.length; i++) {
39
- const s = t.types[i], x = e.indexes[s][n[s]], d = (r = e.values[x]) !== null && r !== void 0 ? r : 0;
40
- o[i] = d, n[s]++;
41
- }
42
- return o;
43
- }
44
- const S = (e, t) => {
45
- const r = v.createTransformer(t), o = a(e), n = a(t);
46
- return o.indexes.var.length === n.indexes.var.length && o.indexes.color.length === n.indexes.color.length && o.indexes.number.length >= n.indexes.number.length ? c.has(e) && !n.values.length || c.has(t) && !o.values.length ? V(e, t) : b(p(I(o, n), n.values), r) : (y(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), l(e, t));
47
- };
48
- export {
49
- f as getMixer,
50
- p as mixArray,
51
- S as mixComplex,
52
- k as mixObject
53
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function n(e, t) {
3
- return (i) => i > 0 ? t : e;
4
- }
5
- export {
6
- n as mixImmediate
7
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { getMixer as t } from "./complex.js";
3
- import { mixNumber as m } from "./number.js";
4
- function o(e, r, i) {
5
- return typeof e == "number" && typeof r == "number" && typeof i == "number" ? m(e, r, i) : t(e)(e, r);
6
- }
7
- export {
8
- o as mix
9
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const r = (e, t, n) => e + (t - e) * n;
3
- export {
4
- r as mixNumber
5
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- const s = /* @__PURE__ */ new Set(["none", "hidden"]);
3
- function t(e, i) {
4
- return s.has(e) ? (n) => n <= 0 ? e : i : (n) => n >= 1 ? i : e;
5
- }
6
- export {
7
- s as invisibleValues,
8
- t as mixVisibility
9
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { fillOffset as e } from "./fill.js";
3
- function o(f) {
4
- const t = [0];
5
- return e(t, f.length - 1), t;
6
- }
7
- export {
8
- o as defaultOffset
9
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- import "../../../../../motion-utils/dist/es/errors.js";
3
- import { progress as i } from "../../../../../motion-utils/dist/es/progress.js";
4
- import { mixNumber as m } from "../mix/number.js";
5
- function n(o, t) {
6
- const s = o[o.length - 1];
7
- for (let r = 1; r <= t; r++) {
8
- const e = i(0, t, r);
9
- o.push(m(s, 1, e));
10
- }
11
- }
12
- export {
13
- n as fillOffset
14
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function o(e, t) {
3
- return e.map((n) => n * t);
4
- }
5
- export {
6
- o as convertOffsetToTimes
7
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const o = (e, c) => (n) => c(e(n)), t = (...e) => e.reduce(o);
3
- export {
4
- t as pipe
5
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { isBrowser as o } from "../is-browser.js";
3
- import { hasReducedMotionListener as i, prefersReducedMotion as t } from "./state.js";
4
- function c() {
5
- if (i.current = !0, !!o)
6
- if (window.matchMedia) {
7
- const e = window.matchMedia("(prefers-reduced-motion)"), r = () => t.current = e.matches;
8
- e.addListener(r), r();
9
- } else
10
- t.current = !1;
11
- }
12
- export {
13
- c as initPrefersReducedMotion
14
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- const e = { current: null }, n = { current: !1 };
3
- export {
4
- n as hasReducedMotionListener,
5
- e as prefersReducedMotion
6
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { isKeyframesTarget as t } from "../animation/utils/is-keyframes-target.js";
3
- const r = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), n = (e) => t(e) ? e[e.length - 1] || 0 : e;
4
- export {
5
- r as isCustomValue,
6
- n as resolveFinalValueInKeyframes
7
- };
@@ -1,15 +0,0 @@
1
- "use client";
2
- function l(t, e) {
3
- if (!Array.isArray(e))
4
- return !1;
5
- const n = e.length;
6
- if (n !== t.length)
7
- return !1;
8
- for (let r = 0; r < n; r++)
9
- if (e[r] !== t[r])
10
- return !1;
11
- return !0;
12
- }
13
- export {
14
- l as shallowCompare
15
- };
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { addUniqueItem as o, removeItem as u } from "./array.js";
3
- class h {
4
- constructor() {
5
- this.subscriptions = [];
6
- }
7
- add(s) {
8
- return o(this.subscriptions, s), () => u(this.subscriptions, s);
9
- }
10
- notify(s, r, n) {
11
- const i = this.subscriptions.length;
12
- if (i)
13
- if (i === 1)
14
- this.subscriptions[0](s, r, n);
15
- else
16
- for (let t = 0; t < i; t++) {
17
- const e = this.subscriptions[t];
18
- e && e(s, r, n);
19
- }
20
- }
21
- getSize() {
22
- return this.subscriptions.length;
23
- }
24
- clear() {
25
- this.subscriptions.length = 0;
26
- }
27
- }
28
- export {
29
- h as SubscriptionManager
30
- };
@@ -1,9 +0,0 @@
1
- "use client";
2
- import { useRef as e } from "react";
3
- function u(r) {
4
- const n = e(null);
5
- return n.current === null && (n.current = r()), n.current;
6
- }
7
- export {
8
- u as useConstant
9
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { useLayoutEffect as o, useEffect as e } from "react";
3
- import { isBrowser as t } from "./is-browser.js";
4
- const s = t ? o : e;
5
- export {
6
- s as useIsomorphicLayoutEffect
7
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function n(c, e) {
3
- return e ? c * (1e3 / e) : 0;
4
- }
5
- export {
6
- n as velocityPerSecond
7
- };
@@ -1,8 +0,0 @@
1
- "use client";
2
- const e = /* @__PURE__ */ new Set();
3
- function c(t, n, r) {
4
- t || e.has(n) || (console.warn(n), e.add(n));
5
- }
6
- export {
7
- c as warnOnce
8
- };
@@ -1,208 +0,0 @@
1
- "use client";
2
- import { time as n } from "../frameloop/sync-time.js";
3
- import { SubscriptionManager as o } from "../utils/subscription-manager.js";
4
- import { velocityPerSecond as c } from "../utils/velocity-per-second.js";
5
- import { warnOnce as u } from "../utils/warn-once.js";
6
- import { frame as p } from "../frameloop/frame.js";
7
- const r = 30, f = (s) => !isNaN(parseFloat(s));
8
- class d {
9
- /**
10
- * @param init - The initiating value
11
- * @param config - Optional configuration options
12
- *
13
- * - `transformer`: A function to transform incoming values with.
14
- *
15
- * @internal
16
- */
17
- constructor(t, e = {}) {
18
- this.version = "11.18.2", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, a = !0) => {
19
- const h = n.now();
20
- this.updatedAt !== h && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), a && this.events.renderRequest && this.events.renderRequest.notify(this.current);
21
- }, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
22
- }
23
- setCurrent(t) {
24
- this.current = t, this.updatedAt = n.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = f(this.current));
25
- }
26
- setPrevFrameValue(t = this.current) {
27
- this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
28
- }
29
- /**
30
- * Adds a function that will be notified when the `MotionValue` is updated.
31
- *
32
- * It returns a function that, when called, will cancel the subscription.
33
- *
34
- * When calling `onChange` inside a React component, it should be wrapped with the
35
- * `useEffect` hook. As it returns an unsubscribe function, this should be returned
36
- * from the `useEffect` function to ensure you don't add duplicate subscribers..
37
- *
38
- * ```jsx
39
- * export const MyComponent = () => {
40
- * const x = useMotionValue(0)
41
- * const y = useMotionValue(0)
42
- * const opacity = useMotionValue(1)
43
- *
44
- * useEffect(() => {
45
- * function updateOpacity() {
46
- * const maxXY = Math.max(x.get(), y.get())
47
- * const newOpacity = transform(maxXY, [0, 100], [1, 0])
48
- * opacity.set(newOpacity)
49
- * }
50
- *
51
- * const unsubscribeX = x.on("change", updateOpacity)
52
- * const unsubscribeY = y.on("change", updateOpacity)
53
- *
54
- * return () => {
55
- * unsubscribeX()
56
- * unsubscribeY()
57
- * }
58
- * }, [])
59
- *
60
- * return <motion.div style={{ x }} />
61
- * }
62
- * ```
63
- *
64
- * @param subscriber - A function that receives the latest value.
65
- * @returns A function that, when called, will cancel this subscription.
66
- *
67
- * @deprecated
68
- */
69
- onChange(t) {
70
- return process.env.NODE_ENV !== "production" && u(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
71
- }
72
- on(t, e) {
73
- this.events[t] || (this.events[t] = new o());
74
- const i = this.events[t].add(e);
75
- return t === "change" ? () => {
76
- i(), p.read(() => {
77
- this.events.change.getSize() || this.stop();
78
- });
79
- } : i;
80
- }
81
- clearListeners() {
82
- for (const t in this.events)
83
- this.events[t].clear();
84
- }
85
- /**
86
- * Attaches a passive effect to the `MotionValue`.
87
- *
88
- * @internal
89
- */
90
- attach(t, e) {
91
- this.passiveEffect = t, this.stopPassiveEffect = e;
92
- }
93
- /**
94
- * Sets the state of the `MotionValue`.
95
- *
96
- * @remarks
97
- *
98
- * ```jsx
99
- * const x = useMotionValue(0)
100
- * x.set(10)
101
- * ```
102
- *
103
- * @param latest - Latest value to set.
104
- * @param render - Whether to notify render subscribers. Defaults to `true`
105
- *
106
- * @public
107
- */
108
- set(t, e = !0) {
109
- !e || !this.passiveEffect ? this.updateAndNotify(t, e) : this.passiveEffect(t, this.updateAndNotify);
110
- }
111
- setWithVelocity(t, e, i) {
112
- this.set(e), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - i;
113
- }
114
- /**
115
- * Set the state of the `MotionValue`, stopping any active animations,
116
- * effects, and resets velocity to `0`.
117
- */
118
- jump(t, e = !0) {
119
- this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, e && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
120
- }
121
- /**
122
- * Returns the latest state of `MotionValue`
123
- *
124
- * @returns - The latest state of `MotionValue`
125
- *
126
- * @public
127
- */
128
- get() {
129
- return this.current;
130
- }
131
- /**
132
- * @public
133
- */
134
- getPrevious() {
135
- return this.prev;
136
- }
137
- /**
138
- * Returns the latest velocity of `MotionValue`
139
- *
140
- * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
141
- *
142
- * @public
143
- */
144
- getVelocity() {
145
- const t = n.now();
146
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > r)
147
- return 0;
148
- const e = Math.min(this.updatedAt - this.prevUpdatedAt, r);
149
- return c(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
150
- }
151
- /**
152
- * Registers a new animation to control this `MotionValue`. Only one
153
- * animation can drive a `MotionValue` at one time.
154
- *
155
- * ```jsx
156
- * value.start()
157
- * ```
158
- *
159
- * @param animation - A function that starts the provided animation
160
- *
161
- * @internal
162
- */
163
- start(t) {
164
- return this.stop(), new Promise((e) => {
165
- this.hasAnimated = !0, this.animation = t(e), this.events.animationStart && this.events.animationStart.notify();
166
- }).then(() => {
167
- this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
168
- });
169
- }
170
- /**
171
- * Stop the currently active animation.
172
- *
173
- * @public
174
- */
175
- stop() {
176
- this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
177
- }
178
- /**
179
- * Returns `true` if this value is currently animating.
180
- *
181
- * @public
182
- */
183
- isAnimating() {
184
- return !!this.animation;
185
- }
186
- clearAnimation() {
187
- delete this.animation;
188
- }
189
- /**
190
- * Destroy and clean up subscribers to this `MotionValue`.
191
- *
192
- * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
193
- * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
194
- * created a `MotionValue` via the `motionValue` function.
195
- *
196
- * @public
197
- */
198
- destroy() {
199
- this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
200
- }
201
- }
202
- function V(s, t) {
203
- return new d(s, t);
204
- }
205
- export {
206
- d as MotionValue,
207
- V as motionValue
208
- };
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { rgba as i } from "./rgba.js";
3
- import { isColorString as g } from "./utils.js";
4
- function a(r) {
5
- let t = "", e = "", n = "", s = "";
6
- return r.length > 5 ? (t = r.substring(1, 3), e = r.substring(3, 5), n = r.substring(5, 7), s = r.substring(7, 9)) : (t = r.substring(1, 2), e = r.substring(2, 3), n = r.substring(3, 4), s = r.substring(4, 5), t += t, e += e, n += n, s += s), {
7
- red: parseInt(t, 16),
8
- green: parseInt(e, 16),
9
- blue: parseInt(n, 16),
10
- alpha: s ? parseInt(s, 16) / 255 : 1
11
- };
12
- }
13
- const o = {
14
- test: /* @__PURE__ */ g("#"),
15
- parse: a,
16
- transform: i.transform
17
- };
18
- export {
19
- o as hex
20
- };
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { alpha as e } from "../numbers/index.js";
3
- import { percent as t } from "../numbers/units.js";
4
- import { sanitize as r } from "../utils/sanitize.js";
5
- import { isColorString as i, splitColor as m } from "./utils.js";
6
- const u = {
7
- test: /* @__PURE__ */ i("hsl", "hue"),
8
- parse: /* @__PURE__ */ m("hue", "saturation", "lightness"),
9
- transform: ({ hue: o, saturation: s, lightness: a, alpha: n = 1 }) => "hsla(" + Math.round(o) + ", " + t.transform(r(s)) + ", " + t.transform(r(a)) + ", " + r(e.transform(n)) + ")"
10
- };
11
- export {
12
- u as hsla
13
- };
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { hex as s } from "./hex.js";
3
- import { hsla as t } from "./hsla.js";
4
- import { rgba as e } from "./rgba.js";
5
- const p = {
6
- test: (r) => e.test(r) || s.test(r) || t.test(r),
7
- parse: (r) => e.test(r) ? e.parse(r) : t.test(r) ? t.parse(r) : s.parse(r),
8
- transform: (r) => typeof r == "string" ? r : r.hasOwnProperty("red") ? e.transform(r) : t.transform(r)
9
- };
10
- export {
11
- p as color
12
- };
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { clamp as n } from "../../../utils/clamp.js";
3
- import { number as s, alpha as e } from "../numbers/index.js";
4
- import { sanitize as i } from "../utils/sanitize.js";
5
- import { isColorString as p, splitColor as f } from "./utils.js";
6
- const l = (r) => n(0, 255, r), o = {
7
- ...s,
8
- transform: (r) => Math.round(l(r))
9
- }, d = {
10
- test: /* @__PURE__ */ p("rgb", "red"),
11
- parse: /* @__PURE__ */ f("red", "green", "blue"),
12
- transform: ({ red: r, green: t, blue: a, alpha: m = 1 }) => "rgba(" + o.transform(r) + ", " + o.transform(t) + ", " + o.transform(a) + ", " + i(e.transform(m)) + ")"
13
- };
14
- export {
15
- o as rgbUnit,
16
- d as rgba
17
- };
@@ -1,19 +0,0 @@
1
- "use client";
2
- import { floatRegex as n } from "../utils/float-regex.js";
3
- import { isNullish as p } from "../utils/is-nullish.js";
4
- import { singleColorRegex as c } from "../utils/single-color-regex.js";
5
- const h = (r, o) => (t) => !!(typeof t == "string" && c.test(t) && t.startsWith(r) || o && !p(t) && Object.prototype.hasOwnProperty.call(t, o)), u = (r, o, t) => (e) => {
6
- if (typeof e != "string")
7
- return e;
8
- const [l, s, i, a] = e.match(n);
9
- return {
10
- [r]: parseFloat(l),
11
- [o]: parseFloat(s),
12
- [t]: parseFloat(i),
13
- alpha: a !== void 0 ? parseFloat(a) : 1
14
- };
15
- };
16
- export {
17
- h as isColorString,
18
- u as splitColor
19
- };
@@ -1,25 +0,0 @@
1
- "use client";
2
- import { complex as c } from "./index.js";
3
- import { floatRegex as i } from "../utils/float-regex.js";
4
- const s = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
5
- function u(t) {
6
- const [e, n] = t.slice(0, -1).split("(");
7
- if (e === "drop-shadow")
8
- return t;
9
- const [o] = n.match(i) || [];
10
- if (!o)
11
- return t;
12
- const r = n.replace(o, "");
13
- let a = s.has(e) ? 1 : 0;
14
- return o !== n && (a *= 100), e + "(" + a + r + ")";
15
- }
16
- const l = /\b([a-z-]*)\(.*?\)/gu, p = {
17
- ...c,
18
- getAnimatableNone: (t) => {
19
- const e = t.match(l);
20
- return e ? e.map(u).join(" ") : t;
21
- }
22
- };
23
- export {
24
- p as filter
25
- };