@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.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/legend/MainLegend.d.ts +14 -0
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/layerLegend/LayerLegend.d.ts +29 -0
- package/dist/components/legend/layerLegend/index.d.ts +1 -0
- package/dist/icons/echoAssets/general.d.ts +2 -0
- package/dist/icons/echoAssets/index.d.ts +1 -0
- package/dist/index.js +267 -114
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/legend.d.ts +4 -0
- package/package.json +4 -1
|
@@ -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,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';
|