@storybook/react-native-ui 9.0.0-beta.1 → 9.0.0-beta.11

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _storybook_react_native_theming from '@storybook/react-native-theming';
2
+ import { useTheme } from '@storybook/react-native-theming';
2
3
  import * as react_native from 'react-native';
3
4
  import { View, PressableProps, TouchableOpacityProps } from 'react-native';
4
5
  import * as React$1 from 'react';
@@ -16,7 +17,7 @@ interface NodeProps$1 {
16
17
  isExpanded?: boolean;
17
18
  }
18
19
  declare const BranchNode: _storybook_react_native_theming.StyledComponent<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
19
- theme?: _storybook_react_native_theming.Theme;
20
+ theme?: useTheme;
20
21
  as?: React__default.ElementType;
21
22
  } & {
22
23
  depth?: number;
@@ -32,15 +33,15 @@ declare const GroupNode: FC<ComponentProps<typeof BranchNode> & {
32
33
  isExpandable?: boolean;
33
34
  }>;
34
35
  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> & {
36
- theme?: _storybook_react_native_theming.Theme;
36
+ declare const StoryNode: React__default.NamedExoticComponent<Omit<react_native.TouchableOpacityProps & React__default.RefAttributes<View> & {
37
+ theme?: useTheme;
37
38
  as?: React__default.ElementType;
38
39
  } & {
39
40
  depth?: number;
40
41
  selected?: boolean;
41
42
  } & {
42
43
  ref?: React__default.Ref<any>;
43
- }, "ref"> & React__default.RefAttributes<View>>>;
44
+ }, "ref"> & React__default.RefAttributes<View>>;
44
45
 
45
46
  type Refs = State['refs'];
46
47
  type RefType = Refs[keyof Refs] & {
@@ -116,19 +117,19 @@ interface NodeProps {
116
117
  }
117
118
  declare const Node: React__default.NamedExoticComponent<NodeProps>;
118
119
  declare const LeafNodeStyleWrapper: _storybook_react_native_theming.StyledComponent<react_native.ViewProps & {
119
- theme?: _storybook_react_native_theming.Theme;
120
+ theme?: Theme$1;
120
121
  as?: React__default.ElementType;
121
122
  }, {}, {
122
123
  ref?: React__default.Ref<View>;
123
124
  }>;
124
125
  declare const RootNode: _storybook_react_native_theming.StyledComponent<react_native.ViewProps & {
125
- theme?: _storybook_react_native_theming.Theme;
126
+ theme?: Theme$1;
126
127
  as?: React__default.ElementType;
127
128
  }, {}, {
128
129
  ref?: React__default.Ref<View>;
129
130
  }>;
130
131
  declare const RootNodeText: _storybook_react_native_theming.StyledComponent<react_native.TextProps & {
131
- theme?: _storybook_react_native_theming.Theme;
132
+ theme?: Theme$1;
132
133
  as?: React__default.ElementType;
133
134
  }, {}, {
134
135
  ref?: React__default.Ref<react_native.Text>;
@@ -157,7 +158,7 @@ interface ButtonProps extends TouchableOpacityProps {
157
158
  }
158
159
  declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<any>>;
159
160
  declare const ButtonText: _storybook_react_native_theming.StyledComponent<react_native.TextProps & {
160
- theme?: _storybook_react_native_theming.Theme;
161
+ theme?: useTheme;
161
162
  as?: React.ElementType;
162
163
  } & {
163
164
  variant: ButtonProps["variant"];