@storybook/react-native-ui-lite 10.4.5 → 10.4.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-ui-lite",
3
- "version": "10.4.5",
3
+ "version": "10.4.6",
4
4
  "description": "lightweight ui components for react native storybook",
5
5
  "keywords": [
6
6
  "react",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "main": "dist/index.js",
21
- "react-native": "src/index.tsx",
21
+ "react-native": "dist/index.js",
22
22
  "types": "dist/index.d.ts",
23
23
  "files": [
24
24
  "dist/**/*",
@@ -30,17 +30,17 @@
30
30
  "dependencies": {
31
31
  "@gorhom/portal": "^1.0.14",
32
32
  "@nozbe/microfuzz": "^1.0.0",
33
- "@storybook/react": "^10.4.4",
34
- "@storybook/react-native-theming": "^10.4.5",
35
- "@storybook/react-native-ui-common": "^10.4.5",
33
+ "@legendapp/list": "^3.0.6",
34
+ "@storybook/react": "^10.4.6",
35
+ "@storybook/react-native-theming": "^10.4.6",
36
+ "@storybook/react-native-ui-common": "^10.4.6",
36
37
  "polished": "^4.3.1"
37
38
  },
38
39
  "devDependencies": {
39
- "@legendapp/list": "^3.0.2",
40
40
  "@types/react": "~19.2.14",
41
- "storybook": "^10.4.4",
42
- "ts-dedent": "^2.2.0",
43
- "tsdown": "^0.22.0",
41
+ "storybook": "^10.4.6",
42
+ "ts-dedent": "^2.3.0",
43
+ "tsdown": "^0.22.3",
44
44
  "typescript": "~6.0.3"
45
45
  },
46
46
  "peerDependencies": {
@@ -1,4 +1,4 @@
1
- import { LegendList } from './LegendList';
1
+ import { LegendList } from '@legendapp/list/react-native';
2
2
  import { styled, useTheme } from '@storybook/react-native-theming';
3
3
  import type {
4
4
  GetSearchItemProps,
package/src/Tree.tsx CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from '@storybook/react-native-ui-common';
13
13
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
14
14
  import { View, ViewStyle } from 'react-native';
15
- import { LegendList, LegendListRef, LegendListRenderItemProps } from './LegendList';
15
+ import { LegendList, LegendListRef, LegendListRenderItemProps } from '@legendapp/list/react-native';
16
16
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
17
17
  import { useSelectedNode } from './SelectedNodeProvider';
18
18
  import { useDrawerKeyboardInset } from './DrawerKeyboardInsetContext';
@@ -1,14 +0,0 @@
1
- import { LegendList as LegendListWeb } from '@legendapp/list/react';
2
- import {
3
- LegendList as LegendListNative,
4
- LegendListRef as LegendListRefNative,
5
- LegendListRenderItemProps as LegendListRenderItemPropsNative,
6
- } from '@legendapp/list/react-native';
7
- import { Platform } from 'react-native';
8
-
9
- export type LegendListRenderItemProps<T> = LegendListRenderItemPropsNative<T>;
10
- export type LegendListRef = LegendListRefNative;
11
-
12
- const isWeb = Platform.OS === 'web';
13
-
14
- export const LegendList = (isWeb ? LegendListWeb : LegendListNative) as typeof LegendListNative;