@flozy/editor 4.8.9 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -351,7 +351,7 @@ blockquote {
351
351
  height: 100%;
352
352
  width: 100%;
353
353
  border: 1px solid #2563EB;
354
- border-radius: 12px;
354
+ border-radius: 7px;
355
355
  }
356
356
 
357
357
  .activeBrush svg {
@@ -383,7 +383,7 @@ blockquote {
383
383
 
384
384
  .dialog-actions-si .MuiButtonBase-root {
385
385
  opacity: 1;
386
- padding: 6px 5px 0px 3px !important
386
+ padding: 0px 5px 0px 2px !important
387
387
  }
388
388
 
389
389
  .signature-tab {
@@ -846,7 +846,7 @@ blockquote {
846
846
 
847
847
  .dialogComp .MuiInputBase-input {
848
848
  border-radius: 8px;
849
- box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.05);
849
+ /* box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.05); */
850
850
  font-size: 12px;
851
851
  font-weight: 500;
852
852
  }
@@ -82,7 +82,7 @@ export const AllColors = props => {
82
82
  children: /*#__PURE__*/_jsx(Box, {
83
83
  className: "buttonsWrpr",
84
84
  style: {
85
- padding: "8px"
85
+ padding: "5px"
86
86
  },
87
87
  children: all.map((m, i) => {
88
88
  return /*#__PURE__*/_jsx(SingleColorButton, {
@@ -14,8 +14,12 @@ const ColorPickerStyles = theme => ({
14
14
  },
15
15
  colorPopper: {
16
16
  marginTop: "20px",
17
+ borderRadius: "7px !important",
17
18
  "& .MuiPaper-root": {
18
- backgroundColor: theme?.palette?.editor?.background,
19
+ backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
20
+ border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder} !important`,
21
+ borderRadius: "7px !important",
22
+ padding: "0px 5px",
19
23
  '@media only screen and (max-width: 600px)': {
20
24
  marginTop: "-40px"
21
25
  }
@@ -4,6 +4,7 @@ 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";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
10
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -46,7 +47,7 @@ const GridButton = props => {
46
47
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
47
48
  title: "Column",
48
49
  onClick: onButtonClick,
49
- icon: /*#__PURE__*/_jsx(GridIcon, {}),
50
+ icon: /*#__PURE__*/_jsx(GridElement, {}),
50
51
  icoBtnType: icoBtnType
51
52
  }), /*#__PURE__*/_jsxs(Dialog, {
52
53
  open: open,
@@ -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 ClearIcon from "@mui/icons-material/Clear";
4
+ import ClearRoundedIcon from '@mui/icons-material/ClearRounded';
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(ClearIcon, {})
76
+ children: /*#__PURE__*/_jsx(ClearRoundedIcon, {})
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 CloseIcon from "@mui/icons-material/Close";
3
+ import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
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: "560px"
161
+ maxWidth: "530px"
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(CloseIcon, {})
203
+ children: /*#__PURE__*/_jsx(CloseRoundedIcon, {})
204
204
  })
205
205
  })]
206
206
  })
@@ -316,25 +316,7 @@ const SignaturePopup = props => {
316
316
  defaultValue: defaultName || "",
317
317
  size: "small",
318
318
  onChange: onChange,
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
- }
319
+ sx: classes.signaturePopUpNameField
338
320
  })
339
321
  })]
340
322
  }), /*#__PURE__*/_jsxs(Grid, {
@@ -459,25 +441,7 @@ const SignaturePopup = props => {
459
441
  placeholder: "Enter Email",
460
442
  size: "small",
461
443
  onChange: onChange,
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
- },
444
+ sx: classes.signaturePopUpNameField,
481
445
  defaultValue: defaultEmail || ""
482
446
  })
483
447
  })]
@@ -530,13 +494,13 @@ const SignaturePopup = props => {
530
494
  className: brush.size === m ? "activeBrush" : "",
531
495
  children: /*#__PURE__*/_jsx("span", {
532
496
  style: {
533
- width: 20 + m,
534
- height: 20 + m
497
+ width: 17 + m,
498
+ height: 17 + m
535
499
  },
536
500
  children: /*#__PURE__*/_jsx(PencilIcon, {
537
501
  style: {
538
- width: 20 + m,
539
- height: 20 + m
502
+ width: 17 + m,
503
+ height: 17 + m
540
504
  }
541
505
  })
542
506
  })
@@ -547,7 +511,7 @@ const SignaturePopup = props => {
547
511
  }) : null, /*#__PURE__*/_jsxs(_Fragment, {
548
512
  children: [!readOnly ? /*#__PURE__*/_jsx(Button, {
549
513
  onClick: handleClear,
550
- className: "secondaryBtn actionBtn deleteBtn",
514
+ className: `secondaryBtn actionBtn deleteBtn deleteButtonSignature`,
551
515
  children: "Delete"
552
516
  }) : null, /*#__PURE__*/_jsx(Button, {
553
517
  onClick: handleSave,
@@ -2,6 +2,8 @@ import React from "react";
2
2
  import Icon from "../../common/Icon";
3
3
  import Button from "../../common/Button";
4
4
  import { toggleBlock, isBlockActive, isMarkActive, toggleMark } from "../../utils/SlateUtilityFunctions.js";
5
+ import usePopupStyle from "../PopupTool/PopupToolStyle";
6
+ import { useEditorContext } from "../../hooks/useMouseMove";
5
7
  import { jsx as _jsx } from "react/jsx-runtime";
6
8
  const MARK_TYPES = ["doublequote"];
7
9
  const BlockButton = props => {
@@ -12,6 +14,10 @@ const BlockButton = props => {
12
14
  } = props;
13
15
  const isMark = MARK_TYPES?.indexOf(format) >= 0;
14
16
  const isActive = isMark ? isMarkActive(editor, format) : isBlockActive(editor, format);
17
+ const {
18
+ theme
19
+ } = useEditorContext();
20
+ const classes = usePopupStyle(theme);
15
21
  return /*#__PURE__*/_jsx(Button, {
16
22
  active: isActive,
17
23
  format: format,
@@ -24,6 +30,7 @@ const BlockButton = props => {
24
30
  }
25
31
  },
26
32
  title: title,
33
+ sx: classes.textAlignButtons,
27
34
  children: /*#__PURE__*/_jsx(Icon, {
28
35
  icon: format
29
36
  })
@@ -23,23 +23,17 @@ const Dropdown = ({
23
23
  value: value,
24
24
  className: "editor-dd",
25
25
  onChange: e => changeMarkData(e, format),
26
- style: {
27
- fontFamily: fontFamilyMap[value],
28
- width: width || "100%",
29
- height: "36px",
30
- borderRadius: "10px",
31
- fontSize: "12px"
32
- },
33
26
  MenuProps: {
34
27
  PaperProps: {
35
28
  sx: classes?.textOptions
36
29
  }
37
30
  },
38
- children: options.map((item, index) => /*#__PURE__*/_jsx(MenuItem, {
39
- style: {
40
- fontFamily: item.text
41
- },
31
+ sx: classes.textFormatSelect,
32
+ children: options.map((item, index) => /*#__PURE__*/_jsx(MenuItem
33
+ // style={{ fontFamily: item.text }}
34
+ , {
42
35
  value: item.value,
36
+ sx: classes.textFormatSelectOptions,
43
37
  children: item.text
44
38
  }, index))
45
39
  });
@@ -1,6 +1,8 @@
1
1
  import React from "react";
2
2
  import { Autocomplete, TextField } from "@mui/material";
3
3
  import { activeMark, addMarkData } from "../../utils/SlateUtilityFunctions.js";
4
+ import usePopupStyle from "../PopupTool/PopupToolStyle.js";
5
+ import { useEditorContext } from "../../hooks/useMouseMove.js";
4
6
  import { jsx as _jsx } from "react/jsx-runtime";
5
7
  const FontFamilyAutocomplete = ({
6
8
  editor,
@@ -27,17 +29,19 @@ const FontFamilyAutocomplete = ({
27
29
  });
28
30
  }
29
31
  };
32
+ const {
33
+ theme
34
+ } = useEditorContext();
35
+ const classes = usePopupStyle(theme);
30
36
  return /*#__PURE__*/_jsx(Autocomplete, {
31
37
  size: "small",
32
38
  style: {
33
39
  fontFamily: `${value || ""}`,
34
- width: width || "100%",
35
- height: "36px",
36
- borderRadius: "10px",
37
- fontSize: "14px"
40
+ width: width || "100%"
38
41
  },
39
42
  value: value || options?.[0],
40
43
  className: "editor-dd",
44
+ sx: classes.autoCompleteaFontFamily,
41
45
  onChange: (e, newValue) => changeMarkData(e, newValue, format),
42
46
  getOptionLabel: option => {
43
47
  return option;
@@ -93,8 +93,6 @@ const TextSize = ({
93
93
  inputProps: {
94
94
  style: {
95
95
  width: fullWidth ? "100%" : "30px",
96
- // textAlign: "center",
97
- height: "19px",
98
96
  fontSize: "12px"
99
97
  }
100
98
  },
@@ -19,9 +19,9 @@ const POPUP_TYPES = {
19
19
  addTemplate: AddTemplates
20
20
  };
21
21
  const POPUP_OFFSETS = {
22
- textFormat: [80, 5],
23
- addElement: [60, 5],
24
- addTemplate: [20, 5]
22
+ textFormat: [75, 5],
23
+ addElement: [40, 5],
24
+ addTemplate: [10, 5]
25
25
  };
26
26
  const FULLSCREEN_POPUP = {
27
27
  addTemplate: true
@@ -180,9 +180,6 @@ const MiniToolbar = props => {
180
180
  }],
181
181
  children: PopupComponent ? /*#__PURE__*/_jsxs(Paper, {
182
182
  className: "papper-wrpr",
183
- style: {
184
- borderRadius: "10px"
185
- },
186
183
  children: [/*#__PURE__*/_jsx(PopperHeader, {
187
184
  title: POPUP_TITLE[popper],
188
185
  classes: popupStyles,
@@ -39,7 +39,10 @@ const miniToolbarStyles = theme => ({
39
39
  },
40
40
  "&.active": {
41
41
  "& svg": {
42
- stroke: theme?.palette?.editor?.activeColor
42
+ stroke: theme?.palette?.editor?.activeColor,
43
+ "& path": {
44
+ stroke: theme?.palette?.editor?.activeColor
45
+ }
43
46
  }
44
47
  },
45
48
  "&.activeUndo": {
@@ -4,6 +4,7 @@ import CloseIcon from "@mui/icons-material/Close";
4
4
  import OpenInFullIcon from "@mui/icons-material/OpenInFull";
5
5
  import CloseFullscreenIcon from "@mui/icons-material/CloseFullscreen";
6
6
  import Icon from "../../common/Icon";
7
+ import { ToggleFullScreenIcon } from "../../common/iconListV2";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
10
  const SearchBox = props => {
@@ -39,18 +40,14 @@ const PopperHeader = props => {
39
40
  padding: 2,
40
41
  className: "headerContainer",
41
42
  style: {
42
- paddingTop: "2px"
43
+ paddingTop: "5px"
43
44
  },
44
45
  children: /*#__PURE__*/_jsxs(Grid, {
45
46
  item: true,
46
47
  xs: 12,
47
- style: {
48
- display: "flex",
49
- borderBottom: "1px solid #DCE4EC"
50
- },
51
48
  justifyContent: "space-between",
52
49
  alignItems: "center",
53
- className: "textSettingHeader",
50
+ sx: classes.textSettingHeader,
54
51
  children: [/*#__PURE__*/_jsx(Typography, {
55
52
  color: "primary",
56
53
  sx: {
@@ -83,11 +80,11 @@ const PopperHeader = props => {
83
80
  children: /*#__PURE__*/_jsx(IconButton, {
84
81
  style: {
85
82
  marginRight: "8px",
86
- marginLeft: "8px"
83
+ marginLeft: "4px"
87
84
  },
88
- className: "close-popupbtn",
85
+ className: "close-popupbtn toogleFullScreenBtn",
89
86
  onClick: toggleFullscreen,
90
- children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(OpenInFullIcon, {})
87
+ children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(ToggleFullScreenIcon, {})
91
88
  })
92
89
  }) : null, /*#__PURE__*/_jsx(Tooltip, {
93
90
  title: "Close",