@pie-lib/editable-html-tip-tap 2.1.2-next.31 → 2.1.2-next.34
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/CHANGELOG.json +32 -0
- package/CHANGELOG.md +2532 -0
- package/LICENSE.md +5 -0
- package/lib/components/CharacterPicker.js +201 -0
- package/lib/components/CharacterPicker.js.map +1 -0
- package/lib/components/EditableHtml.js +376 -0
- package/lib/components/EditableHtml.js.map +1 -0
- package/lib/components/MenuBar.js +696 -0
- package/lib/components/MenuBar.js.map +1 -0
- package/lib/components/TiptapContainer.js +234 -0
- package/lib/components/TiptapContainer.js.map +1 -0
- package/lib/components/characters/characterUtils.js +378 -0
- package/lib/components/characters/characterUtils.js.map +1 -0
- package/lib/components/characters/custom-popper.js +44 -0
- package/lib/components/characters/custom-popper.js.map +1 -0
- package/lib/components/common/done-button.js +34 -0
- package/lib/components/common/done-button.js.map +1 -0
- package/lib/components/common/toolbar-buttons.js +144 -0
- package/lib/components/common/toolbar-buttons.js.map +1 -0
- package/lib/components/icons/CssIcon.js +25 -0
- package/lib/components/icons/CssIcon.js.map +1 -0
- package/lib/components/icons/RespArea.js +72 -0
- package/lib/components/icons/RespArea.js.map +1 -0
- package/lib/components/icons/TableIcons.js +53 -0
- package/lib/components/icons/TableIcons.js.map +1 -0
- package/lib/components/icons/TextAlign.js +157 -0
- package/lib/components/icons/TextAlign.js.map +1 -0
- package/lib/components/image/AltDialog.js +98 -0
- package/lib/components/image/AltDialog.js.map +1 -0
- package/lib/components/image/ImageToolbar.js +137 -0
- package/lib/components/image/ImageToolbar.js.map +1 -0
- package/lib/components/image/InsertImageHandler.js +135 -0
- package/lib/components/image/InsertImageHandler.js.map +1 -0
- package/lib/components/media/MediaDialog.js +594 -0
- package/lib/components/media/MediaDialog.js.map +1 -0
- package/lib/components/media/MediaToolbar.js +74 -0
- package/lib/components/media/MediaToolbar.js.map +1 -0
- package/lib/components/media/MediaWrapper.js +67 -0
- package/lib/components/media/MediaWrapper.js.map +1 -0
- package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js +84 -0
- package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js.map +1 -0
- package/lib/components/respArea/DragInTheBlank/choice.js +250 -0
- package/lib/components/respArea/DragInTheBlank/choice.js.map +1 -0
- package/lib/components/respArea/ExplicitConstructedResponse.js +136 -0
- package/lib/components/respArea/ExplicitConstructedResponse.js.map +1 -0
- package/lib/components/respArea/InlineDropdown.js +209 -0
- package/lib/components/respArea/InlineDropdown.js.map +1 -0
- package/lib/components/respArea/MathTemplated.js +130 -0
- package/lib/components/respArea/MathTemplated.js.map +1 -0
- package/lib/components/respArea/ToolbarIcon.js +81 -0
- package/lib/components/respArea/ToolbarIcon.js.map +1 -0
- package/lib/components/respArea/inlineDropdownUtils.js +67 -0
- package/lib/components/respArea/inlineDropdownUtils.js.map +1 -0
- package/lib/constants.js +11 -0
- package/lib/constants.js.map +1 -0
- package/lib/extensions/css.js +217 -0
- package/lib/extensions/css.js.map +1 -0
- package/lib/extensions/custom-toolbar-wrapper.js +92 -0
- package/lib/extensions/custom-toolbar-wrapper.js.map +1 -0
- package/lib/extensions/div-node.js +83 -0
- package/lib/extensions/div-node.js.map +1 -0
- package/lib/extensions/ensure-empty-root-div.js +48 -0
- package/lib/extensions/ensure-empty-root-div.js.map +1 -0
- package/lib/extensions/ensure-list-item-content-is-div.js +64 -0
- package/lib/extensions/ensure-list-item-content-is-div.js.map +1 -0
- package/lib/extensions/extended-list-item.js +15 -0
- package/lib/extensions/extended-list-item.js.map +1 -0
- package/lib/extensions/extended-table-cell.js +22 -0
- package/lib/extensions/extended-table-cell.js.map +1 -0
- package/lib/extensions/extended-table.js +75 -0
- package/lib/extensions/extended-table.js.map +1 -0
- package/lib/extensions/heading-paragraph.js +61 -0
- package/lib/extensions/heading-paragraph.js.map +1 -0
- package/lib/extensions/image-component.js +348 -0
- package/lib/extensions/image-component.js.map +1 -0
- package/lib/extensions/image.js +134 -0
- package/lib/extensions/image.js.map +1 -0
- package/lib/extensions/index.js +46 -0
- package/lib/extensions/index.js.map +1 -0
- package/lib/extensions/math.js +342 -0
- package/lib/extensions/math.js.map +1 -0
- package/lib/extensions/media.js +243 -0
- package/lib/extensions/media.js.map +1 -0
- package/lib/extensions/responseArea.js +446 -0
- package/lib/extensions/responseArea.js.map +1 -0
- package/lib/index.js +37 -0
- package/lib/index.js.map +1 -0
- package/lib/styles/editorContainerStyles.js +137 -0
- package/lib/styles/editorContainerStyles.js.map +1 -0
- package/lib/theme.js +8 -0
- package/lib/theme.js.map +1 -0
- package/lib/utils/helper.js +73 -0
- package/lib/utils/helper.js.map +1 -0
- package/lib/utils/size.js +26 -0
- package/lib/utils/size.js.map +1 -0
- package/package.json +24 -40
- package/src/__tests__/EditableHtml.test.jsx +554 -0
- package/src/__tests__/constants.test.js +19 -0
- package/src/__tests__/div-to-paragraph-conversion.test.jsx +125 -0
- package/src/__tests__/extensions.test.js +208 -0
- package/src/__tests__/index.test.jsx +154 -0
- package/src/__tests__/size-utils.test.js +64 -0
- package/src/__tests__/theme.test.js +17 -0
- package/src/components/CharacterPicker.jsx +207 -0
- package/src/components/EditableHtml.jsx +440 -0
- package/src/components/MenuBar.jsx +554 -0
- package/src/components/TiptapContainer.jsx +219 -0
- package/src/components/__tests__/AltDialog.test.jsx +147 -0
- package/src/components/__tests__/CharacterPicker.test.jsx +261 -0
- package/src/components/__tests__/CssIcon.test.jsx +46 -0
- package/src/components/__tests__/DragInTheBlank.test.jsx +255 -0
- package/src/components/__tests__/ExplicitConstructedResponse.test.jsx +204 -0
- package/src/components/__tests__/ImageToolbar.test.jsx +128 -0
- package/src/components/__tests__/InlineDropdown.test.jsx +388 -0
- package/src/components/__tests__/InsertImageHandler.test.js +161 -0
- package/src/components/__tests__/MediaDialog.test.jsx +293 -0
- package/src/components/__tests__/MediaToolbar.test.jsx +74 -0
- package/src/components/__tests__/MediaWrapper.test.jsx +81 -0
- package/src/components/__tests__/MenuBar.test.jsx +250 -0
- package/src/components/__tests__/RespArea.test.jsx +122 -0
- package/src/components/__tests__/TableIcons.test.jsx +149 -0
- package/src/components/__tests__/TextAlign.test.jsx +167 -0
- package/src/components/__tests__/TiptapContainer.test.jsx +138 -0
- package/src/components/__tests__/characterUtils.test.js +166 -0
- package/src/components/__tests__/choice.test.jsx +171 -0
- package/src/components/__tests__/custom-popper.test.jsx +82 -0
- package/src/components/__tests__/done-button.test.jsx +54 -0
- package/src/components/__tests__/toolbar-buttons.test.jsx +234 -0
- package/src/components/characters/characterUtils.js +447 -0
- package/src/components/characters/custom-popper.js +38 -0
- package/src/components/common/done-button.jsx +27 -0
- package/src/components/common/toolbar-buttons.jsx +122 -0
- package/src/components/icons/CssIcon.jsx +15 -0
- package/src/components/icons/RespArea.jsx +71 -0
- package/src/components/icons/TableIcons.jsx +52 -0
- package/src/components/icons/TextAlign.jsx +114 -0
- package/src/components/image/AltDialog.jsx +82 -0
- package/src/components/image/ImageToolbar.jsx +99 -0
- package/src/components/image/InsertImageHandler.js +107 -0
- package/src/components/media/MediaDialog.jsx +596 -0
- package/src/components/media/MediaToolbar.jsx +49 -0
- package/src/components/media/MediaWrapper.jsx +39 -0
- package/src/components/respArea/DragInTheBlank/DragInTheBlank.jsx +76 -0
- package/src/components/respArea/DragInTheBlank/choice.jsx +256 -0
- package/src/components/respArea/ExplicitConstructedResponse.jsx +135 -0
- package/src/components/respArea/InlineDropdown.jsx +220 -0
- package/src/components/respArea/MathTemplated.jsx +124 -0
- package/src/components/respArea/ToolbarIcon.jsx +66 -0
- package/src/components/respArea/__tests__/MathTemplated.test.jsx +210 -0
- package/src/components/respArea/inlineDropdownUtils.js +79 -0
- package/src/constants.js +5 -0
- package/src/extensions/__tests__/css.test.js +196 -0
- package/src/extensions/__tests__/custom-toolbar-wrapper.test.jsx +180 -0
- package/src/extensions/__tests__/divNode.test.js +87 -0
- package/src/extensions/__tests__/ensure-empty-root-div.test.js +57 -0
- package/src/extensions/__tests__/ensure-list-item-content-is-div.test.js +44 -0
- package/src/extensions/__tests__/extended-list-item.test.js +13 -0
- package/src/extensions/__tests__/extended-table-cell.test.js +22 -0
- package/src/extensions/__tests__/extended-table.test.js +183 -0
- package/src/extensions/__tests__/image-component.test.jsx +345 -0
- package/src/extensions/__tests__/image.test.js +237 -0
- package/src/extensions/__tests__/math.test.js +603 -0
- package/src/extensions/__tests__/media-node-view.test.jsx +298 -0
- package/src/extensions/__tests__/media.test.js +271 -0
- package/src/extensions/__tests__/responseArea.test.js +601 -0
- package/src/extensions/css.js +220 -0
- package/src/extensions/custom-toolbar-wrapper.jsx +78 -0
- package/src/extensions/div-node.js +86 -0
- package/src/extensions/ensure-empty-root-div.js +47 -0
- package/src/extensions/ensure-list-item-content-is-div.js +62 -0
- package/src/extensions/extended-list-item.js +10 -0
- package/src/extensions/extended-table-cell.js +19 -0
- package/src/extensions/extended-table.js +60 -0
- package/src/extensions/heading-paragraph.js +53 -0
- package/src/extensions/image-component.jsx +338 -0
- package/src/extensions/image.js +109 -0
- package/src/extensions/index.js +81 -0
- package/src/extensions/math.js +326 -0
- package/src/extensions/media.js +188 -0
- package/src/extensions/responseArea.js +401 -0
- package/src/index.jsx +5 -0
- package/src/styles/editorContainerStyles.js +145 -0
- package/src/theme.js +1 -0
- package/src/utils/__tests__/helper.test.js +126 -0
- package/src/utils/helper.js +69 -0
- package/src/utils/size.js +32 -0
- package/dist/components/CharacterPicker.d.ts +0 -31
- package/dist/components/CharacterPicker.js +0 -131
- package/dist/components/EditableHtml.d.ts +0 -11
- package/dist/components/EditableHtml.js +0 -291
- package/dist/components/MenuBar.d.ts +0 -11
- package/dist/components/MenuBar.js +0 -462
- package/dist/components/TiptapContainer.d.ts +0 -11
- package/dist/components/TiptapContainer.js +0 -154
- package/dist/components/characters/characterUtils.d.ts +0 -35
- package/dist/components/characters/characterUtils.js +0 -465
- package/dist/components/characters/custom-popper.d.ts +0 -14
- package/dist/components/characters/custom-popper.js +0 -32
- package/dist/components/common/done-button.d.ts +0 -30
- package/dist/components/common/done-button.js +0 -26
- package/dist/components/common/toolbar-buttons.d.ts +0 -38
- package/dist/components/common/toolbar-buttons.js +0 -91
- package/dist/components/icons/CssIcon.d.ts +0 -11
- package/dist/components/icons/CssIcon.js +0 -14
- package/dist/components/icons/RespArea.d.ts +0 -26
- package/dist/components/icons/RespArea.js +0 -42
- package/dist/components/icons/TableIcons.d.ts +0 -14
- package/dist/components/icons/TableIcons.js +0 -32
- package/dist/components/icons/TextAlign.d.ts +0 -18
- package/dist/components/icons/TextAlign.js +0 -134
- package/dist/components/image/AltDialog.d.ts +0 -22
- package/dist/components/image/AltDialog.js +0 -61
- package/dist/components/image/ImageToolbar.d.ts +0 -24
- package/dist/components/image/ImageToolbar.js +0 -80
- package/dist/components/image/InsertImageHandler.d.ts +0 -32
- package/dist/components/image/InsertImageHandler.js +0 -53
- package/dist/components/media/MediaDialog.d.ts +0 -43
- package/dist/components/media/MediaDialog.js +0 -389
- package/dist/components/media/MediaToolbar.d.ts +0 -19
- package/dist/components/media/MediaToolbar.js +0 -41
- package/dist/components/media/MediaWrapper.d.ts +0 -19
- package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts +0 -23
- package/dist/components/respArea/DragInTheBlank/DragInTheBlank.js +0 -58
- package/dist/components/respArea/DragInTheBlank/choice.d.ts +0 -56
- package/dist/components/respArea/DragInTheBlank/choice.js +0 -156
- package/dist/components/respArea/ExplicitConstructedResponse.d.ts +0 -20
- package/dist/components/respArea/ExplicitConstructedResponse.js +0 -83
- package/dist/components/respArea/InlineDropdown.d.ts +0 -18
- package/dist/components/respArea/InlineDropdown.js +0 -119
- package/dist/components/respArea/MathTemplated.d.ts +0 -19
- package/dist/components/respArea/MathTemplated.js +0 -97
- package/dist/components/respArea/ToolbarIcon.d.ts +0 -14
- package/dist/components/respArea/ToolbarIcon.js +0 -17
- package/dist/components/respArea/inlineDropdownUtils.d.ts +0 -15
- package/dist/components/respArea/inlineDropdownUtils.js +0 -15
- package/dist/constants.d.ts +0 -13
- package/dist/constants.js +0 -4
- package/dist/extensions/css.d.ts +0 -11
- package/dist/extensions/css.js +0 -115
- package/dist/extensions/custom-toolbar-wrapper.d.ts +0 -11
- package/dist/extensions/custom-toolbar-wrapper.js +0 -61
- package/dist/extensions/div-node.d.ts +0 -10
- package/dist/extensions/div-node.js +0 -42
- package/dist/extensions/ensure-empty-root-div.d.ts +0 -14
- package/dist/extensions/ensure-empty-root-div.js +0 -24
- package/dist/extensions/ensure-list-item-content-is-div.d.ts +0 -15
- package/dist/extensions/ensure-list-item-content-is-div.js +0 -31
- package/dist/extensions/extended-list-item.d.ts +0 -13
- package/dist/extensions/extended-list-item.js +0 -5
- package/dist/extensions/extended-table-cell.d.ts +0 -10
- package/dist/extensions/extended-table-cell.js +0 -6
- package/dist/extensions/extended-table.d.ts +0 -17
- package/dist/extensions/extended-table.js +0 -34
- package/dist/extensions/heading-paragraph.d.ts +0 -17
- package/dist/extensions/heading-paragraph.js +0 -30
- package/dist/extensions/image-component.d.ts +0 -22
- package/dist/extensions/image-component.js +0 -220
- package/dist/extensions/image.d.ts +0 -10
- package/dist/extensions/image.js +0 -68
- package/dist/extensions/index.d.ts +0 -16
- package/dist/extensions/index.js +0 -64
- package/dist/extensions/math.d.ts +0 -15
- package/dist/extensions/math.js +0 -158
- package/dist/extensions/media.d.ts +0 -19
- package/dist/extensions/media.js +0 -149
- package/dist/extensions/responseArea.d.ts +0 -27
- package/dist/extensions/responseArea.js +0 -259
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -7
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -16
- package/dist/styles/editorContainerStyles.d.ts +0 -134
- package/dist/theme.d.ts +0 -9
- package/dist/utils/helper.d.ts +0 -9
- package/dist/utils/helper.js +0 -27
- package/dist/utils/size.d.ts +0 -9
- package/dist/utils/size.js +0 -14
|
@@ -1,465 +0,0 @@
|
|
|
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 };
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,32 +0,0 @@
|
|
|
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 };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/editable-html-tip-tap/src/components/common/done-button.jsx
|
|
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
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
export declare const RawDoneButton: {
|
|
12
|
-
({ onClick, doneButtonRef }: {
|
|
13
|
-
onClick: any;
|
|
14
|
-
doneButtonRef: any;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
doneButtonRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare const DoneButton: {
|
|
22
|
-
({ onClick, doneButtonRef }: {
|
|
23
|
-
onClick: any;
|
|
24
|
-
doneButtonRef: any;
|
|
25
|
-
}): React.JSX.Element;
|
|
26
|
-
propTypes: {
|
|
27
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
doneButtonRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import { styled as e } from "@mui/material/styles";
|
|
3
|
-
import t from "prop-types";
|
|
4
|
-
import n from "@mui/material/IconButton";
|
|
5
|
-
import r from "@mui/icons-material/Check";
|
|
6
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/common/done-button.tsx
|
|
8
|
-
var a = e(n)({
|
|
9
|
-
verticalAlign: "top",
|
|
10
|
-
width: "28px",
|
|
11
|
-
height: "28px",
|
|
12
|
-
color: "var(--editable-html-toolbar-check, #00bb00)",
|
|
13
|
-
padding: "4px"
|
|
14
|
-
}), o = ({ onClick: e, doneButtonRef: t }) => /* @__PURE__ */ i(a, {
|
|
15
|
-
"aria-label": "Done",
|
|
16
|
-
buttonRef: t,
|
|
17
|
-
onClick: e,
|
|
18
|
-
children: /* @__PURE__ */ i(r, {})
|
|
19
|
-
});
|
|
20
|
-
o.propTypes = {
|
|
21
|
-
onClick: t.func,
|
|
22
|
-
doneButtonRef: t.func
|
|
23
|
-
};
|
|
24
|
-
var s = o;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { s as DoneButton };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/editable-html-tip-tap/src/components/common/toolbar-buttons.jsx
|
|
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
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
export declare class RawButton extends React.Component {
|
|
12
|
-
static propTypes: {
|
|
13
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
14
|
-
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
15
|
-
active: PropTypes.Requireable<boolean>;
|
|
16
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
17
|
-
extraStyles: PropTypes.Requireable<object>;
|
|
18
|
-
};
|
|
19
|
-
constructor(props: any);
|
|
20
|
-
onClick: any;
|
|
21
|
-
onKeyDown: any;
|
|
22
|
-
render(): React.JSX.Element;
|
|
23
|
-
}
|
|
24
|
-
export declare const Button: typeof RawButton;
|
|
25
|
-
export declare class RawMarkButton extends React.Component {
|
|
26
|
-
static propTypes: {
|
|
27
|
-
onToggle: PropTypes.Validator<(...args: any[]) => any>;
|
|
28
|
-
mark: PropTypes.Requireable<string>;
|
|
29
|
-
label: PropTypes.Validator<string>;
|
|
30
|
-
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
31
|
-
active: PropTypes.Requireable<boolean>;
|
|
32
|
-
};
|
|
33
|
-
constructor(props: any);
|
|
34
|
-
onToggle: any;
|
|
35
|
-
onKeyDown: any;
|
|
36
|
-
render(): React.JSX.Element;
|
|
37
|
-
}
|
|
38
|
-
export declare const MarkButton: typeof RawMarkButton;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import { styled as t } from "@mui/material/styles";
|
|
3
|
-
import n from "prop-types";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
import i from "debug";
|
|
6
|
-
//#region src/components/common/toolbar-buttons.tsx
|
|
7
|
-
var a = t("button", { shouldForwardProp: (e) => ![
|
|
8
|
-
"active",
|
|
9
|
-
"disabled",
|
|
10
|
-
"extraStyles"
|
|
11
|
-
].includes(e) })(({ theme: e, active: t, disabled: n }) => ({
|
|
12
|
-
color: t ? "black" : "grey",
|
|
13
|
-
display: "inline-flex",
|
|
14
|
-
padding: "2px",
|
|
15
|
-
background: "none",
|
|
16
|
-
border: "none",
|
|
17
|
-
cursor: n ? "not-allowed" : "pointer",
|
|
18
|
-
"&:hover": { color: n ? "grey" : "black" },
|
|
19
|
-
"&:focus": { outline: `2px solid ${e.palette.grey[700]}` },
|
|
20
|
-
...n && { opacity: .7 }
|
|
21
|
-
})), o = i("pie-elements:editable-html:raw-button");
|
|
22
|
-
(class extends e.Component {
|
|
23
|
-
static propTypes = {
|
|
24
|
-
onClick: n.func.isRequired,
|
|
25
|
-
children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
|
|
26
|
-
active: n.bool,
|
|
27
|
-
disabled: n.bool,
|
|
28
|
-
extraStyles: n.object
|
|
29
|
-
};
|
|
30
|
-
constructor(e) {
|
|
31
|
-
super(e);
|
|
32
|
-
}
|
|
33
|
-
onClick = (e) => {
|
|
34
|
-
o("[onClick]"), e.preventDefault();
|
|
35
|
-
let { onClick: t } = this.props;
|
|
36
|
-
t(e);
|
|
37
|
-
};
|
|
38
|
-
onKeyDown = (e) => {
|
|
39
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
40
|
-
o("[onKeyDown]"), e.preventDefault();
|
|
41
|
-
let { onClick: t } = this.props;
|
|
42
|
-
t(e);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
render() {
|
|
46
|
-
let { active: e, children: t, disabled: n, extraStyles: i, ariaLabel: o } = this.props;
|
|
47
|
-
return /* @__PURE__ */ r(a, {
|
|
48
|
-
style: i,
|
|
49
|
-
active: e,
|
|
50
|
-
disabled: n,
|
|
51
|
-
onMouseDown: this.onClick,
|
|
52
|
-
onKeyDown: this.onKeyDown,
|
|
53
|
-
"aria-label": o,
|
|
54
|
-
"aria-pressed": e,
|
|
55
|
-
tabIndex: 0,
|
|
56
|
-
children: t
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
var s = class extends e.Component {
|
|
61
|
-
static propTypes = {
|
|
62
|
-
onToggle: n.func.isRequired,
|
|
63
|
-
mark: n.string,
|
|
64
|
-
label: n.string.isRequired,
|
|
65
|
-
children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
|
|
66
|
-
active: n.bool
|
|
67
|
-
};
|
|
68
|
-
constructor(e) {
|
|
69
|
-
super(e);
|
|
70
|
-
}
|
|
71
|
-
onToggle = (e) => {
|
|
72
|
-
e.preventDefault(), this.props.onToggle(this.props.mark);
|
|
73
|
-
};
|
|
74
|
-
onKeyDown = (e) => {
|
|
75
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.props.onToggle(this.props.mark));
|
|
76
|
-
};
|
|
77
|
-
render() {
|
|
78
|
-
let { children: e, active: t, label: n } = this.props;
|
|
79
|
-
return /* @__PURE__ */ r(a, {
|
|
80
|
-
active: t,
|
|
81
|
-
onMouseDown: this.onToggle,
|
|
82
|
-
"aria-pressed": t,
|
|
83
|
-
onKeyDown: this.onKeyDown,
|
|
84
|
-
"aria-label": n,
|
|
85
|
-
tabIndex: 0,
|
|
86
|
-
children: e
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
//#endregion
|
|
91
|
-
export { s as MarkButton };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/editable-html-tip-tap/src/components/icons/CssIcon.jsx
|
|
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 CssIcon: () => React.JSX.Element;
|
|
11
|
-
export default CssIcon;
|