@code0-tech/pictor 1.0.0 → 1.1.1

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 (454) hide show
  1. package/dist/_virtual/rolldown_runtime.js +9 -0
  2. package/dist/assets/Alert.style.css +1 -0
  3. package/dist/assets/Aurora.style.css +1 -0
  4. package/dist/assets/Avatar.style.css +1 -0
  5. package/dist/assets/Badge.style.css +1 -0
  6. package/dist/assets/Breadcrumb.style.css +1 -0
  7. package/dist/assets/Button.style.css +1 -0
  8. package/dist/assets/ButtonGroup.style.css +1 -0
  9. package/dist/assets/Card.style.css +1 -0
  10. package/dist/assets/Chart.style.css +1 -0
  11. package/dist/assets/Col.style.css +1 -0
  12. package/dist/assets/ColorInput.style.css +1 -0
  13. package/dist/assets/Command.style.css +1 -0
  14. package/dist/assets/Container.style.css +1 -0
  15. package/dist/assets/ContextMenu.style.css +1 -0
  16. package/dist/assets/DataTable.style.css +1 -0
  17. package/dist/assets/DateInput.style.css +1 -0
  18. package/dist/assets/Dialog.style.css +1 -0
  19. package/dist/assets/Editor.styles.css +1 -0
  20. package/dist/assets/EditorInput.style.css +1 -0
  21. package/dist/assets/FileInput.style.css +1 -0
  22. package/dist/assets/FileTabs.style.css +1 -0
  23. package/dist/assets/FullScreen.style.css +1 -0
  24. package/dist/assets/Gantt.style.css +1 -0
  25. package/dist/assets/Icon.style.css +1 -0
  26. package/dist/assets/Input.style.css +1 -0
  27. package/dist/assets/InputWrapper.style.css +1 -0
  28. package/dist/assets/JsonView.style.css +1 -0
  29. package/dist/assets/Layout.style.css +1 -0
  30. package/dist/assets/Menu.style.css +1 -0
  31. package/dist/assets/Progress.style.css +1 -0
  32. package/dist/assets/Quote.style.css +1 -0
  33. package/dist/assets/Resizable.style.css +1 -0
  34. package/dist/assets/Row.style.css +1 -0
  35. package/dist/assets/ScrollArea.style.css +1 -0
  36. package/dist/assets/SegmentedControl.style.css +1 -0
  37. package/dist/assets/SelectInput.style.css +1 -0
  38. package/dist/assets/Tab.style.css +1 -0
  39. package/dist/assets/Text.style.css +1 -0
  40. package/dist/assets/Toast.style.css +1 -0
  41. package/dist/assets/Tooltip.style.css +1 -0
  42. package/dist/components/alert/Alert.js +33 -41
  43. package/dist/components/aurora/Aurora.js +26 -22
  44. package/dist/components/avatar/Avatar.js +57 -55
  45. package/dist/components/badge/Badge.js +57 -64
  46. package/dist/components/breadcrumb/Breadcrumb.js +16 -21
  47. package/dist/components/button/Button.js +23 -31
  48. package/dist/components/button-group/ButtonGroup.js +28 -31
  49. package/dist/components/card/Card.js +28 -43
  50. package/dist/components/card/CardSection.js +21 -29
  51. package/dist/components/chart/Chart.js +138 -153
  52. package/dist/components/chart/LineChart.js +74 -74
  53. package/dist/components/chart/index.js +3 -8
  54. package/dist/components/col/Col.js +18 -29
  55. package/dist/components/command/Command.js +100 -134
  56. package/dist/components/container/Container.js +18 -23
  57. package/dist/components/context-menu/ContextMenu.js +118 -112
  58. package/dist/components/data-table/DataTable.js +53 -64
  59. package/dist/components/data-table/DataTableColumn.js +17 -22
  60. package/dist/components/data-table/DataTableFilterInput.js +208 -205
  61. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
  62. package/dist/components/data-table/DataTableHeader.js +33 -38
  63. package/dist/components/data-table/DataTablePagination.js +61 -74
  64. package/dist/components/data-table/index.js +7 -22
  65. package/dist/components/dialog/Dialog.js +106 -97
  66. package/dist/components/editor/Editor.js +352 -323
  67. package/dist/components/file-tabs/FileTabs.js +77 -73
  68. package/dist/components/file-tabs/FileTabs.service.js +85 -87
  69. package/dist/components/file-tabs/FileTabs.view.js +0 -1
  70. package/dist/components/file-tabs/index.js +3 -9
  71. package/dist/components/flex/Flex.js +18 -23
  72. package/dist/components/form/CheckboxInput.js +72 -76
  73. package/dist/components/form/ColorInput.js +378 -353
  74. package/dist/components/form/DateInput.js +315 -265
  75. package/dist/components/form/EditorInput.js +597 -579
  76. package/dist/components/form/EmailInput.js +30 -23
  77. package/dist/components/form/FileInput.js +92 -123
  78. package/dist/components/form/Input.js +64 -58
  79. package/dist/components/form/Input.utils.js +25 -37
  80. package/dist/components/form/InputDescription.js +10 -11
  81. package/dist/components/form/InputLabel.js +17 -22
  82. package/dist/components/form/InputMessage.js +16 -17
  83. package/dist/components/form/InputWrapper.js +55 -65
  84. package/dist/components/form/NumberInput.js +41 -20
  85. package/dist/components/form/PasswordInput.js +71 -54
  86. package/dist/components/form/PinInput.js +49 -65
  87. package/dist/components/form/RadioGroup.js +41 -50
  88. package/dist/components/form/RadioInput.js +30 -29
  89. package/dist/components/form/SelectInput.js +68 -92
  90. package/dist/components/form/SwitchInput.js +17 -18
  91. package/dist/components/form/TagInput.js +108 -122
  92. package/dist/components/form/TextAreaInput.js +24 -21
  93. package/dist/components/form/TextInput.js +30 -22
  94. package/dist/components/form/index.js +22 -87
  95. package/dist/components/form/useForm.js +87 -88
  96. package/dist/components/fullscreen/FullScreen.js +27 -27
  97. package/dist/components/gantt/Gantt.js +99 -98
  98. package/dist/components/gantt/GanttGroup.js +210 -195
  99. package/dist/components/gantt/GanttHeader.js +78 -81
  100. package/dist/components/gantt/GanttItem.js +18 -22
  101. package/dist/components/icon/Icon.d.ts +6 -4
  102. package/dist/components/icon/Icon.js +53 -42
  103. package/dist/components/icon/codezero/codezero.js +10 -0
  104. package/dist/components/icon/codezero/gls.js +9 -0
  105. package/dist/components/icon/codezero/index.js +17 -13
  106. package/dist/components/json-view/JsonView.js +119 -109
  107. package/dist/components/layout/Layout.js +100 -78
  108. package/dist/components/menu/Menu.js +134 -128
  109. package/dist/components/progress/ProgressCircle.js +60 -49
  110. package/dist/components/progress/ProgressLinear.js +39 -43
  111. package/dist/components/quote/Quote.js +51 -43
  112. package/dist/components/resizable/Resizable.js +35 -33
  113. package/dist/components/row/Row.js +18 -23
  114. package/dist/components/scroll-area/ScrollArea.js +65 -76
  115. package/dist/components/segmented-control/SegmentedControl.js +46 -50
  116. package/dist/components/spacing/Spacing.js +15 -23
  117. package/dist/components/tab/Tab.js +73 -66
  118. package/dist/components/text/Text.js +18 -25
  119. package/dist/components/toast/Toast.js +104 -82
  120. package/dist/components/tooltip/Tooltip.js +65 -55
  121. package/dist/index.js +76 -272
  122. package/dist/node_modules/@lezer/common/dist/index.js +778 -143
  123. package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
  124. package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
  125. package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
  126. package/dist/node_modules/prettier/standalone.js +3444 -2415
  127. package/dist/utils/arrayService.js +0 -1
  128. package/dist/utils/color.js +46 -41
  129. package/dist/utils/component.js +60 -129
  130. package/dist/utils/contextStore.js +47 -58
  131. package/dist/utils/index.js +7 -29
  132. package/dist/utils/motion.js +84 -113
  133. package/dist/utils/reactiveArrayService.js +80 -76
  134. package/dist/utils/size.js +14 -26
  135. package/dist/utils/utils.js +0 -1
  136. package/dist/utils/view.js +27 -24
  137. package/dist/vite-env.d.js +0 -1
  138. package/package.json +28 -23
  139. package/dist/_virtual/compiler-runtime.js +0 -5
  140. package/dist/_virtual/compiler-runtime2.js +0 -4
  141. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  142. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  143. package/dist/assets/components/alert/Alert.style.css +0 -1
  144. package/dist/assets/components/aurora/Aurora.style.css +0 -1
  145. package/dist/assets/components/avatar/Avatar.style.css +0 -1
  146. package/dist/assets/components/badge/Badge.style.css +0 -1
  147. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
  148. package/dist/assets/components/button/Button.style.css +0 -1
  149. package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
  150. package/dist/assets/components/card/Card.style.css +0 -1
  151. package/dist/assets/components/chart/Chart.style.css +0 -1
  152. package/dist/assets/components/col/Col.style.css +0 -1
  153. package/dist/assets/components/command/Command.style.css +0 -1
  154. package/dist/assets/components/container/Container.style.css +0 -1
  155. package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
  156. package/dist/assets/components/data-table/DataTable.style.css +0 -1
  157. package/dist/assets/components/dialog/Dialog.style.css +0 -1
  158. package/dist/assets/components/editor/Editor.styles.css +0 -1
  159. package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
  160. package/dist/assets/components/form/ColorInput.style.css +0 -1
  161. package/dist/assets/components/form/DateInput.style.css +0 -1
  162. package/dist/assets/components/form/EditorInput.style.css +0 -1
  163. package/dist/assets/components/form/FileInput.style.css +0 -1
  164. package/dist/assets/components/form/Input.style.css +0 -1
  165. package/dist/assets/components/form/InputWrapper.style.css +0 -1
  166. package/dist/assets/components/form/SelectInput.style.css +0 -1
  167. package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
  168. package/dist/assets/components/gantt/Gantt.style.css +0 -1
  169. package/dist/assets/components/icon/Icon.style.css +0 -1
  170. package/dist/assets/components/json-view/JsonView.style.css +0 -1
  171. package/dist/assets/components/layout/Layout.style.css +0 -1
  172. package/dist/assets/components/menu/Menu.style.css +0 -1
  173. package/dist/assets/components/progress/Progress.style.css +0 -1
  174. package/dist/assets/components/quote/Quote.style.css +0 -1
  175. package/dist/assets/components/resizable/Resizable.style.css +0 -1
  176. package/dist/assets/components/row/Row.style.css +0 -1
  177. package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
  178. package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
  179. package/dist/assets/components/tab/Tab.style.css +0 -1
  180. package/dist/assets/components/text/Text.style.css +0 -1
  181. package/dist/assets/components/toast/Toast.style.css +0 -1
  182. package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
  183. package/dist/components/icon/codezero/codezero.svg.js +0 -5
  184. package/dist/components/icon/codezero/gls.svg.js +0 -5
  185. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  186. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
  187. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  188. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  189. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  190. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  191. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  192. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  193. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  194. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  195. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  196. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  197. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  198. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  199. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
  202. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
  203. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  204. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
  205. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
  206. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
  207. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  219. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
  225. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  226. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  227. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  228. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  229. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
  230. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
  231. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  232. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  233. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  234. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  236. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  237. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  238. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  239. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  240. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  241. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  242. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  243. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
  244. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
  245. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  246. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  247. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
  248. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
  249. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
  250. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
  251. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
  252. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  253. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
  254. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
  255. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
  256. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  257. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
  258. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  259. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  260. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
  261. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
  262. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
  263. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
  264. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
  265. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
  266. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
  267. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
  268. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  269. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  270. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  271. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
  272. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  273. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -37
  274. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  275. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  276. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  277. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
  278. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
  279. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
  280. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
  281. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
  282. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  283. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  284. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
  285. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  286. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
  287. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
  288. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  289. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
  290. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  291. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
  292. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
  293. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
  294. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
  295. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
  296. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  297. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
  298. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
  299. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  300. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
  301. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  302. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
  303. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
  304. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
  305. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  306. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  307. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
  308. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  309. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -18
  310. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  311. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  312. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  313. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  314. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  315. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
  316. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
  317. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  318. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
  319. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
  320. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
  321. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  322. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
  323. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  324. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  325. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
  326. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
  327. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
  328. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
  329. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
  330. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
  331. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
  332. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  333. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  334. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
  335. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  336. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
  337. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
  338. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
  339. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
  340. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  341. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
  342. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
  343. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  344. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  345. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
  346. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
  347. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
  348. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
  349. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  350. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
  351. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
  352. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  353. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  354. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
  355. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
  356. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  357. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
  358. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
  359. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
  360. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
  361. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
  362. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
  363. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
  364. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  365. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
  366. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
  367. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
  368. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
  369. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  370. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
  371. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
  372. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
  373. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  374. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
  375. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
  376. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
  377. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
  378. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
  379. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
  380. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
  381. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
  382. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
  383. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
  384. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  385. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
  386. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
  387. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
  388. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  389. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
  390. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  391. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  392. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  393. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
  394. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
  395. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
  396. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
  397. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
  398. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
  399. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
  400. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  401. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  402. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -51
  403. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
  404. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
  405. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  406. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
  407. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
  408. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
  409. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  410. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
  411. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
  412. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
  413. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  414. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
  415. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  416. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
  417. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  418. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
  419. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  420. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  421. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
  422. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
  423. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
  424. package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  425. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
  426. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  427. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  428. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  429. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
  430. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  431. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
  432. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
  433. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
  434. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
  435. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
  436. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
  437. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
  438. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  439. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
  440. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
  441. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
  442. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  443. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  444. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
  445. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  446. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  447. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  448. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
  449. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
  450. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  451. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -14
  452. package/dist/node_modules/react/compiler-runtime.js +0 -10
  453. /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
  454. /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
