@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,42 @@
1
+ import { renderIcon } from './chunk-T7XZ7H7Y.mjs';
2
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
3
+ import { mvs, ms, s } from './chunk-2CE3TQVY.mjs';
4
+ import React from 'react';
5
+ import { StyleSheet, View, Text } from 'react-native';
6
+
7
+ function LabelValueBase({ label, value, iconName, iconColor, style }) {
8
+ const { colors } = useTheme();
9
+ const resolvedIcon = iconName ? renderIcon(iconName, ms(14), iconColor ?? colors.foregroundMuted) : null;
10
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.container, style] }, /* @__PURE__ */ React.createElement(View, { style: styles.labelSide }, resolvedIcon ? /* @__PURE__ */ React.createElement(View, { style: styles.icon }, resolvedIcon) : null, /* @__PURE__ */ React.createElement(Text, { style: [styles.label, { color: colors.foregroundMuted }], allowFontScaling: true }, label)), typeof value === "string" ? /* @__PURE__ */ React.createElement(Text, { style: [styles.value, { color: colors.foreground }], allowFontScaling: true }, value) : value);
11
+ }
12
+ var LabelValue = React.memo(LabelValueBase);
13
+ var styles = StyleSheet.create({
14
+ container: {
15
+ flexDirection: "row",
16
+ justifyContent: "space-between",
17
+ alignItems: "center",
18
+ gap: s(12)
19
+ },
20
+ labelSide: {
21
+ flexDirection: "row",
22
+ alignItems: "center",
23
+ gap: s(4)
24
+ },
25
+ icon: {
26
+ alignItems: "center",
27
+ justifyContent: "center"
28
+ },
29
+ label: {
30
+ fontFamily: "Sohne-Regular",
31
+ fontSize: ms(13),
32
+ lineHeight: mvs(18)
33
+ },
34
+ value: {
35
+ fontFamily: "Sohne-Medium",
36
+ fontSize: ms(14),
37
+ lineHeight: mvs(20),
38
+ textAlign: "right"
39
+ }
40
+ });
41
+
42
+ export { LabelValue };
@@ -0,0 +1,120 @@
1
+ import { TIMINGS } from './chunk-DVK4G2GT.mjs';
2
+ import { RADIUS } from './chunk-QY3X2UYR.mjs';
3
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
4
+ import { vs, s } from './chunk-2CE3TQVY.mjs';
5
+ import React, { useState, useEffect } from 'react';
6
+ import { StyleSheet, View } from 'react-native';
7
+ import Animated, { useSharedValue, withRepeat, withTiming, Easing, useAnimatedStyle } from 'react-native-reanimated';
8
+ import { LinearGradient } from 'expo-linear-gradient';
9
+
10
+ function Skeleton({
11
+ width = "100%",
12
+ height = 16,
13
+ borderRadius = 6,
14
+ preset = "base",
15
+ diameter = 40,
16
+ style
17
+ }) {
18
+ const { colors, colorScheme } = useTheme();
19
+ const shimmer = useSharedValue(0);
20
+ const [containerWidth, setContainerWidth] = useState(300);
21
+ const shimmerHighlight = colorScheme === "dark" ? "rgba(255,255,255,0.08)" : "rgba(255,255,255,0.7)";
22
+ useEffect(() => {
23
+ shimmer.value = withRepeat(
24
+ withTiming(1, { duration: TIMINGS.shimmer.duration, easing: Easing.linear }),
25
+ -1,
26
+ false
27
+ );
28
+ }, [shimmer]);
29
+ const shimmerStyle = useAnimatedStyle(() => ({
30
+ transform: [{ translateX: -containerWidth + shimmer.value * (containerWidth * 2) }]
31
+ }));
32
+ const resolvedWidth = preset === "circle" ? s(diameter) : preset === "text" ? "60%" : width;
33
+ const resolvedHeight = preset === "circle" ? s(diameter) : preset === "text" ? 14 : height;
34
+ const resolvedRadius = preset === "circle" ? 9999 : preset === "text" ? 4 : borderRadius;
35
+ return /* @__PURE__ */ React.createElement(
36
+ View,
37
+ {
38
+ style: [
39
+ styles.base,
40
+ { width: resolvedWidth, height: resolvedHeight, borderRadius: resolvedRadius, backgroundColor: colors.surface },
41
+ style
42
+ ],
43
+ onLayout: (e) => setContainerWidth(e.nativeEvent.layout.width),
44
+ accessibilityRole: "progressbar",
45
+ accessibilityLabel: "Loading",
46
+ accessibilityState: { busy: true }
47
+ },
48
+ /* @__PURE__ */ React.createElement(Animated.View, { style: [StyleSheet.absoluteFill, shimmerStyle] }, /* @__PURE__ */ React.createElement(
49
+ LinearGradient,
50
+ {
51
+ colors: ["transparent", shimmerHighlight, "transparent"],
52
+ start: { x: 0, y: 0 },
53
+ end: { x: 1, y: 0 },
54
+ style: StyleSheet.absoluteFill
55
+ }
56
+ ))
57
+ );
58
+ }
59
+ var aspectRatioMap = {
60
+ "1:1": 1,
61
+ "4:3": 3 / 4,
62
+ "16:9": 9 / 16,
63
+ "4:5": 5 / 4,
64
+ "3:2": 2 / 3
65
+ };
66
+ function MediaCardSkeleton({ aspectRatio = "4:3", showSubtitle = true, style }) {
67
+ const ratio = aspectRatioMap[aspectRatio];
68
+ return /* @__PURE__ */ React.createElement(View, { style }, /* @__PURE__ */ React.createElement(View, { style: { paddingTop: `${ratio * 100}%` } }, /* @__PURE__ */ React.createElement(View, { style: StyleSheet.absoluteFill }, /* @__PURE__ */ React.createElement(Skeleton, { width: "100%", height: void 0, style: skeletonStyles.fill, borderRadius: RADIUS.md }))), /* @__PURE__ */ React.createElement(View, { style: skeletonStyles.meta }, /* @__PURE__ */ React.createElement(Skeleton, { width: "70%", height: vs(14), borderRadius: RADIUS.xs }), showSubtitle ? /* @__PURE__ */ React.createElement(Skeleton, { width: "45%", height: vs(12), borderRadius: RADIUS.xs }) : null));
69
+ }
70
+ function ListItemSkeleton({ showAvatar = true, showSubtitle = true, style }) {
71
+ return /* @__PURE__ */ React.createElement(View, { style: [skeletonStyles.row, style] }, showAvatar ? /* @__PURE__ */ React.createElement(Skeleton, { preset: "circle", diameter: 40 }) : null, /* @__PURE__ */ React.createElement(View, { style: skeletonStyles.rowText }, /* @__PURE__ */ React.createElement(Skeleton, { width: "60%", height: vs(14), borderRadius: RADIUS.xs }), showSubtitle ? /* @__PURE__ */ React.createElement(Skeleton, { width: "40%", height: vs(12), borderRadius: RADIUS.xs }) : null));
72
+ }
73
+ function ListSkeleton({
74
+ count = 6,
75
+ columns = 1,
76
+ gap = 12,
77
+ aspectRatio = "4:3",
78
+ showAvatar = true,
79
+ style
80
+ }) {
81
+ if (columns <= 1) {
82
+ return /* @__PURE__ */ React.createElement(View, { style: [{ gap: vs(gap) }, style] }, Array.from({ length: count }).map((_, i) => /* @__PURE__ */ React.createElement(ListItemSkeleton, { key: i, showAvatar })));
83
+ }
84
+ const widthPct = `${100 / columns}%`;
85
+ return /* @__PURE__ */ React.createElement(View, { style: [skeletonStyles.grid, { marginHorizontal: -s(gap) / 2 }, style] }, Array.from({ length: count }).map((_, i) => /* @__PURE__ */ React.createElement(View, { key: i, style: { width: widthPct, paddingHorizontal: s(gap) / 2, marginBottom: vs(gap) } }, /* @__PURE__ */ React.createElement(MediaCardSkeleton, { aspectRatio }))));
86
+ }
87
+ Skeleton.MediaCard = MediaCardSkeleton;
88
+ Skeleton.ListItem = ListItemSkeleton;
89
+ Skeleton.List = ListSkeleton;
90
+ var styles = StyleSheet.create({
91
+ base: {
92
+ overflow: "hidden"
93
+ }
94
+ });
95
+ var skeletonStyles = StyleSheet.create({
96
+ grid: {
97
+ flexDirection: "row",
98
+ flexWrap: "wrap"
99
+ },
100
+ fill: {
101
+ width: "100%",
102
+ height: "100%"
103
+ },
104
+ meta: {
105
+ paddingTop: vs(8),
106
+ gap: vs(6)
107
+ },
108
+ row: {
109
+ flexDirection: "row",
110
+ alignItems: "center",
111
+ gap: s(12),
112
+ paddingVertical: vs(8)
113
+ },
114
+ rowText: {
115
+ flex: 1,
116
+ gap: vs(6)
117
+ }
118
+ });
119
+
120
+ export { Skeleton };
@@ -0,0 +1,94 @@
1
+ import { PressableButton } from './chunk-3DKJ2GIC.mjs';
2
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
3
+ import { COLOR_TRANSITION, OPACITY_TRANSITION } from './chunk-DVK4G2GT.mjs';
4
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
5
+ import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
6
+ import React from 'react';
7
+ import { StyleSheet, View, Text } from 'react-native';
8
+ import { EaseView } from 'react-native-ease';
9
+
10
+ function Checkbox({
11
+ checked = false,
12
+ onCheckedChange,
13
+ label,
14
+ disabled,
15
+ style,
16
+ accessibilityLabel
17
+ }) {
18
+ const { colors } = useTheme();
19
+ const handlePress = () => {
20
+ selectionAsync();
21
+ onCheckedChange?.(!checked);
22
+ };
23
+ return (
24
+ // AUDIT FIX: opacity was applied only to the box, leaving the label at full
25
+ // opacity when disabled — a contradictory visual signal. Now the entire row
26
+ // dims uniformly so label and control communicate the same disabled state.
27
+ /* @__PURE__ */ React.createElement(
28
+ PressableButton,
29
+ {
30
+ style: [styles.row, disabled && styles.rowDisabled, style],
31
+ onPress: handlePress,
32
+ enabled: !disabled,
33
+ rippleColor: "transparent",
34
+ touchSoundDisabled: true,
35
+ accessibilityRole: "checkbox",
36
+ accessibilityLabel: accessibilityLabel ?? label,
37
+ accessibilityState: { checked, disabled: !!disabled }
38
+ },
39
+ /* @__PURE__ */ React.createElement(
40
+ EaseView,
41
+ {
42
+ style: styles.box,
43
+ animate: {
44
+ borderColor: checked ? colors.primary : colors.border,
45
+ backgroundColor: checked ? colors.primary : "transparent"
46
+ },
47
+ transition: COLOR_TRANSITION
48
+ },
49
+ /* @__PURE__ */ React.createElement(EaseView, { animate: { opacity: checked ? 1 : 0 }, transition: OPACITY_TRANSITION }, /* @__PURE__ */ React.createElement(View, { style: [styles.checkmark, { borderColor: colors.primaryForeground }] }))
50
+ ),
51
+ label ? /* @__PURE__ */ React.createElement(
52
+ Text,
53
+ {
54
+ style: [styles.label, { color: colors.foreground }],
55
+ allowFontScaling: true
56
+ },
57
+ label
58
+ ) : null
59
+ )
60
+ );
61
+ }
62
+ var styles = StyleSheet.create({
63
+ row: {
64
+ flexDirection: "row",
65
+ alignItems: "center",
66
+ gap: s(12)
67
+ },
68
+ // AUDIT FIX: was inline opacity on the box only
69
+ rowDisabled: {
70
+ opacity: 0.45
71
+ },
72
+ box: {
73
+ width: s(24),
74
+ height: s(24),
75
+ borderRadius: ms(4),
76
+ borderWidth: 1.5,
77
+ alignItems: "center",
78
+ justifyContent: "center"
79
+ },
80
+ checkmark: {
81
+ width: s(12),
82
+ height: vs(7),
83
+ borderLeftWidth: 2,
84
+ borderBottomWidth: 2,
85
+ transform: [{ rotate: "-45deg" }, { translateY: -1 }]
86
+ },
87
+ label: {
88
+ fontFamily: "Sohne-Regular",
89
+ fontSize: ms(14),
90
+ lineHeight: mvs(20)
91
+ }
92
+ });
93
+
94
+ export { Checkbox };
@@ -0,0 +1,115 @@
1
+ import { IconButton } from './chunk-3U4SSNWP.mjs';
2
+ import { BREAKPOINTS } from './chunk-QY3X2UYR.mjs';
3
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
4
+ import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
5
+ import React from 'react';
6
+ import { StyleSheet, useWindowDimensions, View, Text } from 'react-native';
7
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
8
+
9
+ function AppHeader({
10
+ title,
11
+ subtitle,
12
+ onBack,
13
+ backIconName = "chevron-left",
14
+ left,
15
+ right,
16
+ titleAlign = "auto",
17
+ bordered = true,
18
+ withSafeArea = true,
19
+ backgroundColor,
20
+ style
21
+ }) {
22
+ const { colors } = useTheme();
23
+ const insets = useSafeAreaInsets();
24
+ const { width } = useWindowDimensions();
25
+ const isWide = width >= BREAKPOINTS.wide;
26
+ const centered = titleAlign === "center" || titleAlign === "auto" && isWide;
27
+ const leftNode = left ?? (onBack ? /* @__PURE__ */ React.createElement(
28
+ IconButton,
29
+ {
30
+ iconName: backIconName,
31
+ variant: "text",
32
+ size: "md",
33
+ onPress: onBack,
34
+ accessibilityLabel: "Go back"
35
+ }
36
+ ) : null);
37
+ const titleBlock = /* @__PURE__ */ React.createElement(View, { style: [styles.titleBlock, centered && styles.titleBlockCentered], pointerEvents: "none" }, title ? /* @__PURE__ */ React.createElement(
38
+ Text,
39
+ {
40
+ style: [styles.title, { color: colors.foreground }, centered && styles.textCentered],
41
+ numberOfLines: 1,
42
+ allowFontScaling: true,
43
+ accessibilityRole: "header"
44
+ },
45
+ title
46
+ ) : null, subtitle ? /* @__PURE__ */ React.createElement(
47
+ Text,
48
+ {
49
+ style: [styles.subtitle, { color: colors.foregroundMuted }, centered && styles.textCentered],
50
+ numberOfLines: 1,
51
+ allowFontScaling: true
52
+ },
53
+ subtitle
54
+ ) : null);
55
+ return /* @__PURE__ */ React.createElement(
56
+ View,
57
+ {
58
+ style: [
59
+ styles.container,
60
+ {
61
+ backgroundColor: backgroundColor ?? colors.background,
62
+ paddingTop: withSafeArea ? insets.top : 0,
63
+ borderBottomWidth: bordered ? StyleSheet.hairlineWidth : 0,
64
+ borderBottomColor: colors.border
65
+ },
66
+ style
67
+ ]
68
+ },
69
+ /* @__PURE__ */ React.createElement(View, { style: styles.bar }, centered ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: StyleSheet.absoluteFill }, titleBlock), /* @__PURE__ */ React.createElement(View, { style: styles.side }, leftNode), /* @__PURE__ */ React.createElement(View, { style: [styles.side, styles.sideRight] }, right)) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles.side }, leftNode), titleBlock, /* @__PURE__ */ React.createElement(View, { style: [styles.side, styles.sideRight] }, right)))
70
+ );
71
+ }
72
+ var styles = StyleSheet.create({
73
+ container: {
74
+ width: "100%"
75
+ },
76
+ bar: {
77
+ minHeight: vs(48),
78
+ flexDirection: "row",
79
+ alignItems: "center",
80
+ paddingHorizontal: s(8)
81
+ },
82
+ side: {
83
+ minWidth: s(44),
84
+ flexDirection: "row",
85
+ alignItems: "center",
86
+ justifyContent: "flex-start"
87
+ },
88
+ sideRight: {
89
+ justifyContent: "flex-end"
90
+ },
91
+ titleBlock: {
92
+ flex: 1,
93
+ justifyContent: "center",
94
+ paddingHorizontal: s(8),
95
+ gap: vs(1)
96
+ },
97
+ titleBlockCentered: {
98
+ alignItems: "center"
99
+ },
100
+ title: {
101
+ fontFamily: "Sohne-SemiBold",
102
+ fontSize: ms(18),
103
+ lineHeight: mvs(24)
104
+ },
105
+ subtitle: {
106
+ fontFamily: "Sohne-Regular",
107
+ fontSize: ms(13),
108
+ lineHeight: mvs(16)
109
+ },
110
+ textCentered: {
111
+ textAlign: "center"
112
+ }
113
+ });
114
+
115
+ export { AppHeader };
@@ -0,0 +1,159 @@
1
+ import { PressableRow } from './chunk-3DKJ2GIC.mjs';
2
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
3
+ import { RADIUS } from './chunk-QY3X2UYR.mjs';
4
+ import { renderIcon } from './chunk-T7XZ7H7Y.mjs';
5
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
6
+ import { ms, s, mvs, vs } from './chunk-2CE3TQVY.mjs';
7
+ import React from 'react';
8
+ import { StyleSheet, View, Text } from 'react-native';
9
+ import { Entypo } from '@expo/vector-icons';
10
+
11
+ function ListItemBase({
12
+ leftRender,
13
+ rightRender,
14
+ trailing,
15
+ icon,
16
+ leftIcon,
17
+ rightIcon,
18
+ leftIconColor,
19
+ rightIconColor,
20
+ title,
21
+ subtitle,
22
+ caption,
23
+ variant = "plain",
24
+ showChevron = false,
25
+ showSeparator = false,
26
+ onPress,
27
+ disabled,
28
+ style,
29
+ titleStyle,
30
+ subtitleStyle,
31
+ captionStyle,
32
+ accessibilityLabel
33
+ }) {
34
+ const { colors } = useTheme();
35
+ const handlePress = () => {
36
+ selectionAsync();
37
+ onPress?.();
38
+ };
39
+ const effectiveLeft = leftIcon ? renderIcon(leftIcon, 24, leftIconColor ?? colors.foreground) : leftRender ?? icon;
40
+ const effectiveRight = rightIcon ? renderIcon(rightIcon, 24, rightIconColor ?? colors.foregroundMuted) : rightRender ?? trailing;
41
+ const cardStyle = variant === "card" ? {
42
+ backgroundColor: colors.card,
43
+ borderRadius: RADIUS.md,
44
+ borderWidth: 1,
45
+ borderColor: colors.border,
46
+ shadowColor: "#000",
47
+ shadowOffset: { width: 0, height: 2 },
48
+ shadowOpacity: 0.06,
49
+ shadowRadius: 6,
50
+ elevation: 2
51
+ } : {};
52
+ const a11yLabel = accessibilityLabel ?? [title, subtitle, caption].filter(Boolean).join(". ");
53
+ const content = /* @__PURE__ */ React.createElement(React.Fragment, null, effectiveLeft ? /* @__PURE__ */ React.createElement(View, { style: styles.leftContainer }, effectiveLeft) : null, /* @__PURE__ */ React.createElement(View, { style: styles.content }, /* @__PURE__ */ React.createElement(
54
+ Text,
55
+ {
56
+ style: [styles.title, { color: colors.foreground }, titleStyle],
57
+ numberOfLines: 2,
58
+ allowFontScaling: true
59
+ },
60
+ title
61
+ ), subtitle ? /* @__PURE__ */ React.createElement(
62
+ Text,
63
+ {
64
+ style: [styles.subtitle, { color: colors.foregroundMuted }, subtitleStyle],
65
+ numberOfLines: 2,
66
+ allowFontScaling: true
67
+ },
68
+ subtitle
69
+ ) : null, caption ? /* @__PURE__ */ React.createElement(
70
+ Text,
71
+ {
72
+ style: [styles.caption, { color: colors.foregroundMuted }, captionStyle],
73
+ numberOfLines: 1,
74
+ allowFontScaling: true
75
+ },
76
+ caption
77
+ ) : null), effectiveRight !== void 0 ? /* @__PURE__ */ React.createElement(View, { style: styles.rightContainer }, typeof effectiveRight === "string" ? /* @__PURE__ */ React.createElement(
78
+ Text,
79
+ {
80
+ style: [styles.rightText, { color: colors.foregroundMuted }],
81
+ allowFontScaling: true
82
+ },
83
+ effectiveRight
84
+ ) : effectiveRight) : showChevron ? /* @__PURE__ */ React.createElement(Entypo, { name: "chevron-with-circle-right", size: 20, color: colors.foregroundMuted }) : null);
85
+ if (onPress) {
86
+ return /* @__PURE__ */ React.createElement(View, { style: disabled && styles.disabled }, /* @__PURE__ */ React.createElement(
87
+ PressableRow,
88
+ {
89
+ style: [styles.container, cardStyle, style],
90
+ onPress: handlePress,
91
+ enabled: !disabled,
92
+ rippleColor: "transparent",
93
+ touchSoundDisabled: true,
94
+ activateOnHover: true,
95
+ accessibilityRole: "button",
96
+ accessibilityLabel: a11yLabel,
97
+ accessibilityState: { disabled: !!disabled }
98
+ },
99
+ content
100
+ ), showSeparator ? /* @__PURE__ */ React.createElement(View, { style: [styles.separator, { backgroundColor: colors.separator }] }) : null);
101
+ }
102
+ return /* @__PURE__ */ React.createElement(View, { style: [disabled && styles.disabled] }, /* @__PURE__ */ React.createElement(View, { style: [styles.container, cardStyle, style] }, content), showSeparator ? /* @__PURE__ */ React.createElement(View, { style: [styles.separator, { backgroundColor: colors.separator }] }) : null);
103
+ }
104
+ var ListItem = React.memo(ListItemBase);
105
+ var styles = StyleSheet.create({
106
+ container: {
107
+ flexDirection: "row",
108
+ alignItems: "center",
109
+ paddingHorizontal: s(16),
110
+ paddingVertical: vs(10),
111
+ gap: s(12)
112
+ },
113
+ leftContainer: {
114
+ width: s(44),
115
+ height: s(44),
116
+ alignItems: "center",
117
+ justifyContent: "center",
118
+ flexShrink: 0
119
+ },
120
+ content: {
121
+ flex: 1,
122
+ gap: vs(4)
123
+ },
124
+ title: {
125
+ fontFamily: "Sohne-Medium",
126
+ fontSize: ms(15),
127
+ lineHeight: mvs(22)
128
+ },
129
+ subtitle: {
130
+ fontFamily: "Sohne-Regular",
131
+ fontSize: ms(13),
132
+ lineHeight: mvs(18)
133
+ },
134
+ caption: {
135
+ fontFamily: "Sohne-Regular",
136
+ fontSize: ms(12),
137
+ lineHeight: mvs(16),
138
+ opacity: 0.7
139
+ },
140
+ rightContainer: {
141
+ alignItems: "flex-end",
142
+ justifyContent: "center",
143
+ flexShrink: 0,
144
+ maxWidth: s(160)
145
+ },
146
+ rightText: {
147
+ fontFamily: "Sohne-Regular",
148
+ fontSize: ms(14)
149
+ },
150
+ separator: {
151
+ height: StyleSheet.hairlineWidth,
152
+ marginRight: 0
153
+ },
154
+ disabled: {
155
+ opacity: 0.45
156
+ }
157
+ });
158
+
159
+ export { ListItem };
@@ -0,0 +1,60 @@
1
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
2
+ import { ms } from './chunk-2CE3TQVY.mjs';
3
+ import React from 'react';
4
+ import { StyleSheet, View, Text } from 'react-native';
5
+
6
+ var variantFontSize = {
7
+ hero: ms(48),
8
+ large: ms(32),
9
+ medium: ms(18),
10
+ small: ms(14)
11
+ };
12
+ var variantLetterSpacing = {
13
+ hero: -2,
14
+ large: -1,
15
+ medium: -0.5,
16
+ small: 0
17
+ };
18
+ function formatValue(value, prefix, showDecimals) {
19
+ const num = typeof value === "string" ? parseFloat(value.replace(/[^0-9.-]/g, "")) : value;
20
+ if (isNaN(num)) return `${prefix}0`;
21
+ const abs = Math.abs(num);
22
+ const sign = num < 0 ? "-" : "";
23
+ const intPart = Math.floor(abs).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
24
+ if (showDecimals) {
25
+ const decStr = (abs % 1).toFixed(2).slice(2);
26
+ return `${sign}${prefix}${intPart},${decStr}`;
27
+ }
28
+ return `${sign}${prefix}${intPart}`;
29
+ }
30
+ function CurrencyDisplayBase({ value, prefix = "$", showDecimals = false, textColor, variant, autoScale, maxFontSize, style }) {
31
+ const { colors } = useTheme();
32
+ const formatted = formatValue(value, prefix, showDecimals);
33
+ const baseFontSize = variant ? variantFontSize[variant] : ms(56);
34
+ const fontSize = maxFontSize ?? baseFontSize;
35
+ const letterSpacing = variant ? variantLetterSpacing[variant] : -2;
36
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.container, style] }, /* @__PURE__ */ React.createElement(
37
+ Text,
38
+ {
39
+ style: [styles.amount, { color: textColor ?? colors.foreground, fontSize, letterSpacing }],
40
+ allowFontScaling: true,
41
+ numberOfLines: autoScale ? 1 : void 0,
42
+ adjustsFontSizeToFit: autoScale,
43
+ minimumFontScale: autoScale ? 0.5 : void 0
44
+ },
45
+ formatted
46
+ ));
47
+ }
48
+ var CurrencyDisplay = React.memo(CurrencyDisplayBase);
49
+ var styles = StyleSheet.create({
50
+ container: {
51
+ alignSelf: "flex-start"
52
+ },
53
+ amount: {
54
+ fontFamily: "Sohne-Bold",
55
+ includeFontPadding: false,
56
+ textAlignVertical: "top"
57
+ }
58
+ });
59
+
60
+ export { CurrencyDisplay };
@@ -0,0 +1,59 @@
1
+ import { Easing } from 'react-native-reanimated';
2
+
3
+ // src/utils/animations.ts
4
+ var SPRINGS = {
5
+ /** Tight, premium press feel — Buttons, Toggle, Tabs triggers. */
6
+ pressIn: { stiffness: 600, damping: 35, mass: 0.8 },
7
+ pressOut: { stiffness: 280, damping: 22, mass: 0.8 },
8
+ /** Slightly softer for larger surfaces — Card, ListItem, MenuItem. */
9
+ surfacePressIn: { stiffness: 380, damping: 30, mass: 0.95 },
10
+ surfacePressOut: { stiffness: 220, damping: 20, mass: 0.95 },
11
+ /** Settled transitions for moving indicators — Tabs pill, Switch thumb. */
12
+ glide: { stiffness: 380, damping: 38, mass: 1 },
13
+ /** Elastic indicator — Switch thumb, RadioGroup dot. */
14
+ elastic: { stiffness: 320, damping: 22, mass: 0.7 }
15
+ };
16
+ var TIMINGS = {
17
+ /** Color/opacity transitions on toggles, checkboxes, switches. */
18
+ state: { duration: 160 },
19
+ /** Focus ring on inputs. */
20
+ focusIn: { duration: 140 },
21
+ focusOut: { duration: 100 },
22
+ /** Accordion / collapsible content. */
23
+ expand: { duration: 240 },
24
+ collapse: { duration: 200 },
25
+ /** Skeleton shimmer cycle (full pass). */
26
+ shimmer: { duration: 1400 }
27
+ };
28
+ var EASINGS = {
29
+ /** Material-style ease-out — natural deceleration for state changes. */
30
+ standard: Easing.bezier(0.2, 0, 0, 1),
31
+ /** Strong ease-out for expanding surfaces (Accordion open). */
32
+ expand: Easing.bezier(0.23, 1, 0.32, 1),
33
+ /** Quick ease-in for collapsing. */
34
+ collapse: Easing.in(Easing.ease)
35
+ };
36
+ var COLOR_TRANSITION = {
37
+ type: "timing",
38
+ duration: TIMINGS.state.duration,
39
+ easing: [0.2, 0, 0, 1]
40
+ };
41
+ var OPACITY_TRANSITION = {
42
+ type: "timing",
43
+ duration: TIMINGS.state.duration,
44
+ easing: [0.2, 0, 0, 1]
45
+ };
46
+ var SPRING_ELASTIC = {
47
+ type: "spring",
48
+ stiffness: 320,
49
+ damping: 22,
50
+ mass: 0.7
51
+ };
52
+ var PRESS_SCALE = {
53
+ button: 0.95,
54
+ card: 0.98,
55
+ row: 0.97,
56
+ chip: 0.94
57
+ };
58
+
59
+ export { COLOR_TRANSITION, EASINGS, OPACITY_TRANSITION, PRESS_SCALE, SPRINGS, SPRING_ELASTIC, TIMINGS };