@code0-tech/pictor 1.1.0 → 1.1.2

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 (344) hide show
  1. package/dist/_virtual/rolldown_runtime.js +3 -12
  2. package/dist/assets/Button.style.css +1 -1
  3. package/dist/assets/ContextMenu.style.css +1 -1
  4. package/dist/assets/DateInput.style.css +1 -1
  5. package/dist/assets/Editor.styles.css +1 -1
  6. package/dist/assets/Input.style.css +1 -1
  7. package/dist/assets/InputWrapper.style.css +1 -1
  8. package/dist/assets/Menu.style.css +1 -1
  9. package/dist/assets/SegmentedControl.style.css +1 -1
  10. package/dist/assets/SelectInput.style.css +1 -1
  11. package/dist/components/alert/Alert.js +19 -20
  12. package/dist/components/aurora/Aurora.js +15 -16
  13. package/dist/components/avatar/Avatar.js +44 -44
  14. package/dist/components/badge/Badge.js +36 -37
  15. package/dist/components/button/Button.js +16 -16
  16. package/dist/components/button-group/ButtonGroup.js +15 -16
  17. package/dist/components/card/Card.js +21 -22
  18. package/dist/components/card/CardSection.js +15 -15
  19. package/dist/components/chart/Chart.js +82 -82
  20. package/dist/components/chart/LineChart.js +50 -51
  21. package/dist/components/col/Col.js +9 -10
  22. package/dist/components/command/Command.js +32 -33
  23. package/dist/components/container/Container.js +9 -10
  24. package/dist/components/context-menu/ContextMenu.js +76 -77
  25. package/dist/components/data-table/DataTableColumn.js +9 -10
  26. package/dist/components/data-table/DataTableFilterInput.js +83 -83
  27. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +26 -27
  28. package/dist/components/data-table/DataTableHeader.js +20 -21
  29. package/dist/components/data-table/DataTablePagination.js +27 -28
  30. package/dist/components/dialog/Dialog.js +61 -62
  31. package/dist/components/file-tabs/FileTabs.js +51 -52
  32. package/dist/components/flex/Flex.js +9 -10
  33. package/dist/components/form/CheckboxInput.js +50 -51
  34. package/dist/components/form/ColorInput.js +242 -242
  35. package/dist/components/form/DateInput.js +55 -55
  36. package/dist/components/form/EditorInput.d.ts +7 -0
  37. package/dist/components/form/EditorInput.js +278 -273
  38. package/dist/components/form/FileInput.js +67 -68
  39. package/dist/components/form/InputDescription.js +3 -4
  40. package/dist/components/form/InputLabel.js +9 -10
  41. package/dist/components/form/InputMessage.js +6 -7
  42. package/dist/components/form/InputWrapper.js +37 -38
  43. package/dist/components/form/PasswordInput.js +2 -2
  44. package/dist/components/form/PinInput.js +30 -31
  45. package/dist/components/form/RadioGroup.js +22 -23
  46. package/dist/components/form/RadioInput.js +19 -20
  47. package/dist/components/form/SelectInput.js +55 -56
  48. package/dist/components/form/TagInput.js +46 -45
  49. package/dist/components/fullscreen/FullScreen.js +14 -15
  50. package/dist/components/gantt/Gantt.js +63 -64
  51. package/dist/components/gantt/GanttGroup.js +2 -2
  52. package/dist/components/gantt/GanttHeader.js +40 -41
  53. package/dist/components/gantt/GanttItem.js +11 -12
  54. package/dist/components/icon/Icon.js +22 -22
  55. package/dist/components/json-view/JsonView.js +37 -38
  56. package/dist/components/layout/Layout.js +64 -65
  57. package/dist/components/menu/Menu.js +91 -92
  58. package/dist/components/quote/Quote.js +29 -30
  59. package/dist/components/resizable/Resizable.js +22 -23
  60. package/dist/components/row/Row.js +9 -10
  61. package/dist/components/scroll-area/ScrollArea.js +46 -47
  62. package/dist/components/segmented-control/SegmentedControl.js +35 -35
  63. package/dist/components/spacing/Spacing.js +8 -9
  64. package/dist/components/tab/Tab.js +53 -53
  65. package/dist/components/text/Text.js +9 -10
  66. package/dist/components/toast/Toast.js +47 -47
  67. package/dist/components/tooltip/Tooltip.js +35 -36
  68. package/dist/node_modules/@lezer/common/dist/index.js +4 -4
  69. package/dist/utils/contextStore.js +31 -32
  70. package/dist/utils/motion.js +39 -40
  71. package/package.json +8 -8
  72. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +0 -6
  73. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  74. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -51
  75. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -58
  76. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -18
  77. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -9
  78. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -4
  79. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -4
  80. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -8
  81. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -15
  82. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -4
  83. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -13
  84. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -4
  85. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -4
  86. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -6
  87. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -9
  88. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
  89. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
  90. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -57
  91. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -25
  92. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -18
  93. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -136
  94. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -40
  95. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
  96. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -37
  97. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -23
  98. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -7
  99. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -49
  100. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -13
  101. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -11
  102. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -59
  103. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -7
  104. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
  105. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
  106. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
  107. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -68
  108. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -2
  109. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
  110. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -56
  111. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -48
  112. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -5
  113. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -8
  114. package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +0 -3
  115. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -11
  116. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -5
  117. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -6
  118. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
  119. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -17
  120. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -5
  121. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -9
  122. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -24
  123. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -7
  124. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -28
  125. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
  126. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -9
  127. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -6
  128. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -6
  129. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -2
  130. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -2
  131. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -4
  132. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -11
  133. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -23
  134. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -7
  135. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -5
  136. package/dist/node_modules/motion/dist/es/react.js +0 -196
  137. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -105
  138. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -127
  139. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -82
  140. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -26
  141. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -8
  142. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -11
  143. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -30
  144. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -20
  145. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -164
  146. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -7
  147. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -14
  148. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -4
  149. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -7
  150. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -43
  151. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -54
  152. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -24
  153. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -19
  154. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -59
  155. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -65
  156. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -6
  157. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -6
  158. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -10
  159. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -4
  160. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -4
  161. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -5
  162. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  163. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -34
  164. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -3
  165. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -5
  166. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -20
  167. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -5
  168. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -16
  169. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -23
  170. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -25
  171. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
  172. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -3
  173. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -5
  174. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -17
  175. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -4
  176. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -14
  177. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -11
  178. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -2
  179. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -9
  180. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -33
  181. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -17
  182. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -22
  183. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -8
  184. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -6
  185. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -6
  186. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -6
  187. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -15
  188. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -4
  189. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -28
  190. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -4
  191. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -3
  192. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -11
  193. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -30
  194. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -13
  195. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -8
  196. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -9
  197. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -34
  198. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  199. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -19
  200. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -26
  201. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -2
  202. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -2
  203. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -2
  204. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -14
  205. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -23
  206. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -37
  207. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -10
  208. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -41
  209. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -28
  210. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -27
  211. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -16
  212. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -26
  213. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -11
  214. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -20
  215. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -580
  216. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -5
  217. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -49
  218. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -11
  219. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -11
  220. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -15
  221. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -10
  222. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -2
  223. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -4
  224. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -17
  225. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -16
  226. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -10
  227. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -7
  228. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -201
  229. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -26
  230. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -2
  231. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -54
  232. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -5
  233. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  234. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  235. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -26
  236. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -34
  237. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -6
  238. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -9
  239. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -2
  240. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -38
  241. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -20
  242. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -26
  243. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -2
  244. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -13
  245. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -7
  246. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -12
  247. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -133
  248. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -17
  249. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -4
  250. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -10
  251. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -6
  252. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -2
  253. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -4
  254. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -11
  255. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -20
  256. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -19
  257. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -9
  258. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -2
  259. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -6
  260. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -18
  261. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -17
  262. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -8
  263. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -10
  264. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -35
  265. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -20
  266. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -6
  267. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +0 -5
  268. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +0 -7
  269. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -10
  270. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -31
  271. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -5
  272. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -5
  273. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -5
  274. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -28
  275. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -50
  276. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -4
  277. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -6
  278. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -2
  279. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -5
  280. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -12
  281. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -2
  282. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -10
  283. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -7
  284. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -3
  285. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -90
  286. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -5
  287. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -17
  288. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -19
  289. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -10
  290. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -13
  291. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -13
  292. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -14
  293. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  294. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -50
  295. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -12
  296. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -14
  297. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -6
  298. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -22
  299. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -62
  300. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -30
  301. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -13
  302. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -10
  303. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -2
  304. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
  305. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -2
  306. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -10
  307. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -2
  308. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -2
  309. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -4
  310. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -2
  311. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -2
  312. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -2
  313. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -5
  314. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -11
  315. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -5
  316. package/dist/node_modules/motion-utils/dist/es/array.js +0 -8
  317. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -2
  318. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -3
  319. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -5
  320. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -4
  321. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -16
  322. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -3
  323. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -2
  324. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -2
  325. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -2
  326. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -2
  327. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -29
  328. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -8
  329. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -4
  330. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -2
  331. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -2
  332. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -2
  333. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -2
  334. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -6
  335. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -2
  336. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -2
  337. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -5
  338. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -24
  339. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -2
  340. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -2
  341. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -6
  342. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  343. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -18
  344. package/dist/node_modules/react/compiler-runtime.js +0 -8
