@flozy/editor 5.4.7 → 5.4.8

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.
@@ -123,7 +123,7 @@ export default function Select(props) {
123
123
  label: option?.label || option?.value,
124
124
  ...tagProps,
125
125
  sx: {
126
- background: option?.color || "#F6F6F6",
126
+ background: option?.color || appTheme?.palette?.editor?.tv_border1,
127
127
  border: "none",
128
128
  '& .MuiChip-label': {
129
129
  paddingLeft: '12px !important'
@@ -25,16 +25,23 @@ const SimpleSelect = props => {
25
25
  size: "small",
26
26
  sx: {
27
27
  color: appTheme?.palette?.editor?.tv_text,
28
- fontSize: '14px',
29
- marginTop: '4px',
30
- padding: '3px 0px',
28
+ fontSize: '14px !important',
29
+ marginTop: '4px !important',
30
+ padding: '3px 0px !important',
31
+ background: 'transparent !important',
32
+ '& .MuiOutlinedInput-root': {
33
+ height: '34px !important',
34
+ background: 'transparent !important'
35
+ },
31
36
  '& .MuiOutlinedInput-notchedOutline': {
32
- border: `1px solid ${appTheme?.palette?.editor?.inputFieldBorder}`,
33
- boxShadow: '0px 4px 18px 0px #0000000D'
37
+ border: `1px solid ${appTheme?.palette?.editor?.inputFieldBorder} !important`,
38
+ boxShadow: '0px 4px 18px 0px #0000000D !important',
39
+ background: 'transparent !important'
34
40
  },
35
41
  "&:hover .MuiOutlinedInput-notchedOutline": {
36
- border: `1px solid ${appTheme?.palette?.editor?.inputFieldBorder}`,
37
- boxShadow: '0px 4px 18px 0px #0000000D'
42
+ border: `1px solid ${appTheme?.palette?.editor?.inputFieldBorder} !important`,
43
+ boxShadow: '0px 4px 18px 0px #0000000D !important',
44
+ background: 'transparent !important'
38
45
  }
39
46
  },
40
47
  MenuProps: {
@@ -55,6 +55,13 @@ const FilterSort = props => {
55
55
  className: "tv-act-ico bg br1",
56
56
  size: "small",
57
57
  onClick: onClose,
58
+ sx: {
59
+ '& svg': {
60
+ '& path': {
61
+ strokeWidth: 0
62
+ }
63
+ }
64
+ },
58
65
  children: /*#__PURE__*/_jsx(CloseIcon, {})
59
66
  })]
60
67
  }), renderMode()]
