1 | import * as React from 'react';
|
2 | import { PickOptional } from '../../helpers/typeUtils';
|
3 | import { PopoverPosition } from '../Popover';
|
4 | import { TooltipPosition } from '../Tooltip';
|
5 | export declare const clipboardCopyFunc: (event: React.ClipboardEvent<HTMLDivElement>, text?: React.ReactNode) => void;
|
6 | export declare enum ClipboardCopyVariant {
|
7 | inline = "inline",
|
8 | expansion = "expansion",
|
9 | inlineCompact = "inline-compact"
|
10 | }
|
11 | export interface ClipboardCopyState {
|
12 | text: string | number;
|
13 | expanded: boolean;
|
14 | copied: boolean;
|
15 | }
|
16 | export interface ClipboardCopyProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange'> {
|
17 |
|
18 | className?: string;
|
19 |
|
20 | hoverTip?: string;
|
21 |
|
22 | clickTip?: string;
|
23 |
|
24 | textAriaLabel?: string;
|
25 |
|
26 | toggleAriaLabel?: string;
|
27 |
|
28 | isReadOnly?: boolean;
|
29 |
|
30 | isExpanded?: boolean;
|
31 |
|
32 | isCode?: boolean;
|
33 |
|
34 | isBlock?: boolean;
|
35 |
|
36 | variant?: typeof ClipboardCopyVariant | 'inline' | 'expansion' | 'inline-compact';
|
37 |
|
38 | position?: PopoverPosition | TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
39 |
|
40 | maxWidth?: string;
|
41 |
|
42 | exitDelay?: number;
|
43 |
|
44 | entryDelay?: number;
|
45 |
|
46 | switchDelay?: number;
|
47 |
|
48 | onCopy?: (event: React.ClipboardEvent<HTMLDivElement>, text?: React.ReactNode) => void;
|
49 |
|
50 | onChange?: (text?: string | number) => void;
|
51 |
|
52 | children: React.ReactNode;
|
53 |
|
54 | additionalActions?: React.ReactNode;
|
55 | }
|
56 | export declare class ClipboardCopy extends React.Component<ClipboardCopyProps, ClipboardCopyState> {
|
57 | static displayName: string;
|
58 | timer: number;
|
59 | constructor(props: ClipboardCopyProps);
|
60 | static defaultProps: PickOptional<ClipboardCopyProps>;
|
61 | componentDidUpdate: (prevProps: ClipboardCopyProps, prevState: ClipboardCopyState) => void;
|
62 | componentWillUnmount: () => void;
|
63 | expandContent: (_event: React.MouseEvent<Element, MouseEvent>) => void;
|
64 | updateText: (text: string | number) => void;
|
65 | render: () => JSX.Element;
|
66 | }
|
67 | //# sourceMappingURL=ClipboardCopy.d.ts.map |
\ | No newline at end of file |