@linzjs/step-ag-grid 22.0.0 → 22.0.1
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@linzjs/step-ag-grid",
|
|
3
3
|
"repository": "github:linz/step-ag-grid.git",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "22.0.
|
|
5
|
+
"version": "22.0.1",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
"lodash-es": ">=4",
|
|
41
41
|
"matcher": "^5.0.0",
|
|
42
42
|
"react-transition-state": "^2.1.2",
|
|
43
|
-
"usehooks-ts": "^3.1.0"
|
|
44
|
-
"uuid": "^10.0.0"
|
|
43
|
+
"usehooks-ts": "^3.1.0"
|
|
45
44
|
},
|
|
46
45
|
"scripts": {
|
|
47
46
|
"build": "run-s clean stylelint lint css bundle",
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { omit } from "lodash-es";
|
|
3
|
-
import { InputHTMLAttributes, ReactElement,
|
|
4
|
-
import { v4 as uuidVersion4 } from "uuid";
|
|
3
|
+
import { InputHTMLAttributes, ReactElement, useId } from "react";
|
|
5
4
|
|
|
6
5
|
import { FormError } from "./FormError";
|
|
7
6
|
|
|
8
|
-
export const useGenerateOrDefaultId = (idFromProps?: string) => {
|
|
9
|
-
const [id] = useState(idFromProps ? idFromProps : uuidVersion4());
|
|
10
|
-
return id;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
7
|
export interface LuiTextAreaInputProps extends InputHTMLAttributes<HTMLTextAreaElement> {
|
|
14
8
|
// overrides value in base class to be string type only
|
|
15
9
|
value: string;
|
|
@@ -23,7 +17,8 @@ export interface LuiTextAreaInputProps extends InputHTMLAttributes<HTMLTextAreaE
|
|
|
23
17
|
}
|
|
24
18
|
|
|
25
19
|
export const TextAreaInput = (props: LuiTextAreaInputProps) => {
|
|
26
|
-
const
|
|
20
|
+
const reactId = useId();
|
|
21
|
+
const id = props?.id ?? reactId;
|
|
27
22
|
|
|
28
23
|
return (
|
|
29
24
|
<div
|