@micromag/core 0.3.814 → 0.3.824

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
@@ -3146,6 +3146,7 @@ PropTypes.shape({
3146
3146
  textStyle: textStyle,
3147
3147
  boxStyle: boxStyle
3148
3148
  });
3149
+ PropTypes.oneOf(['label-bottom', 'label-top', 'no-label', 'label-over', 'label-left', 'label-right']);
3149
3150
 
3150
3151
  /* eslint-disable react/no-array-index-key */
3151
3152
  var propTypes$d = {
package/es/index.js CHANGED
@@ -632,6 +632,7 @@ var closedCaptions = PropTypes$1.shape({
632
632
  textStyle: textStyle,
633
633
  boxStyle: boxStyle
634
634
  });
635
+ var buttonLayout = PropTypes$1.oneOf(['label-bottom', 'label-top', 'no-label', 'label-over', 'label-left', 'label-right']);
635
636
 
636
637
  var PropTypes = /*#__PURE__*/Object.freeze({
637
638
  __proto__: null,
@@ -656,6 +657,7 @@ var PropTypes = /*#__PURE__*/Object.freeze({
656
657
  breadcrumb: breadcrumb,
657
658
  breadcrumbs: breadcrumbs,
658
659
  button: button,
660
+ buttonLayout: buttonLayout,
659
661
  buttonSize: buttonSize,
660
662
  buttonTheme: buttonTheme,
661
663
  buttons: buttons,
@@ -1210,7 +1212,7 @@ var FieldsManager = /*#__PURE__*/function (_DefinitionsManager) {
1210
1212
  }]);
1211
1213
  }(DefinitionsManager);
1212
1214
 
1213
- var _excluded$7 = ["medias"],
1215
+ var _excluded$8 = ["medias"],
1214
1216
  _excluded2$3 = ["medias"];
1215
1217
  var MediasParser = /*#__PURE__*/function () {
1216
1218
  function MediasParser(_ref) {
@@ -1230,7 +1232,7 @@ var MediasParser = /*#__PURE__*/function () {
1230
1232
  if (typeof this.parsedThemesCache[storyId] === 'undefined') {
1231
1233
  var _this$toPath = this.toPath(theme),
1232
1234
  themeMedias = _this$toPath.medias,
1233
- newTheme = _objectWithoutProperties(_this$toPath, _excluded$7);
1235
+ newTheme = _objectWithoutProperties(_this$toPath, _excluded$8);
1234
1236
  this.parsedThemesCache[storyId] = {
1235
1237
  themeMedias: themeMedias,
1236
1238
  newTheme: newTheme
@@ -1536,7 +1538,7 @@ var ScreensManager = /*#__PURE__*/function (_DefinitionsManager) {
1536
1538
  }]);
1537
1539
  }(DefinitionsManager);
1538
1540
 
1539
- var _excluded$6 = ["fonts"];
1541
+ var _excluded$7 = ["fonts"];
1540
1542
  var FontsParser = /*#__PURE__*/function () {
1541
1543
  function FontsParser(_ref) {
1542
1544
  var fieldsManager = _ref.fieldsManager,
@@ -1585,7 +1587,7 @@ var FontsParser = /*#__PURE__*/function () {
1585
1587
  var _this$parse = this.parse(theme),
1586
1588
  _this$parse$fonts = _this$parse.fonts,
1587
1589
  themeFonts = _this$parse$fonts === void 0 ? [] : _this$parse$fonts,
1588
- newTheme = _objectWithoutProperties(_this$parse, _excluded$6);
1590
+ newTheme = _objectWithoutProperties(_this$parse, _excluded$7);
1589
1591
  return fonts.length > 0 || themeFonts.length > 0 ? _objectSpread(_objectSpread({}, story), {}, {
1590
1592
  theme: newTheme,
1591
1593
  fonts: uniq([].concat(_toConsumableArray(themeFonts), _toConsumableArray(fonts)), 'name')
@@ -1661,7 +1663,7 @@ var FontsParser = /*#__PURE__*/function () {
1661
1663
  }]);
1662
1664
  }();
1663
1665
 
1664
- var _excluded$5 = ["shareIncentive", "callToAction"];
1666
+ var _excluded$6 = ["shareIncentive", "callToAction"];
1665
1667
  /* eslint-disable class-methods-use-this */
1666
1668
  var ShareCall = /*#__PURE__*/function () {
1667
1669
  function ShareCall() {
@@ -1688,7 +1690,7 @@ var ShareCall = /*#__PURE__*/function () {
1688
1690
  shareIncentive = _ref2$shareIncentive === void 0 ? null : _ref2$shareIncentive,
1689
1691
  _ref2$callToAction = _ref2.callToAction,
1690
1692
  callToAction = _ref2$callToAction === void 0 ? null : _ref2$callToAction,
1691
- restScreen = _objectWithoutProperties(_ref2, _excluded$5);
1693
+ restScreen = _objectWithoutProperties(_ref2, _excluded$6);
1692
1694
  var _ref3 = screen || {},
1693
1695
  _ref3$header = _ref3.header,
1694
1696
  header = _ref3$header === void 0 ? null : _ref3$header,
@@ -1717,7 +1719,7 @@ var ShareCall = /*#__PURE__*/function () {
1717
1719
  }();
1718
1720
  ShareCall.prototype.priority = 0;
1719
1721
 
1720
- var _excluded$4 = ["answers"],
1722
+ var _excluded$5 = ["answers"],
1721
1723
  _excluded2$2 = ["customAnswerLabel"];
1722
1724
  /* eslint-disable class-methods-use-this */
1723
1725
  var CustomAnswerLabel = /*#__PURE__*/function () {
@@ -1748,7 +1750,7 @@ var CustomAnswerLabel = /*#__PURE__*/function () {
1748
1750
  var _ref2 = screen || {},
1749
1751
  _ref2$answers = _ref2.answers,
1750
1752
  answers = _ref2$answers === void 0 ? null : _ref2$answers,
1751
- restScreen = _objectWithoutProperties(_ref2, _excluded$4);
1753
+ restScreen = _objectWithoutProperties(_ref2, _excluded$5);
1752
1754
  return _objectSpread(_objectSpread({}, restScreen), {}, {
1753
1755
  answers: answers.map(function () {
1754
1756
  var answer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -1768,7 +1770,7 @@ var CustomAnswerLabel = /*#__PURE__*/function () {
1768
1770
  }();
1769
1771
  CustomAnswerLabel.prototype.priority = 1;
1770
1772
 
1771
- var _excluded$3 = ["items"],
1773
+ var _excluded$4 = ["items"],
1772
1774
  _excluded2$1 = ["label", "textStyle"];
1773
1775
 
1774
1776
  /* eslint-disable class-methods-use-this */
@@ -1802,7 +1804,7 @@ var KeypadItemLabel = /*#__PURE__*/function () {
1802
1804
  var _ref2 = screen || {},
1803
1805
  _ref2$items = _ref2.items,
1804
1806
  items = _ref2$items === void 0 ? null : _ref2$items,
1805
- restScreen = _objectWithoutProperties(_ref2, _excluded$3);
1807
+ restScreen = _objectWithoutProperties(_ref2, _excluded$4);
1806
1808
  return _objectSpread(_objectSpread({}, restScreen), {}, {
1807
1809
  items: items.map(function () {
1808
1810
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -1826,12 +1828,56 @@ var KeypadItemLabel = /*#__PURE__*/function () {
1826
1828
  }();
1827
1829
  KeypadItemLabel.prototype.priority = 1;
1828
1830
 
1831
+ var _excluded$3 = ["keypadSettings"];
1832
+ /* eslint-disable class-methods-use-this */
1833
+ var KeypadSettings = /*#__PURE__*/function () {
1834
+ function KeypadSettings() {
1835
+ _classCallCheck(this, KeypadSettings);
1836
+ }
1837
+ return _createClass(KeypadSettings, [{
1838
+ key: "test",
1839
+ value: function test(screen) {
1840
+ var _ref = screen || {},
1841
+ _ref$type = _ref.type,
1842
+ type = _ref$type === void 0 ? null : _ref$type,
1843
+ _ref$keypadSettings = _ref.keypadSettings,
1844
+ keypadSettings = _ref$keypadSettings === void 0 ? null : _ref$keypadSettings;
1845
+ if (type !== 'keypad' || keypadSettings === null) {
1846
+ return false;
1847
+ }
1848
+ var _ref2 = keypadSettings || {},
1849
+ _ref2$layout = _ref2.layout,
1850
+ keypadSettingsLayout = _ref2$layout === void 0 ? null : _ref2$layout;
1851
+ if (keypadSettingsLayout === null) {
1852
+ return false;
1853
+ }
1854
+ return true;
1855
+ }
1856
+ }, {
1857
+ key: "parse",
1858
+ value: function parse(screen) {
1859
+ var _ref3 = screen || {},
1860
+ _ref3$keypadSettings = _ref3.keypadSettings,
1861
+ keypadSettings = _ref3$keypadSettings === void 0 ? null : _ref3$keypadSettings,
1862
+ restScreen = _objectWithoutProperties(_ref3, _excluded$3);
1863
+ var _ref4 = keypadSettings || {},
1864
+ _ref4$layout = _ref4.layout,
1865
+ keypadSettingsLayout = _ref4$layout === void 0 ? null : _ref4$layout;
1866
+ return _objectSpread(_objectSpread({}, restScreen), {}, {
1867
+ keypadLayout: keypadSettingsLayout
1868
+ });
1869
+ }
1870
+ }]);
1871
+ }();
1872
+ KeypadSettings.prototype.priority = 1;
1873
+
1829
1874
  // export { default as ButtonPadding } from './ButtonPadding';
1830
1875
 
1831
1876
  var migrations = /*#__PURE__*/Object.freeze({
1832
1877
  __proto__: null,
1833
1878
  CustomAnswerLabel: CustomAnswerLabel,
1834
1879
  KeypadItemLabel: KeypadItemLabel,
1880
+ KeypadSettings: KeypadSettings,
1835
1881
  ShareCall: ShareCall
1836
1882
  });
1837
1883
 
package/lib/components.js CHANGED
@@ -3148,6 +3148,7 @@ PropTypes.shape({
3148
3148
  textStyle: textStyle,
3149
3149
  boxStyle: boxStyle
3150
3150
  });
3151
+ PropTypes.oneOf(['label-bottom', 'label-top', 'no-label', 'label-over', 'label-left', 'label-right']);
3151
3152
 
3152
3153
  /* eslint-disable react/no-array-index-key */
3153
3154
  var propTypes$d = {
package/lib/index.js CHANGED
@@ -634,6 +634,7 @@ var closedCaptions = PropTypes$1.shape({
634
634
  textStyle: textStyle,
635
635
  boxStyle: boxStyle
636
636
  });
637
+ var buttonLayout = PropTypes$1.oneOf(['label-bottom', 'label-top', 'no-label', 'label-over', 'label-left', 'label-right']);
637
638
 
638
639
  var PropTypes = /*#__PURE__*/Object.freeze({
639
640
  __proto__: null,
@@ -658,6 +659,7 @@ var PropTypes = /*#__PURE__*/Object.freeze({
658
659
  breadcrumb: breadcrumb,
659
660
  breadcrumbs: breadcrumbs,
660
661
  button: button,
662
+ buttonLayout: buttonLayout,
661
663
  buttonSize: buttonSize,
662
664
  buttonTheme: buttonTheme,
663
665
  buttons: buttons,
@@ -1212,7 +1214,7 @@ var FieldsManager = /*#__PURE__*/function (_DefinitionsManager) {
1212
1214
  }]);
1213
1215
  }(DefinitionsManager);
1214
1216
 
1215
- var _excluded$7 = ["medias"],
1217
+ var _excluded$8 = ["medias"],
1216
1218
  _excluded2$3 = ["medias"];
1217
1219
  var MediasParser = /*#__PURE__*/function () {
1218
1220
  function MediasParser(_ref) {
@@ -1232,7 +1234,7 @@ var MediasParser = /*#__PURE__*/function () {
1232
1234
  if (typeof this.parsedThemesCache[storyId] === 'undefined') {
1233
1235
  var _this$toPath = this.toPath(theme),
1234
1236
  themeMedias = _this$toPath.medias,
1235
- newTheme = _objectWithoutProperties(_this$toPath, _excluded$7);
1237
+ newTheme = _objectWithoutProperties(_this$toPath, _excluded$8);
1236
1238
  this.parsedThemesCache[storyId] = {
1237
1239
  themeMedias: themeMedias,
1238
1240
  newTheme: newTheme
@@ -1538,7 +1540,7 @@ var ScreensManager = /*#__PURE__*/function (_DefinitionsManager) {
1538
1540
  }]);
1539
1541
  }(DefinitionsManager);
1540
1542
 
1541
- var _excluded$6 = ["fonts"];
1543
+ var _excluded$7 = ["fonts"];
1542
1544
  var FontsParser = /*#__PURE__*/function () {
1543
1545
  function FontsParser(_ref) {
1544
1546
  var fieldsManager = _ref.fieldsManager,
@@ -1587,7 +1589,7 @@ var FontsParser = /*#__PURE__*/function () {
1587
1589
  var _this$parse = this.parse(theme),
1588
1590
  _this$parse$fonts = _this$parse.fonts,
1589
1591
  themeFonts = _this$parse$fonts === void 0 ? [] : _this$parse$fonts,
1590
- newTheme = _objectWithoutProperties(_this$parse, _excluded$6);
1592
+ newTheme = _objectWithoutProperties(_this$parse, _excluded$7);
1591
1593
  return fonts.length > 0 || themeFonts.length > 0 ? _objectSpread(_objectSpread({}, story), {}, {
1592
1594
  theme: newTheme,
1593
1595
  fonts: uniq([].concat(_toConsumableArray(themeFonts), _toConsumableArray(fonts)), 'name')
@@ -1663,7 +1665,7 @@ var FontsParser = /*#__PURE__*/function () {
1663
1665
  }]);
1664
1666
  }();
1665
1667
 
1666
- var _excluded$5 = ["shareIncentive", "callToAction"];
1668
+ var _excluded$6 = ["shareIncentive", "callToAction"];
1667
1669
  /* eslint-disable class-methods-use-this */
1668
1670
  var ShareCall = /*#__PURE__*/function () {
1669
1671
  function ShareCall() {
@@ -1690,7 +1692,7 @@ var ShareCall = /*#__PURE__*/function () {
1690
1692
  shareIncentive = _ref2$shareIncentive === void 0 ? null : _ref2$shareIncentive,
1691
1693
  _ref2$callToAction = _ref2.callToAction,
1692
1694
  callToAction = _ref2$callToAction === void 0 ? null : _ref2$callToAction,
1693
- restScreen = _objectWithoutProperties(_ref2, _excluded$5);
1695
+ restScreen = _objectWithoutProperties(_ref2, _excluded$6);
1694
1696
  var _ref3 = screen || {},
1695
1697
  _ref3$header = _ref3.header,
1696
1698
  header = _ref3$header === void 0 ? null : _ref3$header,
@@ -1719,7 +1721,7 @@ var ShareCall = /*#__PURE__*/function () {
1719
1721
  }();
1720
1722
  ShareCall.prototype.priority = 0;
1721
1723
 
1722
- var _excluded$4 = ["answers"],
1724
+ var _excluded$5 = ["answers"],
1723
1725
  _excluded2$2 = ["customAnswerLabel"];
1724
1726
  /* eslint-disable class-methods-use-this */
1725
1727
  var CustomAnswerLabel = /*#__PURE__*/function () {
@@ -1750,7 +1752,7 @@ var CustomAnswerLabel = /*#__PURE__*/function () {
1750
1752
  var _ref2 = screen || {},
1751
1753
  _ref2$answers = _ref2.answers,
1752
1754
  answers = _ref2$answers === void 0 ? null : _ref2$answers,
1753
- restScreen = _objectWithoutProperties(_ref2, _excluded$4);
1755
+ restScreen = _objectWithoutProperties(_ref2, _excluded$5);
1754
1756
  return _objectSpread(_objectSpread({}, restScreen), {}, {
1755
1757
  answers: answers.map(function () {
1756
1758
  var answer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -1770,7 +1772,7 @@ var CustomAnswerLabel = /*#__PURE__*/function () {
1770
1772
  }();
1771
1773
  CustomAnswerLabel.prototype.priority = 1;
1772
1774
 
1773
- var _excluded$3 = ["items"],
1775
+ var _excluded$4 = ["items"],
1774
1776
  _excluded2$1 = ["label", "textStyle"];
1775
1777
 
1776
1778
  /* eslint-disable class-methods-use-this */
@@ -1804,7 +1806,7 @@ var KeypadItemLabel = /*#__PURE__*/function () {
1804
1806
  var _ref2 = screen || {},
1805
1807
  _ref2$items = _ref2.items,
1806
1808
  items = _ref2$items === void 0 ? null : _ref2$items,
1807
- restScreen = _objectWithoutProperties(_ref2, _excluded$3);
1809
+ restScreen = _objectWithoutProperties(_ref2, _excluded$4);
1808
1810
  return _objectSpread(_objectSpread({}, restScreen), {}, {
1809
1811
  items: items.map(function () {
1810
1812
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -1828,12 +1830,56 @@ var KeypadItemLabel = /*#__PURE__*/function () {
1828
1830
  }();
1829
1831
  KeypadItemLabel.prototype.priority = 1;
1830
1832
 
1833
+ var _excluded$3 = ["keypadSettings"];
1834
+ /* eslint-disable class-methods-use-this */
1835
+ var KeypadSettings = /*#__PURE__*/function () {
1836
+ function KeypadSettings() {
1837
+ _classCallCheck(this, KeypadSettings);
1838
+ }
1839
+ return _createClass(KeypadSettings, [{
1840
+ key: "test",
1841
+ value: function test(screen) {
1842
+ var _ref = screen || {},
1843
+ _ref$type = _ref.type,
1844
+ type = _ref$type === void 0 ? null : _ref$type,
1845
+ _ref$keypadSettings = _ref.keypadSettings,
1846
+ keypadSettings = _ref$keypadSettings === void 0 ? null : _ref$keypadSettings;
1847
+ if (type !== 'keypad' || keypadSettings === null) {
1848
+ return false;
1849
+ }
1850
+ var _ref2 = keypadSettings || {},
1851
+ _ref2$layout = _ref2.layout,
1852
+ keypadSettingsLayout = _ref2$layout === void 0 ? null : _ref2$layout;
1853
+ if (keypadSettingsLayout === null) {
1854
+ return false;
1855
+ }
1856
+ return true;
1857
+ }
1858
+ }, {
1859
+ key: "parse",
1860
+ value: function parse(screen) {
1861
+ var _ref3 = screen || {},
1862
+ _ref3$keypadSettings = _ref3.keypadSettings,
1863
+ keypadSettings = _ref3$keypadSettings === void 0 ? null : _ref3$keypadSettings,
1864
+ restScreen = _objectWithoutProperties(_ref3, _excluded$3);
1865
+ var _ref4 = keypadSettings || {},
1866
+ _ref4$layout = _ref4.layout,
1867
+ keypadSettingsLayout = _ref4$layout === void 0 ? null : _ref4$layout;
1868
+ return _objectSpread(_objectSpread({}, restScreen), {}, {
1869
+ keypadLayout: keypadSettingsLayout
1870
+ });
1871
+ }
1872
+ }]);
1873
+ }();
1874
+ KeypadSettings.prototype.priority = 1;
1875
+
1831
1876
  // export { default as ButtonPadding } from './ButtonPadding';
1832
1877
 
1833
1878
  var migrations = /*#__PURE__*/Object.freeze({
1834
1879
  __proto__: null,
1835
1880
  CustomAnswerLabel: CustomAnswerLabel,
1836
1881
  KeypadItemLabel: KeypadItemLabel,
1882
+ KeypadSettings: KeypadSettings,
1837
1883
  ShareCall: ShareCall
1838
1884
  });
1839
1885
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.814",
3
+ "version": "0.3.824",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -168,5 +168,5 @@
168
168
  "access": "public",
169
169
  "registry": "https://registry.npmjs.org/"
170
170
  },
171
- "gitHead": "96d19c8ede8dc2e8c051ba118975258e061a8da2"
171
+ "gitHead": "e266e480cdc5741c73160840affee2eac7e7c9de"
172
172
  }