@equinor/echo-components 2.2.0 → 2.2.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"chart.js": "4.5.1",
|
|
6
6
|
"react-datepicker": "8.7.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"react-window": "1.8.11"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@equinor/echo-utils": ">= 2.2.
|
|
11
|
+
"@equinor/echo-utils": ">= 2.2.1 < 3.0.0",
|
|
12
12
|
"@equinor/eds-core-react": "0.49.0",
|
|
13
13
|
"@equinor/eds-icons": "0.22.0",
|
|
14
14
|
"@equinor/eds-tokens": "0.10.0",
|
|
@@ -22,9 +22,14 @@ export interface SidebarButtonProps {
|
|
|
22
22
|
*/
|
|
23
23
|
buttonPosition: ButtonPosition;
|
|
24
24
|
/**
|
|
25
|
-
* A reference value, in case it's needed.
|
|
25
|
+
* @deprecated A reference value, in case it's needed.
|
|
26
|
+
* Use setRefValue instead.
|
|
26
27
|
*/
|
|
27
28
|
refValue?: React.RefObject<HTMLButtonElement>;
|
|
29
|
+
/**
|
|
30
|
+
* Set a reference value, in case it's needed.
|
|
31
|
+
*/
|
|
32
|
+
setRefValue?: React.Dispatch<React.SetStateAction<HTMLButtonElement | null>>;
|
|
28
33
|
/**
|
|
29
34
|
* The id of the button, in case it's needed.
|
|
30
35
|
*/
|
|
@@ -58,4 +63,4 @@ export interface SidebarButtonProps {
|
|
|
58
63
|
* }
|
|
59
64
|
* @return {*} {JSX.Element}
|
|
60
65
|
*/
|
|
61
|
-
export declare const SidebarButton: ({ text, active, onClick, count, buttonPosition, refValue, id, children, showIndicator }: SidebarButtonProps) => React.JSX.Element;
|
|
66
|
+
export declare const SidebarButton: ({ text, active, onClick, count, buttonPosition, refValue, setRefValue, id, children, showIndicator }: SidebarButtonProps) => React.JSX.Element;
|