@equinor/echo-components 0.11.13 → 0.11.14-beta12

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.11.13",
3
+ "version": "0.11.14-beta12",
4
4
  "dependencies": {
5
5
  "chart.js": "4.4.3",
6
6
  "react-datepicker": "4.25.0",
@@ -20,5 +20,6 @@
20
20
  "zustand": ">= 4.4.7 < 5"
21
21
  },
22
22
  "main": "./index.cjs.js",
23
- "type": "commonjs"
24
- }
23
+ "type": "commonjs",
24
+ "types": "./index.cjs.d.ts"
25
+ }
@@ -1,6 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { ChipProps } from '../../elements';
3
- import { IconSize, ItemMarkerIconType, ItemMarkerPosition, ItemMarkerSize } from './utils/itemMarkerUtils';
3
+ import { ItemMarkerIconType, ItemMarkerPosition, ItemMarkerSize } from './utils/itemMarkerUtils';
4
4
  export interface ItemMarkerProps {
5
5
  icon: ItemMarkerIconType;
6
6
  size?: ItemMarkerSize;
@@ -10,7 +10,6 @@ export interface ItemMarkerProps {
10
10
  chips?: ChipProps[];
11
11
  backgroundColor?: string;
12
12
  iconColor?: string;
13
- iconSize?: IconSize;
14
13
  hasPointer?: boolean;
15
14
  pointerPosition?: ItemMarkerPosition;
16
15
  style?: CSSProperties;
@@ -24,14 +23,13 @@ export interface ItemMarkerProps {
24
23
  * Renders an item marker with optional chips.
25
24
  *
26
25
  * @param {ItemMarkerIconType} icon - Icon to use.
27
- * @param {ItemMarkerSize} size - Size of the item marker (optional).
26
+ * @param {ItemMarkerSize} size - Size of the item marker. Default value is set to 36 (optional).
28
27
  * @param {boolean} isTransparent - If true, marker is visible; if false, transparent (optional).
29
28
  * @param {boolean} isActive - Indicates active state (optional).
30
29
  * @param {boolean} isChipsEnabled - Shows chips if true (optional).
31
30
  * @param {ChipProps[]} chips - Chips to display (optional).
32
31
  * @param {string} backgroundColor - The itemMarker's background color (optional).
33
32
  * @param {string} iconColor - Background color of the icon (optional).
34
- * @param {IconSize} iconSize - Size of the icon (optional).
35
33
  * @param {boolean} hasPointer - If true, marker includes a pointer (optional).
36
34
  * @param {ItemMarkerPosition} pointerPosition - ItemMarker's pointer position (optional).
37
35
  * @param {CSSProperties} style - Custom styles for itemMarker and chips (optional).
@@ -1,4 +1,4 @@
1
- import { IconSize, ItemMarkerIconType, ItemMarkerPosition, ItemMarkerSize } from './utils/itemMarkerUtils';
1
+ import { ItemMarkerIconType, ItemMarkerPosition, ItemMarkerSize } from './utils/itemMarkerUtils';
2
2
  export type ItemMarkerContentProps = {
3
3
  icon: ItemMarkerIconType;
4
4
  size?: ItemMarkerSize;
@@ -6,9 +6,8 @@ export type ItemMarkerContentProps = {
6
6
  pointerPosition?: ItemMarkerPosition;
7
7
  backgroundColor?: string;
8
8
  iconColor?: string;
9
- iconSize?: IconSize;
10
9
  isActive?: boolean;
11
10
  isTransparent?: boolean;
12
11
  onClick?: () => void;
13
12
  };
14
- export declare const ItemMarkerContent: ({ icon, size, hasPointer, pointerPosition, backgroundColor, iconColor, iconSize, isActive, isTransparent, onClick }: ItemMarkerContentProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ItemMarkerContent: ({ icon, size, hasPointer, pointerPosition, backgroundColor, iconColor, isActive, isTransparent, onClick }: ItemMarkerContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import { IconSize, ItemMarkerIconType, ItemMarkerSize } from './utils/itemMarkerUtils';
2
+ import { ItemMarkerIconType, ItemMarkerSize } from './utils/itemMarkerUtils';
3
3
  interface ItemMarkerIconProps {
4
4
  icon: ItemMarkerIconType;
5
5
  isActive?: boolean;
6
6
  backgroundColor?: string;
7
7
  iconColor?: string;
8
- iconSize?: IconSize;
9
8
  size?: ItemMarkerSize;
10
9
  }
11
10
  export declare const ItemMarkerIcon: React.FC<ItemMarkerIconProps>;
@@ -15,3 +15,4 @@ export declare enum ItemMarkerPosition {
15
15
  BottomLeft = "BottomLeft"
16
16
  }
17
17
  export declare const getPointerPositionClass: (position: ItemMarkerPosition | undefined) => string | undefined;
18
+ export declare const getIconSize: (markerSize: ItemMarkerSize) => number;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  export type ItemMarkerPopover = {
2
3
  items: JSX.Element[] | string[];
3
4
  isOpen: boolean;
@@ -6,5 +7,8 @@ export type ItemMarkerPopover = {
6
7
  title: string;
7
8
  closeOnOutsideClick?: boolean;
8
9
  containerHasMultipleItemMarkers?: boolean;
10
+ zIndex?: number;
11
+ className?: string;
12
+ style?: CSSProperties;
9
13
  };
10
- export declare const ItemMarkerPopover: ({ items, isOpen, handleClose, togglePopover, title, closeOnOutsideClick, containerHasMultipleItemMarkers }: ItemMarkerPopover) => false | import("react/jsx-runtime").JSX.Element;
14
+ export declare const ItemMarkerPopover: ({ items, isOpen, handleClose, togglePopover, title, closeOnOutsideClick, containerHasMultipleItemMarkers, zIndex, className, style }: ItemMarkerPopover) => false | import("react/jsx-runtime").JSX.Element;
@@ -3,3 +3,7 @@ export declare const map_legend_info: IconData;
3
3
  export declare const edit_points: IconData;
4
4
  export declare const em_drawing_tool: IconData;
5
5
  export declare const eraser: IconData;
6
+ export declare const em_drawing_group: IconData;
7
+ export declare const em_drawing_ungroup: IconData;
8
+ export declare const em_drawing_new_group: IconData;
9
+ export declare const em_drawing_move_group: IconData;