@micromag/element-text-input 0.2.405 → 0.3.0

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/index.js CHANGED
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import classNames from 'classnames';
6
6
  import { PropTypes as PropTypes$1 } from '@micromag/core';
7
- import { getStyleFromMargin, getStyleFromText, getStyleFromButton } from '@micromag/core/utils';
7
+ import { getStyleFromMargin, getStyleFromText, getStyleFromBox } from '@micromag/core/utils';
8
8
 
9
9
  var styles = {"container":"micromag-element-text-input-container","element":"micromag-element-text-input-element"};
10
10
 
@@ -13,7 +13,7 @@ var propTypes = {
13
13
  labelOutside: PropTypes.bool,
14
14
  labelClassName: PropTypes.string,
15
15
  textStyle: PropTypes$1.textStyle,
16
- buttonStyle: PropTypes$1.buttonStyle,
16
+ buttonStyle: PropTypes$1.boxStyle,
17
17
  labelOutsideStyle: PropTypes$1.textStyle,
18
18
  margin: PropTypes$1.margin,
19
19
  multiline: PropTypes.bool,
@@ -81,7 +81,7 @@ var TextInput = function TextInput(_ref) {
81
81
  }
82
82
 
83
83
  if (buttonStyle !== null) {
84
- elementStyle = _objectSpread(_objectSpread({}, elementStyle), getStyleFromButton(buttonStyle));
84
+ elementStyle = _objectSpread(_objectSpread({}, elementStyle), getStyleFromBox(buttonStyle));
85
85
  }
86
86
 
87
87
  var containerProps = {
package/lib/index.js CHANGED
@@ -23,7 +23,7 @@ var propTypes = {
23
23
  labelOutside: PropTypes__default["default"].bool,
24
24
  labelClassName: PropTypes__default["default"].string,
25
25
  textStyle: core.PropTypes.textStyle,
26
- buttonStyle: core.PropTypes.buttonStyle,
26
+ buttonStyle: core.PropTypes.boxStyle,
27
27
  labelOutsideStyle: core.PropTypes.textStyle,
28
28
  margin: core.PropTypes.margin,
29
29
  multiline: PropTypes__default["default"].bool,
@@ -91,7 +91,7 @@ var TextInput = function TextInput(_ref) {
91
91
  }
92
92
 
93
93
  if (buttonStyle !== null) {
94
- elementStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, elementStyle), utils.getStyleFromButton(buttonStyle));
94
+ elementStyle = _objectSpread__default["default"](_objectSpread__default["default"]({}, elementStyle), utils.getStyleFromBox(buttonStyle));
95
95
  }
96
96
 
97
97
  var containerProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-text-input",
3
- "version": "0.2.405",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.2.405",
52
+ "@micromag/core": "^0.3.0",
53
53
  "classnames": "^2.2.6",
54
54
  "prop-types": "^15.7.2"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "e3d172d92d78222d5307cc1513fee7eef9f28402"
59
+ "gitHead": "729bcf44dc4f99a2afec77fbdac86454e1cdf79f"
60
60
  }