reactjs-tiptap-editor 1.0.3 → 1.0.4
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-BFepb5pA.js → ActionMenuButton-71gCEVbv.js} +11 -11
- package/lib/{ActionMenuButton-BjQpCWBy.cjs → ActionMenuButton-Bzr6ICxv.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +3 -3
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +3 -3
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +3 -3
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +3 -3
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +3 -3
- package/lib/CodeBlock.cjs +39 -39
- package/lib/CodeBlock.js +949 -841
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +3 -3
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +5 -5
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +3 -3
- package/lib/{Drawer-CSueBqcB.cjs → Drawer-DlX87Cl4.cjs} +1 -1
- package/lib/{Drawer-CJju6ecy.js → Drawer-GRyIh2y1.js} +13 -13
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +12 -12
- package/lib/{Excalidraw-sf65kOJo.cjs → Excalidraw-Bkq1fXLL.cjs} +1 -1
- package/lib/{Excalidraw-C6LNBBPI.js → Excalidraw-BmyhdJCU.js} +19 -19
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +3 -3
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +3 -3
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +4 -4
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +4 -4
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +12 -12
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +5 -5
- package/lib/History.cjs +1 -1
- package/lib/History.js +3 -3
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +3 -3
- package/lib/{Icon-CNyAQ70L.js → Icon-1z7VnLgz.js} +1 -1
- package/lib/{Icon-CJomacaQ.cjs → Icon-ztD4g9N4.cjs} +1 -1
- package/lib/{Iframe-DjIPMesT.js → Iframe-AiP8qPGF.js} +11 -11
- package/lib/{Iframe-CkoadzVT.cjs → Iframe-DhUlC9-Y.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +44 -44
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +7 -7
- package/lib/ImportWord.cjs +2 -2
- package/lib/ImportWord.js +8 -8
- package/lib/{Indent-UDnZAurv.js → Indent-CBoQDISv.js} +3 -3
- package/lib/{Indent-08e09DMj.cjs → Indent-fphgO8Eo.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +3 -3
- package/lib/{Katex-zmcrp9k1.cjs → Katex-AfmTUUNS.cjs} +2 -2
- package/lib/{Katex-CXa45tyK.js → Katex-n2PVzaMd.js} +19 -19
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +1 -1
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +12 -12
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +1 -1
- package/lib/{LinkEditBlock-CB8dAmrf.js → LinkEditBlock-CoXwYHlj.js} +68 -68
- package/lib/{LinkEditBlock-Dif8KmZQ.cjs → LinkEditBlock-sADc32hF.cjs} +2 -2
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +20 -21
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +12 -12
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +3 -3
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +16 -16
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +11 -11
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +3 -3
- package/lib/{Table-BahHb0Ru.cjs → Table-BLb5576a.cjs} +1 -1
- package/lib/{Table-BnhgS_-w.js → Table-BshvoFRh.js} +4 -4
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +3 -3
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +15 -15
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +15 -15
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +3 -3
- package/lib/{Twitter-Cb2gasLV.js → Twitter-CLVet4OM.js} +17 -17
- package/lib/{Twitter-BWmvba2p.cjs → Twitter-DEKTLWO5.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +22 -22
- package/lib/bubble.cjs +1 -1
- package/lib/bubble.js +36 -36
- package/lib/{button-CG4usMxR.js → button-BnN1L5_T.js} +1 -1
- package/lib/{button-CIneI3CY.cjs → button-CjAogRMZ.cjs} +1 -1
- package/lib/{checkbox-D71Mb18N.cjs → checkbox-BFgaCetY.cjs} +1 -1
- package/lib/{checkbox-C_n_ksgm.js → checkbox-sSQSzjls.js} +1 -1
- package/lib/{dialog-DOqHbj83.cjs → dialog-CUP7QBaG.cjs} +1 -1
- package/lib/{dialog-NJmA61GX.js → dialog-CzZSyyxS.js} +1 -1
- package/lib/{dropdown-menu-C6sUfvGJ.cjs → dropdown-menu-CwHOwzLr.cjs} +1 -1
- package/lib/{dropdown-menu-Lfbfr4dW.js → dropdown-menu-y1rPk4dr.js} +1 -1
- package/lib/{index-BY7ivGJJ.js → index--XZPCi0O.js} +370 -483
- package/lib/index-CnbtiTqP.cjs +7 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +2 -2
- package/lib/{input-BP2Gxw3D.js → input-Byg4PPou.js} +1 -1
- package/lib/{input-gHDudt4e.cjs → input-Dikmsjjj.cjs} +1 -1
- package/lib/{label-DJJuWtqE.js → label-BX7OqM6p.js} +1 -1
- package/lib/{label-CVPLC4Zx.cjs → label-ChxDmW-K.cjs} +1 -1
- package/lib/{popover-BvQjtkQM.js → popover-CheVmqgb.js} +1 -1
- package/lib/{popover-MfEQQFJ7.cjs → popover-DVD1y8Z_.cjs} +1 -1
- package/lib/{separator-BJzi4Ghx.cjs → separator-CSuS-D6T.cjs} +1 -1
- package/lib/{separator-D_v6CJRt.js → separator-Y_Pbpi-5.js} +18 -18
- package/lib/{store-DXwTyDFS.js → store-BVm_SgvL.js} +1 -1
- package/lib/{store-D0HwYEZ6.cjs → store-DznMm4Ug.cjs} +1 -1
- package/lib/{tabs-CSLPqYK2.cjs → tabs-B9ooipwg.cjs} +1 -1
- package/lib/{tabs-C0zcytw3.js → tabs-p4pJGb6o.js} +1 -1
- package/lib/{textarea-Du5WiLd3.js → textarea-Byts1Pn0.js} +1 -1
- package/lib/{textarea-CoUGzfC4.cjs → textarea-L53EceuF.cjs} +1 -1
- package/lib/theme/theme.d.ts +1 -1
- package/lib/theme.cjs +1 -1
- package/lib/theme.js +1 -1
- package/lib/{toggle-Bdrb8AZg.cjs → toggle-DUPu3nnZ.cjs} +1 -1
- package/lib/{toggle-DifEFalS.js → toggle-WBgzE8Jm.js} +10 -10
- package/lib/{tooltip-CY18LQet.js → tooltip-BOMwAoO1.js} +1 -1
- package/lib/{tooltip-nFyTogij.cjs → tooltip-DD5Ii8qI.cjs} +1 -1
- package/lib/{useButtonProps-DEuoHLy_.js → useButtonProps-BIOoOg6h.js} +1 -1
- package/lib/{useButtonProps-5aSfh81v.cjs → useButtonProps-C4SCmCVo.cjs} +1 -1
- package/package.json +1 -1
- package/lib/index-B7WkxZXU.cjs +0 -7
package/lib/bubble.js
CHANGED
|
@@ -3,31 +3,31 @@ import ms, { useRef as Lt, useEffect as st, useCallback as L, useState as z, use
|
|
|
3
3
|
import { a3 as Yr, f as ws, E as ke, a4 as Gr, a5 as Jr, O as bs, a6 as ve, a7 as qr, U as ei, Q as ys, x as Ie, F as Oe, T as ni, A as Xr, v as Zr, a8 as Qr, a9 as to } from "./index-nFjllrEl.js";
|
|
4
4
|
import { f as xs, s as Ss, o as ks, a as vs, b as Cs, d as _s, h as Es, i as Ts, c as ii } from "./floating-ui.dom-U1vPFQ5f.js";
|
|
5
5
|
import { Plugin as Ce, PluginKey as te, NodeSelection as eo, TextSelection as no, SelectionRange as io, Selection as so } from "@tiptap/pm/state";
|
|
6
|
-
import { C as ro, T as oo } from "./Table-
|
|
6
|
+
import { C as ro, T as oo } from "./Table-BshvoFRh.js";
|
|
7
7
|
import { createPortal as Ds } from "react-dom";
|
|
8
|
-
import { A as y } from "./toggle-
|
|
8
|
+
import { A as y } from "./toggle-WBgzE8Jm.js";
|
|
9
9
|
import { MultipleColumnNode as _i } from "./Column.js";
|
|
10
10
|
import { u as X, p as je, V as Ei } from "./index-DGihe-wH.js";
|
|
11
|
-
import { c as Y, d as As } from "./useButtonProps-
|
|
12
|
-
import { b as Z } from "./index
|
|
11
|
+
import { c as Y, d as As } from "./useButtonProps-BIOoOg6h.js";
|
|
12
|
+
import { b as Z } from "./index--XZPCi0O.js";
|
|
13
13
|
import { d as _e } from "./delete-node-IyVmiRbI.js";
|
|
14
|
-
import {
|
|
15
|
-
import { C as lo, D as kn } from "./Drawer-CJju6ecy.js";
|
|
14
|
+
import { C as lo, D as kn } from "./Drawer-GRyIh2y1.js";
|
|
16
15
|
import { Editor as co, makeDropdownToolbar as ao } from "easydrawer";
|
|
17
16
|
import { s as Is, i as Os } from "./shortId-WJVkrvml.js";
|
|
18
|
-
import {
|
|
19
|
-
import { D as on, a as ln, b as cn, c as an, d as hn, e as ho } from "./dialog-NJmA61GX.js";
|
|
17
|
+
import { D as on, a as ln, b as cn, c as an, d as hn, e as ho } from "./dialog-CzZSyyxS.js";
|
|
20
18
|
import { d as Ms } from "./file-BLas99n7.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { I as
|
|
19
|
+
import { B as Jt } from "./button-BnN1L5_T.js";
|
|
20
|
+
import { u as ee, K as Ke } from "./Katex-n2PVzaMd.js";
|
|
21
|
+
import { S as Nt } from "./separator-Y_Pbpi-5.js";
|
|
22
|
+
import { L as vn } from "./label-BX7OqM6p.js";
|
|
23
|
+
import { P as uo, a as fo, b as po } from "./popover-CheVmqgb.js";
|
|
24
|
+
import { I as Be } from "./input-Byg4PPou.js";
|
|
25
|
+
import { E as oe, t as go } from "./Excalidraw-BmyhdJCU.js";
|
|
26
|
+
import { I as le, g as mo } from "./Iframe-AiP8qPGF.js";
|
|
27
27
|
import wo from "katex";
|
|
28
28
|
import { Pencil as bo, Trash2 as yo } from "lucide-react";
|
|
29
|
-
import { T as Rs } from "./textarea-
|
|
30
|
-
import { L as Ti, a as xo, R as So } from "./LinkEditBlock-
|
|
29
|
+
import { T as Rs } from "./textarea-Byts1Pn0.js";
|
|
30
|
+
import { L as Ti, a as xo, R as So } from "./LinkEditBlock-CoXwYHlj.js";
|
|
31
31
|
import { Image as ko } from "./Image.js";
|
|
32
32
|
import { ImageGif as vo } from "./ImageGif.js";
|
|
33
33
|
import { Video as Co } from "./Video.js";
|
|
@@ -41,13 +41,13 @@ import { RichTextItalic as Ao } from "./Italic.js";
|
|
|
41
41
|
import { RichTextStrike as Io } from "./Strike.js";
|
|
42
42
|
import { RichTextAlign as Oo, TextAlign as Mo } from "./TextAlign.js";
|
|
43
43
|
import { RichTextUnderline as Di } from "./TextUnderline.js";
|
|
44
|
-
import { T as Ai, F as Ro } from "./Twitter-
|
|
44
|
+
import { T as Ai, F as Ro } from "./Twitter-CLVet4OM.js";
|
|
45
45
|
import { DecorationSet as Ii, Decoration as No } from "@tiptap/pm/view";
|
|
46
46
|
import { NodeRange as Uo } from "@tiptap/pm/model";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import { I as rt } from "./Icon-
|
|
47
|
+
import { Clear as Lo } from "./Clear.js";
|
|
48
|
+
import { I as Po, a as Oi, s as Mi } from "./Indent-CBoQDISv.js";
|
|
49
|
+
import { D as Bo, a as Vo, b as Ho, f as mt, d as $o, g as Ri, h as Ni, i as Ui, j as Li } from "./dropdown-menu-y1rPk4dr.js";
|
|
50
|
+
import { I as rt } from "./Icon-1z7VnLgz.js";
|
|
51
51
|
function Fo(e, t) {
|
|
52
52
|
const n = Math.min(e.top, t.top), i = Math.max(e.bottom, t.bottom), s = Math.min(e.left, t.left), o = Math.max(e.right, t.right) - s, l = i - n, c = s, a = n;
|
|
53
53
|
return new DOMRect(c, a, o, l);
|
|
@@ -9413,7 +9413,7 @@ var jh = (e) => {
|
|
|
9413
9413
|
}, Kh = jh;
|
|
9414
9414
|
function iu() {
|
|
9415
9415
|
var E, x, k, N, H, et, It, Ot;
|
|
9416
|
-
const e = Y(), t = Z(), { t: n } = X(), [i, s] = z(null), [r, o] = z(-1), [l, c] = z(!1), a = (x = (E = e == null ? void 0 : e.extensionManager) == null ? void 0 : E.extensions) == null ? void 0 : x.some((_) => (_ == null ? void 0 : _.name) === Mo.name), d = (N = (k = e == null ? void 0 : e.extensionManager) == null ? void 0 : k.extensions) == null ? void 0 : N.some((_) => (_ == null ? void 0 : _.name) ===
|
|
9416
|
+
const e = Y(), t = Z(), { t: n } = X(), [i, s] = z(null), [r, o] = z(-1), [l, c] = z(!1), a = (x = (E = e == null ? void 0 : e.extensionManager) == null ? void 0 : E.extensions) == null ? void 0 : x.some((_) => (_ == null ? void 0 : _.name) === Mo.name), d = (N = (k = e == null ? void 0 : e.extensionManager) == null ? void 0 : k.extensions) == null ? void 0 : N.some((_) => (_ == null ? void 0 : _.name) === Po.name), h = (et = (H = e == null ? void 0 : e.extensionManager) == null ? void 0 : H.extensions) == null ? void 0 : et.some((_) => (_ == null ? void 0 : _.name) === Lo.name);
|
|
9417
9417
|
function u() {
|
|
9418
9418
|
const _ = e.chain();
|
|
9419
9419
|
_.setNodeSelection(r).unsetAllMarks(), (i == null ? void 0 : i.type.name) !== "paragraph" && _.setParagraph(), _.run();
|
|
@@ -9430,11 +9430,11 @@ function iu() {
|
|
|
9430
9430
|
e.commands.setTextAlign(_);
|
|
9431
9431
|
}
|
|
9432
9432
|
function b() {
|
|
9433
|
-
const _ =
|
|
9433
|
+
const _ = Mi(e.state.tr, r, 1);
|
|
9434
9434
|
_.setMeta("hideDragHandle", !0), e.view.dispatch && e.view.dispatch(_);
|
|
9435
9435
|
}
|
|
9436
9436
|
function w() {
|
|
9437
|
-
const _ =
|
|
9437
|
+
const _ = Mi(e.state.tr, r, -1);
|
|
9438
9438
|
e.view.dispatch && e.view.dispatch(_);
|
|
9439
9439
|
}
|
|
9440
9440
|
function D() {
|
|
@@ -9490,14 +9490,14 @@ function iu() {
|
|
|
9490
9490
|
}
|
|
9491
9491
|
),
|
|
9492
9492
|
/* @__PURE__ */ S(
|
|
9493
|
-
|
|
9493
|
+
Bo,
|
|
9494
9494
|
{
|
|
9495
9495
|
onOpenChange: P,
|
|
9496
9496
|
open: l,
|
|
9497
9497
|
children: [
|
|
9498
|
-
/* @__PURE__ */ p("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: /* @__PURE__ */ p(
|
|
9498
|
+
/* @__PURE__ */ p("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: /* @__PURE__ */ p(Vo, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" }) }),
|
|
9499
9499
|
/* @__PURE__ */ S(
|
|
9500
|
-
|
|
9500
|
+
Ho,
|
|
9501
9501
|
{
|
|
9502
9502
|
align: "start",
|
|
9503
9503
|
className: "richtext-w-48",
|
|
@@ -9549,13 +9549,13 @@ function iu() {
|
|
|
9549
9549
|
]
|
|
9550
9550
|
}
|
|
9551
9551
|
),
|
|
9552
|
-
a || d ? /* @__PURE__ */ p(
|
|
9553
|
-
a ? /* @__PURE__ */ S(
|
|
9554
|
-
/* @__PURE__ */ S(
|
|
9552
|
+
a || d ? /* @__PURE__ */ p($o, {}) : null,
|
|
9553
|
+
a ? /* @__PURE__ */ S(Ri, { children: [
|
|
9554
|
+
/* @__PURE__ */ S(Ni, { className: "richtext-flex richtext-gap-3", children: [
|
|
9555
9555
|
/* @__PURE__ */ p(rt, { name: "AlignCenter" }),
|
|
9556
9556
|
/* @__PURE__ */ p("span", { children: n("editor.textalign.tooltip") })
|
|
9557
9557
|
] }),
|
|
9558
|
-
/* @__PURE__ */ p(
|
|
9558
|
+
/* @__PURE__ */ p(Ui, { children: /* @__PURE__ */ S(Li, { children: [
|
|
9559
9559
|
/* @__PURE__ */ S(
|
|
9560
9560
|
mt,
|
|
9561
9561
|
{
|
|
@@ -9591,17 +9591,17 @@ function iu() {
|
|
|
9591
9591
|
)
|
|
9592
9592
|
] }) })
|
|
9593
9593
|
] }) : null,
|
|
9594
|
-
d ? /* @__PURE__ */ S(
|
|
9595
|
-
/* @__PURE__ */ S(
|
|
9594
|
+
d ? /* @__PURE__ */ S(Ri, { children: [
|
|
9595
|
+
/* @__PURE__ */ S(Ni, { className: "richtext-flex richtext-gap-3", children: [
|
|
9596
9596
|
/* @__PURE__ */ p(rt, { name: "IndentIncrease" }),
|
|
9597
9597
|
/* @__PURE__ */ p("span", { children: n("editor.indent") })
|
|
9598
9598
|
] }),
|
|
9599
|
-
/* @__PURE__ */ p(
|
|
9599
|
+
/* @__PURE__ */ p(Ui, { children: /* @__PURE__ */ S(Li, { children: [
|
|
9600
9600
|
/* @__PURE__ */ S(
|
|
9601
9601
|
mt,
|
|
9602
9602
|
{
|
|
9603
9603
|
className: "richtext-flex richtext-gap-3",
|
|
9604
|
-
disabled: ((It = i == null ? void 0 : i.attrs) == null ? void 0 : It.indent) >=
|
|
9604
|
+
disabled: ((It = i == null ? void 0 : i.attrs) == null ? void 0 : It.indent) >= Oi.max,
|
|
9605
9605
|
onClick: b,
|
|
9606
9606
|
children: [
|
|
9607
9607
|
/* @__PURE__ */ p(rt, { name: "IndentIncrease" }),
|
|
@@ -9613,7 +9613,7 @@ function iu() {
|
|
|
9613
9613
|
mt,
|
|
9614
9614
|
{
|
|
9615
9615
|
className: "richtext-flex richtext-gap-3",
|
|
9616
|
-
disabled: ((Ot = i == null ? void 0 : i.attrs) == null ? void 0 : Ot.indent) <=
|
|
9616
|
+
disabled: ((Ot = i == null ? void 0 : i.attrs) == null ? void 0 : Ot.indent) <= Oi.min,
|
|
9617
9617
|
onClick: w,
|
|
9618
9618
|
children: [
|
|
9619
9619
|
/* @__PURE__ */ p(rt, { name: "IndentDecrease" }),
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import { Slot as x } from "@radix-ui/react-slot";
|
|
4
4
|
import { c as s } from "./index-BQ17A_37.js";
|
|
5
|
-
import { c as a } from "./index
|
|
5
|
+
import { c as a } from "./index--XZPCi0O.js";
|
|
6
6
|
const d = s(
|
|
7
7
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),h=require("react"),a=require("@radix-ui/react-slot"),u=require("./index-DmOTQudI.cjs"),d=require("./index-
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),h=require("react"),a=require("@radix-ui/react-slot"),u=require("./index-DmOTQudI.cjs"),d=require("./index-CnbtiTqP.cjs");function f(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 l=f(h),g=u.cva("richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",{variants:{variant:{default:"!richtext-bg-primary !richtext-text-primary-foreground hover:!richtext-bg-primary/90",destructive:"richtext-bg-destructive richtext-text-destructive-foreground hover:richtext-bg-destructive/90",outline:"richtext-border richtext-border-input richtext-bg-background hover:richtext-bg-accent hover:richtext-text-accent-foreground",secondary:"richtext-bg-secondary richtext-text-secondary-foreground hover:richtext-bg-secondary/80",ghost:"hover:richtext-bg-accent hover:richtext-text-accent-foreground",link:"richtext-text-primary richtext-underline-offset-4 hover:richtext-underline"},size:{default:"richtext-h-10 richtext-px-4 richtext-py-2",sm:"richtext-h-9 richtext-rounded-md richtext-px-3",lg:"richtext-h-11 richtext-rounded-md richtext-px-8",icon:"richtext-size-10"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef(({className:t,variant:r,size:e,asChild:i=!1,...n},o)=>{const s=i?a.Slot:"button";return x.jsx(s,{className:d.cn(g({variant:r,size:e,className:t})),ref:o,...n})});c.displayName="Button";exports.Button=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),h=require("react"),x=require("@radix-ui/react-checkbox"),u=require("lucide-react"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),h=require("react"),x=require("@radix-ui/react-checkbox"),u=require("lucide-react"),s=require("./index-CnbtiTqP.cjs");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const d=n(h),i=n(x),a=d.forwardRef(({className:e,...r},t)=>c.jsx(i.Root,{ref:t,className:s.cn("!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-p-0 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-1 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",e),...r,children:c.jsx(i.Indicator,{className:s.cn("!richtext-flex !richtext-p-0 !richtext-items-center !richtext-justify-center !richtext-text-current"),children:c.jsx(u.Check,{className:"!richtext-h-4 !richtext-w-4"})})}));a.displayName=i.Root.displayName;exports.Checkbox=a;
|
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-checkbox";
|
|
4
4
|
import { Check as s } from "lucide-react";
|
|
5
|
-
import { c as r } from "./index
|
|
5
|
+
import { c as r } from "./index--XZPCi0O.js";
|
|
6
6
|
const a = h.forwardRef(({ className: i, ...c }, o) => /* @__PURE__ */ t(
|
|
7
7
|
e.Root,
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),f=require("react"),u=require("@radix-ui/react-dialog"),m=require("lucide-react"),c=require("./index-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),f=require("react"),u=require("@radix-ui/react-dialog"),m=require("lucide-react"),c=require("./index-CnbtiTqP.cjs");function n(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const s=n(f),r=n(u),p=r.Root,D=r.Trigger,y=r.Portal,x=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Overlay,{ref:i,className:c.cn("richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 richtext- 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",t),...e}));x.displayName=r.Overlay.displayName;const l=s.forwardRef(({className:t,children:e,...i},o)=>a.jsxs(y,{"data-richtext-portal":!0,children:[a.jsx(x,{}),a.jsxs(r.Content,{"data-richtext-portal":!0,ref:o,className:c.cn("richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 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-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg !richtext-border-border",t),...i,children:[e,a.jsxs(r.Close,{className:"richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground",children:[a.jsx(m.X,{className:"richtext-size-4 richtext-text-accent-foreground"}),a.jsx("span",{className:"richtext-sr-only richtext-text-accent-foreground",children:"Close"})]})]})]}));l.displayName=r.Content.displayName;function d({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",t),...e})}d.displayName="DialogHeader";function h({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",t),...e})}h.displayName="DialogFooter";const g=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Title,{ref:i,className:c.cn("richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",t),...e}));g.displayName=r.Title.displayName;const N=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Description,{className:c.cn("richtext-text-sm richtext-text-muted-foreground",t),ref:i,...e}));N.displayName=r.Description.displayName;exports.Dialog=p;exports.DialogContent=l;exports.DialogFooter=h;exports.DialogHeader=d;exports.DialogTitle=g;exports.DialogTrigger=D;
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-dialog";
|
|
4
4
|
import { X as l } from "lucide-react";
|
|
5
|
-
import { c } from "./index
|
|
5
|
+
import { c } from "./index--XZPCi0O.js";
|
|
6
6
|
const D = t.Root, b = t.Trigger, d = t.Portal, x = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ i(
|
|
7
7
|
t.Overlay,
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),w=require("react"),g=require("@radix-ui/react-dropdown-menu"),x=require("lucide-react"),n=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),w=require("react"),g=require("@radix-ui/react-dropdown-menu"),x=require("lucide-react"),n=require("./index-CnbtiTqP.cjs");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const a=d(w),e=d(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=a.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:n.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(x.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=a.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{ref:i,className:n.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg 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",t),...r}));l.displayName=e.SubContent.displayName;const u=a.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:n.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 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 !richtext-border-border",t),...i})}));u.displayName=e.Content.displayName;const p=a.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:n.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=a.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:n.cn("richtext-relative richtext-flex 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 richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,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(e.ItemIndicator,{children:c.jsx(x.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=a.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:n.cn("richtext-relative richtext-flex 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 richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,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(e.ItemIndicator,{children:c.jsx(x.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=a.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:n.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=a.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:n.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:n.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
|
|
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as x } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { ChevronRight as d, Check as h, Circle as l } from "lucide-react";
|
|
5
|
-
import { c as o } from "./index
|
|
5
|
+
import { c as o } from "./index--XZPCi0O.js";
|
|
6
6
|
const R = t.Root, I = t.Trigger, S = t.Portal, C = t.Sub, m = s.forwardRef(({ className: e, inset: r, children: i, ...a }, n) => /* @__PURE__ */ x(
|
|
7
7
|
t.SubTrigger,
|
|
8
8
|
{
|