@equinor/echo-components 0.12.6 → 0.26.3

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.12.6",
3
+ "version": "0.26.3",
4
4
  "dependencies": {
5
- "chart.js": "4.4.9",
6
- "react-datepicker": "7.5.0",
5
+ "chart.js": "4.5.0",
6
+ "react-datepicker": "8.4.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.4.0 < 0.5.0",
11
+ "@equinor/echo-utils": ">= 0.26.3 < 0.27.0",
12
12
  "@equinor/eds-core-react": "0.43.0",
13
13
  "@equinor/eds-icons": "0.22.0",
14
14
  "classnames": "2.5.1",
@@ -21,5 +21,5 @@
21
21
  },
22
22
  "main": "./index.cjs.js",
23
23
  "type": "commonjs",
24
- "types": "./index.cjs.d.ts"
24
+ "types": "./index.d.ts"
25
25
  }
@@ -1,15 +1,27 @@
1
1
  import React from 'react';
2
2
  interface AccordionWithSwitchProps {
3
+ /** Title of the accordion */
3
4
  title: string;
5
+ /** Description of the accordion */
4
6
  description: string;
7
+ /** Function to handle the switch click event */
5
8
  handleSwitchClick: () => void;
9
+ /** Optional children to be rendered inside the accordion */
6
10
  children?: React.ReactNode;
11
+ /** Optional heading for the description section */
7
12
  descriptionHeading?: string;
13
+ /** Optional prop for disabling the accordion if true */
14
+ disableAccordionOnSwitchOff?: boolean;
15
+ /** Optional prop to control the expanded state of the accordion */
8
16
  isExpanded?: boolean;
17
+ /** Optional prop to control the toggle state of the switch */
9
18
  isToggledOn?: boolean;
19
+ /** Optional aria label for the switch */
10
20
  switchAriaLabel?: string;
21
+ /** Optional prop to disable the switch */
11
22
  switchDisabled?: boolean;
23
+ /** Optional warning element to be displayed */
12
24
  warning?: JSX.Element;
13
25
  }
14
- export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isExpanded, isToggledOn, switchDisabled, switchAriaLabel, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, disableAccordionOnSwitchOff, isExpanded, isToggledOn, switchDisabled, switchAriaLabel, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
15
27
  export {};
@@ -15,4 +15,4 @@ export interface DatePickerProps {
15
15
  minDate?: Date;
16
16
  }
17
17
  export declare const ReactDatePicker: React.FC<DatePickerProps>;
18
- export default ReactDatePicker;
18
+ export {};
@@ -4,5 +4,5 @@ interface MarkedContentProps {
4
4
  children: JSX.Element | string[] | string | number;
5
5
  className?: string;
6
6
  }
7
- export declare function MarkedContent({ backgroundColor, textColor, children, className, }: MarkedContentProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function MarkedContent({ backgroundColor, textColor, children, className }: Readonly<MarkedContentProps>): JSX.Element;
8
8
  export {};
@@ -1,4 +1,12 @@
1
1
  export declare const themeConst: {
2
+ xSmall: string;
3
+ small: string;
4
+ medium: string;
5
+ large: string;
6
+ xLarge: string;
7
+ fontSizeXSmall: string;
8
+ fontSizeSmall: string;
9
+ fontSizeMedium: string;
2
10
  weakLightGray: string;
3
11
  weakGrey: string;
4
12
  weakBlue: string;
@@ -60,6 +68,7 @@ export declare const themeConst: {
60
68
  noColor: string;
61
69
  disabledBackgroundColor: string;
62
70
  disabledColor: string;
71
+ dividerColorLight: string;
63
72
  readonly pm01: string;
64
73
  readonly pm02: string;
65
74
  readonly pm03: string;
@@ -125,6 +134,7 @@ export declare const themeConst: {
125
134
  readonly toggleInactive: string;
126
135
  hoverIcon: string;
127
136
  readonly hoverIconWithNotification: string;
137
+ eqEchoFontFamily: string;
128
138
  tertiaryText: string;
129
139
  secondaryText: string;
130
140
  backgroundDark: string;
@@ -135,5 +145,6 @@ export declare const themeConst: {
135
145
  focusDark: string;
136
146
  primaryTextForDarkBackground: string;
137
147
  secondaryTextForDarkBackground: string;
148
+ primaryInteractionForDarkBackground: string;
138
149
  infographicPrimaryMossGreen: string;
139
150
  };
File without changes