@flozy/editor 10.1.0 → 10.1.2
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/ChatEditor.js +17 -16
- package/dist/Editor/CommonEditor.js +115 -15
- package/dist/Editor/DialogWrapper.js +31 -25
- package/dist/Editor/Editor.css +16 -8
- package/dist/Editor/Elements/AI/PopoverAIInput.js +11 -3
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/Button/EditorButton.js +25 -9
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +61 -14
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +25 -1
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +10 -7
- package/dist/Editor/Elements/Color Picker/Styles.js +15 -13
- 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 +21 -6
- 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/Embed/Video.js +1 -1
- 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 +179 -168
- package/dist/Editor/Elements/Form/FormField.js +10 -4
- package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +6 -24
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +7 -4
- package/dist/Editor/Elements/FreeGrid/Options/More.js +8 -8
- package/dist/Editor/Elements/FreeGrid/styles.js +67 -7
- package/dist/Editor/Elements/Grid/GridItem.js +1 -1
- package/dist/Editor/Elements/List/CheckList.js +4 -1
- 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/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/Table.js +3 -3
- package/dist/Editor/Elements/Title/title.js +6 -6
- package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
- package/dist/Editor/MiniEditor.js +2 -1
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +2 -1
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +4 -2
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +167 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -4
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +2 -1
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -12
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +100 -27
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +439 -0
- package/dist/Editor/Toolbar/PopupTool/index.js +1 -1
- package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
- package/dist/Editor/assets/svg/BackIcon.js +18 -0
- 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/assets/svg/ThemeIcons.js +293 -0
- package/dist/Editor/common/ColorPickerButton.js +38 -16
- package/dist/Editor/common/CustomColorPicker/index.js +130 -0
- package/dist/Editor/common/CustomColorPicker/style.js +53 -0
- package/dist/Editor/common/CustomDialog2/index.js +94 -0
- package/dist/Editor/common/CustomDialog2/style.js +67 -0
- package/dist/Editor/common/CustomSelect.js +43 -0
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +3 -0
- package/dist/Editor/common/Icon.js +31 -1
- package/dist/Editor/common/ImageSelector/Styles.js +3 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +34 -8
- package/dist/Editor/common/LinkSettings/index.js +84 -68
- package/dist/Editor/common/LinkSettings/style.js +245 -30
- 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 +6 -5
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +3 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +3 -2
- 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 +8 -5
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +6 -3
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +1 -2
- package/dist/Editor/common/RnD/index.js +5 -6
- package/dist/Editor/common/Select/index.js +2 -0
- package/dist/Editor/common/Shorthands/elements.js +54 -0
- package/dist/Editor/common/SnackBar/index.js +43 -0
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +12 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +16 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +36 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +16 -7
- 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/fieldTypes/textOptions.js +15 -7
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
- package/dist/Editor/common/Uploader.js +8 -0
- package/dist/Editor/common/iconListV2.js +101 -6
- package/dist/Editor/common/iconslist.js +24 -0
- package/dist/Editor/commonStyle.js +174 -61
- package/dist/Editor/helper/textIndeces.js +58 -0
- package/dist/Editor/helper/theme.js +203 -2
- package/dist/Editor/hooks/useEditorTheme.js +153 -0
- package/dist/Editor/hooks/useMouseMove.js +8 -5
- package/dist/Editor/hooks/useThemeValues.js +63 -0
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +3 -1
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +50 -173
- package/dist/Editor/theme/index.js +149 -0
- package/dist/Editor/themeSettings/ActiveTheme.js +72 -0
- package/dist/Editor/themeSettings/buttons/index.js +290 -0
- package/dist/Editor/themeSettings/buttons/style.js +23 -0
- package/dist/Editor/themeSettings/colorTheme/index.js +309 -0
- package/dist/Editor/themeSettings/colorTheme/style.js +81 -0
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +121 -0
- package/dist/Editor/themeSettings/fonts/index.js +240 -0
- package/dist/Editor/themeSettings/fonts/style.js +62 -0
- package/dist/Editor/themeSettings/icons.js +60 -0
- package/dist/Editor/themeSettings/index.js +361 -0
- package/dist/Editor/themeSettings/style.js +292 -0
- package/dist/Editor/themeSettingsAI/icons.js +96 -0
- package/dist/Editor/themeSettingsAI/index.js +355 -0
- package/dist/Editor/themeSettingsAI/saveTheme.js +202 -0
- package/dist/Editor/themeSettingsAI/style.js +324 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +166 -43
- package/dist/Editor/utils/button.js +1 -17
- package/dist/Editor/utils/draftToSlate.js +3 -2
- package/dist/Editor/utils/font.js +40 -37
- package/dist/Editor/utils/helper.js +90 -19
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
const ButtonNavSettingsStyles = theme => ({
|
2
2
|
dialogContainer: {
|
3
3
|
"& .MuiDialogContent-root": {
|
4
|
-
padding: "0px
|
4
|
+
padding: "0px 16px"
|
5
5
|
},
|
6
6
|
"& .MuiDialogActions-root": {
|
7
7
|
padding: "10px"
|
@@ -18,62 +18,187 @@ const ButtonNavSettingsStyles = theme => ({
|
|
18
18
|
padding: "14px"
|
19
19
|
},
|
20
20
|
"& .MuiPaper-root": {
|
21
|
-
|
21
|
+
padding: "10px !important",
|
22
|
+
borderRadius: "20px !important",
|
23
|
+
backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
|
24
|
+
border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
|
22
25
|
"& .MuiTypography-root": {
|
23
26
|
color: theme?.palette?.editor?.textColor
|
24
27
|
},
|
25
|
-
"& .MuiInputBase-root": {
|
26
|
-
border: `1px solid ${theme?.palette?.editor?.textColor}`,
|
27
|
-
color: theme?.palette?.editor?.textColor
|
28
|
-
},
|
29
28
|
"& .MuiSvgIcon-root": {
|
30
29
|
color: theme?.palette?.editor?.textColor
|
31
30
|
},
|
32
31
|
"& .MuiFormLabel-root": {
|
33
32
|
color: theme?.palette?.editor?.textColor,
|
34
|
-
backgroundColor:
|
33
|
+
backgroundColor: "transparent"
|
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
|
+
}
|
35
126
|
}
|
36
127
|
}
|
37
128
|
},
|
38
129
|
customSelect: {
|
39
130
|
zIndex: "1302 !important",
|
40
131
|
"& .MuiPopover-paper": {
|
41
|
-
background: theme?.palette?.editor?.
|
42
|
-
color: theme?.palette?.editor?.textColor
|
132
|
+
background: theme?.palette?.editor?.textWeightPopUpBackground,
|
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
|
+
}
|
43
153
|
}
|
44
154
|
},
|
45
155
|
saveBtn: {
|
46
|
-
color: "#fff",
|
47
|
-
background: "#2563EB",
|
48
|
-
fontSize: "14px",
|
49
|
-
fontWeight:
|
50
|
-
padding: "
|
51
|
-
textTransform: "none",
|
156
|
+
color: "#fff !important",
|
157
|
+
background: "#2563EB !important",
|
158
|
+
fontSize: "14px !important",
|
159
|
+
fontWeight: "700 !important",
|
160
|
+
padding: "8px 24px !important",
|
161
|
+
textTransform: "none !important",
|
162
|
+
borderRadius: "8px !important",
|
163
|
+
fontFamily: "'Inter',sans-serif !important",
|
52
164
|
"&:hover": {
|
53
|
-
color: "#fff",
|
54
|
-
background: "#2563EB"
|
165
|
+
color: "#fff !important",
|
166
|
+
background: "#2563EB !important"
|
55
167
|
}
|
56
168
|
},
|
57
169
|
closeBtn: {
|
58
|
-
backgroundColor:
|
59
|
-
color:
|
60
|
-
fontSize: "14px",
|
61
|
-
fontWeight:
|
62
|
-
padding: "
|
63
|
-
textTransform: "none",
|
64
|
-
border:
|
170
|
+
backgroundColor: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
|
171
|
+
color: `${theme?.palette?.editor?.customDialogueCloseBtnColor} !important`,
|
172
|
+
fontSize: "14px !important",
|
173
|
+
fontWeight: "700 !important",
|
174
|
+
padding: "8px 22px !important",
|
175
|
+
textTransform: "none !important",
|
176
|
+
border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder} !important`,
|
177
|
+
borderRadius: "8px !important",
|
178
|
+
fontFamily: "'Inter',sans-serif !important",
|
65
179
|
"&:hover": {
|
66
|
-
border:
|
180
|
+
border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder} !important`,
|
181
|
+
backgroundColor: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
|
182
|
+
color: `${theme?.palette?.editor?.customDialogueCloseBtnColor} !important`
|
67
183
|
}
|
68
184
|
},
|
69
185
|
closeIcon: {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
186
|
+
background: theme?.palette?.editor?.closeButtonBackground,
|
187
|
+
borderRadius: "8px",
|
188
|
+
padding: "2px",
|
189
|
+
marginRight: "8px",
|
190
|
+
"& svg": {
|
191
|
+
fill: theme?.palette?.editor?.closeButtonSvgStroke
|
192
|
+
}
|
74
193
|
},
|
75
194
|
gridDivider: {
|
76
|
-
borderRight:
|
195
|
+
borderRight: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
|
196
|
+
"& .MuiTypography-root": {
|
197
|
+
color: "#64748B !important",
|
198
|
+
fontFamily: "'Inter',sans-serif",
|
199
|
+
fontWeight: 500,
|
200
|
+
fontSize: "16px"
|
201
|
+
}
|
77
202
|
},
|
78
203
|
mobileActionBtns: {
|
79
204
|
display: "flex",
|
@@ -82,6 +207,96 @@ const ButtonNavSettingsStyles = theme => ({
|
|
82
207
|
paddingTop: "14px",
|
83
208
|
marginTop: "14px",
|
84
209
|
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
|
+
}
|
85
300
|
}
|
86
301
|
});
|
87
302
|
export default ButtonNavSettingsStyles;
|
@@ -1,19 +1,18 @@
|
|
1
1
|
import { Button, IconButton } from "@mui/material";
|
2
|
-
import
|
2
|
+
import CloseRoundedIcon from '@mui/icons-material/CloseRounded';
|
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";
|
6
4
|
import DragIndicatorIcon from "@mui/icons-material/DragIndicator";
|
7
5
|
import MoreVertIcon from "@mui/icons-material/MoreVert";
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
6
|
+
import AddRoundedIcon from '@mui/icons-material/AddRounded';
|
7
|
+
import ArrowUpwardRoundedIcon from '@mui/icons-material/ArrowUpwardRounded';
|
8
|
+
import ArrowDownwardRoundedIcon from '@mui/icons-material/ArrowDownwardRounded';
|
11
9
|
import SaveIcon from "@mui/icons-material/Save";
|
12
10
|
import LinkIcon from "./Icons/LinkIcon";
|
13
|
-
import CodeIcon from "@mui/icons-material/Code";
|
14
11
|
import FilterFramesIcon from "@mui/icons-material/FilterFrames";
|
15
12
|
import { GridAddSectionIcon, SignatureIcon, WorkflowIcon } from "../../iconslist";
|
16
13
|
import Delete from "@mui/icons-material/Delete";
|
14
|
+
import SettingsIcon from "../../../assets/svg/SettingsIcon";
|
15
|
+
import { CodeElementIcon, PenIcon, SaveTemplIcon } from "../../iconListV2";
|
17
16
|
const Actions = {
|
18
17
|
ai: {
|
19
18
|
type: "ai",
|
@@ -30,7 +29,7 @@ const Actions = {
|
|
30
29
|
addElementInSection: {
|
31
30
|
type: "addElement",
|
32
31
|
Button: IconButton,
|
33
|
-
Icon:
|
32
|
+
Icon: AddRoundedIcon,
|
34
33
|
title: "Add Element"
|
35
34
|
},
|
36
35
|
settings: {
|
@@ -74,25 +73,25 @@ const Actions = {
|
|
74
73
|
edit: {
|
75
74
|
type: 2,
|
76
75
|
Button: IconButton,
|
77
|
-
Icon:
|
76
|
+
Icon: PenIcon,
|
78
77
|
title: "Edit"
|
79
78
|
},
|
80
79
|
close: {
|
81
80
|
type: 3,
|
82
81
|
Button: IconButton,
|
83
|
-
Icon:
|
82
|
+
Icon: CloseRoundedIcon,
|
84
83
|
title: "close"
|
85
84
|
},
|
86
85
|
moveUp: {
|
87
86
|
type: "moveUp",
|
88
87
|
Button: IconButton,
|
89
|
-
Icon:
|
88
|
+
Icon: ArrowUpwardRoundedIcon,
|
90
89
|
title: "Move Up"
|
91
90
|
},
|
92
91
|
moveDown: {
|
93
92
|
type: "moveDown",
|
94
93
|
Button: IconButton,
|
95
|
-
Icon:
|
94
|
+
Icon: ArrowDownwardRoundedIcon,
|
96
95
|
title: "Move Down"
|
97
96
|
},
|
98
97
|
addFormField: {
|
@@ -110,13 +109,13 @@ const Actions = {
|
|
110
109
|
embedScript: {
|
111
110
|
type: "addEmbedScript",
|
112
111
|
Button: IconButton,
|
113
|
-
Icon:
|
112
|
+
Icon: CodeElementIcon,
|
114
113
|
title: "Embed Code"
|
115
114
|
},
|
116
115
|
saveAsTemplate: {
|
117
116
|
type: "saveAsTemplate",
|
118
117
|
Button: IconButton,
|
119
|
-
Icon:
|
118
|
+
Icon: SaveTemplIcon,
|
120
119
|
title: "Save As Template"
|
121
120
|
},
|
122
121
|
imageFrame: {
|
@@ -8,6 +8,7 @@ const LinkIcon = () => {
|
|
8
8
|
height: "18",
|
9
9
|
viewBox: "0 0 18 18",
|
10
10
|
fill: "none",
|
11
|
+
className: "settingsIcon",
|
11
12
|
children: [/*#__PURE__*/_jsx("path", {
|
12
13
|
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",
|
13
14
|
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: enable === type || selectedAction === type ? "active" : ""
|
68
|
+
className: `${enable === type || selectedAction === type || Actions[action]?.type === menu?.type ? "active" : ""} elementOption`,
|
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 popUpOptions",
|
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: "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
|
})]
|
@@ -68,7 +68,8 @@ const Settings = props => {
|
|
68
68
|
editor: editor,
|
69
69
|
path: path,
|
70
70
|
customProps: customProps,
|
71
|
-
theme: theme
|
71
|
+
theme: theme,
|
72
|
+
onClose: onClose
|
72
73
|
}) : null
|
73
74
|
})]
|
74
75
|
})
|
@@ -8,7 +8,8 @@ const AppHeaderSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -27,7 +28,7 @@ const AppHeaderSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -8,7 +8,8 @@ const BoxSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path];
|
@@ -27,7 +28,7 @@ const BoxSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -8,7 +8,8 @@ const ButtonSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -28,7 +29,7 @@ const ButtonSettings = props => {
|
|
28
29
|
});
|
29
30
|
};
|
30
31
|
const handleClose = () => {
|
31
|
-
|
32
|
+
onClose();
|
32
33
|
};
|
33
34
|
return /*#__PURE__*/_jsx(Box, {
|
34
35
|
component: "div",
|
@@ -8,7 +8,8 @@ const CodeSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -27,7 +28,7 @@ const CodeSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -12,7 +12,8 @@ const FormSettings = props => {
|
|
12
12
|
const {
|
13
13
|
editor,
|
14
14
|
path,
|
15
|
-
customProps
|
15
|
+
customProps,
|
16
|
+
onClose
|
16
17
|
} = props;
|
17
18
|
const item_path = path?.split("|").map(m => parseInt(m));
|
18
19
|
const element_path = [...item_path];
|
@@ -56,13 +57,14 @@ const FormSettings = props => {
|
|
56
57
|
}
|
57
58
|
};
|
58
59
|
const handleClose = () => {
|
59
|
-
|
60
|
+
onClose();
|
60
61
|
};
|
61
62
|
const muiTheme = createTheme({
|
62
63
|
components: {
|
63
64
|
MuiAccordion: {
|
64
65
|
styleOverrides: {
|
65
66
|
root: {
|
67
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
66
68
|
"& .MuiAccordionSummary-root": {
|
67
69
|
flexDirection: "row-reverse",
|
68
70
|
"& .MuiSvgIcon-root": {
|
@@ -8,7 +8,8 @@ const ImageSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -27,7 +28,7 @@ const ImageSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -9,7 +9,8 @@ const TableSettings = props => {
|
|
9
9
|
const {
|
10
10
|
editor,
|
11
11
|
path,
|
12
|
-
customProps
|
12
|
+
customProps,
|
13
|
+
onClose
|
13
14
|
} = props;
|
14
15
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
16
|
const element_path = [...item_path, 0];
|
@@ -57,7 +58,7 @@ const TableSettings = props => {
|
|
57
58
|
}
|
58
59
|
};
|
59
60
|
const handleClose = () => {
|
60
|
-
|
61
|
+
onClose();
|
61
62
|
};
|
62
63
|
return /*#__PURE__*/_jsx(Box, {
|
63
64
|
component: "div",
|
@@ -9,6 +9,7 @@ const TextSettings = props => {
|
|
9
9
|
editor,
|
10
10
|
path,
|
11
11
|
theme,
|
12
|
+
onClose,
|
12
13
|
customProps
|
13
14
|
} = props;
|
14
15
|
const item_path = path.split("|").map(m => parseInt(m));
|
@@ -27,7 +28,8 @@ const TextSettings = props => {
|
|
27
28
|
return /*#__PURE__*/_jsx(TextFormat, {
|
28
29
|
classes: classes,
|
29
30
|
editor: editor,
|
30
|
-
customProps: customProps
|
31
|
+
customProps: customProps,
|
32
|
+
closeMainPopup: onClose
|
31
33
|
});
|
32
34
|
};
|
33
35
|
export default TextSettings;
|