@micromag/element-button 0.3.178 → 0.3.182
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 -2
- package/lib/index.js +4 -2
- 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;padding:5px 10px;border-radius:0;background-clip:padding-box;background-color:hsla(0,0%,100%,.1)}.micromag-element-button-container.micromag-element-button-
|
|
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-clip:padding-box;background-color:hsla(0,0%,100%,.1)}.micromag-element-button-container.micromag-element-button-disabled,.micromag-element-button-container:disabled{cursor:auto}.micromag-element-button-border{display:block}
|
package/es/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { PropTypes } from '@micromag/core';
|
|
|
8
8
|
import { Button as Button$1 } from '@micromag/core/components';
|
|
9
9
|
import { getStyleFromText, getStyleFromBox } from '@micromag/core/utils';
|
|
10
10
|
|
|
11
|
-
var styles = {"container":"micromag-element-button-container","
|
|
11
|
+
var styles = {"container":"micromag-element-button-container","disabled":"micromag-element-button-disabled","border":"micromag-element-button-border"};
|
|
12
12
|
|
|
13
13
|
var _excluded = ["textStyle", "buttonStyle", "type", "disabled", "focusable", "inline", "onClick", "children", "className", "withoutExternalBorder", "refButton"],
|
|
14
14
|
_excluded2 = ["body"];
|
|
@@ -92,7 +92,9 @@ var Button = function Button(_ref) {
|
|
|
92
92
|
onClick: onClick,
|
|
93
93
|
refButton: refButton,
|
|
94
94
|
type: type,
|
|
95
|
-
focusable: focusable
|
|
95
|
+
focusable: focusable,
|
|
96
|
+
withoutBoostrapStyles: true // @todo viewer should not be embarking any BS styles
|
|
97
|
+
|
|
96
98
|
}, otherProps), children);
|
|
97
99
|
};
|
|
98
100
|
|
package/lib/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
19
19
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
21
|
|
|
22
|
-
var styles = {"container":"micromag-element-button-container","
|
|
22
|
+
var styles = {"container":"micromag-element-button-container","disabled":"micromag-element-button-disabled","border":"micromag-element-button-border"};
|
|
23
23
|
|
|
24
24
|
var _excluded = ["textStyle", "buttonStyle", "type", "disabled", "focusable", "inline", "onClick", "children", "className", "withoutExternalBorder", "refButton"],
|
|
25
25
|
_excluded2 = ["body"];
|
|
@@ -103,7 +103,9 @@ var Button = function Button(_ref) {
|
|
|
103
103
|
onClick: onClick,
|
|
104
104
|
refButton: refButton,
|
|
105
105
|
type: type,
|
|
106
|
-
focusable: focusable
|
|
106
|
+
focusable: focusable,
|
|
107
|
+
withoutBoostrapStyles: true // @todo viewer should not be embarking any BS styles
|
|
108
|
+
|
|
107
109
|
}, otherProps), children);
|
|
108
110
|
};
|
|
109
111
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.182",
|
|
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.3.
|
|
52
|
+
"@micromag/core": "^0.3.182",
|
|
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": "3fdd215df2c83f292063fba88077d88be5718955"
|
|
62
62
|
}
|