@flozy/editor 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +4 -2
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +4 -2
- package/dist/Editor/Elements/Form/FieldPopup.js +4 -2
- package/dist/Editor/Elements/Form/FormField.js +2 -1
- package/dist/Editor/Elements/Grid/GridItem.js +2 -1
- package/dist/Editor/Elements/Grid/GridItemPopup.js +4 -2
- package/dist/Editor/common/StyleBuilder/index.js +2 -4
- package/package.json +1 -1
@@ -6,7 +6,8 @@ const AccordionBtnPopup = props => {
|
|
6
6
|
const {
|
7
7
|
element,
|
8
8
|
onSave,
|
9
|
-
onClose
|
9
|
+
onClose,
|
10
|
+
customProps
|
10
11
|
} = props;
|
11
12
|
return /*#__PURE__*/_jsx(StyleBuilder, {
|
12
13
|
title: "Accordion Collapse Button",
|
@@ -14,7 +15,8 @@ const AccordionBtnPopup = props => {
|
|
14
15
|
element: element,
|
15
16
|
onSave: onSave,
|
16
17
|
onClose: onClose,
|
17
|
-
renderTabs: accordionTitleBtnStyle
|
18
|
+
renderTabs: accordionTitleBtnStyle,
|
19
|
+
customProps: customProps
|
18
20
|
});
|
19
21
|
};
|
20
22
|
export default AccordionBtnPopup;
|
@@ -6,7 +6,8 @@ const AccordionTitlePopup = props => {
|
|
6
6
|
const {
|
7
7
|
element,
|
8
8
|
onSave,
|
9
|
-
onClose
|
9
|
+
onClose,
|
10
|
+
customProps
|
10
11
|
} = props;
|
11
12
|
return /*#__PURE__*/_jsx(StyleBuilder, {
|
12
13
|
title: "Accordion Title",
|
@@ -14,7 +15,8 @@ const AccordionTitlePopup = props => {
|
|
14
15
|
element: element,
|
15
16
|
onSave: onSave,
|
16
17
|
onClose: onClose,
|
17
|
-
renderTabs: accordionTitleStyle
|
18
|
+
renderTabs: accordionTitleStyle,
|
19
|
+
customProps: customProps
|
18
20
|
});
|
19
21
|
};
|
20
22
|
export default AccordionTitlePopup;
|
@@ -6,7 +6,8 @@ const FieldPopup = props => {
|
|
6
6
|
const {
|
7
7
|
element,
|
8
8
|
onSave,
|
9
|
-
onClose
|
9
|
+
onClose,
|
10
|
+
customProps
|
10
11
|
} = props;
|
11
12
|
return /*#__PURE__*/_jsx(StyleBuilder, {
|
12
13
|
title: "Form Field",
|
@@ -14,7 +15,8 @@ const FieldPopup = props => {
|
|
14
15
|
element: element,
|
15
16
|
onSave: onSave,
|
16
17
|
onClose: onClose,
|
17
|
-
renderTabs: fieldStyle
|
18
|
+
renderTabs: fieldStyle,
|
19
|
+
customProps: customProps
|
18
20
|
});
|
19
21
|
};
|
20
22
|
export default FieldPopup;
|
@@ -97,7 +97,8 @@ const FormField = props => {
|
|
97
97
|
}), openSetttings ? /*#__PURE__*/_jsx(FieldPopup, {
|
98
98
|
element: element,
|
99
99
|
onSave: onSave,
|
100
|
-
onClose: onClose
|
100
|
+
onClose: onClose,
|
101
|
+
customProps: customProps
|
101
102
|
}) : null, /*#__PURE__*/_jsx("span", {
|
102
103
|
style: {
|
103
104
|
display: "none"
|
@@ -7,7 +7,8 @@ const GridItemPopup = props => {
|
|
7
7
|
element,
|
8
8
|
onSave,
|
9
9
|
onClose,
|
10
|
-
onDelete
|
10
|
+
onDelete,
|
11
|
+
customProps
|
11
12
|
} = props;
|
12
13
|
return /*#__PURE__*/_jsx(StyleBuilder, {
|
13
14
|
title: "Grid Item",
|
@@ -16,7 +17,8 @@ const GridItemPopup = props => {
|
|
16
17
|
onSave: onSave,
|
17
18
|
onClose: onClose,
|
18
19
|
renderTabs: gridItemStyle,
|
19
|
-
onDelete: onDelete
|
20
|
+
onDelete: onDelete,
|
21
|
+
customProps: customProps
|
20
22
|
});
|
21
23
|
};
|
22
24
|
export default GridItemPopup;
|
@@ -62,9 +62,7 @@ const StyleBuilder = props => {
|
|
62
62
|
theme
|
63
63
|
} = useEditorContext();
|
64
64
|
const classes = useCommonStyle(theme);
|
65
|
-
const
|
66
|
-
isMobile = false
|
67
|
-
} = customProps;
|
65
|
+
const isMobile = customProps?.isMobile || false;
|
68
66
|
const [elementProps, setElementProps] = useState(element);
|
69
67
|
const [tab] = useState(renderTabs[0]?.value);
|
70
68
|
const tabVal = renderTabs?.find(f => f.value === tab);
|
@@ -110,7 +108,7 @@ const StyleBuilder = props => {
|
|
110
108
|
xs: 12,
|
111
109
|
sx: {
|
112
110
|
p: 2,
|
113
|
-
width: "350px"
|
111
|
+
width: isMobile ? "100%" : "350px"
|
114
112
|
},
|
115
113
|
children: [/*#__PURE__*/_jsx(DialogTitle, {
|
116
114
|
sx: {
|