@code0-tech/pictor 1.1.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 (333) hide show
  1. package/dist/_virtual/rolldown_runtime.js +3 -12
  2. package/dist/components/alert/Alert.js +19 -20
  3. package/dist/components/aurora/Aurora.js +15 -16
  4. package/dist/components/avatar/Avatar.js +44 -44
  5. package/dist/components/badge/Badge.js +36 -37
  6. package/dist/components/button/Button.js +16 -17
  7. package/dist/components/button-group/ButtonGroup.js +15 -16
  8. package/dist/components/card/Card.js +21 -22
  9. package/dist/components/card/CardSection.js +15 -15
  10. package/dist/components/chart/Chart.js +82 -82
  11. package/dist/components/chart/LineChart.js +50 -51
  12. package/dist/components/col/Col.js +9 -10
  13. package/dist/components/command/Command.js +32 -33
  14. package/dist/components/container/Container.js +9 -10
  15. package/dist/components/context-menu/ContextMenu.js +76 -77
  16. package/dist/components/data-table/DataTableColumn.js +9 -10
  17. package/dist/components/data-table/DataTableFilterInput.js +83 -83
  18. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +26 -27
  19. package/dist/components/data-table/DataTableHeader.js +20 -21
  20. package/dist/components/data-table/DataTablePagination.js +27 -28
  21. package/dist/components/dialog/Dialog.js +61 -62
  22. package/dist/components/file-tabs/FileTabs.js +51 -52
  23. package/dist/components/flex/Flex.js +9 -10
  24. package/dist/components/form/CheckboxInput.js +50 -51
  25. package/dist/components/form/ColorInput.js +242 -242
  26. package/dist/components/form/DateInput.js +55 -55
  27. package/dist/components/form/EditorInput.js +300 -300
  28. package/dist/components/form/FileInput.js +67 -68
  29. package/dist/components/form/InputDescription.js +3 -4
  30. package/dist/components/form/InputLabel.js +9 -10
  31. package/dist/components/form/InputMessage.js +6 -7
  32. package/dist/components/form/InputWrapper.js +37 -38
  33. package/dist/components/form/PasswordInput.js +2 -2
  34. package/dist/components/form/PinInput.js +30 -31
  35. package/dist/components/form/RadioGroup.js +22 -23
  36. package/dist/components/form/RadioInput.js +19 -20
  37. package/dist/components/form/SelectInput.js +55 -56
  38. package/dist/components/form/TagInput.js +44 -44
  39. package/dist/components/fullscreen/FullScreen.js +14 -15
  40. package/dist/components/gantt/Gantt.js +63 -64
  41. package/dist/components/gantt/GanttGroup.js +2 -2
  42. package/dist/components/gantt/GanttHeader.js +40 -41
  43. package/dist/components/gantt/GanttItem.js +11 -12
  44. package/dist/components/icon/Icon.js +22 -22
  45. package/dist/components/json-view/JsonView.js +37 -38
  46. package/dist/components/layout/Layout.js +64 -65
  47. package/dist/components/menu/Menu.js +91 -92
  48. package/dist/components/quote/Quote.js +29 -30
  49. package/dist/components/resizable/Resizable.js +22 -23
  50. package/dist/components/row/Row.js +9 -10
  51. package/dist/components/scroll-area/ScrollArea.js +46 -47
  52. package/dist/components/segmented-control/SegmentedControl.js +35 -35
  53. package/dist/components/spacing/Spacing.js +8 -9
  54. package/dist/components/tab/Tab.js +53 -53
  55. package/dist/components/text/Text.js +9 -10
  56. package/dist/components/toast/Toast.js +47 -47
  57. package/dist/components/tooltip/Tooltip.js +35 -36
  58. package/dist/utils/contextStore.js +31 -32
  59. package/dist/utils/motion.js +39 -40
  60. package/package.json +4 -4
  61. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +0 -6
  62. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  63. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -51
  64. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -58
  65. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -18
  66. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -9
  67. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -4
  68. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -4
  69. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -8
  70. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -15
  71. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -4
  72. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -13
  73. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -4
  74. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -4
  75. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -6
  76. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -9
  77. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
  78. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
  79. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -57
  80. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -25
  81. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -18
  82. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -136
  83. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -40
  84. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
  85. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -37
  86. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -23
  87. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -7
  88. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -49
  89. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -13
  90. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -11
  91. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -59
  92. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -7
  93. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
  94. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
  95. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
  96. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -68
  97. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -2
  98. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
  99. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -56
  100. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -48
  101. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -5
  102. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -8
  103. package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +0 -3
  104. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -11
  105. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -5
  106. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -6
  107. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
  108. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -17
  109. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -5
  110. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -9
  111. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -24
  112. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -7
  113. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -28
  114. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
  115. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -9
  116. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -6
  117. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -6
  118. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -2
  119. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -2
  120. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -4
  121. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -11
  122. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -23
  123. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -7
  124. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -5
  125. package/dist/node_modules/motion/dist/es/react.js +0 -196
  126. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -105
  127. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -127
  128. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -82
  129. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -26
  130. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -8
  131. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -11
  132. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -30
  133. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -20
  134. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -164
  135. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -7
  136. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -14
  137. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -4
  138. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -7
  139. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -43
  140. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -54
  141. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -24
  142. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -19
  143. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -59
  144. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -65
  145. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -6
  146. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -6
  147. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -10
  148. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -4
  149. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -4
  150. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -5
  151. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  152. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -34
  153. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -3
  154. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -5
  155. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -20
  156. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -5
  157. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -16
  158. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -23
  159. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -25
  160. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
  161. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -3
  162. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -5
  163. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -17
  164. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -4
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -14
  166. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -11
  167. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -2
  168. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -9
  169. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -33
  170. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -17
  171. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -22
  172. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -8
  173. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -6
  174. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -6
  175. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -6
  176. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -15
  177. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -4
  178. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -28
  179. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -4
  180. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -3
  181. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -11
  182. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -30
  183. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -13
  184. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -8
  185. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -9
  186. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -34
  187. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  188. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -19
  189. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -26
  190. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -2
  191. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -2
  192. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -2
  193. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -14
  194. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -23
  195. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -37
  196. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -10
  197. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -41
  198. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -28
  199. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -27
  200. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -16
  201. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -26
  202. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -11
  203. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -20
  204. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -580
  205. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -5
  206. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -49
  207. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -11
  208. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -11
  209. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -15
  210. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -10
  211. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -2
  212. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -4
  213. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -17
  214. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -16
  215. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -10
  216. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -7
  217. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -201
  218. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -26
  219. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -2
  220. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -54
  221. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -5
  222. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  223. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  224. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -26
  225. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -34
  226. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -6
  227. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -9
  228. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -2
  229. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -38
  230. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -20
  231. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -26
  232. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -2
  233. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -13
  234. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -7
  235. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -12
  236. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -133
  237. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -17
  238. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -4
  239. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -10
  240. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -6
  241. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -2
  242. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -4
  243. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -11
  244. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -20
  245. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -19
  246. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -9
  247. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -2
  248. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -6
  249. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -18
  250. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -17
  251. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -8
  252. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -10
  253. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -35
  254. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -20
  255. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -6
  256. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +0 -5
  257. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +0 -7
  258. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -10
  259. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -31
  260. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -5
  261. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -5
  262. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -5
  263. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -28
  264. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -50
  265. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -4
  266. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -6
  267. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -2
  268. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -5
  269. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -12
  270. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -2
  271. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -10
  272. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -7
  273. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -3
  274. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -90
  275. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -5
  276. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -17
  277. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -19
  278. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -10
  279. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -13
  280. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -13
  281. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -14
  282. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  283. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -50
  284. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -12
  285. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -14
  286. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -6
  287. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -22
  288. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -62
  289. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -30
  290. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -13
  291. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -10
  292. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -2
  293. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
  294. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -2
  295. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -10
  296. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -2
  297. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -2
  298. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -4
  299. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -2
  300. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -2
  301. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -2
  302. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -5
  303. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -11
  304. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -5
  305. package/dist/node_modules/motion-utils/dist/es/array.js +0 -8
  306. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -2
  307. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -3
  308. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -5
  309. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -4
  310. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -16
  311. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -3
  312. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -2
  313. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -2
  314. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -2
  315. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -2
  316. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -29
  317. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -8
  318. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -4
  319. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -2
  320. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -2
  321. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -2
  322. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -2
  323. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -6
  324. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -2
  325. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -2
  326. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -5
  327. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -24
  328. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -2
  329. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -2
  330. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -6
  331. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  332. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -18
  333. package/dist/node_modules/react/compiler-runtime.js +0 -8
