@flozy/editor 5.3.3 → 5.3.4

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 (43) hide show
  1. package/dist/Editor/Editor.css +22 -7
  2. package/dist/Editor/Elements/Accordion/Accordion.js +8 -1
  3. package/dist/Editor/Elements/Button/EditorButton.js +2 -1
  4. package/dist/Editor/Elements/Divider/Divider.js +24 -9
  5. package/dist/Editor/Elements/Embed/Image.js +31 -12
  6. package/dist/Editor/Elements/Embed/Video.js +13 -2
  7. package/dist/Editor/Elements/Grid/GridItem.js +2 -0
  8. package/dist/Editor/Elements/Grid/Styles.js +44 -0
  9. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -0
  10. package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
  11. package/dist/Editor/Styles/EditorStyles.js +3 -1
  12. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +17 -1
  13. package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -3
  14. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +200 -72
  15. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +10 -8
  16. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  17. package/dist/Editor/common/ColorPickerButton.js +5 -3
  18. package/dist/Editor/common/DnD/Draggable.js +2 -1
  19. package/dist/Editor/common/ImageSelector/Options/Upload.js +2 -1
  20. package/dist/Editor/common/ImageSelector/Styles.js +47 -6
  21. package/dist/Editor/common/ImageSelector/UploadStyles.js +18 -6
  22. package/dist/Editor/common/MentionsPopup/Styles.js +108 -118
  23. package/dist/Editor/common/Section/index.js +3 -3
  24. package/dist/Editor/common/Section/styles.js +5 -1
  25. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +4 -3
  26. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +27 -3
  27. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -2
  28. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +2 -1
  29. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  30. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -0
  31. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
  32. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +22 -6
  33. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +21 -2
  34. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +7 -0
  35. package/dist/Editor/common/StyleBuilder/index.js +5 -4
  36. package/dist/Editor/common/ToolbarIcon.js +2 -1
  37. package/dist/Editor/common/Uploader.js +42 -40
  38. package/dist/Editor/common/iconListV2.js +295 -77
  39. package/dist/Editor/commonStyle.js +281 -4
  40. package/dist/Editor/plugins/withCustomDeleteBackward.js +33 -2
  41. package/dist/Editor/plugins/withLayout.js +0 -41
  42. package/dist/Editor/utils/helper.js +6 -1
  43. package/package.json +2 -2
