@flozy/editor 5.4.5 → 5.4.7

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 (48) hide show
  1. package/dist/Editor/Elements/AI/PopoverAIInput.js +3 -3
  2. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +22 -6
  3. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +24 -6
  4. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +16 -1
  5. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +2 -1
  6. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +17 -5
  7. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +38 -11
  8. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +55 -15
  9. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +7 -7
  10. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +11 -2
  11. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +4 -2
  12. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +5 -2
  13. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +21 -21
  14. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -4
  15. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +49 -21
  16. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +4 -2
  17. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +4 -2
  18. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +51 -16
  19. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +22 -3
  20. package/dist/Editor/Elements/DataView/Layouts/TableView.js +39 -13
  21. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +5 -0
  22. package/dist/Editor/Elements/DataView/styles.js +20 -5
  23. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -2
  24. package/dist/Editor/Toolbar/Mini/Styles.js +5 -0
  25. package/dist/Editor/assets/svg/ArrowDownIcon.js +25 -0
  26. package/dist/Editor/assets/svg/ArrowUpIcon.js +25 -0
  27. package/dist/Editor/assets/svg/CalenderIconTick.js +64 -0
  28. package/dist/Editor/assets/svg/ChervDown.js +18 -0
  29. package/dist/Editor/assets/svg/ChervUp.js +18 -0
  30. package/dist/Editor/assets/svg/DataTableIcon.js +50 -0
  31. package/dist/Editor/assets/svg/DuplicateIcon.js +23 -0
  32. package/dist/Editor/assets/svg/EyeIcon.js +23 -0
  33. package/dist/Editor/assets/svg/EyeSlash.js +43 -0
  34. package/dist/Editor/assets/svg/HashtagIcon.js +33 -0
  35. package/dist/Editor/assets/svg/PlusIcon.js +23 -0
  36. package/dist/Editor/assets/svg/SelectRoundedIcon.js +24 -0
  37. package/dist/Editor/assets/svg/SortByIcon.js +33 -0
  38. package/dist/Editor/assets/svg/TickOutlined.js +23 -0
  39. package/dist/Editor/assets/svg/TrashCanIcon.js +38 -0
  40. package/dist/Editor/common/Icon.js +34 -4
  41. package/dist/Editor/common/RnD/index.js +2 -2
  42. package/dist/Editor/common/Shorthands/elements.js +1 -1
  43. package/dist/Editor/common/iconListV2.js +47 -79
  44. package/dist/Editor/common/iconslist.js +2 -2
  45. package/dist/Editor/helper/deserialize/index.js +27 -1
  46. package/dist/Editor/hooks/useBreakpoints.js +1 -1
  47. package/dist/Editor/plugins/withHTML.js +38 -11
  48. package/package.json +1 -1
@@ -1,12 +1,3 @@
1
- import NotesIcon from "@mui/icons-material/Notes";
2
- import TagIcon from "@mui/icons-material/Tag";
3
- import ArrowDropDownCircleIcon from "@mui/icons-material/ArrowDropDownCircle";
4
- import ChecklistIcon from "@mui/icons-material/Checklist";
5
- import InsertInvitationIcon from "@mui/icons-material/InsertInvitation";
6
- import PersonIcon from "@mui/icons-material/Person";
7
- import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
8
- import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
9
- import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
10
1
  // import FilterListIcon from "@mui/icons-material/FilterList";
11
2
 
