@flozy/editor 5.1.2 → 5.1.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.
Files changed (146) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +7 -13
  3. package/dist/Editor/Editor.css +10 -52
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +10 -17
  6. package/dist/Editor/Elements/AI/Styles.js +1 -7
  7. package/dist/Editor/Elements/Button/EditorButton.js +1 -0
  8. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  9. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  10. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  11. package/dist/Editor/Elements/Form/Form.js +2 -38
  12. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  13. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  14. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  15. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  16. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  17. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  18. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  19. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  20. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  21. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  22. package/dist/Editor/Elements/Grid/GridButton.js +1 -2
  23. package/dist/Editor/Elements/Grid/GridItem.js +2 -3
  24. package/dist/Editor/Elements/Grid/Styles.js +3 -0
  25. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  26. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  27. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  28. package/dist/Editor/Elements/Signature/SignaturePopup.js +48 -13
  29. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  30. package/dist/Editor/Elements/SimpleText/style.js +1 -8
  31. package/dist/Editor/Elements/Table/Styles.js +43 -25
  32. package/dist/Editor/Elements/Table/Table.js +138 -206
  33. package/dist/Editor/Elements/Table/TableCell.js +102 -355
  34. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  35. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  36. package/dist/Editor/Styles/EditorStyles.js +1 -3
  37. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  38. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +11 -7
  39. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -10
  40. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  41. package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -0
  42. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  43. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  44. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  45. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +11 -16
  46. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +49 -416
  47. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -62
  48. package/dist/Editor/Toolbar/PopupTool/index.js +6 -5
  49. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  50. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  51. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  52. package/dist/Editor/common/ColorPickerButton.js +2 -3
  53. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  54. package/dist/Editor/common/Icon.js +23 -24
  55. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  56. package/dist/Editor/common/LinkSettings/index.js +1 -2
  57. package/dist/Editor/common/MentionsPopup/Styles.js +3 -151
  58. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  59. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
  60. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  61. package/dist/Editor/common/Shorthands/elements.js +1 -13
  62. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
  63. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  64. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  65. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -5
  66. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  67. package/dist/Editor/common/StyleBuilder/index.js +11 -84
  68. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  69. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  70. package/dist/Editor/common/Uploader.js +0 -8
  71. package/dist/Editor/common/iconListV2.js +40 -378
  72. package/dist/Editor/common/iconslist.js +5 -8
  73. package/dist/Editor/commonStyle.js +9 -117
  74. package/dist/Editor/helper/deserialize/index.js +1 -4
  75. package/dist/Editor/helper/index.js +2 -2
  76. package/dist/Editor/helper/theme.js +1 -24
  77. package/dist/Editor/hooks/useMouseMove.js +2 -5
  78. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -3
  79. package/dist/Editor/plugins/withHTML.js +1 -17
  80. package/dist/Editor/plugins/withLayout.js +1 -48
  81. package/dist/Editor/utils/SlateUtilityFunctions.js +0 -18
  82. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -21
  83. package/dist/Editor/utils/embed.js +1 -2
  84. package/dist/Editor/utils/events.js +1 -0
  85. package/dist/Editor/utils/font.js +4 -11
  86. package/dist/Editor/utils/formfield.js +4 -8
  87. package/dist/Editor/utils/helper.js +1 -34
  88. package/dist/Editor/utils/insertNewLine.js +1 -19
  89. package/dist/Editor/utils/pageSettings.js +2 -14
  90. package/dist/Editor/utils/serializeToText.js +0 -2
  91. package/dist/Editor/utils/table.js +24 -228
  92. package/package.json +1 -1
  93. package/dist/Editor/Elements/DataView/DataView.js +0 -101
  94. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  95. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -59
  96. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -30
  97. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -140
  98. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  99. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -59
  100. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -26
  101. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -38
  102. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  103. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  104. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  105. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  106. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  107. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  108. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  109. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  110. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  111. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  112. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  113. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  114. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  115. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  116. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  117. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -62
  118. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  119. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  120. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  121. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  122. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  123. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  124. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  125. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  126. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -100
  127. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  128. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -70
  129. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  130. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -288
  131. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  132. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -72
  133. package/dist/Editor/Elements/DataView/styles.js +0 -143
  134. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  135. package/dist/Editor/Elements/Table/DragButton.js +0 -141
  136. package/dist/Editor/Elements/Table/DragStyles.js +0 -69
  137. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  138. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  139. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  140. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  141. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  142. package/dist/Editor/common/Select/index.js +0 -20
  143. package/dist/Editor/common/Select/styles.js +0 -17
  144. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  145. package/dist/Editor/hooks/useTable.js +0 -175
  146. package/dist/Editor/utils/dataView.js +0 -43
