@equinor/echo-components 0.11.5 → 0.11.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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "dependencies": {
5
- "chart.js": "4.4.2",
5
+ "chart.js": "4.4.3",
6
6
  "react-window": "1.8.10",
7
7
  "react-datepicker": "4.25.0"
8
8
  },
@@ -3,4 +3,6 @@ export declare const activeWorkOrderItemMock: WorkOrderItem;
3
3
  export declare const basicFinishWorkOrderItemMock: WorkOrderItem;
4
4
  export declare const completedWorkOrderItemMock: WorkOrderItem;
5
5
  export declare const completedWorkOrderItemMockLongDesc: WorkOrderItem;
6
- export declare const workOrderWithIconsItemMock: WorkOrderItem;
6
+ export declare const workOrderItemWithIconsMock: WorkOrderItem;
7
+ export declare const workOrderItemWithLongSortFieldTextMock: WorkOrderItem;
8
+ export declare const operationItemMock: WorkOrderItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface WithLabel {
3
2
  variant: 'square_icon_with_text' | 'square_icon_with_text_below';
4
3
  label: string;
@@ -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, }: InlineTagIconLinkProps) => React.JSX.Element;
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 };
@@ -9,4 +9,7 @@ export interface NotificationItem {
9
9
  requiredEndDateStatus?: string;
10
10
  requiredEndDateStatusDescription?: string;
11
11
  failureImpact?: string;
12
+ hasActivityLongText: boolean;
13
+ hasAttachment: boolean;
14
+ hasB30Document: boolean;
12
15
  }