@legendapp/list 3.0.0-beta.32 → 3.0.0-beta.34

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.
Files changed (54) hide show
  1. package/README.md +7 -1
  2. package/animated.d.ts +605 -6
  3. package/animated.js +2 -2
  4. package/animated.mjs +1 -1
  5. package/index.d.ts +503 -118
  6. package/index.js +607 -275
  7. package/index.mjs +607 -275
  8. package/index.native.js +348 -189
  9. package/index.native.mjs +347 -188
  10. package/keyboard-controller.d.ts +616 -6
  11. package/keyboard-controller.js +2 -2
  12. package/keyboard-controller.mjs +1 -1
  13. package/keyboard.d.ts +204 -8
  14. package/keyboard.js +68 -53
  15. package/keyboard.mjs +71 -55
  16. package/{index.d.mts → list-react-native.d.ts} +138 -42
  17. package/list-react-native.js +4348 -0
  18. package/list-react-native.mjs +4318 -0
  19. package/{index.native.d.mts → list-react.d.ts} +195 -42
  20. package/list-react.js +4709 -0
  21. package/list-react.mjs +4679 -0
  22. package/package.json +52 -1
  23. package/reanimated.d.ts +605 -7
  24. package/reanimated.js +180 -12
  25. package/reanimated.mjs +177 -9
  26. package/section-list.d.ts +615 -14
  27. package/section-list.js +6 -6
  28. package/section-list.mjs +1 -1
  29. package/animated.d.mts +0 -9
  30. package/animated.native.d.mts +0 -9
  31. package/animated.native.d.ts +0 -9
  32. package/animated.native.js +0 -9
  33. package/animated.native.mjs +0 -7
  34. package/index.native.d.ts +0 -817
  35. package/keyboard-controller.d.mts +0 -12
  36. package/keyboard-controller.native.d.mts +0 -12
  37. package/keyboard-controller.native.d.ts +0 -12
  38. package/keyboard-controller.native.js +0 -69
  39. package/keyboard-controller.native.mjs +0 -48
  40. package/keyboard.d.mts +0 -13
  41. package/keyboard.native.d.mts +0 -13
  42. package/keyboard.native.d.ts +0 -13
  43. package/keyboard.native.js +0 -399
  44. package/keyboard.native.mjs +0 -377
  45. package/reanimated.d.mts +0 -18
  46. package/reanimated.native.d.mts +0 -18
  47. package/reanimated.native.d.ts +0 -18
  48. package/reanimated.native.js +0 -89
  49. package/reanimated.native.mjs +0 -65
  50. package/section-list.d.mts +0 -112
  51. package/section-list.native.d.mts +0 -112
  52. package/section-list.native.d.ts +0 -112
  53. package/section-list.native.js +0 -293
  54. package/section-list.native.mjs +0 -271
package/section-list.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var reactNative = require('react-native');
5
- var list = require('@legendapp/list');
4
+ var reactNative$1 = require('react-native');
5
+ var reactNative = require('@legendapp/list/react-native');
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -139,8 +139,8 @@ function resolveSeparatorComponent(component, props) {
139
139
  const Component = component;
140
140
  return /* @__PURE__ */ React__namespace.createElement(Component, { ...props });
141
141
  }
142
- var SectionList = list.typedMemo(
143
- list.typedForwardRef(function SectionListInner(props, ref) {
142
+ var SectionList = reactNative.typedMemo(
143
+ reactNative.typedForwardRef(function SectionListInner(props, ref) {
144
144
  const {
145
145
  sections,
146
146
  renderItem: renderItemProp,
@@ -148,7 +148,7 @@ var SectionList = list.typedMemo(
148
148
  renderSectionFooter,
149
149
  ItemSeparatorComponent,
150
150
  SectionSeparatorComponent,
151
- stickySectionHeadersEnabled = reactNative.Platform.OS === "ios",
151
+ stickySectionHeadersEnabled = reactNative$1.Platform.OS === "ios",
152
152
  keyExtractor,
153
153
  extraData,
154
154
  onViewableItemsChanged,
@@ -273,7 +273,7 @@ var SectionList = list.typedMemo(
273
273
  [scrollToLocation]
274
274
  );
275
275
  return /* @__PURE__ */ React__namespace.createElement(
276
- list.LegendList,
276
+ reactNative.LegendList,
277
277
  {
278
278
  ...restProps,
279
279
  columnWrapperStyle: void 0,
package/section-list.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Platform } from 'react-native';
3
- import { typedMemo, typedForwardRef, LegendList } from '@legendapp/list';
3
+ import { typedMemo, typedForwardRef, LegendList } from '@legendapp/list/react-native';
4
4
 
5
5
  // src/section-list/SectionList.tsx
6
6
 
package/animated.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import * as _legendapp_list from '@legendapp/list';
2
- import * as React from 'react';
3
- import { Animated } from 'react-native';
4
-
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
- displayName?: string;
7
- }>;
8
-
9
- export { AnimatedLegendList };
@@ -1,9 +0,0 @@
1
- import * as _legendapp_list from '@legendapp/list';
2
- import * as React from 'react';
3
- import { Animated } from 'react-native';
4
-
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
- displayName?: string;
7
- }>;
8
-
9
- export { AnimatedLegendList };
@@ -1,9 +0,0 @@
1
- import * as _legendapp_list from '@legendapp/list';
2
- import * as React from 'react';
3
- import { Animated } from 'react-native';
4
-
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
- displayName?: string;
7
- }>;
8
-
9
- export { AnimatedLegendList };
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var reactNative = require('react-native');
4
- var list = require('@legendapp/list');
5
-
6
- // src/integrations/animated.tsx
7
- var AnimatedLegendList = reactNative.Animated.createAnimatedComponent(list.LegendList);
8
-
9
- exports.AnimatedLegendList = AnimatedLegendList;
@@ -1,7 +0,0 @@
1
- import { Animated } from 'react-native';
2
- import { LegendList } from '@legendapp/list';
3
-
4
- // src/integrations/animated.tsx
5
- var AnimatedLegendList = Animated.createAnimatedComponent(LegendList);
6
-
7
- export { AnimatedLegendList };