@equinor/echo-components 0.5.14 → 0.5.15
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/dist/components/datePicker/ReactDatePicker.d.ts +1 -1
- package/dist/components/echoCard/Body.d.ts +1 -1
- package/dist/components/echoCard/DateSection.d.ts +1 -1
- package/dist/components/echoCard/LinkSection.d.ts +1 -1
- package/dist/components/echoCard/Title.d.ts +1 -1
- package/dist/components/echoCard/index.d.ts +1 -1
- package/dist/components/echoTooltip/Tooltip/Tooltip.d.ts +10 -0
- package/dist/components/echoTooltip/Tooltip/useTooltip.d.ts +51 -0
- package/dist/components/echoTooltip/index.d.ts +10 -0
- package/dist/components/floatingActionButton/FloatingActionButton.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/listItem/ListItem.d.ts +2 -2
- package/dist/components/sidebarButton/SidebarButton.d.ts +1 -1
- package/dist/components/splitView/index.d.ts +1 -1
- package/dist/components/workOrderListItem/WorkOrdertListItem.d.ts +10 -0
- package/dist/components/workOrderListItem/index.d.ts +1 -0
- package/dist/helpers/classnames.d.ts +1 -1
- package/dist/hooks/useEventListener.d.ts +1 -1
- package/dist/hooks/useKeyboardNavigation.d.ts +1 -1
- package/dist/icons/echoAssets/punches.d.ts +2 -0
- package/dist/index.js +2373 -281
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/menuItem.d.ts +1 -1
- package/dist/types/workOrderItem.d.ts +9 -0
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/workorder.d.ts +4 -0
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
3
3
|
import './reactDatePicker.css';
|
|
4
|
-
|
|
4
|
+
type PopperPlacement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
|
|
5
5
|
export interface DatePickerProps {
|
|
6
6
|
id: string;
|
|
7
7
|
value: Date | undefined | null;
|
|
@@ -3,7 +3,7 @@ import { DateSection, DateSectionProps } from './DateSection';
|
|
|
3
3
|
import { EchoCard as BaseEchoCard, EchoCardProps } from './EchoCard';
|
|
4
4
|
import { LinkSection } from './LinkSection';
|
|
5
5
|
import { Title, TitleProps } from './Title';
|
|
6
|
-
|
|
6
|
+
type CardType = typeof BaseEchoCard & {
|
|
7
7
|
Title: typeof Title;
|
|
8
8
|
Body: typeof Body;
|
|
9
9
|
LinkSection: typeof LinkSection;
|
|
@@ -0,0 +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<Pick<React.HTMLProps<HTMLElement> & {
|
|
7
|
+
asChild?: boolean | undefined;
|
|
8
|
+
}, "name" | "title" | "color" | "className" | "size" | "width" | "style" | "height" | "type" | "data" | "children" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "list" | "loop" | "security" | "download" | "label" | "translate" | "cite" | "form" | "slot" | "span" | "summary" | "pattern" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "selected" | "classID" | "useMap" | "wmode" | "scoped" | "open" | "dateTime" | "as" | "integrity" | "sizes" | "charSet" | "htmlFor" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "async" | "defer" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "poster" | "asChild"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Pick<React.HTMLProps<HTMLDivElement>, "name" | "title" | "color" | "className" | "size" | "width" | "style" | "height" | "type" | "data" | "children" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "list" | "loop" | "security" | "download" | "label" | "translate" | "cite" | "form" | "slot" | "span" | "summary" | "pattern" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "selected" | "classID" | "useMap" | "wmode" | "scoped" | "open" | "dateTime" | "as" | "integrity" | "sizes" | "charSet" | "htmlFor" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "async" | "defer" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "poster"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { Tooltip, TooltipAnchor, TooltipContent };
|
|
@@ -0,0 +1,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: import("@floating-ui/react").FloatingContext<import("@floating-ui/react").ReferenceType>;
|
|
21
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
22
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
23
|
+
isPositioned: boolean;
|
|
24
|
+
getReferenceProps: (userProps?: import("react").HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
25
|
+
getFloatingProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
26
|
+
getItemProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
27
|
+
open: boolean;
|
|
28
|
+
setOpen: (open: boolean) => void;
|
|
29
|
+
};
|
|
30
|
+
declare const TooltipContext: import("react").Context<ContextType>;
|
|
31
|
+
declare const useTooltipContext: () => {
|
|
32
|
+
placement: Placement;
|
|
33
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
34
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
35
|
+
x: number | null;
|
|
36
|
+
y: number | null;
|
|
37
|
+
update: () => void;
|
|
38
|
+
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
39
|
+
floating: (node: HTMLElement | null) => void;
|
|
40
|
+
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
41
|
+
context: import("@floating-ui/react").FloatingContext<import("@floating-ui/react").ReferenceType>;
|
|
42
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
43
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
44
|
+
isPositioned: boolean;
|
|
45
|
+
getReferenceProps: (userProps?: import("react").HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
46
|
+
getFloatingProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
47
|
+
getItemProps: (userProps?: import("react").HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
48
|
+
open: boolean;
|
|
49
|
+
setOpen: (open: boolean) => void;
|
|
50
|
+
};
|
|
51
|
+
export { TooltipContext, useTooltip, useTooltipContext };
|
|
@@ -0,0 +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<Pick<import("react").HTMLProps<HTMLElement> & {
|
|
6
|
+
asChild?: boolean | undefined;
|
|
7
|
+
}, "name" | "title" | "color" | "className" | "size" | "width" | "style" | "height" | "type" | "data" | "children" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "list" | "loop" | "security" | "download" | "label" | "translate" | "cite" | "form" | "slot" | "span" | "summary" | "pattern" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "selected" | "classID" | "useMap" | "wmode" | "scoped" | "open" | "dateTime" | "as" | "integrity" | "sizes" | "charSet" | "htmlFor" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "async" | "defer" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "poster" | "asChild"> & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
+
TooltipContent: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLProps<HTMLDivElement>, "name" | "title" | "color" | "className" | "size" | "width" | "style" | "height" | "type" | "data" | "children" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "list" | "loop" | "security" | "download" | "label" | "translate" | "cite" | "form" | "slot" | "span" | "summary" | "pattern" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "selected" | "classID" | "useMap" | "wmode" | "scoped" | "open" | "dateTime" | "as" | "integrity" | "sizes" | "charSet" | "htmlFor" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "async" | "defer" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "poster"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
}>;
|
|
10
|
+
export { EchoTooltip };
|
|
@@ -7,8 +7,8 @@ interface WithoutLabel {
|
|
|
7
7
|
variant: 'circle_icon' | 'square_icon';
|
|
8
8
|
label?: never;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
type MutuallyExclusiveVariantLabel = WithLabel | WithoutLabel;
|
|
11
|
+
export type FloatingActionButtonProps = MutuallyExclusiveVariantLabel & {
|
|
12
12
|
iconName: string;
|
|
13
13
|
ariaLabel?: string;
|
|
14
14
|
/**
|
|
@@ -7,6 +7,7 @@ export * from './dropdown/Dropdown';
|
|
|
7
7
|
export * from './echoBottomBar/EchoBottomBar';
|
|
8
8
|
export * from './echoCard/index';
|
|
9
9
|
export * from './echoHeader/EchoHeader';
|
|
10
|
+
export * from './echoTooltip';
|
|
10
11
|
export * from './floatingActionButton/FloatingActionButton';
|
|
11
12
|
export * from './floatingSearchBar/FloatingSearchBar';
|
|
12
13
|
export * from './inlineTagIconLink/InlineTagIconLink';
|
|
@@ -14,7 +14,7 @@ interface IconOptions {
|
|
|
14
14
|
/**
|
|
15
15
|
* Make property "icon" and "visual" mutually exclusive
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
type WithVisualOrIconOptions = VisualComponent | IconOptions;
|
|
18
18
|
interface ListItemBaseProps {
|
|
19
19
|
/**
|
|
20
20
|
* Add List Action Area
|
|
@@ -45,6 +45,6 @@ interface ListItemBaseProps {
|
|
|
45
45
|
className?: string;
|
|
46
46
|
style?: CSSProperties;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type ListItemProps = ListItemBaseProps & WithVisualOrIconOptions;
|
|
49
49
|
declare function ListItem(props: ListItemProps): JSX.Element;
|
|
50
50
|
export { ListItem };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Left } from './left/SplitViewLeft';
|
|
2
2
|
import { Right, SplitView as BaseSplitView } from './SplitView';
|
|
3
|
-
|
|
3
|
+
type SplitViewCompoundProps = typeof BaseSplitView & {
|
|
4
4
|
Left: typeof Left;
|
|
5
5
|
Right: typeof Right;
|
|
6
6
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WorkOrderItem } from '@types';
|
|
3
|
+
interface WorkOrderListItemProps {
|
|
4
|
+
workOrder: WorkOrderItem;
|
|
5
|
+
itemClicked?: () => void;
|
|
6
|
+
itemAction?: React.ReactNode;
|
|
7
|
+
isHeader?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function WorkOrderListItem(props: WorkOrderListItemProps): JSX.Element;
|
|
10
|
+
export { WorkOrderListItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './workOrdertListItem';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
type EventListenerHook = (eventName: string, handler: (e: any) => void, options?: boolean | AddEventListenerOptions, element?: HTMLElement | Window | Document | null) => void;
|
|
2
2
|
declare const useEventListener: EventListenerHook;
|
|
3
3
|
export default useEventListener;
|