@flozy/editor 4.0.2 → 4.0.3

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 (110) hide show
  1. package/dist/Editor/ChatEditor.js +14 -9
  2. package/dist/Editor/CommonEditor.js +110 -167
  3. package/dist/Editor/Editor.css +3 -43
  4. package/dist/Editor/Elements/AI/AIInput.js +33 -31
  5. package/dist/Editor/Elements/AI/CustomSelect.js +12 -19
  6. package/dist/Editor/Elements/AI/PopoverAIInput.js +97 -73
  7. package/dist/Editor/Elements/AI/Styles.js +2 -2
  8. package/dist/Editor/Elements/AI/helper.js +3 -5
  9. package/dist/Editor/Elements/Accordion/AccordionSummary.js +4 -15
  10. package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
  11. package/dist/Editor/Elements/Button/EditorButton.js +16 -28
  12. package/dist/Editor/Elements/Carousel/CarouselButton.js +1 -2
  13. package/dist/Editor/Elements/Color Picker/ColorButtons.js +15 -60
  14. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  15. package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -4
  16. package/dist/Editor/Elements/Color Picker/Styles.js +1 -3
  17. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +3 -12
  18. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +1 -2
  19. package/dist/Editor/Elements/Grid/Grid.js +0 -2
  20. package/dist/Editor/Elements/Grid/GridItem.js +1 -3
  21. package/dist/Editor/Elements/Link/Link.js +1 -6
  22. package/dist/Editor/Elements/Link/LinkButton.js +2 -4
  23. package/dist/Editor/Elements/Link/LinkPopup.js +14 -73
  24. package/dist/Editor/Elements/NewLine/NewLineButton.js +1 -2
  25. package/dist/Editor/Elements/Signature/Signature.css +6 -13
  26. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -2
  27. package/dist/Editor/Elements/Signature/SignaturePopup.js +30 -185
  28. package/dist/Editor/Elements/SimpleText/index.js +1 -11
  29. package/dist/Editor/Elements/SimpleText/style.js +1 -1
  30. package/dist/Editor/MiniEditor.js +1 -3
  31. package/dist/Editor/Toolbar/Basic/index.js +2 -4
  32. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  33. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
  34. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -7
  35. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -34
  36. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +13 -12
  37. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +13 -12
  38. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/CustomSelectTool.js +0 -3
  39. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +11 -4
  40. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +86 -213
  41. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +2 -4
  42. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +44 -123
  43. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +44 -106
  44. package/dist/Editor/Toolbar/PopupTool/index.js +3 -5
  45. package/dist/Editor/Toolbar/toolbarGroups.js +11 -53
  46. package/dist/Editor/assets/svg/AIIcons.js +1 -153
  47. package/dist/Editor/common/ColorPickerButton.js +9 -25
  48. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  49. package/dist/Editor/common/EditorIcons.js +7 -7
  50. package/dist/Editor/common/Icon.js +24 -51
  51. package/dist/Editor/common/ImageList.js +3 -16
  52. package/dist/Editor/common/ImageSelector/ImageSelector.js +9 -30
  53. package/dist/Editor/common/ImageSelector/Styles.js +1 -2
  54. package/dist/Editor/common/LinkSettings/NavComponents.js +2 -5
  55. package/dist/Editor/common/LinkSettings/index.js +2 -4
  56. package/dist/Editor/common/LinkSettings/navOptions.js +2 -7
  57. package/dist/Editor/common/LinkSettings/style.js +8 -11
  58. package/dist/Editor/common/MentionsPopup/Styles.js +1 -1
  59. package/dist/Editor/common/Shorthands/elements.js +9 -63
  60. package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +23 -39
  62. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +23 -33
  63. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +1 -1
  64. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +7 -31
  65. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +4 -13
  66. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +4 -14
  67. package/dist/Editor/common/StyleBuilder/index.js +1 -1
  68. package/dist/Editor/commonStyle.js +0 -6
  69. package/dist/Editor/helper/theme.js +4 -191
  70. package/dist/Editor/hooks/useMouseMove.js +1 -4
  71. package/dist/Editor/hooks/useWindowMessage.js +7 -10
  72. package/dist/Editor/plugins/withEmbeds.js +1 -1
  73. package/dist/Editor/plugins/withHTML.js +1 -1
  74. package/dist/Editor/plugins/withTable.js +1 -1
  75. package/dist/Editor/theme/ThemeList.js +173 -50
  76. package/dist/Editor/utils/SlateUtilityFunctions.js +25 -161
  77. package/dist/Editor/utils/button.js +17 -1
  78. package/dist/Editor/utils/font.js +37 -40
  79. package/dist/Editor/utils/helper.js +1 -30
  80. package/package.json +1 -2
  81. package/dist/Editor/Elements/AI/VoiceToText/AudioWave.js +0 -73
  82. package/dist/Editor/Elements/AI/VoiceToText/index.js +0 -184
  83. package/dist/Editor/Elements/AI/VoiceToText/style.js +0 -40
  84. package/dist/Editor/Elements/Link/LinkPopupStyles.js +0 -28
  85. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +0 -59
  86. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
  87. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  88. package/dist/Editor/common/CustomColorPicker/index.js +0 -106
  89. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  90. package/dist/Editor/common/CustomDialog/index.js +0 -94
  91. package/dist/Editor/common/CustomDialog/style.js +0 -67
  92. package/dist/Editor/common/CustomSelect.js +0 -33
  93. package/dist/Editor/common/iconListV2.js +0 -843
  94. package/dist/Editor/hooks/useEditorTheme.js +0 -139
  95. package/dist/Editor/theme/index.js +0 -144
  96. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  97. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  98. package/dist/Editor/themeSettings/buttons/style.js +0 -21
  99. package/dist/Editor/themeSettings/colorTheme/index.js +0 -290
  100. package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
  101. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -123
  102. package/dist/Editor/themeSettings/fonts/index.js +0 -213
  103. package/dist/Editor/themeSettings/fonts/style.js +0 -44
  104. package/dist/Editor/themeSettings/icons.js +0 -60
  105. package/dist/Editor/themeSettings/index.js +0 -320
  106. package/dist/Editor/themeSettings/style.js +0 -152
  107. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  108. package/dist/Editor/themeSettingsAI/index.js +0 -356
  109. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -190
  110. package/dist/Editor/themeSettingsAI/style.js +0 -247
