@equinor/echo-components 0.8.5 → 0.8.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "dependencies": {
5
5
  "chart.js": "4.4.0",
6
6
  "@floating-ui/react": "0.25.4",
@@ -0,0 +1,4 @@
1
+ import { NotificationItem } from '../types';
2
+ export declare const activeNotificationItemMock: NotificationItem;
3
+ export declare const completeNotificationItemMock: NotificationItem;
4
+ export declare const completeNotificationItemMockLongDesc: NotificationItem;
@@ -1,4 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
+ import { TagIconChipsProps } from '../../elements/tagIcon/TagIconWithChips';
3
+ export type StatusChipsProps = Omit<TagIconChipsProps, 'icon' | 'legendColor'>;
2
4
  interface ContextMenuProps {
3
5
  icon: JSX.Element;
4
6
  legendColor: string;
@@ -11,6 +13,7 @@ interface ContextMenuProps {
11
13
  selectedClassName?: string;
12
14
  selected: boolean;
13
15
  children?: React.ReactNode;
16
+ statusChips?: StatusChipsProps;
14
17
  }
15
18
  /**
16
19
  * Component that renders full context menu functionality, meant for displaying tag context menu.
@@ -22,7 +22,9 @@ export * from './searchBar';
22
22
  export * from './sidebarButton/SidebarButton';
23
23
  export * from './sidesheet';
24
24
  export * from './splitView';
25
+ export * from './subseaStatusLabel/SubseaStatusLabel';
25
26
  export * from './tagContextMenu/TagContextMenu';
26
27
  export * from './timePicker/TimePicker';
27
28
  export * from './workOrderListItem/WorkOrderListItem';
28
29
  export * from './workOrderListItem/WorkOrderStatusLabel';
30
+ export * from './notificationListItem/NotificationListItem';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { NotificationItem } from '../../types';
3
+ export interface NotificationListItemProps {
4
+ notification: NotificationItem;
5
+ onCardClick?: () => void;
6
+ itemAction?: React.ReactNode;
7
+ isHeader?: boolean;
8
+ }
9
+ declare function NotificationListItem(props: NotificationListItemProps): import("react/jsx-runtime").JSX.Element;
10
+ export { NotificationListItem };
@@ -0,0 +1,5 @@
1
+ interface SubseaStatusLabelProps {
2
+ isActive: boolean;
3
+ }
4
+ export declare function SubseaStatusLabel({ isActive }: SubseaStatusLabelProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -5,4 +5,6 @@ export * from './roundIconButton/RoundIconButton';
5
5
  export { SliderField } from './sliderField/SliderField';
6
6
  export { TagIcon } from './tagIcon/TagIcon';
7
7
  export { TagIconShadowWrapper } from './tagIcon/TagIconShadow';
8
+ export { TagIconWithChips } from './tagIcon/TagIconWithChips';
9
+ export type { ChipProps, TagIconChipsProps } from './tagIcon/TagIconWithChips';
8
10
  export * from './textIconButton/TextIconButton';
@@ -13,4 +13,4 @@ interface TagIconProps {
13
13
  * @return {*} {JSX.Element} Wrapped icon with provided color
14
14
  */
15
15
  export declare const TagIcon: React.FC<TagIconProps>;
16
- export default TagIcon;
16
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface ChipsProps {
3
+ icon: JSX.Element;
4
+ legendColor: string;
5
+ chips: ChipProps[];
6
+ }
7
+ export interface TagIconChipsProps extends ChipsProps {
8
+ isChipsEnabled: boolean;
9
+ }
10
+ export interface ChipProps {
11
+ title: string;
12
+ color: string;
13
+ }
14
+ export declare const TagIconWithChips: React.FC<TagIconChipsProps>;
@@ -0,0 +1,4 @@
1
+ export type ColorMap = {
2
+ color: string;
3
+ background: string;
4
+ };
@@ -11,3 +11,4 @@ export * from './menuItem';
11
11
  export * from './optionsItem';
12
12
  export * from './radioButtonItem';
13
13
  export * from './workOrderItem';
14
+ export * from './notificationItem';
@@ -0,0 +1,12 @@
1
+ export interface NotificationItem {
2
+ id: string;
3
+ type: string;
4
+ isActive: boolean;
5
+ title?: string;
6
+ planningPlant?: string;
7
+ mainWorkCenter?: string;
8
+ requiredEndDateTime?: Date;
9
+ requiredEndDateStatus?: string;
10
+ requiredEndDateStatusDescription?: string;
11
+ failureImpact?: string;
12
+ }
@@ -13,7 +13,3 @@ export interface WorkOrderItem {
13
13
  earlyStartDate?: Date;
14
14
  earlyFinishDate?: Date;
15
15
  }
16
- export type RequiredEndDateColor = {
17
- color: string;
18
- background: string;
19
- };
@@ -0,0 +1,4 @@
1
+ import { ColorMap } from "../types/colorMap";
2
+ declare function setRequiredEndDateColor(requiredEndDateStatus: string | undefined): ColorMap;
3
+ declare function setfailureImpactColor(failureImpactStatus: string | undefined): ColorMap;
4
+ export { setRequiredEndDateColor, setfailureImpactColor };
@@ -1,2 +1,4 @@
1
+ export * from './colors';
1
2
  export * from './date';
3
+ export * from './notification';
2
4
  export * from './workorder';
@@ -0,0 +1,2 @@
1
+ declare function setNotificationIconName(type: string): "notifications_m1" | "notifications_m2" | "notifications_m3" | "notifications_m4" | "notifications_m5" | "notifications_m6" | "notifications_m9" | "notifications_main_group";
2
+ export { setNotificationIconName };
@@ -1,4 +1,2 @@
1
- import { RequiredEndDateColor } from '../types';
2
1
  declare function setWorkOrderIconName(type: string): "workorders_pm01" | "workorders_pm02" | "workorders_pm03" | "workorders_pm04" | "workorders_pm05" | "workorders_pm06" | "workorders_pm10" | "workorders_pm15" | "workorders_pm20" | "workorders_main_group";
3
- declare function setRequiredEndDateColor(requiredEndDateStatus: string | undefined): RequiredEndDateColor;
4
- export { setRequiredEndDateColor, setWorkOrderIconName };
2
+ export { setWorkOrderIconName };