@equinor/echo-components 0.11.6 → 0.11.8
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/README.md +147 -3
- package/index.cjs.js +1 -1
- package/package.json +2 -2
- package/src/components/floatingActionButton/FloatingActionButton.d.ts +0 -1
- package/src/components/iconLink/inlineTagIconLink/InlineTagIconLink.d.ts +1 -1
- package/src/components/index.d.ts +3 -0
- package/src/components/multilineTabs/MultilineTabs.d.ts +26 -0
- package/src/components/sidebarButton/SidebarButton.d.ts +1 -10
- package/src/components/titleAndStatusLabel/titleAndStatusLabel.d.ts +18 -0
- package/src/components/visualTextIcon/visualTextIcon.d.ts +19 -0
- package/src/components/workOrderListItem/WorkOrderListItem.d.ts +5 -0
package/package.json
CHANGED
|
@@ -9,5 +9,5 @@ export interface InlineTagIconLinkProps {
|
|
|
9
9
|
disableHover?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const InlineTagIconLink: ({ onClickHandler, tagNo, description, tagCategoryDescription, icon, legendColor, disableHover, className
|
|
12
|
+
export declare const InlineTagIconLink: ({ onClickHandler, tagNo, description, tagCategoryDescription, icon, legendColor, disableHover, className }: InlineTagIconLinkProps) => React.JSX.Element;
|
|
13
13
|
export default InlineTagIconLink;
|
|
@@ -24,6 +24,7 @@ export * from './linkIcon/LinkIcon';
|
|
|
24
24
|
export * from './listItem';
|
|
25
25
|
export * from './listRow/ListRow';
|
|
26
26
|
export * from './markedContent/MarkedContent';
|
|
27
|
+
export * from './multilineTabs/MultilineTabs';
|
|
27
28
|
export * from './notificationListItem/NotificationListItem';
|
|
28
29
|
export * from './pcMatrix/PCMatrix';
|
|
29
30
|
export * from './rightPanel';
|
|
@@ -37,5 +38,7 @@ export * from './sidesheet';
|
|
|
37
38
|
export * from './splitView';
|
|
38
39
|
export * from './subseaStatusLabel/SubseaStatusLabel';
|
|
39
40
|
export * from './tagContextMenu/TagContextMenu';
|
|
41
|
+
export * from './titleAndStatusLabel/titleAndStatusLabel';
|
|
42
|
+
export * from './visualTextIcon/visualTextIcon';
|
|
40
43
|
export * from './workOrderListItem/WorkOrderListItem';
|
|
41
44
|
export * from './workOrderListItem/WorkOrderStatusLabel';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TabProps } from '@equinor/eds-core-react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type PredefinedTab = {
|
|
4
|
+
title: string;
|
|
5
|
+
options?: TabProps;
|
|
6
|
+
};
|
|
7
|
+
export interface MultilineTabsProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
tabs: PredefinedTab[];
|
|
10
|
+
activeTabIndex: number;
|
|
11
|
+
onTabChange: (index: number) => void;
|
|
12
|
+
children: ReactNode[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An EDS Tabs component that can be expanded to show overflow in multiple lines.
|
|
16
|
+
*
|
|
17
|
+
* @param {MultilineTabsProps} {
|
|
18
|
+
* className: Style overrides
|
|
19
|
+
* tabs: Tab titles and options
|
|
20
|
+
* activeTabIndex: The current active tab index. Can be overridden with options.active.
|
|
21
|
+
* onTabChange: Callback for when the tab index changes.
|
|
22
|
+
* children: The sectioned tab content
|
|
23
|
+
* }
|
|
24
|
+
* @returns {*} {JSX.Element} Returns a custom EDS Tab bar and sectioned content.
|
|
25
|
+
*/
|
|
26
|
+
export declare const MultilineTabs: (props: MultilineTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -57,14 +57,5 @@ export interface SidebarButtonProps {
|
|
|
57
57
|
* }
|
|
58
58
|
* @return {*} {JSX.Element}
|
|
59
59
|
*/
|
|
60
|
-
export declare const SidebarButton: {
|
|
61
|
-
({ text, active, onClick, count, buttonPosition, refValue, id, children }: SidebarButtonProps): React.JSX.Element;
|
|
62
|
-
defaultProps: {
|
|
63
|
-
text: string;
|
|
64
|
-
children: import("react/jsx-runtime").JSX.Element;
|
|
65
|
-
refValue: undefined;
|
|
66
|
-
id: string;
|
|
67
|
-
buttonPosition: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
60
|
+
export declare const SidebarButton: ({ text, active, onClick, count, buttonPosition, refValue, id, children }: SidebarButtonProps) => React.JSX.Element;
|
|
70
61
|
export default SidebarButton;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface TitleAndStatusLabelProps {
|
|
3
|
+
title: string;
|
|
4
|
+
statusText: string;
|
|
5
|
+
statusColor?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Component that renders a title with status label
|
|
9
|
+
*
|
|
10
|
+
* @param {TitleAndStatusLabelProps} {
|
|
11
|
+
* title: the id or title
|
|
12
|
+
* statusText: the status text
|
|
13
|
+
* statusColor: sets the color of the status label
|
|
14
|
+
* }
|
|
15
|
+
* @returns {*} {JSX.Element} Returns a title with its status label
|
|
16
|
+
*/
|
|
17
|
+
export declare const TitleAndStatusLabel: React.FC<TitleAndStatusLabelProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface VisualTextIconProps {
|
|
3
|
+
/**
|
|
4
|
+
* Text that replaces the icon
|
|
5
|
+
*/
|
|
6
|
+
visualText: string;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Component that renders a VisualTextIcon
|
|
11
|
+
*
|
|
12
|
+
* @param {VisualTextIconProps} {
|
|
13
|
+
* visualText: text that replaces the icon
|
|
14
|
+
* backgroundColor: sets the background color of the element
|
|
15
|
+
* }
|
|
16
|
+
* @returns {*} {JSX.Element} Visual Text Icon that can be used to replace the traditional icon in cards, list items etc.
|
|
17
|
+
*/
|
|
18
|
+
export declare const VisualTextIcon: React.FC<VisualTextIconProps>;
|
|
19
|
+
export {};
|
|
@@ -8,6 +8,11 @@ export interface WorkOrderListItemProps {
|
|
|
8
8
|
colorMap?: ColorMap;
|
|
9
9
|
iconName?: string;
|
|
10
10
|
workOrderDateType?: WorkOrderDateType;
|
|
11
|
+
className?: string;
|
|
11
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated since the component contains business logic, it is moved to echo-framework.
|
|
15
|
+
* Use `WorkOrderListItem` imported from `@equinor/echo-framework` instead.
|
|
16
|
+
*/
|
|
12
17
|
declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
13
18
|
export { WorkOrderListItem };
|