@flozy/editor 10.2.0 → 10.2.1

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 (172) hide show
  1. package/dist/Editor/ChatEditor.js +16 -17
  2. package/dist/Editor/CommonEditor.js +16 -120
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +8 -46
  5. package/dist/Editor/Elements/AI/PopoverAIInput.js +3 -11
  6. package/dist/Editor/Elements/Accordion/Accordion.js +2 -6
  7. package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
  8. package/dist/Editor/Elements/Button/EditorButton.js +9 -25
  9. package/dist/Editor/Elements/Carousel/CarouselItem.js +1 -2
  10. package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -61
  11. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  12. package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
  13. package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
  14. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -4
  15. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +6 -21
  16. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +1 -5
  17. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +2 -3
  18. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -11
  19. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
  20. package/dist/Editor/Elements/Embed/Image.js +2 -3
  21. package/dist/Editor/Elements/Embed/Video.js +1 -1
  22. package/dist/Editor/Elements/EmbedScript/Code.js +2 -14
  23. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +28 -57
  24. package/dist/Editor/Elements/Form/Form.js +168 -181
  25. package/dist/Editor/Elements/Form/FormElements/FormText.js +6 -23
  26. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +2 -3
  27. package/dist/Editor/Elements/Form/FormField.js +6 -13
  28. package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
  29. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +31 -36
  30. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -7
  31. package/dist/Editor/Elements/FreeGrid/Options/More.js +8 -8
  32. package/dist/Editor/Elements/FreeGrid/styles.js +7 -67
  33. package/dist/Editor/Elements/Grid/Grid.js +2 -14
  34. package/dist/Editor/Elements/Grid/GridItem.js +1 -1
  35. package/dist/Editor/Elements/List/CheckList.js +2 -3
  36. package/dist/Editor/Elements/Search/SearchAttachment.js +9 -40
  37. package/dist/Editor/Elements/Search/SearchButton.js +8 -9
  38. package/dist/Editor/Elements/Search/SearchList.js +7 -9
  39. package/dist/Editor/Elements/Signature/Signature.css +1 -2
  40. package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +5 -18
  41. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +3 -16
  42. package/dist/Editor/Elements/SimpleText/index.js +1 -6
  43. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  44. package/dist/Editor/Elements/Table/DragButton.js +1 -0
  45. package/dist/Editor/Elements/Table/Draggable.js +2 -6
  46. package/dist/Editor/Elements/Table/Styles.js +0 -7
  47. package/dist/Editor/Elements/Table/Table.js +3 -3
  48. package/dist/Editor/Elements/Table/TableCell.js +5 -24
  49. package/dist/Editor/Elements/Title/title.js +6 -6
  50. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  51. package/dist/Editor/MiniEditor.js +1 -2
  52. package/dist/Editor/Styles/EditorStyles.js +5 -5
  53. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  54. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  55. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
  56. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  57. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +1 -2
  58. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -4
  59. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  60. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +42 -167
  61. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +4 -7
  62. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +1 -2
  63. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +12 -72
  64. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +27 -100
  65. package/dist/Editor/Toolbar/PopupTool/index.js +1 -1
  66. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  67. package/dist/Editor/assets/svg/SettingsIcon.js +0 -1
  68. package/dist/Editor/common/ColorPickerButton.js +16 -38
  69. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  70. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  71. package/dist/Editor/common/Icon.js +1 -31
  72. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  73. package/dist/Editor/common/LinkSettings/NavComponents.js +8 -34
  74. package/dist/Editor/common/LinkSettings/index.js +68 -84
  75. package/dist/Editor/common/LinkSettings/style.js +30 -245
  76. package/dist/Editor/common/RnD/ElementOptions/Actions.js +14 -13
  77. package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +0 -1
  78. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -2
  79. package/dist/Editor/common/RnD/ElementOptions/styles.js +1 -28
  80. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +5 -6
  81. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Signature.js +3 -4
  82. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  83. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  84. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  85. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  86. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +2 -4
  87. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  88. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  89. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +1 -3
  90. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  91. package/dist/Editor/common/RnD/ElementSettings/styles.js +12 -147
  92. package/dist/Editor/common/RnD/OptionsPopup/index.js +5 -8
  93. package/dist/Editor/common/RnD/OptionsPopup/style.js +19 -121
  94. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +5 -8
  95. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  96. package/dist/Editor/common/RnD/Utils/gridDropItem.js +19 -28
  97. package/dist/Editor/common/RnD/Utils/index.js +1 -3
  98. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +54 -48
  99. package/dist/Editor/common/RnD/VirtualElement/helper.js +131 -143
  100. package/dist/Editor/common/RnD/VirtualElement/styles.js +0 -16
  101. package/dist/Editor/common/RnD/index.js +11 -6
  102. package/dist/Editor/common/Select/index.js +0 -2
  103. package/dist/Editor/common/Shorthands/elements.js +11 -65
  104. package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
  105. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
  106. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +2 -12
  107. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +7 -15
  108. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +8 -16
  109. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +10 -36
  110. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +7 -16
  111. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +6 -7
  112. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -13
  113. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +7 -15
  114. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  115. package/dist/Editor/common/Uploader.js +0 -8
  116. package/dist/Editor/common/iconListV2.js +6 -156
  117. package/dist/Editor/common/iconslist.js +0 -24
  118. package/dist/Editor/commonStyle.js +62 -168
  119. package/dist/Editor/helper/index.js +0 -4
  120. package/dist/Editor/helper/theme.js +2 -203
  121. package/dist/Editor/hooks/useMouseMove.js +5 -8
  122. package/dist/Editor/hooks/useTable.js +4 -5
  123. package/dist/Editor/plugins/withEmbeds.js +1 -1
  124. package/dist/Editor/plugins/withHTML.js +1 -3
  125. package/dist/Editor/plugins/withTable.js +1 -1
  126. package/dist/Editor/theme/ThemeList.js +173 -50
  127. package/dist/Editor/utils/SlateUtilityFunctions.js +45 -169
  128. package/dist/Editor/utils/accordion.js +4 -14
  129. package/dist/Editor/utils/button.js +17 -1
  130. package/dist/Editor/utils/customHooks/useTableResize.js +9 -49
  131. package/dist/Editor/utils/draftToSlate.js +2 -3
  132. package/dist/Editor/utils/events.js +6 -50
  133. package/dist/Editor/utils/font.js +37 -40
  134. package/dist/Editor/utils/form.js +4 -4
  135. package/dist/Editor/utils/formfield.js +2 -8
  136. package/dist/Editor/utils/helper.js +19 -109
  137. package/dist/Editor/utils/signature.js +9 -2
  138. package/package.json +4 -4
  139. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -454
  140. package/dist/Editor/Elements/EmbedScript/styles.js +0 -89
  141. package/dist/Editor/Elements/FreeGrid/helper.js +0 -113
  142. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -439
  143. package/dist/Editor/assets/svg/BackIcon.js +0 -18
  144. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  145. package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
  146. package/dist/Editor/assets/svg/ThemeIcons.js +0 -293
  147. package/dist/Editor/common/CustomColorPicker/index.js +0 -130
  148. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  149. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  150. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  151. package/dist/Editor/common/CustomSelect.js +0 -43
  152. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  153. package/dist/Editor/common/SnackBar/index.js +0 -43
  154. package/dist/Editor/helper/textIndeces.js +0 -58
  155. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  156. package/dist/Editor/hooks/useThemeValues.js +0 -63
  157. package/dist/Editor/theme/index.js +0 -149
  158. package/dist/Editor/themeSettings/ActiveTheme.js +0 -82
  159. package/dist/Editor/themeSettings/buttons/index.js +0 -300
  160. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  161. package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
  162. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  163. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  164. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  165. package/dist/Editor/themeSettings/fonts/style.js +0 -62
  166. package/dist/Editor/themeSettings/icons.js +0 -60
  167. package/dist/Editor/themeSettings/index.js +0 -361
  168. package/dist/Editor/themeSettings/style.js +0 -299
  169. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  170. package/dist/Editor/themeSettingsAI/index.js +0 -355
  171. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -202
  172. package/dist/Editor/themeSettingsAI/style.js +0 -332