12
3
  export const TYPE_LABELS = {
@@ -18,6 +9,15 @@ export const TYPE_LABELS = {
18
9
  person: "Person",
19
10
  check: "Checkbox"
20
11
  };
12
+ export const TYPE_ICONS = {
13
+ text: 'text',
14
+ number: 'hashtagIcon',
15
+ select: 'selectRounded',
16
+ "multi-select": 'check-list-item',
17
+ date: 'calenderNewIcon',
18
+ person: 'userIcon',
19
+ check: 'tickOutline'
20
+ };
21
21
  export const PROPERTY_DEFAULTS = {
22
22
  text: {
23
23
  label: TYPE_LABELS?.text,
@@ -51,43 +51,43 @@ export const PROPERTY_DEFAULTS = {
51
51
  export const PROPERTY_TYPES = [{
52
52
  type: "text",
53
53
  label: TYPE_LABELS.text,
54
- Icon: NotesIcon
54
+ Icon: 'text'
55
55
  }, {
56
56
  type: "number",
57
57
  label: TYPE_LABELS.number,
58
- Icon: TagIcon
58
+ Icon: 'hashtagIcon'
59
59
  }, {
60
60
  type: "select",
61
61
  label: TYPE_LABELS.select,
62
- Icon: ArrowDropDownCircleIcon
62
+ Icon: 'selectRounded'
63
63
  }, {
64
64
  type: "multi-select",
65
65
  label: TYPE_LABELS["multi-select"],
66
- Icon: ChecklistIcon
66
+ Icon: 'check-list-item'
67
67
  }, {
68
68
  type: "date",
69
69
  label: TYPE_LABELS.date,
70
- Icon: InsertInvitationIcon
71
- }, {
72
- type: "check",
73
- label: TYPE_LABELS.check,
74
- Icon: CheckCircleOutlineIcon
70
+ Icon: 'calenderNewIcon'
75
71
  }, {
76
72
  type: "person",
77
73
  label: TYPE_LABELS.person,
78
- Icon: PersonIcon
74
+ Icon: 'userIcon'
75
+ }, {
76
+ type: "check",
77
+ label: TYPE_LABELS.check,
78
+ Icon: 'tickOutline'
79
79
  }];
80
80
  export const FILTER_TYPES = [{
81
81
  type: "sort",
82
82
  operator: "asc",
83
83
  label: "Sort Ascending",
84
84
  value: "",
85
- Icon: ArrowUpwardIcon
85
+ Icon: 'arrowUp'
86
86
  }, {
87
87
  type: "sort",
88
88
  operator: "desc",
89
89
  label: "Sort Descending",
90
- Icon: ArrowDownwardIcon
90
+ Icon: 'arrowDown'
91
91
  }
92
92
  // {
93
93
  // type: "filter",
@@ -1,11 +1,10 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
2
  import { Box, IconButton, TextField, List, ListItemButton, ListItemIcon, ListItemText, FormControlLabel } from "@mui/material";
3
3
  import CloseIcon from "@mui/icons-material/Close";
4
- import ArrowBackIcon from "@mui/icons-material/ArrowBack";
5
- import DeleteIcon from "@mui/icons-material/Delete";
6
4
  import ColorButtons from "../../../Color Picker/ColorButtons";
7
5
  import ColorPickerStyles from "../../../Color Picker/Styles";
8
6
  import { DEFAULT_OPTION_COLORS } from "./Constants";
7
+ import Icon from "../../../../common/Icon";
9
8
  import { jsx as _jsx } from "react/jsx-runtime";
10
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const EditOption = props => {
@@ -104,7 +103,9 @@ const EditOption = props => {
104
103
  className: "tv-act-ico",
105
104
  size: "small",
106
105
  onClick: onBack,
107
- children: /*#__PURE__*/_jsx(ArrowBackIcon, {})
106
+ children: /*#__PURE__*/_jsx(Icon, {
107
+ icon: 'leftArrow'
108
+ })
108
109
  }), "Edit Option"]
109
110
  }), /*#__PURE__*/_jsx(IconButton, {
110
111
  className: "tv-act-ico bg",
@@ -146,7 +147,9 @@ const EditOption = props => {
146
147
  children: /*#__PURE__*/_jsxs(ListItemButton, {
147
148
  onClick: onDeleteOption,
148
149
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
149
- children: /*#__PURE__*/_jsx(DeleteIcon, {})
150
+ children: /*#__PURE__*/_jsx(Icon, {
151
+ icon: 'trashIcon'
152
+ })
150
153
  }), /*#__PURE__*/_jsx(ListItemText, {
151
154
  children: "Delete Option"
152
155
  })]
@@ -1,15 +1,11 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
2
  import { Box, IconButton, TextField, List, ListItemButton, ListItemText, ListItemIcon, FormControlLabel } from "@mui/material";
3
3
  import CloseIcon from "@mui/icons-material/Close";
4
- import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";
5
- import DeleteIcon from "@mui/icons-material/Delete";
6
- import ContentCopyIcon from "@mui/icons-material/ContentCopy";
7
- import VisibilityIcon from "@mui/icons-material/Visibility";
8
- import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
9
4
  import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
10
- import { TYPE_LABELS } from "./Constants";
5
+ import { TYPE_ICONS, TYPE_LABELS } from "./Constants";
11
6
  import AddOptions from "./AddOptions";
12
7
  import FilterProperty from "./FilterProperty";
8
+ import Icon from "../../../../common/Icon";
13
9
  import { jsx as _jsx } from "react/jsx-runtime";
14
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
11
  const EditProperty = props => {
@@ -125,6 +121,11 @@ const EditProperty = props => {
125
121
  children: [/*#__PURE__*/_jsx(FormControlLabel, {
126
122
  label: "Field Name",
127
123
  labelPlacement: "top",
124
+ sx: {
125
+ '& .MuiFormControl-root': {
126
+ marginBottom: '4px'
127
+ }
128
+ },
128
129
  control: /*#__PURE__*/_jsx(TextField, {
129
130
  size: "small",
130
131
  value: edit?.label,
@@ -132,50 +133,77 @@ const EditProperty = props => {
132
133
  fullWidth: true,
133
134
  placeholder: "Field Name"
134
135
  })
135
- }), /*#__PURE__*/_jsx(AddOptions, {
136
- edit: edit,
137
- onUpdate: onUpdate,
138
- onEvent: onEvent
139
- }), /*#__PURE__*/_jsx(FilterProperty, {
140
- edit: edit,
141
- onUpdate: onUpdate,
142
- onEvent: onEvent
143
136
  }), /*#__PURE__*/_jsx(List, {
144
- className: "fe-dv-opt-list st sb",
137
+ className: "fe-dv-opt-list st",
145
138
  children: /*#__PURE__*/_jsxs(ListItemButton, {
146
139
  onClick: onChangeProperty,
147
140
  children: [/*#__PURE__*/_jsx(ListItemText, {
148
141
  children: "Type"
149
142
  }), /*#__PURE__*/_jsxs(ListItemIcon, {
150
143
  sx: {
151
- alignItems: "center"
144
+ display: 'flex',
145
+ alignItems: "center",
146
+ gap: 1
152
147
  },
153
- children: [/*#__PURE__*/_jsx("span", {
148
+ children: [/*#__PURE__*/_jsx(Box, {
149
+ sx: {
150
+ background: "#64748B1F",
151
+ borderRadius: '4px',
152
+ display: 'flex',
153
+ alignItems: 'center',
154
+ padding: '2px',
155
+ '& svg': {
156
+ width: '16px',
157
+ height: '16px'
158
+ }
159
+ },
160
+ children: /*#__PURE__*/_jsx(Icon, {
161
+ icon: `${TYPE_ICONS[edit?.type]}`
162
+ })
163
+ }), /*#__PURE__*/_jsx("span", {
154
164
  className: "label-tp",
155
165
  children: TYPE_LABELS[edit?.type]
156
- }), /*#__PURE__*/_jsx(KeyboardArrowRightIcon, {})]
166
+ }), /*#__PURE__*/_jsx(Icon, {
167
+ icon: 'rightArrow'
168
+ })]
157
169
  })]
158
170
  })
171
+ }), /*#__PURE__*/_jsx(AddOptions, {
172
+ edit: edit,
173
+ onUpdate: onUpdate,
174
+ onEvent: onEvent
175
+ }), /*#__PURE__*/_jsx(FilterProperty, {
176
+ edit: edit,
177
+ onUpdate: onUpdate,
178
+ onEvent: onEvent
159
179
  }), /*#__PURE__*/_jsxs(List, {
160
180
  className: "fe-dv-opt-list",
161
181
  children: [/*#__PURE__*/_jsxs(ListItemButton, {
162
182
  onClick: onAction("Visibilty"),
163
183
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
164
- children: edit?.visible ? /*#__PURE__*/_jsx(VisibilityOffIcon, {}) : /*#__PURE__*/_jsx(VisibilityIcon, {})
184
+ children: edit?.visible ? /*#__PURE__*/_jsx(Icon, {
185
+ icon: 'eyeSlash'
186
+ }) : /*#__PURE__*/_jsx(Icon, {
187
+ icon: 'eyeIcon'
188
+ })
165
189
  }), /*#__PURE__*/_jsxs(ListItemText, {
166
190
  children: [edit?.visible ? "Hide" : "Show", " in View"]
167
191
  })]
168
192
  }), /*#__PURE__*/_jsxs(ListItemButton, {
169
193
  onClick: onAction("Duplicate"),
170
194
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
171
- children: /*#__PURE__*/_jsx(ContentCopyIcon, {})
195
+ children: /*#__PURE__*/_jsx(Icon, {
196
+ icon: 'duplicateIcon'
197
+ })
172
198
  }), /*#__PURE__*/_jsx(ListItemText, {
173
199
  children: "Duplicate Property"
174
200
  })]
175
201
  }), /*#__PURE__*/_jsxs(ListItemButton, {
176
202
  onClick: onAction("Delete"),
177
203
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
178
- children: /*#__PURE__*/_jsx(DeleteIcon, {})
204
+ children: /*#__PURE__*/_jsx(Icon, {
205
+ icon: 'trashIcon'
206
+ })
179
207
  }), /*#__PURE__*/_jsx(ListItemText, {
180
208
  children: "Delete Property"
181
209
  })]
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { List, ListItemButton, ListItemText, ListItemIcon } from "@mui/material";
3
3
  import { FILTER_TYPES } from "./Constants";
4
4
  import { useDataView } from "../../Providers/DataViewProvider";
5
+ import Icon from "../../../../common/Icon";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
8
  const FilterProperty = props => {
@@ -22,13 +23,14 @@ const FilterProperty = props => {
22
23
  return /*#__PURE__*/_jsx(List, {
23
24
  className: "fe-dv-opt-list mt",
24
25
  children: FILTER_TYPES?.map(({
25
- Icon,
26
26
  ...m
27
27
  }, i) => {
28
28
  return /*#__PURE__*/_jsxs(ListItemButton, {
29
29
  onClick: handleChangeOption(m),
30
30
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
31
- children: /*#__PURE__*/_jsx(Icon, {})
31
+ children: /*#__PURE__*/_jsx(Icon, {
32
+ icon: m?.Icon
33
+ })
32
34
  }), /*#__PURE__*/_jsx(ListItemText, {
33
35
  primary: m.label
34
36
  })]
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { List, ListItemButton, ListItemIcon, ListItemText } from "@mui/material";
3
3
  import { PROPERTY_TYPES } from "./Constants";
4
+ import Icon from "../../../../common/Icon";
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
5
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
7
  const PropertyList = props => {
@@ -10,7 +11,6 @@ const PropertyList = props => {
10
11
  } = props;
11
12
  return /*#__PURE__*/_jsx(List, {
12
13
  children: PROPERTY_TYPES?.map(({
13
- Icon,
14
14
  ...rest
15
15
  }, i) => {
16
16
  return /*#__PURE__*/_jsxs(ListItemButton, {
@@ -18,7 +18,9 @@ const PropertyList = props => {
18
18
  onClick: onSelect(rest),
19
19
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
20
20
  className: "needBg",
21
- children: /*#__PURE__*/_jsx(Icon, {})
21
+ children: /*#__PURE__*/_jsx(Icon, {
22
+ icon: rest?.Icon
23
+ })
22
24
  }), /*#__PURE__*/_jsx(ListItemText, {
23
25
  primary: rest?.label
24
26
  })]
@@ -3,8 +3,9 @@ const useOptionsStyles = (theme, appTheme) => ({
3
3
  "& .MuiPaper-root": {
4
4
  boxShadow: "0px 4px 10px 0px rgba(0, 0, 0, 0.16)",
5
5
  border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
6
- borderRadius: "12px",
6
+ borderRadius: "20px !important",
7
7
  background: appTheme?.palette?.editor?.tv_pop_bg,
8
+ fontFamily: 'Inter !important',
8
9
  color: appTheme?.palette?.editor?.tv_text_primary,
9
10
  [theme?.breakpoints?.between("xs", "md")]: {
10
11
  borderRadius: "16px 16px 0px 0px",
@@ -23,27 +24,38 @@ const useOptionsStyles = (theme, appTheme) => ({
23
24
  },
24
25
  "& svg": {
25
26
  width: "16px",
26
- height: "16px"
27
+ height: "16px",
28
+ '& path': {
29
+ stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
30
+ }
27
31
  }
28
32
  },
29
33
  "& .MuiInputBase-root": {
30
34
  color: appTheme?.palette?.editor?.tv_text_primary,
31
35
  fontSize: "14px",
32
- background: appTheme?.palette?.editor?.tv_input_bg,
33
- borderRadius: "8px"
36
+ // background: appTheme?.palette?.editor?.tv_input_bg,
37
+ background: 'transparent',
38
+ borderRadius: "8px",
39
+ boxShadow: '0px 4px 18px 0px #0000000D'
40
+ },
41
+ '& .MuiInputBase-input': {
42
+ padding: '0px 12px',
43
+ height: '34px'
34
44
  },
35
45
  "& .MuiOutlinedInput-notchedOutline": {
36
46
  borderRadius: "8px",
37
- border: `1px solid ${appTheme?.palette?.editor?.tv_border}`
47
+ border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
48
+ background: 'transparent'
38
49
  },
39
50
  "& .MuiList-root": {
40
51
  padding: "4px 2px",
52
+ fontFamily: 'Inter',
41
53
  "& .MuiListItemButton-root": {
42
54
  color: appTheme?.palette?.editor?.tv_text_primary,
43
55
  padding: "2px 4px",
44
56
  borderRadius: "8px",
45
57
  "& .MuiListItemIcon-root": {
46
- minWidth: "38px",
58
+ minWidth: "26px",
47
59
  "&.needBg": {
48
60
  minWidth: "20px",
49
61
  width: "20px",
@@ -56,17 +68,27 @@ const useOptionsStyles = (theme, appTheme) => ({
56
68
  },
57
69
  color: `${appTheme?.palette?.editor?.tv_text} !important`,
58
70
  "& svg": {
59
- width: "16px"
71
+ width: "16px",
72
+ '& path': {
73
+ stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
74
+ }
60
75
  }
61
76
  },
62
77
  "& .MuiTypography-root": {
63
- fontSize: "14px"
78
+ fontSize: "14px",
79
+ fontFamily: 'Inter'
64
80
  },
65
81
  "&:hover": {
66
82
  background: appTheme?.palette?.editor?.tv_hover_bg,
67
83
  color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
68
84
  "& .MuiListItemIcon-root": {
69
- color: `${appTheme?.palette?.editor?.tv_hover_text} !important`
85
+ color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
86
+ "& svg": {
87
+ color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
88
+ '& path': {
89
+ stroke: `${appTheme?.palette?.editor?.tv_hover_text} !important`
90
+ }
91
+ }
70
92
  }
71
93
  }
72
94
  }
@@ -79,7 +101,8 @@ const useOptionsStyles = (theme, appTheme) => ({
79
101
  "& .sb": {
80
102
  borderBottom: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
81
103
  marginBottom: "8px",
82
- paddingBottom: "8px"
104
+ // paddingBottom: "8px",
105
+ paddingBottom: "0px"
83
106
  },
84
107
  "& .mt": {
85
108
  marginTop: "8px"
@@ -119,10 +142,10 @@ const useOptionsStyles = (theme, appTheme) => ({
119
142
  fontFamily: '"Roboto","Helvetica","Arial",sans-serif',
120
143
  fontSize: "14px"
121
144
  },
122
- "& .MuiInputBase-input": {
123
- height: "32px",
124
- padding: "4px 8px"
125
- },
145
+ // "& .MuiInputBase-input": {
146
+ // height: "32px",
147
+ // padding: "4px 8px",
148
+ // },
126
149
  "& .more-btn-cbs": {
127
150
  color: appTheme?.palette?.editor?.tv_text_primary
128
151
  }
@@ -133,7 +156,8 @@ const useOptionsStyles = (theme, appTheme) => ({
133
156
  width: "253px",
134
157
  "& .fe-dv-ap-title": {
135
158
  display: "flex",
136
- fontWeight: "bold",
159
+ fontWeight: "600",
160
+ fontFamily: 'Inter',
137
161
  padding: "0px 0px 12px 0px",
138
162
  justifyContent: "space-between",
139
163
  fontSize: "14px",
@@ -142,7 +166,8 @@ const useOptionsStyles = (theme, appTheme) => ({
142
166
  marginBottom: "8px",
143
167
  "& span": {
144
168
  display: "flex",
145
- alignItems: "center"
169
+ alignItems: "center",
170
+ fontFamily: 'Inter'
146
171
  }
147
172
  },
148
173
  "& .fe-dv-ap-desc": {
@@ -163,6 +188,11 @@ const useOptionsStyles = (theme, appTheme) => ({
163
188
  color: "red",
164
189
  marginLeft: "2px",
165
190
  marginTop: "4px"
191
+ },
192
+ '& svg': {
193
+ '& path': {
194
+ stroke: appTheme?.palette?.editor?.closeButtonSvgStroke
195
+ }
166
196
  }
167
197
  },
168
198
  "& .fe-tv-opt-sub-title": {
@@ -171,6 +201,11 @@ const useOptionsStyles = (theme, appTheme) => ({
171
201
  justifyContent: "space-between",
172
202
  marginBottom: "8px"
173
203
  },
204
+ "& .more-btn-cbs": {
205
+ color: `${appTheme?.palette?.editor?.closeButtonSvgStroke}`,
206
+ border: `1.5px solid ${appTheme?.palette?.editor?.closeButtonSvgStroke}`,
207
+ paddingTop: "10px"
208
+ },
174
209
  [theme?.breakpoints?.between("xs", "md")]: {
175
210
  width: "100%"
176
211
  }
@@ -19,6 +19,9 @@ const useTableStyles = (theme, appTheme) => ({
19
19
  "& svg": {
20
20
  "& .fillStroke": {
21
21
  stroke: appTheme?.palette?.editor?.tv_stroke
22
+ },
23
+ '& path': {
24
+ stroke: appTheme?.palette?.editor?.tv_text
22
25
  }
23
26
  }
24
27
  },
@@ -26,7 +29,8 @@ const useTableStyles = (theme, appTheme) => ({
26
29
  height: "40px",
27
30
  "& input": {
28
31
  color: appTheme?.palette?.editor?.tv_text_primary,
29
- background: "transparent"
32
+ background: "transparent",
33
+ fontSize: '14px'
30
34
  }
31
35
  },
32
36
  "& th, tr, td": {
@@ -35,15 +39,30 @@ const useTableStyles = (theme, appTheme) => ({
35
39
  "& .tv-act-btn": {
36
40
  color: appTheme?.palette?.editor?.tv_text,
37
41
  textTransform: "none",
42
+ '& .MuiButton-startIcon': {
43
+ background: appTheme?.palette?.editor?.tv_ico_bg,
44
+ borderRadius: '4px',
45
+ padding: '2px',
46
+ "& svg": {
47
+ width: '16px',
48
+ height: '16px'
49
+ }
50
+ },
38
51
  "&.ico": {
39
52
  "& svg": {
40
- color: appTheme?.palette?.editor?.tv_text
53
+ color: appTheme?.palette?.editor?.tv_text,
54
+ '& path': {
55
+ stroke: appTheme?.palette?.editor?.tv_text
56
+ }
41
57
  }
42
58
  },
43
59
  "&:hover": {
44
60
  color: "rgba(37, 99, 235, 1)",
45
61
  "& svg": {
46
- color: "rgba(37, 99, 235, 1)"
62
+ color: "rgba(37, 99, 235, 1)",
63
+ '& path': {
64
+ stroke: "rgba(37, 99, 235, 1)"
65
+ }
47
66
  }
48
67
  }
49
68
  },
@@ -1,14 +1,12 @@
1
1
  import React, { useState } from "react";
2
2
  import { Box, Button, useTheme } from "@mui/material";
3
- import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
4
- import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
5
- import AddCircleOutlineIcon from "@mui/icons-material/AddCircleOutline";
6
3
  import { useDataView } from "../Providers/DataViewProvider";
7
4
  import PropertySettings from "./Options";
8
5
  import { PROPERTY_TYPES } from "./Options/Constants";
9
6
  import useTableStyles from "./TableStyles";
10
7
  import { GridSettingsIcon, GridAddSectionIcon } from "../../../common/iconslist";
11
8
  import { useEditorContext } from "../../../hooks/useMouseMove";
9
+ import Icon from "../../../common/Icon";
12
10
  import { jsx as _jsx } from "react/jsx-runtime";
13
11
  import { Fragment as _Fragment } from "react/jsx-runtime";
14
12
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -16,14 +14,28 @@ const SortIcon = props => {
16
14
  const {
17
15
  sortBy
18
16
  } = props;
19
- return sortBy ? sortBy === "asc" ? /*#__PURE__*/_jsx(KeyboardArrowUpIcon, {
17
+ return sortBy ? sortBy === "asc" ? /*#__PURE__*/_jsx(Box, {
20
18
  sx: {
21
- color: "rgba(37, 99, 235, 1)"
22
- }
23
- }) : /*#__PURE__*/_jsx(KeyboardArrowDownIcon, {
19
+ '& svg': {
20
+ '& path': {
21
+ stroke: "rgba(37, 99, 235, 1) !important"
22
+ }
23
+ }
24
+ },
25
+ children: /*#__PURE__*/_jsx(Icon, {
26
+ icon: 'chervUp'
27
+ })
28
+ }) : /*#__PURE__*/_jsx(Box, {
24
29
  sx: {
25
- color: "rgba(37, 99, 235, 1)"
26
- }
30
+ '& svg': {
31
+ '& path': {
32
+ stroke: "rgba(37, 99, 235, 1) !important"
33
+ }
34
+ }
35
+ },
36
+ children: /*#__PURE__*/_jsx(Icon, {
37
+ icon: 'chervDown'
38
+ })
27
39
  }) : null;
28
40
  };
29
41
  const TableView = props => {
@@ -165,7 +177,7 @@ const TableView = props => {
165
177
  children: /*#__PURE__*/_jsxs("tr", {
166
178
  children: [shownProperties?.map((m, i) => {
167
179
  const {
168
- Icon
180
+ Icon: iconType
169
181
  } = PROPERTY_TYPES?.find(f => f.type === m.type) || {};
170
182
  const isSort = sortBy?.key === m.key ? sortBy?.operator : null;
171
183
  return /*#__PURE__*/_jsx("th", {
@@ -174,7 +186,9 @@ const TableView = props => {
174
186
  },
175
187
  children: /*#__PURE__*/_jsx(Button, {
176
188
  className: "tv-act-btn la",
177
- startIcon: /*#__PURE__*/_jsx(Icon, {}),
189
+ startIcon: /*#__PURE__*/_jsx(Icon, {
190
+ icon: iconType
191
+ }),
178
192
  endIcon: /*#__PURE__*/_jsx(SortIcon, {
179
193
  sortBy: isSort
180
194
  }),
@@ -210,9 +224,21 @@ const TableView = props => {
210
224
  onClick: onAddRow,
211
225
  sx: {
212
226
  textTransform: "none",
213
- justifyContent: "start"
227
+ justifyContent: "start",
228
+ color: appTheme?.palette?.editor?.activeColor,
229
+ '& svg': {
230
+ width: '18px',
231
+ height: '18px',
232
+ strokeWidth: 1.2,
233
+ '& path': {
234
+ stroke: appTheme?.palette?.editor?.activeColor
235
+ }
236
+ },
237
+ fontFamily: 'inter'
214
238
  },
215
- startIcon: /*#__PURE__*/_jsx(AddCircleOutlineIcon, {}),
239
+ startIcon: /*#__PURE__*/_jsx(Icon, {
240
+ icon: 'addRounded'
241
+ }),
216
242
  children: "Add new row"
217
243
  }) : null, open && !readOnly ? /*#__PURE__*/_jsx(PropertySettings, {
218
244
  open: open,
@@ -52,6 +52,11 @@ const ViewData = props => {
52
52
  component: "tbody",
53
53
  ...attributes,
54
54
  contentEditable: false,
55
+ sx: {
56
+ "& .MuiInputBase-root": {
57
+ background: "transparent !important"
58
+ }
59
+ },
55
60
  children: [rows?.map((row, i) => {
56
61
  return /*#__PURE__*/_jsx(Box, {
57
62
  component: "tr",
@@ -47,11 +47,19 @@ const useDataViewStyles = (theme, appTheme) => ({
47
47
  },
48
48
  "& .tv-ck-box": {
49
49
  "& svg": {
50
- color: appTheme?.palette?.editor?.tv_border
50
+ color: appTheme?.palette?.editor?.tv_border,
51
+ '& rect': {
52
+ fill: appTheme?.palette?.editor?.tv_chk_box_fill,
53
+ stroke: appTheme?.palette?.editor?.tv_chk_box_stroke
54
+ }
51
55
  },
52
56
  "&.Mui-checked": {
53
57
  "& svg": {
54
- color: "rgba(37, 99, 235, 1)"
58
+ color: "rgba(37, 99, 235, 1)",
59
+ '& rect': {
60
+ fill: appTheme?.palette?.editor?.activeColor,
61
+ stroke: 'none'
62
+ }
55
63
  }
56
64
  }
57
65
  }
@@ -85,7 +93,8 @@ const useDataViewStyles = (theme, appTheme) => ({
85
93
  width: "fit-content",
86
94
  border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
87
95
  boxShadow: "0px 4px 18px 0px #0000000D",
88
- borderRadius: "8px"
96
+ borderRadius: "8px",
97
+ minWidth: '148px'
89
98
  },
90
99
  "& input": {
91
100
  paddingBottom: "0px",
@@ -110,7 +119,8 @@ const useDataViewStyles = (theme, appTheme) => ({
110
119
  "& .MuiInputBase-input": {
111
120
  paddingBottom: "0px",
112
121
  fontWeight: "bold",
113
- fontSize: "16px"
122
+ fontSize: "16px",
123
+ color: appTheme?.palette?.editor?.textFormatTextColor
114
124
  },
115
125
  [theme?.breakpoints?.between("xs", "md")]: {
116
126
  width: "100%",
@@ -130,10 +140,12 @@ const useDataViewStyles = (theme, appTheme) => ({
130
140
  width: "150px",
131
141
  border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
132
142
  borderRadius: "8px",
143
+ fontFamily: 'Inter !important',
133
144
  background: appTheme?.palette?.editor?.tv_pop_bg,
134
145
  color: appTheme?.palette?.editor?.tv_text_primary,
135
146
  "& .MuiButtonBase-root": {
136
147
  fontSize: "14px",
148
+ padding: '6px 8px',
137
149
  "& svg": {
138
150
  width: "16px",
139
151
  height: "16px",
@@ -144,7 +156,10 @@ const useDataViewStyles = (theme, appTheme) => ({
144
156
  borderRadius: "8px",
145
157
  color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
146
158
  "& svg": {
147
- color: `${appTheme?.palette?.editor?.tv_hover_text} !important`
159
+ color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
160
+ '& path': {
161
+ stroke: `${appTheme?.palette?.editor?.tv_hover_text} !important`
162
+ }
148
163
  }
149
164
  }
150
165
  }