@micromag/core 0.3.23 → 0.3.24
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/components.js +6 -6
- package/lib/components.js +6 -6
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -798,7 +798,7 @@ var Card = function Card(_ref) {
|
|
|
798
798
|
src: image,
|
|
799
799
|
alt: imageAlt,
|
|
800
800
|
className: classNames(['card-img-top', _defineProperty({}, imageClassName, imageClassName !== null)])
|
|
801
|
-
}) : image, beforeBody, bodyInner !== null ?
|
|
801
|
+
}) : image, beforeBody, bodyInner !== null ? onClickBody !== null ? /*#__PURE__*/React.createElement("button", {
|
|
802
802
|
type: "button",
|
|
803
803
|
className: classNames(_defineProperty({
|
|
804
804
|
'card-body': !imageOverlay,
|
|
@@ -810,15 +810,15 @@ var Card = function Card(_ref) {
|
|
|
810
810
|
'card-body': !imageOverlay,
|
|
811
811
|
'card-img-overlay': imageOverlay
|
|
812
812
|
}, bodyClassName, bodyClassName !== null))
|
|
813
|
-
}, bodyInner)
|
|
813
|
+
}, bodyInner) : null, afterBody, links !== null && linksElements !== null && !linksInSameBody ? /*#__PURE__*/React.createElement("div", {
|
|
814
814
|
className: "card-body"
|
|
815
|
-
}, linksElements) : null, footer !== null ?
|
|
815
|
+
}, linksElements) : null, footer !== null ? onClickFooter !== null ? /*#__PURE__*/React.createElement("button", {
|
|
816
816
|
type: "button",
|
|
817
817
|
className: classNames(['card-footer', _defineProperty({}, footerClassName, footerClassName !== null)]),
|
|
818
818
|
onClick: onClickFooter
|
|
819
819
|
}, /*#__PURE__*/React.createElement(Label, null, footer)) : /*#__PURE__*/React.createElement("div", {
|
|
820
820
|
className: classNames(['card-footer', _defineProperty({}, footerClassName, footerClassName !== null)])
|
|
821
|
-
}, /*#__PURE__*/React.createElement(Label, null, footer))
|
|
821
|
+
}, /*#__PURE__*/React.createElement(Label, null, footer)) : null);
|
|
822
822
|
var cardClassName = classNames(['card', (_ref10 = {}, _defineProperty(_ref10, "bg-".concat(theme), !imageOverlay && theme !== 'dark'), _defineProperty(_ref10, 'bg-dark', imageOverlay || theme === 'dark'), _defineProperty(_ref10, 'text-dark', theme === 'light'), _defineProperty(_ref10, 'text-light', imageOverlay || theme === 'dark' || theme === 'primary'), _defineProperty(_ref10, className, className !== null), _ref10)]);
|
|
823
823
|
|
|
824
824
|
if (href !== null) {
|
|
@@ -2304,11 +2304,11 @@ var Media = function Media(_ref) {
|
|
|
2304
2304
|
'align-self-center': thumbnailAlign === 'center',
|
|
2305
2305
|
'align-self-end': thumbnailAlign === 'bottom'
|
|
2306
2306
|
}, thumbnailClassName, thumbnailClassName !== null)])
|
|
2307
|
-
}) : thumbnail, /*#__PURE__*/React.createElement("div", {
|
|
2307
|
+
}) : thumbnail, title !== null || children !== null ? /*#__PURE__*/React.createElement("div", {
|
|
2308
2308
|
className: classNames(['card-body', styles$e.body, _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
2309
2309
|
}, title !== null ? /*#__PURE__*/React.createElement("h5", {
|
|
2310
2310
|
className: classNames(['mt-0', styles$e.title, _defineProperty({}, titleClassName, titleClassName !== null)])
|
|
2311
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)) : null, children));
|
|
2311
|
+
}, /*#__PURE__*/React.createElement(Label, null, title)) : null, children) : null);
|
|
2312
2312
|
};
|
|
2313
2313
|
|
|
2314
2314
|
Media.propTypes = propTypes$e;
|
package/lib/components.js
CHANGED
|
@@ -821,7 +821,7 @@ var Card = function Card(_ref) {
|
|
|
821
821
|
src: image,
|
|
822
822
|
alt: imageAlt,
|
|
823
823
|
className: classNames__default["default"](['card-img-top', _defineProperty__default["default"]({}, imageClassName, imageClassName !== null)])
|
|
824
|
-
}) : image, beforeBody, bodyInner !== null ?
|
|
824
|
+
}) : image, beforeBody, bodyInner !== null ? onClickBody !== null ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
825
825
|
type: "button",
|
|
826
826
|
className: classNames__default["default"](_defineProperty__default["default"]({
|
|
827
827
|
'card-body': !imageOverlay,
|
|
@@ -833,15 +833,15 @@ var Card = function Card(_ref) {
|
|
|
833
833
|
'card-body': !imageOverlay,
|
|
834
834
|
'card-img-overlay': imageOverlay
|
|
835
835
|
}, bodyClassName, bodyClassName !== null))
|
|
836
|
-
}, bodyInner)
|
|
836
|
+
}, bodyInner) : null, afterBody, links !== null && linksElements !== null && !linksInSameBody ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
837
837
|
className: "card-body"
|
|
838
|
-
}, linksElements) : null, footer !== null ?
|
|
838
|
+
}, linksElements) : null, footer !== null ? onClickFooter !== null ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
839
839
|
type: "button",
|
|
840
840
|
className: classNames__default["default"](['card-footer', _defineProperty__default["default"]({}, footerClassName, footerClassName !== null)]),
|
|
841
841
|
onClick: onClickFooter
|
|
842
842
|
}, /*#__PURE__*/React__default["default"].createElement(Label, null, footer)) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
843
843
|
className: classNames__default["default"](['card-footer', _defineProperty__default["default"]({}, footerClassName, footerClassName !== null)])
|
|
844
|
-
}, /*#__PURE__*/React__default["default"].createElement(Label, null, footer))
|
|
844
|
+
}, /*#__PURE__*/React__default["default"].createElement(Label, null, footer)) : null);
|
|
845
845
|
var cardClassName = classNames__default["default"](['card', (_ref10 = {}, _defineProperty__default["default"](_ref10, "bg-".concat(theme), !imageOverlay && theme !== 'dark'), _defineProperty__default["default"](_ref10, 'bg-dark', imageOverlay || theme === 'dark'), _defineProperty__default["default"](_ref10, 'text-dark', theme === 'light'), _defineProperty__default["default"](_ref10, 'text-light', imageOverlay || theme === 'dark' || theme === 'primary'), _defineProperty__default["default"](_ref10, className, className !== null), _ref10)]);
|
|
846
846
|
|
|
847
847
|
if (href !== null) {
|
|
@@ -2327,11 +2327,11 @@ var Media = function Media(_ref) {
|
|
|
2327
2327
|
'align-self-center': thumbnailAlign === 'center',
|
|
2328
2328
|
'align-self-end': thumbnailAlign === 'bottom'
|
|
2329
2329
|
}, thumbnailClassName, thumbnailClassName !== null)])
|
|
2330
|
-
}) : thumbnail, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2330
|
+
}) : thumbnail, title !== null || children !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2331
2331
|
className: classNames__default["default"](['card-body', styles$e.body, _defineProperty__default["default"]({}, bodyClassName, bodyClassName !== null)])
|
|
2332
2332
|
}, title !== null ? /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
2333
2333
|
className: classNames__default["default"](['mt-0', styles$e.title, _defineProperty__default["default"]({}, titleClassName, titleClassName !== null)])
|
|
2334
|
-
}, /*#__PURE__*/React__default["default"].createElement(Label, null, title)) : null, children));
|
|
2334
|
+
}, /*#__PURE__*/React__default["default"].createElement(Label, null, title)) : null, children) : null);
|
|
2335
2335
|
};
|
|
2336
2336
|
|
|
2337
2337
|
Media.propTypes = propTypes$e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"publishConfig": {
|
|
133
133
|
"access": "public"
|
|
134
134
|
},
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "f2d5d71a3e5c5e6d6e9d8af3bdd8a71bf38fbbb7"
|
|
136
136
|
}
|