@flozy/editor 5.1.4 → 5.1.6

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 (151) hide show
  1. package/dist/Editor/ChatEditor.js +25 -34
  2. package/dist/Editor/CommonEditor.js +15 -9
  3. package/dist/Editor/Editor.css +56 -12
  4. package/dist/Editor/Elements/AI/AIInput.js +0 -1
  5. package/dist/Editor/Elements/AI/CustomSelect.js +17 -10
  6. package/dist/Editor/Elements/AI/Styles.js +7 -1
  7. package/dist/Editor/Elements/Button/EditorButton.js +1 -1
  8. package/dist/Editor/Elements/Carousel/CarouselItem.js +1 -1
  9. package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
  10. package/dist/Editor/Elements/Color Picker/Styles.js +7 -3
  11. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  12. package/dist/Editor/Elements/DataView/DataView.js +101 -0
  13. package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
  14. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +59 -0
  15. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +30 -0
  16. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +140 -0
  17. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
  18. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +59 -0
  19. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +26 -0
  20. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +38 -0
  21. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
  22. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
  23. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
  24. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
  25. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
  26. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
  27. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
  28. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
  29. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
  30. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
  31. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
  32. package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
  33. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
  34. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
  35. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
  36. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +62 -0
  37. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
  38. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
  39. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
  40. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
  41. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
  42. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
  43. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
  44. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
  45. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +100 -0
  46. package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
  47. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +70 -0
  48. package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
  49. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +288 -0
  50. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
  51. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +72 -0
  52. package/dist/Editor/Elements/DataView/styles.js +143 -0
  53. package/dist/Editor/Elements/Divider/Divider.js +15 -14
  54. package/dist/Editor/Elements/Form/Form.js +38 -2
  55. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
  56. package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
  57. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
  58. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
  59. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
  60. package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
  61. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
  62. package/dist/Editor/Elements/Form/FormPopup.js +12 -9
  63. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  64. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
  65. package/dist/Editor/Elements/Grid/GridButton.js +2 -1
  66. package/dist/Editor/Elements/Grid/GridItem.js +12 -0
  67. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  68. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  69. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  70. package/dist/Editor/Elements/Signature/SignaturePopup.js +13 -48
  71. package/dist/Editor/Elements/SimpleText/index.js +8 -1
  72. package/dist/Editor/Elements/SimpleText/style.js +8 -1
  73. package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
  74. package/dist/Editor/Elements/Table/DragButton.js +141 -0
  75. package/dist/Editor/Elements/Table/DragStyles.js +70 -0
  76. package/dist/Editor/Elements/Table/Draggable.js +25 -0
  77. package/dist/Editor/Elements/Table/Droppable.js +53 -0
  78. package/dist/Editor/Elements/Table/Styles.js +25 -43
  79. package/dist/Editor/Elements/Table/Table.js +205 -138
  80. package/dist/Editor/Elements/Table/TableCell.js +355 -102
  81. package/dist/Editor/Elements/Table/TablePopup.js +9 -3
  82. package/dist/Editor/Elements/Table/TableRow.js +10 -2
  83. package/dist/Editor/Elements/Table/TableTool.js +101 -0
  84. package/dist/Editor/Elements/Table/tableHelper.js +71 -0
  85. package/dist/Editor/Styles/EditorStyles.js +3 -1
  86. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
  87. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -11
  88. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +10 -4
  89. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
  90. package/dist/Editor/Toolbar/FormatTools/TextSize.js +0 -2
  91. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -6
  92. package/dist/Editor/Toolbar/Mini/Styles.js +4 -1
  93. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  94. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +16 -11
  95. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +416 -49
  96. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +62 -8
  97. package/dist/Editor/Toolbar/PopupTool/index.js +5 -6
  98. package/dist/Editor/Toolbar/Toolbar.js +6 -0
  99. package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
  100. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  101. package/dist/Editor/assets/svg/TableIcons.js +220 -0
  102. package/dist/Editor/common/ColorPickerButton.js +3 -2
  103. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  104. package/dist/Editor/common/Icon.js +24 -23
  105. package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
  106. package/dist/Editor/common/LinkSettings/index.js +2 -1
  107. package/dist/Editor/common/MentionsPopup/Styles.js +151 -3
  108. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  109. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +108 -12
  110. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +14 -2
  111. package/dist/Editor/common/Select/index.js +20 -0
  112. package/dist/Editor/common/Select/styles.js +17 -0
  113. package/dist/Editor/common/Shorthands/elements.js +13 -1
  114. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
  115. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +8 -4
  116. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
  117. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
  118. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
  119. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +7 -7
  120. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +5 -2
  121. package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
  122. package/dist/Editor/common/StyleBuilder/index.js +84 -11
  123. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
  124. package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
  125. package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
  126. package/dist/Editor/common/Uploader.js +8 -0
  127. package/dist/Editor/common/iconListV2.js +378 -40
  128. package/dist/Editor/common/iconslist.js +23 -17
  129. package/dist/Editor/commonStyle.js +126 -9
  130. package/dist/Editor/helper/deserialize/index.js +4 -1
  131. package/dist/Editor/helper/index.js +2 -2
  132. package/dist/Editor/helper/theme.js +24 -1
  133. package/dist/Editor/hooks/useMouseMove.js +5 -2
  134. package/dist/Editor/hooks/useTable.js +195 -0
  135. package/dist/Editor/plugins/withCustomDeleteBackward.js +3 -2
  136. package/dist/Editor/plugins/withHTML.js +17 -1
  137. package/dist/Editor/plugins/withLayout.js +48 -1
  138. package/dist/Editor/utils/SlateUtilityFunctions.js +18 -0
  139. package/dist/Editor/utils/button.js +4 -4
  140. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +21 -0
  141. package/dist/Editor/utils/dataView.js +43 -0
  142. package/dist/Editor/utils/embed.js +2 -1
  143. package/dist/Editor/utils/events.js +0 -1
  144. package/dist/Editor/utils/font.js +11 -4
  145. package/dist/Editor/utils/formfield.js +8 -4
  146. package/dist/Editor/utils/helper.js +67 -2
  147. package/dist/Editor/utils/insertNewLine.js +19 -1
  148. package/dist/Editor/utils/pageSettings.js +14 -2
  149. package/dist/Editor/utils/serializeToText.js +2 -0
  150. package/dist/Editor/utils/table.js +228 -24
  151. package/package.json +1 -1
