@flozy/editor 5.1.5 → 5.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) 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/AppHeader/AppHeader.js +6 -6
  8. package/dist/Editor/Elements/Button/EditorButton.js +1 -1
  9. package/dist/Editor/Elements/Carousel/CarouselItem.js +1 -1
  10. package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
  11. package/dist/Editor/Elements/Color Picker/Styles.js +7 -3
  12. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  13. package/dist/Editor/Elements/DataView/DataView.js +109 -0
  14. package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
  15. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +66 -0
  16. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +30 -0
  17. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +162 -0
  18. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
  19. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +67 -0
  20. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +30 -0
  21. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +39 -0
  22. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
  23. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
  24. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
  25. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
  26. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
  27. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
  28. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
  29. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
  30. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
  31. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
  32. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
  33. package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
  34. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
  35. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
  36. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
  37. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +60 -0
  38. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
  39. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
  40. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
  41. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
  42. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
  43. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
  44. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
  45. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
  46. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +112 -0
  47. package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
  48. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +70 -0
  49. package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
  50. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +288 -0
  51. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
  52. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +72 -0
  53. package/dist/Editor/Elements/DataView/styles.js +143 -0
  54. package/dist/Editor/Elements/Divider/Divider.js +15 -14
  55. package/dist/Editor/Elements/Form/Form.js +38 -2
  56. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
  57. package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
  58. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
  59. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
  60. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
  61. package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
  62. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
  63. package/dist/Editor/Elements/Form/FormPopup.js +12 -9
  64. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  65. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
  66. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  67. package/dist/Editor/Elements/FreeGrid/styles.js +1 -1
  68. package/dist/Editor/Elements/Grid/GridButton.js +2 -2
  69. package/dist/Editor/Elements/Grid/GridItem.js +21 -18
  70. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  71. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  72. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  73. package/dist/Editor/Elements/Signature/SignaturePopup.js +13 -48
  74. package/dist/Editor/Elements/SimpleText/index.js +8 -1
  75. package/dist/Editor/Elements/SimpleText/style.js +13 -1
  76. package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
  77. package/dist/Editor/Elements/Table/DragButton.js +141 -0
  78. package/dist/Editor/Elements/Table/DragStyles.js +70 -0
  79. package/dist/Editor/Elements/Table/Draggable.js +25 -0
  80. package/dist/Editor/Elements/Table/Droppable.js +53 -0
  81. package/dist/Editor/Elements/Table/Styles.js +25 -43
  82. package/dist/Editor/Elements/Table/Table.js +205 -138
  83. package/dist/Editor/Elements/Table/TableCell.js +355 -102
  84. package/dist/Editor/Elements/Table/TablePopup.js +9 -3
  85. package/dist/Editor/Elements/Table/TableRow.js +10 -2
  86. package/dist/Editor/Elements/Table/TableTool.js +101 -0
  87. package/dist/Editor/Elements/Table/tableHelper.js +71 -0
  88. package/dist/Editor/Styles/EditorStyles.js +3 -1
  89. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
  90. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -12
  91. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +10 -4
  92. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
  93. package/dist/Editor/Toolbar/FormatTools/TextSize.js +0 -2
  94. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -6
  95. package/dist/Editor/Toolbar/Mini/Styles.js +4 -1
  96. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  97. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +19 -15
  98. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +411 -49
  99. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +62 -8
  100. package/dist/Editor/Toolbar/PopupTool/index.js +5 -6
  101. package/dist/Editor/Toolbar/Toolbar.js +6 -0
  102. package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
  103. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  104. package/dist/Editor/assets/svg/TableIcons.js +220 -0
  105. package/dist/Editor/common/ColorPickerButton.js +3 -2
  106. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  107. package/dist/Editor/common/Icon.js +20 -19
  108. package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
  109. package/dist/Editor/common/LinkSettings/index.js +2 -1
  110. package/dist/Editor/common/MentionsPopup/Styles.js +152 -8
  111. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  112. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +108 -12
  113. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  114. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  115. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +14 -2
  116. package/dist/Editor/common/Select/index.js +20 -0
  117. package/dist/Editor/common/Select/styles.js +17 -0
  118. package/dist/Editor/common/Shorthands/elements.js +13 -1
  119. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
  120. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +8 -4
  121. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
  122. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
  123. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
  124. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +7 -7
  125. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +5 -2
  126. package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
  127. package/dist/Editor/common/StyleBuilder/index.js +84 -11
  128. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
  129. package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
  130. package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
  131. package/dist/Editor/common/Uploader.js +8 -0
  132. package/dist/Editor/common/iconListV2.js +378 -40
  133. package/dist/Editor/common/iconslist.js +23 -17
  134. package/dist/Editor/commonStyle.js +126 -9
  135. package/dist/Editor/helper/deserialize/index.js +4 -1
  136. package/dist/Editor/helper/index.js +2 -2
  137. package/dist/Editor/helper/theme.js +24 -1
  138. package/dist/Editor/hooks/useMouseMove.js +5 -2
  139. package/dist/Editor/hooks/useTable.js +195 -0
  140. package/dist/Editor/plugins/withCustomDeleteBackward.js +3 -2
  141. package/dist/Editor/plugins/withHTML.js +17 -1
  142. package/dist/Editor/plugins/withLayout.js +48 -1
  143. package/dist/Editor/utils/SlateUtilityFunctions.js +18 -0
  144. package/dist/Editor/utils/button.js +4 -4
  145. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +21 -0
  146. package/dist/Editor/utils/dataView.js +43 -0
  147. package/dist/Editor/utils/embed.js +2 -1
  148. package/dist/Editor/utils/events.js +0 -1
  149. package/dist/Editor/utils/font.js +11 -4
  150. package/dist/Editor/utils/formfield.js +8 -4
  151. package/dist/Editor/utils/helper.js +67 -2
  152. package/dist/Editor/utils/insertNewLine.js +19 -1
  153. package/dist/Editor/utils/pageSettings.js +14 -2
  154. package/dist/Editor/utils/serializeToText.js +2 -0
  155. package/dist/Editor/utils/table.js +228 -24
  156. package/package.json +1 -1
