@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,99 @@
|
|
|
1
|
+
import { top as g, left as O, right as F, end as $, bottom as B } from "../enums.js";
|
|
2
|
+
import T from "../dom-utils/getOffsetParent.js";
|
|
3
|
+
import H from "../dom-utils/getWindow.js";
|
|
4
|
+
import k from "../dom-utils/getDocumentElement.js";
|
|
5
|
+
import q from "../dom-utils/getComputedStyle.js";
|
|
6
|
+
import z from "../utils/getBasePlacement.js";
|
|
7
|
+
import G from "../utils/getVariation.js";
|
|
8
|
+
import { round as X } from "../utils/math.js";
|
|
9
|
+
var I = {
|
|
10
|
+
top: "auto",
|
|
11
|
+
right: "auto",
|
|
12
|
+
bottom: "auto",
|
|
13
|
+
left: "auto"
|
|
14
|
+
};
|
|
15
|
+
function J(e, t) {
|
|
16
|
+
var p = e.x, s = e.y, o = t.devicePixelRatio || 1;
|
|
17
|
+
return {
|
|
18
|
+
x: X(p * o) / o || 0,
|
|
19
|
+
y: X(s * o) / o || 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function Y(e) {
|
|
23
|
+
var t, p = e.popper, s = e.popperRect, o = e.placement, c = e.variation, l = e.offsets, d = e.position, u = e.gpuAcceleration, m = e.adaptive, f = e.roundOffsets, w = e.isFixed, h = l.x, i = h === void 0 ? 0 : h, b = l.y, a = b === void 0 ? 0 : b, S = typeof f == "function" ? f({
|
|
24
|
+
x: i,
|
|
25
|
+
y: a
|
|
26
|
+
}) : {
|
|
27
|
+
x: i,
|
|
28
|
+
y: a
|
|
29
|
+
};
|
|
30
|
+
i = S.x, a = S.y;
|
|
31
|
+
var A = l.hasOwnProperty("x"), D = l.hasOwnProperty("y"), y = O, x = g, n = window;
|
|
32
|
+
if (m) {
|
|
33
|
+
var r = T(p), R = "clientHeight", j = "clientWidth";
|
|
34
|
+
if (r === H(p) && (r = k(p), q(r).position !== "static" && d === "absolute" && (R = "scrollHeight", j = "scrollWidth")), r = r, o === g || (o === O || o === F) && c === $) {
|
|
35
|
+
x = B;
|
|
36
|
+
var C = w && r === n && n.visualViewport ? n.visualViewport.height : (
|
|
37
|
+
// $FlowFixMe[prop-missing]
|
|
38
|
+
r[R]
|
|
39
|
+
);
|
|
40
|
+
a -= C - s.height, a *= u ? 1 : -1;
|
|
41
|
+
}
|
|
42
|
+
if (o === O || (o === g || o === B) && c === $) {
|
|
43
|
+
y = F;
|
|
44
|
+
var E = w && r === n && n.visualViewport ? n.visualViewport.width : (
|
|
45
|
+
// $FlowFixMe[prop-missing]
|
|
46
|
+
r[j]
|
|
47
|
+
);
|
|
48
|
+
i -= E - s.width, i *= u ? 1 : -1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
var V = Object.assign({
|
|
52
|
+
position: d
|
|
53
|
+
}, m && I), W = f === !0 ? J({
|
|
54
|
+
x: i,
|
|
55
|
+
y: a
|
|
56
|
+
}, H(p)) : {
|
|
57
|
+
x: i,
|
|
58
|
+
y: a
|
|
59
|
+
};
|
|
60
|
+
if (i = W.x, a = W.y, u) {
|
|
61
|
+
var v;
|
|
62
|
+
return Object.assign({}, V, (v = {}, v[x] = D ? "0" : "", v[y] = A ? "0" : "", v.transform = (n.devicePixelRatio || 1) <= 1 ? "translate(" + i + "px, " + a + "px)" : "translate3d(" + i + "px, " + a + "px, 0)", v));
|
|
63
|
+
}
|
|
64
|
+
return Object.assign({}, V, (t = {}, t[x] = D ? a + "px" : "", t[y] = A ? i + "px" : "", t.transform = "", t));
|
|
65
|
+
}
|
|
66
|
+
function K(e) {
|
|
67
|
+
var t = e.state, p = e.options, s = p.gpuAcceleration, o = s === void 0 ? !0 : s, c = p.adaptive, l = c === void 0 ? !0 : c, d = p.roundOffsets, u = d === void 0 ? !0 : d, m = {
|
|
68
|
+
placement: z(t.placement),
|
|
69
|
+
variation: G(t.placement),
|
|
70
|
+
popper: t.elements.popper,
|
|
71
|
+
popperRect: t.rects.popper,
|
|
72
|
+
gpuAcceleration: o,
|
|
73
|
+
isFixed: t.options.strategy === "fixed"
|
|
74
|
+
};
|
|
75
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Y(Object.assign({}, m, {
|
|
76
|
+
offsets: t.modifiersData.popperOffsets,
|
|
77
|
+
position: t.options.strategy,
|
|
78
|
+
adaptive: l,
|
|
79
|
+
roundOffsets: u
|
|
80
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Y(Object.assign({}, m, {
|
|
81
|
+
offsets: t.modifiersData.arrow,
|
|
82
|
+
position: "absolute",
|
|
83
|
+
adaptive: !1,
|
|
84
|
+
roundOffsets: u
|
|
85
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
86
|
+
"data-popper-placement": t.placement
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
const tt = {
|
|
90
|
+
name: "computeStyles",
|
|
91
|
+
enabled: !0,
|
|
92
|
+
phase: "beforeWrite",
|
|
93
|
+
fn: K,
|
|
94
|
+
data: {}
|
|
95
|
+
};
|
|
96
|
+
export {
|
|
97
|
+
tt as default,
|
|
98
|
+
Y as mapToStyles
|
|
99
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import v from "../dom-utils/getWindow.js";
|
|
2
|
+
var n = {
|
|
3
|
+
passive: !0
|
|
4
|
+
};
|
|
5
|
+
function d(e) {
|
|
6
|
+
var r = e.state, t = e.instance, o = e.options, i = o.scroll, a = i === void 0 ? !0 : i, c = o.resize, l = c === void 0 ? !0 : c, p = v(r.elements.popper), f = [].concat(r.scrollParents.reference, r.scrollParents.popper);
|
|
7
|
+
return a && f.forEach(function(s) {
|
|
8
|
+
s.addEventListener("scroll", t.update, n);
|
|
9
|
+
}), l && p.addEventListener("resize", t.update, n), function() {
|
|
10
|
+
a && f.forEach(function(s) {
|
|
11
|
+
s.removeEventListener("scroll", t.update, n);
|
|
12
|
+
}), l && p.removeEventListener("resize", t.update, n);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
const m = {
|
|
16
|
+
name: "eventListeners",
|
|
17
|
+
enabled: !0,
|
|
18
|
+
phase: "write",
|
|
19
|
+
fn: function() {
|
|
20
|
+
},
|
|
21
|
+
effect: d,
|
|
22
|
+
data: {}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
m as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import c from "../utils/getOppositePlacement.js";
|
|
2
|
+
import u from "../utils/getBasePlacement.js";
|
|
3
|
+
import R from "../utils/getOppositeVariationPlacement.js";
|
|
4
|
+
import Z from "../utils/detectOverflow.js";
|
|
5
|
+
import S from "../utils/computeAutoPlacement.js";
|
|
6
|
+
import { auto as C, start as ee, right as ae, left as te, bottom as _, top as q } from "../enums.js";
|
|
7
|
+
import re from "../utils/getVariation.js";
|
|
8
|
+
function oe(t) {
|
|
9
|
+
if (u(t) === C)
|
|
10
|
+
return [];
|
|
11
|
+
var e = c(t);
|
|
12
|
+
return [R(t), e, R(e)];
|
|
13
|
+
}
|
|
14
|
+
function ne(t) {
|
|
15
|
+
var e = t.state, a = t.options, b = t.name;
|
|
16
|
+
if (!e.modifiersData[b]._skip) {
|
|
17
|
+
for (var g = a.mainAxis, I = g === void 0 ? !0 : g, k = a.altAxis, V = k === void 0 ? !0 : k, j = a.fallbackPlacements, y = a.padding, A = a.boundary, h = a.rootBoundary, z = a.altBoundary, x = a.flipVariations, d = x === void 0 ? !0 : x, G = a.allowedAutoPlacements, r = e.options.placement, H = u(r), J = H === r, K = j || (J || !d ? [c(r)] : oe(r)), i = [r].concat(K).reduce(function(l, n) {
|
|
18
|
+
return l.concat(u(n) === C ? S(e, {
|
|
19
|
+
placement: n,
|
|
20
|
+
boundary: A,
|
|
21
|
+
rootBoundary: h,
|
|
22
|
+
padding: y,
|
|
23
|
+
flipVariations: d,
|
|
24
|
+
allowedAutoPlacements: G
|
|
25
|
+
}) : n);
|
|
26
|
+
}, []), L = e.rects.reference, N = e.rects.popper, B = /* @__PURE__ */ new Map(), w = !0, s = i[0], m = 0; m < i.length; m++) {
|
|
27
|
+
var o = i[m], F = u(o), O = re(o) === ee, $ = [q, _].indexOf(F) >= 0, M = $ ? "width" : "height", v = Z(e, {
|
|
28
|
+
placement: o,
|
|
29
|
+
boundary: A,
|
|
30
|
+
rootBoundary: h,
|
|
31
|
+
altBoundary: z,
|
|
32
|
+
padding: y
|
|
33
|
+
}), f = $ ? O ? ae : te : O ? _ : q;
|
|
34
|
+
L[M] > N[M] && (f = c(f));
|
|
35
|
+
var Q = c(f), p = [];
|
|
36
|
+
if (I && p.push(v[F] <= 0), V && p.push(v[f] <= 0, v[Q] <= 0), p.every(function(l) {
|
|
37
|
+
return l;
|
|
38
|
+
})) {
|
|
39
|
+
s = o, w = !1;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
B.set(o, p);
|
|
43
|
+
}
|
|
44
|
+
if (w)
|
|
45
|
+
for (var T = d ? 3 : 1, U = function(n) {
|
|
46
|
+
var D = i.find(function(X) {
|
|
47
|
+
var E = B.get(X);
|
|
48
|
+
if (E)
|
|
49
|
+
return E.slice(0, n).every(function(Y) {
|
|
50
|
+
return Y;
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
if (D)
|
|
54
|
+
return s = D, "break";
|
|
55
|
+
}, P = T; P > 0; P--) {
|
|
56
|
+
var W = U(P);
|
|
57
|
+
if (W === "break") break;
|
|
58
|
+
}
|
|
59
|
+
e.placement !== s && (e.modifiersData[b]._skip = !0, e.placement = s, e.reset = !0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const de = {
|
|
63
|
+
name: "flip",
|
|
64
|
+
enabled: !0,
|
|
65
|
+
phase: "main",
|
|
66
|
+
fn: ne,
|
|
67
|
+
requiresIfExists: ["offset"],
|
|
68
|
+
data: {
|
|
69
|
+
_skip: !1
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
de as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { top as u, right as v, bottom as g, left as b } from "../enums.js";
|
|
2
|
+
import o from "../utils/detectOverflow.js";
|
|
3
|
+
function s(r, e, t) {
|
|
4
|
+
return t === void 0 && (t = {
|
|
5
|
+
x: 0,
|
|
6
|
+
y: 0
|
|
7
|
+
}), {
|
|
8
|
+
top: r.top - e.height - t.y,
|
|
9
|
+
right: r.right - e.width + t.x,
|
|
10
|
+
bottom: r.bottom - e.height + t.y,
|
|
11
|
+
left: r.left - e.width - t.x
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function f(r) {
|
|
15
|
+
return [u, v, g, b].some(function(e) {
|
|
16
|
+
return r[e] >= 0;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function O(r) {
|
|
20
|
+
var e = r.state, t = r.name, c = e.rects.reference, d = e.rects.popper, h = e.modifiersData.preventOverflow, l = o(e, {
|
|
21
|
+
elementContext: "reference"
|
|
22
|
+
}), m = o(e, {
|
|
23
|
+
altBoundary: !0
|
|
24
|
+
}), p = s(l, c), i = s(m, d, h), a = f(p), n = f(i);
|
|
25
|
+
e.modifiersData[t] = {
|
|
26
|
+
referenceClippingOffsets: p,
|
|
27
|
+
popperEscapeOffsets: i,
|
|
28
|
+
isReferenceHidden: a,
|
|
29
|
+
hasPopperEscaped: n
|
|
30
|
+
}, e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
31
|
+
"data-popper-reference-hidden": a,
|
|
32
|
+
"data-popper-escaped": n
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const E = {
|
|
36
|
+
name: "hide",
|
|
37
|
+
enabled: !0,
|
|
38
|
+
phase: "main",
|
|
39
|
+
requiresIfExists: ["preventOverflow"],
|
|
40
|
+
fn: O
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
E as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import u from "../utils/getBasePlacement.js";
|
|
2
|
+
import { placements as l, left as d, right as v, top as x } from "../enums.js";
|
|
3
|
+
function O(s, e, n) {
|
|
4
|
+
var i = u(s), f = [d, x].indexOf(i) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, e, {
|
|
5
|
+
placement: s
|
|
6
|
+
})) : n, t = o[0], a = o[1];
|
|
7
|
+
return t = t || 0, a = (a || 0) * f, [d, v].indexOf(i) >= 0 ? {
|
|
8
|
+
x: a,
|
|
9
|
+
y: t
|
|
10
|
+
} : {
|
|
11
|
+
x: t,
|
|
12
|
+
y: a
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function y(s) {
|
|
16
|
+
var e = s.state, n = s.options, i = s.name, f = n.offset, o = f === void 0 ? [0, 0] : f, t = l.reduce(function(r, p) {
|
|
17
|
+
return r[p] = O(p, e.rects, o), r;
|
|
18
|
+
}, {}), a = t[e.placement], m = a.x, c = a.y;
|
|
19
|
+
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += m, e.modifiersData.popperOffsets.y += c), e.modifiersData[i] = t;
|
|
20
|
+
}
|
|
21
|
+
const $ = {
|
|
22
|
+
name: "offset",
|
|
23
|
+
enabled: !0,
|
|
24
|
+
phase: "main",
|
|
25
|
+
requires: ["popperOffsets"],
|
|
26
|
+
fn: y
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
$ as default,
|
|
30
|
+
O as distanceAndSkiddingToXY
|
|
31
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import a from "../utils/computeOffsets.js";
|
|
2
|
+
function r(t) {
|
|
3
|
+
var e = t.state, p = t.name;
|
|
4
|
+
e.modifiersData[p] = a({
|
|
5
|
+
reference: e.rects.reference,
|
|
6
|
+
element: e.rects.popper,
|
|
7
|
+
placement: e.placement
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
const f = {
|
|
11
|
+
name: "popperOffsets",
|
|
12
|
+
enabled: !0,
|
|
13
|
+
phase: "read",
|
|
14
|
+
fn: r,
|
|
15
|
+
data: {}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
f as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { start as M, top as B, left as w, bottom as S, right as _ } from "../enums.js";
|
|
2
|
+
import Aa from "../utils/getBasePlacement.js";
|
|
3
|
+
import fa from "../utils/getMainAxisFromPlacement.js";
|
|
4
|
+
import ya from "../utils/getAltAxis.js";
|
|
5
|
+
import { within as D, withinMaxClamp as ga } from "../utils/within.js";
|
|
6
|
+
import ba from "../dom-utils/getLayoutRect.js";
|
|
7
|
+
import Oa from "../dom-utils/getOffsetParent.js";
|
|
8
|
+
import Ba from "../utils/detectOverflow.js";
|
|
9
|
+
import wa from "../utils/getVariation.js";
|
|
10
|
+
import Da from "../utils/getFreshSideObject.js";
|
|
11
|
+
import { max as Ra, min as ja } from "../utils/math.js";
|
|
12
|
+
function ka(A) {
|
|
13
|
+
var a = A.state, e = A.options, aa = A.name, R = e.mainAxis, ra = R === void 0 ? !0 : R, j = e.altAxis, ta = j === void 0 ? !1 : j, ea = e.boundary, ia = e.rootBoundary, oa = e.altBoundary, va = e.padding, k = e.tether, i = k === void 0 ? !0 : k, F = e.tetherOffset, f = F === void 0 ? 0 : F, c = Ba(a, {
|
|
14
|
+
boundary: ea,
|
|
15
|
+
rootBoundary: ia,
|
|
16
|
+
padding: va,
|
|
17
|
+
altBoundary: oa
|
|
18
|
+
}), T = Aa(a.placement), y = wa(a.placement), q = !y, r = fa(T), n = ya(r), p = a.modifiersData.popperOffsets, o = a.rects.reference, l = a.rects.popper, u = typeof f == "function" ? f(Object.assign({}, a.rects, {
|
|
19
|
+
placement: a.placement
|
|
20
|
+
})) : f, m = typeof u == "number" ? {
|
|
21
|
+
mainAxis: u,
|
|
22
|
+
altAxis: u
|
|
23
|
+
} : Object.assign({
|
|
24
|
+
mainAxis: 0,
|
|
25
|
+
altAxis: 0
|
|
26
|
+
}, u), x = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, g = {
|
|
27
|
+
x: 0,
|
|
28
|
+
y: 0
|
|
29
|
+
};
|
|
30
|
+
if (p) {
|
|
31
|
+
if (ra) {
|
|
32
|
+
var z, C = r === "y" ? B : w, I = r === "y" ? S : _, t = r === "y" ? "height" : "width", s = p[r], V = s + c[C], $ = s - c[I], E = i ? -l[t] / 2 : 0, ma = y === M ? o[t] : l[t], sa = y === M ? -l[t] : -o[t], G = a.elements.arrow, na = i && G ? ba(G) : {
|
|
33
|
+
width: 0,
|
|
34
|
+
height: 0
|
|
35
|
+
}, H = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Da(), J = H[C], K = H[I], d = D(0, o[t], na[t]), pa = q ? o[t] / 2 - E - d - J - m.mainAxis : ma - d - J - m.mainAxis, la = q ? -o[t] / 2 + E + d + K + m.mainAxis : sa + d + K + m.mainAxis, b = a.elements.arrow && Oa(a.elements.arrow), ca = b ? r === "y" ? b.clientTop || 0 : b.clientLeft || 0 : 0, N = (z = x == null ? void 0 : x[r]) != null ? z : 0, ua = s + pa - N - ca, xa = s + la - N, P = D(i ? ja(V, ua) : V, s, i ? Ra($, xa) : $);
|
|
36
|
+
p[r] = P, g[r] = P - s;
|
|
37
|
+
}
|
|
38
|
+
if (ta) {
|
|
39
|
+
var Q, da = r === "x" ? B : w, ha = r === "x" ? S : _, v = p[n], h = n === "y" ? "height" : "width", U = v + c[da], W = v - c[ha], O = [B, w].indexOf(T) !== -1, X = (Q = x == null ? void 0 : x[n]) != null ? Q : 0, Y = O ? U : v - o[h] - l[h] - X + m.altAxis, Z = O ? v + o[h] + l[h] - X - m.altAxis : W, L = i && O ? ga(Y, v, Z) : D(i ? Y : U, v, i ? Z : W);
|
|
40
|
+
p[n] = L, g[n] = L - v;
|
|
41
|
+
}
|
|
42
|
+
a.modifiersData[aa] = g;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const Ja = {
|
|
46
|
+
name: "preventOverflow",
|
|
47
|
+
enabled: !0,
|
|
48
|
+
phase: "main",
|
|
49
|
+
fn: ka,
|
|
50
|
+
requiresIfExists: ["offset"]
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
Ja as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { popperGenerator as r } from "./createPopper.js";
|
|
2
|
+
import o from "./modifiers/eventListeners.js";
|
|
3
|
+
import e from "./modifiers/popperOffsets.js";
|
|
4
|
+
import p from "./modifiers/computeStyles.js";
|
|
5
|
+
import t from "./modifiers/applyStyles.js";
|
|
6
|
+
import m from "./modifiers/offset.js";
|
|
7
|
+
import f from "./modifiers/flip.js";
|
|
8
|
+
import i from "./modifiers/preventOverflow.js";
|
|
9
|
+
import s from "./modifiers/arrow.js";
|
|
10
|
+
import a from "./modifiers/hide.js";
|
|
11
|
+
var l = [o, e, p, t, m, f, i, s, a], h = /* @__PURE__ */ r({
|
|
12
|
+
defaultModifiers: l
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
t as applyStyles,
|
|
16
|
+
s as arrow,
|
|
17
|
+
p as computeStyles,
|
|
18
|
+
h as createPopper,
|
|
19
|
+
l as defaultModifiers,
|
|
20
|
+
o as eventListeners,
|
|
21
|
+
f as flip,
|
|
22
|
+
a as hide,
|
|
23
|
+
m as offset,
|
|
24
|
+
r as popperGenerator,
|
|
25
|
+
e as popperOffsets,
|
|
26
|
+
i as preventOverflow
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import d from "./getVariation.js";
|
|
2
|
+
import { variationPlacements as f, basePlacements as g, placements as w } from "../enums.js";
|
|
3
|
+
import b from "./detectOverflow.js";
|
|
4
|
+
import A from "./getBasePlacement.js";
|
|
5
|
+
function _(m, r) {
|
|
6
|
+
r === void 0 && (r = {});
|
|
7
|
+
var t = r, c = t.placement, s = t.boundary, p = t.rootBoundary, v = t.padding, P = t.flipVariations, i = t.allowedAutoPlacements, y = i === void 0 ? w : i, l = d(c), u = l ? P ? f : f.filter(function(e) {
|
|
8
|
+
return d(e) === l;
|
|
9
|
+
}) : g, a = u.filter(function(e) {
|
|
10
|
+
return y.indexOf(e) >= 0;
|
|
11
|
+
});
|
|
12
|
+
a.length === 0 && (a = u);
|
|
13
|
+
var n = a.reduce(function(e, o) {
|
|
14
|
+
return e[o] = b(m, {
|
|
15
|
+
placement: o,
|
|
16
|
+
boundary: s,
|
|
17
|
+
rootBoundary: p,
|
|
18
|
+
padding: v
|
|
19
|
+
})[A(o)], e;
|
|
20
|
+
}, {});
|
|
21
|
+
return Object.keys(n).sort(function(e, o) {
|
|
22
|
+
return n[e] - n[o];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
_ as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import l from "./getBasePlacement.js";
|
|
2
|
+
import f from "./getVariation.js";
|
|
3
|
+
import x from "./getMainAxisFromPlacement.js";
|
|
4
|
+
import { left as y, right as g, bottom as p, top as u, end as v, start as b } from "../enums.js";
|
|
5
|
+
function A(o) {
|
|
6
|
+
var e = o.reference, a = o.element, i = o.placement, n = i ? l(i) : null, s = i ? f(i) : null, c = e.x + e.width / 2 - a.width / 2, h = e.y + e.height / 2 - a.height / 2, t;
|
|
7
|
+
switch (n) {
|
|
8
|
+
case u:
|
|
9
|
+
t = {
|
|
10
|
+
x: c,
|
|
11
|
+
y: e.y - a.height
|
|
12
|
+
};
|
|
13
|
+
break;
|
|
14
|
+
case p:
|
|
15
|
+
t = {
|
|
16
|
+
x: c,
|
|
17
|
+
y: e.y + e.height
|
|
18
|
+
};
|
|
19
|
+
break;
|
|
20
|
+
case g:
|
|
21
|
+
t = {
|
|
22
|
+
x: e.x + e.width,
|
|
23
|
+
y: h
|
|
24
|
+
};
|
|
25
|
+
break;
|
|
26
|
+
case y:
|
|
27
|
+
t = {
|
|
28
|
+
x: e.x - a.width,
|
|
29
|
+
y: h
|
|
30
|
+
};
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
t = {
|
|
34
|
+
x: e.x,
|
|
35
|
+
y: e.y
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
var r = n ? x(n) : null;
|
|
39
|
+
if (r != null) {
|
|
40
|
+
var m = r === "y" ? "height" : "width";
|
|
41
|
+
switch (s) {
|
|
42
|
+
case b:
|
|
43
|
+
t[r] = t[r] - (e[m] / 2 - a[m] / 2);
|
|
44
|
+
break;
|
|
45
|
+
case v:
|
|
46
|
+
t[r] = t[r] + (e[m] / 2 - a[m] / 2);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
A as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import M from "../dom-utils/getClippingRect.js";
|
|
2
|
+
import q from "../dom-utils/getDocumentElement.js";
|
|
3
|
+
import z from "../dom-utils/getBoundingClientRect.js";
|
|
4
|
+
import A from "./computeOffsets.js";
|
|
5
|
+
import F from "./rectToClientRect.js";
|
|
6
|
+
import { basePlacements as G, clippingParents as I, popper as o, reference as J, right as K, bottom as _, top as L, viewport as N } from "../enums.js";
|
|
7
|
+
import { isElement as Q } from "../dom-utils/instanceOf.js";
|
|
8
|
+
import S from "./mergePaddingObject.js";
|
|
9
|
+
import U from "./expandToHashMap.js";
|
|
10
|
+
function re(e, a) {
|
|
11
|
+
a === void 0 && (a = {});
|
|
12
|
+
var t = a, c = t.placement, s = c === void 0 ? e.placement : c, v = t.strategy, h = v === void 0 ? e.strategy : v, g = t.boundary, B = g === void 0 ? I : g, u = t.rootBoundary, $ = u === void 0 ? N : u, y = t.elementContext, r = y === void 0 ? o : y, b = t.altBoundary, j = b === void 0 ? !1 : b, C = t.padding, m = C === void 0 ? 0 : C, n = S(typeof m != "number" ? m : U(m, G)), E = r === o ? J : o, x = e.rects.popper, l = e.elements[j ? E : r], p = M(Q(l) ? l : l.contextElement || q(e.elements.popper), B, $, h), O = z(e.elements.reference), w = A({
|
|
13
|
+
reference: O,
|
|
14
|
+
element: x,
|
|
15
|
+
placement: s
|
|
16
|
+
}), D = F(Object.assign({}, x, w)), i = r === o ? D : O, f = {
|
|
17
|
+
top: p.top - i.top + n.top,
|
|
18
|
+
bottom: i.bottom - p.bottom + n.bottom,
|
|
19
|
+
left: p.left - i.left + n.left,
|
|
20
|
+
right: i.right - p.right + n.right
|
|
21
|
+
}, R = e.modifiersData.offset;
|
|
22
|
+
if (r === o && R) {
|
|
23
|
+
var P = R[s];
|
|
24
|
+
Object.keys(f).forEach(function(d) {
|
|
25
|
+
var T = [K, _].indexOf(d) >= 0 ? 1 : -1, H = [L, _].indexOf(d) >= 0 ? "y" : "x";
|
|
26
|
+
f[d] += P[H] * T;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return f;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
re as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function i(e) {
|
|
2
|
+
var s = e.reduce(function(t, a) {
|
|
3
|
+
var n = t[a.name];
|
|
4
|
+
return t[a.name] = n ? Object.assign({}, n, a, {
|
|
5
|
+
options: Object.assign({}, n.options, a.options),
|
|
6
|
+
data: Object.assign({}, n.data, a.data)
|
|
7
|
+
}) : a, t;
|
|
8
|
+
}, {});
|
|
9
|
+
return Object.keys(s).map(function(t) {
|
|
10
|
+
return s[t];
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
i as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { modifierPhases as f } from "../enums.js";
|
|
2
|
+
function i(e) {
|
|
3
|
+
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = [];
|
|
4
|
+
e.forEach(function(r) {
|
|
5
|
+
t.set(r.name, r);
|
|
6
|
+
});
|
|
7
|
+
function u(r) {
|
|
8
|
+
n.add(r.name);
|
|
9
|
+
var o = [].concat(r.requires || [], r.requiresIfExists || []);
|
|
10
|
+
o.forEach(function(s) {
|
|
11
|
+
if (!n.has(s)) {
|
|
12
|
+
var c = t.get(s);
|
|
13
|
+
c && u(c);
|
|
14
|
+
}
|
|
15
|
+
}), a.push(r);
|
|
16
|
+
}
|
|
17
|
+
return e.forEach(function(r) {
|
|
18
|
+
n.has(r.name) || u(r);
|
|
19
|
+
}), a;
|
|
20
|
+
}
|
|
21
|
+
function v(e) {
|
|
22
|
+
var t = i(e);
|
|
23
|
+
return f.reduce(function(n, a) {
|
|
24
|
+
return n.concat(t.filter(function(u) {
|
|
25
|
+
return u.phase === a;
|
|
26
|
+
}));
|
|
27
|
+
}, []);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
v as default
|
|
31
|
+
};
|