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,53 +0,0 @@
1
- "use client";
2
- import { warning as S } from "../../../../../../motion-utils/dist/es/errors.js";
3
- import { secondsToMilliseconds as g, millisecondsToSeconds as N } from "../../../../../../motion-utils/dist/es/time-conversion.js";
4
- import { clamp as h } from "../../../utils/clamp.js";
5
- import { springDefaults as n } from "./defaults.js";
6
- const D = 1e-3;
7
- function v({ duration: t = n.duration, bounce: p = n.bounce, velocity: i = n.velocity, mass: o = n.mass }) {
8
- let a, f;
9
- S(t <= g(n.maxDuration), "Spring duration must be 10 seconds or less");
10
- let e = 1 - p;
11
- e = h(n.minDamping, n.maxDamping, e), t = h(n.minDuration, n.maxDuration, N(t)), e < 1 ? (a = (s) => {
12
- const r = s * e, c = r * t, l = r - i, m = b(s, e), x = Math.exp(-c);
13
- return D - l / m * x;
14
- }, f = (s) => {
15
- const c = s * e * t, l = c * i + i, m = Math.pow(e, 2) * Math.pow(s, 2) * t, x = Math.exp(-c), u = b(Math.pow(s, 2), e);
16
- return (-a(s) + D > 0 ? -1 : 1) * ((l - m) * x) / u;
17
- }) : (a = (s) => {
18
- const r = Math.exp(-s * t), c = (s - i) * t + 1;
19
- return -1e-3 + r * c;
20
- }, f = (s) => {
21
- const r = Math.exp(-s * t), c = (i - s) * (t * t);
22
- return r * c;
23
- });
24
- const w = 5 / t, M = A(a, f, w);
25
- if (t = g(t), isNaN(M))
26
- return {
27
- stiffness: n.stiffness,
28
- damping: n.damping,
29
- duration: t
30
- };
31
- {
32
- const s = Math.pow(M, 2) * o;
33
- return {
34
- stiffness: s,
35
- damping: e * 2 * Math.sqrt(o * s),
36
- duration: t
37
- };
38
- }
39
- }
40
- const T = 12;
41
- function A(t, p, i) {
42
- let o = i;
43
- for (let a = 1; a < T; a++)
44
- o = o - t(o) / p(o);
45
- return o;
46
- }
47
- function b(t, p) {
48
- return t * Math.sqrt(1 - p * p);
49
- }
50
- export {
51
- b as calcAngularFreq,
52
- v as findSpring
53
- };
@@ -1,93 +0,0 @@
1
- "use client";
2
- import "../../../../../../motion-utils/dist/es/errors.js";
3
- import { millisecondsToSeconds as b, secondsToMilliseconds as R } from "../../../../../../motion-utils/dist/es/time-conversion.js";
4
- import { calcGeneratorDuration as A, maxGeneratorDuration as w } from "../../../../../../motion-dom/dist/es/animation/generators/utils/calc-duration.js";
5
- import { generateLinearEasing as B } from "../../../../../../motion-dom/dist/es/animation/waapi/utils/linear.js";
6
- import { clamp as K } from "../../../utils/clamp.js";
7
- import { calcGeneratorVelocity as V } from "../utils/velocity.js";
8
- import { springDefaults as r } from "./defaults.js";
9
- import { findSpring as j, calcAngularFreq as E } from "./find.js";
10
- const I = ["duration", "bounce"], L = ["stiffness", "damping", "mass"];
11
- function x(t, a) {
12
- return a.some((s) => t[s] !== void 0);
13
- }
14
- function P(t) {
15
- let a = {
16
- velocity: r.velocity,
17
- stiffness: r.stiffness,
18
- damping: r.damping,
19
- mass: r.mass,
20
- isResolvedFromDuration: !1,
21
- ...t
22
- };
23
- if (!x(t, L) && x(t, I))
24
- if (t.visualDuration) {
25
- const s = t.visualDuration, u = 2 * Math.PI / (s * 1.2), m = u * u, g = 2 * K(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(m);
26
- a = {
27
- ...a,
28
- mass: r.mass,
29
- stiffness: m,
30
- damping: g
31
- };
32
- } else {
33
- const s = j(t);
34
- a = {
35
- ...a,
36
- ...s,
37
- mass: r.mass
38
- }, a.isResolvedFromDuration = !0;
39
- }
40
- return a;
41
- }
42
- function W(t = r.visualDuration, a = r.bounce) {
43
- const s = typeof t != "object" ? {
44
- visualDuration: t,
45
- keyframes: [0, 1],
46
- bounce: a
47
- } : t;
48
- let { restSpeed: u, restDelta: m } = s;
49
- const g = s.keyframes[0], f = s.keyframes[s.keyframes.length - 1], d = { done: !1, value: g }, { stiffness: M, damping: T, mass: D, duration: S, velocity: k, isResolvedFromDuration: q } = P({
50
- ...s,
51
- velocity: -b(s.velocity || 0)
52
- }), h = k || 0, o = T / (2 * Math.sqrt(M * D)), c = f - g, i = b(Math.sqrt(M / D)), F = Math.abs(c) < 5;
53
- u || (u = F ? r.restSpeed.granular : r.restSpeed.default), m || (m = F ? r.restDelta.granular : r.restDelta.default);
54
- let p;
55
- if (o < 1) {
56
- const e = E(i, o);
57
- p = (n) => {
58
- const l = Math.exp(-o * i * n);
59
- return f - l * ((h + o * i * c) / e * Math.sin(e * n) + c * Math.cos(e * n));
60
- };
61
- } else if (o === 1)
62
- p = (e) => f - Math.exp(-i * e) * (c + (h + i * c) * e);
63
- else {
64
- const e = i * Math.sqrt(o * o - 1);
65
- p = (n) => {
66
- const l = Math.exp(-o * i * n), v = Math.min(e * n, 300);
67
- return f - l * ((h + o * i * c) * Math.sinh(v) + e * c * Math.cosh(v)) / e;
68
- };
69
- }
70
- const y = {
71
- calculatedDuration: q && S || null,
72
- next: (e) => {
73
- const n = p(e);
74
- if (q)
75
- d.done = e >= S;
76
- else {
77
- let l = 0;
78
- o < 1 && (l = e === 0 ? R(h) : V(p, e, n));
79
- const v = Math.abs(l) <= u, G = Math.abs(f - n) <= m;
80
- d.done = v && G;
81
- }
82
- return d.value = d.done ? f : n, d;
83
- },
84
- toString: () => {
85
- const e = Math.min(A(y), w), n = B((l) => y.next(e * l).value, e, 30);
86
- return e + "ms " + n;
87
- }
88
- };
89
- return y;
90
- }
91
- export {
92
- W as spring
93
- };
@@ -1,10 +0,0 @@
1
- "use client";
2
- import { velocityPerSecond as r } from "../../../utils/velocity-per-second.js";
3
- const n = 5;
4
- function a(t, e, c) {
5
- const o = Math.max(e - n, 0);
6
- return r(c - t(o), e - o);
7
- }
8
- export {
9
- a as calcGeneratorVelocity
10
- };
@@ -1,48 +0,0 @@
1
- "use client";
2
- import { GroupPlaybackControls as c } from "../../../../../motion-dom/dist/es/animation/controls/Group.js";
3
- import { getValueTransition as D } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
4
- import "../../../../../motion-utils/dist/es/errors.js";
5
- import { secondsToMilliseconds as f } from "../../../../../motion-utils/dist/es/time-conversion.js";
6
- import { frame as T } from "../../frameloop/frame.js";
7
- import { AcceleratedAnimation as d } from "../animators/AcceleratedAnimation.js";
8
- import { MainThreadAnimation as k } from "../animators/MainThreadAnimation.js";
9
- import { getFinalKeyframe as A } from "../animators/waapi/utils/get-final-keyframe.js";
10
- import { getDefaultTransition as C } from "../utils/default-transitions.js";
11
- import { isTransitionDefined as U } from "../utils/is-transition-defined.js";
12
- const O = (i, r, n, a = {}, s, l) => (u) => {
13
- const o = D(a, i) || {}, y = o.delay || a.delay || 0;
14
- let { elapsed: m = 0 } = a;
15
- m = m - f(y);
16
- let e = {
17
- keyframes: Array.isArray(n) ? n : [null, n],
18
- ease: "easeOut",
19
- velocity: r.getVelocity(),
20
- ...o,
21
- delay: -m,
22
- onUpdate: (t) => {
23
- r.set(t), o.onUpdate && o.onUpdate(t);
24
- },
25
- onComplete: () => {
26
- u(), o.onComplete && o.onComplete();
27
- },
28
- name: i,
29
- motionValue: r,
30
- element: l ? void 0 : s
31
- };
32
- U(o) || (e = {
33
- ...e,
34
- ...C(i, e)
35
- }), e.duration && (e.duration = f(e.duration)), e.repeatDelay && (e.repeatDelay = f(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
36
- let p = !1;
37
- if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (e.duration = 0, e.delay === 0 && (p = !0)), p && !l && r.get() !== void 0) {
38
- const t = A(e.keyframes, o);
39
- if (t !== void 0)
40
- return T.update(() => {
41
- e.onUpdate(t), e.onComplete();
42
- }), new c([]);
43
- }
44
- return !l && d.supports(e) ? new d(e) : new k(e);
45
- };
46
- export {
47
- O as animateMotionValue
48
- };
@@ -1,47 +0,0 @@
1
- "use client";
2
- import "../../../../../motion-utils/dist/es/errors.js";
3
- import { getValueTransition as M } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
4
- import { positionalKeys as S } from "../../render/html/utils/keys-position.js";
5
- import { setTarget as A } from "../../render/utils/setters.js";
6
- import { addValueToWillChange as H } from "../../value/use-will-change/add-will-change.js";
7
- import { getOptimisedAppearId as y } from "../optimized-appear/get-appear-id.js";
8
- import { animateMotionValue as B } from "./motion-value.js";
9
- import { frame as V } from "../../frameloop/frame.js";
10
- function I({ protectedKeys: t, needsAnimating: a }, n) {
11
- const i = t.hasOwnProperty(n) && a[n] !== !0;
12
- return a[n] = !1, i;
13
- }
14
- function W(t, a, { delay: n = 0, transitionOverride: i, type: m } = {}) {
15
- var r;
16
- let { transition: p = t.getDefaultTransition(), transitionEnd: e, ...u } = a;
17
- i && (p = i);
18
- const f = [], c = m && t.animationState && t.animationState.getState()[m];
19
- for (const o in u) {
20
- const s = t.getValue(o, (r = t.latestValues[o]) !== null && r !== void 0 ? r : null), d = u[o];
21
- if (d === void 0 || c && I(c, o))
22
- continue;
23
- const l = {
24
- delay: n,
25
- ...M(p || {}, o)
26
- };
27
- let T = !1;
28
- if (window.MotionHandoffAnimation) {
29
- const h = y(t);
30
- if (h) {
31
- const w = window.MotionHandoffAnimation(h, o, V);
32
- w !== null && (l.startTime = w, T = !0);
33
- }
34
- }
35
- H(t, o), s.start(B(o, s, d, t.shouldReduceMotion && S.has(o) ? { type: !1 } : l, t, T));
36
- const g = s.animation;
37
- g && f.push(g);
38
- }
39
- return e && Promise.all(f).then(() => {
40
- V.update(() => {
41
- e && A(t, e);
42
- });
43
- }), f;
44
- }
45
- export {
46
- W as animateTarget
47
- };
@@ -1,34 +0,0 @@
1
- "use client";
2
- import { resolveVariant as h } from "../../render/utils/resolve-dynamic-variants.js";
3
- import { animateTarget as g } from "./visual-element-target.js";
4
- function u(r, t, n = {}) {
5
- var i;
6
- const a = h(r, t, n.type === "exit" ? (i = r.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
7
- let { transition: s = r.getDefaultTransition() || {} } = a || {};
8
- n.transitionOverride && (s = n.transitionOverride);
9
- const o = a ? () => Promise.all(g(r, a, n)) : () => Promise.resolve(), d = r.variantChildren && r.variantChildren.size ? (e = 0) => {
10
- const { delayChildren: c = 0, staggerChildren: m, staggerDirection: l } = s;
11
- return C(r, t, c + e, m, l, n);
12
- } : () => Promise.resolve(), { when: f } = s;
13
- if (f) {
14
- const [e, c] = f === "beforeChildren" ? [o, d] : [d, o];
15
- return e().then(() => c());
16
- } else
17
- return Promise.all([o(), d(n.delay)]);
18
- }
19
- function C(r, t, n = 0, i = 0, a = 1, s) {
20
- const o = [], d = (r.variantChildren.size - 1) * i, f = a === 1 ? (e = 0) => e * i : (e = 0) => d - e * i;
21
- return Array.from(r.variantChildren).sort(y).forEach((e, c) => {
22
- e.notify("AnimationStart", t), o.push(u(e, t, {
23
- ...s,
24
- delay: n + f(c)
25
- }).then(() => e.notify("AnimationComplete", t)));
26
- }), Promise.all(o);
27
- }
28
- function y(r, t) {
29
- return r.sortNodePosition(t);
30
- }
31
- export {
32
- u as animateVariant,
33
- y as sortByTreeOrder
34
- };
@@ -1,23 +0,0 @@
1
- "use client";
2
- import { resolveVariant as s } from "../../render/utils/resolve-dynamic-variants.js";
3
- import { animateTarget as y } from "./visual-element-target.js";
4
- import { animateVariant as e } from "./visual-element-variant.js";
5
- function A(a, r, t = {}) {
6
- a.notify("AnimationStart", r);
7
- let m;
8
- if (Array.isArray(r)) {
9
- const o = r.map((c) => e(a, c, t));
10
- m = Promise.all(o);
11
- } else if (typeof r == "string")
12
- m = e(a, r, t);
13
- else {
14
- const o = typeof r == "function" ? s(a, r, t.custom) : r;
15
- m = Promise.all(y(a, o, t));
16
- }
17
- return m.then(() => {
18
- a.notify("AnimationComplete", r);
19
- });
20
- }
21
- export {
22
- A as animateVisualElement
23
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { camelToDash as t } from "../../render/dom/utils/camel-to-dash.js";
3
- const a = "framerAppearId", p = "data-" + t(a);
4
- export {
5
- p as optimizedAppearDataAttribute,
6
- a as optimizedAppearDataId
7
- };
@@ -1,8 +0,0 @@
1
- "use client";
2
- import { optimizedAppearDataAttribute as e } from "./data-id.js";
3
- function r(t) {
4
- return t.props[e];
5
- }
6
- export {
7
- r as getOptimisedAppearId
8
- };
@@ -1,23 +0,0 @@
1
- "use client";
2
- import { transformProps as s } from "../../render/html/utils/keys-transform.js";
3
- const r = {
4
- type: "spring",
5
- stiffness: 500,
6
- damping: 25,
7
- restSpeed: 10
8
- }, n = (e) => ({
9
- type: "spring",
10
- stiffness: 550,
11
- damping: e === 0 ? 2 * Math.sqrt(550) : 30,
12
- restSpeed: 10
13
- }), i = {
14
- type: "keyframes",
15
- duration: 0.8
16
- }, a = {
17
- type: "keyframes",
18
- ease: [0.25, 0.1, 0.35, 1],
19
- duration: 0.3
20
- }, o = (e, { keyframes: t }) => t.length > 2 ? i : s.has(e) ? e.startsWith("scale") ? n(t[1]) : r : a;
21
- export {
22
- o as getDefaultTransition
23
- };
@@ -1,8 +0,0 @@
1
- "use client";
2
- import { complex as e } from "../../value/types/complex/index.js";
3
- const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
4
- (e.test(r) || r === "0") && // And it contains numbers and/or colors
5
- !r.startsWith("url("));
6
- export {
7
- n as isAnimatable
8
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function n(t) {
3
- return t !== null && typeof t == "object" && typeof t.start == "function";
4
- }
5
- export {
6
- n as isAnimationControls
7
- };
@@ -1,5 +0,0 @@
1
- "use client";
2
- const e = (r) => Array.isArray(r);
3
- export {
4
- e as isKeyframesTarget
5
- };
@@ -1,8 +0,0 @@
1
- "use client";
2
- import { isZeroValueString as e } from "../../utils/is-zero-value-string.js";
3
- function t(r) {
4
- return typeof r == "number" ? r === 0 : r !== null ? r === "none" || r === "0" || e(r) : !0;
5
- }
6
- export {
7
- t as isNone
8
- };
@@ -1,7 +0,0 @@
1
- "use client";
2
- function g({ when: r, delay: t, delayChildren: n, staggerChildren: a, staggerDirection: i, repeat: l, repeatType: d, repeatDelay: s, from: p, elapsed: y, ...e }) {
3
- return !!Object.keys(e).length;
4
- }
5
- export {
6
- g as isTransitionDefined
7
- };
@@ -1,52 +0,0 @@
1
- "use client";
2
- import { j as m } from "../../../../../../_virtual/jsx-runtime.js";
3
- import * as c from "react";
4
- import { useId as u, useRef as h, useContext as a, useInsertionEffect as x } from "react";
5
- import { MotionConfigContext as C } from "../../context/MotionConfigContext.js";
6
- class R extends c.Component {
7
- getSnapshotBeforeUpdate(o) {
8
- const e = this.props.childRef.current;
9
- if (e && o.isPresent && !this.props.isPresent) {
10
- const t = this.props.sizeRef.current;
11
- t.height = e.offsetHeight || 0, t.width = e.offsetWidth || 0, t.top = e.offsetTop, t.left = e.offsetLeft;
12
- }
13
- return null;
14
- }
15
- /**
16
- * Required with getSnapshotBeforeUpdate to stop React complaining.
17
- */
18
- componentDidUpdate() {
19
- }
20
- render() {
21
- return this.props.children;
22
- }
23
- }
24
- function z({ children: i, isPresent: o }) {
25
- const e = u(), t = h(null), r = h({
26
- width: 0,
27
- height: 0,
28
- top: 0,
29
- left: 0
30
- }), { nonce: s } = a(C);
31
- return x(() => {
32
- const { width: p, height: f, top: d, left: l } = r.current;
33
- if (o || !t.current || !p || !f)
34
- return;
35
- t.current.dataset.motionPopId = e;
36
- const n = document.createElement("style");
37
- return s && (n.nonce = s), document.head.appendChild(n), n.sheet && n.sheet.insertRule(`
38
- [data-motion-pop-id="${e}"] {
39
- position: absolute !important;
40
- width: ${p}px !important;
41
- height: ${f}px !important;
42
- top: ${d}px !important;
43
- left: ${l}px !important;
44
- }
45
- `), () => {
46
- document.head.removeChild(n);
47
- };
48
- }, [o]), m.jsx(R, { isPresent: o, childRef: t, sizeRef: r, children: c.cloneElement(i, { ref: t }) });
49
- }
50
- export {
51
- z as PopChild
52
- };
@@ -1,42 +0,0 @@
1
- "use client";
2
- import { j as f } from "../../../../../../_virtual/jsx-runtime.js";
3
- import * as C from "react";
4
- import { useId as h, useCallback as x, useMemo as m } from "react";
5
- import { PresenceContext as j } from "../../context/PresenceContext.js";
6
- import { useConstant as M } from "../../utils/use-constant.js";
7
- import { PopChild as v } from "./PopChild.js";
8
- const y = ({ children: s, initial: u, isPresent: r, onExitComplete: o, custom: c, presenceAffectsLayout: i, mode: p }) => {
9
- const e = M(w), l = h(), n = x((t) => {
10
- e.set(t, !0);
11
- for (const a of e.values())
12
- if (!a)
13
- return;
14
- o && o();
15
- }, [e, o]), d = m(
16
- () => ({
17
- id: l,
18
- initial: u,
19
- isPresent: r,
20
- custom: c,
21
- onExitComplete: n,
22
- register: (t) => (e.set(t, !1), () => e.delete(t))
23
- }),
24
- /**
25
- * If the presence of a child affects the layout of the components around it,
26
- * we want to make a new context value to ensure they get re-rendered
27
- * so they can detect that layout change.
28
- */
29
- i ? [Math.random(), n] : [r, n]
30
- );
31
- return m(() => {
32
- e.forEach((t, a) => e.set(a, !1));
33
- }, [r]), C.useEffect(() => {
34
- !r && !e.size && o && o();
35
- }, [r]), p === "popLayout" && (s = f.jsx(v, { isPresent: r, children: s })), f.jsx(j.Provider, { value: d, children: s });
36
- };
37
- function w() {
38
- return /* @__PURE__ */ new Map();
39
- }
40
- export {
41
- y as PresenceChild
42
- };
@@ -1,47 +0,0 @@
1
- "use client";
2
- import { j as h } from "../../../../../../_virtual/jsx-runtime.js";
3
- import { useMemo as I, useRef as g, useState as w, useContext as K } from "react";
4
- import { LayoutGroupContext as M } from "../../context/LayoutGroupContext.js";
5
- import { useConstant as N } from "../../utils/use-constant.js";
6
- import { PresenceChild as T } from "./PresenceChild.js";
7
- import { usePresence as F } from "./use-presence.js";
8
- import { onlyElements as R, getChildKey as c } from "./utils.js";
9
- import { useIsomorphicLayoutEffect as G } from "../../utils/use-isomorphic-effect.js";
10
- const H = ({ children: p, custom: j, initial: k = !0, onExitComplete: C, presenceAffectsLayout: A = !0, mode: u = "sync", propagate: l = !1 }) => {
11
- const [x, d] = F(l), n = I(() => R(p), [p]), o = l && !x ? [] : n.map(c), y = g(!0), v = g(n), r = N(() => /* @__PURE__ */ new Map()), [L, b] = w(n), [i, E] = w(n);
12
- G(() => {
13
- y.current = !1, v.current = n;
14
- for (let t = 0; t < i.length; t++) {
15
- const e = c(i[t]);
16
- o.includes(e) ? r.delete(e) : r.get(e) !== !0 && r.set(e, !1);
17
- }
18
- }, [i, o.length, o.join("-")]);
19
- const f = [];
20
- if (n !== L) {
21
- let t = [...n];
22
- for (let e = 0; e < i.length; e++) {
23
- const s = i[e], a = c(s);
24
- o.includes(a) || (t.splice(e, 0, s), f.push(s));
25
- }
26
- u === "wait" && f.length && (t = f), E(R(t)), b(n);
27
- return;
28
- }
29
- process.env.NODE_ENV !== "production" && u === "wait" && i.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
30
- const { forceRender: m } = K(M);
31
- return h.jsx(h.Fragment, { children: i.map((t) => {
32
- const e = c(t), s = l && !x ? !1 : n === i || o.includes(e), a = () => {
33
- if (r.has(e))
34
- r.set(e, !0);
35
- else
36
- return;
37
- let P = !0;
38
- r.forEach((D) => {
39
- D || (P = !1);
40
- }), P && (m == null || m(), E(v.current), l && (d == null || d()), C && C());
41
- };
42
- return h.jsx(T, { isPresent: s, initial: !y.current || k ? void 0 : !1, custom: s ? void 0 : j, presenceAffectsLayout: A, mode: u, onExitComplete: s ? void 0 : a, children: t }, e);
43
- }) });
44
- };
45
- export {
46
- H as AnimatePresence
47
- };
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { useContext as f, useId as l, useEffect as c, useCallback as i } from "react";
3
- import { PresenceContext as m } from "../../context/PresenceContext.js";
4
- function p(e = !0) {
5
- const o = f(m);
6
- if (o === null)
7
- return [!0, null];
8
- const { isPresent: r, onExitComplete: t, register: s } = o, n = l();
9
- c(() => {
10
- e && s(n);
11
- }, [e]);
12
- const u = i(() => e && t && t(n), [n, t, e]);
13
- return !r && t ? [!1, u] : [!0];
14
- }
15
- export {
16
- p as usePresence
17
- };
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { Children as i, isValidElement as o } from "react";
3
- const l = (e) => e.key || "";
4
- function s(e) {
5
- const t = [];
6
- return i.forEach(e, (n) => {
7
- o(n) && t.push(n);
8
- }), t;
9
- }
10
- export {
11
- l as getChildKey,
12
- s as onlyElements
13
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { createContext as t } from "react";
3
- const e = t({});
4
- export {
5
- e as LayoutGroupContext
6
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { createContext as t } from "react";
3
- const o = t({ strict: !1 });
4
- export {
5
- o as LazyContext
6
- };
@@ -1,10 +0,0 @@
1
- "use client";
2
- import { createContext as e } from "react";
3
- const n = e({
4
- transformPagePoint: (t) => t,
5
- isStatic: !1,
6
- reducedMotion: "never"
7
- });
8
- export {
9
- n as MotionConfigContext
10
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { useContext as o, useMemo as i } from "react";
3
- import { MotionContext as a } from "./index.js";
4
- import { getCurrentTreeVariants as s } from "./utils.js";
5
- function f(t) {
6
- const { initial: e, animate: n } = s(t, o(a));
7
- return i(() => ({ initial: e, animate: n }), [r(e), r(n)]);
8
- }
9
- function r(t) {
10
- return Array.isArray(t) ? t.join(" ") : t;
11
- }
12
- export {
13
- f as useCreateMotionContext
14
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { createContext as t } from "react";
3
- const e = t({});
4
- export {
5
- e as MotionContext
6
- };
@@ -1,16 +0,0 @@
1
- "use client";
2
- import { isVariantLabel as t } from "../../render/utils/is-variant-label.js";
3
- import { isControllingVariants as r } from "../../render/utils/is-controlling-variants.js";
4
- function o(i, a) {
5
- if (r(i)) {
6
- const { initial: n, animate: e } = i;
7
- return {
8
- initial: n === !1 || t(n) ? n : void 0,
9
- animate: t(e) ? e : void 0
10
- };
11
- }
12
- return i.inherit !== !1 ? a : {};
13
- }
14
- export {
15
- o as getCurrentTreeVariants
16
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { createContext as e } from "react";
3
- const n = e(null);
4
- export {
5
- n as PresenceContext
6
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { createContext as t } from "react";
3
- const e = t({});
4
- export {
5
- e as SwitchLayoutGroupContext
6
- };