@equinor/echo-components 4.3.0 → 4.3.1

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": "4.3.0",
3
+ "version": "4.3.1",
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.0 < 5.0.0",
11
+ "@equinor/echo-utils": ">= 4.3.1 < 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 {};
@@ -5,6 +5,7 @@ interface LegendSelectorAccordionBaseProps {
5
5
  visual?: JSX.Element;
6
6
  caption?: string;
7
7
  actions?: React.ReactNode;
8
+ testId?: string;
8
9
  }
9
10
  interface UncontrolledProps extends LegendSelectorAccordionBaseProps {
10
11
  isExpanded?: never;
@@ -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 from selection'.
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;