@@ -87,6 +87,7 @@ const useFilterSortStyles = (theme, appTheme) => ({
87
87
  color: appTheme?.palette?.editor?.tv_text_primary,
88
88
  // background: appTheme?.palette?.editor?.tv_input_bg,
89
89
  borderRadius: "8px",
90
+ maxHeight: '34px !important',
90
91
  "& svg": {
91
92
  color: appTheme?.palette?.editor?.tv_text_primary
92
93
  }
@@ -98,11 +99,15 @@ const useFilterSortStyles = (theme, appTheme) => ({
98
99
  padding: '13px 16px 16px 20px',
99
100
  "& .tv-opt-list": {
100
101
  minWidth: "230px",
102
+ '& .bgic': {
103
+ background: appTheme?.palette?.editor?.tv_ico_bg,
104
+ padding: '2px',
105
+ borderRadius: '4px'
106
+ },
101
107
  '& .MuiListItemIcon-root': {
102
108
  '& svg': {
103
- background: appTheme?.palette?.editor?.tv_ico_bg,
104
- padding: '6px',
105
- borderRadius: '4px',
109
+ width: '14px',
110
+ height: '14px',
106
111
  '& path': {
107
112
  stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
108
113
  }
@@ -2,7 +2,6 @@ import React, { useState } from "react";
2
2
  import { Box, IconButton, InputBase, Menu, MenuItem } from "@mui/material";
3
3
  import { useDataView } from "../Providers/DataViewProvider";
4
4
  import FilterSort from "./FilterSort";
5
- import DeleteIcon from "@mui/icons-material/Delete";
6
5
  import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
7
6
  import Icon from "../../../common/Icon";
8
7
  import { useEditorContext } from "../../../hooks/useMouseMove";
@@ -4,7 +4,7 @@ import { colors } from "../../../Color Picker/defaultColors";
4
4
  import Icon from "../../../../common/Icon";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
- const DEFAULT_COLORS = colors?.filter(f => !f.includes("linear"));
7
+ const DEFAULT_COLORS = colors?.filter(f => !(f.includes("linear") || f === "#000000"));
8
8
  const AddOptions = props => {
9
9
  const {
10
10
  edit,
@@ -59,7 +59,7 @@ const AddOptions = props => {
59
59
  setError("");
60
60
  };
61
61
  return edit?.type === "select" || edit?.type === "multi-select" ? /*#__PURE__*/_jsxs(Box, {
62
- className: "fe-tv-addopt st sb mb-0",
62
+ className: "fe-tv-addopt sb mb-0",
63
63
  children: [/*#__PURE__*/_jsx(List, {
64
64
  className: "fe-dv-opt-list pl-0",
65
65
  children: /*#__PURE__*/_jsxs(ListItemButton, {
@@ -21,6 +21,13 @@ const AddProperty = props => {
21
21
  className: "tv-act-ico bg br1",
22
22
  size: "small",
23
23
  onClick: onClose,
24
+ sx: {
25
+ '& svg': {
26
+ '& path': {
27
+ strokeWidth: 0
28
+ }
29
+ }
30
+ },
24
31
  children: /*#__PURE__*/_jsx(CloseIcon, {})
25
32
  })]
26
33
  }), /*#__PURE__*/_jsx(Box, {
@@ -1,9 +1,7 @@
1
1
  import React from "react";
2
- import { Box, IconButton, List, ListItemButton, ListItemText, ListItemIcon } from "@mui/material";
2
+ import { Box, IconButton, List, ListItemButton, ListItemText, ListItemIcon, Divider } from "@mui/material";
3
3
  import CloseIcon from "@mui/icons-material/Close";
4
- import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";
5
- import AddIcon from "@mui/icons-material/Add";
6
- import { TYPE_LABELS, PROPERTY_TYPES } from "./Constants";
4
+ import { PROPERTY_TYPES, TYPE_ICONS } from "./Constants";
7
5
  import { useDataView } from "../../Providers/DataViewProvider";
8
6
  import Icon from "../../../../common/Icon";
9
7
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -46,6 +44,13 @@ const AllProperties = props => {
46
44
  className: "tv-act-ico bg br1",
47
45
  size: "small",
48
46
  onClick: onClose,
47
+ sx: {
48
+ '& svg': {
49
+ '& path': {
50
+ strokeWidth: 0
51
+ }
52
+ }
53
+ },
49
54
  children: /*#__PURE__*/_jsx(CloseIcon, {})
50
55
  })]
51
56
  }), /*#__PURE__*/_jsx(Box, {
@@ -78,7 +83,9 @@ const AllProperties = props => {
78
83
  sx: {
79
84
  justifyContent: "end"
80
85
  },
81
- children: /*#__PURE__*/_jsx(KeyboardArrowRightIcon, {})
86
+ children: /*#__PURE__*/_jsx(Icon, {
87
+ icon: 'rightArrow'
88
+ })
82
89
  })]
83
90
  }, i);
84
91
  })
@@ -91,23 +98,42 @@ const AllProperties = props => {
91
98
  children: hiddenProperties?.map((m, i) => {
92
99
  return /*#__PURE__*/_jsxs(ListItemButton, {
93
100
  onClick: onEditProperty(m),
94
- children: [/*#__PURE__*/_jsx(ListItemText, {
101
+ children: [/*#__PURE__*/_jsx(ListItemIcon, {
102
+ className: "needBg",
103
+ sx: {
104
+ alignItems: "center",
105
+ '& svg': {
106
+ width: '14px !important',
107
+ height: '14px !important'
108
+ }
109
+ },
110
+ children: /*#__PURE__*/_jsx(Icon, {
111
+ icon: TYPE_ICONS[m?.type]
112
+ })
113
+ }), /*#__PURE__*/_jsx(ListItemText, {
95
114
  children: m?.label
96
- }), /*#__PURE__*/_jsxs(ListItemIcon, {
115
+ }), /*#__PURE__*/_jsx(ListItemIcon, {
97
116
  sx: {
98
- alignItems: "center"
117
+ alignItems: "center",
118
+ justifyContent: 'flex-end'
99
119
  },
100
- children: [TYPE_LABELS[m?.type], /*#__PURE__*/_jsx(KeyboardArrowRightIcon, {})]
120
+ children: /*#__PURE__*/_jsx(Icon, {
121
+ icon: 'rightArrow'
122
+ })
101
123
  })]
102
124
  }, i);
103
125
  })
104
126
  })]
105
- }) : null, /*#__PURE__*/_jsx(List, {
127
+ }) : null, /*#__PURE__*/_jsx(Divider, {
128
+ className: "divider_sty"
129
+ }), /*#__PURE__*/_jsx(List, {
106
130
  className: "fe-dv-opt-list",
107
131
  children: /*#__PURE__*/_jsxs(ListItemButton, {
108
132
  onClick: onAdd,
109
133
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
110
- children: /*#__PURE__*/_jsx(AddIcon, {})
134
+ children: /*#__PURE__*/_jsx(Icon, {
135
+ icon: 'plusIcon'
136
+ })
111
137
  }), /*#__PURE__*/_jsx(ListItemText, {
112
138
  children: "Add New Property"
113
139
  })]
@@ -34,6 +34,16 @@ const ChangeProperty = props => {
34
34
  className: "tv-act-ico",
35
35
  size: "small",
36
36
  onClick: onBack,
37
+ sx: {
38
+ paddingLeft: '0px',
39
+ '&:hover': {
40
+ background: 'transparent !important'
41
+ },
42
+ '& svg': {
43
+ width: '14px !important',
44
+ height: '14px !important'
45
+ }
46
+ },
37
47
  children: /*#__PURE__*/_jsx(Icon, {
38
48
  icon: 'leftArrow'
39
49
  })
@@ -42,6 +52,13 @@ const ChangeProperty = props => {
42
52
  className: "tv-act-ico bg br1",
43
53
  size: "small",
44
54
  onClick: onClose,
55
+ sx: {
56
+ '& svg': {
57
+ '& path': {
58
+ strokeWidth: 0
59
+ }
60
+ }
61
+ },
45
62
  children: /*#__PURE__*/_jsx(CloseIcon, {})
46
63
  })]
47
64
  }), /*#__PURE__*/_jsx(Box, {
@@ -24,8 +24,26 @@ const ColumnsList = props => {
24
24
  className: selected?.type === m?.type ? "active" : "",
25
25
  onClick: onSelect(m),
26
26
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
27
- children: /*#__PURE__*/_jsx(Icon, {
28
- icon: iconType
27
+ sx: {
28
+ background: 'none'
29
+ },
30
+ children: /*#__PURE__*/_jsx(Box, {
31
+ className: "bgic",
32
+ sx: {
33
+ marginRight: '5px',
34
+ borderRadius: '4px',
35
+ display: 'flex',
36
+ alignItems: 'center',
37
+ padding: '2px',
38
+ '& svg': {
39
+ width: '16px',
40
+ height: '16px',
41
+ padding: '0px !important'
42
+ }
43
+ },
44
+ children: /*#__PURE__*/_jsx(Icon, {
45
+ icon: iconType
46
+ })
29
47
  })
30
48
  }), /*#__PURE__*/_jsx(ListItemText, {
31
49
  primary: m?.label
@@ -108,8 +108,15 @@ const EditOption = props => {
108
108
  })
109
109
  }), "Edit Option"]
110
110
  }), /*#__PURE__*/_jsx(IconButton, {
111
- className: "tv-act-ico bg",
111
+ className: "tv-act-ico bg br1",
112
112
  size: "small",
113
+ sx: {
114
+ '& svg': {
115
+ '& path': {
116
+ strokeWidth: 0
117
+ }
118
+ }
119
+ },
113
120
  onClick: onClose,
114
121
  children: /*#__PURE__*/_jsx(CloseIcon, {})
115
122
  })]
@@ -1,11 +1,10 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
- import { Box, IconButton, TextField, List, ListItemButton, ListItemText, ListItemIcon, FormControlLabel } from "@mui/material";
3
- import CloseIcon from "@mui/icons-material/Close";
4
- import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
2
+ import { Box, IconButton, TextField, List, ListItemButton, ListItemText, ListItemIcon, FormControlLabel, Divider } from "@mui/material";
5
3
  import { TYPE_ICONS, TYPE_LABELS } from "./Constants";
6
4
  import AddOptions from "./AddOptions";
7
5
  import FilterProperty from "./FilterProperty";
8
6
  import Icon from "../../../../common/Icon";
7
+ import CloseIcon from "@mui/icons-material/Close";
9
8
  import { jsx as _jsx } from "react/jsx-runtime";
10
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const EditProperty = props => {
@@ -108,12 +107,31 @@ const EditProperty = props => {
108
107
  className: "tv-act-ico",
109
108
  size: "small",
110
109
  onClick: onBack,
111
- children: /*#__PURE__*/_jsx(ArrowBackIosIcon, {})
110
+ sx: {
111
+ paddingLeft: '0px',
112
+ '&:hover': {
113
+ background: 'transparent !important'
114
+ },
115
+ '& svg': {
116
+ width: '14px !important',
117
+ height: '14px !important'
118
+ }
119
+ },
120
+ children: /*#__PURE__*/_jsx(Icon, {
121
+ icon: 'leftArrow'
122
+ })
112
123
  }), "Edit Property"]
