@equinor/echo-components 0.5.29 → 0.5.30

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.
@@ -13,6 +13,7 @@ export * from './echoTooltip';
13
13
  export * from './floatingActionButton/FloatingActionButton';
14
14
  export * from './floatingSearchBar/FloatingSearchBar';
15
15
  export * from './inlineTagIconLink/InlineTagIconLink';
16
+ export * from './legend';
16
17
  export * from './listItem';
17
18
  export * from './listRow/ListRow';
18
19
  export * from './rightPanel';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { LayerInfo } from '@types';
3
+ interface MainLegendProps {
4
+ /**
5
+ * Layer legends appearing above the main legend
6
+ */
7
+ legends: React.ReactNode[];
8
+ /**
9
+ * Layer information
10
+ */
11
+ layers: LayerInfo[];
12
+ }
13
+ declare function MainLegend({ legends, layers }: MainLegendProps): JSX.Element;
14
+ export { MainLegend };
@@ -0,0 +1,2 @@
1
+ export * from './MainLegend';
2
+ export * from './layerLegend';
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ interface LayerLegendProps {
3
+ /**
4
+ * Layer title
5
+ */
6
+ title: string;
7
+ /**
8
+ * Layer icon name
9
+ */
10
+ iconName?: string;
11
+ /**
12
+ * Number of items on layer
13
+ */
14
+ itemsCount: number;
15
+ /**
16
+ * Name of the items presented on layer
17
+ */
18
+ itemsTitle?: string;
19
+ /**
20
+ * Content presented on layer legend
21
+ */
22
+ children: React.ReactNode;
23
+ /**
24
+ * Used to disable layer legend usage
25
+ */
26
+ disabled?: boolean;
27
+ }
28
+ declare function LayerLegend({ title, iconName, itemsCount, itemsTitle, children, disabled }: LayerLegendProps): JSX.Element;
29
+ export { LayerLegend };
@@ -0,0 +1 @@
1
+ export * from './LayerLegend';
@@ -0,0 +1,2 @@
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const map_legend_info: IconData;
@@ -1,4 +1,5 @@
1
1
  export * from './external';
2
+ export * from './general';
2
3
  export * from './notifications';
3
4
  export * from './punches';
4
5
  export * from './workOrders';