@conboai/storybook.components 0.2.28 → 0.2.31

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.
@@ -4,6 +4,7 @@ export declare const BG_GRAY_COLOR = "#F5F6FA";
4
4
  export declare const DETAILS_VIEW_BG = "#ECEDEF";
5
5
  export declare const DISABLED_CHECKBOX = "rgba(0, 0, 0, 0.26)";
6
6
  export declare const HOVER_DARK_BLUE_ICON = "#354290";
7
+ export declare const HOVER_NAVIGATION_ITEM = "#E5E9F5";
7
8
  export declare const PASSIVE_BTN_PRIMARY = "#5360AE";
8
9
  export declare const HOVER_BTN_PRIMARY = "#3F4C9A";
9
10
  export declare const ACTIVE_BTN_PRIMARY = "#303D8B";
@@ -23,3 +24,11 @@ export declare const ACTIVE_TAB = "#323d7b";
23
24
  export declare const DEFAULT_TAB = "#535ea4";
24
25
  export declare const HOVER_TAB = "#6f79b3";
25
26
  export declare const BORDER_TAB = "#646ead";
27
+ export declare const OPTIMUS_DEFAULT_BORDER = "#4E4E4E";
28
+ export declare const OPTIMUS_DARK_BG = "#2F2F2F";
29
+ export declare const OPTIMUS_LIGHT_BG = "#404040";
30
+ export declare const OPTIMUS_LIGHTER_BR = "#373737";
31
+ export declare const OPTIMUS_TEXT_PRIMARY = "#8E8E8E";
32
+ export declare const OPTIMUS_TEXT_SECONDARY = "#747474";
33
+ export declare const OPTIMUS_TEXT_LIGHTGREY = "#D9D9D9";
34
+ 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';
@@ -1,11 +1,28 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  interface IMetroMap {
4
- svg: string;
5
- selectedCluster: string;
4
+ elements: IElement;
5
+ selectedCluster?: string | string[];
6
6
  minor?: string[];
7
7
  major?: string[];
8
- onSelect?: (clusterId: string) => void;
8
+ onSelect?: (clusterId: string, subCluster: string) => void;
9
+ isMultiSelect?: boolean;
9
10
  }
10
- declare function MetroMap({ svg, onSelect, selectedCluster, minor, major }: IMetroMap): React.JSX.Element;
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;
11
28
  export default MetroMap;
@@ -1,3 +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[]>;
1
13
  declare function extractPrefix(inputString: string, prefix: string): string;
2
14
  declare const parseSvg: (svg: string) => Promise<any>;
3
- export { parseSvg, extractPrefix };
15
+ export { parseSvg, extractPrefix, extractZip, getParsedSvgViewsFromZip, startsWithAny };
@@ -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,4 @@
1
+ import { LinkProps as RouterLinkProps } from 'react-router-dom';
2
+ import * as React from "react";
3
+ declare const Link: React.ForwardRefExoticComponent<RouterLinkProps & React.RefAttributes<HTMLAnchorElement>>;
4
+ export default Link;
@@ -0,0 +1,10 @@
1
+ import { default as icons } from '../../Svg/icons';
2
+ import * as React from "react";
3
+ interface ListItemLinkProps {
4
+ icon?: keyof typeof icons;
5
+ primary: string;
6
+ to: string;
7
+ isActive?: boolean;
8
+ }
9
+ declare function ListItemLink({ icon, primary, to, isActive }: ListItemLinkProps): React.JSX.Element;
10
+ export default ListItemLink;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare function Router(props: {
3
+ children?: React.ReactNode;
4
+ }): React.JSX.Element;
5
+ export default Router;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { default as icons } from '../../Svg/icons';
3
+
4
+ export interface IItem {
5
+ path: string;
6
+ icon: keyof typeof icons;
7
+ label: string;
8
+ isActive: boolean;
9
+ }
10
+ export interface IVerticalNavigationProps {
11
+ list: IItem[];
12
+ }
13
+ declare function VerticalNavigation({ list }: IVerticalNavigationProps): React.JSX.Element;
14
+ export default VerticalNavigation;
@@ -0,0 +1 @@
1
+ export { default as VerticalNavigation } from './components/VerticalNavigation';
@@ -0,0 +1,5 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export declare const paperSx: SxProps;
4
+ export declare const listItemSx: (isActive?: boolean) => SxProps;
5
+ export declare const buttonIconSx: SxProps;
@@ -0,0 +1,3 @@
1
+ import { IItem } from '../components/VerticalNavigation/components/VerticalNavigation';
2
+
3
+ export declare const navigationList: IItem[];