@@ -1,15 +1,14 @@
1
1
  const usePopupStyle = theme => ({
2
2
  popupWrapper: {
3
- boxShadow: theme?.palette?.type === "light" ? "1px 2px 15px 0px #2563EB40" : "unset",
3
+ boxShadow: "1px 2px 15px 0px #2563EB40",
4
4
  zIndex: 1300,
5
5
  marginBottom: "12px !important",
6
- borderRadius: "20px !important",
7
- border: `1px solid ${theme?.palette?.editor?.popUpBorderColor} !important`,
6
+ borderRadius: "6px",
7
+ border: "1px solid #D8DDE1",
8
8
  maxWidth: "100%",
9
9
  // maxHeight: "40px",
10
10
  "&.fullscreen": {
11
11
  marginBottom: "0px !important",
12
- borderRadius: "0px !important",
13
12
  "& .papper-wrpr": {
14
13
  boxShadow: "none"
15
14
  }
@@ -18,42 +17,7 @@ const usePopupStyle = theme => ({
18
17
  transform: "none !important"
19
18
  },
20
19
  "& .MuiPaper-root": {
21
- backgroundColor: `${theme?.palette?.editor?.textFormatBgColor} !important`,
22
- borderRadius: "19px !important"
23
- },
24
- "& .MuiDialog-paperFullScreen": {
25
- borderRadius: "0px !important"
26
- },
27
- "& .inputField": {
28
- height: "29px",
29
- "& .MuiIconButton-root": {
30
- padding: "5px"
31
- },
32
- "& .MuiOutlinedInput-root ": {
33
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
34
- borderRadius: "8px",
35
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
36
- },
37
- "& .MuiFormControl-root": {
38
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
39
- borderRadius: "8px",
40
- height: "29px"
41
- },
42
- "& .MuiOutlinedInput-notchedOutline": {
43
- borderRadius: "8px",
44
- border: `1px solid transparent`
45
- },
46
- "& .MuiOutlinedInput-input": {
47
- padding: "3px 35px 4px 2px !important"
48
- },
49
- "& .MuiInputBase-adornedStart": {
50
- padding: "0px 0px 0px 9px"
51
- },
52
- "& svg": {
53
- "& path": {
54
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
55
- }
56
- }
20
+ backgroundColor: theme?.palette?.editor?.background
57
21
  },
58
22
  "&.textSettings": {
59
23
  "@media only screen and (max-width: 600px)": {
@@ -62,7 +26,7 @@ const usePopupStyle = theme => ({
62
26
  }
63
27
  },
64
28
  "& .MuiTypography-root": {
65
- color: theme?.palette?.editor?.textFormatTextColor
29
+ color: theme?.palette?.editor?.textColor
66
30
  },
67
31
  "& .MuiInputBase-root": {
68
32
  color: theme?.palette?.editor?.textColor,
@@ -87,21 +51,15 @@ const usePopupStyle = theme => ({
87
51
  "& .buttonsWrpr": {
88
52
  "& button": {
89
53
  color: theme?.palette?.editor?.textColor
90
- },
91
- "& .more-btn-cbs": {
92
- color: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
93
- border: `1.5px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
94
- paddingTop: "10px"
95
54
  }
96
55
  },
97
56
  "@media only screen and (max-width: 599px)": {
98
- margin: "10px !important",
57
+ padding: "10px",
99
58
  background: "unset",
100
- boxShadow: "unset"
101
- // border: "none",
59
+ boxShadow: "unset",
60
+ border: "none"
102
61
  }
103
62
  },
104
-
105
63
  textFormatWrapper: {
106
64
  padding: "0px 16px 16px 16px",
107
65
  width: "323px",
@@ -132,37 +90,13 @@ const usePopupStyle = theme => ({
132
90
  width: "100%",
133
91
  maxHeight: "fit-content"
134
92
  },
135
- "& .MuiTab-root": {
136
- textTransform: "capitalize",
137
- color: "#64748B",
138
- borderBottom: `1.5px solid ${theme?.palette?.editor?.deviderBgColor}`
139
- },
140
- "& .Mui-selected": {
141
- color: `${theme?.palette?.editor?.textColor} !important`,
142
- fontWeight: "700 !important"
143
- },
144
- "& .MuiTabs-indicator": {
145
- background: "#2563EB"
146
- },
147
- "& .MuiTabScrollButton-horizontal": {
148
- borderBottom: "unset !important",
149
- "& svg": {
150
- color: theme?.palette?.editor?.closeButtonSvgStroke
151
- }
152
- },
153
93
  "@media only screen and (max-width: 599px)": {
154
94
  width: "330px"
155
- },
156
- "& .MuiCardContent-root": {
157
- color: theme?.palette?.editor?.textColor,
158
- fontFamily: "Inter, sans-serif",
159
- fontSize: "12px",
160
- fontWeight: "500"
161
95
  }
162
96
  },
163
97
  "& .headerContainer": {},
164
98
  "& .textSettingHeader": {
165
- // borderBottom: "1px solid #DCE4EC",
99
+ borderBottom: "1px solid #DCE4EC",
166
100
  padding: "8px 0px 5px",
167
101
  marginBottom: "20px"
168
102
  },
@@ -177,77 +111,8 @@ const usePopupStyle = theme => ({
177
111
  justifyContent: "start",
178
112
  borderRadius: "10px !important",
179
113
  transition: "background-color 0.3s ease",
180
- "& .colorBoxElementIcon": {
181
- "& path": {
182
- fill: theme?.palette?.type === "dark" ? "none" : ""
183
- }
184
- },
185
- "& .signatureElementIcon": {
186
- "& path": {
187
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
188
- }
189
- },
190
- "& .commonSvgStyle": {
191
- "& path": {
192
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
193
- }
194
- },
195
- "& .commonSvgStyle2": {
196
- "& path": {
197
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
198
- }
199
- },
200
- "& .colorBoxElementIcon": {
201
- "& path": {
202
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
203
- fill: "none"
204
- }
205
- },
206
- "& .gridElementIcon": {
207
- "& path": {
208
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
209
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
210
- }
211
- },
212
- "& .newLineElementIcon": {
213
- "& path": {
214
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
215
- }
216
- },
217
114
  "&:hover": {
218
- backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
219
- "& .signatureElementIcon": {
220
- "& path": {
221
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
222
- }
223
- },
224
- "& .commonSvgStyle": {
225
- "& path": {
226
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
227
- }
228
- },
229
- "& .commonSvgStyle2": {
230
- "& path": {
231
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
232
- }
233
- },
234
- "& .colorBoxElementIcon": {
235
- "& path": {
236
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
237
- fill: "none"
238
- }
239
- },
240
- "& .gridElementIcon": {
241
- "& path": {
242
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
243
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
244
- }
245
- },
246
- "& .newLineElementIcon": {
247
- "& path": {
248
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
249
- }
250
- }
115
+ backgroundColor: "#E9F3FE"
251
116
  },
252
117
  "& svg": {
253
118
  width: "24px",
@@ -286,11 +151,6 @@ const usePopupStyle = theme => ({
286
151
  },
287
152
  "@media only screen and (max-width: 599px)": {
288
153
  width: "330px"
289
- },
290
- "& .textFormatMUIIcon": {
291
- "& svg": {
292
- color: theme?.palette?.editor?.closeButtonSvgStroke
293
- }
294
154
  }
295
155
  },
296
156
  textFormatLabel: {
@@ -308,21 +168,8 @@ const usePopupStyle = theme => ({
308
168
  },
309
169
  "& .MuiFormControl-root.MuiTextField-root input": {
310
170
  padding: "8px 35px 6px 12px"
311
- },
312
- "& .toogleFullScreenBtn": {
313
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
314
- padding: "4px !important",
315
- "& .toogleFullScreenSvg": {
316
- "& path": {
317
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
318
- }
319
- }
320
171
  }
321
172
  },
322
- textSettingHeader: {
323
- display: "flex",
324
- borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
325
- },
326
173
  textFormatField: {
327
174
  marginBottom: "16px",
328
175
  marginTop: "10px"
@@ -335,93 +182,6 @@ const usePopupStyle = theme => ({
335
182
  // marginBottom: "16px",
336
183
  marginTop: "10px"
337
184
  },
338
- textFormatField3: {
339
- marginBottom: "16px"
340
- },
341
- textAlignButtons: {
342
- // "& .justifyIcon": {
343
- // "& path": {
344
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
345
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
346
- // },
347
- // },
348
- // "& .textAlignIconSameStyles": {
349
- // "& path": {
350
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
351
- // },
352
- // },
353
- // "& .orderedListIcon": {
354
- // "& path": {
355
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
356
- // },
357
- // "& text": {
358
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
359
- // },
360
- // },
361
- // "& .bulletedListTextIcon": {
362
- // "& path": {
363
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
364
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
365
- // },
366
- // "& circle": {
367
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
368
- // },
369
- // },
370
- // "& .checkedListTextIcon": {
371
- // "& path": {
372
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
373
- // },
374
- // },
375
- // "& .accordianListTextIcon": {
376
- // // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
377
- // "& svg": {
378
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
379
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
380
- // },
381
- // "& path": {
382
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
383
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
384
- // },
385
- // },
386
- },
387
- autoCompleteaFontFamily: {
388
- "& .MuiOutlinedInput-root": {
389
- borderRadius: "8px",
390
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor}`,
391
- fontSize: "14px",
392
- height: "36px",
393
- paddingLeft: "15px !important"
394
- },
395
- "& .MuiOutlinedInput-notchedOutline": {
396
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
397
- },
398
- '& .MuiInputBase-root': {
399
- '& input': {
400
- border: "none !important"
401
- }
402
- }
403
- },
404
- textFormatSelect: {
405
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
406
- width: "100%",
407
- height: "36px",
408
- borderRadius: "10px",
409
- fontSize: "12px",
410
- fontFamily: "Inter, sans-serif",
411
- "& .MuiOutlinedInput-notchedOutline": {
412
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
413
- }
414
- },
415
- textFormatSelectOptions: {
416
- margin: "5px !important",
417
- borderRadius: "4px !important",
418
- fontSize: "12px !important",
419
- fontWeight: 500,
420
- "&.Mui-selected": {
421
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
422
- color: `${theme?.palette?.editor?.menuOptionTextColor} !important`
423
- }
424
- },
425
185
  textFormatFieldBorder: {
426
186
  display: "flex",
427
187
  alignItems: "center",
@@ -431,8 +191,7 @@ const usePopupStyle = theme => ({
431
191
  boxShadow: "0px 4px 18px 0px rgba(0, 0, 0, 0.05)"
432
192
  },
433
193
  dividerGrid: {
434
- margin: "5px 0px 10px 0px",
435
- background: `${theme?.palette?.editor?.deviderBgColor} !important`
194
+ margin: "5px 0px 10px 0px"
436
195
  },
437
196
  textFormatColorWrpr: {
438
197
  display: "flex",
@@ -542,100 +301,61 @@ const usePopupStyle = theme => ({
542
301
  }
543
302
  },
544
303
  btnGroup: {
545
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
546
- borderRadius: "7px",
547
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
304
+ backgroundColor: theme?.palette?.editor?.background,
548
305
  "& button": {
549
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
306
+ backgroundColor: theme?.palette?.editor?.background,
550
307
  marginRight: "0px",
551
308
  color: theme?.palette?.editor?.textColor,
552
- borderColor: "#ffffff00 !important",
309
+ borderColor: theme?.palette?.editor?.borderColor,
553
310
  textTransform: "capitalize",
554
311
  marginBottom: "0px",
312
+ "&:hover": {
313
+ color: theme?.palette?.editor?.borderColor,
314
+ background: theme?.palette?.editor?.background
315
+ },
555
316
  "&.active": {
556
317
  background: theme?.palette?.editor?.background,
557
318
  color: theme?.palette?.editor?.activeColor
558
319
  },
559
320
  "&.no-hover": {
560
- border: `1px solid #ffffff00`
321
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`
561
322
  }
562
- },
563
- "& .colorBox": {
564
- background: theme?.palette?.editor?.inputFieldBgColor,
565
- borderRadius: "7px 0px 0px 7px",
566
- fontSize: "12px !important",
567
- fontWeight: 500
568
- },
569
- "& .colorPicker": {
570
- background: theme?.palette?.editor?.inputFieldBgColor,
571
- borderRadius: "0px 7px 7px 0px",
572
- padding: "0px"
573
- },
574
- "& .vl": {
575
- background: theme?.palette?.editor?.borderColor,
576
- width: "2px",
577
- height: "25px",
578
- margin: "5px 0px"
579
323
  }
580
324
  },
581
325
  btnGroup2: {
582
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
583
- borderRadius: "7px",
584
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
326
+ backgroundColor: theme?.palette?.editor?.background,
585
327
  "& button": {
586
328
  backgroundColor: theme?.palette?.editor?.background,
587
329
  marginRight: "0px",
588
330
  color: theme?.palette?.editor?.textColor,
589
- borderColor: "#ffffff00 !important",
331
+ borderColor: theme?.palette?.editor?.borderColor,
590
332
  textTransform: "capitalize",
591
333
  marginBottom: "0px",
592
- // "&:hover": {
593
- // color: theme?.palette?.editor?.borderColor,
594
- // background: theme?.palette?.editor?.background,
595
- // },
334
+ "&:hover": {
335
+ color: theme?.palette?.editor?.borderColor,
336
+ background: theme?.palette?.editor?.background
337
+ },
596
338
  "&.active": {
597
339
  background: theme?.palette?.editor?.background,
598
340
  color: theme?.palette?.editor?.activeColor
599
341
  },
600
342
  "&.no-hover": {
601
- border: `1px solid #ffffff00`,
602
- borderRadius: "7px 0px 0px 7px"
343
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`,
344
+ padding: "0px 5px !important"
603
345
  }
604
- },
605
- "& .colorBox": {
606
- background: theme?.palette?.editor?.inputFieldBgColor,
607
- borderRadius: "7px 0px 0px 7px",
608
- fontSize: "12px !important",
609
- fontWeight: 500
610
- },
611
- "& .colorPicker": {
612
- background: theme?.palette?.editor?.inputFieldBgColor,
613
- borderRadius: "0px 7px 7px 0px",
614
- padding: "0px"
615
- },
616
- "& .vl": {
617
- background: theme?.palette?.editor?.borderColor,
618
- width: "2px",
619
- height: "25px",
620
- margin: "5px 0px"
621
346
  }
622
347
  },
623
348
  allColor: {
624
- borderRadius: "7px !important",
625
349
  "& .buttonsWrpr": {
626
- backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
627
- border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
628
- borderRadius: "7px !important",
629
350
  "& button": {
630
351
  color: theme?.palette?.editor?.textColor
631
352
  }
632
353
  }
633
354
  },
634
355
  allColorInner: {
635
- borderRadius: "7px !important",
636
356
  "& .buttonsWrpr": {
637
357
  "& button": {
638
- // border: "1px solid #ccc",
358
+ border: "1px solid #ccc",
639
359
  margin: "4px",
640
360
  width: "24px",
641
361
  height: "24px",
@@ -662,7 +382,7 @@ const usePopupStyle = theme => ({
662
382
  padding: "0px 10px"
663
383
  },
664
384
  defaultBtn2: {
665
- color: `${theme?.palette?.editor?.deafultColorOptionTextColor} !important`,
385
+ color: "#A2B0B9 !important",
666
386
  textTransform: "none",
667
387
  textDecorationLine: "underline",
668
388
  textUnderlineOffset: "2px",
@@ -691,16 +411,14 @@ const usePopupStyle = theme => ({
691
411
  padding: "7px 15px",
692
412
  color: "#FFF",
693
413
  width: "100px",
694
- marginBottom: "10px",
695
- textTransform: "capitalize"
414
+ marginBottom: "10px"
696
415
  },
697
416
  "& .outlineBtn": {
698
417
  border: "1px solid #D7DBEC",
699
418
  borderRadius: "7px",
700
419
  padding: "7px 15px",
701
420
  color: "#FFF",
702
- width: "100px",
703
- textTransform: "capitalize"
421
+ width: "100px"
704
422
  }
705
423
  },
706
424
  searchBox: {
@@ -712,24 +430,10 @@ const usePopupStyle = theme => ({
712
430
  }
713
431
  },
714
432
  textOptions: {
715
- backgroundColor: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
716
- color: theme?.palette?.editor?.textColor,
717
- borderRadius: "8px !important",
718
- fontFamily: "Inter, sans-serif",
719
- "& .MuiList-root": {
720
- padding: "0px !important"
721
- }
433
+ backgroundColor: theme?.palette?.editor?.background,
434
+ color: theme?.palette?.editor?.textColor
722
435
  },
723
436
  textSize: {
724
- height: "36px !important",
725
- "& .MuiOutlinedInput-root": {
726
- borderRadius: "8px !important",
727
- height: "36px !important",
728
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`
729
- },
730
- "& .MuiOutlinedInput-notchedOutline": {
731
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
732
- },
733
437
  "& .textFontArrows": {
734
438
  "& svg": {
735
439
  stroke: theme?.palette?.editor?.textColor
@@ -737,79 +441,41 @@ const usePopupStyle = theme => ({
737
441
  }
738
442
  },
739
443
  closeBtn: {
740
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
741
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
444
+ backgroundColor: theme?.palette?.editor?.background,
445
+ color: theme?.palette?.editor?.textColor
742
446
  },
743
447
  colorPickerPopup: {
744
448
  margin: "30px",
745
449
  "& .MuiPaper-root": {
746
450
  overflow: "auto",
747
- backgroundColor: theme?.palette?.editor?.background,
748
- borderRadius: "14px !important",
749
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
451
+ backgroundColor: theme?.palette?.editor?.background
750
452
  },
751
453
  "& .popup_tabs": {
752
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor
454
+ backgroundColor: theme?.palette?.editor?.background
753
455
  },
754
456
  "& .popup_tabs-header": {
755
- fontFamily: "Inter, sans-serif",
756
- fontWeight: 700,
757
- fontSize: "12px !important",
758
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
457
+ backgroundColor: theme?.palette?.editor?.background,
759
458
  "& .popup_tabs-header-label-active": {
760
459
  color: theme?.palette?.editor?.activeColor,
761
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
460
+ backgroundColor: theme?.palette?.editor?.background
762
461
  }
763
462
  },
764
- "& .popup_tabs-body": {
765
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
766
- },
767
463
  "& .colorpicker": {
768
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
464
+ backgroundColor: theme?.palette?.editor?.background
769
465
  },
770
466
  "& .color-picker-panel": {
771
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
467
+ backgroundColor: theme?.palette?.editor?.background
772
468
  },
773
469
  "& .input_rgba": {
774
470
  "& input": {
775
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
776
- color: theme?.palette?.editor?.textColor,
777
- height: "32px !important",
778
- borderRadius: "10px !important",
779
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
780
- boxShadow: "none",
781
- "&:hover": {
782
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`
783
- },
784
- "&:focus": {
785
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
786
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
787
- boxShadow: "none"
788
- }
789
- },
790
- "& .input_rgba-hex-label": {
791
- top: "4px !important"
792
- },
793
- "& .input_rgba-alpha-label": {
794
- top: "6px !important"
795
- },
796
- "& .input_rgba-label": {
797
- display: "none"
798
- }
799
- },
800
- "& .default-color-panel": {
801
- gridTemplateColumns: "repeat(auto-fill, 24px)",
802
- "& .default-color-panel_item": {
803
- borderRadius: "50%",
804
- width: "16px",
805
- height: "16px"
471
+ backgroundColor: theme?.palette?.editor?.background,
472
+ color: theme?.palette?.editor?.textColor
806
473
  }
807
474
  }
808
475
  },
809
476
  colorPopper: {
810
477
  "& .MuiPaper-root": {
811
478
  backgroundColor: theme?.palette?.editor?.background,
812
- borderRadius: "7px !important",
813
479
  "@media only screen and (max-width: 600px)": {
814
480
  marginTop: "-40px"
815
481
  }
@@ -923,18 +589,17 @@ const usePopupStyle = theme => ({
923
589
  "& .MuiPopover-paper": {
924
590
  maxHeight: "140px",
925
591
  // minWidth: "130px",
926
- // border: "1px solid #E4E8EB",
927
- background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
592
+ border: "1px solid #E4E8EB",
593
+ background: `${theme?.palette?.editor?.background} !important`,
928
594
  overflowY: "scroll",
929
- padding: "3px 12px 8px 2px",
930
- borderRadius: "8px",
595
+ padding: "6px 12px 6px 0px",
931
596
  "@media only screen and (max-width: 600px)": {
932
597
  marginTop: "-40px"
933
598
  }
934
599
  },
935
600
  "& .customSelectOptionLabel": {
936
601
  color: theme?.palette?.editor?.textColor || "black",
937
- margin: "6px 6px 0px 6px",
602
+ margin: "0px 6px 0px 6px",
938
603
  width: "100%",
939
604
  justifyContent: "start",
940
605
  paddingRight: "20px",
@@ -947,40 +612,8 @@ const usePopupStyle = theme => ({
947
612
  background: `${theme?.palette?.action?.selected} !important`
948
613
  },
949
614
  "&.selected": {
950
- color: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
951
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
952
- "& .orderedListIcon": {
953
- "& path": {
954
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
955
- },
956
- "& text": {
957
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
958
- }
959
- },
960
- "& .bulletedListTextIcon": {
961
- "& path": {
962
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`,
963
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
964
- },
965
- "& circle": {
966
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
967
- }
968
- },
969
- "& .checkedListTextIcon": {
970
- "& path": {
971
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
972
- }
973
- },
974
- "& .accordianIconSvgTextFormat": {
975
- "& path": {
976
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
977
- }
978
- },
979
- "& .textAlignIconSameStyles": {
980
- "& path": {
981
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
982
- }
983
- }
615
+ color: `#2563EB !important`,
616
+ background: `#E9F3FE !important`
984
617
  }
985
618
  },
986
619
  "& .menuOptions": {