@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
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as d, jsx as
|
|
1
|
+
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
3
|
import "class-variance-authority";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Typography as
|
|
4
|
+
import { ButtonLoader as b } from "./ButtonLoader.js";
|
|
5
|
+
import { buttonVariants as N } from "./buttonVariants.js";
|
|
6
|
+
import { Typography as B } from "../Typography/Typography.js";
|
|
7
7
|
import { cn as n } from "../../utils/cn.js";
|
|
8
|
-
const
|
|
8
|
+
const h = x.forwardRef(
|
|
9
9
|
({
|
|
10
10
|
className: f,
|
|
11
11
|
variant: i,
|
|
12
12
|
size: t,
|
|
13
13
|
fullWidth: c,
|
|
14
|
-
asChild:
|
|
14
|
+
asChild: u = !1,
|
|
15
15
|
icon: r,
|
|
16
16
|
iconPosition: m = "start",
|
|
17
17
|
ghost: e = !1,
|
|
18
18
|
danger: p = !1,
|
|
19
19
|
loading: a = !1,
|
|
20
|
-
children:
|
|
21
|
-
...
|
|
20
|
+
children: o,
|
|
21
|
+
...l
|
|
22
22
|
}, y) => /* @__PURE__ */ d(
|
|
23
|
-
|
|
23
|
+
u ? "span" : "button",
|
|
24
24
|
{
|
|
25
25
|
className: n(
|
|
26
|
-
|
|
26
|
+
N({
|
|
27
27
|
variant: i,
|
|
28
28
|
size: t,
|
|
29
29
|
fullWidth: c,
|
|
30
|
-
iconOnly: !
|
|
30
|
+
iconOnly: !o,
|
|
31
31
|
ghost: e,
|
|
32
32
|
danger: p,
|
|
33
33
|
loading: a,
|
|
@@ -37,12 +37,12 @@ const j = x.forwardRef(
|
|
|
37
37
|
ref: y,
|
|
38
38
|
"data-ghost": e,
|
|
39
39
|
"data-danger": p,
|
|
40
|
-
...
|
|
40
|
+
...l,
|
|
41
41
|
children: [
|
|
42
|
-
a && /* @__PURE__ */
|
|
42
|
+
a && /* @__PURE__ */ s("span", { className: "absolute", children: /* @__PURE__ */ s(b, {}) }),
|
|
43
43
|
m === "start" && r,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
o && /* @__PURE__ */ s(
|
|
45
|
+
B,
|
|
46
46
|
{
|
|
47
47
|
variant: "cta",
|
|
48
48
|
size: t == "sm" || t == "xs" ? "sm" : "base",
|
|
@@ -52,7 +52,7 @@ const j = x.forwardRef(
|
|
|
52
52
|
className: n("transition-opacity", {
|
|
53
53
|
"opacity-0": a
|
|
54
54
|
}),
|
|
55
|
-
children:
|
|
55
|
+
children: o
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
m === "end" && r
|
|
@@ -60,8 +60,8 @@ const j = x.forwardRef(
|
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
h.displayName = "Button";
|
|
64
64
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
h as Button,
|
|
66
|
+
N as buttonVariants
|
|
67
67
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ButtonLoaderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const ButtonLoader: React.ForwardRefExoticComponent<ButtonLoaderProps & React.RefAttributes<SVGSVGElement>>;
|
|
6
|
+
export { ButtonLoader };
|
|
7
|
+
//# sourceMappingURL=ButtonLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonLoader.d.ts","sourceRoot":"","sources":["../../../src/components/Button/ButtonLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,YAAY,yFA2BjB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as a } from "../../utils/cn.js";
|
|
4
|
+
const i = o.forwardRef(
|
|
5
|
+
({ className: r }, e) => /* @__PURE__ */ t(
|
|
6
|
+
"svg",
|
|
7
|
+
{
|
|
8
|
+
ref: e,
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "24",
|
|
11
|
+
height: "24",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
className: a(r),
|
|
15
|
+
children: /* @__PURE__ */ t(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M2 12C2 6.47715 6.47715 2 12 2C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
children: /* @__PURE__ */ t(
|
|
21
|
+
"animateTransform",
|
|
22
|
+
{
|
|
23
|
+
attributeType: "xml",
|
|
24
|
+
attributeName: "transform",
|
|
25
|
+
type: "rotate",
|
|
26
|
+
from: "-10 12 12",
|
|
27
|
+
to: "360 12 12",
|
|
28
|
+
dur: "0.75s",
|
|
29
|
+
repeatCount: "indefinite"
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
i.displayName = "ButtonLoader";
|
|
38
|
+
export {
|
|
39
|
+
i as ButtonLoader
|
|
40
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Button/buttonVariants.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;
|
|
1
|
+
{"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Button/buttonVariants.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;CA8NhC,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;8EA4J1B,CAAA"}
|
|
@@ -23,7 +23,6 @@ const e = {
|
|
|
23
23
|
"data-[ghost=true]:hover:bg-comp-button-primary-ghost-bg-hover",
|
|
24
24
|
"data-[ghost=true]:hover:text-comp-button-primary-ghost-text-hover",
|
|
25
25
|
"data-[ghost=true]:hover:border-comp-button-primary-ghost-stroke-hover",
|
|
26
|
-
"data-[ghost=true]:focus-visible-default",
|
|
27
26
|
"data-[ghost=true]:active:bg-comp-button-primary-ghost-bg-focused",
|
|
28
27
|
"data-[ghost=true]:active:text-comp-button-primary-ghost-text-focused",
|
|
29
28
|
"data-[ghost=true]:focus-visible:border-comp-button-primary-ghost-stroke-focused",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AA4B3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA+BvB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAuB3B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAuB9B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAwB5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AA4B3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA+BvB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAuB3B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAuB9B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAwB5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAgCxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAiC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KA2C/B,CAAA;AAED,eAAO,MAAM,kCAAkC,EAAE,KA+EhD,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KA4B5B,CAAA"}
|
|
@@ -37,6 +37,7 @@ export declare const Fingerprint: Icon;
|
|
|
37
37
|
export declare const Coins: Icon;
|
|
38
38
|
export declare const Coins2Outline: Icon;
|
|
39
39
|
export declare const Coins3: Icon;
|
|
40
|
+
export declare const ColorSquare: Icon;
|
|
40
41
|
export declare const EmptyCircle: Icon;
|
|
41
42
|
export declare const MenuDotsVertical: Icon;
|
|
42
43
|
//# sourceMappingURL=CustomIcons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomIcons.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/CustomIcons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAI7D,eAAO,MAAM,SAAS,EAAE,IAiBvB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IAexB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAGD,eAAO,MAAM,QAAQ,EAAE,IAStB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,IAa3B,CAAA;AAGD,eAAO,MAAM,KAAK,EAAE,IAUnB,CAAA;AAGD,eAAO,MAAM,cAAc,EAAE,IAS5B,CAAA;AAGD,eAAO,MAAM,gBAAgB,EAAE,IAS9B,CAAA;AAGD,eAAO,MAAM,GAAG,EAAE,IAOhB,CAAA;AAGF,eAAO,MAAM,GAAG,EAAE,IAOhB,CAAA;AAGF,eAAO,MAAM,OAAO,EAAE,IAWrB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IAWxB,CAAA;AAGD,eAAO,MAAM,eAAe,EAAE,IAW7B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IA2BpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IAgCpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IAqCpB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IASxB,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,IAS1B,CAAA;AAGD,eAAO,MAAM,mBAAmB,EAAE,IASjC,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IASxB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IASxB,CAAA;AAGD,eAAO,MAAM,gBAAgB,EAAE,IAS9B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAID,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAKD,eAAO,MAAM,gBAAgB,EAAE,IAW9B,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,IAiB1B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,IAAI,EAAE,IA2BjB,CAAA;AAGF,eAAO,MAAM,IAAI,EAAE,IAOjB,CAAA;AAGF,eAAO,MAAM,WAAW,EAAE,IAmCzB,CAAA;AAGD,eAAO,MAAM,KAAK,EAAE,IASnB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,IAiB3B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IAapB,CAAA;AAGD,eAAO,MAAM,WAAW,EAAE,IAWzB,CAAA;AAGD,eAAO,MAAM,gBAAgB,EAAE,IAiB9B,CAAA"}
|
|
1
|
+
{"version":3,"file":"CustomIcons.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/CustomIcons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAI7D,eAAO,MAAM,SAAS,EAAE,IAiBvB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IAexB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAGD,eAAO,MAAM,QAAQ,EAAE,IAStB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,IAa3B,CAAA;AAGD,eAAO,MAAM,KAAK,EAAE,IAUnB,CAAA;AAGD,eAAO,MAAM,cAAc,EAAE,IAS5B,CAAA;AAGD,eAAO,MAAM,gBAAgB,EAAE,IAS9B,CAAA;AAGD,eAAO,MAAM,GAAG,EAAE,IAOhB,CAAA;AAGF,eAAO,MAAM,GAAG,EAAE,IAOhB,CAAA;AAGF,eAAO,MAAM,OAAO,EAAE,IAWrB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IAWxB,CAAA;AAGD,eAAO,MAAM,eAAe,EAAE,IAW7B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IA2BpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IAgCpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IAqCpB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IASxB,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,IAS1B,CAAA;AAGD,eAAO,MAAM,mBAAmB,EAAE,IASjC,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IASxB,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,IASxB,CAAA;AAGD,eAAO,MAAM,gBAAgB,EAAE,IAS9B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAID,eAAO,MAAM,OAAO,EAAE,IASrB,CAAA;AAKD,eAAO,MAAM,gBAAgB,EAAE,IAW9B,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,IAiB1B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IASpB,CAAA;AAGD,eAAO,MAAM,IAAI,EAAE,IA2BjB,CAAA;AAGF,eAAO,MAAM,IAAI,EAAE,IAOjB,CAAA;AAGF,eAAO,MAAM,WAAW,EAAE,IAmCzB,CAAA;AAGD,eAAO,MAAM,KAAK,EAAE,IASnB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,IAiB3B,CAAA;AAGD,eAAO,MAAM,MAAM,EAAE,IAapB,CAAA;AAGD,eAAO,MAAM,WAAW,EAAE,IASzB,CAAA;AAGD,eAAO,MAAM,WAAW,EAAE,IAWzB,CAAA;AAGD,eAAO,MAAM,gBAAgB,EAAE,IAiB9B,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
3
|
import { IconBase as e } from "@solar-icons/react-perf";
|
|
4
|
-
const
|
|
5
|
-
(L, l) => /* @__PURE__ */
|
|
4
|
+
const i = r(
|
|
5
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
6
6
|
/* @__PURE__ */ C(
|
|
7
7
|
"path",
|
|
8
8
|
{
|
|
@@ -26,7 +26,7 @@ const o = r(
|
|
|
26
26
|
)
|
|
27
27
|
] })
|
|
28
28
|
);
|
|
29
|
-
|
|
29
|
+
i.displayName = "EyeClosed";
|
|
30
30
|
const t = r(
|
|
31
31
|
(L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE__ */ C(
|
|
32
32
|
"path",
|
|
@@ -38,7 +38,7 @@ const t = r(
|
|
|
38
38
|
);
|
|
39
39
|
t.displayName = "Barcode";
|
|
40
40
|
const H = r(
|
|
41
|
-
(L, l) => /* @__PURE__ */
|
|
41
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
42
42
|
/* @__PURE__ */ C(
|
|
43
43
|
"path",
|
|
44
44
|
{
|
|
@@ -79,7 +79,7 @@ const n = r(
|
|
|
79
79
|
);
|
|
80
80
|
n.displayName = "MuzaIcon";
|
|
81
81
|
const V = r(
|
|
82
|
-
(L, l) => /* @__PURE__ */
|
|
82
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
83
83
|
/* @__PURE__ */ C(
|
|
84
84
|
"path",
|
|
85
85
|
{
|
|
@@ -181,8 +181,8 @@ const u = r(
|
|
|
181
181
|
);
|
|
182
182
|
u.displayName = "MagnifyingGlass";
|
|
183
183
|
const f = r(
|
|
184
|
-
(L, l) => /* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
184
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, viewBox: "0 0 20 20", children: [
|
|
185
|
+
/* @__PURE__ */ o("g", { clipPath: "url(#clip0_6290_399)", children: [
|
|
186
186
|
/* @__PURE__ */ C(
|
|
187
187
|
"path",
|
|
188
188
|
{
|
|
@@ -216,8 +216,8 @@ const f = r(
|
|
|
216
216
|
);
|
|
217
217
|
f.displayName = "FlagCz";
|
|
218
218
|
const m = r(
|
|
219
|
-
(L, l) => /* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
219
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, viewBox: "0 0 20 20", children: [
|
|
220
|
+
/* @__PURE__ */ o("g", { clipPath: "url(#clip0_6290_408)", children: [
|
|
221
221
|
/* @__PURE__ */ C("path", { d: "M1.00015 4H19.0002V15.9754H1.00015V4Z", fill: "#EFEFEF" }),
|
|
222
222
|
/* @__PURE__ */ C(
|
|
223
223
|
"path",
|
|
@@ -259,8 +259,8 @@ const m = r(
|
|
|
259
259
|
);
|
|
260
260
|
m.displayName = "FlagEn";
|
|
261
261
|
const y = r(
|
|
262
|
-
(L, l) => /* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
262
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, viewBox: "0 0 20 20", children: [
|
|
263
|
+
/* @__PURE__ */ o("g", { clipPath: "url(#clip0_6290_420)", children: [
|
|
264
264
|
/* @__PURE__ */ C(
|
|
265
265
|
"path",
|
|
266
266
|
{
|
|
@@ -399,7 +399,7 @@ const B = r(
|
|
|
399
399
|
) })
|
|
400
400
|
);
|
|
401
401
|
B.displayName = "NumberList";
|
|
402
|
-
const
|
|
402
|
+
const S = r(
|
|
403
403
|
(L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE__ */ C(
|
|
404
404
|
"path",
|
|
405
405
|
{
|
|
@@ -408,8 +408,8 @@ const w = r(
|
|
|
408
408
|
}
|
|
409
409
|
) })
|
|
410
410
|
);
|
|
411
|
-
|
|
412
|
-
const
|
|
411
|
+
S.displayName = "RemoveTextFormat";
|
|
412
|
+
const w = r(
|
|
413
413
|
(L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE__ */ C(
|
|
414
414
|
"path",
|
|
415
415
|
{
|
|
@@ -418,12 +418,12 @@ const S = r(
|
|
|
418
418
|
}
|
|
419
419
|
) })
|
|
420
420
|
);
|
|
421
|
-
|
|
421
|
+
w.displayName = "Colour";
|
|
422
422
|
const _ = r(
|
|
423
423
|
(L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE__ */ C(
|
|
424
424
|
"path",
|
|
425
425
|
{
|
|
426
|
-
d: "
|
|
426
|
+
d: "M2 12C2 6.47715 6.47715 2 12 2C12.5523 2 13 2.44772 13 3C13 3.55228 12.5523 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 11.4477 20.4477 11 21 11C21.5523 11 22 11.4477 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z",
|
|
427
427
|
fill: "currentColor"
|
|
428
428
|
}
|
|
429
429
|
) })
|
|
@@ -442,7 +442,7 @@ const D = r(
|
|
|
442
442
|
);
|
|
443
443
|
D.displayName = "DoubleArrowRight";
|
|
444
444
|
const P = r(
|
|
445
|
-
(L, l) => /* @__PURE__ */
|
|
445
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
446
446
|
/* @__PURE__ */ C(
|
|
447
447
|
"path",
|
|
448
448
|
{
|
|
@@ -477,7 +477,7 @@ const T = r(
|
|
|
477
477
|
) })
|
|
478
478
|
);
|
|
479
479
|
T.displayName = "XClose";
|
|
480
|
-
const z = r((L, l) => /* @__PURE__ */
|
|
480
|
+
const z = r((L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
481
481
|
/* @__PURE__ */ C(
|
|
482
482
|
"path",
|
|
483
483
|
{
|
|
@@ -531,7 +531,7 @@ const A = r((L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE_
|
|
|
531
531
|
) }));
|
|
532
532
|
A.displayName = "Plus";
|
|
533
533
|
const I = r(
|
|
534
|
-
(L, l) => /* @__PURE__ */
|
|
534
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
535
535
|
/* @__PURE__ */ C(
|
|
536
536
|
"path",
|
|
537
537
|
{
|
|
@@ -591,7 +591,7 @@ const W = r(
|
|
|
591
591
|
);
|
|
592
592
|
W.displayName = "Coins";
|
|
593
593
|
const b = r(
|
|
594
|
-
(L, l) => /* @__PURE__ */
|
|
594
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
595
595
|
/* @__PURE__ */ C(
|
|
596
596
|
"path",
|
|
597
597
|
{
|
|
@@ -614,7 +614,7 @@ const b = r(
|
|
|
614
614
|
);
|
|
615
615
|
b.displayName = "Coins2Outline";
|
|
616
616
|
const K = r(
|
|
617
|
-
(L, l) => /* @__PURE__ */
|
|
617
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
618
618
|
/* @__PURE__ */ C(
|
|
619
619
|
"path",
|
|
620
620
|
{
|
|
@@ -633,6 +633,16 @@ const K = r(
|
|
|
633
633
|
);
|
|
634
634
|
K.displayName = "Coins3";
|
|
635
635
|
const j = r(
|
|
636
|
+
(L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE__ */ C(
|
|
637
|
+
"path",
|
|
638
|
+
{
|
|
639
|
+
d: "M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",
|
|
640
|
+
fill: "currentColor"
|
|
641
|
+
}
|
|
642
|
+
) })
|
|
643
|
+
);
|
|
644
|
+
j.displayName = "ColorSquare";
|
|
645
|
+
const q = r(
|
|
636
646
|
(L, l) => /* @__PURE__ */ C(e, { ref: l, ...L, children: /* @__PURE__ */ C(
|
|
637
647
|
"path",
|
|
638
648
|
{
|
|
@@ -643,9 +653,9 @@ const j = r(
|
|
|
643
653
|
}
|
|
644
654
|
) })
|
|
645
655
|
);
|
|
646
|
-
|
|
656
|
+
q.displayName = "EmptyCircle";
|
|
647
657
|
const G = r(
|
|
648
|
-
(L, l) => /* @__PURE__ */
|
|
658
|
+
(L, l) => /* @__PURE__ */ o(e, { ref: l, ...L, children: [
|
|
649
659
|
/* @__PURE__ */ C(
|
|
650
660
|
"path",
|
|
651
661
|
{
|
|
@@ -681,16 +691,17 @@ export {
|
|
|
681
691
|
H as Coins2Bold,
|
|
682
692
|
b as Coins2Outline,
|
|
683
693
|
K as Coins3,
|
|
684
|
-
|
|
694
|
+
j as ColorSquare,
|
|
695
|
+
w as Colour,
|
|
685
696
|
d as Cutlery,
|
|
686
697
|
D as DoubleArrowRight,
|
|
687
698
|
Z as EUR,
|
|
688
699
|
k as EditorBold,
|
|
689
700
|
v as EditorItalic,
|
|
690
701
|
g as EditorStrikethrough,
|
|
691
|
-
|
|
702
|
+
q as EmptyCircle,
|
|
692
703
|
P as ExternalLink,
|
|
693
|
-
|
|
704
|
+
i as EyeClosed,
|
|
694
705
|
I as Fingerprint,
|
|
695
706
|
f as FlagCz,
|
|
696
707
|
m as FlagEn,
|
|
@@ -702,7 +713,7 @@ export {
|
|
|
702
713
|
n as MuzaIcon,
|
|
703
714
|
B as NumberList,
|
|
704
715
|
A as Plus,
|
|
705
|
-
|
|
716
|
+
S as RemoveTextFormat,
|
|
706
717
|
N as Reorder,
|
|
707
718
|
a as SKMap,
|
|
708
719
|
z as Scan,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as I } from "react";
|
|
3
3
|
import { typographyVariants as T, Typography as w } from "../Typography/Typography.js";
|
|
4
|
+
import { motion as n } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
4
5
|
import { ReorderableGroup as A, ReorderableItem as C, ReorderableHandle as H } from "../Reorderable/Reorderable.js";
|
|
5
6
|
import { Reorder as O } from "../Icons/CustomIcons.js";
|
|
6
7
|
import { cn as s } from "../../utils/cn.js";
|
|
7
|
-
import { motion as n } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
8
8
|
const p = 72, u = 20, k = 24, E = 4, D = ({
|
|
9
9
|
data: b,
|
|
10
10
|
onReorder: N,
|
|
@@ -9,11 +9,11 @@ import { useMotionValue as J } from "../../node_modules/framer-motion/dist/es/va
|
|
|
9
9
|
import { useTransform as T } from "../../node_modules/framer-motion/dist/es/value/use-transform.js";
|
|
10
10
|
import { useMotionValueEvent as Q } from "../../node_modules/framer-motion/dist/es/utils/use-motion-value-event.js";
|
|
11
11
|
import { animate as u } from "../../node_modules/framer-motion/dist/es/animation/animate/index.js";
|
|
12
|
+
import { motion as E } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
12
13
|
import { Typography as V } from "../Typography/Typography.js";
|
|
13
14
|
import { DoubleArrowRight as X } from "../Icons/CustomIcons.js";
|
|
14
15
|
import { useDragControls as Z } from "../../node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.js";
|
|
15
16
|
import { cn as y } from "../../utils/cn.js";
|
|
16
|
-
import { motion as E } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
17
17
|
import { UnreadOutline as ee } from "@solar-icons/react-perf";
|
|
18
18
|
const ve = ({
|
|
19
19
|
text: z,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Editor } from '@tiptap/react';
|
|
3
|
+
import { TextEditorTranslations } from '../../translations/types';
|
|
4
|
+
import { TextEditorToolbarConfig } from './TextEditor';
|
|
5
|
+
export interface EditorToolbarProps {
|
|
6
|
+
editor: Editor | null;
|
|
7
|
+
toolbarConfig: Required<TextEditorToolbarConfig>;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
translations: TextEditorTranslations;
|
|
10
|
+
onLinkClick: () => void;
|
|
11
|
+
toolbarExtra?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Internal toolbar component for TextEditor.
|
|
15
|
+
* Renders toolbar buttons based on the provided configuration.
|
|
16
|
+
*/
|
|
17
|
+
export declare const EditorToolbar: ({ editor, toolbarConfig, disabled, translations: t, onLinkClick, toolbarExtra, }: EditorToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=EditorToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/TextEditor/EditorToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAgBlE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAI3D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,aAAa,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAA;IAChD,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,sBAAsB,CAAA;IACpC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,YAAY,CAAC,EAAE,SAAS,CAAA;CACzB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,kFAO3B,kBAAkB,4CAoLpB,CAAA"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { jsxs as u, Fragment as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { ToolbarButton as h } from "./ToolbarButton.js";
|
|
3
|
+
import { ToolbarSeparator as e } from "./ToolbarSeparator.js";
|
|
4
|
+
import { Flex as v } from "../Flex/Flex.js";
|
|
5
|
+
import { TextH1 as B, TextH2 as L, TextH3 as A, BulletList as T, NumberList as i } from "../Icons/CustomIcons.js";
|
|
6
|
+
import { UndoLeftBold as H, UndoRightBold as y, TextBoldBold as F, TextItalicBold as w, TextCrossBold as I, LinkRoundBold as N, EraserBold as S } from "@solar-icons/react-perf";
|
|
7
|
+
const O = ({
|
|
8
|
+
editor: l,
|
|
9
|
+
toolbarConfig: c,
|
|
10
|
+
disabled: a,
|
|
11
|
+
translations: s,
|
|
12
|
+
onLinkClick: x,
|
|
13
|
+
toolbarExtra: p
|
|
14
|
+
}) => {
|
|
15
|
+
const g = (k, f) => typeof k == "boolean" ? k : k.includes(f);
|
|
16
|
+
return /* @__PURE__ */ u(
|
|
17
|
+
v,
|
|
18
|
+
{
|
|
19
|
+
wrap: "wrap",
|
|
20
|
+
align: "center",
|
|
21
|
+
gap: "md",
|
|
22
|
+
padding: { px: "2xl", py: "md" },
|
|
23
|
+
className: "border-b border-comp-texteditor-stroke-def",
|
|
24
|
+
children: [
|
|
25
|
+
c.history !== !1 && /* @__PURE__ */ u(m, { children: [
|
|
26
|
+
/* @__PURE__ */ u(v, { align: "center", gap: "3xs", children: [
|
|
27
|
+
g(c.history, "undo") && /* @__PURE__ */ n(
|
|
28
|
+
h,
|
|
29
|
+
{
|
|
30
|
+
icon: /* @__PURE__ */ n(H, {}),
|
|
31
|
+
onClick: () => l == null ? void 0 : l.chain().focus().undo().run(),
|
|
32
|
+
disabled: a || !(l != null && l.can().undo()),
|
|
33
|
+
label: s.undo
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
g(c.history, "redo") && /* @__PURE__ */ n(
|
|
37
|
+
h,
|
|
38
|
+
{
|
|
39
|
+
icon: /* @__PURE__ */ n(y, {}),
|
|
40
|
+
onClick: () => l == null ? void 0 : l.chain().focus().redo().run(),
|
|
41
|
+
disabled: a || !(l != null && l.can().redo()),
|
|
42
|
+
label: s.redo
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ n(e, {})
|
|
47
|
+
] }),
|
|
48
|
+
c.headings !== !1 && /* @__PURE__ */ u(m, { children: [
|
|
49
|
+
/* @__PURE__ */ u(v, { align: "center", gap: "3xs", children: [
|
|
50
|
+
g(c.headings, 1) && /* @__PURE__ */ n(
|
|
51
|
+
h,
|
|
52
|
+
{
|
|
53
|
+
icon: /* @__PURE__ */ n(B, {}),
|
|
54
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
55
|
+
active: l == null ? void 0 : l.isActive("heading", { level: 1 }),
|
|
56
|
+
disabled: a,
|
|
57
|
+
label: s.heading1
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
g(c.headings, 2) && /* @__PURE__ */ n(
|
|
61
|
+
h,
|
|
62
|
+
{
|
|
63
|
+
icon: /* @__PURE__ */ n(L, {}),
|
|
64
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
65
|
+
active: l == null ? void 0 : l.isActive("heading", { level: 2 }),
|
|
66
|
+
disabled: a,
|
|
67
|
+
label: s.heading2
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
g(c.headings, 3) && /* @__PURE__ */ n(
|
|
71
|
+
h,
|
|
72
|
+
{
|
|
73
|
+
icon: /* @__PURE__ */ n(A, {}),
|
|
74
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
75
|
+
active: l == null ? void 0 : l.isActive("heading", { level: 3 }),
|
|
76
|
+
disabled: a,
|
|
77
|
+
label: s.heading3
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ n(e, {})
|
|
82
|
+
] }),
|
|
83
|
+
c.formatting !== !1 && /* @__PURE__ */ u(m, { children: [
|
|
84
|
+
/* @__PURE__ */ u(v, { align: "center", gap: "3xs", children: [
|
|
85
|
+
g(c.formatting, "bold") && /* @__PURE__ */ n(
|
|
86
|
+
h,
|
|
87
|
+
{
|
|
88
|
+
icon: /* @__PURE__ */ n(F, {}),
|
|
89
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleBold().run(),
|
|
90
|
+
active: l == null ? void 0 : l.isActive("bold"),
|
|
91
|
+
disabled: a,
|
|
92
|
+
label: s.bold
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
g(c.formatting, "italic") && /* @__PURE__ */ n(
|
|
96
|
+
h,
|
|
97
|
+
{
|
|
98
|
+
icon: /* @__PURE__ */ n(w, {}),
|
|
99
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleItalic().run(),
|
|
100
|
+
active: l == null ? void 0 : l.isActive("italic"),
|
|
101
|
+
disabled: a,
|
|
102
|
+
label: s.italic
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
g(c.formatting, "strikethrough") && /* @__PURE__ */ n(
|
|
106
|
+
h,
|
|
107
|
+
{
|
|
108
|
+
icon: /* @__PURE__ */ n(I, {}),
|
|
109
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleStrike().run(),
|
|
110
|
+
active: l == null ? void 0 : l.isActive("strike"),
|
|
111
|
+
disabled: a,
|
|
112
|
+
label: s.strikethrough
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ n(e, {})
|
|
117
|
+
] }),
|
|
118
|
+
c.lists !== !1 && /* @__PURE__ */ u(m, { children: [
|
|
119
|
+
/* @__PURE__ */ u(v, { align: "center", gap: "3xs", children: [
|
|
120
|
+
g(c.lists, "bullet") && /* @__PURE__ */ n(
|
|
121
|
+
h,
|
|
122
|
+
{
|
|
123
|
+
icon: /* @__PURE__ */ n(T, {}),
|
|
124
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleBulletList().run(),
|
|
125
|
+
active: l == null ? void 0 : l.isActive("bulletList"),
|
|
126
|
+
disabled: a,
|
|
127
|
+
label: s.bulletList
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
g(c.lists, "ordered") && /* @__PURE__ */ n(
|
|
131
|
+
h,
|
|
132
|
+
{
|
|
133
|
+
icon: /* @__PURE__ */ n(i, {}),
|
|
134
|
+
onClick: () => l == null ? void 0 : l.chain().focus().toggleOrderedList().run(),
|
|
135
|
+
active: l == null ? void 0 : l.isActive("orderedList"),
|
|
136
|
+
disabled: a,
|
|
137
|
+
label: s.orderedList
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ n(e, {})
|
|
142
|
+
] }),
|
|
143
|
+
c.link && /* @__PURE__ */ u(m, { children: [
|
|
144
|
+
/* @__PURE__ */ n(
|
|
145
|
+
h,
|
|
146
|
+
{
|
|
147
|
+
icon: /* @__PURE__ */ n(N, {}),
|
|
148
|
+
onClick: x,
|
|
149
|
+
active: l == null ? void 0 : l.isActive("link"),
|
|
150
|
+
disabled: a,
|
|
151
|
+
label: s.insertLink
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ n(e, {})
|
|
155
|
+
] }),
|
|
156
|
+
c.clearFormatting && /* @__PURE__ */ u(m, { children: [
|
|
157
|
+
/* @__PURE__ */ n(
|
|
158
|
+
h,
|
|
159
|
+
{
|
|
160
|
+
icon: /* @__PURE__ */ n(S, {}),
|
|
161
|
+
onClick: () => l == null ? void 0 : l.chain().focus().unsetAllMarks().clearNodes().run(),
|
|
162
|
+
disabled: a,
|
|
163
|
+
label: s.clearFormatting
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
p && /* @__PURE__ */ n(e, {})
|
|
167
|
+
] }),
|
|
168
|
+
p
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
};
|
|
173
|
+
export {
|
|
174
|
+
O as EditorToolbar
|
|
175
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
/**
|
|
3
|
+
* Translations for the LinkBubbleMenu component.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface LinkBubbleMenuTranslations {
|
|
7
|
+
/** Text for the save button */
|
|
8
|
+
saveButton: string;
|
|
9
|
+
/** Text for the cancel button */
|
|
10
|
+
cancelButton: string;
|
|
11
|
+
/** Aria label for the edit button */
|
|
12
|
+
editButton: string;
|
|
13
|
+
/** Aria label for the remove button */
|
|
14
|
+
removeButton: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Props for the LinkBubbleMenu component.
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export interface LinkBubbleMenuProps {
|
|
21
|
+
/** The TipTap editor instance */
|
|
22
|
+
editor: Editor;
|
|
23
|
+
/** Current URL value in the input */
|
|
24
|
+
linkUrl: string;
|
|
25
|
+
/** Whether the edit input is visible */
|
|
26
|
+
isEditingLink: boolean;
|
|
27
|
+
/** Fires when the URL input value changes */
|
|
28
|
+
onUrlChange: (url: string) => void;
|
|
29
|
+
/** Fires when the edit button is clicked */
|
|
30
|
+
onEdit: () => void;
|
|
31
|
+
/** Fires when the save button is clicked or Enter is pressed */
|
|
32
|
+
onSave: () => void;
|
|
33
|
+
/** Fires when the remove button is clicked */
|
|
34
|
+
onRemove: () => void;
|
|
35
|
+
/** Fires when the cancel button is clicked or Escape is pressed */
|
|
36
|
+
onCancel: () => void;
|
|
37
|
+
/** Translation strings */
|
|
38
|
+
translations: LinkBubbleMenuTranslations;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Bubble menu for editing links in the TextEditor.
|
|
42
|
+
*
|
|
43
|
+
* Shows when a link is selected, displaying either:
|
|
44
|
+
* - View mode: Link URL with edit/remove buttons
|
|
45
|
+
* - Edit mode: Input field with save/cancel buttons
|
|
46
|
+
*
|
|
47
|
+
* Supports keyboard shortcuts: Enter to save, Escape to cancel.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
export declare const LinkBubbleMenu: ({ editor, linkUrl, isEditingLink, onUrlChange, onEdit, onSave, onRemove, onCancel, translations, }: LinkBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=LinkBubbleMenu.d.ts.map
|