@pie-lib/editable-html-tip-tap 2.2.0-beta.8 → 3.0.0-next.20261002094057
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CharacterPicker.d.ts +31 -0
- package/dist/components/CharacterPicker.js +141 -0
- package/dist/components/EditableHtml.d.ts +11 -0
- package/dist/components/EditableHtml.js +331 -0
- package/dist/components/MenuBar.d.ts +11 -0
- package/dist/components/MenuBar.js +531 -0
- package/dist/components/TiptapContainer.d.ts +11 -0
- package/dist/components/TiptapContainer.js +167 -0
- package/dist/components/characters/characterUtils.d.ts +35 -0
- package/dist/components/characters/characterUtils.js +465 -0
- package/dist/components/characters/custom-popper.d.ts +14 -0
- package/dist/components/characters/custom-popper.js +32 -0
- package/dist/components/common/done-button.d.ts +30 -0
- package/dist/components/common/done-button.js +26 -0
- package/dist/components/common/toolbar-buttons.d.ts +38 -0
- package/dist/components/common/toolbar-buttons.js +96 -0
- package/dist/components/icons/CssIcon.d.ts +11 -0
- package/dist/components/icons/CssIcon.js +14 -0
- package/dist/components/icons/RespArea.d.ts +26 -0
- package/dist/components/icons/RespArea.js +42 -0
- package/dist/components/icons/TableIcons.d.ts +14 -0
- package/dist/components/icons/TableIcons.js +34 -0
- package/dist/components/icons/TextAlign.d.ts +18 -0
- package/dist/components/icons/TextAlign.js +143 -0
- package/dist/components/image/AltDialog.d.ts +22 -0
- package/dist/components/image/AltDialog.js +61 -0
- package/dist/components/image/ImageToolbar.d.ts +24 -0
- package/dist/components/image/ImageToolbar.js +80 -0
- package/dist/components/image/InsertImageHandler.d.ts +33 -0
- package/dist/components/image/InsertImageHandler.js +65 -0
- package/dist/components/image/findImageNode.d.ts +3 -0
- package/dist/components/image/findImageNode.js +11 -0
- package/dist/components/media/MediaDialog.d.ts +43 -0
- package/dist/components/media/MediaDialog.js +389 -0
- package/dist/components/media/MediaToolbar.d.ts +19 -0
- package/dist/components/media/MediaToolbar.js +41 -0
- package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts +23 -0
- package/dist/components/respArea/DragInTheBlank/DragInTheBlank.js +58 -0
- package/dist/components/respArea/DragInTheBlank/choice.d.ts +56 -0
- package/dist/components/respArea/DragInTheBlank/choice.js +157 -0
- package/dist/components/respArea/ExplicitConstructedResponse.d.ts +20 -0
- package/dist/components/respArea/ExplicitConstructedResponse.js +84 -0
- package/dist/components/respArea/InlineDropdown.d.ts +18 -0
- package/dist/components/respArea/InlineDropdown.js +126 -0
- package/dist/components/respArea/MathTemplated.d.ts +19 -0
- package/dist/components/respArea/MathTemplated.js +98 -0
- package/dist/components/respArea/ToolbarIcon.d.ts +14 -0
- package/dist/components/respArea/ToolbarIcon.js +17 -0
- package/dist/components/respArea/inlineDropdownUtils.d.ts +15 -0
- package/dist/components/respArea/inlineDropdownUtils.js +15 -0
- package/dist/constants.d.ts +13 -0
- package/dist/constants.js +4 -0
- package/dist/extensions/css.d.ts +11 -0
- package/dist/extensions/css.js +120 -0
- package/dist/extensions/custom-toolbar-wrapper.d.ts +11 -0
- package/dist/extensions/custom-toolbar-wrapper.js +61 -0
- package/dist/extensions/div-node.d.ts +10 -0
- package/dist/extensions/div-node.js +42 -0
- package/dist/extensions/ensure-empty-root-div.d.ts +14 -0
- package/dist/extensions/ensure-empty-root-div.js +24 -0
- package/dist/extensions/ensure-list-item-content-is-div.d.ts +15 -0
- package/dist/extensions/ensure-list-item-content-is-div.js +31 -0
- package/dist/extensions/extended-list-item.d.ts +13 -0
- package/dist/extensions/extended-list-item.js +5 -0
- package/dist/extensions/extended-table-cell.d.ts +10 -0
- package/dist/extensions/extended-table-cell.js +6 -0
- package/dist/extensions/extended-table.d.ts +17 -0
- package/dist/extensions/extended-table.js +34 -0
- package/dist/extensions/heading-paragraph.d.ts +17 -0
- package/dist/extensions/heading-paragraph.js +30 -0
- package/dist/extensions/image-component.d.ts +22 -0
- package/dist/extensions/image-component.js +223 -0
- package/dist/extensions/image.d.ts +10 -0
- package/dist/extensions/image.js +77 -0
- package/dist/extensions/index.d.ts +16 -0
- package/dist/extensions/index.js +64 -0
- package/dist/extensions/math.d.ts +15 -0
- package/dist/extensions/math.js +214 -0
- package/dist/extensions/media.d.ts +19 -0
- package/dist/extensions/media.js +149 -0
- package/dist/extensions/responseArea.d.ts +27 -0
- package/dist/extensions/responseArea.js +255 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/utils/helper.d.ts +9 -0
- package/dist/utils/helper.js +27 -0
- package/dist/utils/size.d.ts +9 -0
- package/dist/utils/size.js +14 -0
- package/dist/utils/toolbar.d.ts +10 -0
- package/dist/utils/toolbar.js +7 -0
- package/package.json +59 -43
- package/CHANGELOG.json +0 -32
- package/CHANGELOG.md +0 -2532
- package/lib/components/CharacterPicker.js +0 -226
- package/lib/components/CharacterPicker.js.map +0 -1
- package/lib/components/EditableHtml.js +0 -388
- package/lib/components/EditableHtml.js.map +0 -1
- package/lib/components/MenuBar.js +0 -702
- package/lib/components/MenuBar.js.map +0 -1
- package/lib/components/TiptapContainer.js +0 -242
- package/lib/components/TiptapContainer.js.map +0 -1
- package/lib/components/characters/characterUtils.js +0 -378
- package/lib/components/characters/characterUtils.js.map +0 -1
- package/lib/components/characters/custom-popper.js +0 -44
- package/lib/components/characters/custom-popper.js.map +0 -1
- package/lib/components/common/done-button.js +0 -34
- package/lib/components/common/done-button.js.map +0 -1
- package/lib/components/common/toolbar-buttons.js +0 -149
- package/lib/components/common/toolbar-buttons.js.map +0 -1
- package/lib/components/icons/CssIcon.js +0 -25
- package/lib/components/icons/CssIcon.js.map +0 -1
- package/lib/components/icons/RespArea.js +0 -72
- package/lib/components/icons/RespArea.js.map +0 -1
- package/lib/components/icons/TableIcons.js +0 -53
- package/lib/components/icons/TableIcons.js.map +0 -1
- package/lib/components/icons/TextAlign.js +0 -157
- package/lib/components/icons/TextAlign.js.map +0 -1
- package/lib/components/image/AltDialog.js +0 -98
- package/lib/components/image/AltDialog.js.map +0 -1
- package/lib/components/image/ImageToolbar.js +0 -137
- package/lib/components/image/ImageToolbar.js.map +0 -1
- package/lib/components/image/InsertImageHandler.js +0 -135
- package/lib/components/image/InsertImageHandler.js.map +0 -1
- package/lib/components/media/MediaDialog.js +0 -594
- package/lib/components/media/MediaDialog.js.map +0 -1
- package/lib/components/media/MediaToolbar.js +0 -74
- package/lib/components/media/MediaToolbar.js.map +0 -1
- package/lib/components/media/MediaWrapper.js +0 -67
- package/lib/components/media/MediaWrapper.js.map +0 -1
- package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js +0 -84
- package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js.map +0 -1
- package/lib/components/respArea/DragInTheBlank/choice.js +0 -253
- package/lib/components/respArea/DragInTheBlank/choice.js.map +0 -1
- package/lib/components/respArea/ExplicitConstructedResponse.js +0 -137
- package/lib/components/respArea/ExplicitConstructedResponse.js.map +0 -1
- package/lib/components/respArea/InlineDropdown.js +0 -223
- package/lib/components/respArea/InlineDropdown.js.map +0 -1
- package/lib/components/respArea/MathTemplated.js +0 -130
- package/lib/components/respArea/MathTemplated.js.map +0 -1
- package/lib/components/respArea/ToolbarIcon.js +0 -81
- package/lib/components/respArea/ToolbarIcon.js.map +0 -1
- package/lib/components/respArea/inlineDropdownUtils.js +0 -67
- package/lib/components/respArea/inlineDropdownUtils.js.map +0 -1
- package/lib/constants.js +0 -11
- package/lib/constants.js.map +0 -1
- package/lib/extensions/css.js +0 -227
- package/lib/extensions/css.js.map +0 -1
- package/lib/extensions/custom-toolbar-wrapper.js +0 -92
- package/lib/extensions/custom-toolbar-wrapper.js.map +0 -1
- package/lib/extensions/div-node.js +0 -83
- package/lib/extensions/div-node.js.map +0 -1
- package/lib/extensions/ensure-empty-root-div.js +0 -48
- package/lib/extensions/ensure-empty-root-div.js.map +0 -1
- package/lib/extensions/ensure-list-item-content-is-div.js +0 -64
- package/lib/extensions/ensure-list-item-content-is-div.js.map +0 -1
- package/lib/extensions/extended-list-item.js +0 -15
- package/lib/extensions/extended-list-item.js.map +0 -1
- package/lib/extensions/extended-table-cell.js +0 -22
- package/lib/extensions/extended-table-cell.js.map +0 -1
- package/lib/extensions/extended-table.js +0 -75
- package/lib/extensions/extended-table.js.map +0 -1
- package/lib/extensions/heading-paragraph.js +0 -61
- package/lib/extensions/heading-paragraph.js.map +0 -1
- package/lib/extensions/image-component.js +0 -351
- package/lib/extensions/image-component.js.map +0 -1
- package/lib/extensions/image.js +0 -134
- package/lib/extensions/image.js.map +0 -1
- package/lib/extensions/index.js +0 -46
- package/lib/extensions/index.js.map +0 -1
- package/lib/extensions/math.js +0 -469
- package/lib/extensions/math.js.map +0 -1
- package/lib/extensions/media.js +0 -243
- package/lib/extensions/media.js.map +0 -1
- package/lib/extensions/responseArea.js +0 -452
- package/lib/extensions/responseArea.js.map +0 -1
- package/lib/index.js +0 -37
- package/lib/index.js.map +0 -1
- package/lib/styles/editorContainerStyles.js +0 -137
- package/lib/styles/editorContainerStyles.js.map +0 -1
- package/lib/theme.js +0 -8
- package/lib/theme.js.map +0 -1
- package/lib/utils/helper.js +0 -73
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/size.js +0 -26
- package/lib/utils/size.js.map +0 -1
- package/lib/utils/toolbar.js +0 -19
- package/lib/utils/toolbar.js.map +0 -1
- package/src/__tests__/EditableHtml.test.jsx +0 -588
- package/src/__tests__/constants.test.js +0 -19
- package/src/__tests__/div-to-paragraph-conversion.test.jsx +0 -125
- package/src/__tests__/extensions.test.js +0 -208
- package/src/__tests__/index.test.jsx +0 -154
- package/src/__tests__/size-utils.test.js +0 -64
- package/src/__tests__/theme.test.js +0 -17
- package/src/components/CharacterPicker.jsx +0 -237
- package/src/components/EditableHtml.jsx +0 -458
- package/src/components/MenuBar.jsx +0 -561
- package/src/components/TiptapContainer.jsx +0 -235
- package/src/components/__tests__/AltDialog.test.jsx +0 -147
- package/src/components/__tests__/CharacterPicker.test.jsx +0 -270
- package/src/components/__tests__/CssIcon.test.jsx +0 -46
- package/src/components/__tests__/DragInTheBlank.test.jsx +0 -255
- package/src/components/__tests__/ExplicitConstructedResponse.test.jsx +0 -209
- package/src/components/__tests__/ImageToolbar.test.jsx +0 -128
- package/src/components/__tests__/InlineDropdown.test.jsx +0 -557
- package/src/components/__tests__/InsertImageHandler.test.js +0 -161
- package/src/components/__tests__/MediaDialog.test.jsx +0 -293
- package/src/components/__tests__/MediaToolbar.test.jsx +0 -74
- package/src/components/__tests__/MediaWrapper.test.jsx +0 -81
- package/src/components/__tests__/MenuBar.test.jsx +0 -250
- package/src/components/__tests__/RespArea.test.jsx +0 -122
- package/src/components/__tests__/TableIcons.test.jsx +0 -149
- package/src/components/__tests__/TextAlign.test.jsx +0 -167
- package/src/components/__tests__/TiptapContainer.test.jsx +0 -138
- package/src/components/__tests__/characterUtils.test.js +0 -166
- package/src/components/__tests__/choice.test.jsx +0 -171
- package/src/components/__tests__/custom-popper.test.jsx +0 -82
- package/src/components/__tests__/done-button.test.jsx +0 -54
- package/src/components/__tests__/toolbar-buttons.test.jsx +0 -234
- package/src/components/characters/characterUtils.js +0 -447
- package/src/components/characters/custom-popper.js +0 -38
- package/src/components/common/done-button.jsx +0 -27
- package/src/components/common/toolbar-buttons.jsx +0 -127
- package/src/components/icons/CssIcon.jsx +0 -15
- package/src/components/icons/RespArea.jsx +0 -71
- package/src/components/icons/TableIcons.jsx +0 -52
- package/src/components/icons/TextAlign.jsx +0 -114
- package/src/components/image/AltDialog.jsx +0 -82
- package/src/components/image/ImageToolbar.jsx +0 -99
- package/src/components/image/InsertImageHandler.js +0 -107
- package/src/components/media/MediaDialog.jsx +0 -596
- package/src/components/media/MediaToolbar.jsx +0 -49
- package/src/components/media/MediaWrapper.jsx +0 -39
- package/src/components/respArea/DragInTheBlank/DragInTheBlank.jsx +0 -76
- package/src/components/respArea/DragInTheBlank/__tests__/choice.test.jsx +0 -72
- package/src/components/respArea/DragInTheBlank/choice.jsx +0 -259
- package/src/components/respArea/ExplicitConstructedResponse.jsx +0 -136
- package/src/components/respArea/InlineDropdown.jsx +0 -240
- package/src/components/respArea/MathTemplated.jsx +0 -124
- package/src/components/respArea/ToolbarIcon.jsx +0 -66
- package/src/components/respArea/__tests__/MathTemplated.test.jsx +0 -210
- package/src/components/respArea/inlineDropdownUtils.js +0 -79
- package/src/constants.js +0 -5
- package/src/extensions/__tests__/css.test.js +0 -196
- package/src/extensions/__tests__/custom-toolbar-wrapper.test.jsx +0 -180
- package/src/extensions/__tests__/divNode.test.js +0 -87
- package/src/extensions/__tests__/ensure-empty-root-div.test.js +0 -57
- package/src/extensions/__tests__/ensure-list-item-content-is-div.test.js +0 -44
- package/src/extensions/__tests__/extended-list-item.test.js +0 -13
- package/src/extensions/__tests__/extended-table-cell.test.js +0 -22
- package/src/extensions/__tests__/extended-table.test.js +0 -183
- package/src/extensions/__tests__/image-component.test.jsx +0 -346
- package/src/extensions/__tests__/image.test.js +0 -237
- package/src/extensions/__tests__/math.test.js +0 -900
- package/src/extensions/__tests__/media-node-view.test.jsx +0 -298
- package/src/extensions/__tests__/media.test.js +0 -271
- package/src/extensions/__tests__/responseArea.test.js +0 -655
- package/src/extensions/css.js +0 -233
- package/src/extensions/custom-toolbar-wrapper.jsx +0 -78
- package/src/extensions/div-node.js +0 -86
- package/src/extensions/ensure-empty-root-div.js +0 -47
- package/src/extensions/ensure-list-item-content-is-div.js +0 -62
- package/src/extensions/extended-list-item.js +0 -10
- package/src/extensions/extended-table-cell.js +0 -19
- package/src/extensions/extended-table.js +0 -60
- package/src/extensions/heading-paragraph.js +0 -53
- package/src/extensions/image-component.jsx +0 -340
- package/src/extensions/image.js +0 -109
- package/src/extensions/index.js +0 -81
- package/src/extensions/math.js +0 -454
- package/src/extensions/media.js +0 -188
- package/src/extensions/responseArea.js +0 -407
- package/src/index.jsx +0 -5
- package/src/styles/editorContainerStyles.js +0 -145
- package/src/theme.js +0 -1
- package/src/utils/__tests__/helper.test.js +0 -126
- package/src/utils/__tests__/toolbar.test.js +0 -43
- package/src/utils/helper.js +0 -69
- package/src/utils/size.js +0 -32
- package/src/utils/toolbar.js +0 -15
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { valueToSize as e } from "../utils/size.js";
|
|
2
|
+
import t from "./MenuBar.js";
|
|
3
|
+
import { useEffect as n, useMemo as r, useRef as i, useState as a } from "react";
|
|
4
|
+
import { styled as o } from "@mui/material/styles";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import { color as l } from "@pie-lib/render-ui";
|
|
7
|
+
//#region src/components/TiptapContainer.tsx
|
|
8
|
+
var u = o("div", { shouldForwardProp: (e) => !["noBorder", "error"].includes(e) })(({ theme: e, noBorder: t, error: n }) => ({
|
|
9
|
+
position: "relative",
|
|
10
|
+
padding: "0px",
|
|
11
|
+
border: t ? "none" : "1px solid #ccc",
|
|
12
|
+
borderRadius: "4px",
|
|
13
|
+
cursor: "text",
|
|
14
|
+
"& [data-slate-editor=\"true\"]": {
|
|
15
|
+
wordBreak: "break-word",
|
|
16
|
+
overflow: "visible",
|
|
17
|
+
maxHeight: "500px",
|
|
18
|
+
padding: "5px"
|
|
19
|
+
},
|
|
20
|
+
"&:first-child": { marginTop: 0 },
|
|
21
|
+
"& ul, & ol": {
|
|
22
|
+
padding: "0 1rem",
|
|
23
|
+
margin: "1.25rem 1rem 1.25rem 0.4rem"
|
|
24
|
+
},
|
|
25
|
+
"& ul li p, & ol li p": {
|
|
26
|
+
marginTop: "0.25em",
|
|
27
|
+
marginBottom: "0.25em"
|
|
28
|
+
},
|
|
29
|
+
"& h1, & h2, & h3, & h4, & h5, & h6": {
|
|
30
|
+
lineHeight: 1.1,
|
|
31
|
+
marginTop: "2.5rem",
|
|
32
|
+
textWrap: "pretty"
|
|
33
|
+
},
|
|
34
|
+
"& h1, & h2": {
|
|
35
|
+
marginTop: "3.5rem",
|
|
36
|
+
marginBottom: "1.5rem"
|
|
37
|
+
},
|
|
38
|
+
"& h1": { fontSize: "1.4rem" },
|
|
39
|
+
"& h2": { fontSize: "1.2rem" },
|
|
40
|
+
"& h3": { fontSize: "1.1rem" },
|
|
41
|
+
"& h4, & h5, & h6": { fontSize: "1rem" },
|
|
42
|
+
"& code": {
|
|
43
|
+
backgroundColor: "var(--purple-light)",
|
|
44
|
+
borderRadius: "0.4rem",
|
|
45
|
+
color: "var(--black)",
|
|
46
|
+
fontSize: "0.85rem",
|
|
47
|
+
padding: "0.25em 0.3em"
|
|
48
|
+
},
|
|
49
|
+
"& pre": {
|
|
50
|
+
background: "var(--black)",
|
|
51
|
+
borderRadius: "0.5rem",
|
|
52
|
+
color: "var(--white)",
|
|
53
|
+
fontFamily: "'JetBrainsMono', monospace",
|
|
54
|
+
margin: "1.5rem 0",
|
|
55
|
+
padding: "0.75rem 1rem",
|
|
56
|
+
"& code": {
|
|
57
|
+
background: "none",
|
|
58
|
+
color: "inherit",
|
|
59
|
+
fontSize: "0.8rem",
|
|
60
|
+
padding: 0
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"& blockquote": {
|
|
64
|
+
background: "#f9f9f9",
|
|
65
|
+
borderLeft: "5px solid #ccc",
|
|
66
|
+
margin: "1.5em 10px",
|
|
67
|
+
padding: ".5em 10px"
|
|
68
|
+
},
|
|
69
|
+
"& p": { margin: "0" },
|
|
70
|
+
"& table": {
|
|
71
|
+
tableLayout: "fixed",
|
|
72
|
+
width: "100%",
|
|
73
|
+
borderCollapse: "collapse",
|
|
74
|
+
color: l.text(),
|
|
75
|
+
backgroundColor: l.background()
|
|
76
|
+
},
|
|
77
|
+
"& table:not([border=\"1\"]) tr": { borderTop: `1px solid ${l.tableGridLight()}` },
|
|
78
|
+
"& td, th": {
|
|
79
|
+
padding: ".6em 1em",
|
|
80
|
+
textAlign: "center"
|
|
81
|
+
},
|
|
82
|
+
"& table:not([border=\"1\"]) td, th": { border: `1px solid ${l.tableGridLight()}` },
|
|
83
|
+
...n && { border: `2px solid ${e.palette.error.main} !important` }
|
|
84
|
+
})), d = o("div", { shouldForwardProp: (e) => !["disableScrollbar", "highlightShape"].includes(e) })(({ theme: e, disableScrollbar: t, highlightShape: n }) => ({
|
|
85
|
+
position: "relative",
|
|
86
|
+
padding: "0px",
|
|
87
|
+
overflowY: "auto",
|
|
88
|
+
color: l.text(),
|
|
89
|
+
backgroundColor: n ? e.palette.action.selected : l.background(),
|
|
90
|
+
...t && {
|
|
91
|
+
"&::-webkit-scrollbar": { display: "none" },
|
|
92
|
+
scrollbarWidth: "none",
|
|
93
|
+
"-ms-overflow-style": "none"
|
|
94
|
+
}
|
|
95
|
+
})), f = o("div", { shouldForwardProp: (e) => e !== "noPadding" })(({ noPadding: e }) => ({ padding: e ? 0 : "10px 8px" }));
|
|
96
|
+
function p(o) {
|
|
97
|
+
let [l, p] = a(null), m = i(null), { editor: h, disabled: g, children: _, disableScrollbar: v, activePlugins: y, toolbarOpts: b, responseAreaProps: x, autoFocus: S, minWidth: C, width: w, maxWidth: T, minHeight: E, height: D, maxHeight: O, highlightShape: k, ref: A } = o;
|
|
98
|
+
n(() => {
|
|
99
|
+
h && m.current && (h._tiptapContainerEl = m.current);
|
|
100
|
+
}, [h, m.current]), n(() => {
|
|
101
|
+
h && S && Promise.resolve().then(() => {
|
|
102
|
+
h.commands.focus("end");
|
|
103
|
+
});
|
|
104
|
+
}, [h, S]), n(() => {
|
|
105
|
+
if (o.adjustWidthForLimit) {
|
|
106
|
+
let e = document.createElement("p");
|
|
107
|
+
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = "W".repeat(o.charactersLimit);
|
|
108
|
+
let t = window.getComputedStyle(m.current);
|
|
109
|
+
[
|
|
110
|
+
"fontFamily",
|
|
111
|
+
"fontSize",
|
|
112
|
+
"fontWeight",
|
|
113
|
+
"fontStyle",
|
|
114
|
+
"letterSpacing",
|
|
115
|
+
"wordSpacing",
|
|
116
|
+
"textTransform",
|
|
117
|
+
"lineHeight"
|
|
118
|
+
].forEach((n) => {
|
|
119
|
+
e.style[n] = t[n];
|
|
120
|
+
}), document.body.appendChild(e), p(`${e.offsetWidth + 27}px`), e.remove();
|
|
121
|
+
}
|
|
122
|
+
}, [o.adjustWidthForLimit, o.charactersLimit]);
|
|
123
|
+
let j = r(() => ({
|
|
124
|
+
width: e(l || w),
|
|
125
|
+
minWidth: e(C),
|
|
126
|
+
maxWidth: e(T),
|
|
127
|
+
height: e(D),
|
|
128
|
+
minHeight: e(E),
|
|
129
|
+
maxHeight: e(O)
|
|
130
|
+
}), [
|
|
131
|
+
l,
|
|
132
|
+
C,
|
|
133
|
+
w,
|
|
134
|
+
T,
|
|
135
|
+
E,
|
|
136
|
+
D,
|
|
137
|
+
O
|
|
138
|
+
]);
|
|
139
|
+
return /* @__PURE__ */ c(u, {
|
|
140
|
+
noBorder: b && b.noBorder,
|
|
141
|
+
error: b && b.error,
|
|
142
|
+
className: o.className,
|
|
143
|
+
style: {
|
|
144
|
+
width: j.width,
|
|
145
|
+
minWidth: j.minWidth,
|
|
146
|
+
maxWidth: j.maxWidth
|
|
147
|
+
},
|
|
148
|
+
ref: m,
|
|
149
|
+
children: [/* @__PURE__ */ s(d, {
|
|
150
|
+
disableScrollbar: v,
|
|
151
|
+
highlightShape: k,
|
|
152
|
+
children: /* @__PURE__ */ s(f, {
|
|
153
|
+
noPadding: b && b.noPadding,
|
|
154
|
+
children: _
|
|
155
|
+
})
|
|
156
|
+
}), h && /* @__PURE__ */ s(t, {
|
|
157
|
+
editor: h,
|
|
158
|
+
responseAreaProps: x,
|
|
159
|
+
toolbarOpts: b,
|
|
160
|
+
activePlugins: y,
|
|
161
|
+
onChange: o.onChange,
|
|
162
|
+
autoWidthToolbar: o.autoWidthToolbar
|
|
163
|
+
})]
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
export { p as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/editable-html-tip-tap/src/components/characters/characterUtils.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const spanishConfig: {
|
|
10
|
+
characters: string[][];
|
|
11
|
+
};
|
|
12
|
+
export declare const specialConfig: {
|
|
13
|
+
hasPreview: boolean;
|
|
14
|
+
characters: ({
|
|
15
|
+
unicode: string;
|
|
16
|
+
description: string;
|
|
17
|
+
write: string;
|
|
18
|
+
label: string;
|
|
19
|
+
extraProps?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
unicode: string;
|
|
22
|
+
description: string;
|
|
23
|
+
write: string;
|
|
24
|
+
label: string;
|
|
25
|
+
extraProps: {
|
|
26
|
+
style: {
|
|
27
|
+
gridRow: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
})[][];
|
|
31
|
+
};
|
|
32
|
+
export declare const characterIcons: {
|
|
33
|
+
spanish: string;
|
|
34
|
+
special: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
//#region src/components/characters/characterUtils.ts
|
|
2
|
+
var e = { characters: [
|
|
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
|
+
] }, t = {
|
|
32
|
+
hasPreview: !0,
|
|
33
|
+
characters: [
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
unicode: "U+00A2",
|
|
37
|
+
description: "CENT SIGN",
|
|
38
|
+
write: "¢",
|
|
39
|
+
label: "¢"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
unicode: "U+00BF",
|
|
43
|
+
description: "INVERTED QUESTION MARK",
|
|
44
|
+
write: "¿",
|
|
45
|
+
label: "¿"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
unicode: "U+00B4",
|
|
49
|
+
description: "ACUTE ACCENT",
|
|
50
|
+
write: "´",
|
|
51
|
+
label: "´",
|
|
52
|
+
extraProps: { style: { gridRow: "span 2" } }
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
unicode: "U+00E1",
|
|
56
|
+
description: "LATIN SMALL LETTER A WITH ACUTE",
|
|
57
|
+
write: "á",
|
|
58
|
+
label: "á"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
unicode: "U+00E9",
|
|
62
|
+
description: "LATIN SMALL LETTER E WITH ACUTE",
|
|
63
|
+
write: "é",
|
|
64
|
+
label: "é"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
unicode: "U+00ED",
|
|
68
|
+
description: "LATIN SMALL LETTER I WITH ACUTE",
|
|
69
|
+
write: "í",
|
|
70
|
+
label: "í"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
unicode: "U+00F3",
|
|
74
|
+
description: "LATIN SMALL LETTER O WITH ACUTE",
|
|
75
|
+
write: "ó",
|
|
76
|
+
label: "ó"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
unicode: "U+00FA",
|
|
80
|
+
description: "LATIN SMALL LETTER U WITH ACUTE",
|
|
81
|
+
write: "ú",
|
|
82
|
+
label: "ú"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
unicode: "U+00F1",
|
|
86
|
+
description: "LATIN SMALL LETTER N WITH TILDE",
|
|
87
|
+
write: "ñ",
|
|
88
|
+
label: "ñ"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
{
|
|
93
|
+
unicode: "U+20AC",
|
|
94
|
+
description: "EURO SIGN",
|
|
95
|
+
write: "€",
|
|
96
|
+
label: "€"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
unicode: "U+00A1",
|
|
100
|
+
description: "INVERTED EXCLAMATION MARK",
|
|
101
|
+
write: "¡",
|
|
102
|
+
label: "¡"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
unicode: "U+00C1",
|
|
106
|
+
description: "LATIN CAPITAL LETTER A WITH ACUTE",
|
|
107
|
+
write: "Á",
|
|
108
|
+
label: "Á"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
unicode: "U+00C9",
|
|
112
|
+
description: "LATIN CAPITAL LETTER E WITH ACUTE",
|
|
113
|
+
write: "É",
|
|
114
|
+
label: "É"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
unicode: "U+00CD",
|
|
118
|
+
description: "LATIN CAPITAL LETTER I WITH ACUTE",
|
|
119
|
+
write: "Í",
|
|
120
|
+
label: "Í"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
unicode: "U+00D3",
|
|
124
|
+
description: "LATIN CAPITAL LETTER O WITH ACUTE",
|
|
125
|
+
write: "Ó",
|
|
126
|
+
label: "Ó"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
unicode: "U+00DA",
|
|
130
|
+
description: "LATIN CAPITAL LETTER U WITH ACUTE",
|
|
131
|
+
write: "Ú",
|
|
132
|
+
label: "Ú"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
unicode: "U+00D1",
|
|
136
|
+
description: "LATIN CAPITAL LETTER N WITH TILDE",
|
|
137
|
+
write: "Ñ",
|
|
138
|
+
label: "Ñ"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
{
|
|
143
|
+
unicode: "U+00A3",
|
|
144
|
+
description: "POUND SIGN",
|
|
145
|
+
write: "£",
|
|
146
|
+
label: "£"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
unicode: "U+00AB",
|
|
150
|
+
description: "LEFT-POINTING DOUBLE ANGLE QUOTATION MARK",
|
|
151
|
+
write: "«",
|
|
152
|
+
label: "«"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
unicode: "U+005E",
|
|
156
|
+
description: "CIRCUMFLEX ACCENT",
|
|
157
|
+
write: "^",
|
|
158
|
+
label: "^",
|
|
159
|
+
extraProps: { style: { gridRow: "span 2" } }
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
unicode: "U+00E2",
|
|
163
|
+
description: "LATIN SMALL LETTER A WITH CIRCUMFLEX",
|
|
164
|
+
write: "â",
|
|
165
|
+
label: "â"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
unicode: "U+00EA",
|
|
169
|
+
description: "LATIN SMALL LETTER E WITH CIRCUMFLEX",
|
|
170
|
+
write: "ê",
|
|
171
|
+
label: "ê"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
unicode: "U+00EE",
|
|
175
|
+
description: "LATIN SMALL LETTER I WITH CIRCUMFLEX",
|
|
176
|
+
write: "î",
|
|
177
|
+
label: "î"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
unicode: "U+00F4",
|
|
181
|
+
description: "LATIN SMALL LETTER O WITH CIRCUMFLEX",
|
|
182
|
+
write: "ô",
|
|
183
|
+
label: "ô"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
unicode: "U+00FB",
|
|
187
|
+
description: "LATIN SMALL LETTER U WITH CIRCUMFLEX",
|
|
188
|
+
write: "û",
|
|
189
|
+
label: "û"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
unicode: "U+00E7",
|
|
193
|
+
description: "LATIN SMALL LETTER C WITH CEDILLA",
|
|
194
|
+
write: "ç",
|
|
195
|
+
label: "ç"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
{
|
|
200
|
+
unicode: "U+00A5",
|
|
201
|
+
description: "YEN SIGN",
|
|
202
|
+
write: "¥",
|
|
203
|
+
label: "¥"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
unicode: "U+00BB",
|
|
207
|
+
description: "RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK",
|
|
208
|
+
write: "»",
|
|
209
|
+
label: "»"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
unicode: "U+00C2",
|
|
213
|
+
description: "LATIN CAPITAL LETTER A WITH CIRCUMFLEX",
|
|
214
|
+
write: "Â",
|
|
215
|
+
label: "Â"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
unicode: "U+00CA",
|
|
219
|
+
description: "LATIN CAPITAL LETTER E WITH CIRCUMFLEX",
|
|
220
|
+
write: "Ê",
|
|
221
|
+
label: "Ê"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
unicode: "U+00CE",
|
|
225
|
+
description: "LATIN CAPITAL LETTER I WITH CIRCUMFLEX",
|
|
226
|
+
write: "Î",
|
|
227
|
+
label: "Î"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
unicode: "U+00D4",
|
|
231
|
+
description: "LATIN CAPITAL LETTER O WITH CIRCUMFLEX",
|
|
232
|
+
write: "Ô",
|
|
233
|
+
label: "Ô"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
unicode: "U+00DB",
|
|
237
|
+
description: "LATIN CAPITAL LETTER U WITH CIRCUMFLEX",
|
|
238
|
+
write: "Û",
|
|
239
|
+
label: "Û"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
unicode: "U+00C7",
|
|
243
|
+
description: "LATIN CAPITAL LETTER C WITH CEDILLA",
|
|
244
|
+
write: "Ç",
|
|
245
|
+
label: "Ç"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
[
|
|
249
|
+
{
|
|
250
|
+
unicode: "U+200A",
|
|
251
|
+
description: "HAIR SPACE",
|
|
252
|
+
write: String.fromCodePoint("0x200A"),
|
|
253
|
+
label: " "
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
unicode: "U+00A7",
|
|
257
|
+
description: "SECTION SIGN",
|
|
258
|
+
write: "§",
|
|
259
|
+
label: "§"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
unicode: "U+00A8",
|
|
263
|
+
description: "DIAERESIS",
|
|
264
|
+
write: "¨",
|
|
265
|
+
label: "¨",
|
|
266
|
+
extraProps: { style: { gridRow: "span 2" } }
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
unicode: "U+00E4",
|
|
270
|
+
description: "LATIN SMALL LETTER A WITH DIAERESIS",
|
|
271
|
+
write: "ä",
|
|
272
|
+
label: "ä"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
unicode: "U+00EB",
|
|
276
|
+
description: "LATIN SMALL LETTER E WITH DIAERESIS",
|
|
277
|
+
write: "ë",
|
|
278
|
+
label: "ë"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
unicode: "U+00EF",
|
|
282
|
+
description: "LATIN SMALL LETTER I WITH DIAERESIS",
|
|
283
|
+
write: "ï",
|
|
284
|
+
label: "ï"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
unicode: "U+00F6",
|
|
288
|
+
description: "LATIN SMALL LETTER O WITH DIAERESIS",
|
|
289
|
+
write: "ö",
|
|
290
|
+
label: "ö"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
unicode: "U+00FC",
|
|
294
|
+
description: "LATIN SMALL LETTER U WITH DIAERESIS",
|
|
295
|
+
write: "ü",
|
|
296
|
+
label: "ü"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
unicode: "U+00DF",
|
|
300
|
+
description: "LATIN SMALL LETTER SHARP S",
|
|
301
|
+
write: "ß",
|
|
302
|
+
label: "ß"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
[
|
|
306
|
+
{
|
|
307
|
+
unicode: "U+2009",
|
|
308
|
+
description: "THIN SPACE",
|
|
309
|
+
write: String.fromCodePoint("0x2009"),
|
|
310
|
+
label: " "
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
unicode: "U+2026",
|
|
314
|
+
description: "HORIZONTAL ELLIPSIS",
|
|
315
|
+
write: "…",
|
|
316
|
+
label: "…"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
unicode: "U+00C4",
|
|
320
|
+
description: "LATIN CAPITAL LETTER A WITH DIAERESIS",
|
|
321
|
+
write: "Ä",
|
|
322
|
+
label: "Ä"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
unicode: "U+00CB",
|
|
326
|
+
description: "LATIN CAPITAL LETTER E WITH DIAERESIS",
|
|
327
|
+
write: "Ë",
|
|
328
|
+
label: "Ë"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
unicode: "U+00CF",
|
|
332
|
+
description: "LATIN CAPITAL LETTER I WITH DIAERESIS",
|
|
333
|
+
write: "Ï",
|
|
334
|
+
label: "Ï"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
unicode: "U+00D6",
|
|
338
|
+
description: "LATIN CAPITAL LETTER O WITH DIAERESIS",
|
|
339
|
+
write: "Ö",
|
|
340
|
+
label: "Ö"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
unicode: "U+00DC",
|
|
344
|
+
description: "LATIN CAPITAL LETTER U WITH DIAERESIS",
|
|
345
|
+
write: "Ü",
|
|
346
|
+
label: "Ü"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
unicode: "U+2212",
|
|
350
|
+
description: "MINUS SIGN",
|
|
351
|
+
write: "−",
|
|
352
|
+
label: "−"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
[
|
|
356
|
+
{
|
|
357
|
+
unicode: "U+00A0",
|
|
358
|
+
description: "NO-BREAK SPACE",
|
|
359
|
+
write: String.fromCodePoint("0x00A0"),
|
|
360
|
+
label: " "
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
unicode: "U+2022",
|
|
364
|
+
description: "BULLET",
|
|
365
|
+
write: "•",
|
|
366
|
+
label: "•"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
unicode: "U+0060",
|
|
370
|
+
description: "GRAVE ACCENT",
|
|
371
|
+
write: "`",
|
|
372
|
+
label: "`",
|
|
373
|
+
extraProps: { style: { gridRow: "span 2" } }
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
unicode: "U+00E0",
|
|
377
|
+
description: "LATIN SMALL LETTER A WITH GRAVE",
|
|
378
|
+
write: "à",
|
|
379
|
+
label: "à"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
unicode: "U+00E8",
|
|
383
|
+
description: "LATIN SMALL LETTER E WITH GRAVE",
|
|
384
|
+
write: "è",
|
|
385
|
+
label: "è"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
unicode: "U+00EC",
|
|
389
|
+
description: "LATIN SMALL LETTER I WITH GRAVE",
|
|
390
|
+
write: "ì",
|
|
391
|
+
label: "ì"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
unicode: "U+00F2",
|
|
395
|
+
description: "LATIN SMALL LETTER O WITH GRAVE",
|
|
396
|
+
write: "ò",
|
|
397
|
+
label: "ò"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
unicode: "U+00F9",
|
|
401
|
+
description: "LATIN SMALL LETTER U WITH GRAVE",
|
|
402
|
+
write: "ù",
|
|
403
|
+
label: "ù"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
unicode: "U+2013",
|
|
407
|
+
description: "EN DASH",
|
|
408
|
+
write: "–",
|
|
409
|
+
label: "–"
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
[
|
|
413
|
+
{
|
|
414
|
+
unicode: "U+2003",
|
|
415
|
+
description: "EM SPACE",
|
|
416
|
+
write: String.fromCodePoint("0x2003"),
|
|
417
|
+
label: " "
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
unicode: "U+25E6",
|
|
421
|
+
description: "WHITE BULLET",
|
|
422
|
+
write: "◦",
|
|
423
|
+
label: "◦"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
unicode: "U+00C0",
|
|
427
|
+
description: "LATIN CAPITAL LETTER A WITH GRAVE",
|
|
428
|
+
write: "À",
|
|
429
|
+
label: "À"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
unicode: "U+00C8",
|
|
433
|
+
description: "LATIN CAPITAL LETTER E WITH GRAVE",
|
|
434
|
+
write: "È",
|
|
435
|
+
label: "È"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
unicode: "U+00CC",
|
|
439
|
+
description: "LATIN CAPITAL LETTER I WITH GRAVE",
|
|
440
|
+
write: "Ì",
|
|
441
|
+
label: "Ì"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
unicode: "U+00D2",
|
|
445
|
+
description: "LATIN CAPITAL LETTER O WITH GRAVE",
|
|
446
|
+
write: "Ò",
|
|
447
|
+
label: "Ò"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
unicode: "U+00D9",
|
|
451
|
+
description: "LATIN CAPITAL LETTER U WITH GRAVE",
|
|
452
|
+
write: "Ù",
|
|
453
|
+
label: "Ù"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
unicode: "U+2014",
|
|
457
|
+
description: "EM DASH",
|
|
458
|
+
write: "—",
|
|
459
|
+
label: "—"
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
]
|
|
463
|
+
};
|
|
464
|
+
//#endregion
|
|
465
|
+
export { e as spanishConfig, t as specialConfig };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-lib/packages/editable-html-tip-tap/src/components/characters/custom-popper.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
declare const CustomPopper: ({ children, ...props }: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
children: any;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export default CustomPopper;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { styled as e } from "@mui/material/styles";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import n from "@mui/material/Typography";
|
|
5
|
+
import r from "@mui/material/Popper";
|
|
6
|
+
//#region src/components/characters/custom-popper.tsx
|
|
7
|
+
var i = e(r)({
|
|
8
|
+
background: "#fff",
|
|
9
|
+
padding: "10px",
|
|
10
|
+
pointerEvents: "none",
|
|
11
|
+
zIndex: 99999
|
|
12
|
+
}), a = e(n)({
|
|
13
|
+
fontSize: 50,
|
|
14
|
+
textAlign: "center"
|
|
15
|
+
}), o = ({ children: e, ...n }) => /* @__PURE__ */ t(i, {
|
|
16
|
+
id: "mouse-over-popover",
|
|
17
|
+
open: !0,
|
|
18
|
+
anchorOrigin: {
|
|
19
|
+
vertical: "bottom",
|
|
20
|
+
horizontal: "left"
|
|
21
|
+
},
|
|
22
|
+
transformOrigin: {
|
|
23
|
+
vertical: "top",
|
|
24
|
+
horizontal: "left"
|
|
25
|
+
},
|
|
26
|
+
disableRestoreFocus: !0,
|
|
27
|
+
disableAutoFocus: !0,
|
|
28
|
+
...n,
|
|
29
|
+
children: /* @__PURE__ */ t(a, { children: e })
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { o as default };
|