@thewhileloop/whileui 1.2.2 → 2.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 (688) hide show
  1. package/README.md +248 -85
  2. package/dist/blocks/chat/chat.d.ts +3 -4
  3. package/dist/blocks/chat/chat.js +29 -17
  4. package/dist/blocks/chat/index.d.ts +0 -1
  5. package/dist/blocks/chat/index.js +0 -1
  6. package/dist/blocks/commerce/checkout-summary.d.ts +1 -2
  7. package/dist/blocks/commerce/checkout-summary.js +16 -4
  8. package/dist/blocks/commerce/feature-gate.d.ts +1 -2
  9. package/dist/blocks/commerce/feature-gate.js +14 -4
  10. package/dist/blocks/commerce/index.d.ts +0 -1
  11. package/dist/blocks/commerce/index.js +0 -1
  12. package/dist/blocks/commerce/metric-card.d.ts +3 -4
  13. package/dist/blocks/commerce/metric-card.js +7 -3
  14. package/dist/blocks/commerce/plan-toggle.d.ts +1 -2
  15. package/dist/blocks/commerce/plan-toggle.js +11 -9
  16. package/dist/blocks/commerce/pricing-card.d.ts +1 -2
  17. package/dist/blocks/commerce/pricing-card.js +23 -6
  18. package/dist/blocks/commerce/product-card.d.ts +1 -2
  19. package/dist/blocks/commerce/product-card.js +23 -9
  20. package/dist/blocks/commerce/subscription-card.d.ts +1 -2
  21. package/dist/blocks/commerce/subscription-card.js +6 -3
  22. package/dist/blocks/commerce/upgrade-banner.d.ts +1 -2
  23. package/dist/blocks/commerce/upgrade-banner.js +13 -3
  24. package/dist/blocks/commerce/usage-bar.d.ts +1 -2
  25. package/dist/blocks/commerce/usage-bar.js +4 -2
  26. package/dist/blocks/datepicker/date-range-picker-modal.d.ts +2 -3
  27. package/dist/blocks/datepicker/date-range-picker-modal.js +33 -7
  28. package/dist/blocks/datepicker/datepicker-inline.d.ts +1 -2
  29. package/dist/blocks/datepicker/datepicker-inline.js +9 -3
  30. package/dist/blocks/datepicker/datepicker-modal.d.ts +2 -3
  31. package/dist/blocks/datepicker/datepicker-modal.js +49 -17
  32. package/dist/blocks/datepicker/index.d.ts +0 -1
  33. package/dist/blocks/datepicker/index.js +0 -1
  34. package/dist/blocks/datepicker/use-calendar-theme.d.ts +0 -1
  35. package/dist/blocks/datepicker/use-calendar-theme.js +0 -1
  36. package/dist/blocks/layout/action-bar.d.ts +1 -2
  37. package/dist/blocks/layout/action-bar.js +0 -1
  38. package/dist/blocks/layout/app-shell.d.ts +1 -2
  39. package/dist/blocks/layout/app-shell.js +11 -5
  40. package/dist/blocks/layout/confirm-action-sheet.d.ts +1 -2
  41. package/dist/blocks/layout/confirm-action-sheet.js +18 -6
  42. package/dist/blocks/layout/content-skeleton.d.ts +1 -2
  43. package/dist/blocks/layout/content-skeleton.js +22 -9
  44. package/dist/blocks/layout/docked-input.d.ts +11 -0
  45. package/dist/blocks/layout/docked-input.js +27 -0
  46. package/dist/blocks/layout/empty-state.d.ts +1 -2
  47. package/dist/blocks/layout/empty-state.js +10 -5
  48. package/dist/blocks/layout/error-boundary.d.ts +1 -2
  49. package/dist/blocks/layout/error-boundary.js +0 -2
  50. package/dist/blocks/layout/error-state.d.ts +1 -2
  51. package/dist/blocks/layout/error-state.js +0 -2
  52. package/dist/blocks/layout/form-modal-screen.d.ts +1 -2
  53. package/dist/blocks/layout/form-modal-screen.js +24 -21
  54. package/dist/blocks/layout/index.d.ts +2 -2
  55. package/dist/blocks/layout/index.js +2 -2
  56. package/dist/blocks/layout/keyboard-aware-screen.d.ts +14 -0
  57. package/dist/blocks/layout/keyboard-aware-screen.js +12 -0
  58. package/dist/blocks/layout/loading-screen.d.ts +1 -2
  59. package/dist/blocks/layout/loading-screen.js +6 -8
  60. package/dist/blocks/layout/page-skeleton.d.ts +1 -2
  61. package/dist/blocks/layout/page-skeleton.js +38 -20
  62. package/dist/blocks/layout/pull-to-refresh-scroll-view.d.ts +8 -4
  63. package/dist/blocks/layout/pull-to-refresh-scroll-view.js +17 -4
  64. package/dist/blocks/layout/screen-skeleton.d.ts +1 -2
  65. package/dist/blocks/layout/screen-skeleton.js +0 -1
  66. package/dist/blocks/layout/sheet.d.ts +9 -9
  67. package/dist/blocks/layout/sheet.js +51 -21
  68. package/dist/blocks/layout/smart-input.d.ts +6 -1
  69. package/dist/blocks/layout/smart-input.js +121 -9
  70. package/dist/blocks/lists/index.d.ts +0 -2
  71. package/dist/blocks/lists/index.js +0 -2
  72. package/dist/blocks/lists/list-item.d.ts +1 -2
  73. package/dist/blocks/lists/list-item.js +20 -6
  74. package/dist/blocks/lists/notification-item.d.ts +1 -2
  75. package/dist/blocks/lists/notification-item.js +19 -6
  76. package/dist/blocks/lists/timeline-feed.d.ts +1 -2
  77. package/dist/blocks/lists/timeline-feed.js +4 -2
  78. package/dist/blocks/media/index.d.ts +0 -1
  79. package/dist/blocks/media/index.js +0 -1
  80. package/dist/blocks/media/smart-image.d.ts +0 -1
  81. package/dist/blocks/media/smart-image.js +24 -8
  82. package/dist/blocks/navigation/bottom-nav.d.ts +1 -2
  83. package/dist/blocks/navigation/bottom-nav.js +7 -4
  84. package/dist/blocks/navigation/drawer-menu.d.ts +1 -2
  85. package/dist/blocks/navigation/drawer-menu.js +52 -15
  86. package/dist/blocks/navigation/floating-bottom-nav.d.ts +1 -2
  87. package/dist/blocks/navigation/floating-bottom-nav.js +14 -5
  88. package/dist/blocks/navigation/header.d.ts +2 -3
  89. package/dist/blocks/navigation/header.js +13 -5
  90. package/dist/blocks/navigation/index.d.ts +0 -2
  91. package/dist/blocks/navigation/index.js +0 -2
  92. package/dist/blocks/navigation/tab-bar.d.ts +1 -2
  93. package/dist/blocks/navigation/tab-bar.js +22 -10
  94. package/dist/blocks/splash/index.d.ts +0 -1
  95. package/dist/blocks/splash/index.js +0 -1
  96. package/dist/blocks/splash/splash-screen.d.ts +3 -4
  97. package/dist/blocks/splash/splash-screen.js +15 -11
  98. package/dist/components/accordion/accordion.d.ts +4 -5
  99. package/dist/components/accordion/accordion.js +6 -7
  100. package/dist/components/accordion/index.d.ts +0 -1
  101. package/dist/components/accordion/index.js +0 -1
  102. package/dist/components/alert/alert.d.ts +2 -3
  103. package/dist/components/alert/alert.js +19 -8
  104. package/dist/components/alert/index.d.ts +0 -1
  105. package/dist/components/alert/index.js +0 -1
  106. package/dist/components/alert-dialog/alert-dialog.d.ts +16 -12
  107. package/dist/components/alert-dialog/alert-dialog.js +184 -49
  108. package/dist/components/alert-dialog/index.d.ts +0 -1
  109. package/dist/components/alert-dialog/index.js +0 -1
  110. package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -2
  111. package/dist/components/aspect-ratio/aspect-ratio.js +0 -3
  112. package/dist/components/aspect-ratio/index.d.ts +0 -1
  113. package/dist/components/aspect-ratio/index.js +0 -1
  114. package/dist/components/avatar/avatar.d.ts +2 -3
  115. package/dist/components/avatar/avatar.js +7 -8
  116. package/dist/components/avatar/index.d.ts +0 -1
  117. package/dist/components/avatar/index.js +0 -1
  118. package/dist/components/badge/badge.d.ts +6 -7
  119. package/dist/components/badge/badge.js +21 -9
  120. package/dist/components/badge/index.d.ts +0 -1
  121. package/dist/components/badge/index.js +0 -1
  122. package/dist/components/button/button.d.ts +11 -10
  123. package/dist/components/button/button.js +62 -33
  124. package/dist/components/button/index.d.ts +0 -1
  125. package/dist/components/button/index.js +0 -1
  126. package/dist/components/card/card.d.ts +5 -3
  127. package/dist/components/card/card.js +28 -14
  128. package/dist/components/card/index.d.ts +0 -1
  129. package/dist/components/card/index.js +0 -1
  130. package/dist/components/checkbox/checkbox.d.ts +1 -2
  131. package/dist/components/checkbox/checkbox.js +15 -2
  132. package/dist/components/checkbox/index.d.ts +0 -1
  133. package/dist/components/checkbox/index.js +0 -1
  134. package/dist/components/collapsible/collapsible.d.ts +4 -4
  135. package/dist/components/collapsible/collapsible.js +8 -11
  136. package/dist/components/collapsible/index.d.ts +0 -1
  137. package/dist/components/collapsible/index.js +0 -1
  138. package/dist/components/container/container.d.ts +146 -0
  139. package/dist/components/container/container.js +43 -0
  140. package/dist/components/container/index.d.ts +1 -0
  141. package/dist/components/container/index.js +1 -0
  142. package/dist/components/context-menu/context-menu.d.ts +6 -7
  143. package/dist/components/context-menu/context-menu.js +42 -12
  144. package/dist/components/context-menu/index.d.ts +0 -1
  145. package/dist/components/context-menu/index.js +0 -1
  146. package/dist/components/data-row/data-row.d.ts +0 -1
  147. package/dist/components/data-row/data-row.js +35 -17
  148. package/dist/components/data-row/index.d.ts +0 -1
  149. package/dist/components/data-row/index.js +0 -1
  150. package/dist/components/dialog/dialog.d.ts +8 -9
  151. package/dist/components/dialog/dialog.js +48 -24
  152. package/dist/components/dialog/index.d.ts +0 -1
  153. package/dist/components/dialog/index.js +0 -1
  154. package/dist/components/dropdown-menu/dropdown-menu.d.ts +6 -7
  155. package/dist/components/dropdown-menu/dropdown-menu.js +45 -11
  156. package/dist/components/dropdown-menu/index.d.ts +0 -1
  157. package/dist/components/dropdown-menu/index.js +0 -1
  158. package/dist/components/form-field/form-field.d.ts +0 -1
  159. package/dist/components/form-field/form-field.js +26 -13
  160. package/dist/components/form-field/index.d.ts +0 -1
  161. package/dist/components/form-field/index.js +0 -1
  162. package/dist/components/hover-card/hover-card.d.ts +1 -2
  163. package/dist/components/hover-card/hover-card.js +12 -3
  164. package/dist/components/hover-card/index.d.ts +0 -1
  165. package/dist/components/hover-card/index.js +0 -1
  166. package/dist/components/input/index.d.ts +0 -1
  167. package/dist/components/input/index.js +0 -1
  168. package/dist/components/input/input.d.ts +2 -3
  169. package/dist/components/input/input.js +18 -3
  170. package/dist/components/label/index.d.ts +0 -1
  171. package/dist/components/label/index.js +0 -1
  172. package/dist/components/label/label.d.ts +0 -1
  173. package/dist/components/label/label.js +0 -1
  174. package/dist/components/labeled-field/index.d.ts +0 -1
  175. package/dist/components/labeled-field/index.js +0 -1
  176. package/dist/components/labeled-field/labeled-field.d.ts +1 -2
  177. package/dist/components/labeled-field/labeled-field.js +10 -2
  178. package/dist/components/menubar/index.d.ts +0 -1
  179. package/dist/components/menubar/index.js +0 -1
  180. package/dist/components/menubar/menubar.d.ts +7 -8
  181. package/dist/components/menubar/menubar.js +48 -15
  182. package/dist/components/numeric-input/index.d.ts +0 -1
  183. package/dist/components/numeric-input/index.js +0 -1
  184. package/dist/components/numeric-input/numeric-input.d.ts +6 -5
  185. package/dist/components/numeric-input/numeric-input.js +55 -26
  186. package/dist/components/otp-input/index.d.ts +0 -1
  187. package/dist/components/otp-input/index.js +0 -1
  188. package/dist/components/otp-input/otp-input.d.ts +3 -4
  189. package/dist/components/otp-input/otp-input.js +13 -9
  190. package/dist/components/popover/index.d.ts +0 -1
  191. package/dist/components/popover/index.js +0 -1
  192. package/dist/components/popover/popover.d.ts +4 -2
  193. package/dist/components/popover/popover.js +21 -4
  194. package/dist/components/pressable/index.d.ts +0 -1
  195. package/dist/components/pressable/index.js +0 -1
  196. package/dist/components/pressable/pressable.d.ts +7 -1
  197. package/dist/components/pressable/pressable.js +47 -4
  198. package/dist/components/progress/index.d.ts +0 -1
  199. package/dist/components/progress/index.js +0 -1
  200. package/dist/components/progress/progress.d.ts +0 -1
  201. package/dist/components/progress/progress.js +5 -2
  202. package/dist/components/radio-group/index.d.ts +0 -1
  203. package/dist/components/radio-group/index.js +0 -1
  204. package/dist/components/radio-group/radio-group.d.ts +2 -3
  205. package/dist/components/radio-group/radio-group.js +16 -7
  206. package/dist/components/row/index.d.ts +0 -1
  207. package/dist/components/row/index.js +0 -1
  208. package/dist/components/row/row.d.ts +0 -1
  209. package/dist/components/row/row.js +0 -1
  210. package/dist/components/segmented-control/index.d.ts +0 -1
  211. package/dist/components/segmented-control/index.js +0 -1
  212. package/dist/components/segmented-control/segmented-control.d.ts +7 -8
  213. package/dist/components/segmented-control/segmented-control.js +57 -24
  214. package/dist/components/select/index.d.ts +0 -1
  215. package/dist/components/select/index.js +0 -1
  216. package/dist/components/select/select.d.ts +15 -7
  217. package/dist/components/select/select.js +53 -11
  218. package/dist/components/separator/index.d.ts +0 -1
  219. package/dist/components/separator/index.js +0 -1
  220. package/dist/components/separator/separator.d.ts +0 -1
  221. package/dist/components/separator/separator.js +0 -1
  222. package/dist/components/skeleton/index.d.ts +0 -1
  223. package/dist/components/skeleton/index.js +0 -1
  224. package/dist/components/skeleton/skeleton.d.ts +3 -4
  225. package/dist/components/skeleton/skeleton.js +7 -8
  226. package/dist/components/spinner/index.d.ts +0 -1
  227. package/dist/components/spinner/index.js +0 -1
  228. package/dist/components/spinner/spinner.d.ts +1 -2
  229. package/dist/components/spinner/spinner.js +4 -2
  230. package/dist/components/stack/index.d.ts +0 -1
  231. package/dist/components/stack/index.js +0 -1
  232. package/dist/components/stack/stack.d.ts +0 -1
  233. package/dist/components/stack/stack.js +0 -1
  234. package/dist/components/switch/index.d.ts +0 -1
  235. package/dist/components/switch/index.js +0 -1
  236. package/dist/components/switch/switch.d.ts +1 -2
  237. package/dist/components/switch/switch.js +21 -2
  238. package/dist/components/tabs/index.d.ts +0 -1
  239. package/dist/components/tabs/index.js +0 -1
  240. package/dist/components/tabs/tabs.d.ts +6 -7
  241. package/dist/components/tabs/tabs.js +42 -12
  242. package/dist/components/text/index.d.ts +0 -1
  243. package/dist/components/text/index.js +0 -1
  244. package/dist/components/text/text.d.ts +0 -1
  245. package/dist/components/text/text.js +0 -1
  246. package/dist/components/textarea/index.d.ts +0 -1
  247. package/dist/components/textarea/index.js +0 -1
  248. package/dist/components/textarea/textarea.d.ts +2 -3
  249. package/dist/components/textarea/textarea.js +16 -8
  250. package/dist/components/toast/index.d.ts +0 -1
  251. package/dist/components/toast/index.js +0 -1
  252. package/dist/components/toast/toast.d.ts +5 -6
  253. package/dist/components/toast/toast.js +40 -24
  254. package/dist/components/toggle/index.d.ts +0 -1
  255. package/dist/components/toggle/index.js +0 -1
  256. package/dist/components/toggle/toggle.d.ts +6 -7
  257. package/dist/components/toggle/toggle.js +32 -16
  258. package/dist/components/toggle-group/index.d.ts +0 -1
  259. package/dist/components/toggle-group/index.js +0 -1
  260. package/dist/components/toggle-group/toggle-group.d.ts +7 -8
  261. package/dist/components/toggle-group/toggle-group.js +36 -19
  262. package/dist/components/tooltip/index.d.ts +0 -1
  263. package/dist/components/tooltip/index.js +0 -1
  264. package/dist/components/tooltip/tooltip.d.ts +1 -2
  265. package/dist/components/tooltip/tooltip.js +20 -3
  266. package/dist/components/view/index.d.ts +0 -1
  267. package/dist/components/view/index.js +0 -1
  268. package/dist/components/view/view.d.ts +0 -1
  269. package/dist/components/view/view.js +0 -1
  270. package/dist/index.d.ts +9 -3
  271. package/dist/index.js +9 -7
  272. package/dist/lib/cn.d.ts +0 -1
  273. package/dist/lib/cn.js +0 -1
  274. package/dist/lib/compose-event-handlers.d.ts +15 -0
  275. package/dist/lib/compose-event-handlers.js +20 -0
  276. package/dist/lib/focus-ring.d.ts +25 -0
  277. package/dist/lib/focus-ring.js +25 -0
  278. package/dist/lib/font-context.d.ts +1 -1
  279. package/dist/lib/font-context.js +6 -4
  280. package/dist/lib/frosted-surface.d.ts +0 -1
  281. package/dist/lib/frosted-surface.js +31 -6
  282. package/dist/lib/interaction-tokens.d.ts +12 -1
  283. package/dist/lib/interaction-tokens.js +27 -13
  284. package/dist/lib/motion-policy.d.ts +25 -0
  285. package/dist/lib/motion-policy.js +97 -0
  286. package/dist/lib/overlay-insets.d.ts +17 -0
  287. package/dist/lib/overlay-insets.js +23 -0
  288. package/dist/lib/portal.d.ts +0 -1
  289. package/dist/lib/portal.js +0 -1
  290. package/dist/lib/react-native-classname.d.ts +0 -1
  291. package/dist/lib/react-native-classname.js +0 -1
  292. package/dist/lib/recipes.d.ts +30 -0
  293. package/dist/lib/recipes.js +138 -0
  294. package/dist/lib/tap-only.d.ts +11 -0
  295. package/dist/lib/tap-only.js +24 -0
  296. package/dist/lib/theme-bridge.d.ts +0 -1
  297. package/dist/lib/theme-bridge.js +11 -3
  298. package/dist/lib/theme-colors.d.ts +2 -46
  299. package/dist/lib/theme-colors.js +25 -226
  300. package/dist/lib/theme-contract.d.ts +78 -0
  301. package/dist/lib/theme-contract.js +481 -0
  302. package/dist/lib/theme-derive.d.ts +4 -0
  303. package/dist/lib/theme-derive.js +80 -0
  304. package/dist/lib/theme-presets.d.ts +31 -0
  305. package/dist/lib/theme-presets.js +221 -0
  306. package/dist/lib/tv.d.ts +0 -1
  307. package/dist/lib/tv.js +0 -1
  308. package/dist/lib/visual-token-contract.d.ts +110 -0
  309. package/dist/lib/visual-token-contract.js +583 -0
  310. package/dist/lib/visual-tokens.d.ts +2 -38
  311. package/dist/lib/visual-tokens.js +22 -75
  312. package/dist/tokens.d.ts +4 -0
  313. package/dist/tokens.js +6 -0
  314. package/dist/vite.d.ts +0 -1
  315. package/dist/vite.js +0 -1
  316. package/package.json +30 -20
  317. package/dist/blocks/auth/forgot-password-form.d.ts +0 -10
  318. package/dist/blocks/auth/forgot-password-form.d.ts.map +0 -1
  319. package/dist/blocks/auth/forgot-password-form.js +0 -17
  320. package/dist/blocks/auth/forgot-password-form.js.map +0 -1
  321. package/dist/blocks/auth/index.d.ts +0 -8
  322. package/dist/blocks/auth/index.d.ts.map +0 -1
  323. package/dist/blocks/auth/index.js +0 -8
  324. package/dist/blocks/auth/index.js.map +0 -1
  325. package/dist/blocks/auth/reset-password-form.d.ts +0 -9
  326. package/dist/blocks/auth/reset-password-form.d.ts.map +0 -1
  327. package/dist/blocks/auth/reset-password-form.js +0 -16
  328. package/dist/blocks/auth/reset-password-form.js.map +0 -1
  329. package/dist/blocks/auth/sign-in-form.d.ts +0 -17
  330. package/dist/blocks/auth/sign-in-form.d.ts.map +0 -1
  331. package/dist/blocks/auth/sign-in-form.js +0 -19
  332. package/dist/blocks/auth/sign-in-form.js.map +0 -1
  333. package/dist/blocks/auth/sign-up-form.d.ts +0 -17
  334. package/dist/blocks/auth/sign-up-form.d.ts.map +0 -1
  335. package/dist/blocks/auth/sign-up-form.js +0 -21
  336. package/dist/blocks/auth/sign-up-form.js.map +0 -1
  337. package/dist/blocks/auth/social-connections.d.ts +0 -10
  338. package/dist/blocks/auth/social-connections.d.ts.map +0 -1
  339. package/dist/blocks/auth/social-connections.js +0 -8
  340. package/dist/blocks/auth/social-connections.js.map +0 -1
  341. package/dist/blocks/auth/user-menu.d.ts +0 -12
  342. package/dist/blocks/auth/user-menu.d.ts.map +0 -1
  343. package/dist/blocks/auth/user-menu.js +0 -10
  344. package/dist/blocks/auth/user-menu.js.map +0 -1
  345. package/dist/blocks/auth/verify-email-form.d.ts +0 -10
  346. package/dist/blocks/auth/verify-email-form.d.ts.map +0 -1
  347. package/dist/blocks/auth/verify-email-form.js +0 -17
  348. package/dist/blocks/auth/verify-email-form.js.map +0 -1
  349. package/dist/blocks/chat/chat.d.ts.map +0 -1
  350. package/dist/blocks/chat/chat.js.map +0 -1
  351. package/dist/blocks/chat/index.d.ts.map +0 -1
  352. package/dist/blocks/chat/index.js.map +0 -1
  353. package/dist/blocks/commerce/checkout-summary.d.ts.map +0 -1
  354. package/dist/blocks/commerce/checkout-summary.js.map +0 -1
  355. package/dist/blocks/commerce/feature-gate.d.ts.map +0 -1
  356. package/dist/blocks/commerce/feature-gate.js.map +0 -1
  357. package/dist/blocks/commerce/index.d.ts.map +0 -1
  358. package/dist/blocks/commerce/index.js.map +0 -1
  359. package/dist/blocks/commerce/metric-card.d.ts.map +0 -1
  360. package/dist/blocks/commerce/metric-card.js.map +0 -1
  361. package/dist/blocks/commerce/plan-toggle.d.ts.map +0 -1
  362. package/dist/blocks/commerce/plan-toggle.js.map +0 -1
  363. package/dist/blocks/commerce/pricing-card.d.ts.map +0 -1
  364. package/dist/blocks/commerce/pricing-card.js.map +0 -1
  365. package/dist/blocks/commerce/product-card.d.ts.map +0 -1
  366. package/dist/blocks/commerce/product-card.js.map +0 -1
  367. package/dist/blocks/commerce/subscription-card.d.ts.map +0 -1
  368. package/dist/blocks/commerce/subscription-card.js.map +0 -1
  369. package/dist/blocks/commerce/upgrade-banner.d.ts.map +0 -1
  370. package/dist/blocks/commerce/upgrade-banner.js.map +0 -1
  371. package/dist/blocks/commerce/usage-bar.d.ts.map +0 -1
  372. package/dist/blocks/commerce/usage-bar.js.map +0 -1
  373. package/dist/blocks/datepicker/date-range-picker-modal.d.ts.map +0 -1
  374. package/dist/blocks/datepicker/date-range-picker-modal.js.map +0 -1
  375. package/dist/blocks/datepicker/datepicker-inline.d.ts.map +0 -1
  376. package/dist/blocks/datepicker/datepicker-inline.js.map +0 -1
  377. package/dist/blocks/datepicker/datepicker-modal.d.ts.map +0 -1
  378. package/dist/blocks/datepicker/datepicker-modal.js.map +0 -1
  379. package/dist/blocks/datepicker/index.d.ts.map +0 -1
  380. package/dist/blocks/datepicker/index.js.map +0 -1
  381. package/dist/blocks/datepicker/use-calendar-theme.d.ts.map +0 -1
  382. package/dist/blocks/datepicker/use-calendar-theme.js.map +0 -1
  383. package/dist/blocks/layout/action-bar.d.ts.map +0 -1
  384. package/dist/blocks/layout/action-bar.js.map +0 -1
  385. package/dist/blocks/layout/app-shell.d.ts.map +0 -1
  386. package/dist/blocks/layout/app-shell.js.map +0 -1
  387. package/dist/blocks/layout/confirm-action-sheet.d.ts.map +0 -1
  388. package/dist/blocks/layout/confirm-action-sheet.js.map +0 -1
  389. package/dist/blocks/layout/content-skeleton.d.ts.map +0 -1
  390. package/dist/blocks/layout/content-skeleton.js.map +0 -1
  391. package/dist/blocks/layout/empty-state.d.ts.map +0 -1
  392. package/dist/blocks/layout/empty-state.js.map +0 -1
  393. package/dist/blocks/layout/error-boundary.d.ts.map +0 -1
  394. package/dist/blocks/layout/error-boundary.js.map +0 -1
  395. package/dist/blocks/layout/error-state.d.ts.map +0 -1
  396. package/dist/blocks/layout/error-state.js.map +0 -1
  397. package/dist/blocks/layout/form-modal-screen.d.ts.map +0 -1
  398. package/dist/blocks/layout/form-modal-screen.js.map +0 -1
  399. package/dist/blocks/layout/index.d.ts.map +0 -1
  400. package/dist/blocks/layout/index.js.map +0 -1
  401. package/dist/blocks/layout/loading-screen.d.ts.map +0 -1
  402. package/dist/blocks/layout/loading-screen.js.map +0 -1
  403. package/dist/blocks/layout/onboarding-screen.d.ts +0 -19
  404. package/dist/blocks/layout/onboarding-screen.d.ts.map +0 -1
  405. package/dist/blocks/layout/onboarding-screen.js +0 -35
  406. package/dist/blocks/layout/onboarding-screen.js.map +0 -1
  407. package/dist/blocks/layout/page-skeleton.d.ts.map +0 -1
  408. package/dist/blocks/layout/page-skeleton.js.map +0 -1
  409. package/dist/blocks/layout/pull-to-refresh-scroll-view.d.ts.map +0 -1
  410. package/dist/blocks/layout/pull-to-refresh-scroll-view.js.map +0 -1
  411. package/dist/blocks/layout/screen-skeleton.d.ts.map +0 -1
  412. package/dist/blocks/layout/screen-skeleton.js.map +0 -1
  413. package/dist/blocks/layout/sheet.d.ts.map +0 -1
  414. package/dist/blocks/layout/sheet.js.map +0 -1
  415. package/dist/blocks/layout/smart-image.d.ts +0 -9
  416. package/dist/blocks/layout/smart-image.d.ts.map +0 -1
  417. package/dist/blocks/layout/smart-image.js +0 -23
  418. package/dist/blocks/layout/smart-image.js.map +0 -1
  419. package/dist/blocks/layout/smart-input.d.ts.map +0 -1
  420. package/dist/blocks/layout/smart-input.js.map +0 -1
  421. package/dist/blocks/lists/index.d.ts.map +0 -1
  422. package/dist/blocks/lists/index.js.map +0 -1
  423. package/dist/blocks/lists/list-item.d.ts.map +0 -1
  424. package/dist/blocks/lists/list-item.js.map +0 -1
  425. package/dist/blocks/lists/notification-item.d.ts.map +0 -1
  426. package/dist/blocks/lists/notification-item.js.map +0 -1
  427. package/dist/blocks/lists/swipeable-item.d.ts +0 -17
  428. package/dist/blocks/lists/swipeable-item.d.ts.map +0 -1
  429. package/dist/blocks/lists/swipeable-item.js +0 -65
  430. package/dist/blocks/lists/swipeable-item.js.map +0 -1
  431. package/dist/blocks/lists/timeline-feed.d.ts.map +0 -1
  432. package/dist/blocks/lists/timeline-feed.js.map +0 -1
  433. package/dist/blocks/media/index.d.ts.map +0 -1
  434. package/dist/blocks/media/index.js.map +0 -1
  435. package/dist/blocks/media/smart-image.d.ts.map +0 -1
  436. package/dist/blocks/media/smart-image.js.map +0 -1
  437. package/dist/blocks/navigation/bottom-nav.d.ts.map +0 -1
  438. package/dist/blocks/navigation/bottom-nav.js.map +0 -1
  439. package/dist/blocks/navigation/drawer-menu.d.ts.map +0 -1
  440. package/dist/blocks/navigation/drawer-menu.js.map +0 -1
  441. package/dist/blocks/navigation/floating-bottom-nav.d.ts.map +0 -1
  442. package/dist/blocks/navigation/floating-bottom-nav.js.map +0 -1
  443. package/dist/blocks/navigation/header.d.ts.map +0 -1
  444. package/dist/blocks/navigation/header.js.map +0 -1
  445. package/dist/blocks/navigation/index.d.ts.map +0 -1
  446. package/dist/blocks/navigation/index.js.map +0 -1
  447. package/dist/blocks/navigation/navigation-sidebar.d.ts +0 -25
  448. package/dist/blocks/navigation/navigation-sidebar.d.ts.map +0 -1
  449. package/dist/blocks/navigation/navigation-sidebar.js +0 -18
  450. package/dist/blocks/navigation/navigation-sidebar.js.map +0 -1
  451. package/dist/blocks/navigation/tab-bar.d.ts.map +0 -1
  452. package/dist/blocks/navigation/tab-bar.js.map +0 -1
  453. package/dist/blocks/profile/account-card.d.ts +0 -11
  454. package/dist/blocks/profile/account-card.d.ts.map +0 -1
  455. package/dist/blocks/profile/account-card.js +0 -10
  456. package/dist/blocks/profile/account-card.js.map +0 -1
  457. package/dist/blocks/profile/index.d.ts +0 -5
  458. package/dist/blocks/profile/index.d.ts.map +0 -1
  459. package/dist/blocks/profile/index.js +0 -5
  460. package/dist/blocks/profile/index.js.map +0 -1
  461. package/dist/blocks/profile/profile-header.d.ts +0 -27
  462. package/dist/blocks/profile/profile-header.d.ts.map +0 -1
  463. package/dist/blocks/profile/profile-header.js +0 -11
  464. package/dist/blocks/profile/profile-header.js.map +0 -1
  465. package/dist/blocks/profile/settings-item.d.ts +0 -15
  466. package/dist/blocks/profile/settings-item.d.ts.map +0 -1
  467. package/dist/blocks/profile/settings-item.js +0 -11
  468. package/dist/blocks/profile/settings-item.js.map +0 -1
  469. package/dist/blocks/profile/settings-section.d.ts +0 -7
  470. package/dist/blocks/profile/settings-section.d.ts.map +0 -1
  471. package/dist/blocks/profile/settings-section.js +0 -9
  472. package/dist/blocks/profile/settings-section.js.map +0 -1
  473. package/dist/blocks/splash/index.d.ts.map +0 -1
  474. package/dist/blocks/splash/index.js.map +0 -1
  475. package/dist/blocks/splash/splash-screen.d.ts.map +0 -1
  476. package/dist/blocks/splash/splash-screen.js.map +0 -1
  477. package/dist/components/accordion/accordion.d.ts.map +0 -1
  478. package/dist/components/accordion/accordion.js.map +0 -1
  479. package/dist/components/accordion/index.d.ts.map +0 -1
  480. package/dist/components/accordion/index.js.map +0 -1
  481. package/dist/components/alert/alert.d.ts.map +0 -1
  482. package/dist/components/alert/alert.js.map +0 -1
  483. package/dist/components/alert/index.d.ts.map +0 -1
  484. package/dist/components/alert/index.js.map +0 -1
  485. package/dist/components/alert-dialog/alert-dialog.d.ts.map +0 -1
  486. package/dist/components/alert-dialog/alert-dialog.js.map +0 -1
  487. package/dist/components/alert-dialog/index.d.ts.map +0 -1
  488. package/dist/components/alert-dialog/index.js.map +0 -1
  489. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +0 -1
  490. package/dist/components/aspect-ratio/aspect-ratio.js.map +0 -1
  491. package/dist/components/aspect-ratio/index.d.ts.map +0 -1
  492. package/dist/components/aspect-ratio/index.js.map +0 -1
  493. package/dist/components/avatar/avatar.d.ts.map +0 -1
  494. package/dist/components/avatar/avatar.js.map +0 -1
  495. package/dist/components/avatar/index.d.ts.map +0 -1
  496. package/dist/components/avatar/index.js.map +0 -1
  497. package/dist/components/badge/badge.d.ts.map +0 -1
  498. package/dist/components/badge/badge.js.map +0 -1
  499. package/dist/components/badge/index.d.ts.map +0 -1
  500. package/dist/components/badge/index.js.map +0 -1
  501. package/dist/components/box/box.d.ts +0 -143
  502. package/dist/components/box/box.d.ts.map +0 -1
  503. package/dist/components/box/box.js +0 -38
  504. package/dist/components/box/box.js.map +0 -1
  505. package/dist/components/box/index.d.ts +0 -2
  506. package/dist/components/box/index.d.ts.map +0 -1
  507. package/dist/components/box/index.js +0 -2
  508. package/dist/components/box/index.js.map +0 -1
  509. package/dist/components/button/button.d.ts.map +0 -1
  510. package/dist/components/button/button.js.map +0 -1
  511. package/dist/components/button/index.d.ts.map +0 -1
  512. package/dist/components/button/index.js.map +0 -1
  513. package/dist/components/card/card.d.ts.map +0 -1
  514. package/dist/components/card/card.js.map +0 -1
  515. package/dist/components/card/index.d.ts.map +0 -1
  516. package/dist/components/card/index.js.map +0 -1
  517. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  518. package/dist/components/checkbox/checkbox.js.map +0 -1
  519. package/dist/components/checkbox/index.d.ts.map +0 -1
  520. package/dist/components/checkbox/index.js.map +0 -1
  521. package/dist/components/collapsible/collapsible.d.ts.map +0 -1
  522. package/dist/components/collapsible/collapsible.js.map +0 -1
  523. package/dist/components/collapsible/index.d.ts.map +0 -1
  524. package/dist/components/collapsible/index.js.map +0 -1
  525. package/dist/components/context-menu/context-menu.d.ts.map +0 -1
  526. package/dist/components/context-menu/context-menu.js.map +0 -1
  527. package/dist/components/context-menu/index.d.ts.map +0 -1
  528. package/dist/components/context-menu/index.js.map +0 -1
  529. package/dist/components/data-row/data-row.d.ts.map +0 -1
  530. package/dist/components/data-row/data-row.js.map +0 -1
  531. package/dist/components/data-row/index.d.ts.map +0 -1
  532. package/dist/components/data-row/index.js.map +0 -1
  533. package/dist/components/dialog/dialog.d.ts.map +0 -1
  534. package/dist/components/dialog/dialog.js.map +0 -1
  535. package/dist/components/dialog/index.d.ts.map +0 -1
  536. package/dist/components/dialog/index.js.map +0 -1
  537. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +0 -1
  538. package/dist/components/dropdown-menu/dropdown-menu.js.map +0 -1
  539. package/dist/components/dropdown-menu/index.d.ts.map +0 -1
  540. package/dist/components/dropdown-menu/index.js.map +0 -1
  541. package/dist/components/form-field/form-field.d.ts.map +0 -1
  542. package/dist/components/form-field/form-field.js.map +0 -1
  543. package/dist/components/form-field/index.d.ts.map +0 -1
  544. package/dist/components/form-field/index.js.map +0 -1
  545. package/dist/components/hover-card/hover-card.d.ts.map +0 -1
  546. package/dist/components/hover-card/hover-card.js.map +0 -1
  547. package/dist/components/hover-card/index.d.ts.map +0 -1
  548. package/dist/components/hover-card/index.js.map +0 -1
  549. package/dist/components/input/index.d.ts.map +0 -1
  550. package/dist/components/input/index.js.map +0 -1
  551. package/dist/components/input/input.d.ts.map +0 -1
  552. package/dist/components/input/input.js.map +0 -1
  553. package/dist/components/label/index.d.ts.map +0 -1
  554. package/dist/components/label/index.js.map +0 -1
  555. package/dist/components/label/label.d.ts.map +0 -1
  556. package/dist/components/label/label.js.map +0 -1
  557. package/dist/components/labeled-field/index.d.ts.map +0 -1
  558. package/dist/components/labeled-field/index.js.map +0 -1
  559. package/dist/components/labeled-field/labeled-field.d.ts.map +0 -1
  560. package/dist/components/labeled-field/labeled-field.js.map +0 -1
  561. package/dist/components/layout/index.d.ts +0 -2
  562. package/dist/components/layout/index.d.ts.map +0 -1
  563. package/dist/components/layout/index.js +0 -2
  564. package/dist/components/layout/index.js.map +0 -1
  565. package/dist/components/layout/layout.d.ts +0 -395
  566. package/dist/components/layout/layout.d.ts.map +0 -1
  567. package/dist/components/layout/layout.js +0 -93
  568. package/dist/components/layout/layout.js.map +0 -1
  569. package/dist/components/menubar/index.d.ts.map +0 -1
  570. package/dist/components/menubar/index.js.map +0 -1
  571. package/dist/components/menubar/menubar.d.ts.map +0 -1
  572. package/dist/components/menubar/menubar.js.map +0 -1
  573. package/dist/components/numeric-input/index.d.ts.map +0 -1
  574. package/dist/components/numeric-input/index.js.map +0 -1
  575. package/dist/components/numeric-input/numeric-input.d.ts.map +0 -1
  576. package/dist/components/numeric-input/numeric-input.js.map +0 -1
  577. package/dist/components/otp-input/index.d.ts.map +0 -1
  578. package/dist/components/otp-input/index.js.map +0 -1
  579. package/dist/components/otp-input/otp-input.d.ts.map +0 -1
  580. package/dist/components/otp-input/otp-input.js.map +0 -1
  581. package/dist/components/popover/index.d.ts.map +0 -1
  582. package/dist/components/popover/index.js.map +0 -1
  583. package/dist/components/popover/popover.d.ts.map +0 -1
  584. package/dist/components/popover/popover.js.map +0 -1
  585. package/dist/components/pressable/index.d.ts.map +0 -1
  586. package/dist/components/pressable/index.js.map +0 -1
  587. package/dist/components/pressable/pressable.d.ts.map +0 -1
  588. package/dist/components/pressable/pressable.js.map +0 -1
  589. package/dist/components/progress/index.d.ts.map +0 -1
  590. package/dist/components/progress/index.js.map +0 -1
  591. package/dist/components/progress/progress.d.ts.map +0 -1
  592. package/dist/components/progress/progress.js.map +0 -1
  593. package/dist/components/radio-group/index.d.ts.map +0 -1
  594. package/dist/components/radio-group/index.js.map +0 -1
  595. package/dist/components/radio-group/radio-group.d.ts.map +0 -1
  596. package/dist/components/radio-group/radio-group.js.map +0 -1
  597. package/dist/components/row/index.d.ts.map +0 -1
  598. package/dist/components/row/index.js.map +0 -1
  599. package/dist/components/row/row.d.ts.map +0 -1
  600. package/dist/components/row/row.js.map +0 -1
  601. package/dist/components/segmented-control/index.d.ts.map +0 -1
  602. package/dist/components/segmented-control/index.js.map +0 -1
  603. package/dist/components/segmented-control/segmented-control.d.ts.map +0 -1
  604. package/dist/components/segmented-control/segmented-control.js.map +0 -1
  605. package/dist/components/select/index.d.ts.map +0 -1
  606. package/dist/components/select/index.js.map +0 -1
  607. package/dist/components/select/select.d.ts.map +0 -1
  608. package/dist/components/select/select.js.map +0 -1
  609. package/dist/components/separator/index.d.ts.map +0 -1
  610. package/dist/components/separator/index.js.map +0 -1
  611. package/dist/components/separator/separator.d.ts.map +0 -1
  612. package/dist/components/separator/separator.js.map +0 -1
  613. package/dist/components/skeleton/index.d.ts.map +0 -1
  614. package/dist/components/skeleton/index.js.map +0 -1
  615. package/dist/components/skeleton/skeleton.d.ts.map +0 -1
  616. package/dist/components/skeleton/skeleton.js.map +0 -1
  617. package/dist/components/spinner/index.d.ts.map +0 -1
  618. package/dist/components/spinner/index.js.map +0 -1
  619. package/dist/components/spinner/spinner.d.ts.map +0 -1
  620. package/dist/components/spinner/spinner.js.map +0 -1
  621. package/dist/components/stack/index.d.ts.map +0 -1
  622. package/dist/components/stack/index.js.map +0 -1
  623. package/dist/components/stack/stack.d.ts.map +0 -1
  624. package/dist/components/stack/stack.js.map +0 -1
  625. package/dist/components/switch/index.d.ts.map +0 -1
  626. package/dist/components/switch/index.js.map +0 -1
  627. package/dist/components/switch/switch.d.ts.map +0 -1
  628. package/dist/components/switch/switch.js.map +0 -1
  629. package/dist/components/tabs/index.d.ts.map +0 -1
  630. package/dist/components/tabs/index.js.map +0 -1
  631. package/dist/components/tabs/tabs.d.ts.map +0 -1
  632. package/dist/components/tabs/tabs.js.map +0 -1
  633. package/dist/components/text/index.d.ts.map +0 -1
  634. package/dist/components/text/index.js.map +0 -1
  635. package/dist/components/text/text.d.ts.map +0 -1
  636. package/dist/components/text/text.js.map +0 -1
  637. package/dist/components/textarea/index.d.ts.map +0 -1
  638. package/dist/components/textarea/index.js.map +0 -1
  639. package/dist/components/textarea/textarea.d.ts.map +0 -1
  640. package/dist/components/textarea/textarea.js.map +0 -1
  641. package/dist/components/toast/index.d.ts.map +0 -1
  642. package/dist/components/toast/index.js.map +0 -1
  643. package/dist/components/toast/toast.d.ts.map +0 -1
  644. package/dist/components/toast/toast.js.map +0 -1
  645. package/dist/components/toggle/index.d.ts.map +0 -1
  646. package/dist/components/toggle/index.js.map +0 -1
  647. package/dist/components/toggle/toggle.d.ts.map +0 -1
  648. package/dist/components/toggle/toggle.js.map +0 -1
  649. package/dist/components/toggle-group/index.d.ts.map +0 -1
  650. package/dist/components/toggle-group/index.js.map +0 -1
  651. package/dist/components/toggle-group/toggle-group.d.ts.map +0 -1
  652. package/dist/components/toggle-group/toggle-group.js.map +0 -1
  653. package/dist/components/tooltip/index.d.ts.map +0 -1
  654. package/dist/components/tooltip/index.js.map +0 -1
  655. package/dist/components/tooltip/tooltip.d.ts.map +0 -1
  656. package/dist/components/tooltip/tooltip.js.map +0 -1
  657. package/dist/components/view/index.d.ts.map +0 -1
  658. package/dist/components/view/index.js.map +0 -1
  659. package/dist/components/view/view.d.ts.map +0 -1
  660. package/dist/components/view/view.js.map +0 -1
  661. package/dist/index.d.ts.map +0 -1
  662. package/dist/index.js.map +0 -1
  663. package/dist/lib/cn.d.ts.map +0 -1
  664. package/dist/lib/cn.js.map +0 -1
  665. package/dist/lib/font-context.d.ts.map +0 -1
  666. package/dist/lib/font-context.js.map +0 -1
  667. package/dist/lib/frosted-surface.d.ts.map +0 -1
  668. package/dist/lib/frosted-surface.js.map +0 -1
  669. package/dist/lib/index.d.ts +0 -6
  670. package/dist/lib/index.d.ts.map +0 -1
  671. package/dist/lib/index.js +0 -6
  672. package/dist/lib/index.js.map +0 -1
  673. package/dist/lib/interaction-tokens.d.ts.map +0 -1
  674. package/dist/lib/interaction-tokens.js.map +0 -1
  675. package/dist/lib/portal.d.ts.map +0 -1
  676. package/dist/lib/portal.js.map +0 -1
  677. package/dist/lib/react-native-classname.d.ts.map +0 -1
  678. package/dist/lib/react-native-classname.js.map +0 -1
  679. package/dist/lib/theme-bridge.d.ts.map +0 -1
  680. package/dist/lib/theme-bridge.js.map +0 -1
  681. package/dist/lib/theme-colors.d.ts.map +0 -1
  682. package/dist/lib/theme-colors.js.map +0 -1
  683. package/dist/lib/tv.d.ts.map +0 -1
  684. package/dist/lib/tv.js.map +0 -1
  685. package/dist/lib/visual-tokens.d.ts.map +0 -1
  686. package/dist/lib/visual-tokens.js.map +0 -1
  687. package/dist/vite.d.ts.map +0 -1
  688. package/dist/vite.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { View, ScrollView, Pressable, useWindowDimensions } from 'react-native';
