@equinor/echo-components 0.12.1 → 0.12.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,10 +1,11 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "dependencies": {
5
- "chart.js": "4.4.6",
5
+ "chart.js": "4.4.8",
6
6
  "react-datepicker": "7.5.0",
7
- "react-window": "1.8.10"
7
+ "react-swipeable": "7.0.2",
8
+ "react-window": "1.8.11"
8
9
  },
9
10
  "peerDependencies": {
10
11
  "@equinor/echo-utils": ">= 0.4.0 < 0.5.0",
@@ -6,8 +6,9 @@ interface AccordionWithSwitchProps {
6
6
  children?: React.ReactNode;
7
7
  descriptionHeading?: string;
8
8
  isToggledOn?: boolean;
9
+ switchAriaLabel?: string;
9
10
  switchDisabled?: boolean;
10
11
  warning?: JSX.Element;
11
12
  }
12
- export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isToggledOn, switchDisabled, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isToggledOn, switchDisabled, switchAriaLabel, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -34,6 +34,7 @@ interface DropdownItemProps {
34
34
  * triggerOpen: Callback to trigger when the dropdown is opened.
35
35
  * }
36
36
  * @return {*} {JSX.Element} The dropdown component.
37
+ * * @deprecated Use Autocomplete from EDS instead
37
38
  */
38
39
  export declare const Dropdown: React.FC<DropdownItemProps>;
39
40
  export default Dropdown;
@@ -58,4 +58,3 @@ export interface SidebarButtonProps {
58
58
  * @return {*} {JSX.Element}
59
59
  */
60
60
  export declare const SidebarButton: ({ text, active, onClick, count, buttonPosition, refValue, id, children }: SidebarButtonProps) => React.JSX.Element;
61
- export default SidebarButton;
@@ -1,2 +1,6 @@
1
- import { SwitchProps } from '@equinor/eds-core-react';
2
- export declare const Switch: ({ onChange, checked, ...rest }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { SwitchProps as EDSSwitchProps } from '@equinor/eds-core-react';
2
+ interface SwitchProps extends EDSSwitchProps {
3
+ ariaLabel?: string;
4
+ }
5
+ export declare const Switch: ({ ariaLabel, checked, onChange, ...rest }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};