@@ -1,15 +1,11 @@
1
- import React, { useContext, useState } from "react";
2
- import { Box, IconButton, Popover, Typography, useTheme } from "@mui/material";
1
+ import React, { useState } from "react";
2
+ import { Box, IconButton, Popover } from "@mui/material";
3
3
  import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
4
4
  import Button from "../../common/Button";
5
5
  import { colors } from "./defaultColors";
6
6
  import ColorPicker from "./colorPicker.svg";
7
- import { ThemeContext } from "../../CommonEditor";
8
- import { useSlateStatic } from "slate-react";
9
- import { Transforms } from "slate";
10
7
  import { jsx as _jsx } from "react/jsx-runtime";
11
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
12
- import { Fragment as _Fragment } from "react/jsx-runtime";
13
9
  let c = [];
14
10
  const ColorChunks = (recentColors = []) => [...recentColors, ...colors].reduce((a, b, i) => {
15
11
  if (i % 7 === 0) {
@@ -36,7 +32,7 @@ const SingleColorButton = ({
36
32
  width: "100%",
37
33
  display: "flex",
38
34
  alignItems: "center",
39
- padding: padding || "8px 0px",
35
+ padding: padding || "8px",
40
36
  justifyContent: "center"
41
37
  },
42
38
  children: [crs.map(m => /*#__PURE__*/_jsx(Button, {
@@ -113,17 +109,11 @@ const ColorButtons = props => {
113
109
  forMiniTool,
114
110
  openColorTool,
115
111
  onClose,
116
- onColorPickerClick,
117
- disableEditTheme
112
+ onColorPickerClick
118
113
  } = props;
119
114
  const [row1, ...restRows] = ColorChunks([]);
120
115
  const [anchorEl, setAnchorEl] = useState(null);
121
116
  const open = Boolean(anchorEl);
122
- const theme = useTheme();
123
- const editor = useSlateStatic();
124
- const {
125
- setOpenTheme
126
- } = useContext(ThemeContext);
127
117
  const handleMore = e => {
128
118
  setAnchorEl(e.currentTarget);
129
119
  };
@@ -136,7 +126,6 @@ const ColorButtons = props => {
136
126
  const handleSelect = color => () => {
137
127
  onSelect(color);
138
128
  };
139
- const colorVars = theme?.vars?.colors || {};
140
129
  return /*#__PURE__*/_jsxs(Box, {
141
130
  component: "span",
142
131
  sx: classes.colorButtons,
@@ -153,7 +142,7 @@ const ColorButtons = props => {
153
142
  activeColor: activeColor
154
143
  }, `si_btn_row1_${m}_${i}`);
155
144
  })
156
- }), /*#__PURE__*/_jsx(Popover, {
145
+ }), /*#__PURE__*/_jsxs(Popover, {
157
146
  open: open || openColorTool,
158
147
  anchorEl: anchorEl || openColorTool,
159
148
  onClose: handleClose,
@@ -167,39 +156,9 @@ const ColorButtons = props => {
167
156
  },
168
157
  sx: classes.colorPopper,
169
158
  className: "colorPopper",
170
- children: /*#__PURE__*/_jsxs(Box, {
159
+ children: [/*#__PURE__*/_jsx(Box, {
171
160
  sx: classes.colorButtonsInner,
172
- children: [Object.values(colorVars)?.length ? /*#__PURE__*/_jsxs(_Fragment, {
173
- children: [/*#__PURE__*/_jsxs(Box, {
174
- component: "div",
175
- className: "singleColorTitleWrapper",
176
- children: [/*#__PURE__*/_jsx(Typography, {
177
- variant: "subtitle2",
178
- children: "Theme colour"
179
- }), disableEditTheme ? null : /*#__PURE__*/_jsx("div", {
180
- className: "editBtn",
181
- onClick: () => {
182
- Transforms.deselect(editor, {
183
- at: editor.selection
184
- });
185
- setOpenTheme("editThemeColor");
186
- },
187
- children: "Edit"
188
- })]
189
- }), /*#__PURE__*/_jsx(SingleColorButton, {
190
- crs: Object.values(colorVars),
191
- handleSelect: handleSelect,
192
- classes: classes,
193
- activeColor: activeColor
194
- })]
195
- }) : null, /*#__PURE__*/_jsx(Box, {
196
- component: "div",
197
- className: "singleColorTitleWrapper",
198
- children: /*#__PURE__*/_jsx(Typography, {
199
- variant: "subtitle2",
200
- children: "Custom colour"
201
- })
202
- }), restRows.map((m, i) => {
161
+ children: restRows.map((m, i) => {
203
162
  return /*#__PURE__*/_jsx(SingleColorButton, {
204
163
  id: `p2_${id}`,
205
164
  crs: m,
@@ -208,18 +167,14 @@ const ColorButtons = props => {
208
167
  classes: classes,
209
168
  activeColor: activeColor
210
169
  }, `si_btn_${m}_${i}`);
211
- }), forMiniTool ? /*#__PURE__*/_jsx(IconButton, {
212
- onClick: onColorPickerClick,
213
- style: {
214
- alignSelf: "start",
215
- margin: "6px"
216
- },
217
- children: /*#__PURE__*/_jsx("img", {
218
- src: ColorPicker,
219
- alt: "color wheel"
220
- })
221
- }) : null]
222
- })
170
+ })
171
+ }), forMiniTool ? /*#__PURE__*/_jsx(IconButton, {
172
+ onClick: onColorPickerClick,
173
+ children: /*#__PURE__*/_jsx("img", {
174
+ src: ColorPicker,
175
+ alt: "color wheel"
176
+ })
177
+ }) : null]
223
178
  })]
224
179
  });
225
180
  };
@@ -60,28 +60,4 @@
60
60
  padding: 0 15px !important;
61
61
  width: 60px !important;
62
62
  flex-shrink: 0;
63
- }
64
-
65
-
66
- .singleColorTitleWrapper {
67
- display: flex;
68
- justify-content: space-between;
69
- align-items: center;
70
- padding: 10px;
71
- width: 100%;
72
- border-bottom: 1px solid #DCE4EC;
73
- }
74
-
75
- .singleColorTitleWrapper .MuiTypography-root {
76
- font-weight: 600;
77
- }
78
-
79
- .singleColorTitleWrapper .editBtn {
80
- text-transform: none;
81
- color: #2563EB;
82
- text-decoration: underline;
83
- padding: 0px;
84
- min-width: unset;
85
- cursor: pointer;
86
- font-size: 14px;
87
- }
63
+ }
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { ReactEditor } from "slate-react";
3
3
  import { Transforms } from "slate";
4
+ import ColorPickerTool from "react-gcolor-picker";
4
5
  import { IconButton, Tooltip, Box, Popover } from "@mui/material";
5
6
  import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions";
6
7
  import ColorButtons from "./ColorButtons";
@@ -8,7 +9,6 @@ import ColorPickerStyles from "./Styles";
8
9
  import colorWheel from "./colorWheel.png";
9
10
  import "./ColorPicker.css";
10
11
  import { useEditorContext } from "../../hooks/useMouseMove";
11
- import CustomColorPicker from "../../common/CustomColorPicker";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { Fragment as _Fragment } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -95,10 +95,10 @@ const ColorPicker = props => {
95
95
  horizontal: "top"
96
96
  },
97
97
  sx: classes.colorPickerPopup,
98
- children: /*#__PURE__*/_jsx(CustomColorPicker, {
98
+ children: /*#__PURE__*/_jsx(ColorPickerTool, {
99
99
  gradient: true,
100
- onChange: handleFormSubmit,
101
- color: activeColor
100
+ value: activeColor,
101
+ onChange: handleFormSubmit
102
102
  })
103
103
  })]
104
104
  });
@@ -13,11 +13,9 @@ const ColorPickerStyles = theme => ({
13
13
  }
14
14
  },
15
15
  colorPopper: {
16
- marginTop: "20px",
17
16
  "& .MuiPaper-root": {
18
17
  backgroundColor: theme?.palette?.editor?.background,
19
- padding: "4px 14px",
20
- "@media only screen and (max-width: 600px)": {
18
+ '@media only screen and (max-width: 600px)': {
21
19
  marginTop: "-40px"
22
20
  }
23
21
  }
@@ -71,11 +71,11 @@ const FormWorkflow = props => {
71
71
  children: [/*#__PURE__*/_jsx(Grid, {
72
72
  item: true,
73
73
  sx: classes.radioBtn,
74
- children: /*#__PURE__*/_jsxs(RadioGroup, {
74
+ children: /*#__PURE__*/_jsx(RadioGroup, {
75
75
  name: "set timing",
76
76
  value: schedule,
77
77
  defaultValue: 1,
78
- children: [/*#__PURE__*/_jsx(FormControlLabel, {
78
+ children: /*#__PURE__*/_jsx(FormControlLabel, {
79
79
  value: "immediately",
80
80
  label: "Immediately",
81
81
  onChange: () => {
@@ -84,16 +84,7 @@ const FormWorkflow = props => {
84
84
  control: /*#__PURE__*/_jsx(Radio, {
85
85
  size: "small"
86
86
  })
87
- }), /*#__PURE__*/_jsx(FormControlLabel, {
88
- value: "after",
89
- label: "After",
90
- onChange: () => {
91
- setSchedule("after");
92
- },
93
- control: /*#__PURE__*/_jsx(Radio, {
94
- size: "small"
95
- })
96
- })]
87
+ })
97
88
  })
98
89
  }), schedule === "after" && /*#__PURE__*/_jsx(Grid, {
99
90
  item: true,
@@ -39,8 +39,7 @@ const UserInputs = props => {
39
39
  fontStyleOptions: ['underline'],
40
40
  hideLink: true,
41
41
  hideTextColor: true
42
- },
43
- theme: theme
42
+ }
44
43
  })
45
44
  })
46
45
  });
@@ -15,7 +15,6 @@ import { gridItem } from "../../utils/gridItem";
15
15
  import { useEditorContext, useEditorSelection } from "../../hooks/useMouseMove";
16
16
  import { getTRBLBreakPoints, getBreakPointsValue } from "../../helper/theme";
17
17
  import useWindowResize from "../../hooks/useWindowResize";
18
- import { useTheme } from "@emotion/react";
19
18
  import { jsx as _jsx } from "react/jsx-runtime";
20
19
  import { Fragment as _Fragment } from "react/jsx-runtime";
21
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -92,7 +91,6 @@ const getParentEl = (editor, path) => {
92
91
  }
93
92
  };
94
93
  const Grid = props => {
95
- const theme = useTheme();
96
94
  const {
97
95
  attributes,
98
96
  children,
@@ -8,7 +8,6 @@ import { GridSettingsIcon } from "../../common/iconslist";
8
8
  import { useEditorContext, useEditorSelection } from "../../hooks/useMouseMove";
9
9
  import { getBreakPointsValue, getTRBLBreakPoints } from "../../helper/theme";
10
10
  import { isEmptyNode } from "../../utils/helper";
11
- import { useTheme } from "@emotion/react";
12
11
  import { jsx as _jsx } from "react/jsx-runtime";
13
12
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
13
  const GridItemToolbar = ({
@@ -35,7 +34,6 @@ const GridItemToolbar = ({
35
34
  }) : null;
36
35
  };
37
36
  const GridItem = props => {
38
- const theme = useTheme();
39
37
  const {
40
38
  attributes,
41
39
  children,
@@ -121,7 +119,7 @@ const GridItem = props => {
121
119
  xs: xsHidden ? "none" : "flex"
122
120
  },
123
121
  flexDirection: flexDirection || "column",
124
- background: bgColor,
122
+ background: bgColor || "transparent",
125
123
  borderColor: getBorderColor(),
126
124
  borderWidth: borderWidth || "1px",
127
125
  borderRadius: {
@@ -9,7 +9,6 @@ import { removeLink } from "../../utils/link";
9
9
  import LinkPopup from "./LinkPopup";
10
10
  import "./styles.css";
11
11
  import { absoluteLink } from "../../utils/helper";
12
- import { useEditorContext } from "../../hooks/useMouseMove";
13
12
  import { jsx as _jsx } from "react/jsx-runtime";
14
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
14
  const Link = props => {
@@ -30,9 +29,6 @@ const Link = props => {
30
29
  const path = ReactEditor.findPath(editor, element);
31
30
  const urlPath = element.url || element.href;
32
31
  const absLink = absoluteLink(urlPath);
33
- const {
34
- theme
35
- } = useEditorContext();
36
32
  const updateLink = () => {
37
33
  Transforms.setNodes(editor, {
38
34
  href: linkData?.url,
@@ -111,8 +107,7 @@ const Link = props => {
111
107
  linkData: linkData,
112
108
  handleClose: handleClose,
113
109
  handleInputChange: handleInputChange,
114
- handleInsertLink: updateLink,
115
- theme: theme
110
+ handleInsertLink: updateLink
116
111
  })]
117
112
  });
118
113
  };
@@ -9,8 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  const LinkButton = props => {
11
11
  const {
12
- editor,
13
- theme
12
+ editor
14
13
  } = props;
15
14
  const linkInputRef = useRef(null);
16
15
  const [showInput, setShowInput] = useState(false);
@@ -78,8 +77,7 @@ const LinkButton = props => {
78
77
  linkData: linkData,
79
78
  handleClose: handleClose,
80
79
  handleInputChange: handleInputChange,
81
- handleInsertLink: handleInsertLink,
82
- theme: theme
80
+ handleInsertLink: handleInsertLink
83
81
  })]
84
82
  });
85
83
  };
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
- import { Dialog, DialogActions, DialogContent, DialogTitle, FormControl, FormControlLabel, Grid, TextField, Button, IconButton, Typography, Checkbox, Divider } from "@mui/material";
2
+ import { Dialog, DialogActions, DialogContent, DialogTitle, FormControl, FormControlLabel, Grid, TextField, Button, IconButton, Typography, Checkbox } from "@mui/material";
3
3
  import CloseIcon from "@mui/icons-material/Close";
4
- import LinkPopupStyles from "./LinkPopupStyles";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const LinkPopup = props => {
@@ -10,19 +9,13 @@ const LinkPopup = props => {
10
9
  handleClose,
11
10
  linkData,
12
11
  handleInputChange,
13
- handleInsertLink,
14
- theme
12
+ handleInsertLink
15
13
  } = props;
16
- const themeType = localStorage.getItem("themeType");
17
- const classes = LinkPopupStyles(themeType);
18
14
  return /*#__PURE__*/_jsxs(Dialog, {
19
15
  fullWidth: true,
20
16
  open: open,
21
17
  className: `dialogComp`,
22
18
  children: [/*#__PURE__*/_jsx(DialogTitle, {
23
- sx: {
24
- padding: "13px 19px 9px 19px"
25
- },
26
19
  children: /*#__PURE__*/_jsxs("div", {
27
20
  style: {
28
21
  display: "flex",
@@ -31,10 +24,8 @@ const LinkPopup = props => {
31
24
  children: [/*#__PURE__*/_jsx(Typography, {
32
25
  variant: "h6",
33
26
  className: "popupTitle",
34
- sx: {
35
- textTransform: "none"
36
- },
37
- children: "Link"
27
+ color: "primary",
28
+ children: "LINK"
38
29
  }), /*#__PURE__*/_jsx("div", {
39
30
  style: {
40
31
  display: "flex"
@@ -46,84 +37,35 @@ const LinkPopup = props => {
46
37
  })
47
38
  })]
48
39
  })
49
- }), /*#__PURE__*/_jsx(Divider, {
50
- sx: {
51
- width: "auto",
52
- // Or set a fixed width like "90%"
53
- margin: "0px 20px" // Horizontal margin
54
- }
55
40
  }), /*#__PURE__*/_jsxs(DialogContent, {
56
- sx: {
57
- padding: "5px 19px 0px 19px"
58
- },
59
- children: [/*#__PURE__*/_jsxs(Grid, {
41
+ children: [/*#__PURE__*/_jsx(Grid, {
60
42
  item: true,
61
43
  xs: 12,
62
44
  style: {
63
45
  paddingTop: "12px"
64
46
  },
65
- children: [/*#__PURE__*/_jsx(Typography, {
66
- sx: {
67
- fontFamily: 'Inter, sans-serif',
68
- fontSize: "14px",
69
- marginBottom: "6px"
70
- },
71
- children: "Title"
72
- }), /*#__PURE__*/_jsx(TextField, {
47
+ children: /*#__PURE__*/_jsx(TextField, {
73
48
  size: "small",
74
49
  fullWidth: true,
75
50
  value: linkData?.name,
76
51
  name: "name",
77
52
  placeholder: "Link Title",
78
- onChange: handleInputChange,
79
- sx: {
80
- '& .MuiOutlinedInput-root': {
81
- borderRadius: '8px'
82
- },
83
- '& .MuiInputBase-input': {
84
- color: themeType === "dark" ? "#FFFFFF" : '#000'
85
- },
86
- '& .MuiInputBase-input::placeholder': {
87
- color: '#94A3B8',
88
- fontFamily: '"Inter", sans-serif'
89
- }
90
- }
91
- // sx={classes.addLinkField}
92
- })]
93
- }), /*#__PURE__*/_jsxs(Grid, {
53
+ onChange: handleInputChange
54
+ })
55
+ }), /*#__PURE__*/_jsx(Grid, {
94
56
  item: true,
95
57
  xs: 12,
96
58
  style: {
97
59
  paddingTop: "12px"
98
60
  },
99
- children: [/*#__PURE__*/_jsx(Typography, {
100
- sx: {
101
- fontFamily: 'Inter, sans-serif',
102
- fontSize: "14px",
103
- marginBottom: "6px"
104
- },
105
- children: "URL"
106
- }), /*#__PURE__*/_jsx(TextField, {
61
+ children: /*#__PURE__*/_jsx(TextField, {
107
62
  size: "small",
108
63
  fullWidth: true,
109
64
  name: "url",
110
65
  value: linkData?.url,
111
66
  placeholder: "https://google.com",
112
- onChange: handleInputChange,
113
- sx: {
114
- '& .MuiOutlinedInput-root': {
115
- borderRadius: '8px'
116
- },
117
- '& .MuiInputBase-input': {
118
- color: themeType === "dark" ? "#FFFFFF" : '#000'
119
- },
120
- '& .MuiInputBase-input::placeholder': {
121
- color: '#94A3B8',
122
- fontFamily: '"Inter", sans-serif'
123
- }
124
- }
125
- // sx={classes.addLinkField}
126
- })]
67
+ onChange: handleInputChange
68
+ })
127
69
  }), /*#__PURE__*/_jsx(Grid, {
128
70
  item: true,
129
71
  xs: 12,
@@ -139,10 +81,9 @@ const LinkPopup = props => {
139
81
  }),
140
82
  label: /*#__PURE__*/_jsx(Typography, {
141
83
  variant: "body1",
84
+ color: "primary",
142
85
  sx: {
143
- paddingLeft: "0px",
144
- fontSize: "14px",
145
- fontFamily: '"Inter", sans-serif'
86
+ pl: 1
146
87
  },
147
88
  children: "Open in new tab"
148
89
  })
@@ -3,7 +3,6 @@ import KeyboardReturnIcon from "@mui/icons-material/KeyboardReturn";
3
3
  import { Transforms } from "slate";
4
4
  import { ReactEditor, useSlateStatic } from "slate-react";
5
5
  import ToolbarIcon from "../../common/ToolbarIcon";
6
- import { NewLineElementIcon } from "../../common/iconListV2";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  const NewLineButton = ({
9
8
  icoBtnType
@@ -24,7 +23,7 @@ const NewLineButton = ({
24
23
  return /*#__PURE__*/_jsx(ToolbarIcon, {
25
24
  title: "New Line",
26
25
  onClick: onAddNewLine,
27
- icon: /*#__PURE__*/_jsx(NewLineElementIcon, {
26
+ icon: /*#__PURE__*/_jsx(KeyboardReturnIcon, {
28
27
  sx: {
29
28
  fill: "#64748B",
30
29
  width: "18px",
@@ -1,6 +1,6 @@
1
1
  .af-signature-popup .MuiTab-root {
2
2
  background: #ffffff;
3
- border: 1px solid #D3D3D3 !important;
3
+ border: 1px solid #d3d3d3 !important;
4
4
  border-radius: 7px;
5
5
  height: 37px;
6
6
  min-height: 37px;
@@ -15,10 +15,10 @@
15
15
  }
16
16
  .af-signature-popup .MuiTab-root.Mui-selected {
17
17
  background: #ffffff;
18
- border: 1.5px solid #2563EB !important;
18
+ border: 1px solid #2563eb !important;
19
19
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
20
20
  border-radius: 7px;
21
- color: #000000 !important;
21
+ color: #0f172a !important;
22
22
  }
23
23
  .af-signature-popup .MuiTabs-indicator {
24
24
  display: none;
@@ -60,23 +60,16 @@
60
60
  cursor: pointer;
61
61
  }
62
62
  .upload-wrapper-ui {
63
- border: 1px dashed #92B1F5 !important;
64
- /* box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.17) !important; */
63
+ border: 1px solid #2563eb !important;
64
+ box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.17) !important;
65
65
  border-radius: 7px;
66
66
  display: flex;
67
67
  align-items: center;
68
68
  justify-content: center;
69
69
  position: absolute;
70
70
  width: 100%;
71
- height: 187px;
71
+ height: 100px;
72
72
  top: 0px;
73
73
  left: 0px;
74
74
  cursor: pointer;
75
- background-color: #F8F9FF;
76
- }
77
-
78
- .upload-wrapper-ui-text {
79
- font-size: 16px !important;
80
- font-weight: 600 !important;
81
- font-family: 'Wavehaus';
82
75
  }
@@ -28,7 +28,7 @@ const UploadSignature = props => {
28
28
  });
29
29
  };
30
30
  return /*#__PURE__*/_jsxs("div", {
31
- className: "signature-tab2",
31
+ className: "signature-tab",
32
32
  children: [uploading ? "Uploading..." : "", base64 ? /*#__PURE__*/_jsx("div", {
33
33
  className: "upload-sign-img-wrapper",
34
34
  children: /*#__PURE__*/_jsx("img", {
@@ -48,7 +48,6 @@ const UploadSignature = props => {
48
48
  justifyContent: "center",
49
49
  alignItems: "center",
50
50
  children: [/*#__PURE__*/_jsx(CloudUpload, {}), /*#__PURE__*/_jsx(Typography, {
51
- className: "upload-wrapper-ui-text",
52
51
  variant: "h6",
53
52
  color: "textSecondary",
54
53
  sx: {