@@ -4,8 +4,8 @@ import DialogTitle from "@mui/material/DialogTitle";
4
4
  import DialogContent from "@mui/material/DialogContent";
5
5
  import DialogActions from "@mui/material/DialogActions";
6
6
  import IconButton from "@mui/material/IconButton";
7
- import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
8
- import { Box, FormControl, FormControlLabel, Grid, MenuItem, Radio, RadioGroup, Typography, useMediaQuery } from "@mui/material";
7
+ import CloseIcon from "@mui/icons-material/Close";
8
+ import { Box, FormControl, FormControlLabel, Grid, MenuItem, Radio, RadioGroup, Typography } from "@mui/material";
9
9
  import { useState } from "react";
10
10
  import LinkSettingsStyles from "./style";
11
11
  import { getNavOptions } from "./navOptions";
@@ -43,10 +43,10 @@ export default function LinkSettings(props) {
43
43
  allowTrigger
44
44
  } = props;
45
45
  const {
46
+ isMobile,
46
47
  tagName,
47
48
  translation
48
49
  } = customProps;
49
- const isMobile = useMediaQuery('(max-width: 899px)');
50
50
  const navOptions = getNavOptions(customProps.hideTools, tagName, allowTrigger);
51
51
  const classes = LinkSettingsStyles(theme);
