@fonixtree/magic-design 0.0.41 → 0.0.42

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.
@@ -71,14 +71,14 @@ function (_super) {
71
71
  return /*#__PURE__*/_react["default"].createElement("img", {
72
72
  key: label.imgUrl || label.labelPictureUrl,
73
73
  alt: "img",
74
- className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + label.position] = true, _a.small = small, _a)),
74
+ className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + (label.position || 'default')] = true, _a.small = small, _a)),
75
75
  src: label.imgUrl || label.labelPictureUrl
76
76
  });
77
77
  }
78
78
 
79
79
  return /*#__PURE__*/_react["default"].createElement("div", {
80
80
  key: label.labelName,
81
- className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + label.position] = true, _b))
81
+ className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + (label.position || 'default')] = true, _b))
82
82
  }, label.labelName);
83
83
  });
84
84
  };
@@ -1,4 +1,3 @@
1
-
2
1
  .image-label-wrap {
3
2
  position: absolute;
4
3
  z-index: 1;
@@ -13,7 +12,8 @@
13
12
  }
14
13
  }
15
14
 
16
- &.position-1 {
15
+ &.position-1,
16
+ &.position-default {
17
17
  top: 0;
18
18
  left: 0;
19
19
  }
@@ -32,4 +32,4 @@
32
32
  bottom: 0;
33
33
  right: 0;
34
34
  }
35
- }
35
+ }
@@ -71,14 +71,14 @@ function (_super) {
71
71
  return /*#__PURE__*/_react["default"].createElement("img", {
72
72
  key: label.imgUrl || label.labelPictureUrl,
73
73
  alt: "img",
74
- className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + label.position] = true, _a.small = small, _a)),
74
+ className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + (label.position || 'default')] = true, _a.small = small, _a)),
75
75
  src: label.imgUrl || label.labelPictureUrl
76
76
  });
77
77
  }
78
78
 
79
79
  return /*#__PURE__*/_react["default"].createElement("div", {
80
80
  key: label.labelName,
81
- className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + label.position] = true, _b))
81
+ className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + (label.position || 'default')] = true, _b))
82
82
  }, label.labelName);
83
83
  });
84
84
  };
@@ -1,4 +1,3 @@
1
-
2
1
  .image-label-wrap {
3
2
  position: absolute;
4
3
  z-index: 1;
@@ -13,7 +12,8 @@
13
12
  }
14
13
  }
15
14
 
16
- &.position-1 {
15
+ &.position-1,
16
+ &.position-default {
17
17
  top: 0;
18
18
  left: 0;
19
19
  }
@@ -32,4 +32,4 @@
32
32
  bottom: 0;
33
33
  right: 0;
34
34
  }
35
- }
35
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.41",
4
+ "version": "0.0.42",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",