@micromag/element-button 0.2.325 → 0.2.352
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 +1 -1
- package/lib/index.js +12 -12
- package/package.json +3 -3
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-element-button-container{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none
|
|
1
|
+
.micromag-element-button-container{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:5px 10px;border-radius:0;background-color:hsla(0,0%,100%,.1)}.micromag-element-button-container.micromag-element-button-active,.micromag-element-button-container.micromag-element-button-focus,.micromag-element-button-container:active,.micromag-element-button-container:focus{-webkit-box-shadow:none!important;box-shadow:none!important}.micromag-element-button-container.micromag-element-button-disabled,.micromag-element-button-container:disabled{cursor:auto}
|
package/es/index.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -22,14 +22,14 @@ var styles = {"container":"micromag-element-button-container","active":"micromag
|
|
|
22
22
|
var propTypes = {
|
|
23
23
|
textStyle: core.PropTypes.textStyle,
|
|
24
24
|
buttonStyle: core.PropTypes.buttonStyle,
|
|
25
|
-
type: PropTypes__default[
|
|
26
|
-
disabled: PropTypes__default[
|
|
27
|
-
focusable: PropTypes__default[
|
|
28
|
-
onClick: PropTypes__default[
|
|
29
|
-
children: PropTypes__default[
|
|
30
|
-
className: PropTypes__default[
|
|
31
|
-
refButton: PropTypes__default[
|
|
32
|
-
current: PropTypes__default[
|
|
25
|
+
type: PropTypes__default["default"].oneOf(['button', 'submit']),
|
|
26
|
+
disabled: PropTypes__default["default"].bool,
|
|
27
|
+
focusable: PropTypes__default["default"].bool,
|
|
28
|
+
onClick: PropTypes__default["default"].func,
|
|
29
|
+
children: PropTypes__default["default"].node,
|
|
30
|
+
className: PropTypes__default["default"].string,
|
|
31
|
+
refButton: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].shape({
|
|
32
|
+
current: PropTypes__default["default"].any // eslint-disable-line
|
|
33
33
|
|
|
34
34
|
})])
|
|
35
35
|
};
|
|
@@ -58,15 +58,15 @@ var Button = function Button(_ref) {
|
|
|
58
58
|
var finalStyle = null;
|
|
59
59
|
|
|
60
60
|
if (textStyle !== null) {
|
|
61
|
-
finalStyle = _objectSpread__default[
|
|
61
|
+
finalStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, finalStyle), utils.getStyleFromText(textStyle));
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
if (buttonStyle !== null) {
|
|
65
|
-
finalStyle = _objectSpread__default[
|
|
65
|
+
finalStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, finalStyle), utils.getStyleFromButton(buttonStyle));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return /*#__PURE__*/React__default[
|
|
69
|
-
className: classNames__default[
|
|
68
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Button, {
|
|
69
|
+
className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)]),
|
|
70
70
|
disabled: disabled,
|
|
71
71
|
style: finalStyle,
|
|
72
72
|
onClick: onClick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-button",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.352",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.2.
|
|
52
|
+
"@micromag/core": "^0.2.352",
|
|
53
53
|
"classnames": "^2.2.6",
|
|
54
54
|
"prop-types": "^15.7.2",
|
|
55
55
|
"react-intl": "^5.12.1",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b80e8d43c1228b698516257f97aece96a57c80c7"
|
|
62
62
|
}
|