@storybook/react-native-ui-lite 9.0.0-beta.11 → 9.0.0-beta.13
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/index.d.ts +416 -6
- package/dist/index.js +742 -710
- package/package.json +3 -3
- package/src/Button.tsx +2 -3
- package/src/Layout.tsx +4 -3
- package/src/index.tsx +7 -7
- package/src/util/StoryHash.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,46 @@
|
|
|
1
|
+
import * as _storybook_react_native_theming from '@storybook/react-native-theming';
|
|
2
|
+
import { useTheme, Theme } from '@storybook/react-native-theming';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { View, PressableProps, TouchableOpacityProps } from 'react-native';
|
|
5
|
+
import * as React$1 from 'react';
|
|
6
|
+
import React__default, { FC, ComponentProps, ReactElement, PropsWithChildren, ReactNode } from 'react';
|
|
1
7
|
import { State, StoriesHash, API } from 'storybook/internal/manager-api';
|
|
2
|
-
import { StatusesByStoryIdAndTypeId, StatusValue,
|
|
8
|
+
import { StatusesByStoryIdAndTypeId, StatusValue, API_LoadedRefData, API_IndexHash, API_PreparedStoryIndex, StoryIndexV2, StoryIndexV3, API_Provider, DocsOptions } from 'storybook/internal/types';
|
|
3
9
|
import * as Fuse from 'fuse.js';
|
|
4
|
-
import { PressableProps } from 'react-native';
|
|
5
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
11
|
import { ReactRenderer } from '@storybook/react';
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
|
|
13
|
+
interface NodeProps$1 {
|
|
14
|
+
children: React__default.ReactNode | React__default.ReactNode[];
|
|
15
|
+
isExpandable?: boolean;
|
|
16
|
+
isExpanded?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const BranchNode: _storybook_react_native_theming.StyledComponent<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
|
|
19
|
+
theme?: useTheme;
|
|
20
|
+
as?: React__default.ElementType;
|
|
21
|
+
} & {
|
|
22
|
+
depth?: number;
|
|
23
|
+
isExpandable?: boolean;
|
|
24
|
+
isExpanded?: boolean;
|
|
25
|
+
isComponent?: boolean;
|
|
26
|
+
isSelected?: boolean;
|
|
27
|
+
}, {}, {
|
|
28
|
+
ref?: React__default.Ref<any>;
|
|
29
|
+
}>;
|
|
30
|
+
declare const GroupNode: FC<ComponentProps<typeof BranchNode> & {
|
|
31
|
+
isExpanded?: boolean;
|
|
32
|
+
isExpandable?: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
declare const ComponentNode: FC<ComponentProps<typeof BranchNode>>;
|
|
35
|
+
declare const StoryNode: React__default.NamedExoticComponent<Omit<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
|
|
36
|
+
theme?: useTheme;
|
|
37
|
+
as?: React__default.ElementType;
|
|
38
|
+
} & {
|
|
39
|
+
depth?: number;
|
|
40
|
+
selected?: boolean;
|
|
41
|
+
} & {
|
|
42
|
+
ref?: React__default.Ref<any>;
|
|
43
|
+
}, "ref"> & React__default.RefAttributes<View>>;
|
|
9
44
|
|
|
10
45
|
type Refs = State['refs'];
|
|
11
46
|
type RefType = Refs[keyof Refs] & {
|
|
@@ -59,6 +94,381 @@ type SearchChildrenFn = (args: {
|
|
|
59
94
|
highlightedIndex: number | null;
|
|
60
95
|
}) => React.ReactNode;
|
|
61
96
|
|
|
97
|
+
interface ExpandAction {
|
|
98
|
+
ids: string[];
|
|
99
|
+
value: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface NodeProps {
|
|
103
|
+
item: Item;
|
|
104
|
+
refId: string;
|
|
105
|
+
docsMode: boolean;
|
|
106
|
+
isOrphan: boolean;
|
|
107
|
+
isDisplayed: boolean;
|
|
108
|
+
color: string | undefined;
|
|
109
|
+
isSelected: boolean;
|
|
110
|
+
isFullyExpanded?: boolean;
|
|
111
|
+
isExpanded: boolean;
|
|
112
|
+
setExpanded: (action: ExpandAction) => void;
|
|
113
|
+
setFullyExpanded?: () => void;
|
|
114
|
+
onSelectStoryId: (itemId: string) => void;
|
|
115
|
+
status: State['status'][keyof State['status']];
|
|
116
|
+
}
|
|
117
|
+
declare const Node: React__default.NamedExoticComponent<NodeProps>;
|
|
118
|
+
declare const LeafNodeStyleWrapper: _storybook_react_native_theming.StyledComponent<react_native.ViewProps & {
|
|
119
|
+
theme?: Theme$1;
|
|
120
|
+
as?: React__default.ElementType;
|
|
121
|
+
}, {}, {
|
|
122
|
+
ref?: React__default.Ref<View>;
|
|
123
|
+
}>;
|
|
124
|
+
declare const RootNode: _storybook_react_native_theming.StyledComponent<react_native.ViewProps & {
|
|
125
|
+
theme?: Theme$1;
|
|
126
|
+
as?: React__default.ElementType;
|
|
127
|
+
}, {}, {
|
|
128
|
+
ref?: React__default.Ref<View>;
|
|
129
|
+
}>;
|
|
130
|
+
declare const RootNodeText: _storybook_react_native_theming.StyledComponent<react_native.TextProps & {
|
|
131
|
+
theme?: Theme$1;
|
|
132
|
+
as?: React__default.ElementType;
|
|
133
|
+
}, {}, {
|
|
134
|
+
ref?: React__default.Ref<react_native.Text>;
|
|
135
|
+
}>;
|
|
136
|
+
declare const Tree: React__default.NamedExoticComponent<{
|
|
137
|
+
isBrowsing: boolean;
|
|
138
|
+
isMain: boolean;
|
|
139
|
+
status?: State["status"];
|
|
140
|
+
refId: string;
|
|
141
|
+
data: StoriesHash;
|
|
142
|
+
docsMode: boolean;
|
|
143
|
+
selectedStoryId: string | null;
|
|
144
|
+
onSelectStoryId: (storyId: string) => void;
|
|
145
|
+
}>;
|
|
146
|
+
|
|
147
|
+
interface ButtonProps extends TouchableOpacityProps {
|
|
148
|
+
asChild?: boolean;
|
|
149
|
+
size?: 'small' | 'medium';
|
|
150
|
+
padding?: 'small' | 'medium';
|
|
151
|
+
variant?: 'outline' | 'solid' | 'ghost';
|
|
152
|
+
disabled?: boolean;
|
|
153
|
+
active?: boolean;
|
|
154
|
+
animation?: 'none' | 'rotate360' | 'glow' | 'jiggle';
|
|
155
|
+
text?: string;
|
|
156
|
+
Icon?: (props: {
|
|
157
|
+
color: string;
|
|
158
|
+
}) => ReactElement;
|
|
159
|
+
}
|
|
160
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<any>>;
|
|
161
|
+
declare const ButtonText: _storybook_react_native_theming.StyledComponent<react_native.TextProps & {
|
|
162
|
+
theme?: useTheme;
|
|
163
|
+
as?: React.ElementType;
|
|
164
|
+
} & {
|
|
165
|
+
variant: ButtonProps["variant"];
|
|
166
|
+
active: ButtonProps["active"];
|
|
167
|
+
}, {}, {
|
|
168
|
+
ref?: React$1.Ref<react_native.Text>;
|
|
169
|
+
}>;
|
|
170
|
+
declare const ButtonIcon: ({ Icon, active, variant, }: {
|
|
171
|
+
Icon: (props: {
|
|
172
|
+
color: string;
|
|
173
|
+
}) => ReactElement;
|
|
174
|
+
variant: ButtonProps["variant"];
|
|
175
|
+
active: ButtonProps["active"];
|
|
176
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
177
|
+
|
|
178
|
+
declare const IconButton: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<unknown>>;
|
|
179
|
+
|
|
180
|
+
type LayoutContextType = {
|
|
181
|
+
isDesktop: boolean;
|
|
182
|
+
isMobile: boolean;
|
|
183
|
+
};
|
|
184
|
+
declare const LayoutProvider: FC<PropsWithChildren>;
|
|
185
|
+
declare const useLayout: () => LayoutContextType;
|
|
186
|
+
|
|
187
|
+
interface ExplorerProps {
|
|
188
|
+
isLoading: boolean;
|
|
189
|
+
isBrowsing: boolean;
|
|
190
|
+
dataset: CombinedDataset;
|
|
191
|
+
selected: Selection;
|
|
192
|
+
setSelection: (selection: Selection) => void;
|
|
193
|
+
}
|
|
194
|
+
declare const Explorer: FC<ExplorerProps>;
|
|
195
|
+
|
|
196
|
+
declare const useCombination: (index: SidebarProps["index"], indexError: SidebarProps["indexError"], previewInitialized: SidebarProps["previewInitialized"], status: SidebarProps["status"], refs: SidebarProps["refs"]) => CombinedDataset;
|
|
197
|
+
interface SidebarProps extends API_LoadedRefData {
|
|
198
|
+
refs: State['refs'];
|
|
199
|
+
status: State['status'];
|
|
200
|
+
storyId?: string;
|
|
201
|
+
refId?: string;
|
|
202
|
+
menuHighlighted?: boolean;
|
|
203
|
+
setSelection: (selection: Selection) => void;
|
|
204
|
+
}
|
|
205
|
+
declare const Sidebar: React__default.NamedExoticComponent<SidebarProps>;
|
|
206
|
+
|
|
207
|
+
declare global {
|
|
208
|
+
interface SymbolConstructor {
|
|
209
|
+
readonly observable: symbol;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface SBBaseType {
|
|
214
|
+
required?: boolean;
|
|
215
|
+
raw?: string;
|
|
216
|
+
}
|
|
217
|
+
type SBScalarType = SBBaseType & {
|
|
218
|
+
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol';
|
|
219
|
+
};
|
|
220
|
+
type SBArrayType = SBBaseType & {
|
|
221
|
+
name: 'array';
|
|
222
|
+
value: SBType;
|
|
223
|
+
};
|
|
224
|
+
type SBObjectType = SBBaseType & {
|
|
225
|
+
name: 'object';
|
|
226
|
+
value: Record<string, SBType>;
|
|
227
|
+
};
|
|
228
|
+
type SBEnumType = SBBaseType & {
|
|
229
|
+
name: 'enum';
|
|
230
|
+
value: (string | number)[];
|
|
231
|
+
};
|
|
232
|
+
type SBIntersectionType = SBBaseType & {
|
|
233
|
+
name: 'intersection';
|
|
234
|
+
value: SBType[];
|
|
235
|
+
};
|
|
236
|
+
type SBUnionType = SBBaseType & {
|
|
237
|
+
name: 'union';
|
|
238
|
+
value: SBType[];
|
|
239
|
+
};
|
|
240
|
+
type SBOtherType = SBBaseType & {
|
|
241
|
+
name: 'other';
|
|
242
|
+
value: string;
|
|
243
|
+
};
|
|
244
|
+
type SBType = SBScalarType | SBEnumType | SBArrayType | SBObjectType | SBIntersectionType | SBUnionType | SBOtherType;
|
|
245
|
+
|
|
246
|
+
type StoryId = string;
|
|
247
|
+
type ComponentId = string;
|
|
248
|
+
type ComponentTitle = string;
|
|
249
|
+
type StoryName = string;
|
|
250
|
+
type Tag = string;
|
|
251
|
+
interface StoryIdentifier {
|
|
252
|
+
componentId: ComponentId;
|
|
253
|
+
title: ComponentTitle;
|
|
254
|
+
/** @deprecated */
|
|
255
|
+
kind: ComponentTitle;
|
|
256
|
+
id: StoryId;
|
|
257
|
+
name: StoryName;
|
|
258
|
+
/** @deprecated */
|
|
259
|
+
story: StoryName;
|
|
260
|
+
tags: Tag[];
|
|
261
|
+
}
|
|
262
|
+
interface Parameters {
|
|
263
|
+
[name: string]: any;
|
|
264
|
+
}
|
|
265
|
+
type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
|
|
266
|
+
type ConditionalTest = {
|
|
267
|
+
truthy?: boolean;
|
|
268
|
+
} | {
|
|
269
|
+
exists: boolean;
|
|
270
|
+
} | {
|
|
271
|
+
eq: any;
|
|
272
|
+
} | {
|
|
273
|
+
neq: any;
|
|
274
|
+
};
|
|
275
|
+
type ConditionalValue = {
|
|
276
|
+
arg: string;
|
|
277
|
+
} | {
|
|
278
|
+
global: string;
|
|
279
|
+
};
|
|
280
|
+
type Conditional = ConditionalValue & ConditionalTest;
|
|
281
|
+
interface ControlBase {
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
/**
|
|
284
|
+
* @see https://storybook.js.org/docs/api/arg-types#controltype
|
|
285
|
+
*/
|
|
286
|
+
type?: ControlType;
|
|
287
|
+
disable?: boolean;
|
|
288
|
+
}
|
|
289
|
+
interface Report {
|
|
290
|
+
type: string;
|
|
291
|
+
version?: number;
|
|
292
|
+
result: unknown;
|
|
293
|
+
status: 'failed' | 'passed' | 'warning';
|
|
294
|
+
}
|
|
295
|
+
interface ReportingAPI {
|
|
296
|
+
reports: Report[];
|
|
297
|
+
addReport: (report: Report) => void;
|
|
298
|
+
}
|
|
299
|
+
type Control = ControlType | false | (ControlBase & (ControlBase | {
|
|
300
|
+
type: 'color';
|
|
301
|
+
/**
|
|
302
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors
|
|
303
|
+
*/
|
|
304
|
+
presetColors?: string[];
|
|
305
|
+
} | {
|
|
306
|
+
type: 'file';
|
|
307
|
+
/**
|
|
308
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlaccept
|
|
309
|
+
*/
|
|
310
|
+
accept?: string;
|
|
311
|
+
} | {
|
|
312
|
+
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select';
|
|
313
|
+
/**
|
|
314
|
+
* @see https://storybook.js.org/docs/api/arg-types#controllabels
|
|
315
|
+
*/
|
|
316
|
+
labels?: {
|
|
317
|
+
[options: string]: string;
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
320
|
+
type: 'number' | 'range';
|
|
321
|
+
/**
|
|
322
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlmax
|
|
323
|
+
*/
|
|
324
|
+
max?: number;
|
|
325
|
+
/**
|
|
326
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlmin
|
|
327
|
+
*/
|
|
328
|
+
min?: number;
|
|
329
|
+
/**
|
|
330
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlstep
|
|
331
|
+
*/
|
|
332
|
+
step?: number;
|
|
333
|
+
}));
|
|
334
|
+
interface InputType {
|
|
335
|
+
/**
|
|
336
|
+
* @see https://storybook.js.org/docs/api/arg-types#control
|
|
337
|
+
*/
|
|
338
|
+
control?: Control;
|
|
339
|
+
/**
|
|
340
|
+
* @see https://storybook.js.org/docs/api/arg-types#description
|
|
341
|
+
*/
|
|
342
|
+
description?: string;
|
|
343
|
+
/**
|
|
344
|
+
* @see https://storybook.js.org/docs/api/arg-types#if
|
|
345
|
+
*/
|
|
346
|
+
if?: Conditional;
|
|
347
|
+
/**
|
|
348
|
+
* @see https://storybook.js.org/docs/api/arg-types#mapping
|
|
349
|
+
*/
|
|
350
|
+
mapping?: {
|
|
351
|
+
[key: string]: any;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* @see https://storybook.js.org/docs/api/arg-types#name
|
|
355
|
+
*/
|
|
356
|
+
name?: string;
|
|
357
|
+
/**
|
|
358
|
+
* @see https://storybook.js.org/docs/api/arg-types#options
|
|
359
|
+
*/
|
|
360
|
+
options?: readonly any[];
|
|
361
|
+
/**
|
|
362
|
+
* @see https://storybook.js.org/docs/api/arg-types#table
|
|
363
|
+
*/
|
|
364
|
+
table?: {
|
|
365
|
+
[key: string]: unknown;
|
|
366
|
+
/**
|
|
367
|
+
* @see https://storybook.js.org/docs/api/arg-types#tablecategory
|
|
368
|
+
*/
|
|
369
|
+
category?: string;
|
|
370
|
+
/**
|
|
371
|
+
* @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue
|
|
372
|
+
*/
|
|
373
|
+
defaultValue?: {
|
|
374
|
+
summary?: string;
|
|
375
|
+
detail?: string;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* @see https://storybook.js.org/docs/api/arg-types#tabledisable
|
|
379
|
+
*/
|
|
380
|
+
disable?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* @see https://storybook.js.org/docs/api/arg-types#tablesubcategory
|
|
383
|
+
*/
|
|
384
|
+
subcategory?: string;
|
|
385
|
+
/**
|
|
386
|
+
* @see https://storybook.js.org/docs/api/arg-types#tabletype
|
|
387
|
+
*/
|
|
388
|
+
type?: {
|
|
389
|
+
summary?: string;
|
|
390
|
+
detail?: string;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* @see https://storybook.js.org/docs/api/arg-types#type
|
|
395
|
+
*/
|
|
396
|
+
type?: SBType | SBScalarType['name'];
|
|
397
|
+
/**
|
|
398
|
+
* @see https://storybook.js.org/docs/api/arg-types#defaultvalue
|
|
399
|
+
*
|
|
400
|
+
* @deprecated Use `table.defaultValue.summary` instead.
|
|
401
|
+
*/
|
|
402
|
+
defaultValue?: any;
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
}
|
|
405
|
+
interface StrictInputType extends InputType {
|
|
406
|
+
name: string;
|
|
407
|
+
type?: SBType;
|
|
408
|
+
}
|
|
409
|
+
interface Args {
|
|
410
|
+
[name: string]: any;
|
|
411
|
+
}
|
|
412
|
+
type StrictArgTypes<TArgs = Args> = {
|
|
413
|
+
[name in keyof TArgs]: StrictInputType;
|
|
414
|
+
};
|
|
415
|
+
interface Globals {
|
|
416
|
+
[name: string]: any;
|
|
417
|
+
}
|
|
418
|
+
interface Renderer {
|
|
419
|
+
/** What is the type of the `component` annotation in this renderer? */
|
|
420
|
+
component: unknown;
|
|
421
|
+
/** What does the story function return in this renderer? */
|
|
422
|
+
storyResult: unknown;
|
|
423
|
+
/** What type of element does this renderer render to? */
|
|
424
|
+
canvasElement: unknown;
|
|
425
|
+
mount(): Promise<Canvas>;
|
|
426
|
+
T?: unknown;
|
|
427
|
+
}
|
|
428
|
+
interface StoryContextForEnhancers<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryIdentifier {
|
|
429
|
+
component?: (TRenderer & {
|
|
430
|
+
T: any;
|
|
431
|
+
})['component'];
|
|
432
|
+
subcomponents?: Record<string, (TRenderer & {
|
|
433
|
+
T: any;
|
|
434
|
+
})['component']>;
|
|
435
|
+
parameters: Parameters;
|
|
436
|
+
initialArgs: TArgs;
|
|
437
|
+
argTypes: StrictArgTypes<TArgs>;
|
|
438
|
+
}
|
|
439
|
+
interface StoryContextUpdate<TArgs = Args> {
|
|
440
|
+
args?: TArgs;
|
|
441
|
+
globals?: Globals;
|
|
442
|
+
[key: string]: any;
|
|
443
|
+
}
|
|
444
|
+
type ViewMode = 'story' | 'docs';
|
|
445
|
+
interface Canvas {
|
|
446
|
+
}
|
|
447
|
+
interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContextForEnhancers<TRenderer, TArgs>, Required<StoryContextUpdate<TArgs>> {
|
|
448
|
+
loaded: Record<string, any>;
|
|
449
|
+
abortSignal: AbortSignal;
|
|
450
|
+
canvasElement: TRenderer['canvasElement'];
|
|
451
|
+
hooks: unknown;
|
|
452
|
+
originalStoryFn: StoryFn<TRenderer>;
|
|
453
|
+
viewMode: ViewMode;
|
|
454
|
+
step: StepFunction<TRenderer, TArgs>;
|
|
455
|
+
context: this;
|
|
456
|
+
canvas: Canvas;
|
|
457
|
+
mount: TRenderer['mount'];
|
|
458
|
+
reporting: ReportingAPI;
|
|
459
|
+
}
|
|
460
|
+
/** @deprecated Use {@link StoryContext} instead. */
|
|
461
|
+
interface PlayFunctionContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContext<TRenderer, TArgs> {
|
|
462
|
+
}
|
|
463
|
+
type StepLabel = string;
|
|
464
|
+
type StepFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (label: StepLabel, play: PlayFunction<TRenderer, TArgs>) => Promise<void> | void;
|
|
465
|
+
type PlayFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: PlayFunctionContext<TRenderer, TArgs>) => Promise<void> | void;
|
|
466
|
+
type LegacyStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => TRenderer['storyResult'];
|
|
467
|
+
type ArgsStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (args: TArgs, context: StoryContext<TRenderer, TArgs>) => (TRenderer & {
|
|
468
|
+
T: TArgs;
|
|
469
|
+
})['storyResult'];
|
|
470
|
+
type StoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = LegacyStoryFn<TRenderer, TArgs> | ArgsStoryFn<TRenderer, TArgs>;
|
|
471
|
+
|
|
62
472
|
interface Storage {
|
|
63
473
|
getItem: (key: string) => Promise<string | null>;
|
|
64
474
|
setItem: (key: string, value: string) => Promise<void>;
|
|
@@ -74,7 +484,7 @@ declare const LiteUI: ({ storage, theme, storyHash, story, children, }: {
|
|
|
74
484
|
storyHash: API_IndexHash | undefined;
|
|
75
485
|
story?: StoryContext<ReactRenderer, Args>;
|
|
76
486
|
children: ReactNode | ReactNode[];
|
|
77
|
-
}) =>
|
|
487
|
+
}) => ReactElement;
|
|
78
488
|
declare const Layout: ({ storyHash, story, children, }: {
|
|
79
489
|
storyHash: API_IndexHash | undefined;
|
|
80
490
|
story?: StoryContext<ReactRenderer, Args>;
|
|
@@ -91,4 +501,4 @@ declare const transformStoryIndexToStoriesHash: (input: API_PreparedStoryIndex |
|
|
|
91
501
|
declare const transformStoryIndexV2toV3: (index: StoryIndexV2) => StoryIndexV3;
|
|
92
502
|
declare const transformStoryIndexV3toV4: (index: StoryIndexV3) => API_PreparedStoryIndex;
|
|
93
503
|
|
|
94
|
-
export { CombinedDataset, Dataset, ExpandType, GetSearchItemProps, Highlight, Item, ItemRef, Layout, LiteUI, RefType, Refs, SearchChildrenFn, SearchItem, SearchResult, SearchResultProps, Selection, Storage, StorageProvider, StoryRef, isExpandType, transformStoryIndexToStoriesHash, transformStoryIndexV2toV3, transformStoryIndexV3toV4, useStorage };
|
|
504
|
+
export { Button, ButtonIcon, ButtonProps, ButtonText, CombinedDataset, ComponentNode, Dataset, ExpandType, Explorer, ExplorerProps, GetSearchItemProps, GroupNode, Highlight, IconButton, Item, ItemRef, Layout, LayoutProvider, LeafNodeStyleWrapper, LiteUI, Node, NodeProps$1 as NodeProps, RefType, Refs, RootNode, RootNodeText, SearchChildrenFn, SearchItem, SearchResult, SearchResultProps, Selection, Sidebar, SidebarProps, Storage, StorageProvider, StoryNode, StoryRef, Tree, isExpandType, transformStoryIndexToStoriesHash, transformStoryIndexV2toV3, transformStoryIndexV3toV4, useCombination, useLayout, useStorage };
|