@dooherceg/tiptap-controlled-editor-with-table 0.0.7 → 0.0.8
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/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/assets/components/tiptap-node/blockquote-node/blockquote-node.css +1 -0
- package/dist/assets/components/tiptap-node/code-block-node/code-block-node.css +1 -0
- package/dist/assets/components/tiptap-node/heading-node/heading-node.css +1 -0
- package/dist/assets/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.css +1 -0
- package/dist/assets/components/tiptap-node/image-node/image-node.css +1 -0
- package/dist/assets/components/tiptap-node/list-node/list-node.css +1 -0
- package/dist/assets/components/tiptap-node/paragraph-node/paragraph-node.css +1 -0
- package/dist/assets/components/tiptap-templates/simple/simple-editor.css +1 -0
- package/dist/assets/{badge.css → components/tiptap-ui-primitive/badge/badge-colors.css} +1 -1
- package/dist/assets/components/tiptap-ui-primitive/badge/badge-group.css +1 -0
- package/dist/assets/components/tiptap-ui-primitive/badge/badge.css +1 -0
- package/dist/assets/{button.css → components/tiptap-ui-primitive/button/button-colors.css} +1 -1
- package/dist/assets/components/tiptap-ui-primitive/button/button-group.css +1 -0
- package/dist/assets/components/tiptap-ui-primitive/button/button.css +1 -0
- package/dist/assets/styles/_keyframe-animations.css +1 -0
- package/dist/assets/styles/_variables.css +1 -0
- package/dist/components/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.js +6 -58
- package/dist/components/tiptap-node/image-upload-node/image-upload-node.js +4 -3
- package/dist/components/tiptap-templates/simple/simple-editor.js +159 -1898
- package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.js +6 -5
- package/dist/components/tiptap-ui/color-highlight-button/use-color-highlight.js +1 -1
- package/dist/components/tiptap-ui/image-upload-button/use-image-upload.js +16 -16
- package/dist/components/tiptap-ui-primitive/badge/badge.js +19 -16
- package/dist/components/tiptap-ui-primitive/button/button.js +18 -15
- package/dist/components/tiptap-ui-primitive/card/card.js +13 -12
- package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.js +39 -1012
- package/dist/components/tiptap-ui-primitive/input/input.js +7 -6
- package/dist/components/tiptap-ui-primitive/popover/popover.js +24 -233
- package/dist/components/tiptap-ui-primitive/separator/separator.js +9 -8
- package/dist/components/tiptap-ui-primitive/toolbar/toolbar.js +2 -1
- package/dist/components/tiptap-ui-primitive/tooltip/tooltip.js +84 -1330
- package/dist/hooks/use-throttled-callback.js +13 -108
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +932 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +185 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +221 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +239 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +84 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +57 -0
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +128 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +713 -0
- package/dist/node_modules/@tiptap/extension-subscript/dist/index.js +40 -0
- package/dist/node_modules/@tiptap/extension-superscript/dist/index.js +40 -0
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +380 -0
- package/dist/node_modules/@tiptap/extension-text-align/dist/index.js +46 -0
- package/dist/node_modules/@tiptap/extension-typography/dist/index.js +125 -0
- package/dist/node_modules/@tiptap/extensions/dist/index.js +288 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/lodash.throttle/index.js +95 -0
- package/dist/{index-Bqw9S4qP.js → node_modules/react-hotkeys-hook/packages/react-hotkeys-hook/dist/index.js} +57 -55
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tabbable/dist/index.esm.js +197 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/package.json +1 -1
- package/dist/Combination-CO0ZtURs.js +0 -1333
- package/dist/assets/simple-editor.css +0 -1
- package/dist/floating-ui.react-dom-DgOuULHo.js +0 -1334
- /package/dist/assets/{image-upload-node.css → components/tiptap-node/image-upload-node/image-upload-node.css} +0 -0
- /package/dist/assets/{color-highlight-button.css → components/tiptap-ui/color-highlight-button/color-highlight-button.css} +0 -0
- /package/dist/assets/{card.css → components/tiptap-ui-primitive/card/card.css} +0 -0
- /package/dist/assets/{dropdown-menu.css → components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.css} +0 -0
- /package/dist/assets/{input.css → components/tiptap-ui-primitive/input/input.css} +0 -0
- /package/dist/assets/{popover.css → components/tiptap-ui-primitive/popover/popover.css} +0 -0
- /package/dist/assets/{separator.css → components/tiptap-ui-primitive/separator/separator.css} +0 -0
- /package/dist/assets/{toolbar.css → components/tiptap-ui-primitive/toolbar/toolbar.css} +0 -0
- /package/dist/assets/{tooltip.css → components/tiptap-ui-primitive/tooltip/tooltip.css} +0 -0
|
@@ -2,10 +2,11 @@ import { jsx as o, jsxs as S, Fragment as k } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as x, useCallback as I, useMemo as K } from "react";
|
|
3
3
|
import { parseShortcutKeys as N } from "../../../lib/tiptap-utils.js";
|
|
4
4
|
import { useTiptapEditor as O } from "../../../hooks/use-tiptap-editor.js";
|
|
5
|
+
import '../../../assets/components/tiptap-ui/color-highlight-button/color-highlight-button.css';/* empty css */
|
|
5
6
|
import { useColorHighlight as R, COLOR_HIGHLIGHT_SHORTCUT_KEY as _ } from "./use-color-highlight.js";
|
|
6
7
|
import { Button as j } from "../../tiptap-ui-primitive/button/button.js";
|
|
7
8
|
import { Badge as v } from "../../tiptap-ui-primitive/badge/badge.js";
|
|
8
|
-
|
|
9
|
+
function E({
|
|
9
10
|
shortcutKeys: e = _
|
|
10
11
|
}) {
|
|
11
12
|
return /* @__PURE__ */ o(v, { children: N({ shortcutKeys: e }) });
|
|
@@ -16,8 +17,8 @@ const G = x(
|
|
|
16
17
|
highlightColor: t,
|
|
17
18
|
text: r,
|
|
18
19
|
hideWhenUnavailable: h = !1,
|
|
19
|
-
mode:
|
|
20
|
-
onApplied:
|
|
20
|
+
mode: p = "mark",
|
|
21
|
+
onApplied: u,
|
|
21
22
|
showShortcut: m = !1,
|
|
22
23
|
onClick: i,
|
|
23
24
|
children: g,
|
|
@@ -36,8 +37,8 @@ const G = x(
|
|
|
36
37
|
highlightColor: t,
|
|
37
38
|
label: r || `Toggle highlight (${t})`,
|
|
38
39
|
hideWhenUnavailable: h,
|
|
39
|
-
mode:
|
|
40
|
-
onApplied:
|
|
40
|
+
mode: p,
|
|
41
|
+
onApplied: u
|
|
41
42
|
}), B = I(
|
|
42
43
|
(c) => {
|
|
43
44
|
i?.(c), !c.defaultPrevented && n();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@tiptap/react";
|
|
2
2
|
import { useState as C, useEffect as y, useCallback as f } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useHotkeys as M } from "../../../node_modules/react-hotkeys-hook/packages/react-hotkeys-hook/dist/index.js";
|
|
4
4
|
import { useIsMobile as E } from "../../../hooks/use-mobile.js";
|
|
5
5
|
import { useTiptapEditor as w } from "../../../hooks/use-tiptap-editor.js";
|
|
6
6
|
import { isMarkInSchema as d, isNodeTypeSelected as B, isExtensionAvailable as v } from "../../../lib/tiptap-utils.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useState as b, useEffect as I, useCallback as g } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useHotkeys as U } from "../../../node_modules/react-hotkeys-hook/packages/react-hotkeys-hook/dist/index.js";
|
|
3
3
|
import "@tiptap/react";
|
|
4
4
|
import { useTiptapEditor as h } from "../../../hooks/use-tiptap-editor.js";
|
|
5
5
|
import { useIsMobile as E } from "../../../hooks/use-mobile.js";
|
|
6
6
|
import { isExtensionAvailable as c } from "../../../lib/tiptap-utils.js";
|
|
7
7
|
import { ImagePlusIcon as v } from "../../tiptap-icons/image-plus-icon.js";
|
|
8
|
-
const
|
|
8
|
+
const f = "mod+shift+i";
|
|
9
9
|
function a(e) {
|
|
10
10
|
return !e || !e.isEditable || !c(e, "imageUpload") ? !1 : e.can().insertContent({ type: "imageUpload" });
|
|
11
11
|
}
|
|
12
12
|
function A(e) {
|
|
13
13
|
return !e || !e.isEditable ? !1 : e.isActive("imageUpload");
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function y(e) {
|
|
16
16
|
if (!e || !e.isEditable || !a(e)) return !1;
|
|
17
17
|
try {
|
|
18
18
|
return e.chain().focus().insertContent({
|
|
@@ -22,11 +22,11 @@ function C(e) {
|
|
|
22
22
|
return !1;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function C(e) {
|
|
26
26
|
const { editor: i, hideWhenUnavailable: s } = e;
|
|
27
27
|
return !i || !i.isEditable || !c(i, "imageUpload") ? !1 : s && !i.isActive("code") ? a(i) : !0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function D(e) {
|
|
30
30
|
const {
|
|
31
31
|
editor: i,
|
|
32
32
|
hideWhenUnavailable: s = !1,
|
|
@@ -35,21 +35,21 @@ function K(e) {
|
|
|
35
35
|
I(() => {
|
|
36
36
|
if (!t) return;
|
|
37
37
|
const n = () => {
|
|
38
|
-
d(
|
|
38
|
+
d(C({ editor: t, hideWhenUnavailable: s }));
|
|
39
39
|
};
|
|
40
40
|
return n(), t.on("selectionUpdate", n), () => {
|
|
41
41
|
t.off("selectionUpdate", n);
|
|
42
42
|
};
|
|
43
43
|
}, [t, s]);
|
|
44
|
-
const
|
|
44
|
+
const u = g(() => {
|
|
45
45
|
if (!t) return !1;
|
|
46
|
-
const n =
|
|
46
|
+
const n = y(t);
|
|
47
47
|
return n && r?.(), n;
|
|
48
48
|
}, [t, r]);
|
|
49
49
|
return U(
|
|
50
|
-
|
|
50
|
+
f,
|
|
51
51
|
(n) => {
|
|
52
|
-
n.preventDefault(),
|
|
52
|
+
n.preventDefault(), u();
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
enabled: o && l,
|
|
@@ -59,18 +59,18 @@ function K(e) {
|
|
|
59
59
|
), {
|
|
60
60
|
isVisible: o,
|
|
61
61
|
isActive: p,
|
|
62
|
-
handleImage:
|
|
62
|
+
handleImage: u,
|
|
63
63
|
canInsert: l,
|
|
64
64
|
label: "Add image",
|
|
65
|
-
shortcutKeys:
|
|
65
|
+
shortcutKeys: f,
|
|
66
66
|
Icon: v
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
f as IMAGE_UPLOAD_SHORTCUT_KEY,
|
|
71
71
|
a as canInsertImage,
|
|
72
|
-
|
|
72
|
+
y as insertImage,
|
|
73
73
|
A as isImageActive,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
C as shouldShowButton,
|
|
75
|
+
D as useImageUpload
|
|
76
76
|
};
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import '../../../assets/badge.css';
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import '../../../assets/components/tiptap-ui-primitive/badge/badge.css';import '../../../assets/components/tiptap-ui-primitive/badge/badge-group.css';import '../../../assets/components/tiptap-ui-primitive/badge/badge-colors.css';/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
const s = m(
|
|
4
7
|
({
|
|
5
8
|
variant: a,
|
|
6
9
|
size: t = "default",
|
|
7
10
|
appearance: e = "default",
|
|
8
|
-
trimText:
|
|
9
|
-
className:
|
|
10
|
-
children:
|
|
11
|
-
...
|
|
12
|
-
},
|
|
11
|
+
trimText: r = !1,
|
|
12
|
+
className: d,
|
|
13
|
+
children: o,
|
|
14
|
+
...p
|
|
15
|
+
}, f) => /* @__PURE__ */ i(
|
|
13
16
|
"div",
|
|
14
17
|
{
|
|
15
|
-
ref:
|
|
16
|
-
className: `tiptap-badge ${
|
|
18
|
+
ref: f,
|
|
19
|
+
className: `tiptap-badge ${d || ""}`,
|
|
17
20
|
"data-style": a,
|
|
18
21
|
"data-size": t,
|
|
19
22
|
"data-appearance": e,
|
|
20
|
-
"data-text-trim":
|
|
21
|
-
...
|
|
22
|
-
children:
|
|
23
|
+
"data-text-trim": r ? "on" : "off",
|
|
24
|
+
...p,
|
|
25
|
+
children: o
|
|
23
26
|
}
|
|
24
27
|
)
|
|
25
28
|
);
|
|
26
|
-
|
|
29
|
+
s.displayName = "Badge";
|
|
27
30
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
s as Badge,
|
|
32
|
+
s as default
|
|
30
33
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s, useMemo as d, Fragment as b } from "react";
|
|
3
3
|
import { parseShortcutKeys as f, cn as l } from "../../../lib/tiptap-utils.js";
|
|
4
|
+
import '../../../assets/components/tiptap-ui-primitive/button/button.css';import '../../../assets/components/tiptap-ui-primitive/button/button-group.css';import '../../../assets/components/tiptap-ui-primitive/button/button-colors.css';/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
4
7
|
import { Tooltip as h, TooltipTrigger as g, TooltipContent as y } from "../tooltip/tooltip.js";
|
|
5
|
-
|
|
8
|
+
const B = ({
|
|
6
9
|
shortcuts: t
|
|
7
|
-
}) => t.length === 0 ? null : /* @__PURE__ */ o("div", { children: t.map((a, r) => /* @__PURE__ */
|
|
10
|
+
}) => t.length === 0 ? null : /* @__PURE__ */ o("div", { children: t.map((a, r) => /* @__PURE__ */ n(b, { children: [
|
|
8
11
|
r > 0 && /* @__PURE__ */ o("kbd", { children: "+" }),
|
|
9
12
|
/* @__PURE__ */ o("kbd", { children: a })
|
|
10
13
|
] }, r)) }), N = s(
|
|
@@ -12,36 +15,36 @@ import '../../../assets/button.css';const B = ({
|
|
|
12
15
|
className: t,
|
|
13
16
|
children: a,
|
|
14
17
|
tooltip: r,
|
|
15
|
-
showTooltip:
|
|
18
|
+
showTooltip: i = !0,
|
|
16
19
|
shortcutKeys: e,
|
|
17
|
-
"aria-label":
|
|
18
|
-
...
|
|
20
|
+
"aria-label": p,
|
|
21
|
+
...u
|
|
19
22
|
}, m) => {
|
|
20
23
|
const c = d(
|
|
21
24
|
() => f({ shortcutKeys: e }),
|
|
22
25
|
[e]
|
|
23
26
|
);
|
|
24
|
-
return !r || !
|
|
27
|
+
return !r || !i ? /* @__PURE__ */ o(
|
|
25
28
|
"button",
|
|
26
29
|
{
|
|
27
30
|
className: l("tiptap-button", t),
|
|
28
31
|
ref: m,
|
|
29
|
-
"aria-label":
|
|
30
|
-
...
|
|
32
|
+
"aria-label": p,
|
|
33
|
+
...u,
|
|
31
34
|
children: a
|
|
32
35
|
}
|
|
33
|
-
) : /* @__PURE__ */
|
|
36
|
+
) : /* @__PURE__ */ n(h, { delay: 200, children: [
|
|
34
37
|
/* @__PURE__ */ o(
|
|
35
38
|
g,
|
|
36
39
|
{
|
|
37
40
|
className: l("tiptap-button", t),
|
|
38
41
|
ref: m,
|
|
39
|
-
"aria-label":
|
|
40
|
-
...
|
|
42
|
+
"aria-label": p,
|
|
43
|
+
...u,
|
|
41
44
|
children: a
|
|
42
45
|
}
|
|
43
46
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ n(y, { children: [
|
|
45
48
|
r,
|
|
46
49
|
/* @__PURE__ */ o(B, { shortcuts: c })
|
|
47
50
|
] })
|
|
@@ -49,14 +52,14 @@ import '../../../assets/button.css';const B = ({
|
|
|
49
52
|
}
|
|
50
53
|
);
|
|
51
54
|
N.displayName = "Button";
|
|
52
|
-
const T = s(({ className: t, children: a, orientation: r = "vertical", ...
|
|
55
|
+
const T = s(({ className: t, children: a, orientation: r = "vertical", ...i }, e) => /* @__PURE__ */ o(
|
|
53
56
|
"div",
|
|
54
57
|
{
|
|
55
58
|
ref: e,
|
|
56
59
|
className: l("tiptap-button-group", t),
|
|
57
60
|
"data-orientation": r,
|
|
58
61
|
role: "group",
|
|
59
|
-
...
|
|
62
|
+
...i,
|
|
60
63
|
children: a
|
|
61
64
|
}
|
|
62
65
|
));
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as e } from "react";
|
|
3
3
|
import { cn as o } from "../../../lib/tiptap-utils.js";
|
|
4
|
-
import '../../../assets/card.css'
|
|
5
|
-
|
|
4
|
+
import '../../../assets/components/tiptap-ui-primitive/card/card.css';/* empty css */
|
|
5
|
+
const i = e(
|
|
6
|
+
({ className: a, ...r }, t) => /* @__PURE__ */ d("div", { ref: t, className: o("tiptap-card", a), ...r })
|
|
6
7
|
);
|
|
7
8
|
i.displayName = "Card";
|
|
8
9
|
const s = e(
|
|
9
|
-
({ className: a, ...r },
|
|
10
|
+
({ className: a, ...r }, t) => /* @__PURE__ */ d(
|
|
10
11
|
"div",
|
|
11
12
|
{
|
|
12
|
-
ref:
|
|
13
|
+
ref: t,
|
|
13
14
|
className: o("tiptap-card-header", a),
|
|
14
15
|
...r
|
|
15
16
|
}
|
|
@@ -17,24 +18,24 @@ const s = e(
|
|
|
17
18
|
);
|
|
18
19
|
s.displayName = "CardHeader";
|
|
19
20
|
const m = e(
|
|
20
|
-
({ className: a, ...r },
|
|
21
|
+
({ className: a, ...r }, t) => /* @__PURE__ */ d("div", { ref: t, className: o("tiptap-card-body", a), ...r })
|
|
21
22
|
);
|
|
22
23
|
m.displayName = "CardBody";
|
|
23
|
-
const c = e(({ className: a, orientation: r = "vertical", ...
|
|
24
|
+
const c = e(({ className: a, orientation: r = "vertical", ...t }, p) => /* @__PURE__ */ d(
|
|
24
25
|
"div",
|
|
25
26
|
{
|
|
26
27
|
ref: p,
|
|
27
28
|
"data-orientation": r,
|
|
28
29
|
className: o("tiptap-card-item-group", a),
|
|
29
|
-
...
|
|
30
|
+
...t
|
|
30
31
|
}
|
|
31
32
|
));
|
|
32
33
|
c.displayName = "CardItemGroup";
|
|
33
34
|
const l = e(
|
|
34
|
-
({ className: a, ...r },
|
|
35
|
+
({ className: a, ...r }, t) => /* @__PURE__ */ d(
|
|
35
36
|
"div",
|
|
36
37
|
{
|
|
37
|
-
ref:
|
|
38
|
+
ref: t,
|
|
38
39
|
className: o("tiptap-card-group-label", a),
|
|
39
40
|
...r
|
|
40
41
|
}
|
|
@@ -42,10 +43,10 @@ const l = e(
|
|
|
42
43
|
);
|
|
43
44
|
l.displayName = "CardGroupLabel";
|
|
44
45
|
const n = e(
|
|
45
|
-
({ className: a, ...r },
|
|
46
|
+
({ className: a, ...r }, t) => /* @__PURE__ */ d(
|
|
46
47
|
"div",
|
|
47
48
|
{
|
|
48
|
-
ref:
|
|
49
|
+
ref: t,
|
|
49
50
|
className: o("tiptap-card-footer", a),
|
|
50
51
|
...r
|
|
51
52
|
}
|