52
52
  const [nav, setNav] = useState(getNav(navType, navOptions));
@@ -64,70 +64,66 @@ export default function LinkSettings(props) {
64
64
  });
65
65
  };
66
66
  if (isMobile) {
67
- return /*#__PURE__*/_jsx(SwipeableDrawer, {
67
+ return /*#__PURE__*/_jsxs(SwipeableDrawer, {
68
68
  open: true,
69
69
  onClose: handleClose,
70
- children: /*#__PURE__*/_jsxs(Grid, {
71
- sx: classes.drawerContainer,
72
- children: [/*#__PURE__*/_jsx(Typography, {
73
- variant: "subtitle1",
74
- gutterBottom: true,
75
- sx: {
76
- fontWeight: 600
77
- },
78
- className: "link-settings-title",
79
- children: translation("dialogueTitle")
80
- }), /*#__PURE__*/_jsx(Select, {
81
- size: "small",
82
- fullWidth: true,
83
- value: nav?.value,
84
- onChange: e => {
85
- const {
86
- value
87
- } = e.target;
88
- const selected = getNav(value, navOptions);
89
- setNav(selected);
90
- setNavValue("");
91
- },
92
- displayEmpty: true,
93
- MenuProps: {
94
- sx: classes.customSelect
95
- },
96
- children: navOptions.map((navOption, i) => {
97
- return /*#__PURE__*/_jsx(MenuItem, {
98
- value: navOption.value,
99
- children: /*#__PURE__*/_jsx(Typography, {
100
- variant: "body2",
101
- children: translation(navOption.label)
102
- })
103
- }, i);
104
- })
105
- }), /*#__PURE__*/_jsx(Box, {
106
- sx: {
107
- paddingTop: "14px"
108
- },
109
- children: NavSettings && /*#__PURE__*/_jsx(NavSettings, {
110
- placeholder: translation(nav?.placeholder),
111
- nav: nav,
112
- onChange: onChange,
113
- value: navValue,
114
- openInNewTab: openInNewTab,
115
- onNewTabChange: () => setOpenInNewTab(prev => !prev),
116
- services: customProps.services,
117
- classes: classes,
118
- translation: translation
119
- })
120
- }), /*#__PURE__*/_jsx(Box, {
121
- component: "div",
122
- sx: classes.mobileActionBtns,
123
- children: /*#__PURE__*/_jsx(ActionsButtons, {
124
- classes: classes,
125
- onCancel: handleClose,
126
- onSave: onSubmit,
127
- translation: translation
128
- })
129
- })]
130
- })
70
+ children: [/*#__PURE__*/_jsx(Typography, {
71
+ variant: "subtitle1",
72
+ gutterBottom: true,
73
+ sx: {
74
+ fontWeight: 600
75
+ },
76
+ children: translation("dialogueTitle")
77
+ }), /*#__PURE__*/_jsx(Select, {
78
+ size: "small",
79
+ fullWidth: true,
80
+ value: nav?.value,
81
+ onChange: e => {
82
+ const {
83
+ value
84
+ } = e.target;
85
+ const selected = getNav(value, navOptions);
86
+ setNav(selected);
87
+ setNavValue("");
88
+ },
89
+ displayEmpty: true,
90
+ MenuProps: {
91
+ sx: classes.customSelect
92
+ },
93
+ children: navOptions.map((navOption, i) => {
94
+ return /*#__PURE__*/_jsx(MenuItem, {
95
+ value: navOption.value,
96
+ children: /*#__PURE__*/_jsx(Typography, {
97
+ variant: "body2",
98
+ children: translation(navOption.label)
99
+ })
100
+ }, i);
101
+ })
102
+ }), /*#__PURE__*/_jsx(Box, {
103
+ sx: {
104
+ paddingTop: "14px"
105
+ },
106
+ children: NavSettings && /*#__PURE__*/_jsx(NavSettings, {
107
+ placeholder: translation(nav?.placeholder),
108
+ nav: nav,
109
+ onChange: onChange,
110
+ value: navValue,
111
+ openInNewTab: openInNewTab,
112
+ onNewTabChange: () => setOpenInNewTab(prev => !prev),
113
+ services: customProps.services,
114
+ classes: classes,
115
+ translation: translation
116
+ })
117
+ }), /*#__PURE__*/_jsx(Box, {
118
+ component: "div",
119
+ sx: classes.mobileActionBtns,
120
+ children: /*#__PURE__*/_jsx(ActionsButtons, {
121
+ classes: classes,
122
+ onCancel: handleClose,
123
+ onSave: onSubmit,
124
+ translation: translation
125
+ })
126
+ })]
131
127
  });
132
128
  } else {
133
129
  return /*#__PURE__*/_jsxs(Dialog, {
@@ -136,25 +132,15 @@ export default function LinkSettings(props) {
136
132
  sx: classes.dialogContainer,
137
133
  fullWidth: true,
138
134
  maxWidth: "sm",
139
- children: [/*#__PURE__*/_jsxs(Grid, {
140
- container: true,
141
- direction: "row",
142
- sx: {
143
- justifyContent: "space-between",
144
- alignItems: "center"
145
- },
146
- className: "dialog-title",
147
- children: [/*#__PURE__*/_jsx(DialogTitle, {
148
- children: translation("dialogueTitle")
149
- }), /*#__PURE__*/_jsx(IconButton, {
150
- "aria-label": "close",
151
- onClick: handleClose,
152
- sx: classes.closeIcon,
153
- children: /*#__PURE__*/_jsx(CloseRoundedIcon, {})
154
- })]
135
+ children: [/*#__PURE__*/_jsx(DialogTitle, {
136
+ children: translation("dialogueTitle")
137
+ }), /*#__PURE__*/_jsx(IconButton, {
138
+ "aria-label": "close",
139
+ onClick: handleClose,
140
+ sx: classes.closeIcon,
141
+ children: /*#__PURE__*/_jsx(CloseIcon, {})
155
142
  }), /*#__PURE__*/_jsx(DialogContent, {
156
143
  dividers: true,
157
- className: "link-settings-content",
158
144
  children: /*#__PURE__*/_jsxs(Grid, {
159
145
  container: true,
160
146
  spacing: 2,
@@ -162,9 +148,7 @@ export default function LinkSettings(props) {
162
148
  item: true,
163
149
  xs: 6,
164
150
  sx: classes.gridDivider,
165
- className: "radioBtnGrp",
166
151
  children: /*#__PURE__*/_jsx(FormControl, {
167
- sx: classes.customRadioBtn,
168
152
  children: /*#__PURE__*/_jsx(RadioGroup, {
169
153
  value: nav?.value,
170
154
  children: navOptions?.map((navOption, i) => {
@@ -1,7 +1,7 @@
1
1
  const ButtonNavSettingsStyles = theme => ({
2
2
  dialogContainer: {
3
3
  "& .MuiDialogContent-root": {
4
- padding: "0px 16px"
4
+ padding: "0px 20px"
5
5
  },
6
6
  "& .MuiDialogActions-root": {
7
7
  padding: "10px"
@@ -18,187 +18,62 @@ const ButtonNavSettingsStyles = theme => ({
18
18
  padding: "14px"
19
19
  },
20
20
  "& .MuiPaper-root": {
21
- padding: "10px !important",
22
- borderRadius: "20px !important",
23
- backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
24
- border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
21
+ backgroundColor: theme?.palette?.editor?.background,
25
22
  "& .MuiTypography-root": {
26
23
  color: theme?.palette?.editor?.textColor
27
24
  },
25
+ "& .MuiInputBase-root": {
26
+ border: `1px solid ${theme?.palette?.editor?.textColor}`,
27
+ color: theme?.palette?.editor?.textColor
28
+ },
28
29
  "& .MuiSvgIcon-root": {
29
30
  color: theme?.palette?.editor?.textColor
30
31
  },
31
32
  "& .MuiFormLabel-root": {
32
33
  color: theme?.palette?.editor?.textColor,
33
- backgroundColor: "transparent"
34
- }
35
- },
36
- "& .dialog-title": {
37
- "& .MuiTypography-root": {
38
- fontSize: "18px",
39
- padding: "12px",
40
- fontWeight: 600
41
- }
42
- },
43
- "& .link-settings-content": {
44
- margin: "0px 10px",
45
- borderTop: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
46
- borderBottom: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
47
- overflow: "hidden !important",
48
- "& .MuiInputBase-root, fieldset": {
49
- background: theme?.palette?.editor?.inputFieldBgColor,
50
- borderRadius: "8px",
51
- border: "unset",
52
- "& fieldset": {
53
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
54
- background: "transparent",
55
- borderRadius: "8px"
56
- },
57
- "& input": {
58
- border: `1px solid transparent`,
59
- background: theme?.palette?.editor?.inputFieldBgColor,
60
- borderRadius: "8px",
61
- color: theme?.palette?.editor?.textColor
62
- }
63
- },
64
- "& .radioBtnGrp": {
65
- paddingRight: "0px",
66
- paddingLeft: "0px"
67
- }
68
- },
69
- "& .MuiFormControlLabel-root": {
70
- "& .MuiCheckbox-root": {
71
- "& svg": {
72
- color: `${theme?.palette?.editor?.radioBtnBorder}`
73
- }
74
- }
75
- },
76
- "& .ccheckbox-primary": {
77
- padding: "0px",
78
- "& .MuiCheckbox-root": {
79
- padding: "8px 8px 8px 10px",
80
- "&:hover": {
81
- background: "unset !important"
82
- }
83
- },
84
- "& button": {
85
- width: "18px !important",
86
- height: "18px !important",
87
- borderRadius: "3px",
88
- border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
89
- "& svg": {
90
- width: "14px",
91
- height: "14px"
92
- }
93
- },
94
- "& .checkedIcon": {
95
- background: "#2563EB",
96
- borderColor: "#2563EB",
97
- padding: "0px"
98
- },
99
- "& .unCheckedIcon": {
100
- background: theme?.palette?.editor?.checkedIconBg
101
- },
102
- "& p": {
103
- margin: "0px !important"
104
- }
105
- },
106
- "& .trigger-text": {
107
- fontSize: "14px !important",
108
- fontWeight: 400,
109
- fontFamily: "'Inter',sans-serif",
110
- color: theme?.palette?.editor?.textColor
111
- }
112
- },
113
- customRadioBtn: {
114
- "& .Mui-checked": {
115
- "& span": {
116
- "& .MuiSvgIcon-root": {
117
- color: `#2563EB !important`
118
- }
119
- }
120
- },
121
- "& .MuiRadio-root": {
122
- "& span": {
123
- "& .MuiSvgIcon-root": {
124
- color: `${theme?.palette?.editor?.radioBtnBorder}`
125
- }
34
+ backgroundColor: theme?.palette?.editor?.background
126
35
  }
127
36
  }
128
37
  },
129
38
  customSelect: {
130
39
  zIndex: "1302 !important",
131
40
  "& .MuiPopover-paper": {
132
- background: theme?.palette?.editor?.textWeightPopUpBackground,
133
- color: theme?.palette?.editor?.textColor,
134
- borderRadius: "8px",
135
- marginTop: "2px",
136
- "& li": {
137
- padding: "6px 16px",
138
- margin: "5px !important",
139
- borderRadius: "4px !important"
140
- },
141
- "& .MuiList-root": {
142
- padding: "0px"
143
- },
144
- "& .MuiTypography-root": {
145
- fontSize: "12px !important",
146
- fontWeight: 500,
147
- fontFamily: "'Inter',sans-serif"
148
- },
149
- "& .Mui-selected": {
150
- background: theme?.palette?.editor?.menuOptionSelectedOption,
151
- color: theme?.palette?.editor?.textColor
152
- }
41
+ background: theme?.palette?.editor?.miniToolBarBackground,
42
+ color: theme?.palette?.editor?.textColor
153
43
  }
154
44
  },
155
45
  saveBtn: {
156
- color: "#fff !important",
157
- background: "#2563EB !important",
158
- fontSize: "14px !important",
159
- fontWeight: "700 !important",
160
- padding: "8px 24px !important",
161
- textTransform: "none !important",
162
- borderRadius: "8px !important",
163
- fontFamily: "'Inter',sans-serif !important",
46
+ color: "#fff",
47
+ background: "#2563EB",
48
+ fontSize: "14px",
49
+ fontWeight: 500,
50
+ padding: "4px 24px",
51
+ textTransform: "none",
164
52
  "&:hover": {
165
- color: "#fff !important",
166
- background: "#2563EB !important"
53
+ color: "#fff",
54
+ background: "#2563EB"
167
55
  }
168
56
  },
169
57
  closeBtn: {
170
- backgroundColor: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
171
- color: `${theme?.palette?.editor?.customDialogueCloseBtnColor} !important`,
172
- fontSize: "14px !important",
173
- fontWeight: "700 !important",
174
- padding: "8px 22px !important",
175
- textTransform: "none !important",
176
- border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder} !important`,
177
- borderRadius: "8px !important",
178
- fontFamily: "'Inter',sans-serif !important",
58
+ backgroundColor: "#F4F6F9",
59
+ color: "#64748B",
60
+ fontSize: "14px",
61
+ fontWeight: 500,
62
+ padding: "4px 22px",
63
+ textTransform: "none",
64
+ border: "1px solid #D8DDE1",
179
65
  "&:hover": {
180
- border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder} !important`,
181
- backgroundColor: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
182
- color: `${theme?.palette?.editor?.customDialogueCloseBtnColor} !important`
66
+ border: "1px solid #64748B"
183
67
  }
184
68
  },
185
69
  closeIcon: {
186
- background: theme?.palette?.editor?.closeButtonBackground,
187
- borderRadius: "8px",
188
- padding: "2px",
189
- marginRight: "8px",
190
- "& svg": {
191
- fill: theme?.palette?.editor?.closeButtonSvgStroke
192
- }
70
+ position: "absolute",
71
+ right: 8,
72
+ top: 8,
73
+ color: theme?.palette?.grey[500]
193
74
  },
194
75
  gridDivider: {
195
- borderRight: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
196
- "& .MuiTypography-root": {
197
- color: "#64748B !important",
198
- fontFamily: "'Inter',sans-serif",
199
- fontWeight: 500,
200
- fontSize: "16px"
201
- }
76
+ borderRight: "1px solid rgba(0, 0, 0, 0.12)"
202
77
  },
203
78
  mobileActionBtns: {
204
79
  display: "flex",
@@ -207,96 +82,6 @@ const ButtonNavSettingsStyles = theme => ({
207
82
  paddingTop: "14px",
208
83
  marginTop: "14px",
209
84
  borderTop: `1px solid ${theme?.palette?.grey[300]}`
210
- },
211
- customAutoComplete: {
212
- "& .MuiAutocomplete-listbox": {
213
- padding: "0px",
214
- "& li": {
215
- margin: "5px",
216
- borderRadius: "8px",
217
- color: theme?.palette?.editor?.menuOptionTextColor,
218
- fontSize: "14px",
219
- padding: "8px 12px",
220
- '&[aria-selected="true"]': {
221
- backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
222
- }
223
- },
224
- "& .Mui-selected": {
225
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
226
- }
227
- },
228
- "& .MuiPaper-root": {
229
- borderRadius: "8px",
230
- background: theme?.palette?.editor?.textWeightPopUpBackground
231
- }
232
- },
233
- drawerContainer: {
234
- "& .link-settings-title": {
235
- fontSize: "18px",
236
- padding: "12px 0px",
237
- fontWeight: 600,
238
- color: theme?.palette?.editor?.textColor
239
- },
240
- "& .MuiInputBase-root, fieldset": {
241
- background: theme?.palette?.editor?.inputFieldBgColor,
242
- borderRadius: "8px",
243
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
244
- "& fieldset": {
245
- // border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
246
- background: "transparent",
247
- borderRadius: "8px"
248
- },
249
- "& input": {
250
- border: `1px solid transparent`,
251
- background: theme?.palette?.editor?.inputFieldBgColor,
252
- borderRadius: "8px",
253
- color: theme?.palette?.editor?.textColor
254
- }
255
- },
256
- "& .MuiFormLabel-root": {
257
- color: theme?.palette?.editor?.textColor,
258
- backgroundColor: "transparent !important"
259
- },
260
- "& .MuiTypography-root": {
261
- color: theme?.palette?.editor?.textColor
262
- },
263
- "& .MuiFormControlLabel-root": {
264
- "& .MuiCheckbox-root": {
265
- "& svg": {
266
- color: `${theme?.palette?.editor?.radioBtnBorder}`
267
- }
268
- }
269
- },
270
- "& .ccheckbox-primary": {
271
- padding: "0px",
272
- "& .MuiCheckbox-root": {
273
- padding: "8px 8px 8px 10px",
274
- "&:hover": {
275
- background: "unset !important"
276
- }
277
- },
278
- "& button": {
279
- width: "18px !important",
280
- height: "18px !important",
281
- borderRadius: "3px",
282
- border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
283
- "& svg": {
284
- width: "14px",
285
- height: "14px"
286
- }
287
- },
288
- "& .checkedIcon": {
289
- background: "#2563EB",
290
- borderColor: "#2563EB",
291
- padding: "0px"
292
- },
293
- "& .unCheckedIcon": {
294
- background: theme?.palette?.editor?.checkedIconBg
295
- },
296
- "& p": {
297
- margin: "0px !important"
298
- }
299
- }
300
85
  }
301
86
  });
302
87
  export default ButtonNavSettingsStyles;
@@ -1,18 +1,19 @@
1
1
  import { Button, IconButton } from "@mui/material";
2
- import CloseRoundedIcon from '@mui/icons-material/CloseRounded';
2
+ import CloseIcon from "@mui/icons-material/Close";
3
3
  import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
4
+ import SettingsIcon from "@mui/icons-material/Settings";
5
+ import EditIcon from "@mui/icons-material/Edit";
4
6
  import DragIndicatorIcon from "@mui/icons-material/DragIndicator";
5
7
  import MoreVertIcon from "@mui/icons-material/MoreVert";
6
- import AddRoundedIcon from '@mui/icons-material/AddRounded';
7
- import ArrowUpwardRoundedIcon from '@mui/icons-material/ArrowUpwardRounded';
8
- import ArrowDownwardRoundedIcon from '@mui/icons-material/ArrowDownwardRounded';
8
+ import AddIcon from "@mui/icons-material/Add";
9
+ import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
10
+ import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
9
11
  import SaveIcon from "@mui/icons-material/Save";
10
12
  import LinkIcon from "./Icons/LinkIcon";
13
+ import CodeIcon from "@mui/icons-material/Code";
11
14
  import FilterFramesIcon from "@mui/icons-material/FilterFrames";
12
15
  import { GridAddSectionIcon, SignatureIcon, WorkflowIcon } from "../../iconslist";
13
16
  import Delete from "@mui/icons-material/Delete";
14
- import SettingsIcon from "../../../assets/svg/SettingsIcon";
15
- import { CodeElementIcon, PenIcon, SaveTemplIcon } from "../../iconListV2";
16
17
  const Actions = {
17
18
  ai: {
18
19
  type: "ai",
@@ -29,7 +30,7 @@ const Actions = {
29
30
  addElementInSection: {
30
31
  type: "addElement",
31
32
  Button: IconButton,
32
- Icon: AddRoundedIcon,
33
+ Icon: AddIcon,
33
34
  title: "Add Element"
34
35
  },
35
36
  settings: {
@@ -73,25 +74,25 @@ const Actions = {
73
74
  edit: {
74
75
  type: 2,
75
76
  Button: IconButton,
76
- Icon: PenIcon,
77
+ Icon: EditIcon,
77
78
  title: "Edit"
78
79
  },
79
80
  close: {
80
81
  type: 3,
81
82
  Button: IconButton,
82
- Icon: CloseRoundedIcon,
83
+ Icon: CloseIcon,
83
84
  title: "close"
84
85
  },
85
86
  moveUp: {
86
87
  type: "moveUp",
87
88
  Button: IconButton,
88
- Icon: ArrowUpwardRoundedIcon,
89
+ Icon: ArrowUpwardIcon,
89
90
  title: "Move Up"
90
91
  },
91
92
  moveDown: {
92
93
  type: "moveDown",
93
94
  Button: IconButton,
94
- Icon: ArrowDownwardRoundedIcon,
95
+ Icon: ArrowDownwardIcon,
95
96
  title: "Move Down"
96
97
  },
97
98
  addFormField: {
@@ -109,13 +110,13 @@ const Actions = {
109
110
  embedScript: {
110
111
  type: "addEmbedScript",
111
112
  Button: IconButton,
112
- Icon: CodeElementIcon,
113
+ Icon: CodeIcon,
113
114
  title: "Embed Code"
114
115
  },
115
116
  saveAsTemplate: {
116
117
  type: "saveAsTemplate",
117
118
  Button: IconButton,
118
- Icon: SaveTemplIcon,
119
+ Icon: SaveIcon,
119
120
  title: "Save As Template"
120
121
  },
121
122
  imageFrame: {
@@ -8,7 +8,6 @@ const LinkIcon = () => {
8
8
  height: "18",
9
9
  viewBox: "0 0 18 18",
10
10
  fill: "none",
11
- className: "settingsIcon",
12
11
  children: [/*#__PURE__*/_jsx("path", {
13
12
  d: "M10.1582 7.84185C9.54389 7.22778 8.71084 6.88281 7.84222 6.88281C6.97361 6.88281 6.14055 7.22778 5.52622 7.84185L3.20947 10.1578C2.59513 10.7722 2.25 11.6054 2.25 12.4742C2.25 13.343 2.59513 14.1763 3.20947 14.7906C3.82381 15.4049 4.65704 15.7501 5.52585 15.7501C6.39466 15.7501 7.22788 15.4049 7.84222 14.7906L9.00022 13.6326",
14
13
  stroke: "#000000",
@@ -65,7 +65,7 @@ const ElementOptions = props => {
65
65
  arrow: true,
66
66
  children: /*#__PURE__*/_jsx(Button, {
67
67
  onClick: handleOptionClick(type),
68
- className: `${enable === type || selectedAction === type || Actions[action]?.type === menu?.type ? "active" : ""} elementOption`,
68
+ className: enable === type || selectedAction === type ? "active" : "",
69
69
  children: Icon ? /*#__PURE__*/_jsx(Icon, {}) : title
70
70
  })
71
71
  }, `actions_fgele_${type}_${index}`) : null;
@@ -83,7 +83,7 @@ const ElementOptions = props => {
83
83
  contentEditable: false,
84
84
  disablePortal: false,
85
85
  children: /*#__PURE__*/_jsx(Paper, {
86
- className: "papper-root popUpOptions",
86
+ className: "papper-root",
87
87
  children: actions.map(renderAction)
88
88
  })
89
89
  }), open && MenuComp ? /*#__PURE__*/_jsx(OptionsPopup, {
@@ -38,7 +38,7 @@ const useElementOptionsStyle = ({
38
38
  color: "#2563EB",
39
39
  background: theme?.palette?.editor?.background,
40
40
  border: "1px solid #2563EB",
41
- boxShadow: theme?.palette?.type === "light" && "1px 1px 3px #2563EB",
41
+ boxShadow: "1px 1px 3px #2563EB",
42
42
  "& .strokePath": {
43
43
  stroke: "#2563EB"
44
44
  }
@@ -48,33 +48,6 @@ const useElementOptionsStyle = ({
48
48
  fill: theme?.palette?.editor?.textColor
49
49
  }
50
50
  }
51
- },
52
- "& .popUpOptions": {
53
- "& .elementOption": {
54
- background: theme?.palette?.editor?.signatureFontBtnBg,
55
- border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
56
- height: "28px",
57
- width: "28px",
58
- "& svg": {
59
- color: theme?.palette?.editor?.closeButtonSvgStroke,
60
- width: "20px",
61
- height: "20px"
62
- },
63
- "& .addIconCircle path, & .settingsIcon path, & .commonSvgStyle path": {
64
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
65
- }
66
- },
67
- "& .active": {
68
- border: "1px solid #2563EB",
69
- "& svg": {
70
- color: "#2563EB"
71
- },
72
- "& .settingsIcon": {
73
- "& path": {
74
- stroke: "#2563EB"
75
- }
76
- }
77
- }
78
51
  }
79
52
  }
80
53
  });