@conboai/storybook.components 0.2.26 → 0.2.29

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.
@@ -23,3 +23,11 @@ export declare const ACTIVE_TAB = "#323d7b";
23
23
  export declare const DEFAULT_TAB = "#535ea4";
24
24
  export declare const HOVER_TAB = "#6f79b3";
25
25
  export declare const BORDER_TAB = "#646ead";
26
+ export declare const OPTIMUS_DEFAULT_BORDER = "#4E4E4E";
27
+ export declare const OPTIMUS_DARK_BG = "#2F2F2F";
28
+ export declare const OPTIMUS_LIGHT_BG = "#404040";
29
+ export declare const OPTIMUS_LIGHTER_BR = "#373737";
30
+ export declare const OPTIMUS_TEXT_PRIMARY = "#8E8E8E";
31
+ export declare const OPTIMUS_TEXT_SECONDARY = "#747474";
32
+ export declare const OPTIMUS_TEXT_LIGHTGREY = "#D9D9D9";
33
+ export declare const OPTIMUS_TEXT_LIGHTGREY_FADED = "#A2A2A2";
@@ -24,6 +24,7 @@ export { UserAvatar } from '../components/UserAvatar';
24
24
  export { Toggle } from '../components/Toggle';
25
25
  export { ImageBox } from '../components/ImageBox';
26
26
  export { CustomSelect } from '../components/CustomSelect';
27
+ export { MetroMap } from '../components/MetroMap';
27
28
  export * from '../interfaces/filter';
28
29
  export * from '../interfaces/tab';
29
30
  export * from '../interfaces/detailsView';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface IBreadCrumbs {
4
+ home: string;
5
+ current: string;
6
+ }
7
+ declare function BreadCrumbs({ home, current }: IBreadCrumbs): React.JSX.Element;
8
+ export default BreadCrumbs;
@@ -0,0 +1 @@
1
+ export { default as BreadCrumbs } from './BreadCrumbs';
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface IMetroMap {
4
+ elements: IElement;
5
+ selectedCluster?: string | string[];
6
+ minor?: string[];
7
+ major?: string[];
8
+ onSelect?: (clusterId: string, subCluster: string) => void;
9
+ isMultiSelect?: boolean;
10
+ }
11
+ interface IElement {
12
+ tag: string;
13
+ id: string;
14
+ attributes: {
15
+ [key: string]: string;
16
+ };
17
+ onClick?: () => void;
18
+ fill?: string;
19
+ key?: string | number;
20
+ style?: {
21
+ pointerEvents?: string;
22
+ display?: string;
23
+ };
24
+ children: IElement[];
25
+ className?: string;
26
+ }
27
+ declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect }: IMetroMap): React.JSX.Element | null;
28
+ export default MetroMap;
@@ -0,0 +1,15 @@
1
+ type zipResponse = {
2
+ content: string;
3
+ filename: string;
4
+ };
5
+ declare const startsWithAny: (testString: string, prefixes: string[]) => boolean;
6
+ declare const getParsedSvgViewsFromZip: (zip: File) => Promise<{
7
+ menu: {
8
+ [x: string]: any;
9
+ } | null;
10
+ map: any;
11
+ }>;
12
+ declare const extractZip: (file: File) => Promise<zipResponse[]>;
13
+ declare function extractPrefix(inputString: string, prefix: string): string;
14
+ declare const parseSvg: (svg: string) => Promise<any>;
15
+ export { parseSvg, extractPrefix, extractZip, getParsedSvgViewsFromZip, startsWithAny };
@@ -0,0 +1 @@
1
+ export { default as MetroMap } from './MetroMap';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function OptimusWidgetBar(): React.JSX.Element;
4
+ export default OptimusWidgetBar;
@@ -0,0 +1 @@
1
+ export { default as OptimusWidgetBar } from './OptimusWidgetBar';
@@ -13,6 +13,7 @@ interface Icons {
13
13
  remove: Icon;
14
14
  triangleLeft: Icon;
15
15
  triangleRight: Icon;
16
+ angleRight: Icon;
16
17
  search: Icon;
17
18
  home: Icon;
18
19
  play: Icon;
@@ -0,0 +1,3 @@
1
+ declare const mockedMinor: string[];
2
+ declare const mockedMajor: string[];
3
+ export { mockedMinor, mockedMajor };