@storybook/components 6.5.7 → 7.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/Color-GC2EERLU.mjs +1 -0
  2. package/dist/GlobalScrollAreaStyles-SBQA32UJ.mjs +1 -0
  3. package/dist/OverlayScrollbars-XXHHIFRP.mjs +6 -0
  4. package/dist/WithTooltip-2JKU54KI.mjs +9 -0
  5. package/dist/chunk-4HFE7HIP.mjs +6 -0
  6. package/dist/chunk-B5E6VV27.mjs +1 -0
  7. package/dist/chunk-HK5F4PFQ.mjs +1 -0
  8. package/dist/chunk-IE3SZHMD.mjs +1 -0
  9. package/dist/chunk-MGIUKE7Y.mjs +149 -0
  10. package/dist/chunk-SEEBCDLS.mjs +5 -0
  11. package/dist/chunk-X32VMURG.mjs +73 -0
  12. package/dist/chunk-XFP3TTPB.mjs +1 -0
  13. package/dist/chunk-YLDU3KBJ.mjs +1 -0
  14. package/dist/formatter-5ZDRIBVE.mjs +184 -0
  15. package/dist/html.d.ts +6 -0
  16. package/dist/html.js +352 -0
  17. package/dist/html.mjs +5 -0
  18. package/dist/index.d.ts +1144 -0
  19. package/dist/index.js +432 -0
  20. package/dist/index.mjs +1 -0
  21. package/dist/syntaxhighlighter-RDO7V73N.mjs +7 -0
  22. package/html.d.ts +1 -1
  23. package/html.js +1 -2
  24. package/package.json +31 -22
  25. package/dist/cjs/Color-90d9da2c.js +0 -2459
  26. package/dist/cjs/GlobalScrollAreaStyles-ff4bd929.js +0 -463
  27. package/dist/cjs/OverlayScrollbars-82979310.js +0 -6620
  28. package/dist/cjs/WithTooltip-60d59c62.js +0 -3166
  29. package/dist/cjs/formatter-adb74648.js +0 -128
  30. package/dist/cjs/index-97a2a5a9.js +0 -2060
  31. package/dist/cjs/index.js +0 -131
  32. package/dist/cjs/syntaxhighlighter-bc65a250.js +0 -211
  33. package/dist/esm/Color-01c31ae2.js +0 -2575
  34. package/dist/esm/GlobalScrollAreaStyles-8793ce4a.js +0 -461
  35. package/dist/esm/OverlayScrollbars-9b821cbe.js +0 -6709
  36. package/dist/esm/WithTooltip-2fc4c925.js +0 -3194
  37. package/dist/esm/formatter-9bb0ae57.js +0 -128
  38. package/dist/esm/index-3ae04fda.js +0 -2003
  39. package/dist/esm/index.js +0 -6
  40. package/dist/esm/syntaxhighlighter-b09267a2.js +0 -229
  41. package/dist/modern/Color-adcd690c.js +0 -2443
  42. package/dist/modern/GlobalScrollAreaStyles-8793ce4a.js +0 -450
  43. package/dist/modern/OverlayScrollbars-2dbee1e7.js +0 -6603
  44. package/dist/modern/WithTooltip-e676f2b3.js +0 -3125
  45. package/dist/modern/formatter-409edac5.js +0 -128
  46. package/dist/modern/index-377367fa.js +0 -2060
  47. package/dist/modern/index.js +0 -6
  48. package/dist/modern/syntaxhighlighter-a425409f.js +0 -157
  49. package/dist/ts-tmp/index.d.ts +0 -928
  50. package/dist/ts3.4/_modules/@popperjs-core-index.d.ts +0 -1
  51. package/dist/ts3.4/_modules/@popperjs-core-lib-createPopper.d.ts +0 -9
  52. package/dist/ts3.4/_modules/@popperjs-core-lib-enums.d.ts +0 -34
  53. package/dist/ts3.4/_modules/@popperjs-core-lib-index.d.ts +0 -6
  54. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-applyStyles.d.ts +0 -4
  55. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-arrow.d.ts +0 -13
  56. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-computeStyles.d.ts +0 -38
  57. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-eventListeners.d.ts +0 -8
  58. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-flip.d.ts +0 -16
  59. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-hide.d.ts +0 -4
  60. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-index.d.ts +0 -9
  61. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-offset.d.ts +0 -24
  62. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-popperOffsets.d.ts +0 -4
  63. package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-preventOverflow.d.ts +0 -30
  64. package/dist/ts3.4/_modules/@popperjs-core-lib-popper-lite.d.ts +0 -5
  65. package/dist/ts3.4/_modules/@popperjs-core-lib-popper.d.ts +0 -7
  66. package/dist/ts3.4/_modules/@popperjs-core-lib-types.d.ts +0 -167
  67. package/dist/ts3.4/_modules/@popperjs-core-lib-utils-detectOverflow.d.ts +0 -11
  68. package/dist/ts3.4/_modules/@types-prettier-index.d.ts +0 -641
  69. package/dist/ts3.4/_modules/react-textarea-autosize-dist-declarations-src-index.d.ts +0 -17
  70. package/dist/ts3.4/_modules/react-textarea-autosize-dist-react-textarea-autosize.cjs.d.ts +0 -2
  71. package/dist/ts3.4/index.d.ts +0 -926
  72. package/dist/ts3.9/_modules/@popperjs-core-index.d.ts +0 -1
  73. package/dist/ts3.9/_modules/@popperjs-core-lib-createPopper.d.ts +0 -9
  74. package/dist/ts3.9/_modules/@popperjs-core-lib-enums.d.ts +0 -34
  75. package/dist/ts3.9/_modules/@popperjs-core-lib-index.d.ts +0 -6
  76. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-applyStyles.d.ts +0 -4
  77. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-arrow.d.ts +0 -13
  78. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-computeStyles.d.ts +0 -38
  79. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-eventListeners.d.ts +0 -8
  80. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-flip.d.ts +0 -16
  81. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-hide.d.ts +0 -4
  82. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-index.d.ts +0 -9
  83. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-offset.d.ts +0 -18
  84. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-popperOffsets.d.ts +0 -4
  85. package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-preventOverflow.d.ts +0 -30
  86. package/dist/ts3.9/_modules/@popperjs-core-lib-popper-lite.d.ts +0 -5
  87. package/dist/ts3.9/_modules/@popperjs-core-lib-popper.d.ts +0 -7
  88. package/dist/ts3.9/_modules/@popperjs-core-lib-types.d.ts +0 -167
  89. package/dist/ts3.9/_modules/@popperjs-core-lib-utils-detectOverflow.d.ts +0 -11
  90. package/dist/ts3.9/_modules/@types-prettier-index.d.ts +0 -641
  91. package/dist/ts3.9/_modules/react-textarea-autosize-dist-declarations-src-index.d.ts +0 -17
  92. package/dist/ts3.9/_modules/react-textarea-autosize-dist-react-textarea-autosize.cjs.d.ts +0 -2
  93. package/dist/ts3.9/index.d.ts +0 -926
