@micromag/element-share-incentive 0.3.311 → 0.3.322
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.
- package/assets/css/styles.css +1 -1
- package/es/index.js +4 -8
- package/lib/index.js +4 -8
- package/package.json +5 -5
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-element-share-incentive-box{display:inline-block;position:relative}.micromag-element-share-incentive-tip{
|
|
1
|
+
.micromag-element-share-incentive-box{display:inline-block;position:relative}.micromag-element-share-incentive-tip{bottom:100%;height:auto;left:20px;position:absolute;width:30px}
|
package/es/index.js
CHANGED
|
@@ -19,16 +19,13 @@ var defaultProps = {
|
|
|
19
19
|
label: null,
|
|
20
20
|
boxStyle: null
|
|
21
21
|
};
|
|
22
|
-
|
|
23
22
|
var ShareIncentive = function ShareIncentive(_ref) {
|
|
24
23
|
var className = _ref.className,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
label = _ref.label,
|
|
25
|
+
boxStyle = _ref.boxStyle;
|
|
28
26
|
var _ref2 = boxStyle || {},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
_ref2$backgroundColor = _ref2.backgroundColor,
|
|
28
|
+
backgroundColor = _ref2$backgroundColor === void 0 ? null : _ref2$backgroundColor;
|
|
32
29
|
var bgColor = getColorAsString(backgroundColor);
|
|
33
30
|
return /*#__PURE__*/React.createElement("div", {
|
|
34
31
|
className: classNames([styles.container, _defineProperty({}, className, className !== null)])
|
|
@@ -46,7 +43,6 @@ var ShareIncentive = function ShareIncentive(_ref) {
|
|
|
46
43
|
className: styles.text
|
|
47
44
|
}, label))));
|
|
48
45
|
};
|
|
49
|
-
|
|
50
46
|
ShareIncentive.propTypes = propTypes;
|
|
51
47
|
ShareIncentive.defaultProps = defaultProps;
|
|
52
48
|
|
package/lib/index.js
CHANGED
|
@@ -30,16 +30,13 @@ var defaultProps = {
|
|
|
30
30
|
label: null,
|
|
31
31
|
boxStyle: null
|
|
32
32
|
};
|
|
33
|
-
|
|
34
33
|
var ShareIncentive = function ShareIncentive(_ref) {
|
|
35
34
|
var className = _ref.className,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
label = _ref.label,
|
|
36
|
+
boxStyle = _ref.boxStyle;
|
|
39
37
|
var _ref2 = boxStyle || {},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
_ref2$backgroundColor = _ref2.backgroundColor,
|
|
39
|
+
backgroundColor = _ref2$backgroundColor === void 0 ? null : _ref2$backgroundColor;
|
|
43
40
|
var bgColor = utils.getColorAsString(backgroundColor);
|
|
44
41
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45
42
|
className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)])
|
|
@@ -57,7 +54,6 @@ var ShareIncentive = function ShareIncentive(_ref) {
|
|
|
57
54
|
className: styles.text
|
|
58
55
|
}, label))));
|
|
59
56
|
};
|
|
60
|
-
|
|
61
57
|
ShareIncentive.propTypes = propTypes;
|
|
62
58
|
ShareIncentive.defaultProps = defaultProps;
|
|
63
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-share-incentive",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.322",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-text": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.322",
|
|
53
|
+
"@micromag/element-text": "^0.3.322",
|
|
54
54
|
"classnames": "^2.2.6",
|
|
55
55
|
"prop-types": "^15.7.2",
|
|
56
56
|
"react-intl": "^5.12.1",
|
|
57
|
-
"uuid": "^
|
|
57
|
+
"uuid": "^9.0.0"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "2dfe09ad5a9ac720e4bfbffcb6371fc31c24fa9f"
|
|
63
63
|
}
|