@vkzstudio/muza-ui 1.0.8 → 1.0.10

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 (275) hide show
  1. package/dist/components/Button/Button.js +19 -19
  2. package/dist/components/Button/ButtonLoader.d.ts +7 -0
  3. package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
  4. package/dist/components/Button/ButtonLoader.js +40 -0
  5. package/dist/components/Button/buttonVariants.d.ts.map +1 -1
  6. package/dist/components/Button/buttonVariants.js +0 -1
  7. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  8. package/dist/components/Icons/CustomIcons.d.ts +1 -0
  9. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  10. package/dist/components/Icons/CustomIcons.js +39 -28
  11. package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
  12. package/dist/components/SwipeButton/SwipeButton.js +1 -1
  13. package/dist/components/TextEditor/EditorToolbar.d.ts +18 -0
  14. package/dist/components/TextEditor/EditorToolbar.d.ts.map +1 -0
  15. package/dist/components/TextEditor/EditorToolbar.js +175 -0
  16. package/dist/components/TextEditor/LinkBubbleMenu.d.ts +52 -0
  17. package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -0
  18. package/dist/components/TextEditor/LinkBubbleMenu.js +97 -0
  19. package/dist/components/TextEditor/TextEditor.d.ts +134 -0
  20. package/dist/components/TextEditor/TextEditor.d.ts.map +1 -0
  21. package/dist/components/TextEditor/TextEditor.js +240 -0
  22. package/dist/components/TextEditor/TextEditor.stories.d.ts +51 -0
  23. package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -0
  24. package/dist/components/TextEditor/ToolbarButton.d.ts +38 -0
  25. package/dist/components/TextEditor/ToolbarButton.d.ts.map +1 -0
  26. package/dist/components/TextEditor/ToolbarButton.js +68 -0
  27. package/dist/components/TextEditor/ToolbarSeparator.d.ts +22 -0
  28. package/dist/components/TextEditor/ToolbarSeparator.d.ts.map +1 -0
  29. package/dist/components/TextEditor/ToolbarSeparator.js +23 -0
  30. package/dist/components/TextEditor/index.d.ts +4 -0
  31. package/dist/components/TextEditor/index.d.ts.map +1 -0
  32. package/dist/components/TextEditor/useLinkEditor.d.ts +37 -0
  33. package/dist/components/TextEditor/useLinkEditor.d.ts.map +1 -0
  34. package/dist/components/TextEditor/useLinkEditor.js +32 -0
  35. package/dist/components/index.d.ts +1 -0
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/index.js +140 -132
  38. package/dist/muza-ui.css +1 -1
  39. package/dist/node_modules/@popperjs/core/lib/createPopper.js +122 -0
  40. package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +18 -0
  41. package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
  42. package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
  43. package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
  44. package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
  45. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
  46. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
  47. package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
  48. package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
  49. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
  50. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
  51. package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
  52. package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
  53. package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
  54. package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
  55. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
  56. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
  57. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
  58. package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
  59. package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
  60. package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
  61. package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
  62. package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
  63. package/dist/node_modules/@popperjs/core/lib/enums.js +31 -0
  64. package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
  65. package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +37 -0
  66. package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
  67. package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
  68. package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +74 -0
  69. package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +44 -0
  70. package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +31 -0
  71. package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
  72. package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
  73. package/dist/node_modules/@popperjs/core/lib/popper.js +27 -0
  74. package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
  75. package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +54 -0
  76. package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +13 -0
  77. package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +33 -0
  78. package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
  79. package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +6 -0
  80. package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
  81. package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
  82. package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
  83. package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
  84. package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
  85. package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +6 -0
  86. package/dist/node_modules/@popperjs/core/lib/utils/math.js +6 -0
  87. package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +15 -0
  88. package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
  89. package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +31 -0
  90. package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
  91. package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +9 -0
  92. package/dist/node_modules/@popperjs/core/lib/utils/within.js +12 -0
  93. package/dist/node_modules/@tiptap/core/dist/index.js +2857 -0
  94. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +45 -0
  95. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +76 -0
  96. package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +129 -0
  97. package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +55 -0
  98. package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
  99. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +136 -0
  100. package/dist/node_modules/@tiptap/extension-document/dist/index.js +10 -0
  101. package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +21 -0
  102. package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +25 -0
  103. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +56 -0
  104. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +55 -0
  105. package/dist/node_modules/@tiptap/extension-history/dist/index.js +36 -0
  106. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -0
  107. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +75 -0
  108. package/dist/node_modules/@tiptap/extension-link/dist/index.js +272 -0
  109. package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +34 -0
  110. package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +73 -0
  111. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +34 -0
  112. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +53 -0
  113. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +64 -0
  114. package/dist/node_modules/@tiptap/extension-text/dist/index.js +9 -0
  115. package/dist/node_modules/@tiptap/react/dist/index.js +709 -0
  116. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +30 -0
  117. package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
  118. package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
  119. package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
  120. package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
  121. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
  122. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
  123. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
  124. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +34 -26
  125. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +30 -25
  126. package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
  127. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
  128. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
  129. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
  130. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
  131. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
  132. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
  133. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
  135. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
  136. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
  139. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
  140. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
  141. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
  142. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
  143. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
  144. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
  145. package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
  146. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
  147. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
  148. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
  149. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
  150. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
  151. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
  152. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
  153. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
  154. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
  155. package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
  156. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  157. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
  158. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
  159. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
  160. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  161. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
  162. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
  163. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
  164. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
  166. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
  167. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
  168. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
  169. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
  170. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
  171. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
  172. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
  173. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
  174. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
  175. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
  176. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  177. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
  178. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
  179. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  180. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
  181. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  182. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
  183. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
  184. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  188. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
  189. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
  190. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  191. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
  192. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  193. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
  194. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
  195. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
  196. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
  197. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  198. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  199. package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
  200. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  201. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  202. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  203. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  204. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  205. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  206. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  207. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  208. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  209. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  210. package/dist/node_modules/prosemirror-view/dist/index.js +3794 -0
  211. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  212. package/dist/node_modules/tippy.js/dist/tippy.esm.js +813 -0
  213. package/dist/node_modules/w3c-keyname/index.js +93 -0
  214. package/dist/translations/locales/cs.d.ts.map +1 -1
  215. package/dist/translations/locales/cs.js +18 -0
  216. package/dist/translations/locales/en.d.ts.map +1 -1
  217. package/dist/translations/locales/en.js +18 -0
  218. package/dist/translations/locales/sk.d.ts.map +1 -1
  219. package/dist/translations/locales/sk.js +18 -0
  220. package/dist/translations/types.d.ts +22 -0
  221. package/dist/translations/types.d.ts.map +1 -1
  222. package/package.json +17 -1
  223. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
  225. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
  226. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
  227. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  228. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
  229. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
  230. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
  231. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
  232. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
  233. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
  234. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  236. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
  237. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  238. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
  239. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
  240. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
  241. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
  242. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
  243. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
  244. /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
  245. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
  246. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
  247. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
  248. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
  249. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
  250. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
  251. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
  252. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
  253. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
  254. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
  255. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
  256. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
  257. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
  258. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
  259. /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
  260. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
  261. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
  262. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
  263. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
  264. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
  265. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
  266. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
  267. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
  268. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
  269. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
  270. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
  271. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
  272. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
  273. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
  274. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
  275. /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.js +0 -0
