@micromag/screen-keypad 0.3.663 → 0.3.665

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.
Files changed (2) hide show
  1. package/es/index.js +25 -13
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -265,7 +265,9 @@ var KeypadScreen = function KeypadScreen(_ref) {
265
265
  _ref8$largeVisual = _ref8.largeVisual,
266
266
  largeVisual = _ref8$largeVisual === void 0 ? null : _ref8$largeVisual,
267
267
  _ref8$button = _ref8.button,
268
- popupButton = _ref8$button === void 0 ? null : _ref8$button;
268
+ popupButton = _ref8$button === void 0 ? null : _ref8$button,
269
+ _ref8$popupBoxStyle = _ref8.popupBoxStyle,
270
+ singlePopupBoxStyle = _ref8$popupBoxStyle === void 0 ? null : _ref8$popupBoxStyle;
269
271
  var hasPopupHeading = isTextFilled(popupHeading);
270
272
  var _ref9 = popupHeading || {},
271
273
  _ref9$textStyle = _ref9.textStyle,
@@ -639,7 +641,7 @@ var KeypadScreen = function KeypadScreen(_ref) {
639
641
  }, /*#__PURE__*/React.createElement("div", {
640
642
  ref: popupInnerRef,
641
643
  className: classNames([styles.popupInner, styles[popupLayoutClassName], _defineProperty({}, styles.withShadow, popupBoxStyle === null)]),
642
- style: _objectSpread(_objectSpread({}, getStyleFromBox(placeholderPopupBoxStyles)), getStyleFromBox(popupBoxStyle))
644
+ style: _objectSpread(_objectSpread(_objectSpread({}, getStyleFromBox(placeholderPopupBoxStyles)), getStyleFromBox(popupBoxStyle)), getStyleFromBox(singlePopupBoxStyle))
643
645
  }, /*#__PURE__*/React.createElement(ScreenElement, {
644
646
  emptyLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
645
647
  id: "IE7U/Q",
@@ -867,7 +869,6 @@ var definition = [{
867
869
  defaultValue: {
868
870
  layout: 'content-top'
869
871
  },
870
- isList: true,
871
872
  fields: [{
872
873
  name: 'layout',
873
874
  type: 'card-layout',
@@ -898,9 +899,20 @@ var definition = [{
898
899
  "value": "Content text style"
899
900
  }]
900
901
  })
902
+ }, {
903
+ name: 'boxStyle',
904
+ type: 'box-style-form',
905
+ label: defineMessage({
906
+ id: "p1pghO",
907
+ defaultMessage: [{
908
+ "type": 0,
909
+ "value": "Box style"
910
+ }]
911
+ })
901
912
  }, {
902
913
  name: 'button',
903
914
  type: 'fields',
915
+ isList: true,
904
916
  label: defineMessage({
905
917
  id: "i6bmbD",
906
918
  defaultMessage: [{
@@ -929,16 +941,6 @@ var definition = [{
929
941
  }]
930
942
  })
931
943
  }]
932
- }, {
933
- name: 'boxStyle',
934
- type: 'box-style-form',
935
- label: defineMessage({
936
- id: "p1pghO",
937
- defaultMessage: [{
938
- "type": 0,
939
- "value": "Box style"
940
- }]
941
- })
942
944
  }]
943
945
  }]
944
946
  }, {
@@ -988,6 +990,16 @@ var definition = [{
988
990
  "value": "Visual"
989
991
  }]
990
992
  })
993
+ }, {
994
+ name: 'popupBoxStyle',
995
+ type: 'box-style-form',
996
+ label: defineMessage({
997
+ id: "p1pghO",
998
+ defaultMessage: [{
999
+ "type": 0,
1000
+ "value": "Box style"
1001
+ }]
1002
+ })
991
1003
  }, {
992
1004
  name: 'button',
993
1005
  type: 'button-link',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-keypad",
3
- "version": "0.3.663",
3
+ "version": "0.3.665",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -95,5 +95,5 @@
95
95
  "access": "public",
96
96
  "registry": "https://registry.npmjs.org/"
97
97
  },
98
- "gitHead": "7bb0a6ff3488b29b413b4614c774edc7ca1540f7"
98
+ "gitHead": "2e4418d8d3402ee7e081425a4a664a72651d43f6"
99
99
  }