@equinor/echo-components 4.3.0-beta-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/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./src\\index";
1
+ export * from "./src/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "4.3.0-beta-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-beta-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;
@@ -17,6 +17,7 @@ export interface MultilineTabsProps {
17
17
  activeTabIndex: number;
18
18
  onTabChange?: (index: number) => void;
19
19
  initiallyExpanded?: boolean;
20
+ testId?: string;
20
21
  children: ReactElement<typeof Tabs.Panels>;
21
22
  }
22
23
  /**
@@ -14,6 +14,15 @@ export interface SelectionBarMenuProps {
14
14
  * auto-add to that without opening the menu.
15
15
  */
16
16
  readonly overwriteMenuTriggerClick?: () => void;
17
+ /**
18
+ * Custom label for the button when state is 'unselected'. Defaults to 'Add to selection'.
19
+ */
20
+ readonly unselectedLabel?: string;
21
+ /**
22
+ * Custom label for the button when state is 'selected'. Defaults to 'Remove'.
23
+ */
24
+ readonly selectedLabel?: string;
25
+ readonly 'data-testid'?: string;
17
26
  }
18
27
  export declare const SelectionBarMenu: ((props: SelectionBarMenuProps) => import("react/jsx-runtime").JSX.Element) & {
19
28
  MenuItem: (props: import("./SelectionBarMenuItem").SelectionBarMenuItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -12,6 +12,7 @@ export interface SelectionBarMenuItemProps {
12
12
  * Whether the menu should close when this item is clicked. Defaults to true.
13
13
  */
14
14
  readonly closeMenuOnClick?: boolean;
15
+ readonly 'data-testid'?: string;
15
16
  }
16
17
  /**
17
18
  * Menu item for use within SelectionBar.Menu