@retray-dev/ui-kit 6.2.0 → 9.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 (389) hide show
  1. package/COMPONENTS.md +997 -20
  2. package/EXAMPLES.md +250 -2
  3. package/README.md +21 -14
  4. package/dist/Accordion.d.mts +28 -0
  5. package/dist/Accordion.d.ts +28 -0
  6. package/dist/Accordion.js +392 -0
  7. package/dist/Accordion.mjs +7 -0
  8. package/dist/AlertBanner.d.mts +16 -0
  9. package/dist/AlertBanner.d.ts +16 -0
  10. package/dist/AlertBanner.js +250 -0
  11. package/dist/AlertBanner.mjs +6 -0
  12. package/dist/AppHeader.d.mts +40 -0
  13. package/dist/AppHeader.d.ts +40 -0
  14. package/dist/AppHeader.js +515 -0
  15. package/dist/AppHeader.mjs +10 -0
  16. package/dist/Avatar.d.mts +20 -0
  17. package/dist/Avatar.d.ts +20 -0
  18. package/dist/Avatar.js +244 -0
  19. package/dist/Avatar.mjs +4 -0
  20. package/dist/Badge.d.mts +26 -0
  21. package/dist/Badge.d.ts +26 -0
  22. package/dist/Badge.js +257 -0
  23. package/dist/Badge.mjs +5 -0
  24. package/dist/Button.d.mts +30 -0
  25. package/dist/Button.d.ts +30 -0
  26. package/dist/Button.js +432 -0
  27. package/dist/Button.mjs +9 -0
  28. package/dist/ButtonGroup.d.mts +26 -0
  29. package/dist/ButtonGroup.d.ts +26 -0
  30. package/dist/ButtonGroup.js +52 -0
  31. package/dist/ButtonGroup.mjs +3 -0
  32. package/dist/Card.d.mts +39 -0
  33. package/dist/Card.d.ts +39 -0
  34. package/dist/Card.js +349 -0
  35. package/dist/Card.mjs +8 -0
  36. package/dist/CategoryStrip.d.mts +26 -0
  37. package/dist/CategoryStrip.d.ts +26 -0
  38. package/dist/CategoryStrip.js +453 -0
  39. package/dist/CategoryStrip.mjs +9 -0
  40. package/dist/Checkbox.d.mts +14 -0
  41. package/dist/Checkbox.d.ts +14 -0
  42. package/dist/Checkbox.js +336 -0
  43. package/dist/Checkbox.mjs +7 -0
  44. package/dist/Chip.d.mts +31 -0
  45. package/dist/Chip.d.ts +31 -0
  46. package/dist/Chip.js +403 -0
  47. package/dist/Chip.mjs +8 -0
  48. package/dist/ConfirmDialog.d.mts +15 -0
  49. package/dist/ConfirmDialog.d.ts +15 -0
  50. package/dist/ConfirmDialog.js +560 -0
  51. package/dist/ConfirmDialog.mjs +10 -0
  52. package/dist/CurrencyDisplay.d.mts +24 -0
  53. package/dist/CurrencyDisplay.d.ts +24 -0
  54. package/dist/CurrencyDisplay.js +189 -0
  55. package/dist/CurrencyDisplay.mjs +4 -0
  56. package/dist/CurrencyInput.d.mts +26 -0
  57. package/dist/CurrencyInput.d.ts +26 -0
  58. package/dist/CurrencyInput.js +408 -0
  59. package/dist/CurrencyInput.mjs +8 -0
  60. package/dist/DetailRow.d.mts +32 -0
  61. package/dist/DetailRow.d.ts +32 -0
  62. package/dist/DetailRow.js +275 -0
  63. package/dist/DetailRow.mjs +5 -0
  64. package/dist/EmptyState.d.mts +27 -0
  65. package/dist/EmptyState.d.ts +27 -0
  66. package/dist/EmptyState.js +523 -0
  67. package/dist/EmptyState.mjs +10 -0
  68. package/dist/ErrorBoundary.d.mts +42 -0
  69. package/dist/ErrorBoundary.d.ts +42 -0
  70. package/dist/ErrorBoundary.js +351 -0
  71. package/dist/ErrorBoundary.mjs +7 -0
  72. package/dist/Form.d.mts +52 -0
  73. package/dist/Form.d.ts +52 -0
  74. package/dist/Form.js +204 -0
  75. package/dist/Form.mjs +4 -0
  76. package/dist/HolographicCard.d.mts +55 -0
  77. package/dist/HolographicCard.d.ts +55 -0
  78. package/dist/HolographicCard.js +316 -0
  79. package/dist/HolographicCard.mjs +191 -0
  80. package/dist/IconButton.d.mts +27 -0
  81. package/dist/IconButton.d.ts +27 -0
  82. package/dist/IconButton.js +400 -0
  83. package/dist/IconButton.mjs +8 -0
  84. package/dist/ImageViewer.d.mts +23 -0
  85. package/dist/ImageViewer.d.ts +23 -0
  86. package/dist/ImageViewer.js +582 -0
  87. package/dist/ImageViewer.mjs +8 -0
  88. package/dist/Input.d.mts +23 -0
  89. package/dist/Input.d.ts +23 -0
  90. package/dist/Input.js +351 -0
  91. package/dist/Input.mjs +7 -0
  92. package/dist/LabelValue.d.mts +16 -0
  93. package/dist/LabelValue.d.ts +16 -0
  94. package/dist/LabelValue.js +225 -0
  95. package/dist/LabelValue.mjs +5 -0
  96. package/dist/ListGroup.d.mts +34 -0
  97. package/dist/ListGroup.d.ts +34 -0
  98. package/dist/ListGroup.js +217 -0
  99. package/dist/ListGroup.mjs +5 -0
  100. package/dist/ListItem.d.mts +64 -0
  101. package/dist/ListItem.d.ts +64 -0
  102. package/dist/ListItem.js +444 -0
  103. package/dist/ListItem.mjs +9 -0
  104. package/dist/MediaCard.d.mts +39 -0
  105. package/dist/MediaCard.d.ts +39 -0
  106. package/dist/MediaCard.js +475 -0
  107. package/dist/MediaCard.mjs +9 -0
  108. package/dist/MenuGroup.d.mts +34 -0
  109. package/dist/MenuGroup.d.ts +34 -0
  110. package/dist/MenuGroup.js +217 -0
  111. package/dist/MenuGroup.mjs +5 -0
  112. package/dist/MenuItem.d.mts +48 -0
  113. package/dist/MenuItem.d.ts +48 -0
  114. package/dist/MenuItem.js +415 -0
  115. package/dist/MenuItem.mjs +9 -0
  116. package/dist/MonthPicker.d.mts +28 -0
  117. package/dist/MonthPicker.d.ts +28 -0
  118. package/dist/MonthPicker.js +297 -0
  119. package/dist/MonthPicker.mjs +5 -0
  120. package/dist/PagerDots.d.mts +35 -0
  121. package/dist/PagerDots.d.ts +35 -0
  122. package/dist/PagerDots.js +392 -0
  123. package/dist/PagerDots.mjs +7 -0
  124. package/dist/Pressable.d.mts +34 -0
  125. package/dist/Pressable.d.ts +34 -0
  126. package/dist/Pressable.js +143 -0
  127. package/dist/Pressable.mjs +5 -0
  128. package/dist/PricingCard.d.mts +50 -0
  129. package/dist/PricingCard.d.ts +50 -0
  130. package/dist/PricingCard.js +636 -0
  131. package/dist/PricingCard.mjs +11 -0
  132. package/dist/Progress.d.mts +14 -0
  133. package/dist/Progress.d.ts +14 -0
  134. package/dist/Progress.js +191 -0
  135. package/dist/Progress.mjs +5 -0
  136. package/dist/RadioGroup.d.mts +19 -0
  137. package/dist/RadioGroup.d.ts +19 -0
  138. package/dist/RadioGroup.js +392 -0
  139. package/dist/RadioGroup.mjs +7 -0
  140. package/dist/RetrayProvider.d.mts +2 -0
  141. package/dist/RetrayProvider.d.ts +2 -0
  142. package/dist/RetrayProvider.js +214 -0
  143. package/dist/RetrayProvider.mjs +5 -0
  144. package/dist/Select.d.mts +22 -0
  145. package/dist/Select.d.ts +22 -0
  146. package/dist/Select.js +488 -0
  147. package/dist/Select.mjs +7 -0
  148. package/dist/SelectableGrid.d.mts +44 -0
  149. package/dist/SelectableGrid.d.ts +44 -0
  150. package/dist/SelectableGrid.js +448 -0
  151. package/dist/SelectableGrid.mjs +9 -0
  152. package/dist/Separator.d.mts +10 -0
  153. package/dist/Separator.d.ts +10 -0
  154. package/dist/Separator.js +156 -0
  155. package/dist/Separator.mjs +3 -0
  156. package/dist/Sheet.d.mts +93 -0
  157. package/dist/Sheet.d.ts +93 -0
  158. package/dist/Sheet.js +450 -0
  159. package/dist/Sheet.mjs +6 -0
  160. package/dist/Skeleton.d.mts +67 -0
  161. package/dist/Skeleton.d.ts +67 -0
  162. package/dist/Skeleton.js +266 -0
  163. package/dist/Skeleton.mjs +6 -0
  164. package/dist/Slider.d.mts +20 -0
  165. package/dist/Slider.d.ts +20 -0
  166. package/dist/Slider.js +279 -0
  167. package/dist/Slider.mjs +5 -0
  168. package/dist/Spinner.d.mts +12 -0
  169. package/dist/Spinner.d.ts +12 -0
  170. package/dist/Spinner.js +193 -0
  171. package/dist/Spinner.mjs +4 -0
  172. package/dist/Switch.d.mts +13 -0
  173. package/dist/Switch.d.ts +13 -0
  174. package/dist/Switch.js +311 -0
  175. package/dist/Switch.mjs +6 -0
  176. package/dist/TabBar.d.mts +42 -0
  177. package/dist/TabBar.d.ts +42 -0
  178. package/dist/TabBar.js +361 -0
  179. package/dist/TabBar.mjs +6 -0
  180. package/dist/Tabs.d.mts +27 -0
  181. package/dist/Tabs.d.ts +27 -0
  182. package/dist/Tabs.js +419 -0
  183. package/dist/Tabs.mjs +7 -0
  184. package/dist/Text.d.mts +12 -0
  185. package/dist/Text.d.ts +12 -0
  186. package/dist/Text.js +327 -0
  187. package/dist/Text.mjs +5 -0
  188. package/dist/Textarea.d.mts +16 -0
  189. package/dist/Textarea.d.ts +16 -0
  190. package/dist/Textarea.js +333 -0
  191. package/dist/Textarea.mjs +7 -0
  192. package/dist/Toast.d.mts +47 -0
  193. package/dist/Toast.d.ts +47 -0
  194. package/dist/Toast.js +185 -0
  195. package/dist/Toast.mjs +4 -0
  196. package/dist/Toggle.d.mts +36 -0
  197. package/dist/Toggle.d.ts +36 -0
  198. package/dist/Toggle.js +412 -0
  199. package/dist/Toggle.mjs +8 -0
  200. package/dist/VirtualList.d.mts +19 -0
  201. package/dist/VirtualList.d.ts +19 -0
  202. package/dist/VirtualList.js +38 -0
  203. package/dist/VirtualList.mjs +2 -0
  204. package/dist/chunk-26BCI223.mjs +14 -0
  205. package/dist/chunk-2CE3TQVY.mjs +11 -0
  206. package/dist/chunk-2TFTAWVJ.mjs +131 -0
  207. package/dist/chunk-2UYENBLV.mjs +49 -0
  208. package/dist/chunk-3BBOZ3OQ.mjs +41 -0
  209. package/dist/chunk-3DKJ2GIC.mjs +30 -0
  210. package/dist/chunk-3U4SSNWP.mjs +120 -0
  211. package/dist/chunk-4I7D47FH.mjs +139 -0
  212. package/dist/chunk-4K625MVM.mjs +142 -0
  213. package/dist/chunk-6OAZJ577.mjs +98 -0
  214. package/dist/chunk-6Q64UFIA.mjs +71 -0
  215. package/dist/chunk-756RAKE4.mjs +145 -0
  216. package/dist/chunk-7QHVVCB3.mjs +115 -0
  217. package/dist/chunk-A3A6KNQN.mjs +245 -0
  218. package/dist/chunk-A4MDAP7G.mjs +42 -0
  219. package/dist/chunk-AJ7ZDNBT.mjs +120 -0
  220. package/dist/chunk-AV4EMIRH.mjs +94 -0
  221. package/dist/chunk-AZJF2BLK.mjs +115 -0
  222. package/dist/chunk-BNP626TY.mjs +159 -0
  223. package/dist/chunk-BRKYVJVV.mjs +60 -0
  224. package/dist/chunk-DVK4G2GT.mjs +59 -0
  225. package/dist/chunk-EH745HE5.mjs +127 -0
  226. package/dist/chunk-EJ7ZPXOH.mjs +163 -0
  227. package/dist/chunk-GD6KXMG5.mjs +106 -0
  228. package/dist/chunk-GQYFLP3D.mjs +187 -0
  229. package/dist/chunk-ID72TK46.mjs +111 -0
  230. package/dist/chunk-IRRY3CRZ.mjs +82 -0
  231. package/dist/chunk-JB67UOB5.mjs +92 -0
  232. package/dist/chunk-JMOZEC77.mjs +90 -0
  233. package/dist/chunk-JT7HKXRB.mjs +114 -0
  234. package/dist/chunk-KIHCWCWL.mjs +124 -0
  235. package/dist/chunk-LXJIIOYQ.mjs +104 -0
  236. package/dist/chunk-M6ZXVBTK.mjs +64 -0
  237. package/dist/chunk-MAC465BB.mjs +61 -0
  238. package/dist/chunk-MBMXYJJV.mjs +36 -0
  239. package/dist/chunk-MLF3EZFW.mjs +119 -0
  240. package/dist/chunk-MX6HRKMI.mjs +29 -0
  241. package/dist/chunk-NA7PARID.mjs +147 -0
  242. package/dist/chunk-NC5ZTR2Y.mjs +32 -0
  243. package/dist/chunk-O3HA6TYM.mjs +139 -0
  244. package/dist/chunk-OB4JUQ3O.mjs +51 -0
  245. package/dist/chunk-PFZTM6D5.mjs +238 -0
  246. package/dist/chunk-QKH5ZOD5.mjs +97 -0
  247. package/dist/chunk-QY3X2UYR.mjs +191 -0
  248. package/dist/chunk-SOA2Z4RB.mjs +82 -0
  249. package/dist/chunk-SOYNZDVY.mjs +151 -0
  250. package/dist/chunk-T7XZ7H7Y.mjs +57 -0
  251. package/dist/chunk-TERDKCLE.mjs +74 -0
  252. package/dist/chunk-UREA2GYY.mjs +113 -0
  253. package/dist/chunk-VGTDN7SW.mjs +164 -0
  254. package/dist/chunk-VQ57HWPL.mjs +144 -0
  255. package/dist/chunk-WBOOUHSS.mjs +62 -0
  256. package/dist/chunk-WJLKJMKR.mjs +78 -0
  257. package/dist/chunk-X4G6APW6.mjs +134 -0
  258. package/dist/chunk-Y6FXYEAI.mjs +8 -0
  259. package/dist/chunk-YFZ3ELX5.mjs +16 -0
  260. package/dist/chunk-YNROWHQJ.mjs +46 -0
  261. package/dist/chunk-Z4BVUWW6.mjs +196 -0
  262. package/dist/chunk-ZJKGQMYH.mjs +131 -0
  263. package/dist/index-wt-orHUi.d.mts +85 -0
  264. package/dist/index-wt-orHUi.d.ts +85 -0
  265. package/dist/index.d.mts +149 -920
  266. package/dist/index.d.ts +149 -920
  267. package/dist/index.js +2560 -970
  268. package/dist/index.mjs +60 -3895
  269. package/package.json +55 -16
  270. package/src/assets/fonts/Sohne-Bold.otf +0 -0
  271. package/src/assets/fonts/Sohne-BoldItalic.otf +0 -0
  272. package/src/assets/fonts/Sohne-ExtraBold.otf +0 -0
  273. package/src/assets/fonts/Sohne-ExtraBoldItalic.otf +0 -0
  274. package/src/assets/fonts/Sohne-ExtraLight.otf +0 -0
  275. package/src/assets/fonts/Sohne-ExtraLightItalic.otf +0 -0
  276. package/src/assets/fonts/Sohne-Italic.otf +0 -0
  277. package/src/assets/fonts/Sohne-Light.otf +0 -0
  278. package/src/assets/fonts/Sohne-LightItalic.otf +0 -0
  279. package/src/assets/fonts/Sohne-Medium.otf +0 -0
  280. package/src/assets/fonts/Sohne-MediumItalic.otf +0 -0
  281. package/src/assets/fonts/Sohne-Regular.otf +0 -0
  282. package/src/assets/fonts/Sohne-SemiBold.otf +0 -0
  283. package/src/assets/fonts/Sohne-SemiBoldItalic.otf +0 -0
  284. package/src/assets/fonts/SohneMono-Bold.otf +0 -0
  285. package/src/assets/fonts/SohneMono-BoldItalic.otf +0 -0
  286. package/src/assets/fonts/SohneMono-ExtraBold.otf +0 -0
  287. package/src/assets/fonts/SohneMono-ExtraBoldItalic.otf +0 -0
  288. package/src/assets/fonts/SohneMono-ExtraLight.otf +0 -0
  289. package/src/assets/fonts/SohneMono-ExtraLightItalic.otf +0 -0
  290. package/src/assets/fonts/SohneMono-Italic.otf +0 -0
  291. package/src/assets/fonts/SohneMono-Light.otf +0 -0
  292. package/src/assets/fonts/SohneMono-LightItalic.otf +0 -0
  293. package/src/assets/fonts/SohneMono-Medium.otf +0 -0
  294. package/src/assets/fonts/SohneMono-MediumItalic.otf +0 -0
  295. package/src/assets/fonts/SohneMono-Regular.otf +0 -0
  296. package/src/assets/fonts/SohneMono-SemiBold.otf +0 -0
  297. package/src/assets/fonts/SohneMono-SemiBoldItalic.otf +0 -0
  298. package/src/components/Accordion/Accordion.tsx +15 -4
  299. package/src/components/AlertBanner/AlertBanner.tsx +38 -12
  300. package/src/components/AppHeader/AppHeader.tsx +172 -0
  301. package/src/components/AppHeader/index.ts +1 -0
  302. package/src/components/Avatar/Avatar.tsx +14 -4
  303. package/src/components/Badge/Badge.tsx +12 -3
  304. package/src/components/Button/Button.tsx +30 -38
  305. package/src/components/ButtonGroup/ButtonGroup.tsx +13 -10
  306. package/src/components/Card/Card.tsx +29 -57
  307. package/src/components/CategoryStrip/CategoryStrip.tsx +41 -42
  308. package/src/components/Checkbox/Checkbox.tsx +36 -45
  309. package/src/components/Chip/Chip.tsx +41 -48
  310. package/src/components/ConfirmDialog/ConfirmDialog.tsx +2 -2
  311. package/src/components/CurrencyDisplay/CurrencyDisplay.tsx +4 -2
  312. package/src/components/CurrencyInput/CurrencyInput.tsx +12 -10
  313. package/src/components/DetailRow/DetailRow.tsx +9 -7
  314. package/src/components/EmptyState/EmptyState.tsx +4 -3
  315. package/src/components/ErrorBoundary/ErrorBoundary.tsx +153 -0
  316. package/src/components/ErrorBoundary/index.ts +1 -0
  317. package/src/components/Form/Form.tsx +149 -0
  318. package/src/components/Form/index.ts +1 -0
  319. package/src/components/HolographicCard/HolographicCard.tsx +315 -0
  320. package/src/components/HolographicCard/index.ts +1 -0
  321. package/src/components/IconButton/IconButton.tsx +23 -29
  322. package/src/components/ImageViewer/ImageViewer.tsx +290 -0
  323. package/src/components/ImageViewer/index.ts +1 -0
  324. package/src/components/Input/Input.tsx +27 -31
  325. package/src/components/LabelValue/LabelValue.tsx +6 -4
  326. package/src/components/ListGroup/ListGroup.tsx +145 -0
  327. package/src/components/ListGroup/index.ts +1 -0
  328. package/src/components/ListItem/ListItem.tsx +78 -76
  329. package/src/components/MediaCard/MediaCard.tsx +15 -7
  330. package/src/components/MenuGroup/MenuGroup.tsx +145 -0
  331. package/src/components/MenuGroup/index.ts +1 -0
  332. package/src/components/MenuItem/MenuItem.tsx +16 -33
  333. package/src/components/MonthPicker/MonthPicker.tsx +41 -15
  334. package/src/components/MonthPicker/index.ts +1 -1
  335. package/src/components/PagerDots/PagerDots.tsx +200 -0
  336. package/src/components/PagerDots/index.ts +1 -0
  337. package/src/components/Pressable/Pressable.tsx +19 -35
  338. package/src/components/PricingCard/PricingCard.tsx +220 -0
  339. package/src/components/PricingCard/index.ts +1 -0
  340. package/src/components/RadioGroup/RadioGroup.tsx +23 -39
  341. package/src/components/RetrayProvider/RetrayProvider.tsx +59 -0
  342. package/src/components/RetrayProvider/index.ts +1 -0
  343. package/src/components/Select/Select.tsx +6 -6
  344. package/src/components/SelectableGrid/SelectableGrid.tsx +205 -0
  345. package/src/components/SelectableGrid/index.ts +1 -0
  346. package/src/components/Separator/Separator.tsx +1 -3
  347. package/src/components/Sheet/Sheet.tsx +146 -18
  348. package/src/components/Skeleton/Skeleton.tsx +143 -2
  349. package/src/components/Slider/Slider.tsx +2 -2
  350. package/src/components/Spinner/Spinner.tsx +18 -3
  351. package/src/components/Switch/Switch.tsx +44 -49
  352. package/src/components/TabBar/TabBar.tsx +169 -0
  353. package/src/components/TabBar/index.ts +1 -0
  354. package/src/components/Tabs/Tabs.tsx +45 -44
  355. package/src/components/Text/Text.tsx +5 -1
  356. package/src/components/Textarea/Textarea.tsx +18 -14
  357. package/src/components/Toast/Toast.tsx +6 -6
  358. package/src/components/Toggle/Toggle.tsx +80 -72
  359. package/src/components/VirtualList/VirtualList.tsx +60 -0
  360. package/src/components/VirtualList/index.ts +1 -0
  361. package/src/fonts.ts +41 -20
  362. package/src/index.ts +28 -3
  363. package/src/theme/colors.ts +53 -39
  364. package/src/theme/types.ts +3 -0
  365. package/src/tokens.ts +49 -39
  366. package/src/utils/animations.ts +29 -1
  367. package/src/utils/fontGuard.ts +34 -0
  368. package/src/utils/haptics.ts +211 -9
  369. package/src/utils/icons.ts +47 -20
  370. package/src/utils/pressable.ts +66 -0
  371. package/src/utils/usePressScale.ts +2 -0
  372. package/src/assets/fonts/Poppins-Black.ttf +0 -0
  373. package/src/assets/fonts/Poppins-BlackItalic.ttf +0 -0
  374. package/src/assets/fonts/Poppins-Bold.ttf +0 -0
  375. package/src/assets/fonts/Poppins-BoldItalic.ttf +0 -0
  376. package/src/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  377. package/src/assets/fonts/Poppins-ExtraBoldItalic.ttf +0 -0
  378. package/src/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  379. package/src/assets/fonts/Poppins-ExtraLightItalic.ttf +0 -0
  380. package/src/assets/fonts/Poppins-Italic.ttf +0 -0
  381. package/src/assets/fonts/Poppins-Light.ttf +0 -0
  382. package/src/assets/fonts/Poppins-LightItalic.ttf +0 -0
  383. package/src/assets/fonts/Poppins-Medium.ttf +0 -0
  384. package/src/assets/fonts/Poppins-MediumItalic.ttf +0 -0
  385. package/src/assets/fonts/Poppins-Regular.ttf +0 -0
  386. package/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
  387. package/src/assets/fonts/Poppins-SemiBoldItalic.ttf +0 -0
  388. package/src/assets/fonts/Poppins-Thin.ttf +0 -0
  389. package/src/assets/fonts/Poppins-ThinItalic.ttf +0 -0
