@equinor/echo-components 0.12.4 → 0.12.5
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 +1 -1
- package/src/components/index.d.ts +0 -2
- package/src/components/itemMarker/MultipleItemMarkers.d.ts +6 -1
- package/src/components/itemMarkerPopover/itemMarkerPopover.d.ts +1 -2
- package/src/components/multilineTabs/MultilineTabs.d.ts +3 -2
- package/src/components/notificationListItem/NotificationListItem.d.ts +6 -0
- package/src/types/endDateStatus.d.ts +1 -0
- package/src/types/index.d.ts +1 -0
- package/src/components/itemMarker/multipleItemMarkersId.d.ts +0 -1
- package/src/components/itemMarkerAndPopoverWrapper/itemMarkerAndPopoverWrapper.d.ts +0 -23
package/package.json
CHANGED
|
@@ -24,9 +24,7 @@ export * from './itemMarker/ItemMarker';
|
|
|
24
24
|
export type { ItemMarkerChipProps } from './itemMarker/ItemMarkerChip';
|
|
25
25
|
export * from './itemMarker/ItemMarkerIcon';
|
|
26
26
|
export * from './itemMarker/MultipleItemMarkers';
|
|
27
|
-
export { multipleItemMarkersId } from './itemMarker/multipleItemMarkersId';
|
|
28
27
|
export * from './itemMarker/utils/itemMarkerUtils';
|
|
29
|
-
export * from './itemMarkerAndPopoverWrapper/itemMarkerAndPopoverWrapper';
|
|
30
28
|
export * from './itemMarkerPopover/itemMarkerPopover';
|
|
31
29
|
export * from './legend';
|
|
32
30
|
export * from './legendChip/LegendChip';
|
|
@@ -6,16 +6,21 @@ export interface MultipleItemMarkersProps {
|
|
|
6
6
|
pointerPosition?: ItemMarkerPosition;
|
|
7
7
|
className?: string;
|
|
8
8
|
onClick?: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Anchors the pointer (arrow) to the top-left corner of the parent container.
|
|
11
|
+
*/
|
|
12
|
+
enablePointerAnchor?: boolean;
|
|
9
13
|
}
|
|
10
14
|
/**
|
|
11
15
|
* Generic component that renders multiple item markers
|
|
12
16
|
*
|
|
13
17
|
*
|
|
14
|
-
* @param {ReactNode} children - Use for adding multiple ItemMarkers.
|
|
18
|
+
* @param {ReactNode} children - Use for adding multiple ItemMarkers and ItemMarkerPopover.
|
|
15
19
|
* @param {boolean} isTransparent - Boolean that determines whether the marker is transparent. When set to true, the marker is displayed; when false, the marker is made transparent (optional).
|
|
16
20
|
* @param {ItemMarkerPosition} pointerPosition - A value that determines the position of the pointer relative to the marker. This specifies where the pointer should be placed (optional).
|
|
17
21
|
* @param {string} className - Use for styling (optional).
|
|
18
22
|
* @param {() => void} onClick - Click handler for the itemMarker (optional).
|
|
23
|
+
* @param {boolean} enablePointerAnchor - Anchors the pointer (arrow) to the top-left corner of the parent container (optional).
|
|
19
24
|
*
|
|
20
25
|
* @returns {JSX.Element} The rendered component
|
|
21
26
|
*/
|
|
@@ -5,9 +5,8 @@ export type ItemMarkerPopover = {
|
|
|
5
5
|
handleClose: () => void;
|
|
6
6
|
title: string;
|
|
7
7
|
closeOnOutsideClick?: boolean;
|
|
8
|
-
containerHasMultipleItemMarkers?: boolean;
|
|
9
8
|
zIndex?: number;
|
|
10
9
|
className?: string;
|
|
11
10
|
style?: CSSProperties;
|
|
12
11
|
};
|
|
13
|
-
export declare const ItemMarkerPopover: ({ items, isOpen, handleClose, title,
|
|
12
|
+
export declare const ItemMarkerPopover: ({ items, isOpen, handleClose, title, zIndex, className, style }: ItemMarkerPopover) => false | import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,15 +6,16 @@ export type PredefinedTab = {
|
|
|
6
6
|
/** Options which are passed on to Tabs.Tab component. */
|
|
7
7
|
options?: TabProps;
|
|
8
8
|
variant?: {
|
|
9
|
-
/** Title is
|
|
9
|
+
/** Title is preceded by a circular loading indicator. */
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
};
|
|
12
|
+
indicatorColor?: string;
|
|
12
13
|
};
|
|
13
14
|
export interface MultilineTabsProps {
|
|
14
15
|
className?: string;
|
|
15
16
|
tabs: PredefinedTab[];
|
|
16
17
|
activeTabIndex: number;
|
|
17
|
-
onTabChange
|
|
18
|
+
onTabChange?: (index: number) => void;
|
|
18
19
|
initiallyExpanded?: boolean;
|
|
19
20
|
children: ReactElement<typeof Tabs.Panels>;
|
|
20
21
|
}
|
|
@@ -7,5 +7,11 @@ export interface NotificationListItemProps {
|
|
|
7
7
|
isHeader?: boolean;
|
|
8
8
|
colorMap?: ColorMap;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated This component has been moved to echo-framework.
|
|
12
|
+
* Please use NotificationListItem from echo-framework instead.
|
|
13
|
+
* This version in echo-components will be removed when echo-maps no longer depends on it.
|
|
14
|
+
* No new features or bugfixes will be applied here.
|
|
15
|
+
*/
|
|
10
16
|
declare function NotificationListItem(props: NotificationListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
17
|
export { NotificationListItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EndDateStatus = 'completed' | 'expired' | 'withinsevendays' | 'eightdaystoonemonth' | 'onetothreemonths' | 'threetosixmonths' | 'sixtotwelvemonths' | 'inmorethanoneyear' | 'unknown';
|
package/src/types/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const multipleItemMarkersId = "multipleItemMarkers";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
type ItemMarkerAndPopoverWrapperProps = {
|
|
3
|
-
title: string;
|
|
4
|
-
items: JSX.Element[];
|
|
5
|
-
itemMarker: JSX.Element;
|
|
6
|
-
closeOnOutsideClick?: boolean;
|
|
7
|
-
containerHasMultipleItemMarkers?: boolean;
|
|
8
|
-
popoverZIndex?: number;
|
|
9
|
-
popoverStyle?: CSSProperties;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param {string} title - Title of the popover.
|
|
14
|
-
* @param {JSX.Element[]} items - List of items to be displayed in the popover.
|
|
15
|
-
* @param {JSX.Element} itemMarker - Item marker component. This can also be the MultipleIconMarkers component.
|
|
16
|
-
* @param {boolean} closeOnOutsideClick - If true, popover will close on outside click (optional).
|
|
17
|
-
* @param {boolean} containerHasMultipleItemMarkers - If true, styling takes into account the hover and such of the MultipleItemMarkers component.
|
|
18
|
-
* @param {number} popoverZIndex - Z-index of the popover.
|
|
19
|
-
* @param {CSSProperties} popoverStyle - style of the popover.
|
|
20
|
-
* @returns {JSX.Element} Component
|
|
21
|
-
*/
|
|
22
|
-
export declare const ItemMarkerAndPopoverWrapper: ({ title, items, itemMarker, closeOnOutsideClick, containerHasMultipleItemMarkers, popoverZIndex, popoverStyle }: ItemMarkerAndPopoverWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|