@storybook/react-native-ui 8.5.5-alpha.2 → 8.5.5-alpha.3
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 +10 -11
- package/dist/index.js +333 -284
- package/package.json +3 -3
- package/src/Layout.tsx +20 -17
- package/src/MobileMenuDrawer.tsx +19 -5
- package/src/SelectedNodeProvider.tsx +34 -0
- package/src/Tree.tsx +15 -4
- package/src/TreeNode.tsx +24 -19
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _storybook_react_native_theming from '@storybook/react-native-theming';
|
|
2
2
|
import * as react_native from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
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/core/manager-api';
|
|
@@ -15,7 +15,7 @@ interface NodeProps$1 {
|
|
|
15
15
|
isExpandable?: boolean;
|
|
16
16
|
isExpanded?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const BranchNode: _storybook_react_native_theming.StyledComponent<react_native.TouchableOpacityProps & React__default.RefAttributes<
|
|
18
|
+
declare const BranchNode: _storybook_react_native_theming.StyledComponent<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
|
|
19
19
|
theme?: _storybook_react_native_theming.Theme;
|
|
20
20
|
as?: React__default.ElementType;
|
|
21
21
|
} & {
|
|
@@ -27,21 +27,20 @@ declare const BranchNode: _storybook_react_native_theming.StyledComponent<react_
|
|
|
27
27
|
}, {}, {
|
|
28
28
|
ref?: React__default.Ref<any>;
|
|
29
29
|
}>;
|
|
30
|
-
declare const
|
|
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.MemoExoticComponent<React__default.ForwardRefExoticComponent<Omit<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
|
|
31
36
|
theme?: _storybook_react_native_theming.Theme;
|
|
32
37
|
as?: React__default.ElementType;
|
|
33
38
|
} & {
|
|
34
39
|
depth?: number;
|
|
35
40
|
selected?: boolean;
|
|
36
|
-
}
|
|
41
|
+
} & {
|
|
37
42
|
ref?: React__default.Ref<any>;
|
|
38
|
-
}
|
|
39
|
-
declare const GroupNode: FC<ComponentProps<typeof BranchNode> & {
|
|
40
|
-
isExpanded?: boolean;
|
|
41
|
-
isExpandable?: boolean;
|
|
42
|
-
}>;
|
|
43
|
-
declare const ComponentNode: FC<ComponentProps<typeof BranchNode>>;
|
|
44
|
-
declare const StoryNode: FC<ComponentProps<typeof LeafNode>>;
|
|
43
|
+
}, "ref"> & React__default.RefAttributes<View>>>;
|
|
45
44
|
|
|
46
45
|
type Refs = State['refs'];
|
|
47
46
|
type RefType = Refs[keyof Refs] & {
|