@equinor/echo-components 0.2.0 → 0.2.5

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.
@@ -1,21 +1,2 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * Method that returns the relevant Icon for the iconType provided
4
- * Tag icon is the default JSX.Element Icon returned
5
- * @export
6
- * @param {('electrical'
7
- * | 'main Equipment'
8
- * | 'line'
9
- * | 'manual Valve'
10
- * | 'circuit/starter'
11
- * | 'instrument'
12
- * | 'cable'
13
- * | 'function'
14
- * | 'signal'
15
- * | 'telecom'
16
- * | 'junction box'
17
- * | 'administrative'
18
- * | string)} iconType The type of icon you want returned
19
- * @return {*} {JSX.Element} Relevant icon for the provided iconType
20
- */
21
- export declare function getIcon(iconType: 'electrical' | 'main equipment' | 'line' | 'manual valve' | 'circuit/starter' | 'instrument' | 'cable' | 'function' | 'signal' | 'telecom' | 'junction box' | 'administrative' | string): JSX.Element;
2
+ export declare function getIcon(tagCategoryDescription: string): JSX.Element;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ interface ViewTagIconProps {
3
+ tagCategoryDescription: string;
4
+ }
5
+ export declare enum TagCategoryType {
6
+ Electrical = "electrical",
7
+ MainEquipment = "main equipment",
8
+ Line = "line",
9
+ ManualValve = "manual valve",
10
+ CircuitAndStarter = "circuit",
11
+ Instrument = "instrument",
12
+ Cable = "cable",
13
+ Function = "function",
14
+ Signal = "signal",
15
+ Telecom = "telecom",
16
+ JunctionBox = "junction box",
17
+ Administrative = "administrative"
18
+ }
19
+ /**
20
+ * Method that returns the relevant Icon for the tagCategoryDescription provided
21
+ * Tag icon is the default JSX.Element Icon returned
22
+ * @export
23
+ * @param {('electrical'
24
+ * | 'main equipment'
25
+ * | 'line'
26
+ * | 'manual valve'
27
+ * | 'circuit/starter'
28
+ * | 'instrument'
29
+ * | 'cable'
30
+ * | 'function'
31
+ * | 'signal'
32
+ * | 'telecom'
33
+ * | 'junction box'
34
+ * | 'administrative'
35
+ * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
36
+ */
37
+ export declare const TagCategoryIcon: React.FC<ViewTagIconProps>;
38
+ export default TagCategoryIcon;