@equinor/echo-components 0.9.5 → 0.9.7
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/1dd428dbc8752224.svg +19 -0
- package/246374c510469011.svg +142 -0
- package/8ddc7d44de9795fc.svg +112 -0
- package/README.md +64 -0
- package/c283d1a6c49e1d97.svg +82 -0
- package/index.cjs.js +1 -1
- package/package.json +1 -1
- package/src/components/blackLink/BlackLink.d.ts +3 -1
- package/src/components/dropdown/Dropdown.d.ts +1 -0
- package/src/components/floatingActionButton/FloatingActionButton.d.ts +1 -1
- package/src/components/floatingActionButton/fabGroup/FabButton.d.ts +54 -0
- package/src/components/floatingActionButton/fabGroup/FabGroup.d.ts +8 -0
- package/src/components/floatingActionButton/fabGroup/index.d.ts +6 -0
- package/src/components/floatingActionButton/index.d.ts +2 -0
- package/src/components/horizontalTabView/HorizontalTabView.d.ts +14 -0
- package/src/components/horizontalTabView/index.d.ts +14 -0
- package/src/components/iconLink/compactIconLink/CompactIconLink.d.ts +10 -0
- package/src/components/index.d.ts +4 -1
- package/src/components/legend/MainLegend.d.ts +9 -1
- package/src/components/legend/layerLegend/LayerLegend.d.ts +5 -1
- package/src/icons/appIcons/external/index.d.ts +8 -0
- package/src/icons/appIcons/index.d.ts +6 -0
- package/src/icons/appIcons/microsoft/index.d.ts +10 -0
- package/src/icons/echoAssets/subsea.d.ts +1 -0
- package/src/icons/index.d.ts +1 -0
- /package/src/components/{inlineTagIconLink → iconLink/inlineTagIconLink}/InlineTagIconLink.d.ts +0 -0
package/package.json
CHANGED
|
@@ -8,6 +8,8 @@ interface LinkProps {
|
|
|
8
8
|
preserveTab?: boolean;
|
|
9
9
|
/** The text to be displayed in the tooltip. */
|
|
10
10
|
tooltipText?: string;
|
|
11
|
+
/** The text to be displayed in the tooltip. */
|
|
12
|
+
onClick?: () => void;
|
|
11
13
|
}
|
|
12
|
-
export declare const BlackLink: ({ className, href, linkText, preserveTab, tooltipText, }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const BlackLink: ({ className, href, linkText, preserveTab, tooltipText, onClick, }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ButtonProps } from '@equinor/eds-core-react';
|
|
3
|
+
import { IconData } from '@equinor/eds-icons';
|
|
4
|
+
type FabButtonBaseProps = ButtonProps & {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Will set button as disabled and stop the onClick function from being called
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Will trigger a tooltip to render with this title
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Default placement is left
|
|
17
|
+
*/
|
|
18
|
+
tooltipPlacement?: 'left' | 'right';
|
|
19
|
+
/**
|
|
20
|
+
* Delay for rendering tooltip - default 300ms
|
|
21
|
+
*/
|
|
22
|
+
delay?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Styling
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
};
|
|
29
|
+
type FabButtonIconNameProps = FabButtonBaseProps & {
|
|
30
|
+
/**
|
|
31
|
+
* Mutually exclusive with IconData. One of them is required.
|
|
32
|
+
*/
|
|
33
|
+
iconName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Mutually exclusive with IconName. One of them is required.
|
|
36
|
+
*/
|
|
37
|
+
iconData?: never;
|
|
38
|
+
};
|
|
39
|
+
type FabButtonIconDataProps = FabButtonBaseProps & {
|
|
40
|
+
/**
|
|
41
|
+
* Mutually exclusive with IconData. One of them is required.
|
|
42
|
+
*/
|
|
43
|
+
iconName?: never;
|
|
44
|
+
/**
|
|
45
|
+
* Mutually exclusive with IconName. One of them is required.
|
|
46
|
+
*/
|
|
47
|
+
iconData: IconData;
|
|
48
|
+
};
|
|
49
|
+
type FabButtonProps = FabButtonIconNameProps | FabButtonIconDataProps;
|
|
50
|
+
/**
|
|
51
|
+
* List item wraps this button as its meant for FabGroup
|
|
52
|
+
*/
|
|
53
|
+
export declare function FabButton({ title, tooltipPlacement, delay, className, style, iconName, iconData, active, disabled, ariaLabel, onClick, ...buttonProps }: FabButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
type FabGroupProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function FabGroup({ className, style, children }: FabGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TabListProps, TabPanelsProps, TabsProps } from '@equinor/eds-core-react';
|
|
3
|
+
/** The topmost wrapper element for the tab view.*/
|
|
4
|
+
export declare function TabView(props: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/** Returns the parent element of the tabs themselves. */
|
|
6
|
+
export declare function Tabs(props: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/** Returns a button that acts like a tab button in a tab list. */
|
|
8
|
+
export declare const Tab: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
active?: boolean | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
as?: import("react").ElementType | undefined;
|
|
12
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<unknown>>;
|
|
13
|
+
/** Returns the parent of the tab-sectioned content. */
|
|
14
|
+
export declare function TabPanels(props: TabPanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Tab, TabPanels, TabView, Tabs } from './HorizontalTabView';
|
|
3
|
+
declare const EDSPanel: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
hidden?: boolean | undefined;
|
|
5
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
interface HorizontalTabsProps {
|
|
7
|
+
HorizontalTabs: typeof TabView;
|
|
8
|
+
Tabs: typeof Tabs;
|
|
9
|
+
Tab: typeof Tab;
|
|
10
|
+
TabPanels: typeof TabPanels;
|
|
11
|
+
TabPanel: typeof EDSPanel;
|
|
12
|
+
}
|
|
13
|
+
export declare const HorizontalTabView: HorizontalTabsProps;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CompactIconLinkProps {
|
|
3
|
+
title: string;
|
|
4
|
+
meta: string;
|
|
5
|
+
legendColor?: string;
|
|
6
|
+
onClickHandler: () => void;
|
|
7
|
+
icon?: string | React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const CompactIconLink: ({ title, meta, legendColor, onClickHandler, icon, className, }: CompactIconLinkProps) => JSX.Element;
|
|
@@ -10,8 +10,11 @@ export * from './dropdown/Dropdown';
|
|
|
10
10
|
export * from './echoBottomBar/EchoBottomBar';
|
|
11
11
|
export * from './echoCard/index';
|
|
12
12
|
export * from './echoHeader/EchoHeader';
|
|
13
|
+
export * from './floatingActionButton';
|
|
13
14
|
export * from './floatingActionButton/FloatingActionButton';
|
|
14
|
-
export * from './
|
|
15
|
+
export * from './horizontalTabView';
|
|
16
|
+
export * from './iconLink/compactIconLink/CompactIconLink';
|
|
17
|
+
export * from './iconLink/inlineTagIconLink/InlineTagIconLink';
|
|
15
18
|
export * from './legend';
|
|
16
19
|
export * from './linkIcon/LinkIcon';
|
|
17
20
|
export * from './listItem';
|
|
@@ -17,6 +17,14 @@ interface MainLegendProps {
|
|
|
17
17
|
* Styling for the content of the legend
|
|
18
18
|
*/
|
|
19
19
|
legendContentStyle?: CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Custom styling for the legend.
|
|
22
|
+
*/
|
|
23
|
+
legendClassName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Custom styling for the legend content.
|
|
26
|
+
*/
|
|
27
|
+
legendContentClassName?: string;
|
|
20
28
|
}
|
|
21
|
-
declare function MainLegend({ legends, layers, legendStyle, legendContentStyle }: MainLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function MainLegend({ legends, layers, legendStyle, legendContentStyle, legendContentClassName, legendClassName }: MainLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
22
30
|
export { MainLegend };
|
|
@@ -28,6 +28,10 @@ interface LayerLegendProps {
|
|
|
28
28
|
* Styling for the content of the legend
|
|
29
29
|
*/
|
|
30
30
|
style?: CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Classname for the content of the legend
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
31
35
|
}
|
|
32
|
-
declare function LayerLegend({ title, iconName, itemsCount, itemsTitle, children, disabled, style }: LayerLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function LayerLegend({ title, iconName, itemsCount, itemsTitle, children, disabled, style, className }: LayerLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
33
37
|
export { LayerLegend };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ReactComponent as Semi } from './semi.svg';
|
|
2
|
+
export { ReactComponent as Evision } from './evision.svg';
|
|
3
|
+
export { ReactComponent as Fusion } from './fusion.svg';
|
|
4
|
+
export { ReactComponent as ProCoSys } from './procosys.svg';
|
|
5
|
+
export { ReactComponent as Stid } from './stid.svg';
|
|
6
|
+
export { ReactComponent as TR2000 } from './tr2000.svg';
|
|
7
|
+
export { ReactComponent as Yammer } from './yammer.svg';
|
|
8
|
+
export { ReactComponent as SAP } from './sap.svg';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { ReactComponent as Teams } from './teams.svg';
|
|
2
|
+
export { ReactComponent as PowerPoint } from './powerpoint.svg';
|
|
3
|
+
export { ReactComponent as Word } from './word.svg';
|
|
4
|
+
export { ReactComponent as Excel } from './excel.svg';
|
|
5
|
+
export { ReactComponent as OneNote } from './onenote.svg';
|
|
6
|
+
export { ReactComponent as SharePoint } from './powerpoint.svg';
|
|
7
|
+
export { ReactComponent as Skype } from './skype.svg';
|
|
8
|
+
export { ReactComponent as Yammer } from './yammer.svg';
|
|
9
|
+
export { ReactComponent as Outlook } from './outlook.svg';
|
|
10
|
+
export { ReactComponent as OneDrive } from './onedrive.svg';
|
package/src/icons/index.d.ts
CHANGED
/package/src/components/{inlineTagIconLink → iconLink/inlineTagIconLink}/InlineTagIconLink.d.ts
RENAMED
|
File without changes
|