@@ -1,14 +1,15 @@
1
1
  const usePopupStyle = theme => ({
2
2
  popupWrapper: {
3
- boxShadow: "1px 2px 15px 0px #2563EB40",
3
+ boxShadow: theme?.palette?.type === "light" ? "1px 2px 15px 0px #2563EB40" : "unset",
4
4
  zIndex: 1300,
5
5
  marginBottom: "12px !important",
6
- borderRadius: "6px",
7
- border: "1px solid #D8DDE1",
6
+ borderRadius: "20px !important",
7
+ border: `1px solid ${theme?.palette?.editor?.popUpBorderColor} !important`,
8
8
  maxWidth: "100%",
9
9
  // maxHeight: "40px",
10
10
  "&.fullscreen": {
11
11
  marginBottom: "0px !important",
12
+ borderRadius: "0px !important",
12
13
  "& .papper-wrpr": {
13
14
  boxShadow: "none"
14
15
  }
@@ -17,7 +18,42 @@ const usePopupStyle = theme => ({
17
18
  transform: "none !important"
18
19
  },
19
20
  "& .MuiPaper-root": {
20
- backgroundColor: theme?.palette?.editor?.background
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
+ }
21
57
  },
22
58
  "&.textSettings": {
23
59
  "@media only screen and (max-width: 600px)": {
@@ -26,7 +62,7 @@ const usePopupStyle = theme => ({
26
62
  }
27
63
  },
28
64
  "& .MuiTypography-root": {
29
- color: theme?.palette?.editor?.textColor
65
+ color: theme?.palette?.editor?.textFormatTextColor
30
66
  },
31
67
  "& .MuiInputBase-root": {
32
68
  color: theme?.palette?.editor?.textColor,
@@ -51,15 +87,21 @@ const usePopupStyle = theme => ({
51
87
  "& .buttonsWrpr": {
52
88
  "& button": {
53
89
  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"
54
95
  }
55
96
  },
56
97
  "@media only screen and (max-width: 599px)": {
57
- padding: "10px",
98
+ margin: "10px !important",
58
99
  background: "unset",
59
- boxShadow: "unset",
60
- border: "none"
100
+ boxShadow: "unset"
101
+ // border: "none",
61
102
  }
62
103
  },
104
+
63
105
  textFormatWrapper: {
64
106
  padding: "0px 16px 16px 16px",
65
107
  width: "323px",
@@ -90,13 +132,37 @@ const usePopupStyle = theme => ({
90
132
  width: "100%",
91
133
  maxHeight: "fit-content"
92
134
  },
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
+ },
93
153
  "@media only screen and (max-width: 599px)": {
94
154
  width: "330px"
155
+ },
156
+ "& .MuiCardContent-root": {
157
+ color: theme?.palette?.editor?.textColor,
158
+ fontFamily: "Inter, sans-serif",
159
+ fontSize: "12px",
160
+ fontWeight: "500"
95
161
  }
96
162
  },
97
163
  "& .headerContainer": {},
98
164
  "& .textSettingHeader": {
99
- borderBottom: "1px solid #DCE4EC",
165
+ // borderBottom: "1px solid #DCE4EC",
100
166
  padding: "8px 0px 5px",
101
167
  marginBottom: "20px"
102
168
  },
@@ -111,8 +177,77 @@ const usePopupStyle = theme => ({
111
177
  justifyContent: "start",
112
178
  borderRadius: "10px !important",
113
179
  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
+ },
114
217
  "&:hover": {
115
- backgroundColor: "#E9F3FE"
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
+ }
116
251
  },
117
252
  "& svg": {
118
253
  width: "24px",
@@ -151,6 +286,11 @@ const usePopupStyle = theme => ({
151
286
  },
152
287
  "@media only screen and (max-width: 599px)": {
153
288
  width: "330px"
289
+ },
290
+ "& .textFormatMUIIcon": {
291
+ "& svg": {
292
+ color: theme?.palette?.editor?.closeButtonSvgStroke
293
+ }
154
294
  }
155
295
  },
156
296
  textFormatLabel: {
@@ -168,8 +308,21 @@ const usePopupStyle = theme => ({
168
308
  },
169
309
  "& .MuiFormControl-root.MuiTextField-root input": {
170
310
  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
+ }
171
320
  }
172
321
  },
322
+ textSettingHeader: {
323
+ display: "flex",
324
+ borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
325
+ },
173
326
  textFormatField: {
174
327
  marginBottom: "16px",
175
328
  marginTop: "10px"
@@ -182,6 +335,93 @@ const usePopupStyle = theme => ({
182
335
  // marginBottom: "16px",
183
336
  marginTop: "10px"
184
337
  },
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
+ },
185
425
  textFormatFieldBorder: {
186
426
  display: "flex",
187
427
  alignItems: "center",
@@ -191,7 +431,8 @@ const usePopupStyle = theme => ({
191
431
  boxShadow: "0px 4px 18px 0px rgba(0, 0, 0, 0.05)"
192
432
  },
193
433
  dividerGrid: {
194
- margin: "5px 0px 10px 0px"
434
+ margin: "5px 0px 10px 0px",
435
+ background: `${theme?.palette?.editor?.deviderBgColor} !important`
195
436
  },
196
437
  textFormatColorWrpr: {
197
438
  display: "flex",
@@ -301,61 +542,100 @@ const usePopupStyle = theme => ({
301
542
  }
302
543
  },
303
544
  btnGroup: {
304
- backgroundColor: theme?.palette?.editor?.background,
545
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`,
546
+ borderRadius: "7px",
547
+ backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
305
548
  "& button": {
306
- backgroundColor: theme?.palette?.editor?.background,
549
+ backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
307
550
  marginRight: "0px",
308
551
  color: theme?.palette?.editor?.textColor,
309
- borderColor: theme?.palette?.editor?.borderColor,
552
+ borderColor: "#ffffff00 !important",
310
553
  textTransform: "capitalize",
311
554
  marginBottom: "0px",
312
- "&:hover": {
313
- color: theme?.palette?.editor?.borderColor,
314
- background: theme?.palette?.editor?.background
315
- },
316
555
  "&.active": {
317
556
  background: theme?.palette?.editor?.background,
318
557
  color: theme?.palette?.editor?.activeColor
319
558
  },
320
559
  "&.no-hover": {
321
- border: `1px solid ${theme?.palette?.editor?.borderColor}`
560
+ border: `1px solid #ffffff00`
322
561
  }
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"
323
579
  }
324
580
  },
325
581
  btnGroup2: {
326
- backgroundColor: theme?.palette?.editor?.background,
582
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`,
583
+ borderRadius: "7px",
584
+ backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
327
585
  "& button": {
328
586
  backgroundColor: theme?.palette?.editor?.background,
329
587
  marginRight: "0px",
330
588
  color: theme?.palette?.editor?.textColor,
331
- borderColor: theme?.palette?.editor?.borderColor,
589
+ borderColor: "#ffffff00 !important",
332
590
  textTransform: "capitalize",
333
591
  marginBottom: "0px",
334
- "&:hover": {
335
- color: theme?.palette?.editor?.borderColor,
336
- background: theme?.palette?.editor?.background
337
- },
592
+ // "&:hover": {
593
+ // color: theme?.palette?.editor?.borderColor,
594
+ // background: theme?.palette?.editor?.background,
595
+ // },
338
596
  "&.active": {
339
597
  background: theme?.palette?.editor?.background,
340
598
  color: theme?.palette?.editor?.activeColor
341
599
  },
342
600
  "&.no-hover": {
343
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
344
- padding: "0px 5px !important"
601
+ border: `1px solid #ffffff00`,
602
+ borderRadius: "7px 0px 0px 7px"
345
603
  }
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"
346
621
  }
347
622
  },
348
623
  allColor: {
624
+ borderRadius: "7px !important",
349
625
  "& .buttonsWrpr": {
626
+ backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
627
+ border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
628
+ borderRadius: "7px !important",
350
629
  "& button": {
351
630
  color: theme?.palette?.editor?.textColor
352
631
  }
353
632
  }
354
633
  },
355
634
  allColorInner: {
635
+ borderRadius: "7px !important",
356
636
  "& .buttonsWrpr": {
357
637
  "& button": {
358
- border: "1px solid #ccc",
638
+ // border: "1px solid #ccc",
359
639
  margin: "4px",
360
640
  width: "24px",
361
641
  height: "24px",
@@ -382,7 +662,7 @@ const usePopupStyle = theme => ({
382
662
  padding: "0px 10px"
383
663
  },
384
664
  defaultBtn2: {
385
- color: "#A2B0B9 !important",
665
+ color: `${theme?.palette?.editor?.deafultColorOptionTextColor} !important`,
386
666
  textTransform: "none",
387
667
  textDecorationLine: "underline",
388
668
  textUnderlineOffset: "2px",
@@ -411,14 +691,16 @@ const usePopupStyle = theme => ({
411
691
  padding: "7px 15px",
412
692
  color: "#FFF",
413
693
  width: "100px",
414
- marginBottom: "10px"
694
+ marginBottom: "10px",
695
+ textTransform: "capitalize"
415
696
  },
416
697
  "& .outlineBtn": {
417
698
  border: "1px solid #D7DBEC",
418
699
  borderRadius: "7px",
419
700
  padding: "7px 15px",
420
701
  color: "#FFF",
421
- width: "100px"
702
+ width: "100px",
703
+ textTransform: "capitalize"
422
704
  }
423
705
  },
424
706
  searchBox: {
@@ -430,10 +712,24 @@ const usePopupStyle = theme => ({
430
712
  }
431
713
  },
432
714
  textOptions: {
433
- backgroundColor: theme?.palette?.editor?.background,
434
- color: theme?.palette?.editor?.textColor
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
+ }
435
722
  },
436
723
  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
+ },
437
733
  "& .textFontArrows": {
438
734
  "& svg": {
439
735
  stroke: theme?.palette?.editor?.textColor
@@ -441,41 +737,79 @@ const usePopupStyle = theme => ({
441
737
  }
442
738
  },
443
739
  closeBtn: {
444
- backgroundColor: theme?.palette?.editor?.background,
445
- color: theme?.palette?.editor?.textColor
740
+ background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
741
+ color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
446
742
  },
447
743
  colorPickerPopup: {
448
744
  margin: "30px",
449
745
  "& .MuiPaper-root": {
450
746
  overflow: "auto",
451
- backgroundColor: theme?.palette?.editor?.background
747
+ backgroundColor: theme?.palette?.editor?.background,
748
+ borderRadius: "14px !important",
749
+ border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
452
750
  },
453
751
  "& .popup_tabs": {
454
- backgroundColor: theme?.palette?.editor?.background
752
+ backgroundColor: theme?.palette?.editor?.inputFieldBgColor
455
753
  },
456
754
  "& .popup_tabs-header": {
457
- backgroundColor: theme?.palette?.editor?.background,
755
+ fontFamily: "Inter, sans-serif",
756
+ fontWeight: 700,
757
+ fontSize: "12px !important",
758
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
458
759
  "& .popup_tabs-header-label-active": {
459
760
  color: theme?.palette?.editor?.activeColor,
460
- backgroundColor: theme?.palette?.editor?.background
761
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground
461
762
  }
462
763
  },
764
+ "& .popup_tabs-body": {
765
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground
766
+ },
463
767
  "& .colorpicker": {
464
- backgroundColor: theme?.palette?.editor?.background
768
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground
465
769
  },
466
770
  "& .color-picker-panel": {
467
- backgroundColor: theme?.palette?.editor?.background
771
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground
468
772
  },
469
773
  "& .input_rgba": {
470
774
  "& input": {
471
- backgroundColor: theme?.palette?.editor?.background,
472
- color: theme?.palette?.editor?.textColor
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"
473
806
  }
474
807
  }
475
808
  },
476
809
  colorPopper: {
477
810
  "& .MuiPaper-root": {
478
811
  backgroundColor: theme?.palette?.editor?.background,
812
+ borderRadius: "7px !important",
479
813
  "@media only screen and (max-width: 600px)": {
480
814
  marginTop: "-40px"
481
815
  }
@@ -589,17 +923,18 @@ const usePopupStyle = theme => ({
589
923
  "& .MuiPopover-paper": {
590
924
  maxHeight: "140px",
591
925
  // minWidth: "130px",
592
- border: "1px solid #E4E8EB",
593
- background: `${theme?.palette?.editor?.background} !important`,
926
+ // border: "1px solid #E4E8EB",
927
+ background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
594
928
  overflowY: "scroll",
595
- padding: "6px 12px 6px 0px",
929
+ padding: "3px 12px 8px 2px",
930
+ borderRadius: "8px",
596
931
  "@media only screen and (max-width: 600px)": {
597
932
  marginTop: "-40px"
598
933
  }
599
934
  },
600
935
  "& .customSelectOptionLabel": {
601
936
  color: theme?.palette?.editor?.textColor || "black",
602
- margin: "0px 6px 0px 6px",
937
+ margin: "6px 6px 0px 6px",
603
938
  width: "100%",
604
939
  justifyContent: "start",
605
940
  paddingRight: "20px",
@@ -612,8 +947,40 @@ const usePopupStyle = theme => ({
612
947
  background: `${theme?.palette?.action?.selected} !important`
613
948
  },
614
949
  "&.selected": {
615
- color: `#2563EB !important`,
616
- background: `#E9F3FE !important`
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
+ }
617
984
  }
618
985
  },
619
986
  "& .menuOptions": {