@flozy/editor 5.1.3 → 5.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +7 -13
  3. package/dist/Editor/Editor.css +10 -52
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +10 -17
  6. package/dist/Editor/Elements/AI/Styles.js +1 -7
  7. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  8. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  9. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  10. package/dist/Editor/Elements/Form/Form.js +2 -38
  11. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  12. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  13. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  14. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  15. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  16. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  17. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  18. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  19. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  20. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  21. package/dist/Editor/Elements/Grid/GridButton.js +1 -2
  22. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  23. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  24. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  25. package/dist/Editor/Elements/Signature/SignaturePopup.js +48 -13
  26. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  27. package/dist/Editor/Elements/SimpleText/style.js +1 -8
  28. package/dist/Editor/Elements/Table/Styles.js +43 -25
  29. package/dist/Editor/Elements/Table/Table.js +138 -206
  30. package/dist/Editor/Elements/Table/TableCell.js +102 -355
  31. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  32. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  33. package/dist/Editor/Styles/EditorStyles.js +1 -3
  34. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  35. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +11 -7
  36. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -10
  37. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  38. package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -0
  39. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  40. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  41. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  42. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +11 -16
  43. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +49 -416
  44. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -62
  45. package/dist/Editor/Toolbar/PopupTool/index.js +6 -5
  46. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  47. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  48. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  49. package/dist/Editor/common/ColorPickerButton.js +2 -3
  50. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  51. package/dist/Editor/common/Icon.js +23 -24
  52. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  53. package/dist/Editor/common/LinkSettings/index.js +1 -2
  54. package/dist/Editor/common/MentionsPopup/Styles.js +3 -151
  55. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  56. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
  57. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  58. package/dist/Editor/common/Shorthands/elements.js +1 -13
  59. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
  60. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  62. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -5
  63. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  64. package/dist/Editor/common/StyleBuilder/index.js +11 -84
  65. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  66. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  67. package/dist/Editor/common/Uploader.js +0 -8
  68. package/dist/Editor/common/iconListV2.js +40 -378
  69. package/dist/Editor/common/iconslist.js +5 -8
  70. package/dist/Editor/commonStyle.js +9 -117
  71. package/dist/Editor/helper/deserialize/index.js +1 -4
  72. package/dist/Editor/helper/index.js +2 -2
  73. package/dist/Editor/helper/theme.js +1 -24
  74. package/dist/Editor/hooks/useMouseMove.js +2 -5
  75. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -3
  76. package/dist/Editor/plugins/withHTML.js +1 -17
  77. package/dist/Editor/plugins/withLayout.js +1 -48
  78. package/dist/Editor/utils/SlateUtilityFunctions.js +0 -18
  79. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -21
  80. package/dist/Editor/utils/embed.js +1 -2
  81. package/dist/Editor/utils/events.js +1 -0
  82. package/dist/Editor/utils/font.js +4 -11
  83. package/dist/Editor/utils/formfield.js +4 -8
  84. package/dist/Editor/utils/helper.js +1 -34
  85. package/dist/Editor/utils/insertNewLine.js +1 -19
  86. package/dist/Editor/utils/pageSettings.js +2 -14
  87. package/dist/Editor/utils/serializeToText.js +0 -2
  88. package/dist/Editor/utils/table.js +24 -228
  89. package/package.json +1 -1
  90. package/dist/Editor/Elements/DataView/DataView.js +0 -101
  91. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  92. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -59
  93. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -30
  94. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -140
  95. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  96. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -59
  97. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -26
  98. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -38
  99. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  100. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  101. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  102. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  103. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  104. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  105. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  106. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  107. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  108. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  109. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  110. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  111. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  112. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  113. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  114. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -62
  115. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  116. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  117. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  118. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  119. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  120. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  121. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  122. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  123. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -100
  124. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  125. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -70
  126. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  127. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -288
  128. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  129. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -72
  130. package/dist/Editor/Elements/DataView/styles.js +0 -143
  131. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  132. package/dist/Editor/Elements/Table/DragButton.js +0 -141
  133. package/dist/Editor/Elements/Table/DragStyles.js +0 -69
  134. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  135. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  136. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  137. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  138. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  139. package/dist/Editor/common/Select/index.js +0 -20
  140. package/dist/Editor/common/Select/styles.js +0 -17
  141. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  142. package/dist/Editor/hooks/useTable.js +0 -175
  143. package/dist/Editor/utils/dataView.js +0 -43
@@ -16,9 +16,6 @@ const FormRadioButton = props => {
16
16
  textColor,
17
17
  bgColor,
18
18
  lockSpacing,
19
- textSize,
20
- fontFamily,
21
- fontWeight,
22
19
  ...rest
23
20
  } = fieldProps;