@@ -1,11 +0,0 @@
1
- import { cancelFrame, frame, frameData } from "../../frameloop/frame.js";
2
- import { time } from "../../frameloop/sync-time.js";
3
- var frameloopDriver = (i) => {
4
- let a = ({ timestamp: e }) => i(e);
5
- return {
6
- start: (e = !0) => frame.update(a, e),
7
- stop: () => cancelFrame(a),
8
- now: () => frameData.isProcessing ? frameData.timestamp : time.now()
9
- };
10
- };
11
- export { frameloopDriver };
@@ -1,30 +0,0 @@
1
- import { spring } from "./spring.js";
2
- import { getGeneratorVelocity } from "./utils/velocity.js";
3
- function inertia({ keyframes: n, velocity: r = 0, power: i = .8, timeConstant: a = 325, bounceDamping: o = 10, bounceStiffness: s = 500, modifyTarget: c, min: l, max: u, restDelta: d = .5, restSpeed: f }) {
4
- let p = n[0], m = {
5
- done: !1,
6
- value: p
7
- }, h = (e) => l !== void 0 && e < l || u !== void 0 && e > u, g = (e) => l === void 0 ? u : u === void 0 || Math.abs(l - e) < Math.abs(u - e) ? l : u, _ = i * r, v = p + _, y = c === void 0 ? v : c(v);
8
- y !== v && (_ = y - p);
9
- let b = (e) => -_ * Math.exp(-e / a), x = (e) => y + b(e), S = (e) => {
10
- let t = b(e), n = x(e);
11
- m.done = Math.abs(t) <= d, m.value = m.done ? y : n;
12
- }, C, w, T = (n) => {
13
- h(m.value) && (C = n, w = spring({
14
- keyframes: [m.value, g(m.value)],
15
- velocity: getGeneratorVelocity(x, n, m.value),
16
- damping: o,
17
- stiffness: s,
18
- restDelta: d,
19
- restSpeed: f
20
- }));
21
- };
22
- return T(0), {
23
- calculatedDuration: null,
24
- next: (e) => {
25
- let t = !1;
26
- return !w && C === void 0 && (t = !0, S(e), T(e)), C !== void 0 && e >= C ? w.next(e - C) : (!t && S(e), m);
27
- }
28
- };
29
- }
30
- export { inertia };
@@ -1,20 +0,0 @@
1
- import { easeInOut } from "../../../../../motion-utils/dist/es/easing/ease.js";
2
- import { isEasingArray } from "../../../../../motion-utils/dist/es/easing/utils/is-easing-array.js";
3
- import { easingDefinitionToFunction } from "../../../../../motion-utils/dist/es/easing/utils/map.js";
4
- import { interpolate } from "../../utils/interpolate.js";
5
- import { defaultOffset } from "../keyframes/offsets/default.js";
6
- import { convertOffsetToTimes } from "../keyframes/offsets/time.js";
7
- function defaultEasing(a, o) {
8
- return a.map(() => o || easeInOut).splice(0, a.length - 1);
9
- }
10
- function keyframes({ duration: e = 300, keyframes: s, times: c, ease: l = "easeInOut" }) {
11
- let u = isEasingArray(l) ? l.map(easingDefinitionToFunction) : easingDefinitionToFunction(l), d = {
12
- done: !1,
13
- value: s[0]
14
- }, f = interpolate(convertOffsetToTimes(c && c.length === s.length ? c : defaultOffset(s), e), s, { ease: Array.isArray(u) ? u : defaultEasing(s, u) });
15
- return {
16
- calculatedDuration: e,
17
- next: (a) => (d.value = f(a), d.done = a >= e, d)
18
- };
19
- }
20
- export { defaultEasing, keyframes };
@@ -1,164 +0,0 @@
1
- import { clamp } from "../../../../../motion-utils/dist/es/clamp.js";
2
- import { warning } from "../../../../../motion-utils/dist/es/errors.js";
3
- import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../motion-utils/dist/es/time-conversion.js";
4
- import { generateLinearEasing } from "../waapi/utils/linear.js";
5
- import { calcGeneratorDuration, maxGeneratorDuration } from "./utils/calc-duration.js";
6
- import { createGeneratorEasing } from "./utils/create-generator-easing.js";
7
- var springDefaults = {
8
- stiffness: 100,
9
- damping: 10,
10
- mass: 1,
11
- velocity: 0,
12
- duration: 800,
13
- bounce: .3,
14
- visualDuration: .3,
15
- restSpeed: {
16
- granular: .01,
17
- default: 2
18
- },
19
- restDelta: {
20
- granular: .005,
21
- default: .5
22
- },
23
- minDuration: .01,
24
- maxDuration: 10,
25
- minDamping: .05,
26
- maxDamping: 1
27
- };
28
- function calcAngularFreq(n, i) {
29
- return n * Math.sqrt(1 - i * i);
30
- }
31
- var rootIterations = 12;
32
- function approximateRoot(n, i, a) {
33
- let o = a;
34
- for (let a = 1; a < rootIterations; a++) o -= n(o) / i(o);
35
- return o;
36
- }
37
- var safeMin = .001;
38
- function findSpring({ duration: s = springDefaults.duration, bounce: c = springDefaults.bounce, velocity: l = springDefaults.velocity, mass: u = springDefaults.mass }) {
39
- let d, m;
40
- warning(s <= secondsToMilliseconds(springDefaults.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
41
- let h = 1 - c;
42
- h = clamp(springDefaults.minDamping, springDefaults.maxDamping, h), s = clamp(springDefaults.minDuration, springDefaults.maxDuration, millisecondsToSeconds(s)), h < 1 ? (d = (n) => {
43
- let i = n * h, a = i * s, o = i - l, c = calcAngularFreq(n, h), u = Math.exp(-a);
44
- return safeMin - o / c * u;
45
- }, m = (n) => {
46
- let i = n * h * s, a = i * l + l, o = h ** 2 * n ** 2 * s, c = Math.exp(-i), u = calcAngularFreq(n ** 2, h);
47
- return (-d(n) + safeMin > 0 ? -1 : 1) * ((a - o) * c) / u;
48
- }) : (d = (n) => {
49
- let i = Math.exp(-n * s), a = (n - l) * s + 1;
50
- return -safeMin + i * a;
51
- }, m = (n) => Math.exp(-n * s) * ((l - n) * (s * s)));
52
- let g = 5 / s, _ = approximateRoot(d, m, g);
53
- if (s = secondsToMilliseconds(s), isNaN(_)) return {
54
- stiffness: springDefaults.stiffness,
55
- damping: springDefaults.damping,
56
- duration: s
57
- };
58
- {
59
- let n = _ ** 2 * u;
60
- return {
61
- stiffness: n,
62
- damping: h * 2 * Math.sqrt(u * n),
63
- duration: s
64
- };
65
- }
66
- }
67
- var durationKeys = ["duration", "bounce"], physicsKeys = [
68
- "stiffness",
69
- "damping",
70
- "mass"
71
- ];
72
- function isSpringType(n, i) {
73
- return i.some((i) => n[i] !== void 0);
74
- }
75
- function getSpringOptions(i) {
76
- let a = {
77
- velocity: springDefaults.velocity,
78
- stiffness: springDefaults.stiffness,
79
- damping: springDefaults.damping,
80
- mass: springDefaults.mass,
81
- isResolvedFromDuration: !1,
82
- ...i
83
- };
84
- if (!isSpringType(i, physicsKeys) && isSpringType(i, durationKeys)) if (a.velocity = 0, i.visualDuration) {
85
- let o = i.visualDuration, s = 2 * Math.PI / (o * 1.2), c = s * s, l = 2 * clamp(.05, 1, 1 - (i.bounce || 0)) * Math.sqrt(c);
86
- a = {
87
- ...a,
88
- mass: springDefaults.mass,
89
- stiffness: c,
90
- damping: l
91
- };
92
- } else {
93
- let n = findSpring({
94
- ...i,
95
- velocity: 0
96
- });
97
- a = {
98
- ...a,
99
- ...n,
100
- mass: springDefaults.mass
101
- }, a.isResolvedFromDuration = !0;
102
- }
103
- return a;
104
- }
105
- function spring(n = springDefaults.visualDuration, i = springDefaults.bounce) {
106
- let u = typeof n == "object" ? n : {
107
- visualDuration: n,
108
- keyframes: [0, 1],
109
- bounce: i
110
- }, { restSpeed: d, restDelta: f } = u, p = u.keyframes[0], m = u.keyframes[u.keyframes.length - 1], h = {
111
- done: !1,
112
- value: p
113
- }, { stiffness: g, damping: _, mass: v, duration: y, velocity: b, isResolvedFromDuration: x } = getSpringOptions({
114
- ...u,
115
- velocity: -millisecondsToSeconds(u.velocity || 0)
116
- }), S = b || 0, C = _ / (2 * Math.sqrt(g * v)), w = m - p, T = millisecondsToSeconds(Math.sqrt(g / v)), E = Math.abs(w) < 5;
117
- d ||= E ? springDefaults.restSpeed.granular : springDefaults.restSpeed.default, f ||= E ? springDefaults.restDelta.granular : springDefaults.restDelta.default;
118
- let D, O, k, A, j, M;
119
- if (C < 1) k = calcAngularFreq(T, C), A = (S + C * T * w) / k, D = (n) => m - Math.exp(-C * T * n) * (A * Math.sin(k * n) + w * Math.cos(k * n)), j = C * T * A + w * k, M = C * T * w - A * k, O = (n) => Math.exp(-C * T * n) * (j * Math.sin(k * n) + M * Math.cos(k * n));
120
- else if (C === 1) {
121
- D = (n) => m - Math.exp(-T * n) * (w + (S + T * w) * n);
122
- let n = S + T * w;
123
- O = (i) => Math.exp(-T * i) * (T * n * i - S);
124
- } else {
125
- let n = T * Math.sqrt(C * C - 1);
126
- D = (i) => {
127
- let a = Math.exp(-C * T * i), o = Math.min(n * i, 300);
128
- return m - a * ((S + C * T * w) * Math.sinh(o) + n * w * Math.cosh(o)) / n;
129
- };
130
- let i = (S + C * T * w) / n, a = C * T * i - w * n, o = C * T * w - i * n;
131
- O = (i) => {
132
- let s = Math.exp(-C * T * i), c = Math.min(n * i, 300);
133
- return s * (a * Math.sinh(c) + o * Math.cosh(c));
134
- };
135
- }
136
- let N = {
137
- calculatedDuration: x && y || null,
138
- velocity: (n) => secondsToMilliseconds(O(n)),
139
- next: (n) => {
140
- if (!x && C < 1) {
141
- let i = Math.exp(-C * T * n), a = Math.sin(k * n), s = Math.cos(k * n), c = m - i * (A * a + w * s), l = secondsToMilliseconds(i * (j * a + M * s));
142
- return h.done = Math.abs(l) <= d && Math.abs(m - c) <= f, h.value = h.done ? m : c, h;
143
- }
144
- let i = D(n);
145
- if (x) h.done = n >= y;
146
- else {
147
- let a = secondsToMilliseconds(O(n));
148
- h.done = Math.abs(a) <= d && Math.abs(m - i) <= f;
149
- }
150
- return h.value = h.done ? m : i, h;
151
- },
152
- toString: () => {
153
- let n = Math.min(calcGeneratorDuration(N), maxGeneratorDuration), i = generateLinearEasing((i) => N.next(n * i).value, n, 30);
154
- return n + "ms " + i;
155
- },
156
- toTransition: () => {}
157
- };
158
- return N;
159
- }
160
- spring.applyToOptions = (n) => {
161
- let i = createGeneratorEasing(n, 100, spring);
162
- return n.ease = i.ease, n.duration = secondsToMilliseconds(i.duration), n.type = "keyframes", n;
163
- };
164
- export { spring };
@@ -1,7 +0,0 @@
1
- var maxGeneratorDuration = 2e4;
2
- function calcGeneratorDuration(e) {
3
- let t = 0, n = e.next(t);
4
- for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
5
- return t >= 2e4 ? Infinity : t;
6
- }
7
- export { calcGeneratorDuration, maxGeneratorDuration };
@@ -1,14 +0,0 @@
1
- import { millisecondsToSeconds } from "../../../../../../motion-utils/dist/es/time-conversion.js";
2
- import { calcGeneratorDuration, maxGeneratorDuration } from "./calc-duration.js";
3
- function createGeneratorEasing(r, i = 100, a) {
4
- let o = a({
5
- ...r,
6
- keyframes: [0, i]
7
- }), s = Math.min(calcGeneratorDuration(o), maxGeneratorDuration);
8
- return {
9
- type: "keyframes",
10
- ease: (e) => o.next(s * e).value / i,
11
- duration: millisecondsToSeconds(s)
12
- };
13
- }
14
- export { createGeneratorEasing };
@@ -1,4 +0,0 @@
1
- function isGenerator(e) {
2
- return typeof e == "function" && "applyToOptions" in e;
3
- }
4
- export { isGenerator };
@@ -1,7 +0,0 @@
1
- import { velocityPerSecond } from "../../../../../../motion-utils/dist/es/velocity-per-second.js";
2
- var velocitySampleDuration = 5;
3
- function getGeneratorVelocity(n, r, i) {
4
- let a = Math.max(r - velocitySampleDuration, 0);
5
- return velocityPerSecond(i - n(a), r - a);
6
- }
7
- export { getGeneratorVelocity };
@@ -1,43 +0,0 @@
1
- import { MotionGlobalConfig } from "../../../../../motion-utils/dist/es/global-config.js";
2
- import { secondsToMilliseconds } from "../../../../../motion-utils/dist/es/time-conversion.js";
3
- import { frame } from "../../frameloop/frame.js";
4
- import { getFinalKeyframe } from "../keyframes/get-final.js";
5
- import { JSAnimation } from "../JSAnimation.js";
6
- import { makeAnimationInstant } from "../utils/make-animation-instant.js";
7
- import { AsyncMotionValueAnimation } from "../AsyncMotionValueAnimation.js";
8
- import { getValueTransition } from "../utils/get-value-transition.js";
9
- import { getDefaultTransition } from "../utils/default-transitions.js";
10
- import { isTransitionDefined } from "../utils/is-transition-defined.js";
11
- var animateMotionValue = (u, d, f, p = {}, m, h) => (g) => {
12
- let _ = getValueTransition(p, u) || {}, v = _.delay || p.delay || 0, { elapsed: y = 0 } = p;
13
- y -= secondsToMilliseconds(v);
14
- let b = {
15
- keyframes: Array.isArray(f) ? f : [null, f],
16
- ease: "easeOut",
17
- velocity: d.getVelocity(),
18
- ..._,
19
- delay: -y,
20
- onUpdate: (e) => {
21
- d.set(e), _.onUpdate && _.onUpdate(e);
22
- },
23
- onComplete: () => {
24
- g(), _.onComplete && _.onComplete();
25
- },
26
- name: u,
27
- motionValue: d,
28
- element: h ? void 0 : m
29
- };
30
- isTransitionDefined(_) || Object.assign(b, getDefaultTransition(u, b)), b.duration &&= secondsToMilliseconds(b.duration), b.repeatDelay &&= secondsToMilliseconds(b.repeatDelay), b.from !== void 0 && (b.keyframes[0] = b.from);
31
- let x = !1;
32
- if ((b.type === !1 || b.duration === 0 && !b.repeatDelay) && (makeAnimationInstant(b), b.delay === 0 && (x = !0)), (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations || m?.shouldSkipAnimations || _.skipAnimations) && (x = !0, makeAnimationInstant(b), b.delay = 0), b.allowFlatten = !_.type && !_.ease, x && !h && d.get() !== void 0) {
33
- let e = getFinalKeyframe(b.keyframes, _);
34
- if (e !== void 0) {
35
- frame.update(() => {
36
- b.onUpdate(e), b.onComplete();
37
- });
38
- return;
39
- }
40
- }
41
- return _.isSync ? new JSAnimation(b) : new AsyncMotionValueAnimation(b);
42
- };
43
- export { animateMotionValue };
@@ -1,54 +0,0 @@
1
- import { frame } from "../../frameloop/frame.js";
2
- import { resolveTransition } from "../utils/resolve-transition.js";
3
- import { getValueTransition } from "../utils/get-value-transition.js";
4
- import { animateMotionValue } from "./motion-value.js";
5
- import { positionalKeys } from "../../render/utils/keys-position.js";
6
- import { setTarget } from "../../render/utils/setters.js";
7
- import { addValueToWillChange } from "../../value/will-change/add-will-change.js";
8
- import { getOptimisedAppearId } from "../optimized-appear/get-appear-id.js";
9
- function shouldBlockAnimation({ protectedKeys: e, needsAnimating: a }, o) {
10
- let s = e.hasOwnProperty(o) && a[o] !== !0;
11
- return a[o] = !1, s;
12
- }
13
- function animateTarget(l, u, { delay: d = 0, transitionOverride: f, type: p } = {}) {
14
- let { transition: m, transitionEnd: h, ...g } = u, _ = l.getDefaultTransition();
15
- m = m ? resolveTransition(m, _) : _;
16
- let v = m?.reduceMotion, y = m?.skipAnimations;
17
- f && (m = f);
18
- let b = [], x = p && l.animationState && l.animationState.getState()[p], S = m?.path;
19
- for (let a in S && S.animateVisualElement(l, g, m, d, b), g) {
20
- let c = l.getValue(a, l.latestValues[a] ?? null), u = g[a];
21
- if (u === void 0 || x && shouldBlockAnimation(x, a)) continue;
22
- let f = {
23
- delay: d,
24
- ...getValueTransition(m || {}, a)
25
- };
26
- y && (f.skipAnimations = !0);
27
- let p = c.get();
28
- if (p !== void 0 && !c.isAnimating() && !Array.isArray(u) && u === p && !f.velocity) {
29
- frame.update(() => c.set(u));
30
- continue;
31
- }
32
- let h = !1;
33
- if (window.MotionHandoffAnimation) {
34
- let o = getOptimisedAppearId(l);
35
- if (o) {
36
- let s = window.MotionHandoffAnimation(o, a, frame);
37
- s !== null && (f.startTime = s, h = !0);
38
- }
39
- }
40
- addValueToWillChange(l, a);
41
- let _ = v ?? l.shouldReduceMotion;
42
- c.start(animateMotionValue(a, c, u, _ && positionalKeys.has(a) ? { type: !1 } : f, l, h));
43
- let S = c.animation;
44
- S && b.push(S);
45
- }
46
- if (h) {
47
- let a = () => frame.update(() => {
48
- h && setTarget(l, h);
49
- });
50
- b.length ? Promise.all(b).then(a) : a();
51
- }
52
- return b;
53
- }
54
- export { animateTarget };
@@ -1,24 +0,0 @@
1
- import { calcChildStagger } from "../utils/calc-child-stagger.js";
2
- import { resolveVariant } from "../../render/utils/resolve-dynamic-variants.js";
3
- import { animateTarget } from "./visual-element-target.js";
4
- function animateVariant(e, r, a = {}) {
5
- let o = resolveVariant(e, r, a.type === "exit" ? e.presenceContext?.custom : void 0), { transition: s = e.getDefaultTransition() || {} } = o || {};
6
- a.transitionOverride && (s = a.transitionOverride);
7
- let c = o ? () => Promise.all(animateTarget(e, o, a)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (t = 0) => {
8
- let { delayChildren: n = 0, staggerChildren: o, staggerDirection: c } = s;
9
- return animateChildren(e, r, t, n, o, c, a);
10
- } : () => Promise.resolve(), { when: u } = s;
11
- if (u) {
12
- let [e, t] = u === "beforeChildren" ? [c, l] : [l, c];
13
- return e().then(() => t());
14
- } else return Promise.all([c(), l(a.delay)]);
15
- }
16
- function animateChildren(t, n, i = 0, a = 0, o = 0, s = 1, c) {
17
- let l = [];
18
- for (let u of t.variantChildren) u.notify("AnimationStart", n), l.push(animateVariant(u, n, {
19
- ...c,
20
- delay: i + (typeof a == "function" ? 0 : a) + calcChildStagger(t.variantChildren, u, a, o, s)
21
- }).then(() => u.notify("AnimationComplete", n)));
22
- return Promise.all(l);
23
- }
24
- export { animateVariant };
@@ -1,19 +0,0 @@
1
- import { resolveVariant } from "../../render/utils/resolve-dynamic-variants.js";
2
- import { animateTarget } from "./visual-element-target.js";
3
- import { animateVariant } from "./visual-element-variant.js";
4
- function animateVisualElement(r, i, a = {}) {
5
- r.notify("AnimationStart", i);
6
- let o;
7
- if (Array.isArray(i)) {
8
- let e = i.map((e) => animateVariant(r, e, a));
9
- o = Promise.all(e);
10
- } else if (typeof i == "string") o = animateVariant(r, i, a);
11
- else {
12
- let n = typeof i == "function" ? resolveVariant(r, i, a.custom) : i;
13
- o = Promise.all(animateTarget(r, n, a));
14
- }
15
- return o.then(() => {
16
- r.notify("AnimationComplete", i);
17
- });
18
- }
19
- export { animateVisualElement };
@@ -1,59 +0,0 @@
1
- import { containsCSSVariable, isCSSVariableToken } from "../utils/is-css-variable.js";
2
- import { isNumOrPxType, positionalValues } from "./utils/unit-conversion.js";
3
- import { KeyframeResolver } from "./KeyframesResolver.js";
4
- import { getVariableValue } from "../utils/css-variables-conversion.js";
5
- import { positionalKeys } from "../../render/utils/keys-position.js";
6
- import { findDimensionValueType } from "../../value/types/dimensions.js";
7
- import { isNone } from "./utils/is-none.js";
8
- import { makeNoneKeyframesAnimatable } from "./utils/make-none-animatable.js";
9
- var DOMKeyframesResolver = class extends KeyframeResolver {
10
- constructor(e, n, r, i, a) {
11
- super(e, n, r, i, a, !0);
12
- }
13
- readKeyframes() {
14
- let { unresolvedKeyframes: a, element: c, name: l } = this;
15
- if (!c || !c.current) return;
16
- super.readKeyframes();
17
- for (let e = 0; e < a.length; e++) {
18
- let r = a[e];
19
- if (typeof r == "string" && (r = r.trim(), isCSSVariableToken(r))) {
20
- let n = getVariableValue(r, c.current);
21
- n !== void 0 && (a[e] = n), e === a.length - 1 && (this.finalKeyframe = r);
22
- }
23
- }
24
- if (this.resolveNoneKeyframes(), !positionalKeys.has(l) || a.length !== 2) return;
25
- let [u, d] = a, f = findDimensionValueType(u), p = findDimensionValueType(d);
26
- if (containsCSSVariable(u) !== containsCSSVariable(d) && positionalValues[l]) {
27
- this.needsMeasurement = !0;
28
- return;
29
- }
30
- if (f !== p) if (isNumOrPxType(f) && isNumOrPxType(p)) for (let e = 0; e < a.length; e++) {
31
- let n = a[e];
32
- typeof n == "string" && (a[e] = parseFloat(n));
33
- }
34
- else positionalValues[l] && (this.needsMeasurement = !0);
35
- }
36
- resolveNoneKeyframes() {
37
- let { unresolvedKeyframes: e, name: n } = this, r = [];
38
- for (let n = 0; n < e.length; n++) (e[n] === null || isNone(e[n])) && r.push(n);
39
- r.length && makeNoneKeyframesAnimatable(e, r, n);
40
- }
41
- measureInitialState() {
42
- let { element: e, unresolvedKeyframes: n, name: r } = this;
43
- if (!e || !e.current) return;
44
- r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = positionalValues[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
45
- let a = n[n.length - 1];
46
- a !== void 0 && e.getValue(r, a).jump(a, !1);
47
- }
48
- measureEndState() {
49
- let { element: e, name: n, unresolvedKeyframes: r } = this;
50
- if (!e || !e.current) return;
51
- let a = e.getValue(n);
52
- a && a.jump(this.measuredOrigin, !1);
53
- let o = r.length - 1, s = r[o];
54
- r[o] = positionalValues[n](e.measureViewportBox(), window.getComputedStyle(e.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), this.removedTransforms?.length && this.removedTransforms.forEach(([n, r]) => {
55
- e.getValue(n).set(r);
56
- }), this.resolveNoneKeyframes();
57
- }
58
- };
59
- export { DOMKeyframesResolver };
@@ -1,65 +0,0 @@
1
- import { frame } from "../../frameloop/frame.js";
2
- import { fillWildcards } from "./utils/fill-wildcards.js";
3
- import { removeNonTranslationalTransform } from "./utils/unit-conversion.js";
4
- var toResolve = /* @__PURE__ */ new Set(), isScheduled = !1, anyNeedsMeasurement = !1, isForced = !1;
5
- function measureAllKeyframes() {
6
- if (anyNeedsMeasurement) {
7
- let e = Array.from(toResolve).filter((e) => e.needsMeasurement), o = new Set(e.map((e) => e.element)), l = /* @__PURE__ */ new Map();
8
- o.forEach((e) => {
9
- let o = removeNonTranslationalTransform(e);
10
- o.length && (l.set(e, o), e.render());
11
- }), e.forEach((e) => e.measureInitialState()), o.forEach((e) => {
12
- e.render();
13
- let o = l.get(e);
14
- o && o.forEach(([o, s]) => {
15
- e.getValue(o)?.set(s);
16
- });
17
- }), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
18
- e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
19
- });
20
- }
21
- anyNeedsMeasurement = !1, isScheduled = !1, toResolve.forEach((e) => e.complete(isForced)), toResolve.clear();
22
- }
23
- function readAllKeyframes() {
24
- toResolve.forEach((e) => {
25
- e.readKeyframes(), e.needsMeasurement && (anyNeedsMeasurement = !0);
26
- });
27
- }
28
- function flushKeyframeResolvers() {
29
- isForced = !0, readAllKeyframes(), measureAllKeyframes(), isForced = !1;
30
- }
31
- var KeyframeResolver = class {
32
- constructor(e, o, s, c, l, u = !1) {
33
- this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = o, this.name = s, this.motionValue = c, this.element = l, this.isAsync = u;
34
- }
35
- scheduleResolve() {
36
- this.state = "scheduled", this.isAsync ? (toResolve.add(this), isScheduled || (isScheduled = !0, frame.read(readAllKeyframes), frame.resolveKeyframes(measureAllKeyframes))) : (this.readKeyframes(), this.complete());
37
- }
38
- readKeyframes() {
39
- let { unresolvedKeyframes: e, name: s, element: c, motionValue: l } = this;
40
- if (e[0] === null) {
41
- let o = l?.get(), u = e[e.length - 1];
42
- if (o !== void 0) e[0] = o;
43
- else if (c && s) {
44
- let o = c.readValue(s, u);
45
- o != null && (e[0] = o);
46
- }
47
- e[0] === void 0 && (e[0] = u), l && o === void 0 && l.set(e[0]);
48
- }
49
- fillWildcards(e);
50
- }
51
- setFinalKeyframe() {}
52
- measureInitialState() {}
53
- renderEndStyles() {}
54
- measureEndState() {}
55
- complete(e = !1) {
56
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), toResolve.delete(this);
57
- }
58
- cancel() {
59
- this.state === "scheduled" && (toResolve.delete(this), this.state = "pending");
60
- }
61
- resume() {
62
- this.state === "pending" && this.scheduleResolve();
63
- }
64
- };
65
- export { KeyframeResolver, flushKeyframeResolvers };
@@ -1,6 +0,0 @@
1
- var isNotNull = (e) => e !== null;
2
- function getFinalKeyframe(t, { repeat: n, repeatType: r = "loop" }, i, a = 1) {
3
- let o = t.filter(isNotNull), s = a < 0 || n && r !== "loop" && n % 2 == 1 ? 0 : o.length - 1;
4
- return !s || i === void 0 ? o[s] : i;
5
- }
6
- export { getFinalKeyframe };
@@ -1,6 +0,0 @@
1
- import { fillOffset } from "./fill.js";
2
- function defaultOffset(t) {
3
- let n = [0];
4
- return fillOffset(n, t.length - 1), n;
5
- }
6
- export { defaultOffset };
@@ -1,10 +0,0 @@
1
- import { progress } from "../../../../../../motion-utils/dist/es/progress.js";
2
- import { mixNumber } from "../../../utils/mix/number.js";
3
- function fillOffset(n, r) {
4
- let i = n[n.length - 1];
5
- for (let a = 1; a <= r; a++) {
6
- let o = progress(0, r, a);
7
- n.push(mixNumber(i, 1, o));
8
- }
9
- }
10
- export { fillOffset };
@@ -1,4 +0,0 @@
1
- function convertOffsetToTimes(e, t) {
2
- return e.map((e) => e * t);
3
- }
4
- export { convertOffsetToTimes };
@@ -1,4 +0,0 @@
1
- function fillWildcards(e) {
2
- for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
3
- }
4
- export { fillWildcards };
@@ -1,5 +0,0 @@
1
- import { isZeroValueString } from "../../../../../../motion-utils/dist/es/is-zero-value-string.js";
2
- function isNone(t) {
3
- return typeof t == "number" ? t === 0 : t === null ? !0 : t === "none" || t === "0" || isZeroValueString(t);
4
- }
5
- export { isNone };
@@ -1,16 +0,0 @@
1
- import { analyseComplexValue } from "../../../value/types/complex/index.js";
2
- import { getAnimatableNone } from "../../../value/types/utils/animatable-none.js";
3
- var invalidTemplates = new Set([
4
- "auto",
5
- "none",
6
- "0"
7
- ]);
8
- function makeNoneKeyframesAnimatable(r, i, a) {
9
- let o = 0, s;
10
- for (; o < r.length && !s;) {
11
- let n = r[o];
12
- typeof n == "string" && !invalidTemplates.has(n) && analyseComplexValue(n).values.length && (s = r[o]), o++;
13
- }
14
- if (s && a) for (let e of i) r[e] = getAnimatableNone(a, s);
15
- }
16
- export { makeNoneKeyframesAnimatable };
@@ -1,34 +0,0 @@
1
- import { number } from "../../../value/types/numbers/index.js";
2
- import { px } from "../../../value/types/numbers/units.js";
3
- import { parseValueFromTransform } from "../../../render/dom/parse-transform.js";
4
- import { transformPropOrder } from "../../../render/utils/keys-transform.js";
5
- var isNumOrPxType = (o) => o === number || o === px, transformKeys = new Set([
6
- "x",
7
- "y",
8
- "z"
9
- ]), nonTranslationalTransformKeys = transformPropOrder.filter((e) => !transformKeys.has(e));
10
- function removeNonTranslationalTransform(e) {
11
- let a = [];
12
- return nonTranslationalTransformKeys.forEach((o) => {
13
- let s = e.getValue(o);
14
- s !== void 0 && (a.push([o, s.get()]), s.set(o.startsWith("scale") ? 1 : 0));
15
- }), a;
16
- }
17
- var positionalValues = {
18
- width: ({ x: e }, { paddingLeft: a = "0", paddingRight: o = "0", boxSizing: s }) => {
19
- let c = e.max - e.min;
20
- return s === "border-box" ? c : c - parseFloat(a) - parseFloat(o);
21
- },
22
- height: ({ y: e }, { paddingTop: a = "0", paddingBottom: o = "0", boxSizing: s }) => {
23
- let c = e.max - e.min;
24
- return s === "border-box" ? c : c - parseFloat(a) - parseFloat(o);
25
- },
26
- top: (e, { top: a }) => parseFloat(a),
27
- left: (e, { left: a }) => parseFloat(a),
28
- bottom: ({ y: e }, { top: a }) => parseFloat(a) + (e.max - e.min),
29
- right: ({ x: e }, { left: a }) => parseFloat(a) + (e.max - e.min),
30
- x: (e, { transform: a }) => parseValueFromTransform(a, "x"),
31
- y: (e, { transform: a }) => parseValueFromTransform(a, "y")
32
- };
33
- positionalValues.translateX = positionalValues.x, positionalValues.translateY = positionalValues.y;
34
- export { isNumOrPxType, positionalValues, removeNonTranslationalTransform };
@@ -1,3 +0,0 @@
1
- import { camelToDash } from "../../render/dom/utils/camel-to-dash.js";
2
- var optimizedAppearDataId = "framerAppearId", optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
3
- export { optimizedAppearDataAttribute, optimizedAppearDataId };
@@ -1,5 +0,0 @@
1
- import { optimizedAppearDataAttribute } from "./data-id.js";
2
- function getOptimisedAppearId(t) {
3
- return t.props[optimizedAppearDataAttribute];
4
- }
5
- export { getOptimisedAppearId };