@equinor/echo-components 0.9.4 → 0.9.5-beta-0

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,10 +1,10 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.9.4",
3
+ "version": "0.9.5-beta-0",
4
4
  "dependencies": {
5
5
  "chart.js": "4.4.0",
6
6
  "react-window": "1.8.9",
7
- "react-datepicker": "4.18.0"
7
+ "react-datepicker": "4.21.0"
8
8
  },
9
9
  "peerDependencies": {
10
10
  "@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
@@ -12,7 +12,7 @@
12
12
  "@equinor/eds-icons": "=0.17.0",
13
13
  "react": ">= 17.0.2",
14
14
  "react-dom": ">= 17.0.2",
15
- "zustand": "4.4.1",
15
+ "zustand": "4.4.6",
16
16
  "lodash": "4.17.21",
17
17
  "react-sortablejs": "6.1.4",
18
18
  "sortablejs": "1.15.0",
@@ -21,6 +21,10 @@ export * from './notificationListItem/NotificationListItem';
21
21
  export * from './pcMatrix/PCMatrix';
22
22
  export * from './rightPanel';
23
23
  export * from './searchBar';
24
+ export * from './secondaryMarker/SecondaryMarker';
25
+ export * from './secondaryMarker/SecondaryMarkerExpander';
26
+ export * from './secondaryMarker/SecondaryMarkerWithChip';
27
+ export * from './secondaryMarker/SecondaryMarkerWrapper';
24
28
  export * from './sidebarButton/SidebarButton';
25
29
  export * from './sidesheet';
26
30
  export * from './splitView';
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ export interface SecondaryMarkerProps {
3
+ /**
4
+ * The title
5
+ */
6
+ title: string;
7
+ /**
8
+ * The description
9
+ */
10
+ description: string;
11
+ onClick?: () => void;
12
+ /**
13
+ * Key if needed
14
+ */
15
+ key?: string;
16
+ /**
17
+ * children if needed
18
+ */
19
+ children?: React.ReactNode;
20
+ /**
21
+ * className if needed
22
+ */
23
+ className?: string;
24
+ }
25
+ /**
26
+ * Secondary Marker
27
+ * If the user want to see some secondary information on a specific marker,
28
+ * related to either a child or parent item, for example the ContextMenu tag component.
29
+ * It consist of a title and description.
30
+ *
31
+ * Recommended to use it in combination with both the SecondaryMarkerWrapper and SecondaryMarkerExpander.
32
+ */
33
+ export declare const SecondaryMarker: React.FC<SecondaryMarkerProps>;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ interface SecondaryMarkerExpanderProps {
3
+ /**
4
+ * onClick for the expander
5
+ */
6
+ onClick: () => void;
7
+ /**
8
+ * A boolean used to check if the expander is expanded
9
+ */
10
+ isExpanded: boolean;
11
+ /**
12
+ * The total number of items
13
+ */
14
+ numberOfItems: number;
15
+ /**
16
+ * The max items you want to display without expanding
17
+ * */
18
+ maxItemsToDisplay: number;
19
+ /**
20
+ * The text to show in the expander
21
+ * */
22
+ expanderText: string;
23
+ }
24
+ export declare const SecondaryMarkerExpander: React.FC<SecondaryMarkerExpanderProps>;
25
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface SecondaryMarkerWithChipProps {
3
+ title: string;
4
+ description: string;
5
+ status: string;
6
+ color: string;
7
+ onClick?: () => void;
8
+ key?: string;
9
+ children?: React.ReactNode;
10
+ className?: string;
11
+ }
12
+ export declare const SecondaryMarkerWithChip: React.FC<SecondaryMarkerWithChipProps>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface SecondaryMarkerWrapperProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ export declare const SecondaryMarkerWrapper: React.FC<SecondaryMarkerWrapperProps>;
@@ -3,8 +3,11 @@ export { Icon } from './icon/Icon';
3
3
  export { RadioButtonGroup } from './radioButtonGroup/RadioButtonGroup';
4
4
  export * from './roundIconButton/RoundIconButton';
5
5
  export { SliderField } from './sliderField/SliderField';
6
+ export type { ChipProps } from './tagIcon/Chip';
7
+ export { Chip } from './tagIcon/Chip';
8
+ export { Chips } from './tagIcon/Chips';
6
9
  export { TagIcon } from './tagIcon/TagIcon';
7
10
  export { TagIconShadowWrapper } from './tagIcon/TagIconShadow';
8
11
  export { TagIconWithChips } from './tagIcon/TagIconWithChips';
9
- export type { ChipProps, TagIconChipsProps } from './tagIcon/TagIconWithChips';
12
+ export type { TagIconChipsProps } from './tagIcon/TagIconWithChips';
10
13
  export * from './textIconButton/TextIconButton';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface ChipProps {
3
+ title: string;
4
+ color: string;
5
+ key?: string;
6
+ className?: string;
7
+ }
8
+ export declare const Chip: React.FC<ChipProps>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ChipProps } from './Chip';
3
+ export interface ChipsProps {
4
+ chips: ChipProps[];
5
+ }
6
+ export declare const Chips: React.FC<ChipsProps>;
@@ -1,14 +1,8 @@
1
- import React from 'react';
2
- export interface ChipsProps {
3
- icon: JSX.Element;
4
- legendColor: string;
5
- chips: ChipProps[];
6
- }
1
+ /// <reference types="react" />
2
+ import { ChipsProps } from './Chips';
7
3
  export interface TagIconChipsProps extends ChipsProps {
4
+ icon: React.JSX.Element;
5
+ legendColor: string;
8
6
  isChipsEnabled: boolean;
9
7
  }
10
- export interface ChipProps {
11
- title: string;
12
- color: string;
13
- }
14
8
  export declare const TagIconWithChips: React.FC<TagIconChipsProps>;