shineout 1.7.1 → 1.7.2

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/css/Form/Item.js CHANGED
@@ -227,7 +227,7 @@ Item.propTypes = (0, _objectSpread2.default)({}, (0, _proptypes.getProps)(_propT
227
227
  });
228
228
  Item.defaultProps = (0, _objectSpread2.default)({}, _proptypes.defaultProps, {
229
229
  formItemErrors: [],
230
- keepErrorHeight: true
230
+ keepErrorHeight: false
231
231
  });
232
232
  var _default = Item; // eslint-disable-next-line
233
233
 
@@ -105,7 +105,7 @@ var _default = (0, _func.curry)(function (Origin) {
105
105
  disabled = _this$props.disabled;
106
106
 
107
107
  if ('value' in this.props && !onChange && disabled !== true && readOnly !== true) {
108
- console.error('You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`');
108
+ console.error('warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly` or `disabled`');
109
109
  }
110
110
 
111
111
  var _this$props2 = this.props,
@@ -26,6 +26,8 @@ var inputStyle = {
26
26
  display: 'inline-block'
27
27
  };
28
28
 
29
+ var nofunc = function nofunc() {};
30
+
29
31
  var Jumper =
30
32
  /*#__PURE__*/
31
33
  function (_PureComponent) {
@@ -91,6 +93,7 @@ function (_PureComponent) {
91
93
  }, txt[0], _react.default.createElement(_Input.default, {
92
94
  key: this.renderRequire,
93
95
  value: current,
96
+ onChange: nofunc,
94
97
  autoFocus: this.autoFocus,
95
98
  onKeyDown: this.handleKeyDown,
96
99
  digits: 0,
package/css/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.1' }
5
+ export default { utils, version: '1.7.2' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/css/index.js CHANGED
@@ -222,6 +222,6 @@ exports.Upload = _Upload.default;
222
222
  // Created by scripts/src-index.js.
223
223
  var _default = {
224
224
  utils: utils,
225
- version: '1.7.1'
225
+ version: '1.7.2'
226
226
  };
227
227
  exports.default = _default;
package/dist/shineout.js CHANGED
@@ -21172,7 +21172,7 @@ Item.propTypes = Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node
21172
21172
  });
21173
21173
  Item.defaultProps = Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_10008649_Desktop_workspace_fe_shein_shineout_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _utils_proptypes__WEBPACK_IMPORTED_MODULE_15__["defaultProps"]), {}, {
21174
21174
  formItemErrors: [],
21175
- keepErrorHeight: true
21175
+ keepErrorHeight: false
21176
21176
  });
21177
21177
  /* harmony default export */ __webpack_exports__["default"] = (Item); // eslint-disable-next-line
21178
21178
 
@@ -22197,7 +22197,7 @@ var beforeValueChange = Object(_utils_func__WEBPACK_IMPORTED_MODULE_15__["curry"
22197
22197
  disabled = _this$props.disabled;
22198
22198
 
22199
22199
  if ('value' in this.props && !onChange && disabled !== true && readOnly !== true) {
22200
- console.error('You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`');
22200
+ console.error('warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly` or `disabled`');
22201
22201
  }
22202
22202
 
22203
22203
  var _this$props2 = this.props,
@@ -28880,6 +28880,8 @@ var inputStyle = {
28880
28880
  display: 'inline-block'
28881
28881
  };
28882
28882
 
28883
+ var nofunc = function nofunc() {};
28884
+
28883
28885
  var Jumper =
28884
28886
  /*#__PURE__*/
28885
28887
  function (_PureComponent) {
@@ -28945,7 +28947,7 @@ function (_PureComponent) {
28945
28947
  __self: this,
28946
28948
  __source: {
28947
28949
  fileName: _jsxFileName,
28948
- lineNumber: 50,
28950
+ lineNumber: 51,
28949
28951
  columnNumber: 11
28950
28952
  }
28951
28953
  }, "/"),
@@ -28956,7 +28958,7 @@ function (_PureComponent) {
28956
28958
  __self: this,
28957
28959
  __source: {
28958
28960
  fileName: _jsxFileName,
28959
- lineNumber: 53,
28961
+ lineNumber: 54,
28960
28962
  columnNumber: 11
28961
28963
  }
28962
28964
  }, this.getMax())]];
@@ -28969,7 +28971,7 @@ function (_PureComponent) {
28969
28971
  __self: this,
28970
28972
  __source: {
28971
28973
  fileName: _jsxFileName,
28972
- lineNumber: 61,
28974
+ lineNumber: 62,
28973
28975
  columnNumber: 7
28974
28976
  }
28975
28977
  }, txt[0],
@@ -28977,6 +28979,7 @@ function (_PureComponent) {
28977
28979
  react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_Input__WEBPACK_IMPORTED_MODULE_10__["default"], {
28978
28980
  key: this.renderRequire,
28979
28981
  value: current,
28982
+ onChange: nofunc,
28980
28983
  autoFocus: this.autoFocus,
28981
28984
  onKeyDown: this.handleKeyDown,
28982
28985
  digits: 0,
@@ -28988,7 +28991,7 @@ function (_PureComponent) {
28988
28991
  __self: this,
28989
28992
  __source: {
28990
28993
  fileName: _jsxFileName,
28991
- lineNumber: 63,
28994
+ lineNumber: 64,
28992
28995
  columnNumber: 9
28993
28996
  }
28994
28997
  }), txt[1])
@@ -60091,7 +60094,7 @@ __webpack_require__.r(__webpack_exports__);
60091
60094
 
60092
60095
  /* harmony default export */ __webpack_exports__["default"] = ({
60093
60096
  utils: _utils__WEBPACK_IMPORTED_MODULE_0__,
60094
- version: '1.7.1'
60097
+ version: '1.7.2'
60095
60098
  });
60096
60099
 
60097
60100