@@ -0,0 +1,582 @@
1
+ 'use strict';
2
+
3
+ var React4 = require('react');
4
+ var reactNative = require('react-native');
5
+ var reactNativeGestureHandler = require('react-native-gesture-handler');
6
+ var Animated2 = require('react-native-reanimated');
7
+ var reactNativeSafeAreaContext = require('react-native-safe-area-context');
8
+ var AntDesign = require('@expo/vector-icons/AntDesign');
9
+ var Entypo = require('@expo/vector-icons/Entypo');
10
+ var Feather = require('@expo/vector-icons/Feather');
11
+ var FontAwesome5 = require('@expo/vector-icons/FontAwesome5');
12
+ var MaterialIcons = require('@expo/vector-icons/MaterialIcons');
13
+ var Ionicons = require('@expo/vector-icons/Ionicons');
14
+ var reactNativeSizeMatters = require('react-native-size-matters');
15
+
16
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
17
+
18
+ var React4__default = /*#__PURE__*/_interopDefault(React4);
19
+ var Animated2__default = /*#__PURE__*/_interopDefault(Animated2);
20
+ var AntDesign__default = /*#__PURE__*/_interopDefault(AntDesign);
21
+ var Entypo__default = /*#__PURE__*/_interopDefault(Entypo);
22
+ var Feather__default = /*#__PURE__*/_interopDefault(Feather);
23
+ var FontAwesome5__default = /*#__PURE__*/_interopDefault(FontAwesome5);
24
+ var MaterialIcons__default = /*#__PURE__*/_interopDefault(MaterialIcons);
25
+ var Ionicons__default = /*#__PURE__*/_interopDefault(Ionicons);
26
+
27
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
28
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
29
+ }) : x)(function(x) {
30
+ if (typeof require !== "undefined") return require.apply(this, arguments);
31
+ throw Error('Dynamic require of "' + x + '" is not supported');
32
+ });
33
+ var glyphMapOf = (mod) => mod.glyphMap ?? {};
34
+ var ALL_FAMILIES = [
35
+ { name: "Ionicons", component: Ionicons__default.default, getGlyphMap: () => glyphMapOf(Ionicons__default.default) },
36
+ { name: "MaterialIcons", component: MaterialIcons__default.default, getGlyphMap: () => glyphMapOf(MaterialIcons__default.default) },
37
+ { name: "FontAwesome5", component: FontAwesome5__default.default, getGlyphMap: () => glyphMapOf(FontAwesome5__default.default) },
38
+ { name: "Entypo", component: Entypo__default.default, getGlyphMap: () => glyphMapOf(Entypo__default.default) },
39
+ { name: "AntDesign", component: AntDesign__default.default, getGlyphMap: () => glyphMapOf(AntDesign__default.default) },
40
+ { name: "Feather", component: Feather__default.default, getGlyphMap: () => glyphMapOf(Feather__default.default) }
41
+ ];
42
+ var activeFamilies = ALL_FAMILIES;
43
+ var resolvedCache = null;
44
+ function buildCache() {
45
+ const cache = /* @__PURE__ */ new Map();
46
+ for (const family of activeFamilies) {
47
+ const glyphMap = family.getGlyphMap();
48
+ for (const iconName of Object.keys(glyphMap)) {
49
+ cache.set(iconName, family);
50
+ }
51
+ }
52
+ return cache;
53
+ }
54
+ function resolveFamily(name) {
55
+ if (!resolvedCache) {
56
+ resolvedCache = buildCache();
57
+ }
58
+ return resolvedCache.get(name) ?? null;
59
+ }
60
+ function Icon({ name, size, color, family }) {
61
+ let resolved = null;
62
+ if (family) {
63
+ resolved = ALL_FAMILIES.find((f) => f.name === family) ?? null;
64
+ } else {
65
+ resolved = resolveFamily(name);
66
+ }
67
+ if (!resolved) return null;
68
+ const Component = resolved.component;
69
+ return React4__default.default.createElement(Component, { name, size, color });
70
+ }
71
+ function renderIcon(name, size, color) {
72
+ return React4__default.default.createElement(Icon, { name, size, color });
73
+ }
74
+
75
+ // src/theme/colorUtils.ts
76
+ function hexToRgb(hex) {
77
+ const clean = hex.replace("#", "");
78
+ const full = clean.length === 3 ? clean.split("").map((c) => c + c).join("") : clean;
79
+ if (full.length !== 6) return null;
80
+ return {
81
+ r: parseInt(full.slice(0, 2), 16),
82
+ g: parseInt(full.slice(2, 4), 16),
83
+ b: parseInt(full.slice(4, 6), 16)
84
+ };
85
+ }
86
+ function componentToHex(c) {
87
+ return Math.round(Math.max(0, Math.min(255, c))).toString(16).padStart(2, "0");
88
+ }
89
+ function rgbToHex(r, g, b) {
90
+ return `#${componentToHex(r)}${componentToHex(g)}${componentToHex(b)}`;
91
+ }
92
+ function withAlphaOnWhite(hex, alpha) {
93
+ const rgb = hexToRgb(hex);
94
+ if (!rgb) return hex;
95
+ const r = rgb.r * alpha + 255 * (1 - alpha);
96
+ const g = rgb.g * alpha + 255 * (1 - alpha);
97
+ const b = rgb.b * alpha + 255 * (1 - alpha);
98
+ return rgbToHex(r, g, b);
99
+ }
100
+ function withAlphaOnDark(hex, alpha, bgHex = "#0f0f0f") {
101
+ const rgb = hexToRgb(hex);
102
+ const bg = hexToRgb(bgHex);
103
+ if (!rgb || !bg) return hex;
104
+ const r = rgb.r * alpha + bg.r * (1 - alpha);
105
+ const g = rgb.g * alpha + bg.g * (1 - alpha);
106
+ const b = rgb.b * alpha + bg.b * (1 - alpha);
107
+ return rgbToHex(r, g, b);
108
+ }
109
+ function mixWithBackground(fgHex, bgHex, opacity) {
110
+ const fg = hexToRgb(fgHex);
111
+ const bg = hexToRgb(bgHex);
112
+ if (!fg || !bg) return fgHex;
113
+ const r = fg.r * opacity + bg.r * (1 - opacity);
114
+ const g = fg.g * opacity + bg.g * (1 - opacity);
115
+ const b = fg.b * opacity + bg.b * (1 - opacity);
116
+ return rgbToHex(r, g, b);
117
+ }
118
+ function lighten(hex, amount) {
119
+ return withAlphaOnWhite(hex, 1 - amount);
120
+ }
121
+ function darken(hex, amount) {
122
+ const rgb = hexToRgb(hex);
123
+ if (!rgb) return hex;
124
+ return rgbToHex(rgb.r * (1 - amount), rgb.g * (1 - amount), rgb.b * (1 - amount));
125
+ }
126
+
127
+ // src/theme/colors.ts
128
+ var defaultLight = {
129
+ background: "#ffffff",
130
+ foreground: "#1a1a1a",
131
+ card: "#ffffff",
132
+ primary: "#1a1a1a",
133
+ primaryForeground: "#ffffff",
134
+ // AUDIT FIX: brand accent — was undefined; falls back to primary when omitted
135
+ accent: "#d4561d",
136
+ accentForeground: "#ffffff",
137
+ border: "#dddddd",
138
+ // AUDIT FIX: was #e53935 (4.22:1 on white — fails AA); #c72828 = 5.59:1 ✓
139
+ destructive: "#c72828",
140
+ destructiveForeground: "#ffffff",
141
+ success: "#1a7a45",
142
+ successForeground: "#ffffff",
143
+ // AUDIT FIX: was #e67e00 (2.86:1 — severe fail); #9a5200 = 5.86:1 ✓ AAA-near
144
+ warning: "#9a5200",
145
+ warningForeground: "#ffffff"
146
+ };
147
+ function deriveColors(t, scheme) {
148
+ const dark = scheme === "dark";
149
+ const bg = t.background;
150
+ const foregroundSubtle = mixWithBackground(t.foreground, bg, 0.7);
151
+ const foregroundMuted = mixWithBackground(t.foreground, bg, 0.62);
152
+ const surface = dark ? lighten(bg, -0.06) : darken(bg, 0.04);
153
+ const surfaceStrong = dark ? lighten(bg, -0.12) : darken(bg, 0.08);
154
+ const destructiveTint = dark ? withAlphaOnDark(t.destructive, 0.15, bg) : withAlphaOnWhite(t.destructive, 0.08);
155
+ const destructiveBorder = dark ? withAlphaOnDark(t.destructive, 0.45, bg) : withAlphaOnWhite(t.destructive, 0.3);
156
+ const successTint = dark ? withAlphaOnDark(t.success, 0.15, bg) : withAlphaOnWhite(t.success, 0.08);
157
+ const successBorder = dark ? withAlphaOnDark(t.success, 0.45, bg) : withAlphaOnWhite(t.success, 0.3);
158
+ const warningTint = dark ? withAlphaOnDark(t.warning, 0.15, bg) : withAlphaOnWhite(t.warning, 0.08);
159
+ const warningBorder = dark ? withAlphaOnDark(t.warning, 0.45, bg) : withAlphaOnWhite(t.warning, 0.3);
160
+ return {
161
+ ...t,
162
+ foregroundSubtle,
163
+ foregroundMuted,
164
+ surface,
165
+ surfaceStrong,
166
+ destructiveTint,
167
+ destructiveBorder,
168
+ successTint,
169
+ successBorder,
170
+ warningTint,
171
+ warningBorder,
172
+ overlay: t.overlay ?? "rgba(0,0,0,0.45)",
173
+ accentResolved: t.accent ?? t.primary,
174
+ accentForegroundResolved: t.accentForeground ?? t.primaryForeground,
175
+ ring: t.accent ?? t.primary,
176
+ input: t.border,
177
+ separator: dark ? lighten(t.border, 0.22) : darken(t.border, 0.16)
178
+ };
179
+ }
180
+
181
+ // src/theme/ThemeProvider.tsx
182
+ var ThemeContext = React4.createContext({
183
+ colors: deriveColors(defaultLight, "light"),
184
+ colorScheme: "light"
185
+ });
186
+ function useTheme() {
187
+ const context = React4.useContext(ThemeContext);
188
+ if (!context) {
189
+ throw new Error("useTheme must be used within a ThemeProvider");
190
+ }
191
+ return context;
192
+ }
193
+ var isWeb = reactNative.Platform.OS === "web";
194
+ var s = isWeb ? (n) => n : reactNativeSizeMatters.scale;
195
+ var vs = isWeb ? (n) => n : reactNativeSizeMatters.verticalScale;
196
+ var SPRINGS = {
197
+ /** Settled transitions for moving indicators — Tabs pill, Switch thumb. */
198
+ glide: { stiffness: 380, damping: 38, mass: 1 }};
199
+ ({
200
+ /** Material-style ease-out — natural deceleration for state changes. */
201
+ standard: Animated2.Easing.bezier(0.2, 0, 0, 1),
202
+ /** Strong ease-out for expanding surfaces (Accordion open). */
203
+ expand: Animated2.Easing.bezier(0.23, 1, 0.32, 1),
204
+ /** Quick ease-in for collapsing. */
205
+ collapse: Animated2.Easing.in(Animated2.Easing.ease)
206
+ });
207
+ var _haptics = null;
208
+ var _hapticsLoaded = false;
209
+ async function getHaptics() {
210
+ if (reactNative.Platform.OS === "web") return null;
211
+ if (!_hapticsLoaded) {
212
+ _hapticsLoaded = true;
213
+ try {
214
+ _haptics = await import('expo-haptics');
215
+ } catch {
216
+ _haptics = null;
217
+ }
218
+ }
219
+ return _haptics;
220
+ }
221
+ var _pulsar = null;
222
+ var _pulsarChecked = false;
223
+ var _pulsarAvailable = false;
224
+ function isPulsarNativeRegistered() {
225
+ try {
226
+ const g = globalThis;
227
+ if (typeof g.__turboModuleProxy === "function") {
228
+ return g.__turboModuleProxy("RNPulsar") != null;
229
+ }
230
+ return reactNative.NativeModules?.RNPulsar != null;
231
+ } catch {
232
+ return false;
233
+ }
234
+ }
235
+ function getPulsar() {
236
+ if (reactNative.Platform.OS === "web") return null;
237
+ if (!_pulsarChecked) {
238
+ _pulsarChecked = true;
239
+ try {
240
+ if (isPulsarNativeRegistered()) {
241
+ _pulsar = __require("react-native-pulsar");
242
+ _pulsarAvailable = true;
243
+ }
244
+ } catch {
245
+ _pulsar = null;
246
+ _pulsarAvailable = false;
247
+ }
248
+ }
249
+ return _pulsarAvailable ? _pulsar : null;
250
+ }
251
+ function selectionAsync() {
252
+ if (reactNative.Platform.OS === "web") return;
253
+ getHaptics().then((h) => {
254
+ if (h) {
255
+ h.selectionAsync();
256
+ } else {
257
+ getPulsar()?.Presets.System.selection();
258
+ }
259
+ });
260
+ }
261
+
262
+ // src/components/PagerDots/PagerDots.tsx
263
+ function Dot({ active, size, activeColor, inactiveColor, onPress, index, total }) {
264
+ const progress = Animated2.useSharedValue(active ? 1 : 0);
265
+ React4.useEffect(() => {
266
+ progress.value = Animated2.withSpring(active ? 1 : 0, SPRINGS.glide);
267
+ }, [active, progress]);
268
+ const animatedStyle = Animated2.useAnimatedStyle(() => ({
269
+ width: size + progress.value * size * 1.5,
270
+ backgroundColor: Animated2.interpolateColor(progress.value, [0, 1], [inactiveColor, activeColor])
271
+ }));
272
+ const dot = /* @__PURE__ */ React4__default.default.createElement(Animated2__default.default.View, { style: [{ height: size, borderRadius: size / 2 }, animatedStyle] });
273
+ if (!onPress) return dot;
274
+ const handlePress = () => {
275
+ selectionAsync();
276
+ onPress();
277
+ };
278
+ return /* @__PURE__ */ React4__default.default.createElement(
279
+ reactNative.TouchableOpacity,
280
+ {
281
+ onPress: handlePress,
282
+ activeOpacity: 0.7,
283
+ touchSoundDisabled: true,
284
+ accessibilityRole: "button",
285
+ accessibilityLabel: `Page ${index + 1} of ${total}${active ? ", current page" : ""}`,
286
+ hitSlop: { top: 8, bottom: 8, left: 4, right: 4 }
287
+ },
288
+ dot
289
+ );
290
+ }
291
+ function PagerDots({
292
+ count,
293
+ activeIndex,
294
+ onDotPress,
295
+ showControls = false,
296
+ dotSize = 8,
297
+ spacing = 8,
298
+ activeColor,
299
+ inactiveColor,
300
+ style
301
+ }) {
302
+ const { colors } = useTheme();
303
+ const resolvedActive = activeColor ?? colors.primary;
304
+ const resolvedInactive = inactiveColor ?? colors.border;
305
+ const size = s(dotSize);
306
+ const hasControls = showControls !== false;
307
+ const canGoPrev = activeIndex > 0;
308
+ const canGoNext = activeIndex < count - 1;
309
+ const handlePrevious = () => {
310
+ if (!canGoPrev) return;
311
+ selectionAsync();
312
+ if (typeof showControls === "object" && showControls.onPrevious) {
313
+ showControls.onPrevious();
314
+ } else if (onDotPress) {
315
+ onDotPress(activeIndex - 1);
316
+ }
317
+ };
318
+ const handleNext = () => {
319
+ if (!canGoNext) return;
320
+ selectionAsync();
321
+ if (typeof showControls === "object" && showControls.onNext) {
322
+ showControls.onNext();
323
+ } else if (onDotPress) {
324
+ onDotPress(activeIndex + 1);
325
+ }
326
+ };
327
+ return /* @__PURE__ */ React4__default.default.createElement(
328
+ reactNative.View,
329
+ {
330
+ style: [styles.container, { gap: s(spacing) }, style],
331
+ accessibilityRole: "adjustable",
332
+ accessibilityLabel: `Page ${activeIndex + 1} of ${count}`
333
+ },
334
+ hasControls && /* @__PURE__ */ React4__default.default.createElement(
335
+ reactNative.TouchableOpacity,
336
+ {
337
+ onPress: handlePrevious,
338
+ disabled: !canGoPrev,
339
+ activeOpacity: 0.7,
340
+ touchSoundDisabled: true,
341
+ accessibilityRole: "button",
342
+ accessibilityLabel: "Previous page",
343
+ hitSlop: { top: 8, bottom: 8, left: 8, right: 8 },
344
+ style: [styles.controlBtn, !canGoPrev && styles.controlBtnDisabled]
345
+ },
346
+ renderIcon("chevron-left", s(18), canGoPrev ? colors.foreground : colors.foregroundMuted)
347
+ ),
348
+ /* @__PURE__ */ React4__default.default.createElement(reactNative.View, { style: [styles.dotsRow, { gap: s(spacing) }] }, Array.from({ length: count }).map((_, i) => /* @__PURE__ */ React4__default.default.createElement(
349
+ Dot,
350
+ {
351
+ key: i,
352
+ active: i === activeIndex,
353
+ size,
354
+ activeColor: resolvedActive,
355
+ inactiveColor: resolvedInactive,
356
+ index: i,
357
+ total: count,
358
+ onPress: onDotPress ? () => onDotPress(i) : void 0
359
+ }
360
+ ))),
361
+ hasControls && /* @__PURE__ */ React4__default.default.createElement(
362
+ reactNative.TouchableOpacity,
363
+ {
364
+ onPress: handleNext,
365
+ disabled: !canGoNext,
366
+ activeOpacity: 0.7,
367
+ touchSoundDisabled: true,
368
+ accessibilityRole: "button",
369
+ accessibilityLabel: "Next page",
370
+ hitSlop: { top: 8, bottom: 8, left: 8, right: 8 },
371
+ style: [styles.controlBtn, !canGoNext && styles.controlBtnDisabled]
372
+ },
373
+ renderIcon("chevron-right", s(18), canGoNext ? colors.foreground : colors.foregroundMuted)
374
+ )
375
+ );
376
+ }
377
+ var styles = reactNative.StyleSheet.create({
378
+ container: {
379
+ flexDirection: "row",
380
+ alignItems: "center",
381
+ justifyContent: "center"
382
+ },
383
+ dotsRow: {
384
+ flexDirection: "row",
385
+ alignItems: "center"
386
+ },
387
+ controlBtn: {
388
+ padding: s(4)
389
+ },
390
+ controlBtnDisabled: {
391
+ opacity: 0.3
392
+ }
393
+ });
394
+
395
+ // src/components/ImageViewer/ImageViewer.tsx
396
+ var MAX_SCALE = 3;
397
+ var DOUBLE_TAP_SCALE = 2.5;
398
+ function ZoomableImage({ source, width, height, onZoomChange }) {
399
+ const scale2 = Animated2.useSharedValue(1);
400
+ const savedScale = Animated2.useSharedValue(1);
401
+ const translateX = Animated2.useSharedValue(0);
402
+ const translateY = Animated2.useSharedValue(0);
403
+ const savedX = Animated2.useSharedValue(0);
404
+ const savedY = Animated2.useSharedValue(0);
405
+ const reportZoom = React4.useCallback((zoomed) => onZoomChange(zoomed), [onZoomChange]);
406
+ const reset = () => {
407
+ "worklet";
408
+ scale2.value = Animated2.withTiming(1);
409
+ savedScale.value = 1;
410
+ translateX.value = Animated2.withTiming(0);
411
+ translateY.value = Animated2.withTiming(0);
412
+ savedX.value = 0;
413
+ savedY.value = 0;
414
+ Animated2.runOnJS(reportZoom)(false);
415
+ };
416
+ const pinch = reactNativeGestureHandler.Gesture.Pinch().onUpdate((e) => {
417
+ scale2.value = Math.max(1, Math.min(savedScale.value * e.scale, MAX_SCALE));
418
+ }).onEnd(() => {
419
+ savedScale.value = scale2.value;
420
+ if (scale2.value <= 1) {
421
+ reset();
422
+ } else {
423
+ Animated2.runOnJS(reportZoom)(true);
424
+ }
425
+ });
426
+ const pan = reactNativeGestureHandler.Gesture.Pan().onUpdate((e) => {
427
+ if (scale2.value <= 1) return;
428
+ translateX.value = savedX.value + e.translationX;
429
+ translateY.value = savedY.value + e.translationY;
430
+ }).onEnd(() => {
431
+ savedX.value = translateX.value;
432
+ savedY.value = translateY.value;
433
+ });
434
+ const doubleTap = reactNativeGestureHandler.Gesture.Tap().numberOfTaps(2).onEnd(() => {
435
+ if (scale2.value > 1) {
436
+ reset();
437
+ } else {
438
+ scale2.value = Animated2.withTiming(DOUBLE_TAP_SCALE);
439
+ savedScale.value = DOUBLE_TAP_SCALE;
440
+ Animated2.runOnJS(reportZoom)(true);
441
+ }
442
+ });
443
+ const composed = reactNativeGestureHandler.Gesture.Exclusive(doubleTap, reactNativeGestureHandler.Gesture.Simultaneous(pinch, pan));
444
+ const animatedStyle = Animated2.useAnimatedStyle(() => ({
445
+ transform: [
446
+ { translateX: translateX.value },
447
+ { translateY: translateY.value },
448
+ { scale: scale2.value }
449
+ ]
450
+ }));
451
+ return /* @__PURE__ */ React4__default.default.createElement(reactNativeGestureHandler.GestureDetector, { gesture: composed }, /* @__PURE__ */ React4__default.default.createElement(Animated2__default.default.View, { style: [{ width, height }, styles2.imageWrap] }, /* @__PURE__ */ React4__default.default.createElement(
452
+ Animated2__default.default.Image,
453
+ {
454
+ source,
455
+ style: [{ width, height }, animatedStyle],
456
+ resizeMode: "contain"
457
+ }
458
+ )));
459
+ }
460
+ function ImageViewer({ images, visible, onClose, initialIndex = 0 }) {
461
+ const { width, height } = reactNative.useWindowDimensions();
462
+ const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
463
+ const [index, setIndex] = React4.useState(initialIndex);
464
+ const [pagingEnabled, setPagingEnabled] = React4.useState(true);
465
+ const scrollRef = React4__default.default.useRef(null);
466
+ React4__default.default.useEffect(() => {
467
+ if (!visible) return;
468
+ const handle = requestAnimationFrame(() => {
469
+ setIndex(initialIndex);
470
+ setPagingEnabled(true);
471
+ scrollRef.current?.scrollTo({ x: initialIndex * width, animated: false });
472
+ });
473
+ return () => cancelAnimationFrame(handle);
474
+ }, [visible, initialIndex, width]);
475
+ const dragY = Animated2.useSharedValue(0);
476
+ const DISMISS_THRESHOLD = height * 0.18;
477
+ const closeViewer = React4.useCallback(() => onClose(), [onClose]);
478
+ const swipeDown = reactNativeGestureHandler.Gesture.Pan().enabled(pagingEnabled).activeOffsetY(12).failOffsetX([-16, 16]).onUpdate((e) => {
479
+ dragY.value = Math.max(0, e.translationY);
480
+ }).onEnd((e) => {
481
+ if (e.translationY > DISMISS_THRESHOLD || e.velocityY > 800) {
482
+ Animated2.runOnJS(closeViewer)();
483
+ } else {
484
+ dragY.value = Animated2.withTiming(0);
485
+ }
486
+ });
487
+ React4__default.default.useEffect(() => {
488
+ if (visible) dragY.value = 0;
489
+ }, [visible, dragY]);
490
+ const dismissStyle = Animated2.useAnimatedStyle(() => ({
491
+ transform: [{ translateY: dragY.value }]
492
+ }));
493
+ const backdropStyle = Animated2.useAnimatedStyle(() => ({
494
+ opacity: 1 - Math.min(dragY.value / (height * 0.5), 0.85)
495
+ }));
496
+ const onMomentumEnd = (e) => {
497
+ const page = Math.round(e.nativeEvent.contentOffset.x / width);
498
+ setIndex(page);
499
+ };
500
+ const goTo = (page) => {
501
+ scrollRef.current?.scrollTo({ x: page * width, animated: true });
502
+ setIndex(page);
503
+ };
504
+ return /* @__PURE__ */ React4__default.default.createElement(reactNative.Modal, { visible, transparent: false, animationType: "fade", onRequestClose: onClose, statusBarTranslucent: true }, /* @__PURE__ */ React4__default.default.createElement(reactNativeGestureHandler.GestureHandlerRootView, { style: styles2.root }, /* @__PURE__ */ React4__default.default.createElement(Animated2__default.default.View, { style: [styles2.backdrop, backdropStyle], pointerEvents: "none" }), /* @__PURE__ */ React4__default.default.createElement(Animated2__default.default.View, { style: [styles2.container, dismissStyle] }, /* @__PURE__ */ React4__default.default.createElement(reactNativeGestureHandler.GestureDetector, { gesture: swipeDown }, /* @__PURE__ */ React4__default.default.createElement(Animated2__default.default.View, { style: styles2.root }, /* @__PURE__ */ React4__default.default.createElement(
505
+ reactNative.ScrollView,
506
+ {
507
+ ref: scrollRef,
508
+ horizontal: true,
509
+ pagingEnabled: true,
510
+ scrollEnabled: pagingEnabled,
511
+ showsHorizontalScrollIndicator: false,
512
+ onMomentumScrollEnd: onMomentumEnd,
513
+ bounces: false
514
+ },
515
+ images.map((source, i) => /* @__PURE__ */ React4__default.default.createElement(
516
+ ZoomableImage,
517
+ {
518
+ key: i,
519
+ source,
520
+ width,
521
+ height,
522
+ onZoomChange: (zoomed) => setPagingEnabled(!zoomed)
523
+ }
524
+ ))
525
+ ))), /* @__PURE__ */ React4__default.default.createElement(
526
+ reactNative.TouchableOpacity,
527
+ {
528
+ style: [styles2.closeButton, { top: insets.top + vs(8) }],
529
+ onPress: onClose,
530
+ activeOpacity: 0.7,
531
+ touchSoundDisabled: true,
532
+ accessibilityRole: "button",
533
+ accessibilityLabel: "Close",
534
+ hitSlop: { top: 12, bottom: 12, left: 12, right: 12 }
535
+ },
536
+ renderIcon("x", 26, "#fff")
537
+ ), images.length > 1 ? /* @__PURE__ */ React4__default.default.createElement(reactNative.View, { style: [styles2.dots, { bottom: insets.bottom + vs(16) }], pointerEvents: "box-none" }, /* @__PURE__ */ React4__default.default.createElement(
538
+ PagerDots,
539
+ {
540
+ count: images.length,
541
+ activeIndex: index,
542
+ onDotPress: goTo,
543
+ activeColor: "#fff",
544
+ inactiveColor: "rgba(255,255,255,0.4)"
545
+ }
546
+ )) : null)));
547
+ }
548
+ var styles2 = reactNative.StyleSheet.create({
549
+ root: {
550
+ flex: 1
551
+ },
552
+ container: {
553
+ flex: 1
554
+ },
555
+ backdrop: {
556
+ ...reactNative.StyleSheet.absoluteFillObject,
557
+ backgroundColor: "#000"
558
+ },
559
+ imageWrap: {
560
+ alignItems: "center",
561
+ justifyContent: "center",
562
+ overflow: "hidden"
563
+ },
564
+ closeButton: {
565
+ position: "absolute",
566
+ right: s(12),
567
+ width: s(40),
568
+ height: s(40),
569
+ borderRadius: s(20),
570
+ backgroundColor: "rgba(0,0,0,0.4)",
571
+ alignItems: "center",
572
+ justifyContent: "center"
573
+ },
574
+ dots: {
575
+ position: "absolute",
576
+ left: 0,
577
+ right: 0,
578
+ alignItems: "center"
579
+ }
580
+ });
581
+
582
+ exports.ImageViewer = ImageViewer;
@@ -0,0 +1,8 @@
1
+ export { ImageViewer } from './chunk-Z4BVUWW6.mjs';
2
+ import './chunk-4K625MVM.mjs';
3
+ import './chunk-EJ7ZPXOH.mjs';
4
+ import './chunk-DVK4G2GT.mjs';
5
+ import './chunk-T7XZ7H7Y.mjs';
6
+ import './chunk-SOYNZDVY.mjs';
7
+ import './chunk-2CE3TQVY.mjs';
8
+ import './chunk-Y6FXYEAI.mjs';
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { TextInputProps, TextStyle, ViewStyle } from 'react-native';
3
+
4
+ interface InputProps extends TextInputProps {
5
+ label?: string;
6
+ error?: string;
7
+ hint?: string;
8
+ disabled?: boolean;
9
+ prefix?: React.ReactNode;
10
+ suffix?: React.ReactNode;
11
+ prefixStyle?: TextStyle;
12
+ suffixStyle?: TextStyle;
13
+ prefixIcon?: string;
14
+ suffixIcon?: string;
15
+ prefixIconColor?: string;
16
+ suffixIconColor?: string;
17
+ type?: 'text' | 'password';
18
+ containerStyle?: ViewStyle;
19
+ inputWrapperStyle?: ViewStyle;
20
+ }
21
+ declare function Input({ label, error, hint, disabled, prefix, suffix, prefixStyle, suffixStyle, prefixIcon, suffixIcon, prefixIconColor, suffixIconColor, type, containerStyle, inputWrapperStyle, style, onFocus, onBlur, secureTextEntry, editable, accessibilityLabel, ...props }: InputProps): React.JSX.Element;
22
+
23
+ export { Input, type InputProps };
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { TextInputProps, TextStyle, ViewStyle } from 'react-native';
3
+
4
+ interface InputProps extends TextInputProps {
5
+ label?: string;
6
+ error?: string;
7
+ hint?: string;
8
+ disabled?: boolean;
9
+ prefix?: React.ReactNode;
10
+ suffix?: React.ReactNode;
11
+ prefixStyle?: TextStyle;
12
+ suffixStyle?: TextStyle;
13
+ prefixIcon?: string;
14
+ suffixIcon?: string;
15
+ prefixIconColor?: string;
16
+ suffixIconColor?: string;
17
+ type?: 'text' | 'password';
18
+ containerStyle?: ViewStyle;
19
+ inputWrapperStyle?: ViewStyle;
20
+ }
21
+ declare function Input({ label, error, hint, disabled, prefix, suffix, prefixStyle, suffixStyle, prefixIcon, suffixIcon, prefixIconColor, suffixIconColor, type, containerStyle, inputWrapperStyle, style, onFocus, onBlur, secureTextEntry, editable, accessibilityLabel, ...props }: InputProps): React.JSX.Element;
22
+
23
+ export { Input, type InputProps };