@flozy/editor 5.3.5 → 5.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/dist/Editor/CommonEditor.js +8 -14
  2. package/dist/Editor/Editor.css +22 -58
  3. package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
  4. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  5. package/dist/Editor/Elements/Button/EditorButton.js +2 -9
  6. package/dist/Editor/Elements/Color Picker/ColorButtons.js +2 -4
  7. package/dist/Editor/Elements/Divider/Divider.js +9 -24
  8. package/dist/Editor/Elements/Embed/Image.js +12 -31
  9. package/dist/Editor/Elements/Embed/Video.js +2 -13
  10. package/dist/Editor/Elements/Form/Form.js +0 -1
  11. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  12. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  13. package/dist/Editor/Elements/Grid/GridItem.js +0 -2
  14. package/dist/Editor/Elements/Grid/Styles.js +0 -44
  15. package/dist/Editor/Elements/List/CheckList.js +1 -2
  16. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +0 -1
  17. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  18. package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
  19. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  20. package/dist/Editor/Elements/SimpleText/style.js +1 -10
  21. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  22. package/dist/Editor/MiniEditor.js +1 -15
  23. package/dist/Editor/Styles/EditorStyles.js +3 -5
  24. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +1 -17
  25. package/dist/Editor/Toolbar/FormatTools/TextSize.js +3 -5
  26. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -210
  27. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -55
  28. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  29. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  30. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  31. package/dist/Editor/common/ColorPickerButton.js +3 -5
  32. package/dist/Editor/common/DnD/Draggable.js +1 -2
  33. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  34. package/dist/Editor/common/Icon.js +0 -6
  35. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  36. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  37. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  38. package/dist/Editor/common/MentionsPopup/Styles.js +122 -109
  39. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
  40. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  41. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  42. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  43. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  44. package/dist/Editor/common/RnD/index.js +1 -2
  45. package/dist/Editor/common/Section/index.js +3 -3
  46. package/dist/Editor/common/Section/styles.js +1 -5
  47. package/dist/Editor/common/Shorthands/elements.js +1 -13
  48. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  49. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  50. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +3 -27
  51. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  52. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  53. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  54. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  55. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  56. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  57. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
  58. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  59. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  60. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +0 -7
  62. package/dist/Editor/common/StyleBuilder/index.js +9 -17
  63. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  64. package/dist/Editor/common/ToolbarIcon.js +1 -2
  65. package/dist/Editor/common/Uploader.js +36 -46
  66. package/dist/Editor/common/iconListV2.js +130 -348
  67. package/dist/Editor/common/iconslist.js +3 -6
  68. package/dist/Editor/commonStyle.js +4 -290
  69. package/dist/Editor/helper/index.js +3 -16
  70. package/dist/Editor/helper/theme.js +1 -24
  71. package/dist/Editor/hooks/useMouseMove.js +2 -5
  72. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -33
  73. package/dist/Editor/plugins/withEmbeds.js +26 -30
  74. package/dist/Editor/utils/SlateUtilityFunctions.js +4 -27
  75. package/dist/Editor/utils/button.js +4 -4
  76. package/dist/Editor/utils/helper.js +13 -40
  77. package/dist/Editor/utils/pageSettings.js +2 -14
  78. package/package.json +2 -2
  79. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  80. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  81. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  82. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  83. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  84. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  85. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  86. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  87. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  88. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  89. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  90. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  91. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  92. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  93. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  94. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  95. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  96. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  97. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  98. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  99. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  100. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  101. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  102. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  103. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  104. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  105. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  106. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  107. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  108. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  109. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  110. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  111. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  112. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  113. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  114. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  115. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  116. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  117. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  118. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  119. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  120. package/dist/Editor/Elements/DataView/styles.js +0 -154
  121. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  122. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  123. package/dist/Editor/utils/dataView.js +0 -43
