@equinor/echo-components 0.5.19-rc1 → 0.5.19
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/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/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 -13
- 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 +51 -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 +31 -31
- package/dist/components/index.d.ts +22 -22
- package/dist/components/inlineTagIconLink/InlineTagIconLink.d.ts +12 -12
- 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 +5 -5
- package/dist/components/rightPanel/menuButton/MenuButton.d.ts +24 -24
- package/dist/components/rightPanel/panel/Panel.d.ts +18 -18
- package/dist/components/rightPanel/panelContent/PanelContent.d.ts +23 -23
- 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/WorkOrderStatusLabel.d.ts +11 -11
- package/dist/components/workOrderListItem/WorkOrdertListItem.d.ts +10 -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 -2
- 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/index.d.ts +4 -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 +349 -349
- 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 +11 -11
- 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 +3 -3
- package/package.json +125 -125
|
@@ -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,13 +1,13 @@
|
|
|
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
|
+
/// <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<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 };
|
|
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 };
|
|
@@ -1,51 +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 };
|
|
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 };
|
|
@@ -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<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 };
|
|
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 };
|
|
@@ -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,31 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Suggestion {
|
|
3
|
-
label: string;
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export interface FloatingSearchBarProps {
|
|
7
|
-
ariaLabel?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Placeholder text
|
|
10
|
-
*/
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Callback for when the search query changes
|
|
14
|
-
*/
|
|
15
|
-
onSearchQueryChange: (value: string) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Array of suggestions that matches the search query
|
|
18
|
-
*/
|
|
19
|
-
suggestions?: Suggestion[];
|
|
20
|
-
onSuggestionClick: (suggestion: Suggestion) => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Floating search bar
|
|
24
|
-
*
|
|
25
|
-
* @param {FloatingSearchBarProps} {
|
|
26
|
-
* }
|
|
27
|
-
* @return {*} {JSX.Element}
|
|
28
|
-
*/
|
|
29
|
-
declare const FloatingSearchBar: React.FC<FloatingSearchBarProps>;
|
|
30
|
-
export { FloatingSearchBar };
|
|
31
|
-
export type { Suggestion };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Suggestion {
|
|
3
|
+
label: string;
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FloatingSearchBarProps {
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Placeholder text
|
|
10
|
+
*/
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback for when the search query changes
|
|
14
|
+
*/
|
|
15
|
+
onSearchQueryChange: (value: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Array of suggestions that matches the search query
|
|
18
|
+
*/
|
|
19
|
+
suggestions?: Suggestion[];
|
|
20
|
+
onSuggestionClick: (suggestion: Suggestion) => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Floating search bar
|
|
24
|
+
*
|
|
25
|
+
* @param {FloatingSearchBarProps} {
|
|
26
|
+
* }
|
|
27
|
+
* @return {*} {JSX.Element}
|
|
28
|
+
*/
|
|
29
|
+
declare const FloatingSearchBar: React.FC<FloatingSearchBarProps>;
|
|
30
|
+
export { FloatingSearchBar };
|
|
31
|
+
export type { Suggestion };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './buttonWithPopover/ButtonWithPopover';
|
|
2
|
-
export * from './contextMenu/ContextMenu';
|
|
3
|
-
export * from './contextMenuPopover/DataInfoButton';
|
|
4
|
-
export * from './datePicker/ReactDatePicker';
|
|
5
|
-
export * from './dialogGenerator/DialogGenerator';
|
|
6
|
-
export * from './dropdown/Dropdown';
|
|
7
|
-
export * from './echoBottomBar/EchoBottomBar';
|
|
8
|
-
export * from './echoCard/index';
|
|
9
|
-
export * from './echoHeader/EchoHeader';
|
|
10
|
-
export * from './echoTooltip';
|
|
11
|
-
export * from './floatingActionButton/FloatingActionButton';
|
|
12
|
-
export * from './floatingSearchBar/FloatingSearchBar';
|
|
13
|
-
export * from './inlineTagIconLink/InlineTagIconLink';
|
|
14
|
-
export * from './listItem';
|
|
15
|
-
export * from './listRow/ListRow';
|
|
16
|
-
export * from './rightPanel';
|
|
17
|
-
export * from './sidebarButton/SidebarButton';
|
|
18
|
-
export * from './sidesheet';
|
|
19
|
-
export * from './splitView';
|
|
20
|
-
export * from './tagContextMenu/TagContextMenu';
|
|
21
|
-
export * from './timePicker/TimePicker';
|
|
22
|
-
export * from './workOrderListItem/WorkOrdertListItem';
|
|
1
|
+
export * from './buttonWithPopover/ButtonWithPopover';
|
|
2
|
+
export * from './contextMenu/ContextMenu';
|
|
3
|
+
export * from './contextMenuPopover/DataInfoButton';
|
|
4
|
+
export * from './datePicker/ReactDatePicker';
|
|
5
|
+
export * from './dialogGenerator/DialogGenerator';
|
|
6
|
+
export * from './dropdown/Dropdown';
|
|
7
|
+
export * from './echoBottomBar/EchoBottomBar';
|
|
8
|
+
export * from './echoCard/index';
|
|
9
|
+
export * from './echoHeader/EchoHeader';
|
|
10
|
+
export * from './echoTooltip';
|
|
11
|
+
export * from './floatingActionButton/FloatingActionButton';
|
|
12
|
+
export * from './floatingSearchBar/FloatingSearchBar';
|
|
13
|
+
export * from './inlineTagIconLink/InlineTagIconLink';
|
|
14
|
+
export * from './listItem';
|
|
15
|
+
export * from './listRow/ListRow';
|
|
16
|
+
export * from './rightPanel';
|
|
17
|
+
export * from './sidebarButton/SidebarButton';
|
|
18
|
+
export * from './sidesheet';
|
|
19
|
+
export * from './splitView';
|
|
20
|
+
export * from './tagContextMenu/TagContextMenu';
|
|
21
|
+
export * from './timePicker/TimePicker';
|
|
22
|
+
export * from './workOrderListItem/WorkOrdertListItem';
|