24
21
  const onChange = e => {
@@ -49,10 +46,7 @@ const FormRadioButton = props => {
49
46
  },
50
47
  borderStyle: borderStyle || "solid",
51
48
  color: textColor || "#000",
52
- background: bgColor || "transparent",
53
- fontFamily: fontFamily || "PoppinsRegular",
54
- fontSize: textSize || "inherit",
55
- fontWeight: `${fontWeight} !important` || "400 !important"
49
+ background: bgColor || "transparent"
56
50
  }
57
51
  })
58
52
  });
@@ -16,9 +16,6 @@ const FormText = props => {
16
16
  textColor,
17
17
  bgColor,
18
18
  lockSpacing,
19
- textSize,
20
- fontFamily,
21
- fontWeight,
22
19
  ...rest
23
20
  } = fieldProps;
24
21
  const onChange = e => {
@@ -48,10 +45,7 @@ const FormText = props => {
48
45
  },
49
46
  borderStyle: borderStyle || "solid",
50
47
  color: textColor || "#000",
51
- background: bgColor || "transparent",
52
- fontSize: textSize || "inherit",
53
- fontFamily: fontFamily || "PoppinsRegular",
54
- fontWeight: `${fontWeight} !important` || "400 !important"
48
+ background: bgColor || "transparent"
55
49
  }
56
50
  })
57
51
  });
@@ -15,9 +15,6 @@ const FormTextArea = props => {
15
15
  borderColor,
16
16
  textColor,
17
17
  bgColor,
18
- textSize,
19
- fontFamily,
20
- fontWeight,
21
18
  ...rest
22
19
  } = fieldProps;
23
20
  const onChange = e => {
@@ -48,9 +45,7 @@ const FormTextArea = props => {
48
45
  borderStyle: borderStyle || "solid",
49
46
  color: `${textColor || "#000"} !important`,
50
47
  background: `${bgColor || "transparent"} !important`,
51
- fontSize: textSize || "14px",
52
- fontFamily: fontFamily || "PoppinsRegular",
53
- fontWeight: `${fontWeight} !important` || "400 !important"
48
+ fontSize: '14px'
54
49
  }
55
50
  })
56
51
  });
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
2
  import StyleBuilder from "../../common/StyleBuilder";