@@ -1,37 +0,0 @@
1
- import { spring as L } from "./spring.js";
2
- import { getGeneratorVelocity as R } from "./utils/velocity.js";
3
- function $({ keyframes: v, velocity: B = 0, power: M = 0.8, timeConstant: b = 325, bounceDamping: k = 10, bounceStiffness: F = 500, modifyTarget: l, min: t, max: a, restDelta: f = 0.5, restSpeed: O }) {
4
- const s = v[0], n = {
5
- done: !1,
6
- value: s
7
- }, C = (e) => t !== void 0 && e < t || a !== void 0 && e > a, D = (e) => t === void 0 ? a : a === void 0 || Math.abs(t - e) < Math.abs(a - e) ? t : a;
8
- let d = M * B;
9
- const i = s + d, u = l === void 0 ? i : l(i);
10
- u !== i && (d = u - s);
11
- const p = (e) => -d * Math.exp(-e / b), h = (e) => u + p(e), y = (e) => {
12
- const o = p(e), G = h(e);
13
- n.done = Math.abs(o) <= f, n.value = n.done ? u : G;
14
- };
15
- let r, c;
16
- const g = (e) => {
17
- C(n.value) && (r = e, c = L({
18
- keyframes: [n.value, D(n.value)],
19
- velocity: R(h, e, n.value),
20
- // TODO: This should be passing * 1000
21
- damping: k,
22
- stiffness: F,
23
- restDelta: f,
24
- restSpeed: O
25
- }));
26
- };
27
- return g(0), {
28
- calculatedDuration: null,
29
- next: (e) => {
30
- let o = !1;
31
- return !c && r === void 0 && (o = !0, y(e), g(e)), r !== void 0 && e >= r ? c.next(e - r) : (!o && y(e), n);
32
- }
33
- };
34
- }
35
- export {
36
- $ as inertia
37
- };
@@ -1,30 +0,0 @@
1
- import { interpolate as c } from "../../utils/interpolate.js";
2
- import { defaultOffset as p } from "../keyframes/offsets/default.js";
3
- import { convertOffsetToTimes as u } from "../keyframes/offsets/time.js";
4
- import { isEasingArray as l } from "../../../../../motion-utils/dist/es/easing/utils/is-easing-array.js";
5
- import { easingDefinitionToFunction as m } from "../../../../../motion-utils/dist/es/easing/utils/map.js";
6
- import { easeInOut as g } from "../../../../../motion-utils/dist/es/easing/ease.js";
7
- function T(n, t) {
8
- return n.map(() => t || g).splice(0, n.length - 1);
9
- }
10
- function y({ duration: n = 300, keyframes: t, times: o, ease: r = "easeInOut" }) {
11
- const e = l(r) ? r.map(m) : m(r), i = {
12
- done: !1,
13
- value: t[0]
14
- }, s = u(
15
- // Only use the provided offsets if they're the correct length
16
- // TODO Maybe we should warn here if there's a length mismatch
17
- o && o.length === t.length ? o : p(t),
18
- n
19
- ), a = c(s, t, {
20
- ease: Array.isArray(e) ? e : T(t, e)
21
- });
22
- return {
23
- calculatedDuration: n,
24
- next: (f) => (i.value = a(f), i.done = f >= n, i)
25
- };
26
- }
27
- export {
28
- T as defaultEasing,
29
- y as keyframes
30
- };
@@ -1,178 +0,0 @@
1
- import { generateLinearEasing as L } from "../waapi/utils/linear.js";
2
- import { calcGeneratorDuration as z, maxGeneratorDuration as B } from "./utils/calc-duration.js";
3
- import { createGeneratorEasing as H } from "./utils/create-generator-easing.js";
4
- import { millisecondsToSeconds as K, secondsToMilliseconds as q } from "../../../../../motion-utils/dist/es/time-conversion.js";
5
- import { clamp as N } from "../../../../../motion-utils/dist/es/clamp.js";
6
- import { warning as J } from "../../../../../motion-utils/dist/es/errors.js";
7
- const n = {
8
- // Default spring physics
9
- stiffness: 100,
10
- damping: 10,
11
- mass: 1,
12
- velocity: 0,
13
- // Default duration/bounce-based options
14
- duration: 800,
15
- // in ms
16
- bounce: 0.3,
17
- visualDuration: 0.3,
18
- // in seconds
19
- // Rest thresholds
20
- restSpeed: {
21
- granular: 0.01,
22
- default: 2
23
- },
24
- restDelta: {
25
- granular: 5e-3,
26
- default: 0.5
27
- },
28
- // Limits
29
- minDuration: 0.01,
30
- // in seconds
31
- maxDuration: 10,
32
- // in seconds
33
- minDamping: 0.05,
34
- maxDamping: 1
35
- };
36
- function O(e, s) {
37
- return e * Math.sqrt(1 - s * s);
38
- }
39
- const Q = 12;
40
- function U(e, s, a) {
41
- let l = a;
42
- for (let f = 1; f < Q; f++)
43
- l = l - e(l) / s(l);
44
- return l;
45
- }
46
- const I = 1e-3;
47
- function W({ duration: e = n.duration, bounce: s = n.bounce, velocity: a = n.velocity, mass: l = n.mass }) {
48
- let f, v;
49
- J(e <= q(n.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
50
- let r = 1 - s;
51
- r = N(n.minDamping, n.maxDamping, r), e = N(n.minDuration, n.maxDuration, K(e)), r < 1 ? (f = (c) => {
52
- const g = c * r, h = g * e, k = g - a, x = O(c, r), M = Math.exp(-h);
53
- return I - k / x * M;
54
- }, v = (c) => {
55
- const h = c * r * e, k = h * a + a, x = Math.pow(r, 2) * Math.pow(c, 2) * e, M = Math.exp(-h), o = O(Math.pow(c, 2), r);
56
- return (-f(c) + I > 0 ? -1 : 1) * ((k - x) * M) / o;
57
- }) : (f = (c) => {
58
- const g = Math.exp(-c * e), h = (c - a) * e + 1;
59
- return -I + g * h;
60
- }, v = (c) => {
61
- const g = Math.exp(-c * e), h = (a - c) * (e * e);
62
- return g * h;
63
- });
64
- const p = 5 / e, T = U(f, v, p);
65
- if (e = q(e), isNaN(T))
66
- return {
67
- stiffness: n.stiffness,
68
- damping: n.damping,
69
- duration: e
70
- };
71
- {
72
- const c = Math.pow(T, 2) * l;
73
- return {
74
- stiffness: c,
75
- damping: r * 2 * Math.sqrt(l * c),
76
- duration: e
77
- };
78
- }
79
- }
80
- const X = ["duration", "bounce"], Y = ["stiffness", "damping", "mass"];
81
- function V(e, s) {
82
- return s.some((a) => e[a] !== void 0);
83
- }
84
- function Z(e) {
85
- let s = {
86
- velocity: n.velocity,
87
- stiffness: n.stiffness,
88
- damping: n.damping,
89
- mass: n.mass,
90
- isResolvedFromDuration: !1,
91
- ...e
92
- };
93
- if (!V(e, Y) && V(e, X))
94
- if (s.velocity = 0, e.visualDuration) {
95
- const a = e.visualDuration, l = 2 * Math.PI / (a * 1.2), f = l * l, v = 2 * N(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(f);
96
- s = {
97
- ...s,
98
- mass: n.mass,
99
- stiffness: f,
100
- damping: v
101
- };
102
- } else {
103
- const a = W({ ...e, velocity: 0 });
104
- s = {
105
- ...s,
106
- ...a,
107
- mass: n.mass
108
- }, s.isResolvedFromDuration = !0;
109
- }
110
- return s;
111
- }
112
- function j(e = n.visualDuration, s = n.bounce) {
113
- const a = typeof e != "object" ? {
114
- visualDuration: e,
115
- keyframes: [0, 1],
116
- bounce: s
117
- } : e;
118
- let { restSpeed: l, restDelta: f } = a;
119
- const v = a.keyframes[0], r = a.keyframes[a.keyframes.length - 1], p = { done: !1, value: v }, { stiffness: T, damping: c, mass: g, duration: h, velocity: k, isResolvedFromDuration: x } = Z({
120
- ...a,
121
- velocity: -K(a.velocity || 0)
122
- }), M = k || 0, o = c / (2 * Math.sqrt(T * g)), m = r - v, i = K(Math.sqrt(T / g)), P = Math.abs(m) < 5;
123
- l || (l = P ? n.restSpeed.granular : n.restSpeed.default), f || (f = P ? n.restDelta.granular : n.restDelta.default);
124
- let G, w, d, C, A, F;
125
- if (o < 1)
126
- d = O(i, o), C = (M + o * i * m) / d, G = (t) => {
127
- const u = Math.exp(-o * i * t);
128
- return r - u * (C * Math.sin(d * t) + m * Math.cos(d * t));
129
- }, A = o * i * C + m * d, F = o * i * m - C * d, w = (t) => Math.exp(-o * i * t) * (A * Math.sin(d * t) + F * Math.cos(d * t));
130
- else if (o === 1) {
131
- G = (u) => r - Math.exp(-i * u) * (m + (M + i * m) * u);
132
- const t = M + i * m;
133
- w = (u) => Math.exp(-i * u) * (i * t * u - M);
134
- } else {
135
- const t = i * Math.sqrt(o * o - 1);
136
- G = (y) => {
137
- const S = Math.exp(-o * i * y), b = Math.min(t * y, 300);
138
- return r - S * ((M + o * i * m) * Math.sinh(b) + t * m * Math.cosh(b)) / t;
139
- };
140
- const u = (M + o * i * m) / t, D = o * i * u - m * t, R = o * i * m - u * t;
141
- w = (y) => {
142
- const S = Math.exp(-o * i * y), b = Math.min(t * y, 300);
143
- return S * (D * Math.sinh(b) + R * Math.cosh(b));
144
- };
145
- }
146
- const E = {
147
- calculatedDuration: x && h || null,
148
- velocity: (t) => q(w(t)),
149
- next: (t) => {
150
- if (!x && o < 1) {
151
- const D = Math.exp(-o * i * t), R = Math.sin(d * t), y = Math.cos(d * t), S = r - D * (C * R + m * y), b = q(D * (A * R + F * y));
152
- return p.done = Math.abs(b) <= l && Math.abs(r - S) <= f, p.value = p.done ? r : S, p;
153
- }
154
- const u = G(t);
155
- if (x)
156
- p.done = t >= h;
157
- else {
158
- const D = q(w(t));
159
- p.done = Math.abs(D) <= l && Math.abs(r - u) <= f;
160
- }
161
- return p.value = p.done ? r : u, p;
162
- },
163
- toString: () => {
164
- const t = Math.min(z(E), B), u = L((D) => E.next(t * D).value, t, 30);
165
- return t + "ms " + u;
166
- },
167
- toTransition: () => {
168
- }
169
- };
170
- return E;
171
- }
172
- j.applyToOptions = (e) => {
173
- const s = H(e, 100, j);
174
- return e.ease = s.ease, e.duration = q(s.duration), e.type = "keyframes", e;
175
- };
176
- export {
177
- j as spring
178
- };
@@ -1,13 +0,0 @@
1
- const a = 2e4;
2
- function o(n) {
3
- let t = 0;
4
- const r = 50;
5
- let e = n.next(t);
6
- for (; !e.done && t < 2e4; )
7
- t += r, e = n.next(t);
8
- return t >= 2e4 ? 1 / 0 : t;
9
- }
10
- export {
11
- o as calcGeneratorDuration,
12
- a as maxGeneratorDuration
13
- };
@@ -1,13 +0,0 @@
1
- import { calcGeneratorDuration as i, maxGeneratorDuration as m } from "./calc-duration.js";
2
- import { millisecondsToSeconds as s } from "../../../../../../motion-utils/dist/es/time-conversion.js";
3
- function f(n, r = 100, o) {
4
- const e = o({ ...n, keyframes: [0, r] }), t = Math.min(i(e), m);
5
- return {
6
- type: "keyframes",
7
- ease: (a) => e.next(t * a).value / r,
8
- duration: s(t)
9
- };
10
- }
11
- export {
12
- f as createGeneratorEasing
13
- };
@@ -1,6 +0,0 @@
1
- function o(n) {
2
- return typeof n == "function" && "applyToOptions" in n;
3
- }
4
- export {
5
- o as isGenerator
6
- };
@@ -1,9 +0,0 @@
1
- import { velocityPerSecond as n } from "../../../../../../motion-utils/dist/es/velocity-per-second.js";
2
- const c = 5;
3
- function a(t, e, r) {
4
- const o = Math.max(e - c, 0);
5
- return n(r - t(o), e - o);
6
- }
7
- export {
8
- a as getGeneratorVelocity
9
- };
@@ -1,46 +0,0 @@
1
- import { AsyncMotionValueAnimation as A } from "../AsyncMotionValueAnimation.js";
2
- import { JSAnimation as k } from "../JSAnimation.js";
3
- import { getValueTransition as D } from "../utils/get-value-transition.js";
4
- import { makeAnimationInstant as d } from "../utils/make-animation-instant.js";
5
- import { getDefaultTransition as g } from "../utils/default-transitions.js";
6
- import { getFinalKeyframe as C } from "../keyframes/get-final.js";
7
- import { isTransitionDefined as T } from "../utils/is-transition-defined.js";
8
- import { frame as V } from "../../frameloop/frame.js";
9
- import { secondsToMilliseconds as s } from "../../../../../motion-utils/dist/es/time-conversion.js";
10
- import { MotionGlobalConfig as y } from "../../../../../motion-utils/dist/es/global-config.js";
11
- const x = (n, i, a, r = {}, f, p) => (u) => {
12
- const o = D(r, n) || {}, c = o.delay || r.delay || 0;
13
- let { elapsed: m = 0 } = r;
14
- m = m - s(c);
15
- const e = {
16
- keyframes: Array.isArray(a) ? a : [null, a],
17
- ease: "easeOut",
18
- velocity: i.getVelocity(),
19
- ...o,
20
- delay: -m,
21
- onUpdate: (t) => {
22
- i.set(t), o.onUpdate && o.onUpdate(t);
23
- },
24
- onComplete: () => {
25
- u(), o.onComplete && o.onComplete();
26
- },
27
- name: n,
28
- motionValue: i,
29
- element: p ? void 0 : f
30
- };
31
- T(o) || Object.assign(e, g(n, e)), e.duration && (e.duration = s(e.duration)), e.repeatDelay && (e.repeatDelay = s(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
32
- let l = !1;
33
- if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (d(e), e.delay === 0 && (l = !0)), (y.instantAnimations || y.skipAnimations || f?.shouldSkipAnimations || o.skipAnimations) && (l = !0, d(e), e.delay = 0), e.allowFlatten = !o.type && !o.ease, l && !p && i.get() !== void 0) {
34
- const t = C(e.keyframes, o);
35
- if (t !== void 0) {
36
- V.update(() => {
37
- e.onUpdate(t), e.onComplete();
38
- });
39
- return;
40
- }
41
- }
42
- return o.isSync ? new k(e) : new A(e);
43
- };
44
- export {
45
- x as animateMotionValue
46
- };
@@ -1,59 +0,0 @@
1
- import { getValueTransition as H } from "../utils/get-value-transition.js";
2
- import { resolveTransition as B } from "../utils/resolve-transition.js";
3
- import { positionalKeys as I } from "../../render/utils/keys-position.js";
4
- import { setTarget as P } from "../../render/utils/setters.js";
5
- import { addValueToWillChange as R } from "../../value/will-change/add-will-change.js";
6
- import { getOptimisedAppearId as x } from "../optimized-appear/get-appear-id.js";
7
- import { animateMotionValue as C } from "./motion-value.js";
8
- import { frame as u } from "../../frameloop/frame.js";
9
- function D({ protectedKeys: t, needsAnimating: s }, i) {
10
- const f = t.hasOwnProperty(i) && s[i] !== !0;
11
- return s[i] = !1, f;
12
- }
13
- function G(t, s, { delay: i = 0, transitionOverride: f, type: d } = {}) {
14
- let { transition: n, transitionEnd: m, ...p } = s;
15
- const l = t.getDefaultTransition();
16
- n = n ? B(n, l) : l;
17
- const y = n?.reduceMotion, k = n?.skipAnimations;
18
- f && (n = f);
19
- const e = [], T = d && t.animationState && t.animationState.getState()[d], g = n?.path;
20
- g && g.animateVisualElement(t, p, n, i, e);
21
- for (const o in p) {
22
- const a = t.getValue(o, t.latestValues[o] ?? null), r = p[o];
23
- if (r === void 0 || T && D(T, o))
24
- continue;
25
- const c = {
26
- delay: i,
27
- ...H(n || {}, o)
28
- };
29
- k && (c.skipAnimations = !0);
30
- const h = a.get();
31
- if (h !== void 0 && !a.isAnimating() && !Array.isArray(r) && r === h && !c.velocity) {
32
- u.update(() => a.set(r));
33
- continue;
34
- }
35
- let A = !1;
36
- if (window.MotionHandoffAnimation) {
37
- const V = x(t);
38
- if (V) {
39
- const w = window.MotionHandoffAnimation(V, o, u);
40
- w !== null && (c.startTime = w, A = !0);
41
- }
42
- }
43
- R(t, o);
44
- const S = y ?? t.shouldReduceMotion;
45
- a.start(C(o, a, r, S && I.has(o) ? { type: !1 } : c, t, A));
46
- const M = a.animation;
47
- M && e.push(M);
48
- }
49
- if (m) {
50
- const o = () => u.update(() => {
51
- m && P(t, m);
52
- });
53
- e.length ? Promise.all(e).then(o) : o();
54
- }
55
- return e;
56
- }
57
- export {
58
- G as animateTarget
59
- };
@@ -1,29 +0,0 @@
1
- import { resolveVariant as h } from "../../render/utils/resolve-dynamic-variants.js";
2
- import { calcChildStagger as l } from "../utils/calc-child-stagger.js";
3
- import { animateTarget as g } from "./visual-element-target.js";
4
- function C(r, i, t = {}) {
5
- const n = h(r, i, t.type === "exit" ? r.presenceContext?.custom : void 0);
6
- let { transition: o = r.getDefaultTransition() || {} } = n || {};
7
- t.transitionOverride && (o = t.transitionOverride);
8
- const a = n ? () => Promise.all(g(r, n, t)) : () => Promise.resolve(), s = r.variantChildren && r.variantChildren.size ? (e = 0) => {
9
- const { delayChildren: f = 0, staggerChildren: d, staggerDirection: m } = o;
10
- return y(r, i, e, f, d, m, t);
11
- } : () => Promise.resolve(), { when: c } = o;
12
- if (c) {
13
- const [e, f] = c === "beforeChildren" ? [a, s] : [s, a];
14
- return e().then(() => f());
15
- } else
16
- return Promise.all([a(), s(t.delay)]);
17
- }
18
- function y(r, i, t = 0, n = 0, o = 0, a = 1, s) {
19
- const c = [];
20
- for (const e of r.variantChildren)
21
- e.notify("AnimationStart", i), c.push(C(e, i, {
22
- ...s,
23
- delay: t + (typeof n == "function" ? 0 : n) + l(r.variantChildren, e, n, o, a)
24
- }).then(() => e.notify("AnimationComplete", i)));
25
- return Promise.all(c);
26
- }
27
- export {
28
- C as animateVariant
29
- };
@@ -1,22 +0,0 @@
1
- import { resolveVariant as c } from "../../render/utils/resolve-dynamic-variants.js";
2
- import { animateTarget as p } from "./visual-element-target.js";
3
- import { animateVariant as e } from "./visual-element-variant.js";
4
- function n(a, r, t = {}) {
5
- a.notify("AnimationStart", r);
6
- let m;
7
- if (Array.isArray(r)) {
8
- const o = r.map((y) => e(a, y, t));
9
- m = Promise.all(o);
10
- } else if (typeof r == "string")
11
- m = e(a, r, t);
12
- else {
13
- const o = typeof r == "function" ? c(a, r, t.custom) : r;
14
- m = Promise.all(p(a, o, t));
15
- }
16
- return m.then(() => {
17
- a.notify("AnimationComplete", r);
18
- });
19
- }
20
- export {
21
- n as animateVisualElement
22
- };
@@ -1,68 +0,0 @@
1
- import { positionalKeys as c } from "../../render/utils/keys-position.js";
2
- import { findDimensionValueType as d } from "../../value/types/dimensions.js";
3
- import { getVariableValue as g } from "../utils/css-variables-conversion.js";
4
- import { isCSSVariableToken as K, containsCSSVariable as h } from "../utils/is-css-variable.js";
5
- import { KeyframeResolver as v } from "./KeyframesResolver.js";
6
- import { isNone as V } from "./utils/is-none.js";
7
- import { makeNoneKeyframesAnimatable as S } from "./utils/make-none-animatable.js";
8
- import { positionalValues as m, isNumOrPxType as p } from "./utils/unit-conversion.js";
9
- class M extends v {
10
- constructor(e, n, r, t, o) {
11
- super(e, n, r, t, o, !0);
12
- }
13
- readKeyframes() {
14
- const { unresolvedKeyframes: e, element: n, name: r } = this;
15
- if (!n || !n.current)
16
- return;
17
- super.readKeyframes();
18
- for (let s = 0; s < e.length; s++) {
19
- let i = e[s];
20
- if (typeof i == "string" && (i = i.trim(), K(i))) {
21
- const u = g(i, n.current);
22
- u !== void 0 && (e[s] = u), s === e.length - 1 && (this.finalKeyframe = i);
23
- }
24
- }
25
- if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
26
- return;
27
- const [t, o] = e, a = d(t), f = d(o), l = h(t), y = h(o);
28
- if (l !== y && m[r]) {
29
- this.needsMeasurement = !0;
30
- return;
31
- }
32
- if (a !== f)
33
- if (p(a) && p(f))
34
- for (let s = 0; s < e.length; s++) {
35
- const i = e[s];
36
- typeof i == "string" && (e[s] = parseFloat(i));
37
- }
38
- else m[r] && (this.needsMeasurement = !0);
39
- }
40
- resolveNoneKeyframes() {
41
- const { unresolvedKeyframes: e, name: n } = this, r = [];
42
- for (let t = 0; t < e.length; t++)
43
- (e[t] === null || V(e[t])) && r.push(t);
44
- r.length && S(e, r, n);
45
- }
46
- measureInitialState() {
47
- const { element: e, unresolvedKeyframes: n, name: r } = this;
48
- if (!e || !e.current)
49
- return;
50
- r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = m[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
51
- const t = n[n.length - 1];
52
- t !== void 0 && e.getValue(r, t).jump(t, !1);
53
- }
54
- measureEndState() {
55
- const { element: e, name: n, unresolvedKeyframes: r } = this;
56
- if (!e || !e.current)
57
- return;
58
- const t = e.getValue(n);
59
- t && t.jump(this.measuredOrigin, !1);
60
- const o = r.length - 1, a = r[o];
61
- r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([f, l]) => {
62
- e.getValue(f).set(l);
63
- }), this.resolveNoneKeyframes();
64
- }
65
- }
66
- export {
67
- M as DOMKeyframesResolver
68
- };
@@ -1,74 +0,0 @@
1
- import { fillWildcards as y } from "./utils/fill-wildcards.js";
2
- import { removeNonTranslationalTransform as p } from "./utils/unit-conversion.js";
3
- import { frame as c } from "../../frameloop/frame.js";
4
- const l = /* @__PURE__ */ new Set();
5
- let f = !1, d = !1, m = !1;
6
- function u() {
7
- if (d) {
8
- const a = Array.from(l).filter((e) => e.needsMeasurement), s = new Set(a.map((e) => e.element)), r = /* @__PURE__ */ new Map();
9
- s.forEach((e) => {
10
- const t = p(e);
11
- t.length && (r.set(e, t), e.render());
12
- }), a.forEach((e) => e.measureInitialState()), s.forEach((e) => {
13
- e.render();
14
- const t = r.get(e);
15
- t && t.forEach(([n, i]) => {
16
- e.getValue(n)?.set(i);
17
- });
18
- }), a.forEach((e) => e.measureEndState()), a.forEach((e) => {
19
- e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
20
- });
21
- }
22
- d = !1, f = !1, l.forEach((a) => a.complete(m)), l.clear();
23
- }
24
- function h() {
25
- l.forEach((a) => {
26
- a.readKeyframes(), a.needsMeasurement && (d = !0);
27
- });
28
- }
29
- function S() {
30
- m = !0, h(), u(), m = !1;
31
- }
32
- class g {
33
- constructor(s, r, e, t, n, i = !1) {
34
- this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...s], this.onComplete = r, this.name = e, this.motionValue = t, this.element = n, this.isAsync = i;
35
- }
36
- scheduleResolve() {
37
- this.state = "scheduled", this.isAsync ? (l.add(this), f || (f = !0, c.read(h), c.resolveKeyframes(u))) : (this.readKeyframes(), this.complete());
38
- }
39
- readKeyframes() {
40
- const { unresolvedKeyframes: s, name: r, element: e, motionValue: t } = this;
41
- if (s[0] === null) {
42
- const n = t?.get(), i = s[s.length - 1];
43
- if (n !== void 0)
44
- s[0] = n;
45
- else if (e && r) {
46
- const o = e.readValue(r, i);
47
- o != null && (s[0] = o);
48
- }
49
- s[0] === void 0 && (s[0] = i), t && n === void 0 && t.set(s[0]);
50
- }
51
- y(s);
52
- }
53
- setFinalKeyframe() {
54
- }
55
- measureInitialState() {
56
- }
57
- renderEndStyles() {
58
- }
59
- measureEndState() {
60
- }
61
- complete(s = !1) {
62
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, s), l.delete(this);
63
- }
64
- cancel() {
65
- this.state === "scheduled" && (l.delete(this), this.state = "pending");
66
- }
67
- resume() {
68
- this.state === "pending" && this.scheduleResolve();
69
- }
70
- }
71
- export {
72
- g as KeyframeResolver,
73
- S as flushKeyframeResolvers
74
- };
@@ -1,8 +0,0 @@
1
- const i = (e) => e !== null;
2
- function c(e, { repeat: n, repeatType: l = "loop" }, o, r = 1) {
3
- const t = e.filter(i), s = r < 0 || n && l !== "loop" && n % 2 === 1 ? 0 : t.length - 1;
4
- return !s || o === void 0 ? t[s] : o;
5
- }
6
- export {
7
- c as getFinalKeyframe
8
- };
@@ -1,8 +0,0 @@
1
- import { fillOffset as e } from "./fill.js";
2
- function n(t) {
3
- const f = [0];
4
- return e(f, t.length - 1), f;
5
- }
6
- export {
7
- n as defaultOffset
8
- };
@@ -1,12 +0,0 @@
1
- import { mixNumber as e } from "../../../utils/mix/number.js";
2
- import { progress as f } from "../../../../../../motion-utils/dist/es/progress.js";
3
- function l(o, t) {
4
- const s = o[o.length - 1];
5
- for (let r = 1; r <= t; r++) {
6
- const m = f(0, t, r);
7
- o.push(e(s, 1, m));
8
- }
9
- }
10
- export {
11
- l as fillOffset
12
- };
@@ -1,6 +0,0 @@
1
- function o(e, t) {
2
- return e.map((n) => n * t);
3
- }
4
- export {
5
- o as convertOffsetToTimes
6
- };
@@ -1,7 +0,0 @@
1
- function t(i) {
2
- for (let l = 1; l < i.length; l++)
3
- i[l] ?? (i[l] = i[l - 1]);
4
- }
5
- export {
6
- t as fillWildcards
7
- };
@@ -1,7 +0,0 @@
1
- import { isZeroValueString as n } from "../../../../../../motion-utils/dist/es/is-zero-value-string.js";
2
- function t(r) {
3
- return typeof r == "number" ? r === 0 : r !== null ? r === "none" || r === "0" || n(r) : !0;
4
- }
5
- export {
6
- t as isNone
7
- };
@@ -1,16 +0,0 @@
1
- import { analyseComplexValue as l } from "../../../value/types/complex/index.js";
2
- import { getAnimatableNone as m } from "../../../value/types/utils/animatable-none.js";
3
- const f = /* @__PURE__ */ new Set(["auto", "none", "0"]);
4
- function g(e, i, o) {
5
- let n = 0, a;
6
- for (; n < e.length && !a; ) {
7
- const t = e[n];
8
- typeof t == "string" && !f.has(t) && l(t).values.length && (a = e[n]), n++;
9
- }
10
- if (a && o)
11
- for (const t of i)
12
- e[t] = m(o, a);
13
- }
14
- export {
15
- g as makeNoneKeyframesAnimatable
16
- };