rn-custom-ui 1.0.0

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 (332) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +477 -0
  3. package/lib/module/assets/images/close.png +0 -0
  4. package/lib/module/components/CustomCheckbox/index.js +99 -0
  5. package/lib/module/components/CustomCheckbox/index.js.map +1 -0
  6. package/lib/module/components/CustomCheckbox/styles.js +213 -0
  7. package/lib/module/components/CustomCheckbox/styles.js.map +1 -0
  8. package/lib/module/components/CustomCheckbox/types.js +4 -0
  9. package/lib/module/components/CustomCheckbox/types.js.map +1 -0
  10. package/lib/module/components/closeButton/index.js +45 -0
  11. package/lib/module/components/closeButton/index.js.map +1 -0
  12. package/lib/module/components/closeButton/types.js +4 -0
  13. package/lib/module/components/closeButton/types.js.map +1 -0
  14. package/lib/module/components/customButton/index.js +176 -0
  15. package/lib/module/components/customButton/index.js.map +1 -0
  16. package/lib/module/components/customButton/styles.js +282 -0
  17. package/lib/module/components/customButton/styles.js.map +1 -0
  18. package/lib/module/components/customButton/types.js +4 -0
  19. package/lib/module/components/customButton/types.js.map +1 -0
  20. package/lib/module/components/customDropDown/DropDownBottomSheet.js +57 -0
  21. package/lib/module/components/customDropDown/DropDownBottomSheet.js.map +1 -0
  22. package/lib/module/components/customDropDown/DropDownList.js +51 -0
  23. package/lib/module/components/customDropDown/DropDownList.js.map +1 -0
  24. package/lib/module/components/customDropDown/DropDownListItem.js +38 -0
  25. package/lib/module/components/customDropDown/DropDownListItem.js.map +1 -0
  26. package/lib/module/components/customDropDown/DropDownListModal.js +63 -0
  27. package/lib/module/components/customDropDown/DropDownListModal.js.map +1 -0
  28. package/lib/module/components/customDropDown/index.js +143 -0
  29. package/lib/module/components/customDropDown/index.js.map +1 -0
  30. package/lib/module/components/customDropDown/styles.js +189 -0
  31. package/lib/module/components/customDropDown/styles.js.map +1 -0
  32. package/lib/module/components/customDropDown/types.js +4 -0
  33. package/lib/module/components/customDropDown/types.js.map +1 -0
  34. package/lib/module/components/customDropDown/utils.js +17 -0
  35. package/lib/module/components/customDropDown/utils.js.map +1 -0
  36. package/lib/module/components/customList/ListEmpty.js +33 -0
  37. package/lib/module/components/customList/ListEmpty.js.map +1 -0
  38. package/lib/module/components/customList/ListFooterLoader.js +14 -0
  39. package/lib/module/components/customList/ListFooterLoader.js.map +1 -0
  40. package/lib/module/components/customList/defaultKeyExtractor.js +9 -0
  41. package/lib/module/components/customList/defaultKeyExtractor.js.map +1 -0
  42. package/lib/module/components/customList/getFlashList.js +19 -0
  43. package/lib/module/components/customList/getFlashList.js.map +1 -0
  44. package/lib/module/components/customList/index.js +117 -0
  45. package/lib/module/components/customList/index.js.map +1 -0
  46. package/lib/module/components/customList/styles.js +45 -0
  47. package/lib/module/components/customList/styles.js.map +1 -0
  48. package/lib/module/components/customList/types.js +4 -0
  49. package/lib/module/components/customList/types.js.map +1 -0
  50. package/lib/module/components/customModal/ModalFooter.js +44 -0
  51. package/lib/module/components/customModal/ModalFooter.js.map +1 -0
  52. package/lib/module/components/customModal/index.js +132 -0
  53. package/lib/module/components/customModal/index.js.map +1 -0
  54. package/lib/module/components/customModal/styles.js +123 -0
  55. package/lib/module/components/customModal/styles.js.map +1 -0
  56. package/lib/module/components/customModal/types.js +4 -0
  57. package/lib/module/components/customModal/types.js.map +1 -0
  58. package/lib/module/components/customModal/useCustomModal.js +23 -0
  59. package/lib/module/components/customModal/useCustomModal.js.map +1 -0
  60. package/lib/module/components/customNumberPad/NumberPadKey.js +39 -0
  61. package/lib/module/components/customNumberPad/NumberPadKey.js.map +1 -0
  62. package/lib/module/components/customNumberPad/index.js +156 -0
  63. package/lib/module/components/customNumberPad/index.js.map +1 -0
  64. package/lib/module/components/customNumberPad/styles.js +131 -0
  65. package/lib/module/components/customNumberPad/styles.js.map +1 -0
  66. package/lib/module/components/customNumberPad/types.js +4 -0
  67. package/lib/module/components/customNumberPad/types.js.map +1 -0
  68. package/lib/module/components/customNumberPad/useNumberPadInput.js +44 -0
  69. package/lib/module/components/customNumberPad/useNumberPadInput.js.map +1 -0
  70. package/lib/module/components/customNumberPad/utils.js +38 -0
  71. package/lib/module/components/customNumberPad/utils.js.map +1 -0
  72. package/lib/module/components/customSlideTabs/AnimatedTabIndicator.js +66 -0
  73. package/lib/module/components/customSlideTabs/AnimatedTabIndicator.js.map +1 -0
  74. package/lib/module/components/customSlideTabs/TabBarItem.js +61 -0
  75. package/lib/module/components/customSlideTabs/TabBarItem.js.map +1 -0
  76. package/lib/module/components/customSlideTabs/TabScene.js +88 -0
  77. package/lib/module/components/customSlideTabs/TabScene.js.map +1 -0
  78. package/lib/module/components/customSlideTabs/index.js +277 -0
  79. package/lib/module/components/customSlideTabs/index.js.map +1 -0
  80. package/lib/module/components/customSlideTabs/styles.js +132 -0
  81. package/lib/module/components/customSlideTabs/styles.js.map +1 -0
  82. package/lib/module/components/customSlideTabs/tabBarScroll.js +65 -0
  83. package/lib/module/components/customSlideTabs/tabBarScroll.js.map +1 -0
  84. package/lib/module/components/customSlideTabs/types.js +4 -0
  85. package/lib/module/components/customSlideTabs/types.js.map +1 -0
  86. package/lib/module/components/loading/index.js +34 -0
  87. package/lib/module/components/loading/index.js.map +1 -0
  88. package/lib/module/customFunctions/array.js +61 -0
  89. package/lib/module/customFunctions/array.js.map +1 -0
  90. package/lib/module/customFunctions/async.js +62 -0
  91. package/lib/module/customFunctions/async.js.map +1 -0
  92. package/lib/module/customFunctions/date.js +109 -0
  93. package/lib/module/customFunctions/date.js.map +1 -0
  94. package/lib/module/customFunctions/general.js +29 -0
  95. package/lib/module/customFunctions/general.js.map +1 -0
  96. package/lib/module/customFunctions/id.js +20 -0
  97. package/lib/module/customFunctions/id.js.map +1 -0
  98. package/lib/module/customFunctions/index.js +29 -0
  99. package/lib/module/customFunctions/index.js.map +1 -0
  100. package/lib/module/customFunctions/number.js +94 -0
  101. package/lib/module/customFunctions/number.js.map +1 -0
  102. package/lib/module/customFunctions/object.js +39 -0
  103. package/lib/module/customFunctions/object.js.map +1 -0
  104. package/lib/module/customFunctions/string.js +63 -0
  105. package/lib/module/customFunctions/string.js.map +1 -0
  106. package/lib/module/customFunctions/types.js +2 -0
  107. package/lib/module/customFunctions/types.js.map +1 -0
  108. package/lib/module/customFunctions/validation.js +34 -0
  109. package/lib/module/customFunctions/validation.js.map +1 -0
  110. package/lib/module/customHooks/errors.js +61 -0
  111. package/lib/module/customHooks/errors.js.map +1 -0
  112. package/lib/module/customHooks/fetchJson.js +36 -0
  113. package/lib/module/customHooks/fetchJson.js.map +1 -0
  114. package/lib/module/customHooks/index.js +10 -0
  115. package/lib/module/customHooks/index.js.map +1 -0
  116. package/lib/module/customHooks/internal.js +49 -0
  117. package/lib/module/customHooks/internal.js.map +1 -0
  118. package/lib/module/customHooks/types.js +2 -0
  119. package/lib/module/customHooks/types.js.map +1 -0
  120. package/lib/module/customHooks/useApi.js +91 -0
  121. package/lib/module/customHooks/useApi.js.map +1 -0
  122. package/lib/module/customHooks/useLazyApi.js +80 -0
  123. package/lib/module/customHooks/useLazyApi.js.map +1 -0
  124. package/lib/module/customHooks/useMutation.js +69 -0
  125. package/lib/module/customHooks/useMutation.js.map +1 -0
  126. package/lib/module/customHooks/usePaginatedApi.js +127 -0
  127. package/lib/module/customHooks/usePaginatedApi.js.map +1 -0
  128. package/lib/module/customHooks/usePollingApi.js +37 -0
  129. package/lib/module/customHooks/usePollingApi.js.map +1 -0
  130. package/lib/module/index.js +13 -0
  131. package/lib/module/index.js.map +1 -0
  132. package/lib/module/multiply.js +6 -0
  133. package/lib/module/multiply.js.map +1 -0
  134. package/lib/module/package.json +1 -0
  135. package/lib/typescript/package.json +1 -0
  136. package/lib/typescript/src/components/CustomCheckbox/index.d.ts +5 -0
  137. package/lib/typescript/src/components/CustomCheckbox/index.d.ts.map +1 -0
  138. package/lib/typescript/src/components/CustomCheckbox/styles.d.ts +67 -0
  139. package/lib/typescript/src/components/CustomCheckbox/styles.d.ts.map +1 -0
  140. package/lib/typescript/src/components/CustomCheckbox/types.d.ts +28 -0
  141. package/lib/typescript/src/components/CustomCheckbox/types.d.ts.map +1 -0
  142. package/lib/typescript/src/components/closeButton/index.d.ts +4 -0
  143. package/lib/typescript/src/components/closeButton/index.d.ts.map +1 -0
  144. package/lib/typescript/src/components/closeButton/types.d.ts +8 -0
  145. package/lib/typescript/src/components/closeButton/types.d.ts.map +1 -0
  146. package/lib/typescript/src/components/customButton/index.d.ts +5 -0
  147. package/lib/typescript/src/components/customButton/index.d.ts.map +1 -0
  148. package/lib/typescript/src/components/customButton/styles.d.ts +231 -0
  149. package/lib/typescript/src/components/customButton/styles.d.ts.map +1 -0
  150. package/lib/typescript/src/components/customButton/types.d.ts +46 -0
  151. package/lib/typescript/src/components/customButton/types.d.ts.map +1 -0
  152. package/lib/typescript/src/components/customDropDown/DropDownBottomSheet.d.ts +18 -0
  153. package/lib/typescript/src/components/customDropDown/DropDownBottomSheet.d.ts.map +1 -0
  154. package/lib/typescript/src/components/customDropDown/DropDownList.d.ts +17 -0
  155. package/lib/typescript/src/components/customDropDown/DropDownList.d.ts.map +1 -0
  156. package/lib/typescript/src/components/customDropDown/DropDownListItem.d.ts +15 -0
  157. package/lib/typescript/src/components/customDropDown/DropDownListItem.d.ts.map +1 -0
  158. package/lib/typescript/src/components/customDropDown/DropDownListModal.d.ts +19 -0
  159. package/lib/typescript/src/components/customDropDown/DropDownListModal.d.ts.map +1 -0
  160. package/lib/typescript/src/components/customDropDown/index.d.ts +5 -0
  161. package/lib/typescript/src/components/customDropDown/index.d.ts.map +1 -0
  162. package/lib/typescript/src/components/customDropDown/styles.d.ts +190 -0
  163. package/lib/typescript/src/components/customDropDown/styles.d.ts.map +1 -0
  164. package/lib/typescript/src/components/customDropDown/types.d.ts +37 -0
  165. package/lib/typescript/src/components/customDropDown/types.d.ts.map +1 -0
  166. package/lib/typescript/src/components/customDropDown/utils.d.ts +4 -0
  167. package/lib/typescript/src/components/customDropDown/utils.d.ts.map +1 -0
  168. package/lib/typescript/src/components/customList/ListEmpty.d.ts +10 -0
  169. package/lib/typescript/src/components/customList/ListEmpty.d.ts.map +1 -0
  170. package/lib/typescript/src/components/customList/ListFooterLoader.d.ts +3 -0
  171. package/lib/typescript/src/components/customList/ListFooterLoader.d.ts.map +1 -0
  172. package/lib/typescript/src/components/customList/defaultKeyExtractor.d.ts +2 -0
  173. package/lib/typescript/src/components/customList/defaultKeyExtractor.d.ts.map +1 -0
  174. package/lib/typescript/src/components/customList/getFlashList.d.ts +6 -0
  175. package/lib/typescript/src/components/customList/getFlashList.d.ts.map +1 -0
  176. package/lib/typescript/src/components/customList/index.d.ts +11 -0
  177. package/lib/typescript/src/components/customList/index.d.ts.map +1 -0
  178. package/lib/typescript/src/components/customList/styles.d.ts +42 -0
  179. package/lib/typescript/src/components/customList/styles.d.ts.map +1 -0
  180. package/lib/typescript/src/components/customList/types.d.ts +33 -0
  181. package/lib/typescript/src/components/customList/types.d.ts.map +1 -0
  182. package/lib/typescript/src/components/customModal/ModalFooter.d.ts +12 -0
  183. package/lib/typescript/src/components/customModal/ModalFooter.d.ts.map +1 -0
  184. package/lib/typescript/src/components/customModal/index.d.ts +6 -0
  185. package/lib/typescript/src/components/customModal/index.d.ts.map +1 -0
  186. package/lib/typescript/src/components/customModal/styles.d.ts +83 -0
  187. package/lib/typescript/src/components/customModal/styles.d.ts.map +1 -0
  188. package/lib/typescript/src/components/customModal/types.d.ts +36 -0
  189. package/lib/typescript/src/components/customModal/types.d.ts.map +1 -0
  190. package/lib/typescript/src/components/customModal/useCustomModal.d.ts +8 -0
  191. package/lib/typescript/src/components/customModal/useCustomModal.d.ts.map +1 -0
  192. package/lib/typescript/src/components/customNumberPad/NumberPadKey.d.ts +23 -0
  193. package/lib/typescript/src/components/customNumberPad/NumberPadKey.d.ts.map +1 -0
  194. package/lib/typescript/src/components/customNumberPad/index.d.ts +7 -0
  195. package/lib/typescript/src/components/customNumberPad/index.d.ts.map +1 -0
  196. package/lib/typescript/src/components/customNumberPad/styles.d.ts +37 -0
  197. package/lib/typescript/src/components/customNumberPad/styles.d.ts.map +1 -0
  198. package/lib/typescript/src/components/customNumberPad/types.d.ts +47 -0
  199. package/lib/typescript/src/components/customNumberPad/types.d.ts.map +1 -0
  200. package/lib/typescript/src/components/customNumberPad/useNumberPadInput.d.ts +16 -0
  201. package/lib/typescript/src/components/customNumberPad/useNumberPadInput.d.ts.map +1 -0
  202. package/lib/typescript/src/components/customNumberPad/utils.d.ts +4 -0
  203. package/lib/typescript/src/components/customNumberPad/utils.d.ts.map +1 -0
  204. package/lib/typescript/src/components/customSlideTabs/AnimatedTabIndicator.d.ts +16 -0
  205. package/lib/typescript/src/components/customSlideTabs/AnimatedTabIndicator.d.ts.map +1 -0
  206. package/lib/typescript/src/components/customSlideTabs/TabBarItem.d.ts +23 -0
  207. package/lib/typescript/src/components/customSlideTabs/TabBarItem.d.ts.map +1 -0
  208. package/lib/typescript/src/components/customSlideTabs/TabScene.d.ts +21 -0
  209. package/lib/typescript/src/components/customSlideTabs/TabScene.d.ts.map +1 -0
  210. package/lib/typescript/src/components/customSlideTabs/index.d.ts +5 -0
  211. package/lib/typescript/src/components/customSlideTabs/index.d.ts.map +1 -0
  212. package/lib/typescript/src/components/customSlideTabs/styles.d.ts +130 -0
  213. package/lib/typescript/src/components/customSlideTabs/styles.d.ts.map +1 -0
  214. package/lib/typescript/src/components/customSlideTabs/tabBarScroll.d.ts +15 -0
  215. package/lib/typescript/src/components/customSlideTabs/tabBarScroll.d.ts.map +1 -0
  216. package/lib/typescript/src/components/customSlideTabs/types.d.ts +68 -0
  217. package/lib/typescript/src/components/customSlideTabs/types.d.ts.map +1 -0
  218. package/lib/typescript/src/components/loading/index.d.ts +7 -0
  219. package/lib/typescript/src/components/loading/index.d.ts.map +1 -0
  220. package/lib/typescript/src/customFunctions/array.d.ts +7 -0
  221. package/lib/typescript/src/customFunctions/array.d.ts.map +1 -0
  222. package/lib/typescript/src/customFunctions/async.d.ts +9 -0
  223. package/lib/typescript/src/customFunctions/async.d.ts.map +1 -0
  224. package/lib/typescript/src/customFunctions/date.d.ts +18 -0
  225. package/lib/typescript/src/customFunctions/date.d.ts.map +1 -0
  226. package/lib/typescript/src/customFunctions/general.d.ts +7 -0
  227. package/lib/typescript/src/customFunctions/general.d.ts.map +1 -0
  228. package/lib/typescript/src/customFunctions/id.d.ts +4 -0
  229. package/lib/typescript/src/customFunctions/id.d.ts.map +1 -0
  230. package/lib/typescript/src/customFunctions/index.d.ts +26 -0
  231. package/lib/typescript/src/customFunctions/index.d.ts.map +1 -0
  232. package/lib/typescript/src/customFunctions/number.d.ts +15 -0
  233. package/lib/typescript/src/customFunctions/number.d.ts.map +1 -0
  234. package/lib/typescript/src/customFunctions/object.d.ts +6 -0
  235. package/lib/typescript/src/customFunctions/object.d.ts.map +1 -0
  236. package/lib/typescript/src/customFunctions/string.d.ts +20 -0
  237. package/lib/typescript/src/customFunctions/string.d.ts.map +1 -0
  238. package/lib/typescript/src/customFunctions/types.d.ts +22 -0
  239. package/lib/typescript/src/customFunctions/types.d.ts.map +1 -0
  240. package/lib/typescript/src/customFunctions/validation.d.ts +11 -0
  241. package/lib/typescript/src/customFunctions/validation.d.ts.map +1 -0
  242. package/lib/typescript/src/customHooks/errors.d.ts +16 -0
  243. package/lib/typescript/src/customHooks/errors.d.ts.map +1 -0
  244. package/lib/typescript/src/customHooks/fetchJson.d.ts +5 -0
  245. package/lib/typescript/src/customHooks/fetchJson.d.ts.map +1 -0
  246. package/lib/typescript/src/customHooks/index.d.ts +9 -0
  247. package/lib/typescript/src/customHooks/index.d.ts.map +1 -0
  248. package/lib/typescript/src/customHooks/internal.d.ts +12 -0
  249. package/lib/typescript/src/customHooks/internal.d.ts.map +1 -0
  250. package/lib/typescript/src/customHooks/types.d.ts +49 -0
  251. package/lib/typescript/src/customHooks/types.d.ts.map +1 -0
  252. package/lib/typescript/src/customHooks/useApi.d.ts +13 -0
  253. package/lib/typescript/src/customHooks/useApi.d.ts.map +1 -0
  254. package/lib/typescript/src/customHooks/useLazyApi.d.ts +14 -0
  255. package/lib/typescript/src/customHooks/useLazyApi.d.ts.map +1 -0
  256. package/lib/typescript/src/customHooks/useMutation.d.ts +15 -0
  257. package/lib/typescript/src/customHooks/useMutation.d.ts.map +1 -0
  258. package/lib/typescript/src/customHooks/usePaginatedApi.d.ts +19 -0
  259. package/lib/typescript/src/customHooks/usePaginatedApi.d.ts.map +1 -0
  260. package/lib/typescript/src/customHooks/usePollingApi.d.ts +13 -0
  261. package/lib/typescript/src/customHooks/usePollingApi.d.ts.map +1 -0
  262. package/lib/typescript/src/index.d.ts +11 -0
  263. package/lib/typescript/src/index.d.ts.map +1 -0
  264. package/lib/typescript/src/multiply.d.ts +2 -0
  265. package/lib/typescript/src/multiply.d.ts.map +1 -0
  266. package/package.json +181 -0
  267. package/src/assets/images/close.png +0 -0
  268. package/src/components/CustomCheckbox/index.tsx +143 -0
  269. package/src/components/CustomCheckbox/styles.ts +146 -0
  270. package/src/components/CustomCheckbox/types.ts +33 -0
  271. package/src/components/closeButton/index.tsx +40 -0
  272. package/src/components/closeButton/types.ts +13 -0
  273. package/src/components/customButton/index.tsx +288 -0
  274. package/src/components/customButton/styles.ts +247 -0
  275. package/src/components/customButton/types.ts +71 -0
  276. package/src/components/customDropDown/DropDownBottomSheet.tsx +70 -0
  277. package/src/components/customDropDown/DropDownList.tsx +88 -0
  278. package/src/components/customDropDown/DropDownListItem.tsx +74 -0
  279. package/src/components/customDropDown/DropDownListModal.tsx +86 -0
  280. package/src/components/customDropDown/index.tsx +213 -0
  281. package/src/components/customDropDown/styles.ts +184 -0
  282. package/src/components/customDropDown/types.ts +48 -0
  283. package/src/components/customDropDown/utils.ts +24 -0
  284. package/src/components/customList/ListEmpty.tsx +36 -0
  285. package/src/components/customList/ListFooterLoader.tsx +11 -0
  286. package/src/components/customList/defaultKeyExtractor.ts +7 -0
  287. package/src/components/customList/getFlashList.ts +26 -0
  288. package/src/components/customList/index.tsx +142 -0
  289. package/src/components/customList/styles.ts +43 -0
  290. package/src/components/customList/types.ts +60 -0
  291. package/src/components/customModal/ModalFooter.tsx +57 -0
  292. package/src/components/customModal/index.tsx +166 -0
  293. package/src/components/customModal/styles.ts +131 -0
  294. package/src/components/customModal/types.ts +48 -0
  295. package/src/components/customModal/useCustomModal.ts +25 -0
  296. package/src/components/customNumberPad/NumberPadKey.tsx +81 -0
  297. package/src/components/customNumberPad/index.tsx +204 -0
  298. package/src/components/customNumberPad/styles.ts +146 -0
  299. package/src/components/customNumberPad/types.ts +53 -0
  300. package/src/components/customNumberPad/useNumberPadInput.ts +56 -0
  301. package/src/components/customNumberPad/utils.ts +54 -0
  302. package/src/components/customSlideTabs/AnimatedTabIndicator.tsx +103 -0
  303. package/src/components/customSlideTabs/TabBarItem.tsx +118 -0
  304. package/src/components/customSlideTabs/TabScene.tsx +136 -0
  305. package/src/components/customSlideTabs/index.tsx +385 -0
  306. package/src/components/customSlideTabs/styles.ts +136 -0
  307. package/src/components/customSlideTabs/tabBarScroll.ts +92 -0
  308. package/src/components/customSlideTabs/types.ts +87 -0
  309. package/src/components/loading/index.tsx +34 -0
  310. package/src/customFunctions/array.ts +83 -0
  311. package/src/customFunctions/async.ts +85 -0
  312. package/src/customFunctions/date.ts +158 -0
  313. package/src/customFunctions/general.ts +35 -0
  314. package/src/customFunctions/id.ts +25 -0
  315. package/src/customFunctions/index.ts +91 -0
  316. package/src/customFunctions/number.ts +139 -0
  317. package/src/customFunctions/object.ts +59 -0
  318. package/src/customFunctions/string.ts +119 -0
  319. package/src/customFunctions/types.ts +25 -0
  320. package/src/customFunctions/validation.ts +49 -0
  321. package/src/customHooks/errors.ts +87 -0
  322. package/src/customHooks/fetchJson.ts +49 -0
  323. package/src/customHooks/index.ts +20 -0
  324. package/src/customHooks/internal.ts +67 -0
  325. package/src/customHooks/types.ts +71 -0
  326. package/src/customHooks/useApi.ts +107 -0
  327. package/src/customHooks/useLazyApi.ts +92 -0
  328. package/src/customHooks/useMutation.ts +97 -0
  329. package/src/customHooks/usePaginatedApi.ts +168 -0
  330. package/src/customHooks/usePollingApi.ts +48 -0
  331. package/src/index.tsx +63 -0
  332. package/src/multiply.tsx +3 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useMemo","useState","Image","StyleSheet","Text","TouchableOpacity","View","DropDownBottomSheet","DropDownList","DropDownListModal","dropdownStyles","findSelectedOption","normalizeListItems","jsx","_jsx","jsxs","_jsxs","CustomDropDown","mode","label","selectedText","listItems","onSelect","isSelected","disabled","placeholder","maxListHeight","itemImageAlign","itemImageGap","toggleImageAlign","itemImageStyle","toggleImageStyle","styleDropdown","labelTextStyle","dropdownTextStyles","listStyle","itemTextStyle","closeImage","isOpen","setIsOpen","normalizedItems","selectedOption","displayText","hasSelection","Boolean","isOverlayOpen","resolvedToggleImageAlign","rotation","textStyle","selectedTextActive","close","toggle","current","handleSelect","item","index","listContainerStyle","anchoredList","inlineList","listProps","data","maxHeight","renderToggleImage","image","resizeMode","source","style","toggleImage","renderToggleLabel","numberOfLines","children","container","toggleWrapperOpen","labelText","toggleWrapper","activeOpacity","dropDown","dropDownDisabled","styles","toggleOpen","onPress","accessibilityRole","accessibilityState","expanded","itemRow","flex","gap","itemRowImageRight","arrow","transform","rotate","containerStyle","visible","title","undefined","onClose","create","borderColor"],"sourceRoot":"../../../../src","sources":["components/customDropDown/index.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACzC,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAE9E,OAAOC,mBAAmB,MAAM,0BAAuB;AACvD,OAAOC,YAAY,MAAM,mBAAgB;AACzC,OAAOC,iBAAiB,MAAM,wBAAqB;AACnD,SAASC,cAAc,QAAQ,aAAU;AAEzC,SAASC,kBAAkB,EAAEC,kBAAkB,QAAQ,YAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,K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C,eACPhD,IAAA,CAACV,IAAI;UACH8D,KAAK,EAAE,CACLxD,cAAc,CAAC8E,KAAK,EACpB;YAAEC,SAAS,EAAE,CAAC;cAAEC,MAAM,EAAE3C;YAAS,CAAC;UAAE,CAAC,CACrC;UAAAuB,QAAA,EACH;QAED,CAAM,CAAC;MAAA,CACS,CAAC,EAElBzB,aAAa,iBACZ/B,IAAA,CAACN,YAAY;QAAA,GAAKmD,SAAS;QAAEgC,cAAc,EAAEnC;MAAmB,CAAE,CACnE;IAAA,CACG,CAAC,EAENtC,IAAI,KAAK,OAAO,iBACfJ,IAAA,CAACL,iBAAiB;MAAA,GACZkD,SAAS;MACbiC,OAAO,EAAEtD,MAAO;MAChBuD,KAAK,EAAE1E,KAAK,IAAI2E,SAAU;MAC1BzD,UAAU,EAAEA,UAAW;MACvBX,aAAa,EAAEA,aAAc;MAC7BqE,OAAO,EAAE7C,KAAM;MACf5B,QAAQ,EAAE+B;IAAa,CACxB,CACF,EAEAnC,IAAI,KAAK,aAAa,iBACrBJ,IAAA,CAACP,mBAAmB;MAAA,GACdoD,SAAS;MACbiC,OAAO,EAAEtD,MAAO;MAChBuD,KAAK,EAAE1E,KAAK,IAAI2E,SAAU;MAC1BpE,aAAa,EAAEA,aAAc;MAC7BqE,OAAO,EAAE7C,KAAM;MACf5B,QAAQ,EAAE+B;IAAa,CACxB,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAED,eAAepC,cAAc;AAS7B,MAAM6D,MAAM,GAAG3E,UAAU,CAAC6F,MAAM,CAAC;EAC/BjB,UAAU,EAAE;IACVkB,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ export const dropdownStyles = StyleSheet.create({
5
+ container: {
6
+ justifyContent: 'center',
7
+ width: '100%',
8
+ marginBottom: 15
9
+ },
10
+ labelText: {
11
+ marginBottom: 10,
12
+ fontSize: 14,
13
+ fontWeight: '600',
14
+ color: '#212529'
15
+ },
16
+ toggleWrapper: {
17
+ position: 'relative',
18
+ zIndex: 1
19
+ },
20
+ toggleWrapperOpen: {
21
+ zIndex: 20
22
+ },
23
+ dropDown: {
24
+ flexDirection: 'row',
25
+ borderWidth: 1,
26
+ borderColor: '#e0e0e0',
27
+ borderRadius: 8,
28
+ justifyContent: 'space-between',
29
+ alignItems: 'center',
30
+ paddingVertical: 15,
31
+ paddingHorizontal: 15,
32
+ backgroundColor: '#fff'
33
+ },
34
+ dropDownDisabled: {
35
+ backgroundColor: '#f8f9fa',
36
+ opacity: 0.7
37
+ },
38
+ selectedText: {
39
+ flex: 1,
40
+ fontSize: 14,
41
+ fontWeight: '700',
42
+ color: '#6c757d'
43
+ },
44
+ selectedTextActive: {
45
+ color: '#000'
46
+ },
47
+ arrow: {
48
+ fontSize: 12,
49
+ color: '#495057',
50
+ marginLeft: 8
51
+ },
52
+ list: {
53
+ borderWidth: 1,
54
+ borderColor: '#e0e0e0',
55
+ borderRadius: 8,
56
+ backgroundColor: '#fff',
57
+ overflow: 'hidden'
58
+ },
59
+ inlineList: {
60
+ marginTop: 4
61
+ },
62
+ anchoredList: {
63
+ position: 'absolute',
64
+ top: '100%',
65
+ left: 0,
66
+ right: 0,
67
+ marginTop: 4,
68
+ shadowColor: '#000',
69
+ shadowOffset: {
70
+ width: 0,
71
+ height: 4
72
+ },
73
+ shadowOpacity: 0.12,
74
+ shadowRadius: 8,
75
+ elevation: 6
76
+ },
77
+ listItem: {
78
+ paddingVertical: 14,
79
+ paddingHorizontal: 15,
80
+ borderBottomWidth: 1,
81
+ borderBottomColor: '#f1f3f5'
82
+ },
83
+ listItemLast: {
84
+ borderBottomWidth: 0
85
+ },
86
+ itemRow: {
87
+ flexDirection: 'row',
88
+ alignItems: 'center'
89
+ },
90
+ itemRowImageRight: {
91
+ justifyContent: 'space-between'
92
+ },
93
+ itemImage: {
94
+ width: 28,
95
+ height: 28
96
+ },
97
+ toggleImage: {
98
+ width: 24,
99
+ height: 24
100
+ },
101
+ itemText: {
102
+ flex: 1,
103
+ fontSize: 14,
104
+ fontWeight: '400',
105
+ color: '#212529'
106
+ },
107
+ itemTextWithRightImage: {
108
+ flex: 1,
109
+ marginRight: 4
110
+ },
111
+ itemTextSelected: {
112
+ fontWeight: '700',
113
+ color: '#0d6efd'
114
+ },
115
+ modalContainer: {
116
+ flex: 1,
117
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
118
+ justifyContent: 'center',
119
+ alignItems: 'center'
120
+ },
121
+ modalContent: {
122
+ width: '88%',
123
+ maxWidth: 400,
124
+ maxHeight: '70%',
125
+ backgroundColor: '#fff',
126
+ borderRadius: 12,
127
+ paddingHorizontal: 16,
128
+ paddingTop: 16,
129
+ paddingBottom: 12,
130
+ overflow: 'hidden'
131
+ },
132
+ modalHeader: {
133
+ flexDirection: 'row',
134
+ alignItems: 'center',
135
+ justifyContent: 'space-between',
136
+ marginBottom: 12,
137
+ gap: 12
138
+ },
139
+ modalTitle: {
140
+ flex: 1,
141
+ fontSize: 16,
142
+ fontWeight: '700',
143
+ color: '#212529'
144
+ },
145
+ modalCloseButton: {
146
+ position: 'relative',
147
+ top: 0,
148
+ right: 0
149
+ },
150
+ modalList: {
151
+ borderWidth: 0,
152
+ borderRadius: 8
153
+ },
154
+ bottomSheetBackdrop: {
155
+ flex: 1,
156
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
157
+ justifyContent: 'flex-end'
158
+ },
159
+ bottomSheetContent: {
160
+ backgroundColor: '#fff',
161
+ borderTopLeftRadius: 16,
162
+ borderTopRightRadius: 16,
163
+ paddingTop: 12,
164
+ paddingBottom: 24,
165
+ paddingHorizontal: 20,
166
+ maxHeight: '70%'
167
+ },
168
+ bottomSheetHandle: {
169
+ alignSelf: 'center',
170
+ width: 40,
171
+ height: 4,
172
+ borderRadius: 2,
173
+ backgroundColor: '#dee2e6',
174
+ marginBottom: 16
175
+ },
176
+ bottomSheetTitle: {
177
+ fontSize: 16,
178
+ fontWeight: '700',
179
+ color: '#212529',
180
+ marginBottom: 12
181
+ },
182
+ bottomSheetList: {
183
+ borderWidth: 0
184
+ },
185
+ backdropDismiss: {
186
+ ...StyleSheet.absoluteFill
187
+ }
188
+ });
189
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","dropdownStyles","create","container","justifyContent","width","marginBottom","labelText","fontSize","fontWeight","color","toggleWrapper","position","zIndex","toggleWrapperOpen","dropDown","flexDirection","borderWidth","borderColor","borderRadius","alignItems","paddingVertical","paddingHorizontal","backgroundColor","dropDownDisabled","opacity","selectedText","flex","selectedTextActive","arrow","marginLeft","list","overflow","inlineList","marginTop","anchoredList","top","left","right","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","listItem","borderBottomWidth","borderBottomColor","listItemLast","itemRow","itemRowImageRight","itemImage","toggleImage","itemText","itemTextWithRightImage","marginRight","itemTextSelected","modalContainer","modalContent","maxWidth","maxHeight","paddingTop","paddingBottom","modalHeader","gap","modalTitle","modalCloseButton","modalList","bottomSheetBackdrop","bottomSheetContent","borderTopLeftRadius","borderTopRightRadius","bottomSheetHandle","alignSelf","bottomSheetTitle","bottomSheetList","backdropDismiss","absoluteFill"],"sourceRoot":"../../../../src","sources":["components/customDropDown/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,cAAc,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC9CC,SAAS,EAAE;IACTC,cAAc,EAAE,QAAQ;IACxBC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDC,SAAS,EAAE;IACTD,YAAY,EAAE,EAAE;IAChBE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EACDC,aAAa,EAAE;IACbC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE;EACV,CAAC;EACDC,iBAAiB,EAAE;IACj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,IAAI,EAAE,CAAC;IACPnB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EACDwD,gBAAgB,EAAE;IAChBtD,QAAQ,EAAE,UAAU;IACpBwB,GAAG,EAAE,CAAC;IACNE,KAAK,EAAE;EACT,CAAC;EACD6B,SAAS,EAAE;IACTlD,WAAW,EAAE,CAAC;IACdE,YAAY,EAAE;EAChB,CAAC;EACDiD,mBAAmB,EAAE;IACnBzC,IAAI,EAAE,CAAC;IACPJ,eAAe,EAAE,oBAAoB;IACrCnB,cAAc,EAAE;EAClB,CAAC;EACDiE,kBAAkB,EAAE;IAClB9C,eAAe,EAAE,MAAM;IACvB+C,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxBV,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,EAAE;IACjBxC,iBAAiB,EAAE,EAAE;IACrBsC,SAAS,EAAE;EACb,CAAC;EACDY,iBAAiB,EAAE;IACjBC,SAAS,EAAE,QAAQ;IACnBpE,KAAK,EAAE,EAAE;IACToC,MAAM,EAAE,CAAC;IACTtB,YAAY,EAAE,CAAC;IACfI,eAAe,EAAE,SAAS;IAC1BjB,YAAY,EAAE;EAChB,CAAC;EACDoE,gBAAgB,EAAE;IAChBlE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE,SAAS;IAChBJ,YAAY,EAAE;EAChB,CAAC;EACDqE,eAAe,EAAE;IACf1D,WAAW,EAAE;EACf,CAAC;EACD2D,eAAe,EAAE;IACf,GAAG5E,UAAU,CAAC6E;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/customDropDown/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ export const normalizeListItems = items => items.map(item => {
4
+ if (typeof item === 'string') {
5
+ return {
6
+ label: item,
7
+ value: item
8
+ };
9
+ }
10
+ return {
11
+ label: item.label,
12
+ value: item.value ?? item.label,
13
+ image: item.image
14
+ };
15
+ });
16
+ export const findSelectedOption = (items, selectedText) => items.find(item => item.label === selectedText || item.value === selectedText);
17
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["normalizeListItems","items","map","item","label","value","image","findSelectedOption","selectedText","find"],"sourceRoot":"../../../../src","sources":["components/customDropDown/utils.ts"],"mappings":";;AAEA,OAAO,MAAMA,kBAAkB,GAC7BC,KAAyB,IAEzBA,KAAK,CAACC,GAAG,CAAEC,IAAI,IAAK;EAClB,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO;MAAEC,KAAK,EAAED,IAAI;MAAEE,KAAK,EAAEF;IAAK,CAAC;EACrC;EAEA,OAAO;IACLC,KAAK,EAAED,IAAI,CAACC,KAAK;IACjBC,KAAK,EAAEF,IAAI,CAACE,KAAK,IAAIF,IAAI,CAACC,KAAK;IAC/BE,KAAK,EAAEH,IAAI,CAACG;EACd,CAAC;AACH,CAAC,CAAC;AAEJ,OAAO,MAAMC,kBAAkB,GAAGA,CAChCN,KAAiC,EACjCO,YAAqB,KAErBP,KAAK,CAACQ,IAAI,CACPN,IAAI,IAAKA,IAAI,CAACC,KAAK,KAAKI,YAAY,IAAIL,IAAI,CAACE,KAAK,KAAKG,YAC1D,CAAC","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ import { ActivityIndicator, Text, View } from 'react-native';
4
+ import { listStyles } from "./styles.js";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const ListEmpty = ({
7
+ loading = false,
8
+ title = 'No items found',
9
+ description = 'There is nothing to show in this list yet.',
10
+ icon
11
+ }) => {
12
+ if (loading) {
13
+ return /*#__PURE__*/_jsx(View, {
14
+ style: listStyles.initialLoader,
15
+ children: /*#__PURE__*/_jsx(ActivityIndicator, {
16
+ size: "large",
17
+ color: "#0d6efd"
18
+ })
19
+ });
20
+ }
21
+ return /*#__PURE__*/_jsxs(View, {
22
+ style: listStyles.emptyContainer,
23
+ children: [icon, /*#__PURE__*/_jsx(Text, {
24
+ style: listStyles.emptyTitle,
25
+ children: title
26
+ }), /*#__PURE__*/_jsx(Text, {
27
+ style: listStyles.emptyDescription,
28
+ children: description
29
+ })]
30
+ });
31
+ };
32
+ export default ListEmpty;
33
+ //# sourceMappingURL=ListEmpty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ActivityIndicator","Text","View","listStyles","jsx","_jsx","jsxs","_jsxs","ListEmpty","loading","title","description","icon","style","initialLoader","children","size","color","emptyContainer","emptyTitle","emptyDescription"],"sourceRoot":"../../../../src","sources":["components/customList/ListEmpty.tsx"],"mappings":";;AACA,SAASA,iBAAiB,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAE5D,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAStC,MAAMC,SAAS,GAAGA,CAAC;EACjBC,OAAO,GAAG,KAAK;EACfC,KAAK,GAAG,gBAAgB;EACxBC,WAAW,GAAG,4CAA4C;EAC1DC;AACc,CAAC,KAAK;EACpB,IAAIH,OAAO,EAAE;IACX,oBACEJ,IAAA,CAACH,IAAI;MAACW,KAAK,EAAEV,UAAU,CAACW,aAAc;MAAAC,QAAA,eACpCV,IAAA,CAACL,iBAAiB;QAACgB,IAAI,EAAC,OAAO;QAACC,KAAK,EAAC;MAAS,CAAE;IAAC,CAC9C,CAAC;EAEX;EAEA,oBACEV,KAAA,CAACL,IAAI;IAACW,KAAK,EAAEV,UAAU,CAACe,cAAe;IAAAH,QAAA,GACpCH,IAAI,eACLP,IAAA,CAACJ,IAAI;MAACY,KAAK,EAAEV,UAAU,CAACgB,UAAW;MAAAJ,QAAA,EAAEL;IAAK,CAAO,CAAC,eAClDL,IAAA,CAACJ,IAAI;MAACY,KAAK,EAAEV,UAAU,CAACiB,gBAAiB;MAAAL,QAAA,EAAEJ;IAAW,CAAO,CAAC;EAAA,CAC1D,CAAC;AAEX,CAAC;AAED,eAAeH,SAAS","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import { ActivityIndicator, View } from 'react-native';
4
+ import { listStyles } from "./styles.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const ListFooterLoader = () => /*#__PURE__*/_jsx(View, {
7
+ style: listStyles.footerLoader,
8
+ children: /*#__PURE__*/_jsx(ActivityIndicator, {
9
+ size: "small",
10
+ color: "#0d6efd"
11
+ })
12
+ });
13
+ export default ListFooterLoader;
14
+ //# sourceMappingURL=ListFooterLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ActivityIndicator","View","listStyles","jsx","_jsx","ListFooterLoader","style","footerLoader","children","size","color"],"sourceRoot":"../../../../src","sources":["components/customList/ListFooterLoader.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,EAAEC,IAAI,QAAQ,cAAc;AAEtD,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtC,MAAMC,gBAAgB,GAAGA,CAAA,kBACvBD,IAAA,CAACH,IAAI;EAACK,KAAK,EAAEJ,UAAU,CAACK,YAAa;EAAAC,QAAA,eACnCJ,IAAA,CAACJ,iBAAiB;IAACS,IAAI,EAAC,OAAO;IAACC,KAAK,EAAC;EAAS,CAAE;AAAC,CAC9C,CACP;AAED,eAAeL,gBAAgB","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export const defaultKeyExtractor = (item, index) => {
4
+ if (item && typeof item === 'object' && 'id' in item) {
5
+ return String(item.id);
6
+ }
7
+ return String(index);
8
+ };
9
+ //# sourceMappingURL=defaultKeyExtractor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["defaultKeyExtractor","item","index","String","id"],"sourceRoot":"../../../../src","sources":["components/customList/defaultKeyExtractor.ts"],"mappings":";;AAAA,OAAO,MAAMA,mBAAmB,GAAGA,CAAIC,IAAO,EAAEC,KAAa,KAAK;EAChE,IAAID,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAIA,IAAI,EAAE;IACpD,OAAOE,MAAM,CAAEF,IAAI,CAAqBG,EAAE,CAAC;EAC7C;EAEA,OAAOD,MAAM,CAACD,KAAK,CAAC;AACtB,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ let cachedFlashList;
4
+ export const getFlashList = () => {
5
+ if (cachedFlashList !== undefined) {
6
+ return cachedFlashList;
7
+ }
8
+ try {
9
+ // Optional peer dependency — only required when engine="flashList"
10
+
11
+ const module = require('@shopify/flash-list');
12
+ cachedFlashList = module.FlashList;
13
+ } catch {
14
+ cachedFlashList = null;
15
+ }
16
+ return cachedFlashList;
17
+ };
18
+ export const isFlashListAvailable = () => getFlashList() !== null;
19
+ //# sourceMappingURL=getFlashList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cachedFlashList","getFlashList","undefined","module","require","FlashList","isFlashListAvailable"],"sourceRoot":"../../../../src","sources":["components/customList/getFlashList.ts"],"mappings":";;AAIA,IAAIA,eAAsD;AAE1D,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAiC;EAC3D,IAAID,eAAe,KAAKE,SAAS,EAAE;IACjC,OAAOF,eAAe;EACxB;EAEA,IAAI;IACF;;IAEA,MAAMG,MAAM,GAAGC,OAAO,CAAC,qBAAqB,CAE3C;IACDJ,eAAe,GAAGG,MAAM,CAACE,SAAS;EACpC,CAAC,CAAC,MAAM;IACNL,eAAe,GAAG,IAAI;EACxB;EAEA,OAAOA,eAAe;AACxB,CAAC;AAED,OAAO,MAAMM,oBAAoB,GAAGA,CAAA,KAAML,YAAY,CAAC,CAAC,KAAK,IAAI","ignoreList":[]}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, useMemo } from 'react';
4
+ import { FlatList, View } from 'react-native';
5
+ import { defaultKeyExtractor } from "./defaultKeyExtractor.js";
6
+ import { getFlashList } from "./getFlashList.js";
7
+ import ListEmpty from "./ListEmpty.js";
8
+ import ListFooterLoader from "./ListFooterLoader.js";
9
+ import { listStyles } from "./styles.js";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const DEFAULT_ESTIMATED_ITEM_SIZE = 72;
12
+ const ItemSeparator = () => /*#__PURE__*/_jsx(View, {
13
+ style: listStyles.separator
14
+ });
15
+ function CustomListInner({
16
+ data,
17
+ renderItem,
18
+ engine = 'flatList',
19
+ keyExtractor = defaultKeyExtractor,
20
+ horizontal = false,
21
+ numColumns = 1,
22
+ loading = false,
23
+ loadingMore = false,
24
+ refreshing = false,
25
+ onRefresh,
26
+ onEndReached,
27
+ onEndReachedThreshold = 0.4,
28
+ estimatedItemSize = DEFAULT_ESTIMATED_ITEM_SIZE,
29
+ emptyTitle,
30
+ emptyDescription,
31
+ emptyIcon,
32
+ showSeparator = false,
33
+ separatorStyle,
34
+ ListHeaderComponent,
35
+ ListFooterComponent,
36
+ ListEmptyComponent,
37
+ ItemSeparatorComponent,
38
+ contentContainerStyle,
39
+ style,
40
+ showsVerticalScrollIndicator = false,
41
+ showsHorizontalScrollIndicator = false,
42
+ ...rest
43
+ }, ref) {
44
+ const resolvedSeparator = useMemo(() => {
45
+ if (ItemSeparatorComponent) {
46
+ return ItemSeparatorComponent;
47
+ }
48
+ if (!showSeparator || horizontal) {
49
+ return undefined;
50
+ }
51
+ if (separatorStyle) {
52
+ return () => /*#__PURE__*/_jsx(View, {
53
+ style: [listStyles.separator, separatorStyle]
54
+ });
55
+ }
56
+ return ItemSeparator;
57
+ }, [ItemSeparatorComponent, showSeparator, horizontal, separatorStyle]);
58
+ const resolvedEmpty = useMemo(() => {
59
+ if (ListEmptyComponent) {
60
+ return ListEmptyComponent;
61
+ }
62
+ return /*#__PURE__*/_jsx(ListEmpty, {
63
+ loading: loading,
64
+ title: emptyTitle,
65
+ description: emptyDescription,
66
+ icon: emptyIcon
67
+ });
68
+ }, [ListEmptyComponent, loading, emptyTitle, emptyDescription, emptyIcon]);
69
+ const resolvedFooter = useMemo(() => {
70
+ if (loadingMore) {
71
+ return ListFooterComponent ?? /*#__PURE__*/_jsx(ListFooterLoader, {});
72
+ }
73
+ return ListFooterComponent;
74
+ }, [ListFooterComponent, loadingMore]);
75
+ const commonProps = {
76
+ data: loading && data.length === 0 ? [] : data,
77
+ renderItem,
78
+ keyExtractor,
79
+ horizontal,
80
+ numColumns: horizontal ? 1 : numColumns,
81
+ refreshing,
82
+ onRefresh,
83
+ onEndReached,
84
+ onEndReachedThreshold,
85
+ ListHeaderComponent,
86
+ ListFooterComponent: resolvedFooter,
87
+ ListEmptyComponent: resolvedEmpty,
88
+ ItemSeparatorComponent: resolvedSeparator,
89
+ contentContainerStyle: [data.length === 0 && listStyles.emptyContainer, contentContainerStyle],
90
+ style: [listStyles.list, style],
91
+ showsVerticalScrollIndicator,
92
+ showsHorizontalScrollIndicator,
93
+ ...rest
94
+ };
95
+ if (engine === 'flashList') {
96
+ const FlashListComponent = getFlashList();
97
+ if (!FlashListComponent) {
98
+ console.warn('[CustomList] @shopify/flash-list is not installed. Falling back to FlatList.');
99
+ } else {
100
+ const flashEstimatedSize = horizontal ? Math.max(estimatedItemSize, 120) : estimatedItemSize;
101
+ return /*#__PURE__*/_jsx(FlashListComponent, {
102
+ ...commonProps,
103
+ ref: ref,
104
+ estimatedItemSize: flashEstimatedSize
105
+ });
106
+ }
107
+ }
108
+ return /*#__PURE__*/_jsx(FlatList, {
109
+ ...commonProps,
110
+ ref: ref
111
+ });
112
+ }
113
+ const CustomList = /*#__PURE__*/forwardRef(CustomListInner);
114
+ export default CustomList;
115
+ export { defaultKeyExtractor } from "./defaultKeyExtractor.js";
116
+ export { getFlashList, isFlashListAvailable } from "./getFlashList.js";
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","useMemo","FlatList","View","defaultKeyExtractor","getFlashList","ListEmpty","ListFooterLoader","listStyles","jsx","_jsx","DEFAULT_ESTIMATED_ITEM_SIZE","ItemSeparator","style","separator","CustomListInner","data","renderItem","engine","keyExtractor","horizontal","numColumns","loading","loadingMore","refreshing","onRefresh","onEndReached","onEndReachedThreshold","estimatedItemSize","emptyTitle","emptyDescription","emptyIcon","showSeparator","separatorStyle","ListHeaderComponent","ListFooterComponent","ListEmptyComponent","ItemSeparatorComponent","contentContainerStyle","showsVerticalScrollIndicator","showsHorizontalScrollIndicator","rest","ref","resolvedSeparator","undefined","resolvedEmpty","title","description","icon","resolvedFooter","commonProps","length","emptyContainer","list","FlashListComponent","console","warn","flashEstimatedSize","Math","max","CustomList","isFlashListAvailable"],"sourceRoot":"../../../../src","sources":["components/customList/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,OAAO,QAA2B,OAAO;AAC9D,SAASC,QAAQ,EAAEC,IAAI,QAA4B,cAAc;AAEjE,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,OAAOC,SAAS,MAAM,gBAAa;AACnC,OAAOC,gBAAgB,MAAM,uBAAoB;AACjD,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtC,MAAMC,2BAA2B,GAAG,EAAE;AAEtC,MAAMC,aAAa,GAAGA,CAAA,kBAAMF,IAAA,CAACP,IAAI;EAACU,KAAK,EAAEL,UAAU,CAACM;AAAU,CAAE,CAAC;AAEjE,SAASC,eAAeA,CACtB;EACEC,IAAI;EACJC,UAAU;EACVC,MAAM,GAAG,UAAU;EACnBC,YAAY,GAAGf,mBAAmB;EAClCgB,UAAU,GAAG,KAAK;EAClBC,UAAU,GAAG,CAAC;EACdC,OAAO,GAAG,KAAK;E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AEA,oBAAO/C,IAAA,CAACR,QAAQ;IAAA,GAAKgD,WAAW;IAAER,GAAG,EAAEA;EAAI,CAAE,CAAC;AAChD;AAEA,MAAMkB,UAAU,gBAAG5D,UAAU,CAACe,eAAe,CAE5B;AAEjB,eAAe6C,UAAU;AACzB,SAASxD,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,YAAY,EAAEwD,oBAAoB,QAAQ,mBAAgB","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ export const listStyles = StyleSheet.create({
5
+ list: {
6
+ flex: 1
7
+ },
8
+ separator: {
9
+ height: 1,
10
+ backgroundColor: '#e9ecef',
11
+ marginHorizontal: 16
12
+ },
13
+ emptyContainer: {
14
+ flexGrow: 1,
15
+ alignItems: 'center',
16
+ justifyContent: 'center',
17
+ paddingHorizontal: 24,
18
+ paddingVertical: 48,
19
+ gap: 8
20
+ },
21
+ emptyTitle: {
22
+ fontSize: 16,
23
+ fontWeight: '600',
24
+ color: '#212529',
25
+ textAlign: 'center'
26
+ },
27
+ emptyDescription: {
28
+ fontSize: 14,
29
+ lineHeight: 20,
30
+ color: '#6c757d',
31
+ textAlign: 'center'
32
+ },
33
+ footerLoader: {
34
+ paddingVertical: 16,
35
+ alignItems: 'center',
36
+ justifyContent: 'center'
37
+ },
38
+ initialLoader: {
39
+ flex: 1,
40
+ alignItems: 'center',
41
+ justifyContent: 'center',
42
+ paddingVertical: 48
43
+ }
44
+ });
45
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","listStyles","create","list","flex","separator","height","backgroundColor","marginHorizontal","emptyContainer","flexGrow","alignItems","justifyContent","paddingHorizontal","paddingVertical","gap","emptyTitle","fontSize","fontWeight","color","textAlign","emptyDescription","lineHeight","footerLoader","initialLoader"],"sourceRoot":"../../../../src","sources":["components/customList/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,UAAU,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC1CC,IAAI,EAAE;IACJC,IAAI,EAAE;EACR,CAAC;EACDC,SAAS,EAAE;IACTC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE,SAAS;IAC1BC,gBAAgB,EAAE;EACpB,CAAC;EACDC,cAAc,EAAE;IACdC,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBC,GAAG,EAAE;EACP,CAAC;EACDC,UAAU,EAAE;IACVC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE;EACb,CAAC;EACDC,gBAAgB,EAAE;IAChBJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE,EAAE;IACdH,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE;EACb,CAAC;EACDG,YAAY,EAAE;IACZT,eAAe,EAAE,EAAE;IACnBH,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDY,aAAa,EAAE;IACbpB,IAAI,EAAE,CAAC;IACPO,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBE,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/customList/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import CustomButton from "../customButton/index.js";
5
+ import { styles } from "./styles.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const ModalFooter = ({
8
+ footer,
9
+ primaryAction,
10
+ secondaryAction,
11
+ footerStyle
12
+ }) => {
13
+ if (footer) {
14
+ return /*#__PURE__*/_jsx(View, {
15
+ style: [styles.footer, footerStyle],
16
+ children: footer
17
+ });
18
+ }
19
+ if (!primaryAction && !secondaryAction) {
20
+ return null;
21
+ }
22
+ return /*#__PURE__*/_jsxs(View, {
23
+ style: [styles.footer, footerStyle],
24
+ children: [secondaryAction && /*#__PURE__*/_jsx(CustomButton, {
25
+ text: secondaryAction.label,
26
+ variant: secondaryAction.variant ?? 'outline',
27
+ disabled: secondaryAction.disabled,
28
+ isLoading: secondaryAction.isLoading,
29
+ borderRadius: 8,
30
+ buttonStyles: styles.footerButton,
31
+ onPress: secondaryAction.onPress
32
+ }), primaryAction && /*#__PURE__*/_jsx(CustomButton, {
33
+ text: primaryAction.label,
34
+ variant: primaryAction.variant ?? 'primary',
35
+ disabled: primaryAction.disabled,
36
+ isLoading: primaryAction.isLoading,
37
+ borderRadius: 8,
38
+ buttonStyles: styles.footerButton,
39
+ onPress: primaryAction.onPress
40
+ })]
41
+ });
42
+ };
43
+ export default ModalFooter;
44
+ //# sourceMappingURL=ModalFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","CustomButton","styles","jsx","_jsx","jsxs","_jsxs","ModalFooter","footer","primaryAction","secondaryAction","footerStyle","style","children","text","label","variant","disabled","isLoading","borderRadius","buttonStyles","footerButton","onPress"],"sourceRoot":"../../../../src","sources":["components/customModal/ModalFooter.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAwC,cAAc;AAEnE,OAAOC,YAAY,MAAM,0BAAiB;AAC1C,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAUlC,MAAMC,WAAW,GAAGA,CAAC;EACnBC,MAAM;EACNC,aAAa;EACbC,eAAe;EACfC;AACgB,CAAC,KAAK;EACtB,IAAIH,MAAM,EAAE;IACV,oBAAOJ,IAAA,CAACJ,IAAI;M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