@xaui/native 0.9.1-alpha.90 → 0.9.1-alpha.92

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 (300) hide show
  1. package/dist/{chunk-XZ42OWKC.js → chunk-2AFA5HA2.js} +78 -74
  2. package/dist/{chunk-A2JNZMDJ.cjs → chunk-2B6PUYTP.cjs} +2 -2
  3. package/dist/chunk-3A5RK2R7.js +40 -0
  4. package/dist/{chunk-HQLJZ6C2.js → chunk-52XUGOLD.js} +3 -3
  5. package/dist/{chunk-TCDWDTSW.cjs → chunk-5E6SHYEQ.cjs} +3 -3
  6. package/dist/{chunk-Y36UGSTS.cjs → chunk-62AYYMZP.cjs} +3 -3
  7. package/dist/{chunk-BLGAFZRI.cjs → chunk-6GQ7UTJ7.cjs} +2 -2
  8. package/dist/chunk-6JAGPPZU.cjs +788 -0
  9. package/dist/{chunk-CVPBNJRG.js → chunk-6RU6GUJP.js} +1 -1
  10. package/dist/{chunk-XUF7K4WP.js → chunk-7EVW6O2Q.js} +1 -1
  11. package/dist/chunk-7NQL5DXY.js +302 -0
  12. package/dist/{chunk-ACWFIZKC.cjs → chunk-AR7667VN.cjs} +6 -6
  13. package/dist/{chunk-DSCZZZIG.cjs → chunk-B33OU34Z.cjs} +12 -12
  14. package/dist/{chunk-WGXOYMZM.cjs → chunk-BI5ME4QP.cjs} +5 -5
  15. package/dist/{chunk-IEEUSJBJ.js → chunk-BJVO7DWJ.js} +1 -1
  16. package/dist/{chunk-5YEMZL4C.cjs → chunk-CBRW53GN.cjs} +7 -7
  17. package/dist/{chunk-34UJTR37.cjs → chunk-CBXILKQZ.cjs} +3 -3
  18. package/dist/{chunk-FB4JF34M.cjs → chunk-CEPX7CKM.cjs} +16 -16
  19. package/dist/{chunk-377XFATD.cjs → chunk-CYOUOQXT.cjs} +5 -5
  20. package/dist/{chunk-AUYFPVLA.cjs → chunk-DYQB54JA.cjs} +2 -2
  21. package/dist/{chunk-3OQPAZTF.js → chunk-EBCAPIBD.js} +44 -44
  22. package/dist/{chunk-M5LTEKGJ.cjs → chunk-EDNCHCIN.cjs} +2 -2
  23. package/dist/{chunk-34KILEQD.js → chunk-FOOXBVOQ.js} +15 -15
  24. package/dist/{chunk-24WXPNIT.js → chunk-FRLWG5LM.js} +24 -24
  25. package/dist/chunk-FTPPUTWL.cjs +40 -0
  26. package/dist/{chunk-AAQIBMJI.js → chunk-FVEMTBU4.js} +2 -2
  27. package/dist/{chunk-54DVPCYB.cjs → chunk-FXN32S75.cjs} +3 -3
  28. package/dist/chunk-GGP2ERSV.js +487 -0
  29. package/dist/{chunk-6BB6YWEN.js → chunk-GYEQEF5H.js} +1 -1
  30. package/dist/{chunk-MTGUUW7F.cjs → chunk-GZAGWNQM.cjs} +3 -3
  31. package/dist/{chunk-OF3E7WVQ.cjs → chunk-ILXKBDC6.cjs} +10 -10
  32. package/dist/{chunk-D2UYBAGB.cjs → chunk-IPD3IUE2.cjs} +4 -4
  33. package/dist/{chunk-XLPOJTA2.cjs → chunk-JBZ7SBRV.cjs} +3 -3
  34. package/dist/{chunk-UMTVYPYK.js → chunk-JC4YCKKL.js} +15 -15
  35. package/dist/{chunk-GL46PQPW.js → chunk-JJYHW4PV.js} +1 -1
  36. package/dist/{chunk-2CTIZGMC.js → chunk-JKDWYNSG.js} +99 -99
  37. package/dist/chunk-KPKEZWZM.js +517 -0
  38. package/dist/{chunk-KTI3GCFM.js → chunk-LECYGVIH.js} +43 -43
  39. package/dist/chunk-LKRQUQZQ.cjs +487 -0
  40. package/dist/{chunk-SYVFU6O5.cjs → chunk-LPJ3UBSO.cjs} +4 -4
  41. package/dist/{chunk-RS2UWFEG.js → chunk-MMFIMQMQ.js} +2 -2
  42. package/dist/chunk-MSORLKO7.cjs +422 -0
  43. package/dist/{chunk-PKVKFZW7.js → chunk-O6B72H4B.js} +5 -5
  44. package/dist/{chunk-7KQG4JQ2.js → chunk-OD6H7ANY.js} +1 -1
  45. package/dist/{chunk-UXPBSREP.js → chunk-ODQHAPQW.js} +17 -17
  46. package/dist/{chunk-TB7V2DO3.cjs → chunk-ORXVXYKC.cjs} +11 -11
  47. package/dist/{chunk-PIU3JONR.cjs → chunk-OW4N2C3M.cjs} +64 -60
  48. package/dist/{chunk-NPY7I7JJ.js → chunk-P2CJNTAP.js} +15 -15
  49. package/dist/{chunk-AOXNVM55.cjs → chunk-P2V6PIM7.cjs} +2 -2
  50. package/dist/{chunk-CKADVFCH.js → chunk-P5M5URAB.js} +30 -127
  51. package/dist/{chunk-BPQWLUQU.js → chunk-P7OHZCU3.js} +2 -2
  52. package/dist/{chunk-DPW25YCM.cjs → chunk-PAQD6UUF.cjs} +3 -3
  53. package/dist/{chunk-LDFBDFIW.js → chunk-PAQZOD2L.js} +1 -1
  54. package/dist/{chunk-4TG2OLEM.cjs → chunk-PDSR42YC.cjs} +3 -3
  55. package/dist/{chunk-AXSY2KPT.cjs → chunk-PROLOLZ5.cjs} +2 -2
  56. package/dist/{chunk-4SPCZVR6.cjs → chunk-PYQ2P3M5.cjs} +58 -58
  57. package/dist/{chunk-ZZTUJELK.cjs → chunk-Q2BWXT55.cjs} +9 -9
  58. package/dist/{chunk-RD3ZUUBC.cjs → chunk-QCH7X7O2.cjs} +14 -14
  59. package/dist/{chunk-ZYN7XKF5.cjs → chunk-QELEKXN3.cjs} +5 -5
  60. package/dist/{chunk-ZN5P3VTI.js → chunk-QHXTO525.js} +1 -1
  61. package/dist/{chunk-EVSQ4CEI.cjs → chunk-QN2D5ZCS.cjs} +3 -3
  62. package/dist/{chunk-4XZWVJZL.cjs → chunk-QUSQEYLP.cjs} +25 -25
  63. package/dist/chunk-RCSEVEIR.js +422 -0
  64. package/dist/{chunk-GOKUBJIK.js → chunk-RLC3EXMV.js} +2 -2
  65. package/dist/{chunk-BLYKQD47.cjs → chunk-RREJUSAS.cjs} +3 -3
  66. package/dist/{chunk-BLDMKFIG.js → chunk-RSIWSVXI.js} +1 -1
  67. package/dist/{chunk-5VYB7F3H.js → chunk-RXEUKYM5.js} +1 -1
  68. package/dist/{chunk-WRW4JBB4.js → chunk-SUJLTC2K.js} +4 -4
  69. package/dist/{chunk-KBQT6MZ4.js → chunk-TCWW7JI2.js} +58 -58
  70. package/dist/{chunk-B2KUGQS5.js → chunk-TPYOQSKT.js} +1 -1
  71. package/dist/{chunk-SEYZGC4E.js → chunk-TRWZEOCO.js} +2 -2
  72. package/dist/{chunk-SDLDRTT7.cjs → chunk-UEW3GAP5.cjs} +5 -5
  73. package/dist/{chunk-WQZJ26SX.cjs → chunk-UFKSUELU.cjs} +2 -2
  74. package/dist/chunk-UR37LVPU.cjs +382 -0
  75. package/dist/{chunk-4BAKKBHJ.js → chunk-USIWPESU.js} +1 -1
  76. package/dist/{chunk-HM6M6SIP.js → chunk-UYQLW7OD.js} +1 -1
  77. package/dist/{chunk-NIEIDK5Z.js → chunk-V2CEKPJ6.js} +4 -4
  78. package/dist/{chunk-GPSVJ75L.js → chunk-VMPCXS4S.js} +15 -15
  79. package/dist/{chunk-W6TFYAEF.js → chunk-VQGNLX5C.js} +1 -1
  80. package/dist/{chunk-YSZ4K6L6.cjs → chunk-WIX4SYZI.cjs} +2 -2
  81. package/dist/{chunk-T3WEEHSB.js → chunk-WRZV6ORJ.js} +1 -1
  82. package/dist/{chunk-UDVKP3V2.cjs → chunk-X4CZYJZ6.cjs} +12 -12
  83. package/dist/chunk-XWIPLZTD.cjs +302 -0
  84. package/dist/{chunk-67WT74DY.cjs → chunk-ZE4IHUUO.cjs} +2 -2
  85. package/dist/{chunk-4JB7XQCJ.js → chunk-ZKGVOXLQ.js} +1 -1
  86. package/dist/{chunk-U32IGHJ6.js → chunk-ZWS3FQ3J.js} +57 -57
  87. package/dist/components/accordion/index.cjs +3 -3
  88. package/dist/components/accordion/index.js +2 -2
  89. package/dist/components/agenda-calendar/index.cjs +4 -4
  90. package/dist/components/agenda-calendar/index.js +3 -3
  91. package/dist/components/alert/index.cjs +4 -4
  92. package/dist/components/alert/index.js +3 -3
  93. package/dist/components/autocomplete/index.cjs +3 -3
  94. package/dist/components/autocomplete/index.js +2 -2
  95. package/dist/components/bottom-sheet/index.cjs +3 -3
  96. package/dist/components/bottom-sheet/index.js +2 -2
  97. package/dist/components/button/button.d.cts +1 -0
  98. package/dist/components/button/button.d.ts +1 -0
  99. package/dist/components/button/index.cjs +4 -4
  100. package/dist/components/button/index.d.cts +1 -0
  101. package/dist/components/button/index.d.ts +1 -0
  102. package/dist/components/button/index.js +3 -3
  103. package/dist/components/calendar/index.cjs +3 -3
  104. package/dist/components/calendar/index.js +2 -2
  105. package/dist/components/card/card.d.cts +1 -0
  106. package/dist/components/card/card.d.ts +1 -0
  107. package/dist/components/card/index.cjs +3 -3
  108. package/dist/components/card/index.d.cts +1 -0
  109. package/dist/components/card/index.d.ts +1 -0
  110. package/dist/components/card/index.js +2 -2
  111. package/dist/components/carousel/index.cjs +4 -3
  112. package/dist/components/carousel/index.js +3 -2
  113. package/dist/components/checkbox/checkbox.d.cts +1 -0
  114. package/dist/components/checkbox/checkbox.d.ts +1 -0
  115. package/dist/components/checkbox/index.cjs +3 -3
  116. package/dist/components/checkbox/index.d.cts +1 -0
  117. package/dist/components/checkbox/index.d.ts +1 -0
  118. package/dist/components/checkbox/index.js +2 -2
  119. package/dist/components/chip/chip.d.cts +1 -0
  120. package/dist/components/chip/chip.d.ts +1 -0
  121. package/dist/components/chip/index.cjs +4 -4
  122. package/dist/components/chip/index.d.cts +1 -0
  123. package/dist/components/chip/index.d.ts +1 -0
  124. package/dist/components/chip/index.js +3 -3
  125. package/dist/components/close-button/close-button.d.cts +1 -0
  126. package/dist/components/close-button/close-button.d.ts +1 -0
  127. package/dist/components/close-button/index.cjs +4 -4
  128. package/dist/components/close-button/index.js +3 -3
  129. package/dist/components/color-picker/color-picker.d.cts +1 -1
  130. package/dist/components/color-picker/color-picker.d.ts +1 -1
  131. package/dist/components/color-picker/index.cjs +6 -6
  132. package/dist/components/color-picker/index.d.cts +1 -1
  133. package/dist/components/color-picker/index.d.ts +1 -1
  134. package/dist/components/color-picker/index.js +5 -5
  135. package/dist/components/combobox/index.cjs +4 -4
  136. package/dist/components/combobox/index.js +3 -3
  137. package/dist/components/date-picker/index.cjs +4 -4
  138. package/dist/components/date-picker/index.js +3 -3
  139. package/dist/components/date-range-picker/index.cjs +6 -6
  140. package/dist/components/date-range-picker/index.js +5 -5
  141. package/dist/components/date-time-picker/index.cjs +7 -7
  142. package/dist/components/date-time-picker/index.js +6 -6
  143. package/dist/components/dialog/index.cjs +4 -4
  144. package/dist/components/dialog/index.js +3 -3
  145. package/dist/components/dummy-field/index.cjs +3 -3
  146. package/dist/components/dummy-field/index.js +2 -2
  147. package/dist/components/fab/index.cjs +4 -4
  148. package/dist/components/fab/index.js +3 -3
  149. package/dist/components/flip-card/index.cjs +3 -3
  150. package/dist/components/flip-card/index.js +2 -2
  151. package/dist/components/index.d.cts +4 -0
  152. package/dist/components/index.d.ts +4 -0
  153. package/dist/components/list-box/index.cjs +2 -2
  154. package/dist/components/list-box/index.js +1 -1
  155. package/dist/components/menu/index.cjs +3 -3
  156. package/dist/components/menu/index.js +2 -2
  157. package/dist/components/morph-button/index.cjs +39 -0
  158. package/dist/components/morph-button/index.d.cts +53 -0
  159. package/dist/components/morph-button/index.d.ts +53 -0
  160. package/dist/components/morph-button/index.js +39 -0
  161. package/dist/components/morph-button/morph-button-face.d.cts +9 -0
  162. package/dist/components/morph-button/morph-button-face.d.ts +9 -0
  163. package/dist/components/morph-button/morph-button-icon.d.cts +13 -0
  164. package/dist/components/morph-button/morph-button-icon.d.ts +13 -0
  165. package/dist/components/morph-button/morph-button-text.d.cts +16 -0
  166. package/dist/components/morph-button/morph-button-text.d.ts +16 -0
  167. package/dist/components/morph-button/morph-button.animation.d.cts +29 -0
  168. package/dist/components/morph-button/morph-button.animation.d.ts +29 -0
  169. package/dist/components/morph-button/morph-button.context.d.cts +7 -0
  170. package/dist/components/morph-button/morph-button.context.d.ts +7 -0
  171. package/dist/components/morph-button/morph-button.d.cts +61 -0
  172. package/dist/components/morph-button/morph-button.d.ts +61 -0
  173. package/dist/components/morph-button/morph-button.recipe.d.cts +11 -0
  174. package/dist/components/morph-button/morph-button.recipe.d.ts +11 -0
  175. package/dist/components/morph-button/morph-button.type.d.cts +99 -0
  176. package/dist/components/morph-button/morph-button.type.d.ts +99 -0
  177. package/dist/components/number-pad/index.cjs +40 -0
  178. package/dist/components/number-pad/index.d.cts +60 -0
  179. package/dist/components/number-pad/index.d.ts +60 -0
  180. package/dist/components/number-pad/index.js +40 -0
  181. package/dist/components/number-pad/number-pad-action.d.cts +24 -0
  182. package/dist/components/number-pad/number-pad-action.d.ts +24 -0
  183. package/dist/components/number-pad/number-pad-backspace.d.cts +18 -0
  184. package/dist/components/number-pad/number-pad-backspace.d.ts +18 -0
  185. package/dist/components/number-pad/number-pad-cell.d.cts +7 -0
  186. package/dist/components/number-pad/number-pad-cell.d.ts +7 -0
  187. package/dist/components/number-pad/number-pad-icon.d.cts +13 -0
  188. package/dist/components/number-pad/number-pad-icon.d.ts +13 -0
  189. package/dist/components/number-pad/number-pad-key.d.cts +24 -0
  190. package/dist/components/number-pad/number-pad-key.d.ts +24 -0
  191. package/dist/components/number-pad/number-pad-label.d.cts +14 -0
  192. package/dist/components/number-pad/number-pad-label.d.ts +14 -0
  193. package/dist/components/number-pad/number-pad.context.d.cts +18 -0
  194. package/dist/components/number-pad/number-pad.context.d.ts +18 -0
  195. package/dist/components/number-pad/number-pad.d.cts +57 -0
  196. package/dist/components/number-pad/number-pad.d.ts +57 -0
  197. package/dist/components/number-pad/number-pad.recipe.d.cts +11 -0
  198. package/dist/components/number-pad/number-pad.recipe.d.ts +11 -0
  199. package/dist/components/number-pad/number-pad.style.d.cts +13 -0
  200. package/dist/components/number-pad/number-pad.style.d.ts +13 -0
  201. package/dist/components/number-pad/number-pad.type.d.cts +135 -0
  202. package/dist/components/number-pad/number-pad.type.d.ts +135 -0
  203. package/dist/components/number-pad/number-pad.utils.d.cts +34 -0
  204. package/dist/components/number-pad/number-pad.utils.d.ts +34 -0
  205. package/dist/components/number-stepper/index.cjs +3 -3
  206. package/dist/components/number-stepper/index.js +2 -2
  207. package/dist/components/pager/index.cjs +31 -0
  208. package/dist/components/pager/index.d.cts +60 -0
  209. package/dist/components/pager/index.d.ts +60 -0
  210. package/dist/components/pager/index.js +31 -0
  211. package/dist/components/pager/pager-content.d.cts +24 -0
  212. package/dist/components/pager/pager-content.d.ts +24 -0
  213. package/dist/components/pager/pager-indicator.d.cts +47 -0
  214. package/dist/components/pager/pager-indicator.d.ts +47 -0
  215. package/dist/components/pager/pager-page.d.cts +16 -0
  216. package/dist/components/pager/pager-page.d.ts +16 -0
  217. package/dist/components/pager/pager.context.d.cts +7 -0
  218. package/dist/components/pager/pager.context.d.ts +7 -0
  219. package/dist/components/pager/pager.d.cts +71 -0
  220. package/dist/components/pager/pager.d.ts +71 -0
  221. package/dist/components/pager/pager.recipe.d.cts +15 -0
  222. package/dist/components/pager/pager.recipe.d.ts +15 -0
  223. package/dist/components/pager/pager.type.d.cts +108 -0
  224. package/dist/components/pager/pager.type.d.ts +108 -0
  225. package/dist/components/phone-number-field/index.cjs +15 -15
  226. package/dist/components/phone-number-field/index.js +4 -4
  227. package/dist/components/popover/index.cjs +3 -3
  228. package/dist/components/popover/index.js +2 -2
  229. package/dist/components/radio/index.cjs +3 -3
  230. package/dist/components/radio/index.d.cts +1 -0
  231. package/dist/components/radio/index.d.ts +1 -0
  232. package/dist/components/radio/index.js +2 -2
  233. package/dist/components/radio/radio.d.cts +1 -0
  234. package/dist/components/radio/radio.d.ts +1 -0
  235. package/dist/components/range-calendar/index.cjs +4 -4
  236. package/dist/components/range-calendar/index.js +3 -3
  237. package/dist/components/rating/index.cjs +30 -0
  238. package/dist/components/rating/index.d.cts +41 -0
  239. package/dist/components/rating/index.d.ts +41 -0
  240. package/dist/components/rating/index.js +30 -0
  241. package/dist/components/rating/rating-icon.d.cts +16 -0
  242. package/dist/components/rating/rating-icon.d.ts +16 -0
  243. package/dist/components/rating/rating-item.d.cts +23 -0
  244. package/dist/components/rating/rating-item.d.ts +23 -0
  245. package/dist/components/rating/rating-star.d.cts +19 -0
  246. package/dist/components/rating/rating-star.d.ts +19 -0
  247. package/dist/components/rating/rating.context.d.cts +16 -0
  248. package/dist/components/rating/rating.context.d.ts +16 -0
  249. package/dist/components/rating/rating.d.cts +59 -0
  250. package/dist/components/rating/rating.d.ts +59 -0
  251. package/dist/components/rating/rating.recipe.d.cts +11 -0
  252. package/dist/components/rating/rating.recipe.d.ts +11 -0
  253. package/dist/components/rating/rating.style.d.cts +24 -0
  254. package/dist/components/rating/rating.style.d.ts +24 -0
  255. package/dist/components/rating/rating.type.d.cts +108 -0
  256. package/dist/components/rating/rating.type.d.ts +108 -0
  257. package/dist/components/rating/rating.utils.d.cts +28 -0
  258. package/dist/components/rating/rating.utils.d.ts +28 -0
  259. package/dist/components/search-field/index.cjs +4 -4
  260. package/dist/components/search-field/index.js +3 -3
  261. package/dist/components/segment/index.cjs +2 -2
  262. package/dist/components/segment/index.js +1 -1
  263. package/dist/components/select/index.cjs +3 -3
  264. package/dist/components/select/index.js +2 -2
  265. package/dist/components/snackbar/index.cjs +3 -3
  266. package/dist/components/snackbar/index.js +2 -2
  267. package/dist/components/switch/index.cjs +3 -3
  268. package/dist/components/switch/index.d.cts +1 -0
  269. package/dist/components/switch/index.d.ts +1 -0
  270. package/dist/components/switch/index.js +2 -2
  271. package/dist/components/switch/switch.d.cts +1 -0
  272. package/dist/components/switch/switch.d.ts +1 -0
  273. package/dist/components/table/index.cjs +4 -4
  274. package/dist/components/table/index.js +3 -3
  275. package/dist/components/tabs/index.cjs +3 -3
  276. package/dist/components/tabs/index.js +2 -2
  277. package/dist/components/tag-group/index.cjs +4 -4
  278. package/dist/components/tag-group/index.js +3 -3
  279. package/dist/components/time-picker/index.cjs +4 -4
  280. package/dist/components/time-picker/index.js +3 -3
  281. package/dist/components/toast/index.cjs +3 -3
  282. package/dist/components/toast/index.js +2 -2
  283. package/dist/components/toggle-button/index.cjs +3 -3
  284. package/dist/components/toggle-button/index.d.cts +1 -0
  285. package/dist/components/toggle-button/index.d.ts +1 -0
  286. package/dist/components/toggle-button/index.js +2 -2
  287. package/dist/components/toggle-button/toggle-button.d.cts +1 -0
  288. package/dist/components/toggle-button/toggle-button.d.ts +1 -0
  289. package/dist/index.cjs +145 -60
  290. package/dist/index.js +243 -158
  291. package/dist/system/index.cjs +3 -3
  292. package/dist/system/index.js +2 -2
  293. package/dist/system/pressable-feedback/index.d.cts +1 -0
  294. package/dist/system/pressable-feedback/index.d.ts +1 -0
  295. package/dist/system/pressable-feedback/pressable-feedback.d.cts +1 -0
  296. package/dist/system/pressable-feedback/pressable-feedback.d.ts +1 -0
  297. package/dist/system/pressable-feedback/pressable-feedback.type.d.cts +13 -1
  298. package/dist/system/pressable-feedback/pressable-feedback.type.d.ts +13 -1
  299. package/package.json +41 -1
  300. package/dist/chunk-L5GB6G3L.cjs +0 -1007