3
- import { formStyle } from "../../common/StyleBuilder/formStyle";
3
+ import formStyle from "../../common/StyleBuilder/formStyle";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- import { Fragment as _Fragment } from "react/jsx-runtime";
6
5
  const FormPopup = props => {
7
6
  const {
8
7
  element,
@@ -10,16 +9,14 @@ const FormPopup = props => {
10
9
  onClose,
11
10
  customProps
12
11
  } = props;
13
- return /*#__PURE__*/_jsx(_Fragment, {
14
- children: /*#__PURE__*/_jsx(StyleBuilder, {
15
- title: "Form",
16
- type: "formStyle",
17
- element: element,
18
- onSave: onSave,
19
- onClose: onClose,
20
- renderTabs: formStyle,
21
- customProps: customProps
22
- })
12
+ return /*#__PURE__*/_jsx(StyleBuilder, {
13
+ title: "Form",
14
+ type: "formStyle",
15
+ element: element,
16
+ onSave: onSave,
17
+ onClose: onClose,
18
+ renderTabs: formStyle,
19
+ customProps: customProps
23
20
  });
24
21
  };
25
22
  export default FormPopup;
@@ -276,7 +276,7 @@ const FreeGrid = props => {
276
276
  ...insertFreeGridItem("table", {
277
277
  ...DEFAULT_TABLE_NODE()
278
278
  }, {
279
- height: 150,
279
+ height: 130,
280
280
  width: 400
281
281
  })
282
282
  }], {
@@ -144,27 +144,8 @@ const FreeGridItem = props => {
144
144
  };
145
145
  const onAddFormField = () => {
146
146
  try {
147
- const {
148
- fieldFontFamily,
149
- fieldFontWeight,
150
- fieldTextSize,
151
- fieldTextColor,
152
- fieldBgColor,
153
- fieldBorderColor,
154
- fieldBorderWidth,
155
- fieldBorderStyle
156
- } = element?.children[0];
157
147
  Transforms.insertNodes(editor, {
158
- ...formField({
159
- fontFamily: fieldFontFamily ? fieldFontFamily : "",
160
- fontWeight: fieldFontWeight ? fieldFontWeight : "",
161
- textSize: fieldTextSize ? fieldTextSize : "",
162
- textColor: fieldTextColor ? fieldTextColor : "",
163
- bgColor: fieldBgColor ? fieldBgColor : "",
164
- borderColor: fieldBorderColor ? fieldBorderColor : "",
165
- borderWidth: fieldBorderWidth ? fieldBorderWidth : "",
166
- borderStyle: fieldBorderStyle ? fieldBorderStyle : ""
167
- })
148
+ ...formField()
168
149
  }, {
169
150
  at: [...path, 0, 0]
170
151
  });
@@ -4,7 +4,6 @@ import { insertGrid, insertPlainGrid } from "../../utils/grid";
4
4
  import { GridIcon } from "../../common/iconslist";
5
5
  import ToolbarIcon from "../../common/ToolbarIcon";
6
6
  import GridStyles from "./Styles";
7
- import { GridElement } from "../../common/iconListV2";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -47,7 +46,7 @@ const GridButton = props => {
47
46
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
48
47
  title: "Column",
49
48
  onClick: onButtonClick,
50
- icon: /*#__PURE__*/_jsx(GridElement, {}),
49
+ icon: /*#__PURE__*/_jsx(GridIcon, {}),
51
50
  icoBtnType: icoBtnType
52
51
  }), /*#__PURE__*/_jsxs(Dialog, {
53
52
  open: open,
@@ -64,7 +64,7 @@ const LinkButton = props => {
64
64
  title: "Link",
65
65
  arrow: true,
66
66
  children: /*#__PURE__*/_jsx(IconButton, {
67
- className: `${showInput ? "clicked btnActive" : ""} ${isActive ? "btnActive" : ""}`,
67
+ className: `${showInput ? "clicked" : ""} ${isActive ? "btnActive" : ""}`,
68
68
  format: "link",
69
69
  onClick: toggleLink,
70
70
  children: /*#__PURE__*/_jsx(Icon, {
@@ -57,7 +57,7 @@
57
57
  cursor: pointer;
58
58
  }
59
59
  .upload-wrapper-ui {
60
- border: 1.5px dashed #2563EB !important;
60
+ border: 1px dashed #92B1F5 !important;
61
61
  /* box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.17) !important; */
62
62
  border-radius: 7px;
63
63
  display: flex;
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { signedTextFonts } from "../../../utils/font";
3
3
  import { Grid, Button, TextField, InputAdornment, IconButton, Typography } from "@mui/material";
4
- import ClearRoundedIcon from '@mui/icons-material/ClearRounded';
4
+ import ClearIcon from "@mui/icons-material/Clear";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
7
  const TypeSignature = props => {
@@ -73,7 +73,7 @@ const TypeSignature = props => {
73
73
  position: "end",
74
74
  children: /*#__PURE__*/_jsx(IconButton, {
75
75
  onClick: () => setName(""),
76
- children: /*#__PURE__*/_jsx(ClearRoundedIcon, {})
76
+ children: /*#__PURE__*/_jsx(ClearIcon, {})
77
77
  })
78
78
  })
79
79
  }
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react";
2
2
  import { Dialog, DialogTitle, DialogContent, DialogActions, Button, IconButton, Grid, TextField, Typography, Tabs, Tab, InputAdornment, Box } from "@mui/material";
3
- import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
3
+ import CloseIcon from "@mui/icons-material/Close";
4
4
  import DatePicker from "react-datepicker";
5
5
  import "react-datepicker/dist/react-datepicker.css";
6
6
  import SignatureOptions from "./SignatureOptions";
@@ -158,7 +158,7 @@ const SignaturePopup = props => {
158
158
  sx: {
159
159
  borderRadius: "8px",
160
160
  boxShadow: "0px 4px 10px 0px #00000029",
161
- maxWidth: "530px"
161
+ maxWidth: "560px"
162
162
  }
163
163
  },
164
164
  sx: classes.signaturePopup,
@@ -200,7 +200,7 @@ const SignaturePopup = props => {
200
200
  children: /*#__PURE__*/_jsx(IconButton, {
201
201
  onClick: handleClose,
202
202
  className: "close-popupbtn",
203
- children: /*#__PURE__*/_jsx(CloseRoundedIcon, {})
203
+ children: /*#__PURE__*/_jsx(CloseIcon, {})
204
204
  })
205
205
  })]
206
206
  })
@@ -316,7 +316,25 @@ const SignaturePopup = props => {
316
316
  defaultValue: defaultName || "",
317
317
  size: "small",
318
318
  onChange: onChange,
319
- sx: classes.signaturePopUpNameField
319
+ sx: {
320
+ "& .MuiOutlinedInput-root": {
321
+ borderRadius: "10px",
322
+ "& fieldset": {
323
+ border: "1px solid #D8DDE1"
324
+ }
325
+ // '&:hover fieldset': {
326
+ // borderColor: 'yourHoverColor',
327
+ // },
328
+ // '&.Mui-focused fieldset': {
329
+ // borderColor: 'yourFocusedColor',
330
+ // },
331
+ },
332
+
333
+ "& .MuiInputBase-input::placeholder": {
334
+ fontFamily: '"Inter", sans-serif"',
335
+ fontSize: "14px"
336
+ }
337
+ }
320
338
  })
321
339
  })]
322
340
  }), /*#__PURE__*/_jsxs(Grid, {
@@ -441,7 +459,25 @@ const SignaturePopup = props => {
441
459
  placeholder: "Enter Email",
442
460
  size: "small",
443
461
  onChange: onChange,
444
- sx: classes.signaturePopUpNameField,
462
+ sx: {
463
+ "& .MuiOutlinedInput-root": {
464
+ borderRadius: "10px",
465
+ "& fieldset": {
466
+ border: "1px solid #D8DDE1"
467
+ }
468
+ // '&:hover fieldset': {
469
+ // borderColor: 'yourHoverColor',
470
+ // },
471
+ // '&.Mui-focused fieldset': {
472
+ // borderColor: 'yourFocusedColor',
473
+ // },
474
+ },
475
+
476
+ "& .MuiInputBase-input::placeholder": {
477
+ fontFamily: '"Inter", sans-serif"',
478
+ fontSize: "14px"
479
+ }
480
+ },
445
481
  defaultValue: defaultEmail || ""
446
482
  })
447
483
  })]
