@storybook/react-native-ui 10.4.0 → 10.4.1-canary-20260510001247
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 +109 -91
- package/dist/index.js +1725 -2048
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,118 +1,136 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { StoryContext, Args } from 'storybook/internal/csf';
|
|
1
|
+
import * as _$react_native0 from "react-native";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import * as _$_storybook_react_native_theming0 from "@storybook/react-native-theming";
|
|
4
|
+
import React, { ComponentProps, FC, ReactNode } from "react";
|
|
5
|
+
import { State, StoriesHash } from "storybook/manager-api";
|
|
6
|
+
import { CombinedDataset, ExpandAction, Item, SBUI, Selection } from "@storybook/react-native-ui-common";
|
|
7
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
|
+
import { API_IndexHash, API_LoadedRefData } from "storybook/internal/types";
|
|
9
|
+
import { ReactRenderer } from "@storybook/react";
|
|
10
|
+
import { Args, StoryContext } from "storybook/internal/csf";
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
//#region src/TreeNode.d.ts
|
|
13
|
+
interface NodeProps {
|
|
14
|
+
children: React.ReactNode | React.ReactNode[];
|
|
15
|
+
isExpandable?: boolean;
|
|
16
|
+
isExpanded?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const BranchNode:
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
declare const BranchNode: _$_storybook_react_native_theming0.StyledComponent<_$react_native0.TouchableOpacityProps & React.RefAttributes<View> & {
|
|
19
|
+
theme?: _$_storybook_react_native_theming0.Theme;
|
|
20
|
+
as?: React.ElementType;
|
|
21
21
|
} & {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
depth?: number;
|
|
23
|
+
isExpandable?: boolean;
|
|
24
|
+
isExpanded?: boolean;
|
|
25
|
+
isComponent?: boolean;
|
|
26
|
+
isSelected?: boolean;
|
|
27
27
|
}, {}, {
|
|
28
|
-
|
|
28
|
+
ref?: React.Ref<any>;
|
|
29
29
|
}>;
|
|
30
30
|
declare const GroupNode: FC<ComponentProps<typeof BranchNode> & {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
isExpanded?: boolean;
|
|
32
|
+
isExpandable?: boolean;
|
|
33
33
|
}>;
|
|
34
34
|
declare const ComponentNode: FC<ComponentProps<typeof BranchNode>>;
|
|
35
|
-
declare const StoryNode: React.NamedExoticComponent<Omit<
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
declare const StoryNode: React.NamedExoticComponent<Omit<_$react_native0.TouchableOpacityProps & React.RefAttributes<View> & {
|
|
36
|
+
theme?: _$_storybook_react_native_theming0.Theme;
|
|
37
|
+
as?: React.ElementType;
|
|
38
38
|
} & {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
depth?: number;
|
|
40
|
+
selected?: boolean;
|
|
41
41
|
} & {
|
|
42
|
-
|
|
42
|
+
ref?: React.Ref<any>;
|
|
43
43
|
}, "ref"> & React.RefAttributes<View>>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/Tree.d.ts
|
|
46
|
+
interface NodeProps$1 {
|
|
47
|
+
item: Item;
|
|
48
|
+
refId: string;
|
|
49
|
+
docsMode: boolean;
|
|
50
|
+
isOrphan: boolean;
|
|
51
|
+
isDisplayed: boolean;
|
|
52
|
+
color: string | undefined;
|
|
53
|
+
isSelected: boolean;
|
|
54
|
+
isFullyExpanded?: boolean;
|
|
55
|
+
isExpanded: boolean;
|
|
56
|
+
setExpanded: (action: ExpandAction) => void;
|
|
57
|
+
setFullyExpanded?: () => void;
|
|
58
|
+
onSelectStoryId: (itemId: string) => void;
|
|
59
|
+
status: State['status'][keyof State['status']];
|
|
59
60
|
}
|
|
60
|
-
declare const Node: React.NamedExoticComponent<NodeProps>;
|
|
61
|
-
declare const LeafNodeStyleWrapper:
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
declare const Node: React.NamedExoticComponent<NodeProps$1>;
|
|
62
|
+
declare const LeafNodeStyleWrapper: _$_storybook_react_native_theming0.StyledComponent<_$react_native0.ViewProps & {
|
|
63
|
+
theme?: _$_storybook_react_native_theming0.Theme;
|
|
64
|
+
as?: React.ElementType;
|
|
64
65
|
}, {}, {
|
|
65
|
-
|
|
66
|
+
ref?: React.Ref<View>;
|
|
66
67
|
}>;
|
|
67
|
-
declare const RootNode:
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
declare const RootNode: _$_storybook_react_native_theming0.StyledComponent<_$react_native0.ViewProps & {
|
|
69
|
+
theme?: _$_storybook_react_native_theming0.Theme;
|
|
70
|
+
as?: React.ElementType;
|
|
70
71
|
}, {}, {
|
|
71
|
-
|
|
72
|
+
ref?: React.Ref<View>;
|
|
72
73
|
}>;
|
|
73
|
-
declare const RootNodeText:
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
declare const RootNodeText: _$_storybook_react_native_theming0.StyledComponent<_$react_native0.TextProps & {
|
|
75
|
+
theme?: _$_storybook_react_native_theming0.Theme;
|
|
76
|
+
as?: React.ElementType;
|
|
76
77
|
}, {}, {
|
|
77
|
-
|
|
78
|
+
ref?: React.Ref<_$react_native0.Text>;
|
|
78
79
|
}>;
|
|
79
80
|
declare const Tree: React.NamedExoticComponent<{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
isBrowsing: boolean;
|
|
82
|
+
isMain: boolean;
|
|
83
|
+
status?: State["status"];
|
|
84
|
+
refId: string;
|
|
85
|
+
data: StoriesHash;
|
|
86
|
+
docsMode: boolean;
|
|
87
|
+
selectedStoryId: string | null;
|
|
88
|
+
onSelectStoryId: (storyId: string) => void;
|
|
88
89
|
}>;
|
|
89
|
-
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/Explorer.d.ts
|
|
90
92
|
interface ExplorerProps {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
isLoading: boolean;
|
|
94
|
+
isBrowsing: boolean;
|
|
95
|
+
dataset: CombinedDataset;
|
|
96
|
+
selected: Selection;
|
|
97
|
+
setSelection: (selection: Selection) => void;
|
|
96
98
|
}
|
|
97
99
|
declare const Explorer: FC<ExplorerProps>;
|
|
98
|
-
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/Sidebar.d.ts
|
|
99
102
|
declare const useCombination: (index: SidebarProps["index"], indexError: SidebarProps["indexError"], previewInitialized: SidebarProps["previewInitialized"], status: SidebarProps["status"], refs: SidebarProps["refs"]) => CombinedDataset;
|
|
100
103
|
interface SidebarProps extends API_LoadedRefData {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
refs: State['refs'];
|
|
105
|
+
status: State['status'];
|
|
106
|
+
storyId?: string;
|
|
107
|
+
refId?: string;
|
|
108
|
+
menuHighlighted?: boolean;
|
|
109
|
+
setSelection: (selection: Selection) => void;
|
|
107
110
|
}
|
|
108
|
-
declare const Sidebar: React.
|
|
109
|
-
|
|
111
|
+
declare const Sidebar: React.MemoExoticComponent<({
|
|
112
|
+
storyId,
|
|
113
|
+
refId,
|
|
114
|
+
index,
|
|
115
|
+
indexError,
|
|
116
|
+
status,
|
|
117
|
+
previewInitialized,
|
|
118
|
+
refs,
|
|
119
|
+
setSelection
|
|
120
|
+
}: SidebarProps) => _$react_jsx_runtime0.JSX.Element>;
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/Layout.d.ts
|
|
110
123
|
declare const FullUI: SBUI;
|
|
111
|
-
declare const Layout: ({
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
124
|
+
declare const Layout: ({
|
|
125
|
+
storyHash,
|
|
126
|
+
story,
|
|
127
|
+
storyBackgroundColor,
|
|
128
|
+
children
|
|
129
|
+
}: {
|
|
130
|
+
storyHash: API_IndexHash | undefined;
|
|
131
|
+
story?: StoryContext<ReactRenderer, Args>;
|
|
132
|
+
storyBackgroundColor?: string;
|
|
133
|
+
children: ReactNode | ReactNode[];
|
|
134
|
+
}) => _$react_jsx_runtime0.JSX.Element;
|
|
135
|
+
//#endregion
|
|
136
|
+
export { ComponentNode, Explorer, ExplorerProps, FullUI, GroupNode, Layout, LeafNodeStyleWrapper, Node, NodeProps, RootNode, RootNodeText, Sidebar, SidebarProps, StoryNode, Tree, useCombination };
|