@flozy/editor 10.4.4 → 10.4.5
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/Editor/CommonEditor.js +2 -3
- package/dist/Editor/Elements/Button/EditorButton.js +2 -0
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +8 -23
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +1 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -11
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
- package/dist/Editor/Elements/Embed/Image.js +2 -3
- package/dist/Editor/Elements/EmbedScript/Code.js +2 -14
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +28 -57
- package/dist/Editor/Elements/Form/Form.js +168 -181
- package/dist/Editor/Elements/Form/FormElements/FormText.js +6 -23
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +2 -3
- package/dist/Editor/Elements/Form/FormField.js +4 -10
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -5
- package/dist/Editor/Elements/FreeGrid/Options/More.js +1 -1
- package/dist/Editor/Elements/FreeGrid/Options/sectionItemOptions.js +1 -1
- package/dist/Editor/Elements/FreeGrid/styles.js +7 -61
- package/dist/Editor/Elements/List/CheckList.js +2 -3
- package/dist/Editor/Elements/Search/SearchAttachment.js +9 -40
- package/dist/Editor/Elements/Search/SearchButton.js +8 -9
- package/dist/Editor/Elements/Search/SearchList.js +7 -9
- package/dist/Editor/Elements/SimpleText/index.js +1 -6
- package/dist/Editor/Elements/Table/TableCell.js +3 -7
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +18 -43
- package/dist/Editor/assets/svg/SettingsIcon.js +0 -1
- package/dist/Editor/common/Icon.js +1 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +8 -34
- package/dist/Editor/common/LinkSettings/index.js +69 -85
- package/dist/Editor/common/LinkSettings/style.js +30 -245
- package/dist/Editor/common/RnD/ElementOptions/Actions.js +14 -13
- package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +0 -1
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -2
- package/dist/Editor/common/RnD/ElementOptions/styles.js +1 -28
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +4 -4
- package/dist/Editor/common/RnD/ElementSettings/styles.js +12 -147
- package/dist/Editor/common/RnD/OptionsPopup/index.js +5 -8
- package/dist/Editor/common/RnD/OptionsPopup/style.js +19 -121
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +6 -0
- package/dist/Editor/common/Select/index.js +0 -2
- package/dist/Editor/common/Shorthands/elements.js +11 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +6 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -13
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/iconListV2.js +6 -101
- package/dist/Editor/common/iconslist.js +0 -3
- package/dist/Editor/commonStyle.js +1 -70
- package/dist/Editor/hooks/useMouseMove.js +5 -2
- package/dist/Editor/utils/SlateUtilityFunctions.js +10 -12
- package/dist/Editor/utils/form.js +4 -4
- package/dist/Editor/utils/formfield.js +2 -8
- package/package.json +1 -1
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -454
- package/dist/Editor/Elements/EmbedScript/styles.js +0 -89
- package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
- package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
- package/dist/Editor/common/SnackBar/index.js +0 -43
@@ -1,7 +1,7 @@
|
|
1
1
|
const ButtonNavSettingsStyles = theme => ({
|
2
2
|
dialogContainer: {
|
3
3
|
"& .MuiDialogContent-root": {
|
4
|
-
padding: "0px
|
4
|
+
padding: "0px 20px"
|
5
5
|
},
|
6
6
|
"& .MuiDialogActions-root": {
|
7
7
|
padding: "10px"
|
@@ -18,187 +18,62 @@ const ButtonNavSettingsStyles = theme => ({
|
|
18
18
|
padding: "14px"
|
19
19
|
},
|
20
20
|
"& .MuiPaper-root": {
|
21
|
-
|
22
|
-
borderRadius: "20px !important",
|
23
|
-
backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
|
24
|
-
border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
|
21
|
+
backgroundColor: theme?.palette?.editor?.background,
|
25
22
|
"& .MuiTypography-root": {
|
26
23
|
color: theme?.palette?.editor?.textColor
|
27
24
|
},
|
25
|
+
"& .MuiInputBase-root": {
|
26
|
+
border: `1px solid ${theme?.palette?.editor?.textColor}`,
|
27
|
+
color: theme?.palette?.editor?.textColor
|
28
|
+
},
|
28
29
|
"& .MuiSvgIcon-root": {
|
29
30
|
color: theme?.palette?.editor?.textColor
|
30
31
|
},
|
31
32
|
"& .MuiFormLabel-root": {
|
32
33
|
color: theme?.palette?.editor?.textColor,
|
33
|
-
backgroundColor:
|
34
|
-
}
|
35
|
-
},
|
36
|
-
"& .dialog-title": {
|
37
|
-
"& .MuiTypography-root": {
|
38
|
-
fontSize: "18px",
|
39
|
-
padding: "12px",
|
40
|
-
fontWeight: 600
|
41
|
-
}
|
42
|
-
},
|
43
|
-
"& .link-settings-content": {
|
44
|
-
margin: "0px 10px",
|
45
|
-
borderTop: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
|
46
|
-
borderBottom: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
|
47
|
-
overflow: "hidden !important",
|
48
|
-
"& .MuiInputBase-root, fieldset": {
|
49
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
50
|
-
borderRadius: "8px",
|
51
|
-
border: "unset",
|
52
|
-
"& fieldset": {
|
53
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
54
|
-
background: "transparent",
|
55
|
-
borderRadius: "8px"
|
56
|
-
},
|
57
|
-
"& input": {
|
58
|
-
border: `1px solid transparent`,
|
59
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
60
|
-
borderRadius: "8px",
|
61
|
-
color: theme?.palette?.editor?.textColor
|
62
|
-
}
|
63
|
-
},
|
64
|
-
"& .radioBtnGrp": {
|
65
|
-
paddingRight: "0px",
|
66
|
-
paddingLeft: "0px"
|
67
|
-
}
|
68
|
-
},
|
69
|
-
"& .MuiFormControlLabel-root": {
|
70
|
-
"& .MuiCheckbox-root": {
|
71
|
-
"& svg": {
|
72
|
-
color: `${theme?.palette?.editor?.radioBtnBorder}`
|
73
|
-
}
|
74
|
-
}
|
75
|
-
},
|
76
|
-
"& .ccheckbox-primary": {
|
77
|
-
padding: "0px",
|
78
|
-
"& .MuiCheckbox-root": {
|
79
|
-
padding: "8px 8px 8px 10px",
|
80
|
-
"&:hover": {
|
81
|
-
background: "unset !important"
|
82
|
-
}
|
83
|
-
},
|
84
|
-
"& button": {
|
85
|
-
width: "18px !important",
|
86
|
-
height: "18px !important",
|
87
|
-
borderRadius: "3px",
|
88
|
-
border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
|
89
|
-
"& svg": {
|
90
|
-
width: "14px",
|
91
|
-
height: "14px"
|
92
|
-
}
|
93
|
-
},
|
94
|
-
"& .checkedIcon": {
|
95
|
-
background: "#2563EB",
|
96
|
-
borderColor: "#2563EB",
|
97
|
-
padding: "0px"
|
98
|
-
},
|
99
|
-
"& .unCheckedIcon": {
|
100
|
-
background: theme?.palette?.editor?.checkedIconBg
|
101
|
-
},
|
102
|
-
"& p": {
|
103
|
-
margin: "0px !important"
|
104
|
-
}
|
105
|
-
},
|
106
|
-
"& .trigger-text": {
|
107
|
-
fontSize: "14px !important",
|
108
|
-
fontWeight: 400,
|
109
|
-
fontFamily: "'Inter',sans-serif",
|
110
|
-
color: theme?.palette?.editor?.textColor
|
111
|
-
}
|
112
|
-
},
|
113
|
-
customRadioBtn: {
|
114
|
-
"& .Mui-checked": {
|
115
|
-
"& span": {
|
116
|
-
"& .MuiSvgIcon-root": {
|
117
|
-
color: `#2563EB !important`
|
118
|
-
}
|
119
|
-
}
|
120
|
-
},
|
121
|
-
"& .MuiRadio-root": {
|
122
|
-
"& span": {
|
123
|
-
"& .MuiSvgIcon-root": {
|
124
|
-
color: `${theme?.palette?.editor?.radioBtnBorder}`
|
125
|
-
}
|
34
|
+
backgroundColor: theme?.palette?.editor?.background
|
126
35
|
}
|
127
36
|
}
|
128
37
|
},
|
129
38
|
customSelect: {
|
130
39
|
zIndex: "1302 !important",
|
131
40
|
"& .MuiPopover-paper": {
|
132
|
-
background: theme?.palette?.editor?.
|
133
|
-
color: theme?.palette?.editor?.textColor
|
134
|
-
borderRadius: "8px",
|
135
|
-
marginTop: "2px",
|
136
|
-
"& li": {
|
137
|
-
padding: "6px 16px",
|
138
|
-
margin: "5px !important",
|
139
|
-
borderRadius: "4px !important"
|
140
|
-
},
|
141
|
-
"& .MuiList-root": {
|
142
|
-
padding: "0px"
|
143
|
-
},
|
144
|
-
"& .MuiTypography-root": {
|
145
|
-
fontSize: "12px !important",
|
146
|
-
fontWeight: 500,
|
147
|
-
fontFamily: "'Inter',sans-serif"
|
148
|
-
},
|
149
|
-
"& .Mui-selected": {
|
150
|
-
background: theme?.palette?.editor?.menuOptionSelectedOption,
|
151
|
-
color: theme?.palette?.editor?.textColor
|
152
|
-
}
|
41
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
42
|
+
color: theme?.palette?.editor?.textColor
|
153
43
|
}
|
154
44
|
},
|
155
45
|
saveBtn: {
|
156
|
-
color: "#fff
|
157
|
-
background: "#2563EB
|
158
|
-
fontSize: "14px
|
159
|
-
fontWeight:
|
160
|
-
padding: "
|
161
|
-
textTransform: "none
|
162
|
-
borderRadius: "8px !important",
|
163
|
-
fontFamily: "'Inter',sans-serif !important",
|
46
|
+
color: "#fff",
|
47
|
+
background: "#2563EB",
|
48
|
+
fontSize: "14px",
|
49
|
+
fontWeight: 500,
|
50
|
+
padding: "4px 24px",
|
51
|
+
textTransform: "none",
|
164
52
|
"&:hover": {
|
165
|
-
color: "#fff
|
166
|
-
background: "#2563EB
|
53
|
+
color: "#fff",
|
54
|
+
background: "#2563EB"
|
167
55
|
}
|
168
56
|
},
|
169
57
|
closeBtn: {
|
170
|
-
backgroundColor:
|
171
|
-
color:
|
172
|
-
fontSize: "14px
|
173
|
-
fontWeight:
|
174
|
-
padding: "
|
175
|
-
textTransform: "none
|
176
|
-
border:
|
177
|
-
borderRadius: "8px !important",
|
178
|
-
fontFamily: "'Inter',sans-serif !important",
|
58
|
+
backgroundColor: "#F4F6F9",
|
59
|
+
color: "#64748B",
|
60
|
+
fontSize: "14px",
|
61
|
+
fontWeight: 500,
|
62
|
+
padding: "4px 22px",
|
63
|
+
textTransform: "none",
|
64
|
+
border: "1px solid #D8DDE1",
|
179
65
|
"&:hover": {
|
180
|
-
border:
|
181
|
-
backgroundColor: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
|
182
|
-
color: `${theme?.palette?.editor?.customDialogueCloseBtnColor} !important`
|
66
|
+
border: "1px solid #64748B"
|
183
67
|
}
|
184
68
|
},
|
185
69
|
closeIcon: {
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
"& svg": {
|
191
|
-
fill: theme?.palette?.editor?.closeButtonSvgStroke
|
192
|
-
}
|
70
|
+
position: "absolute",
|
71
|
+
right: 8,
|
72
|
+
top: 8,
|
73
|
+
color: theme?.palette?.grey[500]
|
193
74
|
},
|
194
75
|
gridDivider: {
|
195
|
-
borderRight:
|
196
|
-
"& .MuiTypography-root": {
|
197
|
-
color: "#64748B !important",
|
198
|
-
fontFamily: "'Inter',sans-serif",
|
199
|
-
fontWeight: 500,
|
200
|
-
fontSize: "16px"
|
201
|
-
}
|
76
|
+
borderRight: "1px solid rgba(0, 0, 0, 0.12)"
|
202
77
|
},
|
203
78
|
mobileActionBtns: {
|
204
79
|
display: "flex",
|
@@ -207,96 +82,6 @@ const ButtonNavSettingsStyles = theme => ({
|
|
207
82
|
paddingTop: "14px",
|
208
83
|
marginTop: "14px",
|
209
84
|
borderTop: `1px solid ${theme?.palette?.grey[300]}`
|
210
|
-
},
|
211
|
-
customAutoComplete: {
|
212
|
-
"& .MuiAutocomplete-listbox": {
|
213
|
-
padding: "0px",
|
214
|
-
"& li": {
|
215
|
-
margin: "5px",
|
216
|
-
borderRadius: "8px",
|
217
|
-
color: theme?.palette?.editor?.menuOptionTextColor,
|
218
|
-
fontSize: "14px",
|
219
|
-
padding: "8px 12px",
|
220
|
-
'&[aria-selected="true"]': {
|
221
|
-
backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
|
222
|
-
}
|
223
|
-
},
|
224
|
-
"& .Mui-selected": {
|
225
|
-
background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
|
226
|
-
}
|
227
|
-
},
|
228
|
-
"& .MuiPaper-root": {
|
229
|
-
borderRadius: "8px",
|
230
|
-
background: theme?.palette?.editor?.textWeightPopUpBackground
|
231
|
-
}
|
232
|
-
},
|
233
|
-
drawerContainer: {
|
234
|
-
"& .link-settings-title": {
|
235
|
-
fontSize: "18px",
|
236
|
-
padding: "12px 0px",
|
237
|
-
fontWeight: 600,
|
238
|
-
color: theme?.palette?.editor?.textColor
|
239
|
-
},
|
240
|
-
"& .MuiInputBase-root, fieldset": {
|
241
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
242
|
-
borderRadius: "8px",
|
243
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
|
244
|
-
"& fieldset": {
|
245
|
-
// border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
246
|
-
background: "transparent",
|
247
|
-
borderRadius: "8px"
|
248
|
-
},
|
249
|
-
"& input": {
|
250
|
-
border: `1px solid transparent`,
|
251
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
252
|
-
borderRadius: "8px",
|
253
|
-
color: theme?.palette?.editor?.textColor
|
254
|
-
}
|
255
|
-
},
|
256
|
-
"& .MuiFormLabel-root": {
|
257
|
-
color: theme?.palette?.editor?.textColor,
|
258
|
-
backgroundColor: "transparent !important"
|
259
|
-
},
|
260
|
-
"& .MuiTypography-root": {
|
261
|
-
color: theme?.palette?.editor?.textColor
|
262
|
-
},
|
263
|
-
"& .MuiFormControlLabel-root": {
|
264
|
-
"& .MuiCheckbox-root": {
|
265
|
-
"& svg": {
|
266
|
-
color: `${theme?.palette?.editor?.radioBtnBorder}`
|
267
|
-
}
|
268
|
-
}
|
269
|
-
},
|
270
|
-
"& .ccheckbox-primary": {
|
271
|
-
padding: "0px",
|
272
|
-
"& .MuiCheckbox-root": {
|
273
|
-
padding: "8px 8px 8px 10px",
|
274
|
-
"&:hover": {
|
275
|
-
background: "unset !important"
|
276
|
-
}
|
277
|
-
},
|
278
|
-
"& button": {
|
279
|
-
width: "18px !important",
|
280
|
-
height: "18px !important",
|
281
|
-
borderRadius: "3px",
|
282
|
-
border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
|
283
|
-
"& svg": {
|
284
|
-
width: "14px",
|
285
|
-
height: "14px"
|
286
|
-
}
|
287
|
-
},
|
288
|
-
"& .checkedIcon": {
|
289
|
-
background: "#2563EB",
|
290
|
-
borderColor: "#2563EB",
|
291
|
-
padding: "0px"
|
292
|
-
},
|
293
|
-
"& .unCheckedIcon": {
|
294
|
-
background: theme?.palette?.editor?.checkedIconBg
|
295
|
-
},
|
296
|
-
"& p": {
|
297
|
-
margin: "0px !important"
|
298
|
-
}
|
299
|
-
}
|
300
85
|
}
|
301
86
|
});
|
302
87
|
export default ButtonNavSettingsStyles;
|
@@ -1,18 +1,19 @@
|
|
1
1
|
import { Button, IconButton } from "@mui/material";
|
2
|
-
import
|
2
|
+
import CloseIcon from "@mui/icons-material/Close";
|
3
3
|
import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
|
4
|
+
import SettingsIcon from "@mui/icons-material/Settings";
|
5
|
+
import EditIcon from "@mui/icons-material/Edit";
|
4
6
|
import DragIndicatorIcon from "@mui/icons-material/DragIndicator";
|
5
7
|
import MoreVertIcon from "@mui/icons-material/MoreVert";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
8
|
+
import AddIcon from "@mui/icons-material/Add";
|
9
|
+
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
|
10
|
+
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
|
9
11
|
import SaveIcon from "@mui/icons-material/Save";
|
10
12
|
import LinkIcon from "./Icons/LinkIcon";
|
13
|
+
import CodeIcon from "@mui/icons-material/Code";
|
11
14
|
import FilterFramesIcon from "@mui/icons-material/FilterFrames";
|
12
15
|
import { GridAddSectionIcon, SignatureIcon, WorkflowIcon } from "../../iconslist";
|
13
16
|
import Delete from "@mui/icons-material/Delete";
|
14
|
-
import SettingsIcon from "../../../assets/svg/SettingsIcon";
|
15
|
-
import { CodeElementIcon, PenIcon, SaveTemplIcon } from "../../iconListV2";
|
16
17
|
const Actions = {
|
17
18
|
ai: {
|
18
19
|
type: "ai",
|
@@ -29,7 +30,7 @@ const Actions = {
|
|
29
30
|
addElementInSection: {
|
30
31
|
type: "addElement",
|
31
32
|
Button: IconButton,
|
32
|
-
Icon:
|
33
|
+
Icon: AddIcon,
|
33
34
|
title: "Add Element"
|
34
35
|
},
|
35
36
|
settings: {
|
@@ -73,25 +74,25 @@ const Actions = {
|
|
73
74
|
edit: {
|
74
75
|
type: 2,
|
75
76
|
Button: IconButton,
|
76
|
-
Icon:
|
77
|
+
Icon: EditIcon,
|
77
78
|
title: "Edit"
|
78
79
|
},
|
79
80
|
close: {
|
80
81
|
type: 3,
|
81
82
|
Button: IconButton,
|
82
|
-
Icon:
|
83
|
+
Icon: CloseIcon,
|
83
84
|
title: "close"
|
84
85
|
},
|
85
86
|
moveUp: {
|
86
87
|
type: "moveUp",
|
87
88
|
Button: IconButton,
|
88
|
-
Icon:
|
89
|
+
Icon: ArrowUpwardIcon,
|
89
90
|
title: "Move Up"
|
90
91
|
},
|
91
92
|
moveDown: {
|
92
93
|
type: "moveDown",
|
93
94
|
Button: IconButton,
|
94
|
-
Icon:
|
95
|
+
Icon: ArrowDownwardIcon,
|
95
96
|
title: "Move Down"
|
96
97
|
},
|
97
98
|
addFormField: {
|
@@ -109,13 +110,13 @@ const Actions = {
|
|
109
110
|
embedScript: {
|
110
111
|
type: "addEmbedScript",
|
111
112
|
Button: IconButton,
|
112
|
-
Icon:
|
113
|
+
Icon: CodeIcon,
|
113
114
|
title: "Embed Code"
|
114
115
|
},
|
115
116
|
saveAsTemplate: {
|
116
117
|
type: "saveAsTemplate",
|
117
118
|
Button: IconButton,
|
118
|
-
Icon:
|
119
|
+
Icon: SaveIcon,
|
119
120
|
title: "Save As Template"
|
120
121
|
},
|
121
122
|
imageFrame: {
|
@@ -8,7 +8,6 @@ const LinkIcon = () => {
|
|
8
8
|
height: "18",
|
9
9
|
viewBox: "0 0 18 18",
|
10
10
|
fill: "none",
|
11
|
-
className: "settingsIcon",
|
12
11
|
children: [/*#__PURE__*/_jsx("path", {
|
13
12
|
d: "M10.1582 7.84185C9.54389 7.22778 8.71084 6.88281 7.84222 6.88281C6.97361 6.88281 6.14055 7.22778 5.52622 7.84185L3.20947 10.1578C2.59513 10.7722 2.25 11.6054 2.25 12.4742C2.25 13.343 2.59513 14.1763 3.20947 14.7906C3.82381 15.4049 4.65704 15.7501 5.52585 15.7501C6.39466 15.7501 7.22788 15.4049 7.84222 14.7906L9.00022 13.6326",
|
14
13
|
stroke: "#000000",
|
@@ -65,7 +65,7 @@ const ElementOptions = props => {
|
|
65
65
|
arrow: true,
|
66
66
|
children: /*#__PURE__*/_jsx(Button, {
|
67
67
|
onClick: handleOptionClick(type),
|
68
|
-
className:
|
68
|
+
className: enable === type || selectedAction === type ? "active" : "",
|
69
69
|
children: Icon ? /*#__PURE__*/_jsx(Icon, {}) : title
|
70
70
|
})
|
71
71
|
}, `actions_fgele_${type}_${index}`) : null;
|
@@ -83,7 +83,7 @@ const ElementOptions = props => {
|
|
83
83
|
contentEditable: false,
|
84
84
|
disablePortal: false,
|
85
85
|
children: /*#__PURE__*/_jsx(Paper, {
|
86
|
-
className: "papper-root
|
86
|
+
className: "papper-root",
|
87
87
|
children: actions.map(renderAction)
|
88
88
|
})
|
89
89
|
}), open && MenuComp ? /*#__PURE__*/_jsx(OptionsPopup, {
|
@@ -38,7 +38,7 @@ const useElementOptionsStyle = ({
|
|
38
38
|
color: "#2563EB",
|
39
39
|
background: theme?.palette?.editor?.background,
|
40
40
|
border: "1px solid #2563EB",
|
41
|
-
boxShadow:
|
41
|
+
boxShadow: "1px 1px 3px #2563EB",
|
42
42
|
"& .strokePath": {
|
43
43
|
stroke: "#2563EB"
|
44
44
|
}
|
@@ -48,33 +48,6 @@ const useElementOptionsStyle = ({
|
|
48
48
|
fill: theme?.palette?.editor?.textColor
|
49
49
|
}
|
50
50
|
}
|
51
|
-
},
|
52
|
-
"& .popUpOptions": {
|
53
|
-
"& .elementOption": {
|
54
|
-
background: theme?.palette?.editor?.signatureFontBtnBg,
|
55
|
-
border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
|
56
|
-
height: "28px",
|
57
|
-
width: "28px",
|
58
|
-
"& svg": {
|
59
|
-
color: theme?.palette?.editor?.closeButtonSvgStroke,
|
60
|
-
width: "20px",
|
61
|
-
height: "20px"
|
62
|
-
},
|
63
|
-
"& .addIconCircle path, & .settingsIcon path, & .commonSvgStyle path": {
|
64
|
-
stroke: theme?.palette?.editor?.closeButtonSvgStroke
|
65
|
-
}
|
66
|
-
},
|
67
|
-
"& .active": {
|
68
|
-
border: "1px solid #2563EB",
|
69
|
-
"& svg": {
|
70
|
-
color: "#2563EB"
|
71
|
-
},
|
72
|
-
"& .settingsIcon": {
|
73
|
-
"& path": {
|
74
|
-
stroke: "#2563EB"
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
51
|
}
|
79
52
|
}
|
80
53
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Paper, Popper, Tooltip, Typography, Box, Divider, IconButton } from "@mui/material";
|
3
|
-
import
|
3
|
+
import CloseIcon from "@mui/icons-material/Close";
|
4
4
|
import { settingsLabel } from "../settingsConstants";
|
5
5
|
import SettingsComponents from "../Settings";
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -45,10 +45,10 @@ const Settings = props => {
|
|
45
45
|
}
|
46
46
|
}],
|
47
47
|
children: /*#__PURE__*/_jsxs(Paper, {
|
48
|
-
className: "papper-root
|
48
|
+
className: "papper-root",
|
49
49
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
50
50
|
variant: "h6",
|
51
|
-
className: "item-wrapper title
|
51
|
+
className: "item-wrapper title",
|
52
52
|
children: [translation(title), /*#__PURE__*/_jsx(Box, {
|
53
53
|
component: "div",
|
54
54
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
@@ -57,7 +57,7 @@ const Settings = props => {
|
|
57
57
|
children: /*#__PURE__*/_jsx(IconButton, {
|
58
58
|
className: "closeBtn",
|
59
59
|
onClick: onClose,
|
60
|
-
children: /*#__PURE__*/_jsx(
|
60
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
61
61
|
})
|
62
62
|
})
|
63
63
|
})]
|