@transferwise/components 0.0.0-experimental-adcaf57 → 0.0.0-experimental-d0bd4b4

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/build/index.js CHANGED
@@ -7605,27 +7605,45 @@ class WithDisplayFormat extends React.Component {
7605
7605
  }, 0);
7606
7606
  };
7607
7607
  render() {
7608
- return this.props.render({
7609
- value: this.state.value,
7610
- type: this.props.type,
7611
- inputMode: this.props.inputMode,
7612
- className: this.props.className,
7613
- id: this.props.id,
7614
- name: this.props.name,
7615
- placeholder: this.props.placeholder,
7616
- readOnly: this.props.readOnly,
7617
- required: this.props.required,
7618
- minLength: this.props.minLength,
7619
- maxLength: this.props.maxLength,
7620
- disabled: this.props.disabled,
7621
- autoComplete: this.props.autoComplete,
7608
+ const {
7609
+ type,
7610
+ inputMode,
7611
+ className,
7612
+ id,
7613
+ name,
7614
+ placeholder,
7615
+ readOnly,
7616
+ required,
7617
+ minLength,
7618
+ maxLength,
7619
+ disabled,
7620
+ autoComplete
7621
+ } = this.props;
7622
+ const {
7623
+ value
7624
+ } = this.state;
7625
+ const renderProps = {
7626
+ type,
7627
+ inputMode,
7628
+ className,
7629
+ id,
7630
+ name,
7631
+ placeholder,
7632
+ readOnly,
7633
+ required,
7634
+ minLength,
7635
+ maxLength,
7636
+ disabled,
7637
+ autoComplete,
7638
+ value,
7622
7639
  onFocus: this.handleOnFocus,
7623
7640
  onBlur: this.handleOnBlur,
7624
7641
  onPaste: this.handleOnPaste,
7625
7642
  onKeyDown: this.handleOnKeyDown,
7626
7643
  onChange: this.handleOnChange,
7627
7644
  onCut: this.handleOnCut
7628
- });
7645
+ };
7646
+ return this.props.render(renderProps);
7629
7647
  }
7630
7648
  }
7631
7649