@panneau/field-text 3.0.182 → 3.0.183

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
@@ -51,6 +51,7 @@ var propTypes$5 = {
51
51
  inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
52
52
  current: PropTypes.any // eslint-disable-line
53
53
  })]),
54
+ style: PropTypes.shape({}),
54
55
  className: PropTypes.string
55
56
  };
56
57
  var defaultProps$5 = {
@@ -75,6 +76,7 @@ var defaultProps$5 = {
75
76
  max: null,
76
77
  dataList: null,
77
78
  inputRef: null,
79
+ style: null,
78
80
  className: null
79
81
  };
80
82
  var InputField = function InputField(_ref) {
@@ -99,6 +101,7 @@ var InputField = function InputField(_ref) {
99
101
  max = _ref.max,
100
102
  dataList = _ref.dataList,
101
103
  inputRef = _ref.inputRef,
104
+ style = _ref.style,
102
105
  className = _ref.className;
103
106
  var dataListId = useMemo(function () {
104
107
  return dataList !== null ? v1() : null;
@@ -129,7 +132,11 @@ var InputField = function InputField(_ref) {
129
132
  };
130
133
  elProps.horizontal;
131
134
  var cleanProps = _objectWithoutProperties(elProps, _excluded);
132
- var inputElement = type !== 'textarea' ? /*#__PURE__*/React.createElement("input", cleanProps) : /*#__PURE__*/React.createElement("textarea", cleanProps);
135
+ var inputElement = type !== 'textarea' ? /*#__PURE__*/React.createElement("input", Object.assign({}, cleanProps, {
136
+ style: style
137
+ })) : /*#__PURE__*/React.createElement("textarea", Object.assign({
138
+ style: style
139
+ }, cleanProps));
133
140
  var withInputGroup = prepend !== null || append !== null;
134
141
  return /*#__PURE__*/React.createElement(React.Fragment, null, withInputGroup ? /*#__PURE__*/React.createElement(InputGroup, {
135
142
  prepend: prepend,
package/lib/index.js CHANGED
@@ -55,6 +55,7 @@ var propTypes$5 = {
55
55
  inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
56
56
  current: PropTypes.any // eslint-disable-line
57
57
  })]),
58
+ style: PropTypes.shape({}),
58
59
  className: PropTypes.string
59
60
  };
60
61
  var defaultProps$5 = {
@@ -79,6 +80,7 @@ var defaultProps$5 = {
79
80
  max: null,
80
81
  dataList: null,
81
82
  inputRef: null,
83
+ style: null,
82
84
  className: null
83
85
  };
84
86
  var InputField = function InputField(_ref) {
@@ -103,6 +105,7 @@ var InputField = function InputField(_ref) {
103
105
  max = _ref.max,
104
106
  dataList = _ref.dataList,
105
107
  inputRef = _ref.inputRef,
108
+ style = _ref.style,
106
109
  className = _ref.className;
107
110
  var dataListId = React.useMemo(function () {
108
111
  return dataList !== null ? uuid.v1() : null;
@@ -133,7 +136,11 @@ var InputField = function InputField(_ref) {
133
136
  };
134
137
  elProps.horizontal;
135
138
  var cleanProps = _objectWithoutProperties(elProps, _excluded);
136
- var inputElement = type !== 'textarea' ? /*#__PURE__*/React.createElement("input", cleanProps) : /*#__PURE__*/React.createElement("textarea", cleanProps);
139
+ var inputElement = type !== 'textarea' ? /*#__PURE__*/React.createElement("input", Object.assign({}, cleanProps, {
140
+ style: style
141
+ })) : /*#__PURE__*/React.createElement("textarea", Object.assign({
142
+ style: style
143
+ }, cleanProps));
137
144
  var withInputGroup = prepend !== null || append !== null;
138
145
  return /*#__PURE__*/React.createElement(React.Fragment, null, withInputGroup ? /*#__PURE__*/React.createElement(InputGroup, {
139
146
  prepend: prepend,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-text",
3
- "version": "3.0.182",
3
+ "version": "3.0.183",
4
4
  "description": "A text field",
5
5
  "keywords": [
6
6
  "javascript"
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "27626681ce1bcf3e4779ecabeb5d69c58df4d351"
68
+ "gitHead": "1a43436f1a5e0db3a0b2951138e9280b21220467"
69
69
  }