@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,53 +0,0 @@
1
- import { addUniqueItem as a, removeItem as r } from "../../../../../motion-utils/dist/es/array.js";
2
- class h {
3
- constructor() {
4
- this.members = [];
5
- }
6
- add(e) {
7
- a(this.members, e);
8
- for (let t = this.members.length - 1; t >= 0; t--) {
9
- const s = this.members[t];
10
- if (s === e || s === this.lead || s === this.prevLead)
11
- continue;
12
- const i = s.instance;
13
- (!i || i.isConnected === !1) && !s.snapshot && (r(this.members, s), s.unmount());
14
- }
15
- e.scheduleRender();
16
- }
17
- remove(e) {
18
- if (r(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
19
- const t = this.members[this.members.length - 1];
20
- t && this.promote(t);
21
- }
22
- }
23
- relegate(e) {
24
- for (let t = this.members.indexOf(e) - 1; t >= 0; t--) {
25
- const s = this.members[t];
26
- if (s.isPresent !== !1 && s.instance?.isConnected !== !1)
27
- return this.promote(s), !0;
28
- }
29
- return !1;
30
- }
31
- promote(e, t) {
32
- const s = this.lead;
33
- if (e !== s && (this.prevLead = s, this.lead = e, e.show(), s)) {
34
- s.updateSnapshot(), e.scheduleRender();
35
- const { layoutDependency: i } = s.options, { layoutDependency: n } = e.options;
36
- (i === void 0 || i !== n) && (e.resumeFrom = s, t && (s.preserveOpacity = !0), s.snapshot && (e.snapshot = s.snapshot, e.snapshot.latestValues = s.animationValues || s.latestValues), e.root?.isUpdating && (e.isLayoutDirty = !0)), e.options.crossfade === !1 && s.hide();
37
- }
38
- }
39
- exitAnimationComplete() {
40
- this.members.forEach((e) => {
41
- e.options.onExitComplete?.(), e.resumingFrom?.options.onExitComplete?.();
42
- });
43
- }
44
- scheduleRender() {
45
- this.members.forEach((e) => e.instance && e.scheduleRender(!1));
46
- }
47
- removeLeadSnapshot() {
48
- this.lead?.snapshot && (this.lead.snapshot = void 0);
49
- }
50
- }
51
- export {
52
- h as NodeStack
53
- };
@@ -1,21 +0,0 @@
1
- import { px as c } from "../../value/types/numbers/units.js";
2
- function e(r, n) {
3
- return n.max === n.min ? 0 : r / (n.max - n.min) * 100;
4
- }
5
- const f = {
6
- correct: (r, n) => {
7
- if (!n.target)
8
- return r;
9
- if (typeof r == "string")
10
- if (c.test(r))
11
- r = parseFloat(r);
12
- else
13
- return r;
14
- const o = e(r, n.target.x), t = e(r, n.target.y);
15
- return `${o}% ${t}%`;
16
- }
17
- };
18
- export {
19
- f as correctBorderRadius,
20
- e as pixelsToPercent
21
- };
@@ -1,16 +0,0 @@
1
- import { complex as f } from "../../value/types/complex/index.js";
2
- import { mixNumber as i } from "../../utils/mix/number.js";
3
- const y = {
4
- correct: (e, { treeScale: c, projectionDelta: t }) => {
5
- const a = e, o = f.parse(e);
6
- if (o.length > 5)
7
- return a;
8
- const p = f.createTransformer(e), r = typeof o[0] != "number" ? 1 : 0, n = t.x.scale * c.x, m = t.y.scale * c.y;
9
- o[0 + r] /= n, o[1 + r] /= m;
10
- const s = i(n, m, 0.5);
11
- return typeof o[2 + r] == "number" && (o[2 + r] /= s), typeof o[3 + r] == "number" && (o[3 + r] /= s), p(o);
12
- }
13
- };
14
- export {
15
- y as correctBoxShadow
16
- };
@@ -1,21 +0,0 @@
1
- import { correctBorderRadius as o } from "./scale-border-radius.js";
2
- import { correctBoxShadow as r } from "./scale-box-shadow.js";
3
- const e = {
4
- borderRadius: {
5
- ...o,
6
- applyTo: [
7
- "borderTopLeftRadius",
8
- "borderTopRightRadius",
9
- "borderBottomLeftRadius",
10
- "borderBottomRightRadius"
11
- ]
12
- },
13
- borderTopLeftRadius: o,
14
- borderTopRightRadius: o,
15
- borderBottomLeftRadius: o,
16
- borderBottomRightRadius: o,
17
- boxShadow: r
18
- };
19
- export {
20
- e as scaleCorrectors
21
- };
@@ -1,13 +0,0 @@
1
- function X(o, n, s) {
2
- let t = "";
3
- const e = o.x.translate / n.x, i = o.y.translate / n.y, a = s?.z || 0;
4
- if ((e || i || a) && (t = `translate3d(${e}px, ${i}px, ${a}px) `), (n.x !== 1 || n.y !== 1) && (t += `scale(${1 / n.x}, ${1 / n.y}) `), s) {
5
- const { transformPerspective: f, rotate: x, pathRotation: c, rotateX: p, rotateY: y, skewX: g, skewY: d } = s;
6
- f && (t = `perspective(${f}px) ${t}`), x && (t += `rotate(${x}deg) `), c && (t += `rotate(${c}deg) `), p && (t += `rotateX(${p}deg) `), y && (t += `rotateY(${y}deg) `), g && (t += `skewX(${g}deg) `), d && (t += `skewY(${d}deg) `);
7
- }
8
- const $ = o.x.scale * n.x, r = o.y.scale * n.y;
9
- return ($ !== 1 || r !== 1) && (t += `scale(${$}, ${r})`), t || "none";
10
- }
11
- export {
12
- X as buildProjectionTransform
13
- };
@@ -1,4 +0,0 @@
1
- const t = (e, p) => e.depth - p.depth;
2
- export {
3
- t as compareByDepth
4
- };
@@ -1,6 +0,0 @@
1
- function n(e) {
2
- return [e("x"), e("y")];
3
- }
4
- export {
5
- n as eachAxis
6
- };
@@ -1,19 +0,0 @@
1
- import { compareByDepth as t } from "./compare-by-depth.js";
2
- import { addUniqueItem as r, removeItem as e } from "../../../../../motion-utils/dist/es/array.js";
3
- class c {
4
- constructor() {
5
- this.children = [], this.isDirty = !1;
6
- }
7
- add(i) {
8
- r(this.children, i), this.isDirty = !0;
9
- }
10
- remove(i) {
11
- e(this.children, i), this.isDirty = !0;
12
- }
13
- forEach(i) {
14
- this.isDirty && this.children.sort(t), this.isDirty = !1, this.children.forEach(i);
15
- }
16
- }
17
- export {
18
- c as FlatTree
19
- };
@@ -1,20 +0,0 @@
1
- function t(n) {
2
- return n === void 0 || n === 1;
3
- }
4
- function e({ scale: n, scaleX: o, scaleY: i }) {
5
- return !t(n) || !t(o) || !t(i);
6
- }
7
- function c(n) {
8
- return e(n) || f(n) || n.z || n.rotate || n.rotateX || n.rotateY || n.skewX || n.skewY;
9
- }
10
- function f(n) {
11
- return r(n.x) || r(n.y);
12
- }
13
- function r(n) {
14
- return n && n !== "0%";
15
- }
16
- export {
17
- f as has2DTranslate,
18
- e as hasScale,
19
- c as hasTransform
20
- };
@@ -1,13 +0,0 @@
1
- import { convertBoundingBoxToBox as s, transformBoxPoints as f } from "../geometry/conversion.js";
2
- import { translateAxis as n } from "../geometry/delta-apply.js";
3
- function x(o, t) {
4
- return s(f(o.getBoundingClientRect(), t));
5
- }
6
- function c(o, t, i) {
7
- const r = x(o, i), { scroll: e } = t;
8
- return e && (n(r.x, e.offset.x), n(r.y, e.offset.y)), r;
9
- }
10
- export {
11
- c as measurePageBox,
12
- x as measureViewportBox
13
- };
@@ -1,10 +0,0 @@
1
- class s {
2
- constructor(t) {
3
- this.isMounted = !1, this.node = t;
4
- }
5
- update() {
6
- }
7
- }
8
- export {
9
- s as Feature
10
- };
@@ -1,263 +0,0 @@
1
- import { KeyframeResolver as M } from "../animation/keyframes/KeyframesResolver.js";
2
- import { NativeAnimation as S } from "../animation/NativeAnimation.js";
3
- import { acceleratedValues as b } from "../animation/waapi/utils/accelerated-values.js";
4
- import { microtask as T } from "../frameloop/microtask.js";
5
- import { time as w } from "../frameloop/sync-time.js";
6
- import { createBox as P } from "../projection/geometry/models.js";
7
- import { motionValue as F } from "../value/index.js";
8
- import { complex as A } from "../value/types/complex/index.js";
9
- import { getAnimatableNone as B } from "../value/types/utils/animatable-none.js";
10
- import { findValueType as R } from "../value/types/utils/find.js";
11
- import { isMotionValue as u } from "../value/utils/is-motion-value.js";
12
- import { visualElementStore as N } from "./store.js";
13
- import { isControllingVariants as E, isVariantNode as x } from "./utils/is-controlling-variants.js";
14
- import { transformProps as j } from "./utils/keys-transform.js";
15
- import { updateMotionValuesFromProps as y } from "./utils/motion-values.js";
16
- import { initPrefersReducedMotion as I } from "./utils/reduced-motion/index.js";
17
- import { resolveVariantFromProps as D } from "./utils/resolve-variants.js";
18
- import { hasReducedMotionListener as L, prefersReducedMotion as U } from "./utils/reduced-motion/state.js";
19
- import { frame as v, cancelFrame as g } from "../frameloop/frame.js";
20
- import { warnOnce as O } from "../../../../motion-utils/dist/es/warn-once.js";
21
- import { secondsToMilliseconds as _ } from "../../../../motion-utils/dist/es/time-conversion.js";
22
- import { isNumericalString as H } from "../../../../motion-utils/dist/es/is-numerical-string.js";
23
- import { isZeroValueString as K } from "../../../../motion-utils/dist/es/is-zero-value-string.js";
24
- import { SubscriptionManager as Y } from "../../../../motion-utils/dist/es/subscription-manager.js";
25
- const C = [
26
- "AnimationStart",
27
- "AnimationComplete",
28
- "Update",
29
- "BeforeLayoutMeasure",
30
- "LayoutMeasure",
31
- "LayoutAnimationStart",
32
- "LayoutAnimationComplete"
33
- ];
34
- let l = {};
35
- function ft(m) {
36
- l = m;
37
- }
38
- function mt() {
39
- return l;
40
- }
41
- class Vt {
42
- /**
43
- * This method takes React props and returns found MotionValues. For example, HTML
44
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
45
- *
46
- * This isn't an abstract method as it needs calling in the constructor, but it is
47
- * intended to be one.
48
- */
49
- scrapeMotionValuesFromProps(t, e, i) {
50
- return {};
51
- }
52
- constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, skipAnimations: n, blockInitialAnimation: r, visualState: d }, p = {}) {
53
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = M, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
54
- this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
55
- }, this.renderScheduledAt = 0, this.scheduleRender = () => {
56
- const a = w.now();
57
- this.renderScheduledAt < a && (this.renderScheduledAt = a, v.render(this.render, !1, !0));
58
- };
59
- const { latestValues: o, renderState: c } = d;
60
- this.latestValues = o, this.baseTarget = { ...o }, this.initialValues = e.initial ? { ...o } : {}, this.renderState = c, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = n, this.options = p, this.blockInitialAnimation = !!r, this.isControllingVariants = E(e), this.isVariantNode = x(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
61
- const { willChange: f, ...h } = this.scrapeMotionValuesFromProps(e, {}, this);
62
- for (const a in h) {
63
- const V = h[a];
64
- o[a] !== void 0 && u(V) && V.set(o[a]);
65
- }
66
- }
67
- mount(t) {
68
- if (this.hasBeenMounted)
69
- for (const e in this.initialValues)
70
- this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
71
- this.current = t, N.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (L.current || I(), this.shouldReduceMotion = U.current), process.env.NODE_ENV !== "production" && O(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
72
- }
73
- unmount() {
74
- this.projection && this.projection.unmount(), g(this.notifyUpdate), g(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
75
- for (const t in this.events)
76
- this.events[t].clear();
77
- for (const t in this.features) {
78
- const e = this.features[t];
79
- e && (e.unmount(), e.isMounted = !1);
80
- }
81
- this.current = null;
82
- }
83
- addChild(t) {
84
- this.children.add(t), this.enteringChildren ?? (this.enteringChildren = /* @__PURE__ */ new Set()), this.enteringChildren.add(t);
85
- }
86
- removeChild(t) {
87
- this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
88
- }
89
- bindToMotionValue(t, e) {
90
- if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), e.accelerate && b.has(t) && this.current instanceof HTMLElement) {
91
- const { factory: r, keyframes: d, times: p, ease: o, duration: c } = e.accelerate, f = new S({
92
- element: this.current,
93
- name: t,
94
- keyframes: d,
95
- times: p,
96
- ease: o,
97
- duration: _(c)
98
- }), h = r(f);
99
- this.valueSubscriptions.set(t, () => {
100
- h(), f.cancel();
101
- });
102
- return;
103
- }
104
- const i = j.has(t);
105
- i && this.onBindTransform && this.onBindTransform();
106
- const s = e.on("change", (r) => {
107
- this.latestValues[t] = r, this.props.onUpdate && v.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
108
- });
109
- let n;
110
- typeof window < "u" && window.MotionCheckAppearSync && (n = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
111
- s(), n && n();
112
- });
113
- }
114
- sortNodePosition(t) {
115
- return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
116
- }
117
- updateFeatures() {
118
- let t = "animation";
119
- for (t in l) {
120
- const e = l[t];
121
- if (!e)
122
- continue;
123
- const { isEnabled: i, Feature: s } = e;
124
- if (!this.features[t] && s && i(this.props) && (this.features[t] = new s(this)), this.features[t]) {
125
- const n = this.features[t];
126
- n.isMounted ? n.update() : (n.mount(), n.isMounted = !0);
127
- }
128
- }
129
- }
130
- triggerBuild() {
131
- this.build(this.renderState, this.latestValues, this.props);
132
- }
133
- /**
134
- * Measure the current viewport box with or without transforms.
135
- * Only measures axis-aligned boxes, rotate and skew must be manually
136
- * removed with a re-render to work.
137
- */
138
- measureViewportBox() {
139
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : P();
140
- }
141
- getStaticValue(t) {
142
- return this.latestValues[t];
143
- }
144
- setStaticValue(t, e) {
145
- this.latestValues[t] = e;
146
- }
147
- /**
148
- * Update the provided props. Ensure any newly-added motion values are
149
- * added to our map, old ones removed, and listeners updated.
150
- */
151
- update(t, e) {
152
- (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
153
- for (let i = 0; i < C.length; i++) {
154
- const s = C[i];
155
- this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
156
- const n = "on" + s, r = t[n];
157
- r && (this.propEventSubscriptions[s] = this.on(s, r));
158
- }
159
- this.prevMotionValues = y(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
160
- }
161
- getProps() {
162
- return this.props;
163
- }
164
- /**
165
- * Returns the variant definition with a given name.
166
- */
167
- getVariant(t) {
168
- return this.props.variants ? this.props.variants[t] : void 0;
169
- }
170
- /**
171
- * Returns the defined default transition on this component.
172
- */
173
- getDefaultTransition() {
174
- return this.props.transition;
175
- }
176
- getTransformPagePoint() {
177
- return this.props.transformPagePoint;
178
- }
179
- getClosestVariantNode() {
180
- return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
181
- }
182
- /**
183
- * Add a child visual element to our set of children.
184
- */
185
- addVariantChild(t) {
186
- const e = this.getClosestVariantNode();
187
- if (e)
188
- return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
189
- }
190
- /**
191
- * Add a motion value and bind it to this visual element.
192
- */
193
- addValue(t, e) {
194
- const i = this.values.get(t);
195
- e !== i && (i && this.removeValue(t), this.bindToMotionValue(t, e), this.values.set(t, e), this.latestValues[t] = e.get());
196
- }
197
- /**
198
- * Remove a motion value and unbind any active subscriptions.
199
- */
200
- removeValue(t) {
201
- this.values.delete(t);
202
- const e = this.valueSubscriptions.get(t);
203
- e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
204
- }
205
- /**
206
- * Check whether we have a motion value for this key
207
- */
208
- hasValue(t) {
209
- return this.values.has(t);
210
- }
211
- getValue(t, e) {
212
- if (this.props.values && this.props.values[t])
213
- return this.props.values[t];
214
- let i = this.values.get(t);
215
- return i === void 0 && e !== void 0 && (i = F(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
216
- }
217
- /**
218
- * If we're trying to animate to a previously unencountered value,
219
- * we need to check for it in our state and as a last resort read it
220
- * directly from the instance (which might have performance implications).
221
- */
222
- readValue(t, e) {
223
- let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
224
- return i != null && (typeof i == "string" && (H(i) || K(i)) ? i = parseFloat(i) : !R(i) && A.test(e) && (i = B(t, e)), this.setBaseTarget(t, u(i) ? i.get() : i)), u(i) ? i.get() : i;
225
- }
226
- /**
227
- * Set the base target to later animate back to. This is currently
228
- * only hydrated on creation and when we first read a value.
229
- */
230
- setBaseTarget(t, e) {
231
- this.baseTarget[t] = e;
232
- }
233
- /**
234
- * Find the base target for a value thats been removed from all animation
235
- * props.
236
- */
237
- getBaseTarget(t) {
238
- const { initial: e } = this.props;
239
- let i;
240
- if (typeof e == "string" || typeof e == "object") {
241
- const n = D(this.props, e, this.presenceContext?.custom);
242
- n && (i = n[t]);
243
- }
244
- if (e && i !== void 0)
245
- return i;
246
- const s = this.getBaseTargetFromProps(this.props, t);
247
- return s !== void 0 && !u(s) ? s : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
248
- }
249
- on(t, e) {
250
- return this.events[t] || (this.events[t] = new Y()), this.events[t].add(e);
251
- }
252
- notify(t, ...e) {
253
- this.events[t] && this.events[t].notify(...e);
254
- }
255
- scheduleRenderMicrotask() {
256
- T.render(this.render);
257
- }
258
- }
259
- export {
260
- Vt as VisualElement,
261
- mt as getFeatureDefinitions,
262
- ft as setFeatureDefinitions
263
- };
@@ -1,28 +0,0 @@
1
- import { isMotionValue as r } from "../../value/utils/is-motion-value.js";
2
- import { DOMKeyframesResolver as o } from "../../animation/keyframes/DOMKeyframesResolver.js";
3
- import { VisualElement as s } from "../VisualElement.js";
4
- class a extends s {
5
- constructor() {
6
- super(...arguments), this.KeyframeResolver = o;
7
- }
8
- sortInstanceNodePosition(e, t) {
9
- return e.compareDocumentPosition(t) & 2 ? 1 : -1;
10
- }
11
- getBaseTargetFromProps(e, t) {
12
- const i = e.style;
13
- return i ? i[t] : void 0;
14
- }
15
- removeValueFromRenderState(e, { vars: t, style: i }) {
16
- delete t[e], delete i[e];
17
- }
18
- handleChildMotionValue() {
19
- this.childSubscription && (this.childSubscription(), delete this.childSubscription);
20
- const { children: e } = this.props;
21
- r(e) && (this.childSubscription = e.on("change", (t) => {
22
- this.current && (this.current.textContent = `${t}`);
23
- }));
24
- }
25
- }
26
- export {
27
- a as DOMVisualElement
28
- };
@@ -1,4 +0,0 @@
1
- const s = (t) => t.startsWith("--");
2
- export {
3
- s as isCSSVar
4
- };
@@ -1,65 +0,0 @@
1
- const e = (t) => t * 180 / Math.PI, c = (t) => {
2
- const a = e(Math.atan2(t[1], t[0]));
3
- return l(a);
4
- }, f = {
5
- x: 4,
6
- y: 5,
7
- translateX: 4,
8
- translateY: 5,
9
- scaleX: 0,
10
- scaleY: 3,
11
- scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
12
- rotate: c,
13
- rotateZ: c,
14
- skewX: (t) => e(Math.atan(t[1])),
15
- skewY: (t) => e(Math.atan(t[2])),
16
- skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
17
- }, l = (t) => (t = t % 360, t < 0 && (t += 360), t), h = c, M = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), i = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), x = {
18
- x: 12,
19
- y: 13,
20
- z: 14,
21
- translateX: 12,
22
- translateY: 13,
23
- translateZ: 14,
24
- scaleX: M,
25
- scaleY: i,
26
- scale: (t) => (M(t) + i(t)) / 2,
27
- rotateX: (t) => l(e(Math.atan2(t[6], t[5]))),
28
- rotateY: (t) => l(e(Math.atan2(-t[2], t[0]))),
29
- rotateZ: h,
30
- rotate: h,
31
- skewX: (t) => e(Math.atan(t[4])),
32
- skewY: (t) => e(Math.atan(t[1])),
33
- skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
34
- };
35
- function m(t) {
36
- return t.includes("scale") ? 1 : 0;
37
- }
38
- function b(t, a) {
39
- if (!t || t === "none")
40
- return m(a);
41
- const s = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
42
- let n, r;
43
- if (s)
44
- n = x, r = s;
45
- else {
46
- const d = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
47
- n = f, r = d;
48
- }
49
- if (!r)
50
- return m(a);
51
- const o = n[a], u = r[1].split(",").map(p);
52
- return typeof o == "function" ? o(u) : u[o];
53
- }
54
- const X = (t, a) => {
55
- const { transform: s = "none" } = getComputedStyle(t);
56
- return b(s, a);
57
- };
58
- function p(t) {
59
- return parseFloat(t.trim());
60
- }
61
- export {
62
- m as defaultTransformValue,
63
- b as parseValueFromTransform,
64
- X as readTransformValue
65
- };
@@ -1,7 +0,0 @@
1
- import { isCSSVar as s } from "./is-css-var.js";
2
- function i(r, t, o) {
3
- s(t) ? r.style.setProperty(t, o) : r.style[t] = o;
4
- }
5
- export {
6
- i as setStyle
7
- };
@@ -1,6 +0,0 @@
1
- function r(e) {
2
- return e.replace(/([A-Z])/g, (o) => `-${o.toLowerCase()}`);
3
- }
4
- export {
5
- r as camelToDash
6
- };
@@ -1,37 +0,0 @@
1
- import { isCSSVariableName as s } from "../../animation/utils/is-css-variable.js";
2
- import { transformProps as n } from "../utils/keys-transform.js";
3
- import { defaultTransformValue as a, readTransformValue as i } from "../dom/parse-transform.js";
4
- import { measureViewportBox as u } from "../../projection/utils/measure.js";
5
- import { DOMVisualElement as p } from "../dom/DOMVisualElement.js";
6
- import { buildHTMLStyles as l } from "./utils/build-styles.js";
7
- import { renderHTML as f } from "./utils/render.js";
8
- import { scrapeMotionValuesFromProps as c } from "./utils/scrape-motion-values.js";
9
- function d(m) {
10
- return window.getComputedStyle(m);
11
- }
12
- class x extends p {
13
- constructor() {
14
- super(...arguments), this.type = "html", this.renderInstance = f;
15
- }
16
- readValueFromInstance(e, r) {
17
- if (n.has(r))
18
- return this.projection?.isProjecting ? a(r) : i(e, r);
19
- {
20
- const t = d(e), o = (s(r) ? t.getPropertyValue(r) : t[r]) || 0;
21
- return typeof o == "string" ? o.trim() : o;
22
- }
23
- }
24
- measureInstanceViewportBox(e, { transformPagePoint: r }) {
25
- return u(e, r);
26
- }
27
- build(e, r, t) {
28
- l(e, r, t.transformTemplate);
29
- }
30
- scrapeMotionValuesFromProps(e, r, t) {
31
- return c(e, r, t);
32
- }
33
- }
34
- export {
35
- x as HTMLVisualElement,
36
- d as getComputedStyle
37
- };
@@ -1,29 +0,0 @@
1
- import { getValueAsType as p } from "../../../value/types/utils/get-as-type.js";
2
- import { numberValueTypes as u } from "../../../value/types/maps/number.js";
3
- import { transformProps as c } from "../../utils/keys-transform.js";
4
- import { isCSSVariableName as g } from "../../../animation/utils/is-css-variable.js";
5
- import { buildTransform as y } from "./build-transform.js";
6
- function S(f, i, e) {
7
- const { style: o, vars: l, transformOrigin: t } = f;
8
- let m = !1, a = !1;
9
- for (const r in i) {
10
- const n = i[r];
11
- if (c.has(r)) {
12
- m = !0;
13
- continue;
14
- } else if (g(r)) {
15
- l[r] = n;
16
- continue;
17
- } else {
18
- const s = p(n, u[r]);
19
- r.startsWith("origin") ? (a = !0, t[r] = s) : o[r] = s;
20
- }
21
- }
22
- if (i.transform || (m || e ? o.transform = y(i, f.transform, e) : o.transform && (o.transform = "none")), a) {
23
- const { originX: r = "50%", originY: n = "50%", originZ: s = 0 } = t;
24
- o.transformOrigin = `${r} ${n} ${s}`;
25
- }
26
- }
27
- export {
28
- S as buildHTMLStyles
29
- };