@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,38 +0,0 @@
1
- import { getValueAsType as c } from "../../../value/types/utils/get-as-type.js";
2
- import { numberValueTypes as p } from "../../../value/types/maps/number.js";
3
- import { transformPropOrder as m } from "../../utils/keys-transform.js";
4
- const y = {
5
- x: "translateX",
6
- y: "translateY",
7
- z: "translateZ",
8
- transformPerspective: "perspective"
9
- }, d = m.length;
10
- function A(f, l, n) {
11
- let t = "", o = !0;
12
- for (let i = 0; i < d; i++) {
13
- const e = m[i], r = f[e];
14
- if (r === void 0)
15
- continue;
16
- let a = !0;
17
- if (typeof r == "number")
18
- a = r === (e.startsWith("scale") ? 1 : 0);
19
- else {
20
- const s = parseFloat(r);
21
- a = e.startsWith("scale") ? s === 1 : s === 0;
22
- }
23
- if (!a || n) {
24
- const s = c(r, p[e]);
25
- if (!a) {
26
- o = !1;
27
- const h = y[e] || e;
28
- t += `${h}(${s}) `;
29
- }
30
- n && (l[e] = s);
31
- }
32
- }
33
- const u = f.pathRotation;
34
- return u && (o = !1, t += `rotate(${c(u, p.pathRotation)}) `), t = t.trim(), n ? t = n(l, o ? "" : t) : o && (t = "none"), t;
35
- }
36
- export {
37
- A as buildTransform
38
- };
@@ -1,12 +0,0 @@
1
- function i(r, { style: n, vars: o }, l, y) {
2
- const t = r.style;
3
- let e;
4
- for (e in n)
5
- t[e] = n[e];
6
- y?.applyProjectionStyles(t, l);
7
- for (e in o)
8
- t.setProperty(e, o[e]);
9
- }
10
- export {
11
- i as renderHTML
12
- };
@@ -1,13 +0,0 @@
1
- import { isMotionValue as i } from "../../../value/utils/is-motion-value.js";
2
- import { isForcedMotionValue as u } from "../../utils/is-forced-motion-value.js";
3
- function a(n, s, l) {
4
- const o = n.style, r = s?.style, t = {};
5
- if (!o)
6
- return t;
7
- for (const e in o)
8
- (i(o[e]) || r && i(r[e]) || u(e, n) || l?.getValue(e)?.liveStyle !== void 0) && (t[e] = o[e]);
9
- return t;
10
- }
11
- export {
12
- a as scrapeMotionValuesFromProps
13
- };
@@ -1,4 +0,0 @@
1
- const e = /* @__PURE__ */ new WeakMap();
2
- export {
3
- e as visualElementStore
4
- };
@@ -1,40 +0,0 @@
1
- import { transformProps as s } from "../utils/keys-transform.js";
2
- import { getDefaultValueType as a } from "../../value/types/maps/defaults.js";
3
- import { createBox as m } from "../../projection/geometry/models.js";
4
- import { DOMVisualElement as i } from "../dom/DOMVisualElement.js";
5
- import { camelToDash as u } from "../dom/utils/camel-to-dash.js";
6
- import { buildSVGAttrs as n } from "./utils/build-attrs.js";
7
- import { camelCaseAttributes as p } from "./utils/camel-case-attrs.js";
8
- import { isSVGTag as l } from "./utils/is-svg-tag.js";
9
- import { renderSVG as f } from "./utils/render.js";
10
- import { scrapeMotionValuesFromProps as V } from "./utils/scrape-motion-values.js";
11
- class A extends i {
12
- constructor() {
13
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = m;
14
- }
15
- getBaseTargetFromProps(t, r) {
16
- return t[r];
17
- }
18
- readValueFromInstance(t, r) {
19
- if (s.has(r)) {
20
- const e = a(r);
21
- return e && e.default || 0;
22
- }
23
- return r = p.has(r) ? r : u(r), t.getAttribute(r);
24
- }
25
- scrapeMotionValuesFromProps(t, r, e) {
26
- return V(t, r, e);
27
- }
28
- build(t, r, e) {
29
- n(t, r, this.isSVGTag, e.transformTemplate, e.style);
30
- }
31
- renderInstance(t, r, e, o) {
32
- f(t, r, e, o);
33
- }
34
- mount(t) {
35
- this.isSVGTag = l(t.tagName), super.mount(t);
36
- }
37
- }
38
- export {
39
- A as SVGVisualElement
40
- };
@@ -1,32 +0,0 @@
1
- import { buildHTMLStyles as y } from "../../html/utils/build-styles.js";
2
- import { buildSVGPath as c } from "./path.js";
3
- const B = [
4
- "offsetDistance",
5
- "offsetPath",
6
- "offsetRotate",
7
- "offsetAnchor"
8
- ];
9
- function P(r, {
10
- attrX: e,
11
- attrY: n,
12
- attrScale: s,
13
- pathLength: t,
14
- pathSpacing: d = 1,
15
- pathOffset: m = 0,
16
- // This is object creation, which we try to avoid per-frame.
17
- ...l
18
- }, a, u, x) {
19
- if (y(r, l, u), a) {
20
- r.style.viewBox && (r.attrs.viewBox = r.style.viewBox);
21
- return;
22
- }
23
- r.attrs = r.style, r.style = {};
24
- const { attrs: f, style: o } = r;
25
- f.transform && (o.transform = f.transform, delete f.transform), (o.transform || f.transformOrigin) && (o.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), o.transform && (o.transformBox = x?.transformBox ?? "fill-box", delete f.transformBox);
26
- for (const i of B)
27
- f[i] !== void 0 && (o[i] = f[i], delete f[i]);
28
- e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), t !== void 0 && c(f, t, d, m, !1);
29
- }
30
- export {
31
- P as buildSVGAttrs
32
- };
@@ -1,28 +0,0 @@
1
- const e = /* @__PURE__ */ new Set([
2
- "baseFrequency",
3
- "diffuseConstant",
4
- "kernelMatrix",
5
- "kernelUnitLength",
6
- "keySplines",
7
- "keyTimes",
8
- "limitingConeAngle",
9
- "markerHeight",
10
- "markerWidth",
11
- "numOctaves",
12
- "targetX",
13
- "targetY",
14
- "surfaceScale",
15
- "specularConstant",
16
- "specularExponent",
17
- "stdDeviation",
18
- "tableValues",
19
- "viewBox",
20
- "gradientTransform",
21
- "pathLength",
22
- "startOffset",
23
- "textLength",
24
- "lengthAdjust"
25
- ]);
26
- export {
27
- e as camelCaseAttributes
28
- };
@@ -1,4 +0,0 @@
1
- const s = (o) => typeof o == "string" && o.toLowerCase() === "svg";
2
- export {
3
- s as isSVGTag
4
- };
@@ -1,15 +0,0 @@
1
- const f = {
2
- offset: "stroke-dashoffset",
3
- array: "stroke-dasharray"
4
- }, h = {
5
- offset: "strokeDashoffset",
6
- array: "strokeDasharray"
7
- };
8
- function y(s, e, o = 1, r = 0, t = !0) {
9
- s.pathLength = 1;
10
- const a = t ? f : h;
11
- s[a.offset] = `${-r}`, s[a.array] = `${e} ${o}`;
12
- }
13
- export {
14
- y as buildSVGPath
15
- };
@@ -1,11 +0,0 @@
1
- import { camelToDash as i } from "../../dom/utils/camel-to-dash.js";
2
- import { renderHTML as m } from "../../html/utils/render.js";
3
- import { camelCaseAttributes as e } from "./camel-case-attrs.js";
4
- function c(o, t, f, s) {
5
- m(o, t, void 0, s);
6
- for (const r in t.attrs)
7
- o.setAttribute(e.has(r) ? r : i(r), t.attrs[r]);
8
- }
9
- export {
10
- c as renderSVG
11
- };
@@ -1,15 +0,0 @@
1
- import { isMotionValue as n } from "../../../value/utils/is-motion-value.js";
2
- import { transformPropOrder as i } from "../../utils/keys-transform.js";
3
- import { scrapeMotionValuesFromProps as m } from "../../html/utils/scrape-motion-values.js";
4
- function l(r, t, s) {
5
- const e = m(r, t, s);
6
- for (const o in r)
7
- if (n(r[o]) || n(t[o])) {
8
- const a = i.indexOf(o) !== -1 ? "attr" + o.charAt(0).toUpperCase() + o.substring(1) : o;
9
- e[a] = r[o];
10
- }
11
- return e;
12
- }
13
- export {
14
- l as scrapeMotionValuesFromProps
15
- };
@@ -1,143 +0,0 @@
1
- import { animateVisualElement as N } from "../../animation/interfaces/visual-element.js";
2
- import { calcChildStagger as Q } from "../../animation/utils/calc-child-stagger.js";
3
- import { getVariantContext as U } from "./get-variant-context.js";
4
- import { isAnimationControls as W } from "./is-animation-controls.js";
5
- import { isKeyframesTarget as k } from "./is-keyframes-target.js";
6
- import { isVariantLabel as X } from "./is-variant-label.js";
7
- import { resolveVariant as K } from "./resolve-dynamic-variants.js";
8
- import { shallowCompare as H } from "./shallow-compare.js";
9
- import { variantPriorityOrder as L } from "./variant-props.js";
10
- const Y = [...L].reverse(), Z = L.length;
11
- function _(e) {
12
- return (f) => Promise.all(f.map(({ animation: c, options: p }) => N(e, c, p)));
13
- }
14
- function fe(e) {
15
- let f = _(e), c = B(), p = !0, V = !1;
16
- const z = (s) => (n, y) => {
17
- const l = K(e, y, s === "exit" ? e.presenceContext?.custom : void 0);
18
- if (l) {
19
- const { transition: m, transitionEnd: d, ...C } = l;
20
- n = { ...n, ...C, ...d };
21
- }
22
- return n;
23
- };
24
- function j(s) {
25
- f = s(e);
26
- }
27
- function b(s) {
28
- const { props: n } = e, y = U(e.parent) || {}, l = [], m = /* @__PURE__ */ new Set();
29
- let d = {}, C = 1 / 0;
30
- for (let u = 0; u < Z; u++) {
31
- const t = Y[u], i = c[t], o = n[t] !== void 0 ? n[t] : y[t], S = X(o), w = t === s ? i.isActive : null;
32
- w === !1 && (C = u);
33
- let P = o === y[t] && o !== n[t] && S;
34
- if (P && (p || V) && e.manuallyAnimateOnMount && (P = !1), i.protectedKeys = { ...d }, // If it isn't active and hasn't *just* been set as inactive
35
- !i.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
36
- !o && !i.prevProp || // Or if the prop doesn't define an animation
37
- W(o) || typeof o == "boolean")
38
- continue;
39
- if (t === "exit" && i.isActive && w !== !0) {
40
- i.prevResolvedValues && (d = {
41
- ...d,
42
- ...i.prevResolvedValues
43
- });
44
- continue;
45
- }
46
- const R = $(i.prevProp, o);
47
- let T = R || // If we're making this variant active, we want to always make it active
48
- t === s && i.isActive && !P && S || // If we removed a higher-priority variant (i is in reverse order)
49
- u > C && S, x = !1;
50
- const O = Array.isArray(o) ? o : [o];
51
- let v = O.reduce(z(t), {});
52
- w === !1 && (v = {});
53
- const { prevResolvedValues: D = {} } = i, G = {
54
- ...D,
55
- ...v
56
- }, F = (r) => {
57
- T = !0, m.has(r) && (x = !0, m.delete(r)), i.needsAnimating[r] = !0;
58
- const a = e.getValue(r);
59
- a && (a.liveStyle = !1);
60
- };
61
- for (const r in G) {
62
- const a = v[r], A = D[r];
63
- if (d.hasOwnProperty(r))
64
- continue;
65
- let g = !1;
66
- k(a) && k(A) ? g = !H(a, A) || R : g = a !== A, g ? a != null ? F(r) : m.add(r) : a !== void 0 && m.has(r) ? F(r) : i.protectedKeys[r] = !0;
67
- }
68
- i.prevProp = o, i.prevResolvedValues = v, i.isActive && (d = { ...d, ...v }), (p || V) && e.blockInitialAnimation && (T = !1);
69
- const M = P && R;
70
- T && (!M || x) && l.push(...O.map((r) => {
71
- const a = { type: t };
72
- if (typeof r == "string" && (p || V) && !M && e.manuallyAnimateOnMount && e.parent) {
73
- const { parent: A } = e, g = K(A, r);
74
- if (A.enteringChildren && g) {
75
- const { delayChildren: J } = g.transition || {};
76
- a.delay = Q(A.enteringChildren, e, J);
77
- }
78
- }
79
- return {
80
- animation: r,
81
- options: a
82
- };
83
- }));
84
- }
85
- if (m.size) {
86
- const u = {};
87
- if (typeof n.initial != "boolean") {
88
- const t = K(e, Array.isArray(n.initial) ? n.initial[0] : n.initial);
89
- t && t.transition && (u.transition = t.transition);
90
- }
91
- m.forEach((t) => {
92
- const i = e.getBaseTarget(t), o = e.getValue(t);
93
- o && (o.liveStyle = !0), u[t] = i ?? null;
94
- }), l.push({ animation: u });
95
- }
96
- let I = !!l.length;
97
- return p && (n.initial === !1 || n.initial === n.animate) && !e.manuallyAnimateOnMount && (I = !1), p = !1, V = !1, I ? f(l) : Promise.resolve();
98
- }
99
- function q(s, n) {
100
- if (c[s].isActive === n)
101
- return Promise.resolve();
102
- e.variantChildren?.forEach((l) => l.animationState?.setActive(s, n)), c[s].isActive = n;
103
- const y = b(s);
104
- for (const l in c)
105
- c[l].protectedKeys = {};
106
- return y;
107
- }
108
- return {
109
- animateChanges: b,
110
- setActive: q,
111
- setAnimateFunction: j,
112
- getState: () => c,
113
- reset: () => {
114
- c = B(), V = !0;
115
- }
116
- };
117
- }
118
- function $(e, f) {
119
- return typeof f == "string" ? f !== e : Array.isArray(f) ? !H(f, e) : !1;
120
- }
121
- function h(e = !1) {
122
- return {
123
- isActive: e,
124
- protectedKeys: {},
125
- needsAnimating: {},
126
- prevResolvedValues: {}
127
- };
128
- }
129
- function B() {
130
- return {
131
- animate: h(!0),
132
- whileInView: h(),
133
- whileHover: h(),
134
- whileTap: h(),
135
- whileDrag: h(),
136
- whileFocus: h(),
137
- exit: h()
138
- };
139
- }
140
- export {
141
- $ as checkVariantsDidChange,
142
- fe as createAnimationState
143
- };
@@ -1,20 +0,0 @@
1
- import { isVariantLabel as a } from "./is-variant-label.js";
2
- import { variantProps as p } from "./variant-props.js";
3
- const f = p.length;
4
- function c(n) {
5
- if (!n)
6
- return;
7
- if (!n.isControllingVariants) {
8
- const r = n.parent ? c(n.parent) || {} : {};
9
- return n.props.initial !== void 0 && (r.initial = n.props.initial), r;
10
- }
11
- const o = {};
12
- for (let r = 0; r < f; r++) {
13
- const i = p[r], t = n.props[i];
14
- (a(t) || t === !1) && (o[i] = t);
15
- }
16
- return o;
17
- }
18
- export {
19
- c as getVariantContext
20
- };
@@ -1,6 +0,0 @@
1
- function n(t) {
2
- return t !== null && typeof t == "object" && typeof t.start == "function";
3
- }
4
- export {
5
- n as isAnimationControls
6
- };
@@ -1,13 +0,0 @@
1
- import { isAnimationControls as o } from "./is-animation-controls.js";
2
- import { isVariantLabel as r } from "./is-variant-label.js";
3
- import { variantProps as t } from "./variant-props.js";
4
- function a(i) {
5
- return o(i.animate) || t.some((n) => r(i[n]));
6
- }
7
- function f(i) {
8
- return !!(a(i) || i.variants);
9
- }
10
- export {
11
- a as isControllingVariants,
12
- f as isVariantNode
13
- };
@@ -1,9 +0,0 @@
1
- import { transformProps as i } from "./keys-transform.js";
2
- import { scaleCorrectors as n } from "../../projection/styles/scale-correction.js";
3
- function c(r, { layout: o, layoutId: t }) {
4
- return i.has(r) || r.startsWith("origin") || (o || t !== void 0) && (!!n[r] || r === "opacity");
5
- }
6
- export {
7
- c as isForcedMotionValue,
8
- n as scaleCorrectors
9
- };
@@ -1,4 +0,0 @@
1
- const e = (r) => Array.isArray(r);
2
- export {
3
- e as isKeyframesTarget
4
- };
@@ -1,6 +0,0 @@
1
- function t(r) {
2
- return typeof r == "string" || Array.isArray(r);
3
- }
4
- export {
5
- t as isVariantLabel
6
- };
@@ -1,13 +0,0 @@
1
- import { transformPropOrder as t } from "./keys-transform.js";
2
- const r = /* @__PURE__ */ new Set([
3
- "width",
4
- "height",
5
- "top",
6
- "left",
7
- "right",
8
- "bottom",
9
- ...t
10
- ]);
11
- export {
12
- r as positionalKeys
13
- };
@@ -1,23 +0,0 @@
1
- const t = [
2
- "transformPerspective",
3
- "x",
4
- "y",
5
- "z",
6
- "translateX",
7
- "translateY",
8
- "translateZ",
9
- "scale",
10
- "scaleX",
11
- "scaleY",
12
- "rotate",
13
- "rotateX",
14
- "rotateY",
15
- "rotateZ",
16
- "skew",
17
- "skewX",
18
- "skewY"
19
- ], e = /* @__PURE__ */ new Set([...t, "pathRotation"]);
20
- export {
21
- t as transformPropOrder,
22
- e as transformProps
23
- };
@@ -1,25 +0,0 @@
1
- import { motionValue as r } from "../../value/index.js";
2
- import { isMotionValue as f } from "../../value/utils/is-motion-value.js";
3
- function d(a, e, s) {
4
- for (const o in e) {
5
- const i = e[o], t = s[o];
6
- if (f(i))
7
- a.addValue(o, i);
8
- else if (f(t))
9
- a.addValue(o, r(i, { owner: a }));
10
- else if (t !== i)
11
- if (a.hasValue(o)) {
12
- const u = a.getValue(o);
13
- u.liveStyle === !0 ? u.jump(i) : u.hasAnimated || u.set(i);
14
- } else {
15
- const u = a.getStaticValue(o);
16
- a.addValue(o, r(u !== void 0 ? u : i, { owner: a }));
17
- }
18
- }
19
- for (const o in s)
20
- e[o] === void 0 && a.removeValue(o);
21
- return e;
22
- }
23
- export {
24
- d as updateMotionValuesFromProps
25
- };
@@ -1,15 +0,0 @@
1
- import { hasReducedMotionListener as t, prefersReducedMotion as r } from "./state.js";
2
- const o = typeof window < "u";
3
- function d() {
4
- if (t.current = !0, !!o)
5
- if (window.matchMedia) {
6
- const e = window.matchMedia("(prefers-reduced-motion)"), n = () => r.current = e.matches;
7
- e.addEventListener("change", n), n();
8
- } else
9
- r.current = !1;
10
- }
11
- export {
12
- t as hasReducedMotionListener,
13
- d as initPrefersReducedMotion,
14
- r as prefersReducedMotion
15
- };
@@ -1,5 +0,0 @@
1
- const e = { current: null }, n = { current: !1 };
2
- export {
3
- n as hasReducedMotionListener,
4
- e as prefersReducedMotion
5
- };
@@ -1,8 +0,0 @@
1
- import { resolveVariantFromProps as t } from "./resolve-variants.js";
2
- function s(r, n, o) {
3
- const e = r.getProps();
4
- return t(e, n, o !== void 0 ? o : e.custom, r);
5
- }
6
- export {
7
- s as resolveVariant
8
- };
@@ -1,20 +0,0 @@
1
- function o(c) {
2
- const t = [{}, {}];
3
- return c?.values.forEach((r, e) => {
4
- t[0][e] = r.get(), t[1][e] = r.getVelocity();
5
- }), t;
6
- }
7
- function s(c, t, r, e) {
8
- if (typeof t == "function") {
9
- const [a, u] = o(e);
10
- t = t(r !== void 0 ? r : c.custom, a, u);
11
- }
12
- if (typeof t == "string" && (t = c.variants && c.variants[t]), typeof t == "function") {
13
- const [a, u] = o(e);
14
- t = t(r !== void 0 ? r : c.custom, a, u);
15
- }
16
- return t;
17
- }
18
- export {
19
- s as resolveVariantFromProps
20
- };
@@ -1,21 +0,0 @@
1
- import { motionValue as s } from "../../value/index.js";
2
- import { resolveVariant as f } from "./resolve-dynamic-variants.js";
3
- import { isKeyframesTarget as l } from "./is-keyframes-target.js";
4
- function u(t, o, e) {
5
- t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o, s(e));
6
- }
7
- function V(t) {
8
- return l(t) ? t[t.length - 1] || 0 : t;
9
- }
10
- function p(t, o) {
11
- const e = f(t, o);
12
- let { transitionEnd: a = {}, transition: c = {}, ...r } = e || {};
13
- r = { ...r, ...a };
14
- for (const n in r) {
15
- const i = V(r[n]);
16
- u(t, n, i);
17
- }
18
- }
19
- export {
20
- p as setTarget
21
- };
@@ -1,14 +0,0 @@
1
- function f(t, e) {
2
- if (!Array.isArray(e))
3
- return !1;
4
- const n = e.length;
5
- if (n !== t.length)
6
- return !1;
7
- for (let r = 0; r < n; r++)
8
- if (e[r] !== t[r])
9
- return !1;
10
- return !0;
11
- }
12
- export {
13
- f as shallowCompare
14
- };
@@ -1,13 +0,0 @@
1
- const i = [
2
- "animate",
3
- "whileInView",
4
- "whileFocus",
5
- "whileHover",
6
- "whileTap",
7
- "whileDrag",
8
- "exit"
9
- ], e = ["initial", ...i];
10
- export {
11
- i as variantPriorityOrder,
12
- e as variantProps
13
- };
@@ -1,39 +0,0 @@
1
- import { isSVGElement as c } from "../utils/is-svg-element.js";
2
- import { resolveElements as l } from "../utils/resolve-elements.js";
3
- const r = /* @__PURE__ */ new WeakMap();
4
- let o;
5
- const f = (n, i, s) => (e, t) => t && t[0] ? t[0][n + "Size"] : c(e) && "getBBox" in e ? e.getBBox()[i] : e[s], h = /* @__PURE__ */ f("inline", "width", "offsetWidth"), u = /* @__PURE__ */ f("block", "height", "offsetHeight");
6
- function g({ target: n, borderBoxSize: i }) {
7
- r.get(n)?.forEach((s) => {
8
- s(n, {
9
- get width() {
10
- return h(n, i);
11
- },
12
- get height() {
13
- return u(n, i);
14
- }
15
- });
16
- });
17
- }
18
- function d(n) {
19
- n.forEach(g);
20
- }
21
- function m() {
22
- typeof ResizeObserver > "u" || (o = new ResizeObserver(d));
23
- }
24
- function a(n, i) {
25
- o || m();
26
- const s = l(n);
27
- return s.forEach((e) => {
28
- let t = r.get(e);
29
- t || (t = /* @__PURE__ */ new Set(), r.set(e, t)), t.add(i), o?.observe(e);
30
- }), () => {
31
- s.forEach((e) => {
32
- const t = r.get(e);
33
- t?.delete(i), t?.size || o?.unobserve(e);
34
- });
35
- };
36
- }
37
- export {
38
- a as resizeElement
39
- };