@equinor/echo-components 0.12.0 → 0.12.1
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/accordionWithSwitch/AccordionWithSwitch.d.ts +13 -0
- package/src/components/floatingActionButton/fabGroup/FabGroup.d.ts +2 -2
- package/src/components/index.d.ts +7 -4
- package/src/components/itemMarker/multipleItemMarkersId.d.ts +1 -0
- package/src/components/itemMarkerPopover/itemMarkerPopover.d.ts +1 -1
- package/src/components/legend/index.d.ts +1 -1
- package/src/components/legendSelector/{legendSelector.d.ts → LegendSelector.d.ts} +2 -2
- package/src/components/legendSelector/useVisibleLegends.d.ts +1 -1
- package/src/components/legendSelectorAccordion/{legendSelectorAccordion.d.ts → LegendSelectorAccordion.d.ts} +2 -0
- package/src/components/legendSelectorMenu/{legendSelectorMenu.d.ts → LegendSelectorMenu.d.ts} +1 -1
- package/src/components/multilineTabs/ExpandMinimizeButton.d.ts +8 -0
- package/src/components/switch/Switch.d.ts +2 -0
- package/src/theme/themeConst.d.ts +4 -0
- /package/src/components/legendChip/{legendChip.d.ts → LegendChip.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AccordionWithSwitchProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
handleSwitchClick: () => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
descriptionHeading?: string;
|
|
8
|
+
isToggledOn?: boolean;
|
|
9
|
+
switchDisabled?: boolean;
|
|
10
|
+
warning?: JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export declare const AccordionWithSwitch: ({ title, description, handleSwitchClick, children, descriptionHeading, isToggledOn, switchDisabled, warning }: AccordionWithSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type FabGroupProps = {
|
|
3
|
+
children: ReactNode | ReactNode[];
|
|
3
4
|
className?: string;
|
|
4
5
|
style?: CSSProperties;
|
|
5
|
-
children: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare function FabGroup({ className, style, children }: FabGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './accordionWithSwitch/AccordionWithSwitch';
|
|
1
2
|
export * from './autohiddenContent/AutohiddenContent';
|
|
2
3
|
export * from './blackLink/BlackLink';
|
|
3
4
|
export * from './buttonWithPopover/ButtonWithPopover';
|
|
@@ -23,14 +24,15 @@ export * from './itemMarker/ItemMarker';
|
|
|
23
24
|
export type { ItemMarkerChipProps } from './itemMarker/ItemMarkerChip';
|
|
24
25
|
export * from './itemMarker/ItemMarkerIcon';
|
|
25
26
|
export * from './itemMarker/MultipleItemMarkers';
|
|
27
|
+
export { multipleItemMarkersId } from './itemMarker/multipleItemMarkersId';
|
|
26
28
|
export * from './itemMarker/utils/itemMarkerUtils';
|
|
27
29
|
export * from './itemMarkerAndPopoverWrapper/itemMarkerAndPopoverWrapper';
|
|
28
30
|
export * from './itemMarkerPopover/itemMarkerPopover';
|
|
29
31
|
export * from './legend';
|
|
30
|
-
export * from './legendChip/
|
|
31
|
-
export * from './legendSelector/
|
|
32
|
-
export * from './legendSelectorAccordion/
|
|
33
|
-
export * from './legendSelectorMenu/
|
|
32
|
+
export * from './legendChip/LegendChip';
|
|
33
|
+
export * from './legendSelector/LegendSelector';
|
|
34
|
+
export * from './legendSelectorAccordion/LegendSelectorAccordion';
|
|
35
|
+
export * from './legendSelectorMenu/LegendSelectorMenu';
|
|
34
36
|
export * from './linkIcon/LinkIcon';
|
|
35
37
|
export * from './listItem';
|
|
36
38
|
export * from './listRow/ListRow';
|
|
@@ -50,6 +52,7 @@ export * from './secondaryMarker/SecondaryMarkerWrapper';
|
|
|
50
52
|
export * from './sidebarButton/SidebarButton';
|
|
51
53
|
export * from './sidesheet';
|
|
52
54
|
export * from './splitView';
|
|
55
|
+
export * from './switch/Switch';
|
|
53
56
|
export * from './subseaStatusLabel/SubseaStatusLabel';
|
|
54
57
|
export * from './tagContextMenu/TagContextMenu';
|
|
55
58
|
export * from './titleAndStatusLabel/titleAndStatusLabel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const multipleItemMarkersId = "multipleItemMarkers";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LegendChipProps } from '../legendChip/
|
|
2
|
+
import { LegendChipProps } from '../legendChip/LegendChip';
|
|
3
3
|
export interface LegendSelectorProps {
|
|
4
|
-
options: string
|
|
4
|
+
options: ReadonlyArray<string>;
|
|
5
5
|
selectedOption: string;
|
|
6
6
|
onOptionClick: (option: string) => void;
|
|
7
7
|
legends: LegendChipProps[];
|
|
@@ -5,6 +5,8 @@ export interface LegendSelectorAccordionProps {
|
|
|
5
5
|
visual?: JSX.Element;
|
|
6
6
|
caption?: string;
|
|
7
7
|
actions?: React.ReactNode;
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
setIsExpanded?: (isExpanded: boolean) => void;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Legend selector accordion component to display the legend selector for the data layers.
|
|
@@ -22,6 +22,9 @@ export declare const themeConst: {
|
|
|
22
22
|
strongDarkOrange: string;
|
|
23
23
|
strongRed: string;
|
|
24
24
|
strongDarkRed: string;
|
|
25
|
+
active: string;
|
|
26
|
+
completed: string;
|
|
27
|
+
bothActiveAndCompleted: string;
|
|
25
28
|
random1: string;
|
|
26
29
|
random2: string;
|
|
27
30
|
readonly random3: string;
|
|
@@ -131,4 +134,5 @@ export declare const themeConst: {
|
|
|
131
134
|
focusDark: string;
|
|
132
135
|
primaryTextForDarkBackground: string;
|
|
133
136
|
secondaryTextForDarkBackground: string;
|
|
137
|
+
infographicPrimaryMossGreen: string;
|
|
134
138
|
};
|
|
File without changes
|