@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.
- package/dist/components/Button/Button.js +19 -19
- package/dist/components/Button/ButtonLoader.d.ts +7 -0
- package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
- package/dist/components/Button/ButtonLoader.js +40 -0
- package/dist/components/Button/buttonVariants.d.ts.map +1 -1
- package/dist/components/Button/buttonVariants.js +0 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.d.ts +1 -0
- package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +39 -28
- package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
- package/dist/components/SwipeButton/SwipeButton.js +1 -1
- package/dist/components/TextEditor/EditorToolbar.d.ts +18 -0
- package/dist/components/TextEditor/EditorToolbar.d.ts.map +1 -0
- package/dist/components/TextEditor/EditorToolbar.js +175 -0
- package/dist/components/TextEditor/LinkBubbleMenu.d.ts +52 -0
- package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -0
- package/dist/components/TextEditor/LinkBubbleMenu.js +97 -0
- package/dist/components/TextEditor/TextEditor.d.ts +134 -0
- package/dist/components/TextEditor/TextEditor.d.ts.map +1 -0
- package/dist/components/TextEditor/TextEditor.js +240 -0
- package/dist/components/TextEditor/TextEditor.stories.d.ts +51 -0
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -0
- package/dist/components/TextEditor/ToolbarButton.d.ts +38 -0
- package/dist/components/TextEditor/ToolbarButton.d.ts.map +1 -0
- package/dist/components/TextEditor/ToolbarButton.js +68 -0
- package/dist/components/TextEditor/ToolbarSeparator.d.ts +22 -0
- package/dist/components/TextEditor/ToolbarSeparator.d.ts.map +1 -0
- package/dist/components/TextEditor/ToolbarSeparator.js +23 -0
- package/dist/components/TextEditor/index.d.ts +4 -0
- package/dist/components/TextEditor/index.d.ts.map +1 -0
- package/dist/components/TextEditor/useLinkEditor.d.ts +37 -0
- package/dist/components/TextEditor/useLinkEditor.d.ts.map +1 -0
- package/dist/components/TextEditor/useLinkEditor.js +32 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +140 -132
- package/dist/muza-ui.css +1 -1
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +122 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +18 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
- package/dist/node_modules/@popperjs/core/lib/enums.js +31 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +37 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +74 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +44 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +31 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
- package/dist/node_modules/@popperjs/core/lib/popper.js +27 -0
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +54 -0
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +13 -0
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +33 -0
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +6 -0
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +15 -0
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +31 -0
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +9 -0
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +12 -0
- package/dist/node_modules/@tiptap/core/dist/index.js +2857 -0
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +45 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +76 -0
- package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +129 -0
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +55 -0
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +136 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +10 -0
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +21 -0
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +25 -0
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +56 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +55 -0
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +36 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +75 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +272 -0
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +34 -0
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +73 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +34 -0
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +53 -0
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +64 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +9 -0
- package/dist/node_modules/@tiptap/react/dist/index.js +709 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
- package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +34 -26
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +30 -25
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
- package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
- package/dist/node_modules/orderedmap/dist/index.js +103 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
- package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
- package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
- package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
- package/dist/node_modules/prosemirror-view/dist/index.js +3794 -0
- package/dist/node_modules/rope-sequence/dist/index.js +100 -0
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +813 -0
- package/dist/node_modules/w3c-keyname/index.js +93 -0
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +18 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +18 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +18 -0
- package/dist/translations/types.d.ts +22 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/package.json +17 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
- /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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { transformProps as i } from "./keys-transform.js";
|
|
2
|
+
import { scaleCorrectors as n } from "../../projection/styles/scale-correction.js";
|
|
3
|
+
function c(r, { layout: o, layoutId: t }) {
|
|
4
|
+
return i.has(r) || r.startsWith("origin") || (o || t !== void 0) && (!!n[r] || r === "opacity");
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
c as isForcedMotionValue,
|
|
8
|
+
n as scaleCorrectors
|
|
9
|
+
};
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { motionValue as r } from "../../value/index.js";
|
|
2
|
+
import { isMotionValue as f } from "../../value/utils/is-motion-value.js";
|
|
3
3
|
function d(a, e, s) {
|
|
4
4
|
for (const o in e) {
|
|
5
5
|
const i = e[o], t = s[o];
|
|
6
|
-
if (
|
|
6
|
+
if (f(i))
|
|
7
7
|
a.addValue(o, i);
|
|
8
|
-
else if (
|
|
9
|
-
a.addValue(o,
|
|
8
|
+
else if (f(t))
|
|
9
|
+
a.addValue(o, r(i, { owner: a }));
|
|
10
10
|
else if (t !== i)
|
|
11
11
|
if (a.hasValue(o)) {
|
|
12
12
|
const u = a.getValue(o);
|
|
13
13
|
u.liveStyle === !0 ? u.jump(i) : u.hasAnimated || u.set(i);
|
|
14
14
|
} else {
|
|
15
15
|
const u = a.getStaticValue(o);
|
|
16
|
-
a.addValue(o,
|
|
16
|
+
a.addValue(o, r(u !== void 0 ? u : i, { owner: a }));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
for (const o in s)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { hasReducedMotionListener as t, prefersReducedMotion as r } from "./state.js";
|
|
2
|
+
const o = typeof window < "u";
|
|
3
|
+
function d() {
|
|
4
|
+
if (t.current = !0, !!o)
|
|
5
|
+
if (window.matchMedia) {
|
|
6
|
+
const e = window.matchMedia("(prefers-reduced-motion)"), n = () => r.current = e.matches;
|
|
7
|
+
e.addEventListener("change", n), n();
|
|
8
|
+
} else
|
|
9
|
+
r.current = !1;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
t as hasReducedMotionListener,
|
|
13
|
+
d as initPrefersReducedMotion,
|
|
14
|
+
r as prefersReducedMotion
|
|
15
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { motionValue as s } from "../../value/index.js";
|
|
2
2
|
import { resolveVariant as f } from "./resolve-dynamic-variants.js";
|
|
3
|
-
import {
|
|
3
|
+
import { isKeyframesTarget as l } from "./is-keyframes-target.js";
|
|
4
4
|
function u(t, o, e) {
|
|
5
|
-
t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o,
|
|
5
|
+
t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o, s(e));
|
|
6
6
|
}
|
|
7
7
|
function V(t) {
|
|
8
|
-
return
|
|
8
|
+
return l(t) ? t[t.length - 1] || 0 : t;
|
|
9
9
|
}
|
|
10
10
|
function p(t, o) {
|
|
11
11
|
const e = f(t, o);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { time as s } from "
|
|
2
|
-
import { frame as m, cancelFrame as o } from "
|
|
1
|
+
import { time as s } from "../frameloop/sync-time.js";
|
|
2
|
+
import { frame as m, cancelFrame as o } from "../frameloop/frame.js";
|
|
3
3
|
function i(c, r) {
|
|
4
4
|
const n = s.now(), e = ({ timestamp: a }) => {
|
|
5
5
|
const t = a - n;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function s(n, r, f) {
|
|
2
|
+
if (n == null)
|
|
3
|
+
return [];
|
|
2
4
|
if (n instanceof EventTarget)
|
|
3
5
|
return [n];
|
|
4
6
|
if (typeof n == "string") {
|
|
5
|
-
let
|
|
6
|
-
const
|
|
7
|
-
return
|
|
7
|
+
let u = document;
|
|
8
|
+
const i = (f == null ? void 0 : f[n]) ?? u.querySelectorAll(n);
|
|
9
|
+
return i ? Array.from(i) : [];
|
|
8
10
|
}
|
|
9
|
-
return Array.from(n);
|
|
11
|
+
return Array.from(n).filter((u) => u != null);
|
|
10
12
|
}
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
s as resolveElements
|
|
13
15
|
};
|
|
@@ -1,50 +1,70 @@
|
|
|
1
|
-
import { int as
|
|
2
|
-
import { alpha as
|
|
3
|
-
import { px as
|
|
4
|
-
import { transformValueTypes as
|
|
5
|
-
const
|
|
1
|
+
import { int as t } from "../int.js";
|
|
2
|
+
import { alpha as n } from "../numbers/index.js";
|
|
3
|
+
import { px as i } from "../numbers/units.js";
|
|
4
|
+
import { transformValueTypes as o } from "./transform.js";
|
|
5
|
+
const g = {
|
|
6
6
|
// Border props
|
|
7
|
-
borderWidth:
|
|
8
|
-
borderTopWidth:
|
|
9
|
-
borderRightWidth:
|
|
10
|
-
borderBottomWidth:
|
|
11
|
-
borderLeftWidth:
|
|
12
|
-
borderRadius:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
borderBottomLeftRadius: t,
|
|
7
|
+
borderWidth: i,
|
|
8
|
+
borderTopWidth: i,
|
|
9
|
+
borderRightWidth: i,
|
|
10
|
+
borderBottomWidth: i,
|
|
11
|
+
borderLeftWidth: i,
|
|
12
|
+
borderRadius: i,
|
|
13
|
+
borderTopLeftRadius: i,
|
|
14
|
+
borderTopRightRadius: i,
|
|
15
|
+
borderBottomRightRadius: i,
|
|
16
|
+
borderBottomLeftRadius: i,
|
|
18
17
|
// Positioning props
|
|
19
|
-
width:
|
|
20
|
-
maxWidth:
|
|
21
|
-
height:
|
|
22
|
-
maxHeight:
|
|
23
|
-
top:
|
|
24
|
-
right:
|
|
25
|
-
bottom:
|
|
26
|
-
left:
|
|
18
|
+
width: i,
|
|
19
|
+
maxWidth: i,
|
|
20
|
+
height: i,
|
|
21
|
+
maxHeight: i,
|
|
22
|
+
top: i,
|
|
23
|
+
right: i,
|
|
24
|
+
bottom: i,
|
|
25
|
+
left: i,
|
|
26
|
+
inset: i,
|
|
27
|
+
insetBlock: i,
|
|
28
|
+
insetBlockStart: i,
|
|
29
|
+
insetBlockEnd: i,
|
|
30
|
+
insetInline: i,
|
|
31
|
+
insetInlineStart: i,
|
|
32
|
+
insetInlineEnd: i,
|
|
27
33
|
// Spacing props
|
|
28
|
-
padding:
|
|
29
|
-
paddingTop:
|
|
30
|
-
paddingRight:
|
|
31
|
-
paddingBottom:
|
|
32
|
-
paddingLeft:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
padding: i,
|
|
35
|
+
paddingTop: i,
|
|
36
|
+
paddingRight: i,
|
|
37
|
+
paddingBottom: i,
|
|
38
|
+
paddingLeft: i,
|
|
39
|
+
paddingBlock: i,
|
|
40
|
+
paddingBlockStart: i,
|
|
41
|
+
paddingBlockEnd: i,
|
|
42
|
+
paddingInline: i,
|
|
43
|
+
paddingInlineStart: i,
|
|
44
|
+
paddingInlineEnd: i,
|
|
45
|
+
margin: i,
|
|
46
|
+
marginTop: i,
|
|
47
|
+
marginRight: i,
|
|
48
|
+
marginBottom: i,
|
|
49
|
+
marginLeft: i,
|
|
50
|
+
marginBlock: i,
|
|
51
|
+
marginBlockStart: i,
|
|
52
|
+
marginBlockEnd: i,
|
|
53
|
+
marginInline: i,
|
|
54
|
+
marginInlineStart: i,
|
|
55
|
+
marginInlineEnd: i,
|
|
56
|
+
// Typography
|
|
57
|
+
fontSize: i,
|
|
38
58
|
// Misc
|
|
39
|
-
backgroundPositionX:
|
|
40
|
-
backgroundPositionY:
|
|
41
|
-
...
|
|
42
|
-
zIndex:
|
|
59
|
+
backgroundPositionX: i,
|
|
60
|
+
backgroundPositionY: i,
|
|
61
|
+
...o,
|
|
62
|
+
zIndex: t,
|
|
43
63
|
// SVG
|
|
44
|
-
fillOpacity:
|
|
45
|
-
strokeOpacity:
|
|
46
|
-
numOctaves:
|
|
64
|
+
fillOpacity: n,
|
|
65
|
+
strokeOpacity: n,
|
|
66
|
+
numOctaves: t
|
|
47
67
|
};
|
|
48
68
|
export {
|
|
49
|
-
|
|
69
|
+
g as numberValueTypes
|
|
50
70
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { formatErrorMessage as n } from "./format-error-message.js";
|
|
2
|
-
let
|
|
3
|
-
},
|
|
2
|
+
let t = () => {
|
|
3
|
+
}, f = () => {
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
var i;
|
|
6
|
+
typeof process < "u" && ((i = process.env) == null ? void 0 : i.NODE_ENV) !== "production" && (t = (e, o, r) => {
|
|
7
|
+
!e && typeof console < "u" && console.warn(n(o, r));
|
|
8
|
+
}, f = (e, o, r) => {
|
|
9
|
+
if (!e)
|
|
10
|
+
throw new Error(n(o, r));
|
|
10
11
|
});
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
f as invariant,
|
|
14
|
+
t as warning
|
|
14
15
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
function e(t) {
|
|
2
|
+
this.content = t;
|
|
3
|
+
}
|
|
4
|
+
e.prototype = {
|
|
5
|
+
constructor: e,
|
|
6
|
+
find: function(t) {
|
|
7
|
+
for (var n = 0; n < this.content.length; n += 2)
|
|
8
|
+
if (this.content[n] === t) return n;
|
|
9
|
+
return -1;
|
|
10
|
+
},
|
|
11
|
+
// :: (string) → ?any
|
|
12
|
+
// Retrieve the value stored under `key`, or return undefined when
|
|
13
|
+
// no such key exists.
|
|
14
|
+
get: function(t) {
|
|
15
|
+
var n = this.find(t);
|
|
16
|
+
return n == -1 ? void 0 : this.content[n + 1];
|
|
17
|
+
},
|
|
18
|
+
// :: (string, any, ?string) → OrderedMap
|
|
19
|
+
// Create a new map by replacing the value of `key` with a new
|
|
20
|
+
// value, or adding a binding to the end of the map. If `newKey` is
|
|
21
|
+
// given, the key of the binding will be replaced with that key.
|
|
22
|
+
update: function(t, n, r) {
|
|
23
|
+
var i = r && r != t ? this.remove(r) : this, o = i.find(t), c = i.content.slice();
|
|
24
|
+
return o == -1 ? c.push(r || t, n) : (c[o + 1] = n, r && (c[o] = r)), new e(c);
|
|
25
|
+
},
|
|
26
|
+
// :: (string) → OrderedMap
|
|
27
|
+
// Return a map with the given key removed, if it existed.
|
|
28
|
+
remove: function(t) {
|
|
29
|
+
var n = this.find(t);
|
|
30
|
+
if (n == -1) return this;
|
|
31
|
+
var r = this.content.slice();
|
|
32
|
+
return r.splice(n, 2), new e(r);
|
|
33
|
+
},
|
|
34
|
+
// :: (string, any) → OrderedMap
|
|
35
|
+
// Add a new key to the start of the map.
|
|
36
|
+
addToStart: function(t, n) {
|
|
37
|
+
return new e([t, n].concat(this.remove(t).content));
|
|
38
|
+
},
|
|
39
|
+
// :: (string, any) → OrderedMap
|
|
40
|
+
// Add a new key to the end of the map.
|
|
41
|
+
addToEnd: function(t, n) {
|
|
42
|
+
var r = this.remove(t).content.slice();
|
|
43
|
+
return r.push(t, n), new e(r);
|
|
44
|
+
},
|
|
45
|
+
// :: (string, string, any) → OrderedMap
|
|
46
|
+
// Add a key after the given key. If `place` is not found, the new
|
|
47
|
+
// key is added to the end.
|
|
48
|
+
addBefore: function(t, n, r) {
|
|
49
|
+
var i = this.remove(n), o = i.content.slice(), c = i.find(t);
|
|
50
|
+
return o.splice(c == -1 ? o.length : c, 0, n, r), new e(o);
|
|
51
|
+
},
|
|
52
|
+
// :: ((key: string, value: any))
|
|
53
|
+
// Call the given function for each key/value pair in the map, in
|
|
54
|
+
// order.
|
|
55
|
+
forEach: function(t) {
|
|
56
|
+
for (var n = 0; n < this.content.length; n += 2)
|
|
57
|
+
t(this.content[n], this.content[n + 1]);
|
|
58
|
+
},
|
|
59
|
+
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
60
|
+
// Create a new map by prepending the keys in this map that don't
|
|
61
|
+
// appear in `map` before the keys in `map`.
|
|
62
|
+
prepend: function(t) {
|
|
63
|
+
return t = e.from(t), t.size ? new e(t.content.concat(this.subtract(t).content)) : this;
|
|
64
|
+
},
|
|
65
|
+
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
66
|
+
// Create a new map by appending the keys in this map that don't
|
|
67
|
+
// appear in `map` after the keys in `map`.
|
|
68
|
+
append: function(t) {
|
|
69
|
+
return t = e.from(t), t.size ? new e(this.subtract(t).content.concat(t.content)) : this;
|
|
70
|
+
},
|
|
71
|
+
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
72
|
+
// Create a map containing all the keys in this map that don't
|
|
73
|
+
// appear in `map`.
|
|
74
|
+
subtract: function(t) {
|
|
75
|
+
var n = this;
|
|
76
|
+
t = e.from(t);
|
|
77
|
+
for (var r = 0; r < t.content.length; r += 2)
|
|
78
|
+
n = n.remove(t.content[r]);
|
|
79
|
+
return n;
|
|
80
|
+
},
|
|
81
|
+
// :: () → Object
|
|
82
|
+
// Turn ordered map into a plain object.
|
|
83
|
+
toObject: function() {
|
|
84
|
+
var t = {};
|
|
85
|
+
return this.forEach(function(n, r) {
|
|
86
|
+
t[n] = r;
|
|
87
|
+
}), t;
|
|
88
|
+
},
|
|
89
|
+
// :: number
|
|
90
|
+
// The amount of keys in this map.
|
|
91
|
+
get size() {
|
|
92
|
+
return this.content.length >> 1;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
e.from = function(t) {
|
|
96
|
+
if (t instanceof e) return t;
|
|
97
|
+
var n = [];
|
|
98
|
+
if (t) for (var r in t) n.push(r, t[r]);
|
|
99
|
+
return new e(n);
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
e as default
|
|
103
|
+
};
|