@equinor/echo-components 0.12.0 → 0.12.2

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.0",
3
+ "version": "0.12.2",
4
4
  "dependencies": {
5
5
  "chart.js": "4.4.6",
6
6
  "react-datepicker": "7.5.0",
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface AccordionWithSwitchProps {
3
+ title: string;
4
+ description: string;
5
+ handleSwitchClick: () => void;
6
+ children?: React.ReactNode;
7
+ descriptionHeading?: string;
8
+ isToggledOn?: boolean;
9
+ switchDisabled?: boolean;
10
+ warning?: JSX.Element;
11
+ }
12
+ export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isToggledOn, switchDisabled, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -1,8 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  type FabGroupProps = {
3
+ children: ReactNode | ReactNode[];
3
4
  className?: string;
4
5
  style?: CSSProperties;
5
- children: React.ReactNode;
6
6
  };
7
7
  export declare function FabGroup({ className, style, children }: FabGroupProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,3 +1,4 @@
1
+ export * from './accordionWithSwitch/AccordionWithSwitch';
1
2
  export * from './autohiddenContent/AutohiddenContent';
2
3
  export * from './blackLink/BlackLink';
3
4
  export * from './buttonWithPopover/ButtonWithPopover';
@@ -23,14 +24,15 @@ export * from './itemMarker/ItemMarker';
23
24
  export type { ItemMarkerChipProps } from './itemMarker/ItemMarkerChip';
24
25
  export * from './itemMarker/ItemMarkerIcon';
25
26
  export * from './itemMarker/MultipleItemMarkers';
27
+ export { multipleItemMarkersId } from './itemMarker/multipleItemMarkersId';
26
28
  export * from './itemMarker/utils/itemMarkerUtils';
27
29
  export * from './itemMarkerAndPopoverWrapper/itemMarkerAndPopoverWrapper';
28
30
  export * from './itemMarkerPopover/itemMarkerPopover';
29
31
  export * from './legend';
30
- export * from './legendChip/legendChip';
31
- export * from './legendSelector/legendSelector';
32
- export * from './legendSelectorAccordion/legendSelectorAccordion';
33
- export * from './legendSelectorMenu/legendSelectorMenu';
32
+ export * from './legendChip/LegendChip';
33
+ export * from './legendSelector/LegendSelector';
34
+ export * from './legendSelectorAccordion/LegendSelectorAccordion';
35
+ export * from './legendSelectorMenu/LegendSelectorMenu';
34
36
  export * from './linkIcon/LinkIcon';
35
37
  export * from './listItem';
36
38
  export * from './listRow/ListRow';
@@ -50,6 +52,7 @@ export * from './secondaryMarker/SecondaryMarkerWrapper';
50
52
  export * from './sidebarButton/SidebarButton';
51
53
  export * from './sidesheet';
52
54
  export * from './splitView';
55
+ export * from './switch/Switch';
53
56
  export * from './subseaStatusLabel/SubseaStatusLabel';
54
57
  export * from './tagContextMenu/TagContextMenu';
55
58
  export * from './titleAndStatusLabel/titleAndStatusLabel';
@@ -0,0 +1 @@
1
+ export declare const multipleItemMarkersId = "multipleItemMarkers";
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
2
  export type ItemMarkerPopover = {
3
- items: JSX.Element[] | string[];
3
+ items: ReadonlyArray<JSX.Element> | ReadonlyArray<string>;
4
4
  isOpen: boolean;
5
5
  handleClose: () => void;
6
6
  title: string;
@@ -1,2 +1,2 @@
1
- export * from './MainLegend';
2
1
  export * from './layerLegend';
2
+ export * from './MainLegend';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LegendChipProps } from '../legendChip/legendChip';
2
+ import { LegendChipProps } from '../legendChip/LegendChip';
3
3
  export interface LegendSelectorProps {
4
- options: string[];
4
+ options: ReadonlyArray<string>;
5
5
  selectedOption: string;
6
6
  onOptionClick: (option: string) => void;
7
7
  legends: LegendChipProps[];
@@ -1,4 +1,4 @@
1
- import { LegendChipProps } from '../legendChip/legendChip';
1
+ import { LegendChipProps } from '../legendChip/LegendChip';
2
2
  /**
3
3
  * Hook that returns the visible legends based on the available width.
4
4
  * @param {boolean} showAllLegends - Boolean to show all legends.
@@ -5,6 +5,8 @@ export interface LegendSelectorAccordionProps {
5
5
  visual?: JSX.Element;
6
6
  caption?: string;
7
7
  actions?: React.ReactNode;
8
+ isExpanded?: boolean;
9
+ setIsExpanded?: (isExpanded: boolean) => void;
8
10
  }
9
11
  /**
10
12
  * Legend selector accordion component to display the legend selector for the data layers.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  interface LegendSelectorMenuProps {
3
- options: string[];
3
+ options: ReadonlyArray<string>;
4
4
  selectedOption: string;
5
5
  onOptionClick: (option: string) => void;
6
6
  placeholder?: string;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface ExpandMinimizeButtonProps {
3
+ isExpanded: boolean;
4
+ setIsExpanded: (isExpanded: boolean) => void;
5
+ numHiddenTabs: number;
6
+ }
7
+ export declare const ExpandMinimizeButton: React.FC<ExpandMinimizeButtonProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SwitchProps } from '@equinor/eds-core-react';
2
+ export declare const Switch: ({ onChange, checked, ...rest }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,9 @@ export declare const themeConst: {
22
22
  strongDarkOrange: string;
23
23
  strongRed: string;
24
24
  strongDarkRed: string;
25
+ active: string;
26
+ completed: string;
27
+ bothActiveAndCompleted: string;
25
28
  random1: string;
26
29
  random2: string;
27
30
  readonly random3: string;
@@ -131,4 +134,5 @@ export declare const themeConst: {
131
134
  focusDark: string;
132
135
  primaryTextForDarkBackground: string;
133
136
  secondaryTextForDarkBackground: string;
137
+ infographicPrimaryMossGreen: string;
134
138
  };