@@ -0,0 +1,31 @@
1
+ import {
2
+ Pager,
3
+ PagerContent,
4
+ PagerDot,
5
+ PagerIndicator,
6
+ PagerPage,
7
+ PagerRoot,
8
+ pagerRecipe,
9
+ usePager
10
+ } from "../../chunk-KPKEZWZM.js";
11
+ import "../../chunk-3A5RK2R7.js";
12
+ import "../../chunk-NCTOTTVW.js";
13
+ import "../../chunk-F6W3JQ7K.js";
14
+ import "../../chunk-WFZDAXDI.js";
15
+ import "../../chunk-DKVXTMIJ.js";
16
+ import "../../chunk-3Q42X6EQ.js";
17
+ import "../../chunk-TTZOIXKE.js";
18
+ import "../../chunk-36PRYGAM.js";
19
+ import "../../chunk-EGLLDKN6.js";
20
+ import "../../chunk-Z6JBWRPL.js";
21
+ import "../../chunk-M63GFNKV.js";
22
+ export {
23
+ Pager,
24
+ PagerContent,
25
+ PagerDot,
26
+ PagerIndicator,
27
+ PagerPage,
28
+ PagerRoot,
29
+ pagerRecipe,
30
+ usePager
31
+ };
@@ -0,0 +1,24 @@
1
+ import type { ScrollView } from 'react-native';
2
+ /**
3
+ * The track: the pages, and the swiping of them.
4
+ *
5
+ * **It pages.** `pagingEnabled` is React Native's own whole-viewport paging — the thing this
6
+ * component is, and the thing the `Carousel` cannot use because its slides are a division of
7
+ * the track rather than the whole of it.
8
+ *
9
+ * **It measures itself**, and that is why the measurement is here rather than on the root:
10
+ * the indicator sits in the flow under the pages, so the root is taller than the box a page
11
+ * has to fill by exactly the height of the dots.
12
+ *
13
+ * **It counts its own children**, which is how the dots know how many pages there are
14
+ * without the caller passing a number that can go stale. The count is published upwards
15
+ * because the indicator is the track's *sibling*, not its child.
16
+ *
17
+ * **It reports its offset on the UI thread**, and the settled index from the same handler.
18
+ * Nothing re-renders while a finger is down except at the moment the nearest page changes,
19
+ * which is once per page crossed.
20
+ */
21
+ export declare const PagerContent: import("react").ForwardRefExoticComponent<Omit<import("react-native").ScrollViewProps, "style" | "children"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ScrollViewProps> & {
22
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
23
+ children?: import("react").ReactNode;
24
+ } & import("react").RefAttributes<ScrollView>>;
@@ -0,0 +1,24 @@
1
+ import type { ScrollView } from 'react-native';
2
+ /**
3
+ * The track: the pages, and the swiping of them.
4
+ *
5
+ * **It pages.** `pagingEnabled` is React Native's own whole-viewport paging — the thing this
6
+ * component is, and the thing the `Carousel` cannot use because its slides are a division of
7
+ * the track rather than the whole of it.
8
+ *
9
+ * **It measures itself**, and that is why the measurement is here rather than on the root:
10
+ * the indicator sits in the flow under the pages, so the root is taller than the box a page
11
+ * has to fill by exactly the height of the dots.
12
+ *
13
+ * **It counts its own children**, which is how the dots know how many pages there are
14
+ * without the caller passing a number that can go stale. The count is published upwards
15
+ * because the indicator is the track's *sibling*, not its child.
16
+ *
17
+ * **It reports its offset on the UI thread**, and the settled index from the same handler.
18
+ * Nothing re-renders while a finger is down except at the moment the nearest page changes,
19
+ * which is once per page crossed.
20
+ */
21
+ export declare const PagerContent: import("react").ForwardRefExoticComponent<Omit<import("react-native").ScrollViewProps, "style" | "children"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ScrollViewProps> & {
22
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
23
+ children?: import("react").ReactNode;
24
+ } & import("react").RefAttributes<ScrollView>>;
@@ -0,0 +1,47 @@
1
+ import { View } from 'react-native';
2
+ /**
3
+ * Which page the reader is on.
4
+ *
5
+ * With no children it draws one dot per page, which is what it is for. Children are the long
6
+ * form — a subset, a label beside them, a shape of your own:
7
+ *
8
+ * ```tsx
9
+ * <Pager.Indicator>
10
+ * {steps.map((step, index) => (
11
+ * <Pager.Dot key={step.id} index={index} />
12
+ * ))}
13
+ * </Pager.Indicator>
14
+ * ```
15
+ *
16
+ * It sits **in the flow**, under the pages. A caller who wants it over them says so —
17
+ * `position="absolute" bottom={16} start={0} end={0}` — which is what the style props are
18
+ * for; absolute by default would have made the common case the one that needs undoing.
19
+ */
20
+ export declare const PagerIndicator: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ViewProps> & {
21
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
22
+ children?: import("react").ReactNode;
23
+ } & import("react").RefAttributes<View>>;
24
+ /**
25
+ * One dot.
26
+ *
27
+ * **It changes colour, it does not stretch.** That is the difference from
28
+ * `Carousel.Dot`, and it is deliberate rather than a simplification: a page control is a
29
+ * fixed row of marks saying how many screens there are and which one you are on, and a mark
30
+ * that grows makes the row's arithmetic move under a reader who is counting it. The
31
+ * carousel's pill is a *progress* indicator over a series; this is a position among screens.
32
+ *
33
+ * **It follows the drag rather than the settle.** The colour is interpolated from the live
34
+ * scroll offset on the UI thread, so it travels while the finger is still down — which is
35
+ * what makes a reader believe the dots are attached to the thing they are moving. Reading
36
+ * the settled index instead would make it jump once per gesture, after the fact.
37
+ *
38
+ * **A screen reader hears "3 of 5" rather than a label**, through `accessibilityValue`. A dot
39
+ * has no text of its own, and inventing one would be picking a language on behalf of every
40
+ * app that installs this.
41
+ */
42
+ export declare const PagerDot: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ViewProps> & {
43
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
44
+ children?: import("react").ReactNode;
45
+ } & {
46
+ index: number;
47
+ } & import("react").RefAttributes<View>>;
@@ -0,0 +1,47 @@
1
+ import { View } from 'react-native';
2
+ /**
3
+ * Which page the reader is on.
4
+ *
5
+ * With no children it draws one dot per page, which is what it is for. Children are the long
6
+ * form — a subset, a label beside them, a shape of your own:
7
+ *
8
+ * ```tsx
9
+ * <Pager.Indicator>
10
+ * {steps.map((step, index) => (
11
+ * <Pager.Dot key={step.id} index={index} />
12
+ * ))}
13
+ * </Pager.Indicator>
14
+ * ```
15
+ *
16
+ * It sits **in the flow**, under the pages. A caller who wants it over them says so —
17
+ * `position="absolute" bottom={16} start={0} end={0}` — which is what the style props are
18
+ * for; absolute by default would have made the common case the one that needs undoing.
19
+ */
20
+ export declare const PagerIndicator: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ViewProps> & {
21
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
22
+ children?: import("react").ReactNode;
23
+ } & import("react").RefAttributes<View>>;
24
+ /**
25
+ * One dot.
26
+ *
27
+ * **It changes colour, it does not stretch.** That is the difference from
28
+ * `Carousel.Dot`, and it is deliberate rather than a simplification: a page control is a
29
+ * fixed row of marks saying how many screens there are and which one you are on, and a mark
30
+ * that grows makes the row's arithmetic move under a reader who is counting it. The
31
+ * carousel's pill is a *progress* indicator over a series; this is a position among screens.
32
+ *
33
+ * **It follows the drag rather than the settle.** The colour is interpolated from the live
34
+ * scroll offset on the UI thread, so it travels while the finger is still down — which is
35
+ * what makes a reader believe the dots are attached to the thing they are moving. Reading
36
+ * the settled index instead would make it jump once per gesture, after the fact.
37
+ *
38
+ * **A screen reader hears "3 of 5" rather than a label**, through `accessibilityValue`. A dot
39
+ * has no text of its own, and inventing one would be picking a language on behalf of every
40
+ * app that installs this.
41
+ */
42
+ export declare const PagerDot: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ViewProps> & {
43
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
44
+ children?: import("react").ReactNode;
45
+ } & {
46
+ index: number;
47
+ } & import("react").RefAttributes<View>>;
@@ -0,0 +1,16 @@
1
+ import { View } from 'react-native';
2
+ /**
3
+ * One page.
4
+ *
5
+ * Its size is the **track's**, on both axes, measured rather than given — which is the whole
6
+ * difference between this and a `Carousel.Item`, whose width is a *division* of the track by
7
+ * `itemsPerView` and the gaps. A page given a size in points is a page that is wrong on the
8
+ * next screen.
9
+ *
10
+ * It clips, so content drawn to its edges stops at them instead of bleeding onto the page
11
+ * beside it while the track is mid-travel.
12
+ */
13
+ export declare const PagerPage: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ViewProps> & {
14
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
15
+ children?: import("react").ReactNode;
16
+ } & import("react").RefAttributes<View>>;
@@ -0,0 +1,16 @@
1
+ import { View } from 'react-native';
2
+ /**
3
+ * One page.
4
+ *
5
+ * Its size is the **track's**, on both axes, measured rather than given — which is the whole
6
+ * difference between this and a `Carousel.Item`, whose width is a *division* of the track by
7
+ * `itemsPerView` and the gaps. A page given a size in points is a page that is wrong on the
8
+ * next screen.
9
+ *
10
+ * It clips, so content drawn to its edges stops at them instead of bleeding onto the page
11
+ * beside it while the track is mid-travel.
12
+ */
13
+ export declare const PagerPage: import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style"> & Omit<import("../..").ViewStyleProps, keyof import("react-native").ViewProps> & {
14
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
15
+ children?: import("react").ReactNode;
16
+ } & import("react").RefAttributes<View>>;
@@ -0,0 +1,7 @@
1
+ import type { PagerContextValue } from './pager.type';
2
+ /**
3
+ * R10 — `usePager` is exported so a control beside the pager can drive it (`goTo`) or read
4
+ * where it is, and so a caller can write their own indicator against the same live `offset`
5
+ * the built-in dots read. Outside a `<Pager>` it throws by name.
6
+ */
7
+ export declare const PagerProvider: import("react").Provider<PagerContextValue | null>, usePager: () => PagerContextValue;
@@ -0,0 +1,7 @@
1
+ import type { PagerContextValue } from './pager.type';
2
+ /**
3
+ * R10 — `usePager` is exported so a control beside the pager can drive it (`goTo`) or read
4
+ * where it is, and so a caller can write their own indicator against the same live `offset`
5
+ * the built-in dots read. Outside a `<Pager>` it throws by name.
6
+ */
7
+ export declare const PagerProvider: import("react").Provider<PagerContextValue | null>, usePager: () => PagerContextValue;
@@ -0,0 +1,71 @@
1
+ import { View } from 'react-native';
2
+ import type { ViewStyle } from 'react-native';
3
+ /**
4
+ * Whole pages, one at a time — the onboarding flow, the full-screen feed, the gallery a
5
+ * reader swipes through.
6
+ *
7
+ * ```tsx
8
+ * <Pager>
9
+ * <Pager.Content>
10
+ * <Pager.Page><Welcome /></Pager.Page>
11
+ * <Pager.Page><Permissions /></Pager.Page>
12
+ * <Pager.Page><Done /></Pager.Page>
13
+ * </Pager.Content>
14
+ *
15
+ * <Pager.Indicator />
16
+ * </Pager>
17
+ * ```
18
+ *
19
+ * **A page is the track, measured.** Not a prop, and not a fraction of one: a pager's page
20
+ * is the viewport it sits in, on both axes, so it is measured once and handed down. That is
21
+ * also what separates this from the `Carousel`, whose slides are a *division* of the track
22
+ * and which therefore has `itemsPerView`, `peek` and a gap to divide it by.
23
+ *
24
+ * **It has no height of its own** — give it one, `flex={1}` to fill a screen or
25
+ * `height={320}` inside a scroll view. A `flex: 1` in the recipe would have overridden an
26
+ * explicit `height` through RN's zero flex-basis, which is the trap the recipe explains.
27
+ *
28
+ * **It pages rather than snapping.** `pagingEnabled` is React Native's own whole-viewport
29
+ * paging, which is exactly this component's job and exactly what the `Carousel` cannot use.
30
+ *
31
+ * **The pages are yours and the dots are the library's.** `variant`, `color` and `size`
32
+ * reach the dots and nothing else — a pager of screens and a pager of photographs want
33
+ * opposite things inside a page, and the caller is the one who knows which this is.
34
+ *
35
+ * `usePager()` publishes `goTo`, the settled `index` and the live `offset`, so a "Skip"
36
+ * button beside the pager costs no state and an indicator of your own follows the drag.
37
+ */
38
+ export declare const PagerRoot: import("react").ForwardRefExoticComponent<{
39
+ variant?: import("./pager.type").PagerVariant;
40
+ size?: import("./pager.type").PagerSize;
41
+ color?: string;
42
+ orientation?: import("./pager.type").PagerOrientation;
43
+ index?: number;
44
+ defaultIndex?: number;
45
+ onIndexChange?: (index: number) => void;
46
+ isDisabled?: boolean;
47
+ style?: import("react-native").StyleProp<ViewStyle>;
48
+ children?: import("react").ReactNode;
49
+ } & Omit<import("react-native").ViewProps, keyof {
50
+ variant?: import("./pager.type").PagerVariant;
51
+ size?: import("./pager.type").PagerSize;
52
+ color?: string;
53
+ orientation?: import("./pager.type").PagerOrientation;
54
+ index?: number;
55
+ defaultIndex?: number;
56
+ onIndexChange?: (index: number) => void;
57
+ isDisabled?: boolean;
58
+ style?: import("react-native").StyleProp<ViewStyle>;
59
+ children?: import("react").ReactNode;
60
+ }> & Omit<import("../..").ViewStyleProps, keyof {
61
+ variant?: import("./pager.type").PagerVariant;
62
+ size?: import("./pager.type").PagerSize;
63
+ color?: string;
64
+ orientation?: import("./pager.type").PagerOrientation;
65
+ index?: number;
66
+ defaultIndex?: number;
67
+ onIndexChange?: (index: number) => void;
68
+ isDisabled?: boolean;
69
+ style?: import("react-native").StyleProp<ViewStyle>;
70
+ children?: import("react").ReactNode;
71
+ }> & import("react").RefAttributes<View>>;
@@ -0,0 +1,71 @@
1
+ import { View } from 'react-native';
2
+ import type { ViewStyle } from 'react-native';
3
+ /**
4
+ * Whole pages, one at a time — the onboarding flow, the full-screen feed, the gallery a
5
+ * reader swipes through.
6
+ *
7
+ * ```tsx
8
+ * <Pager>
9
+ * <Pager.Content>
10
+ * <Pager.Page><Welcome /></Pager.Page>
11
+ * <Pager.Page><Permissions /></Pager.Page>
12
+ * <Pager.Page><Done /></Pager.Page>
13
+ * </Pager.Content>
14
+ *
15
+ * <Pager.Indicator />
16
+ * </Pager>
17
+ * ```
18
+ *
19
+ * **A page is the track, measured.** Not a prop, and not a fraction of one: a pager's page
20
+ * is the viewport it sits in, on both axes, so it is measured once and handed down. That is
21
+ * also what separates this from the `Carousel`, whose slides are a *division* of the track
22
+ * and which therefore has `itemsPerView`, `peek` and a gap to divide it by.
23
+ *
24
+ * **It has no height of its own** — give it one, `flex={1}` to fill a screen or
25
+ * `height={320}` inside a scroll view. A `flex: 1` in the recipe would have overridden an
26
+ * explicit `height` through RN's zero flex-basis, which is the trap the recipe explains.
27
+ *
28
+ * **It pages rather than snapping.** `pagingEnabled` is React Native's own whole-viewport
29
+ * paging, which is exactly this component's job and exactly what the `Carousel` cannot use.
30
+ *
31
+ * **The pages are yours and the dots are the library's.** `variant`, `color` and `size`
32
+ * reach the dots and nothing else — a pager of screens and a pager of photographs want
33
+ * opposite things inside a page, and the caller is the one who knows which this is.
34
+ *
35
+ * `usePager()` publishes `goTo`, the settled `index` and the live `offset`, so a "Skip"
36
+ * button beside the pager costs no state and an indicator of your own follows the drag.
37
+ */
38
+ export declare const PagerRoot: import("react").ForwardRefExoticComponent<{
39
+ variant?: import("./pager.type").PagerVariant;
40
+ size?: import("./pager.type").PagerSize;
41
+ color?: string;
42
+ orientation?: import("./pager.type").PagerOrientation;
43
+ index?: number;
44
+ defaultIndex?: number;
45
+ onIndexChange?: (index: number) => void;
46
+ isDisabled?: boolean;
47
+ style?: import("react-native").StyleProp<ViewStyle>;
48
+ children?: import("react").ReactNode;
49
+ } & Omit<import("react-native").ViewProps, keyof {
50
+ variant?: import("./pager.type").PagerVariant;
51
+ size?: import("./pager.type").PagerSize;
52
+ color?: string;
53
+ orientation?: import("./pager.type").PagerOrientation;
54
+ index?: number;
55
+ defaultIndex?: number;
56
+ onIndexChange?: (index: number) => void;
57
+ isDisabled?: boolean;
58
+ style?: import("react-native").StyleProp<ViewStyle>;
59
+ children?: import("react").ReactNode;
60
+ }> & Omit<import("../..").ViewStyleProps, keyof {
61
+ variant?: import("./pager.type").PagerVariant;
62
+ size?: import("./pager.type").PagerSize;
63
+ color?: string;
64
+ orientation?: import("./pager.type").PagerOrientation;
65
+ index?: number;
66
+ defaultIndex?: number;
67
+ onIndexChange?: (index: number) => void;
68
+ isDisabled?: boolean;
69
+ style?: import("react-native").StyleProp<ViewStyle>;
70
+ children?: import("react").ReactNode;
71
+ }> & import("react").RefAttributes<View>>;
@@ -0,0 +1,15 @@
1
+ import type { SlotStyles } from '../../system/recipe';
2
+ import type { XAUITheme } from '../../theme/theme.type';
3
+ import type { PagerSlot, PagerVariant } from './pager.type';
4
+ export declare const pagerRecipe: import("../..").Recipe<"content" | "root" | "dot" | "indicator" | "page" | "dotActive", PagerVariant, {
5
+ readonly size: {
6
+ readonly xs: (theme: XAUITheme) => SlotStyles<PagerSlot>;
7
+ readonly sm: (theme: XAUITheme) => SlotStyles<PagerSlot>;
8
+ readonly md: (theme: XAUITheme) => SlotStyles<PagerSlot>;
9
+ readonly lg: (theme: XAUITheme) => SlotStyles<PagerSlot>;
10
+ };
11
+ readonly orientation: {
12
+ readonly horizontal: () => SlotStyles<PagerSlot>;
13
+ readonly vertical: () => SlotStyles<PagerSlot>;
14
+ };
15
+ }>;
@@ -0,0 +1,15 @@
1
+ import type { SlotStyles } from '../../system/recipe';
2
+ import type { XAUITheme } from '../../theme/theme.type';
3
+ import type { PagerSlot, PagerVariant } from './pager.type';
4
+ export declare const pagerRecipe: import("../..").Recipe<"content" | "root" | "dot" | "indicator" | "page" | "dotActive", PagerVariant, {
5
+ readonly size: {
6
+ readonly xs: (theme: XAUITheme) => SlotStyles<PagerSlot>;
7
+ readonly sm: (theme: XAUITheme) => SlotStyles<PagerSlot>;
8
+ readonly md: (theme: XAUITheme) => SlotStyles<PagerSlot>;
9
+ readonly lg: (theme: XAUITheme) => SlotStyles<PagerSlot>;
10
+ };
11
+ readonly orientation: {
12
+ readonly horizontal: () => SlotStyles<PagerSlot>;
13
+ readonly vertical: () => SlotStyles<PagerSlot>;
14
+ };
15
+ }>;
@@ -0,0 +1,108 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ScrollViewProps, StyleProp, ViewProps, ViewStyle } from 'react-native';
3
+ import type Animated from 'react-native-reanimated';
4
+ import type { AnimatedRef, SharedValue } from 'react-native-reanimated';
5
+ import type { ViewStyleProps } from '../../system/style-props';
6
+ import type { Size } from '../../theme/theme.type';
7
+ export type PagerSlot = 'root' | 'content' | 'page' | 'indicator' | 'dot' | 'dotActive';
8
+ /**
9
+ * Which way the pages travel. `horizontal` is the onboarding flow and the gallery;
10
+ * `vertical` is the full-screen feed.
11
+ *
12
+ * It is the axis rather than a direction, so it needs no RTL branch: a horizontal pager
13
+ * mirrors with its scroll view, which is React Native's own behaviour.
14
+ */
15
+ export type PagerOrientation = 'horizontal' | 'vertical';
16
+ /**
17
+ * Three, and none of them an intent — a pager reports nothing, it is a way of arranging
18
+ * what does. They name **which colour the current dot takes**, because the dots are the
19
+ * only thing this component paints:
20
+ *
21
+ * - `primary` — the accent. The onboarding flow's answer.
22
+ * - `secondary` — the neutral foreground, for a pager on a plain page.
23
+ * - `tertiary` — the raised surface, which on a light theme is white: the pager over a
24
+ * photograph, where an accent dot disappears into whatever is behind it.
25
+ *
26
+ * `ghost` is absent rather than forgotten. A dot with no fill is not a dot, which is the
27
+ * reason `InputOTP` has no `ghost` either — a box that is not a box is not a box.
28
+ */
29
+ export type PagerVariant = 'primary' | 'secondary' | 'tertiary';
30
+ export type PagerSize = Size;
31
+ type PagerOwnProps = {
32
+ variant?: PagerVariant;
33
+ /** The dots' diameter and the gap between them. Never a page's size. */
34
+ size?: PagerSize;
35
+ /** A raw value (R7) for the current dot. The pages are yours and it never reaches them. */
36
+ color?: string;
37
+ /** @default 'horizontal' */
38
+ orientation?: PagerOrientation;
39
+ /** Which page is shown. Present means controlled. */
40
+ index?: number;
41
+ /** Where it starts when uncontrolled. */
42
+ defaultIndex?: number;
43
+ onIndexChange?: (index: number) => void;
44
+ /** Locks the swipe and the dots. */
45
+ isDisabled?: boolean;
46
+ style?: StyleProp<ViewStyle>;
47
+ children?: ReactNode;
48
+ };
49
+ /** R14 — the pager's own props, `View`'s, and every `ViewStyle` key neither claims. */
50
+ export type PagerProps = PagerOwnProps & Omit<ViewProps, keyof PagerOwnProps | 'style'> & Omit<ViewStyleProps, keyof PagerOwnProps>;
51
+ /** `ScrollView`'s own props win over the `ViewStyle` keys of the same name (R14). */
52
+ export type PagerContentProps = Omit<ScrollViewProps, 'style' | 'children'> & Omit<ViewStyleProps, keyof ScrollViewProps> & {
53
+ style?: StyleProp<ViewStyle>;
54
+ children?: ReactNode;
55
+ };
56
+ /** `View`'s own props win over the `ViewStyle` keys of the same name (R14). */
57
+ export type PagerViewSlotProps = Omit<ViewProps, 'style'> & Omit<ViewStyleProps, keyof ViewProps> & {
58
+ style?: StyleProp<ViewStyle>;
59
+ children?: ReactNode;
60
+ };
61
+ export type PagerDotProps = PagerViewSlotProps & {
62
+ /** Which page this dot stands for. */
63
+ index: number;
64
+ };
65
+ /** The two colours a dot travels between, read as values because a worklet interpolates them. */
66
+ export type PagerDotInk = {
67
+ rest: string;
68
+ active: string;
69
+ };
70
+ /** How big the track measured — a page is exactly this, on both axes. */
71
+ export type PagerTrackSize = {
72
+ width: number;
73
+ height: number;
74
+ };
75
+ /** R5 — resolved styles and measured numbers, never a token for a slot to resolve again. */
76
+ export type PagerContextValue = {
77
+ contentStyle: StyleProp<ViewStyle>;
78
+ pageStyle: StyleProp<ViewStyle>;
79
+ indicatorStyle: StyleProp<ViewStyle>;
80
+ dotStyle: StyleProp<ViewStyle>;
81
+ dotInk: PagerDotInk;
82
+ orientation: PagerOrientation;
83
+ /** The settled page. */
84
+ index: number;
85
+ /** How many pages the track was given, counted by the track itself. */
86
+ count: number;
87
+ setCount: (count: number) => void;
88
+ /**
89
+ * The track's own size, measured — **the track's, not the root's**. The indicator sits in
90
+ * the flow under the pages, so the root is taller than the box a page has to fill, and a
91
+ * page sized to the root would overflow it by exactly the dots.
92
+ *
93
+ * Zero until it has laid out, which is why the track draws nothing before then.
94
+ */
95
+ track: PagerTrackSize;
96
+ setTrack: (size: PagerTrackSize) => void;
97
+ /** How far one page travels — the track's size on the paging axis. */
98
+ step: number;
99
+ /** Where the track is, live, on the UI thread. */
100
+ offset: SharedValue<number>;
101
+ /** Moves the track and lets its own settle report back. */
102
+ goTo: (index: number) => void;
103
+ /** What the track calls when it crosses onto another page. */
104
+ onSettle: (index: number) => void;
105
+ trackRef: AnimatedRef<Animated.ScrollView>;
106
+ isDisabled: boolean;
107
+ };
108
+ export {};
@@ -0,0 +1,108 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ScrollViewProps, StyleProp, ViewProps, ViewStyle } from 'react-native';
3
+ import type Animated from 'react-native-reanimated';
4
+ import type { AnimatedRef, SharedValue } from 'react-native-reanimated';
5
+ import type { ViewStyleProps } from '../../system/style-props';
6
+ import type { Size } from '../../theme/theme.type';
7
+ export type PagerSlot = 'root' | 'content' | 'page' | 'indicator' | 'dot' | 'dotActive';
8
+ /**
9
+ * Which way the pages travel. `horizontal` is the onboarding flow and the gallery;
10
+ * `vertical` is the full-screen feed.
11
+ *
12
+ * It is the axis rather than a direction, so it needs no RTL branch: a horizontal pager
13
+ * mirrors with its scroll view, which is React Native's own behaviour.
14
+ */
15
+ export type PagerOrientation = 'horizontal' | 'vertical';
16
+ /**
17
+ * Three, and none of them an intent — a pager reports nothing, it is a way of arranging
18
+ * what does. They name **which colour the current dot takes**, because the dots are the
19
+ * only thing this component paints:
20
+ *
21
+ * - `primary` — the accent. The onboarding flow's answer.
22
+ * - `secondary` — the neutral foreground, for a pager on a plain page.
23
+ * - `tertiary` — the raised surface, which on a light theme is white: the pager over a
24
+ * photograph, where an accent dot disappears into whatever is behind it.
25
+ *
26
+ * `ghost` is absent rather than forgotten. A dot with no fill is not a dot, which is the
27
+ * reason `InputOTP` has no `ghost` either — a box that is not a box is not a box.
28
+ */
29
+ export type PagerVariant = 'primary' | 'secondary' | 'tertiary';
30
+ export type PagerSize = Size;
31
+ type PagerOwnProps = {
32
+ variant?: PagerVariant;
33
+ /** The dots' diameter and the gap between them. Never a page's size. */
34
+ size?: PagerSize;
35
+ /** A raw value (R7) for the current dot. The pages are yours and it never reaches them. */
36
+ color?: string;
37
+ /** @default 'horizontal' */
38
+ orientation?: PagerOrientation;
39
+ /** Which page is shown. Present means controlled. */
40
+ index?: number;
41
+ /** Where it starts when uncontrolled. */
42
+ defaultIndex?: number;
43
+ onIndexChange?: (index: number) => void;
44
+ /** Locks the swipe and the dots. */
45
+ isDisabled?: boolean;
46
+ style?: StyleProp<ViewStyle>;
47
+ children?: ReactNode;
48
+ };
49
+ /** R14 — the pager's own props, `View`'s, and every `ViewStyle` key neither claims. */
50
+ export type PagerProps = PagerOwnProps & Omit<ViewProps, keyof PagerOwnProps | 'style'> & Omit<ViewStyleProps, keyof PagerOwnProps>;
51
+ /** `ScrollView`'s own props win over the `ViewStyle` keys of the same name (R14). */
52
+ export type PagerContentProps = Omit<ScrollViewProps, 'style' | 'children'> & Omit<ViewStyleProps, keyof ScrollViewProps> & {
53
+ style?: StyleProp<ViewStyle>;
54
+ children?: ReactNode;
55
+ };
56
+ /** `View`'s own props win over the `ViewStyle` keys of the same name (R14). */
57
+ export type PagerViewSlotProps = Omit<ViewProps, 'style'> & Omit<ViewStyleProps, keyof ViewProps> & {
58
+ style?: StyleProp<ViewStyle>;
59
+ children?: ReactNode;
60
+ };
61
+ export type PagerDotProps = PagerViewSlotProps & {
62
+ /** Which page this dot stands for. */
63
+ index: number;
64
+ };
65
+ /** The two colours a dot travels between, read as values because a worklet interpolates them. */
66
+ export type PagerDotInk = {
67
+ rest: string;
68
+ active: string;
69
+ };
70
+ /** How big the track measured — a page is exactly this, on both axes. */
71
+ export type PagerTrackSize = {
72
+ width: number;
73
+ height: number;
74
+ };
75
+ /** R5 — resolved styles and measured numbers, never a token for a slot to resolve again. */
76
+ export type PagerContextValue = {
77
+ contentStyle: StyleProp<ViewStyle>;
78
+ pageStyle: StyleProp<ViewStyle>;
79
+ indicatorStyle: StyleProp<ViewStyle>;
80
+ dotStyle: StyleProp<ViewStyle>;
81
+ dotInk: PagerDotInk;
82
+ orientation: PagerOrientation;
83
+ /** The settled page. */
84
+ index: number;
85
+ /** How many pages the track was given, counted by the track itself. */
86
+ count: number;
87
+ setCount: (count: number) => void;
88
+ /**
89
+ * The track's own size, measured — **the track's, not the root's**. The indicator sits in
90
+ * the flow under the pages, so the root is taller than the box a page has to fill, and a
91
+ * page sized to the root would overflow it by exactly the dots.
92
+ *
93
+ * Zero until it has laid out, which is why the track draws nothing before then.
94
+ */
95
+ track: PagerTrackSize;
96
+ setTrack: (size: PagerTrackSize) => void;
97
+ /** How far one page travels — the track's size on the paging axis. */
98
+ step: number;
99
+ /** Where the track is, live, on the UI thread. */
100
+ offset: SharedValue<number>;
101
+ /** Moves the track and lets its own settle report back. */
102
+ goTo: (index: number) => void;
103
+ /** What the track calls when it crosses onto another page. */
104
+ onSettle: (index: number) => void;
105
+ trackRef: AnimatedRef<Animated.ScrollView>;
106
+ isDisabled: boolean;
107
+ };
108
+ export {};