@micromag/core 0.3.514 → 0.3.517

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.
@@ -8,9 +8,9 @@
8
8
  .micromag-core-menus-navbar-collapse{-ms-flex-preferred-size:initial;flex-basis:auto;-ms-flex-positive:initial;flex-grow:0}@media screen and (min-width:768px){.micromag-core-menus-navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1}}
9
9
 
10
10
  .micromag-core-menus-tabs-container{display:inline-block;position:relative}
11
- .micromag-core-modals-container{position:static}.micromag-core-modals-modals.micromag-core-modals-hasModals{background-color:rgba(28,28,28,.5);bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000}
11
+ .micromag-core-modals-container{position:static}.micromag-core-modals-modals.micromag-core-modals-hasModals{background-color:rgba(28,28,28,.5);bottom:10px;left:10px;position:fixed;right:10px;top:10px;z-index:1000}
12
12
  .micromag-core-modals-modal-container{display:-ms-flexbox;display:flex;height:100%;left:0;overflow-y:auto;position:absolute;top:0;width:100%}.micromag-core-modals-modal-container.micromag-core-modals-modal-center>.micromag-core-modals-modal-inner{margin:auto}.micromag-core-modals-modal-container.micromag-core-modals-modal-top>.micromag-core-modals-modal-inner{margin:0 auto;padding:1.75rem 0}
