@code0-tech/pictor 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/dist/_virtual/rolldown_runtime.js +9 -0
  2. package/dist/assets/Alert.style.css +1 -0
  3. package/dist/assets/Aurora.style.css +1 -0
  4. package/dist/assets/Avatar.style.css +1 -0
  5. package/dist/assets/Badge.style.css +1 -0
  6. package/dist/assets/Breadcrumb.style.css +1 -0
  7. package/dist/assets/Button.style.css +1 -0
  8. package/dist/assets/ButtonGroup.style.css +1 -0
  9. package/dist/assets/Card.style.css +1 -0
  10. package/dist/assets/Chart.style.css +1 -0
  11. package/dist/assets/Col.style.css +1 -0
  12. package/dist/assets/ColorInput.style.css +1 -0
  13. package/dist/assets/Command.style.css +1 -0
  14. package/dist/assets/Container.style.css +1 -0
  15. package/dist/assets/ContextMenu.style.css +1 -0
  16. package/dist/assets/DataTable.style.css +1 -0
  17. package/dist/assets/DateInput.style.css +1 -0
  18. package/dist/assets/Dialog.style.css +1 -0
  19. package/dist/assets/Editor.styles.css +1 -0
  20. package/dist/assets/EditorInput.style.css +1 -0
  21. package/dist/assets/FileInput.style.css +1 -0
  22. package/dist/assets/FileTabs.style.css +1 -0
  23. package/dist/assets/FullScreen.style.css +1 -0
  24. package/dist/assets/Gantt.style.css +1 -0
  25. package/dist/assets/Icon.style.css +1 -0
  26. package/dist/assets/Input.style.css +1 -0
  27. package/dist/assets/InputWrapper.style.css +1 -0
  28. package/dist/assets/JsonView.style.css +1 -0
  29. package/dist/assets/Layout.style.css +1 -0
  30. package/dist/assets/Menu.style.css +1 -0
  31. package/dist/assets/Progress.style.css +1 -0
  32. package/dist/assets/Quote.style.css +1 -0
  33. package/dist/assets/Resizable.style.css +1 -0
  34. package/dist/assets/Row.style.css +1 -0
  35. package/dist/assets/ScrollArea.style.css +1 -0
  36. package/dist/assets/SegmentedControl.style.css +1 -0
  37. package/dist/assets/SelectInput.style.css +1 -0
  38. package/dist/assets/Tab.style.css +1 -0
  39. package/dist/assets/Text.style.css +1 -0
  40. package/dist/assets/Toast.style.css +1 -0
  41. package/dist/assets/Tooltip.style.css +1 -0
  42. package/dist/components/alert/Alert.js +33 -41
  43. package/dist/components/aurora/Aurora.js +26 -22
  44. package/dist/components/avatar/Avatar.js +57 -55
  45. package/dist/components/badge/Badge.js +57 -64
  46. package/dist/components/breadcrumb/Breadcrumb.js +16 -21
  47. package/dist/components/button/Button.js +23 -31
  48. package/dist/components/button-group/ButtonGroup.js +28 -31
  49. package/dist/components/card/Card.js +28 -43
  50. package/dist/components/card/CardSection.js +21 -29
  51. package/dist/components/chart/Chart.js +138 -153
  52. package/dist/components/chart/LineChart.js +74 -74
  53. package/dist/components/chart/index.js +3 -8
  54. package/dist/components/col/Col.js +18 -29
  55. package/dist/components/command/Command.js +100 -134
  56. package/dist/components/container/Container.js +18 -23
  57. package/dist/components/context-menu/ContextMenu.js +118 -112
  58. package/dist/components/data-table/DataTable.js +53 -64
  59. package/dist/components/data-table/DataTableColumn.js +17 -22
  60. package/dist/components/data-table/DataTableFilterInput.js +208 -205
  61. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
  62. package/dist/components/data-table/DataTableHeader.js +33 -38
  63. package/dist/components/data-table/DataTablePagination.js +61 -74
  64. package/dist/components/data-table/index.js +7 -22
  65. package/dist/components/dialog/Dialog.js +106 -97
  66. package/dist/components/editor/Editor.js +352 -323
  67. package/dist/components/file-tabs/FileTabs.js +77 -73
  68. package/dist/components/file-tabs/FileTabs.service.js +85 -87
  69. package/dist/components/file-tabs/FileTabs.view.js +0 -1
  70. package/dist/components/file-tabs/index.js +3 -9
  71. package/dist/components/flex/Flex.js +18 -23
  72. package/dist/components/form/CheckboxInput.js +72 -76
  73. package/dist/components/form/ColorInput.js +378 -353
  74. package/dist/components/form/DateInput.js +315 -265
  75. package/dist/components/form/EditorInput.js +597 -579
  76. package/dist/components/form/EmailInput.js +30 -23
  77. package/dist/components/form/FileInput.js +92 -123
  78. package/dist/components/form/Input.js +64 -58
  79. package/dist/components/form/Input.utils.js +25 -37
  80. package/dist/components/form/InputDescription.js +10 -11
  81. package/dist/components/form/InputLabel.js +17 -22
  82. package/dist/components/form/InputMessage.js +16 -17
  83. package/dist/components/form/InputWrapper.js +55 -65
  84. package/dist/components/form/NumberInput.js +41 -20
  85. package/dist/components/form/PasswordInput.js +71 -54
  86. package/dist/components/form/PinInput.js +49 -65
  87. package/dist/components/form/RadioGroup.js +41 -50
  88. package/dist/components/form/RadioInput.js +30 -29
  89. package/dist/components/form/SelectInput.js +68 -92
  90. package/dist/components/form/SwitchInput.js +17 -18
  91. package/dist/components/form/TagInput.js +108 -122
  92. package/dist/components/form/TextAreaInput.js +24 -21
  93. package/dist/components/form/TextInput.js +30 -22
  94. package/dist/components/form/index.js +22 -87
  95. package/dist/components/form/useForm.js +87 -88
  96. package/dist/components/fullscreen/FullScreen.js +27 -27
  97. package/dist/components/gantt/Gantt.js +99 -98
  98. package/dist/components/gantt/GanttGroup.js +210 -195
  99. package/dist/components/gantt/GanttHeader.js +78 -81
  100. package/dist/components/gantt/GanttItem.js +18 -22
  101. package/dist/components/icon/Icon.d.ts +6 -4
  102. package/dist/components/icon/Icon.js +53 -42
  103. package/dist/components/icon/codezero/codezero.js +10 -0
  104. package/dist/components/icon/codezero/gls.js +9 -0
  105. package/dist/components/icon/codezero/index.js +17 -13
  106. package/dist/components/json-view/JsonView.js +119 -109
  107. package/dist/components/layout/Layout.js +100 -78
  108. package/dist/components/menu/Menu.js +134 -128
  109. package/dist/components/progress/ProgressCircle.js +60 -49
  110. package/dist/components/progress/ProgressLinear.js +39 -43
  111. package/dist/components/quote/Quote.js +51 -43
  112. package/dist/components/resizable/Resizable.js +35 -33
  113. package/dist/components/row/Row.js +18 -23
  114. package/dist/components/scroll-area/ScrollArea.js +65 -76
  115. package/dist/components/segmented-control/SegmentedControl.js +46 -50
  116. package/dist/components/spacing/Spacing.js +15 -23
  117. package/dist/components/tab/Tab.js +73 -66
  118. package/dist/components/text/Text.js +18 -25
  119. package/dist/components/toast/Toast.js +104 -82
  120. package/dist/components/tooltip/Tooltip.js +65 -55
  121. package/dist/index.js +76 -272
  122. package/dist/node_modules/@lezer/common/dist/index.js +778 -143
  123. package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
  124. package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
  125. package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
  126. package/dist/node_modules/prettier/standalone.js +3444 -2415
  127. package/dist/utils/arrayService.js +0 -1
  128. package/dist/utils/color.js +46 -41
  129. package/dist/utils/component.js +60 -129
  130. package/dist/utils/contextStore.js +47 -58
  131. package/dist/utils/index.js +7 -29
  132. package/dist/utils/motion.js +84 -113
  133. package/dist/utils/reactiveArrayService.js +80 -76
  134. package/dist/utils/size.js +14 -26
  135. package/dist/utils/utils.js +0 -1
  136. package/dist/utils/view.js +27 -24
  137. package/dist/vite-env.d.js +0 -1
  138. package/package.json +28 -23
  139. package/dist/_virtual/compiler-runtime.js +0 -5
  140. package/dist/_virtual/compiler-runtime2.js +0 -4
  141. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  142. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  143. package/dist/assets/components/alert/Alert.style.css +0 -1
  144. package/dist/assets/components/aurora/Aurora.style.css +0 -1
  145. package/dist/assets/components/avatar/Avatar.style.css +0 -1
  146. package/dist/assets/components/badge/Badge.style.css +0 -1
  147. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
  148. package/dist/assets/components/button/Button.style.css +0 -1
  149. package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
  150. package/dist/assets/components/card/Card.style.css +0 -1
  151. package/dist/assets/components/chart/Chart.style.css +0 -1
  152. package/dist/assets/components/col/Col.style.css +0 -1
  153. package/dist/assets/components/command/Command.style.css +0 -1
  154. package/dist/assets/components/container/Container.style.css +0 -1
  155. package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
  156. package/dist/assets/components/data-table/DataTable.style.css +0 -1
  157. package/dist/assets/components/dialog/Dialog.style.css +0 -1
  158. package/dist/assets/components/editor/Editor.styles.css +0 -1
  159. package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
  160. package/dist/assets/components/form/ColorInput.style.css +0 -1
  161. package/dist/assets/components/form/DateInput.style.css +0 -1
  162. package/dist/assets/components/form/EditorInput.style.css +0 -1
  163. package/dist/assets/components/form/FileInput.style.css +0 -1
  164. package/dist/assets/components/form/Input.style.css +0 -1
  165. package/dist/assets/components/form/InputWrapper.style.css +0 -1
  166. package/dist/assets/components/form/SelectInput.style.css +0 -1
  167. package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
  168. package/dist/assets/components/gantt/Gantt.style.css +0 -1
  169. package/dist/assets/components/icon/Icon.style.css +0 -1
  170. package/dist/assets/components/json-view/JsonView.style.css +0 -1
  171. package/dist/assets/components/layout/Layout.style.css +0 -1
  172. package/dist/assets/components/menu/Menu.style.css +0 -1
  173. package/dist/assets/components/progress/Progress.style.css +0 -1
  174. package/dist/assets/components/quote/Quote.style.css +0 -1
  175. package/dist/assets/components/resizable/Resizable.style.css +0 -1
  176. package/dist/assets/components/row/Row.style.css +0 -1
  177. package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
  178. package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
  179. package/dist/assets/components/tab/Tab.style.css +0 -1
  180. package/dist/assets/components/text/Text.style.css +0 -1
  181. package/dist/assets/components/toast/Toast.style.css +0 -1
  182. package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
  183. package/dist/components/icon/codezero/codezero.svg.js +0 -5
  184. package/dist/components/icon/codezero/gls.svg.js +0 -5
  185. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  186. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
  187. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  188. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  189. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  190. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  191. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  192. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  193. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  194. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  195. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  196. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  197. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  198. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  199. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
  202. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
  203. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  204. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
  205. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
  206. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
  207. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  219. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
  225. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  226. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  227. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  228. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  229. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
  230. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
  231. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  232. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  233. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  234. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  236. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  237. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  238. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  239. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  240. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  241. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  242. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  243. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
  244. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
  245. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  246. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  247. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
  248. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
  249. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
  250. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
  251. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
  252. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  253. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
  254. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
  255. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
  256. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  257. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
  258. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  259. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  260. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
  261. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
  262. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
  263. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
  264. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
  265. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
  266. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
  267. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
  268. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  269. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  270. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  271. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
  272. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  273. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -37
  274. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  275. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  276. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  277. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
  278. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
  279. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
  280. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
  281. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
  282. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  283. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  284. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
  285. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  286. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
  287. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
  288. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  289. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
  290. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  291. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
  292. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
  293. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
  294. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
  295. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
  296. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  297. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
  298. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
  299. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  300. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
  301. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  302. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
  303. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
  304. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
  305. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  306. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  307. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
  308. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  309. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -18
  310. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  311. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  312. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  313. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  314. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  315. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
  316. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
  317. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  318. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
  319. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
  320. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
  321. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  322. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
  323. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  324. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  325. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
  326. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
  327. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
  328. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
  329. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
  330. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
  331. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
  332. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  333. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  334. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
  335. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  336. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
  337. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
  338. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
  339. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
  340. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  341. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
  342. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
  343. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  344. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  345. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
  346. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
  347. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
  348. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
  349. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  350. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
  351. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
  352. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  353. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  354. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
  355. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
  356. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  357. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
  358. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
  359. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
  360. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
  361. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
  362. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
  363. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
  364. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  365. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
  366. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
  367. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
  368. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
  369. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  370. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
  371. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
  372. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
  373. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  374. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
  375. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
  376. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
  377. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
  378. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
  379. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
  380. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
  381. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
  382. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
  383. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
  384. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  385. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
  386. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
  387. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
  388. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  389. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
  390. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  391. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  392. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  393. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
  394. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
  395. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
  396. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
  397. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
  398. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
  399. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
  400. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  401. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  402. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -51
  403. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
  404. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
  405. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  406. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
  407. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
  408. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
  409. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  410. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
  411. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
  412. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
  413. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  414. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
  415. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  416. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
  417. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  418. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
  419. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  420. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  421. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
  422. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
  423. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
  424. package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  425. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
  426. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  427. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  428. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  429. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
  430. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  431. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
  432. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
  433. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
  434. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
  435. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
  436. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
  437. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
  438. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  439. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
  440. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
  441. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
  442. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  443. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  444. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
  445. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  446. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  447. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  448. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
  449. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
  450. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  451. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -14
  452. package/dist/node_modules/react/compiler-runtime.js +0 -10
  453. /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
  454. /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
