@storybook/react-native-ui 9.0.0-alpha.2 → 9.0.0-beta.1
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 +3 -5
- package/dist/index.js +3735 -22818
- package/package.json +6 -5
- package/src/Layout.tsx +1 -4
- package/src/Search.tsx +8 -15
- package/src/Sidebar.stories.tsx +4 -40
- package/src/Sidebar.tsx +1 -7
- package/src/Tree.stories.tsx +37 -0
- package/src/Tree.tsx +1 -5
- package/src/types.ts +3 -3
- package/src/util/status.tsx +34 -16
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { View, PressableProps, TouchableOpacityProps } from 'react-native';
|
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { FC, ComponentProps, ReactElement, PropsWithChildren, ReactNode } from 'react';
|
|
6
6
|
import { State, StoriesHash, API } from 'storybook/internal/manager-api';
|
|
7
|
-
import {
|
|
7
|
+
import { StatusesByStoryIdAndTypeId, StatusValue, API_LoadedRefData, API_IndexHash, StoryContext, Args, API_PreparedStoryIndex, StoryIndexV2, StoryIndexV3, API_Provider, DocsOptions } from 'storybook/internal/types';
|
|
8
8
|
import * as Fuse from 'fuse.js';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import { SvgProps } from 'react-native-svg';
|
|
@@ -44,7 +44,7 @@ declare const StoryNode: React__default.MemoExoticComponent<React__default.Forwa
|
|
|
44
44
|
|
|
45
45
|
type Refs = State['refs'];
|
|
46
46
|
type RefType = Refs[keyof Refs] & {
|
|
47
|
-
|
|
47
|
+
allStatuses?: StatusesByStoryIdAndTypeId;
|
|
48
48
|
};
|
|
49
49
|
type Item = StoriesHash[keyof StoriesHash];
|
|
50
50
|
type Dataset = Record<string, Item>;
|
|
@@ -71,7 +71,7 @@ interface ExpandType {
|
|
|
71
71
|
type SearchItem = Item & {
|
|
72
72
|
refId: string;
|
|
73
73
|
path: string[];
|
|
74
|
-
status?:
|
|
74
|
+
status?: StatusValue;
|
|
75
75
|
showAll?: () => void;
|
|
76
76
|
};
|
|
77
77
|
type SearchResult = Fuse.FuseResult<SearchItem>;
|
|
@@ -193,8 +193,6 @@ declare const useCombination: (index: SidebarProps["index"], indexError: Sidebar
|
|
|
193
193
|
interface SidebarProps extends API_LoadedRefData {
|
|
194
194
|
refs: State['refs'];
|
|
195
195
|
status: State['status'];
|
|
196
|
-
extra: Addon_SidebarTopType[];
|
|
197
|
-
bottom?: Addon_SidebarBottomType[];
|
|
198
196
|
storyId?: string;
|
|
199
197
|
refId?: string;
|
|
200
198
|
menuHighlighted?: boolean;
|