@flozy/editor 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CollaborativeEditor.js +5 -3
- package/dist/Editor/CommonEditor.js +17 -3
- package/dist/Editor/Editor.css +132 -16
- package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -2
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -2
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -2
- package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -2
- package/dist/Editor/Elements/ChipText/ChipTextButton.js +5 -1
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +26 -6
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +58 -44
- package/dist/Editor/Elements/DrawerMenu/DrawerMenu.js +6 -1
- package/dist/Editor/Elements/DrawerMenu/DrawerMenuButton.js +2 -2
- package/dist/Editor/Elements/Embed/Embed.js +72 -34
- package/dist/Editor/Elements/Grid/GridButton.js +2 -2
- package/dist/Editor/Elements/Link/LinkButton.js +87 -38
- package/dist/Editor/Elements/NewLine/NewLineButton.js +7 -1
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +2 -2
- package/dist/Editor/Elements/Signature/Signature.css +75 -0
- package/dist/Editor/Elements/Signature/SignatureButton.js +2 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +20 -3
- package/dist/Editor/Elements/Signature/SignaturePopup.js +203 -150
- package/dist/Editor/Elements/Table/TableSelector.js +112 -41
- package/dist/Editor/Toolbar/Toolbar.js +1 -1
- package/dist/Editor/Toolbar/styles.css +8 -2
- package/dist/Editor/common/ColorPickerButton.js +6 -2
- package/dist/Editor/common/EditorIcons.js +81 -0
- package/dist/Editor/common/Icon.js +40 -20
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +38 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +27 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +38 -20
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +14 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +8 -4
- package/dist/Editor/common/StyleBuilder/index.js +68 -28
- package/dist/Editor/common/Uploader.js +29 -23
- package/dist/Editor/common/iconslist.js +883 -0
- package/package.json +1 -1
@@ -1,6 +1,7 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Tabs, Tab, Grid } from "@mui/material";
|
2
|
+
import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Tabs, Tab, Grid, IconButton, Typography } from "@mui/material";
|
3
3
|
import FieldMap from "./fieldTypes";
|
4
|
+
import CloseIcon from "@mui/icons-material/Close";
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
7
|
const StyleContent = props => {
|
@@ -51,6 +52,7 @@ const StyleTabs = props => {
|
|
51
52
|
variant: "scrollable",
|
52
53
|
scrollButtons: "auto",
|
53
54
|
"aria-label": "scrollable auto tabs example",
|
55
|
+
className: "editorTabs",
|
54
56
|
children: renderTabs.map((m, i) => {
|
55
57
|
return /*#__PURE__*/_jsx(Tab, {
|
56
58
|
value: m.value,
|
@@ -83,36 +85,74 @@ const StyleBuilder = props => {
|
|
83
85
|
const handleSave = () => {
|
84
86
|
onSave(elementProps);
|
85
87
|
};
|
86
|
-
return /*#__PURE__*/
|
88
|
+
return /*#__PURE__*/_jsx(Dialog, {
|
87
89
|
open: true,
|
88
90
|
fullWidth: true,
|
89
|
-
children:
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
91
|
+
children: /*#__PURE__*/_jsxs(Grid, {
|
92
|
+
item: true,
|
93
|
+
xs: 12,
|
94
|
+
sx: {
|
95
|
+
p: 3
|
96
|
+
},
|
97
|
+
children: [/*#__PURE__*/_jsx(DialogTitle, {
|
98
|
+
sx: {
|
99
|
+
p: 0,
|
100
|
+
pb: 2
|
101
|
+
},
|
102
|
+
children: /*#__PURE__*/_jsxs(Grid, {
|
103
|
+
container: true,
|
104
|
+
justifyContent: "space-between",
|
105
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
106
|
+
variant: "h6",
|
107
|
+
className: "popupTitle",
|
108
|
+
children: title
|
109
|
+
}), /*#__PURE__*/_jsx(Grid, {
|
110
|
+
style: {
|
111
|
+
display: "flex"
|
112
|
+
},
|
113
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
114
|
+
onClick: onClose,
|
115
|
+
className: "close-popupbtn",
|
116
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
117
|
+
})
|
118
|
+
})]
|
119
|
+
})
|
120
|
+
}), /*#__PURE__*/_jsxs(DialogContent, {
|
121
|
+
sx: {
|
122
|
+
p: 0
|
123
|
+
},
|
124
|
+
children: [/*#__PURE__*/_jsx(StyleTabs, {
|
125
|
+
renderTabs: renderTabs,
|
126
|
+
value: tab,
|
127
|
+
handleChange: handleChange
|
128
|
+
}), /*#__PURE__*/_jsx(StyleContent, {
|
129
|
+
renderTabs: renderTabs,
|
130
|
+
value: tab,
|
131
|
+
element: elementProps,
|
132
|
+
onChange: onElementPropsChange,
|
133
|
+
customProps: customProps
|
134
|
+
})]
|
135
|
+
}), /*#__PURE__*/_jsxs(DialogActions, {
|
136
|
+
sx: {
|
137
|
+
p: 0,
|
138
|
+
pt: 2
|
139
|
+
},
|
140
|
+
children: [onDelete ? /*#__PURE__*/_jsx(Button, {
|
141
|
+
onClick: onDelete,
|
142
|
+
color: "error",
|
143
|
+
className: "deleteBtn",
|
144
|
+
children: "Delete"
|
145
|
+
}) : null, /*#__PURE__*/_jsx(Button, {
|
146
|
+
onClick: onClose,
|
147
|
+
className: "secondaryBtn",
|
148
|
+
children: "Cancel"
|
149
|
+
}), /*#__PURE__*/_jsx(Button, {
|
150
|
+
onClick: handleSave,
|
151
|
+
className: "primaryBtn",
|
152
|
+
children: "Save"
|
153
|
+
})]
|
114
154
|
})]
|
115
|
-
})
|
155
|
+
})
|
116
156
|
});
|
117
157
|
};
|
118
158
|
export default StyleBuilder;
|
@@ -43,32 +43,38 @@ const Uploader = props => {
|
|
43
43
|
};
|
44
44
|
return /*#__PURE__*/_jsxs(Grid, {
|
45
45
|
container: true,
|
46
|
-
|
47
|
-
|
46
|
+
sx: {
|
47
|
+
pt: 3
|
48
|
+
},
|
49
|
+
children: [/*#__PURE__*/_jsx(Grid, {
|
48
50
|
item: true,
|
49
51
|
xs: 12,
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
children: ["Upload file", /*#__PURE__*/_jsx("input", {
|
60
|
-
type: "file",
|
61
|
-
style: {
|
62
|
-
opacity: 0
|
52
|
+
children: /*#__PURE__*/_jsxs(Grid, {
|
53
|
+
container: true,
|
54
|
+
justifyContent: "space-between",
|
55
|
+
children: [/*#__PURE__*/_jsxs(Button, {
|
56
|
+
component: "label",
|
57
|
+
sx: {
|
58
|
+
display: 'inline-flex',
|
59
|
+
width: '154px',
|
60
|
+
whiteSpace: 'nowrap'
|
63
61
|
},
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
62
|
+
variant: "contained",
|
63
|
+
startIcon: /*#__PURE__*/_jsx(CloudUploadIcon, {}),
|
64
|
+
children: ["Upload file", /*#__PURE__*/_jsx("input", {
|
65
|
+
type: "file",
|
66
|
+
style: {
|
67
|
+
opacity: 0
|
68
|
+
},
|
69
|
+
onChange: handleChange
|
70
|
+
})]
|
71
|
+
}), base64 ? /*#__PURE__*/_jsx(Button, {
|
72
|
+
variant: "contained",
|
73
|
+
color: "secondary",
|
74
|
+
onClick: onRemoveBG,
|
75
|
+
children: "Clear"
|
76
|
+
}) : '']
|
77
|
+
})
|
72
78
|
}), uploading ? "Uploading..." : "", /*#__PURE__*/_jsx(Grid, {
|
73
79
|
item: true,
|
74
80
|
xs: 12,
|