@flozy/editor 10.5.1 → 10.5.3
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 +6 -4
- package/dist/Editor/Elements/Button/EditorButton.js +0 -2
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +4 -2
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +454 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +23 -8
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +5 -1
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +11 -0
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +8 -4
- package/dist/Editor/Elements/Embed/Image.js +3 -2
- package/dist/Editor/Elements/EmbedScript/Code.js +14 -2
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +57 -28
- package/dist/Editor/Elements/EmbedScript/styles.js +89 -0
- package/dist/Editor/Elements/Form/Form.js +181 -168
- package/dist/Editor/Elements/Form/FormElements/FormText.js +23 -6
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +3 -2
- package/dist/Editor/Elements/Form/FormField.js +10 -4
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +6 -4
- 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 +61 -7
- package/dist/Editor/Elements/List/CheckList.js +3 -2
- package/dist/Editor/Elements/Search/SearchAttachment.js +40 -9
- package/dist/Editor/Elements/Search/SearchButton.js +9 -8
- package/dist/Editor/Elements/Search/SearchList.js +9 -7
- package/dist/Editor/Elements/SimpleText/index.js +6 -1
- package/dist/Editor/Elements/Table/TableCell.js +7 -3
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +43 -18
- package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
- package/dist/Editor/assets/svg/ResetIconNew.js +23 -0
- package/dist/Editor/assets/svg/SettingsIcon.js +1 -0
- package/dist/Editor/common/Icon.js +3 -1
- package/dist/Editor/common/LinkSettings/NavComponents.js +34 -8
- package/dist/Editor/common/LinkSettings/index.js +85 -69
- package/dist/Editor/common/LinkSettings/style.js +245 -30
- package/dist/Editor/common/MentionsPopup/index.js +4 -1
- package/dist/Editor/common/RnD/ElementOptions/Actions.js +13 -14
- package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +1 -0
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -2
- package/dist/Editor/common/RnD/ElementOptions/styles.js +28 -1
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +4 -4
- package/dist/Editor/common/RnD/ElementSettings/styles.js +147 -12
- package/dist/Editor/common/RnD/OptionsPopup/index.js +8 -5
- package/dist/Editor/common/RnD/OptionsPopup/style.js +121 -19
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +0 -6
- package/dist/Editor/common/Select/index.js +2 -0
- package/dist/Editor/common/Shorthands/elements.js +11 -11
- package/dist/Editor/common/SnackBar/index.js +43 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +7 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +13 -6
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
- package/dist/Editor/common/iconListV2.js +101 -6
- package/dist/Editor/common/iconslist.js +3 -0
- package/dist/Editor/commonStyle.js +70 -1
- package/dist/Editor/hooks/useMouseMove.js +2 -5
- package/dist/Editor/utils/SlateUtilityFunctions.js +12 -10
- package/dist/Editor/utils/form.js +4 -4
- package/dist/Editor/utils/formfield.js +8 -2
- package/dist/Editor/utils/helper.js +76 -0
- package/package.json +1 -1
@@ -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: "1px 1px 3px #2563EB",
|
41
|
+
boxShadow: theme?.palette?.type === "light" && "1px 1px 3px #2563EB",
|
42
42
|
"& .strokePath": {
|
43
43
|
stroke: "#2563EB"
|
44
44
|
}
|
@@ -48,6 +48,33 @@ 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
|
+
}
|
51
78
|
}
|
52
79
|
}
|
53
80
|
});
|
@@ -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 CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
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 settingsPopUp",
|
49
49
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
50
50
|
variant: "h6",
|
51
|
-
className: "item-wrapper title",
|
51
|
+
className: "item-wrapper title popUpHeader",
|
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(CloseRoundedIcon, {})
|
61
61
|
})
|
62
62
|
})
|
63
63
|
})]
|
@@ -1,8 +1,9 @@
|
|
1
1
|
const useElementSettingsStyle = theme => ({
|
2
2
|
root: {
|
3
3
|
zIndex: 1200,
|
4
|
-
background: theme?.palette?.editor?.
|
5
|
-
|
4
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
5
|
+
border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder}`,
|
6
|
+
borderRadius: "20px",
|
6
7
|
overflow: "hidden",
|
7
8
|
boxShadow: "0px 0px 12px 4px #00000014",
|
8
9
|
padding: "10px 16px",
|
@@ -58,28 +59,34 @@ const useElementSettingsStyle = theme => ({
|
|
58
59
|
maxHeight: "500px",
|
59
60
|
overflowX: "hidden",
|
60
61
|
overflowY: "auto",
|
61
|
-
background: theme?.palette?.editor?.
|
62
|
-
paddingLeft: "
|
62
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
63
|
+
paddingLeft: "2px",
|
64
|
+
paddingRight: "6px",
|
65
|
+
overflow: "hidden",
|
66
|
+
"&:hover": {
|
67
|
+
overflowY: "auto",
|
68
|
+
"&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb": {
|
69
|
+
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
70
|
+
},
|
71
|
+
"&::-webkit-scrollbar-track, ::-webkit-scrollbar-track": {
|
72
|
+
visibility: "hidden"
|
73
|
+
}
|
74
|
+
},
|
63
75
|
"& .MuiTypography-root, .MuiInputBase-root, input": {
|
64
76
|
color: theme?.palette?.editor?.textColor
|
65
77
|
},
|
66
|
-
"& .MuiInputBase-root, input": {
|
67
|
-
border: `1px solid ${theme?.palette?.editor?.borderColor}`
|
68
|
-
},
|
69
78
|
"& .borderInput": {
|
70
79
|
background: theme?.palette?.editor?.background,
|
71
80
|
color: theme?.palette?.editor?.textColor
|
72
81
|
},
|
73
|
-
"& .MuiCheckbox-root": {
|
74
|
-
"& svg": {
|
75
|
-
fill: theme?.palette?.editor?.textColor
|
76
|
-
}
|
77
|
-
},
|
78
82
|
"& .fillPath": {
|
79
83
|
fill: theme?.palette?.editor?.textColor
|
80
84
|
},
|
81
85
|
"& .MuiIconButton-root": {
|
82
86
|
color: theme?.palette?.editor?.textColor
|
87
|
+
},
|
88
|
+
"& .MuiFormHelperText-root": {
|
89
|
+
color: theme?.palette?.editor?.textColor
|
83
90
|
}
|
84
91
|
},
|
85
92
|
"& .item-wrapper": {
|
@@ -104,6 +111,134 @@ const useElementSettingsStyle = theme => ({
|
|
104
111
|
}
|
105
112
|
}
|
106
113
|
}
|
114
|
+
},
|
115
|
+
"& .settingsPopUp": {
|
116
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
117
|
+
"& .text-formatter-popup": {
|
118
|
+
paddingRight: "10px",
|
119
|
+
overflow: "hidden",
|
120
|
+
"&:hover": {
|
121
|
+
overflow: "auto",
|
122
|
+
"&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb": {
|
123
|
+
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
124
|
+
},
|
125
|
+
"&::-webkit-scrollbar-track, ::-webkit-scrollbar-track": {
|
126
|
+
visibility: "hidden"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"& .more-btn-cbs": {
|
130
|
+
color: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
|
131
|
+
border: `1px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
|
132
|
+
paddingTop: "10px",
|
133
|
+
"& svg": {
|
134
|
+
width: "20px",
|
135
|
+
height: "24px"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"& .MuiInputBase-root": {
|
139
|
+
height: "36px"
|
140
|
+
}
|
141
|
+
},
|
142
|
+
"& .popUpHeader": {
|
143
|
+
fontSize: "16px",
|
144
|
+
fontFamily: "'Inter',sans-serif",
|
145
|
+
fontWeight: "700",
|
146
|
+
fontSize: "16px",
|
147
|
+
lineHeight: "25px",
|
148
|
+
"& button": {
|
149
|
+
background: theme?.palette?.editor?.closeButtonBackground,
|
150
|
+
borderRadius: "8px",
|
151
|
+
"& svg": {
|
152
|
+
fill: theme?.palette?.editor?.closeButtonSvgStroke
|
153
|
+
}
|
154
|
+
}
|
155
|
+
},
|
156
|
+
"& .MuiTypography-root": {
|
157
|
+
color: `${theme?.palette?.editor?.textColor} !important`
|
158
|
+
},
|
159
|
+
"& .MuiInputBase-root": {
|
160
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
161
|
+
borderRadius: "8px",
|
162
|
+
fontSize: "12px",
|
163
|
+
height: "36px",
|
164
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
165
|
+
"& fieldset": {
|
166
|
+
border: `1px solid transparent !important`,
|
167
|
+
background: "transparent",
|
168
|
+
borderRadius: "8px"
|
169
|
+
// fontSize: "12px",
|
170
|
+
},
|
171
|
+
|
172
|
+
"& input": {
|
173
|
+
// border: `1px solid transparent`,
|
174
|
+
// background: theme?.palette?.editor?.inputFieldBgColor,
|
175
|
+
borderRadius: "8px"
|
176
|
+
// fontSize: "12px",
|
177
|
+
}
|
178
|
+
},
|
179
|
+
|
180
|
+
"& .editor-dd": {
|
181
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
182
|
+
border: `1px solid transparent !important`
|
183
|
+
}
|
184
|
+
},
|
185
|
+
"& .MuiAutocomplete-root": {
|
186
|
+
"& fieldset": {
|
187
|
+
border: `1px solid transparent !important`
|
188
|
+
}
|
189
|
+
},
|
190
|
+
"& .sliderInput": {
|
191
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
192
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
193
|
+
borderRadius: "10px",
|
194
|
+
paddingLeft: "10px",
|
195
|
+
width: "50px !important"
|
196
|
+
},
|
197
|
+
"& .selctedBtnIcon": {
|
198
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
199
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
200
|
+
borderRadius: "10px",
|
201
|
+
height: "36px",
|
202
|
+
"& svg": {
|
203
|
+
color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
|
204
|
+
}
|
205
|
+
},
|
206
|
+
"& .muiIconsListParent": {
|
207
|
+
"& svg": {
|
208
|
+
color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
|
209
|
+
},
|
210
|
+
"&::-webkit-scrollbar-thumb": {
|
211
|
+
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
212
|
+
},
|
213
|
+
"&::-webkit-scrollbar-track": {
|
214
|
+
visibility: "hidden"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
"& .menu-item-app-header": {
|
218
|
+
paddingBottom: "5px",
|
219
|
+
"& .text-field1": {
|
220
|
+
marginRight: "5px"
|
221
|
+
},
|
222
|
+
"& .settingsIcon, .deleteIcon": {
|
223
|
+
width: "20px",
|
224
|
+
height: "20px",
|
225
|
+
"& path": {
|
226
|
+
stroke: theme?.palette?.editor?.closeButtonSvgStroke
|
227
|
+
}
|
228
|
+
}
|
229
|
+
},
|
230
|
+
"& .MuiPaper-root": {
|
231
|
+
background: theme?.palette?.editor?.miniToolBarBackground
|
232
|
+
},
|
233
|
+
"& .iconRadioButton": {
|
234
|
+
"& svg": {
|
235
|
+
height: "24px",
|
236
|
+
width: "24px"
|
237
|
+
},
|
238
|
+
"& .MuiRadio-root": {
|
239
|
+
paddingLeft: "0px"
|
240
|
+
}
|
241
|
+
}
|
107
242
|
}
|
108
243
|
},
|
109
244
|
dialog: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { Box, Paper, Popper, Typography, Tooltip, IconButton } from "@mui/material";
|
3
|
-
import
|
2
|
+
import { Box, Paper, Popper, Typography, Tooltip, IconButton, Grid } from "@mui/material";
|
3
|
+
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
4
4
|
import useOptionsPopupStyle from "./style";
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -30,7 +30,7 @@ const OptionsPopup = props => {
|
|
30
30
|
className: "papper-root",
|
31
31
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
32
32
|
variant: "div",
|
33
|
-
className: "item-wrapper title",
|
33
|
+
className: "item-wrapper title sectionOptionTitle",
|
34
34
|
children: [translation(title), /*#__PURE__*/_jsx(Box, {
|
35
35
|
component: "div",
|
36
36
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
@@ -38,11 +38,14 @@ const OptionsPopup = props => {
|
|
38
38
|
arrow: true,
|
39
39
|
children: /*#__PURE__*/_jsx(IconButton, {
|
40
40
|
onClick: handleClose,
|
41
|
-
children: /*#__PURE__*/_jsx(
|
41
|
+
children: /*#__PURE__*/_jsx(CloseRoundedIcon, {})
|
42
42
|
})
|
43
43
|
})
|
44
44
|
})]
|
45
|
-
}),
|
45
|
+
}), /*#__PURE__*/_jsx(Grid, {
|
46
|
+
className: "sectionOptionChild",
|
47
|
+
children: children
|
48
|
+
})]
|
46
49
|
})
|
47
50
|
}) : null;
|
48
51
|
};
|
@@ -3,31 +3,139 @@ const useOptionsPopupStyle = ({
|
|
3
3
|
}) => ({
|
4
4
|
root: {
|
5
5
|
zIndex: 1200,
|
6
|
-
background: theme?.palette?.editor?.
|
7
|
-
|
6
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
7
|
+
border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder}`,
|
8
|
+
borderRadius: "20px",
|
8
9
|
overflow: "hidden",
|
9
|
-
boxShadow: "
|
10
|
+
boxShadow: "0px 0px 12px 4px #00000014",
|
10
11
|
marginRight: "4px !important",
|
12
|
+
padding: "0px 5px",
|
13
|
+
fontFamily: "'Inter',sans-serif",
|
14
|
+
"& .MuiPaper-root": {
|
15
|
+
background: theme?.palette?.editor?.miniToolBarBackground
|
16
|
+
},
|
17
|
+
"& .sectionOptionTitle": {
|
18
|
+
fontSize: "16px",
|
19
|
+
fontFamily: "'Inter',sans-serif",
|
20
|
+
fontWeight: "700",
|
21
|
+
fontSize: "16px",
|
22
|
+
lineHeight: "25px",
|
23
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
24
|
+
"& button": {
|
25
|
+
background: theme?.palette?.editor?.closeButtonBackground,
|
26
|
+
borderRadius: "8px",
|
27
|
+
"& svg": {
|
28
|
+
fill: theme?.palette?.editor?.closeButtonSvgStroke
|
29
|
+
}
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"& .sectionOptionChild": {
|
33
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
34
|
+
"& .MuiBox-root": {
|
35
|
+
maxHeight: "unset"
|
36
|
+
},
|
37
|
+
"& .MuiInputBase-root, fieldset": {
|
38
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
39
|
+
borderRadius: "8px",
|
40
|
+
"& fieldset": {
|
41
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
42
|
+
background: "transparent",
|
43
|
+
borderRadius: "8px"
|
44
|
+
},
|
45
|
+
"& input": {
|
46
|
+
border: `1px solid transparent`,
|
47
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
48
|
+
borderRadius: "8px",
|
49
|
+
fontSize: "12px",
|
50
|
+
color: theme?.palette?.editor?.textColor
|
51
|
+
}
|
52
|
+
},
|
53
|
+
"& p": {
|
54
|
+
color: theme?.palette?.editor?.textColor
|
55
|
+
},
|
56
|
+
"& .sliderInput": {
|
57
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
58
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
59
|
+
borderRadius: "10px"
|
60
|
+
},
|
61
|
+
"& .style-settings-wrpr": {
|
62
|
+
overflow: "hidden",
|
63
|
+
"&:hover": {
|
64
|
+
overflowY: "auto",
|
65
|
+
"&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb": {
|
66
|
+
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
67
|
+
},
|
68
|
+
"&::-webkit-scrollbar-track, ::-webkit-scrollbar-track": {
|
69
|
+
visibility: "hidden"
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"& svg": {
|
74
|
+
width: "17.5px",
|
75
|
+
height: "17.5px"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"& .MuiList-root": {
|
79
|
+
"& .MuiButtonBase-root": {
|
80
|
+
padding: "8px 12px",
|
81
|
+
"& .MuiTypography-root": {
|
82
|
+
color: `${theme?.palette?.editor?.textColor} !important`,
|
83
|
+
fontSize: "14px",
|
84
|
+
fontWeight: "500",
|
85
|
+
fontFamily: "'Inter',sans-serif"
|
86
|
+
},
|
87
|
+
"&:hover": {
|
88
|
+
background: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`,
|
89
|
+
"& .MuiTypography-root": {
|
90
|
+
color: `${theme?.palette?.editor?.textColor} !important`
|
91
|
+
},
|
92
|
+
"& .MuiListItemIcon-root": {
|
93
|
+
"& .signatureElementIcon, & .newLineElementIcon": {
|
94
|
+
"& path": {
|
95
|
+
fill: `${theme?.palette?.editor?.textColor}`
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"& .commonSvgStyle, & .commonSvgStyle2": {
|
99
|
+
"& path": {
|
100
|
+
stroke: `${theme?.palette?.editor?.textColor}`
|
101
|
+
}
|
102
|
+
},
|
103
|
+
"& .colorBoxElementIcon": {
|
104
|
+
"& path": {
|
105
|
+
stroke: `${theme?.palette?.editor?.textColor}`,
|
106
|
+
fill: "none"
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"& .gridElementIcon": {
|
110
|
+
"& path": {
|
111
|
+
stroke: `${theme?.palette?.editor?.textColor}`,
|
112
|
+
fill: `${theme?.palette?.editor?.textColor}`
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"& .sectionMoreOption": {
|
120
|
+
"& .MuiButtonBase-root": {
|
121
|
+
padding: "12px 12px",
|
122
|
+
color: `${theme?.palette?.editor?.textColor} !important`,
|
123
|
+
fontSize: "14px",
|
124
|
+
fontWeight: "500",
|
125
|
+
fontFamily: "'Inter',sans-serif"
|
126
|
+
}
|
127
|
+
},
|
11
128
|
"& .papper-root": {
|
12
129
|
width: "344px",
|
13
130
|
boxShadow: "none",
|
14
|
-
border: `1px solid ${theme?.palette?.editor?.borderColor}`,
|
15
131
|
borderRadius: "7px",
|
16
132
|
background: theme?.palette?.editor?.background,
|
17
133
|
"& .MuiTypography-root, .MuiInputBase-root, input": {
|
18
134
|
color: theme?.palette?.editor?.textColor
|
19
135
|
},
|
20
|
-
"& .MuiInputBase-root, input": {
|
21
|
-
border: `1px solid ${theme?.palette?.editor?.borderColor}`
|
22
|
-
},
|
23
136
|
"& .borderInput": {
|
24
137
|
background: theme?.palette?.editor?.background,
|
25
138
|
color: theme?.palette?.editor?.textColor
|
26
|
-
},
|
27
|
-
"& .MuiCheckbox-root": {
|
28
|
-
"& svg": {
|
29
|
-
fill: theme?.palette?.editor?.textColor
|
30
|
-
}
|
31
139
|
}
|
32
140
|
},
|
33
141
|
"& .item-list-wrpr": {
|
@@ -37,13 +145,7 @@ const useOptionsPopupStyle = ({
|
|
37
145
|
"& .MuiListItemButton-root": {
|
38
146
|
borderRadius: "7px",
|
39
147
|
color: theme?.palette?.editor?.textColor,
|
40
|
-
"
|
41
|
-
color: theme?.palette?.editor?.activeColor,
|
42
|
-
background: "rgba(233, 243, 254, 1)",
|
43
|
-
"& .MuiTypography-root": {
|
44
|
-
color: theme?.palette?.editor?.activeColor
|
45
|
-
}
|
46
|
-
}
|
148
|
+
alignItems: "center"
|
47
149
|
}
|
48
150
|
},
|
49
151
|
"& .item-wrapper": {
|
@@ -3,7 +3,6 @@ import PersonalVideoIcon from "@mui/icons-material/PersonalVideo";
|
|
3
3
|
import PhoneIphoneIcon from "@mui/icons-material/PhoneIphone";
|
4
4
|
import useSwitchViewport from "./styles";
|
5
5
|
import { useEffect } from "react";
|
6
|
-
import { useEditorContext } from "../../../hooks/useMouseMove";
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
8
|
const SwitchViewport = props => {
|
@@ -13,9 +12,6 @@ const SwitchViewport = props => {
|
|
13
12
|
translation
|
14
13
|
} = props;
|
15
14
|
const classes = useSwitchViewport();
|
16
|
-
const {
|
17
|
-
setActiveBreakPoint
|
18
|
-
} = useEditorContext();
|
19
15
|
useEffect(() => {
|
20
16
|
console.log(breakpoint);
|
21
17
|
}, [breakpoint]);
|
@@ -26,7 +22,6 @@ const SwitchViewport = props => {
|
|
26
22
|
children: /*#__PURE__*/_jsx(IconButton, {
|
27
23
|
className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
|
28
24
|
onClick: () => {
|
29
|
-
setActiveBreakPoint("");
|
30
25
|
onChange("");
|
31
26
|
},
|
32
27
|
children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
|
@@ -36,7 +31,6 @@ const SwitchViewport = props => {
|
|
36
31
|
children: /*#__PURE__*/_jsx(IconButton, {
|
37
32
|
className: `${breakpoint === "xs" ? "active" : ""}`,
|
38
33
|
onClick: () => {
|
39
|
-
setActiveBreakPoint("xs");
|
40
34
|
onChange("xs");
|
41
35
|
},
|
42
36
|
children: /*#__PURE__*/_jsx(PhoneIphoneIcon, {})
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Select as Core } from "@mui/material";
|
2
2
|
import SelectStyles from "./styles";
|
3
3
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
4
|
+
import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
6
|
function Select(props) {
|
6
7
|
const {
|
@@ -13,6 +14,7 @@ function Select(props) {
|
|
13
14
|
const classes = SelectStyles(theme);
|
14
15
|
return /*#__PURE__*/_jsx(Core, {
|
15
16
|
MenuProps: classes.MenuProps,
|
17
|
+
IconComponent: KeyboardArrowDownRoundedIcon,
|
16
18
|
...rest,
|
17
19
|
children: children
|
18
20
|
});
|
@@ -18,6 +18,17 @@ import SearchButton from "../../Elements/Search/SearchButton";
|
|
18
18
|
import canOpen from "../../helper/canOpen";
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
20
20
|
const ELEMENTS_LIST = [{
|
21
|
+
name: "Ask AI to write anything",
|
22
|
+
group: "Infinity AI",
|
23
|
+
desc: "",
|
24
|
+
type: "infinityAI",
|
25
|
+
icon: /*#__PURE__*/_jsx(Icon, {
|
26
|
+
icon: "infinityIcon"
|
27
|
+
}),
|
28
|
+
onInsert: editor => {
|
29
|
+
insertInfinityAI(editor);
|
30
|
+
}
|
31
|
+
}, {
|
21
32
|
name: "Heading 1",
|
22
33
|
desc: "",
|
23
34
|
group: "Text",
|
@@ -276,17 +287,6 @@ const ELEMENTS_LIST = [{
|
|
276
287
|
onInsert: editor => {
|
277
288
|
insertForm(editor);
|
278
289
|
}
|
279
|
-
}, {
|
280
|
-
name: "Ask AI to write anything",
|
281
|
-
group: "Infinity AI",
|
282
|
-
desc: "",
|
283
|
-
type: "infinityAI",
|
284
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
285
|
-
icon: "infinityIcon"
|
286
|
-
}),
|
287
|
-
onInsert: editor => {
|
288
|
-
insertInfinityAI(editor);
|
289
|
-
}
|
290
290
|
}, {
|
291
291
|
name: "Dynamic Table",
|
292
292
|
group: "Dynamic Table",
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import Snackbar from "@mui/material/Snackbar";
|
2
|
+
import Alert from "@mui/material/Alert";
|
3
|
+
import { useState } from "react";
|
4
|
+
import { useEditorContext } from "../../hooks/useMouseMove";
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
6
|
+
const SnackbarAlert = ({
|
7
|
+
message,
|
8
|
+
setShowSnackBar,
|
9
|
+
severity = "info"
|
10
|
+
}) => {
|
11
|
+
const [open, setOpen] = useState(!!message);
|
12
|
+
const {
|
13
|
+
theme
|
14
|
+
} = useEditorContext();
|
15
|
+
return /*#__PURE__*/_jsx(Snackbar, {
|
16
|
+
open: open,
|
17
|
+
autoHideDuration: 3000,
|
18
|
+
onClose: () => {
|
19
|
+
setOpen(false);
|
20
|
+
setShowSnackBar(false);
|
21
|
+
},
|
22
|
+
anchorOrigin: {
|
23
|
+
vertical: "top",
|
24
|
+
horizontal: "right"
|
25
|
+
},
|
26
|
+
children: /*#__PURE__*/_jsx(Alert, {
|
27
|
+
severity: severity,
|
28
|
+
onClose: () => {
|
29
|
+
setOpen(false);
|
30
|
+
setShowSnackBar(false);
|
31
|
+
},
|
32
|
+
sx: {
|
33
|
+
background: theme?.palette?.primary?.gradientBtn,
|
34
|
+
color: "#FFFFFF",
|
35
|
+
"& .MuiAlert-icon": {
|
36
|
+
color: "#FFFFFF"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
children: message
|
40
|
+
})
|
41
|
+
});
|
42
|
+
};
|
43
|
+
export default SnackbarAlert;
|
@@ -53,9 +53,9 @@ const LineSpacing = props => {
|
|
53
53
|
defaultValue: value || 1.43,
|
54
54
|
"aria-label": "Default",
|
55
55
|
valueLabelDisplay: "auto",
|
56
|
-
min: 0.
|
57
|
-
max: 3.
|
58
|
-
step: 0.
|
56
|
+
min: 0.50,
|
57
|
+
max: 3.00,
|
58
|
+
step: 0.01,
|
59
59
|
name: "lineHeight",
|
60
60
|
onChange: handleChange
|
61
61
|
}), /*#__PURE__*/_jsx(Box, {
|
@@ -65,15 +65,16 @@ const LineSpacing = props => {
|
|
65
65
|
color: theme?.palette?.editor?.textColor
|
66
66
|
},
|
67
67
|
name: "lineHeight",
|
68
|
-
value: pro_value,
|
68
|
+
value: pro_value || 1.43,
|
69
69
|
className: "sliderInput",
|
70
70
|
onChange: handleChange,
|
71
71
|
type: "number",
|
72
72
|
placeholder: "0",
|
73
|
-
disabled: true
|
74
|
-
defaultValue
|
73
|
+
disabled: true
|
74
|
+
// defaultValue={pro_value || 1.43}
|
75
75
|
})]
|
76
76
|
})]
|
77
77
|
});
|
78
78
|
};
|
79
|
+
|
79
80
|
export default LineSpacing;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
2
|
import { Button, Grid, Radio, RadioGroup, TextField, FormControl, FormLabel, FormControlLabel, Typography, Tooltip, IconButton } from "@mui/material";
|
3
|
-
import DeleteIcon from "@mui/icons-material/Delete";
|
4
|
-
import Settings from "@mui/icons-material/Settings";
|
5
3
|
import LinkSettings from "../../LinkSettings";
|
6
4
|
import { getLinkType } from "../../../utils/helper";
|
5
|
+
import SettingsIcon from "../../../assets/svg/SettingsIcon";
|
6
|
+
import { DeleteIcon } from "../../../assets/svg/AIIcons";
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
9
|
const MenusArray = props => {
|
@@ -126,6 +126,7 @@ const MenusArray = props => {
|
|
126
126
|
display: "flex",
|
127
127
|
alignItems: "center"
|
128
128
|
},
|
129
|
+
className: "menu-item-app-header",
|
129
130
|
children: [/*#__PURE__*/_jsx(TextField, {
|
130
131
|
name: "text",
|
131
132
|
type: "text",
|
@@ -134,7 +135,8 @@ const MenusArray = props => {
|
|
134
135
|
size: "small",
|
135
136
|
sx: {
|
136
137
|
mb: 0
|
137
|
-
}
|
138
|
+
},
|
139
|
+
className: "text-field1"
|
138
140
|
}), /*#__PURE__*/_jsx(TextField, {
|
139
141
|
name: "url",
|
140
142
|
type: "text",
|
@@ -142,7 +144,8 @@ const MenusArray = props => {
|
|
142
144
|
onChange: handleChange(i),
|
143
145
|
size: "small",
|
144
146
|
fullWidth: true,
|
145
|
-
disabled: true
|
147
|
+
disabled: true,
|
148
|
+
className: "text-field1"
|
146
149
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
147
150
|
title: translation("Link Settings"),
|
148
151
|
arrow: true,
|
@@ -151,14 +154,18 @@ const MenusArray = props => {
|
|
151
154
|
menu: m,
|
152
155
|
index: i
|
153
156
|
}),
|
154
|
-
children: /*#__PURE__*/_jsx(
|
157
|
+
children: /*#__PURE__*/_jsx(SettingsIcon, {
|
158
|
+
className: "settingsIcon"
|
159
|
+
})
|
155
160
|
})
|
156
161
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
157
162
|
title: translation("Delete Menu"),
|
158
163
|
arrow: true,
|
159
164
|
children: /*#__PURE__*/_jsx(IconButton, {
|
160
165
|
onClick: onDelete(i),
|
161
|
-
children: /*#__PURE__*/_jsx(DeleteIcon, {
|
166
|
+
children: /*#__PURE__*/_jsx(DeleteIcon, {
|
167
|
+
className: "deleteIcon"
|
168
|
+
})
|
162
169
|
})
|
163
170
|
})]
|
164
171
|
}, `add-m-${i}`);
|