@flozy/editor 5.3.6 → 5.3.8

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 (102) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +8 -16
  3. package/dist/Editor/Editor.css +11 -57
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +11 -19
  6. package/dist/Editor/Elements/AI/PopoverAIInput.js +4 -9
  7. package/dist/Editor/Elements/AI/Styles.js +5 -17
  8. package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -11
  9. package/dist/Editor/Elements/Color Picker/ColorButtons.js +3 -3
  10. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  11. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  12. package/dist/Editor/Elements/Divider/Divider.js +15 -16
  13. package/dist/Editor/Elements/Embed/Image.js +7 -23
  14. package/dist/Editor/Elements/Embed/Video.js +1 -13
  15. package/dist/Editor/Elements/Form/Form.js +2 -38
  16. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  17. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  18. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  19. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  20. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  21. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  22. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  23. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  24. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  25. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  26. package/dist/Editor/Elements/Grid/GridButton.js +2 -2
  27. package/dist/Editor/Elements/Grid/GridItem.js +36 -45
  28. package/dist/Editor/Elements/Grid/Styles.js +0 -6
  29. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  30. package/dist/Editor/Elements/Search/SearchButton.js +0 -1
  31. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  32. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  33. package/dist/Editor/Elements/Signature/SignaturePopup.js +48 -13
  34. package/dist/Editor/Elements/SimpleText/style.js +0 -10
  35. package/dist/Editor/Elements/Table/Styles.js +79 -82
  36. package/dist/Editor/Elements/Table/Table.js +140 -260
  37. package/dist/Editor/Elements/Table/TableCell.js +103 -362
  38. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  39. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  40. package/dist/Editor/Styles/EditorStyles.js +1 -8
  41. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  42. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +12 -7
  43. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -10
  44. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  45. package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -0
  46. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  47. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  48. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  49. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +15 -19
  50. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +49 -409
  51. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -17
  52. package/dist/Editor/Toolbar/PopupTool/index.js +5 -3
  53. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  54. package/dist/Editor/common/ColorPickerButton.js +44 -82
  55. package/dist/Editor/common/Icon.js +20 -17
  56. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  57. package/dist/Editor/common/LinkSettings/index.js +1 -2
  58. package/dist/Editor/common/MentionsPopup/Styles.js +8 -156
  59. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  60. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -107
  61. package/dist/Editor/common/RnD/VirtualElement/index.js +1 -5
  62. package/dist/Editor/common/RnD/index.js +1 -1
  63. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +4 -8
  64. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +7 -7
  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/tableStyle.js +25 -69
  69. package/dist/Editor/common/SwipeableDrawer/style.js +4 -15
  70. package/dist/Editor/common/iconListV2.js +40 -378
  71. package/dist/Editor/common/iconslist.js +14 -17
  72. package/dist/Editor/commonStyle.js +10 -130
  73. package/dist/Editor/helper/deserialize/index.js +20 -27
  74. package/dist/Editor/helper/index.js +1 -1
  75. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -3
  76. package/dist/Editor/plugins/withHTML.js +10 -61
  77. package/dist/Editor/plugins/withLayout.js +0 -1
  78. package/dist/Editor/utils/SlateUtilityFunctions.js +0 -2
  79. package/dist/Editor/utils/brains.js +1 -1
  80. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +1 -26
  81. package/dist/Editor/utils/customHooks/useResize.js +4 -7
  82. package/dist/Editor/utils/customHooks/useTableResize.js +2 -6
  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 +2 -55
  88. package/dist/Editor/utils/insertNewLine.js +1 -19
  89. package/dist/Editor/utils/serializeToText.js +0 -2
  90. package/dist/Editor/utils/table.js +24 -228
  91. package/package.json +1 -1
  92. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  93. package/dist/Editor/Elements/Table/DragButton.js +0 -142
  94. package/dist/Editor/Elements/Table/DragStyles.js +0 -70
  95. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  96. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  97. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  98. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  99. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  100. package/dist/Editor/common/Select/index.js +0 -20
  101. package/dist/Editor/common/Select/styles.js +0 -17
  102. package/dist/Editor/hooks/useTable.js +0 -207