@@ -58,11 +58,32 @@ const ImageSelectorStyles = theme => ({
58
58
  borderRadius: "12px",
59
59
  backgroundColor: theme?.palette?.editor?.background
60
60
  },
61
+ "& .MuiDialogTitle-root": {
62
+ fontSize: "16px",
63
+ fontWeight: "700",
64
+ "& button": {
65
+ "& svg": {
66
+ "& rect": {
67
+ fill: theme?.palette?.editor?.closeButtonBgColor
68
+ },
69
+ "& path": {
70
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "& .MuiDivider-root": {
76
+ background: theme?.palette?.editor?.deviderBgColor,
77
+ "@media only screen and (min-width: 899px)": {
78
+ margin: "0px 24px",
79
+ width: 'calc(100% - 48px)'
80
+ }
81
+ },
61
82
  "& .primaryBtn": {
62
83
  background: "#2563eb !important",
63
84
  boxShadow: "0px 8px 24px rgba(30, 64, 175, 0.08)",
64
85
  borderRadius: "8px !important",
65
- height: "28px !important",
86
+ height: "32px !important",
66
87
  fontWeight: "600 !important",
67
88
  fontSize: "12px !important",
68
89
  color: "#ffffff !important",
@@ -71,23 +92,43 @@ const ImageSelectorStyles = theme => ({
71
92
  marginLeft: "0px !important"
72
93
  },
73
94
  "& .secondaryBtn": {
74
- background: "#ffffff !important",
95
+ background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
75
96
  boxShadow: "0px 8px 24px rgba(30, 64, 175, 0.08)",
76
97
  borderRadius: "8px !important",
77
- height: "28px !important",
98
+ height: "32px !important",
78
99
  fontWeight: "600 !important",
79
100
  fontSize: "12px !important",
80
- color: "#2563eb !important",
81
- border: "1px solid #2563eb !important",
101
+ color: `${theme?.palette?.editor?.deletePopUpButtonTextColor} !important`,
102
+ border: `1px solid ${theme?.palette?.editor?.closeButtonBorder} !important`,
82
103
  width: "auto !important",
83
104
  marginRight: "8px !important"
105
+ },
106
+ "& .MuiGrid-root": {
107
+ "&::-webkit-scrollbar-thumb": {
108
+ background: `none !important`
109
+ },
110
+ "&::-webkit-scrollbar-track": {
111
+ visibility: "hidden"
112
+ },
113
+ "&::-webkit-scrollbar-thumb": {
114
+ background: `${theme?.palette?.editor?.brainPopupScroll} !important`
115
+ },
116
+ "&::-webkit-scrollbar-track": {
117
+ visibility: "hidden"
118
+ }
119
+ },
120
+ "& .MuiImageList-root": {
121
+ margin: '0px'
122
+ },
123
+ "& .MuiDialogContent-root": {
124
+ padding: '20px 24px 5px 24px'
84
125
  }
85
126
  },
86
127
  titleTypo: {
87
128
  fontSize: "16px",
88
129
  fontWeight: 500,
89
130
  color: theme?.palette?.editor?.textColor,
90
- fontFamily: 'Inter, sans-serif'
131
+ fontFamily: "Inter, sans-serif"
91
132
  },
92
133
  addLinkField: {
93
134
  "& .MuiOutlinedInput-input": {
@@ -1,26 +1,38 @@
1
1
  const UploadStyles = theme => ({
2
2
  uploadContainer: {
3
- border: "1px solid #2563EB",
3
+ border: `1px solid ${theme?.palette?.editor?.uploadFileBorder}`,
4
4
  padding: "10px",
5
- borderRadius: "7px",
6
- boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.16)"
5
+ borderRadius: "11px",
6
+ boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.16)",
7
+ background: theme?.palette?.editor?.uploadFileBg,
8
+ height: '100%',
9
+ minHeight: '150px'
7
10
  },
8
11
  uploadField: {
9
12
  width: "100%",
10
13
  backgroundSize: "100% auto",
11
14
  backgroundRepeat: "no-repeat",
12
15
  backgroundPosition: "center",
13
- height: "250px",
16
+ height: "auto",
14
17
  position: "relative",
15
- backgroundColor: theme?.palette?.editor?.background,
18
+ backgroundColor: theme?.palette?.editor?.uploadFileInnerBg,
16
19
  borderRadius: "9px",
17
- border: "1px dashed #2563EB"
20
+ border: "1px dashed #2563EB",
21
+ minHeight: '150px'
18
22
  },
19
23
  uploadIcon: {
24
+ display: "grid !important",
20
25
  "& svg": {
26
+ display: 'flex',
27
+ width: '100%',
21
28
  "& path": {
22
29
  stroke: "#2563EB"
23
30
  }
31
+ },
32
+ '& span': {
33
+ display: 'flex',
34
+ width: '100%',
35
+ marginTop: '5px'
24
36
  }
25
37
  }
26
38
  });
@@ -6,7 +6,7 @@ const usePopupStyles = theme => ({
6
6
  // padding: "0px",
7
7
  boxShadow: "0px 4px 10px 0px #00000029",
8
8
  overflow: "hidden",
9
- padding: "8px 0px !important",
9
+ // padding: "8px 0px !important",
10
10
  background: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
11
11
  "& .MuiPaper-root": {
12
12
  background: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
@@ -22,129 +22,14 @@ const usePopupStyles = theme => ({
22
22
  "& button": {
23
23
  padding: "0px 0px 0px 4px !important",
24
24
  "& svg": {
25
- width: "18px !important",
26
- margin: "5px 12px 6px 6px !important"
25
+ width: "21px !important",
26
+ margin: "5px 12px 6px 4px !important"
27
27
  },
28
28
  "&:hover": {
29
29
  borderRadius: "10px",
30
30
  background: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`
31
31
  }
32
32
  },
33
- "& .active": {
34
- border: "unset !important",
35
- "& .MuiPaper-root": {
36
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
37
- borderRadius: "7px",
38
- "& .MuiBox-root": {
39
- "& .MuiCardContent-root": {
40
- "& .MuiTypography-root": {
41
- color: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
42
- }
43
- }
44
- }
45
- },
46
- "& button": {
47
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
48
- borderRadius: "7px",
49
- "& svg": {
50
- "& path": {
51
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
52
- }
53
- },
54
- "& span": {
55
- "& .MuiTypography-root": {
56
- color: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
57
- }
58
- },
59
- "& .BrainIcon": {
60
- "& .bainIconPathStroke": {
61
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
62
- stroke: "unset !important"
63
- },
64
- "& .bainIconPathStroke2": {
65
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
66
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
67
- }
68
- }
69
- },
70
- "& .MuiCardMedia-root": {
71
- "& .signatureElementIcon": {
72
- "& path": {
73
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
74
- }
75
- },
76
- "& .commonSvgStyle": {
77
- "& path": {
78
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
79
- }
80
- },
81
- "& .calederIconSvg": {
82
- "& path": {
83
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
84
- },
85
- "& rect": {
86
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
87
- }
88
- },
89
- "& .colorBoxElementIcon": {
90
- "& path": {
91
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
92
- fill: "none"
93
- }
94
- },
95
- "& .gridElementIcon": {
96
- "& path": {
97
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
98
- }
99
- },
100
- "& .newLineElementIcon": {
101
- "& path": {
102
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
103
- }
104
- },
105
- "& .blockQuoteSvg": {
106
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
107
- },
108
- "& .orderedListIcon": {
109
- "& path": {
110
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
111
- },
112
- "& text": {
113
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
114
- }
115
- },
116
- "& .bulletedListTextIcon": {
117
- "& path": {
118
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
119
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
120
- },
121
- "& circle": {
122
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
123
- }
124
- },
125
- "& .checkedListTextIcon": {
126
- "& path": {
127
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
128
- }
129
- },
130
- "& .accordianListTextIcon": {
131
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
132
- "& svg": {
133
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
134
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
135
- },
136
- "& path": {
137
- fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
138
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
139
- }
140
- },
141
- "& .accordianIconSvgTextFormat": {
142
- "& path": {
143
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
144
- }
145
- }
146
- }
147
- },
148
33
  "&:hover": {
149
34
  "& .MuiPaper-root": {
150
35
  background: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`,
@@ -168,6 +53,111 @@ const usePopupStyles = theme => ({
168
53
  },
169
54
  "& button": {
170
55
  color: theme?.palette?.editor?.textColor
56
+ },
57
+ "@media only screen and (min-width: 899px)": {
58
+ maxHeight: "400px"
59
+ },
60
+ "& .orderedListIcon, .bulletedListTextIcon, .checkedListTextIcon, .accordianIconSvgTextFormat": {
61
+ width: "20px !important"
62
+ },
63
+ "&::-webkit-scrollbar-thumb": {
64
+ background: `none !important`
65
+ },
66
+ "&::-webkit-scrollbar-track": {
67
+ visibility: "hidden"
68
+ },
69
+ "&::-webkit-scrollbar-thumb": {
70
+ background: `${theme?.palette?.editor?.brainPopupScroll} !important`
71
+ },
72
+ "&::-webkit-scrollbar-track": {
73
+ visibility: "hidden"
74
+ },
75
+ "& svg": {
76
+ width: "20px",
77
+ height: "20px"
78
+ },
79
+ "& .signatureElementIcon": {
80
+ "& path": {
81
+ fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
82
+ }
83
+ },
84
+ "& .commonSvgStyle": {
85
+ "& path": {
86
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
87
+ }
88
+ },
89
+ "& .commonSvgStyle2": {
90
+ "& path": {
91
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
92
+ }
93
+ },
94
+ "& .colorBoxElementIcon": {
95
+ "& path": {
96
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
97
+ fill: "none"
98
+ }
99
+ },
100
+ "& .gridElementIcon": {
101
+ "& path": {
102
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
103
+ }
104
+ },
105
+ "& .newLineElementIcon": {
106
+ "& path": {
107
+ fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
108
+ }
109
+ },
110
+ "& .orderedListIcon": {
111
+ "& .strokePathList": {
112
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
113
+ },
114
+ "& .fillPathList": {
115
+ fill: theme?.palette?.editor?.closeButtonSvgStroke
116
+ }
117
+ },
118
+ "& .bulletedListTextIcon": {
119
+ "& path": {
120
+ fill: theme?.palette?.editor?.closeButtonSvgStroke,
121
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
122
+ },
123
+ "& circle": {
124
+ fill: theme?.palette?.editor?.closeButtonSvgStroke
125
+ }
126
+ },
127
+ "& .checkedListTextIcon": {
128
+ "& path": {
129
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
130
+ }
131
+ },
132
+ "& .accordianIconSvgTextFormat": {
133
+ "& path": {
134
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
135
+ }
136
+ },
137
+ "& .blockQuoteSvg": {
138
+ fill: theme?.palette?.editor?.closeButtonSvgStroke,
139
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
140
+ },
141
+ "& .BrainIcon": {
142
+ "& .bainIconPathStroke": {
143
+ fill: theme?.palette?.editor?.closeButtonSvgStroke,
144
+ stroke: "unset !important"
145
+ },
146
+ "& .bainIconPathStroke2": {
147
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke,
148
+ fill: theme?.palette?.editor?.closeButtonSvgStroke
149
+ }
150
+ },
151
+ "& .calederIconSvg": {
152
+ '& rect': {
153
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
154
+ },
155
+ '& .strokePath': {
156
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
157
+ },
158
+ '& .fillPath': {
159
+ fill: theme?.palette?.editor?.closeButtonSvgStroke
160
+ }
171
161
  }
172
162
  },
173
163
  groupHeader: {
@@ -3,13 +3,13 @@ import { useTheme } from "@mui/material";
3
3
  import { Transforms } from "slate";
4
4
  import { ReactEditor, useSlateStatic } from "slate-react";
5
5
  import { Box, IconButton, Popper, Tooltip } from "@mui/material";
6
- import TuneIcon from "@mui/icons-material/Tune";
7
6
  import SectionPopup from "../../Elements/Grid/SectionPopup";
8
7
  import { getBreakPointsValue, getTRBLBreakPoints, groupByBreakpoint } from "../../helper/theme";
9
8
  import DragHandle from "../DnD/DragHandleButton";
10
9
  import { useEditorSelection } from "../../hooks/useMouseMove";
11
10
  import SectionStyle from "./styles";
12
11
  import useWindowResize from "../../hooks/useWindowResize";
12
+ import { SectionSettingIcon } from "../iconListV2";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
15
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -72,13 +72,13 @@ const Section = props => {
72
72
  height: "100%"
73
73
  } : {
74
74
  left: "-28px",
75
- top: "3px"
75
+ top: "1px"
76
76
  },
77
77
  children: /*#__PURE__*/_jsx(Tooltip, {
78
78
  title: "Section Settings",
79
79
  children: /*#__PURE__*/_jsx(IconButton, {
80
80
  onClick: onSettings,
81
- children: /*#__PURE__*/_jsx(TuneIcon, {})
81
+ children: /*#__PURE__*/_jsx(SectionSettingIcon, {})
82
82
  })
83
83
  })
84
84
  }) : null;
@@ -2,8 +2,12 @@ const SectionStyle = (themeReact, theme) => ({
2
2
  root: {
3
3
  "&:hover": {
4
4
  "& .dh-para": {
5
- opacity: 1
5
+ opacity: 1,
6
+ background: 'transparent',
7
+ width: '30px'
8
+ // top: '2px'
6
9
  },
10
+
7
11
  "& .sectionIcon": {
8
12
  opacity: 1
9
13
  },
@@ -60,9 +60,10 @@ const BackgroundImage = props => {
60
60
  item: true,
61
61
  xs: 12,
62
62
  style: {
63
- backgroundImage: base64 ? `url(${base64})` : "none",
64
- height: "200px"
63
+ backgroundImage: base64 ? `url(${base64})` : "none"
64
+ // height: "200px",
65
65
  },
66
+
66
67
  sx: classes.uploadField,
67
68
  children: /*#__PURE__*/_jsx(Grid, {
68
69
  className: "uploadImageSection",
@@ -91,7 +92,7 @@ const BackgroundImage = props => {
91
92
  style: {
92
93
  paddingLeft: "8px"
93
94
  },
94
- children: "upload your image"
95
+ children: "Upload a image"
95
96
  })]
96
97
  })
97
98
  })
@@ -1,8 +1,9 @@
1
1
  import React, { useState } from "react";
2
- import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box } from "@mui/material";
2
+ import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box, IconButton } from "@mui/material";
3
3
  import { squreStyle } from "./radiusStyle";
4
4
  import { getBreakPointsValue } from "../../../helper/theme";
5
5
  import useWindowResize from "../../../hooks/useWindowResize";
6
+ import { CheckedBoxCheckIcon } from "../../iconListV2";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
9
  const BANNER_SPACING_KEYS = ["top", "left", "right", "bottom"];
@@ -81,7 +82,18 @@ const BannerSpacing = props => {
81
82
  onChange: handleChange
82
83
  }), /*#__PURE__*/_jsx(Box, {
83
84
  component: "input",
84
- sx: classes.sapcingInput,
85
+ sx: {
86
+ ...classes.sapcingInput,
87
+ "::-webkit-outer-spin-button": {
88
+ WebkitAppearance: "none",
89
+ margin: 0
90
+ },
91
+ "::-webkit-inner-spin-button": {
92
+ WebkitAppearance: "none",
93
+ margin: 0
94
+ },
95
+ MozAppearance: "textfield"
96
+ },
85
97
  name: "top",
86
98
  value: !lockSpacing ? "" : pro_value?.top,
87
99
  className: "sliderInput",
@@ -92,10 +104,22 @@ const BannerSpacing = props => {
92
104
  })]
93
105
  }), /*#__PURE__*/_jsx(FormControlLabel, {
94
106
  className: "ccheckbox-primary",
107
+ sx: {
108
+ ...classes.customCheckBox
109
+ },
95
110
  control: /*#__PURE__*/_jsx(Checkbox, {
96
111
  value: !lockSpacing,
97
112
  checked: !lockSpacing,
98
- onChange: onLockSpacing
113
+ onChange: onLockSpacing,
114
+ variant: "outlined",
115
+ className: "checkBox",
116
+ checkedIcon: /*#__PURE__*/_jsx(IconButton, {
117
+ className: "checkedIcon",
118
+ children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
119
+ }),
120
+ icon: /*#__PURE__*/_jsx(IconButton, {
121
+ className: "unCheckedIcon"
122
+ })
99
123
  }),
100
124
  label: /*#__PURE__*/_jsx(Typography, {
101
125
  variant: "body1",
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
- import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box } from "@mui/material";
2
+ import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box, IconButton } from "@mui/material";
3
3
  import { radiusStyle } from "./radiusStyle";
4
4
  import useWindowResize from "../../../hooks/useWindowResize";
5
5
  import { getBreakPointsValue, getCustomizationValue } from "../../../helper/theme";
6
+ import { CheckedBoxCheckIcon } from "../../iconListV2";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
9
  const BORDER_RADIUS_KEYS = ["topLeft", "topRight", "bottomLeft", "bottomRight"];
@@ -90,10 +91,22 @@ const BorderRadius = props => {
90
91
  })]
91
92
  }), /*#__PURE__*/_jsx(FormControlLabel, {
92
93
  className: "ccheckbox-primary",
94
+ sx: {
95
+ ...classes.customCheckBox
96
+ },
93
97
  control: /*#__PURE__*/_jsx(Checkbox, {
94
98
  value: !lockRadius,
95
99
  checked: !lockRadius,
96
- onChange: onLockRadius
100
+ onChange: onLockRadius,
101
+ variant: "outlined",
102
+ className: "checkBox",
103
+ checkedIcon: /*#__PURE__*/_jsx(IconButton, {
104
+ className: "checkedIcon",
105
+ children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
106
+ }),
107
+ icon: /*#__PURE__*/_jsx(IconButton, {
108
+ className: "unCheckedIcon"
109
+ })
97
110
  }),
98
111
  label: /*#__PURE__*/_jsx(Typography, {
99
112
  variant: "body1",
@@ -16,6 +16,7 @@ const Color = props => {
16
16
  hideGradient
17
17
  } = data;
18
18
  const [recentColors, setRecentColors] = useState({});
19
+ const getLable = label === 'Text' ? 'Select text color' : label === 'Background' ? 'Select background color' : label;
19
20
  useEffect(() => {
20
21
  const storedColors = JSON.parse(localStorage.getItem("recentColors"));
21
22
  if (storedColors) {
@@ -73,7 +74,7 @@ const Color = props => {
73
74
  }), /*#__PURE__*/_jsx(TextField, {
74
75
  fullWidth: true,
75
76
  value: value,
76
- placeholder: `${label} color code`,
77
+ placeholder: getLable || `${label} color code`,
77
78
  InputLabelProps: {
78
79
  shrink: true
79
80
  },
@@ -73,7 +73,7 @@ const FontSize = props => {
73
73
  size: "small",
74
74
  inputProps: {
75
75
  style: {
76
- textAlign: "center",
76
+ // textAlign: "center",
77
77
  padding: "11px"
78
78
  }
79
79
  },
@@ -91,12 +91,14 @@ const Icons = props => {
91
91
  overflowY: "auto",
92
92
  paddingTop: "5px"
93
93
  },
94
+ className: "muiIconsListParent",
94
95
  children: list.map(m => {
95
96
  return /*#__PURE__*/_jsx(Tooltip, {
96
97
  title: m,
97
98
  arrow: true,
98
99
  children: /*#__PURE__*/_jsx(IconButton, {
99
100
  onClick: onSelectIcon(m),
101
+ className: "muiIconsList",
100
102
  children: /*#__PURE__*/_jsx(MUIIcon, {
101
103
  iconName: m,
102
104
  props: customProps
@@ -53,7 +53,7 @@ export const radiusStyle = {
53
53
  export const squreStyle = {
54
54
  topLeft: {
55
55
  position: "absolute",
56
- left: "-35px",
56
+ left: "-37px",
57
57
  top: "50%",
58
58
  transform: "translateY(-50%)",
59
59
  width: "30px",
@@ -71,7 +71,7 @@ export const squreStyle = {
71
71
  // top: "-28px",
72
72
  left: "50%",
73
73
  transform: "translateX(-50%)",
74
- top: "-35px",
74
+ top: "-37px",
75
75
  width: "30px",
76
76
  height: "30px",
77
77
  // borderTop: `2px solid #2563eb`,
@@ -85,7 +85,7 @@ export const squreStyle = {
85
85
  // left: "-25px",
86
86
  top: "50%",
87
87
  transform: "translateY(-50%)",
88
- right: "-35px",
88
+ right: "-37px",
89
89
  width: "30px",
90
90
  height: "30px",
91
91
  // borderBottom: `2px solid #2563eb`,
@@ -96,7 +96,7 @@ export const squreStyle = {
96
96
  },
97
97
  bottomRight: {
98
98
  position: "absolute",
99
- bottom: "-35px",
99
+ bottom: "-37px",
100
100
  // right: "-25px",
101
101
  left: "50%",
102
102
  transform: "translateX(-50%)",