@@ -1,5 +1,5 @@
1
- import { complex as f } from "../../../../../motion-dom/dist/es/value/types/complex/index.js";
2
- import { mixNumber as i } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
1
+ import { complex as f } from "../../value/types/complex/index.js";
2
+ import { mixNumber as i } from "../../utils/mix/number.js";
3
3
  const y = {
4
4
  correct: (e, { treeScale: c, projectionDelta: t }) => {
5
5
  const a = e, o = f.parse(e);
@@ -0,0 +1,21 @@
1
+ import { correctBorderRadius as o } from "./scale-border-radius.js";
2
+ import { correctBoxShadow as r } from "./scale-box-shadow.js";
3
+ const e = {
4
+ borderRadius: {
5
+ ...o,
6
+ applyTo: [
7
+ "borderTopLeftRadius",
8
+ "borderTopRightRadius",
9
+ "borderBottomLeftRadius",
10
+ "borderBottomRightRadius"
11
+ ]
12
+ },
13
+ borderTopLeftRadius: o,
14
+ borderTopRightRadius: o,
15
+ borderBottomLeftRadius: o,
16
+ borderBottomRightRadius: o,
17
+ boxShadow: r
18
+ };
19
+ export {
20
+ e as scaleCorrectors
21
+ };
@@ -1,26 +1,25 @@
1
- import { featureDefinitions as d } from "../motion/features/definitions.js";
2
- import { createBox as v } from "../projection/geometry/models.js";
3
- import { initPrefersReducedMotion as g } from "../utils/reduced-motion/index.js";
4
- import { hasReducedMotionListener as C, prefersReducedMotion as M } from "../utils/reduced-motion/state.js";
5
- import { visualElementStore as S } from "./store.js";
6
- import { isControllingVariants as b, isVariantNode as T } from "./utils/is-controlling-variants.js";
7
- import { updateMotionValuesFromProps as P } from "./utils/motion-values.js";
8
- import { resolveVariantFromProps as w } from "./utils/resolve-variants.js";
9
- import { KeyframeResolver as F } from "../../../../motion-dom/dist/es/animation/keyframes/KeyframesResolver.js";
10
- import { time as B } from "../../../../motion-dom/dist/es/frameloop/sync-time.js";
11
- import { frame as p, cancelFrame as c } from "../../../../motion-dom/dist/es/frameloop/frame.js";
12
- import { isMotionValue as h } from "../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
13
- import { warnOnce as N } from "../../../../motion-utils/dist/es/warn-once.js";
14
- import { transformProps as R } from "../../../../motion-dom/dist/es/render/utils/keys-transform.js";
15
- import { motionValue as E } from "../../../../motion-dom/dist/es/value/index.js";
16
- import { isNumericalString as x } from "../../../../motion-utils/dist/es/is-numerical-string.js";
17
- import { isZeroValueString as A } from "../../../../motion-utils/dist/es/is-zero-value-string.js";
18
- import { findValueType as j } from "../../../../motion-dom/dist/es/value/types/utils/find.js";
19
- import { complex as y } from "../../../../motion-dom/dist/es/value/types/complex/index.js";
20
- import { getAnimatableNone as I } from "../../../../motion-dom/dist/es/value/types/utils/animatable-none.js";
21
- import { SubscriptionManager as U } from "../../../../motion-utils/dist/es/subscription-manager.js";
22
- import { microtask as D } from "../../../../motion-dom/dist/es/frameloop/microtask.js";
23
- const f = [
1
+ import { microtask as g } from "../frameloop/microtask.js";
2
+ import { time as C } from "../frameloop/sync-time.js";
3
+ import { motionValue as M } from "../value/index.js";
4
+ import { isMotionValue as h } from "../value/utils/is-motion-value.js";
5
+ import { KeyframeResolver as S } from "../animation/keyframes/KeyframesResolver.js";
6
+ import { transformProps as b } from "./utils/keys-transform.js";
7
+ import { complex as T } from "../value/types/complex/index.js";
8
+ import { findValueType as w } from "../value/types/utils/find.js";
9
+ import { getAnimatableNone as P } from "../value/types/utils/animatable-none.js";
10
+ import { createBox as F } from "../projection/geometry/models.js";
11
+ import { initPrefersReducedMotion as R } from "./utils/reduced-motion/index.js";
12
+ import { visualElementStore as B } from "./store.js";
13
+ import { isControllingVariants as N, isVariantNode as E } from "./utils/is-controlling-variants.js";
14
+ import { updateMotionValuesFromProps as x } from "./utils/motion-values.js";
15
+ import { resolveVariantFromProps as A } from "./utils/resolve-variants.js";
16
+ import { hasReducedMotionListener as j, prefersReducedMotion as y } from "./utils/reduced-motion/state.js";
17
+ import { frame as f, cancelFrame as c } from "../frameloop/frame.js";
18
+ import { warnOnce as I } from "../../../../motion-utils/dist/es/warn-once.js";
19
+ import { isNumericalString as D } from "../../../../motion-utils/dist/es/is-numerical-string.js";
20
+ import { isZeroValueString as U } from "../../../../motion-utils/dist/es/is-zero-value-string.js";
21
+ import { SubscriptionManager as L } from "../../../../motion-utils/dist/es/subscription-manager.js";
22
+ const m = [
24
23
  "AnimationStart",
25
24
  "AnimationComplete",
26
25
  "Update",
@@ -29,7 +28,14 @@ const f = [
29
28
  "LayoutAnimationStart",
30
29
  "LayoutAnimationComplete"
31
30
  ];
32
- class ht {
31
+ let u = {};
32
+ function at(l) {
33
+ u = l;
34
+ }
35
+ function ht() {
36
+ return u;
37
+ }
38
+ class ut {
33
39
  /**
34
40
  * This method takes React props and returns found MotionValues. For example, HTML
35
41
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -40,24 +46,24 @@ class ht {
40
46
  scrapeMotionValuesFromProps(t, e, i) {
41
47
  return {};
42
48
  }
43
- constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: r, visualState: n }, m = {}) {
44
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = F, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
49
+ constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: r, visualState: n }, V = {}) {
50
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = S, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
45
51
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
46
52
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
47
- const o = B.now();
48
- this.renderScheduledAt < o && (this.renderScheduledAt = o, p.render(this.render, !1, !0));
53
+ const o = C.now();
54
+ this.renderScheduledAt < o && (this.renderScheduledAt = o, f.render(this.render, !1, !0));
49
55
  };
50
- const { latestValues: a, renderState: V } = n;
51
- this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = e.initial ? { ...a } : {}, this.renderState = V, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.options = m, this.blockInitialAnimation = !!r, this.isControllingVariants = b(e), this.isVariantNode = T(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
52
- const { willChange: O, ...u } = this.scrapeMotionValuesFromProps(e, {}, this);
53
- for (const o in u) {
54
- const l = u[o];
55
- a[o] !== void 0 && h(l) && l.set(a[o]);
56
+ const { latestValues: a, renderState: v } = n;
57
+ this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = e.initial ? { ...a } : {}, this.renderState = v, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.options = V, this.blockInitialAnimation = !!r, this.isControllingVariants = N(e), this.isVariantNode = E(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
58
+ const { willChange: O, ...d } = this.scrapeMotionValuesFromProps(e, {}, this);
59
+ for (const o in d) {
60
+ const p = d[o];
61
+ a[o] !== void 0 && h(p) && p.set(a[o]);
56
62
  }
57
63
  }
58
64
  mount(t) {
59
65
  var e;
60
- this.current = t, S.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((i, s) => this.bindToMotionValue(s, i)), C.current || g(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : M.current, process.env.NODE_ENV !== "production" && N(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), (e = this.parent) == null || e.addChild(this), this.update(this.props, this.presenceContext);
66
+ this.current = t, B.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((i, s) => this.bindToMotionValue(s, i)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (j.current || R(), this.shouldReduceMotion = y.current), process.env.NODE_ENV !== "production" && I(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), (e = this.parent) == null || e.addChild(this), this.update(this.props, this.presenceContext);
61
67
  }
62
68
  unmount() {
63
69
  var t;
@@ -78,13 +84,13 @@ class ht {
78
84
  }
79
85
  bindToMotionValue(t, e) {
80
86
  this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
81
- const i = R.has(t);
87
+ const i = b.has(t);
82
88
  i && this.onBindTransform && this.onBindTransform();
83
89
  const s = e.on("change", (n) => {
84
- this.latestValues[t] = n, this.props.onUpdate && p.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
90
+ this.latestValues[t] = n, this.props.onUpdate && f.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
85
91
  });
86
92
  let r;
87
- window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
93
+ typeof window < "u" && window.MotionCheckAppearSync && (r = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
88
94
  s(), r && r(), e.owner && e.stop();
89
95
  });
90
96
  }
@@ -93,8 +99,8 @@ class ht {
93
99
  }
94
100
  updateFeatures() {
95
101
  let t = "animation";
96
- for (t in d) {
97
- const e = d[t];
102
+ for (t in u) {
103
+ const e = u[t];
98
104
  if (!e)
99
105
  continue;
100
106
  const { isEnabled: i, Feature: s } = e;
@@ -113,7 +119,7 @@ class ht {
113
119
  * removed with a re-render to work.
114
120
  */
115
121
  measureViewportBox() {
116
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : v();
122
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : F();
117
123
  }
118
124
  getStaticValue(t) {
119
125
  return this.latestValues[t];
@@ -127,13 +133,13 @@ class ht {
127
133
  */
128
134
  update(t, e) {
129
135
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
130
- for (let i = 0; i < f.length; i++) {
131
- const s = f[i];
136
+ for (let i = 0; i < m.length; i++) {
137
+ const s = m[i];
132
138
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
133
139
  const r = "on" + s, n = t[r];
134
140
  n && (this.propEventSubscriptions[s] = this.on(s, n));
135
141
  }
136
- this.prevMotionValues = P(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
142
+ this.prevMotionValues = x(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
137
143
  }
138
144
  getProps() {
139
145
  return this.props;
@@ -189,7 +195,7 @@ class ht {
189
195
  if (this.props.values && this.props.values[t])
190
196
  return this.props.values[t];
191
197
  let i = this.values.get(t);
192
- return i === void 0 && e !== void 0 && (i = E(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
198
+ return i === void 0 && e !== void 0 && (i = M(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
193
199
  }
194
200
  /**
195
201
  * If we're trying to animate to a previously unencountered value,
@@ -198,7 +204,7 @@ class ht {
198
204
  */
199
205
  readValue(t, e) {
200
206
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
201
- return i != null && (typeof i == "string" && (x(i) || A(i)) ? i = parseFloat(i) : !j(i) && y.test(e) && (i = I(t, e)), this.setBaseTarget(t, h(i) ? i.get() : i)), h(i) ? i.get() : i;
207
+ return i != null && (typeof i == "string" && (D(i) || U(i)) ? i = parseFloat(i) : !w(i) && T.test(e) && (i = P(t, e)), this.setBaseTarget(t, h(i) ? i.get() : i)), h(i) ? i.get() : i;
202
208
  }
203
209
  /**
204
210
  * Set the base target to later animate back to. This is currently
@@ -216,7 +222,7 @@ class ht {
216
222
  const { initial: e } = this.props;
217
223
  let i;
218
224
  if (typeof e == "string" || typeof e == "object") {
219
- const n = w(this.props, e, (r = this.presenceContext) == null ? void 0 : r.custom);
225
+ const n = A(this.props, e, (r = this.presenceContext) == null ? void 0 : r.custom);
220
226
  n && (i = n[t]);
221
227
  }
222
228
  if (e && i !== void 0)
@@ -225,15 +231,17 @@ class ht {
225
231
  return s !== void 0 && !h(s) ? s : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
226
232
  }
227
233
  on(t, e) {
228
- return this.events[t] || (this.events[t] = new U()), this.events[t].add(e);
234
+ return this.events[t] || (this.events[t] = new L()), this.events[t].add(e);
229
235
  }
230
236
  notify(t, ...e) {
231
237
  this.events[t] && this.events[t].notify(...e);
232
238
  }
233
239
  scheduleRenderMicrotask() {
234
- D.render(this.render);
240
+ g.render(this.render);
235
241
  }
236
242
  }
237
243
  export {
238
- ht as VisualElement
244
+ ut as VisualElement,
245
+ ht as getFeatureDefinitions,
246
+ at as setFeatureDefinitions
239
247
  };
@@ -1,7 +1,7 @@
1
- import { VisualElement as r } from "../VisualElement.js";
2
- import { DOMKeyframesResolver as o } from "../../../../../motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js";
3
- import { isMotionValue as s } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
4
- class a extends r {
1
+ import { isMotionValue as r } from "../../value/utils/is-motion-value.js";
2
+ import { DOMKeyframesResolver as o } from "../../animation/keyframes/DOMKeyframesResolver.js";
3
+ import { VisualElement as s } from "../VisualElement.js";
4
+ class a extends s {
5
5
  constructor() {
6
6
  super(...arguments), this.KeyframeResolver = o;
7
7
  }
@@ -9,7 +9,8 @@ class a extends r {
9
9
  return e.compareDocumentPosition(t) & 2 ? 1 : -1;
10
10
  }
11
11
  getBaseTargetFromProps(e, t) {
12
- return e.style ? e.style[t] : void 0;
12
+ const i = e.style;
13
+ return i ? i[t] : void 0;
13
14
  }
14
15
  removeValueFromRenderState(e, { vars: t, style: i }) {
15
16
  delete t[e], delete i[e];
@@ -17,7 +18,7 @@ class a extends r {
17
18
  handleChildMotionValue() {
18
19
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
19
20
  const { children: e } = this.props;
20
- s(e) && (this.childSubscription = e.on("change", (t) => {
21
+ r(e) && (this.childSubscription = e.on("change", (t) => {
21
22
  this.current && (this.current.textContent = `${t}`);
22
23
  }));
23
24
  }
@@ -0,0 +1,6 @@
1
+ function r(e) {
2
+ return e.replace(/([A-Z])/g, (o) => `-${o.toLowerCase()}`);
3
+ }
4
+ export {
5
+ r as camelToDash
6
+ };
@@ -0,0 +1,38 @@
1
+ import { isCSSVariableName as n } from "../../animation/utils/is-css-variable.js";
2
+ import { transformProps as a } from "../utils/keys-transform.js";
3
+ import { defaultTransformValue as i, readTransformValue as u } from "../dom/parse-transform.js";
4
+ import { measureViewportBox as p } from "../../projection/utils/measure.js";
5
+ import { DOMVisualElement as l } from "../dom/DOMVisualElement.js";
6
+ import { buildHTMLStyles as f } from "./utils/build-styles.js";
7
+ import { renderHTML as c } from "./utils/render.js";
8
+ import { scrapeMotionValuesFromProps as d } from "./utils/scrape-motion-values.js";
9
+ function V(m) {
10
+ return window.getComputedStyle(m);
11
+ }
12
+ class b extends l {
13
+ constructor() {
14
+ super(...arguments), this.type = "html", this.renderInstance = c;
15
+ }
16
+ readValueFromInstance(e, r) {
17
+ var t;
18
+ if (a.has(r))
19
+ return (t = this.projection) != null && t.isProjecting ? i(r) : u(e, r);
20
+ {
21
+ const s = V(e), o = (n(r) ? s.getPropertyValue(r) : s[r]) || 0;
22
+ return typeof o == "string" ? o.trim() : o;
23
+ }
24
+ }
25
+ measureInstanceViewportBox(e, { transformPagePoint: r }) {
26
+ return p(e, r);
27
+ }
28
+ build(e, r, t) {
29
+ f(e, r, t.transformTemplate);
30
+ }
31
+ scrapeMotionValuesFromProps(e, r, t) {
32
+ return d(e, r, t);
33
+ }
34
+ }
35
+ export {
36
+ b as HTMLVisualElement,
37
+ V as getComputedStyle
38
+ };
@@ -0,0 +1,29 @@
1
+ import { getValueAsType as p } from "../../../value/types/utils/get-as-type.js";
2
+ import { numberValueTypes as u } from "../../../value/types/maps/number.js";
3
+ import { transformProps as c } from "../../utils/keys-transform.js";
4
+ import { isCSSVariableName as g } from "../../../animation/utils/is-css-variable.js";
5
+ import { buildTransform as y } from "./build-transform.js";
6
+ function S(f, i, e) {
7
+ const { style: o, vars: l, transformOrigin: t } = f;
8
+ let m = !1, a = !1;
9
+ for (const r in i) {
10
+ const n = i[r];
11
+ if (c.has(r)) {
12
+ m = !0;
13
+ continue;
14
+ } else if (g(r)) {
15
+ l[r] = n;
16
+ continue;
17
+ } else {
18
+ const s = p(n, u[r]);
19
+ r.startsWith("origin") ? (a = !0, t[r] = s) : o[r] = s;
20
+ }
21
+ }
22
+ if (i.transform || (m || e ? o.transform = y(i, f.transform, e) : o.transform && (o.transform = "none")), a) {
23
+ const { originX: r = "50%", originY: n = "50%", originZ: s = 0 } = t;
24
+ o.transformOrigin = `${r} ${n} ${s}`;
25
+ }
26
+ }
27
+ export {
28
+ S as buildHTMLStyles
29
+ };
@@ -0,0 +1,37 @@
1
+ import { getValueAsType as m } from "../../../value/types/utils/get-as-type.js";
2
+ import { numberValueTypes as p } from "../../../value/types/maps/number.js";
3
+ import { transformPropOrder as f } from "../../utils/keys-transform.js";
4
+ const y = {
5
+ x: "translateX",
6
+ y: "translateY",
7
+ z: "translateZ",
8
+ transformPerspective: "perspective"
9
+ }, d = f.length;
10
+ function h(u, l, n) {
11
+ let e = "", o = !0;
12
+ for (let i = 0; i < d; i++) {
13
+ const t = f[i], r = u[t];
14
+ if (r === void 0)
15
+ continue;
16
+ let a = !0;
17
+ if (typeof r == "number")
18
+ a = r === (t.startsWith("scale") ? 1 : 0);
19
+ else {
20
+ const s = parseFloat(r);
21
+ a = t.startsWith("scale") ? s === 1 : s === 0;
22
+ }
23
+ if (!a || n) {
24
+ const s = m(r, p[t]);
25
+ if (!a) {
26
+ o = !1;
27
+ const c = y[t] || t;
28
+ e += `${c}(${s}) `;
29
+ }
30
+ n && (l[t] = s);
31
+ }
32
+ }
33
+ return e = e.trim(), n ? e = n(l, o ? "" : e) : o && (e = "none"), e;
34
+ }
35
+ export {
36
+ h as buildTransform
37
+ };
@@ -0,0 +1,14 @@
1
+ import { isMotionValue as y } from "../../../value/utils/is-motion-value.js";
2
+ import { isForcedMotionValue as u } from "../../utils/is-forced-motion-value.js";
3
+ function d(c, n, e) {
4
+ var r;
5
+ const t = c.style, f = n == null ? void 0 : n.style, i = {};
6
+ if (!t)
7
+ return i;
8
+ for (const o in t)
9
+ (y(t[o]) || f && y(f[o]) || u(o, c) || ((r = e == null ? void 0 : e.getValue(o)) == null ? void 0 : r.liveStyle) !== void 0) && (i[o] = t[o]);
10
+ return i;
11
+ }
12
+ export {
13
+ d as scrapeMotionValuesFromProps
14
+ };
@@ -0,0 +1,40 @@
1
+ import { transformProps as s } from "../utils/keys-transform.js";
2
+ import { getDefaultValueType as a } from "../../value/types/maps/defaults.js";
3
+ import { createBox as m } from "../../projection/geometry/models.js";
4
+ import { DOMVisualElement as i } from "../dom/DOMVisualElement.js";
5
+ import { camelToDash as u } from "../dom/utils/camel-to-dash.js";
6
+ import { buildSVGAttrs as n } from "./utils/build-attrs.js";
7
+ import { camelCaseAttributes as p } from "./utils/camel-case-attrs.js";
8
+ import { isSVGTag as l } from "./utils/is-svg-tag.js";
9
+ import { renderSVG as f } from "./utils/render.js";
10
+ import { scrapeMotionValuesFromProps as V } from "./utils/scrape-motion-values.js";
11
+ class A extends i {
12
+ constructor() {
13
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = m;
14
+ }
15
+ getBaseTargetFromProps(t, r) {
16
+ return t[r];
17
+ }
18
+ readValueFromInstance(t, r) {
19
+ if (s.has(r)) {
20
+ const e = a(r);
21
+ return e && e.default || 0;
22
+ }
23
+ return r = p.has(r) ? r : u(r), t.getAttribute(r);
24
+ }
25
+ scrapeMotionValuesFromProps(t, r, e) {
26
+ return V(t, r, e);
27
+ }
28
+ build(t, r, e) {
29
+ n(t, r, this.isSVGTag, e.transformTemplate, e.style);
30
+ }
31
+ renderInstance(t, r, e, o) {
32
+ f(t, r, e, o);
33
+ }
34
+ mount(t) {
35
+ this.isSVGTag = l(t.tagName), super.mount(t);
36
+ }
37
+ }
38
+ export {
39
+ A as SVGVisualElement
40
+ };
@@ -0,0 +1,32 @@
1
+ import { buildHTMLStyles as c } from "../../html/utils/build-styles.js";
2
+ import { buildSVGPath as B } from "./path.js";
3
+ const b = [
4
+ "offsetDistance",
5
+ "offsetPath",
6
+ "offsetRotate",
7
+ "offsetAnchor"
8
+ ];
9
+ function g(r, {
10
+ attrX: e,
11
+ attrY: s,
12
+ attrScale: t,
13
+ pathLength: d,
14
+ pathSpacing: m = 1,
15
+ pathOffset: l = 0,
16
+ // This is object creation, which we try to avoid per-frame.
17
+ ...a
18
+ }, u, x, n) {
19
+ if (c(r, a, x), u) {
20
+ r.style.viewBox && (r.attrs.viewBox = r.style.viewBox);
21
+ return;
22
+ }
23
+ r.attrs = r.style, r.style = {};
24
+ const { attrs: f, style: i } = r;
25
+ f.transform && (i.transform = f.transform, delete f.transform), (i.transform || f.transformOrigin) && (i.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), i.transform && (i.transformBox = (n == null ? void 0 : n.transformBox) ?? "fill-box", delete f.transformBox);
26
+ for (const o of b)
27
+ f[o] !== void 0 && (i[o] = f[o], delete f[o]);
28
+ e !== void 0 && (f.x = e), s !== void 0 && (f.y = s), t !== void 0 && (f.scale = t), d !== void 0 && B(f, d, m, l, !1);
29
+ }
30
+ export {
31
+ g as buildSVGAttrs
32
+ };
@@ -0,0 +1,15 @@
1
+ const f = {
2
+ offset: "stroke-dashoffset",
3
+ array: "stroke-dasharray"
4
+ }, h = {
5
+ offset: "strokeDashoffset",
6
+ array: "strokeDasharray"
7
+ };
8
+ function y(s, e, o = 1, r = 0, t = !0) {
9
+ s.pathLength = 1;
10
+ const a = t ? f : h;
11
+ s[a.offset] = `${-r}`, s[a.array] = `${e} ${o}`;
12
+ }
13
+ export {
14
+ y as buildSVGPath
15
+ };
@@ -0,0 +1,15 @@
1
+ import { isMotionValue as n } from "../../../value/utils/is-motion-value.js";
2
+ import { transformPropOrder as i } from "../../utils/keys-transform.js";
3
+ import { scrapeMotionValuesFromProps as m } from "../../html/utils/scrape-motion-values.js";
4
+ function l(r, t, s) {
5
+ const e = m(r, t, s);
6
+ for (const o in r)
7
+ if (n(r[o]) || n(t[o])) {
8
+ const a = i.indexOf(o) !== -1 ? "attr" + o.charAt(0).toUpperCase() + o.substring(1) : o;
9
+ e[a] = r[o];
10
+ }
11
+ return e;
12
+ }
13
+ export {
14
+ l as scrapeMotionValuesFromProps
15
+ };
@@ -1,21 +1,21 @@
1
1
  import { animateVisualElement as J } from "../../animation/interfaces/visual-element.js";
2
2
  import { calcChildStagger as N } from "../../animation/utils/calc-child-stagger.js";
3
- import { isAnimationControls as Q } from "../../animation/utils/is-animation-controls.js";
4
- import { isKeyframesTarget as M } from "../../animation/utils/is-keyframes-target.js";
5
- import { shallowCompare as B } from "../../utils/shallow-compare.js";
6
- import { getVariantContext as U } from "./get-variant-context.js";
3
+ import { getVariantContext as Q } from "./get-variant-context.js";
4
+ import { isAnimationControls as U } from "./is-animation-controls.js";
5
+ import { isKeyframesTarget as M } from "./is-keyframes-target.js";
7
6
  import { isVariantLabel as W } from "./is-variant-label.js";
8
7
  import { resolveVariant as K } from "./resolve-dynamic-variants.js";
9
- import { variantPriorityOrder as F } from "./variant-props.js";
10
- const X = [...F].reverse(), Y = F.length;
8
+ import { shallowCompare as B } from "./shallow-compare.js";
9
+ import { variantPriorityOrder as H } from "./variant-props.js";
10
+ const X = [...H].reverse(), Y = H.length;
11
11
  function Z(e) {
12
12
  return (c) => Promise.all(c.map(({ animation: d, options: m }) => J(e, d, m)));
13
13
  }
14
14
  function le(e) {
15
15
  let c = Z(e), d = k(), m = !0;
16
- const H = (l) => (t, A) => {
16
+ const L = (l) => (t, y) => {
17
17
  var a;
18
- const f = K(e, A, l === "exit" ? (a = e.presenceContext) == null ? void 0 : a.custom : void 0);
18
+ const f = K(e, y, l === "exit" ? (a = e.presenceContext) == null ? void 0 : a.custom : void 0);
19
19
  if (f) {
20
20
  const { transition: p, transitionEnd: v, ...C } = f;
21
21
  t = { ...t, ...C, ...v };
@@ -26,23 +26,23 @@ function le(e) {
26
26
  c = l(e);
27
27
  }
28
28
  function b(l) {
29
- const { props: t } = e, A = U(e.parent) || {}, f = [], a = /* @__PURE__ */ new Set();
29
+ const { props: t } = e, y = Q(e.parent) || {}, f = [], a = /* @__PURE__ */ new Set();
30
30
  let p = {}, v = 1 / 0;
31
31
  for (let u = 0; u < Y; u++) {
32
- const n = X[u], r = d[n], o = t[n] !== void 0 ? t[n] : A[n], P = W(o), S = n === l ? r.isActive : null;
32
+ const n = X[u], r = d[n], o = t[n] !== void 0 ? t[n] : y[n], P = W(o), S = n === l ? r.isActive : null;
33
33
  S === !1 && (v = u);
34
- let w = o === A[n] && o !== t[n] && P;
34
+ let w = o === y[n] && o !== t[n] && P;
35
35
  if (w && m && e.manuallyAnimateOnMount && (w = !1), r.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
36
36
  !r.isActive && S === null || // If we didn't and don't have any defined prop for this animation type
37
37
  !o && !r.prevProp || // Or if the prop doesn't define an animation
38
- Q(o) || typeof o == "boolean")
38
+ U(o) || typeof o == "boolean")
39
39
  continue;
40
40
  const I = _(r.prevProp, o);
41
41
  let T = I || // If we're making this variant active, we want to always make it active
42
42
  n === l && r.isActive && !w && P || // If we removed a higher-priority variant (i is in reverse order)
43
43
  u > v && P, O = !1;
44
44
  const R = Array.isArray(o) ? o : [o];
45
- let V = R.reduce(H(n), {});
45
+ let V = R.reduce(L(n), {});
46
46
  S === !1 && (V = {});
47
47
  const { prevResolvedValues: x = {} } = r, q = {
48
48
  ...x,
@@ -53,21 +53,21 @@ function le(e) {
53
53
  s && (s.liveStyle = !1);
54
54
  };
55
55
  for (const i in q) {
56
- const s = V[i], h = x[i];
56
+ const s = V[i], A = x[i];
57
57
  if (p.hasOwnProperty(i))
58
58
  continue;
59
59
  let g = !1;
60
- M(s) && M(h) ? g = !B(s, h) : g = s !== h, g ? s != null ? D(i) : a.add(i) : s !== void 0 && a.has(i) ? D(i) : r.protectedKeys[i] = !0;
60
+ M(s) && M(A) ? g = !B(s, A) : g = s !== A, g ? s != null ? D(i) : a.add(i) : s !== void 0 && a.has(i) ? D(i) : r.protectedKeys[i] = !0;
61
61
  }
62
62
  r.prevProp = o, r.prevResolvedValues = V, r.isActive && (p = { ...p, ...V }), m && e.blockInitialAnimation && (T = !1);
63
- const L = w && I;
64
- T && (!L || O) && f.push(...R.map((i) => {
63
+ const F = w && I;
64
+ T && (!F || O) && f.push(...R.map((i) => {
65
65
  const s = { type: n };
66
- if (typeof i == "string" && m && !L && e.manuallyAnimateOnMount && e.parent) {
67
- const { parent: h } = e, g = K(h, i);
68
- if (h.enteringChildren && g) {
66
+ if (typeof i == "string" && m && !F && e.manuallyAnimateOnMount && e.parent) {
67
+ const { parent: A } = e, g = K(A, i);
68
+ if (A.enteringChildren && g) {
69
69
  const { delayChildren: G } = g.transition || {};
70
- s.delay = N(h.enteringChildren, e, G);
70
+ s.delay = N(A.enteringChildren, e, G);
71
71
  }
72
72
  }
73
73
  return {
@@ -98,10 +98,10 @@ function le(e) {
98
98
  var p;
99
99
  return (p = a.animationState) == null ? void 0 : p.setActive(l, t);
100
100
  }), d[l].isActive = t;
101
- const A = b(l);
101
+ const y = b(l);
102
102
  for (const a in d)
103
103
  d[a].protectedKeys = {};
104
- return A;
104
+ return y;
105
105
  }
106
106
  return {
107
107
  animateChanges: b,
@@ -116,7 +116,7 @@ function le(e) {
116
116
  function _(e, c) {
117
117
  return typeof c == "string" ? c !== e : Array.isArray(c) ? !B(c, e) : !1;
118
118
  }
119
- function y(e = !1) {
119
+ function h(e = !1) {
120
120
  return {
121
121
  isActive: e,
122
122
  protectedKeys: {},
@@ -126,13 +126,13 @@ function y(e = !1) {
126
126
  }
127
127
  function k() {
128
128
  return {
129
- animate: y(!0),
130
- whileInView: y(),
131
- whileHover: y(),
132
- whileTap: y(),
133
- whileDrag: y(),
134
- whileFocus: y(),
135
- exit: y()
129
+ animate: h(!0),
130
+ whileInView: h(),
131
+ whileHover: h(),
132
+ whileTap: h(),
133
+ whileDrag: h(),
134
+ whileFocus: h(),
135
+ exit: h()
136
136
  };
137
137
  }
138
138
  export {
@@ -1,4 +1,4 @@
1
- import { isAnimationControls as o } from "../../animation/utils/is-animation-controls.js";
1
+ import { isAnimationControls as o } from "./is-animation-controls.js";
2
2
  import { isVariantLabel as r } from "./is-variant-label.js";
3
3
  import { variantProps as t } from "./variant-props.js";
4
4
  function a(i) {