@equinor/echo-components 2.2.0 → 2.2.2
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.cjs.js +1 -1
- package/package.json +2 -2
- package/src/components/itemMarker/ItemMarker.d.ts +2 -0
- package/src/components/itemMarker/ItemMarkerContent.d.ts +2 -1
- package/src/components/itemMarker/ItemMarkerIcon.d.ts +2 -0
- package/src/components/sidebarButton/SidebarButton.d.ts +7 -2
- package/src/theme/echoModes.generated.d.ts +288 -254
- package/src/theme/echoPrimitives.generated.d.ts +119 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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.2 < 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",
|
|
@@ -18,6 +18,7 @@ export interface ItemMarkerProps {
|
|
|
18
18
|
onMouseLeave?: () => void;
|
|
19
19
|
maxNumberOfChips?: number;
|
|
20
20
|
zIndex?: number | string;
|
|
21
|
+
highlightColor?: string;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Renders an item marker with optional chips.
|
|
@@ -38,6 +39,7 @@ export interface ItemMarkerProps {
|
|
|
38
39
|
* @param {() => void} onMouseLeave - Mouse leave handler for the itemMarker (optional).
|
|
39
40
|
* @param {number} maxNumberOfChips - Maximum chips displayed (optional).
|
|
40
41
|
* @param {number | string} [zIndex] - z-index of the marker and chips (optional).
|
|
42
|
+
* @param {string} highlightColor - Highlight color for the marker (optional).
|
|
41
43
|
*
|
|
42
44
|
* @returns {JSX.Element} Component
|
|
43
45
|
*/
|
|
@@ -9,5 +9,6 @@ export type ItemMarkerContentProps = {
|
|
|
9
9
|
isActive?: boolean;
|
|
10
10
|
isTransparent?: boolean;
|
|
11
11
|
onClick?: () => void;
|
|
12
|
+
highlightColor?: string;
|
|
12
13
|
};
|
|
13
|
-
export declare const ItemMarkerContent: ({ icon, size, hasPointer, pointerPosition, backgroundColor, iconColor, isActive, isTransparent, onClick }: ItemMarkerContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ItemMarkerContent: ({ icon, size, hasPointer, pointerPosition, backgroundColor, iconColor, isActive, isTransparent, onClick, highlightColor }: ItemMarkerContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,9 @@ interface ItemMarkerIconProps {
|
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
backgroundColor?: string;
|
|
7
7
|
iconColor?: string;
|
|
8
|
+
onClick?: () => void;
|
|
8
9
|
size?: ItemMarkerSize;
|
|
10
|
+
highlightColor?: string;
|
|
9
11
|
}
|
|
10
12
|
export declare const ItemMarkerIcon: React.FC<ItemMarkerIconProps>;
|
|
11
13
|
export {};
|
|
@@ -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;
|