@equinor/echo-components 0.26.10 → 1.0.0

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,14 +1,14 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.26.10",
3
+ "version": "1.0.0",
4
4
  "dependencies": {
5
5
  "chart.js": "4.5.0",
6
- "react-datepicker": "8.4.0",
6
+ "react-datepicker": "8.7.0",
7
7
  "react-swipeable": "7.0.2",
8
8
  "react-window": "1.8.11"
9
9
  },
10
10
  "peerDependencies": {
11
- "@equinor/echo-utils": ">= 0.26.11 < 0.27.0",
11
+ "@equinor/echo-utils": ">= 1.0.0 < 2.0.0",
12
12
  "@equinor/eds-core-react": "0.43.0",
13
13
  "@equinor/eds-icons": "0.22.0",
14
14
  "@equinor/eds-tokens": "0.9.2",
@@ -1,3 +1,4 @@
1
+ import { TooltipItem } from 'chart.js';
1
2
  export declare const chartDataSet: {
2
3
  labels: string[];
3
4
  datasets: {
@@ -11,6 +12,6 @@ export declare const chartDataSet: {
11
12
  };
12
13
  export declare const tooltip: {
13
14
  callbacks: {
14
- title: (tooltipItems: [Chart.ChartTooltipItem]) => string | undefined;
15
+ title: (tooltipItems: TooltipItem<"line">[]) => string | undefined;
15
16
  };
16
17
  };
@@ -4,6 +4,7 @@ export interface LegendChipProps {
4
4
  backgroundColor: string;
5
5
  disabled?: boolean;
6
6
  onClick?: (isDisabled: boolean) => void;
7
+ showAsPlainLabel?: boolean;
7
8
  }
8
9
  /**
9
10
  * Legend chip component to display a legend status chip.
@@ -7,3 +7,4 @@ export declare const em_drawing_group: IconData;
7
7
  export declare const em_drawing_ungroup: IconData;
8
8
  export declare const em_drawing_new_group: IconData;
9
9
  export declare const em_drawing_move_group: IconData;
10
+ export declare const general_return: IconData;
@@ -10,7 +10,7 @@ interface UIPreferencesContextType {
10
10
  interface UIPreferencesProviderProps {
11
11
  children: ReactNode;
12
12
  mode: Mode;
13
- density: Density;
13
+ density?: Density;
14
14
  }
15
15
  /**
16
16
  * Adds a context provider for UI preferences, allowing components to access the current mode and density.
@@ -428,8 +428,6 @@ export declare const echoModes: {
428
428
  readonly defaultSelectioncolorsColorSelectioncolor10: "#7304ff";
429
429
  readonly defaultSelectioncolorsColorSelectioncolor11: "#ff0000";
430
430
  readonly defaultSelectioncolorsColorSelectioncolor12: "#ff006b";
431
- readonly defaultSelectioncolorsColorSelectioncolor13: "#000000";
432
- readonly defaultSelectioncolorsColorSelectioncolor14: "#ffffff";
433
431
  readonly defaultSelectioncolorsTextIconSelectioncolor1: "#000000";
434
432
  readonly defaultSelectioncolorsTextIconSelectioncolor2: "#000000";
435
433
  readonly defaultSelectioncolorsTextIconSelectioncolor3: "#000000";
@@ -442,6 +440,4 @@ export declare const echoModes: {
442
440
  readonly defaultSelectioncolorsTextIconSelectioncolor10: "#ffffff";
443
441
  readonly defaultSelectioncolorsTextIconSelectioncolor11: "#000000";
444
442
  readonly defaultSelectioncolorsTextIconSelectioncolor12: "#000000";
445
- readonly defaultSelectioncolorsTextIconSelectioncolor13: "#ffffff";
446
- readonly defaultSelectioncolorsTextIconSelectioncolor14: "#000000";
447
443
  };
@@ -68,6 +68,4 @@ export declare const echoPrimitives: {
68
68
  readonly seletionColorsSelectioncolor10: "#7304ff";
69
69
  readonly seletionColorsSelectioncolor11: "#ff0000";
70
70
  readonly seletionColorsSelectioncolor12: "#ff006b";
71
- readonly seletionColorsSelectioncolor13: "#000000";
72
- readonly seletionColorsSelectioncolor14: "#ffffff";
73
71
  };