@micromag/core 0.3.135 → 0.3.140

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/es/hooks.js CHANGED
@@ -868,6 +868,7 @@ var useMediaApi = function useMediaApi() {
868
868
  }
869
869
 
870
870
  setPlaying(true);
871
+ setSuspended(false);
871
872
  }, [initialPlay, setPlaying, onPlay]);
872
873
  var onCustomPause = useCallback(function (e) {
873
874
  var eventMedia = e.currentTarget;
@@ -966,13 +967,13 @@ var useMediaApi = function useMediaApi() {
966
967
  onLoadedData();
967
968
  }
968
969
  }, [setDataReady, onLoadedData]);
969
- var onCustomSuspended = useCallback(function () {
970
+ var onCustomSuspended = useCallback(function (e) {
970
971
  setSuspended(true);
971
972
 
972
973
  if (onSuspended !== null) {
973
974
  onSuspended();
974
975
  }
975
- }, [setDataReady, onLoadedData]);
976
+ }, [setSuspended, onSuspended]);
976
977
  useEffect(function () {
977
978
  var _ref$current = ref.current,
978
979
  media = _ref$current === void 0 ? null : _ref$current; // console.log('actions', url);
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/lib/hooks.js CHANGED
@@ -904,6 +904,7 @@ var useMediaApi = function useMediaApi() {
904
904
  }
905
905
 
906
906
  setPlaying(true);
907
+ setSuspended(false);
907
908
  }, [initialPlay, setPlaying, onPlay]);
908
909
  var onCustomPause = react.useCallback(function (e) {
909
910
  var eventMedia = e.currentTarget;
@@ -1002,13 +1003,13 @@ var useMediaApi = function useMediaApi() {
1002
1003
  onLoadedData();
1003
1004
  }
1004
1005
  }, [setDataReady, onLoadedData]);
1005
- var onCustomSuspended = react.useCallback(function () {
1006
+ var onCustomSuspended = react.useCallback(function (e) {
1006
1007
  setSuspended(true);
1007
1008
 
1008
1009
  if (onSuspended !== null) {
1009
1010
  onSuspended();
1010
1011
  }
1011
- }, [setDataReady, onLoadedData]);
1012
+ }, [setSuspended, onSuspended]);
1012
1013
  react.useEffect(function () {
1013
1014
  var _ref$current = ref.current,
1014
1015
  media = _ref$current === void 0 ? null : _ref$current; // console.log('actions', url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.135",
3
+ "version": "0.3.140",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -106,7 +106,7 @@
106
106
  "@uppy/webcam": "^2.0.5",
107
107
  "@uppy/xhr-upload": "^2.0.7",
108
108
  "@use-gesture/react": "^10.2.4",
109
- "bootstrap": "^5.1.0",
109
+ "bootstrap": "5.2.0-beta1",
110
110
  "change-case": "^4.1.2",
111
111
  "classnames": "^2.2.6",
112
112
  "css-mediaquery": "^0.1.2",
@@ -132,5 +132,5 @@
132
132
  "publishConfig": {
133
133
  "access": "public"
134
134
  },
135
- "gitHead": "b9bd185aacc16b6fb5540aa113dc7872c822e279"
135
+ "gitHead": "580f0f9c5bc9d85057750f7f710bc27c933dd21a"
136
136
  }