@micromag/core 0.3.396 → 0.3.403
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 +7 -8
- package/es/utils.js +4 -2
- package/lib/components.js +7 -8
- package/lib/utils.js +4 -2
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -1834,7 +1834,8 @@ var propTypes$r = {
|
|
|
1834
1834
|
buttons: PropTypes.buttons,
|
|
1835
1835
|
// theme: PropTypes.oneOf([null, 'dark', 'light']),
|
|
1836
1836
|
onClickClose: PropTypes$1.func,
|
|
1837
|
-
className: PropTypes$1.string
|
|
1837
|
+
className: PropTypes$1.string,
|
|
1838
|
+
bodyClassName: PropTypes$1.string
|
|
1838
1839
|
};
|
|
1839
1840
|
var defaultProps$r = {
|
|
1840
1841
|
title: null,
|
|
@@ -1844,7 +1845,8 @@ var defaultProps$r = {
|
|
|
1844
1845
|
buttons: null,
|
|
1845
1846
|
// theme: 'dark',
|
|
1846
1847
|
onClickClose: null,
|
|
1847
|
-
className: null
|
|
1848
|
+
className: null,
|
|
1849
|
+
bodyClassName: null
|
|
1848
1850
|
};
|
|
1849
1851
|
var ModalDialog = function ModalDialog(_ref) {
|
|
1850
1852
|
var title = _ref.title,
|
|
@@ -1853,7 +1855,8 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1853
1855
|
buttons = _ref.buttons,
|
|
1854
1856
|
footer = _ref.footer,
|
|
1855
1857
|
onClickClose = _ref.onClickClose,
|
|
1856
|
-
className = _ref.className
|
|
1858
|
+
className = _ref.className,
|
|
1859
|
+
bodyClassName = _ref.bodyClassName;
|
|
1857
1860
|
return /*#__PURE__*/React.createElement("div", {
|
|
1858
1861
|
className: classNames(['modal-dialog', styles$l.container, _defineProperty({}, className, className)]),
|
|
1859
1862
|
role: "dialog"
|
|
@@ -1873,11 +1876,7 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1873
1876
|
"aria-label": "Close",
|
|
1874
1877
|
onClick: onClickClose
|
|
1875
1878
|
})), /*#__PURE__*/React.createElement("div", {
|
|
1876
|
-
className: classNames(['modal-body', 'p-2', styles$l.body, {
|
|
1877
|
-
// [`bg-${theme}`]: theme !== null,
|
|
1878
|
-
// 'text-light': theme === 'dark',
|
|
1879
|
-
// 'bg-dark': theme === 'dark',
|
|
1880
|
-
}])
|
|
1879
|
+
className: classNames(['modal-body', 'p-2', styles$l.body, _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
1881
1880
|
}, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
|
|
1882
1881
|
className: classNames(['modal-footer', styles$l.footer])
|
|
1883
1882
|
}, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
package/es/utils.js
CHANGED
|
@@ -991,8 +991,10 @@ var isIos = function isIos() {
|
|
|
991
991
|
var isImageFilled = function isImageFilled(image) {
|
|
992
992
|
var _ref = image || {},
|
|
993
993
|
_ref$media = _ref.media,
|
|
994
|
-
media = _ref$media === void 0 ? null : _ref$media
|
|
995
|
-
|
|
994
|
+
media = _ref$media === void 0 ? null : _ref$media,
|
|
995
|
+
_ref$url = _ref.url,
|
|
996
|
+
url = _ref$url === void 0 ? null : _ref$url;
|
|
997
|
+
return media !== null || url !== null;
|
|
996
998
|
};
|
|
997
999
|
|
|
998
1000
|
var isTextFilled$1 = function isTextFilled(text) {
|
package/lib/components.js
CHANGED
|
@@ -1875,7 +1875,8 @@ var propTypes$r = {
|
|
|
1875
1875
|
buttons: core.PropTypes.buttons,
|
|
1876
1876
|
// theme: PropTypes.oneOf([null, 'dark', 'light']),
|
|
1877
1877
|
onClickClose: PropTypes__default["default"].func,
|
|
1878
|
-
className: PropTypes__default["default"].string
|
|
1878
|
+
className: PropTypes__default["default"].string,
|
|
1879
|
+
bodyClassName: PropTypes__default["default"].string
|
|
1879
1880
|
};
|
|
1880
1881
|
var defaultProps$r = {
|
|
1881
1882
|
title: null,
|
|
@@ -1885,7 +1886,8 @@ var defaultProps$r = {
|
|
|
1885
1886
|
buttons: null,
|
|
1886
1887
|
// theme: 'dark',
|
|
1887
1888
|
onClickClose: null,
|
|
1888
|
-
className: null
|
|
1889
|
+
className: null,
|
|
1890
|
+
bodyClassName: null
|
|
1889
1891
|
};
|
|
1890
1892
|
var ModalDialog = function ModalDialog(_ref) {
|
|
1891
1893
|
var title = _ref.title,
|
|
@@ -1894,7 +1896,8 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1894
1896
|
buttons = _ref.buttons,
|
|
1895
1897
|
footer = _ref.footer,
|
|
1896
1898
|
onClickClose = _ref.onClickClose,
|
|
1897
|
-
className = _ref.className
|
|
1899
|
+
className = _ref.className,
|
|
1900
|
+
bodyClassName = _ref.bodyClassName;
|
|
1898
1901
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1899
1902
|
className: classNames__default["default"](['modal-dialog', styles$l.container, _defineProperty__default["default"]({}, className, className)]),
|
|
1900
1903
|
role: "dialog"
|
|
@@ -1914,11 +1917,7 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1914
1917
|
"aria-label": "Close",
|
|
1915
1918
|
onClick: onClickClose
|
|
1916
1919
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1917
|
-
className: classNames__default["default"](['modal-body', 'p-2', styles$l.body, {
|
|
1918
|
-
// [`bg-${theme}`]: theme !== null,
|
|
1919
|
-
// 'text-light': theme === 'dark',
|
|
1920
|
-
// 'bg-dark': theme === 'dark',
|
|
1921
|
-
}])
|
|
1920
|
+
className: classNames__default["default"](['modal-body', 'p-2', styles$l.body, _defineProperty__default["default"]({}, bodyClassName, bodyClassName !== null)])
|
|
1922
1921
|
}, children), footer !== null || buttons !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1923
1922
|
className: classNames__default["default"](['modal-footer', styles$l.footer])
|
|
1924
1923
|
}, footer, buttons !== null ? /*#__PURE__*/React__default["default"].createElement(Buttons, {
|
package/lib/utils.js
CHANGED
|
@@ -1010,8 +1010,10 @@ var isIos = function isIos() {
|
|
|
1010
1010
|
var isImageFilled = function isImageFilled(image) {
|
|
1011
1011
|
var _ref = image || {},
|
|
1012
1012
|
_ref$media = _ref.media,
|
|
1013
|
-
media = _ref$media === void 0 ? null : _ref$media
|
|
1014
|
-
|
|
1013
|
+
media = _ref$media === void 0 ? null : _ref$media,
|
|
1014
|
+
_ref$url = _ref.url,
|
|
1015
|
+
url = _ref$url === void 0 ? null : _ref$url;
|
|
1016
|
+
return media !== null || url !== null;
|
|
1015
1017
|
};
|
|
1016
1018
|
|
|
1017
1019
|
var isTextFilled$1 = function isTextFilled(text) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.403",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -136,5 +136,5 @@
|
|
|
136
136
|
"access": "public",
|
|
137
137
|
"registry": "https://registry.npmjs.org/"
|
|
138
138
|
},
|
|
139
|
-
"gitHead": "
|
|
139
|
+
"gitHead": "3179202a6bd721978ed10d9282b904045770189b"
|
|
140
140
|
}
|