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 +1 -1
- package/css/Form/inputable.js +1 -1
- package/css/Pagination/Jumper.js +3 -0
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +10 -7
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Form/Item.js +1 -1
- package/es/Form/inputable.js +1 -1
- package/es/Pagination/Jumper.js +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Form/Item.js +1 -1
- package/lib/Form/inputable.js +1 -1
- package/lib/Pagination/Jumper.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/Form/Item.js
CHANGED
package/es/Form/inputable.js
CHANGED
|
@@ -93,7 +93,7 @@ export default curry(Origin =>
|
|
|
93
93
|
const { onChange, readOnly, disabled } = this.props
|
|
94
94
|
if ('value' in this.props && !onChange && disabled !== true && readOnly !== true) {
|
|
95
95
|
console.error(
|
|
96
|
-
'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`'
|
|
96
|
+
'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`'
|
|
97
97
|
)
|
|
98
98
|
}
|
|
99
99
|
const { formDatum, loopContext, name, defaultValue, bindInputToItem, popover } = this.props
|
package/es/Pagination/Jumper.js
CHANGED
|
@@ -5,6 +5,7 @@ import { paginationClass } from './styles'
|
|
|
5
5
|
import Input from '../Input'
|
|
6
6
|
|
|
7
7
|
const inputStyle = { width: 60, display: 'inline-block' }
|
|
8
|
+
const nofunc = () => {}
|
|
8
9
|
|
|
9
10
|
class Jumper extends PureComponent {
|
|
10
11
|
constructor(props) {
|
|
@@ -63,6 +64,7 @@ class Jumper extends PureComponent {
|
|
|
63
64
|
<Input
|
|
64
65
|
key={this.renderRequire}
|
|
65
66
|
value={current}
|
|
67
|
+
onChange={nofunc}
|
|
66
68
|
autoFocus={this.autoFocus}
|
|
67
69
|
onKeyDown={this.handleKeyDown}
|
|
68
70
|
digits={0}
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/lib/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:
|
|
230
|
+
keepErrorHeight: false
|
|
231
231
|
});
|
|
232
232
|
var _default = Item; // eslint-disable-next-line
|
|
233
233
|
|
package/lib/Form/inputable.js
CHANGED
|
@@ -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,
|
package/lib/Pagination/Jumper.js
CHANGED
|
@@ -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/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED