@tamagui/react-native-web-lite 1.116.2 → 1.116.4

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 (202) hide show
  1. package/dist/cjs/Batchinator/index.cjs +68 -0
  2. package/dist/cjs/Batchinator/index.js +57 -0
  3. package/dist/cjs/Batchinator/index.js.map +6 -0
  4. package/dist/cjs/Batchinator/index.native.js +92 -0
  5. package/dist/cjs/Batchinator/index.native.js.map +6 -0
  6. package/dist/cjs/FlatList.cjs +196 -0
  7. package/dist/cjs/FlatList.js +193 -0
  8. package/dist/cjs/FlatList.js.map +6 -0
  9. package/dist/cjs/FlatList.native.js +256 -0
  10. package/dist/cjs/FlatList.native.js.map +6 -0
  11. package/dist/cjs/InteractionManager/TaskQueue.cjs +88 -0
  12. package/dist/cjs/InteractionManager/TaskQueue.js +76 -0
  13. package/dist/cjs/InteractionManager/TaskQueue.js.map +6 -0
  14. package/dist/cjs/InteractionManager/TaskQueue.native.js +134 -0
  15. package/dist/cjs/InteractionManager/TaskQueue.native.js.map +6 -0
  16. package/dist/cjs/InteractionManager/index.cjs +114 -0
  17. package/dist/cjs/InteractionManager/index.js +95 -0
  18. package/dist/cjs/InteractionManager/index.js.map +6 -0
  19. package/dist/cjs/InteractionManager/index.native.js +99 -0
  20. package/dist/cjs/InteractionManager/index.native.js.map +6 -0
  21. package/dist/cjs/index.cjs +7 -7
  22. package/dist/cjs/index.js +6 -6
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/cjs/index.native.js +6 -6
  25. package/dist/cjs/index.native.js.map +1 -1
  26. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +138 -0
  27. package/dist/cjs/vendor/react-native/FillRateHelper/index.js +124 -0
  28. package/dist/cjs/vendor/react-native/FillRateHelper/index.js.map +6 -0
  29. package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js +158 -0
  30. package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
  31. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +29 -0
  32. package/dist/cjs/vendor/react-native/Utilities/clamp.js +24 -0
  33. package/dist/cjs/vendor/react-native/Utilities/clamp.js.map +6 -0
  34. package/dist/cjs/vendor/react-native/Utilities/clamp.native.js +25 -0
  35. package/dist/cjs/vendor/react-native/Utilities/clamp.native.js.map +6 -0
  36. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +133 -0
  37. package/dist/cjs/vendor/react-native/ViewabilityHelper.js +144 -0
  38. package/dist/cjs/vendor/react-native/ViewabilityHelper.js.map +6 -0
  39. package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js +199 -0
  40. package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
  41. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
  42. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js +86 -0
  43. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
  44. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js +95 -0
  45. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
  46. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +81 -0
  47. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js +84 -0
  48. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
  49. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js +125 -0
  50. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
  51. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +56 -0
  52. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js +59 -0
  53. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
  54. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js +153 -0
  55. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
  56. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +80 -0
  57. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js +74 -0
  58. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
  59. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +163 -0
  60. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
  61. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +164 -0
  62. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +149 -0
  63. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
  64. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +245 -0
  65. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
  66. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +84 -0
  67. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js +72 -0
  68. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
  69. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +85 -0
  70. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
  71. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +16 -0
  72. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js +14 -0
  73. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
  74. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +15 -0
  75. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
  76. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +1003 -0
  77. package/dist/cjs/vendor/react-native/VirtualizedList/index.js +1021 -0
  78. package/dist/cjs/vendor/react-native/VirtualizedList/index.js.map +6 -0
  79. package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js +1075 -0
  80. package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
  81. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +41 -0
  82. package/dist/cjs/vendor/react-native/deepDiffer/index.js +47 -0
  83. package/dist/cjs/vendor/react-native/deepDiffer/index.js.map +6 -0
  84. package/dist/cjs/vendor/react-native/deepDiffer/index.native.js +48 -0
  85. package/dist/cjs/vendor/react-native/deepDiffer/index.native.js.map +6 -0
  86. package/dist/esm/Batchinator/index.js +33 -0
  87. package/dist/esm/Batchinator/index.js.map +6 -0
  88. package/dist/esm/Batchinator/index.mjs +34 -0
  89. package/dist/esm/Batchinator/index.mjs.map +1 -0
  90. package/dist/esm/Batchinator/index.native.js +67 -0
  91. package/dist/esm/Batchinator/index.native.js.map +6 -0
  92. package/dist/esm/FlatList.js +176 -0
  93. package/dist/esm/FlatList.js.map +6 -0
  94. package/dist/esm/FlatList.mjs +162 -0
  95. package/dist/esm/FlatList.mjs.map +1 -0
  96. package/dist/esm/FlatList.native.js +238 -0
  97. package/dist/esm/FlatList.native.js.map +6 -0
  98. package/dist/esm/InteractionManager/TaskQueue.js +60 -0
  99. package/dist/esm/InteractionManager/TaskQueue.js.map +6 -0
  100. package/dist/esm/InteractionManager/TaskQueue.mjs +65 -0
  101. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
  102. package/dist/esm/InteractionManager/TaskQueue.native.js +117 -0
  103. package/dist/esm/InteractionManager/TaskQueue.native.js.map +6 -0
  104. package/dist/esm/InteractionManager/index.js +73 -0
  105. package/dist/esm/InteractionManager/index.js.map +6 -0
  106. package/dist/esm/InteractionManager/index.mjs +80 -0
  107. package/dist/esm/InteractionManager/index.mjs.map +1 -0
  108. package/dist/esm/InteractionManager/index.native.js +77 -0
  109. package/dist/esm/InteractionManager/index.native.js.map +6 -0
  110. package/dist/esm/index.js +2 -2
  111. package/dist/esm/index.mjs +2 -2
  112. package/dist/esm/index.native.js +2 -2
  113. package/dist/esm/vendor/react-native/FillRateHelper/index.js +108 -0
  114. package/dist/esm/vendor/react-native/FillRateHelper/index.js.map +6 -0
  115. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +115 -0
  116. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
  117. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +141 -0
  118. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
  119. package/dist/esm/vendor/react-native/Utilities/clamp.js +8 -0
  120. package/dist/esm/vendor/react-native/Utilities/clamp.js.map +6 -0
  121. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +6 -0
  122. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
  123. package/dist/esm/vendor/react-native/Utilities/clamp.native.js +8 -0
  124. package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +6 -0
  125. package/dist/esm/vendor/react-native/ViewabilityHelper.js +128 -0
  126. package/dist/esm/vendor/react-native/ViewabilityHelper.js.map +6 -0
  127. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +110 -0
  128. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
  129. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +182 -0
  130. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
  131. package/dist/esm/vendor/react-native/VirtualizeUtils/index.js +70 -0
  132. package/dist/esm/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
  133. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
  134. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
  135. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +71 -0
  136. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
  137. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js +68 -0
  138. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
  139. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +58 -0
  140. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
  141. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +104 -0
  142. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
  143. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js +43 -0
  144. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
  145. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +33 -0
  146. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
  147. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +136 -0
  148. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
  149. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js +51 -0
  150. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
  151. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +46 -0
  152. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
  153. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +139 -0
  154. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
  155. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +132 -0
  156. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
  157. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +130 -0
  158. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
  159. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +224 -0
  160. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
  161. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js +50 -0
  162. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
  163. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +47 -0
  164. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
  165. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +56 -0
  166. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
  167. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js +1 -0
  168. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
  169. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +2 -0
  170. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
  171. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +1 -0
  172. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
  173. package/dist/esm/vendor/react-native/VirtualizedList/index.js +1016 -0
  174. package/dist/esm/vendor/react-native/VirtualizedList/index.js.map +6 -0
  175. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +969 -0
  176. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
  177. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +1065 -0
  178. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
  179. package/dist/esm/vendor/react-native/deepDiffer/index.js +31 -0
  180. package/dist/esm/vendor/react-native/deepDiffer/index.js.map +6 -0
  181. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +18 -0
  182. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
  183. package/dist/esm/vendor/react-native/deepDiffer/index.native.js +31 -0
  184. package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +6 -0
  185. package/package.json +6 -6
  186. package/src/Batchinator/index.tsx +78 -0
  187. package/src/FlatList.tsx +330 -0
  188. package/src/InteractionManager/TaskQueue.tsx +114 -0
  189. package/src/InteractionManager/index.tsx +139 -0
  190. package/src/index.tsx +2 -2
  191. package/src/vendor/react-native/FillRateHelper/index.tsx +218 -0
  192. package/src/vendor/react-native/Utilities/clamp.ts +21 -0
  193. package/src/vendor/react-native/ViewabilityHelper.ts +291 -0
  194. package/src/vendor/react-native/VirtualizeUtils/index.tsx +212 -0
  195. package/src/vendor/react-native/VirtualizedList/CellRenderMask.ts +147 -0
  196. package/src/vendor/react-native/VirtualizedList/ChildListCollection.tsx +73 -0
  197. package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.tsx +79 -0
  198. package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx +210 -0
  199. package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx +116 -0
  200. package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.ts +130 -0
  201. package/src/vendor/react-native/VirtualizedList/index.tsx +1797 -0
  202. package/src/vendor/react-native/deepDiffer/index.tsx +56 -0
@@ -0,0 +1,149 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var VirtualizedListCellRenderer_exports = {};
24
+ __export(VirtualizedListCellRenderer_exports, {
25
+ default: () => CellRenderer
26
+ });
27
+ module.exports = __toCommonJS(VirtualizedListCellRenderer_exports);
28
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react = __toESM(require("react")), import_VirtualizedListContext = require("./VirtualizedListContext"), import_View = __toESM(require("../../../View")), import_jsx_runtime = require("react/jsx-runtime");
29
+ class CellRenderer extends import_react.default.Component {
30
+ state = {
31
+ separatorProps: {
32
+ highlighted: !1,
33
+ leadingItem: this.props.item
34
+ }
35
+ };
36
+ static getDerivedStateFromProps(props, prevState) {
37
+ return {
38
+ separatorProps: {
39
+ ...prevState.separatorProps,
40
+ leadingItem: props.item
41
+ }
42
+ };
43
+ }
44
+ _separators = {
45
+ highlight: () => {
46
+ const { cellKey, prevCellKey } = this.props;
47
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
48
+ highlighted: !0
49
+ });
50
+ },
51
+ unhighlight: () => {
52
+ const { cellKey, prevCellKey } = this.props;
53
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
54
+ highlighted: !1
55
+ });
56
+ },
57
+ updateProps: (select, newProps) => {
58
+ const { cellKey, prevCellKey } = this.props;
59
+ this.props.onUpdateSeparators(
60
+ [select === "leading" ? prevCellKey || null : cellKey],
61
+ newProps
62
+ );
63
+ }
64
+ };
65
+ updateSeparatorProps(newProps) {
66
+ this.setState((state) => ({
67
+ separatorProps: { ...state.separatorProps, ...newProps }
68
+ }));
69
+ }
70
+ componentWillUnmount() {
71
+ this.props.onUnmount(this.props.cellKey);
72
+ }
73
+ _onLayout = (nativeEvent) => {
74
+ this.props.onCellLayout && this.props.onCellLayout(nativeEvent, this.props.cellKey, this.props.index);
75
+ };
76
+ _renderElement(renderItem, ListItemComponent, item, index) {
77
+ if (renderItem && ListItemComponent && console.warn(
78
+ "VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."
79
+ ), ListItemComponent)
80
+ return import_react.default.createElement(ListItemComponent, {
81
+ item,
82
+ index,
83
+ separators: this._separators
84
+ });
85
+ if (renderItem)
86
+ return renderItem({
87
+ item,
88
+ index,
89
+ separators: this._separators
90
+ });
91
+ (0, import_react_native_web_internals.invariant)(
92
+ !1,
93
+ "VirtualizedList: Either ListItemComponent or renderItem props are required but none were found."
94
+ );
95
+ }
96
+ render() {
97
+ const {
98
+ CellRendererComponent,
99
+ ItemSeparatorComponent,
100
+ ListItemComponent,
101
+ cellKey,
102
+ horizontal,
103
+ item,
104
+ index,
105
+ inversionStyle,
106
+ onCellFocusCapture,
107
+ onCellLayout,
108
+ renderItem
109
+ } = this.props, element = this._renderElement(renderItem, ListItemComponent, item, index), itemSeparator = import_react.default.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemSeparatorComponent, { ...this.state.separatorProps }), cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
110
+ CellRendererComponent,
111
+ {
112
+ cellKey,
113
+ index,
114
+ item,
115
+ style: cellStyle,
116
+ onFocusCapture: onCellFocusCapture,
117
+ ...onCellLayout && { onLayout: this._onLayout },
118
+ children: [
119
+ element,
120
+ itemSeparator
121
+ ]
122
+ }
123
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
124
+ import_View.default,
125
+ {
126
+ style: cellStyle,
127
+ onFocusCapture: onCellFocusCapture,
128
+ ...onCellLayout && { onLayout: this._onLayout },
129
+ children: [
130
+ element,
131
+ itemSeparator
132
+ ]
133
+ }
134
+ );
135
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_VirtualizedListContext.VirtualizedListCellContextProvider, { cellKey: this.props.cellKey, children: result });
136
+ }
137
+ }
138
+ const styles = import_react_native_web_internals.StyleSheet.create({
139
+ row: {
140
+ flexDirection: "row"
141
+ },
142
+ rowReverse: {
143
+ flexDirection: "row-reverse"
144
+ },
145
+ columnReverse: {
146
+ flexDirection: "column-reverse"
147
+ }
148
+ });
149
+ //# sourceMappingURL=VirtualizedListCellRenderer.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx"],
4
+ "mappings": "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",
5
+ "names": ["React", "View"]
6
+ }
@@ -0,0 +1,245 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: !0 });
10
+ }, __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
+ mod
23
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
+ var VirtualizedListCellRenderer_exports = {};
25
+ __export(VirtualizedListCellRenderer_exports, {
26
+ default: () => CellRenderer
27
+ });
28
+ module.exports = __toCommonJS(VirtualizedListCellRenderer_exports);
29
+ var import_jsx_runtime = require("react/jsx-runtime"), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react = __toESM(require("react")), import_VirtualizedListContext = require("./VirtualizedListContext"), import_View = __toESM(require("../../../View"));
30
+ function _assert_this_initialized(self) {
31
+ if (self === void 0)
32
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
33
+ return self;
34
+ }
35
+ function _call_super(_this, derived, args) {
36
+ return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
37
+ }
38
+ function _class_call_check(instance, Constructor) {
39
+ if (!(instance instanceof Constructor))
40
+ throw new TypeError("Cannot call a class as a function");
41
+ }
42
+ function _defineProperties(target, props) {
43
+ for (var i = 0; i < props.length; i++) {
44
+ var descriptor = props[i];
45
+ descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
46
+ }
47
+ }
48
+ function _create_class(Constructor, protoProps, staticProps) {
49
+ return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
50
+ }
51
+ function _define_property(obj, key, value) {
52
+ return key in obj ? Object.defineProperty(obj, key, {
53
+ value,
54
+ enumerable: !0,
55
+ configurable: !0,
56
+ writable: !0
57
+ }) : obj[key] = value, obj;
58
+ }
59
+ function _get_prototype_of(o) {
60
+ return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
61
+ return o2.__proto__ || Object.getPrototypeOf(o2);
62
+ }, _get_prototype_of(o);
63
+ }
64
+ function _inherits(subClass, superClass) {
65
+ if (typeof superClass != "function" && superClass !== null)
66
+ throw new TypeError("Super expression must either be null or a function");
67
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
68
+ constructor: {
69
+ value: subClass,
70
+ writable: !0,
71
+ configurable: !0
72
+ }
73
+ }), superClass && _set_prototype_of(subClass, superClass);
74
+ }
75
+ function _possible_constructor_return(self, call) {
76
+ return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
77
+ }
78
+ function _set_prototype_of(o, p) {
79
+ return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
80
+ return o2.__proto__ = p2, o2;
81
+ }, _set_prototype_of(o, p);
82
+ }
83
+ function _type_of(obj) {
84
+ "@swc/helpers - typeof";
85
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
86
+ }
87
+ function _is_native_reflect_construct() {
88
+ try {
89
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
90
+ }));
91
+ } catch {
92
+ }
93
+ return (_is_native_reflect_construct = function() {
94
+ return !!result;
95
+ })();
96
+ }
97
+ var CellRenderer = /* @__PURE__ */ function(_React_Component) {
98
+ "use strict";
99
+ _inherits(CellRenderer2, _React_Component);
100
+ function CellRenderer2() {
101
+ _class_call_check(this, CellRenderer2);
102
+ var _this;
103
+ return _this = _call_super(this, CellRenderer2, arguments), _define_property(_this, "state", {
104
+ separatorProps: {
105
+ highlighted: !1,
106
+ leadingItem: _this.props.item
107
+ }
108
+ }), _define_property(_this, "_separators", {
109
+ highlight: function() {
110
+ var { cellKey, prevCellKey } = _this.props;
111
+ _this.props.onUpdateSeparators([
112
+ cellKey,
113
+ prevCellKey || null
114
+ ], {
115
+ highlighted: !0
116
+ });
117
+ },
118
+ unhighlight: function() {
119
+ var { cellKey, prevCellKey } = _this.props;
120
+ _this.props.onUpdateSeparators([
121
+ cellKey,
122
+ prevCellKey || null
123
+ ], {
124
+ highlighted: !1
125
+ });
126
+ },
127
+ updateProps: function(select, newProps) {
128
+ var { cellKey, prevCellKey } = _this.props;
129
+ _this.props.onUpdateSeparators([
130
+ select === "leading" ? prevCellKey || null : cellKey
131
+ ], newProps);
132
+ }
133
+ }), _define_property(_this, "_onLayout", function(nativeEvent) {
134
+ _this.props.onCellLayout && _this.props.onCellLayout(nativeEvent, _this.props.cellKey, _this.props.index);
135
+ }), _this;
136
+ }
137
+ return _create_class(CellRenderer2, [
138
+ {
139
+ key: "updateSeparatorProps",
140
+ value: function(newProps) {
141
+ this.setState(function(state) {
142
+ return {
143
+ separatorProps: {
144
+ ...state.separatorProps,
145
+ ...newProps
146
+ }
147
+ };
148
+ });
149
+ }
150
+ },
151
+ {
152
+ key: "componentWillUnmount",
153
+ value: function() {
154
+ this.props.onUnmount(this.props.cellKey);
155
+ }
156
+ },
157
+ {
158
+ key: "_renderElement",
159
+ value: function(renderItem, ListItemComponent, item, index) {
160
+ if (renderItem && ListItemComponent && console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."), ListItemComponent)
161
+ return /* @__PURE__ */ import_react.default.createElement(ListItemComponent, {
162
+ item,
163
+ index,
164
+ separators: this._separators
165
+ });
166
+ if (renderItem)
167
+ return renderItem({
168
+ item,
169
+ index,
170
+ separators: this._separators
171
+ });
172
+ (0, import_react_native_web_internals.invariant)(!1, "VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.");
173
+ }
174
+ },
175
+ {
176
+ key: "render",
177
+ value: function() {
178
+ var { CellRendererComponent, ItemSeparatorComponent, ListItemComponent, cellKey, horizontal, item, index, inversionStyle, onCellFocusCapture, onCellLayout, renderItem } = this.props, element = this._renderElement(renderItem, ListItemComponent, item, index), itemSeparator = /* @__PURE__ */ import_react.default.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemSeparatorComponent, {
179
+ ...this.state.separatorProps
180
+ }), cellStyle = inversionStyle ? horizontal ? [
181
+ styles.rowReverse,
182
+ inversionStyle
183
+ ] : [
184
+ styles.columnReverse,
185
+ inversionStyle
186
+ ] : horizontal ? [
187
+ styles.row,
188
+ inversionStyle
189
+ ] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CellRendererComponent, {
190
+ cellKey,
191
+ index,
192
+ item,
193
+ style: cellStyle,
194
+ onFocusCapture: onCellFocusCapture,
195
+ ...onCellLayout && {
196
+ onLayout: this._onLayout
197
+ },
198
+ children: [
199
+ element,
200
+ itemSeparator
201
+ ]
202
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_View.default, {
203
+ style: cellStyle,
204
+ // @ts-ignore
205
+ onFocusCapture: onCellFocusCapture,
206
+ ...onCellLayout && {
207
+ onLayout: this._onLayout
208
+ },
209
+ children: [
210
+ element,
211
+ itemSeparator
212
+ ]
213
+ });
214
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_VirtualizedListContext.VirtualizedListCellContextProvider, {
215
+ cellKey: this.props.cellKey,
216
+ children: result
217
+ });
218
+ }
219
+ }
220
+ ], [
221
+ {
222
+ key: "getDerivedStateFromProps",
223
+ value: function(props, prevState) {
224
+ return {
225
+ separatorProps: {
226
+ ...prevState.separatorProps,
227
+ leadingItem: props.item
228
+ }
229
+ };
230
+ }
231
+ }
232
+ ]), CellRenderer2;
233
+ }(import_react.default.Component);
234
+ var styles = import_react_native_web_internals.StyleSheet.create({
235
+ row: {
236
+ flexDirection: "row"
237
+ },
238
+ rowReverse: {
239
+ flexDirection: "row-reverse"
240
+ },
241
+ columnReverse: {
242
+ flexDirection: "column-reverse"
243
+ }
244
+ });
245
+ //# sourceMappingURL=VirtualizedListCellRenderer.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx"],
4
+ "mappings": "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",
5
+ "names": ["CellRenderer", "state", "separatorProps", "highlighted", "leadingItem", "props", "item", "_separators", "highlight", "cellKey", "prevCellKey", "onUpdateSeparators", "unhighlight", "updateProps", "select", "newProps", "_onLayout", "nativeEvent", "onCellLayout", "index", "updateSeparatorProps", "setState", "componentWillUnmount", "onUnmount", "_renderElement", "renderItem", "ListItemComponent", "console", "warn", "React", "createElement", "separators", "invariant", "render", "CellRendererComponent", "ItemSeparatorComponent", "horizontal", "inversionStyle", "onCellFocusCapture", "element", "itemSeparator", "isValidElement", "_jsx", "cellStyle", "styles", "rowReverse", "columnReverse", "row", "result", "_jsxs", "style", "onFocusCapture", "onLayout", "View", "VirtualizedListCellContextProvider", "getDerivedStateFromProps", "prevState", "Component", "styles", "StyleSheet", "create", "row", "flexDirection", "rowReverse", "columnReverse"]
6
+ }
@@ -0,0 +1,84 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var VirtualizedListContext_exports = {};
33
+ __export(VirtualizedListContext_exports, {
34
+ VirtualizedListCellContextProvider: () => VirtualizedListCellContextProvider,
35
+ VirtualizedListContext: () => VirtualizedListContext,
36
+ VirtualizedListContextProvider: () => VirtualizedListContextProvider,
37
+ VirtualizedListContextResetter: () => VirtualizedListContextResetter
38
+ });
39
+ module.exports = __toCommonJS(VirtualizedListContext_exports);
40
+ var React = __toESM(require("react")),
41
+ import_react = require("react"),
42
+ import_jsx_runtime = require("react/jsx-runtime");
43
+ const __DEV__ = process.env.NODE_ENV !== "production",
44
+ VirtualizedListContext = React.createContext(null);
45
+ __DEV__ && (VirtualizedListContext.displayName = "VirtualizedListContext");
46
+ function VirtualizedListContextResetter({
47
+ children
48
+ }) {
49
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, {
50
+ value: null,
51
+ children
52
+ });
53
+ }
54
+ function VirtualizedListContextProvider({
55
+ children,
56
+ value
57
+ }) {
58
+ const context = (0, import_react.useMemo)(() => ({
59
+ cellKey: null,
60
+ getScrollMetrics: value.getScrollMetrics,
61
+ horizontal: value.horizontal,
62
+ getOutermostParentListRef: value.getOutermostParentListRef,
63
+ registerAsNestedChild: value.registerAsNestedChild,
64
+ unregisterAsNestedChild: value.unregisterAsNestedChild
65
+ }), [value.getScrollMetrics, value.horizontal, value.getOutermostParentListRef, value.registerAsNestedChild, value.unregisterAsNestedChild]);
66
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, {
67
+ value: context,
68
+ children
69
+ });
70
+ }
71
+ function VirtualizedListCellContextProvider({
72
+ cellKey,
73
+ children
74
+ }) {
75
+ const currContext = (0, import_react.useContext)(VirtualizedListContext),
76
+ context = (0, import_react.useMemo)(() => currContext == null ? null : {
77
+ ...currContext,
78
+ cellKey
79
+ }, [currContext, cellKey]);
80
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, {
81
+ value: context,
82
+ children
83
+ });
84
+ }
@@ -0,0 +1,72 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var VirtualizedListContext_exports = {};
24
+ __export(VirtualizedListContext_exports, {
25
+ VirtualizedListCellContextProvider: () => VirtualizedListCellContextProvider,
26
+ VirtualizedListContext: () => VirtualizedListContext,
27
+ VirtualizedListContextProvider: () => VirtualizedListContextProvider,
28
+ VirtualizedListContextResetter: () => VirtualizedListContextResetter
29
+ });
30
+ module.exports = __toCommonJS(VirtualizedListContext_exports);
31
+ var React = __toESM(require("react")), import_react = require("react"), import_jsx_runtime = require("react/jsx-runtime");
32
+ const __DEV__ = process.env.NODE_ENV !== "production", VirtualizedListContext = React.createContext(null);
33
+ __DEV__ && (VirtualizedListContext.displayName = "VirtualizedListContext");
34
+ function VirtualizedListContextResetter({
35
+ children
36
+ }) {
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, { value: null, children });
38
+ }
39
+ function VirtualizedListContextProvider({
40
+ children,
41
+ value
42
+ }) {
43
+ const context = (0, import_react.useMemo)(
44
+ () => ({
45
+ cellKey: null,
46
+ getScrollMetrics: value.getScrollMetrics,
47
+ horizontal: value.horizontal,
48
+ getOutermostParentListRef: value.getOutermostParentListRef,
49
+ registerAsNestedChild: value.registerAsNestedChild,
50
+ unregisterAsNestedChild: value.unregisterAsNestedChild
51
+ }),
52
+ [
53
+ value.getScrollMetrics,
54
+ value.horizontal,
55
+ value.getOutermostParentListRef,
56
+ value.registerAsNestedChild,
57
+ value.unregisterAsNestedChild
58
+ ]
59
+ );
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, { value: context, children });
61
+ }
62
+ function VirtualizedListCellContextProvider({
63
+ cellKey,
64
+ children
65
+ }) {
66
+ const currContext = (0, import_react.useContext)(VirtualizedListContext), context = (0, import_react.useMemo)(
67
+ () => currContext == null ? null : { ...currContext, cellKey },
68
+ [currContext, cellKey]
69
+ );
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, { value: context, children });
71
+ }
72
+ //# sourceMappingURL=VirtualizedListContext.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,YAAuB,2BACvB,eAAoC,kBA2ChC;AAzCJ,MAAM,UAAU,QAAQ,IAAI,aAAa,cA2B5B,yBAAyB,MAAM,cAA8B,IAAI;AAC1E,YACF,uBAAuB,cAAc;AAMhC,SAAS,+BAA+B;AAAA,EAC7C;AACF,GAEoB;AAClB,SACE,4CAAC,uBAAuB,UAAvB,EAAgC,OAAO,MACrC,UACH;AAEJ;AAKO,SAAS,+BAA+B;AAAA,EAC7C;AAAA,EACA;AACF,GAGoB;AAElB,QAAM,cAAU;AAAA,IACd,OAAO;AAAA,MACL,SAAS;AAAA,MACT,kBAAkB,MAAM;AAAA,MACxB,YAAY,MAAM;AAAA,MAClB,2BAA2B,MAAM;AAAA,MACjC,uBAAuB,MAAM;AAAA,MAC7B,yBAAyB,MAAM;AAAA,IACjC;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AACA,SACE,4CAAC,uBAAuB,UAAvB,EAAgC,OAAO,SACrC,UACH;AAEJ;AAKO,SAAS,mCAAmC;AAAA,EACjD;AAAA,EACA;AACF,GAGoB;AAElB,QAAM,kBAAc,yBAAW,sBAAsB,GAC/C,cAAU;AAAA,IACd,MAAO,eAAe,OAAO,OAAO,EAAE,GAAG,aAAa,QAAQ;AAAA,IAC9D,CAAC,aAAa,OAAO;AAAA,EACvB;AACA,SACE,4CAAC,uBAAuB,UAAvB,EAAgC,OAAO,SACrC,UACH;AAEJ;",
5
+ "names": []
6
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: !0 });
10
+ }, __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
+ mod
23
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
+ var VirtualizedListContext_exports = {};
25
+ __export(VirtualizedListContext_exports, {
26
+ VirtualizedListCellContextProvider: () => VirtualizedListCellContextProvider,
27
+ VirtualizedListContext: () => VirtualizedListContext,
28
+ VirtualizedListContextProvider: () => VirtualizedListContextProvider,
29
+ VirtualizedListContextResetter: () => VirtualizedListContextResetter
30
+ });
31
+ module.exports = __toCommonJS(VirtualizedListContext_exports);
32
+ var import_jsx_runtime = require("react/jsx-runtime"), React = __toESM(require("react")), import_react = require("react"), __DEV__ = process.env.NODE_ENV !== "production", VirtualizedListContext = /* @__PURE__ */ React.createContext(null);
33
+ __DEV__ && (VirtualizedListContext.displayName = "VirtualizedListContext");
34
+ function VirtualizedListContextResetter(param) {
35
+ var { children } = param;
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, {
37
+ value: null,
38
+ children
39
+ });
40
+ }
41
+ function VirtualizedListContextProvider(param) {
42
+ var { children, value } = param, context = (0, import_react.useMemo)(function() {
43
+ return {
44
+ cellKey: null,
45
+ getScrollMetrics: value.getScrollMetrics,
46
+ horizontal: value.horizontal,
47
+ getOutermostParentListRef: value.getOutermostParentListRef,
48
+ registerAsNestedChild: value.registerAsNestedChild,
49
+ unregisterAsNestedChild: value.unregisterAsNestedChild
50
+ };
51
+ }, [
52
+ value.getScrollMetrics,
53
+ value.horizontal,
54
+ value.getOutermostParentListRef,
55
+ value.registerAsNestedChild,
56
+ value.unregisterAsNestedChild
57
+ ]);
58
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, {
59
+ value: context,
60
+ children
61
+ });
62
+ }
63
+ function VirtualizedListCellContextProvider(param) {
64
+ var { cellKey, children } = param, currContext = (0, import_react.useContext)(VirtualizedListContext), context = (0, import_react.useMemo)(function() {
65
+ return currContext == null ? null : {
66
+ ...currContext,
67
+ cellKey
68
+ };
69
+ }, [
70
+ currContext,
71
+ cellKey
72
+ ]);
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VirtualizedListContext.Provider, {
74
+ value: context,
75
+ children
76
+ });
77
+ }
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ VirtualizedListCellContextProvider,
81
+ VirtualizedListContext,
82
+ VirtualizedListContextProvider,
83
+ VirtualizedListContextResetter
84
+ });
85
+ //# sourceMappingURL=VirtualizedListContext.js.map