UNPKG

53 kBTypeScriptView Raw
1import * as react from 'react';
2import react__default, { ComponentProps, FC, AnchorHTMLAttributes, MouseEvent, ReactNode, FunctionComponent, ReactElement, Component, RefObject, SyntheticEvent, DetailedHTMLProps, ButtonHTMLAttributes, ElementType } from 'react';
3import * as _storybook_theming from '@storybook/theming';
4import { Theme, CSSObject } from '@storybook/theming';
5import { BuiltInParserName } from 'prettier';
6import * as react_textarea_autosize from 'react-textarea-autosize';
7
8declare const A: _storybook_theming.StyledComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
9 children?: react.ReactNode;
10} & {
11 theme?: _storybook_theming.Theme;
12}, {}, {}>;
13
14declare const Blockquote: _storybook_theming.StyledComponent<{
15 theme?: _storybook_theming.Theme;
16 as?: react.ElementType<any>;
17}, react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {}>;
18
19declare const DefaultCodeBlock: _storybook_theming.StyledComponent<{
20 theme?: _storybook_theming.Theme;
21 as?: react__default.ElementType<any>;
22}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
23declare const Code: ({ className, children, ...props }: ComponentProps<typeof DefaultCodeBlock>) => JSX.Element;
24
25declare const Div: _storybook_theming.StyledComponent<{
26 theme?: _storybook_theming.Theme;
27 as?: react.ElementType<any>;
28}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
30declare const DL: _storybook_theming.StyledComponent<{
31 theme?: _storybook_theming.Theme;
32 as?: react.ElementType<any>;
33}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {}>;
34
35declare const H1: _storybook_theming.StyledComponent<{
36 theme?: _storybook_theming.Theme;
37 as?: react.ElementType<any>;
38}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
39
40declare const H2: _storybook_theming.StyledComponent<{
41 theme?: _storybook_theming.Theme;
42 as?: react.ElementType<any>;
43}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
44
45declare const H3: _storybook_theming.StyledComponent<{
46 theme?: _storybook_theming.Theme;
47 as?: react.ElementType<any>;
48}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
49
50declare const H4: _storybook_theming.StyledComponent<{
51 theme?: _storybook_theming.Theme;
52 as?: react.ElementType<any>;
53}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
54
55declare const H5: _storybook_theming.StyledComponent<{
56 theme?: _storybook_theming.Theme;
57 as?: react.ElementType<any>;
58}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
59
60declare const H6: _storybook_theming.StyledComponent<{
61 theme?: _storybook_theming.Theme;
62 as?: react.ElementType<any>;
63}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
64
65declare const HR: _storybook_theming.StyledComponent<{
66 theme?: _storybook_theming.Theme;
67 as?: react.ElementType<any>;
68}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}>;
69
70declare const Img: _storybook_theming.StyledComponent<{
71 theme?: _storybook_theming.Theme;
72 as?: react.ElementType<any>;
73}, react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
74
75declare const LI: _storybook_theming.StyledComponent<{
76 theme?: _storybook_theming.Theme;
77 as?: react.ElementType<any>;
78}, react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
79
80declare const OL: _storybook_theming.StyledComponent<{
81 theme?: _storybook_theming.Theme;
82 as?: react.ElementType<any>;
83}, react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}>;
84
85declare const P: _storybook_theming.StyledComponent<{
86 theme?: _storybook_theming.Theme;
87 as?: react.ElementType<any>;
88}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
89
90declare const Pre: _storybook_theming.StyledComponent<{
91 theme?: _storybook_theming.Theme;
92 as?: react.ElementType<any>;
93}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {}>;
94
95declare const Span: _storybook_theming.StyledComponent<{
96 theme?: _storybook_theming.Theme;
97 as?: react.ElementType<any>;
98}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
99
100declare const Table: _storybook_theming.StyledComponent<{
101 theme?: _storybook_theming.Theme;
102 as?: react.ElementType<any>;
103}, react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
104
105declare const TT: _storybook_theming.StyledComponent<{
106 theme?: _storybook_theming.Theme;
107 as?: react.ElementType<any>;
108}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {}>;
109
110declare const UL: _storybook_theming.StyledComponent<{
111 theme?: _storybook_theming.Theme;
112 as?: react.ElementType<any>;
113}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
114
115interface BadgeProps {
116 status: 'positive' | 'negative' | 'neutral' | 'warning' | 'critical';
117}
118declare const Badge: FC<BadgeProps>;
119
120interface LinkStylesProps {
121 secondary?: boolean;
122 tertiary?: boolean;
123 nochrome?: boolean;
124 inverse?: boolean;
125 isButton?: boolean;
126}
127interface LinkInnerProps {
128 withArrow?: boolean;
129 containsIcon?: boolean;
130}
131type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
132interface LinkProps extends LinkInnerProps, LinkStylesProps {
133 cancel?: boolean;
134 className?: string;
135 style?: object;
136 onClick?: (e: MouseEvent) => void;
137 href?: string;
138}
139declare const Link$1: FC<LinkProps & AProps>;
140
141declare const DocumentWrapper: _storybook_theming.StyledComponent<{
142 theme?: _storybook_theming.Theme;
143 as?: react.ElementType<any>;
144}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
145
146interface SyntaxHighlighterRendererProps {
147 rows: any[];
148 stylesheet: string;
149 useInlineStyles: boolean;
150}
151type SyntaxHighlighterRenderer = (props: SyntaxHighlighterRendererProps) => ReactNode;
152interface SyntaxHighlighterCustomProps {
153 language: string;
154 copyable?: boolean;
155 bordered?: boolean;
156 padded?: boolean;
157 format?: SyntaxHighlighterFormatTypes;
158 formatter?: (type: SyntaxHighlighterFormatTypes, source: string) => string;
159 className?: string;
160 renderer?: SyntaxHighlighterRenderer;
161}
162type SyntaxHighlighterFormatTypes = boolean | 'dedent' | BuiltInParserName;
163type LineTagPropsFunction = (lineNumber: number) => React.HTMLProps<HTMLElement>;
164interface SyntaxHighlighterBaseProps {
165 children?: React.ReactNode;
166 codeTagProps?: React.HTMLProps<HTMLElement>;
167 customStyle?: any;
168 language?: string;
169 lineNumberStyle?: any;
170 lineProps?: LineTagPropsFunction | React.HTMLProps<HTMLElement>;
171 showLineNumbers?: boolean;
172 startingLineNumber?: number;
173 style?: any;
174 useInlineStyles?: boolean;
175}
176type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps;
177
178declare const LazySyntaxHighlighter: react__default.LazyExoticComponent<react__default.FC<SyntaxHighlighterProps>>;
179declare const SyntaxHighlighter: (props: ComponentProps<typeof LazySyntaxHighlighter>) => JSX.Element;
180
181declare function createCopyToClipboardFunction(): (text: string) => Promise<void>;
182
183interface ActionItem {
184 title: string | JSX.Element;
185 className?: string;
186 onClick: (e: MouseEvent<HTMLButtonElement>) => void;
187 disabled?: boolean;
188}
189interface ActionBarProps {
190 actionItems: ActionItem[];
191}
192declare const ActionBar: FC<ActionBarProps>;
193
194interface SpacedProps {
195 children?: react__default.ReactNode;
196 col?: number;
197 row?: number;
198 outer?: number | boolean;
199}
200declare const Spaced: FC<SpacedProps>;
201
202interface PlaceholderProps {
203 children?: react__default.ReactNode;
204}
205declare const Placeholder: FunctionComponent<PlaceholderProps>;
206
207interface ScrollAreaProps {
208 children?: react__default.ReactNode;
209 horizontal?: boolean;
210 vertical?: boolean;
211 className?: string;
212}
213declare const ScrollArea: FC<ScrollAreaProps>;
214
215type ZoomProps = {
216 scale: number;
217 children: ReactElement | ReactElement[];
218};
219declare function ZoomElement({ scale, children }: ZoomProps): JSX.Element;
220
221type IZoomIFrameProps = {
222 scale: number;
223 children: ReactElement<HTMLIFrameElement>;
224 iFrameRef: RefObject<HTMLIFrameElement>;
225 active?: boolean;
226};
227declare class ZoomIFrame extends Component<IZoomIFrameProps> {
228 iframe: HTMLIFrameElement;
229 componentDidMount(): void;
230 shouldComponentUpdate(nextProps: IZoomIFrameProps): boolean;
231 setIframeInnerZoom(scale: number): void;
232 setIframeZoom(scale: number): void;
233 render(): ReactElement<HTMLIFrameElement, string | react.JSXElementConstructor<any>> & react.ReactNode;
234}
235
236declare const Zoom: {
237 Element: typeof ZoomElement;
238 IFrame: typeof ZoomIFrame;
239};
240
241declare const ErrorFormatter: FC<{
242 error: Error;
243}>;
244
245declare const ButtonWrapper: _storybook_theming.StyledComponent<{
246 theme?: _storybook_theming.Theme;
247 as?: react__default.ElementType<any>;
248} & {
249 isLink?: boolean;
250 primary?: boolean;
251 secondary?: boolean;
252 tertiary?: boolean;
253 gray?: boolean;
254 inForm?: boolean;
255 disabled?: boolean;
256 small?: boolean;
257 outline?: boolean;
258 containsIcon?: boolean;
259 children?: ReactNode;
260 href?: string;
261}, react__default.DetailedHTMLProps<react__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
262declare const Button: FC<ComponentProps<typeof ButtonWrapper>>;
263
264type Sizes = '100%' | 'flex' | 'auto';
265type Alignments = 'end' | 'center' | 'start';
266type ValidationStates = 'valid' | 'error' | 'warn';
267
268interface FieldProps {
269 children?: ReactNode;
270 label?: ReactNode;
271}
272
273declare const Form: _storybook_theming.StyledComponent<{
274 theme?: _storybook_theming.Theme;
275 as?: react.ElementType<any>;
276}, react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}> & {
277 Field: react.FC<FieldProps>;
278 Input: _storybook_theming.StyledComponent<Pick<Omit<react.HTMLProps<HTMLInputElement>, "height" | "align" | "size" | "valid"> & {
279 size?: Sizes;
280 align?: Alignments;
281 valid?: ValidationStates;
282 height?: number;
283 }, "download" | "href" | "hrefLang" | "media" | "target" | "type" | "form" | "list" | "cite" | "cellPadding" | "cellSpacing" | "summary" | "width" | "alt" | "crossOrigin" | "height" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "start" | "data" | "label" | "slot" | "span" | "style" | "title" | "pattern" | "className" | "color" | "content" | "translate" | "default" | "hidden" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "disabled" | "wrap" | "key" | "rows" | "align" | "as" | "size" | "open" | "multiple" | "max" | "method" | "min" | "name" | "controls" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "valid" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "async" | "autoComplete" | "autoPlay" | "capture" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "step" | "wmode"> & react.RefAttributes<any> & {
284 theme?: _storybook_theming.Theme;
285 } & {
286 size?: Sizes;
287 align?: Alignments;
288 valid?: ValidationStates;
289 height?: number;
290 }, {}, {}> & {
291 displayName: string;
292 };
293 Select: _storybook_theming.StyledComponent<Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "height" | "align" | "size" | "valid"> & {
294 size?: Sizes;
295 align?: Alignments;
296 valid?: ValidationStates;
297 height?: number;
298 } & react.RefAttributes<any> & {
299 theme?: _storybook_theming.Theme;
300 }, {}, {}> & {
301 displayName: string;
302 };
303 Textarea: _storybook_theming.StyledComponent<Omit<react_textarea_autosize.TextareaAutosizeProps, "height" | "align" | "size" | "valid"> & {
304 size?: Sizes;
305 align?: Alignments;
306 valid?: ValidationStates;
307 height?: number;
308 } & react.RefAttributes<any> & {
309 theme?: _storybook_theming.Theme;
310 }, {}, {}> & {
311 displayName: string;
312 };
313 Button: react.FC<any>;
314};
315
316declare const top: "top";
317declare const bottom: "bottom";
318declare const right: "right";
319declare const left: "left";
320declare type BasePlacement = typeof top | typeof bottom | typeof right | typeof left;
321declare type VariationPlacement = "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
322declare type AutoPlacement = "auto" | "auto-start" | "auto-end";
323declare type Placement = AutoPlacement | BasePlacement | VariationPlacement;
324declare const beforeRead: "beforeRead";
325declare const read: "read";
326declare const afterRead: "afterRead";
327declare const beforeMain: "beforeMain";
328declare const main: "main";
329declare const afterMain: "afterMain";
330declare const beforeWrite: "beforeWrite";
331declare const write: "write";
332declare const afterWrite: "afterWrite";
333declare type ModifierPhases = typeof beforeRead | typeof read | typeof afterRead | typeof beforeMain | typeof main | typeof afterMain | typeof beforeWrite | typeof write | typeof afterWrite;
334
335declare type Obj = {
336 [key: string]: any;
337};
338declare type VisualViewport = EventTarget & {
339 width: number;
340 height: number;
341 offsetLeft: number;
342 offsetTop: number;
343 scale: number;
344};
345declare type Window = {
346 innerHeight: number;
347 offsetHeight: number;
348 innerWidth: number;
349 offsetWidth: number;
350 pageXOffset: number;
351 pageYOffset: number;
352 getComputedStyle: typeof getComputedStyle;
353 addEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
354 removeEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
355 Element: Element;
356 HTMLElement: HTMLElement;
357 Node: Node;
358 toString(): "[object Window]";
359 devicePixelRatio: number;
360 visualViewport?: VisualViewport;
361 ShadowRoot: ShadowRoot;
362};
363declare type Rect = {
364 width: number;
365 height: number;
366 x: number;
367 y: number;
368};
369declare type Offsets = {
370 y: number;
371 x: number;
372};
373declare type PositioningStrategy = "absolute" | "fixed";
374declare type StateRects = {
375 reference: Rect;
376 popper: Rect;
377};
378declare type OffsetData = {
379 [key in Placement]?: Offsets;
380};
381declare type State = {
382 elements: {
383 reference: Element | VirtualElement;
384 popper: HTMLElement;
385 arrow?: HTMLElement;
386 };
387 options: OptionsGeneric<any>;
388 placement: Placement;
389 strategy: PositioningStrategy;
390 orderedModifiers: Array<Modifier<any, any>>;
391 rects: StateRects;
392 scrollParents: {
393 reference: Array<Element | Window | VisualViewport>;
394 popper: Array<Element | Window | VisualViewport>;
395 };
396 styles: {
397 [key: string]: Partial<CSSStyleDeclaration>;
398 };
399 attributes: {
400 [key: string]: {
401 [key: string]: string | boolean;
402 };
403 };
404 modifiersData: {
405 arrow?: {
406 x?: number;
407 y?: number;
408 centerOffset: number;
409 };
410 hide?: {
411 isReferenceHidden: boolean;
412 hasPopperEscaped: boolean;
413 referenceClippingOffsets: SideObject;
414 popperEscapeOffsets: SideObject;
415 };
416 offset?: OffsetData;
417 preventOverflow?: Offsets;
418 popperOffsets?: Offsets;
419 [key: string]: any;
420 };
421 reset: boolean;
422};
423declare type SetAction<S> = S | ((prev: S) => S);
424declare type Instance = {
425 state: State;
426 destroy: () => void;
427 forceUpdate: () => void;
428 update: () => Promise<Partial<State>>;
429 setOptions: (setOptionsAction: SetAction<Partial<OptionsGeneric<any>>>) => Promise<Partial<State>>;
430};
431declare type ModifierArguments<Options extends Obj> = {
432 state: State;
433 instance: Instance;
434 options: Partial<Options>;
435 name: string;
436};
437declare type Modifier<Name, Options extends Obj> = {
438 name: Name;
439 enabled: boolean;
440 phase: ModifierPhases;
441 requires?: Array<string>;
442 requiresIfExists?: Array<string>;
443 fn: (arg0: ModifierArguments<Options>) => State | void;
444 effect?: (arg0: ModifierArguments<Options>) => (() => void) | void;
445 options?: Partial<Options>;
446 data?: Obj;
447};
448declare type Options = {
449 placement: Placement;
450 modifiers: Array<Partial<Modifier<any, any>>>;
451 strategy: PositioningStrategy;
452 onFirstUpdate?: (arg0: Partial<State>) => void;
453};
454declare type OptionsGeneric<TModifier> = {
455 placement: Placement;
456 modifiers: Array<TModifier>;
457 strategy: PositioningStrategy;
458 onFirstUpdate?: (arg0: Partial<State>) => void;
459};
460declare type SideObject = {
461 top: number;
462 left: number;
463 right: number;
464 bottom: number;
465};
466declare type VirtualElement = {
467 getBoundingClientRect: () => ClientRect | DOMRect;
468 contextElement?: Element;
469};
470
471declare const createPopper: <TModifier extends Partial<Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<OptionsGeneric<TModifier>>) => Instance;
472
473declare type TriggerType = 'click' | 'double-click' | 'right-click' | 'hover' | 'focus';
474declare type Config = {
475 /**
476 * Whether to close the tooltip when its trigger is out of boundary
477 * @default false
478 */
479 closeOnTriggerHidden?: boolean;
480 /**
481 * Event or events that trigger the tooltip
482 * @default hover
483 */
484 trigger?: TriggerType | TriggerType[] | null;
485 /**
486 * Delay in hiding the tooltip (ms)
487 * @default 0
488 */
489 delayHide?: number;
490 /**
491 * Delay in showing the tooltip (ms)
492 * @default 0
493 */
494 delayShow?: number;
495 /**
496 * Whether to make the tooltip spawn at cursor position
497 * @default false
498 */
499 followCursor?: boolean;
500 /**
501 * Options to MutationObserver, used internally for updating
502 * tooltip position based on its DOM changes
503 * @default { attributes: true, childList: true, subtree: true }
504 */
505 mutationObserverOptions?: MutationObserverInit | null;
506 /**
507 * Whether tooltip is shown by default
508 * @default false
509 */
510 defaultVisible?: boolean;
511 /**
512 * Used to create controlled tooltip
513 */
514 visible?: boolean;
515 /**
516 * Called when the visibility of the tooltip changes
517 */
518 onVisibleChange?: (state: boolean) => void;
519 /**
520 * If `true`, a click outside the trigger element closes the tooltip
521 * @default true
522 */
523 closeOnOutsideClick?: boolean;
524 /**
525 * If `true`, hovering the tooltip will keep it open. Normally tooltip closes when the mouse cursor moves out of
526 * the trigger element. If it moves to the tooltip element, the tooltip stays open.
527 * @default false
528 */
529 interactive?: boolean;
530 /**
531 * Alias for popper.js placement, see https://popper.js.org/docs/v2/constructors/#placement
532 */
533 placement?: Placement;
534 /**
535 * Shorthand for popper.js offset modifier, see https://popper.js.org/docs/v2/modifiers/offset/
536 * @default [0, 6]
537 */
538 offset?: [number, number];
539};
540declare type PopperOptions = Partial<Options> & {
541 createPopper?: typeof createPopper;
542};
543
544interface WithHideFn {
545 onHide: () => void;
546}
547interface WithTooltipPureProps extends Omit<Config, 'closeOnOutsideClick'>, PopperOptions {
548 svg?: boolean;
549 withArrows?: boolean;
550 hasChrome?: boolean;
551 tooltip: ReactNode | ((p: WithHideFn) => ReactNode);
552 children: ReactNode;
553 onDoubleClick?: () => void;
554 /**
555 * @deprecated use `defaultVisible` property instead. This property will be removed in SB 8.0
556 */
557 tooltipShown?: boolean;
558 /**
559 * @deprecated use `closeOnOutsideClick` property instead. This property will be removed in SB 8.0
560 */
561 closeOnClick?: boolean;
562 /**
563 * @deprecated use `onVisibleChange` property instead. This property will be removed in SB 8.0
564 */
565 onVisibilityChange?: (visibility: boolean) => void | boolean;
566 /**
567 * If `true`, a click outside the trigger element closes the tooltip
568 * @default false
569 */
570 closeOnOutsideClick?: boolean;
571}
572
573declare const LazyWithTooltip: react__default.LazyExoticComponent<react__default.FC<Omit<WithTooltipPureProps, "onVisibleChange"> & {
574 startOpen?: boolean;
575 onVisibleChange?: (visible: boolean) => boolean | void;
576}>>;
577declare const WithTooltip: (props: ComponentProps<typeof LazyWithTooltip>) => JSX.Element;
578declare const LazyWithTooltipPure: react__default.LazyExoticComponent<react__default.FC<WithTooltipPureProps>>;
579declare const WithTooltipPure: (props: ComponentProps<typeof LazyWithTooltipPure>) => JSX.Element;
580
581interface TooltipMessageProps {
582 title?: ReactNode;
583 desc?: ReactNode;
584 links?: {
585 title: string;
586 href?: string;
587 onClick?: () => void;
588 }[];
589}
590declare const TooltipMessage: FC<TooltipMessageProps>;
591
592interface TooltipNoteProps {
593 note: string;
594}
595declare const TooltipNote: FC<TooltipNoteProps>;
596
597declare const icons: {
598 readonly user: JSX.Element;
599 readonly useralt: JSX.Element;
600 readonly useradd: JSX.Element;
601 readonly users: JSX.Element;
602 readonly profile: JSX.Element;
603 readonly facehappy: JSX.Element;
604 readonly faceneutral: JSX.Element;
605 readonly facesad: JSX.Element;
606 readonly accessibility: JSX.Element;
607 readonly accessibilityalt: JSX.Element;
608 readonly arrowup: JSX.Element;
609 readonly arrowdown: JSX.Element;
610 readonly arrowleft: JSX.Element;
611 readonly arrowright: JSX.Element;
612 readonly arrowupalt: JSX.Element;
613 readonly arrowdownalt: JSX.Element;
614 readonly arrowleftalt: JSX.Element;
615 readonly arrowrightalt: JSX.Element;
616 readonly expandalt: JSX.Element;
617 readonly collapse: JSX.Element;
618 readonly expand: JSX.Element;
619 readonly unfold: JSX.Element;
620 readonly transfer: JSX.Element;
621 readonly redirect: JSX.Element;
622 readonly undo: JSX.Element;
623 readonly reply: JSX.Element;
624 readonly sync: JSX.Element;
625 readonly upload: JSX.Element;
626 readonly download: JSX.Element;
627 readonly back: JSX.Element;
628 readonly proceed: JSX.Element;
629 readonly refresh: JSX.Element;
630 readonly globe: JSX.Element;
631 readonly compass: JSX.Element;
632 readonly location: JSX.Element;
633 readonly pin: JSX.Element;
634 readonly time: JSX.Element;
635 readonly dashboard: JSX.Element;
636 readonly timer: JSX.Element;
637 readonly home: JSX.Element;
638 readonly admin: JSX.Element;
639 readonly info: JSX.Element;
640 readonly question: JSX.Element;
641 readonly support: JSX.Element;
642 readonly alert: JSX.Element;
643 readonly email: JSX.Element;
644 readonly phone: JSX.Element;
645 readonly link: JSX.Element;
646 readonly unlink: JSX.Element;
647 readonly bell: JSX.Element;
648 readonly rss: JSX.Element;
649 readonly sharealt: JSX.Element;
650 readonly share: JSX.Element;
651 readonly circlehollow: JSX.Element;
652 readonly circle: JSX.Element;
653 readonly bookmarkhollow: JSX.Element;
654 readonly bookmark: JSX.Element;
655 readonly hearthollow: JSX.Element;
656 readonly heart: JSX.Element;
657 readonly starhollow: JSX.Element;
658 readonly star: JSX.Element;
659 readonly certificate: JSX.Element;
660 readonly verified: JSX.Element;
661 readonly thumbsup: JSX.Element;
662 readonly shield: JSX.Element;
663 readonly basket: JSX.Element;
664 readonly beaker: JSX.Element;
665 readonly hourglass: JSX.Element;
666 readonly flag: JSX.Element;
667 readonly cloudhollow: JSX.Element;
668 readonly cloud: JSX.Element;
669 readonly edit: JSX.Element;
670 readonly cog: JSX.Element;
671 readonly nut: JSX.Element;
672 readonly wrench: JSX.Element;
673 readonly ellipsis: JSX.Element;
674 readonly check: JSX.Element;
675 readonly form: JSX.Element;
676 readonly batchdeny: JSX.Element;
677 readonly batchaccept: JSX.Element;
678 readonly controls: JSX.Element;
679 readonly plus: JSX.Element;
680 readonly closeAlt: JSX.Element;
681 readonly cross: JSX.Element;
682 readonly trash: JSX.Element;
683 readonly pinalt: JSX.Element;
684 readonly unpin: JSX.Element;
685 readonly add: JSX.Element;
686 readonly subtract: JSX.Element;
687 readonly close: JSX.Element;
688 readonly delete: JSX.Element;
689 readonly passed: JSX.Element;
690 readonly changed: JSX.Element;
691 readonly failed: JSX.Element;
692 readonly clear: JSX.Element;
693 readonly comment: JSX.Element;
694 readonly commentadd: JSX.Element;
695 readonly requestchange: JSX.Element;
696 readonly comments: JSX.Element;
697 readonly lock: JSX.Element;
698 readonly unlock: JSX.Element;
699 readonly key: JSX.Element;
700 readonly outbox: JSX.Element;
701 readonly credit: JSX.Element;
702 readonly button: JSX.Element;
703 readonly type: JSX.Element;
704 readonly pointerdefault: JSX.Element;
705 readonly pointerhand: JSX.Element;
706 readonly browser: JSX.Element;
707 readonly tablet: JSX.Element;
708 readonly mobile: JSX.Element;
709 readonly watch: JSX.Element;
710 readonly sidebar: JSX.Element;
711 readonly sidebaralt: JSX.Element;
712 readonly sidebaralttoggle: JSX.Element;
713 readonly sidebartoggle: JSX.Element;
714 readonly bottombar: JSX.Element;
715 readonly bottombartoggle: JSX.Element;
716 readonly cpu: JSX.Element;
717 readonly database: JSX.Element;
718 readonly memory: JSX.Element;
719 readonly structure: JSX.Element;
720 readonly box: JSX.Element;
721 readonly power: JSX.Element;
722 readonly photo: JSX.Element;
723 readonly component: JSX.Element;
724 readonly grid: JSX.Element;
725 readonly outline: JSX.Element;
726 readonly photodrag: JSX.Element;
727 readonly search: JSX.Element;
728 readonly zoom: JSX.Element;
729 readonly zoomout: JSX.Element;
730 readonly zoomreset: JSX.Element;
731 readonly eye: JSX.Element;
732 readonly eyeclose: JSX.Element;
733 readonly lightning: JSX.Element;
734 readonly lightningoff: JSX.Element;
735 readonly contrast: JSX.Element;
736 readonly switchalt: JSX.Element;
737 readonly mirror: JSX.Element;
738 readonly grow: JSX.Element;
739 readonly paintbrush: JSX.Element;
740 readonly ruler: JSX.Element;
741 readonly stop: JSX.Element;
742 readonly camera: JSX.Element;
743 readonly video: JSX.Element;
744 readonly speaker: JSX.Element;
745 readonly play: JSX.Element;
746 readonly playback: JSX.Element;
747 readonly playnext: JSX.Element;
748 readonly rewind: JSX.Element;
749 readonly fastforward: JSX.Element;
750 readonly stopalt: JSX.Element;
751 readonly sidebyside: JSX.Element;
752 readonly stacked: JSX.Element;
753 readonly sun: JSX.Element;
754 readonly moon: JSX.Element;
755 readonly book: JSX.Element;
756 readonly document: JSX.Element;
757 readonly copy: JSX.Element;
758 readonly category: JSX.Element;
759 readonly folder: JSX.Element;
760 readonly print: JSX.Element;
761 readonly graphline: JSX.Element;
762 readonly calendar: JSX.Element;
763 readonly graphbar: JSX.Element;
764 readonly menu: JSX.Element;
765 readonly menualt: JSX.Element;
766 readonly filter: JSX.Element;
767 readonly docchart: JSX.Element;
768 readonly doclist: JSX.Element;
769 readonly markup: JSX.Element;
770 readonly bold: JSX.Element;
771 readonly italic: JSX.Element;
772 readonly paperclip: JSX.Element;
773 readonly listordered: JSX.Element;
774 readonly listunordered: JSX.Element;
775 readonly paragraph: JSX.Element;
776 readonly markdown: JSX.Element;
777 readonly repository: JSX.Element;
778 readonly commit: JSX.Element;
779 readonly branch: JSX.Element;
780 readonly pullrequest: JSX.Element;
781 readonly merge: JSX.Element;
782 readonly apple: JSX.Element;
783 readonly linux: JSX.Element;
784 readonly ubuntu: JSX.Element;
785 readonly windows: JSX.Element;
786 readonly storybook: JSX.Element;
787 readonly azuredevops: JSX.Element;
788 readonly bitbucket: JSX.Element;
789 readonly chrome: JSX.Element;
790 readonly chromatic: JSX.Element;
791 readonly componentdriven: JSX.Element;
792 readonly discord: JSX.Element;
793 readonly facebook: JSX.Element;
794 readonly figma: JSX.Element;
795 readonly gdrive: JSX.Element;
796 readonly github: JSX.Element;
797 readonly gitlab: JSX.Element;
798 readonly google: JSX.Element;
799 readonly graphql: JSX.Element;
800 readonly medium: JSX.Element;
801 readonly redux: JSX.Element;
802 readonly twitter: JSX.Element;
803 readonly youtube: JSX.Element;
804 readonly vscode: JSX.Element;
805};
806type IconKey = keyof typeof icons;
807
808interface ItemProps {
809 disabled?: boolean;
810}
811declare const Item: _storybook_theming.StyledComponent<{
812 theme?: _storybook_theming.Theme;
813 as?: react__default.ElementType<any>;
814} & ItemProps, react__default.DetailedHTMLProps<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
815type LinkWrapperType = FC<any>;
816interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'href' | 'title'> {
817 loading?: boolean;
818 /**
819 * @deprecated This property will be removed in SB 8.0
820 * Use `icon` property instead.
821 */
822 left?: ReactNode;
823 title?: ReactNode;
824 center?: ReactNode;
825 right?: ReactNode;
826 icon?: keyof typeof icons | ReactElement;
827 active?: boolean;
828 disabled?: boolean;
829 href?: string;
830 LinkWrapper?: LinkWrapperType;
831 isIndented?: boolean;
832}
833declare const ListItem: FC<ListItemProps>;
834
835interface Link extends Omit<ListItemProps, 'onClick'> {
836 id: string;
837 isGatsby?: boolean;
838 onClick?: (event: SyntheticEvent, item: ListItemProps) => void;
839}
840interface TooltipLinkListProps {
841 links: Link[];
842 LinkWrapper?: LinkWrapperType;
843}
844declare const TooltipLinkList: FC<TooltipLinkListProps>;
845
846declare const TabBar: _storybook_theming.StyledComponent<{
847 theme?: _storybook_theming.Theme;
848 as?: react__default.ElementType<any>;
849}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
850interface TabWrapperProps {
851 active: boolean;
852 render?: () => JSX.Element;
853 children?: ReactNode;
854}
855declare const TabWrapper: FC<TabWrapperProps>;
856interface TabsProps {
857 children?: FuncChildren[] | ReactNode;
858 id?: string;
859 tools?: ReactNode;
860 selected?: string;
861 actions?: {
862 onSelect: (id: string) => void;
863 } & Record<string, any>;
864 backgroundColor?: string;
865 absolute?: boolean;
866 bordered?: boolean;
867 menuName?: string;
868}
869declare const Tabs: FC<TabsProps>;
870type FuncChildren = ({ active }: {
871 active: boolean;
872}) => JSX.Element;
873interface TabsStateProps {
874 children: FuncChildren[] | ReactNode;
875 initial: string;
876 absolute: boolean;
877 bordered: boolean;
878 backgroundColor: string;
879 menuName: string;
880}
881interface TabsStateState {
882 selected: string;
883}
884declare class TabsState extends Component<TabsStateProps, TabsStateState> {
885 static defaultProps: TabsStateProps;
886 constructor(props: TabsStateProps);
887 handlers: {
888 onSelect: (id: string) => void;
889 };
890 render(): JSX.Element;
891}
892
893interface BarButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
894 href?: void;
895 target?: void;
896}
897interface BarLinkProps extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
898 disabled?: void;
899 href: string;
900}
901interface TabButtonProps {
902 active?: boolean;
903 textColor?: string;
904}
905declare const TabButton: _storybook_theming.StyledComponent<Pick<BarButtonProps | BarLinkProps, "href" | "target" | "type" | "slot" | "style" | "title" | "className" | "color" | "content" | "translate" | "hidden" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "disabled" | "key"> & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
906 theme?: _storybook_theming.Theme;
907} & TabButtonProps, {}, {}>;
908interface IconButtonProps {
909 active?: boolean;
910 disabled?: boolean;
911}
912declare const IconButton: _storybook_theming.StyledComponent<Pick<BarButtonProps | BarLinkProps, "href" | "target" | "type" | "slot" | "style" | "title" | "className" | "color" | "content" | "translate" | "hidden" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "disabled" | "key"> & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
913 theme?: _storybook_theming.Theme;
914} & IconButtonProps, {}, {}>;
915declare const IconButtonSkeleton: () => JSX.Element;
916
917declare const Separator: _storybook_theming.StyledComponent<{
918 theme?: _storybook_theming.Theme;
919 as?: react__default.ElementType<any>;
920} & SeparatorProps, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
921declare const interleaveSeparators: (list: any[]) => any;
922interface SeparatorProps {
923 force?: boolean;
924}
925
926declare const Bar: _storybook_theming.StyledComponent<ScrollAreaProps & {
927 children?: react__default.ReactNode;
928} & {
929 scrollable?: boolean;
930} & {
931 theme?: _storybook_theming.Theme;
932} & {
933 border?: boolean;
934 scrollable?: boolean;
935}, {}, {}>;
936interface FlexBarProps extends ComponentProps<typeof Bar> {
937 border?: boolean;
938 backgroundColor?: string;
939}
940declare const FlexBar: FC<FlexBarProps>;
941
942interface AddonPanelProps {
943 active: boolean;
944 children: ReactNode;
945}
946declare const AddonPanel: ({ active, children }: AddonPanelProps) => JSX.Element;
947
948declare const Svg: _storybook_theming.StyledComponent<{
949 theme?: _storybook_theming.Theme;
950 as?: react__default.ElementType<any>;
951}, react__default.SVGProps<SVGSVGElement>, {}>;
952interface IconsProps extends ComponentProps<typeof Svg> {
953 icon: IconType;
954 useSymbol?: boolean;
955}
956declare const Icons: FunctionComponent<IconsProps>;
957type IconType = keyof typeof icons;
958interface SymbolsProps extends ComponentProps<typeof Svg> {
959 icons?: IconKey[];
960}
961declare const Symbols: react__default.NamedExoticComponent<SymbolsProps>;
962
963declare const StorybookLogo: FC<{
964 alt: string;
965}>;
966
967declare const StorybookIcon: FC;
968
969declare const ProgressWrapper: _storybook_theming.StyledComponent<{
970 theme?: _storybook_theming.Theme;
971 as?: react__default.ElementType<any>;
972}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
973interface Progress {
974 value: number;
975 message: string;
976 modules?: {
977 complete: number;
978 total: number;
979 };
980}
981interface LoaderProps {
982 progress?: Progress;
983 error?: Error;
984 size?: number;
985}
986declare const Loader: FC<LoaderProps & ComponentProps<typeof ProgressWrapper>>;
987
988declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
989
990declare const nameSpaceClassNames: ({ ...props }: {
991 [x: string]: any;
992}, key: string) => {
993 [x: string]: any;
994};
995
996/**
997 * This is a "local" reset to style subtrees with Storybook styles
998 *
999 * We can't style individual elements (e.g. h1, h2, etc.) in here
1000 * because the CSS specificity is too high, so those styles can too
1001 * easily override child elements that are not expecting it.
1002 */
1003declare const ResetWrapper: _storybook_theming.StyledComponent<{
1004 theme?: _storybook_theming.Theme;
1005 as?: react.ElementType<any>;
1006}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1007
1008declare const codeCommon: ({ theme }: {
1009 theme: Theme;
1010}) => CSSObject;
1011declare const withReset: ({ theme }: {
1012 theme: Theme;
1013}) => CSSObject;
1014
1015declare const components: {
1016 h1: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1017 h2: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1018 h3: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1019 h4: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1020 h5: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1021 h6: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1022 pre: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>) => JSX.Element;
1023 a: (props: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => JSX.Element;
1024 hr: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>) => JSX.Element;
1025 dl: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>) => JSX.Element;
1026 blockquote: (props: react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>) => JSX.Element;
1027 table: (props: react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>) => JSX.Element;
1028 img: (props: react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => JSX.Element;
1029 div: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
1030 span: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
1031 li: (props: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => JSX.Element;
1032 ul: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => JSX.Element;
1033 ol: (props: react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>) => JSX.Element;
1034 p: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => JSX.Element;
1035 code: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>) => JSX.Element;
1036 tt: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>) => JSX.Element;
1037 resetwrapper: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
1038};
1039declare const resetComponents: Record<string, ElementType>;
1040
1041export { A, ActionBar, ActionItem, AddonPanel, Badge, Bar, Blockquote, Button, Code, DL, Div, DocumentWrapper, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, IconsProps, Img, LI, Link$1 as Link, ListItem, Loader, OL, P, Placeholder, Pre, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter, SyntaxHighlighterFormatTypes, SyntaxHighlighterProps, SyntaxHighlighterRendererProps, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, Link as TooltipLinkListLink, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, icons, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset };