react-native-reanimated-carousel 5.0.0-beta.8 → 5.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 (398) hide show
  1. package/README.md +31 -29
  2. package/lib/commonjs/components/Carousel.js +1 -1
  3. package/lib/commonjs/components/Carousel.js.map +1 -1
  4. package/lib/commonjs/components/CarouselLayout.js +1 -1
  5. package/lib/commonjs/components/CarouselLayout.js.map +1 -1
  6. package/lib/commonjs/components/ItemLayout.js +1 -1
  7. package/lib/commonjs/components/ItemLayout.js.map +1 -1
  8. package/lib/commonjs/components/ItemRenderer.js +1 -1
  9. package/lib/commonjs/components/ItemRenderer.js.map +1 -1
  10. package/lib/commonjs/components/Pagination/PaginationItem.js +2 -0
  11. package/lib/commonjs/components/Pagination/PaginationItem.js.map +1 -0
  12. package/lib/commonjs/components/Pagination/index.js +1 -1
  13. package/lib/commonjs/components/Pagination/index.js.map +1 -1
  14. package/lib/commonjs/components/ScrollViewGesture.js +1 -1
  15. package/lib/commonjs/components/ScrollViewGesture.js.map +1 -1
  16. package/lib/commonjs/hooks/useAutoPlay.js +1 -1
  17. package/lib/commonjs/hooks/useAutoPlay.js.map +1 -1
  18. package/lib/commonjs/hooks/useCarouselController.js +1 -1
  19. package/lib/commonjs/hooks/useCarouselController.js.map +1 -1
  20. package/lib/commonjs/hooks/useCommonVariables.js +1 -1
  21. package/lib/commonjs/hooks/useCommonVariables.js.map +1 -1
  22. package/lib/commonjs/hooks/useInitProps.js +1 -1
  23. package/lib/commonjs/hooks/useInitProps.js.map +1 -1
  24. package/lib/commonjs/hooks/useLayoutConfig.js +1 -1
  25. package/lib/commonjs/hooks/useLayoutConfig.js.map +1 -1
  26. package/lib/commonjs/hooks/useOffsetX.js.map +1 -1
  27. package/lib/commonjs/hooks/useOnProgressChange.js +1 -1
  28. package/lib/commonjs/hooks/useOnProgressChange.js.map +1 -1
  29. package/lib/commonjs/hooks/usePanGestureProxy.js.map +1 -1
  30. package/lib/commonjs/hooks/usePropsErrorBoundary.js +1 -1
  31. package/lib/commonjs/hooks/usePropsErrorBoundary.js.map +1 -1
  32. package/lib/commonjs/hooks/useUpdateGestureConfig.js.map +1 -1
  33. package/lib/commonjs/hooks/useVisibleRanges.js.map +1 -1
  34. package/lib/commonjs/index.js +1 -1
  35. package/lib/commonjs/index.js.map +1 -1
  36. package/lib/commonjs/layouts/index.js.map +1 -1
  37. package/lib/commonjs/layouts/normal.js +1 -1
  38. package/lib/commonjs/layouts/normal.js.map +1 -1
  39. package/lib/commonjs/layouts/parallax.js +1 -1
  40. package/lib/commonjs/layouts/parallax.js.map +1 -1
  41. package/lib/commonjs/layouts/stack.js +1 -1
  42. package/lib/commonjs/layouts/stack.js.map +1 -1
  43. package/lib/commonjs/public-types.js +2 -0
  44. package/lib/commonjs/public-types.js.map +1 -0
  45. package/lib/commonjs/store/index.js.map +1 -1
  46. package/lib/commonjs/utils/carousel-direction.js +2 -0
  47. package/lib/commonjs/utils/carousel-direction.js.map +1 -0
  48. package/lib/commonjs/utils/carousel-math.js +2 -0
  49. package/lib/commonjs/utils/carousel-math.js.map +1 -0
  50. package/lib/commonjs/utils/deal-with-animation.js +1 -1
  51. package/lib/commonjs/utils/deal-with-animation.js.map +1 -1
  52. package/lib/module/components/Carousel.js +1 -1
  53. package/lib/module/components/Carousel.js.map +1 -1
  54. package/lib/module/components/CarouselLayout.js +1 -1
  55. package/lib/module/components/CarouselLayout.js.map +1 -1
  56. package/lib/module/components/ItemLayout.js +1 -1
  57. package/lib/module/components/ItemLayout.js.map +1 -1
  58. package/lib/module/components/ItemRenderer.js +1 -1
  59. package/lib/module/components/ItemRenderer.js.map +1 -1
  60. package/lib/module/components/LazyView.js +1 -1
  61. package/lib/module/components/LazyView.js.map +1 -1
  62. package/lib/module/components/Pagination/PaginationItem.js +2 -0
  63. package/lib/module/components/Pagination/PaginationItem.js.map +1 -0
  64. package/lib/module/components/Pagination/index.js +1 -1
  65. package/lib/module/components/Pagination/index.js.map +1 -1
  66. package/lib/module/components/ScrollViewGesture.js +1 -1
  67. package/lib/module/components/ScrollViewGesture.js.map +1 -1
  68. package/lib/module/constants/index.js +1 -1
  69. package/lib/module/constants/index.js.map +1 -1
  70. package/lib/module/hooks/useAutoPlay.js +1 -1
  71. package/lib/module/hooks/useAutoPlay.js.map +1 -1
  72. package/lib/module/hooks/useCarouselController.js +1 -1
  73. package/lib/module/hooks/useCarouselController.js.map +1 -1
  74. package/lib/module/hooks/useCheckMounted.js +1 -1
  75. package/lib/module/hooks/useCheckMounted.js.map +1 -1
  76. package/lib/module/hooks/useCommonVariables.js +1 -1
  77. package/lib/module/hooks/useCommonVariables.js.map +1 -1
  78. package/lib/module/hooks/useInitProps.js +1 -1
  79. package/lib/module/hooks/useInitProps.js.map +1 -1
  80. package/lib/module/hooks/useLayoutConfig.js +1 -1
  81. package/lib/module/hooks/useLayoutConfig.js.map +1 -1
  82. package/lib/module/hooks/useOffsetX.js +1 -1
  83. package/lib/module/hooks/useOffsetX.js.map +1 -1
  84. package/lib/module/hooks/useOnProgressChange.js +1 -1
  85. package/lib/module/hooks/useOnProgressChange.js.map +1 -1
  86. package/lib/module/hooks/usePanGestureProxy.js +1 -1
  87. package/lib/module/hooks/usePanGestureProxy.js.map +1 -1
  88. package/lib/module/hooks/usePropsErrorBoundary.js +1 -1
  89. package/lib/module/hooks/usePropsErrorBoundary.js.map +1 -1
  90. package/lib/module/hooks/useUpdateGestureConfig.js +1 -1
  91. package/lib/module/hooks/useUpdateGestureConfig.js.map +1 -1
  92. package/lib/module/hooks/useVisibleRanges.js +1 -1
  93. package/lib/module/hooks/useVisibleRanges.js.map +1 -1
  94. package/lib/module/index.js +1 -1
  95. package/lib/module/index.js.map +1 -1
  96. package/lib/module/layouts/index.js +1 -1
  97. package/lib/module/layouts/index.js.map +1 -1
  98. package/lib/module/layouts/normal.js +1 -1
  99. package/lib/module/layouts/normal.js.map +1 -1
  100. package/lib/module/layouts/parallax.js +1 -1
  101. package/lib/module/layouts/parallax.js.map +1 -1
  102. package/lib/module/layouts/stack.js +1 -1
  103. package/lib/module/layouts/stack.js.map +1 -1
  104. package/lib/module/package.json +1 -0
  105. package/lib/module/public-types.js +2 -0
  106. package/lib/module/public-types.js.map +1 -0
  107. package/lib/module/store/index.js +1 -1
  108. package/lib/module/store/index.js.map +1 -1
  109. package/lib/module/types.js +1 -1
  110. package/lib/module/utils/carousel-direction.js +2 -0
  111. package/lib/module/utils/carousel-direction.js.map +1 -0
  112. package/lib/module/utils/carousel-math.js +2 -0
  113. package/lib/module/utils/carousel-math.js.map +1 -0
  114. package/lib/module/utils/compute-gesture-translation.js +1 -1
  115. package/lib/module/utils/compute-gesture-translation.js.map +1 -1
  116. package/lib/module/utils/compute-offset-if-size-changed.js +1 -1
  117. package/lib/module/utils/compute-offset-if-size-changed.js.map +1 -1
  118. package/lib/module/utils/computed-with-auto-fill-data.js +1 -1
  119. package/lib/module/utils/computed-with-auto-fill-data.js.map +1 -1
  120. package/lib/module/utils/deal-with-animation.js +1 -1
  121. package/lib/module/utils/deal-with-animation.js.map +1 -1
  122. package/lib/module/utils/log.js +1 -1
  123. package/lib/module/utils/log.js.map +1 -1
  124. package/lib/module/utils/sanitize-animation-style.js +1 -1
  125. package/lib/module/utils/sanitize-animation-style.js.map +1 -1
  126. package/lib/typescript/commonjs/components/Carousel.d.ts +8 -0
  127. package/lib/typescript/commonjs/components/Carousel.d.ts.map +1 -0
  128. package/lib/typescript/{components → commonjs/components}/CarouselLayout.d.ts +5 -8
  129. package/lib/typescript/commonjs/components/CarouselLayout.d.ts.map +1 -0
  130. package/lib/typescript/{components → commonjs/components}/ItemLayout.d.ts +7 -6
  131. package/lib/typescript/commonjs/components/ItemLayout.d.ts.map +1 -0
  132. package/lib/typescript/commonjs/components/ItemRenderer.d.ts +24 -0
  133. package/lib/typescript/commonjs/components/ItemRenderer.d.ts.map +1 -0
  134. package/lib/typescript/commonjs/components/LazyView.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/components/Pagination/PaginationItem.d.ts +14 -0
  136. package/lib/typescript/commonjs/components/Pagination/PaginationItem.d.ts.map +1 -0
  137. package/lib/typescript/commonjs/components/Pagination/index.d.ts +4 -0
  138. package/lib/typescript/commonjs/components/Pagination/index.d.ts.map +1 -0
  139. package/lib/typescript/{components → commonjs/components}/ScrollViewGesture.d.ts +3 -4
  140. package/lib/typescript/commonjs/components/ScrollViewGesture.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/constants/index.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/hooks/useAutoPlay.d.ts +12 -0
  143. package/lib/typescript/commonjs/hooks/useAutoPlay.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/hooks/useCarouselController.d.ts +29 -0
  145. package/lib/typescript/commonjs/hooks/useCarouselController.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/hooks/useCheckMounted.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/hooks/useCommonVariables.d.ts +18 -0
  148. package/lib/typescript/commonjs/hooks/useCommonVariables.d.ts.map +1 -0
  149. package/lib/typescript/commonjs/hooks/useInitProps.d.ts +25 -0
  150. package/lib/typescript/commonjs/hooks/useInitProps.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/hooks/useLayoutConfig.d.ts +8 -0
  152. package/lib/typescript/commonjs/hooks/useLayoutConfig.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/hooks/useOffsetX.d.ts +13 -0
  154. package/lib/typescript/commonjs/hooks/useOffsetX.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/hooks/useOnProgressChange.d.ts +12 -0
  156. package/lib/typescript/commonjs/hooks/useOnProgressChange.d.ts.map +1 -0
  157. package/lib/typescript/{hooks → commonjs/hooks}/usePanGestureProxy.d.ts +3 -2
  158. package/lib/typescript/commonjs/hooks/usePanGestureProxy.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/hooks/usePropsErrorBoundary.d.ts +3 -0
  160. package/lib/typescript/commonjs/hooks/usePropsErrorBoundary.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/hooks/useUpdateGestureConfig.d.ts +9 -0
  162. package/lib/typescript/commonjs/hooks/useUpdateGestureConfig.d.ts.map +1 -0
  163. package/lib/typescript/{hooks → commonjs/hooks}/useVisibleRanges.d.ts +2 -2
  164. package/lib/typescript/commonjs/hooks/useVisibleRanges.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/index.d.ts +4 -0
  166. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  167. package/lib/typescript/{layouts → commonjs/layouts}/index.d.ts +0 -1
  168. package/lib/typescript/commonjs/layouts/index.d.ts.map +1 -0
  169. package/lib/typescript/{layouts → commonjs/layouts}/normal.d.ts +3 -1
  170. package/lib/typescript/commonjs/layouts/normal.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/layouts/parallax.d.ts +27 -0
  172. package/lib/typescript/commonjs/layouts/parallax.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/layouts/stack.d.ts +10 -0
  174. package/lib/typescript/commonjs/layouts/stack.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/package.json +1 -0
  176. package/lib/typescript/commonjs/public-types.d.ts +161 -0
  177. package/lib/typescript/commonjs/public-types.d.ts.map +1 -0
  178. package/lib/typescript/{store → commonjs/store}/index.d.ts +8 -8
  179. package/lib/typescript/commonjs/store/index.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/types.d.ts +15 -0
  181. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/utils/carousel-direction.d.ts +9 -0
  183. package/lib/typescript/commonjs/utils/carousel-direction.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/utils/carousel-math.d.ts +28 -0
  185. package/lib/typescript/commonjs/utils/carousel-math.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/utils/compute-gesture-translation.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/utils/compute-offset-if-size-changed.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/utils/computed-with-auto-fill-data.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/utils/deal-with-animation.d.ts +3 -0
  190. package/lib/typescript/commonjs/utils/deal-with-animation.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/utils/log.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/utils/sanitize-animation-style.d.ts.map +1 -0
  193. package/lib/typescript/module/components/Carousel.d.ts +8 -0
  194. package/lib/typescript/module/components/Carousel.d.ts.map +1 -0
  195. package/lib/typescript/module/components/CarouselLayout.d.ts +14 -0
  196. package/lib/typescript/module/components/CarouselLayout.d.ts.map +1 -0
  197. package/lib/typescript/module/components/ItemLayout.d.ts +21 -0
  198. package/lib/typescript/module/components/ItemLayout.d.ts.map +1 -0
  199. package/lib/typescript/module/components/ItemRenderer.d.ts +24 -0
  200. package/lib/typescript/module/components/ItemRenderer.d.ts.map +1 -0
  201. package/lib/typescript/module/components/LazyView.d.ts +8 -0
  202. package/lib/typescript/module/components/LazyView.d.ts.map +1 -0
  203. package/lib/typescript/module/components/Pagination/PaginationItem.d.ts +14 -0
  204. package/lib/typescript/module/components/Pagination/PaginationItem.d.ts.map +1 -0
  205. package/lib/typescript/module/components/Pagination/index.d.ts +4 -0
  206. package/lib/typescript/module/components/Pagination/index.d.ts.map +1 -0
  207. package/lib/typescript/module/components/ScrollViewGesture.d.ts +18 -0
  208. package/lib/typescript/module/components/ScrollViewGesture.d.ts.map +1 -0
  209. package/lib/typescript/module/constants/index.d.ts +9 -0
  210. package/lib/typescript/module/constants/index.d.ts.map +1 -0
  211. package/lib/typescript/module/hooks/useAutoPlay.d.ts +12 -0
  212. package/lib/typescript/module/hooks/useAutoPlay.d.ts.map +1 -0
  213. package/lib/typescript/module/hooks/useCarouselController.d.ts +29 -0
  214. package/lib/typescript/module/hooks/useCarouselController.d.ts.map +1 -0
  215. package/lib/typescript/module/hooks/useCheckMounted.d.ts +3 -0
  216. package/lib/typescript/module/hooks/useCheckMounted.d.ts.map +1 -0
  217. package/lib/typescript/module/hooks/useCommonVariables.d.ts +18 -0
  218. package/lib/typescript/module/hooks/useCommonVariables.d.ts.map +1 -0
  219. package/lib/typescript/module/hooks/useInitProps.d.ts +25 -0
  220. package/lib/typescript/module/hooks/useInitProps.d.ts.map +1 -0
  221. package/lib/typescript/module/hooks/useLayoutConfig.d.ts +8 -0
  222. package/lib/typescript/module/hooks/useLayoutConfig.d.ts.map +1 -0
  223. package/lib/typescript/module/hooks/useOffsetX.d.ts +13 -0
  224. package/lib/typescript/module/hooks/useOffsetX.d.ts.map +1 -0
  225. package/lib/typescript/module/hooks/useOnProgressChange.d.ts +12 -0
  226. package/lib/typescript/module/hooks/useOnProgressChange.d.ts.map +1 -0
  227. package/lib/typescript/module/hooks/usePanGestureProxy.d.ts +11 -0
  228. package/lib/typescript/module/hooks/usePanGestureProxy.d.ts.map +1 -0
  229. package/lib/typescript/module/hooks/usePropsErrorBoundary.d.ts +3 -0
  230. package/lib/typescript/module/hooks/usePropsErrorBoundary.d.ts.map +1 -0
  231. package/lib/typescript/module/hooks/useUpdateGestureConfig.d.ts +9 -0
  232. package/lib/typescript/module/hooks/useUpdateGestureConfig.d.ts.map +1 -0
  233. package/lib/typescript/module/hooks/useVisibleRanges.d.ts +22 -0
  234. package/lib/typescript/module/hooks/useVisibleRanges.d.ts.map +1 -0
  235. package/lib/typescript/module/index.d.ts +4 -0
  236. package/lib/typescript/module/index.d.ts.map +1 -0
  237. package/lib/typescript/module/layouts/index.d.ts +10 -0
  238. package/lib/typescript/module/layouts/index.d.ts.map +1 -0
  239. package/lib/typescript/module/layouts/normal.d.ts +15 -0
  240. package/lib/typescript/module/layouts/normal.d.ts.map +1 -0
  241. package/lib/typescript/module/layouts/parallax.d.ts +27 -0
  242. package/lib/typescript/module/layouts/parallax.d.ts.map +1 -0
  243. package/lib/typescript/module/layouts/stack.d.ts +10 -0
  244. package/lib/typescript/module/layouts/stack.d.ts.map +1 -0
  245. package/lib/typescript/module/package.json +1 -0
  246. package/lib/typescript/module/public-types.d.ts +161 -0
  247. package/lib/typescript/module/public-types.d.ts.map +1 -0
  248. package/lib/typescript/module/store/index.d.ts +35 -0
  249. package/lib/typescript/module/store/index.d.ts.map +1 -0
  250. package/lib/typescript/module/types.d.ts +15 -0
  251. package/lib/typescript/module/types.d.ts.map +1 -0
  252. package/lib/typescript/module/utils/carousel-direction.d.ts +9 -0
  253. package/lib/typescript/module/utils/carousel-direction.d.ts.map +1 -0
  254. package/lib/typescript/module/utils/carousel-math.d.ts +28 -0
  255. package/lib/typescript/module/utils/carousel-math.d.ts.map +1 -0
  256. package/lib/typescript/module/utils/compute-gesture-translation.d.ts +9 -0
  257. package/lib/typescript/module/utils/compute-gesture-translation.d.ts.map +1 -0
  258. package/lib/typescript/module/utils/compute-offset-if-size-changed.d.ts +6 -0
  259. package/lib/typescript/module/utils/compute-offset-if-size-changed.d.ts.map +1 -0
  260. package/lib/typescript/module/utils/computed-with-auto-fill-data.d.ts +23 -0
  261. package/lib/typescript/module/utils/computed-with-auto-fill-data.d.ts.map +1 -0
  262. package/lib/typescript/module/utils/deal-with-animation.d.ts +3 -0
  263. package/lib/typescript/module/utils/deal-with-animation.d.ts.map +1 -0
  264. package/lib/typescript/module/utils/log.d.ts +7 -0
  265. package/lib/typescript/module/utils/log.d.ts.map +1 -0
  266. package/lib/typescript/module/utils/sanitize-animation-style.d.ts +3 -0
  267. package/lib/typescript/module/utils/sanitize-animation-style.d.ts.map +1 -0
  268. package/package.json +31 -6
  269. package/scripts/codemods/v5.mjs +502 -0
  270. package/src/components/Carousel.tsx +5 -5
  271. package/src/components/CarouselLayout.tsx +52 -89
  272. package/src/components/ItemLayout.tsx +55 -46
  273. package/src/components/ItemRenderer.tsx +29 -18
  274. package/src/components/Pagination/PaginationItem.tsx +162 -0
  275. package/src/components/Pagination/index.tsx +105 -6
  276. package/src/components/ScrollViewGesture.tsx +92 -177
  277. package/src/hooks/useAutoPlay.ts +23 -18
  278. package/src/hooks/useCarouselController.tsx +194 -340
  279. package/src/hooks/useCommonVariables.ts +159 -71
  280. package/src/hooks/useInitProps.ts +161 -71
  281. package/src/hooks/useLayoutConfig.ts +21 -12
  282. package/src/hooks/useOffsetX.ts +3 -3
  283. package/src/hooks/useOnProgressChange.ts +23 -48
  284. package/src/hooks/usePanGestureProxy.ts +2 -2
  285. package/src/hooks/usePropsErrorBoundary.ts +32 -90
  286. package/src/hooks/useUpdateGestureConfig.ts +5 -2
  287. package/src/hooks/useVisibleRanges.tsx +2 -2
  288. package/src/index.tsx +14 -9
  289. package/src/layouts/index.tsx +0 -2
  290. package/src/layouts/normal.ts +14 -4
  291. package/src/layouts/parallax.ts +32 -59
  292. package/src/layouts/stack.ts +30 -70
  293. package/src/public-types.ts +198 -0
  294. package/src/store/index.tsx +7 -7
  295. package/src/types.ts +30 -322
  296. package/src/utils/carousel-direction.ts +39 -0
  297. package/src/utils/carousel-math.ts +156 -0
  298. package/src/utils/deal-with-animation.ts +11 -9
  299. package/lib/commonjs/components/Pagination/Basic/PaginationItem.js +0 -2
  300. package/lib/commonjs/components/Pagination/Basic/PaginationItem.js.map +0 -1
  301. package/lib/commonjs/components/Pagination/Basic/index.js +0 -2
  302. package/lib/commonjs/components/Pagination/Basic/index.js.map +0 -1
  303. package/lib/commonjs/components/Pagination/Custom/PaginationItem.js +0 -2
  304. package/lib/commonjs/components/Pagination/Custom/PaginationItem.js.map +0 -1
  305. package/lib/commonjs/components/Pagination/Custom/index.js +0 -2
  306. package/lib/commonjs/components/Pagination/Custom/index.js.map +0 -1
  307. package/lib/commonjs/utils/compute-offset-if-data-changed.js +0 -2
  308. package/lib/commonjs/utils/compute-offset-if-data-changed.js.map +0 -1
  309. package/lib/commonjs/utils/handleroffset-direction.js +0 -2
  310. package/lib/commonjs/utils/handleroffset-direction.js.map +0 -1
  311. package/lib/module/components/Pagination/Basic/PaginationItem.js +0 -2
  312. package/lib/module/components/Pagination/Basic/PaginationItem.js.map +0 -1
  313. package/lib/module/components/Pagination/Basic/index.js +0 -2
  314. package/lib/module/components/Pagination/Basic/index.js.map +0 -1
  315. package/lib/module/components/Pagination/Custom/PaginationItem.js +0 -2
  316. package/lib/module/components/Pagination/Custom/PaginationItem.js.map +0 -1
  317. package/lib/module/components/Pagination/Custom/index.js +0 -2
  318. package/lib/module/components/Pagination/Custom/index.js.map +0 -1
  319. package/lib/module/utils/compute-offset-if-data-changed.js +0 -2
  320. package/lib/module/utils/compute-offset-if-data-changed.js.map +0 -1
  321. package/lib/module/utils/handleroffset-direction.js +0 -2
  322. package/lib/module/utils/handleroffset-direction.js.map +0 -1
  323. package/lib/typescript/components/Carousel.d.ts +0 -8
  324. package/lib/typescript/components/Carousel.d.ts.map +0 -1
  325. package/lib/typescript/components/CarouselLayout.d.ts.map +0 -1
  326. package/lib/typescript/components/ItemLayout.d.ts.map +0 -1
  327. package/lib/typescript/components/ItemRenderer.d.ts +0 -23
  328. package/lib/typescript/components/ItemRenderer.d.ts.map +0 -1
  329. package/lib/typescript/components/LazyView.d.ts.map +0 -1
  330. package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts +0 -29
  331. package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts.map +0 -1
  332. package/lib/typescript/components/Pagination/Basic/index.d.ts +0 -23
  333. package/lib/typescript/components/Pagination/Basic/index.d.ts.map +0 -1
  334. package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts +0 -35
  335. package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts.map +0 -1
  336. package/lib/typescript/components/Pagination/Custom/index.d.ts +0 -26
  337. package/lib/typescript/components/Pagination/Custom/index.d.ts.map +0 -1
  338. package/lib/typescript/components/Pagination/index.d.ts +0 -5
  339. package/lib/typescript/components/Pagination/index.d.ts.map +0 -1
  340. package/lib/typescript/components/ScrollViewGesture.d.ts.map +0 -1
  341. package/lib/typescript/constants/index.d.ts.map +0 -1
  342. package/lib/typescript/hooks/useAutoPlay.d.ts +0 -12
  343. package/lib/typescript/hooks/useAutoPlay.d.ts.map +0 -1
  344. package/lib/typescript/hooks/useCarouselController.d.ts +0 -28
  345. package/lib/typescript/hooks/useCarouselController.d.ts.map +0 -1
  346. package/lib/typescript/hooks/useCheckMounted.d.ts.map +0 -1
  347. package/lib/typescript/hooks/useCommonVariables.d.ts +0 -13
  348. package/lib/typescript/hooks/useCommonVariables.d.ts.map +0 -1
  349. package/lib/typescript/hooks/useInitProps.d.ts +0 -10
  350. package/lib/typescript/hooks/useInitProps.d.ts.map +0 -1
  351. package/lib/typescript/hooks/useLayoutConfig.d.ts +0 -8
  352. package/lib/typescript/hooks/useLayoutConfig.d.ts.map +0 -1
  353. package/lib/typescript/hooks/useOffsetX.d.ts +0 -13
  354. package/lib/typescript/hooks/useOffsetX.d.ts.map +0 -1
  355. package/lib/typescript/hooks/useOnProgressChange.d.ts +0 -11
  356. package/lib/typescript/hooks/useOnProgressChange.d.ts.map +0 -1
  357. package/lib/typescript/hooks/usePanGestureProxy.d.ts.map +0 -1
  358. package/lib/typescript/hooks/usePropsErrorBoundary.d.ts +0 -5
  359. package/lib/typescript/hooks/usePropsErrorBoundary.d.ts.map +0 -1
  360. package/lib/typescript/hooks/useUpdateGestureConfig.d.ts +0 -6
  361. package/lib/typescript/hooks/useUpdateGestureConfig.d.ts.map +0 -1
  362. package/lib/typescript/hooks/useVisibleRanges.d.ts.map +0 -1
  363. package/lib/typescript/index.d.ts +0 -7
  364. package/lib/typescript/index.d.ts.map +0 -1
  365. package/lib/typescript/layouts/index.d.ts.map +0 -1
  366. package/lib/typescript/layouts/normal.d.ts.map +0 -1
  367. package/lib/typescript/layouts/parallax.d.ts +0 -47
  368. package/lib/typescript/layouts/parallax.d.ts.map +0 -1
  369. package/lib/typescript/layouts/stack.d.ts +0 -38
  370. package/lib/typescript/layouts/stack.d.ts.map +0 -1
  371. package/lib/typescript/store/index.d.ts.map +0 -1
  372. package/lib/typescript/types.d.ts +0 -302
  373. package/lib/typescript/types.d.ts.map +0 -1
  374. package/lib/typescript/utils/compute-gesture-translation.d.ts.map +0 -1
  375. package/lib/typescript/utils/compute-offset-if-data-changed.d.ts +0 -9
  376. package/lib/typescript/utils/compute-offset-if-data-changed.d.ts.map +0 -1
  377. package/lib/typescript/utils/compute-offset-if-size-changed.d.ts.map +0 -1
  378. package/lib/typescript/utils/computed-with-auto-fill-data.d.ts.map +0 -1
  379. package/lib/typescript/utils/deal-with-animation.d.ts +0 -3
  380. package/lib/typescript/utils/deal-with-animation.d.ts.map +0 -1
  381. package/lib/typescript/utils/handleroffset-direction.d.ts +0 -4
  382. package/lib/typescript/utils/handleroffset-direction.d.ts.map +0 -1
  383. package/lib/typescript/utils/log.d.ts.map +0 -1
  384. package/lib/typescript/utils/sanitize-animation-style.d.ts.map +0 -1
  385. package/src/components/Pagination/Basic/PaginationItem.tsx +0 -149
  386. package/src/components/Pagination/Basic/index.tsx +0 -98
  387. package/src/components/Pagination/Custom/PaginationItem.tsx +0 -166
  388. package/src/components/Pagination/Custom/index.tsx +0 -111
  389. package/src/utils/compute-offset-if-data-changed.ts +0 -44
  390. package/src/utils/handleroffset-direction.ts +0 -18
  391. /package/lib/typescript/{components → commonjs/components}/LazyView.d.ts +0 -0
  392. /package/lib/typescript/{constants → commonjs/constants}/index.d.ts +0 -0
  393. /package/lib/typescript/{hooks → commonjs/hooks}/useCheckMounted.d.ts +0 -0
  394. /package/lib/typescript/{utils → commonjs/utils}/compute-gesture-translation.d.ts +0 -0
  395. /package/lib/typescript/{utils → commonjs/utils}/compute-offset-if-size-changed.d.ts +0 -0
  396. /package/lib/typescript/{utils → commonjs/utils}/computed-with-auto-fill-data.d.ts +0 -0
  397. /package/lib/typescript/{utils → commonjs/utils}/log.d.ts +0 -0
  398. /package/lib/typescript/{utils → commonjs/utils}/sanitize-animation-style.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAutoPlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAutoPlay.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,wBAAgB,WAAW,CAAC,OAAO,EAAE;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;;;;EAqDA"}
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import type { SharedValue } from "react-native-reanimated";
3
+ import type { CarouselAnimation, CarouselRef, InternalCarouselScrollToOptions, InternalCarouselStepOptions } from "../types";
4
+ interface CarouselControllerOptions {
5
+ ref: React.ForwardedRef<CarouselRef>;
6
+ loop: boolean;
7
+ size: number;
8
+ dataLength: number;
9
+ rawDataLength: number;
10
+ handlerOffset: SharedValue<number>;
11
+ animation: CarouselAnimation;
12
+ defaultIndex?: number;
13
+ onScrollStart?: () => void;
14
+ onMovementEnd?: (index: number) => void;
15
+ }
16
+ export interface CarouselController {
17
+ getSharedIndex: () => number;
18
+ prev: (options?: InternalCarouselStepOptions) => void;
19
+ next: (options?: InternalCarouselStepOptions) => void;
20
+ getCurrentIndex: () => number;
21
+ scrollTo: (options: InternalCarouselScrollToOptions) => void;
22
+ index: SharedValue<number>;
23
+ startMovement: () => void;
24
+ cancelMovement: () => void;
25
+ settle: () => number;
26
+ }
27
+ export declare function useCarouselController(options: CarouselControllerOptions): CarouselController;
28
+ export {};
29
+ //# sourceMappingURL=useCarouselController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCarouselController.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCarouselController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACX,+BAA+B,EAC/B,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAUlB,UAAU,yBAAyB;IACjC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACtD,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACtD,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,MAAM,CAAC;CACtB;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,yBAAyB,GAAG,kBAAkB,CAwP5F"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare function useCheckMounted(): React.RefObject<boolean>;
3
+ //# sourceMappingURL=useCheckMounted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCheckMounted.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCheckMounted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,eAAe,6BAW9B"}
@@ -0,0 +1,18 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ import type { InitializedCarouselProps } from "./useInitProps";
3
+ export type CarouselSizePhase = "pending" | "ready" | "updating";
4
+ export interface CarouselCommonVariables {
5
+ size: number;
6
+ validLength: number;
7
+ handlerOffset: SharedValue<number>;
8
+ resolvedSize: SharedValue<number | null>;
9
+ sizePhase: SharedValue<CarouselSizePhase>;
10
+ sizeExplicit: boolean;
11
+ isMoving: SharedValue<boolean>;
12
+ dataRevision: number;
13
+ startMovement: () => void;
14
+ cancelMovement: () => void;
15
+ settleMovement: () => void;
16
+ }
17
+ export declare function useCommonVariables(props: InitializedCarouselProps<unknown>): CarouselCommonVariables;
18
+ //# sourceMappingURL=useCommonVariables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCommonVariables.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCommonVariables.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAS/D,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;AAEjE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,YAAY,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACzC,SAAS,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC1C,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,GACvC,uBAAuB,CAmOzB"}
@@ -0,0 +1,25 @@
1
+ import type { CarouselAnimation, CarouselProps } from "../types";
2
+ import { type CarouselDirectionSign } from "../utils/carousel-direction";
3
+ type CarouselSnapMode = NonNullable<CarouselProps<unknown>["snapMode"]>;
4
+ export type InitializedCarouselProps<Item> = Omit<CarouselProps<Item>, "autoplay" | "autoplayDirection" | "autoplayInterval" | "data" | "defaultIndex" | "loop" | "orientation" | "overscrollEnabled" | "scrollEnabled" | "snapMode" | "style"> & {
5
+ autoplay: boolean;
6
+ autoplayDirection: "forward" | "backward";
7
+ autoplayInterval: number;
8
+ data: Item[];
9
+ defaultIndex: number;
10
+ loop: boolean;
11
+ orientation: "horizontal" | "vertical";
12
+ overscrollEnabled: boolean;
13
+ scrollEnabled: boolean;
14
+ snapMode: CarouselSnapMode;
15
+ style: NonNullable<CarouselProps<Item>["style"]>;
16
+ animation: CarouselAnimation;
17
+ rawData: Item[];
18
+ dataLength: number;
19
+ rawDataLength: number;
20
+ autoFillData: true;
21
+ directionSign: CarouselDirectionSign;
22
+ };
23
+ export declare function useInitProps<Item>(props: CarouselProps<Item>): InitializedCarouselProps<Item>;
24
+ export {};
25
+ //# sourceMappingURL=useInitProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInitProps.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInitProps.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,KAAK,qBAAqB,EAA4B,MAAM,6BAA6B,CAAC;AAGnG,KAAK,gBAAgB,GAAG,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,wBAAwB,CAAC,IAAI,IAAI,IAAI,CAC/C,aAAa,CAAC,IAAI,CAAC,EACjB,UAAU,GACV,mBAAmB,GACnB,kBAAkB,GAClB,MAAM,GACN,cAAc,GACd,MAAM,GACN,aAAa,GACb,mBAAmB,GACnB,eAAe,GACf,UAAU,GACV,OAAO,CACV,GAAG;IACF,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,SAAS,GAAG,UAAU,CAAC;IAC1C,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACjD,SAAS,EAAE,iBAAiB,CAAC;IAC7B,OAAO,EAAE,IAAI,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,IAAI,CAAC;IACnB,aAAa,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,wBAAwB,CAAC,IAAI,CAAC,CA2F7F"}
@@ -0,0 +1,8 @@
1
+ import type { CarouselItemAnimation } from "../types";
2
+ import type { InitializedCarouselProps } from "./useInitProps";
3
+ type LayoutConfigOptions<Item> = InitializedCarouselProps<Item> & {
4
+ size: number;
5
+ };
6
+ export declare function useLayoutConfig<Item>(options: LayoutConfigOptions<Item>): CarouselItemAnimation;
7
+ export {};
8
+ //# sourceMappingURL=useLayoutConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLayoutConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useLayoutConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,KAAK,mBAAmB,CAAC,IAAI,IAAI,wBAAwB,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAmB,CAAC,IAAI,CAAC,GAAG,qBAAqB,CA0B/F"}
@@ -0,0 +1,13 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ import type { VisibleRangesValue } from "./useVisibleRanges";
3
+ export interface OffsetOptions {
4
+ index: number;
5
+ size: number;
6
+ handlerOffset: SharedValue<number>;
7
+ dataLength: number;
8
+ type?: "positive" | "negative";
9
+ viewCount?: number;
10
+ loop?: boolean;
11
+ }
12
+ export declare const useOffsetX: (opts: OffsetOptions, visibleRanges: VisibleRangesValue) => import("react-native-reanimated").DerivedValue<number>;
13
+ //# sourceMappingURL=useOffsetX.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOffsetX.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOffsetX.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,SAAU,aAAa,iBAAiB,kBAAkB,2DAiEhF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ import type { CarouselProgressChangeHandler } from "../types";
3
+ export declare function useOnProgressChange(options: {
4
+ loop: boolean;
5
+ offset: SharedValue<number>;
6
+ onProgressChange?: CarouselProgressChangeHandler;
7
+ progress?: SharedValue<number>;
8
+ rawDataLength: number;
9
+ size: number;
10
+ sizeReady: SharedValue<boolean>;
11
+ }): void;
12
+ //# sourceMappingURL=useOnProgressChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnProgressChange.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOnProgressChange.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAG9D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,QAiBA"}
@@ -0,0 +1,11 @@
1
+ import type { GestureStateChangeEvent, GestureUpdateEvent, PanGestureHandlerEventPayload } from "react-native-gesture-handler";
2
+ import type { CarouselPanGesture } from "../types";
3
+ import type { GestureConfig } from "./useUpdateGestureConfig";
4
+ export declare const usePanGestureProxy: (customization: {
5
+ onConfigurePanGesture?: (gesture: CarouselPanGesture) => void;
6
+ onGestureStart: (event: GestureStateChangeEvent<PanGestureHandlerEventPayload>) => void;
7
+ onGestureUpdate: (event: GestureUpdateEvent<PanGestureHandlerEventPayload>) => void;
8
+ onGestureEnd: (event: GestureStateChangeEvent<PanGestureHandlerEventPayload>, success: boolean) => void;
9
+ options?: GestureConfig;
10
+ }) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
11
+ //# sourceMappingURL=usePanGestureProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePanGestureProxy.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePanGestureProxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,6BAA6B,EAC9B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,eAAO,MAAM,kBAAkB,kBAAmB;IAChD,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC9D,cAAc,EAAE,CAAC,KAAK,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,KAAK,IAAI,CAAC;IACxF,eAAe,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,6BAA6B,CAAC,KAAK,IAAI,CAAC;IACpF,YAAY,EAAE,CACZ,KAAK,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,EAC7D,OAAO,EAAE,OAAO,KACb,IAAI,CAAC;IACV,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,kGA0HA,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { InitializedCarouselProps } from "./useInitProps";
2
+ export declare function usePropsErrorBoundary(props: InitializedCarouselProps<unknown>): void;
3
+ //# sourceMappingURL=usePropsErrorBoundary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePropsErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePropsErrorBoundary.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,QAmC7E"}
@@ -0,0 +1,9 @@
1
+ export interface GestureConfig {
2
+ enabled?: boolean;
3
+ }
4
+ type ConfigurablePanGesture = {
5
+ enabled(enabled: boolean): unknown;
6
+ };
7
+ export declare const useUpdateGestureConfig: (gesture: ConfigurablePanGesture, config: GestureConfig) => void;
8
+ export {};
9
+ //# sourceMappingURL=useUpdateGestureConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdateGestureConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUpdateGestureConfig.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,sBAAsB,GAAG;IAC5B,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAAa,sBAAsB,UAAU,aAAa,SAM5F,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ type Range = [number, number];
3
+ export interface VisibleRanges {
4
+ negativeRange: Range;
5
+ positiveRange: Range;
6
+ }
7
+ export type VisibleRangesValue = SharedValue<VisibleRanges>;
8
+ export declare function computeVisibleRanges(params: {
9
+ total: number;
10
+ windowSize?: number;
11
+ currentIndex: number;
12
+ loop?: boolean;
13
+ }): VisibleRanges;
14
+ export declare function useVisibleRanges(options: {
15
+ total: number;
16
+ viewSize: number;
17
+ windowSize?: number;
18
+ translation: SharedValue<number>;
19
+ loop?: boolean;
20
+ }): VisibleRangesValue;
21
+ export {};
22
+ //# sourceMappingURL=useVisibleRanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVisibleRanges.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVisibleRanges.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9B,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,KAAK,CAAC;IACrB,aAAa,EAAE,KAAK,CAAC;CACtB;AAED,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;AAgB5D,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,aAAa,CAwDhB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,kBAAkB,CAqCrB"}
@@ -0,0 +1,4 @@
1
+ export { Carousel } from "./components/Carousel";
2
+ export { Pagination } from "./components/Pagination";
3
+ export type { CarouselAnimation, CarouselItemAnimation, CarouselLayout, CarouselPanGesture, CarouselProgressChangeHandler, CarouselProps, CarouselRef, CarouselRenderItem, CarouselRenderItemInfo, CarouselScrollToOptions, CarouselStepOptions, PaginationDotStyle, PaginationProps, } from "./public-types";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,6BAA6B,EAC7B,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { normalLayout } from "./normal";
2
+ import { parallaxLayout } from "./parallax";
3
+ import { horizontalStackLayout, verticalStackLayout } from "./stack";
4
+ export declare const Layouts: {
5
+ normal: typeof normalLayout;
6
+ parallax: typeof parallaxLayout;
7
+ horizontalStack: typeof horizontalStackLayout;
8
+ verticalStack: typeof verticalStackLayout;
9
+ };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CarouselDirectionSign } from "../utils/carousel-direction";
2
+ export declare function normalLayout(opts: {
3
+ size: number;
4
+ isVertical: boolean;
5
+ directionSign: CarouselDirectionSign;
6
+ }): (value: number) => {
7
+ transform: ({
8
+ translateY: number;
9
+ translateX?: undefined;
10
+ } | {
11
+ translateX: number;
12
+ translateY?: undefined;
13
+ })[];
14
+ };
15
+ //# sourceMappingURL=normal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normal.d.ts","sourceRoot":"","sources":["../../../../src/layouts/normal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGzE,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,qBAAqB,CAAC;CACtC,WAGgB,MAAM;;;;;;;;EAmBtB"}
@@ -0,0 +1,27 @@
1
+ import type { CarouselLayout } from "../types";
2
+ import type { CarouselDirectionSign } from "../utils/carousel-direction";
3
+ type ParallaxLayout = Extract<CarouselLayout, {
4
+ type: "parallax";
5
+ }>;
6
+ export declare function parallaxLayout(baseConfig: {
7
+ size: number;
8
+ isVertical: boolean;
9
+ directionSign: CarouselDirectionSign;
10
+ }, config: ParallaxLayout): (relativeProgress: number) => {
11
+ transform: ({
12
+ translateY: number;
13
+ translateX?: undefined;
14
+ scale?: undefined;
15
+ } | {
16
+ translateX: number;
17
+ translateY?: undefined;
18
+ scale?: undefined;
19
+ } | {
20
+ scale: number;
21
+ translateY?: undefined;
22
+ translateX?: undefined;
23
+ })[];
24
+ zIndex: number;
25
+ };
26
+ export {};
27
+ //# sourceMappingURL=parallax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parallax.d.ts","sourceRoot":"","sources":["../../../../src/layouts/parallax.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGzE,KAAK,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAEpE,wBAAgB,cAAc,CAC5B,UAAU,EAAE;IACV,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,qBAAqB,CAAC;CACtC,EACD,MAAM,EAAE,cAAc,sBAKI,MAAM;;;;;;;;;;;;;;;EA8BjC"}
@@ -0,0 +1,10 @@
1
+ import type { ViewStyle } from "react-native";
2
+ import type { CarouselLayout } from "../types";
3
+ import type { CarouselDirectionSign } from "../utils/carousel-direction";
4
+ type StackLayout = Extract<CarouselLayout, {
5
+ type: "horizontal-stack" | "vertical-stack";
6
+ }>;
7
+ export declare function horizontalStackLayout(config: StackLayout, directionSign?: CarouselDirectionSign): (_value: number) => ViewStyle;
8
+ export declare function verticalStackLayout(config: StackLayout): (_value: number) => ViewStyle;
9
+ export {};
10
+ //# sourceMappingURL=stack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/layouts/stack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,cAAc,CAAC;AAI/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAKzE,KAAK,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;CAAE,CAAC,CAAC;AAE5F,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,WAAW,EACnB,aAAa,GAAE,qBAAyB,YAExB,MAAM,eAgFvB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,YACrC,MAAM,eAqFvB"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,161 @@
1
+ import type * as React from "react";
2
+ import type { ColorValue, LayoutChangeEvent, StyleProp, ViewStyle } from "react-native";
3
+ import type { GestureStateChangeEvent, GestureType, GestureUpdateEvent, MouseButton, PanGestureChangeEventPayload, PanGestureHandlerEventPayload, PanGestureHandlerProps } from "react-native-gesture-handler";
4
+ import type { SharedValue, WithSpringConfig, WithTimingConfig } from "react-native-reanimated";
5
+ type CarouselOrientation = "horizontal" | "vertical";
6
+ type CarouselSnapMode = "page" | "nearest" | "none";
7
+ type CarouselAutoplayDirection = "forward" | "backward";
8
+ type CarouselExitDirection = "left" | "right";
9
+ type CarouselContentContainerStyle = Omit<ViewStyle, "opacity" | "transform">;
10
+ type CarouselExternalGestureRef = GestureType | React.RefObject<GestureType | undefined> | React.RefObject<React.ComponentType | undefined>;
11
+ type CarouselPanStateEvent = GestureStateChangeEvent<PanGestureHandlerEventPayload>;
12
+ type CarouselPanUpdateEvent = GestureUpdateEvent<PanGestureHandlerEventPayload>;
13
+ type CarouselPanChangeEvent = GestureUpdateEvent<PanGestureHandlerEventPayload & PanGestureChangeEventPayload>;
14
+ type CarouselLayoutSelection = {
15
+ layout?: CarouselLayout;
16
+ itemAnimation?: never;
17
+ } | {
18
+ layout?: never;
19
+ itemAnimation: CarouselItemAnimation;
20
+ };
21
+ type InteractivePaginationProps = {
22
+ onPress: (index: number) => void;
23
+ getItemAccessibilityLabel?: (index: number, count: number) => string;
24
+ };
25
+ type DecorativePaginationProps = {
26
+ onPress?: never;
27
+ getItemAccessibilityLabel?: never;
28
+ };
29
+ type ReadonlyProgressValue = Omit<SharedValue<number>, "modify" | "set" | "value"> & {
30
+ readonly value: number;
31
+ };
32
+ type PaginationBaseProps = {
33
+ count: number;
34
+ progress: ReadonlyProgressValue;
35
+ orientation?: CarouselOrientation;
36
+ containerStyle?: StyleProp<Omit<ViewStyle, "direction" | "flexDirection">>;
37
+ dotStyle?: PaginationDotStyle;
38
+ activeDotStyle?: PaginationDotStyle;
39
+ };
40
+ export type CarouselProps<Item> = {
41
+ data: Item[];
42
+ renderItem: CarouselRenderItem<Item>;
43
+ keyExtractor?: (item: Item, index: number) => string;
44
+ defaultIndex?: number;
45
+ loop?: boolean;
46
+ autoplay?: boolean;
47
+ autoplayInterval?: number;
48
+ autoplayDirection?: CarouselAutoplayDirection;
49
+ orientation?: CarouselOrientation;
50
+ itemSize?: number;
51
+ scrollEnabled?: boolean;
52
+ snapMode?: CarouselSnapMode;
53
+ overscrollEnabled?: boolean;
54
+ renderWindowSize?: number;
55
+ animation?: CarouselAnimation;
56
+ progress?: SharedValue<number>;
57
+ onProgressChange?: CarouselProgressChangeHandler;
58
+ scrollOffsetValue?: SharedValue<number>;
59
+ style?: StyleProp<ViewStyle>;
60
+ contentContainerStyle?: StyleProp<CarouselContentContainerStyle>;
61
+ testID?: string;
62
+ onLayout?: (event: LayoutChangeEvent) => void;
63
+ onConfigurePanGesture?: (gesture: CarouselPanGesture) => void;
64
+ onScrollStart?: () => void;
65
+ onSnapToItem?: (index: number) => void;
66
+ } & CarouselLayoutSelection;
67
+ export interface CarouselRef {
68
+ prev(options?: CarouselStepOptions): void;
69
+ next(options?: CarouselStepOptions): void;
70
+ getCurrentIndex(): number;
71
+ scrollTo(options: CarouselScrollToOptions): void;
72
+ }
73
+ export type CarouselRenderItem<Item> = (info: CarouselRenderItemInfo<Item>) => React.ReactElement;
74
+ export interface CarouselRenderItemInfo<Item> {
75
+ item: Item;
76
+ index: number;
77
+ relativeProgress: SharedValue<number>;
78
+ }
79
+ export type CarouselProgressChangeHandler = (progress: number) => void;
80
+ export type CarouselLayout = {
81
+ type: "parallax";
82
+ offset?: number;
83
+ scale?: number;
84
+ adjacentScale?: number;
85
+ } | {
86
+ type: "horizontal-stack";
87
+ visibleCount?: number;
88
+ exitDistance?: number;
89
+ spacing?: number;
90
+ scaleStep?: number;
91
+ opacityStep?: number;
92
+ rotation?: number;
93
+ exitDirection?: CarouselExitDirection;
94
+ } | {
95
+ type: "vertical-stack";
96
+ visibleCount?: number;
97
+ exitDistance?: number;
98
+ spacing?: number;
99
+ scaleStep?: number;
100
+ opacityStep?: number;
101
+ rotation?: number;
102
+ exitDirection?: CarouselExitDirection;
103
+ };
104
+ export type CarouselAnimation = ({
105
+ type: "timing";
106
+ } & WithTimingConfig) | ({
107
+ type: "spring";
108
+ } & WithSpringConfig);
109
+ export type CarouselItemAnimation = (relativeProgress: number, index: number) => ViewStyle;
110
+ /**
111
+ * Supported configuration surface for Carousel's real RNGH pan gesture.
112
+ *
113
+ * Methods return this facade so chaining never exposes ownership-changing RNGH
114
+ * methods such as `enabled`, `runOnJS`, or `manualActivation`.
115
+ */
116
+ export interface CarouselPanGesture {
117
+ activeOffsetX(offset: number | [start: number, end: number]): this;
118
+ activeOffsetY(offset: number | [start: number, end: number]): this;
119
+ failOffsetX(offset: number | [start: number, end: number]): this;
120
+ failOffsetY(offset: number | [start: number, end: number]): this;
121
+ minPointers(count: number): this;
122
+ maxPointers(count: number): this;
123
+ minDistance(distance: number): this;
124
+ minVelocity(velocity: number): this;
125
+ minVelocityX(velocity: number): this;
126
+ minVelocityY(velocity: number): this;
127
+ averageTouches(value: boolean): this;
128
+ enableTrackpadTwoFingerGesture(value: boolean): this;
129
+ activateAfterLongPress(duration: number): this;
130
+ hitSlop(value: PanGestureHandlerProps["hitSlop"]): this;
131
+ mouseButton(button: MouseButton): this;
132
+ simultaneousWithExternalGesture(...gestures: CarouselExternalGestureRef[]): this;
133
+ requireExternalGestureToFail(...gestures: CarouselExternalGestureRef[]): this;
134
+ blocksExternalGesture(...gestures: CarouselExternalGestureRef[]): this;
135
+ onBegin(callback: (event: CarouselPanStateEvent) => void): this;
136
+ onStart(callback: (event: CarouselPanStateEvent) => void): this;
137
+ onUpdate(callback: (event: CarouselPanUpdateEvent) => void): this;
138
+ onChange(callback: (event: CarouselPanChangeEvent) => void): this;
139
+ onEnd(callback: (event: CarouselPanStateEvent, success: boolean) => void): this;
140
+ onFinalize(callback: (event: CarouselPanStateEvent, success: boolean) => void): this;
141
+ }
142
+ export interface CarouselStepOptions {
143
+ count?: number;
144
+ animated?: boolean;
145
+ }
146
+ export interface CarouselScrollToOptions {
147
+ index: number;
148
+ animated?: boolean;
149
+ }
150
+ export type PaginationProps = PaginationBaseProps & (InteractivePaginationProps | DecorativePaginationProps);
151
+ export interface PaginationDotStyle {
152
+ width?: number;
153
+ height?: number;
154
+ borderRadius?: number;
155
+ borderWidth?: number;
156
+ borderColor?: ColorValue;
157
+ backgroundColor?: ColorValue;
158
+ opacity?: number;
159
+ }
160
+ export {};
161
+ //# sourceMappingURL=public-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-types.d.ts","sourceRoot":"","sources":["../../../src/public-types.ts"],"names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CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import { SharedValue } from "react-native-reanimated";
3
+ import type { CarouselCommonVariables } from "../hooks/useCommonVariables";
4
+ import type { InitializedCarouselProps } from "../hooks/useInitProps";
5
+ type ItemDimensions = Record<number, {
6
+ width: number;
7
+ height: number;
8
+ }>;
9
+ export interface CarouselContext {
10
+ props: InitializedCarouselProps<unknown>;
11
+ common: CarouselCommonVariables;
12
+ layout: {
13
+ containerSize: SharedValue<{
14
+ width: number;
15
+ height: number;
16
+ }>;
17
+ updateContainerSize: (dimensions: {
18
+ width: number;
19
+ height: number;
20
+ }) => void;
21
+ itemDimensions: SharedValue<ItemDimensions>;
22
+ updateItemDimensions: (index: number, dimensions: {
23
+ width: number;
24
+ height: number;
25
+ }) => void;
26
+ };
27
+ }
28
+ export declare const GlobalStateContext: React.Context<CarouselContext>;
29
+ export declare const GlobalStateProvider: ({ children, value, }: {
30
+ children: React.ReactNode;
31
+ value: Pick<CarouselContext, "props" | "common">;
32
+ }) => React.JSX.Element;
33
+ export declare const useGlobalState: () => CarouselContext;
34
+ export {};
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/store/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE;QACN,aAAa,EAAE,WAAW,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC9D,mBAAmB,EAAE,CAAC,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,KAAK,IAAI,CAAC;QAC7E,cAAc,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;QAC5C,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,KAAK,IAAI,CAAC;KAC9F,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,gCAA8D,CAAC;AAE9F,eAAO,MAAM,mBAAmB,yBAG7B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAClD,sBAyBA,CAAC;AAEF,eAAO,MAAM,cAAc,uBAQ1B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CarouselProps, CarouselScrollToOptions, CarouselStepOptions } from "./public-types";
2
+ export type { CarouselAnimation, CarouselItemAnimation, CarouselLayout, CarouselPanGesture, CarouselProgressChangeHandler, CarouselProps, CarouselRef, CarouselRenderItem, CarouselRenderItemInfo, CarouselScrollToOptions, CarouselStepOptions, PaginationDotStyle, PaginationProps, } from "./public-types";
3
+ /**
4
+ * Internal command options retain a completion hook so autoplay can schedule
5
+ * the next dwell period after a transition settles. This is never exported
6
+ * from the package root.
7
+ */
8
+ export type InternalCarouselStepOptions = CarouselStepOptions & {
9
+ onFinished?: () => void;
10
+ };
11
+ export type InternalCarouselScrollToOptions = CarouselScrollToOptions & {
12
+ onFinished?: () => void;
13
+ };
14
+ export type InternalCarouselProps<Item> = CarouselProps<Item>;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAElG,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,6BAA6B,EAC7B,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG;IAC9D,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,uBAAuB,GAAG;IACtE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type CarouselDirectionSign = -1 | 1;
2
+ export declare function getCarouselDirectionSign(options: {
3
+ isRTL: boolean;
4
+ orientation: "horizontal" | "vertical";
5
+ }): CarouselDirectionSign;
6
+ export declare function toLogicalGestureValue(physicalValue: number, directionSign: CarouselDirectionSign): number;
7
+ export declare function toPhysicalHorizontalValue(logicalValue: number, directionSign: CarouselDirectionSign): number;
8
+ export declare function getHorizontalStackOffsetType(exitDirection: "left" | "right", directionSign: CarouselDirectionSign): "positive" | "negative";
9
+ //# sourceMappingURL=carousel-direction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-direction.d.ts","sourceRoot":"","sources":["../../../../src/utils/carousel-direction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAE3C,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IAChD,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;CACxC,GAAG,qBAAqB,CAIxB;AAED,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,qBAAqB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,qBAAqB,GACnC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,GAAG,OAAO,EAC/B,aAAa,EAAE,qBAAqB,GACnC,UAAU,GAAG,UAAU,CAMzB"}
@@ -0,0 +1,28 @@
1
+ export declare function positiveModulo(value: number, divisor: number): number;
2
+ export declare function getLogicalProgress(offset: number, itemSize: number): number;
3
+ export declare function getOffsetForLogicalPage(page: number, itemSize: number): number;
4
+ export declare function getNearestLogicalPage(offset: number, itemSize: number): number;
5
+ export declare function getSettledRawIndex(progress: number, count: number): number;
6
+ export declare function getNearestLoopPosition(rawIndex: number, progress: number, count: number): number;
7
+ export declare function getRelativeProgress(params: {
8
+ rawIndex: number;
9
+ progress: number;
10
+ count: number;
11
+ loop: boolean;
12
+ }): number;
13
+ export declare function getBoundedLoopOffset(offset: number, itemSize: number, count: number): number;
14
+ export declare function getShortestLoopTargetPage(params: {
15
+ currentPage: number;
16
+ targetIndex: number;
17
+ count: number;
18
+ }): number;
19
+ export declare function reconcileOffsetAfterDataChange(params: {
20
+ offset: number;
21
+ itemSize: number;
22
+ previousCount: number;
23
+ nextCount: number;
24
+ defaultIndex: number;
25
+ loop: boolean;
26
+ retainedIndex?: number;
27
+ }): number;
28
+ //# sourceMappingURL=carousel-math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel-math.d.ts","sourceRoot":"","sources":["../../../../src/utils/carousel-math.ts"],"names":[],"mappings":"A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CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,MAAM,CAyBT"}
@@ -0,0 +1,9 @@
1
+ export declare function computeGestureTranslation(options: {
2
+ loop: boolean;
3
+ overscrollEnabled: boolean;
4
+ currentTranslation: number;
5
+ panOffset: number;
6
+ panTranslation: number;
7
+ max: number;
8
+ }): number;
9
+ //# sourceMappingURL=compute-gesture-translation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute-gesture-translation.d.ts","sourceRoot":"","sources":["../../../../src/utils/compute-gesture-translation.ts"],"names":[],"mappings":"AAAA,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IACjD,IAAI,EAAE,OAAO,CAAC;IACd,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,MAAM,CAqBT"}