@storybook/react-native-ui-lite 9.0.6 → 9.0.7-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +198 -253
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _storybook_react_native_theming from '@storybook/react-native-theming';
|
|
2
|
-
import { useTheme } from '@storybook/react-native-theming';
|
|
3
2
|
import * as react_native from 'react-native';
|
|
4
3
|
import { View } from 'react-native';
|
|
5
4
|
import React, { FC, ComponentProps, ReactNode } from 'react';
|
|
@@ -15,7 +14,7 @@ interface NodeProps$1 {
|
|
|
15
14
|
isExpanded?: boolean;
|
|
16
15
|
}
|
|
17
16
|
declare const BranchNode: _storybook_react_native_theming.StyledComponent<react_native.TouchableOpacityProps & React.RefAttributes<View> & {
|
|
18
|
-
theme?:
|
|
17
|
+
theme?: _storybook_react_native_theming.Theme;
|
|
19
18
|
as?: React.ElementType;
|
|
20
19
|
} & {
|
|
21
20
|
depth?: number;
|
|
@@ -32,7 +31,7 @@ declare const GroupNode: FC<ComponentProps<typeof BranchNode> & {
|
|
|
32
31
|
}>;
|
|
33
32
|
declare const ComponentNode: FC<ComponentProps<typeof BranchNode>>;
|
|
34
33
|
declare const StoryNode: React.NamedExoticComponent<Omit<react_native.TouchableOpacityProps & React.RefAttributes<View> & {
|
|
35
|
-
theme?:
|
|
34
|
+
theme?: _storybook_react_native_theming.Theme;
|
|
36
35
|
as?: React.ElementType;
|
|
37
36
|
} & {
|
|
38
37
|
depth?: number;
|
|
@@ -58,19 +57,19 @@ interface NodeProps {
|
|
|
58
57
|
}
|
|
59
58
|
declare const Node: React.NamedExoticComponent<NodeProps>;
|
|
60
59
|
declare const LeafNodeStyleWrapper: _storybook_react_native_theming.StyledComponent<react_native.ViewProps & {
|
|
61
|
-
theme?: Theme
|
|
60
|
+
theme?: _storybook_react_native_theming.Theme;
|
|
62
61
|
as?: React.ElementType;
|
|
63
62
|
}, {}, {
|
|
64
63
|
ref?: React.Ref<View>;
|
|
65
64
|
}>;
|
|
66
65
|
declare const RootNode: _storybook_react_native_theming.StyledComponent<react_native.ViewProps & {
|
|
67
|
-
theme?: Theme
|
|
66
|
+
theme?: _storybook_react_native_theming.Theme;
|
|
68
67
|
as?: React.ElementType;
|
|
69
68
|
}, {}, {
|
|
70
69
|
ref?: React.Ref<View>;
|
|
71
70
|
}>;
|
|
72
71
|
declare const RootNodeText: _storybook_react_native_theming.StyledComponent<react_native.TextProps & {
|
|
73
|
-
theme?: Theme
|
|
72
|
+
theme?: _storybook_react_native_theming.Theme;
|
|
74
73
|
as?: React.ElementType;
|
|
75
74
|
}, {}, {
|
|
76
75
|
ref?: React.Ref<react_native.Text>;
|
|
@@ -113,44 +112,37 @@ declare global {
|
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
interface SBBaseType {
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
required?: boolean;
|
|
116
|
+
raw?: string;
|
|
118
117
|
}
|
|
119
118
|
type SBScalarType = SBBaseType & {
|
|
120
|
-
|
|
119
|
+
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol';
|
|
121
120
|
};
|
|
122
121
|
type SBArrayType = SBBaseType & {
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
name: 'array';
|
|
123
|
+
value: SBType;
|
|
125
124
|
};
|
|
126
125
|
type SBObjectType = SBBaseType & {
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
name: 'object';
|
|
127
|
+
value: Record<string, SBType>;
|
|
129
128
|
};
|
|
130
129
|
type SBEnumType = SBBaseType & {
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
name: 'enum';
|
|
131
|
+
value: (string | number)[];
|
|
133
132
|
};
|
|
134
133
|
type SBIntersectionType = SBBaseType & {
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
name: 'intersection';
|
|
135
|
+
value: SBType[];
|
|
137
136
|
};
|
|
138
137
|
type SBUnionType = SBBaseType & {
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
name: 'union';
|
|
139
|
+
value: SBType[];
|
|
141
140
|
};
|
|
142
141
|
type SBOtherType = SBBaseType & {
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
name: 'other';
|
|
143
|
+
value: string;
|
|
145
144
|
};
|
|
146
|
-
type SBType =
|
|
147
|
-
| SBScalarType
|
|
148
|
-
| SBEnumType
|
|
149
|
-
| SBArrayType
|
|
150
|
-
| SBObjectType
|
|
151
|
-
| SBIntersectionType
|
|
152
|
-
| SBUnionType
|
|
153
|
-
| SBOtherType;
|
|
145
|
+
type SBType = SBScalarType | SBEnumType | SBArrayType | SBObjectType | SBIntersectionType | SBUnionType | SBOtherType;
|
|
154
146
|
|
|
155
147
|
type StoryId = string;
|
|
156
148
|
type ComponentId = string;
|
|
@@ -158,272 +150,225 @@ type ComponentTitle = string;
|
|
|
158
150
|
type StoryName = string;
|
|
159
151
|
type Tag = string;
|
|
160
152
|
interface StoryIdentifier {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
153
|
+
componentId: ComponentId;
|
|
154
|
+
title: ComponentTitle;
|
|
155
|
+
/** @deprecated */
|
|
156
|
+
kind: ComponentTitle;
|
|
157
|
+
id: StoryId;
|
|
158
|
+
name: StoryName;
|
|
159
|
+
/** @deprecated */
|
|
160
|
+
story: StoryName;
|
|
161
|
+
tags: Tag[];
|
|
170
162
|
}
|
|
171
163
|
interface Parameters {
|
|
172
|
-
|
|
164
|
+
[name: string]: any;
|
|
173
165
|
}
|
|
174
|
-
type ControlType =
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
type ConditionalTest =
|
|
190
|
-
| {
|
|
191
|
-
truthy?: boolean;
|
|
192
|
-
}
|
|
193
|
-
| {
|
|
194
|
-
exists: boolean;
|
|
195
|
-
}
|
|
196
|
-
| {
|
|
197
|
-
eq: any;
|
|
198
|
-
}
|
|
199
|
-
| {
|
|
200
|
-
neq: any;
|
|
201
|
-
};
|
|
202
|
-
type ConditionalValue =
|
|
203
|
-
| {
|
|
204
|
-
arg: string;
|
|
205
|
-
}
|
|
206
|
-
| {
|
|
207
|
-
global: string;
|
|
208
|
-
};
|
|
166
|
+
type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
|
|
167
|
+
type ConditionalTest = {
|
|
168
|
+
truthy?: boolean;
|
|
169
|
+
} | {
|
|
170
|
+
exists: boolean;
|
|
171
|
+
} | {
|
|
172
|
+
eq: any;
|
|
173
|
+
} | {
|
|
174
|
+
neq: any;
|
|
175
|
+
};
|
|
176
|
+
type ConditionalValue = {
|
|
177
|
+
arg: string;
|
|
178
|
+
} | {
|
|
179
|
+
global: string;
|
|
180
|
+
};
|
|
209
181
|
type Conditional = ConditionalValue & ConditionalTest;
|
|
210
182
|
interface ControlBase {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
/**
|
|
185
|
+
* @see https://storybook.js.org/docs/api/arg-types#controltype
|
|
186
|
+
*/
|
|
187
|
+
type?: ControlType;
|
|
188
|
+
disable?: boolean;
|
|
217
189
|
}
|
|
218
190
|
interface Report {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
191
|
+
type: string;
|
|
192
|
+
version?: number;
|
|
193
|
+
result: unknown;
|
|
194
|
+
status: 'failed' | 'passed' | 'warning';
|
|
223
195
|
}
|
|
224
196
|
interface ReportingAPI {
|
|
225
|
-
|
|
226
|
-
|
|
197
|
+
reports: Report[];
|
|
198
|
+
addReport: (report: Report) => void;
|
|
227
199
|
}
|
|
228
|
-
type Control =
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* @see https://storybook.js.org/docs/api/arg-types#controlmin
|
|
265
|
-
*/
|
|
266
|
-
min?: number;
|
|
267
|
-
/**
|
|
268
|
-
* @see https://storybook.js.org/docs/api/arg-types#controlstep
|
|
269
|
-
*/
|
|
270
|
-
step?: number;
|
|
271
|
-
}
|
|
272
|
-
));
|
|
200
|
+
type Control = ControlType | false | (ControlBase & (ControlBase | {
|
|
201
|
+
type: 'color';
|
|
202
|
+
/**
|
|
203
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors
|
|
204
|
+
*/
|
|
205
|
+
presetColors?: string[];
|
|
206
|
+
} | {
|
|
207
|
+
type: 'file';
|
|
208
|
+
/**
|
|
209
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlaccept
|
|
210
|
+
*/
|
|
211
|
+
accept?: string;
|
|
212
|
+
} | {
|
|
213
|
+
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select';
|
|
214
|
+
/**
|
|
215
|
+
* @see https://storybook.js.org/docs/api/arg-types#controllabels
|
|
216
|
+
*/
|
|
217
|
+
labels?: {
|
|
218
|
+
[options: string]: string;
|
|
219
|
+
};
|
|
220
|
+
} | {
|
|
221
|
+
type: 'number' | 'range';
|
|
222
|
+
/**
|
|
223
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlmax
|
|
224
|
+
*/
|
|
225
|
+
max?: number;
|
|
226
|
+
/**
|
|
227
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlmin
|
|
228
|
+
*/
|
|
229
|
+
min?: number;
|
|
230
|
+
/**
|
|
231
|
+
* @see https://storybook.js.org/docs/api/arg-types#controlstep
|
|
232
|
+
*/
|
|
233
|
+
step?: number;
|
|
234
|
+
}));
|
|
273
235
|
interface InputType {
|
|
274
|
-
/**
|
|
275
|
-
* @see https://storybook.js.org/docs/api/arg-types#control
|
|
276
|
-
*/
|
|
277
|
-
control?: Control;
|
|
278
|
-
/**
|
|
279
|
-
* @see https://storybook.js.org/docs/api/arg-types#description
|
|
280
|
-
*/
|
|
281
|
-
description?: string;
|
|
282
|
-
/**
|
|
283
|
-
* @see https://storybook.js.org/docs/api/arg-types#if
|
|
284
|
-
*/
|
|
285
|
-
if?: Conditional;
|
|
286
|
-
/**
|
|
287
|
-
* @see https://storybook.js.org/docs/api/arg-types#mapping
|
|
288
|
-
*/
|
|
289
|
-
mapping?: {
|
|
290
|
-
[key: string]: any;
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* @see https://storybook.js.org/docs/api/arg-types#name
|
|
294
|
-
*/
|
|
295
|
-
name?: string;
|
|
296
|
-
/**
|
|
297
|
-
* @see https://storybook.js.org/docs/api/arg-types#options
|
|
298
|
-
*/
|
|
299
|
-
options?: readonly any[];
|
|
300
|
-
/**
|
|
301
|
-
* @see https://storybook.js.org/docs/api/arg-types#table
|
|
302
|
-
*/
|
|
303
|
-
table?: {
|
|
304
|
-
[key: string]: unknown;
|
|
305
236
|
/**
|
|
306
|
-
* @see https://storybook.js.org/docs/api/arg-types#
|
|
237
|
+
* @see https://storybook.js.org/docs/api/arg-types#control
|
|
307
238
|
*/
|
|
308
|
-
|
|
239
|
+
control?: Control;
|
|
309
240
|
/**
|
|
310
|
-
* @see https://storybook.js.org/docs/api/arg-types#
|
|
241
|
+
* @see https://storybook.js.org/docs/api/arg-types#description
|
|
311
242
|
*/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
243
|
+
description?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @see https://storybook.js.org/docs/api/arg-types#if
|
|
246
|
+
*/
|
|
247
|
+
if?: Conditional;
|
|
248
|
+
/**
|
|
249
|
+
* @see https://storybook.js.org/docs/api/arg-types#mapping
|
|
250
|
+
*/
|
|
251
|
+
mapping?: {
|
|
252
|
+
[key: string]: any;
|
|
315
253
|
};
|
|
316
254
|
/**
|
|
317
|
-
* @see https://storybook.js.org/docs/api/arg-types#
|
|
255
|
+
* @see https://storybook.js.org/docs/api/arg-types#name
|
|
318
256
|
*/
|
|
319
|
-
|
|
257
|
+
name?: string;
|
|
320
258
|
/**
|
|
321
|
-
* @see https://storybook.js.org/docs/api/arg-types#
|
|
259
|
+
* @see https://storybook.js.org/docs/api/arg-types#options
|
|
322
260
|
*/
|
|
323
|
-
|
|
261
|
+
options?: readonly any[];
|
|
324
262
|
/**
|
|
325
|
-
* @see https://storybook.js.org/docs/api/arg-types#
|
|
263
|
+
* @see https://storybook.js.org/docs/api/arg-types#table
|
|
326
264
|
*/
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
265
|
+
table?: {
|
|
266
|
+
[key: string]: unknown;
|
|
267
|
+
/**
|
|
268
|
+
* @see https://storybook.js.org/docs/api/arg-types#tablecategory
|
|
269
|
+
*/
|
|
270
|
+
category?: string;
|
|
271
|
+
/**
|
|
272
|
+
* @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue
|
|
273
|
+
*/
|
|
274
|
+
defaultValue?: {
|
|
275
|
+
summary?: string;
|
|
276
|
+
detail?: string;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* @see https://storybook.js.org/docs/api/arg-types#tabledisable
|
|
280
|
+
*/
|
|
281
|
+
disable?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* @see https://storybook.js.org/docs/api/arg-types#tablesubcategory
|
|
284
|
+
*/
|
|
285
|
+
subcategory?: string;
|
|
286
|
+
/**
|
|
287
|
+
* @see https://storybook.js.org/docs/api/arg-types#tabletype
|
|
288
|
+
*/
|
|
289
|
+
type?: {
|
|
290
|
+
summary?: string;
|
|
291
|
+
detail?: string;
|
|
292
|
+
};
|
|
330
293
|
};
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
[key: string]: any;
|
|
294
|
+
/**
|
|
295
|
+
* @see https://storybook.js.org/docs/api/arg-types#type
|
|
296
|
+
*/
|
|
297
|
+
type?: SBType | SBScalarType['name'];
|
|
298
|
+
/**
|
|
299
|
+
* @see https://storybook.js.org/docs/api/arg-types#defaultvalue
|
|
300
|
+
*
|
|
301
|
+
* @deprecated Use `table.defaultValue.summary` instead.
|
|
302
|
+
*/
|
|
303
|
+
defaultValue?: any;
|
|
304
|
+
[key: string]: any;
|
|
343
305
|
}
|
|
344
306
|
interface StrictInputType extends InputType {
|
|
345
|
-
|
|
346
|
-
|
|
307
|
+
name: string;
|
|
308
|
+
type?: SBType;
|
|
347
309
|
}
|
|
348
310
|
interface Args {
|
|
349
|
-
|
|
311
|
+
[name: string]: any;
|
|
350
312
|
}
|
|
351
313
|
type StrictArgTypes<TArgs = Args> = {
|
|
352
|
-
|
|
314
|
+
[name in keyof TArgs]: StrictInputType;
|
|
353
315
|
};
|
|
354
316
|
interface Globals {
|
|
355
|
-
|
|
317
|
+
[name: string]: any;
|
|
356
318
|
}
|
|
357
319
|
interface Renderer {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
320
|
+
/** What is the type of the `component` annotation in this renderer? */
|
|
321
|
+
component: unknown;
|
|
322
|
+
/** What does the story function return in this renderer? */
|
|
323
|
+
storyResult: unknown;
|
|
324
|
+
/** What type of element does this renderer render to? */
|
|
325
|
+
canvasElement: unknown;
|
|
326
|
+
mount(): Promise<Canvas>;
|
|
327
|
+
T?: unknown;
|
|
366
328
|
}
|
|
367
|
-
interface StoryContextForEnhancers<TRenderer extends Renderer = Renderer, TArgs = Args>
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
>;
|
|
378
|
-
parameters: Parameters;
|
|
379
|
-
initialArgs: TArgs;
|
|
380
|
-
argTypes: StrictArgTypes<TArgs>;
|
|
329
|
+
interface StoryContextForEnhancers<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryIdentifier {
|
|
330
|
+
component?: (TRenderer & {
|
|
331
|
+
T: any;
|
|
332
|
+
})['component'];
|
|
333
|
+
subcomponents?: Record<string, (TRenderer & {
|
|
334
|
+
T: any;
|
|
335
|
+
})['component']>;
|
|
336
|
+
parameters: Parameters;
|
|
337
|
+
initialArgs: TArgs;
|
|
338
|
+
argTypes: StrictArgTypes<TArgs>;
|
|
381
339
|
}
|
|
382
340
|
interface StoryContextUpdate<TArgs = Args> {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
341
|
+
args?: TArgs;
|
|
342
|
+
globals?: Globals;
|
|
343
|
+
[key: string]: any;
|
|
386
344
|
}
|
|
387
345
|
type ViewMode = 'story' | 'docs';
|
|
388
|
-
interface Canvas {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
reporting: ReportingAPI;
|
|
346
|
+
interface Canvas {
|
|
347
|
+
}
|
|
348
|
+
interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContextForEnhancers<TRenderer, TArgs>, Required<StoryContextUpdate<TArgs>> {
|
|
349
|
+
loaded: Record<string, any>;
|
|
350
|
+
abortSignal: AbortSignal;
|
|
351
|
+
canvasElement: TRenderer['canvasElement'];
|
|
352
|
+
hooks: unknown;
|
|
353
|
+
originalStoryFn: StoryFn<TRenderer>;
|
|
354
|
+
viewMode: ViewMode;
|
|
355
|
+
step: StepFunction<TRenderer, TArgs>;
|
|
356
|
+
context: this;
|
|
357
|
+
canvas: Canvas;
|
|
358
|
+
mount: TRenderer['mount'];
|
|
359
|
+
reporting: ReportingAPI;
|
|
403
360
|
}
|
|
404
361
|
/** @deprecated Use {@link StoryContext} instead. */
|
|
405
|
-
interface PlayFunctionContext<TRenderer extends Renderer = Renderer, TArgs = Args>
|
|
406
|
-
|
|
362
|
+
interface PlayFunctionContext<TRenderer extends Renderer = Renderer, TArgs = Args> extends StoryContext<TRenderer, TArgs> {
|
|
363
|
+
}
|
|
407
364
|
type StepLabel = string;
|
|
408
|
-
type StepFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
context: PlayFunctionContext<TRenderer, TArgs>
|
|
414
|
-
) => Promise<void> | void;
|
|
415
|
-
type LegacyStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (
|
|
416
|
-
context: StoryContext<TRenderer, TArgs>
|
|
417
|
-
) => TRenderer['storyResult'];
|
|
418
|
-
type ArgsStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (
|
|
419
|
-
args: TArgs,
|
|
420
|
-
context: StoryContext<TRenderer, TArgs>
|
|
421
|
-
) => (TRenderer & {
|
|
422
|
-
T: TArgs;
|
|
365
|
+
type StepFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (label: StepLabel, play: PlayFunction<TRenderer, TArgs>) => Promise<void> | void;
|
|
366
|
+
type PlayFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: PlayFunctionContext<TRenderer, TArgs>) => Promise<void> | void;
|
|
367
|
+
type LegacyStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => TRenderer['storyResult'];
|
|
368
|
+
type ArgsStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (args: TArgs, context: StoryContext<TRenderer, TArgs>) => (TRenderer & {
|
|
369
|
+
T: TArgs;
|
|
423
370
|
})['storyResult'];
|
|
424
|
-
type StoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> =
|
|
425
|
-
| LegacyStoryFn<TRenderer, TArgs>
|
|
426
|
-
| ArgsStoryFn<TRenderer, TArgs>;
|
|
371
|
+
type StoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = LegacyStoryFn<TRenderer, TArgs> | ArgsStoryFn<TRenderer, TArgs>;
|
|
427
372
|
|
|
428
373
|
declare const LiteUI: SBUI;
|
|
429
374
|
declare const Layout: ({ storyHash, story, children, }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native-ui-lite",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.7-alpha.0",
|
|
4
4
|
"description": "lightweight ui components for react native storybook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@storybook/react": "^9",
|
|
62
|
-
"@storybook/react-native-theming": "^9.0.
|
|
63
|
-
"@storybook/react-native-ui-common": "^9.0.
|
|
62
|
+
"@storybook/react-native-theming": "^9.0.7-alpha.0",
|
|
63
|
+
"@storybook/react-native-ui-common": "^9.0.7-alpha.0",
|
|
64
64
|
"fuse.js": "^7.0.0",
|
|
65
65
|
"memoizerific": "^1.11.3",
|
|
66
66
|
"polished": "^4.3.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "d65a0e1dfdc78d0e2fef500c124483d93bad3b0c"
|
|
81
81
|
}
|