@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.esm.js +33 -15
- package/build/index.esm.js.map +1 -1
- package/build/index.js +33 -15
- package/build/index.js.map +1 -1
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.story.tsx +2 -0
- package/src/withDisplayFormat/WithDisplayFormat.tsx +31 -15
package/build/index.esm.js
CHANGED
|
@@ -7571,27 +7571,45 @@ class WithDisplayFormat extends Component {
|
|
|
7571
7571
|
}, 0);
|
|
7572
7572
|
};
|
|
7573
7573
|
render() {
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7574
|
+
const {
|
|
7575
|
+
type,
|
|
7576
|
+
inputMode,
|
|
7577
|
+
className,
|
|
7578
|
+
id,
|
|
7579
|
+
name,
|
|
7580
|
+
placeholder,
|
|
7581
|
+
readOnly,
|
|
7582
|
+
required,
|
|
7583
|
+
minLength,
|
|
7584
|
+
maxLength,
|
|
7585
|
+
disabled,
|
|
7586
|
+
autoComplete
|
|
7587
|
+
} = this.props;
|
|
7588
|
+
const {
|
|
7589
|
+
value
|
|
7590
|
+
} = this.state;
|
|
7591
|
+
const renderProps = {
|
|
7592
|
+
type,
|
|
7593
|
+
inputMode,
|
|
7594
|
+
className,
|
|
7595
|
+
id,
|
|
7596
|
+
name,
|
|
7597
|
+
placeholder,
|
|
7598
|
+
readOnly,
|
|
7599
|
+
required,
|
|
7600
|
+
minLength,
|
|
7601
|
+
maxLength,
|
|
7602
|
+
disabled,
|
|
7603
|
+
autoComplete,
|
|
7604
|
+
value,
|
|
7588
7605
|
onFocus: this.handleOnFocus,
|
|
7589
7606
|
onBlur: this.handleOnBlur,
|
|
7590
7607
|
onPaste: this.handleOnPaste,
|
|
7591
7608
|
onKeyDown: this.handleOnKeyDown,
|
|
7592
7609
|
onChange: this.handleOnChange,
|
|
7593
7610
|
onCut: this.handleOnCut
|
|
7594
|
-
}
|
|
7611
|
+
};
|
|
7612
|
+
return this.props.render(renderProps);
|
|
7595
7613
|
}
|
|
7596
7614
|
}
|
|
7597
7615
|
|