@micromag/core 0.3.137 → 0.3.138

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 CHANGED
@@ -1570,6 +1570,8 @@ ModalsContainer.propTypes = propTypes$v;
1570
1570
  ModalsContainer.defaultProps = defaultProps$v;
1571
1571
  var Modals = withModals(ModalsContainer);
1572
1572
 
1573
+ var styles$l = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
1574
+
1573
1575
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1574
1576
  var propTypes$u = {
1575
1577
  id: PropTypes$1.string,
@@ -1654,8 +1656,6 @@ var ModalPortal = function ModalPortal(_ref) {
1654
1656
  ModalPortal.propTypes = propTypes$t;
1655
1657
  ModalPortal.defaultProps = defaultProps$t;
1656
1658
 
1657
- var styles$l = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
1658
-
1659
1659
  var propTypes$s = {
1660
1660
  id: PropTypes$1.string,
1661
1661
  title: PropTypes$1.string,
@@ -1688,7 +1688,7 @@ var Modal = function Modal(_ref) {
1688
1688
  }, /*#__PURE__*/React.createElement("div", {
1689
1689
  className: classNames([styles$l.container, _defineProperty({}, styles$l[position], position !== null)])
1690
1690
  }, /*#__PURE__*/React.createElement("div", {
1691
- className: styles$l.inner
1691
+ className: classNames([styles$l.inner, 'bg-dark'])
1692
1692
  }, children)));
1693
1693
  };
1694
1694
 
@@ -1732,7 +1732,7 @@ var ModalDialog = function ModalDialog(_ref) {
1732
1732
  }, /*#__PURE__*/React.createElement("div", {
1733
1733
  className: "modal-content"
1734
1734
  }, header || /*#__PURE__*/React.createElement("div", {
1735
- className: classNames(['modal-header', styles$k.header, {// 'bg-dark': theme === 'dark',
1735
+ className: classNames(['modal-header', 'p-2', styles$k.header, {// 'bg-dark': theme === 'dark',
1736
1736
  // 'border-dark': theme === 'dark',
1737
1737
  // 'text-light': theme === 'dark',
1738
1738
  }])
@@ -1744,8 +1744,9 @@ var ModalDialog = function ModalDialog(_ref) {
1744
1744
  "aria-label": "Close",
1745
1745
  onClick: onClickClose
1746
1746
  })), /*#__PURE__*/React.createElement("div", {
1747
- className: classNames(['modal-body', styles$k.body, {// [`bg-${theme}`]: theme !== null,
1747
+ className: classNames(['modal-body', 'p-2', styles$k.body, {// [`bg-${theme}`]: theme !== null,
1748
1748
  // 'text-light': theme === 'dark',
1749
+ // 'bg-dark': theme === 'dark',
1749
1750
  }])
1750
1751
  }, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
1751
1752
  className: classNames(['modal-footer', styles$k.footer])
package/lib/components.js CHANGED
@@ -1611,6 +1611,8 @@ ModalsContainer.propTypes = propTypes$v;
1611
1611
  ModalsContainer.defaultProps = defaultProps$v;
1612
1612
  var Modals = contexts.withModals(ModalsContainer);
1613
1613
 
1614
+ var styles$l = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
1615
+
1614
1616
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1615
1617
  var propTypes$u = {
1616
1618
  id: PropTypes__default["default"].string,
@@ -1695,8 +1697,6 @@ var ModalPortal = function ModalPortal(_ref) {
1695
1697
  ModalPortal.propTypes = propTypes$t;
1696
1698
  ModalPortal.defaultProps = defaultProps$t;
1697
1699
 
1698
- var styles$l = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
1699
-
1700
1700
  var propTypes$s = {
1701
1701
  id: PropTypes__default["default"].string,
1702
1702
  title: PropTypes__default["default"].string,
@@ -1729,7 +1729,7 @@ var Modal = function Modal(_ref) {
1729
1729
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1730
1730
  className: classNames__default["default"]([styles$l.container, _defineProperty__default["default"]({}, styles$l[position], position !== null)])
1731
1731
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1732
- className: styles$l.inner
1732
+ className: classNames__default["default"]([styles$l.inner, 'bg-dark'])
1733
1733
  }, children)));
1734
1734
  };
1735
1735
 
@@ -1773,7 +1773,7 @@ var ModalDialog = function ModalDialog(_ref) {
1773
1773
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1774
1774
  className: "modal-content"
1775
1775
  }, header || /*#__PURE__*/React__default["default"].createElement("div", {
1776
- className: classNames__default["default"](['modal-header', styles$k.header, {// 'bg-dark': theme === 'dark',
1776
+ className: classNames__default["default"](['modal-header', 'p-2', styles$k.header, {// 'bg-dark': theme === 'dark',
1777
1777
  // 'border-dark': theme === 'dark',
1778
1778
  // 'text-light': theme === 'dark',
1779
1779
  }])
@@ -1785,8 +1785,9 @@ var ModalDialog = function ModalDialog(_ref) {
1785
1785
  "aria-label": "Close",
1786
1786
  onClick: onClickClose
1787
1787
  })), /*#__PURE__*/React__default["default"].createElement("div", {
1788
- className: classNames__default["default"](['modal-body', styles$k.body, {// [`bg-${theme}`]: theme !== null,
1788
+ className: classNames__default["default"](['modal-body', 'p-2', styles$k.body, {// [`bg-${theme}`]: theme !== null,
1789
1789
  // 'text-light': theme === 'dark',
1790
+ // 'bg-dark': theme === 'dark',
1790
1791
  }])
1791
1792
  }, children), footer !== null || buttons !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
1792
1793
  className: classNames__default["default"](['modal-footer', styles$k.footer])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.137",
3
+ "version": "0.3.138",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -132,5 +132,5 @@
132
132
  "publishConfig": {
133
133
  "access": "public"
134
134
  },
135
- "gitHead": "a94963893e52f7914128182fe7e1538de79b6f20"
135
+ "gitHead": "6460d58f8b915076249a11089a5f662ac11830fa"
136
136
  }