@flozy/editor 5.3.7 → 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 (191) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +15 -29
  3. package/dist/Editor/Editor.css +18 -100
  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/Accordion/Accordion.js +1 -8
  9. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  10. package/dist/Editor/Elements/Button/EditorButton.js +2 -9
  11. package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -11
  12. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  13. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  14. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  15. package/dist/Editor/Elements/Divider/Divider.js +20 -36
  16. package/dist/Editor/Elements/Embed/Image.js +16 -51
  17. package/dist/Editor/Elements/Embed/Video.js +3 -26
  18. package/dist/Editor/Elements/Form/Form.js +2 -39
  19. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  20. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  21. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  22. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  23. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  24. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  25. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  26. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  27. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  28. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  29. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  30. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  31. package/dist/Editor/Elements/Grid/GridButton.js +2 -2
  32. package/dist/Editor/Elements/Grid/GridItem.js +36 -47
  33. package/dist/Editor/Elements/Grid/Styles.js +0 -50
  34. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  35. package/dist/Editor/Elements/List/CheckList.js +1 -2
  36. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  37. package/dist/Editor/Elements/Search/SearchButton.js +0 -1
  38. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  39. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  40. package/dist/Editor/Elements/Signature/SignaturePopup.js +52 -17
  41. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  42. package/dist/Editor/Elements/SimpleText/style.js +1 -20
  43. package/dist/Editor/Elements/Table/Styles.js +79 -82
  44. package/dist/Editor/Elements/Table/Table.js +140 -258
  45. package/dist/Editor/Elements/Table/TableCell.js +111 -365
  46. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  47. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  48. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  49. package/dist/Editor/MiniEditor.js +1 -15
  50. package/dist/Editor/Styles/EditorStyles.js +4 -13
  51. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  52. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +12 -7
  53. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -26
  54. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  55. package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -5
  56. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  57. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  58. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  59. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +15 -19
  60. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +57 -555
  61. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +16 -73
  62. package/dist/Editor/Toolbar/PopupTool/index.js +5 -3
  63. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  64. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  65. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  66. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  67. package/dist/Editor/common/ColorPickerButton.js +45 -85
  68. package/dist/Editor/common/DnD/Draggable.js +1 -2
  69. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  70. package/dist/Editor/common/Icon.js +20 -23
  71. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  72. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  73. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  74. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  75. package/dist/Editor/common/LinkSettings/index.js +1 -2
  76. package/dist/Editor/common/MentionsPopup/Styles.js +8 -143
  77. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  78. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
  79. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  80. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  81. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  82. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  83. package/dist/Editor/common/RnD/VirtualElement/index.js +1 -5
  84. package/dist/Editor/common/RnD/index.js +2 -3
  85. package/dist/Editor/common/Section/index.js +3 -3
  86. package/dist/Editor/common/Section/styles.js +1 -5
  87. package/dist/Editor/common/Shorthands/elements.js +1 -13
  88. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  89. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  90. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +7 -35
  91. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  92. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  93. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  94. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  95. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  96. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  97. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +11 -11
  98. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  99. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  100. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
  101. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -12
  102. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  103. package/dist/Editor/common/StyleBuilder/index.js +20 -101
  104. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  105. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  106. package/dist/Editor/common/SwipeableDrawer/style.js +4 -15
  107. package/dist/Editor/common/ToolbarIcon.js +1 -1
  108. package/dist/Editor/common/Uploader.js +36 -46
  109. package/dist/Editor/common/iconListV2.js +60 -616
  110. package/dist/Editor/common/iconslist.js +17 -23
  111. package/dist/Editor/commonStyle.js +11 -417
  112. package/dist/Editor/helper/deserialize/index.js +1 -4
  113. package/dist/Editor/helper/index.js +4 -17
  114. package/dist/Editor/helper/theme.js +1 -24
  115. package/dist/Editor/hooks/useMouseMove.js +2 -5
  116. package/dist/Editor/plugins/withCustomDeleteBackward.js +4 -36
  117. package/dist/Editor/plugins/withEmbeds.js +26 -30
  118. package/dist/Editor/plugins/withHTML.js +10 -61
  119. package/dist/Editor/plugins/withLayout.js +0 -1
  120. package/dist/Editor/utils/SlateUtilityFunctions.js +4 -29
  121. package/dist/Editor/utils/brains.js +1 -1
  122. package/dist/Editor/utils/button.js +4 -4
  123. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +1 -26
  124. package/dist/Editor/utils/customHooks/useResize.js +4 -7
  125. package/dist/Editor/utils/customHooks/useTableResize.js +2 -6
  126. package/dist/Editor/utils/embed.js +1 -2
  127. package/dist/Editor/utils/events.js +1 -0
  128. package/dist/Editor/utils/font.js +4 -11
  129. package/dist/Editor/utils/formfield.js +4 -8
  130. package/dist/Editor/utils/helper.js +2 -95
  131. package/dist/Editor/utils/insertNewLine.js +1 -19
  132. package/dist/Editor/utils/pageSettings.js +2 -14
  133. package/dist/Editor/utils/serializeToText.js +0 -2
  134. package/dist/Editor/utils/table.js +24 -228
  135. package/package.json +2 -2
  136. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  137. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  138. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  139. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  140. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  141. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  142. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  143. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  144. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  145. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  146. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  147. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  148. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  149. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  150. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  151. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  152. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  153. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  154. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  155. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  156. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  157. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  158. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  159. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  160. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  161. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  162. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  163. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  164. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  165. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  166. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  167. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  168. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  169. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  170. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  171. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  172. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  173. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  174. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  175. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  176. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  177. package/dist/Editor/Elements/DataView/styles.js +0 -154
  178. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  179. package/dist/Editor/Elements/Table/DragButton.js +0 -142
  180. package/dist/Editor/Elements/Table/DragStyles.js +0 -70
  181. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  182. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  183. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  184. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  185. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  186. package/dist/Editor/common/Select/index.js +0 -20
  187. package/dist/Editor/common/Select/styles.js +0 -17
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  189. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  190. package/dist/Editor/hooks/useTable.js +0 -210
  191. 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,25 +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: `1px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
94
- paddingTop: "10px",
95
- "& svg": {
96
- width: "20px",
97
- height: "24px"
98
- }
99
54
  }
100
55
  },
101
56
  "@media only screen and (max-width: 599px)": {
102
- // margin: "10px !important",
57
+ padding: "10px",
103
58
  background: "unset",
104
- boxShadow: "unset"
105
- // border: "none",
59
+ boxShadow: "unset",
60
+ border: "none"
106
61
  }
107
62
  },
108
-
109
63
  textFormatWrapper: {
110
64
  padding: "0px 16px 16px 16px",
111
65
  width: "323px",
@@ -129,9 +83,6 @@ const usePopupStyle = theme => ({
129
83
  width: "330px"
130
84
  }
131
85
  },
132
- "& .MuiTypography-root": {
133
- padding: "0px"
134
- },
135
86
  "&.templates": {
136
87
  width: "500px",
137
88
  maxWidth: "100%",
@@ -139,38 +90,13 @@ const usePopupStyle = theme => ({
139
90
  width: "100%",
140
91
  maxHeight: "fit-content"
141
92
  },
142
- "& .MuiTab-root": {
143
- textTransform: "capitalize",
144
- color: "#64748B",
145
- borderBottom: `1.5px solid ${theme?.palette?.editor?.deviderBgColor}`
146
- },
147
- "& .Mui-selected": {
148
- color: `${theme?.palette?.editor?.textColor} !important`,
149
- fontWeight: "700 !important"
150
- },
151
- "& .MuiTabs-indicator": {
152
- background: "#2563EB"
153
- },
154
- "& .MuiTabScrollButton-horizontal": {
155
- borderBottom: "unset !important",
156
- width: "10px",
157
- "& svg": {
158
- color: theme?.palette?.editor?.closeButtonSvgStroke
159
- }
160
- },
161
93
  "@media only screen and (max-width: 599px)": {
162
94
  width: "330px"
163
- },
164
- "& .MuiCardContent-root": {
165
- color: theme?.palette?.editor?.textColor,
166
- fontFamily: "Inter, sans-serif",
167
- fontSize: "12px",
168
- fontWeight: "500"
169
95
  }
170
96
  },
171
97
  "& .headerContainer": {},
172
98
  "& .textSettingHeader": {
173
- // borderBottom: "1px solid #DCE4EC",
99
+ borderBottom: "1px solid #DCE4EC",
174
100
  padding: "8px 0px 5px",
175
101
  marginBottom: "20px"
176
102
  },
@@ -185,77 +111,8 @@ const usePopupStyle = theme => ({
185
111
  justifyContent: "start",
186
112
  borderRadius: "10px !important",
187
113
  transition: "background-color 0.3s ease",
188
- // "& .colorBoxElementIcon": {
189
- // "& path": {
190
- // fill: theme?.palette?.type === "dark" ? "none" : "",
191
- // },
192
- // },
193
- "& .signatureElementIcon": {
194
- "& path": {
195
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
196
- }
197
- },
198
- "& .commonSvgStyle": {
199
- "& path": {
200
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
201
- }
202
- },
203
- "& .commonSvgStyle2": {
204
- "& path": {
205
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
206
- }
207
- },
208
- "& .colorBoxElementIcon": {
209
- "& path": {
210
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
211
- fill: "none"
212
- }
213
- },
214
- "& .gridElementIcon": {
215
- "& path": {
216
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
217
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
218
- }
219
- },
220
- "& .newLineElementIcon": {
221
- "& path": {
222
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
223
- }
224
- },
225
114
  "&:hover": {
226
- backgroundColor: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`,
227
- "& .signatureElementIcon": {
228
- "& path": {
229
- fill: `${theme?.palette?.editor?.textColor}`
230
- }
231
- },
232
- "& .commonSvgStyle": {
233
- "& path": {
234
- stroke: `${theme?.palette?.editor?.textColor}`
235
- }
236
- },
237
- "& .commonSvgStyle2": {
238
- "& path": {
239
- stroke: `${theme?.palette?.editor?.textColor}`
240
- }
241
- },
242
- "& .colorBoxElementIcon": {
243
- "& path": {
244
- stroke: `${theme?.palette?.editor?.textColor}`,
245
- fill: "none"
246
- }
247
- },
248
- "& .gridElementIcon": {
249
- "& path": {
250
- stroke: `${theme?.palette?.editor?.textColor}`,
251
- fill: `${theme?.palette?.editor?.textColor}`
252
- }
253
- },
254
- "& .newLineElementIcon": {
255
- "& path": {
256
- fill: `${theme?.palette?.editor?.textColor}`
257
- }
258
- }
115
+ backgroundColor: "#E9F3FE"
259
116
  },