@@ -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,72 +111,8 @@ const usePopupStyle = theme => ({
177
111
  justifyContent: "start",
178
112
  borderRadius: "10px !important",
179
113
  transition: "background-color 0.3s ease",
180
- "& .signatureElementIcon": {
181
- "& path": {
182
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
183
- }
184
- },
185
- "& .commonSvgStyle": {
186
- "& path": {
187
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
188
- }
189
- },
190
- "& .commonSvgStyle2": {
191
- "& path": {
192
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
193
- }
194
- },
195
- "& .colorBoxElementIcon": {
196
- "& path": {
197
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
198
- fill: "none"
199
- }
200
- },
201
- "& .gridElementIcon": {
202
- "& path": {
203
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
204
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
205
- }
206
- },
207
- "& .newLineElementIcon": {
208
- "& path": {
209
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
210
- }
211
- },
212
114
  "&:hover": {
213
- backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
214
- "& .signatureElementIcon": {
215
- "& path": {
216
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
217
- }
218
- },
219
- "& .commonSvgStyle": {
220
- "& path": {
221
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
222
- }
223
- },
224
- "& .commonSvgStyle2": {
225
- "& path": {
226
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
227
- }
228
- },
229
- "& .colorBoxElementIcon": {
230
- "& path": {
231
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
232
- fill: "none"
233
- }
234
- },
235
- "& .gridElementIcon": {
236
- "& path": {
237
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
238
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
239
- }
240
- },
241
- "& .newLineElementIcon": {
242
- "& path": {
243
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
244
- }
245
- }
115
+ backgroundColor: "#E9F3FE"
246
116
  },
247
117
  "& svg": {
248
118
  width: "24px",
@@ -281,11 +151,6 @@ const usePopupStyle = theme => ({
281
151
  },
282
152
  "@media only screen and (max-width: 599px)": {
283
153
  width: "330px"
284
- },
285
- "& .textFormatMUIIcon": {
286
- "& svg": {
287
- color: theme?.palette?.editor?.closeButtonSvgStroke
288
- }
289
154
  }
290
155
  },
291
156
  textFormatLabel: {
@@ -303,21 +168,8 @@ const usePopupStyle = theme => ({
303
168
  },
304
169
  "& .MuiFormControl-root.MuiTextField-root input": {
305
170
  padding: "8px 35px 6px 12px"
306
- },
307
- "& .toogleFullScreenBtn": {
308
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
309
- padding: "4px !important",
310
- "& .toogleFullScreenSvg": {
311
- "& path": {
312
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
313
- }
314
- }
315
171
  }
316
172
  },
317
- textSettingHeader: {
318
- display: "flex",
319
- borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
320
- },
321
173
  textFormatField: {
322
174
  marginBottom: "16px",
323
175
  marginTop: "10px"
@@ -330,88 +182,6 @@ const usePopupStyle = theme => ({
330
182
  // marginBottom: "16px",
331
183
  marginTop: "10px"
332
184
  },
333
- textFormatField3: {
334
- marginBottom: "16px"
335
- },
336
- textAlignButtons: {
337
- // "& .justifyIcon": {
338
- // "& path": {
339
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
340
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
341
- // },
342
- // },
343
- // "& .textAlignIconSameStyles": {
344
- // "& path": {
345
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
346
- // },
347
- // },
348
- // "& .orderedListIcon": {
349
- // "& path": {
350
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
351
- // },
352
- // "& text": {
353
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
354
- // },
355
- // },
356
- // "& .bulletedListTextIcon": {
357
- // "& path": {
358
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
359
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
360
- // },
361
- // "& circle": {
362
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
363
- // },
364
- // },
365
- // "& .checkedListTextIcon": {
366
- // "& path": {
367
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
368
- // },
369
- // },
370
- // "& .accordianListTextIcon": {
371
- // // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
372
- // "& svg": {
373
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
374
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
375
- // },
376
- // "& path": {
377
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
378
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
379
- // },
380
- // },
381
- },
382
- autoCompleteaFontFamily: {
383
- "& .MuiOutlinedInput-root": {
384
- borderRadius: "8px",
385
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor}`,
386
- fontSize: "14px",
387
- height: "36px",
388
- paddingLeft: "15px !important"
389
- },
390
- "& .MuiOutlinedInput-notchedOutline": {
391
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
392
- }
393
- },
394
- textFormatSelect: {
395
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
396
- width: "100%",
397
- height: "36px",
398
- borderRadius: "10px",
399
- fontSize: "12px",
400
- fontFamily: "Inter, sans-serif",
401
- "& .MuiOutlinedInput-notchedOutline": {
402
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
403
- }
404
- },
405
- textFormatSelectOptions: {
406
- margin: "5px !important",
407
- borderRadius: "4px !important",
408
- fontSize: "12px !important",
409
- fontWeight: 500,
410
- "&.Mui-selected": {
411
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
412
- color: `${theme?.palette?.editor?.menuOptionTextColor} !important`
413
- }
414
- },
415
185
  textFormatFieldBorder: {
416
186
  display: "flex",
417
187
  alignItems: "center",
@@ -421,8 +191,7 @@ const usePopupStyle = theme => ({
421
191
  boxShadow: "0px 4px 18px 0px rgba(0, 0, 0, 0.05)"
422
192
  },
423
193
  dividerGrid: {
424
- margin: "5px 0px 10px 0px",
425
- background: `${theme?.palette?.editor?.deviderBgColor} !important`
194
+ margin: "5px 0px 10px 0px"
426
195
  },
427
196
  textFormatColorWrpr: {
428
197
  display: "flex",
@@ -532,100 +301,61 @@ const usePopupStyle = theme => ({
532
301
  }
533
302
  },
534
303
  btnGroup: {
535
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
536
- borderRadius: "7px",
537
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
304
+ backgroundColor: theme?.palette?.editor?.background,
538
305
  "& button": {
539
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
306
+ backgroundColor: theme?.palette?.editor?.background,
540
307
  marginRight: "0px",
541
308
  color: theme?.palette?.editor?.textColor,
542
- borderColor: "#ffffff00 !important",
309
+ borderColor: theme?.palette?.editor?.borderColor,
543
310
  textTransform: "capitalize",
544
311
  marginBottom: "0px",
312
+ "&:hover": {
313
+ color: theme?.palette?.editor?.borderColor,
314
+ background: theme?.palette?.editor?.background
315
+ },
545
316
  "&.active": {
546
317
  background: theme?.palette?.editor?.background,
547
318
  color: theme?.palette?.editor?.activeColor
548
319
  },
549
320
  "&.no-hover": {
550
- border: `1px solid #ffffff00`
321
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`
551
322
  }
552
- },
553
- "& .colorBox": {
554
- background: theme?.palette?.editor?.inputFieldBgColor,
555
- borderRadius: "7px 0px 0px 7px",
556
- fontSize: "12px !important",
557
- fontWeight: 500
558
- },
559
- "& .colorPicker": {
560
- background: theme?.palette?.editor?.inputFieldBgColor,
561
- borderRadius: "0px 7px 7px 0px",
562
- padding: "0px"
563
- },
564
- "& .vl": {
565
- background: theme?.palette?.editor?.borderColor,
566
- width: "2px",
567
- height: "25px",
568
- margin: "5px 0px"
569
323
  }
570
324
  },
571
325
  btnGroup2: {
572
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
573
- borderRadius: "7px",
574
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
326
+ backgroundColor: theme?.palette?.editor?.background,
575
327
  "& button": {
576
328
  backgroundColor: theme?.palette?.editor?.background,
577
329
  marginRight: "0px",
578
330
  color: theme?.palette?.editor?.textColor,
579
- borderColor: "#ffffff00 !important",
331
+ borderColor: theme?.palette?.editor?.borderColor,
580
332
  textTransform: "capitalize",
581
333
  marginBottom: "0px",
582
- // "&:hover": {
583
- // color: theme?.palette?.editor?.borderColor,
584
- // background: theme?.palette?.editor?.background,
585
- // },
334
+ "&:hover": {
335
+ color: theme?.palette?.editor?.borderColor,
336
+ background: theme?.palette?.editor?.background
337
+ },
586
338
  "&.active": {
587
339
  background: theme?.palette?.editor?.background,
588
340
  color: theme?.palette?.editor?.activeColor
589
341
  },
590
342
  "&.no-hover": {
591
- border: `1px solid #ffffff00`,
592
- borderRadius: "7px 0px 0px 7px"
343
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`,
344
+ padding: "0px 5px !important"
593
345
  }
594
- },
595
- "& .colorBox": {
596
- background: theme?.palette?.editor?.inputFieldBgColor,
597
- borderRadius: "7px 0px 0px 7px",
598
- fontSize: "12px !important",
599
- fontWeight: 500
600
- },
601
- "& .colorPicker": {
602
- background: theme?.palette?.editor?.inputFieldBgColor,
603
- borderRadius: "0px 7px 7px 0px",
604
- padding: "0px"
605
- },
606
- "& .vl": {
607
- background: theme?.palette?.editor?.borderColor,
608
- width: "2px",
609
- height: "25px",
610
- margin: "5px 0px"
611
346
  }
612
347
  },
613
348
  allColor: {
614
- borderRadius: "7px !important",
615
349
  "& .buttonsWrpr": {
616
- backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
617
- border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
618
- borderRadius: "7px !important",
619
350
  "& button": {
620
351
  color: theme?.palette?.editor?.textColor
621
352
  }
622
353
  }
623
354
  },
624
355
  allColorInner: {
625
- borderRadius: "7px !important",
626
356
  "& .buttonsWrpr": {
627
357
  "& button": {
628
- // border: "1px solid #ccc",
358
+ border: "1px solid #ccc",
629
359
  margin: "4px",
630
360
  width: "24px",
631
361
  height: "24px",
@@ -652,7 +382,7 @@ const usePopupStyle = theme => ({
652
382
  padding: "0px 10px"
653
383
  },
654
384
  defaultBtn2: {
655
- color: `${theme?.palette?.editor?.deafultColorOptionTextColor} !important`,
385
+ color: "#A2B0B9 !important",
656
386
  textTransform: "none",
657
387
  textDecorationLine: "underline",
658
388
  textUnderlineOffset: "2px",
@@ -681,16 +411,14 @@ const usePopupStyle = theme => ({
681
411
  padding: "7px 15px",
682
412
  color: "#FFF",
683
413
  width: "100px",
684
- marginBottom: "10px",
685
- textTransform: "capitalize"
414
+ marginBottom: "10px"
686
415
  },
687
416
  "& .outlineBtn": {
688
417
  border: "1px solid #D7DBEC",
689
418
  borderRadius: "7px",
690
419
  padding: "7px 15px",
691
420
  color: "#FFF",
692
- width: "100px",
693
- textTransform: "capitalize"
421
+ width: "100px"
694
422
  }
695
423
  },
696
424
  searchBox: {
@@ -702,24 +430,10 @@ const usePopupStyle = theme => ({
702
430
  }
703
431
  },
704
432
  textOptions: {
705
- backgroundColor: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
706
- color: theme?.palette?.editor?.textColor,
707
- borderRadius: "8px !important",
708
- fontFamily: "Inter, sans-serif",
709
- "& .MuiList-root": {
710
- padding: "0px !important"
711
- }
433
+ backgroundColor: theme?.palette?.editor?.background,
434
+ color: theme?.palette?.editor?.textColor
712
435
  },
713
436
  textSize: {
714
- height: "36px !important",
715
- "& .MuiOutlinedInput-root": {
716
- borderRadius: "8px !important",
717
- height: "36px !important",
718
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`
719
- },
720
- "& .MuiOutlinedInput-notchedOutline": {
721
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
722
- },
723
437
  "& .textFontArrows": {
724
438
  "& svg": {
725
439
  stroke: theme?.palette?.editor?.textColor
@@ -727,82 +441,41 @@ const usePopupStyle = theme => ({
727
441
  }
728
442
  },
729
443
  closeBtn: {
730
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
731
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
444
+ backgroundColor: theme?.palette?.editor?.background,
445
+ color: theme?.palette?.editor?.textColor
732
446
  },
733
447
  colorPickerPopup: {
734
448
  margin: "30px",
735
449
  "& .MuiPaper-root": {
736
450
  overflow: "auto",
737
- backgroundColor: theme?.palette?.editor?.background,
738
- borderRadius: "14px !important",
739
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
451
+ backgroundColor: theme?.palette?.editor?.background
740
452
  },
741
453
  "& .popup_tabs": {
742
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
743
- "@media only screen and (max-width: 899px)": {
744
- width: '100% !important'
745
- }
454
+ backgroundColor: theme?.palette?.editor?.background
746
455
  },
747
456
  "& .popup_tabs-header": {
748
- fontFamily: "Inter, sans-serif",
749
- fontWeight: 700,
750
- fontSize: "12px !important",
751
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
457
+ backgroundColor: theme?.palette?.editor?.background,
752
458
  "& .popup_tabs-header-label-active": {
753
459
  color: theme?.palette?.editor?.activeColor,
754
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
460
+ backgroundColor: theme?.palette?.editor?.background
755
461
  }
756
462
  },
757
- "& .popup_tabs-body": {
758
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
759
- },
760
463
  "& .colorpicker": {
761
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
464
+ backgroundColor: theme?.palette?.editor?.background
762
465
  },
763
466
  "& .color-picker-panel": {
764
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
467
+ backgroundColor: theme?.palette?.editor?.background
765
468
  },
766
469
  "& .input_rgba": {
767
470
  "& input": {
768
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
769
- color: theme?.palette?.editor?.textColor,
770
- height: "32px !important",
771
- borderRadius: "10px !important",
772
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
773
- boxShadow: "none",
774
- "&:hover": {
775
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`
776
- },
777
- "&:focus": {
778
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
779
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
780
- boxShadow: "none"
781
- }
782
- },
783
- "& .input_rgba-hex-label": {
784
- top: "4px !important"
785
- },
786
- "& .input_rgba-alpha-label": {
787
- top: "6px !important"
788
- },
789
- "& .input_rgba-label": {
790
- display: "none"
791
- }
792
- },
793
- "& .default-color-panel": {
794
- gridTemplateColumns: "repeat(auto-fill, 24px)",
795
- "& .default-color-panel_item": {
796
- borderRadius: "50%",
797
- width: "16px",
798
- height: "16px"
471
+ backgroundColor: theme?.palette?.editor?.background,
472
+ color: theme?.palette?.editor?.textColor
799
473
  }
800
474
  }
801
475
  },
802
476
  colorPopper: {
803
477
  "& .MuiPaper-root": {
804
478
  backgroundColor: theme?.palette?.editor?.background,
805
- borderRadius: "7px !important",
806
479
  "@media only screen and (max-width: 600px)": {
807
480
  marginTop: "-40px"
808
481
  }
@@ -916,18 +589,17 @@ const usePopupStyle = theme => ({
916
589
  "& .MuiPopover-paper": {
917
590
  maxHeight: "140px",
918
591
  // minWidth: "130px",
919
- // border: "1px solid #E4E8EB",
920
- background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
592
+ border: "1px solid #E4E8EB",
593
+ background: `${theme?.palette?.editor?.background} !important`,
921
594
  overflowY: "scroll",
922
- padding: "3px 12px 8px 2px",
923
- borderRadius: "8px",
595
+ padding: "6px 12px 6px 0px",
924
596
  "@media only screen and (max-width: 600px)": {
925
597
  marginTop: "-40px"
926
598
  }
927
599
  },
928
600
  "& .customSelectOptionLabel": {
929
601
  color: theme?.palette?.editor?.textColor || "black",
930
- margin: "6px 6px 0px 6px",
602
+ margin: "0px 6px 0px 6px",
931
603
  width: "100%",
932
604
  justifyContent: "start",
933
605
  paddingRight: "20px",
@@ -940,40 +612,8 @@ const usePopupStyle = theme => ({
940
612
  background: `${theme?.palette?.action?.selected} !important`
941
613
  },
942
614
  "&.selected": {
943
- color: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
944
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
945
- "& .orderedListIcon": {
946
- "& path": {
947
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
948
- },
949
- "& text": {
950
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
951
- }
952
- },
953
- "& .bulletedListTextIcon": {
954
- "& path": {
955
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`,
956
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
957
- },
958
- "& circle": {
959
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
960
- }
961
- },
962
- "& .checkedListTextIcon": {
963
- "& path": {
964
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
965
- }
966
- },
967
- "& .accordianIconSvgTextFormat": {
968
- "& path": {
969
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
970
- }
971
- },
972
- "& .textAlignIconSameStyles": {
973
- "& path": {
974
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
975
- }
976
- }
615
+ color: `#2563EB !important`,
616
+ background: `#E9F3FE !important`
977
617
  }
978
618
  },
979
619
  "& .menuOptions": {