@equinor/echo-components 0.26.9 → 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/index.cjs.js +1 -1
- package/package.json +3 -3
- package/src/components/charts/lineChart/dummy/lineChartConfig.d.ts +2 -1
- package/src/components/legendChip/LegendChip.d.ts +1 -0
- package/src/icons/echoAssets/general.d.ts +1 -0
- package/src/providers/UIPreferenceProvider.d.ts +1 -1
- package/src/theme/echoModes.generated.d.ts +8 -12
- package/src/theme/echoPrimitives.generated.d.ts +0 -2
- package/src/theme/themeConst.d.ts +0 -7
- package/style-reset.css +1 -1
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"chart.js": "4.5.0",
|
|
6
|
-
"react-datepicker": "8.
|
|
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.
|
|
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: [
|
|
15
|
+
title: (tooltipItems: TooltipItem<"line">[]) => string | undefined;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
@@ -10,7 +10,7 @@ interface UIPreferencesContextType {
|
|
|
10
10
|
interface UIPreferencesProviderProps {
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
mode: Mode;
|
|
13
|
-
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.
|
|
@@ -406,16 +406,16 @@ export declare const echoModes: {
|
|
|
406
406
|
readonly rovOperatedValvesTextIonsOpen: "#000000";
|
|
407
407
|
readonly rovOperatedValvesTextIonsClosed: "#ffffff";
|
|
408
408
|
readonly rovOperatedValvesTextIonsUknown: "#000000";
|
|
409
|
-
readonly
|
|
410
|
-
readonly
|
|
409
|
+
readonly otherSynergiSafeXFillSeverity_5: "#4bb748";
|
|
410
|
+
readonly otherSynergiSafeXFillSeverity_4: "#4bb748";
|
|
411
411
|
readonly otherSynergiSafeXFillSeverity_3: "#fdca01";
|
|
412
|
-
readonly
|
|
413
|
-
readonly
|
|
414
|
-
readonly
|
|
415
|
-
readonly
|
|
412
|
+
readonly otherSynergiSafeXFillSeverity_2: "#eb0000";
|
|
413
|
+
readonly otherSynergiSafeXFillSeverity_1: "#eb0000";
|
|
414
|
+
readonly otherSynergiSafeXTextIconSeverity_5: "#000000";
|
|
415
|
+
readonly otherSynergiSafeXTextIconSeverity_4: "#000000";
|
|
416
416
|
readonly otherSynergiSafeXTextIconSeverity_3: "#000000";
|
|
417
|
-
readonly
|
|
418
|
-
readonly
|
|
417
|
+
readonly otherSynergiSafeXTextIconSeverity_2: "#ffffff";
|
|
418
|
+
readonly otherSynergiSafeXTextIconSeverity_1: "#ffffff";
|
|
419
419
|
readonly defaultSelectioncolorsColorSelectioncolor1: "#fa00ff";
|
|
420
420
|
readonly defaultSelectioncolorsColorSelectioncolor2: "#ff5c00";
|
|
421
421
|
readonly defaultSelectioncolorsColorSelectioncolor3: "#faff00";
|
|
@@ -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
|
};
|
|
@@ -133,14 +133,8 @@ export declare const themeConst: {
|
|
|
133
133
|
readonly mediumSeverityText: string;
|
|
134
134
|
readonly lowSeverityText: string;
|
|
135
135
|
defaultSeverityText: string;
|
|
136
|
-
readonly riskHighSeverity: string;
|
|
137
|
-
readonly riskMediumSeverity: string;
|
|
138
|
-
readonly riskLowSeverity: string;
|
|
139
|
-
readonly riskDefaultSeverity: string;
|
|
140
136
|
readonly toggleActive: string;
|
|
141
137
|
readonly toggleInactive: string;
|
|
142
|
-
hoverIcon: string;
|
|
143
|
-
readonly hoverIconWithNotification: string;
|
|
144
138
|
eqEchoFontFamily: string;
|
|
145
139
|
tertiaryText: string;
|
|
146
140
|
secondaryText: string;
|
|
@@ -153,7 +147,6 @@ export declare const themeConst: {
|
|
|
153
147
|
primaryTextForDarkBackground: string;
|
|
154
148
|
secondaryTextForDarkBackground: string;
|
|
155
149
|
primaryInteractionForDarkBackground: string;
|
|
156
|
-
infographicPrimaryMossGreen: string;
|
|
157
150
|
uiBackgroundSemiTransparent: string;
|
|
158
151
|
textStaticIconsDarkSecondary: string;
|
|
159
152
|
};
|
package/style-reset.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#root,body,html{height:100%;overflow:hidden;position:fixed;width:100%}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--equiGray5);border-radius:5px}::-webkit-scrollbar-thumb{background:var(--equiGreen1);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--
|
|
1
|
+
#root,body,html{height:100%;overflow:hidden;position:fixed;width:100%}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--equiGray5);border-radius:5px}::-webkit-scrollbar-thumb{background:var(--equiGreen1);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--eds_interactive_primary__hover)}button,input{appearance:none;background:transparent;border:inherit;color:inherit;font:inherit;outline:0}input,input:after,input:before{-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto}li,menu,ul{list-style:none;margin-block:0;padding-inline:0}
|