@@ -0,0 +1,1144 @@
1
+ import * as react from 'react';
2
+ import react__default, { ComponentProps, FunctionComponent, AnchorHTMLAttributes, MouseEvent, ReactNode, ReactElement, Component, MutableRefObject, SyntheticEvent, FC, ElementType } from 'react';
3
+ import * as _storybook_theming from '@storybook/theming';
4
+ import { Theme } from '@storybook/theming';
5
+ import { BuiltInParserName } from 'prettier';
6
+ import * as react_textarea_autosize from 'react-textarea-autosize';
7
+ import { Conditional, Parameters } from '@storybook/csf';
8
+
9
+ declare const A: _storybook_theming.StyledComponent<any, {
10
+ theme: _storybook_theming.Theme;
11
+ } & {
12
+ theme: _storybook_theming.Theme;
13
+ }, _storybook_theming.Theme>;
14
+
15
+ declare const Blockquote: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {
16
+ theme: _storybook_theming.Theme;
17
+ } & {
18
+ theme: _storybook_theming.Theme;
19
+ }, _storybook_theming.Theme>;
20
+
21
+ declare const DefaultCodeBlock: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLElement>, HTMLElement>, {
22
+ theme: _storybook_theming.Theme;
23
+ }, _storybook_theming.Theme>;
24
+ declare const Code: ({ className, children, ...props }: ComponentProps<typeof DefaultCodeBlock>) => JSX.Element;
25
+
26
+ declare const Div: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
27
+ theme: _storybook_theming.Theme;
28
+ }, _storybook_theming.Theme>;
29
+
30
+ declare const DL: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {
31
+ theme: _storybook_theming.Theme;
32
+ }, _storybook_theming.Theme>;
33
+
34
+ declare const H1: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
35
+ theme: _storybook_theming.Theme;
36
+ } & {
37
+ theme: _storybook_theming.Theme;
38
+ }, _storybook_theming.Theme>;
39
+
40
+ declare const H2: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
41
+ theme: _storybook_theming.Theme;
42
+ } & {
43
+ theme: _storybook_theming.Theme;
44
+ }, _storybook_theming.Theme>;
45
+
46
+ declare const H3: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
47
+ theme: _storybook_theming.Theme;
48
+ } & {
49
+ theme: _storybook_theming.Theme;
50
+ }, _storybook_theming.Theme>;
51
+
52
+ declare const H4: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
53
+ theme: _storybook_theming.Theme;
54
+ } & {
55
+ theme: _storybook_theming.Theme;
56
+ }, _storybook_theming.Theme>;
57
+
58
+ declare const H5: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
59
+ theme: _storybook_theming.Theme;
60
+ } & {
61
+ theme: _storybook_theming.Theme;
62
+ }, _storybook_theming.Theme>;
63
+
64
+ declare const H6: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
65
+ theme: _storybook_theming.Theme;
66
+ } & {
67
+ theme: _storybook_theming.Theme;
68
+ }, _storybook_theming.Theme>;
69
+
70
+ declare const HR: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, Pick<react.ClassAttributes<HTMLHRElement> & react.HTMLAttributes<HTMLHRElement>, keyof react.HTMLAttributes<HTMLHRElement>>, _storybook_theming.Theme>;
71
+
72
+ declare const Img: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Pick<react.ClassAttributes<HTMLImageElement> & react.ImgHTMLAttributes<HTMLImageElement>, keyof react.ImgHTMLAttributes<HTMLImageElement>>, _storybook_theming.Theme>;
73
+
74
+ declare const LI: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
75
+ theme: _storybook_theming.Theme;
76
+ } & {
77
+ theme: _storybook_theming.Theme;
78
+ }, _storybook_theming.Theme>;
79
+
80
+ declare const OL: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {
81
+ theme: _storybook_theming.Theme;
82
+ }, _storybook_theming.Theme>;
83
+
84
+ declare const P: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
85
+ theme: _storybook_theming.Theme;
86
+ } & {
87
+ theme: _storybook_theming.Theme;
88
+ }, _storybook_theming.Theme>;
89
+
90
+ declare const Pre: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {
91
+ theme: _storybook_theming.Theme;
92
+ } & {
93
+ theme: _storybook_theming.Theme;
94
+ }, _storybook_theming.Theme>;
95
+
96
+ declare const Span: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
97
+ theme: _storybook_theming.Theme;
98
+ } & {
99
+ theme: _storybook_theming.Theme;
100
+ }, _storybook_theming.Theme>;
101
+
102
+ declare const Table: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
103
+ theme: _storybook_theming.Theme;
104
+ } & {
105
+ theme: _storybook_theming.Theme;
106
+ }, _storybook_theming.Theme>;
107
+
108
+ declare const TT: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {
109
+ theme: _storybook_theming.Theme;
110
+ }, _storybook_theming.Theme>;
111
+
112
+ declare const UL: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {
113
+ theme: _storybook_theming.Theme;
114
+ }, _storybook_theming.Theme>;
115
+
116
+ interface BadgeProps {
117
+ status: 'positive' | 'negative' | 'neutral' | 'warning' | 'critical';
118
+ }
119
+ declare const Badge: FunctionComponent<BadgeProps>;
120
+
121
+ interface LinkStylesProps {
122
+ secondary?: boolean;
123
+ tertiary?: boolean;
124
+ nochrome?: boolean;
125
+ inverse?: boolean;
126
+ isButton?: boolean;
127
+ }
128
+ interface LinkInnerProps {
129
+ withArrow?: boolean;
130
+ containsIcon?: boolean;
131
+ }
132
+ declare type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
133
+ interface LinkProps extends LinkInnerProps, LinkStylesProps {
134
+ cancel?: boolean;
135
+ className?: string;
136
+ style?: object;
137
+ onClick?: (e: MouseEvent) => void;
138
+ href?: string;
139
+ }
140
+ declare const Link$1: FunctionComponent<LinkProps & AProps>;
141
+
142
+ declare const DocumentWrapper: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, _storybook_theming.Theme>;
143
+
144
+ interface SyntaxHighlighterRendererProps {
145
+ rows: any[];
146
+ stylesheet: string;
147
+ useInlineStyles: boolean;
148
+ }
149
+ interface SyntaxHighlighterCustomProps {
150
+ language: string;
151
+ copyable?: boolean;
152
+ bordered?: boolean;
153
+ padded?: boolean;
154
+ format?: SyntaxHighlighterFormatTypes;
155
+ formatter?: (type: SyntaxHighlighterFormatTypes, source: string) => string;
156
+ className?: string;
157
+ renderer?: (props: SyntaxHighlighterRendererProps) => ReactNode;
158
+ }
159
+ declare type SyntaxHighlighterFormatTypes = boolean | 'dedent' | BuiltInParserName;
160
+ declare type lineTagPropsFunction = (lineNumber: number) => React.HTMLProps<HTMLElement>;
161
+ interface SyntaxHighlighterBaseProps {
162
+ language?: string;
163
+ style?: any;
164
+ customStyle?: any;
165
+ lineProps?: lineTagPropsFunction | React.HTMLProps<HTMLElement>;
166
+ codeTagProps?: React.HTMLProps<HTMLElement>;
167
+ useInlineStyles?: boolean;
168
+ showLineNumbers?: boolean;
169
+ startingLineNumber?: number;
170
+ lineNumberStyle?: any;
171
+ }
172
+ declare type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps;
173
+
174
+ declare const LazySyntaxHighlighter: react__default.LazyExoticComponent<react__default.FunctionComponent<SyntaxHighlighterProps>>;
175
+ declare const SyntaxHighlighter: (props: ComponentProps<typeof LazySyntaxHighlighter>) => JSX.Element;
176
+
177
+ interface ActionItem {
178
+ title: string | JSX.Element;
179
+ className?: string;
180
+ onClick: (e: MouseEvent<HTMLButtonElement>) => void;
181
+ disabled?: boolean;
182
+ }
183
+ interface ActionBarProps {
184
+ actionItems: ActionItem[];
185
+ }
186
+ declare const ActionBar: FunctionComponent<ActionBarProps>;
187
+
188
+ interface SpacedProps {
189
+ col?: number;
190
+ row?: number;
191
+ outer?: number | boolean;
192
+ }
193
+ declare const Spaced: FunctionComponent<SpacedProps>;
194
+
195
+ declare const Placeholder: FunctionComponent;
196
+
197
+ interface ScrollAreaProps {
198
+ horizontal?: boolean;
199
+ vertical?: boolean;
200
+ className?: string;
201
+ }
202
+ declare const ScrollArea: FunctionComponent<ScrollAreaProps>;
203
+
204
+ declare type ZoomProps = {
205
+ scale: number;
206
+ children: ReactElement | ReactElement[];
207
+ };
208
+ declare function ZoomElement({ scale, children }: ZoomProps): JSX.Element;
209
+
210
+ declare type IZoomIFrameProps = {
211
+ scale: number;
212
+ children: ReactElement<HTMLIFrameElement>;
213
+ iFrameRef: MutableRefObject<HTMLIFrameElement>;
214
+ active?: boolean;
215
+ };
216
+ declare class ZoomIFrame extends Component<IZoomIFrameProps> {
217
+ iframe: HTMLIFrameElement;
218
+ componentDidMount(): void;
219
+ shouldComponentUpdate(nextProps: IZoomIFrameProps): boolean;
220
+ setIframeInnerZoom(scale: number): void;
221
+ setIframeZoom(scale: number): void;
222
+ render(): ReactElement<HTMLIFrameElement, string | react.JSXElementConstructor<any>> & react.ReactNode;
223
+ }
224
+
225
+ declare const Zoom: {
226
+ Element: typeof ZoomElement;
227
+ IFrame: typeof ZoomIFrame;
228
+ };
229
+
230
+ declare const ButtonWrapper: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
231
+ isLink?: boolean;
232
+ primary?: boolean;
233
+ secondary?: boolean;
234
+ tertiary?: boolean;
235
+ gray?: boolean;
236
+ inForm?: boolean;
237
+ disabled?: boolean;
238
+ small?: boolean;
239
+ outline?: boolean;
240
+ containsIcon?: boolean;
241
+ children?: ReactNode;
242
+ href?: string;
243
+ }, _storybook_theming.Theme>;
244
+ declare const Button: FunctionComponent<ComponentProps<typeof ButtonWrapper>>;
245
+
246
+ interface FieldProps {
247
+ label?: ReactNode;
248
+ }
249
+
250
+ declare const Form: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, Pick<react.ClassAttributes<HTMLFormElement> & react.FormHTMLAttributes<HTMLFormElement>, keyof react.FormHTMLAttributes<HTMLFormElement>>, _storybook_theming.Theme> & {
251
+ Field: react.FunctionComponent<FieldProps>;
252
+ Input: _storybook_theming.StyledComponent<any, {
253
+ size?: "flex" | "auto" | "100%";
254
+ align?: "start" | "center" | "end";
255
+ valid?: "error" | "valid" | "warn";
256
+ height?: number;
257
+ }, _storybook_theming.Theme> & {
258
+ displayName: string;
259
+ };
260
+ Select: _storybook_theming.StyledComponent<any, Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "height" | "size" | "valid" | "align"> & {
261
+ size?: "flex" | "auto" | "100%";
262
+ align?: "start" | "center" | "end";
263
+ valid?: "error" | "valid" | "warn";
264
+ height?: number;
265
+ }, _storybook_theming.Theme> & {
266
+ displayName: string;
267
+ };
268
+ Textarea: _storybook_theming.StyledComponent<any, Omit<react_textarea_autosize.TextareaAutosizeProps, "height" | "size" | "valid" | "align"> & {
269
+ size?: "flex" | "auto" | "100%";
270
+ align?: "start" | "center" | "end";
271
+ valid?: "error" | "valid" | "warn";
272
+ height?: number;
273
+ }, _storybook_theming.Theme> & {
274
+ displayName: string;
275
+ };
276
+ Button: react.FunctionComponent<any>;
277
+ };
278
+
279
+ declare const top: "top";
280
+ declare const bottom: "bottom";
281
+ declare const right: "right";
282
+ declare const left: "left";
283
+ declare type BasePlacement = typeof top | typeof bottom | typeof right | typeof left;
284
+ declare type VariationPlacement = "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
285
+ declare type AutoPlacement = "auto" | "auto-start" | "auto-end";
286
+ declare type Placement = AutoPlacement | BasePlacement | VariationPlacement;
287
+ declare const beforeRead: "beforeRead";
288
+ declare const read: "read";
289
+ declare const afterRead: "afterRead";
290
+ declare const beforeMain: "beforeMain";
291
+ declare const main: "main";
292
+ declare const afterMain: "afterMain";
293
+ declare const beforeWrite: "beforeWrite";
294
+ declare const write: "write";
295
+ declare const afterWrite: "afterWrite";
296
+ declare type ModifierPhases = typeof beforeRead | typeof read | typeof afterRead | typeof beforeMain | typeof main | typeof afterMain | typeof beforeWrite | typeof write | typeof afterWrite;
297
+
298
+ declare type Obj = {
299
+ [key: string]: any;
300
+ };
301
+ declare type VisualViewport = EventTarget & {
302
+ width: number;
303
+ height: number;
304
+ offsetLeft: number;
305
+ offsetTop: number;
306
+ scale: number;
307
+ };
308
+ declare type Window = {
309
+ innerHeight: number;
310
+ offsetHeight: number;
311
+ innerWidth: number;
312
+ offsetWidth: number;
313
+ pageXOffset: number;
314
+ pageYOffset: number;
315
+ getComputedStyle: typeof getComputedStyle;
316
+ addEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
317
+ removeEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
318
+ Element: Element;
319
+ HTMLElement: HTMLElement;
320
+ Node: Node;
321
+ toString(): "[object Window]";
322
+ devicePixelRatio: number;
323
+ visualViewport?: VisualViewport;
324
+ ShadowRoot: ShadowRoot;
325
+ };
326
+ declare type Rect = {
327
+ width: number;
328
+ height: number;
329
+ x: number;
330
+ y: number;
331
+ };
332
+ declare type Offsets = {
333
+ y: number;
334
+ x: number;
335
+ };
336
+ declare type PositioningStrategy = "absolute" | "fixed";
337
+ declare type StateRects = {
338
+ reference: Rect;
339
+ popper: Rect;
340
+ };
341
+ declare type OffsetData = {
342
+ [key in Placement]?: Offsets;
343
+ };
344
+ declare type State = {
345
+ elements: {
346
+ reference: Element | VirtualElement;
347
+ popper: HTMLElement;
348
+ arrow?: HTMLElement;
349
+ };
350
+ options: OptionsGeneric<any>;
351
+ placement: Placement;
352
+ strategy: PositioningStrategy;
353
+ orderedModifiers: Array<Modifier<any, any>>;
354
+ rects: StateRects;
355
+ scrollParents: {
356
+ reference: Array<Element | Window | VisualViewport>;
357
+ popper: Array<Element | Window | VisualViewport>;
358
+ };
359
+ styles: {
360
+ [key: string]: Partial<CSSStyleDeclaration>;
361
+ };
362
+ attributes: {
363
+ [key: string]: {
364
+ [key: string]: string | boolean;
365
+ };
366
+ };
367
+ modifiersData: {
368
+ arrow?: {
369
+ x?: number;
370
+ y?: number;
371
+ centerOffset: number;
372
+ };
373
+ hide?: {
374
+ isReferenceHidden: boolean;
375
+ hasPopperEscaped: boolean;
376
+ referenceClippingOffsets: SideObject;
377
+ popperEscapeOffsets: SideObject;
378
+ };
379
+ offset?: OffsetData;
380
+ preventOverflow?: Offsets;
381
+ popperOffsets?: Offsets;
382
+ [key: string]: any;
383
+ };
384
+ reset: boolean;
385
+ };
386
+ declare type SetAction<S> = S | ((prev: S) => S);
387
+ declare type Instance = {
388
+ state: State;
389
+ destroy: () => void;
390
+ forceUpdate: () => void;
391
+ update: () => Promise<Partial<State>>;
392
+ setOptions: (setOptionsAction: SetAction<Partial<OptionsGeneric<any>>>) => Promise<Partial<State>>;
393
+ };
394
+ declare type ModifierArguments<Options extends Obj> = {
395
+ state: State;
396
+ instance: Instance;
397
+ options: Partial<Options>;
398
+ name: string;
399
+ };
400
+ declare type Modifier<Name, Options extends Obj> = {
401
+ name: Name;
402
+ enabled: boolean;
403
+ phase: ModifierPhases;
404
+ requires?: Array<string>;
405
+ requiresIfExists?: Array<string>;
406
+ fn: (arg0: ModifierArguments<Options>) => State | void;
407
+ effect?: (arg0: ModifierArguments<Options>) => (() => void) | void;
408
+ options?: Partial<Options>;
409
+ data?: Obj;
410
+ };
411
+ declare type OptionsGeneric<TModifier> = {
412
+ placement: Placement;
413
+ modifiers: Array<TModifier>;
414
+ strategy: PositioningStrategy;
415
+ onFirstUpdate?: (arg0: Partial<State>) => void;
416
+ };
417
+ declare type SideObject = {
418
+ top: number;
419
+ left: number;
420
+ right: number;
421
+ bottom: number;
422
+ };
423
+ declare type VirtualElement = {
424
+ getBoundingClientRect: () => ClientRect | DOMRect;
425
+ contextElement?: Element;
426
+ };
427
+
428
+ interface WithHideFn {
429
+ onHide: () => void;
430
+ }
431
+ interface WithTooltipPureProps {
432
+ svg?: boolean;
433
+ trigger?: 'none' | 'hover' | 'click' | 'right-click';
434
+ closeOnClick?: boolean;
435
+ placement?: Placement;
436
+ modifiers?: Array<Partial<Modifier<string, {}>>>;
437
+ hasChrome?: boolean;
438
+ tooltip: ReactNode | ((p: WithHideFn) => ReactNode);
439
+ children: ReactNode;
440
+ tooltipShown?: boolean;
441
+ onVisibilityChange?: (visibility: boolean) => void | boolean;
442
+ onDoubleClick?: () => void;
443
+ }
444
+
445
+ declare const LazyWithTooltip: react__default.LazyExoticComponent<react__default.FunctionComponent<WithTooltipPureProps & {
446
+ startOpen?: boolean;
447
+ }>>;
448
+ declare const WithTooltip: (props: ComponentProps<typeof LazyWithTooltip>) => JSX.Element;
449
+ declare const LazyWithTooltipPure: react__default.LazyExoticComponent<react__default.FunctionComponent<WithTooltipPureProps>>;
450
+ declare const WithTooltipPure: (props: ComponentProps<typeof LazyWithTooltipPure>) => JSX.Element;
451
+
452
+ interface TooltipMessageProps {
453
+ title?: ReactNode;
454
+ desc?: ReactNode;
455
+ links?: {
456
+ title: string;
457
+ href?: string;
458
+ onClick?: () => void;
459
+ }[];
460
+ }
461
+ declare const TooltipMessage: FunctionComponent<TooltipMessageProps>;
462
+
463
+ interface TooltipNoteProps {
464
+ note: string;
465
+ }
466
+ declare const TooltipNote: FunctionComponent<TooltipNoteProps>;
467
+
468
+ interface ItemProps {
469
+ disabled?: boolean;
470
+ }
471
+ declare const Item: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, ItemProps, _storybook_theming.Theme>;
472
+ declare type LinkWrapperType = FunctionComponent<any>;
473
+ interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'href' | 'title'> {
474
+ loading?: boolean;
475
+ left?: ReactNode;
476
+ title?: ReactNode;
477
+ center?: ReactNode;
478
+ right?: ReactNode;
479
+ active?: boolean;
480
+ disabled?: boolean;
481
+ href?: string;
482
+ LinkWrapper?: LinkWrapperType;
483
+ }
484
+
485
+ interface Link extends Omit<ListItemProps, 'onClick'> {
486
+ id: string;
487
+ isGatsby?: boolean;
488
+ onClick?: (event: SyntheticEvent, item: ListItemProps) => void;
489
+ }
490
+ interface TooltipLinkListProps {
491
+ links: Link[];
492
+ LinkWrapper?: LinkWrapperType;
493
+ }
494
+ declare const TooltipLinkList: FunctionComponent<TooltipLinkListProps>;
495
+
496
+ declare const TabBar: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<react__default.ClassAttributes<HTMLDivElement> & react__default.HTMLAttributes<HTMLDivElement>, keyof react__default.HTMLAttributes<HTMLDivElement>>, _storybook_theming.Theme>;
497
+ interface TabWrapperProps {
498
+ active: boolean;
499
+ render?: () => JSX.Element;
500
+ children?: ReactNode;
501
+ }
502
+ declare const TabWrapper: FunctionComponent<TabWrapperProps>;
503
+ interface TabsProps {
504
+ id?: string;
505
+ tools?: ReactNode;
506
+ selected?: string;
507
+ actions?: {
508
+ onSelect: (id: string) => void;
509
+ } & Record<string, any>;
510
+ backgroundColor?: string;
511
+ absolute?: boolean;
512
+ bordered?: boolean;
513
+ }
514
+ declare const Tabs: FunctionComponent<TabsProps>;
515
+ declare type FuncChildren = () => void;
516
+ interface TabsStateProps {
517
+ children: (ReactNode | FuncChildren)[];
518
+ initial: string;
519
+ absolute: boolean;
520
+ bordered: boolean;
521
+ backgroundColor: string;
522
+ }
523
+ interface TabsStateState {
524
+ selected: string;
525
+ }
526
+ declare class TabsState extends Component<TabsStateProps, TabsStateState> {
527
+ static defaultProps: TabsStateProps;
528
+ constructor(props: TabsStateProps);
529
+ handlers: {
530
+ onSelect: (id: string) => void;
531
+ };
532
+ render(): JSX.Element;
533
+ }
534
+
535
+ interface TabButtonProps {
536
+ active?: boolean;
537
+ textColor?: string;
538
+ }
539
+ declare const TabButton: _storybook_theming.StyledComponent<any, TabButtonProps, _storybook_theming.Theme>;
540
+ interface IconButtonProps {
541
+ active?: boolean;
542
+ disabled?: boolean;
543
+ }
544
+ declare const IconButton: _storybook_theming.StyledComponent<any, IconButtonProps, _storybook_theming.Theme>;
545
+
546
+ declare const Separator: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, SeparatorProps, _storybook_theming.Theme>;
547
+ declare const interleaveSeparators: (list: any[]) => any;
548
+ interface SeparatorProps {
549
+ force?: boolean;
550
+ }
551
+
552
+ declare const Bar: _storybook_theming.StyledComponent<any, Pick<any, string | number | symbol>, _storybook_theming.Theme>;
553
+ interface FlexBarProps {
554
+ border?: boolean;
555
+ children?: any;
556
+ backgroundColor?: string;
557
+ }
558
+ declare const FlexBar: FunctionComponent<FlexBarProps>;
559
+
560
+ interface AddonPanelProps {
561
+ active: boolean;
562
+ children: ReactNode;
563
+ }
564
+ declare const AddonPanel: ({ active, children }: AddonPanelProps) => JSX.Element;
565
+
566
+ declare const icons: {
567
+ mobile: string;
568
+ watch: string;
569
+ tablet: string;
570
+ browser: string;
571
+ sidebar: string;
572
+ sidebaralt: string;
573
+ bottombar: string;
574
+ useralt: string;
575
+ user: string;
576
+ useradd: string;
577
+ users: string;
578
+ profile: string;
579
+ bookmark: string;
580
+ bookmarkhollow: string;
581
+ book: string;
582
+ repository: string;
583
+ star: string;
584
+ starhollow: string;
585
+ circle: string;
586
+ circlehollow: string;
587
+ heart: string;
588
+ hearthollow: string;
589
+ facehappy: string;
590
+ facesad: string;
591
+ faceneutral: string;
592
+ lock: string;
593
+ unlock: string;
594
+ key: string;
595
+ arrowleftalt: string;
596
+ arrowrightalt: string;
597
+ sync: string;
598
+ reply: string;
599
+ undo: string;
600
+ transfer: string;
601
+ redirect: string;
602
+ expand: string;
603
+ expandalt: string;
604
+ collapse: string;
605
+ grow: string;
606
+ arrowleft: string;
607
+ arrowup: string;
608
+ arrowdown: string;
609
+ arrowright: string;
610
+ chevrondown: string;
611
+ back: string;
612
+ download: string;
613
+ upload: string;
614
+ proceed: string;
615
+ info: string;
616
+ question: string;
617
+ support: string;
618
+ alert: string;
619
+ bell: string;
620
+ rss: string;
621
+ edit: string;
622
+ paintbrush: string;
623
+ close: string;
624
+ closeAlt: string;
625
+ trash: string;
626
+ cross: string;
627
+ delete: string;
628
+ add: string;
629
+ subtract: string;
630
+ plus: string;
631
+ document: string;
632
+ folder: string;
633
+ component: string;
634
+ calendar: string;
635
+ graphline: string;
636
+ docchart: string;
637
+ doclist: string;
638
+ category: string;
639
+ grid: string;
640
+ copy: string;
641
+ certificate: string;
642
+ print: string;
643
+ listunordered: string;
644
+ graphbar: string;
645
+ menu: string;
646
+ filter: string;
647
+ ellipsis: string;
648
+ cog: string;
649
+ wrench: string;
650
+ nut: string;
651
+ camera: string;
652
+ eye: string;
653
+ eyeclose: string;
654
+ photo: string;
655
+ video: string;
656
+ speaker: string;
657
+ phone: string;
658
+ flag: string;
659
+ pin: string;
660
+ compass: string;
661
+ globe: string;
662
+ location: string;
663
+ search: string;
664
+ zoom: string;
665
+ zoomout: string;
666
+ zoomreset: string;
667
+ timer: string;
668
+ time: string;
669
+ lightning: string;
670
+ lightningoff: string;
671
+ dashboard: string;
672
+ hourglass: string;
673
+ play: string;
674
+ playnext: string;
675
+ playback: string;
676
+ stop: string;
677
+ stopalt: string;
678
+ rewind: string;
679
+ fastforward: string;
680
+ email: string;
681
+ link: string;
682
+ paperclip: string;
683
+ box: string;
684
+ structure: string;
685
+ cpu: string;
686
+ memory: string;
687
+ database: string;
688
+ power: string;
689
+ outbox: string;
690
+ share: string;
691
+ button: string;
692
+ form: string;
693
+ check: string;
694
+ batchaccept: string;
695
+ batchdeny: string;
696
+ home: string;
697
+ admin: string;
698
+ paragraph: string;
699
+ basket: string;
700
+ credit: string;
701
+ shield: string;
702
+ beaker: string;
703
+ thumbsup: string;
704
+ mirror: string;
705
+ switchalt: string;
706
+ commit: string;
707
+ branch: string;
708
+ merge: string;
709
+ pullrequest: string;
710
+ chromatic: string;
711
+ twitter: string;
712
+ google: string;
713
+ gdrive: string;
714
+ youtube: string;
715
+ facebook: string;
716
+ medium: string;
717
+ graphql: string;
718
+ redux: string;
719
+ github: string;
720
+ bitbucket: string;
721
+ gitlab: string;
722
+ azuredevops: string;
723
+ discord: string;
724
+ contrast: string;
725
+ unfold: string;
726
+ sharealt: string;
727
+ accessibility: string;
728
+ accessibilityalt: string;
729
+ markup: string;
730
+ outline: string;
731
+ verified: string;
732
+ comment: string;
733
+ commentadd: string;
734
+ requestchange: string;
735
+ comments: string;
736
+ ruler: string;
737
+ };
738
+
739
+ declare type IconKey = keyof typeof icons;
740
+
741
+ interface SvgProps {
742
+ inline?: boolean;
743
+ }
744
+ declare const Svg: _storybook_theming.StyledComponent<react.SVGProps<SVGSVGElement>, SvgProps, _storybook_theming.Theme>;
745
+
746
+ interface IconsProps extends ComponentProps<typeof Svg> {
747
+ icon?: IconKey;
748
+ symbol?: IconKey;
749
+ }
750
+ declare const Icons: react__default.NamedExoticComponent<IconsProps>;
751
+ interface SymbolsProps extends ComponentProps<typeof Svg> {
752
+ icons?: IconKey[];
753
+ }
754
+ declare const Symbols: react__default.NamedExoticComponent<SymbolsProps>;
755
+
756
+ declare const StorybookLogo: FunctionComponent<{
757
+ alt: string;
758
+ }>;
759
+
760
+ declare const StorybookIcon: FunctionComponent<{}>;
761
+
762
+ interface DescriptionProps {
763
+ markdown: string;
764
+ }
765
+ /**
766
+ * A markdown description for a component, typically used to show the
767
+ * components docgen docs.
768
+ */
769
+ declare const Description: FunctionComponent<DescriptionProps>;
770
+
771
+ interface DocsPageProps {
772
+ title: string;
773
+ subtitle?: string;
774
+ }
775
+ declare const Title: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, Theme>;
776
+ declare const Subtitle: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, Theme>;
777
+ declare const DocsContent: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<react__default.ClassAttributes<HTMLDivElement> & react__default.HTMLAttributes<HTMLDivElement>, keyof react__default.HTMLAttributes<HTMLDivElement>>, Theme>;
778
+ declare const DocsWrapper: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, Theme>;
779
+ declare const DocsPageWrapper: FC;
780
+
781
+ declare const StyledSyntaxHighlighter: _storybook_theming.StyledComponent<any, {}, _storybook_theming.Theme>;
782
+ declare enum SourceError {
783
+ NO_STORY = "There\u2019s no story here.",
784
+ SOURCE_UNAVAILABLE = "Oh no! The source is not available."
785
+ }
786
+ interface SourceErrorProps {
787
+ isLoading?: boolean;
788
+ error?: SourceError;
789
+ }
790
+ interface SourceCodeProps {
791
+ language?: string;
792
+ code?: string;
793
+ format?: ComponentProps<typeof SyntaxHighlighter>['format'];
794
+ dark?: boolean;
795
+ }
796
+ declare type SourceProps = SourceErrorProps & SourceCodeProps;
797
+ /**
798
+ * Syntax-highlighted source code for a component (or anything!)
799
+ */
800
+ declare const Source: FunctionComponent<SourceProps>;
801
+
802
+ interface PreviewProps {
803
+ isLoading?: true;
804
+ isColumn?: boolean;
805
+ columns?: number;
806
+ withSource?: SourceProps;
807
+ isExpanded?: boolean;
808
+ withToolbar?: boolean;
809
+ className?: string;
810
+ additionalActions?: ActionItem[];
811
+ }
812
+ /**
813
+ * A preview component for showing one or more component `Story`
814
+ * items. The preview also shows the source for the component
815
+ * as a drop-down.
816
+ */
817
+ declare const Preview: FunctionComponent<PreviewProps>;
818
+ declare const PreviewSkeleton: () => JSX.Element;
819
+
820
+ interface JsDocParam {
821
+ name: string;
822
+ description?: string;
823
+ }
824
+ interface JsDocReturns {
825
+ description?: string;
826
+ }
827
+ interface JsDocTags {
828
+ params?: JsDocParam[];
829
+ returns?: JsDocReturns;
830
+ }
831
+ interface PropSummaryValue {
832
+ summary: string;
833
+ detail?: string;
834
+ required?: boolean;
835
+ }
836
+ declare type PropType = PropSummaryValue;
837
+ declare type PropDefaultValue = PropSummaryValue;
838
+ interface TableAnnotation {
839
+ type: PropType;
840
+ jsDocTags?: JsDocTags;
841
+ defaultValue?: PropDefaultValue;
842
+ category?: string;
843
+ }
844
+ interface ArgType {
845
+ name?: string;
846
+ description?: string;
847
+ defaultValue?: any;
848
+ if?: Conditional;
849
+ [key: string]: any;
850
+ }
851
+ interface ArgTypes {
852
+ [key: string]: ArgType;
853
+ }
854
+ interface Args {
855
+ [key: string]: any;
856
+ }
857
+ declare type Globals = {
858
+ [name: string]: any;
859
+ };
860
+
861
+ declare const TableWrapper: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
862
+ compact?: boolean;
863
+ inAddonPanel?: boolean;
864
+ isLoading?: boolean;
865
+ }, _storybook_theming.Theme>;
866
+ declare enum ArgsTableError {
867
+ NO_COMPONENT = "No component found.",
868
+ ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework."
869
+ }
870
+ declare type SortType = 'alpha' | 'requiredFirst' | 'none';
871
+ interface ArgsTableOptionProps {
872
+ updateArgs?: (args: Args) => void;
873
+ resetArgs?: (argNames?: string[]) => void;
874
+ compact?: boolean;
875
+ inAddonPanel?: boolean;
876
+ initialExpandedArgs?: boolean;
877
+ isLoading?: boolean;
878
+ sort?: SortType;
879
+ }
880
+ interface ArgsTableDataProps {
881
+ rows: ArgTypes;
882
+ args?: Args;
883
+ globals?: Globals;
884
+ }
885
+ interface ArgsTableErrorProps {
886
+ error: ArgsTableError;
887
+ }
888
+ interface ArgsTableLoadingProps {
889
+ isLoading: true;
890
+ }
891
+ declare const argsTableLoadingData: ArgsTableDataProps;
892
+ declare type ArgsTableProps = ArgsTableOptionProps & (ArgsTableDataProps | ArgsTableErrorProps | ArgsTableLoadingProps);
893
+ /**
894
+ * Display the props for a component as a props table. Each row is a collection of
895
+ * ArgDefs, usually derived from docgen info for the component.
896
+ */
897
+ declare const ArgsTable: FC<ArgsTableProps>;
898
+
899
+ interface TabbedArgsTableProps {
900
+ tabs: Record<string, ArgsTableProps>;
901
+ sort?: SortType;
902
+ }
903
+ declare const TabbedArgsTable: FC<TabbedArgsTableProps>;
904
+
905
+ declare const NoControlsWarning: () => JSX.Element;
906
+
907
+ declare enum StoryError {
908
+ NO_STORY = "No component or story to display"
909
+ }
910
+ interface CommonProps {
911
+ title?: string;
912
+ height?: string;
913
+ id: string;
914
+ }
915
+ interface InlineStoryProps extends CommonProps {
916
+ parameters: Parameters;
917
+ storyFn: ElementType;
918
+ }
919
+ declare type IFrameStoryProps = CommonProps;
920
+ declare type StoryProps = InlineStoryProps | IFrameStoryProps;
921
+ /**
922
+ * A story element, either rendered inline or in an iframe,
923
+ * with configurable height.
924
+ */
925
+ declare const Story: FunctionComponent<StoryProps & {
926
+ inline?: boolean;
927
+ error?: StoryError;
928
+ }>;
929
+ declare const StorySkeleton: () => JSX.Element;
930
+
931
+ interface IFrameProps {
932
+ id: string;
933
+ key?: string;
934
+ title: string;
935
+ src: string;
936
+ allowFullScreen: boolean;
937
+ scale: number;
938
+ style?: any;
939
+ }
940
+ interface BodyStyle {
941
+ width: string;
942
+ height: string;
943
+ transform: string;
944
+ transformOrigin: string;
945
+ }
946
+ declare class IFrame extends Component<IFrameProps> {
947
+ iframe: any;
948
+ componentDidMount(): void;
949
+ shouldComponentUpdate(nextProps: IFrameProps): boolean;
950
+ setIframeBodyStyle(style: BodyStyle): any;
951
+ render(): JSX.Element;
952
+ }
953
+
954
+ interface TypesetProps {
955
+ fontFamily?: string;
956
+ fontSizes: string[];
957
+ fontWeight?: number;
958
+ sampleText?: string;
959
+ }
960
+ /**
961
+ * Convenient styleguide documentation showing examples of type
962
+ * with different sizes and weights and configurable sample text.
963
+ */
964
+ declare const Typeset: FunctionComponent<TypesetProps>;
965
+
966
+ declare type Colors = string[] | {
967
+ [key: string]: string;
968
+ };
969
+ interface ColorItemProps {
970
+ title: string;
971
+ subtitle: string;
972
+ colors: Colors;
973
+ }
974
+ /**
975
+ * A single color row your styleguide showing title, subtitle and one or more colors, used
976
+ * as a child of `ColorPalette`.
977
+ */
978
+ declare const ColorItem: FunctionComponent<ColorItemProps>;
979
+ /**
980
+ * Styleguide documentation for colors, including names, captions, and color swatches,
981
+ * all specified as `ColorItem` children of this wrapper component.
982
+ */
983
+ declare const ColorPalette: FunctionComponent;
984
+
985
+ interface IconItemProps {
986
+ name: string;
987
+ }
988
+ /**
989
+ * An individual icon with a caption and an example (passed as `children`).
990
+ */
991
+ declare const IconItem: FunctionComponent<IconItemProps>;
992
+ /**
993
+ * Show a grid of icons, as specified by `IconItem`.
994
+ */
995
+ declare const IconGallery: FunctionComponent;
996
+
997
+ interface ControlProps<T> {
998
+ name: string;
999
+ value?: T;
1000
+ defaultValue?: T;
1001
+ argType?: ArgType;
1002
+ onChange: (value: T) => T | void;
1003
+ onFocus?: (evt: any) => void;
1004
+ onBlur?: (evt: any) => void;
1005
+ }
1006
+ declare type BooleanValue = boolean;
1007
+ interface BooleanConfig {
1008
+ }
1009
+ declare type ColorValue = string;
1010
+ declare type PresetColor = ColorValue | {
1011
+ color: ColorValue;
1012
+ title?: string;
1013
+ };
1014
+ interface ColorConfig {
1015
+ presetColors?: PresetColor[];
1016
+ startOpen?: boolean;
1017
+ }
1018
+ declare type DateValue = Date | number;
1019
+ interface DateConfig {
1020
+ }
1021
+ declare type NumberValue = number;
1022
+ interface NumberConfig {
1023
+ min?: number;
1024
+ max?: number;
1025
+ step?: number;
1026
+ }
1027
+ declare type RangeConfig = NumberConfig;
1028
+ declare type ObjectValue = any;
1029
+ interface ObjectConfig {
1030
+ }
1031
+ declare type OptionsSingleSelection = any;
1032
+ declare type OptionsMultiSelection = any[];
1033
+ declare type OptionsSelection = OptionsSingleSelection | OptionsMultiSelection;
1034
+ declare type OptionsArray = any[];
1035
+ declare type OptionsObject = Record<string, any>;
1036
+ declare type Options = OptionsArray | OptionsObject;
1037
+ declare type OptionsControlType = 'radio' | 'inline-radio' | 'check' | 'inline-check' | 'select' | 'multi-select';
1038
+ interface OptionsConfig {
1039
+ labels: Record<any, string>;
1040
+ options: Options;
1041
+ type: OptionsControlType;
1042
+ }
1043
+ interface NormalizedOptionsConfig {
1044
+ options: OptionsObject;
1045
+ }
1046
+ declare type TextValue = string;
1047
+ interface TextConfig {
1048
+ }
1049
+ declare type ControlType = 'array' | 'boolean' | 'color' | 'date' | 'number' | 'range' | 'object' | OptionsControlType | 'text';
1050
+ declare type Control = BooleanConfig | ColorConfig | DateConfig | NumberConfig | ObjectConfig | OptionsConfig | RangeConfig | TextConfig;
1051
+ declare type Controls = Record<string, Control>;
1052
+
1053
+ declare type ColorControlProps = ControlProps<ColorValue> & ColorConfig;
1054
+
1055
+ declare type BooleanProps = ControlProps<BooleanValue> & BooleanConfig;
1056
+ declare const BooleanControl: FC<BooleanProps>;
1057
+
1058
+ declare const parseDate: (value: string) => Date;
1059
+ declare const parseTime: (value: string) => Date;
1060
+ declare const formatDate: (value: Date | number) => string;
1061
+ declare const formatTime: (value: Date | number) => string;
1062
+ declare type DateProps = ControlProps<DateValue> & DateConfig;
1063
+ declare const DateControl: FC<DateProps>;
1064
+
1065
+ declare type NumberProps = ControlProps<NumberValue | null> & NumberConfig;
1066
+ declare const parse: (value: string) => number;
1067
+ declare const format: (value: NumberValue) => string;
1068
+ declare const NumberControl: FC<NumberProps>;
1069
+
1070
+ declare type OptionsProps = ControlProps<OptionsSelection> & OptionsConfig;
1071
+ declare const OptionsControl: FC<OptionsProps>;
1072
+
1073
+ declare type ObjectProps = ControlProps<ObjectValue> & ObjectConfig & {
1074
+ theme: any;
1075
+ };
1076
+ declare const ObjectControl: FC<ObjectProps>;
1077
+
1078
+ declare type RangeProps = ControlProps<NumberValue | null> & RangeConfig;
1079
+ declare const RangeControl: FC<RangeProps>;
1080
+
1081
+ declare type TextProps = ControlProps<TextValue | undefined> & TextConfig;
1082
+ declare const TextControl: FC<TextProps>;
1083
+
1084
+ interface FilesControlProps extends ControlProps<string[]> {
1085
+ accept?: string;
1086
+ }
1087
+ declare const FilesControl: FunctionComponent<FilesControlProps>;
1088
+
1089
+ declare type ColorProps = ColorControlProps;
1090
+ declare const LazyColorControl: react__default.LazyExoticComponent<react__default.FC<ColorControlProps>>;
1091
+ declare const ColorControl: (props: ComponentProps<typeof LazyColorControl>) => JSX.Element;
1092
+
1093
+ declare const ProgressWrapper: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<react__default.ClassAttributes<HTMLDivElement> & react__default.HTMLAttributes<HTMLDivElement>, keyof react__default.HTMLAttributes<HTMLDivElement>>, _storybook_theming.Theme>;
1094
+ interface Progress {
1095
+ value: number;
1096
+ message: string;
1097
+ modules?: {
1098
+ complete: number;
1099
+ total: number;
1100
+ };
1101
+ }
1102
+ interface LoaderProps {
1103
+ progress?: Progress;
1104
+ error?: Error;
1105
+ size?: number;
1106
+ }
1107
+ declare const PureLoader: FunctionComponent<LoaderProps & ComponentProps<typeof ProgressWrapper>>;
1108
+ declare const Loader: FunctionComponent<ComponentProps<typeof PureLoader>>;
1109
+
1110
+ declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
1111
+
1112
+ declare const nameSpaceClassNames: ({ ...props }: {
1113
+ [x: string]: any;
1114
+ }, key: string) => {
1115
+ [x: string]: any;
1116
+ };
1117
+
1118
+ declare const components: {
1119
+ h1: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1120
+ h2: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1121
+ h3: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1122
+ h4: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1123
+ h5: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1124
+ h6: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
1125
+ pre: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>) => JSX.Element;
1126
+ a: (props: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => JSX.Element;
1127
+ hr: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>) => JSX.Element;
1128
+ dl: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>) => JSX.Element;
1129
+ blockquote: (props: react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>) => JSX.Element;
1130
+ table: (props: react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>) => JSX.Element;
1131
+ img: (props: react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => JSX.Element;
1132
+ div: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
1133
+ span: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
1134
+ li: (props: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => JSX.Element;
1135
+ ul: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => JSX.Element;
1136
+ ol: (props: react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>) => JSX.Element;
1137
+ p: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => JSX.Element;
1138
+ code: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>) => JSX.Element;
1139
+ tt: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>) => JSX.Element;
1140
+ resetwrapper: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
1141
+ };
1142
+ declare const resetComponents: Record<string, ElementType>;
1143
+
1144
+ export { A, ActionBar, AddonPanel, ArgType, ArgTypes, Args, ArgsTable, ArgsTableDataProps, ArgsTableError, ArgsTableErrorProps, ArgsTableLoadingProps, ArgsTableOptionProps, ArgsTableProps, Badge, Bar, Blockquote, BooleanConfig, BooleanControl, BooleanProps, BooleanValue, Button, Code, ColorConfig, ColorControl, ColorItem, ColorPalette, ColorProps, ColorValue, Control, ControlProps, ControlType, Controls, DL, DateConfig, DateControl, DateProps, DateValue, Description, DescriptionProps, Div, DocsContent, DocsPageProps, DocsPageWrapper, DocsWrapper, DocumentWrapper, FilesControl, FilesControlProps, FlexBar, Form, Globals, H1, H2, H3, H4, H5, H6, HR, IFrame, IconButton, IconGallery, IconItem, Icons, IconsProps, Img, JsDocParam, JsDocReturns, JsDocTags, LI, Link$1 as Link, Loader, NoControlsWarning, NormalizedOptionsConfig, NumberConfig, NumberControl, NumberValue, OL, ObjectConfig, ObjectControl, ObjectProps, ObjectValue, Options, OptionsArray, OptionsConfig, OptionsControl, OptionsControlType, OptionsMultiSelection, OptionsObject, OptionsProps, OptionsSelection, OptionsSingleSelection, P, Placeholder, Pre, PresetColor, Preview, PreviewProps, PreviewSkeleton, PropDefaultValue, PropSummaryValue, PropType, RangeConfig, RangeControl, ScrollArea, Separator, SortType, Source, SourceError, SourceProps, Spaced, Span, Story, StoryError, StorySkeleton, StorybookIcon, StorybookLogo, StyledSyntaxHighlighter, Subtitle, Symbols, SyntaxHighlighter, SyntaxHighlighterFormatTypes, SyntaxHighlighterProps, SyntaxHighlighterRendererProps, TT, TabBar, TabButton, TabWrapper, TabbedArgsTable, TabbedArgsTableProps, Table, TableAnnotation, TableWrapper, Tabs, TabsState, TextConfig, TextControl, TextProps, TextValue, Title, TooltipLinkList, TooltipMessage, TooltipNote, Typeset, TypesetProps, UL, WithTooltip, WithTooltipPure, Zoom, argsTableLoadingData, components, format, formatDate, formatTime, getStoryHref, interleaveSeparators, nameSpaceClassNames, parse, parseDate, parseTime, resetComponents };