113
124
  }), /*#__PURE__*/_jsx(IconButton, {
114
125
  className: "tv-act-ico bg br1",
115
126
  size: "small",
116
127
  onClick: onClose,
128
+ sx: {
129
+ '& svg': {
130
+ '& path': {
131
+ strokeWidth: 0
132
+ }
133
+ }
134
+ },
117
135
  children: /*#__PURE__*/_jsx(CloseIcon, {})
118
136
  })]
119
137
  }), /*#__PURE__*/_jsxs(Box, {
@@ -136,6 +154,9 @@ const EditProperty = props => {
136
154
  }), /*#__PURE__*/_jsx(List, {
137
155
  className: "fe-dv-opt-list st",
138
156
  children: /*#__PURE__*/_jsxs(ListItemButton, {
157
+ sx: {
158
+ paddingBottom: '12px'
159
+ },
139
160
  onClick: onChangeProperty,
140
161
  children: [/*#__PURE__*/_jsx(ListItemText, {
141
162
  children: "Type"
@@ -168,6 +189,8 @@ const EditProperty = props => {
168
189
  })]
169
190
  })]
170
191
  })
192
+ }), /*#__PURE__*/_jsx(Divider, {
193
+ className: "divider_sty"
171
194
  }), /*#__PURE__*/_jsx(AddOptions, {
172
195
  edit: edit,
173
196
  onUpdate: onUpdate,
@@ -68,7 +68,7 @@ const useOptionsStyles = (theme, appTheme) => ({
68
68
  },
69
69
  color: `${appTheme?.palette?.editor?.tv_text} !important`,
70
70
  "& svg": {
71
- width: "16px",
71
+ // width: "16px",
72
72
  '& path': {
73
73
  stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
74
74
  }
@@ -154,6 +154,9 @@ const useOptionsStyles = (theme, appTheme) => ({
154
154
  addProperty: {
155
155
  padding: "12px",
156
156
  width: "253px",
157
+ "& .divider_sty": {
158
+ borderBottom: `1px solid ${appTheme?.palette?.editor?.tv_border}`
159
+ },
157
160
  "& .fe-dv-ap-title": {
158
161
  display: "flex",
159
162
  fontWeight: "600",
@@ -57,11 +57,11 @@ const useTableStyles = (theme, appTheme) => ({
57
57
  }
58
58
  },
59
59
  "&:hover": {
60
- color: "rgba(37, 99, 235, 1)",
60
+ color: appTheme?.palette?.editor?.tv_hover_text,
61
61
  "& svg": {
62
- color: "rgba(37, 99, 235, 1)",
62
+ color: appTheme?.palette?.editor?.tv_hover_text,
63
63
  '& path': {
64
- stroke: "rgba(37, 99, 235, 1)"
64
+ stroke: appTheme?.palette?.editor?.tv_hover_text
65
65
  }
66
66
  }
67
67
  }
@@ -939,7 +939,7 @@ const usePopupStyle = theme => ({
939
939
  },
940
940
  colorPopper: {
941
941
  "& .MuiPaper-root": {
942
- backgroundColor: theme?.palette?.editor?.background,
942
+ backgroundColor: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
943
943
  borderRadius: "7px !important",
944
944
  "@media only screen and (max-width: 600px)": {
945
945
  marginTop: "-40px"
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { jsxs as _jsxs } from "react/jsx-runtime";
3
3
  const PlusIcon = () => {
4
4
  return /*#__PURE__*/_jsxs("svg", {
5
- width: "18",
6
- height: "18",
5
+ width: "22",
6
+ height: "22",
7
7
  viewBox: "0 0 18 18",
8
8
  fill: "none",
9
9
  xmlns: "http://www.w3.org/2000/svg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "5.4.7",
3
+ "version": "5.4.8",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"