@remarkablejames/editor 0.0.2 → 0.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-Bmn3RME4.js → ActionMenuButton-BUtJUsfO.js} +9 -10
- package/lib/ActionMenuButton-M55VtCZ5.cjs +1 -0
- package/lib/Attachment.cjs +2 -2
- package/lib/Attachment.js +166 -133
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +13 -12
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +11 -10
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +9 -8
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +42 -46
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +13 -14
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +6 -5
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +30 -31
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +9 -8
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +18 -19
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +9 -8
- package/lib/Drawer-CdQBnwUs.cjs +2 -0
- package/lib/{Drawer-DvGh9aXG.js → Drawer-mlmJ2nCT.js} +41 -47
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +15 -16
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +24 -28
- package/lib/ExportPdf.cjs +3 -3
- package/lib/ExportPdf.js +14 -13
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +6 -6
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +8 -7
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +16 -15
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +27 -27
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +22 -23
- package/lib/History.cjs +1 -1
- package/lib/History.js +11 -11
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +10 -9
- package/lib/Iframe-B_a_AoZc.cjs +1 -0
- package/lib/{Iframe-CnnvV6cK.js → Iframe-CYgR99Ny.js} +11 -13
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +4 -5
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +79 -82
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +26 -27
- package/lib/Indent-BAcoFdaq.cjs +1 -0
- package/lib/{Indent-Bsj8gKvT.js → Indent-BMz2ILRl.js} +31 -30
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +12 -11
- package/lib/{Katex-CilGTz7u.js → Katex-DOlb4iTP.js} +19 -22
- package/lib/Katex-bIhj82VV.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +19 -20
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/LinkEditBlock-Cqs5RxjV.cjs +5 -0
- package/lib/{LinkEditBlock-BD_WvA3r.js → LinkEditBlock-xnokk4G7.js} +19 -24
- package/lib/Mention.js +3 -3
- package/lib/{Mermaid-BrjU75Bs.js → Mermaid-Bs3pIGc6.js} +45 -48
- package/lib/Mermaid-DiOdgQv1.cjs +2 -0
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +26 -28
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +11 -10
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +37 -42
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +6 -6
- package/lib/SlashCommandNodeView-CLimjqhb.cjs +1 -0
- package/lib/{SlashCommandNodeView-COx5qZ2y.js → SlashCommandNodeView-CYcf7mVz.js} +67 -79
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +12 -11
- package/lib/{Table-BlM8yMhr.js → Table-bz1Wcojf.js} +47 -47
- package/lib/Table-dlXTKKwJ.cjs +5 -0
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +12 -11
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +26 -27
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +18 -19
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +9 -8
- package/lib/{Twitter-BP8sYXX7.js → Twitter-CNTXzgt0.js} +18 -22
- package/lib/Twitter-DhEnGg6P.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +5 -6
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +78 -87
- package/lib/{clsx-m_C5j3RU.js → clsx-CDyrfCnw.js} +24 -24
- package/lib/{dropdown-menu-C1hdPLCZ.js → dropdown-menu-BuSlU2uN.js} +1 -1
- package/lib/{dropdown-menu-CkHN04Mx.cjs → dropdown-menu-CfWNst4v.cjs} +1 -1
- package/lib/extensions/Attachment/Attachment.d.ts +22 -2
- package/lib/extensions/Image/Image.d.ts +11 -0
- package/lib/extensions/Image/components/ImageCropper.d.ts +1 -1
- package/lib/index-8B00E8e4.js +5055 -0
- package/lib/index-BrxL7y9p.cjs +1 -0
- package/lib/index-Bt9LiArC.cjs +10 -0
- package/lib/{index-B3Ijnbxs.js → index-C-tDsIKJ.js} +1 -1
- package/lib/{index-C1KQsOcg.js → index-C1WCZhyA.js} +1 -1
- package/lib/{index-C8FjP66D.js → index-CsSfYR30.js} +1 -1
- package/lib/{index-4Q5IhypJ.js → index-DZfkCNKr.js} +15 -9
- package/lib/{index-s3l5RdyW.js → index-DjDf4BK8.js} +1 -1
- package/lib/index.cjs +4 -4
- package/lib/index.js +147 -392
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/en.d.ts +189 -188
- package/lib/locales/fi.d.ts +189 -188
- package/lib/locales/hu.d.ts +189 -188
- package/lib/locales/index.d.ts +1134 -1128
- package/lib/locales/pt-br.d.ts +189 -188
- package/lib/locales/vi.d.ts +189 -188
- package/lib/locales/zh-cn.d.ts +189 -188
- package/lib/{popover-B05Fd8lC.cjs → popover-51mwx3UY.cjs} +1 -1
- package/lib/{popover-CsSXh7w6.js → popover-DMPRgXD3.js} +1 -1
- package/lib/{renderNodeView-C_hPIdEs.js → renderNodeView-BJSrgyGj.js} +2 -2
- package/lib/{select-7ubC1NF0.cjs → select-B7v1Scb-.cjs} +1 -1
- package/lib/{select-B3-5wTqn.js → select-BxFDMaZi.js} +1 -1
- package/lib/{separator-CYCA8tSn.js → separator-CpqX9KQC.js} +12 -13
- package/lib/separator-kB9YUfeO.cjs +1 -0
- package/lib/style.css +1 -1
- package/lib/{textarea-1FhpmBkP.js → textarea-C5DsgzSy.js} +1 -1
- package/lib/{textarea-Bjhcpp76.cjs → textarea-bQSzjqg3.cjs} +1 -1
- package/lib/theme/theme.d.ts +1 -1
- package/lib/{updatePosition-DvfTZHcH.js → updatePosition-e90ZrFWW.js} +2 -2
- package/package.json +1 -1
- package/lib/ActionMenuButton-C5P0Kzrb.cjs +0 -1
- package/lib/Drawer-gz9U5ArC.cjs +0 -2
- package/lib/Icon-CKM0tYbW.js +0 -15
- package/lib/Icon-CQyFgXeo.cjs +0 -1
- package/lib/Iframe-Ds6gG2YO.cjs +0 -1
- package/lib/ImageCropper-BKhXlnXN.cjs +0 -1
- package/lib/ImageCropper-DUzu_9-6.js +0 -896
- package/lib/Indent-D_7HOYYd.cjs +0 -1
- package/lib/Katex-lL3bHXJd.cjs +0 -4
- package/lib/LinkEditBlock-D3HSHmsU.cjs +0 -5
- package/lib/Mermaid-BfeLPzoS.cjs +0 -2
- package/lib/SlashCommandNodeView-DD-nlhM-.cjs +0 -1
- package/lib/Table-C21AlUrh.cjs +0 -5
- package/lib/Twitter-D46MnvPr.cjs +0 -1
- package/lib/Video-Bpd8W8l6.js +0 -231
- package/lib/Video-BwrHx6B1.cjs +0 -1
- package/lib/button-BmTP96NR.cjs +0 -1
- package/lib/button-CDIxPURh.js +0 -35
- package/lib/checkbox-7sfSdzy9.js +0 -29
- package/lib/checkbox-DyVlLWHv.cjs +0 -1
- package/lib/dialog-B-jOQ5i3.cjs +0 -1
- package/lib/dialog-QWWUWOGP.js +0 -95
- package/lib/events.constant-Bh2uzJud.js +0 -71
- package/lib/events.constant-ELn21EzG.cjs +0 -1
- package/lib/file-BLas99n7.js +0 -43
- package/lib/file-i7e4nQY2.cjs +0 -1
- package/lib/index-CAiZY1nx.js +0 -2741
- package/lib/index-DWSAk_9a.cjs +0 -1
- package/lib/index-bVGIXhRg.cjs +0 -1
- package/lib/input-qvpuOf-3.js +0 -21
- package/lib/input-s0JD5kf2.cjs +0 -1
- package/lib/isNumber-BTYSVlKo.cjs +0 -1
- package/lib/isNumber-WaBzl_0s.js +0 -15
- package/lib/label-CFax-gzo.cjs +0 -1
- package/lib/label-DC37f2RQ.js +0 -11
- package/lib/separator-ncbdw4oq.cjs +0 -1
- package/lib/tabs-BeHxylKH.js +0 -46
- package/lib/tabs-DBqNpGAq.cjs +0 -1
- package/lib/throttle-CRNq0z-O.js +0 -249
- package/lib/throttle-gTTvqDTW.cjs +0 -1
- package/lib/toggle-DoJTBdvy.js +0 -89
- package/lib/toggle-oFwBZC4x.cjs +0 -1
- package/lib/useButtonProps-BE10eHkG.js +0 -165
- package/lib/useButtonProps-CFu0GHzW.cjs +0 -1
package/lib/locales/zh-cn.d.ts
CHANGED
|
@@ -1,196 +1,197 @@
|
|
|
1
1
|
declare const locale: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
2
|
+
"editor.remove": string;
|
|
3
|
+
"editor.copy": string;
|
|
4
|
+
"editor.words": string;
|
|
5
|
+
"editor.characters": string;
|
|
6
|
+
"editor.default": string;
|
|
7
|
+
"editor.recent": string;
|
|
8
|
+
"editor.nofill": string;
|
|
9
|
+
"editor.format": string;
|
|
10
|
+
"editor.delete": string;
|
|
11
|
+
"editor.edit": string;
|
|
12
|
+
"editor.settings": string;
|
|
13
|
+
"editor.table_of_content": string;
|
|
14
|
+
"editor.draghandle.tooltip": string;
|
|
15
|
+
"editor.copyToClipboard": string;
|
|
16
|
+
"editor.slash": string;
|
|
17
|
+
"editor.slash.empty": string;
|
|
18
|
+
"editor.slash.format": string;
|
|
19
|
+
"editor.slash.insert": string;
|
|
20
|
+
"editor.slash.embed": string;
|
|
21
|
+
"editor.content": string;
|
|
22
|
+
"editor.fontFamily.tooltip": string;
|
|
23
|
+
"editor.fontFamily.default.tooltip": string;
|
|
24
|
+
"editor.moremark": string;
|
|
25
|
+
"editor.size.small.tooltip": string;
|
|
26
|
+
"editor.size.medium.tooltip": string;
|
|
27
|
+
"editor.size.large.tooltip": string;
|
|
28
|
+
"editor.bold.tooltip": string;
|
|
29
|
+
"editor.italic.tooltip": string;
|
|
30
|
+
"editor.underline.tooltip": string;
|
|
31
|
+
"editor.strike.tooltip": string;
|
|
32
|
+
"editor.color.tooltip": string;
|
|
33
|
+
"editor.color.more": string;
|
|
34
|
+
"editor.highlight.tooltip": string;
|
|
35
|
+
"editor.lineheight.tooltip": string;
|
|
36
|
+
"editor.heading.tooltip": string;
|
|
37
|
+
"editor.heading.h1.tooltip": string;
|
|
38
|
+
"editor.heading.h2.tooltip": string;
|
|
39
|
+
"editor.heading.h3.tooltip": string;
|
|
40
|
+
"editor.heading.h4.tooltip": string;
|
|
41
|
+
"editor.heading.h5.tooltip": string;
|
|
42
|
+
"editor.heading.h6.tooltip": string;
|
|
43
|
+
"editor.paragraph.tooltip": string;
|
|
44
|
+
"editor.textalign.tooltip": string;
|
|
45
|
+
"editor.textalign.left.tooltip": string;
|
|
46
|
+
"editor.textalign.center.tooltip": string;
|
|
47
|
+
"editor.textalign.right.tooltip": string;
|
|
48
|
+
"editor.textalign.justify.tooltip": string;
|
|
49
|
+
"editor.indent": string;
|
|
50
|
+
"editor.indent.indent": string;
|
|
51
|
+
"editor.indent.outdent": string;
|
|
52
|
+
"editor.fontSize.tooltip": string;
|
|
53
|
+
"editor.fontSize.default.tooltip": string;
|
|
54
|
+
"editor.superscript.tooltip": string;
|
|
55
|
+
"editor.subscript.tooltip": string;
|
|
56
|
+
"editor.bulletlist.tooltip": string;
|
|
57
|
+
"editor.orderedlist.tooltip": string;
|
|
58
|
+
"editor.tasklist.tooltip": string;
|
|
59
|
+
"editor.indent.tooltip": string;
|
|
60
|
+
"editor.outdent.tooltip": string;
|
|
61
|
+
"editor.columns.tooltip": string;
|
|
62
|
+
"editor.link.tooltip": string;
|
|
63
|
+
"editor.link.unlink.tooltip": string;
|
|
64
|
+
"editor.link.open.tooltip": string;
|
|
65
|
+
"editor.link.edit.tooltip": string;
|
|
66
|
+
"editor.link.dialog.title": string;
|
|
67
|
+
"editor.link.dialog.link": string;
|
|
68
|
+
"editor.link.dialog.text": string;
|
|
69
|
+
"editor.link.dialog.openInNewTab": string;
|
|
70
|
+
"editor.link.dialog.link.placeholder": string;
|
|
71
|
+
"editor.link.dialog.text.placeholder": string;
|
|
72
|
+
"editor.link.dialog.button.apply": string;
|
|
73
|
+
"editor.link.dialog.button.cancel": string;
|
|
74
|
+
"editor.image.tooltip": string;
|
|
75
|
+
"editor.image.dragger.tooltip": string;
|
|
76
|
+
"editor.image.float.left.tooltip": string;
|
|
77
|
+
"editor.image.float.none.tooltip": string;
|
|
78
|
+
"editor.image.float.right.tooltip": string;
|
|
79
|
+
"editor.image.dialog.title": string;
|
|
80
|
+
"editor.image.dialog.tab.url": string;
|
|
81
|
+
"editor.image.dialog.tab.upload": string;
|
|
82
|
+
"editor.link.dialog.inline": string;
|
|
83
|
+
"editor.image.dialog.uploading": string;
|
|
84
|
+
"editor.image.dialog.form.link": string;
|
|
85
|
+
"editor.image.dialog.placeholder": string;
|
|
86
|
+
"editor.image.dialog.form.alt": string;
|
|
87
|
+
"editor.image.dialog.form.aspectRatio": string;
|
|
88
|
+
"editor.image.dialog.form.file": string;
|
|
89
|
+
"editor.image.dialog.button.apply": string;
|
|
90
|
+
"editor.video.tooltip": string;
|
|
91
|
+
"editor.video.dialog.tab.upload": string;
|
|
92
|
+
"editor.image.dialog.tab.uploadCrop": string;
|
|
93
|
+
"editor.video.dialog.uploading": string;
|
|
94
|
+
"editor.video.dialog.title": string;
|
|
95
|
+
"editor.video.dialog.link": string;
|
|
96
|
+
"editor.video.dialog.placeholder": string;
|
|
97
|
+
"editor.video.dialog.button.apply": string;
|
|
98
|
+
"editor.table.tooltip": string;
|
|
99
|
+
"editor.table.menu.insert_table": string;
|
|
100
|
+
"editor.table.menu.insert_table.with_header_row": string;
|
|
101
|
+
"editor.table.menu.add_column_before": string;
|
|
102
|
+
"editor.table.menu.add_column_after": string;
|
|
103
|
+
"editor.table.menu.delete_column": string;
|
|
104
|
+
"editor.table.menu.add_row_before": string;
|
|
105
|
+
"editor.table.menu.add_row_after": string;
|
|
106
|
+
"editor.table.menu.delete_row": string;
|
|
107
|
+
"editor.table.menu.merge_or_split_cells": string;
|
|
108
|
+
"editor.table.menu.delete_table": string;
|
|
109
|
+
"editor.blockquote.tooltip": string;
|
|
110
|
+
"editor.horizontalrule.tooltip": string;
|
|
111
|
+
"editor.code.tooltip": string;
|
|
112
|
+
"editor.codeblock.tooltip": string;
|
|
113
|
+
"editor.clear.tooltip": string;
|
|
114
|
+
"editor.undo.tooltip": string;
|
|
115
|
+
"editor.redo.tooltip": string;
|
|
116
|
+
"editor.fullscreen.tooltip.fullscreen": string;
|
|
117
|
+
"editor.fullscreen.tooltip.exit": string;
|
|
118
|
+
"editor.imageUpload.cancel": string;
|
|
119
|
+
"editor.imageUpload.crop": string;
|
|
120
|
+
"editor.imageUpload.uploading": string;
|
|
121
|
+
"editor.imageUpload.alt": string;
|
|
122
|
+
"editor.imageUpload.fileTypeNotSupported": string;
|
|
123
|
+
"editor.imageUpload.fileSizeTooBig": string;
|
|
124
|
+
"editor.table.menu.insertColumnBefore": string;
|
|
125
|
+
"editor.table.menu.insertColumnAfter": string;
|
|
126
|
+
"editor.table.menu.deleteColumn": string;
|
|
127
|
+
"editor.table.menu.insertRowAbove": string;
|
|
128
|
+
"editor.table.menu.insertRowBelow": string;
|
|
129
|
+
"editor.table.menu.deleteRow": string;
|
|
130
|
+
"editor.table.menu.mergeCells": string;
|
|
131
|
+
"editor.table.menu.splitCells": string;
|
|
132
|
+
"editor.table.menu.deleteTable": string;
|
|
133
|
+
"editor.table.menu.setCellsBgColor": string;
|
|
134
|
+
"editor.emoji.tooltip": string;
|
|
135
|
+
"editor.iframe.tooltip": string;
|
|
136
|
+
"editor.searchAndReplace.tooltip": string;
|
|
137
|
+
"editor.search.dialog.text": string;
|
|
138
|
+
"editor.replace.dialog.text": string;
|
|
139
|
+
"editor.replaceAll.dialog.text": string;
|
|
140
|
+
"editor.previous.dialog.text": string;
|
|
141
|
+
"editor.next.dialog.text": string;
|
|
142
142
|
no_result_found: string;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
"Smileys & People": string;
|
|
144
|
+
"Animals & Nature": string;
|
|
145
|
+
"Food & Drink": string;
|
|
146
146
|
Activity: string;
|
|
147
|
-
|
|
147
|
+
"Travel & Places": string;
|
|
148
148
|
Object: string;
|
|
149
149
|
Symbol: string;
|
|
150
150
|
Flags: string;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
151
|
+
"Frequently used": string;
|
|
152
|
+
"editor.formula.dialog.text": string;
|
|
153
|
+
"editor.katex.tooltip": string;
|
|
154
|
+
"editor.exportPdf.tooltip": string;
|
|
155
|
+
"editor.exportWord.tooltip": string;
|
|
156
|
+
"editor.importWord.tooltip": string;
|
|
157
|
+
"editor.importWord.limitSize": string;
|
|
158
|
+
"editor.importWord.converting": string;
|
|
159
|
+
"editor.importWord.convertError": string;
|
|
160
|
+
"editor.importWord.importError": string;
|
|
161
|
+
"editor.textDirection.tooltip": string;
|
|
162
|
+
"editor.textDirection.auto.tooltip": string;
|
|
163
|
+
"editor.textDirection.ltr.tooltip": string;
|
|
164
|
+
"editor.textDirection.rtl.tooltip": string;
|
|
165
|
+
"editor.textDirection.unset.tooltip": string;
|
|
166
|
+
"editor.attachment.tooltip": string;
|
|
167
|
+
"editor.attachment.uploading": string;
|
|
168
|
+
"editor.attachment.please_upload": string;
|
|
169
|
+
"editor.attachment.download": string;
|
|
170
|
+
"editor.imageGif.tooltip": string;
|
|
171
|
+
"editor.replace.caseSensitive": string;
|
|
172
|
+
"editor.mermaid.tooltip": string;
|
|
173
|
+
"editor.twitter.tooltip": string;
|
|
174
|
+
"editor.codeView.tooltip": string;
|
|
175
|
+
"editor.tooltip.flipX": string;
|
|
176
|
+
"editor.tooltip.flipY": string;
|
|
177
|
+
"editor.upload.fileTypeNotSupported": string;
|
|
178
|
+
"editor.upload.fileSizeTooBig": string;
|
|
179
|
+
"editor.upload.error": string;
|
|
180
|
+
"editor.callout.tooltip": string;
|
|
181
|
+
"editor.callout.dialog.title": string;
|
|
182
|
+
"editor.callout.dialog.type": string;
|
|
183
|
+
"editor.callout.dialog.type.placeholder": string;
|
|
184
|
+
"editor.callout.dialog.title.label": string;
|
|
185
|
+
"editor.callout.dialog.title.placeholder": string;
|
|
186
|
+
"editor.callout.dialog.body.label": string;
|
|
187
|
+
"editor.callout.dialog.body.placeholder": string;
|
|
188
|
+
"editor.callout.dialog.button.apply": string;
|
|
189
|
+
"editor.callout.dialog.button.cancel": string;
|
|
190
|
+
"editor.callout.edit.title": string;
|
|
191
|
+
"editor.callout.type.note": string;
|
|
192
|
+
"editor.callout.type.tip": string;
|
|
193
|
+
"editor.callout.type.important": string;
|
|
194
|
+
"editor.callout.type.warning": string;
|
|
195
|
+
"editor.callout.type.caution": string;
|
|
195
196
|
};
|
|
196
197
|
export default locale;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),d=require("@radix-ui/react-popover"),p=require("react"),h=require("./index-Bt9LiArC.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 o=n(d),l=n(p),x=o.Root,m=o.Trigger,c=l.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},s)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:s,sideOffset:e,className:h.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border !richtext-border-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",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=x;exports.PopoverContent=c;exports.PopoverTrigger=m;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-popover";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import { c as s } from "./index-
|
|
4
|
+
import { c as s } from "./index-8B00E8e4.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 c=require("react/jsx-runtime"),f=require("@radix-ui/react-select"),x=require("lucide-react"),g=require("react"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),f=require("@radix-ui/react-select"),x=require("lucide-react"),g=require("react"),s=require("./index-Bt9LiArC.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 t=l(f),o=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-text-foreground 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",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-min-w-[8rem] richtext-overflow-hidden richtext-overflow-y-auto 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;
|
|
@@ -2,7 +2,7 @@ import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import * as t from "@radix-ui/react-select";
|
|
3
3
|
import { ChevronDown as x, ChevronUp as m, Check as p } from "lucide-react";
|
|
4
4
|
import * as o from "react";
|
|
5
|
-
import { c as a } from "./index-
|
|
5
|
+
import { c as a } from "./index-8B00E8e4.js";
|
|
6
6
|
const v = t.Root, R = t.Value, f = o.forwardRef(({ className: i, children: c, ...r }, s) => /* @__PURE__ */ h(
|
|
7
7
|
t.Trigger,
|
|
8
8
|
{
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { Plus as k } from "lucide-react";
|
|
3
3
|
import * as $ from "react";
|
|
4
|
-
import { useCallback as m, useState as w, useEffect as L, useRef as M, useMemo as
|
|
5
|
-
import { HexColorPicker as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
4
|
+
import { useCallback as m, useState as w, useEffect as L, useRef as M, useMemo as B } from "react";
|
|
5
|
+
import { HexColorPicker as F } from "react-colorful";
|
|
6
|
+
import { j as I, B as _, c as T } from "./index-8B00E8e4.js";
|
|
7
|
+
import "./theme.js";
|
|
8
|
+
import { u as N, C as j } from "./index-DZfkCNKr.js";
|
|
9
|
+
import { P as z, a as E, b as y } from "./popover-DMPRgXD3.js";
|
|
9
10
|
import * as R from "@radix-ui/react-separator";
|
|
10
|
-
import { c as T } from "./index-CAiZY1nx.js";
|
|
11
|
-
import { B as j } from "./button-CDIxPURh.js";
|
|
12
11
|
function D() {
|
|
13
12
|
return /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ t(
|
|
14
13
|
"path",
|
|
@@ -102,8 +101,8 @@ function J(e, r, c = {}) {
|
|
|
102
101
|
);
|
|
103
102
|
return S("storage", v), S("local-storage", v), [h, b, g];
|
|
104
103
|
}
|
|
105
|
-
function
|
|
106
|
-
const { t: r } = N(), { disabled: c = !1, value: d, onChange: n, colors: u =
|
|
104
|
+
function X(e) {
|
|
105
|
+
const { t: r } = N(), { disabled: c = !1, value: d, onChange: n, colors: u = j, highlight: a } = e, [h, f] = w(!1), b = B(() => {
|
|
107
106
|
const i = u, l = [];
|
|
108
107
|
for (let x = 0; x < i.length; x += 10)
|
|
109
108
|
l.push(i.slice(x, x + 10));
|
|
@@ -239,7 +238,7 @@ function Z({ setColor: e }) {
|
|
|
239
238
|
/* @__PURE__ */ p(y, { children: [
|
|
240
239
|
/* @__PURE__ */ p("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-justify-center", children: [
|
|
241
240
|
/* @__PURE__ */ t(
|
|
242
|
-
|
|
241
|
+
F,
|
|
243
242
|
{
|
|
244
243
|
color: n,
|
|
245
244
|
onChange: (h) => {
|
|
@@ -248,7 +247,7 @@ function Z({ setColor: e }) {
|
|
|
248
247
|
}
|
|
249
248
|
),
|
|
250
249
|
/* @__PURE__ */ t(
|
|
251
|
-
|
|
250
|
+
I,
|
|
252
251
|
{
|
|
253
252
|
className: "richtext-mt-[8px] richtext-w-full",
|
|
254
253
|
type: "text",
|
|
@@ -261,7 +260,7 @@ function Z({ setColor: e }) {
|
|
|
261
260
|
] }),
|
|
262
261
|
/* @__PURE__ */ t(O, { className: "richtext-my-[10px]" }),
|
|
263
262
|
/* @__PURE__ */ t(
|
|
264
|
-
|
|
263
|
+
_,
|
|
265
264
|
{
|
|
266
265
|
className: "richtext-w-full",
|
|
267
266
|
onClick: (h) => {
|
|
@@ -289,6 +288,6 @@ const O = $.forwardRef(({ className: e, orientation: r = "horizontal", decorativ
|
|
|
289
288
|
));
|
|
290
289
|
O.displayName = R.Root.displayName;
|
|
291
290
|
export {
|
|
292
|
-
|
|
291
|
+
X as C,
|
|
293
292
|
O as S
|
|
294
293
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),E=require("lucide-react"),n=require("react"),P=require("react-colorful"),j=require("./index-Bt9LiArC.cjs");require("./theme.cjs");const C=require("./index-BrxL7y9p.cjs"),v=require("./popover-51mwx3UY.cjs"),O=require("@radix-ui/react-separator");function N(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const c in t)if(c!=="default"){const h=Object.getOwnPropertyDescriptor(t,c);Object.defineProperty(r,c,h.get?h:{enumerable:!0,get:()=>t[c]})}}return r.default=t,Object.freeze(r)}const y=N(n),z=N(O);function R(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z"})})}const w=typeof window>"u";function L(t,r,c=window){const h=n.useRef(void 0);n.useEffect(()=>{h.current=r},[r]),n.useEffect(()=>{if(!(c&&c.addEventListener))return;const f=x=>{h.current&&h.current(x)};return c.addEventListener(t,f),()=>{c.removeEventListener(t,f)}},[t,c])}function _(t,r,c={}){const{initializeWithValue:h=!0}=c,i=n.useCallback(o=>c.serializer?c.serializer(o):JSON.stringify(o),[c]),f=n.useCallback(o=>{if(c.deserializer)return c.deserializer(o);if(o==="undefined")return;const l=r instanceof Function?r():r;let s;try{s=JSON.parse(o)}catch(a){return console.error("Error parsing JSON:",a),l}return s},[c,r]),x=n.useCallback(()=>{const o=r instanceof Function?r():r;if(w)return o;try{const l=window.localStorage.getItem(t);return l?f(l):o}catch(l){return console.warn(`Error reading localStorage key “${t}”:`,l),o}},[r,t,f]),[d,p]=n.useState(()=>h?x():r instanceof Function?r():r),b=n.useCallback(o=>{w&&console.warn(`Tried setting localStorage key “${t}” even though environment is not a client`);try{const l=o instanceof Function?o(x()):o;window.localStorage.setItem(t,i(l)),p(l),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))}catch(l){console.warn(`Error setting localStorage key “${t}”:`,l)}},[t,i,x]),g=n.useCallback(()=>{w&&console.warn(`Tried removing localStorage key “${t}” even though environment is not a client`);const o=r instanceof Function?r():r;window.localStorage.removeItem(t),p(o),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))},[t,r]);n.useEffect(()=>{p(x())},[t]);const m=n.useCallback(o=>{o.key&&o.key!==t||p(x())},[t,x]);return L("storage",m),L("local-storage",m),[d,b,g]}function q(t){const{t:r}=C.useLocale(),{disabled:c=!1,value:h,onChange:i,colors:f=C.COLORS_LIST,highlight:x}=t,[d,p]=n.useState(!1),b=n.useMemo(()=>{const s=f,a=[];for(let u=0;u<s.length;u+=10)a.push(s.slice(u,u+10));return a},[f]),[g,m]=_(x?"richtext-recent-highlight":"richtext-recent-colors",[]),o=s=>{const a=[...g],u=a.indexOf(s);u!==-1&&a.splice(u,1),a.unshift(s),a.length>10&&a.pop(),m(a)};function l(s){if(s===void 0){i==null||i(s),p(!1);return}/^#([\da-f]{3}){1,2}$/i.test(s)&&(i==null||i(s),o(s),p(!1))}return e.jsxs(v.Popover,{modal:!0,onOpenChange:p,open:d,children:[e.jsx(v.PopoverTrigger,{asChild:!0,className:"!richtext-p-0",disabled:c,children:t==null?void 0:t.children}),e.jsx(v.PopoverContent,{align:"start",className:"richtext-size-full !richtext-p-2",hideWhenDetached:!0,side:"bottom",children:e.jsxs("div",{className:"richtext-flex richtext-flex-col",children:[e.jsxs("div",{className:"rd-1 richtext-flex richtext-cursor-pointer richtext-items-center richtext-gap-[4px] richtext-p-1 hover:richtext-bg-accent",onClick:()=>{l(void 0)},children:[e.jsx(R,{}),e.jsx("span",{className:"richtext-ml-1 richtext-text-sm",children:r(x?"editor.nofill":"editor.default")})]}),b.map((s,a)=>e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",children:s.map((u,k)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-solid !richtext-border-transparent richtext-p-0.5 hover:!richtext-border-border",onClick:()=>l(u),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px]",style:{backgroundColor:u},children:u===h?e.jsx("svg",{className:"richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})}):e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-${k}`))},`color-row-${a}`)),e.jsxs("div",{children:[e.jsx("div",{className:"richtext-my-1 richtext-text-sm",children:r("editor.recent")}),e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-flex-wrap richtext-p-0 last:richtext-pb-2",children:g==null?void 0:g.map((s,a)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",onClick:()=>l(s),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",style:{backgroundColor:s},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-recent-${a}`))})]}),e.jsx(M,{setColor:l})]})})]})}function M({setColor:t}){const{t:r}=C.useLocale(),[c,h]=n.useState(!1),[i,f]=n.useState("#000000"),x=n.useCallback(d=>{f(d)},[]);return e.jsxs(v.Popover,{onOpenChange:h,open:c,children:[e.jsx(v.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:"richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent",children:[r("editor.color.more"),"..."]})}),e.jsxs(v.PopoverContent,{children:[e.jsxs("div",{className:"richtext-flex richtext-flex-col richtext-items-center richtext-justify-center",children:[e.jsx(P.HexColorPicker,{color:i,onChange:d=>{x(d)}}),e.jsx(j.Input,{className:"richtext-mt-[8px] richtext-w-full",type:"text",value:i.replace("#",""),onChange:d=>{d.preventDefault(),d.stopPropagation(),x(`#${d.target.value}`)}})]}),e.jsx(S,{className:"richtext-my-[10px]"}),e.jsx(j.Button,{className:"richtext-w-full",onClick:d=>{d.preventDefault(),d.stopPropagation(),t(i),h(!1)},children:e.jsx(E.Plus,{size:16})})]})]})}const S=y.forwardRef(({className:t,orientation:r="horizontal",decorative:c=!0,...h},i)=>e.jsx(z.Root,{ref:i,decorative:c,orientation:r,className:j.cn("richtext-shrink-0 richtext-bg-border",r==="horizontal"?"richtext-h-[1px] richtext-w-full":"richtext-h-full richtext-w-[1px]",t),...h}));S.displayName=z.Root.displayName;exports.ColorPicker=q;exports.Separator=S;
|