index.d.ts 56 KB

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