@storybook/components 7.0.0-alpha.2 → 7.0.0-alpha.22
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-BPOXRXHR.mjs +22 -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 +448 -668
- package/dist/index.js +293 -344
- 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"> & {
|
|
270
|
+
size?: "flex" | "auto" | "100%";
|
|
271
|
+
align?: "center" | "end" | "start";
|
|
272
|
+
valid?: "valid" | "error" | "warn";
|
|
273
|
+
height?: number;
|
|
274
|
+
}, "className" | "color" | "content" | "height" | "translate" | "width" | "default" | "hidden" | "href" | "children" | "download" | "hrefLang" | "media" | "rel" | "target" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "list" | "step" | "start" | "disabled" | "wrap" | "key" | "as" | "size" | "open" | "multiple" | "cellPadding" | "cellSpacing" | "alt" | "crossOrigin" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "max" | "method" | "min" | "name" | "controls" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "valid" | "align" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "async" | "autoComplete" | "autoPlay" | "capture" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "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
|
+
} & {
|
|
253
277
|
size?: "flex" | "auto" | "100%";
|
|
254
278
|
align?: "center" | "end" | "start";
|
|
255
|
-
valid?: "
|
|
279
|
+
valid?: "valid" | "error" | "warn";
|
|
256
280
|
height?: number;
|
|
257
|
-
},
|
|
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
286
|
align?: "center" | "end" | "start";
|
|
263
|
-
valid?: "
|
|
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
296
|
align?: "center" | "end" | "start";
|
|
271
|
-
valid?: "
|
|
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;
|
|
@@ -564,533 +621,237 @@ interface AddonPanelProps {
|
|
|
564
621
|
declare const AddonPanel: ({ active, children }: AddonPanelProps) => JSX.Element;
|
|
565
622
|
|
|
566
623
|
declare const icons: {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
cpu:
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
switchalt:
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
624
|
+
readonly user: JSX.Element;
|
|
625
|
+
readonly useralt: JSX.Element;
|
|
626
|
+
readonly useradd: JSX.Element;
|
|
627
|
+
readonly users: JSX.Element;
|
|
628
|
+
readonly profile: JSX.Element;
|
|
629
|
+
readonly facehappy: JSX.Element;
|
|
630
|
+
readonly faceneutral: JSX.Element;
|
|
631
|
+
readonly facesad: JSX.Element;
|
|
632
|
+
readonly accessibility: JSX.Element;
|
|
633
|
+
readonly accessibilityalt: JSX.Element;
|
|
634
|
+
readonly arrowup: JSX.Element;
|
|
635
|
+
readonly arrowdown: JSX.Element;
|
|
636
|
+
readonly arrowleft: JSX.Element;
|
|
637
|
+
readonly arrowright: JSX.Element;
|
|
638
|
+
readonly arrowupalt: JSX.Element;
|
|
639
|
+
readonly arrowdownalt: JSX.Element;
|
|
640
|
+
readonly arrowleftalt: JSX.Element;
|
|
641
|
+
readonly arrowrightalt: JSX.Element;
|
|
642
|
+
readonly expandalt: JSX.Element;
|
|
643
|
+
readonly collapse: JSX.Element;
|
|
644
|
+
readonly expand: JSX.Element;
|
|
645
|
+
readonly unfold: JSX.Element;
|
|
646
|
+
readonly transfer: JSX.Element;
|
|
647
|
+
readonly redirect: JSX.Element;
|
|
648
|
+
readonly undo: JSX.Element;
|
|
649
|
+
readonly reply: JSX.Element;
|
|
650
|
+
readonly sync: JSX.Element;
|
|
651
|
+
readonly upload: JSX.Element;
|
|
652
|
+
readonly download: JSX.Element;
|
|
653
|
+
readonly back: JSX.Element;
|
|
654
|
+
readonly proceed: JSX.Element;
|
|
655
|
+
readonly refresh: JSX.Element;
|
|
656
|
+
readonly globe: JSX.Element;
|
|
657
|
+
readonly compass: JSX.Element;
|
|
658
|
+
readonly location: JSX.Element;
|
|
659
|
+
readonly pin: JSX.Element;
|
|
660
|
+
readonly time: JSX.Element;
|
|
661
|
+
readonly dashboard: JSX.Element;
|
|
662
|
+
readonly timer: JSX.Element;
|
|
663
|
+
readonly home: JSX.Element;
|
|
664
|
+
readonly admin: JSX.Element;
|
|
665
|
+
readonly info: JSX.Element;
|
|
666
|
+
readonly question: JSX.Element;
|
|
667
|
+
readonly support: JSX.Element;
|
|
668
|
+
readonly alert: JSX.Element;
|
|
669
|
+
readonly email: JSX.Element;
|
|
670
|
+
readonly phone: JSX.Element;
|
|
671
|
+
readonly link: JSX.Element;
|
|
672
|
+
readonly unlink: JSX.Element;
|
|
673
|
+
readonly bell: JSX.Element;
|
|
674
|
+
readonly rss: JSX.Element;
|
|
675
|
+
readonly sharealt: JSX.Element;
|
|
676
|
+
readonly share: JSX.Element;
|
|
677
|
+
readonly circlehollow: JSX.Element;
|
|
678
|
+
readonly circle: JSX.Element;
|
|
679
|
+
readonly bookmarkhollow: JSX.Element;
|
|
680
|
+
readonly bookmark: JSX.Element;
|
|
681
|
+
readonly hearthollow: JSX.Element;
|
|
682
|
+
readonly heart: JSX.Element;
|
|
683
|
+
readonly starhollow: JSX.Element;
|
|
684
|
+
readonly star: JSX.Element;
|
|
685
|
+
readonly certificate: JSX.Element;
|
|
686
|
+
readonly verified: JSX.Element;
|
|
687
|
+
readonly thumbsup: JSX.Element;
|
|
688
|
+
readonly shield: JSX.Element;
|
|
689
|
+
readonly basket: JSX.Element;
|
|
690
|
+
readonly beaker: JSX.Element;
|
|
691
|
+
readonly hourglass: JSX.Element;
|
|
692
|
+
readonly flag: JSX.Element;
|
|
693
|
+
readonly cloudhollow: JSX.Element;
|
|
694
|
+
readonly cloud: JSX.Element;
|
|
695
|
+
readonly edit: JSX.Element;
|
|
696
|
+
readonly cog: JSX.Element;
|
|
697
|
+
readonly nut: JSX.Element;
|
|
698
|
+
readonly wrench: JSX.Element;
|
|
699
|
+
readonly ellipsis: JSX.Element;
|
|
700
|
+
readonly check: JSX.Element;
|
|
701
|
+
readonly form: JSX.Element;
|
|
702
|
+
readonly batchdeny: JSX.Element;
|
|
703
|
+
readonly batchaccept: JSX.Element;
|
|
704
|
+
readonly controls: JSX.Element;
|
|
705
|
+
readonly plus: JSX.Element;
|
|
706
|
+
readonly closeAlt: JSX.Element;
|
|
707
|
+
readonly cross: JSX.Element;
|
|
708
|
+
readonly trash: JSX.Element;
|
|
709
|
+
readonly pinalt: JSX.Element;
|
|
710
|
+
readonly unpin: JSX.Element;
|
|
711
|
+
readonly add: JSX.Element;
|
|
712
|
+
readonly subtract: JSX.Element;
|
|
713
|
+
readonly close: JSX.Element;
|
|
714
|
+
readonly delete: JSX.Element;
|
|
715
|
+
readonly passed: JSX.Element;
|
|
716
|
+
readonly changed: JSX.Element;
|
|
717
|
+
readonly failed: JSX.Element;
|
|
718
|
+
readonly clear: JSX.Element;
|
|
719
|
+
readonly comment: JSX.Element;
|
|
720
|
+
readonly commentadd: JSX.Element;
|
|
721
|
+
readonly requestchange: JSX.Element;
|
|
722
|
+
readonly comments: JSX.Element;
|
|
723
|
+
readonly lock: JSX.Element;
|
|
724
|
+
readonly unlock: JSX.Element;
|
|
725
|
+
readonly key: JSX.Element;
|
|
726
|
+
readonly outbox: JSX.Element;
|
|
727
|
+
readonly credit: JSX.Element;
|
|
728
|
+
readonly button: JSX.Element;
|
|
729
|
+
readonly type: JSX.Element;
|
|
730
|
+
readonly pointerdefault: JSX.Element;
|
|
731
|
+
readonly pointerhand: JSX.Element;
|
|
732
|
+
readonly browser: JSX.Element;
|
|
733
|
+
readonly tablet: JSX.Element;
|
|
734
|
+
readonly mobile: JSX.Element;
|
|
735
|
+
readonly watch: JSX.Element;
|
|
736
|
+
readonly sidebar: JSX.Element;
|
|
737
|
+
readonly sidebaralt: JSX.Element;
|
|
738
|
+
readonly sidebaralttoggle: JSX.Element;
|
|
739
|
+
readonly sidebartoggle: JSX.Element;
|
|
740
|
+
readonly bottombar: JSX.Element;
|
|
741
|
+
readonly bottombartoggle: JSX.Element;
|
|
742
|
+
readonly cpu: JSX.Element;
|
|
743
|
+
readonly database: JSX.Element;
|
|
744
|
+
readonly memory: JSX.Element;
|
|
745
|
+
readonly structure: JSX.Element;
|
|
746
|
+
readonly box: JSX.Element;
|
|
747
|
+
readonly power: JSX.Element;
|
|
748
|
+
readonly photo: JSX.Element;
|
|
749
|
+
readonly component: JSX.Element;
|
|
750
|
+
readonly grid: JSX.Element;
|
|
751
|
+
readonly outline: JSX.Element;
|
|
752
|
+
readonly photodrag: JSX.Element;
|
|
753
|
+
readonly search: JSX.Element;
|
|
754
|
+
readonly zoom: JSX.Element;
|
|
755
|
+
readonly zoomout: JSX.Element;
|
|
756
|
+
readonly zoomreset: JSX.Element;
|
|
757
|
+
readonly eye: JSX.Element;
|
|
758
|
+
readonly eyeclose: JSX.Element;
|
|
759
|
+
readonly lightning: JSX.Element;
|
|
760
|
+
readonly lightningoff: JSX.Element;
|
|
761
|
+
readonly contrast: JSX.Element;
|
|
762
|
+
readonly switchalt: JSX.Element;
|
|
763
|
+
readonly mirror: JSX.Element;
|
|
764
|
+
readonly grow: JSX.Element;
|
|
765
|
+
readonly paintbrush: JSX.Element;
|
|
766
|
+
readonly ruler: JSX.Element;
|
|
767
|
+
readonly stop: JSX.Element;
|
|
768
|
+
readonly camera: JSX.Element;
|
|
769
|
+
readonly video: JSX.Element;
|
|
770
|
+
readonly speaker: JSX.Element;
|
|
771
|
+
readonly play: JSX.Element;
|
|
772
|
+
readonly playback: JSX.Element;
|
|
773
|
+
readonly playnext: JSX.Element;
|
|
774
|
+
readonly rewind: JSX.Element;
|
|
775
|
+
readonly fastforward: JSX.Element;
|
|
776
|
+
readonly stopalt: JSX.Element;
|
|
777
|
+
readonly book: JSX.Element;
|
|
778
|
+
readonly document: JSX.Element;
|
|
779
|
+
readonly copy: JSX.Element;
|
|
780
|
+
readonly category: JSX.Element;
|
|
781
|
+
readonly folder: JSX.Element;
|
|
782
|
+
readonly print: JSX.Element;
|
|
783
|
+
readonly graphline: JSX.Element;
|
|
784
|
+
readonly calendar: JSX.Element;
|
|
785
|
+
readonly graphbar: JSX.Element;
|
|
786
|
+
readonly menu: JSX.Element;
|
|
787
|
+
readonly menualt: JSX.Element;
|
|
788
|
+
readonly filter: JSX.Element;
|
|
789
|
+
readonly docchart: JSX.Element;
|
|
790
|
+
readonly doclist: JSX.Element;
|
|
791
|
+
readonly markup: JSX.Element;
|
|
792
|
+
readonly bold: JSX.Element;
|
|
793
|
+
readonly italic: JSX.Element;
|
|
794
|
+
readonly paperclip: JSX.Element;
|
|
795
|
+
readonly listordered: JSX.Element;
|
|
796
|
+
readonly listunordered: JSX.Element;
|
|
797
|
+
readonly paragraph: JSX.Element;
|
|
798
|
+
readonly markdown: JSX.Element;
|
|
799
|
+
readonly repository: JSX.Element;
|
|
800
|
+
readonly commit: JSX.Element;
|
|
801
|
+
readonly branch: JSX.Element;
|
|
802
|
+
readonly pullrequest: JSX.Element;
|
|
803
|
+
readonly merge: JSX.Element;
|
|
804
|
+
readonly apple: JSX.Element;
|
|
805
|
+
readonly linux: JSX.Element;
|
|
806
|
+
readonly ubuntu: JSX.Element;
|
|
807
|
+
readonly windows: JSX.Element;
|
|
808
|
+
readonly storybook: JSX.Element;
|
|
809
|
+
readonly azuredevops: JSX.Element;
|
|
810
|
+
readonly bitbucket: JSX.Element;
|
|
811
|
+
readonly chrome: JSX.Element;
|
|
812
|
+
readonly chromatic: JSX.Element;
|
|
813
|
+
readonly componentdriven: JSX.Element;
|
|
814
|
+
readonly discord: JSX.Element;
|
|
815
|
+
readonly facebook: JSX.Element;
|
|
816
|
+
readonly figma: JSX.Element;
|
|
817
|
+
readonly gdrive: JSX.Element;
|
|
818
|
+
readonly github: JSX.Element;
|
|
819
|
+
readonly gitlab: JSX.Element;
|
|
820
|
+
readonly google: JSX.Element;
|
|
821
|
+
readonly graphql: JSX.Element;
|
|
822
|
+
readonly medium: JSX.Element;
|
|
823
|
+
readonly redux: JSX.Element;
|
|
824
|
+
readonly twitter: JSX.Element;
|
|
825
|
+
readonly youtube: JSX.Element;
|
|
826
|
+
readonly vscode: JSX.Element;
|
|
737
827
|
};
|
|
738
|
-
|
|
739
828
|
declare type IconKey = keyof typeof icons;
|
|
740
829
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
830
|
+
declare const Svg: _storybook_theming.StyledComponent<{
|
|
831
|
+
theme?: _storybook_theming.Theme;
|
|
832
|
+
as?: react__default.ElementType<any>;
|
|
833
|
+
}, react__default.SVGProps<SVGSVGElement>, {}>;
|
|
746
834
|
interface IconsProps extends ComponentProps<typeof Svg> {
|
|
747
|
-
icon
|
|
748
|
-
|
|
835
|
+
icon: IconType;
|
|
836
|
+
useSymbol?: boolean;
|
|
749
837
|
}
|
|
750
|
-
declare const Icons:
|
|
838
|
+
declare const Icons: FunctionComponent<IconsProps>;
|
|
839
|
+
declare type IconType = keyof typeof icons;
|
|
751
840
|
interface SymbolsProps extends ComponentProps<typeof Svg> {
|
|
752
841
|
icons?: IconKey[];
|
|
753
842
|
}
|
|
754
843
|
declare const Symbols: react__default.NamedExoticComponent<SymbolsProps>;
|
|
755
844
|
|
|
756
|
-
declare const StorybookLogo:
|
|
845
|
+
declare const StorybookLogo: FC<{
|
|
757
846
|
alt: string;
|
|
758
847
|
}>;
|
|
759
848
|
|
|
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;
|
|
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>;
|
|
849
|
+
declare const StorybookIcon: FC;
|
|
965
850
|
|
|
966
|
-
declare
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
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>;
|
|
851
|
+
declare const ProgressWrapper: _storybook_theming.StyledComponent<{
|
|
852
|
+
theme?: _storybook_theming.Theme;
|
|
853
|
+
as?: react__default.ElementType<any>;
|
|
854
|
+
}, react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1094
855
|
interface Progress {
|
|
1095
856
|
value: number;
|
|
1096
857
|
message: string;
|
|
@@ -1104,8 +865,8 @@ interface LoaderProps {
|
|
|
1104
865
|
error?: Error;
|
|
1105
866
|
size?: number;
|
|
1106
867
|
}
|
|
1107
|
-
declare const PureLoader:
|
|
1108
|
-
declare const Loader:
|
|
868
|
+
declare const PureLoader: FC<LoaderProps & ComponentProps<typeof ProgressWrapper>>;
|
|
869
|
+
declare const Loader: FC<ComponentProps<typeof PureLoader>>;
|
|
1109
870
|
|
|
1110
871
|
declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
|
|
1111
872
|
|
|
@@ -1115,6 +876,25 @@ declare const nameSpaceClassNames: ({ ...props }: {
|
|
|
1115
876
|
[x: string]: any;
|
|
1116
877
|
};
|
|
1117
878
|
|
|
879
|
+
/**
|
|
880
|
+
* This is a "local" reset to style subtrees with Storybook styles
|
|
881
|
+
*
|
|
882
|
+
* We can't style individual elements (e.g. h1, h2, etc.) in here
|
|
883
|
+
* because the CSS specificity is too high, so those styles can too
|
|
884
|
+
* easily override child elements that are not expecting it.
|
|
885
|
+
*/
|
|
886
|
+
declare const ResetWrapper: _storybook_theming.StyledComponent<{
|
|
887
|
+
theme?: _storybook_theming.Theme;
|
|
888
|
+
as?: react.ElementType<any>;
|
|
889
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
890
|
+
|
|
891
|
+
declare const codeCommon: ({ theme }: {
|
|
892
|
+
theme: Theme;
|
|
893
|
+
}) => CSSObject;
|
|
894
|
+
declare const withReset: ({ theme }: {
|
|
895
|
+
theme: Theme;
|
|
896
|
+
}) => CSSObject;
|
|
897
|
+
|
|
1118
898
|
declare const components: {
|
|
1119
899
|
h1: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
1120
900
|
h2: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
@@ -1141,4 +921,4 @@ declare const components: {
|
|
|
1141
921
|
};
|
|
1142
922
|
declare const resetComponents: Record<string, ElementType>;
|
|
1143
923
|
|
|
1144
|
-
export { A, ActionBar,
|
|
924
|
+
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 };
|