@abgov/react-components 5.0.0-alpha.13 → 5.0.0-alpha.15
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/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +3 -1
- package/index.mjs.map +1 -1
- package/lib/textarea/textarea.d.ts +3 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ interface WCProps extends Margins {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
rows?: number;
|
|
9
9
|
error?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
width?: string;
|
|
12
13
|
maxwidth?: string;
|
|
@@ -29,6 +30,7 @@ export interface GoATextAreaProps extends Margins {
|
|
|
29
30
|
placeholder?: string;
|
|
30
31
|
rows?: number;
|
|
31
32
|
error?: boolean;
|
|
33
|
+
readOnly?: boolean;
|
|
32
34
|
disabled?: boolean;
|
|
33
35
|
width?: string;
|
|
34
36
|
maxWidth?: string;
|
|
@@ -39,6 +41,6 @@ export interface GoATextAreaProps extends Margins {
|
|
|
39
41
|
onChange?: (name: string, value: string) => void;
|
|
40
42
|
onKeyPress?: (name: string, value: string, key: string) => void;
|
|
41
43
|
}
|
|
42
|
-
export declare function GoATextarea({ name, value, placeholder, rows, disabled, countBy, maxCount, width, maxWidth, testId, error, ariaLabel, mt, mr, mb, ml, onChange, onKeyPress, }: GoATextAreaProps): JSX.Element;
|
|
44
|
+
export declare function GoATextarea({ name, value, placeholder, rows, readOnly, disabled, countBy, maxCount, width, maxWidth, testId, error, ariaLabel, mt, mr, mb, ml, onChange, onKeyPress, }: GoATextAreaProps): JSX.Element;
|
|
43
45
|
export { GoATextarea as GoATextArea };
|
|
44
46
|
export default GoATextarea;
|
package/package.json
CHANGED