@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,132 @@
1
+ import {
2
+ invariant,
3
+ StyleSheet
4
+ } from "@tamagui/react-native-web-internals";
5
+ import React from "react";
6
+ import { VirtualizedListCellContextProvider } from "./VirtualizedListContext";
7
+ import View from "../../../View";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ class CellRenderer extends React.Component {
10
+ state = {
11
+ separatorProps: {
12
+ highlighted: !1,
13
+ leadingItem: this.props.item
14
+ }
15
+ };
16
+ static getDerivedStateFromProps(props, prevState) {
17
+ return {
18
+ separatorProps: {
19
+ ...prevState.separatorProps,
20
+ leadingItem: props.item
21
+ }
22
+ };
23
+ }
24
+ _separators = {
25
+ highlight: () => {
26
+ const { cellKey, prevCellKey } = this.props;
27
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
28
+ highlighted: !0
29
+ });
30
+ },
31
+ unhighlight: () => {
32
+ const { cellKey, prevCellKey } = this.props;
33
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
34
+ highlighted: !1
35
+ });
36
+ },
37
+ updateProps: (select, newProps) => {
38
+ const { cellKey, prevCellKey } = this.props;
39
+ this.props.onUpdateSeparators(
40
+ [select === "leading" ? prevCellKey || null : cellKey],
41
+ newProps
42
+ );
43
+ }
44
+ };
45
+ updateSeparatorProps(newProps) {
46
+ this.setState((state) => ({
47
+ separatorProps: { ...state.separatorProps, ...newProps }
48
+ }));
49
+ }
50
+ componentWillUnmount() {
51
+ this.props.onUnmount(this.props.cellKey);
52
+ }
53
+ _onLayout = (nativeEvent) => {
54
+ this.props.onCellLayout && this.props.onCellLayout(nativeEvent, this.props.cellKey, this.props.index);
55
+ };
56
+ _renderElement(renderItem, ListItemComponent, item, index) {
57
+ if (renderItem && ListItemComponent && console.warn(
58
+ "VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."
59
+ ), ListItemComponent)
60
+ return React.createElement(ListItemComponent, {
61
+ item,
62
+ index,
63
+ separators: this._separators
64
+ });
65
+ if (renderItem)
66
+ return renderItem({
67
+ item,
68
+ index,
69
+ separators: this._separators
70
+ });
71
+ invariant(
72
+ !1,
73
+ "VirtualizedList: Either ListItemComponent or renderItem props are required but none were found."
74
+ );
75
+ }
76
+ render() {
77
+ const {
78
+ CellRendererComponent,
79
+ ItemSeparatorComponent,
80
+ ListItemComponent,
81
+ cellKey,
82
+ horizontal,
83
+ item,
84
+ index,
85
+ inversionStyle,
86
+ onCellFocusCapture,
87
+ onCellLayout,
88
+ renderItem
89
+ } = this.props, element = this._renderElement(renderItem, ListItemComponent, item, index), itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /* @__PURE__ */ jsx(ItemSeparatorComponent, { ...this.state.separatorProps }), cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ jsxs(
90
+ CellRendererComponent,
91
+ {
92
+ cellKey,
93
+ index,
94
+ item,
95
+ style: cellStyle,
96
+ onFocusCapture: onCellFocusCapture,
97
+ ...onCellLayout && { onLayout: this._onLayout },
98
+ children: [
99
+ element,
100
+ itemSeparator
101
+ ]
102
+ }
103
+ ) : /* @__PURE__ */ jsxs(
104
+ View,
105
+ {
106
+ style: cellStyle,
107
+ onFocusCapture: onCellFocusCapture,
108
+ ...onCellLayout && { onLayout: this._onLayout },
109
+ children: [
110
+ element,
111
+ itemSeparator
112
+ ]
113
+ }
114
+ );
115
+ return /* @__PURE__ */ jsx(VirtualizedListCellContextProvider, { cellKey: this.props.cellKey, children: result });
116
+ }
117
+ }
118
+ const styles = StyleSheet.create({
119
+ row: {
120
+ flexDirection: "row"
121
+ },
122
+ rowReverse: {
123
+ flexDirection: "row-reverse"
124
+ },
125
+ columnReverse: {
126
+ flexDirection: "column-reverse"
127
+ }
128
+ });
129
+ export {
130
+ CellRenderer as default
131
+ };
132
+ //# sourceMappingURL=VirtualizedListCellRenderer.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx"],
4
+ "mappings": "AACA;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AAGP,OAAO,WAAW;AAClB,SAAS,0CAA0C;AACnD,OAAO,UAAU;AAoJP,cAUJ,YAVI;AAjHV,MAAO,qBAA0C,MAAM,UAGrD;AAAA,EACA,QAAsB;AAAA,IACpB,gBAAgB;AAAA,MACd,aAAa;AAAA,MACb,aAAa,KAAK,MAAM;AAAA,IAC1B;AAAA,EACF;AAAA,EAEA,OAAO,yBACL,OACA,WACqB;AACrB,WAAO;AAAA,MACL,gBAAgB;AAAA,QACd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KAAK;AAAA,MACnB,CAAC;AAGH;AAAA,MACE;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EAEA,SAA0B;AACxB,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI,KAAK,OACH,UAAU,KAAK,eAAe,YAAY,mBAAmB,MAAM,KAAK,GAExE,gBAAiC,MAAM,eAAe,sBAAsB,IAC9E,yBACA,0BACE,oBAAC,0BAAwB,GAAG,KAAK,MAAM,gBAAgB,GAEvD,YAAY,iBACd,aACE,CAAC,OAAO,YAAY,cAAc,IAClC,CAAC,OAAO,eAAe,cAAc,IACvC,aACE,CAAC,OAAO,KAAK,cAAc,IAC3B,gBACA,SAAU,wBAWd;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO;AAAA,QACP,gBAAgB;AAAA,QACf,GAAI,gBAAgB,EAAE,UAAU,KAAK,UAAU;AAAA,QAE/C;AAAA;AAAA,UACA;AAAA;AAAA;AAAA,IACH,IApBA;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QAEP,gBAAgB;AAAA,QACf,GAAI,gBAAgB,EAAE,UAAU,KAAK,UAAU;AAAA,QAE/C;AAAA;AAAA,UACA;AAAA;AAAA;AAAA,IACH;AAeF,WACE,oBAAC,sCAAmC,SAAS,KAAK,MAAM,SACrD,kBACH;AAAA,EAEJ;AACF;AAEA,MAAM,SAAS,WAAW,OAAO;AAAA,EAC/B,KAAK;AAAA,IACH,eAAe;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,IACV,eAAe;AAAA,EACjB;AAAA,EACA,eAAe;AAAA,IACb,eAAe;AAAA,EACjB;AACF,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,130 @@
1
+ import { invariant, StyleSheet } from "@tamagui/react-native-web-internals";
2
+ import React from "react";
3
+ import { VirtualizedListCellContextProvider } from "./VirtualizedListContext.mjs";
4
+ import View from "../../../View";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ class CellRenderer extends React.Component {
7
+ state = {
8
+ separatorProps: {
9
+ highlighted: !1,
10
+ leadingItem: this.props.item
11
+ }
12
+ };
13
+ static getDerivedStateFromProps(props, prevState) {
14
+ return {
15
+ separatorProps: {
16
+ ...prevState.separatorProps,
17
+ leadingItem: props.item
18
+ }
19
+ };
20
+ }
21
+ _separators = {
22
+ highlight: () => {
23
+ const {
24
+ cellKey,
25
+ prevCellKey
26
+ } = this.props;
27
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
28
+ highlighted: !0
29
+ });
30
+ },
31
+ unhighlight: () => {
32
+ const {
33
+ cellKey,
34
+ prevCellKey
35
+ } = this.props;
36
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
37
+ highlighted: !1
38
+ });
39
+ },
40
+ updateProps: (select, newProps) => {
41
+ const {
42
+ cellKey,
43
+ prevCellKey
44
+ } = this.props;
45
+ this.props.onUpdateSeparators([select === "leading" ? prevCellKey || null : cellKey], newProps);
46
+ }
47
+ };
48
+ updateSeparatorProps(newProps) {
49
+ this.setState(state => ({
50
+ separatorProps: {
51
+ ...state.separatorProps,
52
+ ...newProps
53
+ }
54
+ }));
55
+ }
56
+ componentWillUnmount() {
57
+ this.props.onUnmount(this.props.cellKey);
58
+ }
59
+ _onLayout = nativeEvent => {
60
+ this.props.onCellLayout && this.props.onCellLayout(nativeEvent, this.props.cellKey, this.props.index);
61
+ };
62
+ _renderElement(renderItem, ListItemComponent, item, index) {
63
+ if (renderItem && ListItemComponent && console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."), ListItemComponent) return React.createElement(ListItemComponent, {
64
+ item,
65
+ index,
66
+ separators: this._separators
67
+ });
68
+ if (renderItem) return renderItem({
69
+ item,
70
+ index,
71
+ separators: this._separators
72
+ });
73
+ invariant(!1, "VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.");
74
+ }
75
+ render() {
76
+ const {
77
+ CellRendererComponent,
78
+ ItemSeparatorComponent,
79
+ ListItemComponent,
80
+ cellKey,
81
+ horizontal,
82
+ item,
83
+ index,
84
+ inversionStyle,
85
+ onCellFocusCapture,
86
+ onCellLayout,
87
+ renderItem
88
+ } = this.props,
89
+ element = this._renderElement(renderItem, ListItemComponent, item, index),
90
+ itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /* @__PURE__ */jsx(ItemSeparatorComponent, {
91
+ ...this.state.separatorProps
92
+ }),
93
+ cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle,
94
+ result = CellRendererComponent ? /* @__PURE__ */jsxs(CellRendererComponent, {
95
+ cellKey,
96
+ index,
97
+ item,
98
+ style: cellStyle,
99
+ onFocusCapture: onCellFocusCapture,
100
+ ...(onCellLayout && {
101
+ onLayout: this._onLayout
102
+ }),
103
+ children: [element, itemSeparator]
104
+ }) : /* @__PURE__ */jsxs(View, {
105
+ style: cellStyle,
106
+ onFocusCapture: onCellFocusCapture,
107
+ ...(onCellLayout && {
108
+ onLayout: this._onLayout
109
+ }),
110
+ children: [element, itemSeparator]
111
+ });
112
+ return /* @__PURE__ */jsx(VirtualizedListCellContextProvider, {
113
+ cellKey: this.props.cellKey,
114
+ children: result
115
+ });
116
+ }
117
+ }
118
+ const styles = StyleSheet.create({
119
+ row: {
120
+ flexDirection: "row"
121
+ },
122
+ rowReverse: {
123
+ flexDirection: "row-reverse"
124
+ },
125
+ columnReverse: {
126
+ flexDirection: "column-reverse"
127
+ }
128
+ });
129
+ export { CellRenderer as default };
130
+ //# sourceMappingURL=VirtualizedListCellRenderer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["invariant","StyleSheet","React","VirtualizedListCellContextProvider","View","jsx","jsxs","CellRenderer","Component","state","separatorProps","highlighted","leadingItem","props","item","getDerivedStateFromProps","prevState","_separators","highlight","cellKey","prevCellKey","onUpdateSeparators","unhighlight","updateProps","select","newProps","updateSeparatorProps","setState","componentWillUnmount","onUnmount","_onLayout","nativeEvent","onCellLayout","index","_renderElement","renderItem","ListItemComponent","console","warn","createElement","separators","render","CellRendererComponent","ItemSeparatorComponent","horizontal","inversionStyle","onCellFocusCapture","element","itemSeparator","isValidElement","cellStyle","styles","rowReverse","columnReverse","row","result","style","onFocusCapture","onLayout","children","create","flexDirection"],"sources":["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx"],"sourcesContent":[null],"mappings":"AACA,SACEA,SAAA,EACAC,UAAA,QAEK;AAGP,OAAOC,KAAA,MAAW;AAClB,SAASC,kCAAA,QAA0C;AACnD,OAAOC,IAAA,MAAU;AAoJP,SAAAC,GAAA,EAUJC,IAAA,QAVI;AAjHV,MAAOC,YAAA,SAA0CL,KAAA,CAAMM,SAAA,CAGrD;EACAC,KAAA,GAAsB;IACpBC,cAAA,EAAgB;MACdC,WAAA,EAAa;MACbC,WAAA,EAAa,KAAKC,KAAA,CAAMC;IAC1B;EACF;EAEA,OAAOC,yBACLF,KAAA,EACAG,SAAA,EACqB;IACrB,OAAO;MACLN,cAAA,EAAgB;QACd,GAAGM,SAAA,CAAUN,cAAA;QACbE,WAAA,EAAaC,KAAA,CAAMC;MACrB;IACF;EACF;EAEQG,WAAA,GAAc;IACpBC,SAAA,EAAWA,CAAA,KAAM;MACf,MAAM;QAAEC,OAAA;QAASC;MAAY,IAAI,KAAKP,KAAA;MACtC,KAAKA,KAAA,CAAMQ,kBAAA,CAAmB,CAACF,OAAA,EAASC,WAAA,IAAe,IAAI,GAAG;QAC5DT,WAAA,EAAa;MACf,CAAC;IACH;IACAW,WAAA,EAAaA,CAAA,KAAM;MACjB,MAAM;QAAEH,OAAA;QAASC;MAAY,IAAI,KAAKP,KAAA;MACtC,KAAKA,KAAA,C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UAAA,CAAW2D,MAAA,CAAO;EAC/BN,GAAA,EAAK;IACHO,aAAA,EAAe;EACjB;EACAT,UAAA,EAAY;IACVS,aAAA,EAAe;EACjB;EACAR,aAAA,EAAe;IACbQ,aAAA,EAAe;EACjB;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,224 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { invariant, StyleSheet } from "@tamagui/react-native-web-internals";
3
+ import React from "react";
4
+ import { VirtualizedListCellContextProvider } from "./VirtualizedListContext";
5
+ import View from "../../../View";
6
+ function _assert_this_initialized(self) {
7
+ if (self === void 0)
8
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9
+ return self;
10
+ }
11
+ function _call_super(_this, derived, args) {
12
+ 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));
13
+ }
14
+ function _class_call_check(instance, Constructor) {
15
+ if (!(instance instanceof Constructor))
16
+ throw new TypeError("Cannot call a class as a function");
17
+ }
18
+ function _defineProperties(target, props) {
19
+ for (var i = 0; i < props.length; i++) {
20
+ var descriptor = props[i];
21
+ descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
22
+ }
23
+ }
24
+ function _create_class(Constructor, protoProps, staticProps) {
25
+ return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
26
+ }
27
+ function _define_property(obj, key, value) {
28
+ return key in obj ? Object.defineProperty(obj, key, {
29
+ value,
30
+ enumerable: !0,
31
+ configurable: !0,
32
+ writable: !0
33
+ }) : obj[key] = value, obj;
34
+ }
35
+ function _get_prototype_of(o) {
36
+ return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
37
+ return o2.__proto__ || Object.getPrototypeOf(o2);
38
+ }, _get_prototype_of(o);
39
+ }
40
+ function _inherits(subClass, superClass) {
41
+ if (typeof superClass != "function" && superClass !== null)
42
+ throw new TypeError("Super expression must either be null or a function");
43
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
44
+ constructor: {
45
+ value: subClass,
46
+ writable: !0,
47
+ configurable: !0
48
+ }
49
+ }), superClass && _set_prototype_of(subClass, superClass);
50
+ }
51
+ function _possible_constructor_return(self, call) {
52
+ return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
53
+ }
54
+ function _set_prototype_of(o, p) {
55
+ return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
56
+ return o2.__proto__ = p2, o2;
57
+ }, _set_prototype_of(o, p);
58
+ }
59
+ function _type_of(obj) {
60
+ "@swc/helpers - typeof";
61
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
62
+ }
63
+ function _is_native_reflect_construct() {
64
+ try {
65
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
66
+ }));
67
+ } catch {
68
+ }
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
72
+ }
73
+ var CellRenderer = /* @__PURE__ */ function(_React_Component) {
74
+ "use strict";
75
+ _inherits(CellRenderer2, _React_Component);
76
+ function CellRenderer2() {
77
+ _class_call_check(this, CellRenderer2);
78
+ var _this;
79
+ return _this = _call_super(this, CellRenderer2, arguments), _define_property(_this, "state", {
80
+ separatorProps: {
81
+ highlighted: !1,
82
+ leadingItem: _this.props.item
83
+ }
84
+ }), _define_property(_this, "_separators", {
85
+ highlight: function() {
86
+ var { cellKey, prevCellKey } = _this.props;
87
+ _this.props.onUpdateSeparators([
88
+ cellKey,
89
+ prevCellKey || null
90
+ ], {
91
+ highlighted: !0
92
+ });
93
+ },
94
+ unhighlight: function() {
95
+ var { cellKey, prevCellKey } = _this.props;
96
+ _this.props.onUpdateSeparators([
97
+ cellKey,
98
+ prevCellKey || null
99
+ ], {
100
+ highlighted: !1
101
+ });
102
+ },
103
+ updateProps: function(select, newProps) {
104
+ var { cellKey, prevCellKey } = _this.props;
105
+ _this.props.onUpdateSeparators([
106
+ select === "leading" ? prevCellKey || null : cellKey
107
+ ], newProps);
108
+ }
109
+ }), _define_property(_this, "_onLayout", function(nativeEvent) {
110
+ _this.props.onCellLayout && _this.props.onCellLayout(nativeEvent, _this.props.cellKey, _this.props.index);
111
+ }), _this;
112
+ }
113
+ return _create_class(CellRenderer2, [
114
+ {
115
+ key: "updateSeparatorProps",
116
+ value: function(newProps) {
117
+ this.setState(function(state) {
118
+ return {
119
+ separatorProps: {
120
+ ...state.separatorProps,
121
+ ...newProps
122
+ }
123
+ };
124
+ });
125
+ }
126
+ },
127
+ {
128
+ key: "componentWillUnmount",
129
+ value: function() {
130
+ this.props.onUnmount(this.props.cellKey);
131
+ }
132
+ },
133
+ {
134
+ key: "_renderElement",
135
+ value: function(renderItem, ListItemComponent, item, index) {
136
+ if (renderItem && ListItemComponent && console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."), ListItemComponent)
137
+ return /* @__PURE__ */ React.createElement(ListItemComponent, {
138
+ item,
139
+ index,
140
+ separators: this._separators
141
+ });
142
+ if (renderItem)
143
+ return renderItem({
144
+ item,
145
+ index,
146
+ separators: this._separators
147
+ });
148
+ invariant(!1, "VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.");
149
+ }
150
+ },
151
+ {
152
+ key: "render",
153
+ value: function() {
154
+ var { CellRendererComponent, ItemSeparatorComponent, ListItemComponent, cellKey, horizontal, item, index, inversionStyle, onCellFocusCapture, onCellLayout, renderItem } = this.props, element = this._renderElement(renderItem, ListItemComponent, item, index), itemSeparator = /* @__PURE__ */ React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /* @__PURE__ */ _jsx(ItemSeparatorComponent, {
155
+ ...this.state.separatorProps
156
+ }), cellStyle = inversionStyle ? horizontal ? [
157
+ styles.rowReverse,
158
+ inversionStyle
159
+ ] : [
160
+ styles.columnReverse,
161
+ inversionStyle
162
+ ] : horizontal ? [
163
+ styles.row,
164
+ inversionStyle
165
+ ] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ _jsxs(CellRendererComponent, {
166
+ cellKey,
167
+ index,
168
+ item,
169
+ style: cellStyle,
170
+ onFocusCapture: onCellFocusCapture,
171
+ ...onCellLayout && {
172
+ onLayout: this._onLayout
173
+ },
174
+ children: [
175
+ element,
176
+ itemSeparator
177
+ ]
178
+ }) : /* @__PURE__ */ _jsxs(View, {
179
+ style: cellStyle,
180
+ // @ts-ignore
181
+ onFocusCapture: onCellFocusCapture,
182
+ ...onCellLayout && {
183
+ onLayout: this._onLayout
184
+ },
185
+ children: [
186
+ element,
187
+ itemSeparator
188
+ ]
189
+ });
190
+ return /* @__PURE__ */ _jsx(VirtualizedListCellContextProvider, {
191
+ cellKey: this.props.cellKey,
192
+ children: result
193
+ });
194
+ }
195
+ }
196
+ ], [
197
+ {
198
+ key: "getDerivedStateFromProps",
199
+ value: function(props, prevState) {
200
+ return {
201
+ separatorProps: {
202
+ ...prevState.separatorProps,
203
+ leadingItem: props.item
204
+ }
205
+ };
206
+ }
207
+ }
208
+ ]), CellRenderer2;
209
+ }(React.Component);
210
+ var styles = StyleSheet.create({
211
+ row: {
212
+ flexDirection: "row"
213
+ },
214
+ rowReverse: {
215
+ flexDirection: "row-reverse"
216
+ },
217
+ columnReverse: {
218
+ flexDirection: "column-reverse"
219
+ }
220
+ });
221
+ export {
222
+ CellRenderer as default
223
+ };
224
+ //# 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": ";AACA,SACEA,WACAC,kBAEK;AAGP,OAAOC,WAAW;AA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BN;EAA4BH,MAAMsD,SAAS;AA0JhE,IAAMC,SAASC,WAAWC,OAAO;EAC/BC,KAAK;IACHC,eAAe;EACjB;EACAC,YAAY;IACVD,eAAe;EACjB;EACAE,eAAe;IACbF,eAAe;EACjB;AACF,CAAA;",
5
+ "names": ["invariant", "StyleSheet", "React", "VirtualizedListCellContextProvider", "View", "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", "createElement", "separators", "render", "CellRendererComponent", "ItemSeparatorComponent", "horizontal", "inversionStyle", "onCellFocusCapture", "element", "itemSeparator", "isValidElement", "cellStyle", "styles", "rowReverse", "columnReverse", "row", "result", "style", "onFocusCapture", "onLayout", "getDerivedStateFromProps", "prevState", "Component", "styles", "StyleSheet", "create", "row", "flexDirection", "rowReverse", "columnReverse"]
6
+ }
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ import { useContext, useMemo } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ const __DEV__ = process.env.NODE_ENV !== "production", VirtualizedListContext = React.createContext(null);
5
+ __DEV__ && (VirtualizedListContext.displayName = "VirtualizedListContext");
6
+ function VirtualizedListContextResetter({
7
+ children
8
+ }) {
9
+ return /* @__PURE__ */ jsx(VirtualizedListContext.Provider, { value: null, children });
10
+ }
11
+ function VirtualizedListContextProvider({
12
+ children,
13
+ value
14
+ }) {
15
+ const context = useMemo(
16
+ () => ({
17
+ cellKey: null,
18
+ getScrollMetrics: value.getScrollMetrics,
19
+ horizontal: value.horizontal,
20
+ getOutermostParentListRef: value.getOutermostParentListRef,
21
+ registerAsNestedChild: value.registerAsNestedChild,
22
+ unregisterAsNestedChild: value.unregisterAsNestedChild
23
+ }),
24
+ [
25
+ value.getScrollMetrics,
26
+ value.horizontal,
27
+ value.getOutermostParentListRef,
28
+ value.registerAsNestedChild,
29
+ value.unregisterAsNestedChild
30
+ ]
31
+ );
32
+ return /* @__PURE__ */ jsx(VirtualizedListContext.Provider, { value: context, children });
33
+ }
34
+ function VirtualizedListCellContextProvider({
35
+ cellKey,
36
+ children
37
+ }) {
38
+ const currContext = useContext(VirtualizedListContext), context = useMemo(
39
+ () => currContext == null ? null : { ...currContext, cellKey },
40
+ [currContext, cellKey]
41
+ );
42
+ return /* @__PURE__ */ jsx(VirtualizedListContext.Provider, { value: context, children });
43
+ }
44
+ export {
45
+ VirtualizedListCellContextProvider,
46
+ VirtualizedListContext,
47
+ VirtualizedListContextProvider,
48
+ VirtualizedListContextResetter
49
+ };
50
+ //# sourceMappingURL=VirtualizedListContext.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx"],
4
+ "mappings": "AASA,YAAY,WAAW;AACvB,SAAS,YAAY,eAAe;AA2ChC;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,oBAAC,uBAAuB,UAAvB,EAAgC,OAAO,MACrC,UACH;AAEJ;AAKO,SAAS,+BAA+B;AAAA,EAC7C;AAAA,EACA;AACF,GAGoB;AAElB,QAAM,UAAU;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,oBAAC,uBAAuB,UAAvB,EAAgC,OAAO,SACrC,UACH;AAEJ;AAKO,SAAS,mCAAmC;AAAA,EACjD;AAAA,EACA;AACF,GAGoB;AAElB,QAAM,cAAc,WAAW,sBAAsB,GAC/C,UAAU;AAAA,IACd,MAAO,eAAe,OAAO,OAAO,EAAE,GAAG,aAAa,QAAQ;AAAA,IAC9D,CAAC,aAAa,OAAO;AAAA,EACvB;AACA,SACE,oBAAC,uBAAuB,UAAvB,EAAgC,OAAO,SACrC,UACH;AAEJ;",
5
+ "names": []
6
+ }
@@ -0,0 +1,47 @@
1
+ import * as React from "react";
2
+ import { useContext, useMemo } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ const __DEV__ = process.env.NODE_ENV !== "production",
5
+ VirtualizedListContext = React.createContext(null);
6
+ __DEV__ && (VirtualizedListContext.displayName = "VirtualizedListContext");
7
+ function VirtualizedListContextResetter({
8
+ children
9
+ }) {
10
+ return /* @__PURE__ */jsx(VirtualizedListContext.Provider, {
11
+ value: null,
12
+ children
13
+ });
14
+ }
15
+ function VirtualizedListContextProvider({
16
+ children,
17
+ value
18
+ }) {
19
+ const context = useMemo(() => ({
20
+ cellKey: null,
21
+ getScrollMetrics: value.getScrollMetrics,
22
+ horizontal: value.horizontal,
23
+ getOutermostParentListRef: value.getOutermostParentListRef,
24
+ registerAsNestedChild: value.registerAsNestedChild,
25
+ unregisterAsNestedChild: value.unregisterAsNestedChild
26
+ }), [value.getScrollMetrics, value.horizontal, value.getOutermostParentListRef, value.registerAsNestedChild, value.unregisterAsNestedChild]);
27
+ return /* @__PURE__ */jsx(VirtualizedListContext.Provider, {
28
+ value: context,
29
+ children
30
+ });
31
+ }
32
+ function VirtualizedListCellContextProvider({
33
+ cellKey,
34
+ children
35
+ }) {
36
+ const currContext = useContext(VirtualizedListContext),
37
+ context = useMemo(() => currContext == null ? null : {
38
+ ...currContext,
39
+ cellKey
40
+ }, [currContext, cellKey]);
41
+ return /* @__PURE__ */jsx(VirtualizedListContext.Provider, {
42
+ value: context,
43
+ children
44
+ });
45
+ }
46
+ export { VirtualizedListCellContextProvider, VirtualizedListContext, VirtualizedListContextProvider, VirtualizedListContextResetter };
47
+ //# sourceMappingURL=VirtualizedListContext.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useContext","useMemo","jsx","__DEV__","process","env","NODE_ENV","VirtualizedListContext","createContext","displayName","VirtualizedListContextResetter","children","Provider","value","VirtualizedListContextProvider","context","cellKey","getScrollMetrics","horizontal","getOutermostParentListRef","registerAsNestedChild","unregisterAsNestedChild","VirtualizedListCellContextProvider","currContext"],"sources":["../../../../../src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx"],"sourcesContent":[null],"mappings":"AASA,YAAYA,KAAA,MAAW;AACvB,SAASC,UAAA,EAAYC,OAAA,QAAe;AA2ChC,SAAAC,GAAA;AAzCJ,MAAMC,OAAA,GAAUC,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa;EA2B5BC,sBAAA,GAAyBR,KAAA,CAAMS,aAAA,CAA8B,IAAI;AAC1EL,OAAA,KACFI,sBAAA,CAAuBE,WAAA,GAAc;AAMhC,SAASC,+BAA+B;EAC7CC;AACF,GAEoB;EAClB,OACE,eAAAT,GAAA,CAACK,sBAAA,CAAuBK,QAAA,EAAvB;IAAgCC,KAAA,EAAO;IACrCF;EAAA,CACH;AAEJ;AAKO,SAASG,+BAA+B;EAC7CH,QAAA;EACAE;AACF,GAGoB;EAElB,MAAME,OAAA,GAAUd,OAAA,CACd,OAAO;IACLe,OAAA,EAAS;IACTC,gBAAA,EAAkBJ,KAAA,CAAMI,gBAAA;IACxBC,UAAA,EAAYL,KAAA,CAAMK,UAAA;IAClBC,yBAAA,EAA2BN,KAAA,CAAMM,yBAAA;IACjCC,qBAAA,EAAuBP,KAAA,CAAMO,qBAAA;IAC7BC,uBAAA,EAAyBR,KAAA,CAAMQ;EACjC,IACA,CACER,KAAA,CAAMI,gBAAA,EACNJ,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