@equinor/echo-components 0.6.0-r18-rc0 → 0.6.2
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/LICENSE +21 -21
- package/README.md +62 -62
- package/dist/components/blackLink/BlackLink.d.ts +11 -0
- package/dist/components/buttonWithPopover/ButtonWithPopover.d.ts +21 -21
- package/dist/components/contextMenu/ContextMenu.d.ts +35 -35
- package/dist/components/contextMenuPopover/DataInfoButton.d.ts +19 -19
- package/dist/components/contextMenuPopover/DataInfoPopover.d.ts +18 -18
- package/dist/components/copyToClipboard/CopyToClipboard.d.ts +6 -0
- package/dist/components/datePicker/PopupHeader.d.ts +19 -19
- package/dist/components/datePicker/ReactDatePicker.d.ts +19 -19
- package/dist/components/dialogGenerator/DialogGenerator.d.ts +26 -26
- package/dist/components/dropdown/Dropdown.d.ts +37 -37
- package/dist/components/echoBottomBar/EchoBottomBar.d.ts +7 -7
- package/dist/components/echoCard/Body.d.ts +7 -7
- package/dist/components/echoCard/DateSection.d.ts +8 -8
- package/dist/components/echoCard/EchoCard.d.ts +7 -7
- package/dist/components/echoCard/LinkSection.d.ts +8 -8
- package/dist/components/echoCard/Title.d.ts +13 -12
- package/dist/components/echoCard/index.d.ts +14 -14
- package/dist/components/echoHeader/EchoHeader.d.ts +20 -20
- package/dist/components/echoTooltip/Tooltip/Tooltip.d.ts +10 -10
- package/dist/components/echoTooltip/Tooltip/useTooltip.d.ts +85 -51
- package/dist/components/echoTooltip/index.d.ts +10 -10
- package/dist/components/floatingActionButton/FloatingActionButton.d.ts +33 -33
- package/dist/components/floatingSearchBar/FloatingSearchBar.d.ts +44 -31
- package/dist/components/index.d.ts +25 -22
- package/dist/components/inlineTagIconLink/InlineTagIconLink.d.ts +12 -12
- package/dist/components/legend/MainLegend.d.ts +14 -0
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/layerLegend/LayerLegend.d.ts +29 -0
- package/dist/components/legend/layerLegend/index.d.ts +1 -0
- package/dist/components/listItem/ListItem.d.ts +50 -50
- package/dist/components/listItem/index.d.ts +1 -1
- package/dist/components/listRow/ListRow.d.ts +29 -29
- package/dist/components/rightPanel/PanelStore.d.ts +9 -9
- package/dist/components/rightPanel/index.d.ts +6 -6
- package/dist/components/rightPanel/menuButton/MenuButton.d.ts +24 -24
- package/dist/components/rightPanel/panel/Panel.d.ts +25 -25
- package/dist/components/rightPanel/panelContent/PanelContent.d.ts +23 -23
- package/dist/components/rightPanel/panelContent/PanelContentWrapper.d.ts +16 -16
- package/dist/components/rightPanel/panelWrapper/PanelWrapper.d.ts +21 -21
- package/dist/components/sidebarButton/SidebarButton.d.ts +61 -61
- package/dist/components/sidesheet/enums.d.ts +5 -5
- package/dist/components/sidesheet/index.d.ts +11 -11
- package/dist/components/sidesheet/sheet/Sheet.d.ts +19 -19
- package/dist/components/sidesheet/sheet/index.d.ts +1 -1
- package/dist/components/sidesheet/sheet/utils.d.ts +2 -2
- package/dist/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +16 -16
- package/dist/components/sidesheet/sheetTopArea/index.d.ts +1 -1
- package/dist/components/splitView/SplitView.d.ts +14 -14
- package/dist/components/splitView/index.d.ts +8 -8
- package/dist/components/splitView/left/SplitViewLeft.d.ts +9 -9
- package/dist/components/tagContextMenu/TagContextMenu.d.ts +30 -30
- package/dist/components/timePicker/TimePicker.d.ts +12 -12
- package/dist/components/workOrderListItem/{WorkOrdertListItem.d.ts → WorkOrderListItem.d.ts} +10 -10
- package/dist/components/workOrderListItem/WorkOrderStatusLabel.d.ts +6 -10
- package/dist/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +18 -18
- package/dist/elements/icon/Icon.d.ts +20 -20
- package/dist/elements/index.d.ts +8 -8
- package/dist/elements/radioButtonGroup/RadioButtonGroup.d.ts +20 -20
- package/dist/elements/roundIconButton/RoundIconButton.d.ts +13 -13
- package/dist/elements/sliderField/SliderField.d.ts +25 -25
- package/dist/elements/tagIcon/TagIcon.d.ts +16 -16
- package/dist/elements/tagIcon/TagIconShadow.d.ts +13 -13
- package/dist/elements/textIconButton/TextIconButton.d.ts +19 -19
- package/dist/helpers/classnames.d.ts +5 -5
- package/dist/helpers/getIcon.d.ts +2 -1
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/tagCategoryIcon.d.ts +38 -38
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/useEventListener.d.ts +3 -3
- package/dist/hooks/useIsMobile.d.ts +5 -5
- package/dist/hooks/useKeyboardNavigation.d.ts +21 -21
- package/dist/icons/echoAssets/external.d.ts +5 -5
- package/dist/icons/echoAssets/general.d.ts +2 -0
- package/dist/icons/echoAssets/index.d.ts +5 -4
- package/dist/icons/echoAssets/notifications.d.ts +9 -9
- package/dist/icons/echoAssets/punches.d.ts +4 -4
- package/dist/icons/echoAssets/workOrders.d.ts +11 -11
- package/dist/icons/index.d.ts +3 -3
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2385 -1788
- package/dist/index.js.map +1 -1
- package/dist/setupTests.d.ts +1 -1
- package/dist/structure/iconList/IconList.d.ts +32 -32
- package/dist/structure/iconList/createListRow.d.ts +14 -14
- package/dist/structure/index.d.ts +3 -3
- package/dist/structure/linkCard/LinkCard.d.ts +26 -26
- package/dist/structure/optionsList/OptionsList.d.ts +24 -24
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeConst.d.ts +66 -66
- package/dist/types/actionButton.d.ts +6 -6
- package/dist/types/dataInformation.d.ts +8 -8
- package/dist/types/draggableItem.d.ts +5 -5
- package/dist/types/expandableRowProps.d.ts +6 -6
- package/dist/types/iconItem.d.ts +4 -4
- package/dist/types/iconListItem.d.ts +6 -6
- package/dist/types/index.d.ts +12 -11
- package/dist/types/legend.d.ts +4 -0
- package/dist/types/linkCardItem.d.ts +5 -5
- package/dist/types/menuItem.d.ts +11 -11
- package/dist/types/optionsItem.d.ts +6 -6
- package/dist/types/radioButtonItem.d.ts +4 -4
- package/dist/types/workOrderItem.d.ts +9 -9
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/workorder.d.ts +2 -3
- package/package.json +124 -121
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface EchoCardProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
}
|
|
7
|
-
export declare const EchoCard: React.FC<EchoCardProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EchoCardProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export declare const EchoCard: React.FC<EchoCardProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardIcons } from './Title';
|
|
3
|
-
export type LinkSectionProps = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
linkSectionIcons?: CardIcons[];
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const LinkSection: ({ children, className, linkSectionIcons }: Partial<LinkSectionProps>) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardIcons } from './Title';
|
|
3
|
+
export type LinkSectionProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
linkSectionIcons?: CardIcons[];
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const LinkSection: ({ children, className, linkSectionIcons }: Partial<LinkSectionProps>) => JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CardIcons {
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export type TitleProps = {
|
|
8
|
+
headerTitle?: string;
|
|
9
|
+
onHeaderClick?: () => void;
|
|
10
|
+
headerIcons?: CardIcons[];
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Title: ({ headerTitle, headerIcons, className, onHeaderClick }: Partial<TitleProps>) => JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Body, BodyProps } from './Body';
|
|
2
|
-
import { DateSection, DateSectionProps } from './DateSection';
|
|
3
|
-
import { EchoCard as BaseEchoCard, EchoCardProps } from './EchoCard';
|
|
4
|
-
import { LinkSection } from './LinkSection';
|
|
5
|
-
import { Title, TitleProps } from './Title';
|
|
6
|
-
type CardType = typeof BaseEchoCard & {
|
|
7
|
-
Title: typeof Title;
|
|
8
|
-
Body: typeof Body;
|
|
9
|
-
LinkSection: typeof LinkSection;
|
|
10
|
-
DateSection: typeof DateSection;
|
|
11
|
-
};
|
|
12
|
-
declare const EchoCard: CardType;
|
|
13
|
-
export { EchoCard };
|
|
14
|
-
export type { EchoCardProps, TitleProps, DateSectionProps, BodyProps };
|
|
1
|
+
import { Body, BodyProps } from './Body';
|
|
2
|
+
import { DateSection, DateSectionProps } from './DateSection';
|
|
3
|
+
import { EchoCard as BaseEchoCard, EchoCardProps } from './EchoCard';
|
|
4
|
+
import { LinkSection } from './LinkSection';
|
|
5
|
+
import { Title, TitleProps } from './Title';
|
|
6
|
+
type CardType = typeof BaseEchoCard & {
|
|
7
|
+
Title: typeof Title;
|
|
8
|
+
Body: typeof Body;
|
|
9
|
+
LinkSection: typeof LinkSection;
|
|
10
|
+
DateSection: typeof DateSection;
|
|
11
|
+
};
|
|
12
|
+
declare const EchoCard: CardType;
|
|
13
|
+
export { EchoCard };
|
|
14
|
+
export type { EchoCardProps, TitleProps, DateSectionProps, BodyProps };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface EchoHeaderProps {
|
|
3
|
-
moduleTitle: string;
|
|
4
|
-
moduleIcon: string | React.FC;
|
|
5
|
-
plantName?: string;
|
|
6
|
-
customHeaderSection?: React.FC;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Component that renders the Echo header
|
|
10
|
-
*
|
|
11
|
-
* @param {EchoHeaderProps} {
|
|
12
|
-
* moduleTitle: the title of the module
|
|
13
|
-
* moduleIcon: the module Icon
|
|
14
|
-
* plantName: show the plant name next to the module title
|
|
15
|
-
* customSection: a section in the header where there can be custom components
|
|
16
|
-
* }
|
|
17
|
-
* @returns {*} {JSX.Element} Echo header with custom section
|
|
18
|
-
*/
|
|
19
|
-
export declare const EchoHeader: React.FC<EchoHeaderProps>;
|
|
20
|
-
export default EchoHeader;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EchoHeaderProps {
|
|
3
|
+
moduleTitle: string;
|
|
4
|
+
moduleIcon: string | React.FC;
|
|
5
|
+
plantName?: string;
|
|
6
|
+
customHeaderSection?: React.FC;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Component that renders the Echo header
|
|
10
|
+
*
|
|
11
|
+
* @param {EchoHeaderProps} {
|
|
12
|
+
* moduleTitle: the title of the module
|
|
13
|
+
* moduleIcon: the module Icon
|
|
14
|
+
* plantName: show the plant name next to the module title
|
|
15
|
+
* customSection: a section in the header where there can be custom components
|
|
16
|
+
* }
|
|
17
|
+
* @returns {*} {JSX.Element} Echo header with custom section
|
|
18
|
+
*/
|
|
19
|
+
export declare const EchoHeader: React.FC<EchoHeaderProps>;
|
|
20
|
+
export default EchoHeader;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { TooltipOptions } from './useTooltip';
|
|
3
|
-
declare function Tooltip({ children, ...options }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
} & TooltipOptions): JSX.Element;
|
|
6
|
-
declare const TooltipAnchor: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
|
|
7
|
-
asChild?: boolean | undefined;
|
|
8
|
-
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export { Tooltip, TooltipAnchor, TooltipContent };
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TooltipOptions } from './useTooltip';
|
|
3
|
+
declare function Tooltip({ children, ...options }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
} & TooltipOptions): JSX.Element;
|
|
6
|
+
declare const TooltipAnchor: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
|
|
7
|
+
asChild?: boolean | undefined;
|
|
8
|
+
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { Tooltip, TooltipAnchor, TooltipContent };
|
|
@@ -1,51 +1,85 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Placement } from '@floating-ui/react';
|
|
3
|
-
export interface TooltipOptions {
|
|
4
|
-
initialOpen?: boolean;
|
|
5
|
-
placement?: Placement;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
onOpenChange?: (open: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
export type ContextType = ReturnType<typeof useTooltip> | null;
|
|
10
|
-
declare function useTooltip({ initialOpen, placement, open: controlledOpen, onOpenChange: setControlledOpen }?: TooltipOptions): {
|
|
11
|
-
placement: Placement;
|
|
12
|
-
strategy: import("@floating-ui/react").Strategy;
|
|
13
|
-
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
14
|
-
x: number | null;
|
|
15
|
-
y: number | null;
|
|
16
|
-
update: () => void;
|
|
17
|
-
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
18
|
-
floating: (node: HTMLElement | null) => void;
|
|
19
|
-
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
20
|
-
context:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
export interface TooltipOptions {
|
|
4
|
+
initialOpen?: boolean;
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export type ContextType = ReturnType<typeof useTooltip> | null;
|
|
10
|
+
declare function useTooltip({ initialOpen, placement, open: controlledOpen, onOpenChange: setControlledOpen }?: TooltipOptions): {
|
|
11
|
+
placement: Placement;
|
|
12
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
13
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
14
|
+
x: number | null;
|
|
15
|
+
y: number | null;
|
|
16
|
+
update: () => void;
|
|
17
|
+
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
18
|
+
floating: (node: HTMLElement | null) => void;
|
|
19
|
+
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
20
|
+
context: {
|
|
21
|
+
x: number | null;
|
|
22
|
+
y: number | null;
|
|
23
|
+
update: () => void;
|
|
24
|
+
placement: Placement;
|
|
25
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
26
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
27
|
+
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
28
|
+
floating: (node: HTMLElement | null) => void;
|
|
29
|
+
isPositioned: boolean;
|
|
30
|
+
open: boolean;
|
|
31
|
+
onOpenChange: (open: boolean) => void;
|
|
32
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
33
|
+
dataRef: import("react").MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
34
|
+
nodeId: string | undefined;
|
|
35
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
36
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
37
|
+
};
|
|
38
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
39
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
40
|
+
isPositioned: boolean;
|
|
41
|
+
getReferenceProps: (userProps?: import("react").HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
42
|
+
getFloatingProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
43
|
+
getItemProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
44
|
+
open: boolean;
|
|
45
|
+
setOpen: (open: boolean) => void;
|
|
46
|
+
};
|
|
47
|
+
declare const TooltipContext: import("react").Context<ContextType>;
|
|
48
|
+
declare const useTooltipContext: () => {
|
|
49
|
+
placement: Placement;
|
|
50
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
51
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
52
|
+
x: number | null;
|
|
53
|
+
y: number | null;
|
|
54
|
+
update: () => void;
|
|
55
|
+
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
56
|
+
floating: (node: HTMLElement | null) => void;
|
|
57
|
+
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
58
|
+
context: {
|
|
59
|
+
x: number | null;
|
|
60
|
+
y: number | null;
|
|
61
|
+
update: () => void;
|
|
62
|
+
placement: Placement;
|
|
63
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
64
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
65
|
+
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
66
|
+
floating: (node: HTMLElement | null) => void;
|
|
67
|
+
isPositioned: boolean;
|
|
68
|
+
open: boolean;
|
|
69
|
+
onOpenChange: (open: boolean) => void;
|
|
70
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
71
|
+
dataRef: import("react").MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
72
|
+
nodeId: string | undefined;
|
|
73
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
74
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
75
|
+
};
|
|
76
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
77
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
78
|
+
isPositioned: boolean;
|
|
79
|
+
getReferenceProps: (userProps?: import("react").HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
80
|
+
getFloatingProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
81
|
+
getItemProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
82
|
+
open: boolean;
|
|
83
|
+
setOpen: (open: boolean) => void;
|
|
84
|
+
};
|
|
85
|
+
export { TooltipContext, useTooltip, useTooltipContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Tooltip } from './Tooltip/Tooltip';
|
|
3
|
-
declare const EchoTooltip: Readonly<{
|
|
4
|
-
Tooltip: typeof Tooltip;
|
|
5
|
-
TooltipAnchor: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLElement> & {
|
|
6
|
-
asChild?: boolean | undefined;
|
|
7
|
-
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
-
TooltipContent: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
}>;
|
|
10
|
-
export { EchoTooltip };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Tooltip } from './Tooltip/Tooltip';
|
|
3
|
+
declare const EchoTooltip: Readonly<{
|
|
4
|
+
Tooltip: typeof Tooltip;
|
|
5
|
+
TooltipAnchor: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLElement> & {
|
|
6
|
+
asChild?: boolean | undefined;
|
|
7
|
+
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
+
TooltipContent: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
}>;
|
|
10
|
+
export { EchoTooltip };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface WithLabel {
|
|
3
|
-
variant: 'square_icon_with_text';
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface WithoutLabel {
|
|
7
|
-
variant: 'circle_icon' | 'square_icon';
|
|
8
|
-
label?: never;
|
|
9
|
-
}
|
|
10
|
-
type MutuallyExclusiveVariantLabel = WithLabel | WithoutLabel;
|
|
11
|
-
export type FloatingActionButtonProps = MutuallyExclusiveVariantLabel & {
|
|
12
|
-
iconName: string;
|
|
13
|
-
ariaLabel?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Disable button if true
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Show button as active if true
|
|
20
|
-
*/
|
|
21
|
-
active?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The method to be called when button is pressed
|
|
24
|
-
*/
|
|
25
|
-
onClick: () => void;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
|
|
29
|
-
* and are typically used for special actions pertaining to the module they are used in.
|
|
30
|
-
* @return {*} {JSX.Element} Floating actions button
|
|
31
|
-
*/
|
|
32
|
-
declare const FloatingActionButton: React.FC<FloatingActionButtonProps>;
|
|
33
|
-
export { FloatingActionButton };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface WithLabel {
|
|
3
|
+
variant: 'square_icon_with_text';
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface WithoutLabel {
|
|
7
|
+
variant: 'circle_icon' | 'square_icon';
|
|
8
|
+
label?: never;
|
|
9
|
+
}
|
|
10
|
+
type MutuallyExclusiveVariantLabel = WithLabel | WithoutLabel;
|
|
11
|
+
export type FloatingActionButtonProps = MutuallyExclusiveVariantLabel & {
|
|
12
|
+
iconName: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Disable button if true
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Show button as active if true
|
|
20
|
+
*/
|
|
21
|
+
active?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The method to be called when button is pressed
|
|
24
|
+
*/
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
|
|
29
|
+
* and are typically used for special actions pertaining to the module they are used in.
|
|
30
|
+
* @return {*} {JSX.Element} Floating actions button
|
|
31
|
+
*/
|
|
32
|
+
declare const FloatingActionButton: React.FC<FloatingActionButtonProps>;
|
|
33
|
+
export { FloatingActionButton };
|
|
@@ -1,31 +1,44 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Suggestion {
|
|
3
|
-
label: string;
|
|
4
|
-
id: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Suggestion {
|
|
3
|
+
label: string;
|
|
4
|
+
id: string;
|
|
5
|
+
iconName: string;
|
|
6
|
+
}
|
|
7
|
+
interface SuggestionGroup {
|
|
8
|
+
title?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
options: Suggestion[];
|
|
11
|
+
}
|
|
12
|
+
export interface FloatingSearchBarProps {
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Placeholder text
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Callback for when the search query changes
|
|
20
|
+
*/
|
|
21
|
+
onSearchQueryChange: (value: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Suggestions that matches the search query by groups
|
|
24
|
+
*/
|
|
25
|
+
suggestionGroups?: SuggestionGroup[];
|
|
26
|
+
onSuggestionClick: (suggestion: Suggestion) => void;
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Floating search bar
|
|
31
|
+
*
|
|
32
|
+
* @param {FloatingSearchBarProps} {
|
|
33
|
+
* }
|
|
34
|
+
* @return {*} {JSX.Element}
|
|
35
|
+
*/
|
|
36
|
+
declare const FloatingSearchBar: React.FC<FloatingSearchBarProps>;
|
|
37
|
+
interface SuggestionGroupProps {
|
|
38
|
+
suggestionGroup: SuggestionGroup;
|
|
39
|
+
onClick: (suggestion: Suggestion) => void;
|
|
40
|
+
focusedOption: number;
|
|
41
|
+
}
|
|
42
|
+
declare function SuggestionGroup({ suggestionGroup, onClick, focusedOption }: SuggestionGroupProps): JSX.Element;
|
|
43
|
+
export { FloatingSearchBar };
|
|
44
|
+
export type { Suggestion };
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
1
|
+
export * from './blackLink/BlackLink';
|
|
2
|
+
export * from './buttonWithPopover/ButtonWithPopover';
|
|
3
|
+
export * from './contextMenu/ContextMenu';
|
|
4
|
+
export * from './contextMenuPopover/DataInfoButton';
|
|
5
|
+
export * from './copyToClipboard/CopyToClipboard';
|
|
6
|
+
export * from './datePicker/ReactDatePicker';
|
|
7
|
+
export * from './dialogGenerator/DialogGenerator';
|
|
8
|
+
export * from './dropdown/Dropdown';
|
|
9
|
+
export * from './echoBottomBar/EchoBottomBar';
|
|
10
|
+
export * from './echoCard/index';
|
|
11
|
+
export * from './echoHeader/EchoHeader';
|
|
12
|
+
export * from './echoTooltip';
|
|
13
|
+
export * from './floatingActionButton/FloatingActionButton';
|
|
14
|
+
export * from './floatingSearchBar/FloatingSearchBar';
|
|
15
|
+
export * from './inlineTagIconLink/InlineTagIconLink';
|
|
16
|
+
export * from './legend';
|
|
17
|
+
export * from './listItem';
|
|
18
|
+
export * from './listRow/ListRow';
|
|
19
|
+
export * from './rightPanel';
|
|
20
|
+
export * from './sidebarButton/SidebarButton';
|
|
21
|
+
export * from './sidesheet';
|
|
22
|
+
export * from './splitView';
|
|
23
|
+
export * from './tagContextMenu/TagContextMenu';
|
|
24
|
+
export * from './timePicker/TimePicker';
|
|
25
|
+
export * from './workOrderListItem/WorkOrderListItem';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface InlineTagIconLinkProps {
|
|
3
|
-
onClickHandler?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
4
|
-
tagNo: string;
|
|
5
|
-
description: string;
|
|
6
|
-
tagCategoryDescription?: string;
|
|
7
|
-
icon?: string | React.ReactNode;
|
|
8
|
-
legendColor: string;
|
|
9
|
-
disableHover?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const InlineTagIconLink: React.FC<InlineTagIconLinkProps>;
|
|
12
|
-
export default InlineTagIconLink;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface InlineTagIconLinkProps {
|
|
3
|
+
onClickHandler?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
4
|
+
tagNo: string;
|
|
5
|
+
description: string;
|
|
6
|
+
tagCategoryDescription?: string;
|
|
7
|
+
icon?: string | React.ReactNode;
|
|
8
|
+
legendColor: string;
|
|
9
|
+
disableHover?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const InlineTagIconLink: React.FC<InlineTagIconLinkProps>;
|
|
12
|
+
export default InlineTagIconLink;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LayerInfo } from '@types';
|
|
3
|
+
interface MainLegendProps {
|
|
4
|
+
/**
|
|
5
|
+
* Layer legends appearing above the main legend
|
|
6
|
+
*/
|
|
7
|
+
legends: React.ReactNode[];
|
|
8
|
+
/**
|
|
9
|
+
* Layer information
|
|
10
|
+
*/
|
|
11
|
+
layers: LayerInfo[];
|
|
12
|
+
}
|
|
13
|
+
declare function MainLegend({ legends, layers }: MainLegendProps): JSX.Element;
|
|
14
|
+
export { MainLegend };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LayerLegendProps {
|
|
3
|
+
/**
|
|
4
|
+
* Layer title
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Layer icon name
|
|
9
|
+
*/
|
|
10
|
+
iconName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Number of items on layer
|
|
13
|
+
*/
|
|
14
|
+
itemsCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the items presented on layer
|
|
17
|
+
*/
|
|
18
|
+
itemsTitle?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Content presented on layer legend
|
|
21
|
+
*/
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Used to disable layer legend usage
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare function LayerLegend({ title, iconName, itemsCount, itemsTitle, children, disabled }: LayerLegendProps): JSX.Element;
|
|
29
|
+
export { LayerLegend };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LayerLegend';
|