260
117
  "& svg": {
261
118
  width: "24px",
@@ -294,14 +151,6 @@ const usePopupStyle = theme => ({
294
151
  },
295
152
  "@media only screen and (max-width: 599px)": {
296
153
  width: "330px"
297
- },
298
- "& .textFormatMUIIcon": {
299
- "& svg": {
300
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
301
- }
302
- },
303
- "& .npr-0": {
304
- paddingRight: "0px !important"
305
154
  }
306
155
  },
307
156
  textFormatLabel: {
@@ -319,24 +168,11 @@ const usePopupStyle = theme => ({
319
168
  },
320
169
  "& .MuiFormControl-root.MuiTextField-root input": {
321
170
  padding: "8px 35px 6px 12px"
322
- },
323
- "& .toogleFullScreenBtn": {
324
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
325
- padding: "4px !important",
326
- "& .toogleFullScreenSvg": {
327
- "& path": {
328
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
329
- }
330
- }
331
171
  }
332
172
  },
333
- textSettingHeader: {
334
- display: "flex",
335
- borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
336
- },
337
173
  textFormatField: {
338
- marginBottom: "8px",
339
- marginTop: "8px"
174
+ marginBottom: "16px",
175
+ marginTop: "10px"
340
176
  },
341
177
  textFormatField1: {
342
178
  marginBottom: "16px",
@@ -346,142 +182,6 @@ const usePopupStyle = theme => ({
346
182
  // marginBottom: "16px",
347
183
  marginTop: "10px"
348
184
  },
349
- textFormatField3: {
350
- marginBottom: "16px"
351
- },
352
- textAlignButtons: {
353
- paddingLeft: "0px",
354
- paddingRight: "12px",
355
- "&:hover": {
356
- background: "unset"
357
- },
358
- "&:not(.btnActive):hover": {
359
- background: "unset",
360
- color: `${theme?.palette?.editor?.textColor} !important`,
361
- "& .justifyIcon": {
362
- "& path": {
363
- fill: `${theme?.palette?.editor?.textColor}`,
364
- stroke: `${theme?.palette?.editor?.textColor}`
365
- }
366
- },
367
- "& .textAlignIconSameStyles": {
368
- "& path": {
369
- fill: `${theme?.palette?.editor?.textColor}`
370
- }
371
- },
372
- "& .orderedListIcon": {
373
- "& .strokePathList": {
374
- stroke: `${theme?.palette?.editor?.textColor} !important`
375
- },
376
- "& .fillPathList": {
377
- fill: `${theme?.palette?.editor?.textColor} !important`
378
- }
379
- },
380
- "& .bulletedListTextIcon": {
381
- "& path": {
382
- fill: `${theme?.palette?.editor?.textColor}`,
383
- stroke: `${theme?.palette?.editor?.textColor}`
384
- },
385
- "& circle": {
386
- fill: `${theme?.palette?.editor?.textColor}`
387
- }
388
- },
389
- "& .checkedListTextIcon": {
390
- "& path": {
391
- stroke: `${theme?.palette?.editor?.textColor}`
392
- }
393
- },
394
- "& .accordianListTextIcon": {
395
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
396
- "& svg": {
397
- fill: `${theme?.palette?.editor?.textColor}`,
398
- stroke: `${theme?.palette?.editor?.textColor}`
399
- },
400
- "& path": {
401
- fill: `${theme?.palette?.editor?.textColor}`,
402
- stroke: `${theme?.palette?.editor?.textColor}`
403
- }
404
- }
405
- }
406
- },
407
- autoCompleteaFontFamily: {
408
- "& .MuiOutlinedInput-root": {
409
- borderRadius: "8px",
410
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor}`,
411
- fontSize: "12px",
412
- fontWeight: "400",
413
- height: "36px",
414
- paddingLeft: "12px !important"
415
- },
416
- "& .MuiOutlinedInput-notchedOutline": {
417
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
418
- },
419
- '& .MuiInputBase-root': {
420
- '& input': {
421
- border: "none !important"
422
- }
423
- },
424
- "& svg": {
425
- width: "20px",
426
- height: "24px"
427
- }
428
- },
429
- fontFamilyListOptions: {
430
- "& .MuiAutocomplete-listbox": {
431
- padding: "0px",
432
- "&::-webkit-scrollbar-thumb": {
433
- background: `none !important`
434
- },
435
- "&::-webkit-scrollbar-track": {
436
- visibility: "hidden"
437
- },
438
- "&::-webkit-scrollbar-thumb": {
439
- background: `${theme?.palette?.editor?.brainPopupScroll} !important`
440
- },
441
- "&::-webkit-scrollbar-track": {
442
- visibility: "hidden"
443
- },
444
- "& li": {
445
- margin: "5px",
446
- borderRadius: "8px",
447
- color: theme?.palette?.editor?.menuOptionTextColor,
448
- fontSize: '14px',
449
- padding: '8px 12px',
450
- '&[aria-selected="true"]': {
451
- backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
452
- }
453
- }
454
- },
455
- "& .MuiPaper-root": {
456
- borderRadius: "8px",
457
- background: theme?.palette?.editor?.textWeightPopUpBackground
458
- }
459
- },
460
- textFormatSelect: {
461
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
462
- width: "100%",
463
- height: "36px",
464
- borderRadius: "10px",
465
- fontSize: "12px",
466
- fontFamily: "Inter, sans-serif",
467
- "& .MuiOutlinedInput-notchedOutline": {
468
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
469
- },
470
- "& svg": {
471
- width: "20px",
472
- height: "24px"
473
- }
474
- },
475
- textFormatSelectOptions: {
476
- margin: "5px !important",
477
- borderRadius: "4px !important",
478
- fontSize: "12px !important",
479
- fontWeight: 500,
480
- "&.Mui-selected": {
481
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
482
- color: `${theme?.palette?.editor?.menuOptionTextColor} !important`
483
- }
484
- },
485
185
  textFormatFieldBorder: {
486
186
  display: "flex",
487
187
  alignItems: "center",
@@ -492,31 +192,13 @@ const usePopupStyle = theme => ({
492
192
  },
493
193
  dividerGrid: {
494
194
  margin: "5px 0px 10px 0px"
495
- // background: `${theme?.palette?.editor?.deviderBgColor} !important`,
496
195
  },
497
-
498
196
  textFormatColorWrpr: {
499
197
  display: "flex",
500
198
  alignItems: "center",
501
199
  marginBottom: "8px"
502
200
  },
503
- textFormatCG: {
504
- alignItems: "flexStart",
505
- justifyContent: "center",
506
- flexDirection: "row",
507
- "& .accordionIcon": {
508
- paddingLeft: "0px",
509
- paddingRight: "12px",
510
- "&:not(.btnActive):hover": {
511
- background: "unset",
512
- "& .accordianIconSvgTextFormat": {
513
- "& path": {
514
- stroke: theme?.palette?.editor?.textColor
515
- }
516
- }
517
- }
518
- }
519
- },
201
+ textFormatCG: {},
520
202
  evenSpace: {
521
203
  display: "flex",
522
204
  flexDirection: "row",
@@ -528,36 +210,7 @@ const usePopupStyle = theme => ({
528
210
  "&.typo-icons": {
529
211
  "& button": {
530
212
  width: "31px",
531
- height: "36px",
532
- "&:hover": {
533
- background: "unset"
534
- },
535
- "&:not(.btnActive):hover": {
536
- background: "unset",
537
- "& svg": {
538
- color: `${theme?.palette?.editor?.textColor} !important`
539
- },
540
- "& .linkIcon": {
541
- "& path": {
542
- stroke: theme?.palette?.editor?.textColor
543
- }
544
- }
545
- }
546
- },
547
- alignItems: "flexStart",
548
- justifyContent: "center",
549
- flexDirection: "row",
550
- "&:hover": {
551
- background: "unset"
552
- },
553
- "& .customSelectTool": {
554
- color: theme?.palette?.editor?.closeButtonSvgStroke,
555
- fontWeight: "510",
556
- "& svg": {
557
- marginTop: "8px",
558
- width: "16px",
559
- height: "8px"
560
- }
213
+ height: "36px"
561
214
  }
562
215
  },
563
216
  "&.text-decorations-wrpr": {
@@ -570,24 +223,15 @@ const usePopupStyle = theme => ({
570
223
  fontSize: "14px",
571
224
  marginBottom: "5px",
572
225
  paddingLeft: "5px",
573
- marginTop: "4px",
574
226
  fontWeight: 500,
575
227
  color: theme?.palette?.editor?.textColor || "#000"
576
228
  },
577
229
  typoLabel2: {
578
230
  fontSize: "14px",
579
- marginBottom: "2px",
580
- // paddingLeft: "10px",
231
+ marginBottom: "5px",
232
+ paddingLeft: "10px",
581
233
  fontWeight: 500
582
234
  },
583
- typoLabel3: {
584
- fontSize: "14px",
585
- marginBottom: "10px",
586
- paddingLeft: "5px",
587
- marginTop: "4px",
588
- fontWeight: 500,
589
- color: theme?.palette?.editor?.textColor || "#000"
590
- },
591
235
  templateCard: {
592
236
  borderRadius: "10px",
593
237
  boxShadow: "none",
@@ -657,110 +301,61 @@ const usePopupStyle = theme => ({
657
301
  }
658
302
  },
659
303
  btnGroup: {
660
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
661
- borderRadius: "7px",
662
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
663
- height: "36px",
304
+ backgroundColor: theme?.palette?.editor?.background,
664
305
  "& button": {
665
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
306
+ backgroundColor: theme?.palette?.editor?.background,
666
307
  marginRight: "0px",
667
308
  color: theme?.palette?.editor?.textColor,
668
- borderColor: "#ffffff00 !important",
309
+ borderColor: theme?.palette?.editor?.borderColor,
669
310
  textTransform: "capitalize",
670
311
  marginBottom: "0px",
312
+ "&:hover": {
313
+ color: theme?.palette?.editor?.borderColor,
314
+ background: theme?.palette?.editor?.background
315
+ },
671
316
  "&.active": {
672
317
  background: theme?.palette?.editor?.background,
673
318
  color: theme?.palette?.editor?.activeColor
674
319
  },
675
320
  "&.no-hover": {
676
- border: `1px solid #ffffff00`
321
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`
677
322
  }
678
- },
679
- "& .colorBox": {
680
- background: theme?.palette?.editor?.inputFieldBgColor,
681
- borderRadius: "7px 0px 0px 7px",
682
- fontSize: "12px !important",
683
- fontWeight: 500
684
- },
685
- "& .colorPicker": {
686
- background: theme?.palette?.editor?.inputFieldBgColor,
687
- borderRadius: "0px 7px 7px 0px",
688
- padding: "0px"
689
- },
690
- "& .vl": {
691
- background: theme?.palette?.editor?.borderColor,
692
- width: "2px",
693
- height: "25px",
694
- margin: "5px 0px"
695
- },
696
- "& svg": {
697
- width: "20px",
698
- height: "24px"
699
323
  }
700
324
  },
701
325
  btnGroup2: {
702
- border: `1px solid ${theme?.palette?.editor?.borderColor}`,
703
- borderRadius: "7px",
704
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
705
- height: "36px",
326
+ backgroundColor: theme?.palette?.editor?.background,
706
327
  "& button": {
707
328
  backgroundColor: theme?.palette?.editor?.background,
708
329
  marginRight: "0px",
709
330
  color: theme?.palette?.editor?.textColor,
710
- borderColor: "#ffffff00 !important",
331
+ borderColor: theme?.palette?.editor?.borderColor,
711
332
  textTransform: "capitalize",
712
333
  marginBottom: "0px",
713
- // "&:hover": {
714
- // color: theme?.palette?.editor?.borderColor,
715
- // background: theme?.palette?.editor?.background,
716
- // },
334
+ "&:hover": {
335
+ color: theme?.palette?.editor?.borderColor,
336
+ background: theme?.palette?.editor?.background
337
+ },
717
338
  "&.active": {
718
339
  background: theme?.palette?.editor?.background,
719
340
  color: theme?.palette?.editor?.activeColor
720
341
  },
721
342
  "&.no-hover": {
722
- border: `1px solid #ffffff00`,
723
- borderRadius: "7px 0px 0px 7px"
724
- },
725
- "& svg": {
726
- width: "20px",
727
- height: "24px"
343
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`,
344
+ padding: "0px 5px !important"
728
345
  }
729
- },
730
- "& .colorBox": {
731
- background: theme?.palette?.editor?.inputFieldBgColor,
732
- borderRadius: "7px 0px 0px 7px",
733
- fontSize: "12px !important",
734
- fontWeight: 500
735
- },
736
- "& .colorPicker": {
737
- background: theme?.palette?.editor?.inputFieldBgColor,
738
- borderRadius: "0px 7px 7px 0px",
739
- padding: "0px"
740
- },
741
- "& .vl": {
742
- background: theme?.palette?.editor?.borderColor,
743
- width: "2px",
744
- height: "25px",
745
- margin: "5px 0px"
746
346
  }
747
347
  },
748
348
  allColor: {
749
- borderRadius: "7px !important",
750
349
  "& .buttonsWrpr": {
751
- backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
752
- border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
753
- borderRadius: "7px !important",
754
350
  "& button": {
755
351
  color: theme?.palette?.editor?.textColor
756
352
  }
757
353
  }
758
354
  },
759
355
  allColorInner: {
760
- borderRadius: "7px !important",
761
356
  "& .buttonsWrpr": {
762
357
  "& button": {
763
- // border: "1px solid #ccc",
358
+ border: "1px solid #ccc",
764
359
  margin: "4px",
765
360
  width: "24px",
766
361
  height: "24px",
@@ -784,14 +379,14 @@ const usePopupStyle = theme => ({
784
379
  textTransform: "none",
785
380
  textDecorationLine: "underline",
786
381
  textUnderlineOffset: "2px",
787
- padding: "0px"
382
+ padding: "0px 10px"
788
383
  },
789
384
  defaultBtn2: {
790
- color: `${theme?.palette?.editor?.deafultColorOptionTextColor} !important`,
385
+ color: "#A2B0B9 !important",
791
386
  textTransform: "none",
792
387
  textDecorationLine: "underline",
793
388
  textUnderlineOffset: "2px",
794
- padding: "0px"
389
+ padding: "0px 10px"
795
390
  },
796
391
  defaultBtn: {
797
392
  color: "#0F172A",
@@ -816,16 +411,14 @@ const usePopupStyle = theme => ({
816
411
  padding: "7px 15px",
817
412
  color: "#FFF",
818
413
  width: "100px",
819
- marginBottom: "10px",
820
- textTransform: "capitalize"
414
+ marginBottom: "10px"
821
415
  },
822
416
  "& .outlineBtn": {
823
417
  border: "1px solid #D7DBEC",
824
418
  borderRadius: "7px",
825
419
  padding: "7px 15px",
826
420
  color: "#FFF",
827
- width: "100px",
828
- textTransform: "capitalize"
421
+ width: "100px"
829
422
  }
830
423
  },
831
424
  searchBox: {
@@ -837,110 +430,52 @@ const usePopupStyle = theme => ({
837
430
  }
838
431
  },
839
432
  textOptions: {
840
- backgroundColor: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
841
- color: theme?.palette?.editor?.textColor,
842
- borderRadius: "8px !important",
843
- fontFamily: "Inter, sans-serif",
844
- "& .MuiList-root": {
845
- padding: "0px !important"
846
- }
433
+ backgroundColor: theme?.palette?.editor?.background,
434
+ color: theme?.palette?.editor?.textColor
847
435
  },
848
436
  textSize: {
849
- height: "36px !important",
850
- "& .MuiOutlinedInput-root": {
851
- borderRadius: "8px !important",
852
- height: "36px !important",
853
- background: `${theme?.palette?.editor?.inputFieldBgColor} !important`
854
- },
855
- "& .MuiOutlinedInput-notchedOutline": {
856
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
857
- },
858
437
  "& .textFontArrows": {
859
438
  "& svg": {
860
- stroke: theme?.palette?.editor?.closeButtonSvgStroke,
861
- color: theme?.palette?.editor?.closeButtonSvgStroke,
862
- width: "10px",
863
- height: "12px"
439
+ stroke: theme?.palette?.editor?.textColor
864
440
  }
865
441
  }
866
442
  },
867
443
  closeBtn: {
868
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
869
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
444
+ backgroundColor: theme?.palette?.editor?.background,
445
+ color: theme?.palette?.editor?.textColor
870
446
  },
871
447
  colorPickerPopup: {
872
448
  margin: "30px",
873
449
  "& .MuiPaper-root": {
874
450
  overflow: "auto",
875
- backgroundColor: theme?.palette?.editor?.background,
876
- borderRadius: "14px !important",
877
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
451
+ backgroundColor: theme?.palette?.editor?.background
878
452
  },
879
453
  "& .popup_tabs": {
880
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
881
- "@media only screen and (max-width: 899px)": {
882
- width: "100% !important"
883
- }
454
+ backgroundColor: theme?.palette?.editor?.background
884
455
  },
885
456
  "& .popup_tabs-header": {
886
- fontFamily: "Inter, sans-serif",
887
- fontWeight: 700,
888
- fontSize: "12px !important",
889
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
457
+ backgroundColor: theme?.palette?.editor?.background,
890
458
  "& .popup_tabs-header-label-active": {
891
459
  color: theme?.palette?.editor?.activeColor,
892
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
460
+ backgroundColor: theme?.palette?.editor?.background
893
461
  }
894
462
  },
895
- "& .popup_tabs-body": {
896
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
897
- },
898
463
  "& .colorpicker": {
899
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
464
+ backgroundColor: theme?.palette?.editor?.background
900
465
  },
901
466
  "& .color-picker-panel": {
902
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
467
+ backgroundColor: theme?.palette?.editor?.background
903
468
  },
904
469
  "& .input_rgba": {
905
470
  "& input": {
906
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
907
- color: theme?.palette?.editor?.textColor,
908
- height: "32px !important",
909
- borderRadius: "10px !important",
910
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
911
- boxShadow: "none",
912
- "&:hover": {
913
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`
914
- },
915
- "&:focus": {
916
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
917
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
918
- boxShadow: "none"
919
- }
920
- },
921
- "& .input_rgba-hex-label": {
922
- top: "4px !important"
923
- },
924
- "& .input_rgba-alpha-label": {
925
- top: "6px !important"
926
- },
927
- "& .input_rgba-label": {
928
- display: "none"
929
- }
930
- },
931
- "& .default-color-panel": {
932
- gridTemplateColumns: "repeat(auto-fill, 24px)",
933
- "& .default-color-panel_item": {
934
- borderRadius: "50%",
935
- width: "16px",
936
- height: "16px"
471
+ backgroundColor: theme?.palette?.editor?.background,
472
+ color: theme?.palette?.editor?.textColor
937
473
  }
938
474
  }
939
475
  },
940
476
  colorPopper: {
941
477
  "& .MuiPaper-root": {
942
478
  backgroundColor: theme?.palette?.editor?.background,
943
- borderRadius: "7px !important",
944
479
  "@media only screen and (max-width: 600px)": {
945
480
  marginTop: "-40px"
946
481
  }
@@ -1054,18 +589,17 @@ const usePopupStyle = theme => ({
1054
589
  "& .MuiPopover-paper": {
1055
590
  maxHeight: "140px",
1056
591
  // minWidth: "130px",
1057
- // border: "1px solid #E4E8EB",
1058
- background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
592
+ border: "1px solid #E4E8EB",
593
+ background: `${theme?.palette?.editor?.background} !important`,
1059
594
  overflowY: "scroll",
1060
- padding: "3px 12px 8px 2px",
1061
- borderRadius: "8px",
595
+ padding: "6px 12px 6px 0px",
1062
596
  "@media only screen and (max-width: 600px)": {
1063
597
  marginTop: "-40px"
1064
598
  }
1065
599
  },
1066
600
  "& .customSelectOptionLabel": {
1067
601
  color: theme?.palette?.editor?.textColor || "black",
1068
- margin: "6px 6px 0px 6px",
602
+ margin: "0px 6px 0px 6px",
1069
603
  width: "100%",
1070
604
  justifyContent: "start",
1071
605
  paddingRight: "20px",
@@ -1078,40 +612,8 @@ const usePopupStyle = theme => ({
1078
612
  background: `${theme?.palette?.action?.selected} !important`
1079
613
  },
1080
614
  "&.selected": {
1081
- color: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
1082
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
1083
- "& .orderedListIcon": {
1084
- "& .strokePathList": {
1085
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
1086
- },
1087
- "& .fillPathList": {
1088
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
1089
- }
1090
- },
1091
- "& .bulletedListTextIcon": {
1092
- "& path": {
1093
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`,
1094
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
1095
- },
1096
- "& circle": {
1097
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
1098
- }
1099
- },
1100
- "& .checkedListTextIcon": {
1101
- "& path": {
1102
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
1103
- }
1104
- },
1105
- "& .accordianIconSvgTextFormat": {
1106
- "& path": {
1107
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
1108
- }
1109
- },
1110
- "& .textAlignIconSameStyles": {
1111
- "& path": {
1112
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
1113
- }
1114
- }
615
+ color: `#2563EB !important`,
616
+ background: `#E9F3FE !important`
1115
617
  }
1116
618
  },
1117
619
  "& .menuOptions": {