@@ -471,8 +507,7 @@ const SignaturePopup = props => {
471
507
  classes: classes,
472
508
  value: brush.color,
473
509
  onSave: onBrushColor,
474
- recentColors: [],
475
- hideGradient: true
510
+ recentColors: []
476
511
  }), /*#__PURE__*/_jsx("span", {
477
512
  style: {
478
513
  marginLeft: "10px",
@@ -495,13 +530,13 @@ const SignaturePopup = props => {
495
530
  className: brush.size === m ? "activeBrush" : "",
496
531
  children: /*#__PURE__*/_jsx("span", {
497
532
  style: {
498
- width: 17 + m,
499
- height: 17 + m
533
+ width: 20 + m,
534
+ height: 20 + m
500
535
  },
501
536
  children: /*#__PURE__*/_jsx(PencilIcon, {
502
537
  style: {
503
- width: 17 + m,
504
- height: 17 + m
538
+ width: 20 + m,
539
+ height: 20 + m
505
540
  }
506
541
  })
507
542
  })
@@ -512,11 +547,11 @@ const SignaturePopup = props => {
512
547
  }) : null, /*#__PURE__*/_jsxs(_Fragment, {
513
548
  children: [!readOnly ? /*#__PURE__*/_jsx(Button, {
514
549
  onClick: handleClear,
515
- className: `secondaryBtn actionBtn deleteBtn deleteButtonSignature`,
550
+ className: "secondaryBtn actionBtn deleteBtn",
516
551
  children: "Delete"
517
552
  }) : null, /*#__PURE__*/_jsx(Button, {
518
553
  onClick: handleSave,
519
- className: `primaryBtn actionBtn ${isEmpty ? "disabled disabledSaveBtn" : ""}`,
554
+ className: `primaryBtn actionBtn ${isEmpty ? "disabled" : ""}`,
520
555
  disabled: isEmpty,
521
556
  children: "Save"
522
557
  })]
@@ -5,7 +5,6 @@ import { getPageSettings } from "../../utils/pageSettings";
5
5
  import { isTextSelected } from "../../utils/helper";
6
6
  import { useEditorContext } from "../../hooks/useMouseMove";
7
7
  import SimpleTextStyle from "./style";
8
- import { getBreakpointLineSpacing } from "../../helper/theme";
9
8
  import { jsx as _jsx } from "react/jsx-runtime";
10
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
11
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -33,14 +32,8 @@ const SimpleText = props => {
33
32
  const {
34
33
  pageColor
35
34
  } = pageSt?.pageProps || {};
36
- const {
37
- activeBreakPoint
38
- } = useEditorContext();
39
- const lineHeight = element?.children[0]?.lineHeight;
40
- const lineH = getBreakpointLineSpacing(lineHeight, activeBreakPoint);
41
35
  const classes = SimpleTextStyle({
42
- pageColor: pageColor || theme?.palette?.editor?.background || "#FFFFFF",
43
- lineHeight: lineH
36
+ pageColor: pageColor || theme?.palette?.editor?.background || "#FFFFFF"
44
37
  });
45
38
  const selected = useSelected();
46
39
  const path = ReactEditor.findPath(editor, element);
@@ -1,17 +1,10 @@
1
1
  import { invertColor } from "../../helper";
2
2
  const SimpleTextStyle = ({
3
- pageColor,
4
- lineHeight
3
+ pageColor
5
4
  }) => ({
6
5
  root: {
7
6
  position: "relative",
8
7
  padding: "0px",
9
- lineHeight: lineHeight,
10
- "&.signature": {
11
- "& .placeholder-simple-text": {
12
- opacity: 0
13
- }
14
- },
15
8
  "& .placeholder-simple-text": {
16
9
  color: "#94A3B8",
17
10
  background: "transparent",
@@ -1,25 +1,20 @@
1
- const TableStyles = theme => ({
1
+ const TableStyles = themeType => ({
2
2
  tableToolBar: {
3
3
  position: "absolute",
4
- top: "-24px",
4
+ top: "-34px",
5
5
  left: 0,
6
+ backgroundColor: "#FFF",
7
+ border: "1px solid rgba(37, 99, 235, 0.32)",
8
+ boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.16)",
9
+ borderRadius: "0px",
10
+ width: "32px",
11
+ height: "32px",
12
+ overflow: "hidden",
6
13
  transition: "all 0.3s",
7
14
  "& button": {
8
- backgroundColor: theme?.palette?.editor?.background,
9
- border: "1px solid rgba(37, 99, 235, 0.32)",
10
- boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.16)",
11
- borderRadius: "50%",
12
- padding: "4px",
13
- margin: "2px",
14
- "&:hover": {
15
- backgroundColor: theme?.palette?.editor?.background
16
- },
17
15
  "& svg": {
18
- width: "18px",
19
- height: "18px",
20
- "& path": {
21
- stroke: theme?.palette?.editor?.textColor
22
- }
16
+ width: "16px",
17
+ height: "16px"
23
18
  }
24
19
  },
25
20
  "&.active": {
@@ -36,7 +31,13 @@ const TableStyles = theme => ({
36
31
  },
37
32
  table: {
38
33
  "& td": {
39
- padding: "8px 8px"
34
+ padding: "8px 8px",
35
+ border: "1px solid #E0E0E0",
36
+ "&.selection": {
37
+ "& *::selection": {
38
+ background: "transparent"
39
+ }
40
+ }
40
41
  },
41
42
  "& .selection-area-tc": {
42
43
  position: "absolute",
@@ -44,13 +45,8 @@ const TableStyles = theme => ({
44
45
  height: "100%",
45
46
  top: 0,
46
47
  left: 0,
47
- outline: "1px solid #2563EB",
48
+ background: "rgba(149, 218, 255, .3)",
48
49
  pointerEvents: "none"
49
- },
50
- "& .hide-drag-btn-wrapper": {
51
- "& .row-drag-btn": {
52
- display: "none"
53
- }
54
50
  }
55
51
  },
56
52
  cellResizer: {
@@ -59,11 +55,33 @@ const TableStyles = theme => ({
59
55
  right: "-2px",
60
56
  top: 0,
61
57
  background: "transparent",
62
- width: "3px",
58
+ width: "4px",
63
59
  borderRadius: "0px",
64
60
  zIndex: 1,
65
61
  "&:hover": {
66
- background: "#2563EB"
62
+ background: "#ccc"
63
+ }
64
+ },
65
+ deleteCellsPopUp: {
66
+ backgroundColor: themeType === "dark" ? "#292C32" : "#FFFFFF",
67
+ borderRadius: "7px !important",
68
+ border: themeType === "dark" ? "1px solid #5B5E64" : "1px solid #E4E8EB",
69
+ zIndex: 100,
70
+ minWidth: "186px !important"
71
+ },
72
+ menuItemPopUp: {
73
+ padding: "5px 7px !important",
74
+ margin: "6px !important",
75
+ borderRadius: 1,
76
+ userSelect: "none",
77
+ color: themeType === "dark" ? "#2563EB" : "#0F172A",
78
+ "&:hover": {
79
+ // backgroundColor: "rgba(0, 123, 255, 0.1)",
80
+ backgroundColor: themeType === "dark" ? "#2563EB" : "#E9F3FE"
81
+ },
82
+ "&.Mui-selected": {
83
+ backgroundColor: themeType === "dark" ? "#2563EB" : "#E9F3FE",
84
+ color: themeType === "dark" ? "#F6F6F6" : "#0F172A"
67
85
  }
68
86
  }
69
87
  });