@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,127 @@
1
+ import { useColorTransition } from './chunk-26BCI223.mjs';
2
+ import { TIMINGS } from './chunk-DVK4G2GT.mjs';
3
+ import { renderIcon } from './chunk-T7XZ7H7Y.mjs';
4
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
5
+ import { vs, ms, s } from './chunk-2CE3TQVY.mjs';
6
+ import React, { useState } from 'react';
7
+ import { Platform, StyleSheet, View, Text, TextInput } from 'react-native';
8
+ import Animated, { useAnimatedStyle, interpolate, interpolateColor } from 'react-native-reanimated';
9
+
10
+ var webInputResetStyle = Platform.OS === "web" ? { outlineStyle: "none", outlineWidth: 0, outlineColor: "transparent", boxShadow: "none" } : {};
11
+ function Textarea({
12
+ label,
13
+ error,
14
+ hint,
15
+ rows = 4,
16
+ prefixIcon,
17
+ prefixIconNode,
18
+ prefixIconColor,
19
+ containerStyle,
20
+ style,
21
+ onFocus,
22
+ onBlur,
23
+ accessibilityLabel,
24
+ ...props
25
+ }) {
26
+ const { colors } = useTheme();
27
+ const [focused, setFocused] = useState(false);
28
+ const focusProgress = useColorTransition(focused, {
29
+ duration: focused ? TIMINGS.focusIn.duration : TIMINGS.focusOut.duration
30
+ });
31
+ const resolvedPrefixIcon = prefixIcon ? renderIcon(prefixIcon, ms(16), prefixIconColor ?? colors.foregroundMuted) : prefixIconNode;
32
+ const borderAnimStyle = useAnimatedStyle(() => ({
33
+ borderColor: error ? colors.destructive : interpolateColor(focusProgress.value, [0, 1], [colors.border, colors.primary]),
34
+ borderWidth: error ? 2 : interpolate(focusProgress.value, [0, 1], [1, 2])
35
+ }));
36
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.container, containerStyle] }, label ? /* @__PURE__ */ React.createElement(Text, { style: [styles.label, { color: colors.foreground }], allowFontScaling: true }, label) : null, /* @__PURE__ */ React.createElement(
37
+ Animated.View,
38
+ {
39
+ style: [
40
+ styles.inputWrapper,
41
+ { backgroundColor: colors.background }
42
+ ]
43
+ },
44
+ /* @__PURE__ */ React.createElement(Animated.View, { style: [styles.borderOverlay, borderAnimStyle], pointerEvents: "none" }),
45
+ resolvedPrefixIcon ? /* @__PURE__ */ React.createElement(View, { style: styles.prefixIcon }, resolvedPrefixIcon) : null,
46
+ /* @__PURE__ */ React.createElement(
47
+ TextInput,
48
+ {
49
+ multiline: true,
50
+ numberOfLines: rows,
51
+ textAlignVertical: "top",
52
+ style: [
53
+ styles.input,
54
+ {
55
+ color: colors.foreground,
56
+ minHeight: rows * vs(30)
57
+ },
58
+ webInputResetStyle,
59
+ style
60
+ ],
61
+ onFocus: (e) => {
62
+ setFocused(true);
63
+ onFocus?.(e);
64
+ },
65
+ onBlur: (e) => {
66
+ setFocused(false);
67
+ onBlur?.(e);
68
+ },
69
+ placeholderTextColor: colors.foregroundMuted,
70
+ allowFontScaling: true,
71
+ accessibilityLabel: accessibilityLabel ?? label,
72
+ ...props
73
+ }
74
+ )
75
+ ), error ? /* @__PURE__ */ React.createElement(
76
+ Text,
77
+ {
78
+ style: [styles.helperText, { color: colors.destructive }],
79
+ allowFontScaling: true,
80
+ accessibilityLiveRegion: "polite"
81
+ },
82
+ error
83
+ ) : null, !error && hint ? /* @__PURE__ */ React.createElement(Text, { style: [styles.helperText, { color: colors.foregroundMuted }], allowFontScaling: true }, hint) : null);
84
+ }
85
+ var styles = StyleSheet.create({
86
+ container: {
87
+ gap: vs(4)
88
+ },
89
+ label: {
90
+ fontFamily: "Sohne-Medium",
91
+ fontSize: ms(13),
92
+ lineHeight: vs(18),
93
+ marginBottom: vs(2)
94
+ },
95
+ inputWrapper: {
96
+ // Border lives on borderOverlay (absolute); wrapper carries none so the
97
+ // focus weight change never reflows content.
98
+ borderRadius: 8,
99
+ paddingHorizontal: s(14),
100
+ paddingVertical: vs(11),
101
+ gap: s(8)
102
+ },
103
+ borderOverlay: {
104
+ ...StyleSheet.absoluteFillObject,
105
+ borderRadius: 8
106
+ },
107
+ prefixIcon: {
108
+ alignItems: "flex-start",
109
+ justifyContent: "flex-start",
110
+ paddingTop: vs(2)
111
+ },
112
+ input: {
113
+ fontFamily: "Sohne-Regular",
114
+ fontSize: ms(14),
115
+ lineHeight: vs(22),
116
+ padding: 0,
117
+ margin: 0
118
+ },
119
+ helperText: {
120
+ fontFamily: "Sohne-Regular",
121
+ fontSize: ms(12),
122
+ lineHeight: vs(16),
123
+ marginTop: vs(4)
124
+ }
125
+ });
126
+
127
+ export { Textarea };
@@ -0,0 +1,163 @@
1
+ import { __require } from './chunk-Y6FXYEAI.mjs';
2
+ import { Platform, NativeModules } from 'react-native';
3
+
4
+ var _haptics = null;
5
+ var _hapticsLoaded = false;
6
+ async function getHaptics() {
7
+ if (Platform.OS === "web") return null;
8
+ if (!_hapticsLoaded) {
9
+ _hapticsLoaded = true;
10
+ try {
11
+ _haptics = await import('expo-haptics');
12
+ } catch {
13
+ _haptics = null;
14
+ }
15
+ }
16
+ return _haptics;
17
+ }
18
+ var _pulsar = null;
19
+ var _pulsarChecked = false;
20
+ var _pulsarAvailable = false;
21
+ function isPulsarNativeRegistered() {
22
+ try {
23
+ const g = globalThis;
24
+ if (typeof g.__turboModuleProxy === "function") {
25
+ return g.__turboModuleProxy("RNPulsar") != null;
26
+ }
27
+ return NativeModules?.RNPulsar != null;
28
+ } catch {
29
+ return false;
30
+ }
31
+ }
32
+ function getPulsar() {
33
+ if (Platform.OS === "web") return null;
34
+ if (!_pulsarChecked) {
35
+ _pulsarChecked = true;
36
+ try {
37
+ if (isPulsarNativeRegistered()) {
38
+ _pulsar = __require("react-native-pulsar");
39
+ _pulsarAvailable = true;
40
+ }
41
+ } catch {
42
+ _pulsar = null;
43
+ _pulsarAvailable = false;
44
+ }
45
+ }
46
+ return _pulsarAvailable ? _pulsar : null;
47
+ }
48
+ function selectionAsync() {
49
+ if (Platform.OS === "web") return;
50
+ getHaptics().then((h) => {
51
+ if (h) {
52
+ h.selectionAsync();
53
+ } else {
54
+ getPulsar()?.Presets.System.selection();
55
+ }
56
+ });
57
+ }
58
+ function impactLight() {
59
+ if (Platform.OS === "web") return;
60
+ getHaptics().then((h) => {
61
+ if (h) {
62
+ h.impactAsync(h.ImpactFeedbackStyle.Light);
63
+ } else {
64
+ getPulsar()?.Presets.System.impactLight();
65
+ }
66
+ });
67
+ }
68
+ function impactMedium() {
69
+ if (Platform.OS === "web") return;
70
+ getHaptics().then((h) => {
71
+ if (h) {
72
+ h.impactAsync(h.ImpactFeedbackStyle.Medium);
73
+ } else {
74
+ getPulsar()?.Presets.System.impactMedium();
75
+ }
76
+ });
77
+ }
78
+ function impactHeavy() {
79
+ if (Platform.OS === "web") return;
80
+ getHaptics().then((h) => {
81
+ if (h) {
82
+ h.impactAsync(h.ImpactFeedbackStyle.Heavy);
83
+ } else {
84
+ getPulsar()?.Presets.System.impactHeavy();
85
+ }
86
+ });
87
+ }
88
+ function notificationSuccess() {
89
+ if (Platform.OS === "web") return;
90
+ getHaptics().then((h) => {
91
+ if (h) {
92
+ h.notificationAsync(h.NotificationFeedbackType.Success);
93
+ } else {
94
+ getPulsar()?.Presets.System.notificationSuccess();
95
+ }
96
+ });
97
+ }
98
+ function notificationError() {
99
+ if (Platform.OS === "web") return;
100
+ getHaptics().then((h) => {
101
+ if (h) {
102
+ h.notificationAsync(h.NotificationFeedbackType.Error);
103
+ } else {
104
+ getPulsar()?.Presets.System.notificationError();
105
+ }
106
+ });
107
+ }
108
+ function notificationWarning() {
109
+ if (Platform.OS === "web") return;
110
+ getHaptics().then((h) => {
111
+ if (h) {
112
+ h.notificationAsync(h.NotificationFeedbackType.Warning);
113
+ } else {
114
+ getPulsar()?.Presets.System.notificationWarning();
115
+ }
116
+ });
117
+ }
118
+ var richHaptics = {
119
+ /** Hammer strike — strong confirmation feedback. */
120
+ hammer: () => {
121
+ if (Platform.OS === "web") return;
122
+ const p = getPulsar();
123
+ if (p) p.Presets.hammer();
124
+ else impactHeavy();
125
+ },
126
+ /** Pulse — rhythmic feedback for toggles or state changes. */
127
+ pulse: () => {
128
+ if (Platform.OS === "web") return;
129
+ const p = getPulsar();
130
+ if (p) p.Presets.pulse();
131
+ else selectionAsync();
132
+ },
133
+ /** Buzz — continuous vibration for attention. */
134
+ buzz: () => {
135
+ if (Platform.OS === "web") return;
136
+ const p = getPulsar();
137
+ if (p) p.Presets.buzz();
138
+ else impactMedium();
139
+ },
140
+ /** Flick — crisp click feedback. */
141
+ flick: () => {
142
+ if (Platform.OS === "web") return;
143
+ const p = getPulsar();
144
+ if (p) p.Presets.flick();
145
+ else selectionAsync();
146
+ },
147
+ /** Soft — gentle, subtle feedback. */
148
+ soft: () => {
149
+ if (Platform.OS === "web") return;
150
+ const p = getPulsar();
151
+ if (p) p.Presets.System.impactSoft();
152
+ else impactLight();
153
+ },
154
+ /** Rigid — firm, solid feedback. */
155
+ rigid: () => {
156
+ if (Platform.OS === "web") return;
157
+ const p = getPulsar();
158
+ if (p) p.Presets.System.impactRigid();
159
+ else impactMedium();
160
+ }
161
+ };
162
+
163
+ export { impactHeavy, impactLight, impactMedium, notificationError, notificationSuccess, notificationWarning, richHaptics, selectionAsync };
@@ -0,0 +1,106 @@
1
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
2
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
3
+ import { s, mvs, ms } from './chunk-2CE3TQVY.mjs';
4
+ import React from 'react';
5
+ import { StyleSheet, View, TouchableOpacity, Text } from 'react-native';
6
+ import { Entypo } from '@expo/vector-icons';
7
+
8
+ var MONTH_NAMES = {
9
+ en: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
10
+ es: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"],
11
+ pt: ["janeiro", "fevereiro", "mar\xE7o", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"],
12
+ fr: ["janvier", "f\xE9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\xFBt", "septembre", "octobre", "novembre", "d\xE9cembre"]
13
+ };
14
+ function dateToMonthPickerValue(date) {
15
+ return { month: date.getMonth() + 1, year: date.getFullYear() };
16
+ }
17
+ function monthPickerValueToDate(value) {
18
+ return new Date(value.year, value.month - 1, 1);
19
+ }
20
+ var toIndex = (v) => v.year * 12 + (v.month - 1);
21
+ var fromIndex = (i) => ({ year: Math.floor(i / 12), month: i % 12 + 1 });
22
+ function MonthPicker({ value, onChange, minValue, maxValue, locale = "en", formatLabel, style }) {
23
+ const { colors } = useTheme();
24
+ const index = toIndex(value);
25
+ const minIndex = minValue ? toIndex(minValue) : -Infinity;
26
+ const maxIndex = maxValue ? toIndex(maxValue) : Infinity;
27
+ const prevDisabled = index - 1 < minIndex;
28
+ const nextDisabled = index + 1 > maxIndex;
29
+ const getLabel = () => {
30
+ if (formatLabel) return formatLabel(value);
31
+ const names = MONTH_NAMES[locale] ?? MONTH_NAMES.en;
32
+ return `${names[value.month - 1]} ${value.year}`;
33
+ };
34
+ const handlePrev = () => {
35
+ if (prevDisabled) return;
36
+ selectionAsync();
37
+ onChange(fromIndex(index - 1));
38
+ };
39
+ const handleNext = () => {
40
+ if (nextDisabled) return;
41
+ selectionAsync();
42
+ onChange(fromIndex(index + 1));
43
+ };
44
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.container, style], accessibilityRole: "adjustable", accessibilityLabel: getLabel() }, /* @__PURE__ */ React.createElement(
45
+ TouchableOpacity,
46
+ {
47
+ style: [styles.arrow, prevDisabled && styles.arrowDisabled],
48
+ onPress: handlePrev,
49
+ disabled: prevDisabled,
50
+ activeOpacity: 0.6,
51
+ touchSoundDisabled: true,
52
+ accessibilityRole: "button",
53
+ accessibilityLabel: "Previous month",
54
+ accessibilityState: { disabled: prevDisabled },
55
+ hitSlop: { top: 8, bottom: 8, left: 8, right: 8 }
56
+ },
57
+ /* @__PURE__ */ React.createElement(Entypo, { name: "chevron-left", size: 22, color: colors.foreground })
58
+ ), /* @__PURE__ */ React.createElement(
59
+ Text,
60
+ {
61
+ style: [styles.label, { color: colors.foreground }],
62
+ allowFontScaling: true,
63
+ accessibilityLiveRegion: "polite"
64
+ },
65
+ getLabel()
66
+ ), /* @__PURE__ */ React.createElement(
67
+ TouchableOpacity,
68
+ {
69
+ style: [styles.arrow, nextDisabled && styles.arrowDisabled],
70
+ onPress: handleNext,
71
+ disabled: nextDisabled,
72
+ activeOpacity: 0.6,
73
+ touchSoundDisabled: true,
74
+ accessibilityRole: "button",
75
+ accessibilityLabel: "Next month",
76
+ accessibilityState: { disabled: nextDisabled },
77
+ hitSlop: { top: 8, bottom: 8, left: 8, right: 8 }
78
+ },
79
+ /* @__PURE__ */ React.createElement(Entypo, { name: "chevron-right", size: 22, color: colors.foreground })
80
+ ));
81
+ }
82
+ var styles = StyleSheet.create({
83
+ container: {
84
+ flexDirection: "row",
85
+ alignItems: "center",
86
+ justifyContent: "space-between"
87
+ },
88
+ arrow: {
89
+ width: s(44),
90
+ height: s(44),
91
+ alignItems: "center",
92
+ justifyContent: "center"
93
+ },
94
+ arrowDisabled: {
95
+ opacity: 0.3
96
+ },
97
+ label: {
98
+ fontFamily: "Sohne-Medium",
99
+ fontSize: ms(17),
100
+ lineHeight: mvs(24),
101
+ textAlign: "center",
102
+ minWidth: s(160)
103
+ }
104
+ });
105
+
106
+ export { MonthPicker, dateToMonthPickerValue, monthPickerValueToDate };
@@ -0,0 +1,187 @@
1
+ import { PressableTab } from './chunk-3DKJ2GIC.mjs';
2
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
3
+ import { SPRINGS } from './chunk-DVK4G2GT.mjs';
4
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
5
+ import { ms, s, vs } from './chunk-2CE3TQVY.mjs';
6
+ import React, { useState, useRef, useCallback, useEffect } from 'react';
7
+ import { StyleSheet, View, Text } from 'react-native';
8
+ import Animated, { useSharedValue, withSpring, useAnimatedStyle } from 'react-native-reanimated';
9
+
10
+ function TabTrigger({
11
+ tab,
12
+ isActive,
13
+ onPress,
14
+ onLayout,
15
+ variant
16
+ }) {
17
+ const { colors } = useTheme();
18
+ const isUnderline = variant === "underline";
19
+ return /* @__PURE__ */ React.createElement(View, { onLayout, style: styles.triggerWrap }, /* @__PURE__ */ React.createElement(
20
+ PressableTab,
21
+ {
22
+ style: [
23
+ styles.trigger,
24
+ isUnderline && styles.triggerUnderline,
25
+ isUnderline && isActive && { borderBottomColor: colors.primary }
26
+ ],
27
+ onPress,
28
+ rippleColor: "transparent",
29
+ touchSoundDisabled: true,
30
+ accessibilityRole: "tab",
31
+ accessibilityState: { selected: isActive },
32
+ accessibilityLabel: tab.label
33
+ },
34
+ /* @__PURE__ */ React.createElement(View, { style: styles.triggerInner }, tab.icon ? typeof tab.icon === "function" ? tab.icon(isActive) : tab.icon : null, /* @__PURE__ */ React.createElement(
35
+ Text,
36
+ {
37
+ style: [
38
+ styles.triggerLabel,
39
+ // AUDIT FIX: active state now only changes color, never font metrics.
40
+ // Previously: inactive=Regular, active=Medium (pill) or SemiBold+fontSize14 (underline)
41
+ // The weight/size change caused measurable layout reflow every tab switch.
42
+ // Solution: all labels render at SemiBold always; active = foreground, inactive = foregroundMuted.
43
+ { color: isActive ? colors.foreground : colors.foregroundMuted }
44
+ ],
45
+ allowFontScaling: true
46
+ },
47
+ tab.label
48
+ ))
49
+ ));
50
+ }
51
+ function Tabs({ tabs, variant = "pill", value, onValueChange, children, style }) {
52
+ const [internal, setInternal] = useState(tabs[0]?.value ?? "");
53
+ const { colors } = useTheme();
54
+ const active = value ?? internal;
55
+ const tabLayouts = useRef({});
56
+ const pillX = useSharedValue(0);
57
+ const pillWidth = useSharedValue(0);
58
+ const initialised = useRef(false);
59
+ const animatePill = useCallback((tabValue, animate) => {
60
+ const layout = tabLayouts.current[tabValue];
61
+ if (!layout) return;
62
+ if (animate) {
63
+ pillX.value = withSpring(layout.x, SPRINGS.glide);
64
+ pillWidth.value = withSpring(layout.width, SPRINGS.glide);
65
+ } else {
66
+ pillX.value = layout.x;
67
+ pillWidth.value = layout.width;
68
+ }
69
+ }, [pillX, pillWidth]);
70
+ useEffect(() => {
71
+ if (initialised.current) animatePill(active, true);
72
+ }, [active, animatePill]);
73
+ const handlePress = (v) => {
74
+ selectionAsync();
75
+ if (!value) setInternal(v);
76
+ onValueChange?.(v);
77
+ };
78
+ const pillAnimatedStyle = useAnimatedStyle(() => ({
79
+ transform: [{ translateX: pillX.value }],
80
+ width: pillWidth.value
81
+ }));
82
+ return /* @__PURE__ */ React.createElement(View, { style }, /* @__PURE__ */ React.createElement(
83
+ View,
84
+ {
85
+ style: [
86
+ variant === "pill" ? [styles.list, { backgroundColor: colors.surface }] : styles.listUnderline
87
+ ],
88
+ accessibilityRole: "tablist"
89
+ },
90
+ variant === "pill" && /* @__PURE__ */ React.createElement(
91
+ Animated.View,
92
+ {
93
+ style: [
94
+ styles.pill,
95
+ {
96
+ backgroundColor: colors.background,
97
+ position: "absolute",
98
+ top: 4,
99
+ bottom: 4,
100
+ left: 0,
101
+ borderRadius: 8,
102
+ shadowColor: "#000",
103
+ shadowOffset: { width: 0, height: 1 },
104
+ shadowOpacity: 0.08,
105
+ shadowRadius: 2,
106
+ elevation: 2
107
+ },
108
+ pillAnimatedStyle
109
+ ]
110
+ }
111
+ ),
112
+ tabs.map((tab) => /* @__PURE__ */ React.createElement(
113
+ TabTrigger,
114
+ {
115
+ key: tab.value,
116
+ tab,
117
+ isActive: tab.value === active,
118
+ onPress: () => handlePress(tab.value),
119
+ variant,
120
+ onLayout: (e) => {
121
+ const { x, width } = e.nativeEvent.layout;
122
+ tabLayouts.current[tab.value] = { x, width };
123
+ if (tab.value === active) {
124
+ animatePill(tab.value, false);
125
+ initialised.current = true;
126
+ }
127
+ }
128
+ }
129
+ ))
130
+ ), children);
131
+ }
132
+ function TabsContent({ value, activeValue, children, style }) {
133
+ if (value !== activeValue) return null;
134
+ return /* @__PURE__ */ React.createElement(View, { style, accessibilityRole: "none" }, children);
135
+ }
136
+ var styles = StyleSheet.create({
137
+ list: {
138
+ flexDirection: "row",
139
+ borderRadius: 12,
140
+ padding: s(4),
141
+ gap: s(4)
142
+ },
143
+ listUnderline: {
144
+ flexDirection: "row",
145
+ // AUDIT FIX: was missing borderBottomColor — the 1px hairline would render
146
+ // as transparent on some platforms. Explicit token reference ensures visibility.
147
+ borderBottomWidth: 1
148
+ },
149
+ pill: {},
150
+ triggerWrap: {
151
+ flex: 1
152
+ },
153
+ trigger: {
154
+ flex: 1,
155
+ paddingVertical: vs(7),
156
+ paddingHorizontal: s(10),
157
+ borderRadius: 8,
158
+ alignItems: "center",
159
+ justifyContent: "center",
160
+ zIndex: 1
161
+ },
162
+ triggerUnderline: {
163
+ flex: 1,
164
+ paddingVertical: vs(12),
165
+ paddingHorizontal: s(16),
166
+ borderRadius: 0,
167
+ borderBottomWidth: 2,
168
+ borderBottomColor: "transparent"
169
+ },
170
+ triggerInner: {
171
+ flexDirection: "row",
172
+ alignItems: "center",
173
+ justifyContent: "center",
174
+ gap: s(4)
175
+ },
176
+ // AUDIT FIX: was Sohne-Regular at rest, Sohne-Medium/SemiBold when active.
177
+ // Font-weight changes at runtime cause advance-width shifts → the tab bar would
178
+ // visibly jump/reflow on every selection. Now always SemiBold; active state
179
+ // is communicated by color alone (foreground vs foregroundMuted). The pill
180
+ // indicator provides additional active signal without text layout side-effects.
181
+ triggerLabel: {
182
+ fontFamily: "Sohne-SemiBold",
183
+ fontSize: ms(13)
184
+ }
185
+ });
186
+
187
+ export { Tabs, TabsContent };
@@ -0,0 +1,111 @@
1
+ import { PressableCard } from './chunk-3DKJ2GIC.mjs';
2
+ import { impactLight } from './chunk-EJ7ZPXOH.mjs';
3
+ import { RADIUS } from './chunk-QY3X2UYR.mjs';
4
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
5
+ import { vs, s, mvs, ms } from './chunk-2CE3TQVY.mjs';
6
+ import React from 'react';
7
+ import { StyleSheet, View, Text } from 'react-native';
8
+
9
+ function Card({ children, variant = "elevated", onPress, style, accessibilityLabel }) {
10
+ const { colors } = useTheme();
11
+ const handlePress = () => {
12
+ if (!onPress) return;
13
+ impactLight();
14
+ onPress();
15
+ };
16
+ const variantStyle = {
17
+ elevated: {
18
+ backgroundColor: colors.card,
19
+ // AUDIT FIX: removed borderColor — shadow is the depth signal; a border on
20
+ // top of a shadow creates redundant double-framing that reads as "heavy"
21
+ // rather than "elevated". borderWidth: 0 overrides the base style's borderWidth: 1.
22
+ borderWidth: 0,
23
+ shadowColor: "#000",
24
+ shadowOffset: { width: 0, height: 4 },
25
+ shadowOpacity: 0.09,
26
+ shadowRadius: 14,
27
+ elevation: 4
28
+ },
29
+ outlined: {
30
+ backgroundColor: colors.card,
31
+ borderColor: colors.border,
32
+ shadowOpacity: 0,
33
+ elevation: 0
34
+ },
35
+ filled: {
36
+ backgroundColor: colors.surfaceStrong,
37
+ borderColor: colors.border,
38
+ shadowOpacity: 0,
39
+ elevation: 0
40
+ }
41
+ }[variant];
42
+ const cardContent = /* @__PURE__ */ React.createElement(View, { style: [styles.card, variantStyle, style] }, children);
43
+ if (onPress) {
44
+ return /* @__PURE__ */ React.createElement(
45
+ PressableCard,
46
+ {
47
+ onPress: handlePress,
48
+ rippleColor: "transparent",
49
+ touchSoundDisabled: true,
50
+ activateOnHover: true,
51
+ accessibilityRole: "button",
52
+ accessibilityLabel
53
+ },
54
+ cardContent
55
+ );
56
+ }
57
+ return cardContent;
58
+ }
59
+ function CardHeader({ children, style }) {
60
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.header, style] }, children);
61
+ }
62
+ function CardTitle({ children, style }) {
63
+ const { colors } = useTheme();
64
+ return /* @__PURE__ */ React.createElement(Text, { style: [styles.title, { color: colors.foreground }, style], allowFontScaling: true }, children);
65
+ }
66
+ function CardDescription({ children, style }) {
67
+ const { colors } = useTheme();
68
+ return /* @__PURE__ */ React.createElement(Text, { style: [styles.description, { color: colors.foregroundSubtle }, style], allowFontScaling: true }, children);
69
+ }
70
+ function CardContent({ children, style }) {
71
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.content, style] }, children);
72
+ }
73
+ function CardFooter({ children, style }) {
74
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.footer, style] }, children);
75
+ }
76
+ var styles = StyleSheet.create({
77
+ card: {
78
+ borderRadius: RADIUS.md,
79
+ borderWidth: 1
80
+ },
81
+ header: {
82
+ padding: s(16),
83
+ paddingBottom: 0,
84
+ gap: vs(4)
85
+ },
86
+ title: {
87
+ fontFamily: "Sohne-SemiBold",
88
+ fontSize: ms(16),
89
+ lineHeight: mvs(22)
90
+ },
91
+ // AUDIT FIX: was foregroundMuted (2.2:1 fail) — description text now uses
92
+ // foregroundSubtle (5.9:1 ✓) which is readable while still visually secondary.
93
+ description: {
94
+ fontFamily: "Sohne-Regular",
95
+ fontSize: ms(13),
96
+ lineHeight: mvs(18)
97
+ },
98
+ content: {
99
+ padding: s(16),
100
+ paddingTop: s(12)
101
+ },
102
+ footer: {
103
+ paddingHorizontal: s(16),
104
+ paddingBottom: vs(14),
105
+ paddingTop: 0,
106
+ flexDirection: "row",
107
+ alignItems: "center"
108
+ }
109
+ });
110
+
111
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };