@flozy/editor 4.0.0 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/Editor/ChatEditor.js +9 -14
  2. package/dist/Editor/CommonEditor.js +11 -7
  3. package/dist/Editor/Editor.css +36 -3
  4. package/dist/Editor/Elements/AI/AIInput.js +16 -12
  5. package/dist/Editor/Elements/AI/PopoverAIInput.js +7 -8
  6. package/dist/Editor/Elements/AI/Styles.js +0 -1
  7. package/dist/Editor/Elements/Accordion/AccordionSummary.js +15 -4
  8. package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -1
  9. package/dist/Editor/Elements/Color Picker/ColorButtons.js +3 -1
  10. package/dist/Editor/Elements/Color Picker/Styles.js +1 -0
  11. package/dist/Editor/Elements/Link/LinkPopup.js +66 -14
  12. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -1
  13. package/dist/Editor/Elements/Signature/Signature.css +13 -6
  14. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +2 -1
  15. package/dist/Editor/Elements/Signature/SignaturePopup.js +172 -32
  16. package/dist/Editor/Elements/SimpleText/index.js +11 -1
  17. package/dist/Editor/Elements/SimpleText/style.js +1 -1
  18. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +1 -1
  19. package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -2
  20. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +32 -3
  21. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/CustomSelectTool.js +3 -0
  22. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +59 -0
  23. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +2 -1
  24. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +91 -19
  25. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +56 -39
  26. package/dist/Editor/Toolbar/toolbarGroups.js +5 -5
  27. package/dist/Editor/common/EditorIcons.js +7 -7
  28. package/dist/Editor/common/Icon.js +25 -26
  29. package/dist/Editor/common/ImageList.js +16 -3
  30. package/dist/Editor/common/ImageSelector/ImageSelector.js +30 -9
  31. package/dist/Editor/common/ImageSelector/Styles.js +2 -1
  32. package/dist/Editor/common/MentionsPopup/Styles.js +1 -1
  33. package/dist/Editor/common/Shorthands/elements.js +9 -9
  34. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +26 -20
  35. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +18 -16
  36. package/dist/Editor/common/iconListV2.js +843 -0
  37. package/dist/Editor/commonStyle.js +6 -0
  38. package/dist/Editor/helper/theme.js +2 -1
  39. package/package.json +1 -1
@@ -1,10 +1,12 @@
1
1
  const usePopupStyle = theme => ({
2
2
  popupWrapper: {
3
- boxShadow: "0px 4px 10px 0px rgba(0, 0, 0, 0.16)",
3
+ boxShadow: "1px 2px 15px 0px #2563EB40",
4
4
  zIndex: 1300,
5
5
  marginBottom: "12px !important",
6
- borderRadius: "6px",
7
- maxWidth: "96%",
6
+ border: "1px solid #D8DDE1",
7
+ borderRadius: "10px",
8
+ maxWidth: "100%",
9
+ // maxHeight: "40px",
8
10
  "&.fullscreen": {
9
11
  marginBottom: "0px !important",
10
12
  "& .papper-wrpr": {
@@ -60,8 +62,9 @@ const usePopupStyle = theme => ({
60
62
  },
61
63
  textFormatWrapper: {
62
64
  padding: "0px 16px 16px 16px",
63
- width: "370px",
65
+ width: "323px",
64
66
  maxWidth: "100%",
67
+ overflowX: "hidden !important",
65
68
  // 30% of window height
66
69
  maxHeight: `${window.innerHeight * 0.45}px`,
67
70
  overflow: "auto",
@@ -107,14 +110,19 @@ const usePopupStyle = theme => ({
107
110
  borderRadius: "0px",
108
111
  width: "100%",
109
112
  justifyContent: "start",
113
+ borderRadius: "10px !important",
114
+ transition: "background-color 0.3s ease",
115
+ "&:hover": {
116
+ backgroundColor: "#E9F3FE"
117
+ },
110
118
  "& svg": {
111
119
  width: "24px",
112
- height: "24px",
120
+ height: "19px",
113
121
  marginRight: "8px"
114
122
  },
115
123
  "& span": {
116
124
  fontSize: "14px",
117
- color: "#64748B"
125
+ color: "#0F172A"
118
126
  }
119
127
  },
120
128
  // for command list style
@@ -164,7 +172,16 @@ const usePopupStyle = theme => ({
164
172
  }
165
173
  },
166
174
  textFormatField: {
167
- marginBottom: "16px"
175
+ marginBottom: "16px",
176
+ marginTop: "10px"
177
+ },
178
+ textFormatField1: {
179
+ marginBottom: "16px",
180
+ marginTop: "10px"
181
+ },
182
+ textFormatField2: {
183
+ // marginBottom: "16px",
184
+ marginTop: "10px"
168
185
  },
169
186
  textFormatFieldBorder: {
170
187
  display: "flex",
@@ -174,6 +191,9 @@ const usePopupStyle = theme => ({
174
191
  borderRadius: "8px",
175
192
  boxShadow: "0px 4px 18px 0px rgba(0, 0, 0, 0.05)"
176
193
  },
194
+ dividerGrid: {
195
+ margin: "5px 0px 10px 0px"
196
+ },
177
197
  textFormatColorWrpr: {
178
198
  display: "flex",
179
199
  alignItems: "center",
@@ -190,7 +210,7 @@ const usePopupStyle = theme => ({
190
210
  },
191
211
  "&.typo-icons": {
192
212
  "& button": {
193
- width: "36px",
213
+ width: "31px",
194
214
  height: "36px"
195
215
  }
196
216
  },
@@ -207,6 +227,12 @@ const usePopupStyle = theme => ({
207
227
  fontWeight: 500,
208
228
  color: "#000000"
209
229
  },
230
+ typoLabel2: {
231
+ fontSize: "14px",
232
+ marginBottom: "5px",
233
+ paddingLeft: "10px",
234
+ fontWeight: 500
235
+ },
210
236
  templateCard: {
211
237
  borderRadius: "10px",
212
238
  boxShadow: "none",
@@ -297,6 +323,29 @@ const usePopupStyle = theme => ({
297
323
  }
298
324
  }
299
325
  },
326
+ btnGroup2: {
327
+ backgroundColor: theme?.palette?.editor?.background,
328
+ "& button": {
329
+ backgroundColor: theme?.palette?.editor?.background,
330
+ marginRight: "0px",
331
+ color: theme?.palette?.editor?.textColor,
332
+ borderColor: theme?.palette?.editor?.borderColor,
333
+ textTransform: "capitalize",
334
+ marginBottom: "0px",
335
+ "&:hover": {
336
+ color: theme?.palette?.editor?.borderColor,
337
+ background: theme?.palette?.editor?.background
338
+ },
339
+ "&.active": {
340
+ background: theme?.palette?.editor?.background,
341
+ color: theme?.palette?.editor?.activeColor
342
+ },
343
+ "&.no-hover": {
344
+ border: `1px solid ${theme?.palette?.editor?.borderColor}`,
345
+ padding: "0px 5px !important"
346
+ }
347
+ }
348
+ },
300
349
  allColor: {
301
350
  "& .buttonsWrpr": {
302
351
  "& button": {
@@ -326,6 +375,20 @@ const usePopupStyle = theme => ({
326
375
  }
327
376
  }
328
377
  },
378
+ defaultBtn1: {
379
+ color: "#2563EB !important",
380
+ textTransform: "none",
381
+ textDecorationLine: "underline",
382
+ textUnderlineOffset: "2px",
383
+ padding: "0px 10px"
384
+ },
385
+ defaultBtn2: {
386
+ color: "#A2B0B9 !important",
387
+ textTransform: "none",
388
+ textDecorationLine: "underline",
389
+ textUnderlineOffset: "2px",
390
+ padding: "0px 10px"
391
+ },
329
392
  defaultBtn: {
330
393
  color: "#2563EB !important",
331
394
  textTransform: "none",
@@ -388,6 +451,7 @@ const usePopupStyle = theme => ({
388
451
  color: theme?.palette?.editor?.textColor
389
452
  },
390
453
  colorPickerPopup: {
454
+ margin: "30px",
391
455
  "& .MuiPaper-root": {
392
456
  overflow: "auto",
393
457
  backgroundColor: theme?.palette?.editor?.background
@@ -482,7 +546,7 @@ const usePopupStyle = theme => ({
482
546
  },
483
547
  miniTextFormatWrapper: {
484
548
  maxWidth: "100%",
485
- padding: "4px 8px",
549
+ padding: "2px 8px",
486
550
  overflowX: "auto",
487
551
  "& .customSelectTool": {
488
552
  padding: "0px 8px",
@@ -531,30 +595,38 @@ const usePopupStyle = theme => ({
531
595
  },
532
596
  customSelectPopoverWrapper: {
533
597
  "& .MuiPopover-paper": {
534
- maxHeight: "140px",
535
- background: theme?.palette?.editor?.background,
536
- "@media only screen and (max-width: 600px)": {
598
+ maxHeight: 'fit-content',
599
+ // minWidth: "130px",
600
+ border: "1px solid #E4E8EB",
601
+ // background: theme?.palette?.editor?.background,
602
+ overflowY: 'hidden',
603
+ padding: "6px 12px 6px 0px",
604
+ '@media only screen and (max-width: 600px)': {
537
605
  marginTop: "-40px"
538
606
  }
539
607
  },
540
608
  "& .customSelectOptionLabel": {
541
609
  color: theme?.palette?.editor?.textColor || "black",
542
- margin: "0px",
610
+ margin: "0px 6px 0px 6px",
543
611
  width: "100%",
544
612
  justifyContent: "start",
545
613
  paddingRight: "20px",
546
614
  fontSize: "14px",
547
615
  lineHeight: "1.75 !important",
548
616
  fontWeight: 400,
549
- background: theme?.palette?.editor?.background || "#fff",
617
+ // background: theme?.palette?.editor?.background || "#fff",
618
+ overflowY: "hidden",
550
619
  "&:hover": {
551
- background: `${theme?.palette?.action?.selected} !important`
552
- },
553
- "&.selected": {
554
- color: `${theme?.palette?.primary?.main} !important`,
555
- background: `${theme?.palette?.action?.selected} !important`
620
+ background: `#E9F3FE !important`,
621
+ color: `#2563EB !important`
556
622
  }
623
+
624
+ // "&.selected": {
625
+ // color: `#2563EB !important`,
626
+ // background: `${theme?.palette?.action?.selected} !important`
627
+ // }
557
628
  },
629
+
558
630
  "& .menuOptions": {
559
631
  display: "flex",
560
632
  alignItems: "center",
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import { Button, ButtonGroup, Grid, Typography } from "@mui/material";
2
+ import { Button, ButtonGroup, Divider, Grid, Typography } from "@mui/material";
3
3
  import FormatColorResetIcon from "@mui/icons-material/FormatColorReset";
4
4
  import WidthFullIcon from "@mui/icons-material/WidthFull";
5
5
  import WidthNormalIcon from "@mui/icons-material/WidthNormal";
@@ -17,6 +17,8 @@ import { getBorderColor } from "../../utils/helper";
17
17
  import SelectTypography from "./MiniTextFormat/SelectTypography";
18
18
  import { isTextCustomized, saveToTheme } from "../../helper/theme";
19
19
  import { useEditorTheme } from "../../hooks/useEditorTheme";
20
+ import SelectSuperSubscript from "./MiniTextFormat/SelectSuperSubscript";
21
+ import { ColorResetIcon, TextDefaultStyleIcon } from "../../common/iconListV2";
20
22
  import { jsx as _jsx } from "react/jsx-runtime";
21
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
22
24
  const allTools = toolbarGroups.flat();
@@ -26,14 +28,17 @@ const ButtonComp = {
26
28
  const TextFormat = props => {
27
29
  const {
28
30
  classes,
29
- editor
31
+ editor,
32
+ onClose,
33
+ closeMainPopup
30
34
  } = props;
35
+ console.log("PROPS:", props);
31
36
  const [anchorEl, setAnchorEl] = useState(null);
32
37
  const [type, setType] = useState(null);
33
38
  const open = Boolean(anchorEl);
34
39
  const fontFamily = allTools.find(f => f.format === "fontFamily");
35
40
  const fontWeight = allTools.find(f => f.format === "fontWeight");
36
- const fontStyle = allTools.filter(f => f.type === "mark");
41
+ const fontStyle = allTools.filter(f => f.type === "mark" && f.format != "strikethrough" && f.format != "superscript" && f.format != "subscript");
37
42
  const fontAlign = allTools.filter(f => f.format?.indexOf("align") >= 0);
38
43
  const link = allTools.find(f => f.format?.indexOf("link") >= 0);
39
44
  const lists = allTools.filter(f => f.group?.indexOf("list") >= 0);
@@ -168,19 +173,19 @@ const TextFormat = props => {
168
173
  }), /*#__PURE__*/_jsx(Grid, {
169
174
  item: true,
170
175
  children: /*#__PURE__*/_jsx(Button, {
171
- sx: classes.defaultBtn,
172
- startIcon: /*#__PURE__*/_jsx(FormatClearIcon, {}),
176
+ sx: classes.defaultBtn1,
177
+ startIcon: /*#__PURE__*/_jsx(TextDefaultStyleIcon, {}),
173
178
  onClick: handleDefault({
174
179
  format: "fontFamily",
175
180
  val: Object.values(fontFamilyMap)[0]
176
181
  }),
177
- children: "Default"
182
+ children: "Default Text"
178
183
  })
179
184
  })]
180
185
  }), /*#__PURE__*/_jsx(Grid, {
181
186
  item: true,
182
187
  xs: 12,
183
- sx: classes.textFormatField,
188
+ sx: classes.textFormatField1,
184
189
  children: /*#__PURE__*/_jsx(Dropdown, {
185
190
  classes: classes,
186
191
  ...fontFamily,
@@ -230,10 +235,15 @@ const TextFormat = props => {
230
235
  })
231
236
  })]
232
237
  })]
238
+ }), /*#__PURE__*/_jsx(Grid, {
239
+ item: true,
240
+ xs: 12,
241
+ sx: classes.dividerGrid,
242
+ children: /*#__PURE__*/_jsx(Divider, {})
233
243
  }), /*#__PURE__*/_jsxs(Grid, {
234
244
  item: true,
235
245
  xs: 12,
236
- sx: classes.textFormatField,
246
+ sx: classes.textFormatField2,
237
247
  children: [/*#__PURE__*/_jsxs(Grid, {
238
248
  container: true,
239
249
  justifyContent: "space-between",
@@ -249,12 +259,12 @@ const TextFormat = props => {
249
259
  }), /*#__PURE__*/_jsx(Grid, {
250
260
  item: true,
251
261
  children: /*#__PURE__*/_jsx(Button, {
252
- sx: classes.defaultBtn,
253
- startIcon: /*#__PURE__*/_jsx(FormatColorResetIcon, {}),
262
+ sx: classes.defaultBtn1,
263
+ startIcon: /*#__PURE__*/_jsx(ColorResetIcon, {}),
254
264
  onClick: handleDefault({
255
265
  format: "color"
256
266
  }),
257
- children: "Default"
267
+ children: "Default Color"
258
268
  })
259
269
  })]
260
270
  }), /*#__PURE__*/_jsx(Grid, {
@@ -273,7 +283,7 @@ const TextFormat = props => {
273
283
  }), /*#__PURE__*/_jsxs(Grid, {
274
284
  item: true,
275
285
  xs: 12,
276
- sx: classes.textFormatField,
286
+ sx: classes.textFormatField2,
277
287
  children: [/*#__PURE__*/_jsxs(Grid, {
278
288
  container: true,
279
289
  justifyContent: "space-between",
@@ -284,19 +294,21 @@ const TextFormat = props => {
284
294
  variant: "body1",
285
295
  color: "primary",
286
296
  sx: classes.typoLabel,
287
- children: "Text Background Color"
297
+ children: "Background Color"
288
298
  })
289
299
  }), /*#__PURE__*/_jsx(Grid, {
290
300
  item: true,
291
301
  children: /*#__PURE__*/_jsx(Grid, {
292
302
  item: true,
293
303
  children: /*#__PURE__*/_jsx(Button, {
294
- sx: classes.defaultBtn,
295
- startIcon: /*#__PURE__*/_jsx(FormatColorResetIcon, {}),
304
+ sx: classes.defaultBtn2,
305
+ startIcon: /*#__PURE__*/_jsx(ColorResetIcon, {
306
+ stroke: "#A2B0B9"
307
+ }),
296
308
  onClick: handleDefault({
297
309
  format: "bgColor"
298
310
  }),
299
- children: "Default"
311
+ children: "Default Color"
300
312
  })
301
313
  })
302
314
  })]
@@ -315,6 +327,11 @@ const TextFormat = props => {
315
327
  id: "12_cc"
316
328
  }, "12_cc")
317
329
  })]
330
+ }), /*#__PURE__*/_jsx(Grid, {
331
+ item: true,
332
+ xs: 12,
333
+ sx: classes.dividerGrid,
334
+ children: /*#__PURE__*/_jsx(Divider, {})
318
335
  }), /*#__PURE__*/_jsxs(Grid, {
319
336
  item: true,
320
337
  xs: 6,
@@ -322,8 +339,8 @@ const TextFormat = props => {
322
339
  children: [/*#__PURE__*/_jsx(Typography, {
323
340
  variant: "body1",
324
341
  color: "primary",
325
- sx: classes.typoLabel,
326
- children: "Text Alignment"
342
+ sx: classes.typoLabel2,
343
+ children: "Alignment"
327
344
  }), /*#__PURE__*/_jsx(Grid, {
328
345
  item: true,
329
346
  xs: 12,
@@ -342,7 +359,7 @@ const TextFormat = props => {
342
359
  children: [/*#__PURE__*/_jsx(Typography, {
343
360
  variant: "body1",
344
361
  color: "primary",
345
- sx: classes.typoLabel,
362
+ sx: classes.typoLabel2,
346
363
  children: "Lists"
347
364
  }), /*#__PURE__*/_jsx(Grid, {
348
365
  item: true,
@@ -356,6 +373,11 @@ const TextFormat = props => {
356
373
  }, `pptool_block_${i}_${m.id}`);
357
374
  })
358
375
  })]
376
+ }), /*#__PURE__*/_jsx(Grid, {
377
+ item: true,
378
+ xs: 12,
379
+ sx: classes.dividerGrid,
380
+ children: /*#__PURE__*/_jsx(Divider, {})
359
381
  }), /*#__PURE__*/_jsxs(Grid, {
360
382
  item: true,
361
383
  xs: 12,
@@ -369,16 +391,29 @@ const TextFormat = props => {
369
391
  xs: 12,
370
392
  className: "typo-icons",
371
393
  sx: classes.evenSpace,
372
- children: [fontStyle?.map((m, i) => {
394
+ children: [/*#__PURE__*/_jsx(SelectTypography, {
395
+ classes: classes,
396
+ editor: editor,
397
+ closeMainPopup: closeMainPopup || onClose
398
+ }), fontStyle?.map((m, i) => {
373
399
  return /*#__PURE__*/_jsx(MarkButton, {
374
400
  editor: editor,
375
401
  ...m
376
402
  }, `pptool_mark_${i}_${m.id}`);
403
+ }), /*#__PURE__*/_jsx(SelectSuperSubscript, {
404
+ classes: classes,
405
+ editor: editor,
406
+ closeMainPopup: closeMainPopup || onClose
377
407
  }), /*#__PURE__*/_jsx(LinkButton, {
378
408
  active: isBlockActive(editor, link.format),
379
409
  editor: editor
380
410
  }, link.id)]
381
411
  })]
412
+ }), /*#__PURE__*/_jsx(Grid, {
413
+ item: true,
414
+ xs: 12,
415
+ sx: classes.dividerGrid,
416
+ children: /*#__PURE__*/_jsx(Divider, {})
382
417
  }), /*#__PURE__*/_jsx(Grid, {
383
418
  item: true,
384
419
  xs: 12,
@@ -416,7 +451,7 @@ const TextFormat = props => {
416
451
  children: /*#__PURE__*/_jsx(ArrowDropDownIcon, {})
417
452
  })]
418
453
  }), /*#__PURE__*/_jsxs(ButtonGroup, {
419
- sx: classes.btnGroup,
454
+ sx: classes.btnGroup2,
420
455
  children: [/*#__PURE__*/_jsx(Button, {
421
456
  className: `no-hover ${bqColor ? "active" : ""}`,
422
457
  onClick: handleQuote({
@@ -434,24 +469,6 @@ const TextFormat = props => {
434
469
  onClick: handleColorPicker("color"),
435
470
  children: /*#__PURE__*/_jsx(ArrowDropDownIcon, {})
436
471
  })]
437
- }), /*#__PURE__*/_jsx(Button, {
438
- onClick: handlePageWidth("fixed"),
439
- startIcon: /*#__PURE__*/_jsx(WidthNormalIcon, {}),
440
- sx: classes.pageWidthBtn,
441
- className: pageWidth === "fixed" || !pageWidth ? "active" : "",
442
- style: {
443
- width: "45%"
444
- },
445
- children: "Centered"
446
- }), /*#__PURE__*/_jsx(Button, {
447
- sx: classes.pageWidthBtn,
448
- className: pageWidth === "full" ? "active" : "",
449
- onClick: handlePageWidth("full"),
450
- startIcon: /*#__PURE__*/_jsx(WidthFullIcon, {}),
451
- style: {
452
- width: "45%"
453
- },
454
- children: "Full width"
455
472
  })]
456
473
  }), /*#__PURE__*/_jsx(AllColors, {
457
474
  open: open,
@@ -52,6 +52,11 @@ export const toolbarGroups = [[{
52
52
  title: "Bold",
53
53
  basic: true,
54
54
  themeEnabled: true
55
+ }, {
56
+ id: 5,
57
+ format: "underline",
58
+ type: "mark",
59
+ title: "Underline"
55
60
  }, {
56
61
  id: 4,
57
62
  format: "italic",
@@ -59,11 +64,6 @@ export const toolbarGroups = [[{
59
64
  title: "Italic",
60
65
  basic: true,
61
66
  themeEnabled: true
62
- }, {
63
- id: 5,
64
- format: "underline",
65
- type: "mark",
66
- title: "Underline"
67
67
  }, {
68
68
  id: 6,
69
69
  format: "strikethrough",
@@ -9,23 +9,23 @@ export const DrawSignature = props => /*#__PURE__*/_jsxs("svg", {
9
9
  children: [/*#__PURE__*/_jsx("path", {
10
10
  className: "fillPath",
11
11
  d: "M21.3748 1.49609L12.1426 10.7274C11.6087 11.2606 11.6087 12.126 12.1426 12.6598L12.6527 13.17C13.1859 13.7031 14.052 13.7031 14.5851 13.17L23.8183 3.93768L21.3748 1.49609Z",
12
- fill: "#A2B0B9"
12
+ fill: props.fill
13
13
  }), /*#__PURE__*/_jsx("path", {
14
14
  className: "fillPath",
15
15
  d: "M11.7399 13.0617C11.4885 12.8102 11.3279 12.5025 11.2544 12.1797L11.2125 12.2944C11.1271 12.5293 10.9854 12.9153 10.8993 13.1501L10.3267 14.7154C10.3236 14.7233 10.3227 14.7313 10.3203 14.7367L11.0133 14.0446C11.0837 13.9751 11.1975 13.9751 11.268 14.0446C11.3385 14.1158 11.3385 14.2298 11.268 14.2994L10.5759 14.9931C10.5837 14.99 10.5901 14.9883 10.5981 14.9852L12.1634 14.4133C12.3983 14.327 12.7836 14.1863 13.0192 14.1002L13.1339 14.0583C12.8103 13.984 12.5026 13.8234 12.2511 13.5734L11.7399 13.0617Z",
16
- fill: "#A2B0B9"
16
+ fill: props.fill
17
17
  }), /*#__PURE__*/_jsx("path", {
18
18
  className: "fillPath",
19
19
  d: "M24.9119 0.911237L24.4018 0.401078C23.8679 -0.133693 23.0025 -0.133693 22.4694 0.401078L21.7852 1.08533L24.2277 3.52785L24.9119 2.8436C25.4451 2.30976 25.4451 1.44433 24.9119 0.911237Z",
20
- fill: "#A2B0B9"
20
+ fill: props.fill
21
21
  }), /*#__PURE__*/_jsx("path", {
22
22
  className: "fillPath",
23
23
  d: "M23.8386 4.55868L19.678 8.71929C19.511 8.88625 19.511 9.15663 19.678 9.3236C19.8449 9.49056 20.1153 9.49056 20.2823 9.3236L24.4419 5.16299C24.6089 4.99603 24.6089 4.72565 24.4419 4.55868C24.2752 4.3919 24.0046 4.3919 23.8386 4.55868Z",
24
- fill: "#A2B0B9"
24
+ fill: props.fill
25
25
  }), /*#__PURE__*/_jsx("path", {
26
26
  className: "fillPath",
27
27
  d: "M12.3531 15.8358H9.24616C8.12385 15.8358 7.46165 16.0692 7.02266 16.2235C6.5125 16.4046 6.4706 16.4181 5.99284 15.9839C5.84645 15.8493 5.7088 15.669 5.56332 15.4768C5.20573 15.007 4.75821 14.4169 3.98619 14.4635C2.88281 14.5253 2.78539 15.6729 2.72768 16.3587C2.71822 16.4742 2.70711 16.6031 2.69218 16.7296C2.61698 16.4948 2.54433 16.2384 2.48898 16.0423C2.39886 15.7211 2.30545 15.3905 2.20494 15.1121C1.9961 14.5371 1.63139 14.4588 1.41311 14.4635C1.19717 14.4683 0.622914 14.4801 0.0266173 16.3713C-0.0682457 16.671 0.0985384 16.9907 0.398416 17.0863C0.699748 17.1805 1.01928 17.0135 1.11432 16.7138C1.17604 16.5177 1.25196 16.3136 1.32862 16.1301C1.3492 16.2029 1.3705 16.2772 1.39107 16.3508C1.68458 17.3933 1.91638 18.215 2.54596 18.3655C2.59421 18.3766 2.65429 18.3853 2.72384 18.3853C2.9041 18.3853 3.14462 18.3219 3.37803 18.0658C3.7633 17.6443 3.81701 17.0121 3.86363 16.456C3.88584 16.1902 3.92772 15.6942 4.0488 15.6018C4.21339 15.5954 4.39128 15.8193 4.65549 16.1673C4.81772 16.3809 5.00198 16.6228 5.22503 16.8253C6.14103 17.6597 6.65833 17.5609 7.40173 17.2983C7.80994 17.1543 8.31848 16.9757 9.24543 16.9757H12.3523C12.6672 16.9757 12.9226 16.7193 12.9226 16.4054C12.9233 16.0914 12.6688 15.8359 12.353 15.8359L12.3531 15.8358Z",
28
- fill: "#A2B0B9"
28
+ fill: props.fill
29
29
  })]
30
30
  });
31
31
  export const TypeSignature = props => /*#__PURE__*/_jsx("svg", {
@@ -37,7 +37,7 @@ export const TypeSignature = props => /*#__PURE__*/_jsx("svg", {
37
37
  children: /*#__PURE__*/_jsx("path", {
38
38
  className: "fillPath",
39
39
  d: "M20.6332 10.8976H13.0855V10.1307C13.0855 10.0886 13.0811 10.0476 13.0728 10.008H13.0736C13.0726 10.0021 13.0687 9.99736 13.0674 9.99145C13.0567 9.9473 13.0404 9.9056 13.0203 9.86571C12.9221 9.65741 12.7112 9.51065 12.4594 9.51065H11.3456V9.48406C11.3456 9.04891 11.7123 8.69365 12.1615 8.69365H16.9192C17.7488 8.69365 18.4225 8.03654 18.4225 7.23285C18.4225 6.42917 17.7488 5.77205 16.9192 5.77205H4.06291C3.39377 5.77205 2.84834 5.24366 2.84834 4.59541C2.84834 3.94276 3.39377 3.41436 4.06291 3.41436H17.5286C18.5781 3.41436 19.4306 2.58853 19.4306 1.57174V0H18.7432V1.57174C18.7432 2.21999 18.1978 2.74838 17.5286 2.74838H4.06291C3.01339 2.74838 2.16089 3.57867 2.16089 4.59541C2.16089 5.61216 3.01334 6.43803 4.06291 6.43803H16.9192C17.3683 6.43803 17.7351 6.79326 17.7351 7.23285C17.7351 7.668 17.3684 8.02767 16.9192 8.02767H12.1615C11.3319 8.02767 10.6582 8.68033 10.6582 9.48402V9.51061H9.86996C9.62477 9.51061 9.41974 9.64932 9.31945 9.84877C9.27336 9.9333 9.24473 10.0282 9.24473 10.1304V10.8974L1.36692 10.8975C0.612058 10.8975 0 11.4904 0 12.2218V19.6758C0 20.4071 0.612015 21 1.36692 21L20.6331 20.9998C21.3879 20.9998 22 20.4069 22 19.6756V12.2216C22 11.4905 21.388 10.8975 20.6331 10.8975L20.6332 10.8976ZM15.62 12.4314C15.62 12.2068 15.808 12.0248 16.0398 12.0248H17.2884C17.5202 12.0248 17.7081 12.2068 17.7081 12.4314V13.641C17.7081 13.8656 17.5202 14.0476 17.2884 14.0476H16.0398C15.808 14.0476 15.62 13.8656 15.62 13.641V12.4314ZM11.6247 14.0477H10.3761C10.1443 14.0477 9.95641 13.8656 9.95641 13.641V12.4314C9.95641 12.2069 10.1443 12.0248 10.3761 12.0248H11.6247C11.8566 12.0248 12.0445 12.2069 12.0445 12.4314V13.641C12.0445 13.8656 11.8566 14.0477 11.6247 14.0477ZM12.0445 15.2478V16.4574C12.0445 16.682 11.8566 16.864 11.6247 16.864H10.3761C10.1443 16.864 9.95641 16.682 9.95641 16.4574V15.2478C9.95641 15.0232 10.1443 14.8412 10.3761 14.8412H11.6247C11.8566 14.841 12.0445 15.0232 12.0445 15.2478ZM7.12457 12.4314C7.12457 12.2068 7.31249 12.0248 7.54429 12.0248H8.79291C9.02471 12.0248 9.21263 12.2068 9.21263 12.4314V13.641C9.21263 13.8656 9.02471 14.0476 8.79291 14.0476H7.54429C7.31249 14.0476 7.12457 13.8656 7.12457 13.641V12.4314ZM7.12457 15.2478C7.12457 15.0232 7.31249 14.8412 7.54429 14.8412H8.79291C9.02471 14.8412 9.21263 15.0232 9.21263 15.2478V16.4574C9.21263 16.682 9.02471 16.864 8.79291 16.864H7.54429C7.31249 16.864 7.12457 16.682 7.12457 16.4574V15.2478ZM3.54896 19.2736C3.54896 19.4982 3.36104 19.6802 3.12924 19.6802H1.88062C1.64882 19.6802 1.4609 19.4982 1.4609 19.2736V18.064C1.4609 17.8394 1.64882 17.6574 1.88062 17.6574H3.12924C3.36104 17.6574 3.54896 17.8394 3.54896 18.064V19.2736ZM3.54896 16.4574C3.54896 16.682 3.36104 16.864 3.12924 16.864H1.88062C1.64882 16.864 1.4609 16.682 1.4609 16.4574V15.2478C1.4609 15.0232 1.64882 14.8412 1.88062 14.8412H3.12924C3.36104 14.8412 3.54896 15.0232 3.54896 15.2478V16.4574ZM3.54896 13.641C3.54896 13.8656 3.36104 14.0476 3.12924 14.0476H1.88062C1.64882 14.0476 1.4609 13.8656 1.4609 13.641V12.4314C1.4609 12.2068 1.64882 12.0248 1.88062 12.0248H3.12924C3.36104 12.0248 3.54896 12.2068 3.54896 12.4314V13.641ZM6.38069 19.2738C6.38069 19.4983 6.19278 19.6804 5.96098 19.6804H4.71235C4.48055 19.6804 4.29264 19.4983 4.29264 19.2738V18.0642C4.29264 17.8396 4.48055 17.6576 4.71235 17.6576H5.96098C6.19278 17.6576 6.38069 17.8396 6.38069 18.0642V19.2738ZM6.38069 16.4576C6.38069 16.6821 6.19278 16.8642 5.96098 16.8642H4.71235C4.48055 16.8642 4.29264 16.6821 4.29264 16.4576V15.248C4.29264 15.0234 4.48055 14.8413 4.71235 14.8413H5.96098C6.19278 14.8413 6.38069 15.0234 6.38069 15.248V16.4576ZM6.38069 13.6412C6.38069 13.8658 6.19278 14.0478 5.96098 14.0478H4.71235C4.48055 14.0478 4.29264 13.8658 4.29264 13.6412V12.4316C4.29264 12.207 4.48055 12.025 4.71235 12.025H5.96098C6.19278 12.025 6.38069 12.207 6.38069 12.4316V13.6412ZM14.8762 19.274C14.8762 19.4985 14.6883 19.6806 14.4565 19.6806H7.54426C7.31246 19.6806 7.12455 19.4985 7.12455 19.274V18.0643C7.12455 17.8398 7.31246 17.6577 7.54426 17.6577H14.4565C14.6883 17.6577 14.8762 17.8398 14.8762 18.0643V19.274ZM14.8762 16.4577C14.8762 16.6823 14.6883 16.8644 14.4565 16.8644H13.2079C12.9761 16.8644 12.7881 16.6823 12.7881 16.4577V15.2481C12.7881 15.0236 12.9761 14.8415 13.2079 14.8415H14.4565C14.6883 14.8415 14.8762 15.0236 14.8762 15.2481V16.4577ZM14.8762 13.6414C14.8762 13.8659 14.6883 14.048 14.4565 14.048H13.2079C12.9761 14.048 12.7881 13.8659 12.7881 13.6414V12.4317C12.7881 12.2072 12.9761 12.0251 13.2079 12.0251H14.4565C14.6883 12.0251 14.8762 12.2072 14.8762 12.4317V13.6414ZM17.7081 19.2741C17.7081 19.4987 17.5202 19.6807 17.2884 19.6807H16.0398C15.808 19.6807 15.6201 19.4987 15.6201 19.2741V18.0645C15.6201 17.8399 15.808 17.6579 16.0398 17.6579H17.2884C17.5202 17.6579 17.7081 17.8399 17.7081 18.0645V19.2741ZM20.5398 19.2741C20.5398 19.4987 20.3519 19.6807 20.1201 19.6807H18.8715C18.6397 19.6807 18.4518 19.4987 18.4518 19.2741V18.0645C18.4518 17.8399 18.6397 17.6579 18.8715 17.6579H20.1201C20.3519 17.6579 20.5398 17.8399 20.5398 18.0645V19.2741ZM20.5398 16.4579C20.5398 16.6825 20.3519 16.8645 20.1201 16.8645H16.0398C15.808 16.8645 15.6201 16.6825 15.6201 16.4579V15.2483C15.6201 15.0237 15.808 14.8417 16.0398 14.8417H20.1201C20.3519 14.8417 20.5398 15.0237 20.5398 15.2483V16.4579ZM20.5398 13.6415C20.5398 13.8661 20.3519 14.0481 20.1201 14.0481H18.8715C18.6397 14.0481 18.4518 13.8661 18.4518 13.6415V12.4319C18.4518 12.2074 18.6397 12.0253 18.8715 12.0253H20.1201C20.3519 12.0253 20.5398 12.2074 20.5398 12.4319V13.6415Z",
40
- fill: "#A2B0B9"
40
+ fill: props.fill
41
41
  })
42
42
  });
43
43
  export const UploadSignature = props => /*#__PURE__*/_jsx("svg", {
@@ -51,7 +51,7 @@ export const UploadSignature = props => /*#__PURE__*/_jsx("svg", {
51
51
  fillRule: "evenodd",
52
52
  clipRule: "evenodd",
53
53
  d: "M9.11105 6.94403V12H3.90249C1.74708 12 0 10.3115 0 8.22877C0 6.2095 1.64226 4.56091 3.70654 4.46225C3.89348 1.96767 6.04701 0 8.67605 0C10.7426 0 12.5153 1.21592 13.2701 2.94791C13.5384 2.87841 13.8204 2.84119 14.1116 2.84119C15.9012 2.84119 17.3519 4.24319 17.3519 5.97277C17.3519 6.01559 17.351 6.05819 17.3494 6.10079C18.8463 6.29676 20 7.53667 20 9.03682C20 10.6734 18.6273 12 16.9338 12H10.8892V6.94403L12.4098 8.24737C12.7768 8.56172 13.3385 8.52988 13.6647 8.17607C13.9907 7.82226 13.9577 7.28055 13.5908 6.966L10.5909 4.39451L10.0003 3.88847L9.40974 4.39451L6.40986 6.966C6.04295 7.28057 6.00994 7.82227 6.33592 8.17607C6.66214 8.52988 7.2239 8.56172 7.5908 8.24737L9.11105 6.94403Z",
54
- fill: "#A2B0B9"
54
+ fill: props.fill
55
55
  })
56
56
  });
57
57
  export const PencilIcon = props => /*#__PURE__*/_jsx("svg", {
@@ -10,8 +10,9 @@ import { IoIosImage } from "react-icons/io";
10
10
  import { GridIcon, AccordionIcon, SignatureIcon, ButtonIcon, Carousal, FormIcon, BoldIcon, FontFamilyIcon, FontSizeIcon, ImageIcon, ItalicIcon, LinkIcon, StrikethroughIcon, TableIcon, UnderLineIcon, VideoIcon, CheckboxIcon, AppHeader, MoreHorizontal, UploadImage, DocsUpload, LeftArrow, RightArrow, CheckListButton, CheckListButtonActive, ExcelIcon, CsvIcon, DividerIcon, CloseIcon, SearchIcon, ExpandIcon, CalendarIconNew, Text, TextAreaIcon, Phone, BriefCase, Bank, CalendarTick, DollarSquare, Checkbox, Description, RadioButtonIcon, CheckedIcon, UncheckedIcon, InfinityIcon, ResetIcon } from "./iconslist";
11
11
  import ArrowRightIcon from "@mui/icons-material/ArrowRight";
12
12
  import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
13
- import EmailRoundedIcon from "@mui/icons-material/EmailRounded";
14
- import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
13
+ import EmailRoundedIcon from '@mui/icons-material/EmailRounded';
14
+ import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
15
+ import { AccordionTextFormatIcon, BoldTextFormatIcon, BulletedListTextFormatIcon, ButtonElementIcon, CarouselElementIcon, CheckListTextFormatIcon, ColorBoxElementIcon, DividerElementIcon, DocUploadElementIcon, EmbedElementIcon, EmojiElementIcon, FormElementIcon, GridElementIcon, ImageElementIcon, ItalicTextFormatIcon, LinkIconV2, OrderedListTextFormatIcon, SignatureElementIcon, TableElementIcon, TopBannerElementIcon, UnderlineTextFormatIcon, VideoElementIcon } from "./iconListV2";
15
16
  import SettingsIcon from "../assets/svg/SettingsIcon";
16
17
  import UndoIcon from "../assets/svg/UndoIcon";
17
18
  import RedoIcon from "../assets/svg/RedoIcon";
@@ -38,11 +39,11 @@ const iconList = {
38
39
  size: 20
39
40
  }),
40
41
  // bold: <MdFormatBold size={20} />,
41
- bold: /*#__PURE__*/_jsx(BoldIcon, {
42
+ bold: /*#__PURE__*/_jsx(BoldTextFormatIcon, {
42
43
  size: 20
43
44
  }),
44
45
  // italic: <MdFormatItalic size={20} />,
45
- italic: /*#__PURE__*/_jsx(ItalicIcon, {
46
+ italic: /*#__PURE__*/_jsx(ItalicTextFormatIcon, {
46
47
  size: 20
47
48
  }),
48
49
  // strikethrough: <MdStrikethroughS size={20} />,
@@ -50,7 +51,7 @@ const iconList = {
50
51
  size: 20
51
52
  }),
52
53
  // underline: <MdFormatUnderlined size={20} />,
53
- underline: /*#__PURE__*/_jsx(UnderLineIcon, {
54
+ underline: /*#__PURE__*/_jsx(UnderlineTextFormatIcon, {
54
55
  size: 20
55
56
  }),
56
57
  headingOne: /*#__PURE__*/_jsx(BsTypeH1, {
@@ -111,31 +112,29 @@ const iconList = {
111
112
  size: 18,
112
113
  fill: "#64748B"
113
114
  }),
114
- orderedList: /*#__PURE__*/_jsx(MdFormatListNumbered, {
115
+ orderedList: /*#__PURE__*/_jsx(OrderedListTextFormatIcon, {
115
116
  size: 18,
116
117
  fill: "#64748B"
117
118
  }),
118
- unorderedList: /*#__PURE__*/_jsx(MdFormatListBulleted, {
119
+ unorderedList: /*#__PURE__*/_jsx(BulletedListTextFormatIcon, {
119
120
  size: 18,
120
121
  fill: "#64748B"
121
122
  }),
122
123
  // link: <MdInsertLink size={20} />,
123
- link: /*#__PURE__*/_jsx(LinkIcon, {
124
+ link: /*#__PURE__*/_jsx(LinkIconV2, {
124
125
  size: 20
125
126
  }),
126
127
  // image: <MdImage size={20} />,
127
- image: /*#__PURE__*/_jsx(ImageIcon, {
128
+ image: /*#__PURE__*/_jsx(ImageElementIcon, {
128
129
  size: 20
129
130
  }),
130
131
  // video: <MdVideoLibrary size={20} />,
131
- video: /*#__PURE__*/_jsx(VideoIcon, {
132
- size: 20
133
- }),
132
+ video: /*#__PURE__*/_jsx(VideoElementIcon, {}),
134
133
  add: /*#__PURE__*/_jsx(MdAdd, {
135
134
  size: 20
136
135
  }),
137
136
  // table: <AiOutlineTable size={20} />,
138
- table: /*#__PURE__*/_jsx(TableIcon, {
137
+ table: /*#__PURE__*/_jsx(TableElementIcon, {
139
138
  size: 20
140
139
  }),
141
140
  insertRowBelow: /*#__PURE__*/_jsx(AiOutlineInsertRowBelow, {
@@ -177,16 +176,16 @@ const iconList = {
177
176
  pen: /*#__PURE__*/_jsx(AiFillEdit, {
178
177
  size: 20
179
178
  }),
180
- emoji: /*#__PURE__*/_jsx(MdEmojiEmotions, {
179
+ emoji: /*#__PURE__*/_jsx(EmojiElementIcon, {
181
180
  size: 20,
182
181
  fill: "#64748B"
183
182
  }),
184
- grid: /*#__PURE__*/_jsx(GridIcon, {}),
185
- accordion: /*#__PURE__*/_jsx(AccordionIcon, {}),
186
- signature: /*#__PURE__*/_jsx(SignatureIcon, {}),
187
- button: /*#__PURE__*/_jsx(ButtonIcon, {}),
188
- carousel: /*#__PURE__*/_jsx(Carousal, {}),
189
- form: /*#__PURE__*/_jsx(FormIcon, {}),
183
+ grid: /*#__PURE__*/_jsx(GridElementIcon, {}),
184
+ accordion: /*#__PURE__*/_jsx(AccordionTextFormatIcon, {}),
185
+ signature: /*#__PURE__*/_jsx(SignatureElementIcon, {}),
186
+ button: /*#__PURE__*/_jsx(ButtonElementIcon, {}),
187
+ carousel: /*#__PURE__*/_jsx(CarouselElementIcon, {}),
188
+ form: /*#__PURE__*/_jsx(FormElementIcon, {}),
190
189
  tableCellResizeLeft: /*#__PURE__*/_jsx(BsArrowBarRight, {
191
190
  size: 20
192
191
  }),
@@ -205,11 +204,11 @@ const iconList = {
205
204
  addRow: /*#__PURE__*/_jsx(FcAddRow, {
206
205
  size: 20
207
206
  }),
208
- "check-list-item": /*#__PURE__*/_jsx(CheckboxIcon, {
207
+ "check-list-item": /*#__PURE__*/_jsx(CheckListTextFormatIcon, {
209
208
  size: 20
210
209
  }),
211
- embed: /*#__PURE__*/_jsx(LinkIcon, {}),
212
- topbanner: /*#__PURE__*/_jsx(IoIosImage, {
210
+ embed: /*#__PURE__*/_jsx(EmbedElementIcon, {}),
211
+ topbanner: /*#__PURE__*/_jsx(TopBannerElementIcon, {
213
212
  size: 20,
214
213
  fill: "#64748B"
215
214
  }),
@@ -225,8 +224,8 @@ const iconList = {
225
224
  }),
226
225
  appHeader: /*#__PURE__*/_jsx(AppHeader, {}),
227
226
  moreHorizantal: /*#__PURE__*/_jsx(MoreHorizontal, {}),
228
- docsUpload: /*#__PURE__*/_jsx(DocsUpload, {}),
229
- colorbox: /*#__PURE__*/_jsx(BsFillMenuButtonWideFill, {
227
+ docsUpload: /*#__PURE__*/_jsx(DocUploadElementIcon, {}),
228
+ colorbox: /*#__PURE__*/_jsx(ColorBoxElementIcon, {
230
229
  style: {
231
230
  fill: "#64748B"
232
231
  },
@@ -238,7 +237,7 @@ const iconList = {
238
237
  checkListButtonActive: /*#__PURE__*/_jsx(CheckListButtonActive, {}),
239
238
  excelIcon: /*#__PURE__*/_jsx(ExcelIcon, {}),
240
239
  csvIcon: /*#__PURE__*/_jsx(CsvIcon, {}),
241
- divider: /*#__PURE__*/_jsx(DividerIcon, {}),
240
+ divider: /*#__PURE__*/_jsx(DividerElementIcon, {}),
242
241
  SearchIcon: /*#__PURE__*/_jsx(SearchIcon, {}),
243
242
  expandIcon: /*#__PURE__*/_jsx(ExpandIcon, {}),
244
243
  closeIcon: /*#__PURE__*/_jsx(CloseIcon, {}),