@@ -1,9 +1,11 @@
1
1
  import React, { useEffect, useState } from "react";
2
- import { DialogTitle, DialogContent, DialogActions, Button, Grid, IconButton, Typography, Drawer, SwipeableDrawer } from "@mui/material";
2
+ import { DialogTitle, DialogContent, DialogActions, Button, Grid, IconButton, Typography, Drawer, SwipeableDrawer, Accordion, AccordionSummary, AccordionDetails, createTheme } from "@mui/material";
3
3
  import FieldMap from "./fieldTypes";
4
4
  import CloseIcon from "@mui/icons-material/Close";
5
5
  import useCommonStyle from "../../commonStyle";
6
6
  import { useEditorContext } from "../../hooks/useMouseMove";
7
+ import { ThemeProvider } from "@mui/material/styles";
8
+ import { ExpandMoreOutlined, ExpandMoreSharp } from "@mui/icons-material";
7
9
  import { jsx as _jsx } from "react/jsx-runtime";
8
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
11
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -73,6 +75,37 @@ const StyleBuilder = props => {
73
75
  } = tabVal || {
74
76
  needActions: true
75
77
  };
78
+ const {
79
+ hideTools
80
+ } = customProps || {};
81
+ const muiTheme = createTheme({
82
+ components: {
83
+ MuiAccordion: {
84
+ styleOverrides: {
85
+ root: {
86
+ "& .MuiAccordionSummary-root": {
87
+ flexDirection: "row-reverse",
88
+ "& .MuiSvgIcon-root": {
89
+ color: theme?.palette?.primary?.main
90
+ },
91
+ "& .Mui-expanded": {
92
+ "& .MuiSvgIcon-root": {
93
+ color: theme?.palette?.text?.blueText
94
+ }
95
+ }
96
+ },
97
+ padding: "0px",
98
+ "&.Mui-expanded": {
99
+ margin: "0"
100
+ }
101
+ }
102
+ },
103
+ defaultProps: {
104
+ elevation: 0
105
+ }
106
+ }
107
+ }
108
+ });
76
109
  useEffect(() => {
77
110
  if (customProps?.onDrawerOpen) {
78
111
  customProps?.onDrawerOpen(true);
@@ -140,22 +173,62 @@ const StyleBuilder = props => {
140
173
  }), /*#__PURE__*/_jsx(DialogContent, {
141
174
  sx: {
142
175
  maxHeight: isMobile ? `500px` : `${window.innerHeight - 125}px`,
143
- padding: "8px"
176
+ padding: "0px"
144
177
  },
145
178
  children: renderTabs.map((m, i) => {
146
- return /*#__PURE__*/_jsx(StyleContent, {
147
- renderTabs: renderTabs,
148
- value: m.value,
149
- element: elementProps,
150
- onChange: onElementPropsChange,
151
- customProps: customProps,
152
- handleClose: handleClose
153
- }, `tab_${m.value}_$${i}`);
179
+ if (m?.hasChildrenTabs) {
180
+ return /*#__PURE__*/_jsx(ThemeProvider, {
181
+ theme: muiTheme,
182
+ children: /*#__PURE__*/_jsxs(Accordion, {
183
+ defaultExpanded: true,
184
+ children: [/*#__PURE__*/_jsx(AccordionSummary, {
185
+ expandIcon: /*#__PURE__*/_jsx(ExpandMoreSharp, {}),
186
+ sx: {
187
+ padding: "0px"
188
+ },
189
+ children: /*#__PURE__*/_jsx(Typography, {
190
+ variant: "body1",
191
+ className: "settingsHeader",
192
+ color: "primary",
193
+ style: {
194
+ fontSize: "14px !important",
195
+ fontWeight: "400 !important"
196
+ },
197
+ children: m?.tab
198
+ })
199
+ }), /*#__PURE__*/_jsx(AccordionDetails, {
200
+ sx: {
201
+ padding: "5px"
202
+ },
203
+ children: m?.fields.filter(f => (hideTools || []).indexOf(f.value) === -1).map((field, index) => {
204
+ return /*#__PURE__*/_jsx(StyleContent, {
205
+ renderTabs: [field],
206
+ value: field.value,
207
+ element: elementProps,
208
+ onChange: onElementPropsChange,
209
+ customProps: customProps,
210
+ handleClose: handleClose
211
+ }, `tab_${field.value}_${index}`);
212
+ })
213
+ })]
214
+ }, `accordion_${i}`)
215
+ }, i);
216
+ } else {
217
+ return /*#__PURE__*/_jsx(StyleContent, {
218
+ renderTabs: renderTabs,
219
+ value: m.value,
220
+ element: elementProps,
221
+ onChange: onElementPropsChange,
222
+ customProps: customProps,
223
+ handleClose: handleClose
224
+ }, `tab_${m.value}_$${i}`);
225
+ }
154
226
  })
155
227
  }), needActions ? /*#__PURE__*/_jsxs(DialogActions, {
156
228
  sx: {
157
229
  p: 0,
158
230
  pt: 2,
231
+ pl: 1,
159
232
  justifyContent: "space-between"
160
233
  },
161
234
  children: [onDelete ? /*#__PURE__*/_jsx(Button, {
@@ -180,7 +253,7 @@ const StyleBuilder = props => {
180
253
  style: {
181
254
  zIndex: "1300"
182
255
  },
183
- sx: classes.bottomBarDrawer,
256
+ sx: classes.sideBarDrawer,
184
257
  children: renderDrawerMenu()
185
258
  }) : /*#__PURE__*/_jsx(Drawer, {
186
259
  open: true,
@@ -25,6 +25,10 @@ const pageSettingsStyle = [{
25
25
  label: "Padding",
26
26
  key: "bannerSpacing",
27
27
  type: "bannerSpacing"
28
+ }, {
29
+ label: "Line Spacing",
30
+ key: "lineHeight",
31
+ type: "lineSpacing"
28
32
  }]
29
33
  }, {
30
34
  tab: "Max Width",
@@ -1,35 +1,69 @@
1
- const tableStyle = [{
2
- tab: "Table",
3
- value: "tableSettings",
4
- fields: [{
5
- label: "Table Background",
6
- key: "table.bgColor",
7
- type: "color"
1
+ import { toolbarGroups } from "../../Toolbar/toolbarGroups";
2
+ import { fontOptions } from "../../utils/font";
3
+ import { capitalizeFirstLetter } from "../../utils/helper";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ const allTools = toolbarGroups.flat();
6
+ const fontWeight = allTools.find(f => f.format === "fontWeight");
7
+ function getKey(prefix, key) {
8
+ const settingKey = prefix === "col" ? `entire${capitalizeFirstLetter(key)}` : key;
9
+ return `${prefix}.${settingKey}`;
10
+ }
11
+ function getCommonSettings(prefix) {
12
+ let settings = [{
13
+ label: "Font Family",
14
+ key: "fontFamily",
15
+ type: "textOptions",
16
+ webFont: true,
17
+ options: fontOptions,
18
+ renderOption: option => {
19
+ return /*#__PURE__*/_jsx("span", {
20
+ style: {
21
+ fontFamily: option.value
22
+ },
23
+ children: option.text
24
+ });
25
+ }
26
+ }, {
27
+ label: "Font Weight",
28
+ key: "fontWeight",
29
+ type: "textOptions",
30
+ options: fontWeight?.options,
31
+ width: 7
32
+ }, {
33
+ label: "Font Size",
34
+ key: "textSize",
35
+ type: "fontSize",
36
+ width: 5,
37
+ placeholder: "16px or 1em"
8
38
  }, {
9
- label: "Cell Border",
10
- key: "table.borderColor",
39
+ label: "Text Color",
40
+ key: "textColor",
11
41
  type: "color"
12
- }]
13
- }, {
14
- tab: "Row",
15
- value: "rowSettings",
16
- fields: [{
17
- label: "Row Background",
18
- key: "row.bgColor",
42
+ }, {
43
+ label: "Background",
44
+ key: "bgColor",
19
45
  type: "color"
20
46
  }, {
21
- label: "Row Border",
22
- key: "row.borderColor",
47
+ label: "Border",
48
+ key: "borderColor",
23
49
  type: "color"
24
- }]
50
+ }];
51
+
52
+ // modify keys based on setting type (prefix)
53
+ settings = settings.map(s => ({
54
+ ...s,
55
+ key: getKey(prefix, s.key)
56
+ }));
57
+ return settings;
58
+ }
59
+ const tableStyle = [{
60
+ tab: "Table",
61
+ value: "tableSettings",
62
+ fields: getCommonSettings("table")
25
63
  }, {
26
- tab: "Column",
64
+ tab: "Selected cell",
27
65
  value: "columnSettings",
28
66
  fields: [{
29
- label: "Entire Column Background",
30
- key: "col.entireBgColor",
31
- type: "color"
32
- }, {
33
67
  label: "Selected Cell Background",
34
68
  key: "col.bgColor",
35
69
  type: "color"
@@ -48,4 +82,14 @@ const tableStyle = [{
48
82
  placeholder: "Hide on Mobile"
49
83
  }]
50
84
  }];
51
- export default tableStyle;
85
+ export default tableStyle;
86
+ export const tableRowStyle = [{
87
+ tab: "Row",
88
+ value: "rowSettings",
89
+ fields: getCommonSettings("row")
90
+ }];
91
+ export const tableColumnStyle = [{
92
+ tab: "Column",
93
+ value: "columnSettings",
94
+ fields: getCommonSettings("col")
95
+ }];
@@ -6,14 +6,25 @@ const Styles = theme => ({
6
6
  "& .MuiDrawer-paper": {
7
7
  borderTopLeftRadius: 8,
8
8
  borderTopRightRadius: 8,
9
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground
9
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
10
+ "& .MuiInputBase-root": {
11
+ border: `1px solid ${theme?.palette?.editor?.textColor}`,
12
+ color: theme?.palette?.editor?.textColor
13
+ },
14
+ "& .MuiSvgIcon-root": {
15
+ color: theme?.palette?.editor?.textColor
16
+ },
17
+ "& .MuiFormLabel-root": {
18
+ color: theme?.palette?.editor?.textColor,
19
+ backgroundColor: theme?.palette?.editor?.background
20
+ }
10
21
  }
11
22
  },
12
23
  childContainer: {
13
24
  padding: "20px",
14
- '&.emojiDrawer': {
15
- padding: 'unset',
16
- paddingTop: '10px'
25
+ "&.emojiDrawer": {
26
+ padding: "unset",
27
+ paddingTop: "10px"
17
28
  }
18
29
  }
19
30
  });
@@ -4,6 +4,7 @@ import { convertBase64 } from "../utils/helper";
4
4
  import { uploadFile } from "../service/fileupload";
5
5
  import Icon from "./Icon";
6
6
  import UploadStyles from "../common/ImageSelector/UploadStyles";
7
+ import { useEditorContext } from "../hooks/useMouseMove";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
9
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -18,6 +19,9 @@ const Uploader = props => {
18
19
  const [base64, setBase64] = useState(value?.url);
19
20
  const [fileName, setFileName] = useState("");
20
21
  const [uploading, setUploading] = useState(false);
22
+ const {
23
+ theme
24
+ } = useEditorContext();
21
25
  const handleChange = async e => {
22
26
  const uFile = e.target.files[0];
23
27
  const strImage = await convertBase64(uFile);
@@ -98,6 +102,10 @@ const Uploader = props => {
98
102
  className: "uploadImageSection",
99
103
  children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
100
104
  className: "uploadImageText",
105
+ sx: {
106
+ background: `${theme?.palette?.editor?.inputFieldBgColor}`,
107
+ border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
108
+ },
101
109
  children: /*#__PURE__*/_jsxs(Button, {
102
110
  component: "label",
103
111
  variant: "text",