2
+ import { Pressable, ScrollView, StyleSheet, useWindowDimensions, View, } from 'react-native';
3
3
  import { SafeAreaView, SafeAreaProvider } from 'react-native-safe-area-context';
4
4
  import { Text } from '../../components/text';
5
5
  import { Spinner } from '../../components/spinner';
@@ -10,26 +10,29 @@ function FormModalScreen({ className, title, subtitle, leftSlot, rightSlot, onCl
10
10
  const { height: screenHeight } = useWindowDimensions();
11
11
  const interaction = useInteractionTokens();
12
12
  const visual = useVisualTokens();
13
- const content = loading ? (_jsx(SafeAreaView, { style: { flex: 1 }, className: "bg-background", edges: ['top'], children: _jsx(View, { style: { flex: 1 }, className: "items-center justify-center", children: _jsx(Spinner, { color: loadingSpinnerColor }) }) })) : (_jsxs(SafeAreaView, { style: { flex: 1 }, className: cn('bg-background', className), edges: ['top'], ...props, children: [_jsxs(View, { className: "flex-row items-center px-4 py-3 border-b border-border", children: [_jsx(View, { className: "w-12", children: leftSlot ? (leftSlot) : onClose ? (_jsx(Pressable, { onPress: onClose, disabled: saving, className: "p-2 -m-2 items-center justify-center", style: (state) => {
14
- const interactiveStyle = withInteractivePressableStyle(undefined, interaction, {
15
- disabled: saving,
16
- pressedVariant: 'default',
17
- });
18
- const resolved = typeof interactiveStyle === 'function'
19
- ? interactiveStyle(state)
20
- : interactiveStyle;
21
- return [
22
- {
23
- minWidth: visual.touchTargetMinSize,
24
- minHeight: visual.touchTargetMinSize,
25
- },
26
- resolved,
27
- ];
28
- }, accessibilityRole: "button", accessibilityLabel: "Close", children: _jsx(Text, { className: "text-foreground text-xl font-medium", children: "\u00D7" }) })) : null }), _jsxs(View, { className: "flex-1 items-center", children: [_jsx(Text, { variant: "title", className: "text-center", children: title }), subtitle && (_jsx(Text, { variant: "caption", className: "text-center text-muted-foreground", children: subtitle }))] }), _jsx(View, { className: "w-12 items-end", children: rightSlot })] }), saving && (_jsxs(View, { className: "bg-primary px-4 py-2 flex-row items-center justify-center gap-2", children: [_jsx(Spinner, { size: "sm", color: savingSpinnerColor }), _jsx(Text, { className: "text-primary-foreground text-sm", children: savingText })] })), _jsx(ScrollView, { style: { flex: 1 }, contentContainerStyle: {
29
- padding: 16,
30
- minHeight: screenHeight * visual.formModalContentMinHeightRatio,
31
- }, scrollEnabled: !saving && scrollEnabled, keyboardShouldPersistTaps: "handled", children: children })] }));
13
+ // `className` is silently dropped on react-native-safe-area-context's `SafeAreaView`:
14
+ // it is a native view, and Uniwind only wraps React Native's own components. The
15
+ // background — and any `className` a caller passes — has to go on a child.
16
+ const content = loading ? (_jsx(SafeAreaView, { style: styles.fill, edges: ['top'], children: _jsx(View, { style: styles.fill, className: "bg-background items-center justify-center", children: _jsx(Spinner, { color: loadingSpinnerColor }) }) })) : (_jsx(SafeAreaView, { style: styles.fill, edges: ['top'], children: _jsxs(View, { style: styles.fill, className: cn('bg-background', className), ...props, children: [_jsxs(View, { className: "flex-row items-center px-4 py-3 border-b border-border", children: [_jsx(View, { className: "w-12", children: leftSlot ? (leftSlot) : onClose ? (_jsx(Pressable, { onPress: onClose, disabled: saving, className: "p-2 -m-2 items-center justify-center", style: (state) => {
17
+ const interactiveStyle = withInteractivePressableStyle(undefined, interaction, {
18
+ disabled: saving,
19
+ pressedVariant: 'default',
20
+ });
21
+ const resolved = typeof interactiveStyle === 'function'
22
+ ? interactiveStyle(state)
23
+ : interactiveStyle;
24
+ return [
25
+ {
26
+ minWidth: visual.touchTargetMinSize,
27
+ minHeight: visual.touchTargetMinSize,
28
+ },
29
+ resolved,
30
+ ];
31
+ }, accessibilityRole: "button", accessibilityLabel: "Close", children: _jsx(Text, { className: "text-foreground text-xl font-medium", children: "\u00D7" }) })) : null }), _jsxs(View, { className: "flex-1 items-center", children: [_jsx(Text, { variant: "title", className: "text-center", children: title }), subtitle && (_jsx(Text, { variant: "caption", className: "text-center text-muted-foreground", children: subtitle }))] }), _jsx(View, { className: "w-12 items-end", children: rightSlot })] }), saving && (_jsxs(View, { className: "bg-primary px-4 py-2 flex-row items-center justify-center gap-2", children: [_jsx(Spinner, { size: "sm", color: savingSpinnerColor }), _jsx(Text, { className: "text-primary-foreground text-sm", children: savingText })] })), _jsx(ScrollView, { style: { flex: 1 }, contentContainerStyle: {
32
+ padding: 16,
33
+ minHeight: screenHeight * visual.formModalContentMinHeightRatio,
34
+ }, scrollEnabled: !saving && scrollEnabled, keyboardShouldPersistTaps: "handled", children: children })] }) }));
32
35
  return (_jsx(SafeAreaProvider, { style: { flex: 1, minHeight: screenHeight }, children: content }));
33
36
  }
37
+ const styles = StyleSheet.create({ fill: { flex: 1 } });
34
38
  export { FormModalScreen };
35
- //# sourceMappingURL=form-modal-screen.js.map
@@ -1,4 +1,6 @@
1
1
  export { AppShell, type AppShellProps } from './app-shell';
2
+ export { KeyboardAwareScreen, type KeyboardAwareScreenProps } from './keyboard-aware-screen';
3
+ export { DockedInput, type DockedInputProps } from './docked-input';
2
4
  export { ActionBar, type ActionBarProps } from './action-bar';
3
5
  export { ConfirmActionSheet, type ConfirmActionSheetAction, type ConfirmActionSheetActionVariant, type ConfirmActionSheetProps, } from './confirm-action-sheet';
4
6
  export { ContentSkeleton, type ContentSkeletonProps } from './content-skeleton';
@@ -13,5 +15,3 @@ export { PullToRefreshScrollView, type PullToRefreshScrollViewProps, } from './p
13
15
  export { Sheet, SheetHeader, SheetContent, SheetFooter, SheetClose } from './sheet';
14
16
  export type { SheetProps, SheetHeaderProps, SheetContentProps, SheetFooterProps, SheetCloseProps, } from './sheet';
15
17
  export { SmartInput, type SmartInputProps } from './smart-input';
16
- export { OnboardingScreen, type OnboardingScreenProps, type OnboardingSlide, } from './onboarding-screen';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,6 @@
1
1
  export { AppShell } from './app-shell';
2
+ export { KeyboardAwareScreen } from './keyboard-aware-screen';
3
+ export { DockedInput } from './docked-input';
2
4
  export { ActionBar } from './action-bar';
3
5
  export { ConfirmActionSheet, } from './confirm-action-sheet';
4
6
  export { ContentSkeleton } from './content-skeleton';
@@ -12,5 +14,3 @@ export { LoadingScreen } from './loading-screen';
12
14
  export { PullToRefreshScrollView, } from './pull-to-refresh-scroll-view';
13
15
  export { Sheet, SheetHeader, SheetContent, SheetFooter, SheetClose } from './sheet';
14
16
  export { SmartInput } from './smart-input';
15
- export { OnboardingScreen, } from './onboarding-screen';
16
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ import { type KeyboardAvoidingViewProps } from 'react-native';
2
+ export interface KeyboardAwareScreenProps extends KeyboardAvoidingViewProps {
3
+ /** Override the platform default. iOS uses padding; Android lets the window resize. */
4
+ behavior?: KeyboardAvoidingViewProps['behavior'];
5
+ }
6
+ /**
7
+ * Screen root for layouts with controls docked to the bottom edge. It gives the
8
+ * whole layout one keyboard policy so inputs do not add their own avoidance and
9
+ * accidentally apply the keyboard offset twice.
10
+ */
11
+ export declare function KeyboardAwareScreen({ behavior, className, ...props }: KeyboardAwareScreenProps): import("react").JSX.Element;
12
+ export declare namespace KeyboardAwareScreen {
13
+ var displayName: string;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Platform, KeyboardAvoidingView } from 'react-native';
3
+ import { cn } from '../../lib/cn';
4
+ /**
5
+ * Screen root for layouts with controls docked to the bottom edge. It gives the
6
+ * whole layout one keyboard policy so inputs do not add their own avoidance and
7
+ * accidentally apply the keyboard offset twice.
8
+ */
9
+ export function KeyboardAwareScreen({ behavior = Platform.OS === 'ios' ? 'padding' : undefined, className, ...props }) {
10
+ return (_jsx(KeyboardAvoidingView, { behavior: behavior, className: cn('flex-1 bg-background', className), ...props }));
11
+ }
12
+ KeyboardAwareScreen.displayName = 'KeyboardAwareScreen';
@@ -5,5 +5,4 @@ export interface LoadingScreenProps extends ViewProps {
5
5
  /** Hex color for spinner. ActivityIndicator requires hex. */
6
6
  spinnerColor?: string;
7
7
  }
8
- export declare function LoadingScreen({ message, size, spinnerColor, className, ...props }: LoadingScreenProps): import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=loading-screen.d.ts.map
8
+ export declare function LoadingScreen({ message, size, spinnerColor, className, ...props }: LoadingScreenProps): import("react").JSX.Element;
@@ -3,13 +3,11 @@ import { View } from 'react-native';
3
3
  import { Text } from '../../components/text';
4
4
  import { Spinner } from '../../components/spinner';
5
5
  import { cn } from '../../lib/cn';
6
- // ─── Component ───────────────────────────────────────────────
6
+ const SPINNER_SIZE_CLASS = {
7
+ sm: 'h-6 w-6',
8
+ md: 'h-10 w-10',
9
+ lg: 'h-16 w-16',
10
+ };
7
11
  export function LoadingScreen({ message, size = 'md', spinnerColor, className, ...props }) {
8
- const spinnerSizes = {
9
- sm: 'h-6 w-6',
10
- md: 'h-10 w-10',
11
- lg: 'h-16 w-16',
12
- };
13
- return (_jsxs(View, { className: cn('flex-1 items-center justify-center bg-background', className), ...props, children: [_jsx(View, { className: spinnerSizes[size], children: _jsx(Spinner, { color: spinnerColor }) }), message && _jsx(Text, { className: "mt-4 text-muted-foreground", children: message })] }));
12
+ return (_jsxs(View, { className: cn('flex-1 items-center justify-center bg-background', className), ...props, children: [_jsx(View, { className: SPINNER_SIZE_CLASS[size], children: _jsx(Spinner, { color: spinnerColor }) }), message && _jsx(Text, { className: "mt-4 text-muted-foreground", children: message })] }));
14
13
  }
15
- //# sourceMappingURL=loading-screen.js.map
@@ -14,8 +14,7 @@ export interface PageSkeletonProps extends ViewProps {
14
14
  /** Optional placeholder header (when no real header is available yet). */
15
15
  headerPlaceholder?: boolean | PageSkeletonHeaderPlaceholder;
16
16
  }
17
- export declare function PageSkeleton({ variant, count, padding, header, headerPlaceholder, className, ...props }: PageSkeletonProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function PageSkeleton({ variant, count, padding, header, headerPlaceholder, className, ...props }: PageSkeletonProps): import("react").JSX.Element;
18
18
  export declare namespace PageSkeleton {
19
19
  var displayName: string;
20
20
  }
21
- //# sourceMappingURL=page-skeleton.d.ts.map
@@ -4,36 +4,54 @@ import { Skeleton } from '../../components/skeleton';
4
4
  import { Stack } from '../../components/stack';
5
5
  import { Row } from '../../components/row';
6
6
  import { cn } from '../../lib/cn';
7
- const PADDING_CLASS = {
8
- none: 'p-0',
9
- sm: 'p-3',
10
- default: 'p-4',
11
- lg: 'p-6',
12
- };
7
+ import { useVisualTokens } from '../../lib/visual-tokens';
8
+ import { surfacePadding, surfaceRadius } from '../../lib/recipes';
9
+ function containerPadding(visual, padding) {
10
+ return { padding: surfacePadding(visual, padding) };
11
+ }
12
+ function cardSurface(visual) {
13
+ return {
14
+ borderRadius: surfaceRadius(visual, 'xl'),
15
+ borderWidth: visual.borderWidthHairline,
16
+ padding: surfacePadding(visual, 'sm'),
17
+ };
18
+ }
13
19
  function HeaderPlaceholder({ variant }) {
20
+ const visual = useVisualTokens();
14
21
  const compact = variant === 'compact';
15
- return (_jsx(View, { className: cn(compact ? 'px-4 pt-3 pb-2' : 'px-4 pt-4 pb-3'), children: _jsxs(Row, { align: "center", justify: "between", children: [_jsxs(Row, { align: "center", gap: "sm", children: [_jsx(Skeleton, { className: cn('rounded-full', compact ? 'h-8 w-8' : 'h-10 w-10') }), _jsxs(Stack, { gap: "xs", children: [_jsx(Skeleton, { className: cn('h-3 rounded-full', compact ? 'w-24' : 'w-28') }), _jsx(Skeleton, { className: cn('h-3 rounded-full', compact ? 'w-16' : 'w-20') })] })] }), _jsx(Skeleton, { className: cn('rounded-full', compact ? 'h-8 w-8' : 'h-10 w-10') })] }) }));
22
+ return (_jsx(View, { className: cn(compact ? 'pt-3 pb-2' : 'pt-4 pb-3'), style: { paddingHorizontal: surfacePadding(visual, 'sm') }, children: _jsxs(Row, { align: "center", justify: "between", children: [_jsxs(Row, { align: "center", gap: "sm", children: [_jsx(Skeleton, { className: cn('rounded-full', compact ? 'h-8 w-8' : 'h-10 w-10') }), _jsxs(Stack, { gap: "xs", children: [_jsx(Skeleton, { className: cn('h-3 rounded-full', compact ? 'w-24' : 'w-28') }), _jsx(Skeleton, { className: cn('h-3 rounded-full', compact ? 'w-16' : 'w-20') })] })] }), _jsx(Skeleton, { className: cn('rounded-full', compact ? 'h-8 w-8' : 'h-10 w-10') })] }) }));
16
23
  }
17
- // ─── Variant internals ────────────────────────────────────────
18
- function DashboardVariant({ className, padding = 'default', ...props }) {
19
- return (_jsx(View, { className: cn(PADDING_CLASS[padding], className), ...props, children: _jsxs(Stack, { gap: "md", children: [_jsxs(View, { className: "rounded-2xl border border-border bg-card p-4", children: [_jsxs(Row, { className: "mb-3 gap-2", align: "center", children: [_jsx(Skeleton, { className: "h-6 w-16 rounded-full" }), _jsx(Skeleton, { className: "h-6 w-20 rounded-full" }), _jsx(Skeleton, { className: "h-6 w-14 rounded-full" })] }), _jsx(Skeleton, { className: "h-4 w-full" }), _jsx(Skeleton, { className: "mt-1 h-4 w-4/5" })] }), _jsx(Row, { gap: "sm", align: "stretch", children: [1, 2, 3].map((i) => (_jsxs(View, { className: "flex-1 rounded-2xl border border-border bg-card p-3", children: [_jsx(Skeleton, { className: "mb-2 h-3 w-2/3" }), _jsx(Skeleton, { className: "h-6 w-1/2" })] }, i))) }), _jsx(Skeleton, { className: "h-4 w-1/3" }), [1, 2, 3].map((i) => (_jsxs(Row, { className: "items-center gap-3 py-3", align: "center", children: [_jsx(Skeleton, { className: "h-10 w-10 shrink-0 rounded-full" }), _jsxs(Stack, { className: "flex-1", gap: "xs", children: [_jsx(Skeleton, { className: "h-4 w-3/4" }), _jsx(Skeleton, { className: "h-3 w-1/2" })] })] }, i)))] }) }));
24
+ function DashboardVariant({ className, padding = 'default', style, ...props }) {
25
+ const visual = useVisualTokens();
26
+ return (_jsx(View, { className: className, style: [containerPadding(visual, padding), style], ...props, children: _jsxs(Stack, { gap: "md", children: [_jsxs(View, { className: "border-border bg-card", style: cardSurface(visual), children: [_jsxs(Row, { className: "mb-3 gap-2", align: "center", children: [_jsx(Skeleton, { className: "h-6 w-16 rounded-full" }), _jsx(Skeleton, { className: "h-6 w-20 rounded-full" }), _jsx(Skeleton, { className: "h-6 w-14 rounded-full" })] }), _jsx(Skeleton, { className: "h-4 w-full" }), _jsx(Skeleton, { className: "mt-1 h-4 w-4/5" })] }), _jsx(Row, { gap: "sm", align: "stretch", children: [1, 2, 3].map((i) => (_jsxs(View, { className: "flex-1 border-border bg-card", style: cardSurface(visual), children: [_jsx(Skeleton, { className: "mb-2 h-3 w-2/3" }), _jsx(Skeleton, { className: "h-6 w-1/2" })] }, i))) }), _jsx(Skeleton, { className: "h-4 w-1/3" }), [1, 2, 3].map((i) => (_jsxs(Row, { className: "items-center gap-3", style: { paddingVertical: visual.controlPaddingYDefault }, align: "center", children: [_jsx(Skeleton, { className: "h-10 w-10 shrink-0 rounded-full" }), _jsxs(Stack, { className: "flex-1", gap: "xs", children: [_jsx(Skeleton, { className: "h-4 w-3/4" }), _jsx(Skeleton, { className: "h-3 w-1/2" })] })] }, i)))] }) }));
20
27
  }
21
- function ListVariant({ count = 3, className, padding = 'default', ...props }) {
22
- return (_jsx(View, { className: cn(PADDING_CLASS[padding], className), ...props, children: _jsxs(Stack, { gap: "md", children: [_jsx(Skeleton, { className: "h-5 w-1/3" }), Array.from({ length: count }).map((_, i) => (_jsxs(Row, { className: "items-center gap-3 border-b border-border pb-4", align: "center", children: [_jsx(Skeleton, { className: "h-12 w-12 shrink-0 rounded-full" }), _jsxs(Stack, { className: "flex-1", gap: "xs", children: [_jsx(Skeleton, { className: "h-4 w-3/4" }), _jsx(Skeleton, { className: "h-3 w-1/2" })] })] }, i)))] }) }));
28
+ function ListVariant({ count = 3, className, padding = 'default', style, ...props }) {
29
+ const visual = useVisualTokens();
30
+ return (_jsx(View, { className: className, style: [containerPadding(visual, padding), style], ...props, children: _jsxs(Stack, { gap: "md", children: [_jsx(Skeleton, { className: "h-5 w-1/3" }), Array.from({ length: count }).map((_, i) => (_jsxs(Row, { className: "items-center gap-3 border-border", style: {
31
+ borderBottomWidth: visual.borderWidthHairline,
32
+ paddingBottom: surfacePadding(visual, 'sm'),
33
+ }, align: "center", children: [_jsx(Skeleton, { className: "h-12 w-12 shrink-0 rounded-full" }), _jsxs(Stack, { className: "flex-1", gap: "xs", children: [_jsx(Skeleton, { className: "h-4 w-3/4" }), _jsx(Skeleton, { className: "h-3 w-1/2" })] })] }, i)))] }) }));
23
34
  }
24
- function SettingsVariant({ count = 4, className, padding = 'default', ...props }) {
25
- return (_jsx(View, { className: cn(PADDING_CLASS[padding], className), ...props, children: _jsx(Stack, { gap: "none", children: Array.from({ length: count }).map((_, i) => (_jsxs(Row, { className: "items-center justify-between border-b border-border py-4", align: "center", children: [_jsx(Skeleton, { className: "h-4 w-1/3" }), _jsx(Skeleton, { className: "h-4 w-16" })] }, i))) }) }));
35
+ function SettingsVariant({ count = 4, className, padding = 'default', style, ...props }) {
36
+ const visual = useVisualTokens();
37
+ return (_jsx(View, { className: className, style: [containerPadding(visual, padding), style], ...props, children: _jsx(Stack, { gap: "none", children: Array.from({ length: count }).map((_, i) => (_jsxs(Row, { className: "items-center justify-between border-border", style: {
38
+ borderBottomWidth: visual.borderWidthHairline,
39
+ paddingVertical: surfacePadding(visual, 'sm'),
40
+ }, align: "center", children: [_jsx(Skeleton, { className: "h-4 w-1/3" }), _jsx(Skeleton, { className: "h-4 w-16" })] }, i))) }) }));
26
41
  }
27
- function CardVariant({ className, padding = 'default', ...props }) {
28
- return (_jsx(View, { className: cn(PADDING_CLASS[padding], className), ...props, children: _jsx(View, { className: "rounded-2xl border border-border bg-card overflow-hidden", children: _jsxs(View, { className: "p-4 gap-3", children: [_jsx(Skeleton, { className: "h-5 w-2/3" }), _jsx(Skeleton, { className: "h-3 w-full" }), _jsx(Skeleton, { className: "h-3 w-full" }), _jsx(Skeleton, { className: "h-3 w-4/5" }), _jsx(Skeleton, { className: "h-3 w-3/4" })] }) }) }));
42
+ function CardVariant({ className, padding = 'default', style, ...props }) {
43
+ const visual = useVisualTokens();
44
+ return (_jsx(View, { className: className, style: [containerPadding(visual, padding), style], ...props, children: _jsx(View, { className: "border-border bg-card overflow-hidden", style: {
45
+ borderRadius: surfaceRadius(visual, 'xl'),
46
+ borderWidth: visual.borderWidthHairline,
47
+ }, children: _jsxs(View, { className: "gap-3", style: { padding: surfacePadding(visual, 'sm') }, children: [_jsx(Skeleton, { className: "h-5 w-2/3" }), _jsx(Skeleton, { className: "h-3 w-full" }), _jsx(Skeleton, { className: "h-3 w-full" }), _jsx(Skeleton, { className: "h-3 w-4/5" }), _jsx(Skeleton, { className: "h-3 w-3/4" })] }) }) }));
29
48
  }
30
- function GenericVariant({ className, padding = 'default', ...props }) {
31
- return (_jsx(View, { className: cn(PADDING_CLASS[padding], className), ...props, children: _jsxs(Stack, { gap: "lg", children: [_jsx(Skeleton, { className: "h-6 w-1/2" }), _jsxs(Stack, { gap: "sm", children: [_jsx(Skeleton, { className: "h-4 w-full" }), _jsx(Skeleton, { className: "h-4 w-5/6" }), _jsx(Skeleton, { className: "h-4 w-4/5" })] })] }) }));
49
+ function GenericVariant({ className, padding = 'default', style, ...props }) {
50
+ const visual = useVisualTokens();
51
+ return (_jsx(View, { className: className, style: [containerPadding(visual, padding), style], ...props, children: _jsxs(Stack, { gap: "lg", children: [_jsx(Skeleton, { className: "h-6 w-1/2" }), _jsxs(Stack, { gap: "sm", children: [_jsx(Skeleton, { className: "h-4 w-full" }), _jsx(Skeleton, { className: "h-4 w-5/6" }), _jsx(Skeleton, { className: "h-4 w-4/5" })] })] }) }));
32
52
  }
33
- // ─── Component ───────────────────────────────────────────────
34
53
  export function PageSkeleton({ variant, count, padding = 'default', header, headerPlaceholder = false, className, ...props }) {
35
54
  const resolvedHeaderPlaceholder = headerPlaceholder === 'compact' ? 'compact' : 'default';
36
55
  return (_jsxs(View, { className: cn('w-full', className), ...props, children: [header, !header && headerPlaceholder && _jsx(HeaderPlaceholder, { variant: resolvedHeaderPlaceholder }), variant === 'dashboard' ? (_jsx(DashboardVariant, { padding: padding })) : variant === 'list' ? (_jsx(ListVariant, { variant: "list", count: count ?? 3, padding: padding })) : variant === 'settings' ? (_jsx(SettingsVariant, { variant: "settings", count: count ?? 4, padding: padding })) : variant === 'card' ? (_jsx(CardVariant, { padding: padding })) : (_jsx(GenericVariant, { padding: padding }))] }));
37
56
  }
38
57
  PageSkeleton.displayName = 'PageSkeleton';
39
- //# sourceMappingURL=page-skeleton.js.map
@@ -1,9 +1,13 @@
1
1
  import { type ScrollViewProps } from 'react-native';
2
- export interface PullToRefreshScrollViewProps extends ScrollViewProps {
2
+ export interface PullToRefreshScrollViewProps extends Omit<ScrollViewProps, 'refreshControl'> {
3
3
  refreshing: boolean;
4
- onRefresh: () => void;
4
+ /**
5
+ * Refreshing is almost always async, so the signature says so. Nothing here awaits it —
6
+ * the spinner is driven by `refreshing`, which the owner controls — so a handler that
7
+ * can reject must catch its own errors.
8
+ */
9
+ onRefresh: () => void | Promise<void>;
5
10
  /** Override tint/colors. Defaults to theme primary. */
6
11
  refreshColor?: string;
7
12
  }
8
- export declare function PullToRefreshScrollView({ refreshing, onRefresh, refreshColor, className, children, ...props }: PullToRefreshScrollViewProps): import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=pull-to-refresh-scroll-view.d.ts.map
13
+ export declare function PullToRefreshScrollView({ refreshing, onRefresh, refreshColor, className, children, alwaysBounceVertical, accessibilityActions, onAccessibilityAction, ...props }: PullToRefreshScrollViewProps): import("react").JSX.Element;
@@ -2,10 +2,23 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { RefreshControl, ScrollView } from 'react-native';
3
3
  import { useThemeColors } from '../../lib/theme-colors';
4
4
  import { cn } from '../../lib/cn';
5
- // ─── Component ───────────────────────────────────────────────
6
- export function PullToRefreshScrollView({ refreshing, onRefresh, refreshColor, className, children, ...props }) {
5
+ const REFRESH_ACTION = 'refresh';
6
+ export function PullToRefreshScrollView({ refreshing, onRefresh, refreshColor, className, children, alwaysBounceVertical = true, accessibilityActions, onAccessibilityAction, ...props }) {
7
7
  const colors = useThemeColors();
8
8
  const tintColor = refreshColor ?? colors.primary;
9
- return (_jsx(ScrollView, { className: cn('flex-1', className), refreshControl: _jsx(RefreshControl, { refreshing: refreshing, onRefresh: onRefresh, tintColor: tintColor, colors: [tintColor] }), ...props, children: children }));
9
+ // Pulling is a drag, and a screen reader user cannot drag. The same refresh is
10
+ // offered as a named accessibility action, alongside any the caller supplies.
11
+ const actions = [
12
+ ...(accessibilityActions ?? []).filter((action) => action.name !== REFRESH_ACTION),
13
+ { name: REFRESH_ACTION, label: 'Refresh' },
14
+ ];
15
+ const handleAccessibilityAction = (event) => {
16
+ if (event.nativeEvent.actionName === REFRESH_ACTION) {
17
+ if (!refreshing)
18
+ void onRefresh();
19
+ return;
20
+ }
21
+ onAccessibilityAction?.(event);
22
+ };
23
+ return (_jsx(ScrollView, { className: cn('flex-1', className), alwaysBounceVertical: alwaysBounceVertical, accessibilityActions: actions, onAccessibilityAction: handleAccessibilityAction, refreshControl: _jsx(RefreshControl, { refreshing: refreshing, onRefresh: () => void onRefresh(), tintColor: tintColor, colors: [tintColor] }), ...props, children: children }));
10
24
  }
11
- //# sourceMappingURL=pull-to-refresh-scroll-view.js.map
@@ -9,8 +9,7 @@ export interface ScreenSkeletonProps extends Omit<ViewProps, 'children'> {
9
9
  headerPlaceholder?: boolean | PageSkeletonHeaderPlaceholder;
10
10
  className?: string;
11
11
  }
12
- export declare function ScreenSkeleton({ variant, count, padding, header, headerPlaceholder, className, ...props }: ScreenSkeletonProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function ScreenSkeleton({ variant, count, padding, header, headerPlaceholder, className, ...props }: ScreenSkeletonProps): import("react").JSX.Element;
13
13
  export declare namespace ScreenSkeleton {
14
14
  var displayName: string;
15
15
  }
16
- //# sourceMappingURL=screen-skeleton.d.ts.map
@@ -5,4 +5,3 @@ export function ScreenSkeleton({ variant = 'generic', count, padding = 'default'
5
5
  return (_jsx(PageSkeleton, { variant: variant, count: count, padding: padding, header: header, headerPlaceholder: headerPlaceholder, className: cn('flex-1', className), ...props }));
6
6
  }
7
7
  ScreenSkeleton.displayName = 'ScreenSkeleton';
8
- //# sourceMappingURL=screen-skeleton.js.map
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type ViewProps } from 'react-native';
2
+ import { type ScrollViewProps, type PressableProps, type ViewProps } from 'react-native';
3
3
  import { type FrostedSurfaceProps } from '../../lib/frosted-surface';
4
4
  export interface SheetProps extends FrostedSurfaceProps {
5
5
  open: boolean;
@@ -14,18 +14,18 @@ export interface SheetHeaderProps extends ViewProps {
14
14
  title?: string;
15
15
  description?: string;
16
16
  }
17
- export interface SheetContentProps extends ViewProps {
17
+ export interface SheetContentProps extends ScrollViewProps {
18
18
  scrollEnabled?: boolean;
19
19
  }
20
20
  export interface SheetFooterProps extends ViewProps {
21
21
  }
22
- export interface SheetCloseProps extends ViewProps {
22
+ export interface SheetCloseProps extends PressableProps {
23
23
  children: React.ReactNode;
24
24
  asChild?: boolean;
25
+ className?: string;
25
26
  }
26
- export declare function Sheet({ open, onOpenChange, children, maxHeight, maxWidth: maxWidthProp, frosted, blurIntensity, blurTintToken, }: SheetProps): import("react/jsx-runtime").JSX.Element;
27
- export declare function SheetHeader({ title, description, className, children, ...props }: SheetHeaderProps): import("react/jsx-runtime").JSX.Element;
28
- export declare function SheetContent({ scrollEnabled, className, children, ...props }: SheetContentProps): import("react/jsx-runtime").JSX.Element;
29
- export declare function SheetFooter({ className, ...props }: SheetFooterProps): import("react/jsx-runtime").JSX.Element;
30
- export declare function SheetClose({ children, asChild, className, ...props }: SheetCloseProps): import("react/jsx-runtime").JSX.Element;
31
- //# sourceMappingURL=sheet.d.ts.map
27
+ export declare function Sheet({ open, onOpenChange, children, maxHeight, maxWidth: maxWidthProp, frosted, blurIntensity, blurTintToken, }: SheetProps): React.JSX.Element;
28
+ export declare function SheetHeader({ title, description, className, children, style, ...props }: SheetHeaderProps): React.JSX.Element;
29
+ export declare function SheetContent({ scrollEnabled, className, children, style, contentContainerStyle, keyboardShouldPersistTaps, nestedScrollEnabled, ...props }: SheetContentProps): React.JSX.Element;
30
+ export declare function SheetFooter({ className, style, ...props }: SheetFooterProps): React.JSX.Element;
31
+ export declare function SheetClose({ children, asChild, className, onPress, ...props }: SheetCloseProps): React.JSX.Element;
@@ -1,20 +1,24 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { createContext, useContext } from 'react';
2
+ import React, { createContext, useCallback, useContext, useMemo } from 'react';
3
3
  import { Modal, Platform, Pressable, ScrollView, useWindowDimensions, View, } from 'react-native';
4
4
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
5
  import { Text } from '../../components/text';
6
6
  import { cn } from '../../lib/cn';
7
+ import { composeEventHandlers } from '../../lib/compose-event-handlers';
7
8
  import { useThemeColors } from '../../lib/theme-colors';
8
9
  import { useInteractionTokens, withInteractivePressableStyle } from '../../lib/interaction-tokens';
10
+ import { useTapOnly } from '../../lib/tap-only';
9
11
  import { useVisualTokens } from '../../lib/visual-tokens';
12
+ import { surfacePadding, surfaceRadius, typographyStyle } from '../../lib/recipes';
10
13
  import { useFrostedSurface, useFrostedBackdrop, } from '../../lib/frosted-surface';
11
14
  const SheetContext = createContext({ onClose: () => { } });
12
- // ─── Components ───────────────────────────────────────────────
13
15
  export function Sheet({ open, onOpenChange, children, maxHeight = 'full', maxWidth: maxWidthProp, frosted = false, blurIntensity, blurTintToken, }) {
14
16
  const insets = useSafeAreaInsets();
15
17
  const colors = useThemeColors();
16
18
  const visual = useVisualTokens();
17
- const onClose = () => onOpenChange(false);
19
+ const onClose = useCallback(() => onOpenChange(false), [onOpenChange]);
20
+ const backdropPress = useTapOnly(onClose);
21
+ const contextValue = useMemo(() => ({ onClose }), [onClose]);
18
22
  const frostedSurface = useFrostedSurface({
19
23
  frosted,
20
24
  blurIntensity,
@@ -31,7 +35,6 @@ export function Sheet({ open, onOpenChange, children, maxHeight = 'full', maxWid
31
35
  });
32
36
  const { height: screenHeight, width: windowWidth } = useWindowDimensions();
33
37
  const maxWidth = maxWidthProp ?? visual.sheetMaxWidth;
34
- // Full width on phones; cap at maxWidth only on tablets/web (breakpoint)
35
38
  const widthStyle = typeof maxWidth === 'number' && windowWidth >= visual.sheetTabletBreakpoint
36
39
  ? { maxWidth, alignSelf: 'center', width: maxWidth }
37
40
  : {};
@@ -43,42 +46,69 @@ export function Sheet({ open, onOpenChange, children, maxHeight = 'full', maxWid
43
46
  minHeight: Math.min(screenHeight * visual.sheetHalfMaxHeightRatio, visual.sheetHalfMinHeight),
44
47
  }
45
48
  : { maxHeight };
49
+ // A full-height sheet reaches the top of the screen, and the host Modal is
50
+ // status-bar-translucent, so its header lands underneath the clock and battery. A
51
+ // shorter sheet starts below the status bar and needs no inset of its own.
52
+ const isFullHeight = maxHeight === 'full';
46
53
  const sheetStyle = [
47
54
  maxHeightStyle,
48
- { paddingBottom: Math.max(insets.bottom, 16) },
55
+ {
56
+ paddingTop: isFullHeight ? insets.top : 0,
57
+ paddingBottom: Math.max(insets.bottom, 16),
58
+ // Rounded top corners only read as "a sheet over something" when there is
59
+ // something behind them. At full height they just fight the device's own corners.
60
+ borderTopLeftRadius: isFullHeight ? 0 : surfaceRadius(visual, 'xl'),
61
+ borderTopRightRadius: isFullHeight ? 0 : surfaceRadius(visual, 'xl'),
62
+ borderWidth: visual.borderWidthHairline,
63
+ },
49
64
  widthStyle,
50
65
  frostedSurface.surfaceStyle,
51
66
  ];
52
- return (_jsx(Modal, { visible: open, transparent: true, animationType: "slide", onRequestClose: onClose, statusBarTranslucent: Platform.OS === 'android', presentationStyle: "overFullScreen", children: _jsxs(View, { className: "flex-1 justify-end", style: { backgroundColor: frosted ? 'transparent' : colors.overlay }, children: [frostedBackdrop, _jsx(Pressable, { className: "flex-1", onPress: onClose }), _jsxs(View, { className: cn('rounded-t-xl border border-border overflow-hidden relative', frosted ? 'bg-transparent' : 'bg-background'), style: sheetStyle, children: [frostedSurface.overlay, _jsx(SheetContext.Provider, { value: { onClose }, children: children })] })] }) }));
67
+ return (_jsx(Modal, { visible: open, transparent: true, animationType: "slide", onRequestClose: onClose, statusBarTranslucent: Platform.OS === 'android', navigationBarTranslucent: Platform.OS === 'android', presentationStyle: "overFullScreen", children: _jsxs(View, { className: "flex-1 justify-end", style: { backgroundColor: frosted ? 'transparent' : colors.overlay }, children: [frostedBackdrop, _jsx(Pressable, { accessible: false, importantForAccessibility: "no", className: "flex-1", ...backdropPress }), _jsxs(View, { className: cn('border-border overflow-hidden relative', frosted ? 'bg-transparent' : 'bg-background'), style: sheetStyle, children: [frostedSurface.overlay, _jsx(SheetContext.Provider, { value: contextValue, children: children })] })] }) }));
53
68
  }
54
- export function SheetHeader({ title, description, className, children, ...props }) {
69
+ export function SheetHeader({ title, description, className, children, style, ...props }) {
55
70
  const { onClose } = useContext(SheetContext);
56
71
  const interaction = useInteractionTokens();
57
- return (_jsxs(View, { className: cn('flex-row items-center justify-between gap-3 border-b border-border px-4 py-3', className), ...props, children: [_jsxs(View, { className: "flex-1 min-w-0 gap-0.5 self-stretch justify-center", children: [title && (_jsx(Text, { className: "text-base font-semibold text-foreground text-left", children: title })), description && (_jsx(Text, { className: "text-sm text-muted-foreground text-left", children: description }))] }), children ?? (_jsx(Pressable, { onPress: onClose, className: "p-2 -mr-2 -mt-2 -mb-2 rounded-lg", style: withInteractivePressableStyle(undefined, interaction, {
72
+ const visual = useVisualTokens();
73
+ return (_jsxs(View, { className: cn('flex-row items-center justify-between gap-3 border-border', className), style: [
74
+ {
75
+ borderBottomWidth: visual.borderWidthHairline,
76
+ paddingHorizontal: surfacePadding(visual, 'sm'),
77
+ paddingVertical: visual.controlPaddingYDefault,
78
+ },
79
+ style,
80
+ ], ...props, children: [_jsxs(View, { className: "flex-1 min-w-0 gap-0.5 self-stretch justify-center", children: [title && (_jsx(Text, { className: "font-semibold text-foreground text-left", style: typographyStyle(visual, 'body'), children: title })), description && (_jsx(Text, { className: "text-muted-foreground text-left", style: typographyStyle(visual, 'label'), children: description }))] }), children ?? (_jsx(Pressable, { onPress: onClose, className: "p-2 -mr-2 -mt-2 -mb-2", style: withInteractivePressableStyle({ borderRadius: visual.radiusMd }, interaction, {
58
81
  pressedVariant: 'default',
59
- }), hitSlop: { top: 8, bottom: 8, left: 8, right: 8 }, accessibilityRole: "button", accessibilityLabel: "Close", children: _jsx(Text, { className: "text-xl text-muted-foreground leading-none", children: "\u00D7" }) }))] }));
82
+ }), hitSlop: { top: 8, bottom: 8, left: 8, right: 8 }, accessibilityRole: "button", accessibilityLabel: "Close", children: _jsx(Text, { className: "text-muted-foreground leading-none", style: typographyStyle(visual, 'title'), children: "\u00D7" }) }))] }));
60
83
  }
61
- export function SheetContent({ scrollEnabled = true, className, children, ...props }) {
84
+ export function SheetContent({ scrollEnabled = true, className, children, style, contentContainerStyle, keyboardShouldPersistTaps = 'handled', nestedScrollEnabled = true, ...props }) {
85
+ const visual = useVisualTokens();
86
+ const contentPadding = surfacePadding(visual, 'sm');
62
87
  if (scrollEnabled) {
63
- return (_jsx(ScrollView, { className: cn('flex-1', className), showsVerticalScrollIndicator: false, contentContainerStyle: { paddingHorizontal: 16, paddingVertical: 16 }, ...props, children: children }));
88
+ return (_jsx(ScrollView, { className: cn('flex-1', className), style: style, showsVerticalScrollIndicator: false, keyboardShouldPersistTaps: keyboardShouldPersistTaps, nestedScrollEnabled: nestedScrollEnabled, contentContainerStyle: [{ padding: contentPadding }, contentContainerStyle], ...props, children: children }));
64
89
  }
65
- return (_jsx(View, { className: cn('flex-1 px-4 py-4', className), ...props, children: children }));
90
+ return (_jsx(View, { className: cn('flex-1', className), style: [{ padding: contentPadding }, contentContainerStyle, style], ...props, children: children }));
66
91
  }
67
- export function SheetFooter({ className, ...props }) {
68
- return (_jsx(View, { className: cn('flex-row gap-2 justify-end border-t border-border px-4 py-3', className), ...props }));
92
+ export function SheetFooter({ className, style, ...props }) {
93
+ const visual = useVisualTokens();
94
+ return (_jsx(View, { className: cn('flex-row gap-2 justify-end border-border', className), style: [
95
+ {
96
+ borderTopWidth: visual.borderWidthHairline,
97
+ paddingHorizontal: surfacePadding(visual, 'sm'),
98
+ paddingVertical: visual.controlPaddingYDefault,
99
+ },
100
+ style,
101
+ ], ...props }));
69
102
  }
70
- export function SheetClose({ children, asChild, className, ...props }) {
103
+ export function SheetClose({ children, asChild, className, onPress, ...props }) {
71
104
  const { onClose } = useContext(SheetContext);
72
105
  if (asChild && React.isValidElement(children)) {
73
106
  const child = children;
74
107
  return React.cloneElement(child, {
75
- onPress: (e) => {
76
- child.props.onPress?.(e);
77
- onClose();
78
- },
79
108
  ...props,
109
+ className: cn(child.props.className, className),
110
+ onPress: composeEventHandlers(composeEventHandlers(child.props.onPress, onPress), () => onClose()),
80
111
  });
81
112
  }
82
- return (_jsx(Pressable, { className: cn(className), onPress: onClose, ...props, children: children }));
113
+ return (_jsx(Pressable, { accessibilityRole: "button", ...props, className: cn(className), onPress: composeEventHandlers(onPress, () => onClose()), children: children }));
83
114
  }
84
- //# sourceMappingURL=sheet.js.map
@@ -17,6 +17,11 @@ export interface SmartInputProps extends TextInputProps {
17
17
  submitBehavior?: 'newline' | 'submit' | 'blurAndSubmit';
18
18
  /** Use safe area insets for bottom padding */
19
19
  safeArea?: boolean;
20
+ /** Rotating examples used as the placeholder when `placeholder` is omitted. */
21
+ placeholderExamples?: readonly string[];
22
+ placeholderPrefix?: string;
23
+ placeholderTypingInterval?: number;
24
+ placeholderPauseDuration?: number;
25
+ placeholderClearInterval?: number;
20
26
  }
21
27
  export declare const SmartInput: React.ForwardRefExoticComponent<SmartInputProps & React.RefAttributes<TextInput>>;
22
- //# sourceMappingURL=smart-input.d.ts.map