@@ -1,190 +0,0 @@
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 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
- import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
10
- import { TYPE_LABELS } from "./Constants";
11
- import AddOptions from "./AddOptions";
12
- import FilterProperty from "./FilterProperty";
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
- const EditProperty = props => {
16
- const {
17
- classes,
18
- onClose,
19
- mode,
20
- onEvent
21
- } = props;
22
- const [edit, setEdit] = useState({
23
- ...(mode?.edit || {})
24
- });
25
- const editData = useRef({
26
- ...edit
27
- });
28
- useEffect(() => {
29
- return () => {
30
- // on un-mount update the label
31
- if (edit?.label !== editData?.current?.label) {
32
- onEvent("updateProperty", {
33
- ...editData?.current
34
- }, false);
35
- }
36
- };
37
- }, []);
38
- const onChange = key => e => {
39
- const latest = {
40
- ...edit,
41
- [key]: e?.target?.value
42
- };
43
- setEdit({
44
- ...edit,
45
- [key]: e?.target?.value
46
- });
47
- editData.current = {
48
- ...latest
49
- };
50
- };
51
- const onChangeProperty = () => {
52
- onEvent("changeProperty", {
53
- edit: {
54
- ...edit
55
- }
56
- });
57
- };
58
- const onBack = () => {
59
- onEvent("allProperties", {
60
- edit: null
61
- });
62
- };
63
- const onUpdate = data => {
64
- const latest = {
65
- ...edit,
66
- ...data
67
- };
68
- setEdit({
69
- ...edit,
70
- ...data
71
- });
72
- editData.current = {
73
- ...latest
74
- };
75
- onEvent("updateProperty", {
76
- ...editData?.current
77
- });
78
- };
79
- const onAction = action => () => {
80
- switch (action) {
81
- case "Visibilty":
82
- onUpdate({
83
- visible: !edit?.visible
84
- });
85
- onEvent("close");
86
- break;
87
- case "Duplicate":
88
- onEvent("addProperty", {
89
- type: editData?.current?.type,
90
- overrides: {
91
- ...editData?.current
92
- }
93
- }, false);
94
- onEvent("close");
95
- break;
96
- case "Delete":
97
- onEvent("deleteProperty", {
98
- ...editData?.current
99
- });
100
- onEvent("close");
101
- break;
102
- default:
103
- return;
104
- }
105
- };
106
- return /*#__PURE__*/_jsxs(Box, {
107
- sx: classes.addProperty,
108
- children: [/*#__PURE__*/_jsxs(Box, {
109
- className: "fe-dv-ap-title",
110
- children: [/*#__PURE__*/_jsxs("span", {
111
- children: [/*#__PURE__*/_jsx(IconButton, {
112
- className: "tv-act-ico",
113
- size: "small",
114
- onClick: onBack,
115
- children: /*#__PURE__*/_jsx(ArrowBackIosIcon, {})
116
- }), "Edit Property"]
117
- }), /*#__PURE__*/_jsx(IconButton, {
118
- className: "tv-act-ico bg br1",
119
- size: "small",
120
- onClick: onClose,
121
- children: /*#__PURE__*/_jsx(CloseIcon, {})
122
- })]
123
- }), /*#__PURE__*/_jsxs(Box, {
124
- className: "fe-dv-ap-opt-content",
125
- children: [/*#__PURE__*/_jsx(FormControlLabel, {
126
- label: "Field Name",
127
- labelPlacement: "top",
128
- control: /*#__PURE__*/_jsx(TextField, {
129
- size: "small",
130
- value: edit?.label,
131
- onChange: onChange("label"),
132
- fullWidth: true,
133
- placeholder: "Field Name"
134
- })
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
- }), /*#__PURE__*/_jsx(List, {
144
- className: "fe-dv-opt-list st sb",
145
- children: /*#__PURE__*/_jsxs(ListItemButton, {
146
- onClick: onChangeProperty,
147
- children: [/*#__PURE__*/_jsx(ListItemText, {
148
- children: "Type"
149
- }), /*#__PURE__*/_jsxs(ListItemIcon, {
150
- sx: {
151
- alignItems: "center"
152
- },
153
- children: [/*#__PURE__*/_jsx("span", {
154
- className: "label-tp",
155
- children: TYPE_LABELS[edit?.type]
156
- }), /*#__PURE__*/_jsx(KeyboardArrowRightIcon, {})]
157
- })]
158
- })
159
- }), /*#__PURE__*/_jsxs(List, {
160
- className: "fe-dv-opt-list",
161
- children: [/*#__PURE__*/_jsxs(ListItemButton, {
162
- onClick: onAction("Visibilty"),
163
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
164
- children: edit?.visible ? /*#__PURE__*/_jsx(VisibilityOffIcon, {}) : /*#__PURE__*/_jsx(VisibilityIcon, {})
165
- }), /*#__PURE__*/_jsxs(ListItemText, {
166
- children: [edit?.visible ? "Hide" : "Show", " in View"]
167
- })]
168
- }), /*#__PURE__*/_jsxs(ListItemButton, {
169
- onClick: onAction("Duplicate"),
170
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
171
- children: /*#__PURE__*/_jsx(ContentCopyIcon, {})
172
- }), /*#__PURE__*/_jsx(ListItemText, {
173
- children: "Duplicate Property"
174
- })]
175
- }), /*#__PURE__*/_jsxs(ListItemButton, {
176
- onClick: onAction("Delete"),
177
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
178
- children: /*#__PURE__*/_jsx(DeleteIcon, {})
179
- }), /*#__PURE__*/_jsx(ListItemText, {
180
- children: "Delete Property"
181
- })]
182
- })]
183
- })]
184
- })]
185
- });
186
- };
187
- EditProperty.defaultProps = {
188
- onEvent: () => {}
189
- };
190
- export default EditProperty;
@@ -1,42 +0,0 @@
1
- import React from "react";
2
- import { List, ListItemButton, ListItemText, ListItemIcon } from "@mui/material";
3
- import { FILTER_TYPES } from "./Constants";
4
- import { useDataView } from "../../Providers/DataViewProvider";
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
- const FilterProperty = props => {
8
- const {
9
- sort
10
- } = useDataView();
11
- const {
12
- edit,
13
- onEvent
14
- } = props;
15
- const handleChangeOption = m => () => {
16
- onEvent("addSort", {
17
- ...(sort[0] || {}),
18
- newKey: edit?.key,
19
- operator: m?.operator
20
- });
21
- };
22
- return /*#__PURE__*/_jsx(List, {
23
- className: "fe-dv-opt-list mt",
24
- children: FILTER_TYPES?.map(({
25
- Icon,
26
- ...m
27
- }, i) => {
28
- return /*#__PURE__*/_jsxs(ListItemButton, {
29
- onClick: handleChangeOption(m),
30
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
31
- children: /*#__PURE__*/_jsx(Icon, {})
32
- }), /*#__PURE__*/_jsx(ListItemText, {
33
- primary: m.label
34
- })]
35
- }, i);
36
- })
37
- });
38
- };
39
- FilterProperty.defaultProps = {
40
- onEvent: () => {}
41
- };
42
- export default FilterProperty;
@@ -1,30 +0,0 @@
1
- import React from "react";
2
- import { List, ListItemButton, ListItemIcon, ListItemText } from "@mui/material";
3
- import { PROPERTY_TYPES } from "./Constants";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
- const PropertyList = props => {
7
- const {
8
- onSelect,
9
- selected
10
- } = props;
11
- return /*#__PURE__*/_jsx(List, {
12
- children: PROPERTY_TYPES?.map(({
13
- Icon,
14
- ...rest
15
- }, i) => {
16
- return /*#__PURE__*/_jsxs(ListItemButton, {
17
- className: selected?.type === rest?.type ? "active" : "",
18
- onClick: onSelect(rest),
19
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
20
- className: "needBg",
21
- children: /*#__PURE__*/_jsx(Icon, {})
22
- }), /*#__PURE__*/_jsx(ListItemText, {
23
- primary: rest?.label
24
- })]
25
- }, i);
26
- })
27
- });
28
- };
29
- PropertyList.defaultProps = {};
30
- export default PropertyList;
@@ -1,110 +0,0 @@
1
- import React from "react";
2
- import { Popover, SwipeableDrawer } from "@mui/material";
3
- import useOptionsStyles from "./styles";
4
- import AddProperty from "./AddProperty";
5
- import EditProperty from "./EditProperty";
6
- import ChangeProperty from "./ChangeProperty";
7
- import AllProperties from "./AllProperties";
8
- import EditOption from "./EditOption";
9
- import { useTheme } from "@emotion/react";
10
- import { useEditorContext } from "../../../../hooks/useMouseMove";
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- const POSITIONS = {
13
- addProperty: {
14
- anchorOrigin: {
15
- vertical: "bottom",
16
- horizontal: "right"
17
- },
18
- transformOrigin: {
19
- vertical: "top",
20
- horizontal: "right"
21
- }
22
- },
23
- allProperties: {
24
- anchorOrigin: {
25
- vertical: "bottom",
26
- horizontal: "right"
27
- },
28
- transformOrigin: {
29
- vertical: "top",
30
- horizontal: "right"
31
- }
32
- }
33
- };
34
- const PropertySettings = props => {
35
- const {
36
- theme: appTheme
37
- } = useEditorContext();
38
- const theme = useTheme();
39
- const {
40
- open,
41
- anchorEl,
42
- mode,
43
- onClose,
44
- onEvent
45
- } = props;
46
- const classes = useOptionsStyles(theme, appTheme);
47
- const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
48
- const PoperComponent = isMobile ? SwipeableDrawer : Popover;
49
- const renderMode = () => {
50
- switch (mode?.type) {
51
- case "addProperty":
52
- return /*#__PURE__*/_jsx(AddProperty, {
53
- classes: classes,
54
- onClose: onClose,
55
- onEvent: onEvent,
56
- mode: mode
57
- });
58
- case "editProperty":
59
- return /*#__PURE__*/_jsx(EditProperty, {
60
- classes: classes,
61
- onClose: onClose,
62
- onEvent: onEvent,
63
- mode: mode
64
- });
65
- case "changeProperty":
66
- return /*#__PURE__*/_jsx(ChangeProperty, {
67
- classes: classes,
68
- onClose: onClose,
69
- onEvent: onEvent,
70
- mode: mode
71
- });
72
- case "allProperties":
73
- return /*#__PURE__*/_jsx(AllProperties, {
74
- classes: classes,
75
- onClose: onClose,
76
- onEvent: onEvent,
77
- mode: mode
78
- });
79
- case "editOption":
80
- return /*#__PURE__*/_jsx(EditOption, {
81
- classes: classes,
82
- onClose: onClose,
83
- onEvent: onEvent,
84
- mode: mode
85
- });
86
- default:
87
- return null;
88
- }
89
- };
90
- return /*#__PURE__*/_jsx(PoperComponent, {
91
- open: open,
92
- anchorEl: anchorEl,
93
- anchorOrigin: {
94
- vertical: "top",
95
- horizontal: "right"
96
- },
97
- transformOrigin: {
98
- vertical: "top",
99
- horizontal: "left"
100
- },
101
- onClose: onClose,
102
- anchor: "bottom",
103
- sx: classes.popover
104
- // override position
105
- ,
106
- ...(POSITIONS[mode?.type] || {}),
107
- children: renderMode()
108
- });
109
- };
110
- export default PropertySettings;
@@ -1,179 +0,0 @@
1
- const useOptionsStyles = (theme, appTheme) => ({
2
- popover: {
3
- "& .MuiPaper-root": {
4
- boxShadow: "0px 4px 10px 0px rgba(0, 0, 0, 0.16)",
5
- border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
6
- borderRadius: "12px",
7
- background: appTheme?.palette?.editor?.tv_pop_bg,
8
- color: appTheme?.palette?.editor?.tv_text_primary,
9
- [theme?.breakpoints?.between("xs", "md")]: {
10
- borderRadius: "16px 16px 0px 0px",
11
- maxHeight: "50%"
12
- },
13
- "& .tv-act-ico": {
14
- color: appTheme?.palette?.editor?.tv_text,
15
- "&.br1": {
16
- borderRadius: "6px"
17
- },
18
- "&.bg": {
19
- background: appTheme?.palette?.editor?.tv_ico_bg,
20
- "&:hover": {
21
- background: "rgba(100, 116, 139, 0.12)"
22
- }
23
- },
24
- "& svg": {
25
- width: "16px",
26
- height: "16px"
27
- }
28
- },
29
- "& .MuiInputBase-root": {
30
- color: appTheme?.palette?.editor?.tv_text_primary,
31
- fontSize: "14px",
32
- background: appTheme?.palette?.editor?.tv_input_bg,
33
- borderRadius: "8px"
34
- },
35
- "& .MuiOutlinedInput-notchedOutline": {
36
- borderRadius: "8px",
37
- border: `1px solid ${appTheme?.palette?.editor?.tv_border}`
38
- },
39
- "& .MuiList-root": {
40
- padding: "4px 2px",
41
- "& .MuiListItemButton-root": {
42
- color: appTheme?.palette?.editor?.tv_text_primary,
43
- padding: "2px 4px",
44
- borderRadius: "8px",
45
- "& .MuiListItemIcon-root": {
46
- minWidth: "38px",
47
- "&.needBg": {
48
- minWidth: "20px",
49
- width: "20px",
50
- height: "20px",
51
- alignItems: "center",
52
- justifyContent: "center",
53
- borderRadius: "4px",
54
- marginRight: "12px",
55
- background: appTheme?.palette?.editor?.tv_ico_bg
56
- },
57
- color: `${appTheme?.palette?.editor?.tv_text} !important`,
58
- "& svg": {
59
- width: "16px"
60
- }
61
- },
62
- "& .MuiTypography-root": {
63
- fontSize: "14px"
64
- },
65
- "&:hover": {
66
- background: appTheme?.palette?.editor?.tv_hover_bg,
67
- color: `${appTheme?.palette?.editor?.tv_hover_text} !important`,
68
- "& .MuiListItemIcon-root": {
69
- color: `${appTheme?.palette?.editor?.tv_hover_text} !important`
70
- }
71
- }
72
- }
73
- },
74
- "& .st": {
75
- borderTop: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
76
- marginTop: "8px",
77
- paddingTop: "8px"
78
- },
79
- "& .sb": {
80
- borderBottom: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
81
- marginBottom: "8px",
82
- paddingBottom: "8px"
83
- },
84
- "& .mt": {
85
- marginTop: "8px"
86
- },
87
- "& .mt-1": {
88
- marginTop: "12px"
89
- },
90
- "& .mb": {
91
- marginBottom: "8px"
92
- },
93
- "& .mb-1": {
94
- marginBottom: "12px"
95
- },
96
- "& .ml": {
97
- marginLeft: "8px"
98
- },
99
- "& .mb-0": {
100
- marginBottom: "0px"
101
- },
102
- "& .ml-0": {
103
- marginLeft: "0px !important"
104
- },
105
- "& .pl-0": {
106
- paddingLeft: "0px"
107
- },
108
- "& .label-desc": {},
109
- "& .MuiFormControlLabel-root": {
110
- alignItems: "flex-start",
111
- margin: "0px 0px 0px 0px",
112
- width: "100%",
113
- "& .MuiFormControlLabel-label": {
114
- marginBottom: "8px",
115
- fontSize: "14px"
116
- }
117
- },
118
- "& .label-tp": {
119
- fontFamily: '"Roboto","Helvetica","Arial",sans-serif',
120
- fontSize: "14px"
121
- },
122
- "& .MuiInputBase-input": {
123
- height: "32px",
124
- padding: "4px 8px"
125
- },
126
- "& .more-btn-cbs": {
127
- color: appTheme?.palette?.editor?.tv_text_primary
128
- }
129
- }
130
- },
131
- addProperty: {
132
- padding: "12px",
133
- width: "253px",
134
- "& .fe-dv-ap-title": {
135
- display: "flex",
136
- fontWeight: "bold",
137
- padding: "0px 0px 12px 0px",
138
- justifyContent: "space-between",
139
- fontSize: "14px",
140
- alignItems: "center",
141
- borderBottom: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
142
- marginBottom: "8px",
143
- "& span": {
144
- display: "flex",
145
- alignItems: "center"
146
- }
147
- },
148
- "& .fe-dv-ap-desc": {
149
- fontSize: "12px",
150
- color: "rgba(148, 163, 184, 1)"
151
- },
152
- "& .fe-dv-ap-opt-list": {
153
- margin: "12px 0px"
154
- },
155
- "& .fe-tv-addopt": {
156
- marginTop: "8px",
157
- paddingLeft: "4px",
158
- "& .MuiList-root": {
159
- maxHeight: "200px",
160
- overflowY: "auto"
161
- },
162
- "& .MuiFormHelperText-root": {
163
- color: "red",
164
- marginLeft: "2px",
165
- marginTop: "4px"
166
- }
167
- },
168
- "& .fe-tv-opt-sub-title": {
169
- display: "flex",
170
- alignItems: "center",
171
- justifyContent: "space-between",
172
- marginBottom: "8px"
173
- },
174
- [theme?.breakpoints?.between("xs", "md")]: {
175
- width: "100%"
176
- }
177
- }
178
- });
179
- export default useOptionsStyles;
@@ -1,112 +0,0 @@
1
- const useTableStyles = (theme, appTheme) => ({
2
- root: {
3
- border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
4
- borderRadius: "7px 7px 0px 0px",
5
- overflowX: "auto",
6
- [theme?.breakpoints?.between("xs", "md")]: {}
7
- },
8
- table: {
9
- borderCollapse: "separate",
10
- borderSpacing: 0,
11
- borderRadius: "7px 7px 0px 0px",
12
- overflow: "hidden",
13
- border: `1px solid ${appTheme?.palette?.editor?.tv_border}`,
14
- "& thead": {
15
- background: appTheme?.palette?.editor?.tv_header,
16
- height: "40px"
17
- },
18
- "& th": {
19
- "& svg": {
20
- "& .fillStroke": {
21
- stroke: appTheme?.palette?.editor?.tv_stroke
22
- }
23
- }
24
- },
25
- "& td": {
26
- height: "40px",
27
- "& input": {
28
- color: appTheme?.palette?.editor?.tv_text_primary,
29
- background: "transparent"
30
- }
31
- },
32
- "& th, tr, td": {
33
- border: `1px solid ${appTheme?.palette?.editor?.tv_border}`
34
- },
35
- "& .tv-act-btn": {
36
- color: appTheme?.palette?.editor?.tv_text,
37
- textTransform: "none",
38
- "&.ico": {
39
- "& svg": {
40
- color: appTheme?.palette?.editor?.tv_text
41
- }
42
- },
43
- "&:hover": {
44
- color: "rgba(37, 99, 235, 1)",
45
- "& svg": {
46
- color: "rgba(37, 99, 235, 1)"
47
- }
48
- }
49
- },
50
- "& .la": {
51
- justifyContent: "start"
52
- },
53
- "& .react-datepicker__input-container": {
54
- "& input": {
55
- border: "0px solid transparent"
56
- }
57
- },
58
- "& .tv-ac-field": {
59
- "&.MuiAutocomplete-root": {
60
- "& .MuiAutocomplete-inputRoot": {
61
- display: "flex",
62
- flexWrap: "nowrap",
63
- paddingTop: "3px",
64
- paddingBottom: "3px",
65
- paddingLeft: "3px",
66
- maxWidth: "250px",
67
- overflow: "hidden",
68
- position: "relative",
69
- "& .tv-ms-tag-wrpr": {
70
- display: "flex",
71
- flexWrap: "nowrap",
72
- overflow: "auto"
73
- },
74
- "&.Mui-disabled": {
75
- "& input": {
76
- display: "none"
77
- },
78
- "& .tv-ms-tag-wrpr": {
79
- "& .MuiSvgIcon-root": {
80
- display: "none"
81
- }
82
- }
83
- }
84
- },
85
- "& .MuiAutocomplete-clearIndicator": {
86
- "& svg": {
87
- color: appTheme?.palette?.editor?.tv_text
88
- }
89
- },
90
- "& .MuiAvatar-root": {
91
- width: "20px",
92
- height: "20px",
93
- marginLeft: "8px",
94
- fontSize: "16px",
95
- padding: "2px",
96
- textTransform: "capitalize"
97
- },
98
- "& .MuiChip-label": {
99
- paddingLeft: "6px",
100
- paddingRight: "8px"
101
- }
102
- }
103
- },
104
- "& .Mui-disabled": {
105
- WebkitTextFillColor: "#000 !important",
106
- "& .MuiChip-root": {
107
- opacity: 1
108
- }
109
- }
110
- }
111
- });
112
- export default useTableStyles;