13
- .micromag-core-modals-dialog-container{border:1px solid #494949;border-radius:10px;display:block;margin:0;opacity:1;padding:0 5px}
13
+ .micromag-core-modals-dialog-container{border:1px solid #494949;border-radius:10px;display:block;opacity:1;padding:0 5px}
14
14
 
15
15
  .micromag-core-panels-container{position:static}
16
16
  .micromag-core-panels-panel-container{position:static}
package/es/components.js CHANGED
@@ -1885,7 +1885,6 @@ var propTypes$r = {
1885
1885
  footer: PropTypes$1.node,
1886
1886
  size: PropTypes$1.string,
1887
1887
  buttons: PropTypes.buttons,
1888
- // theme: PropTypes.oneOf([null, 'dark', 'light']),
1889
1888
  onClickClose: PropTypes$1.func,
1890
1889
  className: PropTypes$1.string,
1891
1890
  bodyClassName: PropTypes$1.string
@@ -1897,7 +1896,6 @@ var defaultProps$r = {
1897
1896
  footer: null,
1898
1897
  size: null,
1899
1898
  buttons: null,
1900
- // theme: 'dark',
1901
1899
  onClickClose: null,
1902
1900
  className: null,
1903
1901
  bodyClassName: null
@@ -1918,11 +1916,7 @@ var ModalDialog = function ModalDialog(_ref) {
1918
1916
  }, /*#__PURE__*/React.createElement("div", {
1919
1917
  className: "modal-content"
1920
1918
  }, header || /*#__PURE__*/React.createElement("div", {
1921
- className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header, {
1922
- // 'bg-dark': theme === 'dark',
1923
- // 'border-dark': theme === 'dark',
1924
- // 'text-light': theme === 'dark',
1925
- }])
1919
+ className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header])
1926
1920
  }, /*#__PURE__*/React.createElement("h5", {
1927
1921
  className: "modal-title"
1928
1922
  }, /*#__PURE__*/React.createElement(Label$1, null, title)), /*#__PURE__*/React.createElement("button", {
package/es/index.js CHANGED
@@ -1236,7 +1236,7 @@ var MediasParser = /*#__PURE__*/function () {
1236
1236
  value: function getFieldsPatternByScreen(type) {
1237
1237
  if (typeof this.fieldsPatternCache[type] === 'undefined') {
1238
1238
  var fields = getScreenFieldsWithStates(this.screensManager.getDefinition(type) || {});
1239
- this.fieldsPatternCache[type] = this.getFieldsPattern(fields);
1239
+ this.fieldsPatternCache[type] = this.getFieldsPattern(fields || []);
1240
1240
  }
1241
1241
  return this.fieldsPatternCache[type];
1242
1242
  }
@@ -1340,7 +1340,7 @@ var MediasParser = /*#__PURE__*/function () {
1340
1340
  value: function getFieldsPattern(fields) {
1341
1341
  var _this2 = this;
1342
1342
  var namePrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1343
- return fields.reduce(function (patterns, field) {
1343
+ return (fields || []).reduce(function (patterns, field) {
1344
1344
  var _field$name = field.name,
1345
1345
  name = _field$name === void 0 ? null : _field$name,
1346
1346
  _field$type = field.type,
@@ -1548,7 +1548,7 @@ var FontsParser = /*#__PURE__*/function () {
1548
1548
  value: function getFieldsPatternByScreen(type) {
1549
1549
  if (typeof this.fieldsPatternCache[type] === 'undefined') {
1550
1550
  var fields = getScreenFieldsWithStates(this.screensManager.getDefinition(type) || {});
1551
- this.fieldsPatternCache[type] = this.getFieldsPattern(fields);
1551
+ this.fieldsPatternCache[type] = this.getFieldsPattern(fields || []);
1552
1552
  }
1553
1553
  return this.fieldsPatternCache[type];
1554
1554
  }
@@ -1595,7 +1595,7 @@ var FontsParser = /*#__PURE__*/function () {
1595
1595
  value: function getFieldsPattern(fields) {
1596
1596
  var _this2 = this;
1597
1597
  var namePrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1598
- return fields.reduce(function (patterns, field) {
1598
+ return (fields || []).reduce(function (patterns, field) {
1599
1599
  var _field$name = field.name,
1600
1600
  name = _field$name === void 0 ? null : _field$name,
1601
1601
  _field$type = field.type,
package/lib/components.js CHANGED
@@ -2740,7 +2740,6 @@ var propTypes$r = {
2740
2740
  footer: PropTypes.node,
2741
2741
  size: PropTypes.string,
2742
2742
  buttons: core.PropTypes.buttons,
2743
- // theme: PropTypes.oneOf([null, 'dark', 'light']),
2744
2743
  onClickClose: PropTypes.func,
2745
2744
  className: PropTypes.string,
2746
2745
  bodyClassName: PropTypes.string
@@ -2752,7 +2751,6 @@ var defaultProps$r = {
2752
2751
  footer: null,
2753
2752
  size: null,
2754
2753
  buttons: null,
2755
- // theme: 'dark',
2756
2754
  onClickClose: null,
2757
2755
  className: null,
2758
2756
  bodyClassName: null
@@ -2773,11 +2771,7 @@ var ModalDialog = function ModalDialog(_ref) {
2773
2771
  }, /*#__PURE__*/React.createElement("div", {
2774
2772
  className: "modal-content"
2775
2773
  }, header || /*#__PURE__*/React.createElement("div", {
2776
- className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header, {
2777
- // 'bg-dark': theme === 'dark',
2778
- // 'border-dark': theme === 'dark',
2779
- // 'text-light': theme === 'dark',
2780
- }])
2774
+ className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header])
2781
2775
  }, /*#__PURE__*/React.createElement("h5", {
2782
2776
  className: "modal-title"
2783
2777
  }, /*#__PURE__*/React.createElement(Label$1, null, title)), /*#__PURE__*/React.createElement("button", {
package/lib/index.js CHANGED
@@ -1356,7 +1356,7 @@ var MediasParser = /*#__PURE__*/function () {
1356
1356
  value: function getFieldsPatternByScreen(type) {
1357
1357
  if (typeof this.fieldsPatternCache[type] === 'undefined') {
1358
1358
  var fields = getScreenFieldsWithStates(this.screensManager.getDefinition(type) || {});
1359
- this.fieldsPatternCache[type] = this.getFieldsPattern(fields);
1359
+ this.fieldsPatternCache[type] = this.getFieldsPattern(fields || []);
1360
1360
  }
1361
1361
  return this.fieldsPatternCache[type];
1362
1362
  }
@@ -1460,7 +1460,7 @@ var MediasParser = /*#__PURE__*/function () {
1460
1460
  value: function getFieldsPattern(fields) {
1461
1461
  var _this2 = this;
1462
1462
  var namePrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1463
- return fields.reduce(function (patterns, field) {
1463
+ return (fields || []).reduce(function (patterns, field) {
1464
1464
  var _field$name = field.name,
1465
1465
  name = _field$name === void 0 ? null : _field$name,
1466
1466
  _field$type = field.type,
@@ -1668,7 +1668,7 @@ var FontsParser = /*#__PURE__*/function () {
1668
1668
  value: function getFieldsPatternByScreen(type) {
1669
1669
  if (typeof this.fieldsPatternCache[type] === 'undefined') {
1670
1670
  var fields = getScreenFieldsWithStates(this.screensManager.getDefinition(type) || {});
1671
- this.fieldsPatternCache[type] = this.getFieldsPattern(fields);
1671
+ this.fieldsPatternCache[type] = this.getFieldsPattern(fields || []);
1672
1672
  }
1673
1673
  return this.fieldsPatternCache[type];
1674
1674
  }
@@ -1715,7 +1715,7 @@ var FontsParser = /*#__PURE__*/function () {
1715
1715
  value: function getFieldsPattern(fields) {
1716
1716
  var _this2 = this;
1717
1717
  var namePrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1718
- return fields.reduce(function (patterns, field) {
1718
+ return (fields || []).reduce(function (patterns, field) {
1719
1719
  var _field$name = field.name,
1720
1720
  name = _field$name === void 0 ? null : _field$name,
1721
1721
  _field$type = field.type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.514",
3
+ "version": "0.3.517",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -145,5 +145,5 @@
145
145
  "access": "public",
146
146
  "registry": "https://registry.npmjs.org/"
147
147
  },
148
- "gitHead": "40bbf8d97c0d912ce8be3c8caa2c70e117286fc2"
148
+ "gitHead": "31938e53d440266802a0c575af50a13b1e730ed8"
149
149
  }