@flozy/editor 5.3.3 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor/Editor.css +22 -7
- package/dist/Editor/Elements/Accordion/Accordion.js +8 -1
- package/dist/Editor/Elements/Button/EditorButton.js +2 -1
- package/dist/Editor/Elements/Divider/Divider.js +24 -9
- package/dist/Editor/Elements/Embed/Image.js +31 -12
- package/dist/Editor/Elements/Embed/Video.js +13 -2
- package/dist/Editor/Elements/Grid/GridItem.js +2 -0
- package/dist/Editor/Elements/Grid/Styles.js +44 -0
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -0
- package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
- package/dist/Editor/Styles/EditorStyles.js +3 -1
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +17 -1
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -3
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +200 -72
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +10 -8
- package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
- package/dist/Editor/common/ColorPickerButton.js +5 -3
- package/dist/Editor/common/DnD/Draggable.js +2 -1
- package/dist/Editor/common/ImageSelector/Options/Upload.js +2 -1
- package/dist/Editor/common/ImageSelector/Styles.js +47 -6
- package/dist/Editor/common/ImageSelector/UploadStyles.js +18 -6
- package/dist/Editor/common/MentionsPopup/Styles.js +108 -118
- package/dist/Editor/common/Section/index.js +3 -3
- package/dist/Editor/common/Section/styles.js +5 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +4 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +27 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +2 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +22 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +21 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +7 -0
- package/dist/Editor/common/StyleBuilder/index.js +5 -4
- package/dist/Editor/common/ToolbarIcon.js +2 -1
- package/dist/Editor/common/Uploader.js +42 -40
- package/dist/Editor/common/iconListV2.js +295 -77
- package/dist/Editor/commonStyle.js +281 -4
- package/dist/Editor/plugins/withCustomDeleteBackward.js +33 -2
- package/dist/Editor/plugins/withLayout.js +0 -41
- package/dist/Editor/utils/helper.js +6 -1
- package/package.json +2 -2
package/dist/Editor/Editor.css
CHANGED
|
@@ -31,7 +31,7 @@ blockquote {
|
|
|
31
31
|
border-left: 3px solid transparent;
|
|
32
32
|
margin-left: 0;
|
|
33
33
|
margin-right: 0;
|
|
34
|
-
padding-left: 10px;
|
|
34
|
+
/* padding-left: 10px; */
|
|
35
35
|
margin: 0px;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -225,9 +225,13 @@ blockquote {
|
|
|
225
225
|
background-color: #0052cc;
|
|
226
226
|
padding: 8px 12px;
|
|
227
227
|
color: #ffffff;
|
|
228
|
-
font-weight:
|
|
228
|
+
font-weight: 600;
|
|
229
|
+
font-size: 14px;
|
|
229
230
|
opacity: 1;
|
|
230
231
|
border-radius: 32px;
|
|
232
|
+
text-transform: math-auto;
|
|
233
|
+
height: 36px;
|
|
234
|
+
padding: 0px 12px;
|
|
231
235
|
}
|
|
232
236
|
|
|
233
237
|
.signature-btn-container button:hover {
|
|
@@ -358,6 +362,10 @@ blockquote {
|
|
|
358
362
|
stroke: #2563eb;
|
|
359
363
|
}
|
|
360
364
|
|
|
365
|
+
.brushIcon:hover {
|
|
366
|
+
background: unset;
|
|
367
|
+
}
|
|
368
|
+
|
|
361
369
|
.react-datepicker__input-container {
|
|
362
370
|
display: flex !important;
|
|
363
371
|
align-items: center;
|
|
@@ -516,7 +524,7 @@ blockquote {
|
|
|
516
524
|
}
|
|
517
525
|
|
|
518
526
|
.deleteBtn {
|
|
519
|
-
background: #
|
|
527
|
+
background: #d32f2f ;
|
|
520
528
|
border: 1px solid #d32f2f !important;
|
|
521
529
|
box-shadow: 0px 8px 24px rgba(30, 64, 175, 0.08);
|
|
522
530
|
border-radius: 8px !important;
|
|
@@ -526,6 +534,7 @@ blockquote {
|
|
|
526
534
|
margin-right: 15px !important;
|
|
527
535
|
color: #d32f2f;
|
|
528
536
|
width: auto !important;
|
|
537
|
+
text-transform: capitalize !important;
|
|
529
538
|
}
|
|
530
539
|
|
|
531
540
|
@media (max-width: 480px) {
|
|
@@ -663,7 +672,8 @@ blockquote {
|
|
|
663
672
|
}
|
|
664
673
|
|
|
665
674
|
.resize-br.img-resizer {
|
|
666
|
-
bottom:
|
|
675
|
+
bottom: 10px;
|
|
676
|
+
right: 5px;
|
|
667
677
|
}
|
|
668
678
|
|
|
669
679
|
.visible-on-hover {
|
|
@@ -1023,11 +1033,11 @@ blockquote {
|
|
|
1023
1033
|
width: 200px;
|
|
1024
1034
|
cursor: pointer;
|
|
1025
1035
|
color: #464646;
|
|
1026
|
-
background-color: #fff;
|
|
1036
|
+
/* background-color: #fff; */
|
|
1027
1037
|
padding: 4px 6px;
|
|
1028
1038
|
border-radius: 12px;
|
|
1029
1039
|
span {
|
|
1030
|
-
text-transform:
|
|
1040
|
+
text-transform: math-auto;
|
|
1031
1041
|
}
|
|
1032
1042
|
@media only screen and (max-width: 599px) {
|
|
1033
1043
|
background-color: unset;
|
|
@@ -1049,7 +1059,7 @@ blockquote {
|
|
|
1049
1059
|
}
|
|
1050
1060
|
|
|
1051
1061
|
.textFontArrows .MuiIconButton-root {
|
|
1052
|
-
padding:
|
|
1062
|
+
padding: 0px;
|
|
1053
1063
|
}
|
|
1054
1064
|
|
|
1055
1065
|
.tools-drawer .MuiTypography-root {
|
|
@@ -1297,3 +1307,8 @@ blockquote {
|
|
|
1297
1307
|
background: rgba(35, 131, 226, 0.35) !important;
|
|
1298
1308
|
color: inherit;
|
|
1299
1309
|
}
|
|
1310
|
+
|
|
1311
|
+
.gradientFillBtn {
|
|
1312
|
+
background: linear-gradient(112.61deg, #2C63ED 19.3%, #8360FD 88.14%) !important;
|
|
1313
|
+
text-transform: math-auto !important;
|
|
1314
|
+
}
|
|
@@ -6,7 +6,8 @@ import { IconButton, Tooltip, Box } from "@mui/material";
|
|
|
6
6
|
import DeleteIcon from "@mui/icons-material/Delete";
|
|
7
7
|
import { GridSettingsIcon } from "../../common/iconslist";
|
|
8
8
|
import Icon from "../../common/Icon";
|
|
9
|
-
import { useEditorSelection } from "../../hooks/useMouseMove";
|
|
9
|
+
import { useEditorContext, useEditorSelection } from "../../hooks/useMouseMove";
|
|
10
|
+
import useCommonStyle from "../../commonStyle";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const accordionBtnStyleKeys = {
|
|
@@ -78,6 +79,10 @@ const Accordion = props => {
|
|
|
78
79
|
textColor,
|
|
79
80
|
bgColor
|
|
80
81
|
} = element;
|
|
82
|
+
const {
|
|
83
|
+
theme
|
|
84
|
+
} = useEditorContext();
|
|
85
|
+
const classes = useCommonStyle(theme);
|
|
81
86
|
const onToggle = () => {
|
|
82
87
|
setToggle(!toggle);
|
|
83
88
|
};
|
|
@@ -97,6 +102,7 @@ const Accordion = props => {
|
|
|
97
102
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
98
103
|
size: "small",
|
|
99
104
|
onClick: onSettings,
|
|
105
|
+
sx: classes.buttonMoreOption,
|
|
100
106
|
children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
|
|
101
107
|
})
|
|
102
108
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
@@ -105,6 +111,7 @@ const Accordion = props => {
|
|
|
105
111
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
106
112
|
size: "small",
|
|
107
113
|
onClick: onDelete,
|
|
114
|
+
sx: classes.buttonMoreOption2,
|
|
108
115
|
children: /*#__PURE__*/_jsx(DeleteIcon, {})
|
|
109
116
|
})
|
|
110
117
|
})]
|
|
@@ -162,7 +162,8 @@ const EditorButton = props => {
|
|
|
162
162
|
display: "inline-flex",
|
|
163
163
|
color: "rgba(0, 0, 0, 0.54)",
|
|
164
164
|
marginBottom: "0px !important",
|
|
165
|
-
...classes.buttonMoreOption
|
|
165
|
+
...classes.buttonMoreOption,
|
|
166
|
+
...classes.buttonMoreOption3
|
|
166
167
|
},
|
|
167
168
|
...btnProps,
|
|
168
169
|
children: /*#__PURE__*/_jsx(Icon, {
|
|
@@ -5,6 +5,7 @@ import { IconButton, Tooltip } from "@mui/material";
|
|
|
5
5
|
import { GridSettingsIcon } from "../../common/iconslist";
|
|
6
6
|
import DividerPopup from "./DividerPopup";
|
|
7
7
|
import { Transforms } from "slate";
|
|
8
|
+
import useCommonStyle from "../../commonStyle";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
const Divider = props => {
|
|
@@ -17,6 +18,7 @@ const Divider = props => {
|
|
|
17
18
|
const {
|
|
18
19
|
theme
|
|
19
20
|
} = useEditorContext();
|
|
21
|
+
const classes = useCommonStyle(theme);
|
|
20
22
|
const {
|
|
21
23
|
borderColor = theme?.palette?.primary?.main || "#0F172A",
|
|
22
24
|
borderWidth = "1px",
|
|
@@ -43,11 +45,16 @@ const Divider = props => {
|
|
|
43
45
|
showTool,
|
|
44
46
|
onSettings
|
|
45
47
|
}) => {
|
|
46
|
-
const hoverStyles = readOnly
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
// const hoverStyles = readOnly
|
|
49
|
+
// ? {
|
|
50
|
+
// "&.MuiIconButton-root:hover": {
|
|
51
|
+
// background:
|
|
52
|
+
// theme?.palette?.type === "dark"
|
|
53
|
+
// ? `${theme?.palette?.greyshades?.light8} !important`
|
|
54
|
+
// : `${theme?.palette?.containers?.card} !important`,
|
|
55
|
+
// },
|
|
56
|
+
// }
|
|
57
|
+
// : {};
|
|
51
58
|
return /*#__PURE__*/_jsx("div", {
|
|
52
59
|
contentEditable: false,
|
|
53
60
|
className: "divider-settings",
|
|
@@ -61,14 +68,22 @@ const Divider = props => {
|
|
|
61
68
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
62
69
|
size: "small",
|
|
63
70
|
sx: {
|
|
64
|
-
background:
|
|
65
|
-
|
|
71
|
+
// background:
|
|
72
|
+
// theme?.palette?.type === "dark"
|
|
73
|
+
// ? theme?.palette?.greyshades?.light8
|
|
74
|
+
// : theme?.palette?.containers?.card,
|
|
75
|
+
// border:
|
|
76
|
+
// theme?.palette?.type === "dark"
|
|
77
|
+
// ? "1px solid #E4E8EB33"
|
|
78
|
+
// : "none",
|
|
66
79
|
boxShadow: "0px 0px 4px 0px #00000040",
|
|
67
80
|
borderRadius: "50%",
|
|
68
81
|
"& svg": {
|
|
69
|
-
|
|
82
|
+
width: '16px',
|
|
83
|
+
height: '16px'
|
|
70
84
|
},
|
|
71
|
-
...hoverStyles
|
|
85
|
+
// ...hoverStyles,
|
|
86
|
+
...classes.buttonMoreOption
|
|
72
87
|
},
|
|
73
88
|
onClick: onSettings,
|
|
74
89
|
children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
|
|
@@ -14,28 +14,33 @@ import ImageFrame from "./Frames/ImageFrame";
|
|
|
14
14
|
import LinkSettings from "../../common/LinkSettings";
|
|
15
15
|
import { handleLinkType } from "../../utils/helper";
|
|
16
16
|
import { wrapThemeBreakpoints } from "../FreeGrid/breakpointConstants";
|
|
17
|
+
import useCommonStyle from "../../commonStyle";
|
|
18
|
+
import SettingsIcon from "../../assets/svg/SettingsIcon";
|
|
17
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
21
|
const ToolBar = ({
|
|
20
22
|
isEmpty,
|
|
21
23
|
onSettings,
|
|
22
24
|
setOpenNav,
|
|
23
|
-
topM
|
|
25
|
+
topM,
|
|
26
|
+
classes
|
|
24
27
|
}) => {
|
|
25
28
|
return !isEmpty ? /*#__PURE__*/_jsxs("div", {
|
|
26
29
|
className: "element-toolbar visible-on-hover",
|
|
27
30
|
contentEditable: false,
|
|
28
31
|
style: {
|
|
29
|
-
top: "-
|
|
32
|
+
top: "-4px",
|
|
30
33
|
left: topM ? "35px" : "0px",
|
|
31
|
-
margin: "0px"
|
|
34
|
+
margin: "0px",
|
|
35
|
+
gap: '3px'
|
|
32
36
|
},
|
|
33
37
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
34
38
|
title: "Image Settings",
|
|
35
39
|
arrow: true,
|
|
36
40
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
37
41
|
onClick: onSettings,
|
|
38
|
-
|
|
42
|
+
sx: classes.buttonMoreOption,
|
|
43
|
+
children: /*#__PURE__*/_jsx(SettingsIcon, {})
|
|
39
44
|
})
|
|
40
45
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
41
46
|
title: "Link Settings",
|
|
@@ -43,6 +48,7 @@ const ToolBar = ({
|
|
|
43
48
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
44
49
|
className: "last-btn",
|
|
45
50
|
onClick: () => setOpenNav(true),
|
|
51
|
+
sx: classes.buttonMoreOption,
|
|
46
52
|
children: /*#__PURE__*/_jsx(LinkIcon, {})
|
|
47
53
|
})
|
|
48
54
|
})]
|
|
@@ -64,7 +70,8 @@ const ImageContent = props => {
|
|
|
64
70
|
handleImageClick,
|
|
65
71
|
onTouchEnd,
|
|
66
72
|
path,
|
|
67
|
-
theme
|
|
73
|
+
theme,
|
|
74
|
+
classes
|
|
68
75
|
} = props;
|
|
69
76
|
return !url ? !readOnly ? /*#__PURE__*/_jsxs(Box, {
|
|
70
77
|
component: "button",
|
|
@@ -73,6 +80,9 @@ const ImageContent = props => {
|
|
|
73
80
|
onClick: () => {
|
|
74
81
|
setOpenSettings(true);
|
|
75
82
|
},
|
|
83
|
+
sx: {
|
|
84
|
+
...classes.emptyThumbBtn
|
|
85
|
+
},
|
|
76
86
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
77
87
|
icon: "image"
|
|
78
88
|
}), "Add Image"]
|
|
@@ -183,6 +193,10 @@ const Image = props => {
|
|
|
183
193
|
onClick,
|
|
184
194
|
onTouchEnd
|
|
185
195
|
} = handleLinkType(webAddress, linkType, readOnly, isNewTab);
|
|
196
|
+
const {
|
|
197
|
+
theme: appTheme
|
|
198
|
+
} = useEditorContext();
|
|
199
|
+
const classes = useCommonStyle(appTheme);
|
|
186
200
|
const handleImageClick = () => {
|
|
187
201
|
try {
|
|
188
202
|
Transforms.select(editor, {
|
|
@@ -293,7 +307,8 @@ const Image = props => {
|
|
|
293
307
|
isEmpty: isEmpty,
|
|
294
308
|
onSettings: onSettings,
|
|
295
309
|
setOpenNav: setOpenNav,
|
|
296
|
-
topM: size.width < 100
|
|
310
|
+
topM: size.width < 100,
|
|
311
|
+
classes: classes
|
|
297
312
|
}), /*#__PURE__*/_jsx(ImageContent, {
|
|
298
313
|
...element,
|
|
299
314
|
readOnly: readOnly,
|
|
@@ -301,7 +316,8 @@ const Image = props => {
|
|
|
301
316
|
handleImageClick: handleImageClick,
|
|
302
317
|
onTouchEnd: onTouchEnd,
|
|
303
318
|
path: path,
|
|
304
|
-
theme: theme
|
|
319
|
+
theme: theme,
|
|
320
|
+
classes: classes
|
|
305
321
|
}), url && frames[frame] ? /*#__PURE__*/_jsx(Box, {
|
|
306
322
|
component: "div",
|
|
307
323
|
className: "image-frame",
|
|
@@ -317,11 +333,14 @@ const Image = props => {
|
|
|
317
333
|
handleImageClick: handleImageClick
|
|
318
334
|
})
|
|
319
335
|
}) : null, selected && !readOnly && url && /*#__PURE__*/_jsx(IconButton, {
|
|
320
|
-
onPointerDown: onMouseDown
|
|
321
|
-
style
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
336
|
+
onPointerDown: onMouseDown
|
|
337
|
+
// style={{
|
|
338
|
+
// opacity: 1,
|
|
339
|
+
// // background: "#FFF",
|
|
340
|
+
// // ...classes.resizeButton
|
|
341
|
+
// }}
|
|
342
|
+
,
|
|
343
|
+
sx: classes.resizeButton,
|
|
325
344
|
className: "resize-br visible-on-hover img-resizer",
|
|
326
345
|
children: /*#__PURE__*/_jsx(AspectRatioIcon, {})
|
|
327
346
|
})]
|
|
@@ -11,6 +11,8 @@ import { GridSettingsIcon } from "../../common/iconslist";
|
|
|
11
11
|
import { gradientBorder } from "../../utils/helper";
|
|
12
12
|
import { getEmbedURL } from "../../helper";
|
|
13
13
|
import { getBreakPointsValue, getTRBLBreakPoints, groupByBreakpoint } from "../../helper/theme";
|
|
14
|
+
import { useEditorContext } from "../../hooks/useMouseMove";
|
|
15
|
+
import useCommonStyle from "../../commonStyle";
|
|
14
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
18
|
const VideoContent = props => {
|
|
@@ -68,12 +70,16 @@ const VideoPlaceholder = props => {
|
|
|
68
70
|
const {
|
|
69
71
|
url,
|
|
70
72
|
readOnly,
|
|
71
|
-
onSettings
|
|
73
|
+
onSettings,
|
|
74
|
+
classes
|
|
72
75
|
} = props;
|
|
73
76
|
return !url ? !readOnly ? /*#__PURE__*/_jsxs(Box, {
|
|
74
77
|
component: "button",
|
|
75
78
|
className: "element-empty-btn",
|
|
76
79
|
onClick: onSettings,
|
|
80
|
+
sx: {
|
|
81
|
+
...classes.emptyThumbBtn
|
|
82
|
+
},
|
|
77
83
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
78
84
|
icon: "video"
|
|
79
85
|
}), "Embed Video or Other"]
|
|
@@ -121,6 +127,10 @@ const Video = ({
|
|
|
121
127
|
} = alignment || {};
|
|
122
128
|
const path = ReactEditor.findPath(editor, element);
|
|
123
129
|
const hasAspect = url && aspectRatio !== "custom" && aspectRatio;
|
|
130
|
+
const {
|
|
131
|
+
theme: appTheme
|
|
132
|
+
} = useEditorContext();
|
|
133
|
+
const classes = useCommonStyle(appTheme);
|
|
124
134
|
const getSize = () => {
|
|
125
135
|
if (element?.size === undefined) {
|
|
126
136
|
return {
|
|
@@ -267,7 +277,8 @@ const Video = ({
|
|
|
267
277
|
videoSX: videoSX,
|
|
268
278
|
url: url,
|
|
269
279
|
readOnly: readOnly,
|
|
270
|
-
resizing: resizing
|
|
280
|
+
resizing: resizing,
|
|
281
|
+
classes: classes
|
|
271
282
|
}), !readOnly && url ? /*#__PURE__*/_jsx(IconButton, {
|
|
272
283
|
onPointerDown: onMouseDown,
|
|
273
284
|
style: {
|
|
@@ -61,6 +61,7 @@ const GridItemToolbar = props => {
|
|
|
61
61
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
62
62
|
size: "small",
|
|
63
63
|
onClick: onSettings,
|
|
64
|
+
sx: classes.groupIcons,
|
|
64
65
|
children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
|
|
65
66
|
})
|
|
66
67
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
@@ -69,6 +70,7 @@ const GridItemToolbar = props => {
|
|
|
69
70
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
70
71
|
size: "small",
|
|
71
72
|
onClick: onAddColumn,
|
|
73
|
+
sx: classes.groupIcons2,
|
|
72
74
|
children: /*#__PURE__*/_jsx(AddIcon, {})
|
|
73
75
|
})
|
|
74
76
|
})]
|
|
@@ -112,6 +112,50 @@ const GridStyles = (theme, appTheme) => ({
|
|
|
112
112
|
background: appTheme?.palette?.editor?.background,
|
|
113
113
|
color: appTheme?.palette?.editor?.textColor
|
|
114
114
|
}
|
|
115
|
+
},
|
|
116
|
+
groupIcons: {
|
|
117
|
+
background: appTheme?.palette?.editor?.aiInputBackground,
|
|
118
|
+
border: `1px solid ${appTheme?.palette?.editor?.buttonBorder1} !important`,
|
|
119
|
+
padding: '5px !important',
|
|
120
|
+
borderRadius: '50% !important',
|
|
121
|
+
'& svg': {
|
|
122
|
+
width: '18px',
|
|
123
|
+
height: '18px',
|
|
124
|
+
'& path': {
|
|
125
|
+
stroke: `${appTheme?.palette?.editor?.closeButtonSvgStroke} !important`
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
'&:hover': {
|
|
129
|
+
background: `${appTheme?.palette?.editor?.aiInputBackground} !important`,
|
|
130
|
+
border: `1px solid ${appTheme?.palette?.editor?.buttonBorder1} !important`,
|
|
131
|
+
'& svg': {
|
|
132
|
+
'& path': {
|
|
133
|
+
stroke: `${appTheme?.palette?.editor?.closeButtonSvgStroke} !important`
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
groupIcons2: {
|
|
139
|
+
background: appTheme?.palette?.editor?.aiInputBackground,
|
|
140
|
+
border: `1px solid ${appTheme?.palette?.editor?.buttonBorder1} !important`,
|
|
141
|
+
padding: '5px !important',
|
|
142
|
+
borderRadius: '50% !important',
|
|
143
|
+
'& svg': {
|
|
144
|
+
width: '18px',
|
|
145
|
+
height: '18px',
|
|
146
|
+
'& path': {
|
|
147
|
+
fill: `${appTheme?.palette?.editor?.closeButtonSvgStroke} !important`
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
'&:hover': {
|
|
151
|
+
background: `${appTheme?.palette?.editor?.aiInputBackground} !important`,
|
|
152
|
+
border: `1px solid ${appTheme?.palette?.editor?.buttonBorder1} !important`,
|
|
153
|
+
'& svg': {
|
|
154
|
+
'& path': {
|
|
155
|
+
fill: `${appTheme?.palette?.editor?.closeButtonSvgStroke} !important`
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
115
159
|
}
|
|
116
160
|
});
|
|
117
161
|
export default GridStyles;
|
|
@@ -147,7 +147,7 @@ const SignaturePopup = props => {
|
|
|
147
147
|
style: {
|
|
148
148
|
width: "fit-content"
|
|
149
149
|
},
|
|
150
|
-
children: "Sign
|
|
150
|
+
children: "Sign here"
|
|
151
151
|
})]
|
|
152
152
|
}), /*#__PURE__*/_jsx(Dialog, {
|
|
153
153
|
className: `${className} dialogComp`,
|
|
@@ -294,7 +294,7 @@ const SignaturePopup = props => {
|
|
|
294
294
|
},
|
|
295
295
|
children: [/*#__PURE__*/_jsx(Grid, {
|
|
296
296
|
sx: {
|
|
297
|
-
minWidth: "
|
|
297
|
+
minWidth: "49px"
|
|
298
298
|
},
|
|
299
299
|
children: /*#__PURE__*/_jsx("label", {
|
|
300
300
|
htmlFor: "signedBy",
|
|
@@ -420,7 +420,7 @@ const SignaturePopup = props => {
|
|
|
420
420
|
xs: 12,
|
|
421
421
|
children: [/*#__PURE__*/_jsx(Grid, {
|
|
422
422
|
sx: {
|
|
423
|
-
minWidth: "
|
|
423
|
+
minWidth: "49px"
|
|
424
424
|
},
|
|
425
425
|
children: /*#__PURE__*/_jsx("label", {
|
|
426
426
|
htmlFor: "signedByEmail",
|
|
@@ -492,7 +492,7 @@ const SignaturePopup = props => {
|
|
|
492
492
|
return /*#__PURE__*/_jsx(IconButton, {
|
|
493
493
|
onClick: onBrushSize(m),
|
|
494
494
|
disableRipple: true,
|
|
495
|
-
className: brush.size === m ? "activeBrush" : ""
|
|
495
|
+
className: `${brush.size === m ? "activeBrush" : ""} brushIcon`,
|
|
496
496
|
children: /*#__PURE__*/_jsx("span", {
|
|
497
497
|
style: {
|
|
498
498
|
width: 17 + m,
|
|
@@ -129,7 +129,8 @@ const editorStyles = ({
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"& .accordion-summary-collapse-btn": {
|
|
132
|
-
padding: "4px"
|
|
132
|
+
padding: "4px",
|
|
133
|
+
width: '5px'
|
|
133
134
|
},
|
|
134
135
|
"& .workflow-icon-btn": {
|
|
135
136
|
pointerEvents: "none",
|
|
@@ -238,6 +239,7 @@ const editorStyles = ({
|
|
|
238
239
|
}
|
|
239
240
|
},
|
|
240
241
|
"& .section-tw": {
|
|
242
|
+
background: 'transparent !important',
|
|
241
243
|
"& button": {
|
|
242
244
|
padding: "2px",
|
|
243
245
|
borderRadius: "0px",
|
|
@@ -42,7 +42,9 @@ const FontFamilyAutocomplete = ({
|
|
|
42
42
|
},
|
|
43
43
|
value: value || options?.[0],
|
|
44
44
|
className: "editor-dd",
|
|
45
|
-
sx:
|
|
45
|
+
sx: {
|
|
46
|
+
...classes.autoCompleteaFontFamily
|
|
47
|
+
},
|
|
46
48
|
onChange: (e, newValue) => changeMarkData(e, newValue, format),
|
|
47
49
|
getOptionLabel: option => {
|
|
48
50
|
return option;
|
|
@@ -58,6 +60,13 @@ const FontFamilyAutocomplete = ({
|
|
|
58
60
|
children: option
|
|
59
61
|
});
|
|
60
62
|
},
|
|
63
|
+
slotProps: {
|
|
64
|
+
popper: {
|
|
65
|
+
sx: {
|
|
66
|
+
...classes.fontFamilyListOptions
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
61
70
|
popupIcon: /*#__PURE__*/_jsx(KeyboardArrowDownRoundedIcon, {}),
|
|
62
71
|
renderInput: params => /*#__PURE__*/_jsx(TextField, {
|
|
63
72
|
sx: {
|
|
@@ -67,6 +76,13 @@ const FontFamilyAutocomplete = ({
|
|
|
67
76
|
},
|
|
68
77
|
...params
|
|
69
78
|
})
|
|
79
|
+
// componentsProps={{
|
|
80
|
+
// clearIndicator: {
|
|
81
|
+
// style: { display: 'none' },
|
|
82
|
+
// },
|
|
83
|
+
// }}
|
|
84
|
+
,
|
|
85
|
+
disableClearable: true
|
|
70
86
|
});
|
|
71
87
|
};
|
|
72
88
|
export default FontFamilyAutocomplete;
|
|
@@ -2,10 +2,12 @@ import React, { useEffect, useRef, useState } from "react";
|
|
|
2
2
|
import { TextField, IconButton } from "@mui/material";
|
|
3
3
|
import { addMarkData, activeMark, isBlockActive } from "../../utils/SlateUtilityFunctions.js";
|
|
4
4
|
import { headingMap, sizeMap } from "../../utils/font.js";
|
|
5
|
-
import
|
|
5
|
+
import ExpandLessRoundedIcon from "@mui/icons-material/ExpandLessRounded";
|
|
6
|
+
import ExpandMoreRoundedIcon from "@mui/icons-material/ExpandMoreRounded";
|
|
6
7
|
import { getBreakPointsValue } from "../../helper/theme.js";
|
|
7
8
|
import useWindowResize from "../../hooks/useWindowResize.js";
|
|
8
9
|
import { BREAKPOINTS_DEVICES } from "../../helper/theme.js";
|
|
10
|
+
import { TextSizeDownArrow, TextSizeUpArrow } from "../../common/iconListV2.js";
|
|
9
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
13
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -106,11 +108,11 @@ const TextSize = ({
|
|
|
106
108
|
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
107
109
|
onClick: onIncreaseSize,
|
|
108
110
|
size: "small",
|
|
109
|
-
children: /*#__PURE__*/_jsx(
|
|
111
|
+
children: /*#__PURE__*/_jsx(TextSizeUpArrow, {})
|
|
110
112
|
}), /*#__PURE__*/_jsx(IconButton, {
|
|
111
113
|
onClick: onDecreaseSize,
|
|
112
114
|
size: "small",
|
|
113
|
-
children: /*#__PURE__*/_jsx(
|
|
115
|
+
children: /*#__PURE__*/_jsx(TextSizeDownArrow, {})
|
|
114
116
|
})]
|
|
115
117
|
})
|
|
116
118
|
}
|