@flozy/editor 1.4.7 → 1.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.
@@ -31,9 +31,12 @@ const Grid = props => {
31
31
  bgColor,
32
32
  alignment,
33
33
  backgroundImage,
34
- borderColor,
35
34
  size: elSize,
36
- fgColor
35
+ fgColor,
36
+ borderWidth,
37
+ borderColor,
38
+ borderStyle,
39
+ borderRadius
37
40
  } = element;
38
41
  const {
39
42
  left,
@@ -46,6 +49,12 @@ const Grid = props => {
46
49
  horizantal,
47
50
  flexDirection
48
51
  } = alignment || {};
52
+ const {
53
+ topLeft,
54
+ topRight,
55
+ bottomLeft,
56
+ bottomRight
57
+ } = borderRadius || {};
49
58
  const {
50
59
  height: elHeight
51
60
  } = elSize || {};
@@ -217,7 +226,10 @@ const Grid = props => {
217
226
  background: bgColor,
218
227
  alignContent: vertical,
219
228
  backgroundImage: backgroundImage && backgroundImage !== "none" ? `url(${backgroundImage})` : "none",
220
- border: `1px solid ${borderColor}`
229
+ borderColor: borderColor || "transparent",
230
+ borderWidth: borderWidth || "1px",
231
+ borderRadius: `${topLeft}px ${topRight}px ${bottomLeft}px ${bottomRight}px`,
232
+ borderStyle: borderStyle || "solid"
221
233
  },
222
234
  children: [fgColor && /*#__PURE__*/_jsx("div", {
223
235
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"