@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,9 +1,8 @@
|
|
1
1
|
const useElementSettingsStyle = theme => ({
|
2
2
|
root: {
|
3
3
|
zIndex: 1200,
|
4
|
-
background: theme?.palette?.editor?.
|
5
|
-
|
6
|
-
borderRadius: "20px",
|
4
|
+
background: theme?.palette?.editor?.background,
|
5
|
+
borderRadius: "10px",
|
7
6
|
overflow: "hidden",
|
8
7
|
boxShadow: "0px 0px 12px 4px #00000014",
|
9
8
|
padding: "10px 16px",
|
@@ -59,34 +58,28 @@ const useElementSettingsStyle = theme => ({
|
|
59
58
|
maxHeight: "500px",
|
60
59
|
overflowX: "hidden",
|
61
60
|
overflowY: "auto",
|
62
|
-
background: theme?.palette?.editor?.
|
63
|
-
paddingLeft: "
|
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
|
-
},
|
61
|
+
background: theme?.palette?.editor?.background,
|
62
|
+
paddingLeft: "4px",
|
75
63
|
"& .MuiTypography-root, .MuiInputBase-root, input": {
|
76
64
|
color: theme?.palette?.editor?.textColor
|
77
65
|
},
|
66
|
+
"& .MuiInputBase-root, input": {
|
67
|
+
border: `1px solid ${theme?.palette?.editor?.borderColor}`
|
68
|
+
},
|
78
69
|
"& .borderInput": {
|
79
70
|
background: theme?.palette?.editor?.background,
|
80
71
|
color: theme?.palette?.editor?.textColor
|
81
72
|
},
|
73
|
+
"& .MuiCheckbox-root": {
|
74
|
+
"& svg": {
|
75
|
+
fill: theme?.palette?.editor?.textColor
|
76
|
+
}
|
77
|
+
},
|
82
78
|
"& .fillPath": {
|
83
79
|
fill: theme?.palette?.editor?.textColor
|
84
80
|
},
|
85
81
|
"& .MuiIconButton-root": {
|
86
82
|
color: theme?.palette?.editor?.textColor
|
87
|
-
},
|
88
|
-
"& .MuiFormHelperText-root": {
|
89
|
-
color: theme?.palette?.editor?.textColor
|
90
83
|
}
|
91
84
|
},
|
92
85
|
"& .item-wrapper": {
|
@@ -111,134 +104,6 @@ const useElementSettingsStyle = theme => ({
|
|
111
104
|
}
|
112
105
|
}
|
113
106
|
}
|
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
|
-
}
|
242
107
|
}
|
243
108
|
},
|
244
109
|
dialog: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { Box, Paper, Popper, Typography, Tooltip, IconButton
|
3
|
-
import
|
2
|
+
import { Box, Paper, Popper, Typography, Tooltip, IconButton } from "@mui/material";
|
3
|
+
import CloseIcon from "@mui/icons-material/Close";
|
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",
|
34
34
|
children: [translation(title), /*#__PURE__*/_jsx(Box, {
|
35
35
|
component: "div",
|
36
36
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
@@ -38,14 +38,11 @@ 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(CloseIcon, {})
|
42
42
|
})
|
43
43
|
})
|
44
44
|
})]
|
45
|
-
}),
|
46
|
-
className: "sectionOptionChild",
|
47
|
-
children: children
|
48
|
-
})]
|
45
|
+
}), children]
|
49
46
|
})
|
50
47
|
}) : null;
|
51
48
|
};
|
@@ -3,139 +3,31 @@ const useOptionsPopupStyle = ({
|
|
3
3
|
}) => ({
|
4
4
|
root: {
|
5
5
|
zIndex: 1200,
|
6
|
-
background: theme?.palette?.editor?.
|
7
|
-
|
8
|
-
borderRadius: "20px",
|
6
|
+
background: theme?.palette?.editor?.background,
|
7
|
+
borderRadius: "7px",
|
9
8
|
overflow: "hidden",
|
10
|
-
boxShadow: "
|
9
|
+
boxShadow: "1px 1px 3px rgba(0,0,0,0.3)",
|
11
10
|
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
|
-
},
|
128
11
|
"& .papper-root": {
|
129
12
|
width: "344px",
|
130
13
|
boxShadow: "none",
|
14
|
+
border: `1px solid ${theme?.palette?.editor?.borderColor}`,
|
131
15
|
borderRadius: "7px",
|
132
16
|
background: theme?.palette?.editor?.background,
|
133
17
|
"& .MuiTypography-root, .MuiInputBase-root, input": {
|
134
18
|
color: theme?.palette?.editor?.textColor
|
135
19
|
},
|
20
|
+
"& .MuiInputBase-root, input": {
|
21
|
+
border: `1px solid ${theme?.palette?.editor?.borderColor}`
|
22
|
+
},
|
136
23
|
"& .borderInput": {
|
137
24
|
background: theme?.palette?.editor?.background,
|
138
25
|
color: theme?.palette?.editor?.textColor
|
26
|
+
},
|
27
|
+
"& .MuiCheckbox-root": {
|
28
|
+
"& svg": {
|
29
|
+
fill: theme?.palette?.editor?.textColor
|
30
|
+
}
|
139
31
|
}
|
140
32
|
},
|
141
33
|
"& .item-list-wrpr": {
|
@@ -145,7 +37,13 @@ const useOptionsPopupStyle = ({
|
|
145
37
|
"& .MuiListItemButton-root": {
|
146
38
|
borderRadius: "7px",
|
147
39
|
color: theme?.palette?.editor?.textColor,
|
148
|
-
|
40
|
+
"&:hover": {
|
41
|
+
color: theme?.palette?.editor?.activeColor,
|
42
|
+
background: "rgba(233, 243, 254, 1)",
|
43
|
+
"& .MuiTypography-root": {
|
44
|
+
color: theme?.palette?.editor?.activeColor
|
45
|
+
}
|
46
|
+
}
|
149
47
|
}
|
150
48
|
},
|
151
49
|
"& .item-wrapper": {
|
@@ -3,6 +3,7 @@ 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";
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
9
|
const SwitchViewport = props => {
|
@@ -12,6 +13,9 @@ const SwitchViewport = props => {
|
|
12
13
|
translation
|
13
14
|
} = props;
|
14
15
|
const classes = useSwitchViewport();
|
16
|
+
const {
|
17
|
+
setActiveBreakPoint
|
18
|
+
} = useEditorContext();
|
15
19
|
useEffect(() => {
|
16
20
|
console.log(breakpoint);
|
17
21
|
}, [breakpoint]);
|
@@ -22,6 +26,7 @@ const SwitchViewport = props => {
|
|
22
26
|
children: /*#__PURE__*/_jsx(IconButton, {
|
23
27
|
className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
|
24
28
|
onClick: () => {
|
29
|
+
setActiveBreakPoint("");
|
25
30
|
onChange("");
|
26
31
|
},
|
27
32
|
children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
|
@@ -31,6 +36,7 @@ const SwitchViewport = props => {
|
|
31
36
|
children: /*#__PURE__*/_jsx(IconButton, {
|
32
37
|
className: `${breakpoint === "xs" ? "active" : ""}`,
|
33
38
|
onClick: () => {
|
39
|
+
setActiveBreakPoint("xs");
|
34
40
|
onChange("xs");
|
35
41
|
},
|
36
42
|
children: /*#__PURE__*/_jsx(PhoneIphoneIcon, {})
|
@@ -1,7 +1,6 @@
|
|
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';
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
5
|
function Select(props) {
|
7
6
|
const {
|
@@ -14,7 +13,6 @@ function Select(props) {
|
|
14
13
|
const classes = SelectStyles(theme);
|
15
14
|
return /*#__PURE__*/_jsx(Core, {
|
16
15
|
MenuProps: classes.MenuProps,
|
17
|
-
IconComponent: KeyboardArrowDownRoundedIcon,
|
18
16
|
...rest,
|
19
17
|
children: children
|
20
18
|
});
|
@@ -18,17 +18,6 @@ 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
|
-
}, {
|
32
21
|
name: "Heading 1",
|
33
22
|
desc: "",
|
34
23
|
group: "Text",
|
@@ -287,6 +276,17 @@ const ELEMENTS_LIST = [{
|
|
287
276
|
onInsert: editor => {
|
288
277
|
insertForm(editor);
|
289
278
|
}
|
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",
|
@@ -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.5,
|
57
|
+
max: 3.0,
|
58
|
+
step: 0.1,
|
59
59
|
name: "lineHeight",
|
60
60
|
onChange: handleChange
|
61
61
|
}), /*#__PURE__*/_jsx(Box, {
|
@@ -65,16 +65,15 @@ const LineSpacing = props => {
|
|
65
65
|
color: theme?.palette?.editor?.textColor
|
66
66
|
},
|
67
67
|
name: "lineHeight",
|
68
|
-
value: pro_value
|
68
|
+
value: pro_value,
|
69
69
|
className: "sliderInput",
|
70
70
|
onChange: handleChange,
|
71
71
|
type: "number",
|
72
72
|
placeholder: "0",
|
73
|
-
disabled: true
|
74
|
-
|
73
|
+
disabled: true,
|
74
|
+
defaultValue: pro_value || 1.43
|
75
75
|
})]
|
76
76
|
})]
|
77
77
|
});
|
78
78
|
};
|
79
|
-
|
80
79
|
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";
|
3
5
|
import LinkSettings from "../../LinkSettings";
|
4
6
|
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,7 +126,6 @@ const MenusArray = props => {
|
|
126
126
|
display: "flex",
|
127
127
|
alignItems: "center"
|
128
128
|
},
|
129
|
-
className: "menu-item-app-header",
|
130
129
|
children: [/*#__PURE__*/_jsx(TextField, {
|
131
130
|
name: "text",
|
132
131
|
type: "text",
|
@@ -135,8 +134,7 @@ const MenusArray = props => {
|
|
135
134
|
size: "small",
|
136
135
|
sx: {
|
137
136
|
mb: 0
|
138
|
-
}
|
139
|
-
className: "text-field1"
|
137
|
+
}
|
140
138
|
}), /*#__PURE__*/_jsx(TextField, {
|
141
139
|
name: "url",
|
142
140
|
type: "text",
|
@@ -144,8 +142,7 @@ const MenusArray = props => {
|
|
144
142
|
onChange: handleChange(i),
|
145
143
|
size: "small",
|
146
144
|
fullWidth: true,
|
147
|
-
disabled: true
|
148
|
-
className: "text-field1"
|
145
|
+
disabled: true
|
149
146
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
150
147
|
title: translation("Link Settings"),
|
151
148
|
arrow: true,
|
@@ -154,18 +151,14 @@ const MenusArray = props => {
|
|
154
151
|
menu: m,
|
155
152
|
index: i
|
156
153
|
}),
|
157
|
-
children: /*#__PURE__*/_jsx(
|
158
|
-
className: "settingsIcon"
|
159
|
-
})
|
154
|
+
children: /*#__PURE__*/_jsx(Settings, {})
|
160
155
|
})
|
161
156
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
162
157
|
title: translation("Delete Menu"),
|
163
158
|
arrow: true,
|
164
159
|
children: /*#__PURE__*/_jsx(IconButton, {
|
165
160
|
onClick: onDelete(i),
|
166
|
-
children: /*#__PURE__*/_jsx(DeleteIcon, {
|
167
|
-
className: "deleteIcon"
|
168
|
-
})
|
161
|
+
children: /*#__PURE__*/_jsx(DeleteIcon, {})
|
169
162
|
})
|
170
163
|
})]
|
171
164
|
}, `add-m-${i}`);
|
@@ -25,11 +25,13 @@ const pageSettingsStyle = [{
|
|
25
25
|
label: "Padding",
|
26
26
|
key: "bannerSpacing",
|
27
27
|
type: "bannerSpacing"
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
}
|
29
|
+
// {
|
30
|
+
// label: "Line Spacing",
|
31
|
+
// key: "lineHeight",
|
32
|
+
// type: "lineSpacing",
|
33
|
+
// },
|
34
|
+
]
|
33
35
|
}, {
|
34
36
|
tab: "Max Width",
|
35
37
|
value: "maxWidth",
|