@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.js
CHANGED
|
@@ -7605,27 +7605,45 @@ class WithDisplayFormat extends React.Component {
|
|
|
7605
7605
|
}, 0);
|
|
7606
7606
|
};
|
|
7607
7607
|
render() {
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
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
|
|