@@ -1,37 +0,0 @@
1
- import { parseValueFromTransform as n } from "../../../render/dom/parse-transform.js";
2
- import { transformPropOrder as m } from "../../../render/utils/keys-transform.js";
3
- import { number as i } from "../../../value/types/numbers/index.js";
4
- import { px as l } from "../../../value/types/numbers/units.js";
5
- const h = (r) => r === i || r === l, p = /* @__PURE__ */ new Set(["x", "y", "z"]), f = m.filter((r) => !p.has(r));
6
- function F(r) {
7
- const o = [];
8
- return f.forEach((t) => {
9
- const a = r.getValue(t);
10
- a !== void 0 && (o.push([t, a.get()]), a.set(t.startsWith("scale") ? 1 : 0));
11
- }), o;
12
- }
13
- const s = {
14
- // Dimensions
15
- width: ({ x: r }, { paddingLeft: o = "0", paddingRight: t = "0", boxSizing: a }) => {
16
- const e = r.max - r.min;
17
- return a === "border-box" ? e : e - parseFloat(o) - parseFloat(t);
18
- },
19
- height: ({ y: r }, { paddingTop: o = "0", paddingBottom: t = "0", boxSizing: a }) => {
20
- const e = r.max - r.min;
21
- return a === "border-box" ? e : e - parseFloat(o) - parseFloat(t);
22
- },
23
- top: (r, { top: o }) => parseFloat(o),
24
- left: (r, { left: o }) => parseFloat(o),
25
- bottom: ({ y: r }, { top: o }) => parseFloat(o) + (r.max - r.min),
26
- right: ({ x: r }, { left: o }) => parseFloat(o) + (r.max - r.min),
27
- // Transform
28
- x: (r, { transform: o }) => n(o, "x"),
29
- y: (r, { transform: o }) => n(o, "y")
30
- };
31
- s.translateX = s.x;
32
- s.translateY = s.y;
33
- export {
34
- h as isNumOrPxType,
35
- s as positionalValues,
36
- F as removeNonTranslationalTransform
37
- };
@@ -1,6 +0,0 @@
1
- import { camelToDash as a } from "../../render/dom/utils/camel-to-dash.js";
2
- const t = "framerAppearId", e = "data-" + a(t);
3
- export {
4
- e as optimizedAppearDataAttribute,
5
- t as optimizedAppearDataId
6
- };
@@ -1,7 +0,0 @@
1
- import { optimizedAppearDataAttribute as p } from "./data-id.js";
2
- function e(t) {
3
- return t.props[p];
4
- }
5
- export {
6
- e as getOptimisedAppearId
7
- };
@@ -1,27 +0,0 @@
1
- class t {
2
- constructor() {
3
- this.updateFinished();
4
- }
5
- get finished() {
6
- return this._finished;
7
- }
8
- updateFinished() {
9
- this._finished = new Promise((i) => {
10
- this.resolve = i;
11
- });
12
- }
13
- notifyFinished() {
14
- this.resolve();
15
- }
16
- /**
17
- * Allows the animation to be awaited.
18
- *
19
- * @deprecated Use `finished` instead.
20
- */
21
- then(i, e) {
22
- return this.finished.then(i, e);
23
- }
24
- }
25
- export {
26
- t as WithPromise
27
- };
@@ -1,7 +0,0 @@
1
- function x(t, s, c, o = 0, u = 1) {
2
- const n = Array.from(t).sort((a, e) => a.sortNodePosition(e)).indexOf(s), i = t.size, r = (i - 1) * o;
3
- return typeof c == "function" ? c(n, i) : u === 1 ? n * o : r - n * o;
4
- }
5
- export {
6
- x as calcChildStagger
7
- };
@@ -1,23 +0,0 @@
1
- import { isGenerator as f } from "../generators/utils/is-generator.js";
2
- import { isAnimatable as l } from "./is-animatable.js";
3
- import { warning as g } from "../../../../../motion-utils/dist/es/errors.js";
4
- function s(t) {
5
- const i = t[0];
6
- if (t.length === 1)
7
- return !0;
8
- for (let n = 0; n < t.length; n++)
9
- if (t[n] !== i)
10
- return !0;
11
- }
12
- function h(t, i, n, u) {
13
- const r = t[0];
14
- if (r === null)
15
- return !1;
16
- if (i === "display" || i === "visibility")
17
- return !0;
18
- const o = t[t.length - 1], a = l(r, i), e = l(o, i);
19
- return g(a === e, `You are trying to animate ${i} from "${r}" to "${o}". "${a ? o : r}" is not an animatable value.`, "value-not-animatable"), !a || !e ? !1 : s(t) || (n === "spring" || f(n)) && u;
20
- }
21
- export {
22
- h as canAnimate
23
- };
@@ -1,31 +0,0 @@
1
- import { isCSSVariableToken as c } from "./is-css-variable.js";
2
- import { invariant as l } from "../../../../../motion-utils/dist/es/errors.js";
3
- import { isNumericalString as s } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
4
- const m = (
5
- // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
6
- /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
7
- );
8
- function p(a) {
9
- const e = m.exec(a);
10
- if (!e)
11
- return [,];
12
- const [, r, i, t] = e;
13
- return [`--${r ?? i}`, t];
14
- }
15
- const f = 4;
16
- function u(a, e, r = 1) {
17
- l(r <= f, `Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
18
- const [i, t] = p(a);
19
- if (!i)
20
- return;
21
- const o = window.getComputedStyle(e).getPropertyValue(i);
22
- if (o) {
23
- const n = o.trim();
24
- return s(n) ? parseFloat(n) : n;
25
- }
26
- return c(t) ? u(t, e, r + 1) : t;
27
- }
28
- export {
29
- u as getVariableValue,
30
- p as parseCSSVariable
31
- };
@@ -1,22 +0,0 @@
1
- import { transformProps as s } from "../../render/utils/keys-transform.js";
2
- const r = {
3
- type: "spring",
4
- stiffness: 500,
5
- damping: 25,
6
- restSpeed: 10
7
- }, n = (t) => ({
8
- type: "spring",
9
- stiffness: 550,
10
- damping: t === 0 ? 2 * Math.sqrt(550) : 30,
11
- restSpeed: 10
12
- }), i = {
13
- type: "keyframes",
14
- duration: 0.8
15
- }, a = {
16
- type: "keyframes",
17
- ease: [0.25, 0.1, 0.35, 1],
18
- duration: 0.3
19
- }, o = (t, { keyframes: e }) => e.length > 2 ? i : s.has(t) ? t.startsWith("scale") ? n(e[1]) : r : a;
20
- export {
21
- o as getDefaultTransition
22
- };
@@ -1,8 +0,0 @@
1
- import { resolveTransition as o } from "./resolve-transition.js";
2
- function l(e, u) {
3
- const r = e?.[u] ?? e?.default ?? e;
4
- return r !== e ? o(r, e) : r;
5
- }
6
- export {
7
- l as getValueTransition
8
- };
@@ -1,7 +0,0 @@
1
- import { complex as e } from "../../value/types/complex/index.js";
2
- const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
3
- (e.test(r) || r === "0") && // And it contains numbers and/or colors
4
- !r.startsWith("url("));
5
- export {
6
- n as isAnimatable
7
- };
@@ -1,9 +0,0 @@
1
- const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2
- function o(t) {
3
- return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
4
- }
5
- export {
6
- o as containsCSSVariable,
7
- e as isCSSVariableName,
8
- a as isCSSVariableToken
9
- };
@@ -1,21 +0,0 @@
1
- const t = /* @__PURE__ */ new Set([
2
- "when",
3
- "delay",
4
- "delayChildren",
5
- "staggerChildren",
6
- "staggerDirection",
7
- "repeat",
8
- "repeatType",
9
- "repeatDelay",
10
- "from",
11
- "elapsed"
12
- ]);
13
- function n(e) {
14
- for (const r in e)
15
- if (!t.has(r))
16
- return !0;
17
- return !1;
18
- }
19
- export {
20
- n as isTransitionDefined
21
- };
@@ -1,6 +0,0 @@
1
- function t(n) {
2
- n.duration = 0, n.type = "keyframes";
3
- }
4
- export {
5
- t as makeAnimationInstant
6
- };
@@ -1,16 +0,0 @@
1
- import { inertia as p } from "../generators/inertia.js";
2
- import { keyframes as r } from "../generators/keyframes.js";
3
- import { spring as t } from "../generators/spring.js";
4
- const o = {
5
- decay: p,
6
- inertia: p,
7
- tween: r,
8
- keyframes: r,
9
- spring: t
10
- };
11
- function m(e) {
12
- typeof e.type == "string" && (e.type = o[e.type]);
13
- }
14
- export {
15
- m as replaceTransitionType
16
- };
@@ -1,10 +0,0 @@
1
- function c(e, r) {
2
- if (e?.inherit && r) {
3
- const { inherit: u, ...t } = e;
4
- return { ...r, ...t };
5
- }
6
- return e;
7
- }
8
- export {
9
- c as resolveTransition
10
- };
@@ -1,4 +0,0 @@
1
- const $ = ([c, e, i, r]) => `cubic-bezier(${c}, ${e}, ${i}, ${r})`;
2
- export {
3
- $ as cubicBezierAsString
4
- };
@@ -1,12 +0,0 @@
1
- import { supportsLinearEasing as o } from "../../../utils/supports/linear-easing.js";
2
- import { generateLinearEasing as f } from "../utils/linear.js";
3
- import { cubicBezierAsString as n } from "./cubic-bezier.js";
4
- import { supportedWaapiEasing as i } from "./supported.js";
5
- import { isBezierDefinition as p } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
6
- function m(r, e) {
7
- if (r)
8
- return typeof r == "function" ? o() ? f(r, e) : "ease-out" : p(r) ? n(r) : Array.isArray(r) ? r.map((t) => m(t, e) || i.easeOut) : i[r];
9
- }
10
- export {
11
- m as mapEasingToNativeEasing
12
- };
@@ -1,15 +0,0 @@
1
- import { cubicBezierAsString as e } from "./cubic-bezier.js";
2
- const i = {
3
- linear: "linear",
4
- ease: "ease",
5
- easeIn: "ease-in",
6
- easeOut: "ease-out",
7
- easeInOut: "ease-in-out",
8
- circIn: /* @__PURE__ */ e([0, 0.65, 0.55, 1]),
9
- circOut: /* @__PURE__ */ e([0.55, 0, 1, 0.45]),
10
- backIn: /* @__PURE__ */ e([0.31, 0.01, 0.66, -0.59]),
11
- backOut: /* @__PURE__ */ e([0.33, 1.53, 0.69, 0.99])
12
- };
13
- export {
14
- i as supportedWaapiEasing
15
- };
@@ -1,21 +0,0 @@
1
- import { mapEasingToNativeEasing as g } from "./easing/map-easing.js";
2
- function u(r, s, f, { delay: m = 0, duration: n = 300, repeat: p = 0, repeatType: c = "loop", ease: l = "easeOut", times: t } = {}, e = void 0) {
3
- const a = {
4
- [s]: f
5
- };
6
- t && (a.offset = t);
7
- const i = g(l, n);
8
- Array.isArray(i) && (a.easing = i);
9
- const o = {
10
- delay: m,
11
- duration: n,
12
- easing: Array.isArray(i) ? "linear" : i,
13
- fill: "both",
14
- iterations: p + 1,
15
- direction: c === "reverse" ? "alternate" : "normal"
16
- };
17
- return e && (o.pseudoElement = e), r.animate(a, o);
18
- }
19
- export {
20
- u as startWaapiAnimation
21
- };
@@ -1,33 +0,0 @@
1
- import { acceleratedValues as i } from "../utils/accelerated-values.js";
2
- import { hasBrowserOnlyColors as c } from "../utils/is-browser-color.js";
3
- import { memo as f } from "../../../../../../motion-utils/dist/es/memo.js";
4
- const u = /* @__PURE__ */ new Set([
5
- "color",
6
- "backgroundColor",
7
- "outlineColor",
8
- "fill",
9
- "stroke",
10
- "borderColor",
11
- "borderTopColor",
12
- "borderRightColor",
13
- "borderBottomColor",
14
- "borderLeftColor"
15
- ]), b = /* @__PURE__ */ f(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
16
- function h(e) {
17
- const { motionValue: r, name: o, repeatDelay: t, repeatType: n, damping: a, type: s, keyframes: l } = e;
18
- if (!(r?.owner?.current instanceof HTMLElement))
19
- return !1;
20
- const { onUpdate: p, transformTemplate: m } = r.owner.getProps();
21
- return b() && o && /**
22
- * Force WAAPI for color properties with browser-only color formats
23
- * (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
24
- */
25
- (i.has(o) || u.has(o) && c(l)) && (o !== "transform" || !m) && /**
26
- * If we're outputting values to onUpdate then we can't use WAAPI as there's
27
- * no way to read the value from WAAPI every frame.
28
- */
29
- !p && !t && n !== "mirror" && a !== 0 && s !== "inertia";
30
- }
31
- export {
32
- h as supportsBrowserAnimation
33
- };
@@ -1,12 +0,0 @@
1
- const e = /* @__PURE__ */ new Set([
2
- "opacity",
3
- "clipPath",
4
- "filter",
5
- "transform"
6
- // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
7
- // or until we implement support for linear() easing.
8
- // "background-color"
9
- ]);
10
- export {
11
- e as acceleratedValues
12
- };
@@ -1,8 +0,0 @@
1
- import { supportsLinearEasing as a } from "../../../utils/supports/linear-easing.js";
2
- import { isGenerator as t } from "../../generators/utils/is-generator.js";
3
- function i({ type: e, ...r }) {
4
- return t(e) && a() ? e.applyToOptions(r) : (r.duration ?? (r.duration = 300), r.ease ?? (r.ease = "easeOut"), r);
5
- }
6
- export {
7
- i as applyGeneratorOptions
8
- };
@@ -1,10 +0,0 @@
1
- const t = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
2
- function l(r) {
3
- for (let o = 0; o < r.length; o++)
4
- if (typeof r[o] == "string" && t.test(r[o]))
5
- return !0;
6
- return !1;
7
- }
8
- export {
9
- l as hasBrowserOnlyColors
10
- };
@@ -1,10 +0,0 @@
1
- const i = (r, a, o = 10) => {
2
- let n = "";
3
- const e = Math.max(Math.round(a / o), 2);
4
- for (let t = 0; t < e; t++)
5
- n += Math.round(r(t / (e - 1)) * 1e4) / 1e4 + ", ";
6
- return `linear(${n.substring(0, n.length - 2)})`;
7
- };
8
- export {
9
- i as generateLinearEasing
10
- };
@@ -1,17 +0,0 @@
1
- import { circInOut as r } from "../../../../../../motion-utils/dist/es/easing/circ.js";
2
- import { backInOut as t } from "../../../../../../motion-utils/dist/es/easing/back.js";
3
- import { anticipate as o } from "../../../../../../motion-utils/dist/es/easing/anticipate.js";
4
- const n = {
5
- anticipate: o,
6
- backInOut: t,
7
- circInOut: r
8
- };
9
- function p(e) {
10
- return e in n;
11
- }
12
- function u(e) {
13
- typeof e.ease == "string" && p(e.ease) && (e.ease = n[e.ease]);
14
- }
15
- export {
16
- u as replaceStringEasing
17
- };
@@ -1,6 +0,0 @@
1
- function i(e, n, t, r = { passive: !0 }) {
2
- return e.addEventListener(n, t, r), () => e.removeEventListener(n, t);
3
- }
4
- export {
5
- i as addDomEvent
6
- };
@@ -1,27 +0,0 @@
1
- import { stepsOrder as o } from "./order.js";
2
- import { createRenderStep as T } from "./render-step.js";
3
- import { MotionGlobalConfig as b } from "../../../../motion-utils/dist/es/global-config.js";
4
- const v = 40;
5
- function N(c, i) {
6
- let r = !1, a = !0;
7
- const e = {
8
- delta: 0,
9
- timestamp: 0,
10
- isProcessing: !1
11
- }, l = () => r = !0, n = o.reduce((t, s) => (t[s] = T(l), t), {}), { setup: m, read: u, resolveKeyframes: f, preUpdate: d, update: g, preRender: h, render: M, postRender: R } = n, p = () => {
12
- const t = b.useManualTiming, s = t ? e.timestamp : performance.now();
13
- r = !1, t || (e.delta = a ? 1e3 / 60 : Math.max(Math.min(s - e.timestamp, v), 1)), e.timestamp = s, e.isProcessing = !0, m.process(e), u.process(e), f.process(e), d.process(e), g.process(e), h.process(e), M.process(e), R.process(e), e.isProcessing = !1, r && i && (a = !1, c(p));
14
- }, x = () => {
15
- r = !0, a = !0, e.isProcessing || c(p);
16
- };
17
- return { schedule: o.reduce((t, s) => {
18
- const P = n[s];
19
- return t[s] = (w, E = !1, F = !1) => (r || x(), P.schedule(w, E, F)), t;
20
- }, {}), cancel: (t) => {
21
- for (let s = 0; s < o.length; s++)
22
- n[o[s]].cancel(t);
23
- }, state: e, steps: n };
24
- }
25
- export {
26
- N as createRenderBatcher
27
- };
@@ -1,9 +0,0 @@
1
- import { createRenderBatcher as e } from "./batcher.js";
2
- import { noop as r } from "../../../../motion-utils/dist/es/noop.js";
3
- const { schedule: m, cancel: n, state: o, steps: c } = /* @__PURE__ */ e(typeof requestAnimationFrame < "u" ? requestAnimationFrame : r, !0);
4
- export {
5
- n as cancelFrame,
6
- m as frame,
7
- o as frameData,
8
- c as frameSteps
9
- };
@@ -1,5 +0,0 @@
1
- import { createRenderBatcher as e } from "./batcher.js";
2
- const { schedule: t } = /* @__PURE__ */ e(queueMicrotask, !1);
3
- export {
4
- t as microtask
5
- };
@@ -1,21 +0,0 @@
1
- const e = [
2
- "setup",
3
- // Compute
4
- "read",
5
- // Read
6
- "resolveKeyframes",
7
- // Write/Read/Write/Read
8
- "preUpdate",
9
- // Compute
10
- "update",
11
- // Compute
12
- "preRender",
13
- // Compute
14
- "render",
15
- // Write
16
- "postRender"
17
- // Compute
18
- ];
19
- export {
20
- e as stepsOrder
21
- };
@@ -1,43 +0,0 @@
1
- function F(i, m) {
2
- let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, n = !1;
3
- const a = /* @__PURE__ */ new WeakSet();
4
- let f = {
5
- delta: 0,
6
- timestamp: 0,
7
- isProcessing: !1
8
- };
9
- function l(e) {
10
- a.has(e) && (o.schedule(e), i()), e(f);
11
- }
12
- const o = {
13
- /**
14
- * Schedule a process to run on the next frame.
15
- */
16
- schedule: (e, d = !1, u = !1) => {
17
- const c = u && r ? t : s;
18
- return d && a.add(e), c.add(e), e;
19
- },
20
- /**
21
- * Cancel the provided callback from running on the next frame.
22
- */
23
- cancel: (e) => {
24
- s.delete(e), a.delete(e);
25
- },
26
- /**
27
- * Execute all schedule callbacks.
28
- */
29
- process: (e) => {
30
- if (f = e, r) {
31
- n = !0;
32
- return;
33
- }
34
- r = !0;
35
- const d = t;
36
- t = s, s = d, t.forEach(l), t.clear(), r = !1, n && (n = !1, o.process(e));
37
- }
38
- };
39
- return o;
40
- }
41
- export {
42
- F as createRenderStep
43
- };
@@ -1,15 +0,0 @@
1
- import { frameData as n } from "./frame.js";
2
- import { MotionGlobalConfig as i } from "../../../../motion-utils/dist/es/global-config.js";
3
- let e;
4
- function t() {
5
- e = void 0;
6
- }
7
- const r = {
8
- now: () => (e === void 0 && r.set(n.isProcessing || i.useManualTiming ? n.timestamp : performance.now()), e),
9
- set: (o) => {
10
- e = o, queueMicrotask(t);
11
- }
12
- };
13
- export {
14
- r as time
15
- };
@@ -1,11 +0,0 @@
1
- const e = {
2
- x: !1,
3
- y: !1
4
- };
5
- function i() {
6
- return e.x || e.y;
7
- }
8
- export {
9
- i as isDragActive,
10
- e as isDragging
11
- };
@@ -1,11 +0,0 @@
1
- import { isDragging as e } from "./is-active.js";
2
- function l(r) {
3
- return r === "x" || r === "y" ? e[r] ? null : (e[r] = !0, () => {
4
- e[r] = !1;
5
- }) : e.x || e.y ? null : (e.x = e.y = !0, () => {
6
- e.x = e.y = !1;
7
- });
8
- }
9
- export {
10
- l as setDragLock
11
- };
@@ -1,38 +0,0 @@
1
- import { isDragActive as P } from "./drag/state/is-active.js";
2
- import { setupGesture as h } from "./utils/setup.js";
3
- function m(s) {
4
- return !(s.pointerType === "touch" || P());
5
- }
6
- function D(s, v, f = {}) {
7
- const [u, n, l] = h(s, f);
8
- return u.forEach((t) => {
9
- let d = !1, r = !1, o;
10
- const E = () => {
11
- t.removeEventListener("pointerleave", a);
12
- }, c = (e) => {
13
- o && (o(e), o = void 0), E();
14
- }, i = (e) => {
15
- d = !1, window.removeEventListener("pointerup", i), window.removeEventListener("pointercancel", i), r && (r = !1, c(e));
16
- }, w = () => {
17
- d = !0, window.addEventListener("pointerup", i, n), window.addEventListener("pointercancel", i, n);
18
- }, a = (e) => {
19
- if (e.pointerType !== "touch") {
20
- if (d) {
21
- r = !0;
22
- return;
23
- }
24
- c(e);
25
- }
26
- }, L = (e) => {
27
- if (!m(e))
28
- return;
29
- r = !1;
30
- const p = v(t, e);
31
- typeof p == "function" && (o = p, t.addEventListener("pointerleave", a, n));
32
- };
33
- t.addEventListener("pointerenter", L, n), t.addEventListener("pointerdown", w, n);
34
- }), l;
35
- }
36
- export {
37
- D as hover
38
- };
@@ -1,34 +0,0 @@
1
- import { isHTMLElement as E } from "../../utils/is-html-element.js";
2
- import { isDragActive as v } from "../drag/state/is-active.js";
3
- import { isNodeOrChild as L } from "../utils/is-node-or-child.js";
4
- import { isPrimaryPointer as g } from "../utils/is-primary-pointer.js";
5
- import { setupGesture as T } from "../utils/setup.js";
6
- import { isElementKeyboardAccessible as h } from "./utils/is-keyboard-accessible.js";
7
- import { enableKeyboardPress as y } from "./utils/keyboard.js";
8
- import { isPressing as d } from "./utils/state.js";
9
- function m(s) {
10
- return g(s) && !v();
11
- }
12
- const p = /* @__PURE__ */ new WeakSet();
13
- function H(s, l, o = {}) {
14
- const [u, i, w] = T(s, o), P = (e) => {
15
- const n = e.currentTarget;
16
- if (!m(e) || p.has(e))
17
- return;
18
- d.add(n), o.stopPropagation && p.add(e);
19
- const t = l(n, e), a = (r, b) => {
20
- window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", f), d.has(n) && d.delete(n), m(r) && typeof t == "function" && t(r, { success: b });
21
- }, c = (r) => {
22
- a(r, n === window || n === document || o.useGlobalTarget || L(n, r.target));
23
- }, f = (r) => {
24
- a(r, !1);
25
- };
26
- window.addEventListener("pointerup", c, i), window.addEventListener("pointercancel", f, i);
27
- };
28
- return u.forEach((e) => {
29
- (o.useGlobalTarget ? window : e).addEventListener("pointerdown", P, i), E(e) && (e.addEventListener("focus", (t) => y(t, i)), !h(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
30
- }), w;
31
- }
32
- export {
33
- H as press
34
- };