@storybook/components 7.0.0-alpha.2 → 7.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GlobalScrollAreaStyles-WBHRRZDM.mjs +1 -0
- package/dist/OverlayScrollbars-ZWHHW3B2.mjs +6 -0
- package/dist/WithTooltip-DT5MBLBP.mjs +9 -0
- package/dist/chunk-4X44FYPN.mjs +1 -0
- package/dist/chunk-B7JBN7QU.mjs +1 -0
- package/dist/chunk-D2QMD7BY.mjs +13 -0
- package/dist/chunk-EX2QXXYQ.mjs +1 -0
- package/dist/chunk-ROQR426B.mjs +6 -0
- package/dist/chunk-YD7UN6FC.mjs +7 -0
- package/dist/formatter-D5LHEZ46.mjs +184 -0
- package/dist/html.d.ts +0 -1
- package/dist/html.js +93 -276
- package/dist/html.mjs +1 -1
- package/dist/index.d.ts +244 -493
- package/dist/index.js +286 -346
- package/dist/index.mjs +1 -1
- package/dist/syntaxhighlighter-ALWPIQUC.mjs +1 -0
- package/package.json +21 -14
- package/LICENSE +0 -21
- package/dist/Color-IIYOK4US.mjs +0 -1
- package/dist/GlobalScrollAreaStyles-5MYDB36S.mjs +0 -1
- package/dist/OverlayScrollbars-GXD6IR4B.mjs +0 -6
- package/dist/WithTooltip-F6U4FHOQ.mjs +0 -9
- package/dist/chunk-7IK3EOFL.mjs +0 -1
- package/dist/chunk-AZCVBZVA.mjs +0 -149
- package/dist/chunk-DF422II4.mjs +0 -6
- package/dist/chunk-EBKGXALM.mjs +0 -1
- package/dist/chunk-PJYBQ6PQ.mjs +0 -1
- package/dist/chunk-WYLOY4EF.mjs +0 -5
- package/dist/chunk-XFBIFQ3K.mjs +0 -73
- package/dist/chunk-XZM6YCLI.mjs +0 -1
- package/dist/formatter-7QCQCGUB.mjs +0 -184
- package/dist/syntaxhighlighter-XYTTX7GN.mjs +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,122 +1,121 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { ComponentProps,
|
|
2
|
+
import react__default, { ComponentProps, FC, AnchorHTMLAttributes, MouseEvent, ReactNode, FunctionComponent, ReactElement, Component, RefObject, SyntheticEvent, DetailedHTMLProps, ButtonHTMLAttributes, ElementType } from 'react';
|
|
3
3
|
import * as _storybook_theming from '@storybook/theming';
|
|
4
|
-
import { Theme } from '@storybook/theming';
|
|
4
|
+
import { Theme, CSSObject } from '@storybook/theming';
|
|
5
5
|
import { BuiltInParserName } from 'prettier';
|
|
6
6
|
import * as react_textarea_autosize from 'react-textarea-autosize';
|
|
7
|
-
import { Conditional, Parameters } from '@storybook/csf';
|
|
8
7
|
|
|
9
|
-
declare const A: _storybook_theming.StyledComponent<
|
|
10
|
-
|
|
8
|
+
declare const A: _storybook_theming.StyledComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
9
|
+
children?: react.ReactNode;
|
|
11
10
|
} & {
|
|
12
|
-
theme
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
declare const Blockquote: _storybook_theming.StyledComponent<
|
|
16
|
-
theme
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
11
|
+
theme?: _storybook_theming.Theme;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
|
|
14
|
+
declare const Blockquote: _storybook_theming.StyledComponent<{
|
|
15
|
+
theme?: _storybook_theming.Theme;
|
|
16
|
+
as?: react.ElementType<any>;
|
|
17
|
+
}, react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
18
|
+
|
|
19
|
+
declare const DefaultCodeBlock: _storybook_theming.StyledComponent<{
|
|
20
|
+
theme?: _storybook_theming.Theme;
|
|
21
|
+
as?: react__default.ElementType<any>;
|
|
22
|
+
}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
24
23
|
declare const Code: ({ className, children, ...props }: ComponentProps<typeof DefaultCodeBlock>) => JSX.Element;
|
|
25
24
|
|
|
26
|
-
declare const Div: _storybook_theming.StyledComponent<
|
|
27
|
-
theme
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
theme
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
declare const H3: _storybook_theming.StyledComponent<
|
|
47
|
-
theme
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
theme
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
theme
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
theme
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
declare const Span: _storybook_theming.StyledComponent<
|
|
97
|
-
theme
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
},
|
|
25
|
+
declare const Div: _storybook_theming.StyledComponent<{
|
|
26
|
+
theme?: _storybook_theming.Theme;
|
|
27
|
+
as?: react.ElementType<any>;
|
|
28
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
|
|
30
|
+
declare const DL: _storybook_theming.StyledComponent<{
|
|
31
|
+
theme?: _storybook_theming.Theme;
|
|
32
|
+
as?: react.ElementType<any>;
|
|
33
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {}>;
|
|
34
|
+
|
|
35
|
+
declare const H1: _storybook_theming.StyledComponent<{
|
|
36
|
+
theme?: _storybook_theming.Theme;
|
|
37
|
+
as?: react.ElementType<any>;
|
|
38
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
39
|
+
|
|
40
|
+
declare const H2: _storybook_theming.StyledComponent<{
|
|
41
|
+
theme?: _storybook_theming.Theme;
|
|
42
|
+
as?: react.ElementType<any>;
|
|
43
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
44
|
+
|
|
45
|
+
declare const H3: _storybook_theming.StyledComponent<{
|
|
46
|
+
theme?: _storybook_theming.Theme;
|
|
47
|
+
as?: react.ElementType<any>;
|
|
48
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
49
|
+
|
|
50
|
+
declare const H4: _storybook_theming.StyledComponent<{
|
|
51
|
+
theme?: _storybook_theming.Theme;
|
|
52
|
+
as?: react.ElementType<any>;
|
|
53
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
54
|
+
|
|
55
|
+
declare const H5: _storybook_theming.StyledComponent<{
|
|
56
|
+
theme?: _storybook_theming.Theme;
|
|
57
|
+
as?: react.ElementType<any>;
|
|
58
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
59
|
+
|
|
60
|
+
declare const H6: _storybook_theming.StyledComponent<{
|
|
61
|
+
theme?: _storybook_theming.Theme;
|
|
62
|
+
as?: react.ElementType<any>;
|
|
63
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
64
|
+
|
|
65
|
+
declare const HR: _storybook_theming.StyledComponent<{
|
|
66
|
+
theme?: _storybook_theming.Theme;
|
|
67
|
+
as?: react.ElementType<any>;
|
|
68
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}>;
|
|
69
|
+
|
|
70
|
+
declare const Img: _storybook_theming.StyledComponent<{
|
|
71
|
+
theme?: _storybook_theming.Theme;
|
|
72
|
+
as?: react.ElementType<any>;
|
|
73
|
+
}, react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
74
|
+
|
|
75
|
+
declare const LI: _storybook_theming.StyledComponent<{
|
|
76
|
+
theme?: _storybook_theming.Theme;
|
|
77
|
+
as?: react.ElementType<any>;
|
|
78
|
+
}, react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
79
|
+
|
|
80
|
+
declare const OL: _storybook_theming.StyledComponent<{
|
|
81
|
+
theme?: _storybook_theming.Theme;
|
|
82
|
+
as?: react.ElementType<any>;
|
|
83
|
+
}, react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}>;
|
|
84
|
+
|
|
85
|
+
declare const P: _storybook_theming.StyledComponent<{
|
|
86
|
+
theme?: _storybook_theming.Theme;
|
|
87
|
+
as?: react.ElementType<any>;
|
|
88
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
89
|
+
|
|
90
|
+
declare const Pre: _storybook_theming.StyledComponent<{
|
|
91
|
+
theme?: _storybook_theming.Theme;
|
|
92
|
+
as?: react.ElementType<any>;
|
|
93
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {}>;
|
|
94
|
+
|
|
95
|
+
declare const Span: _storybook_theming.StyledComponent<{
|
|
96
|
+
theme?: _storybook_theming.Theme;
|
|
97
|
+
as?: react.ElementType<any>;
|
|
98
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
99
|
+
|
|
100
|
+
declare const Table: _storybook_theming.StyledComponent<{
|
|
101
|
+
theme?: _storybook_theming.Theme;
|
|
102
|
+
as?: react.ElementType<any>;
|
|
103
|
+
}, react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
|
|
104
|
+
|
|
105
|
+
declare const TT: _storybook_theming.StyledComponent<{
|
|
106
|
+
theme?: _storybook_theming.Theme;
|
|
107
|
+
as?: react.ElementType<any>;
|
|
108
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {}>;
|
|
109
|
+
|
|
110
|
+
declare const UL: _storybook_theming.StyledComponent<{
|
|
111
|
+
theme?: _storybook_theming.Theme;
|
|
112
|
+
as?: react.ElementType<any>;
|
|
113
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
115
114
|
|
|
116
115
|
interface BadgeProps {
|
|
117
116
|
status: 'positive' | 'negative' | 'neutral' | 'warning' | 'critical';
|
|
118
117
|
}
|
|
119
|
-
declare const Badge:
|
|
118
|
+
declare const Badge: FC<BadgeProps>;
|
|
120
119
|
|
|
121
120
|
interface LinkStylesProps {
|
|
122
121
|
secondary?: boolean;
|
|
@@ -137,9 +136,12 @@ interface LinkProps extends LinkInnerProps, LinkStylesProps {
|
|
|
137
136
|
onClick?: (e: MouseEvent) => void;
|
|
138
137
|
href?: string;
|
|
139
138
|
}
|
|
140
|
-
declare const Link$1:
|
|
139
|
+
declare const Link$1: FC<LinkProps & AProps>;
|
|
141
140
|
|
|
142
|
-
declare const DocumentWrapper: _storybook_theming.StyledComponent<
|
|
141
|
+
declare const DocumentWrapper: _storybook_theming.StyledComponent<{
|
|
142
|
+
theme?: _storybook_theming.Theme;
|
|
143
|
+
as?: react.ElementType<any>;
|
|
144
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
143
145
|
|
|
144
146
|
interface SyntaxHighlighterRendererProps {
|
|
145
147
|
rows: any[];
|
|
@@ -159,21 +161,24 @@ interface SyntaxHighlighterCustomProps {
|
|
|
159
161
|
declare type SyntaxHighlighterFormatTypes = boolean | 'dedent' | BuiltInParserName;
|
|
160
162
|
declare type lineTagPropsFunction = (lineNumber: number) => React.HTMLProps<HTMLElement>;
|
|
161
163
|
interface SyntaxHighlighterBaseProps {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
children?: React.ReactNode;
|
|
165
|
+
codeTagProps?: React.HTMLProps<HTMLElement>;
|
|
164
166
|
customStyle?: any;
|
|
167
|
+
language?: string;
|
|
168
|
+
lineNumberStyle?: any;
|
|
165
169
|
lineProps?: lineTagPropsFunction | React.HTMLProps<HTMLElement>;
|
|
166
|
-
codeTagProps?: React.HTMLProps<HTMLElement>;
|
|
167
|
-
useInlineStyles?: boolean;
|
|
168
170
|
showLineNumbers?: boolean;
|
|
169
171
|
startingLineNumber?: number;
|
|
170
|
-
|
|
172
|
+
style?: any;
|
|
173
|
+
useInlineStyles?: boolean;
|
|
171
174
|
}
|
|
172
175
|
declare type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps;
|
|
173
176
|
|
|
174
|
-
declare const LazySyntaxHighlighter: react__default.LazyExoticComponent<react__default.
|
|
177
|
+
declare const LazySyntaxHighlighter: react__default.LazyExoticComponent<react__default.FC<SyntaxHighlighterProps>>;
|
|
175
178
|
declare const SyntaxHighlighter: (props: ComponentProps<typeof LazySyntaxHighlighter>) => JSX.Element;
|
|
176
179
|
|
|
180
|
+
declare function createCopyToClipboardFunction(): (text: string) => any;
|
|
181
|
+
|
|
177
182
|
interface ActionItem {
|
|
178
183
|
title: string | JSX.Element;
|
|
179
184
|
className?: string;
|
|
@@ -183,23 +188,28 @@ interface ActionItem {
|
|
|
183
188
|
interface ActionBarProps {
|
|
184
189
|
actionItems: ActionItem[];
|
|
185
190
|
}
|
|
186
|
-
declare const ActionBar:
|
|
191
|
+
declare const ActionBar: FC<ActionBarProps>;
|
|
187
192
|
|
|
188
193
|
interface SpacedProps {
|
|
194
|
+
children?: react__default.ReactNode;
|
|
189
195
|
col?: number;
|
|
190
196
|
row?: number;
|
|
191
197
|
outer?: number | boolean;
|
|
192
198
|
}
|
|
193
|
-
declare const Spaced:
|
|
199
|
+
declare const Spaced: FC<SpacedProps>;
|
|
194
200
|
|
|
195
|
-
|
|
201
|
+
interface PlaceholderProps {
|
|
202
|
+
children?: react__default.ReactNode;
|
|
203
|
+
}
|
|
204
|
+
declare const Placeholder: FunctionComponent<PlaceholderProps>;
|
|
196
205
|
|
|
197
206
|
interface ScrollAreaProps {
|
|
207
|
+
children?: react__default.ReactNode;
|
|
198
208
|
horizontal?: boolean;
|
|
199
209
|
vertical?: boolean;
|
|
200
210
|
className?: string;
|
|
201
211
|
}
|
|
202
|
-
declare const ScrollArea:
|
|
212
|
+
declare const ScrollArea: FC<ScrollAreaProps>;
|
|
203
213
|
|
|
204
214
|
declare type ZoomProps = {
|
|
205
215
|
scale: number;
|
|
@@ -210,7 +220,7 @@ declare function ZoomElement({ scale, children }: ZoomProps): JSX.Element;
|
|
|
210
220
|
declare type IZoomIFrameProps = {
|
|
211
221
|
scale: number;
|
|
212
222
|
children: ReactElement<HTMLIFrameElement>;
|
|
213
|
-
iFrameRef:
|
|
223
|
+
iFrameRef: RefObject<HTMLIFrameElement>;
|
|
214
224
|
active?: boolean;
|
|
215
225
|
};
|
|
216
226
|
declare class ZoomIFrame extends Component<IZoomIFrameProps> {
|
|
@@ -227,7 +237,10 @@ declare const Zoom: {
|
|
|
227
237
|
IFrame: typeof ZoomIFrame;
|
|
228
238
|
};
|
|
229
239
|
|
|
230
|
-
declare const ButtonWrapper: _storybook_theming.StyledComponent<
|
|
240
|
+
declare const ButtonWrapper: _storybook_theming.StyledComponent<{
|
|
241
|
+
theme?: _storybook_theming.Theme;
|
|
242
|
+
as?: react__default.ElementType<any>;
|
|
243
|
+
} & {
|
|
231
244
|
isLink?: boolean;
|
|
232
245
|
primary?: boolean;
|
|
233
246
|
secondary?: boolean;
|
|
@@ -240,40 +253,55 @@ declare const ButtonWrapper: _storybook_theming.StyledComponent<react__default.D
|
|
|
240
253
|
containsIcon?: boolean;
|
|
241
254
|
children?: ReactNode;
|
|
242
255
|
href?: string;
|
|
243
|
-
},
|
|
244
|
-
declare const Button:
|
|
256
|
+
}, react__default.DetailedHTMLProps<react__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
257
|
+
declare const Button: FC<ComponentProps<typeof ButtonWrapper>>;
|
|
245
258
|
|
|
246
259
|
interface FieldProps {
|
|
260
|
+
children?: ReactNode;
|
|
247
261
|
label?: ReactNode;
|
|
248
262
|
}
|
|
249
263
|
|
|
250
|
-
declare const Form: _storybook_theming.StyledComponent<
|
|
251
|
-
|
|
252
|
-
|
|
264
|
+
declare const Form: _storybook_theming.StyledComponent<{
|
|
265
|
+
theme?: _storybook_theming.Theme;
|
|
266
|
+
as?: react.ElementType<any>;
|
|
267
|
+
}, react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, {}> & {
|
|
268
|
+
Field: react.FC<FieldProps>;
|
|
269
|
+
Input: _storybook_theming.StyledComponent<Pick<Omit<react.HTMLProps<HTMLInputElement>, "height" | "size" | "valid" | "align"> & {
|
|
253
270
|
size?: "flex" | "auto" | "100%";
|
|
254
|
-
align?: "
|
|
255
|
-
valid?: "
|
|
271
|
+
align?: "start" | "center" | "end";
|
|
272
|
+
valid?: "valid" | "error" | "warn";
|
|
256
273
|
height?: number;
|
|
257
|
-
},
|
|
274
|
+
}, "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "type" | "form" | "list" | "cite" | "cellPadding" | "cellSpacing" | "summary" | "width" | "alt" | "crossOrigin" | "height" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "start" | "data" | "label" | "slot" | "span" | "style" | "title" | "pattern" | "className" | "color" | "content" | "translate" | "default" | "hidden" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "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" | "step" | "disabled" | "wrap" | "key" | "as" | "size" | "open" | "multiple" | "max" | "method" | "min" | "name" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "valid" | "align" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "async" | "autoComplete" | "autoPlay" | "capture" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "wmode"> & react.RefAttributes<any> & {
|
|
275
|
+
theme?: _storybook_theming.Theme;
|
|
276
|
+
} & {
|
|
277
|
+
size?: "flex" | "auto" | "100%";
|
|
278
|
+
align?: "start" | "center" | "end";
|
|
279
|
+
valid?: "valid" | "error" | "warn";
|
|
280
|
+
height?: number;
|
|
281
|
+
}, {}, {}> & {
|
|
258
282
|
displayName: string;
|
|
259
283
|
};
|
|
260
|
-
Select: _storybook_theming.StyledComponent<
|
|
284
|
+
Select: _storybook_theming.StyledComponent<Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "height" | "size" | "valid" | "align"> & {
|
|
261
285
|
size?: "flex" | "auto" | "100%";
|
|
262
|
-
align?: "
|
|
263
|
-
valid?: "
|
|
286
|
+
align?: "start" | "center" | "end";
|
|
287
|
+
valid?: "valid" | "error" | "warn";
|
|
264
288
|
height?: number;
|
|
265
|
-
}
|
|
289
|
+
} & react.RefAttributes<any> & {
|
|
290
|
+
theme?: _storybook_theming.Theme;
|
|
291
|
+
}, {}, {}> & {
|
|
266
292
|
displayName: string;
|
|
267
293
|
};
|
|
268
|
-
Textarea: _storybook_theming.StyledComponent<
|
|
294
|
+
Textarea: _storybook_theming.StyledComponent<Omit<react_textarea_autosize.TextareaAutosizeProps, "height" | "size" | "valid" | "align"> & {
|
|
269
295
|
size?: "flex" | "auto" | "100%";
|
|
270
|
-
align?: "
|
|
271
|
-
valid?: "
|
|
296
|
+
align?: "start" | "center" | "end";
|
|
297
|
+
valid?: "valid" | "error" | "warn";
|
|
272
298
|
height?: number;
|
|
273
|
-
}
|
|
299
|
+
} & react.RefAttributes<any> & {
|
|
300
|
+
theme?: _storybook_theming.Theme;
|
|
301
|
+
}, {}, {}> & {
|
|
274
302
|
displayName: string;
|
|
275
303
|
};
|
|
276
|
-
Button: react.
|
|
304
|
+
Button: react.FC<any>;
|
|
277
305
|
};
|
|
278
306
|
|
|
279
307
|
declare const top: "top";
|
|
@@ -442,11 +470,11 @@ interface WithTooltipPureProps {
|
|
|
442
470
|
onDoubleClick?: () => void;
|
|
443
471
|
}
|
|
444
472
|
|
|
445
|
-
declare const LazyWithTooltip: react__default.LazyExoticComponent<react__default.
|
|
473
|
+
declare const LazyWithTooltip: react__default.LazyExoticComponent<react__default.FC<WithTooltipPureProps & {
|
|
446
474
|
startOpen?: boolean;
|
|
447
475
|
}>>;
|
|
448
476
|
declare const WithTooltip: (props: ComponentProps<typeof LazyWithTooltip>) => JSX.Element;
|
|
449
|
-
declare const LazyWithTooltipPure: react__default.LazyExoticComponent<react__default.
|
|
477
|
+
declare const LazyWithTooltipPure: react__default.LazyExoticComponent<react__default.FC<WithTooltipPureProps>>;
|
|
450
478
|
declare const WithTooltipPure: (props: ComponentProps<typeof LazyWithTooltipPure>) => JSX.Element;
|
|
451
479
|
|
|
452
480
|
interface TooltipMessageProps {
|
|
@@ -458,18 +486,21 @@ interface TooltipMessageProps {
|
|
|
458
486
|
onClick?: () => void;
|
|
459
487
|
}[];
|
|
460
488
|
}
|
|
461
|
-
declare const TooltipMessage:
|
|
489
|
+
declare const TooltipMessage: FC<TooltipMessageProps>;
|
|
462
490
|
|
|
463
491
|
interface TooltipNoteProps {
|
|
464
492
|
note: string;
|
|
465
493
|
}
|
|
466
|
-
declare const TooltipNote:
|
|
494
|
+
declare const TooltipNote: FC<TooltipNoteProps>;
|
|
467
495
|
|
|
468
496
|
interface ItemProps {
|
|
469
497
|
disabled?: boolean;
|
|
470
498
|
}
|
|
471
|
-
declare const Item: _storybook_theming.StyledComponent<
|
|
472
|
-
|
|
499
|
+
declare const Item: _storybook_theming.StyledComponent<{
|
|
500
|
+
theme?: _storybook_theming.Theme;
|
|
501
|
+
as?: react__default.ElementType<any>;
|
|
502
|
+
} & ItemProps, react__default.DetailedHTMLProps<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
503
|
+
declare type LinkWrapperType = FC<any>;
|
|
473
504
|
interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'href' | 'title'> {
|
|
474
505
|
loading?: boolean;
|
|
475
506
|
left?: ReactNode;
|
|
@@ -491,16 +522,20 @@ interface TooltipLinkListProps {
|
|
|
491
522
|
links: Link[];
|
|
492
523
|
LinkWrapper?: LinkWrapperType;
|
|
493
524
|
}
|
|
494
|
-
declare const TooltipLinkList:
|
|
525
|
+
declare const TooltipLinkList: FC<TooltipLinkListProps>;
|
|
495
526
|
|
|
496
|
-
declare const TabBar: _storybook_theming.StyledComponent<
|
|
527
|
+
declare const TabBar: _storybook_theming.StyledComponent<{
|
|
528
|
+
theme?: _storybook_theming.Theme;
|
|
529
|
+
as?: react__default.ElementType<any>;
|
|
530
|
+
}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
497
531
|
interface TabWrapperProps {
|
|
498
532
|
active: boolean;
|
|
499
533
|
render?: () => JSX.Element;
|
|
500
534
|
children?: ReactNode;
|
|
501
535
|
}
|
|
502
|
-
declare const TabWrapper:
|
|
536
|
+
declare const TabWrapper: FC<TabWrapperProps>;
|
|
503
537
|
interface TabsProps {
|
|
538
|
+
children?: FuncChildren[] | ReactNode;
|
|
504
539
|
id?: string;
|
|
505
540
|
tools?: ReactNode;
|
|
506
541
|
selected?: string;
|
|
@@ -511,10 +546,12 @@ interface TabsProps {
|
|
|
511
546
|
absolute?: boolean;
|
|
512
547
|
bordered?: boolean;
|
|
513
548
|
}
|
|
514
|
-
declare const Tabs:
|
|
515
|
-
declare type FuncChildren = (
|
|
549
|
+
declare const Tabs: FC<TabsProps>;
|
|
550
|
+
declare type FuncChildren = ({ active }: {
|
|
551
|
+
active: boolean;
|
|
552
|
+
}) => JSX.Element;
|
|
516
553
|
interface TabsStateProps {
|
|
517
|
-
children:
|
|
554
|
+
children: FuncChildren[] | ReactNode;
|
|
518
555
|
initial: string;
|
|
519
556
|
absolute: boolean;
|
|
520
557
|
bordered: boolean;
|
|
@@ -532,30 +569,50 @@ declare class TabsState extends Component<TabsStateProps, TabsStateState> {
|
|
|
532
569
|
render(): JSX.Element;
|
|
533
570
|
}
|
|
534
571
|
|
|
572
|
+
interface BarButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
573
|
+
href?: void;
|
|
574
|
+
}
|
|
575
|
+
interface BarLinkProps extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
|
|
576
|
+
href: string;
|
|
577
|
+
}
|
|
535
578
|
interface TabButtonProps {
|
|
536
579
|
active?: boolean;
|
|
537
580
|
textColor?: string;
|
|
538
581
|
}
|
|
539
|
-
declare const TabButton: _storybook_theming.StyledComponent<
|
|
582
|
+
declare const TabButton: _storybook_theming.StyledComponent<((BarButtonProps | BarLinkProps) & {
|
|
583
|
+
theme?: _storybook_theming.Theme;
|
|
584
|
+
}) & TabButtonProps, {}, {}>;
|
|
540
585
|
interface IconButtonProps {
|
|
541
586
|
active?: boolean;
|
|
542
587
|
disabled?: boolean;
|
|
543
588
|
}
|
|
544
|
-
declare const IconButton: _storybook_theming.StyledComponent<
|
|
589
|
+
declare const IconButton: _storybook_theming.StyledComponent<((BarButtonProps | BarLinkProps) & {
|
|
590
|
+
theme?: _storybook_theming.Theme;
|
|
591
|
+
}) & IconButtonProps, {}, {}>;
|
|
592
|
+
declare const IconButtonSkeleton: () => JSX.Element;
|
|
545
593
|
|
|
546
|
-
declare const Separator: _storybook_theming.StyledComponent<
|
|
594
|
+
declare const Separator: _storybook_theming.StyledComponent<{
|
|
595
|
+
theme?: _storybook_theming.Theme;
|
|
596
|
+
as?: react__default.ElementType<any>;
|
|
597
|
+
} & SeparatorProps, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
547
598
|
declare const interleaveSeparators: (list: any[]) => any;
|
|
548
599
|
interface SeparatorProps {
|
|
549
600
|
force?: boolean;
|
|
550
601
|
}
|
|
551
602
|
|
|
552
|
-
declare const Bar: _storybook_theming.StyledComponent<
|
|
603
|
+
declare const Bar: _storybook_theming.StyledComponent<ScrollAreaProps & {
|
|
604
|
+
children?: react__default.ReactNode;
|
|
605
|
+
} & {
|
|
606
|
+
theme?: _storybook_theming.Theme;
|
|
607
|
+
} & {
|
|
608
|
+
border?: boolean;
|
|
609
|
+
}, {}, {}>;
|
|
553
610
|
interface FlexBarProps {
|
|
554
611
|
border?: boolean;
|
|
555
612
|
children?: any;
|
|
556
613
|
backgroundColor?: string;
|
|
557
614
|
}
|
|
558
|
-
declare const FlexBar:
|
|
615
|
+
declare const FlexBar: FC<FlexBarProps>;
|
|
559
616
|
|
|
560
617
|
interface AddonPanelProps {
|
|
561
618
|
active: boolean;
|
|
@@ -741,7 +798,10 @@ declare type IconKey = keyof typeof icons;
|
|
|
741
798
|
interface SvgProps {
|
|
742
799
|
inline?: boolean;
|
|
743
800
|
}
|
|
744
|
-
declare const Svg: _storybook_theming.StyledComponent<
|
|
801
|
+
declare const Svg: _storybook_theming.StyledComponent<{
|
|
802
|
+
theme?: _storybook_theming.Theme;
|
|
803
|
+
as?: react.ElementType<any>;
|
|
804
|
+
} & SvgProps, react.SVGProps<SVGSVGElement>, {}>;
|
|
745
805
|
|
|
746
806
|
interface IconsProps extends ComponentProps<typeof Svg> {
|
|
747
807
|
icon?: IconKey;
|
|
@@ -753,344 +813,16 @@ interface SymbolsProps extends ComponentProps<typeof Svg> {
|
|
|
753
813
|
}
|
|
754
814
|
declare const Symbols: react__default.NamedExoticComponent<SymbolsProps>;
|
|
755
815
|
|
|
756
|
-
declare const StorybookLogo:
|
|
816
|
+
declare const StorybookLogo: FC<{
|
|
757
817
|
alt: string;
|
|
758
818
|
}>;
|
|
759
819
|
|
|
760
|
-
declare const StorybookIcon:
|
|
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;
|
|
820
|
+
declare const StorybookIcon: FC;
|
|
819
821
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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>;
|
|
822
|
+
declare const ProgressWrapper: _storybook_theming.StyledComponent<{
|
|
823
|
+
theme?: _storybook_theming.Theme;
|
|
824
|
+
as?: react__default.ElementType<any>;
|
|
825
|
+
}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1094
826
|
interface Progress {
|
|
1095
827
|
value: number;
|
|
1096
828
|
message: string;
|
|
@@ -1104,8 +836,8 @@ interface LoaderProps {
|
|
|
1104
836
|
error?: Error;
|
|
1105
837
|
size?: number;
|
|
1106
838
|
}
|
|
1107
|
-
declare const PureLoader:
|
|
1108
|
-
declare const Loader:
|
|
839
|
+
declare const PureLoader: FC<LoaderProps & ComponentProps<typeof ProgressWrapper>>;
|
|
840
|
+
declare const Loader: FC<ComponentProps<typeof PureLoader>>;
|
|
1109
841
|
|
|
1110
842
|
declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
|
|
1111
843
|
|
|
@@ -1115,6 +847,25 @@ declare const nameSpaceClassNames: ({ ...props }: {
|
|
|
1115
847
|
[x: string]: any;
|
|
1116
848
|
};
|
|
1117
849
|
|
|
850
|
+
/**
|
|
851
|
+
* This is a "local" reset to style subtrees with Storybook styles
|
|
852
|
+
*
|
|
853
|
+
* We can't style individual elements (e.g. h1, h2, etc.) in here
|
|
854
|
+
* because the CSS specificity is too high, so those styles can too
|
|
855
|
+
* easily override child elements that are not expecting it.
|
|
856
|
+
*/
|
|
857
|
+
declare const ResetWrapper: _storybook_theming.StyledComponent<{
|
|
858
|
+
theme?: _storybook_theming.Theme;
|
|
859
|
+
as?: react.ElementType<any>;
|
|
860
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
861
|
+
|
|
862
|
+
declare const codeCommon: ({ theme }: {
|
|
863
|
+
theme: Theme;
|
|
864
|
+
}) => CSSObject;
|
|
865
|
+
declare const withReset: ({ theme }: {
|
|
866
|
+
theme: Theme;
|
|
867
|
+
}) => CSSObject;
|
|
868
|
+
|
|
1118
869
|
declare const components: {
|
|
1119
870
|
h1: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
1120
871
|
h2: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
@@ -1141,4 +892,4 @@ declare const components: {
|
|
|
1141
892
|
};
|
|
1142
893
|
declare const resetComponents: Record<string, ElementType>;
|
|
1143
894
|
|
|
1144
|
-
export { A, ActionBar,
|
|
895
|
+
export { A, ActionBar, ActionItem, AddonPanel, Badge, Bar, Blockquote, Button, Code, DL, Div, DocumentWrapper, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, IconsProps, Img, LI, Link$1 as Link, 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, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset };
|