@equinor/echo-components 4.3.0 → 4.3.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/accordionWithSwitch/AccordionWithSwitch.d.ts +3 -1
- package/src/components/legendSelectorAccordion/LegendSelectorAccordion.d.ts +1 -0
- package/src/components/selectionBar/menu/SelectionBarMenu.d.ts +1 -1
- package/src/components/selectionBar/menu/SelectionBarMenuItem.d.ts +4 -0
- package/src/components/charts/lineChart/dummy/lineChartConfig.d.ts +0 -17
- package/src/components/charts/lineChart/dummy/rawData.d.ts +0 -26
- package/src/icons/echoAssets/legendMarkerChip.d.ts +0 -2
- package/src/theme/echoUI.generated.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"chart.js": "4.5.1",
|
|
6
6
|
"react-datepicker": "9.1.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"react-window": "1.8.11"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@equinor/echo-utils": ">= 4.3.
|
|
11
|
+
"@equinor/echo-utils": ">= 4.3.2 < 5.0.0",
|
|
12
12
|
"@equinor/eds-core-react": "0.49.0",
|
|
13
13
|
"@equinor/eds-icons": "0.22.0",
|
|
14
14
|
"@equinor/eds-tokens": "2.1.0",
|
|
@@ -22,6 +22,8 @@ interface AccordionWithSwitchProps {
|
|
|
22
22
|
switchDisabled?: boolean;
|
|
23
23
|
/** Optional warning element to be displayed */
|
|
24
24
|
warning?: JSX.Element;
|
|
25
|
+
/** Optional test ID for the accordion */
|
|
26
|
+
testId?: string;
|
|
25
27
|
}
|
|
26
|
-
export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, disableAccordionOnSwitchOff, isExpanded, isToggledOn, switchDisabled, switchAriaLabel, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, disableAccordionOnSwitchOff, isExpanded, isToggledOn, switchDisabled, switchAriaLabel, warning, testId }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
29
|
export {};
|
|
@@ -19,7 +19,7 @@ export interface SelectionBarMenuProps {
|
|
|
19
19
|
*/
|
|
20
20
|
readonly unselectedLabel?: string;
|
|
21
21
|
/**
|
|
22
|
-
* Custom label for the button when state is 'selected'. Defaults to 'Remove
|
|
22
|
+
* Custom label for the button when state is 'selected'. Defaults to 'Remove'.
|
|
23
23
|
*/
|
|
24
24
|
readonly selectedLabel?: string;
|
|
25
25
|
readonly 'data-testid'?: string;
|
|
@@ -8,6 +8,10 @@ export interface SelectionBarMenuItemProps {
|
|
|
8
8
|
*/
|
|
9
9
|
readonly variant?: SelectionBarMenuItemVariant;
|
|
10
10
|
readonly hasBorderBottom?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to show the variant icon. Defaults to true.
|
|
13
|
+
*/
|
|
14
|
+
readonly showIcon?: boolean;
|
|
11
15
|
/**
|
|
12
16
|
* Whether the menu should close when this item is clicked. Defaults to true.
|
|
13
17
|
*/
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TooltipItem } from 'chart.js';
|
|
2
|
-
export declare const chartDataSet: {
|
|
3
|
-
labels: string[];
|
|
4
|
-
datasets: {
|
|
5
|
-
label: string;
|
|
6
|
-
data: number[];
|
|
7
|
-
borderColor: string;
|
|
8
|
-
pointBackgroundColor: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
fill: boolean;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
export declare const tooltip: {
|
|
14
|
-
callbacks: {
|
|
15
|
-
title: (tooltipItems: TooltipItem<"line">[]) => string | undefined;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const raw: {
|
|
2
|
-
DATA1: {
|
|
3
|
-
id: string;
|
|
4
|
-
value: number;
|
|
5
|
-
timestamp: string;
|
|
6
|
-
status: number;
|
|
7
|
-
}[];
|
|
8
|
-
DATA2: {
|
|
9
|
-
id: string;
|
|
10
|
-
value: number;
|
|
11
|
-
timestamp: string;
|
|
12
|
-
status: number;
|
|
13
|
-
}[];
|
|
14
|
-
DATA3: {
|
|
15
|
-
id: string;
|
|
16
|
-
value: number;
|
|
17
|
-
timestamp: string;
|
|
18
|
-
status: number;
|
|
19
|
-
}[];
|
|
20
|
-
DATA4: {
|
|
21
|
-
id: string;
|
|
22
|
-
value: number;
|
|
23
|
-
timestamp: string;
|
|
24
|
-
status: number;
|
|
25
|
-
}[];
|
|
26
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const echoUI: {
|
|
2
|
-
readonly bgFabResting: "rgba(0 0 0 / 0.8)";
|
|
3
|
-
readonly bgFabHover: "rgba(0 0 0 / 0.9)";
|
|
4
|
-
readonly bgLightenLighten_16: "rgba(255 255 255 / 0.16)";
|
|
5
|
-
readonly bgLightenLighten_10: "rgba(255 255 255 / 0.1)";
|
|
6
|
-
readonly bgLightenLighten_30: "rgba(255 255 255 / 0.3)";
|
|
7
|
-
readonly miscMarkerActive: "#00ffff";
|
|
8
|
-
};
|