@@ -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 };
@@ -1,20 +0,0 @@
1
- var WithPromise = class {
2
- constructor() {
3
- this.updateFinished();
4
- }
5
- get finished() {
6
- return this._finished;
7
- }
8
- updateFinished() {
9
- this._finished = new Promise((e) => {
10
- this.resolve = e;
11
- });
12
- }
13
- notifyFinished() {
14
- this.resolve();
15
- }
16
- then(e, t) {
17
- return this.finished.then(e, t);
18
- }
19
- };
20
- export { WithPromise };
@@ -1,5 +0,0 @@
1
- function calcChildStagger(e, t, n, r = 0, i = 1) {
2
- let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
3
- return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
4
- }
5
- export { calcChildStagger };
@@ -1,16 +0,0 @@
1
- import { warning } from "../../../../../motion-utils/dist/es/errors.js";
2
- import { isGenerator } from "../generators/utils/is-generator.js";
3
- import { isAnimatable } from "./is-animatable.js";
4
- function hasKeyframesChanged(e) {
5
- let n = e[0];
6
- if (e.length === 1) return !0;
7
- for (let r = 0; r < e.length; r++) if (e[r] !== n) return !0;
8
- }
9
- function canAnimate(i, a, o, s) {
10
- let c = i[0];
11
- if (c === null) return !1;
12
- if (a === "display" || a === "visibility") return !0;
13
- let l = i[i.length - 1], u = isAnimatable(c, a), d = isAnimatable(l, a);
14
- return warning(u === d, `You are trying to animate ${a} from "${c}" to "${l}". "${u ? l : c}" is not an animatable value.`, "value-not-animatable"), !u || !d ? !1 : hasKeyframesChanged(i) || (o === "spring" || isGenerator(o)) && s;
15
- }
16
- export { canAnimate };
@@ -1,23 +0,0 @@
1
- import { invariant } from "../../../../../motion-utils/dist/es/errors.js";
2
- import { isNumericalString } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
3
- import { isCSSVariableToken } from "./is-css-variable.js";
4
- var splitCSSVariableRegex = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
5
- function parseCSSVariable(e) {
6
- let n = splitCSSVariableRegex.exec(e);
7
- if (!n) return [,];
8
- let [, r, a, o] = n;
9
- return [`--${r ?? a}`, o];
10
- }
11
- var maxDepth = 4;
12
- function getVariableValue(i, s, c = 1) {
13
- invariant(c <= maxDepth, `Max CSS variable fallback depth detected in property "${i}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
14
- let [l, u] = parseCSSVariable(i);
15
- if (!l) return;
16
- let d = window.getComputedStyle(s).getPropertyValue(l);
17
- if (d) {
18
- let e = d.trim();
19
- return isNumericalString(e) ? parseFloat(e) : e;
20
- }
21
- return isCSSVariableToken(u) ? getVariableValue(u, s, c + 1) : u;
22
- }
23
- export { getVariableValue, parseCSSVariable };
@@ -1,25 +0,0 @@
1
- import { transformProps } from "../../render/utils/keys-transform.js";
2
- var underDampedSpring = {
3
- type: "spring",
4
- stiffness: 500,
5
- damping: 25,
6
- restSpeed: 10
7
- }, criticallyDampedSpring = (e) => ({
8
- type: "spring",
9
- stiffness: 550,
10
- damping: e === 0 ? 2 * Math.sqrt(550) : 30,
11
- restSpeed: 10
12
- }), keyframesTransition = {
13
- type: "keyframes",
14
- duration: .8
15
- }, ease = {
16
- type: "keyframes",
17
- ease: [
18
- .25,
19
- .1,
20
- .35,
21
- 1
22
- ],
23
- duration: .3
24
- }, getDefaultTransition = (a, { keyframes: o }) => o.length > 2 ? keyframesTransition : transformProps.has(a) ? a.startsWith("scale") ? criticallyDampedSpring(o[1]) : underDampedSpring : ease;
25
- export { getDefaultTransition };
@@ -1,6 +0,0 @@
1
- import { resolveTransition } from "./resolve-transition.js";
2
- function getValueTransition(t, n) {
3
- let r = t?.[n] ?? t?.default ?? t;
4
- return r === t ? r : resolveTransition(r, t);
5
- }
6
- export { getValueTransition };
@@ -1,3 +0,0 @@
1
- import { complex } from "../../value/types/complex/index.js";
2
- var isAnimatable = (t, n) => n === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (complex.test(t) || t === "0") && !t.startsWith("url("));
3
- export { isAnimatable };
@@ -1,5 +0,0 @@
1
- var checkStringStartsWith = (e) => (a) => typeof a == "string" && a.startsWith(e), isCSSVariableName = /* @__PURE__ */ checkStringStartsWith("--"), startsAsVariableToken = /* @__PURE__ */ checkStringStartsWith("var(--"), isCSSVariableToken = (e) => startsAsVariableToken(e) ? singleCssVariableRegex.test(e.split("/*")[0].trim()) : !1, singleCssVariableRegex = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2
- function containsCSSVariable(e) {
3
- return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
4
- }
5
- export { containsCSSVariable, isCSSVariableName, isCSSVariableToken };
@@ -1,17 +0,0 @@
1
- var orchestrationKeys = 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 isTransitionDefined(t) {
14
- for (let n in t) if (!orchestrationKeys.has(n)) return !0;
15
- return !1;
16
- }
17
- export { isTransitionDefined };
@@ -1,4 +0,0 @@
1
- function makeAnimationInstant(e) {
2
- e.duration = 0, e.type = "keyframes";
3
- }
4
- export { makeAnimationInstant };
@@ -1,14 +0,0 @@
1
- import { spring } from "../generators/spring.js";
2
- import { inertia } from "../generators/inertia.js";
3
- import { keyframes } from "../generators/keyframes.js";
4
- var transitionTypeMap = {
5
- decay: inertia,
6
- inertia,
7
- tween: keyframes,
8
- keyframes,
9
- spring
10
- };
11
- function replaceTransitionType(e) {
12
- typeof e.type == "string" && (e.type = transitionTypeMap[e.type]);
13
- }
14
- export { replaceTransitionType };
@@ -1,11 +0,0 @@
1
- function resolveTransition(e, t) {
2
- if (e?.inherit && t) {
3
- let { inherit: n, ...r } = e;
4
- return {
5
- ...t,
6
- ...r
7
- };
8
- }
9
- return e;
10
- }
11
- export { resolveTransition };
@@ -1,2 +0,0 @@
1
- var cubicBezierAsString = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`;
2
- export { cubicBezierAsString };
@@ -1,9 +0,0 @@
1
- import { isBezierDefinition } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
2
- import { generateLinearEasing } from "../utils/linear.js";
3
- import { supportsLinearEasing } from "../../../utils/supports/linear-easing.js";
4
- import { cubicBezierAsString } from "./cubic-bezier.js";
5
- import { supportedWaapiEasing } from "./supported.js";
6
- function mapEasingToNativeEasing(o, s) {
7
- if (o) return typeof o == "function" ? supportsLinearEasing() ? generateLinearEasing(o, s) : "ease-out" : isBezierDefinition(o) ? cubicBezierAsString(o) : Array.isArray(o) ? o.map((e) => mapEasingToNativeEasing(e, s) || supportedWaapiEasing.easeOut) : supportedWaapiEasing[o];
8
- }
9
- export { mapEasingToNativeEasing };
@@ -1,33 +0,0 @@
1
- import { cubicBezierAsString } from "./cubic-bezier.js";
2
- var supportedWaapiEasing = {
3
- linear: "linear",
4
- ease: "ease",
5
- easeIn: "ease-in",
6
- easeOut: "ease-out",
7
- easeInOut: "ease-in-out",
8
- circIn: /* @__PURE__ */ cubicBezierAsString([
9
- 0,
10
- .65,
11
- .55,
12
- 1
13
- ]),
14
- circOut: /* @__PURE__ */ cubicBezierAsString([
15
- .55,
16
- 0,
17
- 1,
18
- .45
19
- ]),
20
- backIn: /* @__PURE__ */ cubicBezierAsString([
21
- .31,
22
- .01,
23
- .66,
24
- -.59
25
- ]),
26
- backOut: /* @__PURE__ */ cubicBezierAsString([
27
- .33,
28
- 1.53,
29
- .69,
30
- .99
31
- ])
32
- };
33
- export { supportedWaapiEasing };
@@ -1,17 +0,0 @@
1
- import { mapEasingToNativeEasing } from "./easing/map-easing.js";
2
- function startWaapiAnimation(t, n, r, { delay: i = 0, duration: a = 300, repeat: o = 0, repeatType: s = "loop", ease: c = "easeOut", times: l } = {}, u = void 0) {
3
- let d = { [n]: r };
4
- l && (d.offset = l);
5
- let f = mapEasingToNativeEasing(c, a);
6
- Array.isArray(f) && (d.easing = f);
7
- let p = {
8
- delay: i,
9
- duration: a,
10
- easing: Array.isArray(f) ? "linear" : f,
11
- fill: "both",
12
- iterations: o + 1,
13
- direction: s === "reverse" ? "alternate" : "normal"
14
- };
15
- return u && (p.pseudoElement = u), t.animate(d, p);
16
- }
17
- export { startWaapiAnimation };
@@ -1,22 +0,0 @@
1
- import { memo } from "../../../../../../motion-utils/dist/es/memo.js";
2
- import { acceleratedValues } from "../utils/accelerated-values.js";
3
- import { hasBrowserOnlyColors } from "../utils/is-browser-color.js";
4
- var colorProperties = new Set([
5
- "color",
6
- "backgroundColor",
7
- "outlineColor",
8
- "fill",
9
- "stroke",
10
- "borderColor",
11
- "borderTopColor",
12
- "borderRightColor",
13
- "borderBottomColor",
14
- "borderLeftColor"
15
- ]), supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
16
- function supportsBrowserAnimation(e) {
17
- let { motionValue: a, name: o, repeatDelay: s, repeatType: c, damping: l, type: u, keyframes: d } = e, f = a?.owner?.current;
18
- if (!(f instanceof HTMLElement) && !(f instanceof SVGElement)) return !1;
19
- let { onUpdate: p, transformTemplate: m } = a.owner.getProps();
20
- return supportsWaapi() && o && (acceleratedValues.has(o) || colorProperties.has(o) && hasBrowserOnlyColors(d)) && (o !== "transform" || !m) && !p && !s && c !== "mirror" && l !== 0 && u !== "inertia";
21
- }
22
- export { supportsBrowserAnimation };
@@ -1,8 +0,0 @@
1
- var acceleratedValues = new Set([
2
- "opacity",
3
- "clipPath",
4
- "filter",
5
- "transform",
6
- "backgroundColor"
7
- ]);
8
- export { acceleratedValues };
@@ -1,6 +0,0 @@
1
- import { supportsLinearEasing } from "../../../utils/supports/linear-easing.js";
2
- import { isGenerator } from "../../generators/utils/is-generator.js";
3
- function applyGeneratorOptions({ type: n, ...r }) {
4
- return isGenerator(n) && supportsLinearEasing() ? n.applyToOptions(r) : (r.duration ??= 300, r.ease ??= "easeOut", r);
5
- }
6
- export { applyGeneratorOptions };
@@ -1,6 +0,0 @@
1
- var browserColorFunctions = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
2
- function hasBrowserOnlyColors(t) {
3
- for (let n = 0; n < t.length; n++) if (typeof t[n] == "string" && browserColorFunctions.test(t[n])) return !0;
4
- return !1;
5
- }
6
- export { hasBrowserOnlyColors };
@@ -1,6 +0,0 @@
1
- var generateLinearEasing = (e, t, n = 10) => {
2
- let r = "", i = Math.max(Math.round(t / n), 2);
3
- for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
4
- return `linear(${r.substring(0, r.length - 2)})`;
5
- };
6
- export { generateLinearEasing };