@abgov/react-components 3.4.0-alpha.23 → 3.4.0-alpha.26
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.
|
@@ -4,7 +4,8 @@ interface WCProps {
|
|
|
4
4
|
name: string;
|
|
5
5
|
value: string;
|
|
6
6
|
placeholder?: string;
|
|
7
|
-
rows
|
|
7
|
+
rows?: number;
|
|
8
|
+
error: boolean;
|
|
8
9
|
disabled: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare global {
|
|
@@ -19,8 +20,10 @@ interface Props {
|
|
|
19
20
|
value: string;
|
|
20
21
|
id?: string;
|
|
21
22
|
placeholder?: string;
|
|
22
|
-
rows
|
|
23
|
+
rows?: number;
|
|
24
|
+
error: boolean;
|
|
23
25
|
disabled: boolean;
|
|
26
|
+
testId: string;
|
|
24
27
|
onChange: (name: string, value: string) => void;
|
|
25
28
|
}
|
|
26
29
|
export declare const GoATextArea: FC<Props>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "3.4.0-alpha.
|
|
3
|
+
"version": "3.4.0-alpha.26",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"directory": "libs/react-components"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@abgov/web-components": "^1.0.0
|
|
20
|
+
"@abgov/web-components": "^1.0.0@alpha"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^17.0.2",
|
package/react-components.esm.js
CHANGED
|
@@ -719,6 +719,8 @@ const GoATextArea = ({
|
|
|
719
719
|
placeholder,
|
|
720
720
|
rows,
|
|
721
721
|
disabled,
|
|
722
|
+
testId,
|
|
723
|
+
error,
|
|
722
724
|
onChange
|
|
723
725
|
}) => {
|
|
724
726
|
const el = useRef(null);
|
|
@@ -733,7 +735,7 @@ const GoATextArea = ({
|
|
|
733
735
|
const {
|
|
734
736
|
name,
|
|
735
737
|
value
|
|
736
|
-
} = e.detail
|
|
738
|
+
} = e.detail;
|
|
737
739
|
onChange(name, value);
|
|
738
740
|
};
|
|
739
741
|
|
|
@@ -748,7 +750,9 @@ const GoATextArea = ({
|
|
|
748
750
|
placeholder: placeholder,
|
|
749
751
|
value: value,
|
|
750
752
|
rows: rows,
|
|
751
|
-
disabled: disabled
|
|
753
|
+
disabled: disabled,
|
|
754
|
+
error: error,
|
|
755
|
+
"data-testid": testId
|
|
752
756
|
}, void 0);
|
|
753
757
|
};
|
|
754
758
|
|
package/react-components.umd.js
CHANGED
|
@@ -727,6 +727,8 @@
|
|
|
727
727
|
placeholder = _a.placeholder,
|
|
728
728
|
rows = _a.rows,
|
|
729
729
|
disabled = _a.disabled,
|
|
730
|
+
testId = _a.testId,
|
|
731
|
+
error = _a.error,
|
|
730
732
|
onChange = _a.onChange;
|
|
731
733
|
var el = React.useRef(null);
|
|
732
734
|
React.useEffect(function () {
|
|
@@ -737,7 +739,7 @@
|
|
|
737
739
|
var current = el.current;
|
|
738
740
|
|
|
739
741
|
var listener = function listener(e) {
|
|
740
|
-
var _a = e.detail
|
|
742
|
+
var _a = e.detail,
|
|
741
743
|
name = _a.name,
|
|
742
744
|
value = _a.value;
|
|
743
745
|
onChange(name, value);
|
|
@@ -754,7 +756,9 @@
|
|
|
754
756
|
placeholder: placeholder,
|
|
755
757
|
value: value,
|
|
756
758
|
rows: rows,
|
|
757
|
-
disabled: disabled
|
|
759
|
+
disabled: disabled,
|
|
760
|
+
error: error,
|
|
761
|
+
"data-testid": testId
|
|
758
762
|
}, void 0);
|
|
759
763
|
};
|
|
760
764
|
|