@equinor/echo-components 0.12.3 → 0.12.4
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/index.cjs.js +1 -1
- package/package.json +2 -2
- package/src/components/accordionWithSwitch/AccordionWithSwitch.d.ts +2 -1
- package/src/components/contextMenuPopover/DataInfoPopover.d.ts +1 -2
- package/src/components/dialogGenerator/DialogGenerator.d.ts +3 -1
- package/src/components/index.d.ts +1 -2
- package/src/components/itemMarker/MultipleItemMarkers.d.ts +7 -7
- package/src/components/itemMarker/utils/itemMarkerUtils.d.ts +1 -0
- package/src/components/workOrderListItem/WorkOrderStatusLabel.d.ts +0 -5
package/package.json
CHANGED
|
@@ -5,10 +5,11 @@ interface AccordionWithSwitchProps {
|
|
|
5
5
|
handleSwitchClick: () => void;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
descriptionHeading?: string;
|
|
8
|
+
isExpanded?: boolean;
|
|
8
9
|
isToggledOn?: boolean;
|
|
9
10
|
switchAriaLabel?: string;
|
|
10
11
|
switchDisabled?: boolean;
|
|
11
12
|
warning?: JSX.Element;
|
|
12
13
|
}
|
|
13
|
-
export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isToggledOn, switchDisabled, switchAriaLabel, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isExpanded, isToggledOn, switchDisabled, switchAriaLabel, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -14,5 +14,4 @@ export interface DataInfoPopoverProps {
|
|
|
14
14
|
* }
|
|
15
15
|
* @return {*} {JSX.Element} Popover with data information buttons based on the provided DataInformation objects
|
|
16
16
|
*/
|
|
17
|
-
declare const DataInfoPopover: React.FC<DataInfoPopoverProps>;
|
|
18
|
-
export default DataInfoPopover;
|
|
17
|
+
export declare const DataInfoPopover: React.FC<DataInfoPopoverProps>;
|
|
@@ -4,10 +4,12 @@ export interface DialogGeneratorProps {
|
|
|
4
4
|
dialogStyle?: CSSProperties;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
title: string;
|
|
7
|
-
actionButtons
|
|
7
|
+
actionButtons?: ActionButton[];
|
|
8
8
|
open: boolean;
|
|
9
9
|
isDismissable?: boolean;
|
|
10
10
|
onClose?: () => void;
|
|
11
|
+
closeIcon?: boolean;
|
|
12
|
+
dialogClassName?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Component that renders a dialog box based on input properties
|
|
@@ -52,10 +52,9 @@ export * from './secondaryMarker/SecondaryMarkerWrapper';
|
|
|
52
52
|
export * from './sidebarButton/SidebarButton';
|
|
53
53
|
export * from './sidesheet';
|
|
54
54
|
export * from './splitView';
|
|
55
|
-
export * from './switch/Switch';
|
|
56
55
|
export * from './subseaStatusLabel/SubseaStatusLabel';
|
|
56
|
+
export * from './switch/Switch';
|
|
57
57
|
export * from './tagContextMenu/TagContextMenu';
|
|
58
58
|
export * from './titleAndStatusLabel/titleAndStatusLabel';
|
|
59
59
|
export * from './visualTextIcon/visualTextIcon';
|
|
60
60
|
export * from './workOrderListItem/WorkOrderListItem';
|
|
61
|
-
export * from './workOrderListItem/WorkOrderStatusLabel';
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ItemMarkerPosition } from './utils/itemMarkerUtils';
|
|
3
|
+
export interface MultipleItemMarkersProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
isTransparent?: boolean;
|
|
6
|
+
pointerPosition?: ItemMarkerPosition;
|
|
7
|
+
className?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* Generic component that renders multiple item markers
|
|
5
12
|
*
|
|
@@ -12,11 +19,4 @@ import { ItemMarkerPosition } from './utils/itemMarkerUtils';
|
|
|
12
19
|
*
|
|
13
20
|
* @returns {JSX.Element} The rendered component
|
|
14
21
|
*/
|
|
15
|
-
export interface MultipleItemMarkersProps {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
isTransparent?: boolean;
|
|
18
|
-
pointerPosition?: ItemMarkerPosition;
|
|
19
|
-
className?: string;
|
|
20
|
-
onClick?: () => void;
|
|
21
|
-
}
|
|
22
22
|
export declare const MultipleItemMarkers: React.FC<MultipleItemMarkersProps>;
|
|
@@ -14,5 +14,6 @@ export declare enum ItemMarkerPosition {
|
|
|
14
14
|
BottomRight = "BottomRight",
|
|
15
15
|
BottomLeft = "BottomLeft"
|
|
16
16
|
}
|
|
17
|
+
export type Side = 'Top' | 'Bottom' | 'Left' | 'Right';
|
|
17
18
|
export declare const getPointerPositionClass: (position: ItemMarkerPosition | undefined) => string | undefined;
|
|
18
19
|
export declare const getIconSize: (markerSize: ItemMarkerSize) => number;
|