@micromag/element-button 0.3.827 → 0.3.828
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/es/index.js +5 -5
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -196,7 +196,6 @@ var RichButton = function RichButton(_ref) {
|
|
|
196
196
|
var finalLayout = hasVisual ? layout : null;
|
|
197
197
|
return /*#__PURE__*/React.createElement(Tag, Object.assign({
|
|
198
198
|
type: type,
|
|
199
|
-
textStyle: textStyle,
|
|
200
199
|
buttonStyle: buttonStyle,
|
|
201
200
|
disabled: disabled,
|
|
202
201
|
focusable: focusable,
|
|
@@ -224,11 +223,12 @@ var RichButton = function RichButton(_ref) {
|
|
|
224
223
|
className: classNames([styles.visual, _defineProperty({}, visualClassName, visualClassName !== null)]),
|
|
225
224
|
imageClassName: classNames([styles.image, _defineProperty({}, imageClassName, imageClassName !== null)]),
|
|
226
225
|
videoClassName: classNames([styles.video, _defineProperty({}, videoClassName, videoClassName !== null)])
|
|
227
|
-
}) : null, hasBody && showLabel ? /*#__PURE__*/React.createElement(Text,
|
|
228
|
-
boxStyle: labelBoxStyle
|
|
229
|
-
|
|
226
|
+
}) : null, hasBody && showLabel ? /*#__PURE__*/React.createElement(Text, {
|
|
227
|
+
boxStyle: labelBoxStyle,
|
|
228
|
+
textStyle: textStyle,
|
|
229
|
+
body: body,
|
|
230
230
|
className: classNames([styles.text, _defineProperty({}, textClassName, textClassName !== null)])
|
|
231
|
-
})
|
|
231
|
+
}) : null, children));
|
|
232
232
|
};
|
|
233
233
|
RichButton.propTypes = propTypes;
|
|
234
234
|
RichButton.defaultProps = defaultProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.828",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public",
|
|
72
72
|
"registry": "https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "3e773f89434e8af4baa8b0044edb070a16c67870"
|
|
75
75
|
}
|