baseui 0.0.0-alpha-e79754d → 0.0.0-alpha-5a69d12
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/input/base-input.js +1 -3
- package/esm/input/base-input.js +6 -9
- package/input/base-input.js +6 -9
- package/package.json +1 -1
package/es/input/base-input.js
CHANGED
|
@@ -239,8 +239,6 @@ class BaseInput extends React.Component {
|
|
|
239
239
|
|
|
240
240
|
render() {
|
|
241
241
|
const {
|
|
242
|
-
value,
|
|
243
|
-
type,
|
|
244
242
|
overrides: {
|
|
245
243
|
InputContainer: InputContainerOverride,
|
|
246
244
|
Input: InputOverride,
|
|
@@ -292,7 +290,7 @@ class BaseInput extends React.Component {
|
|
|
292
290
|
max: this.props.max,
|
|
293
291
|
step: this.props.step,
|
|
294
292
|
rows: this.props.type === CUSTOM_INPUT_TYPE.textarea ? this.props.rows : null
|
|
295
|
-
}, sharedProps, inputProps)
|
|
293
|
+
}, sharedProps, inputProps)), this.renderClear(), this.renderMaskToggle(), /*#__PURE__*/React.createElement(After, _extends({}, sharedProps, afterProps)));
|
|
296
294
|
}
|
|
297
295
|
|
|
298
296
|
}
|
package/esm/input/base-input.js
CHANGED
|
@@ -318,14 +318,11 @@ var BaseInput = /*#__PURE__*/function (_React$Component) {
|
|
|
318
318
|
}, {
|
|
319
319
|
key: "render",
|
|
320
320
|
value: function render() {
|
|
321
|
-
var _this$
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
InputOverride = _this$props3$override.Input,
|
|
327
|
-
BeforeOverride = _this$props3$override.Before,
|
|
328
|
-
AfterOverride = _this$props3$override.After; // more here https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Preventing_autofilling_with_autocompletenew-password
|
|
321
|
+
var _this$props$overrides = this.props.overrides,
|
|
322
|
+
InputContainerOverride = _this$props$overrides.InputContainer,
|
|
323
|
+
InputOverride = _this$props$overrides.Input,
|
|
324
|
+
BeforeOverride = _this$props$overrides.Before,
|
|
325
|
+
AfterOverride = _this$props$overrides.After; // more here https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Preventing_autofilling_with_autocompletenew-password
|
|
329
326
|
|
|
330
327
|
var autoComplete = this.state.initialType === 'password' && this.props.autoComplete === BaseInput.defaultProps.autoComplete ? 'new-password' : this.props.autoComplete;
|
|
331
328
|
var sharedProps = getSharedProps(this.props, this.state);
|
|
@@ -387,7 +384,7 @@ var BaseInput = /*#__PURE__*/function (_React$Component) {
|
|
|
387
384
|
max: this.props.max,
|
|
388
385
|
step: this.props.step,
|
|
389
386
|
rows: this.props.type === CUSTOM_INPUT_TYPE.textarea ? this.props.rows : null
|
|
390
|
-
}, sharedProps, inputProps)
|
|
387
|
+
}, sharedProps, inputProps)), this.renderClear(), this.renderMaskToggle(), /*#__PURE__*/React.createElement(After, _extends({}, sharedProps, afterProps)));
|
|
391
388
|
}
|
|
392
389
|
}]);
|
|
393
390
|
|
package/input/base-input.js
CHANGED
|
@@ -331,14 +331,11 @@ var BaseInput = /*#__PURE__*/function (_React$Component) {
|
|
|
331
331
|
}, {
|
|
332
332
|
key: "render",
|
|
333
333
|
value: function render() {
|
|
334
|
-
var _this$
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
InputOverride = _this$props3$override.Input,
|
|
340
|
-
BeforeOverride = _this$props3$override.Before,
|
|
341
|
-
AfterOverride = _this$props3$override.After; // more here https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Preventing_autofilling_with_autocompletenew-password
|
|
334
|
+
var _this$props$overrides = this.props.overrides,
|
|
335
|
+
InputContainerOverride = _this$props$overrides.InputContainer,
|
|
336
|
+
InputOverride = _this$props$overrides.Input,
|
|
337
|
+
BeforeOverride = _this$props$overrides.Before,
|
|
338
|
+
AfterOverride = _this$props$overrides.After; // more here https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Preventing_autofilling_with_autocompletenew-password
|
|
342
339
|
|
|
343
340
|
var autoComplete = this.state.initialType === 'password' && this.props.autoComplete === BaseInput.defaultProps.autoComplete ? 'new-password' : this.props.autoComplete;
|
|
344
341
|
var sharedProps = (0, _utils.getSharedProps)(this.props, this.state);
|
|
@@ -400,7 +397,7 @@ var BaseInput = /*#__PURE__*/function (_React$Component) {
|
|
|
400
397
|
max: this.props.max,
|
|
401
398
|
step: this.props.step,
|
|
402
399
|
rows: this.props.type === _constants.CUSTOM_INPUT_TYPE.textarea ? this.props.rows : null
|
|
403
|
-
}, sharedProps, inputProps)
|
|
400
|
+
}, sharedProps, inputProps)), this.renderClear(), this.renderMaskToggle(), /*#__PURE__*/React.createElement(After, _extends({}, sharedProps, afterProps)));
|
|
404
401
|
}
|
|
405
402
|
}]);
|
|
406
403
|
|