@storybook/components 6.5.9 → 7.0.0-alpha.10
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-5MYDB36S.mjs +1 -0
- package/dist/OverlayScrollbars-GXD6IR4B.mjs +6 -0
- package/dist/WithTooltip-3ZGNZXVO.mjs +9 -0
- package/dist/chunk-37LBAZBN.mjs +161 -0
- package/dist/chunk-7IK3EOFL.mjs +1 -0
- package/dist/chunk-DF422II4.mjs +6 -0
- package/dist/chunk-IONIU25V.mjs +5 -0
- package/dist/chunk-NS5PSNOW.mjs +7 -0
- package/dist/chunk-PJYBQ6PQ.mjs +1 -0
- package/dist/formatter-7QCQCGUB.mjs +184 -0
- package/dist/html.d.ts +5 -0
- package/dist/html.js +169 -0
- package/dist/html.mjs +5 -0
- package/dist/index.d.ts +831 -0
- package/dist/index.js +372 -0
- package/dist/index.mjs +1 -0
- package/dist/syntaxhighlighter-4PNAP6ZV.mjs +1 -0
- package/html.d.ts +1 -1
- package/html.js +1 -2
- package/package.json +31 -20
- package/dist/cjs/Color-a62ba7e9.js +0 -2461
- package/dist/cjs/GlobalScrollAreaStyles-ff4bd929.js +0 -463
- package/dist/cjs/OverlayScrollbars-c574dc71.js +0 -6622
- package/dist/cjs/WithTooltip-f49e8812.js +0 -3170
- package/dist/cjs/formatter-e9350ac6.js +0 -128
- package/dist/cjs/index-967d55af.js +0 -2047
- package/dist/cjs/index.js +0 -133
- package/dist/cjs/syntaxhighlighter-9522fde9.js +0 -215
- package/dist/esm/Color-3c22bb81.js +0 -2576
- package/dist/esm/GlobalScrollAreaStyles-8793ce4a.js +0 -461
- package/dist/esm/OverlayScrollbars-26c4a78d.js +0 -6710
- package/dist/esm/WithTooltip-508b8277.js +0 -3195
- package/dist/esm/formatter-9dc562d4.js +0 -128
- package/dist/esm/index-b45716e8.js +0 -1990
- package/dist/esm/index.js +0 -7
- package/dist/esm/syntaxhighlighter-82dea71a.js +0 -230
- package/dist/modern/Color-f9ce6f57.js +0 -2444
- package/dist/modern/GlobalScrollAreaStyles-8793ce4a.js +0 -450
- package/dist/modern/OverlayScrollbars-119b80c2.js +0 -6604
- package/dist/modern/WithTooltip-040f3a83.js +0 -3126
- package/dist/modern/formatter-12a1a8d1.js +0 -128
- package/dist/modern/index-9ef3b84b.js +0 -2047
- package/dist/modern/index.js +0 -7
- package/dist/modern/syntaxhighlighter-5c1fdb3d.js +0 -158
- package/dist/ts-tmp/index.d.ts +0 -928
- package/dist/ts3.4/_modules/@popperjs-core-index.d.ts +0 -1
- package/dist/ts3.4/_modules/@popperjs-core-lib-createPopper.d.ts +0 -9
- package/dist/ts3.4/_modules/@popperjs-core-lib-enums.d.ts +0 -34
- package/dist/ts3.4/_modules/@popperjs-core-lib-index.d.ts +0 -6
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-applyStyles.d.ts +0 -4
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-arrow.d.ts +0 -13
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-computeStyles.d.ts +0 -38
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-eventListeners.d.ts +0 -8
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-flip.d.ts +0 -16
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-hide.d.ts +0 -4
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-index.d.ts +0 -9
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-offset.d.ts +0 -24
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-popperOffsets.d.ts +0 -4
- package/dist/ts3.4/_modules/@popperjs-core-lib-modifiers-preventOverflow.d.ts +0 -30
- package/dist/ts3.4/_modules/@popperjs-core-lib-popper-lite.d.ts +0 -5
- package/dist/ts3.4/_modules/@popperjs-core-lib-popper.d.ts +0 -7
- package/dist/ts3.4/_modules/@popperjs-core-lib-types.d.ts +0 -167
- package/dist/ts3.4/_modules/@popperjs-core-lib-utils-detectOverflow.d.ts +0 -11
- package/dist/ts3.4/_modules/@types-prettier-index.d.ts +0 -641
- package/dist/ts3.4/_modules/react-textarea-autosize-dist-declarations-src-index.d.ts +0 -17
- package/dist/ts3.4/_modules/react-textarea-autosize-dist-react-textarea-autosize.cjs.d.ts +0 -2
- package/dist/ts3.4/index.d.ts +0 -926
- package/dist/ts3.9/_modules/@popperjs-core-index.d.ts +0 -1
- package/dist/ts3.9/_modules/@popperjs-core-lib-createPopper.d.ts +0 -9
- package/dist/ts3.9/_modules/@popperjs-core-lib-enums.d.ts +0 -34
- package/dist/ts3.9/_modules/@popperjs-core-lib-index.d.ts +0 -6
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-applyStyles.d.ts +0 -4
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-arrow.d.ts +0 -13
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-computeStyles.d.ts +0 -38
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-eventListeners.d.ts +0 -8
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-flip.d.ts +0 -16
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-hide.d.ts +0 -4
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-index.d.ts +0 -9
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-offset.d.ts +0 -18
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-popperOffsets.d.ts +0 -4
- package/dist/ts3.9/_modules/@popperjs-core-lib-modifiers-preventOverflow.d.ts +0 -30
- package/dist/ts3.9/_modules/@popperjs-core-lib-popper-lite.d.ts +0 -5
- package/dist/ts3.9/_modules/@popperjs-core-lib-popper.d.ts +0 -7
- package/dist/ts3.9/_modules/@popperjs-core-lib-types.d.ts +0 -167
- package/dist/ts3.9/_modules/@popperjs-core-lib-utils-detectOverflow.d.ts +0 -11
- package/dist/ts3.9/_modules/@types-prettier-index.d.ts +0 -641
- package/dist/ts3.9/_modules/react-textarea-autosize-dist-declarations-src-index.d.ts +0 -17
- package/dist/ts3.9/_modules/react-textarea-autosize-dist-react-textarea-autosize.cjs.d.ts +0 -2
- package/dist/ts3.9/index.d.ts +0 -926
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { ComponentProps, FunctionComponent, AnchorHTMLAttributes, MouseEvent, ReactNode, ReactElement, Component, RefObject, SyntheticEvent, ElementType } from 'react';
|
|
3
|
+
import * as _storybook_theming from '@storybook/theming';
|
|
4
|
+
import { Theme, CSSObject } from '@storybook/theming';
|
|
5
|
+
import { BuiltInParserName } from 'prettier';
|
|
6
|
+
import * as react_textarea_autosize from 'react-textarea-autosize';
|
|
7
|
+
|
|
8
|
+
declare const A: _storybook_theming.StyledComponent<any, {
|
|
9
|
+
theme: _storybook_theming.Theme;
|
|
10
|
+
} & {
|
|
11
|
+
theme: _storybook_theming.Theme;
|
|
12
|
+
}, _storybook_theming.Theme>;
|
|
13
|
+
|
|
14
|
+
declare const Blockquote: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
15
|
+
theme: _storybook_theming.Theme;
|
|
16
|
+
} & {
|
|
17
|
+
theme: _storybook_theming.Theme;
|
|
18
|
+
}, _storybook_theming.Theme>;
|
|
19
|
+
|
|
20
|
+
declare const DefaultCodeBlock: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
21
|
+
theme: _storybook_theming.Theme;
|
|
22
|
+
}, _storybook_theming.Theme>;
|
|
23
|
+
declare const Code: ({ className, children, ...props }: ComponentProps<typeof DefaultCodeBlock>) => JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare const Div: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
26
|
+
theme: _storybook_theming.Theme;
|
|
27
|
+
}, _storybook_theming.Theme>;
|
|
28
|
+
|
|
29
|
+
declare const DL: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {
|
|
30
|
+
theme: _storybook_theming.Theme;
|
|
31
|
+
}, _storybook_theming.Theme>;
|
|
32
|
+
|
|
33
|
+
declare const H1: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
34
|
+
theme: _storybook_theming.Theme;
|
|
35
|
+
} & {
|
|
36
|
+
theme: _storybook_theming.Theme;
|
|
37
|
+
}, _storybook_theming.Theme>;
|
|
38
|
+
|
|
39
|
+
declare const H2: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
40
|
+
theme: _storybook_theming.Theme;
|
|
41
|
+
} & {
|
|
42
|
+
theme: _storybook_theming.Theme;
|
|
43
|
+
}, _storybook_theming.Theme>;
|
|
44
|
+
|
|
45
|
+
declare const H3: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
46
|
+
theme: _storybook_theming.Theme;
|
|
47
|
+
} & {
|
|
48
|
+
theme: _storybook_theming.Theme;
|
|
49
|
+
}, _storybook_theming.Theme>;
|
|
50
|
+
|
|
51
|
+
declare const H4: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
52
|
+
theme: _storybook_theming.Theme;
|
|
53
|
+
} & {
|
|
54
|
+
theme: _storybook_theming.Theme;
|
|
55
|
+
}, _storybook_theming.Theme>;
|
|
56
|
+
|
|
57
|
+
declare const H5: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
58
|
+
theme: _storybook_theming.Theme;
|
|
59
|
+
} & {
|
|
60
|
+
theme: _storybook_theming.Theme;
|
|
61
|
+
}, _storybook_theming.Theme>;
|
|
62
|
+
|
|
63
|
+
declare const H6: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
64
|
+
theme: _storybook_theming.Theme;
|
|
65
|
+
} & {
|
|
66
|
+
theme: _storybook_theming.Theme;
|
|
67
|
+
}, _storybook_theming.Theme>;
|
|
68
|
+
|
|
69
|
+
declare const HR: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, Pick<react.ClassAttributes<HTMLHRElement> & react.HTMLAttributes<HTMLHRElement>, keyof react.HTMLAttributes<HTMLHRElement>>, _storybook_theming.Theme>;
|
|
70
|
+
|
|
71
|
+
declare const Img: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Pick<react.ClassAttributes<HTMLImageElement> & react.ImgHTMLAttributes<HTMLImageElement>, keyof react.ImgHTMLAttributes<HTMLImageElement>>, _storybook_theming.Theme>;
|
|
72
|
+
|
|
73
|
+
declare const LI: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
|
|
74
|
+
theme: _storybook_theming.Theme;
|
|
75
|
+
} & {
|
|
76
|
+
theme: _storybook_theming.Theme;
|
|
77
|
+
}, _storybook_theming.Theme>;
|
|
78
|
+
|
|
79
|
+
declare const OL: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {
|
|
80
|
+
theme: _storybook_theming.Theme;
|
|
81
|
+
}, _storybook_theming.Theme>;
|
|
82
|
+
|
|
83
|
+
declare const P: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
84
|
+
theme: _storybook_theming.Theme;
|
|
85
|
+
} & {
|
|
86
|
+
theme: _storybook_theming.Theme;
|
|
87
|
+
}, _storybook_theming.Theme>;
|
|
88
|
+
|
|
89
|
+
declare const Pre: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {
|
|
90
|
+
theme: _storybook_theming.Theme;
|
|
91
|
+
} & {
|
|
92
|
+
theme: _storybook_theming.Theme;
|
|
93
|
+
}, _storybook_theming.Theme>;
|
|
94
|
+
|
|
95
|
+
declare const Span: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
96
|
+
theme: _storybook_theming.Theme;
|
|
97
|
+
} & {
|
|
98
|
+
theme: _storybook_theming.Theme;
|
|
99
|
+
}, _storybook_theming.Theme>;
|
|
100
|
+
|
|
101
|
+
declare const Table: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
|
|
102
|
+
theme: _storybook_theming.Theme;
|
|
103
|
+
} & {
|
|
104
|
+
theme: _storybook_theming.Theme;
|
|
105
|
+
}, _storybook_theming.Theme>;
|
|
106
|
+
|
|
107
|
+
declare const TT: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {
|
|
108
|
+
theme: _storybook_theming.Theme;
|
|
109
|
+
}, _storybook_theming.Theme>;
|
|
110
|
+
|
|
111
|
+
declare const UL: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {
|
|
112
|
+
theme: _storybook_theming.Theme;
|
|
113
|
+
}, _storybook_theming.Theme>;
|
|
114
|
+
|
|
115
|
+
interface BadgeProps {
|
|
116
|
+
status: 'positive' | 'negative' | 'neutral' | 'warning' | 'critical';
|
|
117
|
+
}
|
|
118
|
+
declare const Badge: FunctionComponent<BadgeProps>;
|
|
119
|
+
|
|
120
|
+
interface LinkStylesProps {
|
|
121
|
+
secondary?: boolean;
|
|
122
|
+
tertiary?: boolean;
|
|
123
|
+
nochrome?: boolean;
|
|
124
|
+
inverse?: boolean;
|
|
125
|
+
isButton?: boolean;
|
|
126
|
+
}
|
|
127
|
+
interface LinkInnerProps {
|
|
128
|
+
withArrow?: boolean;
|
|
129
|
+
containsIcon?: boolean;
|
|
130
|
+
}
|
|
131
|
+
declare type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
132
|
+
interface LinkProps extends LinkInnerProps, LinkStylesProps {
|
|
133
|
+
cancel?: boolean;
|
|
134
|
+
className?: string;
|
|
135
|
+
style?: object;
|
|
136
|
+
onClick?: (e: MouseEvent) => void;
|
|
137
|
+
href?: string;
|
|
138
|
+
}
|
|
139
|
+
declare const Link$1: FunctionComponent<LinkProps & AProps>;
|
|
140
|
+
|
|
141
|
+
declare const DocumentWrapper: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, _storybook_theming.Theme>;
|
|
142
|
+
|
|
143
|
+
interface SyntaxHighlighterRendererProps {
|
|
144
|
+
rows: any[];
|
|
145
|
+
stylesheet: string;
|
|
146
|
+
useInlineStyles: boolean;
|
|
147
|
+
}
|
|
148
|
+
interface SyntaxHighlighterCustomProps {
|
|
149
|
+
language: string;
|
|
150
|
+
copyable?: boolean;
|
|
151
|
+
bordered?: boolean;
|
|
152
|
+
padded?: boolean;
|
|
153
|
+
format?: SyntaxHighlighterFormatTypes;
|
|
154
|
+
formatter?: (type: SyntaxHighlighterFormatTypes, source: string) => string;
|
|
155
|
+
className?: string;
|
|
156
|
+
renderer?: (props: SyntaxHighlighterRendererProps) => ReactNode;
|
|
157
|
+
}
|
|
158
|
+
declare type SyntaxHighlighterFormatTypes = boolean | 'dedent' | BuiltInParserName;
|
|
159
|
+
declare type lineTagPropsFunction = (lineNumber: number) => React.HTMLProps<HTMLElement>;
|
|
160
|
+
interface SyntaxHighlighterBaseProps {
|
|
161
|
+
language?: string;
|
|
162
|
+
style?: any;
|
|
163
|
+
customStyle?: any;
|
|
164
|
+
lineProps?: lineTagPropsFunction | React.HTMLProps<HTMLElement>;
|
|
165
|
+
codeTagProps?: React.HTMLProps<HTMLElement>;
|
|
166
|
+
useInlineStyles?: boolean;
|
|
167
|
+
showLineNumbers?: boolean;
|
|
168
|
+
startingLineNumber?: number;
|
|
169
|
+
lineNumberStyle?: any;
|
|
170
|
+
}
|
|
171
|
+
declare type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps;
|
|
172
|
+
|
|
173
|
+
declare const LazySyntaxHighlighter: react__default.LazyExoticComponent<react__default.FunctionComponent<SyntaxHighlighterProps>>;
|
|
174
|
+
declare const SyntaxHighlighter: (props: ComponentProps<typeof LazySyntaxHighlighter>) => JSX.Element;
|
|
175
|
+
|
|
176
|
+
declare function createCopyToClipboardFunction(): (text: string) => any;
|
|
177
|
+
|
|
178
|
+
interface ActionItem {
|
|
179
|
+
title: string | JSX.Element;
|
|
180
|
+
className?: string;
|
|
181
|
+
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
182
|
+
disabled?: boolean;
|
|
183
|
+
}
|
|
184
|
+
interface ActionBarProps {
|
|
185
|
+
actionItems: ActionItem[];
|
|
186
|
+
}
|
|
187
|
+
declare const ActionBar: FunctionComponent<ActionBarProps>;
|
|
188
|
+
|
|
189
|
+
interface SpacedProps {
|
|
190
|
+
col?: number;
|
|
191
|
+
row?: number;
|
|
192
|
+
outer?: number | boolean;
|
|
193
|
+
}
|
|
194
|
+
declare const Spaced: FunctionComponent<SpacedProps>;
|
|
195
|
+
|
|
196
|
+
declare const Placeholder: FunctionComponent;
|
|
197
|
+
|
|
198
|
+
interface ScrollAreaProps {
|
|
199
|
+
horizontal?: boolean;
|
|
200
|
+
vertical?: boolean;
|
|
201
|
+
className?: string;
|
|
202
|
+
}
|
|
203
|
+
declare const ScrollArea: FunctionComponent<ScrollAreaProps>;
|
|
204
|
+
|
|
205
|
+
declare type ZoomProps = {
|
|
206
|
+
scale: number;
|
|
207
|
+
children: ReactElement | ReactElement[];
|
|
208
|
+
};
|
|
209
|
+
declare function ZoomElement({ scale, children }: ZoomProps): JSX.Element;
|
|
210
|
+
|
|
211
|
+
declare type IZoomIFrameProps = {
|
|
212
|
+
scale: number;
|
|
213
|
+
children: ReactElement<HTMLIFrameElement>;
|
|
214
|
+
iFrameRef: RefObject<HTMLIFrameElement>;
|
|
215
|
+
active?: boolean;
|
|
216
|
+
};
|
|
217
|
+
declare class ZoomIFrame extends Component<IZoomIFrameProps> {
|
|
218
|
+
iframe: HTMLIFrameElement;
|
|
219
|
+
componentDidMount(): void;
|
|
220
|
+
shouldComponentUpdate(nextProps: IZoomIFrameProps): boolean;
|
|
221
|
+
setIframeInnerZoom(scale: number): void;
|
|
222
|
+
setIframeZoom(scale: number): void;
|
|
223
|
+
render(): ReactElement<HTMLIFrameElement, string | react.JSXElementConstructor<any>> & react.ReactNode;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare const Zoom: {
|
|
227
|
+
Element: typeof ZoomElement;
|
|
228
|
+
IFrame: typeof ZoomIFrame;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
declare const ButtonWrapper: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
232
|
+
isLink?: boolean;
|
|
233
|
+
primary?: boolean;
|
|
234
|
+
secondary?: boolean;
|
|
235
|
+
tertiary?: boolean;
|
|
236
|
+
gray?: boolean;
|
|
237
|
+
inForm?: boolean;
|
|
238
|
+
disabled?: boolean;
|
|
239
|
+
small?: boolean;
|
|
240
|
+
outline?: boolean;
|
|
241
|
+
containsIcon?: boolean;
|
|
242
|
+
children?: ReactNode;
|
|
243
|
+
href?: string;
|
|
244
|
+
}, _storybook_theming.Theme>;
|
|
245
|
+
declare const Button: FunctionComponent<ComponentProps<typeof ButtonWrapper>>;
|
|
246
|
+
|
|
247
|
+
interface FieldProps {
|
|
248
|
+
label?: ReactNode;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare const Form: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, Pick<react.ClassAttributes<HTMLFormElement> & react.FormHTMLAttributes<HTMLFormElement>, keyof react.FormHTMLAttributes<HTMLFormElement>>, _storybook_theming.Theme> & {
|
|
252
|
+
Field: react.FunctionComponent<FieldProps>;
|
|
253
|
+
Input: _storybook_theming.StyledComponent<any, {
|
|
254
|
+
size?: "flex" | "auto" | "100%";
|
|
255
|
+
align?: "start" | "center" | "end";
|
|
256
|
+
valid?: "valid" | "error" | "warn";
|
|
257
|
+
height?: number;
|
|
258
|
+
}, _storybook_theming.Theme> & {
|
|
259
|
+
displayName: string;
|
|
260
|
+
};
|
|
261
|
+
Select: _storybook_theming.StyledComponent<any, Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "height" | "size" | "valid" | "align"> & {
|
|
262
|
+
size?: "flex" | "auto" | "100%";
|
|
263
|
+
align?: "start" | "center" | "end";
|
|
264
|
+
valid?: "valid" | "error" | "warn";
|
|
265
|
+
height?: number;
|
|
266
|
+
}, _storybook_theming.Theme> & {
|
|
267
|
+
displayName: string;
|
|
268
|
+
};
|
|
269
|
+
Textarea: _storybook_theming.StyledComponent<any, Omit<react_textarea_autosize.TextareaAutosizeProps, "height" | "size" | "valid" | "align"> & {
|
|
270
|
+
size?: "flex" | "auto" | "100%";
|
|
271
|
+
align?: "start" | "center" | "end";
|
|
272
|
+
valid?: "valid" | "error" | "warn";
|
|
273
|
+
height?: number;
|
|
274
|
+
}, _storybook_theming.Theme> & {
|
|
275
|
+
displayName: string;
|
|
276
|
+
};
|
|
277
|
+
Button: react.FunctionComponent<any>;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
declare const top: "top";
|
|
281
|
+
declare const bottom: "bottom";
|
|
282
|
+
declare const right: "right";
|
|
283
|
+
declare const left: "left";
|
|
284
|
+
declare type BasePlacement = typeof top | typeof bottom | typeof right | typeof left;
|
|
285
|
+
declare type VariationPlacement = "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
|
286
|
+
declare type AutoPlacement = "auto" | "auto-start" | "auto-end";
|
|
287
|
+
declare type Placement = AutoPlacement | BasePlacement | VariationPlacement;
|
|
288
|
+
declare const beforeRead: "beforeRead";
|
|
289
|
+
declare const read: "read";
|
|
290
|
+
declare const afterRead: "afterRead";
|
|
291
|
+
declare const beforeMain: "beforeMain";
|
|
292
|
+
declare const main: "main";
|
|
293
|
+
declare const afterMain: "afterMain";
|
|
294
|
+
declare const beforeWrite: "beforeWrite";
|
|
295
|
+
declare const write: "write";
|
|
296
|
+
declare const afterWrite: "afterWrite";
|
|
297
|
+
declare type ModifierPhases = typeof beforeRead | typeof read | typeof afterRead | typeof beforeMain | typeof main | typeof afterMain | typeof beforeWrite | typeof write | typeof afterWrite;
|
|
298
|
+
|
|
299
|
+
declare type Obj = {
|
|
300
|
+
[key: string]: any;
|
|
301
|
+
};
|
|
302
|
+
declare type VisualViewport = EventTarget & {
|
|
303
|
+
width: number;
|
|
304
|
+
height: number;
|
|
305
|
+
offsetLeft: number;
|
|
306
|
+
offsetTop: number;
|
|
307
|
+
scale: number;
|
|
308
|
+
};
|
|
309
|
+
declare type Window = {
|
|
310
|
+
innerHeight: number;
|
|
311
|
+
offsetHeight: number;
|
|
312
|
+
innerWidth: number;
|
|
313
|
+
offsetWidth: number;
|
|
314
|
+
pageXOffset: number;
|
|
315
|
+
pageYOffset: number;
|
|
316
|
+
getComputedStyle: typeof getComputedStyle;
|
|
317
|
+
addEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
|
|
318
|
+
removeEventListener(type: any, listener: any, optionsOrUseCapture?: any): void;
|
|
319
|
+
Element: Element;
|
|
320
|
+
HTMLElement: HTMLElement;
|
|
321
|
+
Node: Node;
|
|
322
|
+
toString(): "[object Window]";
|
|
323
|
+
devicePixelRatio: number;
|
|
324
|
+
visualViewport?: VisualViewport;
|
|
325
|
+
ShadowRoot: ShadowRoot;
|
|
326
|
+
};
|
|
327
|
+
declare type Rect = {
|
|
328
|
+
width: number;
|
|
329
|
+
height: number;
|
|
330
|
+
x: number;
|
|
331
|
+
y: number;
|
|
332
|
+
};
|
|
333
|
+
declare type Offsets = {
|
|
334
|
+
y: number;
|
|
335
|
+
x: number;
|
|
336
|
+
};
|
|
337
|
+
declare type PositioningStrategy = "absolute" | "fixed";
|
|
338
|
+
declare type StateRects = {
|
|
339
|
+
reference: Rect;
|
|
340
|
+
popper: Rect;
|
|
341
|
+
};
|
|
342
|
+
declare type OffsetData = {
|
|
343
|
+
[key in Placement]?: Offsets;
|
|
344
|
+
};
|
|
345
|
+
declare type State = {
|
|
346
|
+
elements: {
|
|
347
|
+
reference: Element | VirtualElement;
|
|
348
|
+
popper: HTMLElement;
|
|
349
|
+
arrow?: HTMLElement;
|
|
350
|
+
};
|
|
351
|
+
options: OptionsGeneric<any>;
|
|
352
|
+
placement: Placement;
|
|
353
|
+
strategy: PositioningStrategy;
|
|
354
|
+
orderedModifiers: Array<Modifier<any, any>>;
|
|
355
|
+
rects: StateRects;
|
|
356
|
+
scrollParents: {
|
|
357
|
+
reference: Array<Element | Window | VisualViewport>;
|
|
358
|
+
popper: Array<Element | Window | VisualViewport>;
|
|
359
|
+
};
|
|
360
|
+
styles: {
|
|
361
|
+
[key: string]: Partial<CSSStyleDeclaration>;
|
|
362
|
+
};
|
|
363
|
+
attributes: {
|
|
364
|
+
[key: string]: {
|
|
365
|
+
[key: string]: string | boolean;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
modifiersData: {
|
|
369
|
+
arrow?: {
|
|
370
|
+
x?: number;
|
|
371
|
+
y?: number;
|
|
372
|
+
centerOffset: number;
|
|
373
|
+
};
|
|
374
|
+
hide?: {
|
|
375
|
+
isReferenceHidden: boolean;
|
|
376
|
+
hasPopperEscaped: boolean;
|
|
377
|
+
referenceClippingOffsets: SideObject;
|
|
378
|
+
popperEscapeOffsets: SideObject;
|
|
379
|
+
};
|
|
380
|
+
offset?: OffsetData;
|
|
381
|
+
preventOverflow?: Offsets;
|
|
382
|
+
popperOffsets?: Offsets;
|
|
383
|
+
[key: string]: any;
|
|
384
|
+
};
|
|
385
|
+
reset: boolean;
|
|
386
|
+
};
|
|
387
|
+
declare type SetAction<S> = S | ((prev: S) => S);
|
|
388
|
+
declare type Instance = {
|
|
389
|
+
state: State;
|
|
390
|
+
destroy: () => void;
|
|
391
|
+
forceUpdate: () => void;
|
|
392
|
+
update: () => Promise<Partial<State>>;
|
|
393
|
+
setOptions: (setOptionsAction: SetAction<Partial<OptionsGeneric<any>>>) => Promise<Partial<State>>;
|
|
394
|
+
};
|
|
395
|
+
declare type ModifierArguments<Options extends Obj> = {
|
|
396
|
+
state: State;
|
|
397
|
+
instance: Instance;
|
|
398
|
+
options: Partial<Options>;
|
|
399
|
+
name: string;
|
|
400
|
+
};
|
|
401
|
+
declare type Modifier<Name, Options extends Obj> = {
|
|
402
|
+
name: Name;
|
|
403
|
+
enabled: boolean;
|
|
404
|
+
phase: ModifierPhases;
|
|
405
|
+
requires?: Array<string>;
|
|
406
|
+
requiresIfExists?: Array<string>;
|
|
407
|
+
fn: (arg0: ModifierArguments<Options>) => State | void;
|
|
408
|
+
effect?: (arg0: ModifierArguments<Options>) => (() => void) | void;
|
|
409
|
+
options?: Partial<Options>;
|
|
410
|
+
data?: Obj;
|
|
411
|
+
};
|
|
412
|
+
declare type OptionsGeneric<TModifier> = {
|
|
413
|
+
placement: Placement;
|
|
414
|
+
modifiers: Array<TModifier>;
|
|
415
|
+
strategy: PositioningStrategy;
|
|
416
|
+
onFirstUpdate?: (arg0: Partial<State>) => void;
|
|
417
|
+
};
|
|
418
|
+
declare type SideObject = {
|
|
419
|
+
top: number;
|
|
420
|
+
left: number;
|
|
421
|
+
right: number;
|
|
422
|
+
bottom: number;
|
|
423
|
+
};
|
|
424
|
+
declare type VirtualElement = {
|
|
425
|
+
getBoundingClientRect: () => ClientRect | DOMRect;
|
|
426
|
+
contextElement?: Element;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
interface WithHideFn {
|
|
430
|
+
onHide: () => void;
|
|
431
|
+
}
|
|
432
|
+
interface WithTooltipPureProps {
|
|
433
|
+
svg?: boolean;
|
|
434
|
+
trigger?: 'none' | 'hover' | 'click' | 'right-click';
|
|
435
|
+
closeOnClick?: boolean;
|
|
436
|
+
placement?: Placement;
|
|
437
|
+
modifiers?: Array<Partial<Modifier<string, {}>>>;
|
|
438
|
+
hasChrome?: boolean;
|
|
439
|
+
tooltip: ReactNode | ((p: WithHideFn) => ReactNode);
|
|
440
|
+
children: ReactNode;
|
|
441
|
+
tooltipShown?: boolean;
|
|
442
|
+
onVisibilityChange?: (visibility: boolean) => void | boolean;
|
|
443
|
+
onDoubleClick?: () => void;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare const LazyWithTooltip: react__default.LazyExoticComponent<react__default.FunctionComponent<WithTooltipPureProps & {
|
|
447
|
+
startOpen?: boolean;
|
|
448
|
+
}>>;
|
|
449
|
+
declare const WithTooltip: (props: ComponentProps<typeof LazyWithTooltip>) => JSX.Element;
|
|
450
|
+
declare const LazyWithTooltipPure: react__default.LazyExoticComponent<react__default.FunctionComponent<WithTooltipPureProps>>;
|
|
451
|
+
declare const WithTooltipPure: (props: ComponentProps<typeof LazyWithTooltipPure>) => JSX.Element;
|
|
452
|
+
|
|
453
|
+
interface TooltipMessageProps {
|
|
454
|
+
title?: ReactNode;
|
|
455
|
+
desc?: ReactNode;
|
|
456
|
+
links?: {
|
|
457
|
+
title: string;
|
|
458
|
+
href?: string;
|
|
459
|
+
onClick?: () => void;
|
|
460
|
+
}[];
|
|
461
|
+
}
|
|
462
|
+
declare const TooltipMessage: FunctionComponent<TooltipMessageProps>;
|
|
463
|
+
|
|
464
|
+
interface TooltipNoteProps {
|
|
465
|
+
note: string;
|
|
466
|
+
}
|
|
467
|
+
declare const TooltipNote: FunctionComponent<TooltipNoteProps>;
|
|
468
|
+
|
|
469
|
+
interface ItemProps {
|
|
470
|
+
disabled?: boolean;
|
|
471
|
+
}
|
|
472
|
+
declare const Item: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, ItemProps, _storybook_theming.Theme>;
|
|
473
|
+
declare type LinkWrapperType = FunctionComponent<any>;
|
|
474
|
+
interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'href' | 'title'> {
|
|
475
|
+
loading?: boolean;
|
|
476
|
+
left?: ReactNode;
|
|
477
|
+
title?: ReactNode;
|
|
478
|
+
center?: ReactNode;
|
|
479
|
+
right?: ReactNode;
|
|
480
|
+
active?: boolean;
|
|
481
|
+
disabled?: boolean;
|
|
482
|
+
href?: string;
|
|
483
|
+
LinkWrapper?: LinkWrapperType;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
interface Link extends Omit<ListItemProps, 'onClick'> {
|
|
487
|
+
id: string;
|
|
488
|
+
isGatsby?: boolean;
|
|
489
|
+
onClick?: (event: SyntheticEvent, item: ListItemProps) => void;
|
|
490
|
+
}
|
|
491
|
+
interface TooltipLinkListProps {
|
|
492
|
+
links: Link[];
|
|
493
|
+
LinkWrapper?: LinkWrapperType;
|
|
494
|
+
}
|
|
495
|
+
declare const TooltipLinkList: FunctionComponent<TooltipLinkListProps>;
|
|
496
|
+
|
|
497
|
+
declare const TabBar: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<react__default.ClassAttributes<HTMLDivElement> & react__default.HTMLAttributes<HTMLDivElement>, keyof react__default.HTMLAttributes<HTMLDivElement>>, _storybook_theming.Theme>;
|
|
498
|
+
interface TabWrapperProps {
|
|
499
|
+
active: boolean;
|
|
500
|
+
render?: () => JSX.Element;
|
|
501
|
+
children?: ReactNode;
|
|
502
|
+
}
|
|
503
|
+
declare const TabWrapper: FunctionComponent<TabWrapperProps>;
|
|
504
|
+
interface TabsProps {
|
|
505
|
+
id?: string;
|
|
506
|
+
tools?: ReactNode;
|
|
507
|
+
selected?: string;
|
|
508
|
+
actions?: {
|
|
509
|
+
onSelect: (id: string) => void;
|
|
510
|
+
} & Record<string, any>;
|
|
511
|
+
backgroundColor?: string;
|
|
512
|
+
absolute?: boolean;
|
|
513
|
+
bordered?: boolean;
|
|
514
|
+
}
|
|
515
|
+
declare const Tabs: FunctionComponent<TabsProps>;
|
|
516
|
+
declare type FuncChildren = () => void;
|
|
517
|
+
interface TabsStateProps {
|
|
518
|
+
children: (ReactNode | FuncChildren)[];
|
|
519
|
+
initial: string;
|
|
520
|
+
absolute: boolean;
|
|
521
|
+
bordered: boolean;
|
|
522
|
+
backgroundColor: string;
|
|
523
|
+
}
|
|
524
|
+
interface TabsStateState {
|
|
525
|
+
selected: string;
|
|
526
|
+
}
|
|
527
|
+
declare class TabsState extends Component<TabsStateProps, TabsStateState> {
|
|
528
|
+
static defaultProps: TabsStateProps;
|
|
529
|
+
constructor(props: TabsStateProps);
|
|
530
|
+
handlers: {
|
|
531
|
+
onSelect: (id: string) => void;
|
|
532
|
+
};
|
|
533
|
+
render(): JSX.Element;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
interface TabButtonProps {
|
|
537
|
+
active?: boolean;
|
|
538
|
+
textColor?: string;
|
|
539
|
+
}
|
|
540
|
+
declare const TabButton: _storybook_theming.StyledComponent<any, TabButtonProps, _storybook_theming.Theme>;
|
|
541
|
+
interface IconButtonProps {
|
|
542
|
+
active?: boolean;
|
|
543
|
+
disabled?: boolean;
|
|
544
|
+
}
|
|
545
|
+
declare const IconButton: _storybook_theming.StyledComponent<any, IconButtonProps, _storybook_theming.Theme>;
|
|
546
|
+
declare const IconButtonSkeleton: () => JSX.Element;
|
|
547
|
+
|
|
548
|
+
declare const Separator: _storybook_theming.StyledComponent<react__default.DetailedHTMLProps<react__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, SeparatorProps, _storybook_theming.Theme>;
|
|
549
|
+
declare const interleaveSeparators: (list: any[]) => any;
|
|
550
|
+
interface SeparatorProps {
|
|
551
|
+
force?: boolean;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
declare const Bar: _storybook_theming.StyledComponent<any, Pick<any, string | number | symbol>, _storybook_theming.Theme>;
|
|
555
|
+
interface FlexBarProps {
|
|
556
|
+
border?: boolean;
|
|
557
|
+
children?: any;
|
|
558
|
+
backgroundColor?: string;
|
|
559
|
+
}
|
|
560
|
+
declare const FlexBar: FunctionComponent<FlexBarProps>;
|
|
561
|
+
|
|
562
|
+
interface AddonPanelProps {
|
|
563
|
+
active: boolean;
|
|
564
|
+
children: ReactNode;
|
|
565
|
+
}
|
|
566
|
+
declare const AddonPanel: ({ active, children }: AddonPanelProps) => JSX.Element;
|
|
567
|
+
|
|
568
|
+
declare const icons: {
|
|
569
|
+
mobile: string;
|
|
570
|
+
watch: string;
|
|
571
|
+
tablet: string;
|
|
572
|
+
browser: string;
|
|
573
|
+
sidebar: string;
|
|
574
|
+
sidebaralt: string;
|
|
575
|
+
bottombar: string;
|
|
576
|
+
useralt: string;
|
|
577
|
+
user: string;
|
|
578
|
+
useradd: string;
|
|
579
|
+
users: string;
|
|
580
|
+
profile: string;
|
|
581
|
+
bookmark: string;
|
|
582
|
+
bookmarkhollow: string;
|
|
583
|
+
book: string;
|
|
584
|
+
repository: string;
|
|
585
|
+
star: string;
|
|
586
|
+
starhollow: string;
|
|
587
|
+
circle: string;
|
|
588
|
+
circlehollow: string;
|
|
589
|
+
heart: string;
|
|
590
|
+
hearthollow: string;
|
|
591
|
+
facehappy: string;
|
|
592
|
+
facesad: string;
|
|
593
|
+
faceneutral: string;
|
|
594
|
+
lock: string;
|
|
595
|
+
unlock: string;
|
|
596
|
+
key: string;
|
|
597
|
+
arrowleftalt: string;
|
|
598
|
+
arrowrightalt: string;
|
|
599
|
+
sync: string;
|
|
600
|
+
reply: string;
|
|
601
|
+
undo: string;
|
|
602
|
+
transfer: string;
|
|
603
|
+
redirect: string;
|
|
604
|
+
expand: string;
|
|
605
|
+
expandalt: string;
|
|
606
|
+
collapse: string;
|
|
607
|
+
grow: string;
|
|
608
|
+
arrowleft: string;
|
|
609
|
+
arrowup: string;
|
|
610
|
+
arrowdown: string;
|
|
611
|
+
arrowright: string;
|
|
612
|
+
chevrondown: string;
|
|
613
|
+
back: string;
|
|
614
|
+
download: string;
|
|
615
|
+
upload: string;
|
|
616
|
+
proceed: string;
|
|
617
|
+
info: string;
|
|
618
|
+
question: string;
|
|
619
|
+
support: string;
|
|
620
|
+
alert: string;
|
|
621
|
+
bell: string;
|
|
622
|
+
rss: string;
|
|
623
|
+
edit: string;
|
|
624
|
+
paintbrush: string;
|
|
625
|
+
close: string;
|
|
626
|
+
closeAlt: string;
|
|
627
|
+
trash: string;
|
|
628
|
+
cross: string;
|
|
629
|
+
delete: string;
|
|
630
|
+
add: string;
|
|
631
|
+
subtract: string;
|
|
632
|
+
plus: string;
|
|
633
|
+
document: string;
|
|
634
|
+
folder: string;
|
|
635
|
+
component: string;
|
|
636
|
+
calendar: string;
|
|
637
|
+
graphline: string;
|
|
638
|
+
docchart: string;
|
|
639
|
+
doclist: string;
|
|
640
|
+
category: string;
|
|
641
|
+
grid: string;
|
|
642
|
+
copy: string;
|
|
643
|
+
certificate: string;
|
|
644
|
+
print: string;
|
|
645
|
+
listunordered: string;
|
|
646
|
+
graphbar: string;
|
|
647
|
+
menu: string;
|
|
648
|
+
filter: string;
|
|
649
|
+
ellipsis: string;
|
|
650
|
+
cog: string;
|
|
651
|
+
wrench: string;
|
|
652
|
+
nut: string;
|
|
653
|
+
camera: string;
|
|
654
|
+
eye: string;
|
|
655
|
+
eyeclose: string;
|
|
656
|
+
photo: string;
|
|
657
|
+
video: string;
|
|
658
|
+
speaker: string;
|
|
659
|
+
phone: string;
|
|
660
|
+
flag: string;
|
|
661
|
+
pin: string;
|
|
662
|
+
compass: string;
|
|
663
|
+
globe: string;
|
|
664
|
+
location: string;
|
|
665
|
+
search: string;
|
|
666
|
+
zoom: string;
|
|
667
|
+
zoomout: string;
|
|
668
|
+
zoomreset: string;
|
|
669
|
+
timer: string;
|
|
670
|
+
time: string;
|
|
671
|
+
lightning: string;
|
|
672
|
+
lightningoff: string;
|
|
673
|
+
dashboard: string;
|
|
674
|
+
hourglass: string;
|
|
675
|
+
play: string;
|
|
676
|
+
playnext: string;
|
|
677
|
+
playback: string;
|
|
678
|
+
stop: string;
|
|
679
|
+
stopalt: string;
|
|
680
|
+
rewind: string;
|
|
681
|
+
fastforward: string;
|
|
682
|
+
email: string;
|
|
683
|
+
link: string;
|
|
684
|
+
paperclip: string;
|
|
685
|
+
box: string;
|
|
686
|
+
structure: string;
|
|
687
|
+
cpu: string;
|
|
688
|
+
memory: string;
|
|
689
|
+
database: string;
|
|
690
|
+
power: string;
|
|
691
|
+
outbox: string;
|
|
692
|
+
share: string;
|
|
693
|
+
button: string;
|
|
694
|
+
form: string;
|
|
695
|
+
check: string;
|
|
696
|
+
batchaccept: string;
|
|
697
|
+
batchdeny: string;
|
|
698
|
+
home: string;
|
|
699
|
+
admin: string;
|
|
700
|
+
paragraph: string;
|
|
701
|
+
basket: string;
|
|
702
|
+
credit: string;
|
|
703
|
+
shield: string;
|
|
704
|
+
beaker: string;
|
|
705
|
+
thumbsup: string;
|
|
706
|
+
mirror: string;
|
|
707
|
+
switchalt: string;
|
|
708
|
+
commit: string;
|
|
709
|
+
branch: string;
|
|
710
|
+
merge: string;
|
|
711
|
+
pullrequest: string;
|
|
712
|
+
chromatic: string;
|
|
713
|
+
twitter: string;
|
|
714
|
+
google: string;
|
|
715
|
+
gdrive: string;
|
|
716
|
+
youtube: string;
|
|
717
|
+
facebook: string;
|
|
718
|
+
medium: string;
|
|
719
|
+
graphql: string;
|
|
720
|
+
redux: string;
|
|
721
|
+
github: string;
|
|
722
|
+
bitbucket: string;
|
|
723
|
+
gitlab: string;
|
|
724
|
+
azuredevops: string;
|
|
725
|
+
discord: string;
|
|
726
|
+
contrast: string;
|
|
727
|
+
unfold: string;
|
|
728
|
+
sharealt: string;
|
|
729
|
+
accessibility: string;
|
|
730
|
+
accessibilityalt: string;
|
|
731
|
+
markup: string;
|
|
732
|
+
outline: string;
|
|
733
|
+
verified: string;
|
|
734
|
+
comment: string;
|
|
735
|
+
commentadd: string;
|
|
736
|
+
requestchange: string;
|
|
737
|
+
comments: string;
|
|
738
|
+
ruler: string;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
declare type IconKey = keyof typeof icons;
|
|
742
|
+
|
|
743
|
+
interface SvgProps {
|
|
744
|
+
inline?: boolean;
|
|
745
|
+
}
|
|
746
|
+
declare const Svg: _storybook_theming.StyledComponent<react.SVGProps<SVGSVGElement>, SvgProps, _storybook_theming.Theme>;
|
|
747
|
+
|
|
748
|
+
interface IconsProps extends ComponentProps<typeof Svg> {
|
|
749
|
+
icon?: IconKey;
|
|
750
|
+
symbol?: IconKey;
|
|
751
|
+
}
|
|
752
|
+
declare const Icons: react__default.NamedExoticComponent<IconsProps>;
|
|
753
|
+
interface SymbolsProps extends ComponentProps<typeof Svg> {
|
|
754
|
+
icons?: IconKey[];
|
|
755
|
+
}
|
|
756
|
+
declare const Symbols: react__default.NamedExoticComponent<SymbolsProps>;
|
|
757
|
+
|
|
758
|
+
declare const StorybookLogo: FunctionComponent<{
|
|
759
|
+
alt: string;
|
|
760
|
+
}>;
|
|
761
|
+
|
|
762
|
+
declare const StorybookIcon: FunctionComponent<{}>;
|
|
763
|
+
|
|
764
|
+
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>;
|
|
765
|
+
interface Progress {
|
|
766
|
+
value: number;
|
|
767
|
+
message: string;
|
|
768
|
+
modules?: {
|
|
769
|
+
complete: number;
|
|
770
|
+
total: number;
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
interface LoaderProps {
|
|
774
|
+
progress?: Progress;
|
|
775
|
+
error?: Error;
|
|
776
|
+
size?: number;
|
|
777
|
+
}
|
|
778
|
+
declare const PureLoader: FunctionComponent<LoaderProps & ComponentProps<typeof ProgressWrapper>>;
|
|
779
|
+
declare const Loader: FunctionComponent<ComponentProps<typeof PureLoader>>;
|
|
780
|
+
|
|
781
|
+
declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
|
|
782
|
+
|
|
783
|
+
declare const nameSpaceClassNames: ({ ...props }: {
|
|
784
|
+
[x: string]: any;
|
|
785
|
+
}, key: string) => {
|
|
786
|
+
[x: string]: any;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* This is a "local" reset to style subtrees with Storybook styles
|
|
791
|
+
*
|
|
792
|
+
* We can't style individual elements (e.g. h1, h2, etc.) in here
|
|
793
|
+
* because the CSS specificity is too high, so those styles can too
|
|
794
|
+
* easily override child elements that are not expecting it.
|
|
795
|
+
*/
|
|
796
|
+
declare const ResetWrapper: _storybook_theming.StyledComponent<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, _storybook_theming.Theme>;
|
|
797
|
+
|
|
798
|
+
declare const codeCommon: ({ theme }: {
|
|
799
|
+
theme: Theme;
|
|
800
|
+
}) => CSSObject;
|
|
801
|
+
declare const withReset: ({ theme }: {
|
|
802
|
+
theme: Theme;
|
|
803
|
+
}) => CSSObject;
|
|
804
|
+
|
|
805
|
+
declare const components: {
|
|
806
|
+
h1: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
807
|
+
h2: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
808
|
+
h3: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
809
|
+
h4: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
810
|
+
h5: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
811
|
+
h6: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => JSX.Element;
|
|
812
|
+
pre: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLPreElement>, HTMLPreElement>) => JSX.Element;
|
|
813
|
+
a: (props: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => JSX.Element;
|
|
814
|
+
hr: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>) => JSX.Element;
|
|
815
|
+
dl: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDListElement>, HTMLDListElement>) => JSX.Element;
|
|
816
|
+
blockquote: (props: react.DetailedHTMLProps<react.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>) => JSX.Element;
|
|
817
|
+
table: (props: react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>) => JSX.Element;
|
|
818
|
+
img: (props: react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => JSX.Element;
|
|
819
|
+
div: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
820
|
+
span: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => JSX.Element;
|
|
821
|
+
li: (props: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => JSX.Element;
|
|
822
|
+
ul: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => JSX.Element;
|
|
823
|
+
ol: (props: react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>) => JSX.Element;
|
|
824
|
+
p: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => JSX.Element;
|
|
825
|
+
code: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>) => JSX.Element;
|
|
826
|
+
tt: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>) => JSX.Element;
|
|
827
|
+
resetwrapper: (props: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
|
|
828
|
+
};
|
|
829
|
+
declare const resetComponents: Record<string, ElementType>;
|
|
830
|
+
|
|
831
|
+
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 };
|