@equinor/echo-components 0.12.6 → 0.12.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "dependencies": {
5
5
  "chart.js": "4.4.9",
6
6
  "react-datepicker": "7.5.0",
@@ -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 {};
@@ -1,4 +1,9 @@
1
1
  export declare const themeConst: {
2
+ xSmall: string;
3
+ small: string;
4
+ medium: string;
5
+ large: string;
6
+ xLarge: string;
2
7
  weakLightGray: string;
3
8
  weakGrey: string;
4
9
  weakBlue: string;
@@ -125,6 +130,7 @@ export declare const themeConst: {
125
130
  readonly toggleInactive: string;
126
131
  hoverIcon: string;
127
132
  readonly hoverIconWithNotification: string;
133
+ eqEchoFontFamily: string;
128
134
  tertiaryText: string;
129
135
  secondaryText: string;
130
136
  backgroundDark: string;
File without changes