@equinor/echo-components 0.9.0 → 0.9.2
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/package.json
CHANGED
|
@@ -15,6 +15,8 @@ export * from './inlineTagIconLink/InlineTagIconLink';
|
|
|
15
15
|
export * from './legend';
|
|
16
16
|
export * from './listItem';
|
|
17
17
|
export * from './listRow/ListRow';
|
|
18
|
+
export * from './markedContent/MarkedContent';
|
|
19
|
+
export * from './notificationListItem/NotificationListItem';
|
|
18
20
|
export * from './pcMatrix/PCMatrix';
|
|
19
21
|
export * from './rightPanel';
|
|
20
22
|
export * from './searchBar';
|
|
@@ -26,4 +28,3 @@ export * from './tagContextMenu/TagContextMenu';
|
|
|
26
28
|
export * from './timePicker/TimePicker';
|
|
27
29
|
export * from './workOrderListItem/WorkOrderListItem';
|
|
28
30
|
export * from './workOrderListItem/WorkOrderStatusLabel';
|
|
29
|
-
export * from './notificationListItem/NotificationListItem';
|
|
@@ -7,6 +7,7 @@ export interface InlineTagIconLinkProps {
|
|
|
7
7
|
icon?: string | React.ReactNode;
|
|
8
8
|
legendColor: string;
|
|
9
9
|
disableHover?: boolean;
|
|
10
|
+
className?: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const InlineTagIconLink: ({ onClickHandler, tagNo, description, tagCategoryDescription, icon, legendColor, disableHover }: InlineTagIconLinkProps) => React.JSX.Element;
|
|
12
|
+
export declare const InlineTagIconLink: ({ onClickHandler, tagNo, description, tagCategoryDescription, icon, legendColor, disableHover, className, }: InlineTagIconLinkProps) => React.JSX.Element;
|
|
12
13
|
export default InlineTagIconLink;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface MarkedContentProps {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
textColor: string;
|
|
5
|
+
children: JSX.Element | string[] | string | number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function MarkedContent({ backgroundColor, textColor, children, className, }: MarkedContentProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/src/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './actionButton';
|
|
2
2
|
export * from './charts';
|
|
3
|
+
export * from './colorMap';
|
|
3
4
|
export * from './dataInformation';
|
|
4
5
|
export * from './draggableItem';
|
|
5
6
|
export * from './expandableRowProps';
|
|
@@ -8,7 +9,7 @@ export * from './iconListItem';
|
|
|
8
9
|
export * from './legend';
|
|
9
10
|
export * from './linkCardItem';
|
|
10
11
|
export * from './menuItem';
|
|
12
|
+
export * from './notificationItem';
|
|
11
13
|
export * from './optionsItem';
|
|
12
14
|
export * from './radioButtonItem';
|
|
13
15
|
export * from './workOrderItem';
|
|
14
|
-
export * from './notificationItem';
|
package/src/utils/colors.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ColorMap } from "../types/colorMap";
|
|
2
2
|
declare function setRequiredEndDateColor(requiredEndDateStatus: string | undefined): ColorMap;
|
|
3
|
-
declare function
|
|
4
|
-
|
|
3
|
+
declare function setFailureImpactColor(failureImpactStatus: string | undefined): ColorMap;
|
|
4
|
+
declare function setPriorityColor(priorityId: string | undefined): ColorMap;
|
|
5
|
+
declare function setUnsafeFailureColor(unsafeFailure: string | undefined): ColorMap;
|
|
6
|
+
export { setPriorityColor, setRequiredEndDateColor, setUnsafeFailureColor, setFailureImpactColor };
|