reactjs-tiptap-editor 1.0.12 → 1.0.13
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/lib/{ActionMenuButton-CPPHERbq.cjs → ActionMenuButton-DNj0f_A4.cjs} +1 -1
- package/lib/{ActionMenuButton-BKqin6Kz.js → ActionMenuButton-l5rSmAO_.js} +11 -11
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +6 -6
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +4 -4
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +4 -4
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +4 -4
- package/lib/Callout.cjs +1 -0
- package/lib/Callout.js +230 -0
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +3 -3
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +4 -4
- package/lib/CodeBlock.cjs +20 -20
- package/lib/CodeBlock.js +90 -89
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +4 -4
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +6 -6
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +4 -4
- package/lib/{Drawer-DUPsBE0H.js → Drawer-Cbi_MURj.js} +16 -16
- package/lib/{Drawer-fplzqNI6.cjs → Drawer-DKU32YW_.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +16 -16
- package/lib/{Excalidraw-BEzpvRLx.js → Excalidraw-CWrVL5hs.js} +30 -30
- package/lib/{Excalidraw-qjnQspLq.cjs → Excalidraw-Kb-TRcWY.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +2 -2
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +4 -4
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +4 -4
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +6 -6
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +6 -6
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +14 -14
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +6 -6
- package/lib/History.cjs +1 -1
- package/lib/History.js +13 -13
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +4 -4
- package/lib/{Icon-ONE1AwKo.js → Icon-Ctva8VeB.js} +2 -2
- package/lib/{Icon-CiR8RqdQ.cjs → Icon-yqCglrdK.cjs} +1 -1
- package/lib/{Iframe-DsUNJ2n2.cjs → Iframe-BczF8Hex.cjs} +1 -1
- package/lib/{Iframe-CBTnv2mk.js → Iframe-C942bNjs.js} +12 -12
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +48 -48
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +15 -15
- package/lib/ImportWord.cjs +2 -2
- package/lib/ImportWord.js +9 -9
- package/lib/{Indent-B00o0P0M.js → Indent-C_O5WdyR.js} +4 -4
- package/lib/{Indent-CaGP0qTp.cjs → Indent-CkEC7x36.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +4 -4
- package/lib/{Katex-x370CSXZ.js → Katex-D3PEWimM.js} +24 -24
- package/lib/{Katex-XsfpKgJU.cjs → Katex-DW_HjgNM.cjs} +2 -2
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +14 -14
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-xt88G5fb.cjs → LinkEditBlock-DL1e2ILk.cjs} +2 -2
- package/lib/{LinkEditBlock-C_ipl3EA.js → LinkEditBlock-h5054QDo.js} +31 -31
- package/lib/Mention.js +3 -3
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +28 -29
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +14 -14
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +4 -4
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +17 -17
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +6 -6
- package/lib/{SlashCommandNodeView-BT5ystah.cjs → SlashCommandNodeView-BqrmHCpu.cjs} +1 -1
- package/lib/{SlashCommandNodeView-DX6axvLs.js → SlashCommandNodeView-DXUqkx82.js} +12 -12
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +4 -4
- package/lib/{Table-DidusYID.js → Table-DdrY4jcM.js} +7 -7
- package/lib/{Table-DSRSwtXx.cjs → Table-kY0nbqJo.cjs} +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +4 -4
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +16 -16
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +16 -16
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +4 -4
- package/lib/{Twitter-D58T0Zt3.js → Twitter-B-JQ3ZJ1.js} +18 -18
- package/lib/{Twitter-CBuVBQM1.cjs → Twitter-DjZcVa3l.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +24 -24
- package/lib/bubble.cjs +4 -4
- package/lib/bubble.js +2083 -1950
- package/lib/button-BS3n6_Aq.cjs +1 -0
- package/lib/{button-9_8t7ca7.js → button-Uv01FNnd.js} +7 -7
- package/lib/{checkbox-BQRKTXXr.cjs → checkbox-C8ByRi7-.cjs} +1 -1
- package/lib/{checkbox-DnkkV6qo.js → checkbox-DEFNwGwb.js} +1 -1
- package/lib/{clsx-DmuN0U_8.js → clsx-BWSGDJNJ.js} +13 -13
- package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -0
- package/lib/components/Bubble/index.d.ts +1 -0
- package/lib/components/ui/index.d.ts +1 -0
- package/lib/{dialog-BS3zm-T9.cjs → dialog-Bt5zwGYB.cjs} +1 -1
- package/lib/{dialog-DhayAPvV.js → dialog-DwTMZSt6.js} +1 -1
- package/lib/{dropdown-menu-DQqKeZcx.js → dropdown-menu-BetI14G6.js} +1 -1
- package/lib/{dropdown-menu-CxwWX0yj.cjs → dropdown-menu-Bo68IEOT.cjs} +1 -1
- package/lib/extensions/Callout/Callout.d.ts +18 -0
- package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -0
- package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -0
- package/lib/extensions/Callout/index.d.ts +1 -0
- package/lib/{index-D1jd7elj.js → index-BDKHXe7R.js} +1 -1
- package/lib/{index-CKmT9KAQ.js → index-CHKWG6E8.js} +1 -1
- package/lib/{index-EAK64CCA.js → index-CcoWj0mF.js} +131 -130
- package/lib/index-D3RLYf-J.cjs +1 -0
- package/lib/{index-D9JOHlso.js → index-DF5ZPtWM.js} +369 -482
- package/lib/{index-DdEmgiAA.js → index-DJbmnBzK.js} +1 -1
- package/lib/index-Doks9cbR.cjs +1 -0
- package/lib/{index-BDX1uE62.js → index-Dujzr6bY.js} +135 -39
- package/lib/{index-CBFmXCcU.cjs → index-VhKd73hZ.cjs} +1 -1
- package/lib/{index-DvvwJvau.js → index-mR8PNv5P.js} +23 -23
- package/lib/index.cjs +1 -1
- package/lib/index.js +3 -3
- package/lib/{input-YoheBL2D.js → input-DUBdJD3L.js} +5 -5
- package/lib/{input-BJ7ihMq-.cjs → input-Dt_BA_9B.cjs} +1 -1
- package/lib/{isNumber-DmQXlKp3.js → isNumber-CIgubz2e.js} +1 -1
- package/lib/{label-Y7_hvqf2.cjs → label-JNOksCA-.cjs} +1 -1
- package/lib/{label-C8PLcjFI.js → label-topD46-u.js} +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/en.d.ts +16 -0
- package/lib/locales/fi.d.ts +16 -0
- package/lib/locales/hu.d.ts +16 -0
- package/lib/locales/index.d.ts +96 -0
- package/lib/locales/pt-br.d.ts +16 -0
- package/lib/locales/vi.d.ts +16 -0
- package/lib/locales/zh-cn.d.ts +16 -0
- package/lib/{popover-CWmTzHSy.js → popover-LfNBhRyz.js} +1 -1
- package/lib/{popover-BiSrlM4j.cjs → popover-mL-2sX5r.cjs} +1 -1
- package/lib/select-CwGYPsPq.cjs +1 -0
- package/lib/select-DctYuHLH.js +117 -0
- package/lib/{separator-C-DKMYmg.js → separator-Ddfrhn4D.js} +18 -18
- package/lib/{separator-CJ_adziN.cjs → separator-NoH_SLRW.cjs} +1 -1
- package/lib/{store-BKMaw1AW.cjs → store-CkjKIgjQ.cjs} +1 -1
- package/lib/{store-DG7cMfET.js → store-DNpS8vXA.js} +1 -1
- package/lib/style.css +1 -1
- package/lib/{tabs-DxlKKM-N.js → tabs-BT3AeqQQ.js} +1 -1
- package/lib/{tabs-DpHSMyF_.cjs → tabs-DRSwUeKP.cjs} +1 -1
- package/lib/{textarea-DU9RMi6u.cjs → textarea-BDO6XQoF.cjs} +1 -1
- package/lib/{textarea-D7m-apUh.js → textarea-DZzMEDfZ.js} +1 -1
- package/lib/{throttle-BRtichEP.js → throttle-IERhwcLa.js} +1 -1
- package/lib/{toggle-BYvLnjCL.cjs → toggle-BQHMh_Q-.cjs} +1 -1
- package/lib/{toggle-Bxwwb_Kp.js → toggle-DKHg5sLm.js} +10 -10
- package/lib/{tooltip-COvf4_R-.cjs → tooltip-BYtGp6FM.cjs} +1 -1
- package/lib/{tooltip-BTy5CRrN.js → tooltip-DNKq7zgN.js} +1 -1
- package/lib/{updatePosition-CUukgu-Q.js → updatePosition-Bie75EFq.js} +2 -2
- package/lib/{useButtonProps-CydzndG1.cjs → useButtonProps-DBJkNDS2.cjs} +1 -1
- package/lib/{useButtonProps-CfYtuEnd.js → useButtonProps-DVP4s_ER.js} +3 -3
- package/package.json +1 -1
- package/lib/button-Cs9TroWr.cjs +0 -1
- package/lib/index-CVFzP1Dc.cjs +0 -1
- package/lib/index-CX4pNJlH.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as D,
|
|
1
|
+
import { T as D, v as m, S as Z, x as V, y as ft, D as Be, F, z as ut, A as dt } from "./clsx-BWSGDJNJ.js";
|
|
2
2
|
var $ = {
|
|
3
3
|
8: "Backspace",
|
|
4
4
|
9: "Tab",
|
|
@@ -605,7 +605,7 @@ function Ze(e, n, t, r, o) {
|
|
|
605
605
|
if (e.someProp("transformPastedText", (d) => {
|
|
606
606
|
n = d(n, l || r, e);
|
|
607
607
|
}), l)
|
|
608
|
-
return i = new
|
|
608
|
+
return i = new V(F.from(e.state.schema.text(n.replace(/\r\n?/g, `
|
|
609
609
|
`))), 0, 0), e.someProp("transformPasted", (d) => {
|
|
610
610
|
i = d(i, e, !0);
|
|
611
611
|
}), i;
|
|
@@ -637,24 +637,24 @@ function Ze(e, n, t, r, o) {
|
|
|
637
637
|
preserveWhitespace: !!(a || f),
|
|
638
638
|
context: o,
|
|
639
639
|
ruleFromNode(d) {
|
|
640
|
-
return d.nodeName == "BR" && !d.nextSibling && d.parentNode && !
|
|
640
|
+
return d.nodeName == "BR" && !d.nextSibling && d.parentNode && !zt.test(d.parentNode.nodeName) ? { ignore: !0 } : null;
|
|
641
641
|
}
|
|
642
642
|
})), f)
|
|
643
|
-
i = Ht(
|
|
644
|
-
else if (i =
|
|
643
|
+
i = Ht(ze(i, +f[1], +f[2]), f[4]);
|
|
644
|
+
else if (i = V.maxOpen(Vt(i.content, o), !0), i.openStart || i.openEnd) {
|
|
645
645
|
let u = 0, d = 0;
|
|
646
646
|
for (let p = i.content.firstChild; u < i.openStart && !p.type.spec.isolating; u++, p = p.firstChild)
|
|
647
647
|
;
|
|
648
648
|
for (let p = i.content.lastChild; d < i.openEnd && !p.type.spec.isolating; d++, p = p.lastChild)
|
|
649
649
|
;
|
|
650
|
-
i =
|
|
650
|
+
i = ze(i, u, d);
|
|
651
651
|
}
|
|
652
652
|
return e.someProp("transformPasted", (u) => {
|
|
653
653
|
i = u(i, e, a);
|
|
654
654
|
}), i;
|
|
655
655
|
}
|
|
656
|
-
const
|
|
657
|
-
function
|
|
656
|
+
const zt = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
|
|
657
|
+
function Vt(e, n) {
|
|
658
658
|
if (e.childCount < 2)
|
|
659
659
|
return e;
|
|
660
660
|
for (let t = n.depth; t >= 0; t--) {
|
|
@@ -701,8 +701,8 @@ function he(e, n, t, r, o, l) {
|
|
|
701
701
|
let s = n < 0 ? e.firstChild : e.lastChild, i = s.content;
|
|
702
702
|
return e.childCount > 1 && (l = 0), o < r - 1 && (i = he(i, n, t, r, o + 1, l)), o >= t && (i = n < 0 ? s.contentMatchAt(0).fillBefore(i, l <= o).append(i) : i.append(s.contentMatchAt(s.childCount).fillBefore(F.empty, !0))), e.replaceChild(n < 0 ? 0 : e.childCount - 1, s.copy(i));
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
return n < e.openStart && (e = new
|
|
704
|
+
function ze(e, n, t) {
|
|
705
|
+
return n < e.openStart && (e = new V(he(e.content, -1, n, e.openStart, 0, e.openEnd), n, e.openEnd)), t < e.openEnd && (e = new V(he(e.content, 1, t, e.openEnd, 0, 0), e.openStart, t)), e;
|
|
706
706
|
}
|
|
707
707
|
const et = {
|
|
708
708
|
thead: ["table"],
|
|
@@ -715,9 +715,9 @@ const et = {
|
|
|
715
715
|
td: ["table", "tbody", "tr"],
|
|
716
716
|
th: ["table", "tbody", "tr"]
|
|
717
717
|
};
|
|
718
|
-
let
|
|
718
|
+
let Ve = null;
|
|
719
719
|
function tt() {
|
|
720
|
-
return
|
|
720
|
+
return Ve || (Ve = document.implementation.createHTMLDocument("title"));
|
|
721
721
|
}
|
|
722
722
|
let ae = null;
|
|
723
723
|
function Ft(e) {
|
|
@@ -756,7 +756,7 @@ function Ht(e, n) {
|
|
|
756
756
|
break;
|
|
757
757
|
o = F.from(a.create(r[i + 1], o)), l++, s++;
|
|
758
758
|
}
|
|
759
|
-
return new
|
|
759
|
+
return new V(o, l, s);
|
|
760
760
|
}
|
|
761
761
|
const T = {}, C = {};
|
|
762
762
|
function M(e, n) {
|
|
@@ -1008,7 +1008,7 @@ function tn(e, n) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
function me(e, n, t, r, o) {
|
|
1010
1010
|
let l = Ze(e, n, t, r, e.state.selection.$from);
|
|
1011
|
-
if (e.someProp("handlePaste", (a) => a(e, o, l ||
|
|
1011
|
+
if (e.someProp("handlePaste", (a) => a(e, o, l || V.empty)))
|
|
1012
1012
|
return !0;
|
|
1013
1013
|
if (!l)
|
|
1014
1014
|
return !1;
|
|
@@ -1074,7 +1074,7 @@ C.drop = (e, n) => {
|
|
|
1074
1074
|
s = h(s, e, !1);
|
|
1075
1075
|
}) : s = Ze(e, lt(t.dataTransfer), X ? null : t.dataTransfer.getData("text/html"), !1, l);
|
|
1076
1076
|
let i = !!(r && st(e, t));
|
|
1077
|
-
if (e.someProp("handleDrop", (h) => h(e, t, s ||
|
|
1077
|
+
if (e.someProp("handleDrop", (h) => h(e, t, s || V.empty, i))) {
|
|
1078
1078
|
t.preventDefault();
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
@@ -1319,7 +1319,7 @@ class g {
|
|
|
1319
1319
|
let a = this.local[i].map(n, r, o);
|
|
1320
1320
|
a && a.type.valid(t, a) ? (s || (s = [])).push(a) : l.onRemove && l.onRemove(this.local[i].spec);
|
|
1321
1321
|
}
|
|
1322
|
-
return this.children.length ? on(this.children, s || [], n, t, r, o, l) : s ? new g(s.sort(
|
|
1322
|
+
return this.children.length ? on(this.children, s || [], n, t, r, o, l) : s ? new g(s.sort(z), W) : b;
|
|
1323
1323
|
}
|
|
1324
1324
|
/**
|
|
1325
1325
|
Add the given array of decorations to the ones in the set,
|
|
@@ -1343,7 +1343,7 @@ class g {
|
|
|
1343
1343
|
let s = it(l ? ct(t) : t, -r);
|
|
1344
1344
|
for (let i = 0; i < s.length; i++)
|
|
1345
1345
|
s[i].type.valid(n, s[i]) || s.splice(i--, 1);
|
|
1346
|
-
return new g(s.length ? this.local.concat(s).sort(
|
|
1346
|
+
return new g(s.length ? this.local.concat(s).sort(z) : this.local, o || this.children);
|
|
1347
1347
|
}
|
|
1348
1348
|
/**
|
|
1349
1349
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -1392,7 +1392,7 @@ class g {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
if (o) {
|
|
1395
|
-
let i = new g(o.sort(
|
|
1395
|
+
let i = new g(o.sort(z), W);
|
|
1396
1396
|
return r ? new R([i, r]) : i;
|
|
1397
1397
|
}
|
|
1398
1398
|
return r || b;
|
|
@@ -1478,7 +1478,7 @@ class R {
|
|
|
1478
1478
|
t.push(l[s]);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
return t ? Ne(r ? t : t.sort(
|
|
1481
|
+
return t ? Ne(r ? t : t.sort(z)) : W;
|
|
1482
1482
|
}
|
|
1483
1483
|
// Create a group for the given array of decoration sets, or return
|
|
1484
1484
|
// a single set when possible.
|
|
@@ -1544,7 +1544,7 @@ function on(e, n, t, r, o, l, s) {
|
|
|
1544
1544
|
i.splice(d, 0, f.children[u], f.children[u + 1], f.children[u + 2]);
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
|
-
return new g(n.sort(
|
|
1547
|
+
return new g(n.sort(z), i);
|
|
1548
1548
|
}
|
|
1549
1549
|
function it(e, n) {
|
|
1550
1550
|
if (!n || !e.length)
|
|
@@ -1593,12 +1593,12 @@ function ne(e, n, t, r) {
|
|
|
1593
1593
|
f != b && o.push(a, a + i.nodeSize, f);
|
|
1594
1594
|
}
|
|
1595
1595
|
});
|
|
1596
|
-
let s = it(l ? ct(e) : e, -t).sort(
|
|
1596
|
+
let s = it(l ? ct(e) : e, -t).sort(z);
|
|
1597
1597
|
for (let i = 0; i < s.length; i++)
|
|
1598
1598
|
s[i].type.valid(n, s[i]) || (r.onRemove && r.onRemove(s[i].spec), s.splice(i--, 1));
|
|
1599
1599
|
return s.length || o.length ? new g(s, o) : b;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function z(e, n) {
|
|
1602
1602
|
return e.from - n.from || e.to - n.to;
|
|
1603
1603
|
}
|
|
1604
1604
|
function Ne(e) {
|
|
@@ -1620,7 +1620,7 @@ function Ne(e) {
|
|
|
1620
1620
|
return n;
|
|
1621
1621
|
}
|
|
1622
1622
|
function Fe(e, n, t) {
|
|
1623
|
-
for (; n < e.length &&
|
|
1623
|
+
for (; n < e.length && z(t, e[n]) > 0; )
|
|
1624
1624
|
n++;
|
|
1625
1625
|
e.splice(n, 0, t);
|
|
1626
1626
|
}
|
package/lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),w=require("./clsx-CXbNJWDD.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),w=require("./clsx-CXbNJWDD.cjs"),C=require("./index-D3RLYf-J.cjs"),d=require("./theme.cjs"),M=require("./tooltip-BYtGp6FM.cjs"),N=`
|
|
2
2
|
.reactjs-tiptap-editor {
|
|
3
3
|
button,
|
|
4
4
|
input:where([type=button]),
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as u, Fragment as d, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as l, useId as T } from "react";
|
|
3
|
-
import { C as M } from "./clsx-
|
|
4
|
-
import { u as P } from "./index-
|
|
3
|
+
import { C as M } from "./clsx-BWSGDJNJ.js";
|
|
4
|
+
import { u as P } from "./index-DF5ZPtWM.js";
|
|
5
5
|
import { useTheme as A, THEME as m } from "./theme.js";
|
|
6
|
-
import { c as $ } from "./tooltip-
|
|
6
|
+
import { c as $ } from "./tooltip-DNKq7zgN.js";
|
|
7
7
|
const O = `
|
|
8
8
|
.reactjs-tiptap-editor {
|
|
9
9
|
button,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import { c as x } from "./index-
|
|
4
|
-
const
|
|
3
|
+
import { c as x } from "./index-DF5ZPtWM.js";
|
|
4
|
+
const h = o.forwardRef(
|
|
5
5
|
({ className: t, type: e, ...r }, i) => /* @__PURE__ */ c(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
8
8
|
ref: i,
|
|
9
9
|
type: e,
|
|
10
10
|
className: x(
|
|
11
|
-
"richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 ",
|
|
11
|
+
"richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 richtext-text-foreground",
|
|
12
12
|
t
|
|
13
13
|
),
|
|
14
14
|
...r
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
h.displayName = "Input";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
h as I
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),o=require("react"),s=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),s=require("./index-D3RLYf-J.cjs");function u(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const x=u(o),c=x.forwardRef(({className:t,type:r,...e},i)=>n.jsx("input",{ref:i,type:r,className:s.cn("richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 richtext-text-foreground",t),...e}));c.displayName="Input";exports.Input=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),s=require("react"),l=require("@radix-ui/react-label"),u=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),s=require("react"),l=require("@radix-ui/react-label"),u=require("./index-VhKd73hZ.cjs"),d=require("./index-D3RLYf-J.cjs");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const m=c(s),n=c(l),b=u.cva("richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"),a=m.forwardRef(({className:e,...r},t)=>o.jsx(n.Root,{className:d.cn(b(),e),ref:t,...r}));a.displayName=n.Root.displayName;exports.Label=a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-label";
|
|
4
|
-
import { c as m } from "./index-
|
|
5
|
-
import { c as s } from "./index-
|
|
4
|
+
import { c as m } from "./index-CcoWj0mF.js";
|
|
5
|
+
import { c as s } from "./index-DF5ZPtWM.js";
|
|
6
6
|
const c = m(
|
|
7
7
|
"richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
8
8
|
), l = i.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
package/lib/locale-bundle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Doks9cbR.cjs");exports.en=e.locale;exports.fi=e.locale$5;exports.hu_HU=e.locale$1;exports.localeActions=e.localeActions;exports.pt_BR=e.locale$4;exports.useLocale=e.useLocale;exports.vi=e.locale$2;exports.zh_CN=e.locale$3;
|
package/lib/locale-bundle.js
CHANGED
package/lib/locales/en.d.ts
CHANGED
|
@@ -176,5 +176,21 @@ declare const locale: {
|
|
|
176
176
|
'editor.upload.fileTypeNotSupported': string;
|
|
177
177
|
'editor.upload.fileSizeTooBig': string;
|
|
178
178
|
'editor.upload.error': string;
|
|
179
|
+
'editor.callout.tooltip': string;
|
|
180
|
+
'editor.callout.dialog.title': string;
|
|
181
|
+
'editor.callout.dialog.type': string;
|
|
182
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
183
|
+
'editor.callout.dialog.title.label': string;
|
|
184
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
185
|
+
'editor.callout.dialog.body.label': string;
|
|
186
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
187
|
+
'editor.callout.dialog.button.apply': string;
|
|
188
|
+
'editor.callout.dialog.button.cancel': string;
|
|
189
|
+
'editor.callout.edit.title': string;
|
|
190
|
+
'editor.callout.type.note': string;
|
|
191
|
+
'editor.callout.type.tip': string;
|
|
192
|
+
'editor.callout.type.important': string;
|
|
193
|
+
'editor.callout.type.warning': string;
|
|
194
|
+
'editor.callout.type.caution': string;
|
|
179
195
|
};
|
|
180
196
|
export default locale;
|
package/lib/locales/fi.d.ts
CHANGED
|
@@ -176,5 +176,21 @@ declare const locale: {
|
|
|
176
176
|
'editor.upload.fileTypeNotSupported': string;
|
|
177
177
|
'editor.upload.fileSizeTooBig': string;
|
|
178
178
|
'editor.upload.error': string;
|
|
179
|
+
'editor.callout.tooltip': string;
|
|
180
|
+
'editor.callout.dialog.title': string;
|
|
181
|
+
'editor.callout.dialog.type': string;
|
|
182
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
183
|
+
'editor.callout.dialog.title.label': string;
|
|
184
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
185
|
+
'editor.callout.dialog.body.label': string;
|
|
186
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
187
|
+
'editor.callout.dialog.button.apply': string;
|
|
188
|
+
'editor.callout.dialog.button.cancel': string;
|
|
189
|
+
'editor.callout.edit.title': string;
|
|
190
|
+
'editor.callout.type.note': string;
|
|
191
|
+
'editor.callout.type.tip': string;
|
|
192
|
+
'editor.callout.type.important': string;
|
|
193
|
+
'editor.callout.type.warning': string;
|
|
194
|
+
'editor.callout.type.caution': string;
|
|
179
195
|
};
|
|
180
196
|
export default locale;
|
package/lib/locales/hu.d.ts
CHANGED
|
@@ -176,5 +176,21 @@ declare const locale: {
|
|
|
176
176
|
'editor.upload.fileTypeNotSupported': string;
|
|
177
177
|
'editor.upload.fileSizeTooBig': string;
|
|
178
178
|
'editor.upload.error': string;
|
|
179
|
+
'editor.callout.tooltip': string;
|
|
180
|
+
'editor.callout.dialog.title': string;
|
|
181
|
+
'editor.callout.dialog.type': string;
|
|
182
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
183
|
+
'editor.callout.dialog.title.label': string;
|
|
184
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
185
|
+
'editor.callout.dialog.body.label': string;
|
|
186
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
187
|
+
'editor.callout.dialog.button.apply': string;
|
|
188
|
+
'editor.callout.dialog.button.cancel': string;
|
|
189
|
+
'editor.callout.edit.title': string;
|
|
190
|
+
'editor.callout.type.note': string;
|
|
191
|
+
'editor.callout.type.tip': string;
|
|
192
|
+
'editor.callout.type.important': string;
|
|
193
|
+
'editor.callout.type.warning': string;
|
|
194
|
+
'editor.callout.type.caution': string;
|
|
179
195
|
};
|
|
180
196
|
export default locale;
|
package/lib/locales/index.d.ts
CHANGED
|
@@ -185,6 +185,22 @@ declare const LANG: {
|
|
|
185
185
|
'editor.upload.fileTypeNotSupported': string;
|
|
186
186
|
'editor.upload.fileSizeTooBig': string;
|
|
187
187
|
'editor.upload.error': string;
|
|
188
|
+
'editor.callout.tooltip': string;
|
|
189
|
+
'editor.callout.dialog.title': string;
|
|
190
|
+
'editor.callout.dialog.type': string;
|
|
191
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
192
|
+
'editor.callout.dialog.title.label': string;
|
|
193
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
194
|
+
'editor.callout.dialog.body.label': string;
|
|
195
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
196
|
+
'editor.callout.dialog.button.apply': string;
|
|
197
|
+
'editor.callout.dialog.button.cancel': string;
|
|
198
|
+
'editor.callout.edit.title': string;
|
|
199
|
+
'editor.callout.type.note': string;
|
|
200
|
+
'editor.callout.type.tip': string;
|
|
201
|
+
'editor.callout.type.important': string;
|
|
202
|
+
'editor.callout.type.warning': string;
|
|
203
|
+
'editor.callout.type.caution': string;
|
|
188
204
|
};
|
|
189
205
|
hu_HU: {
|
|
190
206
|
'editor.remove': string;
|
|
@@ -364,6 +380,22 @@ declare const LANG: {
|
|
|
364
380
|
'editor.upload.fileTypeNotSupported': string;
|
|
365
381
|
'editor.upload.fileSizeTooBig': string;
|
|
366
382
|
'editor.upload.error': string;
|
|
383
|
+
'editor.callout.tooltip': string;
|
|
384
|
+
'editor.callout.dialog.title': string;
|
|
385
|
+
'editor.callout.dialog.type': string;
|
|
386
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
387
|
+
'editor.callout.dialog.title.label': string;
|
|
388
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
389
|
+
'editor.callout.dialog.body.label': string;
|
|
390
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
391
|
+
'editor.callout.dialog.button.apply': string;
|
|
392
|
+
'editor.callout.dialog.button.cancel': string;
|
|
393
|
+
'editor.callout.edit.title': string;
|
|
394
|
+
'editor.callout.type.note': string;
|
|
395
|
+
'editor.callout.type.tip': string;
|
|
396
|
+
'editor.callout.type.important': string;
|
|
397
|
+
'editor.callout.type.warning': string;
|
|
398
|
+
'editor.callout.type.caution': string;
|
|
367
399
|
};
|
|
368
400
|
vi: {
|
|
369
401
|
'editor.remove': string;
|
|
@@ -543,6 +575,22 @@ declare const LANG: {
|
|
|
543
575
|
'editor.upload.fileTypeNotSupported': string;
|
|
544
576
|
'editor.upload.fileSizeTooBig': string;
|
|
545
577
|
'editor.upload.error': string;
|
|
578
|
+
'editor.callout.tooltip': string;
|
|
579
|
+
'editor.callout.dialog.title': string;
|
|
580
|
+
'editor.callout.dialog.type': string;
|
|
581
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
582
|
+
'editor.callout.dialog.title.label': string;
|
|
583
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
584
|
+
'editor.callout.dialog.body.label': string;
|
|
585
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
586
|
+
'editor.callout.dialog.button.apply': string;
|
|
587
|
+
'editor.callout.dialog.button.cancel': string;
|
|
588
|
+
'editor.callout.edit.title': string;
|
|
589
|
+
'editor.callout.type.note': string;
|
|
590
|
+
'editor.callout.type.tip': string;
|
|
591
|
+
'editor.callout.type.important': string;
|
|
592
|
+
'editor.callout.type.warning': string;
|
|
593
|
+
'editor.callout.type.caution': string;
|
|
546
594
|
};
|
|
547
595
|
zh_CN: {
|
|
548
596
|
'editor.remove': string;
|
|
@@ -722,6 +770,22 @@ declare const LANG: {
|
|
|
722
770
|
'editor.upload.fileTypeNotSupported': string;
|
|
723
771
|
'editor.upload.fileSizeTooBig': string;
|
|
724
772
|
'editor.upload.error': string;
|
|
773
|
+
'editor.callout.tooltip': string;
|
|
774
|
+
'editor.callout.dialog.title': string;
|
|
775
|
+
'editor.callout.dialog.type': string;
|
|
776
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
777
|
+
'editor.callout.dialog.title.label': string;
|
|
778
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
779
|
+
'editor.callout.dialog.body.label': string;
|
|
780
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
781
|
+
'editor.callout.dialog.button.apply': string;
|
|
782
|
+
'editor.callout.dialog.button.cancel': string;
|
|
783
|
+
'editor.callout.edit.title': string;
|
|
784
|
+
'editor.callout.type.note': string;
|
|
785
|
+
'editor.callout.type.tip': string;
|
|
786
|
+
'editor.callout.type.important': string;
|
|
787
|
+
'editor.callout.type.warning': string;
|
|
788
|
+
'editor.callout.type.caution': string;
|
|
725
789
|
};
|
|
726
790
|
pt_BR: {
|
|
727
791
|
'editor.remove': string;
|
|
@@ -901,6 +965,22 @@ declare const LANG: {
|
|
|
901
965
|
'editor.upload.fileTypeNotSupported': string;
|
|
902
966
|
'editor.upload.fileSizeTooBig': string;
|
|
903
967
|
'editor.upload.error': string;
|
|
968
|
+
'editor.callout.tooltip': string;
|
|
969
|
+
'editor.callout.dialog.title': string;
|
|
970
|
+
'editor.callout.dialog.type': string;
|
|
971
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
972
|
+
'editor.callout.dialog.title.label': string;
|
|
973
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
974
|
+
'editor.callout.dialog.body.label': string;
|
|
975
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
976
|
+
'editor.callout.dialog.button.apply': string;
|
|
977
|
+
'editor.callout.dialog.button.cancel': string;
|
|
978
|
+
'editor.callout.edit.title': string;
|
|
979
|
+
'editor.callout.type.note': string;
|
|
980
|
+
'editor.callout.type.tip': string;
|
|
981
|
+
'editor.callout.type.important': string;
|
|
982
|
+
'editor.callout.type.warning': string;
|
|
983
|
+
'editor.callout.type.caution': string;
|
|
904
984
|
};
|
|
905
985
|
fi: {
|
|
906
986
|
'editor.remove': string;
|
|
@@ -1080,6 +1160,22 @@ declare const LANG: {
|
|
|
1080
1160
|
'editor.upload.fileTypeNotSupported': string;
|
|
1081
1161
|
'editor.upload.fileSizeTooBig': string;
|
|
1082
1162
|
'editor.upload.error': string;
|
|
1163
|
+
'editor.callout.tooltip': string;
|
|
1164
|
+
'editor.callout.dialog.title': string;
|
|
1165
|
+
'editor.callout.dialog.type': string;
|
|
1166
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
1167
|
+
'editor.callout.dialog.title.label': string;
|
|
1168
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
1169
|
+
'editor.callout.dialog.body.label': string;
|
|
1170
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
1171
|
+
'editor.callout.dialog.button.apply': string;
|
|
1172
|
+
'editor.callout.dialog.button.cancel': string;
|
|
1173
|
+
'editor.callout.edit.title': string;
|
|
1174
|
+
'editor.callout.type.note': string;
|
|
1175
|
+
'editor.callout.type.tip': string;
|
|
1176
|
+
'editor.callout.type.important': string;
|
|
1177
|
+
'editor.callout.type.warning': string;
|
|
1178
|
+
'editor.callout.type.caution': string;
|
|
1083
1179
|
};
|
|
1084
1180
|
};
|
|
1085
1181
|
};
|
package/lib/locales/pt-br.d.ts
CHANGED
|
@@ -176,5 +176,21 @@ declare const locale: {
|
|
|
176
176
|
'editor.upload.fileTypeNotSupported': string;
|
|
177
177
|
'editor.upload.fileSizeTooBig': string;
|
|
178
178
|
'editor.upload.error': string;
|
|
179
|
+
'editor.callout.tooltip': string;
|
|
180
|
+
'editor.callout.dialog.title': string;
|
|
181
|
+
'editor.callout.dialog.type': string;
|
|
182
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
183
|
+
'editor.callout.dialog.title.label': string;
|
|
184
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
185
|
+
'editor.callout.dialog.body.label': string;
|
|
186
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
187
|
+
'editor.callout.dialog.button.apply': string;
|
|
188
|
+
'editor.callout.dialog.button.cancel': string;
|
|
189
|
+
'editor.callout.edit.title': string;
|
|
190
|
+
'editor.callout.type.note': string;
|
|
191
|
+
'editor.callout.type.tip': string;
|
|
192
|
+
'editor.callout.type.important': string;
|
|
193
|
+
'editor.callout.type.warning': string;
|
|
194
|
+
'editor.callout.type.caution': string;
|
|
179
195
|
};
|
|
180
196
|
export default locale;
|
package/lib/locales/vi.d.ts
CHANGED
|
@@ -176,5 +176,21 @@ declare const locale: {
|
|
|
176
176
|
'editor.upload.fileTypeNotSupported': string;
|
|
177
177
|
'editor.upload.fileSizeTooBig': string;
|
|
178
178
|
'editor.upload.error': string;
|
|
179
|
+
'editor.callout.tooltip': string;
|
|
180
|
+
'editor.callout.dialog.title': string;
|
|
181
|
+
'editor.callout.dialog.type': string;
|
|
182
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
183
|
+
'editor.callout.dialog.title.label': string;
|
|
184
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
185
|
+
'editor.callout.dialog.body.label': string;
|
|
186
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
187
|
+
'editor.callout.dialog.button.apply': string;
|
|
188
|
+
'editor.callout.dialog.button.cancel': string;
|
|
189
|
+
'editor.callout.edit.title': string;
|
|
190
|
+
'editor.callout.type.note': string;
|
|
191
|
+
'editor.callout.type.tip': string;
|
|
192
|
+
'editor.callout.type.important': string;
|
|
193
|
+
'editor.callout.type.warning': string;
|
|
194
|
+
'editor.callout.type.caution': string;
|
|
179
195
|
};
|
|
180
196
|
export default locale;
|
package/lib/locales/zh-cn.d.ts
CHANGED
|
@@ -176,5 +176,21 @@ declare const locale: {
|
|
|
176
176
|
'editor.upload.fileTypeNotSupported': string;
|
|
177
177
|
'editor.upload.fileSizeTooBig': string;
|
|
178
178
|
'editor.upload.error': string;
|
|
179
|
+
'editor.callout.tooltip': string;
|
|
180
|
+
'editor.callout.dialog.title': string;
|
|
181
|
+
'editor.callout.dialog.type': string;
|
|
182
|
+
'editor.callout.dialog.type.placeholder': string;
|
|
183
|
+
'editor.callout.dialog.title.label': string;
|
|
184
|
+
'editor.callout.dialog.title.placeholder': string;
|
|
185
|
+
'editor.callout.dialog.body.label': string;
|
|
186
|
+
'editor.callout.dialog.body.placeholder': string;
|
|
187
|
+
'editor.callout.dialog.button.apply': string;
|
|
188
|
+
'editor.callout.dialog.button.cancel': string;
|
|
189
|
+
'editor.callout.edit.title': string;
|
|
190
|
+
'editor.callout.type.note': string;
|
|
191
|
+
'editor.callout.type.tip': string;
|
|
192
|
+
'editor.callout.type.important': string;
|
|
193
|
+
'editor.callout.type.warning': string;
|
|
194
|
+
'editor.callout.type.caution': string;
|
|
179
195
|
};
|
|
180
196
|
export default locale;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-popover";
|
|
4
|
-
import { c as s } from "./index-
|
|
4
|
+
import { c as s } from "./index-DF5ZPtWM.js";
|
|
5
5
|
const x = t.Root, p = t.Trigger, n = c.forwardRef(({ className: o, align: r = "center", sideOffset: i = 4, ...a }, d) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
|
|
6
6
|
t.Content,
|
|
7
7
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),s=require("react"),p=require("@radix-ui/react-popover"),x=require("./index-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),s=require("react"),p=require("@radix-ui/react-popover"),x=require("./index-D3RLYf-J.cjs");function n(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const h=n(s),o=n(p),l=o.Root,m=o.Trigger,c=h.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},d)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:d,sideOffset:e,className:x.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2 !richtext-border-border",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=l;exports.PopoverContent=c;exports.PopoverTrigger=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),f=require("react"),g=require("@radix-ui/react-select"),x=require("lucide-react"),s=require("./index-D3RLYf-J.cjs");function l(r){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(i,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}return i.default=r,Object.freeze(i)}const o=l(f),t=l(g),y=t.Root,b=t.Value,n=o.forwardRef(({className:r,children:i,...e},a)=>c.jsxs(t.Trigger,{ref:a,className:s.cn("richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1 richtext-text-foreground",r),...e,children:[i,c.jsx(t.Icon,{asChild:!0,children:c.jsx(x.ChevronDown,{className:"richtext-size-4 richtext-opacity-50"})})]}));n.displayName=t.Trigger.displayName;const h=o.forwardRef(({className:r,...i},e)=>c.jsx(t.ScrollUpButton,{ref:e,className:s.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",r),...i,children:c.jsx(x.ChevronUp,{className:"richtext-size-4"})}));h.displayName=t.ScrollUpButton.displayName;const d=o.forwardRef(({className:r,...i},e)=>c.jsx(t.ScrollDownButton,{ref:e,className:s.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",r),...i,children:c.jsx(x.ChevronDown,{className:"richtext-size-4"})}));d.displayName=t.ScrollDownButton.displayName;const m=o.forwardRef(({className:r,children:i,position:e="popper",...a},u)=>c.jsx(t.Portal,{children:c.jsxs(t.Content,{"data-richtext-portal":!0,position:e,ref:u,className:s.cn("richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",e==="popper"&&"data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",r),...a,children:[c.jsx(h,{}),c.jsx(t.Viewport,{className:s.cn("richtext-p-1",e==="popper"&&"richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"),children:i}),c.jsx(d,{})]})}));m.displayName=t.Content.displayName;const j=o.forwardRef(({className:r,...i},e)=>c.jsx(t.Label,{className:s.cn("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",r),ref:e,...i}));j.displayName=t.Label.displayName;const p=o.forwardRef(({className:r,children:i,...e},a)=>c.jsxs(t.Item,{ref:a,className:s.cn("richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r),...e,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(t.ItemIndicator,{children:c.jsx(x.Check,{className:"richtext-size-4"})})}),c.jsx(t.ItemText,{children:i})]}));p.displayName=t.Item.displayName;const N=o.forwardRef(({className:r,...i},e)=>c.jsx(t.Separator,{className:s.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",r),ref:e,...i}));N.displayName=t.Separator.displayName;exports.Select=y;exports.SelectContent=m;exports.SelectItem=p;exports.SelectTrigger=n;exports.SelectValue=b;
|