@webority/mobile-ui 0.9.1 → 0.11.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 (346) hide show
  1. package/android/src/newarch/java/com/webority/mobileui/pdfrasterizer/PdfRasterizerModule.kt +6 -7
  2. package/ios/PdfRasterizer.mm +36 -9
  3. package/lib/commonjs/components/BarChart/BarChart.js +1 -0
  4. package/lib/commonjs/components/BarChart/index.js +1 -0
  5. package/lib/commonjs/components/BarChart/scale.js +1 -0
  6. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  7. package/lib/commonjs/components/BottomNavigation/useScreenReaderEnabled.js +1 -0
  8. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  9. package/lib/commonjs/components/BottomSheet/index.js +1 -1
  10. package/lib/commonjs/components/BottomSheet/useSheetSwap.js +1 -0
  11. package/lib/commonjs/components/Card/Card.js +1 -1
  12. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  13. package/lib/commonjs/components/Composer/Composer.js +1 -0
  14. package/lib/commonjs/components/Composer/index.js +1 -0
  15. package/lib/commonjs/components/DateSeparator/DateSeparator.js +1 -0
  16. package/lib/commonjs/components/DateSeparator/index.js +1 -0
  17. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  18. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  19. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  20. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  21. package/lib/commonjs/components/FormField/FormField.js +1 -1
  22. package/lib/commonjs/components/Input/Input.js +1 -1
  23. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  24. package/lib/commonjs/components/Menu/Menu.js +1 -0
  25. package/lib/commonjs/components/Menu/MenuSurface.js +1 -0
  26. package/lib/commonjs/components/Menu/focusHost.js +1 -0
  27. package/lib/commonjs/components/Menu/index.js +1 -0
  28. package/lib/commonjs/components/Menu/menuModel.js +1 -0
  29. package/lib/commonjs/components/Menu/useContextMenu.js +1 -0
  30. package/lib/commonjs/components/Menu/webOnly.js +1 -0
  31. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -0
  32. package/lib/commonjs/components/MessageBubble/index.js +1 -0
  33. package/lib/commonjs/components/MessageList/MessageList.js +1 -0
  34. package/lib/commonjs/components/MessageList/index.js +1 -0
  35. package/lib/commonjs/components/Notation/Notation.js +1 -1
  36. package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -0
  37. package/lib/commonjs/components/OnboardingPager/index.js +1 -0
  38. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  39. package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -0
  40. package/lib/commonjs/components/PaymentResult/index.js +1 -0
  41. package/lib/commonjs/components/PermissionPrompt/PermissionPrompt.js +1 -0
  42. package/lib/commonjs/components/PermissionPrompt/index.js +1 -0
  43. package/lib/commonjs/components/PermissionPrompt/usePermissionPrompt.js +1 -0
  44. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  45. package/lib/commonjs/components/Radio/Radio.js +1 -1
  46. package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
  47. package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -0
  48. package/lib/commonjs/components/ScannerOverlay/index.js +1 -0
  49. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  50. package/lib/commonjs/components/SearchBar/SearchPanel.js +1 -0
  51. package/lib/commonjs/components/SearchBar/highlight.js +1 -0
  52. package/lib/commonjs/components/SearchBar/index.js +1 -1
  53. package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -0
  54. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  55. package/lib/commonjs/components/Select/Select.js +1 -1
  56. package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -0
  57. package/lib/commonjs/components/SignaturePad/index.js +1 -0
  58. package/lib/commonjs/components/SignaturePad/signatureGeometry.js +1 -0
  59. package/lib/commonjs/components/SignaturePad/writePng.js +1 -0
  60. package/lib/commonjs/components/SignaturePad/writePng.web.js +1 -0
  61. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -0
  62. package/lib/commonjs/components/Sparkline/geometry.js +1 -0
  63. package/lib/commonjs/components/Sparkline/index.js +1 -0
  64. package/lib/commonjs/components/Spinner/Spinner.js +1 -1
  65. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  66. package/lib/commonjs/components/Switch/Switch.js +1 -1
  67. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  68. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  69. package/lib/commonjs/components/Toast/Toast.js +1 -1
  70. package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
  71. package/lib/commonjs/components/Tooltip/RichTooltipBody.js +1 -0
  72. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  73. package/lib/commonjs/components/Tooltip/tooltipPosition.js +1 -0
  74. package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -0
  75. package/lib/commonjs/components/TypingIndicator/index.js +1 -0
  76. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -0
  77. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -0
  78. package/lib/commonjs/components/WheelPicker/index.js +1 -0
  79. package/lib/commonjs/components/index.js +1 -1
  80. package/lib/commonjs/hooks/index.js +1 -1
  81. package/lib/commonjs/hooks/useRefreshControl.js +1 -0
  82. package/lib/commonjs/hooks/useScrollDirection.js +1 -0
  83. package/lib/commonjs/index.js +1 -1
  84. package/lib/commonjs/utils/announce.js +1 -0
  85. package/lib/commonjs/utils/hapticUtils.js +1 -1
  86. package/lib/commonjs/utils/index.js +1 -1
  87. package/lib/commonjs/utils/placement.js +1 -0
  88. package/lib/module/components/BarChart/BarChart.js +1 -0
  89. package/lib/module/components/BarChart/index.js +1 -0
  90. package/lib/module/components/BarChart/scale.js +1 -0
  91. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  92. package/lib/module/components/BottomNavigation/useScreenReaderEnabled.js +1 -0
  93. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  94. package/lib/module/components/BottomSheet/index.js +1 -1
  95. package/lib/module/components/BottomSheet/useSheetSwap.js +1 -0
  96. package/lib/module/components/Card/Card.js +1 -1
  97. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  98. package/lib/module/components/Composer/Composer.js +1 -0
  99. package/lib/module/components/Composer/index.js +1 -0
  100. package/lib/module/components/DateSeparator/DateSeparator.js +1 -0
  101. package/lib/module/components/DateSeparator/index.js +1 -0
  102. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  103. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  104. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  105. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  106. package/lib/module/components/FormField/FormField.js +1 -1
  107. package/lib/module/components/Input/Input.js +1 -1
  108. package/lib/module/components/ListItem/ListItem.js +1 -1
  109. package/lib/module/components/Menu/Menu.js +1 -0
  110. package/lib/module/components/Menu/MenuSurface.js +1 -0
  111. package/lib/module/components/Menu/focusHost.js +1 -0
  112. package/lib/module/components/Menu/index.js +1 -0
  113. package/lib/module/components/Menu/menuModel.js +1 -0
  114. package/lib/module/components/Menu/useContextMenu.js +1 -0
  115. package/lib/module/components/Menu/webOnly.js +1 -0
  116. package/lib/module/components/MessageBubble/MessageBubble.js +1 -0
  117. package/lib/module/components/MessageBubble/index.js +1 -0
  118. package/lib/module/components/MessageList/MessageList.js +1 -0
  119. package/lib/module/components/MessageList/index.js +1 -0
  120. package/lib/module/components/Notation/Notation.js +1 -1
  121. package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -0
  122. package/lib/module/components/OnboardingPager/index.js +1 -0
  123. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  124. package/lib/module/components/PaymentResult/PaymentResult.js +1 -0
  125. package/lib/module/components/PaymentResult/index.js +1 -0
  126. package/lib/module/components/PermissionPrompt/PermissionPrompt.js +1 -0
  127. package/lib/module/components/PermissionPrompt/index.js +1 -0
  128. package/lib/module/components/PermissionPrompt/usePermissionPrompt.js +1 -0
  129. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  130. package/lib/module/components/Radio/Radio.js +1 -1
  131. package/lib/module/components/Radio/RadioGroup.js +1 -1
  132. package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -0
  133. package/lib/module/components/ScannerOverlay/index.js +1 -0
  134. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  135. package/lib/module/components/SearchBar/SearchPanel.js +1 -0
  136. package/lib/module/components/SearchBar/highlight.js +1 -0
  137. package/lib/module/components/SearchBar/index.js +1 -1
  138. package/lib/module/components/SearchBar/useRecentSearches.js +1 -0
  139. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  140. package/lib/module/components/Select/Select.js +1 -1
  141. package/lib/module/components/SignaturePad/SignaturePad.js +1 -0
  142. package/lib/module/components/SignaturePad/index.js +1 -0
  143. package/lib/module/components/SignaturePad/signatureGeometry.js +1 -0
  144. package/lib/module/components/SignaturePad/writePng.js +1 -0
  145. package/lib/module/components/SignaturePad/writePng.web.js +1 -0
  146. package/lib/module/components/Sparkline/Sparkline.js +1 -0
  147. package/lib/module/components/Sparkline/geometry.js +1 -0
  148. package/lib/module/components/Sparkline/index.js +1 -0
  149. package/lib/module/components/Spinner/Spinner.js +1 -1
  150. package/lib/module/components/StatTile/StatTile.js +1 -1
  151. package/lib/module/components/Switch/Switch.js +1 -1
  152. package/lib/module/components/TagInput/TagInput.js +1 -1
  153. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  154. package/lib/module/components/Toast/Toast.js +1 -1
  155. package/lib/module/components/Toast/ToastProvider.js +1 -1
  156. package/lib/module/components/Tooltip/RichTooltipBody.js +1 -0
  157. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  158. package/lib/module/components/Tooltip/tooltipPosition.js +1 -0
  159. package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -0
  160. package/lib/module/components/TypingIndicator/index.js +1 -0
  161. package/lib/module/components/WheelPicker/Wheel.js +1 -0
  162. package/lib/module/components/WheelPicker/WheelPicker.js +1 -0
  163. package/lib/module/components/WheelPicker/index.js +1 -0
  164. package/lib/module/components/index.js +1 -1
  165. package/lib/module/hooks/index.js +1 -1
  166. package/lib/module/hooks/useRefreshControl.js +1 -0
  167. package/lib/module/hooks/useScrollDirection.js +1 -0
  168. package/lib/module/index.js +1 -1
  169. package/lib/module/utils/announce.js +1 -0
  170. package/lib/module/utils/hapticUtils.js +1 -1
  171. package/lib/module/utils/index.js +1 -1
  172. package/lib/module/utils/placement.js +1 -0
  173. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +62 -0
  174. package/lib/typescript/commonjs/components/BarChart/index.d.ts +3 -0
  175. package/lib/typescript/commonjs/components/BarChart/scale.d.ts +15 -0
  176. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +32 -0
  177. package/lib/typescript/commonjs/components/BottomNavigation/index.d.ts +1 -1
  178. package/lib/typescript/commonjs/components/BottomNavigation/useScreenReaderEnabled.d.ts +8 -0
  179. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +34 -3
  180. package/lib/typescript/commonjs/components/BottomSheet/index.d.ts +2 -0
  181. package/lib/typescript/commonjs/components/BottomSheet/useSheetSwap.d.ts +24 -0
  182. package/lib/typescript/commonjs/components/Card/Card.d.ts +9 -0
  183. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +4 -1
  184. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +61 -0
  185. package/lib/typescript/commonjs/components/Composer/index.d.ts +3 -0
  186. package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +37 -0
  187. package/lib/typescript/commonjs/components/DateSeparator/index.d.ts +3 -0
  188. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +1 -1
  189. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +3 -1
  190. package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
  191. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +9 -0
  192. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +46 -0
  193. package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +30 -0
  194. package/lib/typescript/commonjs/components/Menu/focusHost.d.ts +9 -0
  195. package/lib/typescript/commonjs/components/Menu/index.d.ts +5 -0
  196. package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +68 -0
  197. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +58 -0
  198. package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +7 -0
  199. package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +87 -0
  200. package/lib/typescript/commonjs/components/MessageBubble/index.d.ts +3 -0
  201. package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +68 -0
  202. package/lib/typescript/commonjs/components/MessageList/index.d.ts +3 -0
  203. package/lib/typescript/commonjs/components/Notation/Notation.d.ts +10 -4
  204. package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +53 -0
  205. package/lib/typescript/commonjs/components/OnboardingPager/index.d.ts +3 -0
  206. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +2 -0
  207. package/lib/typescript/commonjs/components/PaymentResult/PaymentResult.d.ts +71 -0
  208. package/lib/typescript/commonjs/components/PaymentResult/index.d.ts +3 -0
  209. package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +39 -0
  210. package/lib/typescript/commonjs/components/PermissionPrompt/index.d.ts +5 -0
  211. package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +44 -0
  212. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +5 -2
  213. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +13 -4
  214. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +5 -0
  215. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +74 -0
  216. package/lib/typescript/commonjs/components/ScannerOverlay/index.d.ts +3 -0
  217. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +35 -0
  218. package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +49 -0
  219. package/lib/typescript/commonjs/components/SearchBar/highlight.d.ts +14 -0
  220. package/lib/typescript/commonjs/components/SearchBar/index.d.ts +3 -0
  221. package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +24 -0
  222. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +5 -1
  223. package/lib/typescript/commonjs/components/Select/Select.d.ts +4 -1
  224. package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +94 -0
  225. package/lib/typescript/commonjs/components/SignaturePad/index.d.ts +4 -0
  226. package/lib/typescript/commonjs/components/SignaturePad/signatureGeometry.d.ts +36 -0
  227. package/lib/typescript/commonjs/components/SignaturePad/writePng.d.ts +7 -0
  228. package/lib/typescript/commonjs/components/SignaturePad/writePng.web.d.ts +3 -0
  229. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +41 -0
  230. package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +20 -0
  231. package/lib/typescript/commonjs/components/Sparkline/index.d.ts +3 -0
  232. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +7 -1
  233. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +24 -1
  234. package/lib/typescript/commonjs/components/StatTile/index.d.ts +1 -1
  235. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +11 -4
  236. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +4 -0
  237. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +21 -0
  238. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +21 -0
  239. package/lib/typescript/commonjs/components/Toast/index.d.ts +1 -1
  240. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +27 -0
  241. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -0
  242. package/lib/typescript/commonjs/components/Tooltip/index.d.ts +1 -1
  243. package/lib/typescript/commonjs/components/Tooltip/tooltipPosition.d.ts +35 -0
  244. package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +21 -0
  245. package/lib/typescript/commonjs/components/TypingIndicator/index.d.ts +3 -0
  246. package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +34 -0
  247. package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +73 -0
  248. package/lib/typescript/commonjs/components/WheelPicker/index.d.ts +3 -0
  249. package/lib/typescript/commonjs/components/index.d.ts +36 -8
  250. package/lib/typescript/commonjs/hooks/index.d.ts +4 -0
  251. package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +75 -0
  252. package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +21 -0
  253. package/lib/typescript/commonjs/index.d.ts +4 -4
  254. package/lib/typescript/commonjs/specs/NativePdfRasterizer.d.ts +1 -1
  255. package/lib/typescript/commonjs/utils/announce.d.ts +14 -0
  256. package/lib/typescript/commonjs/utils/hapticUtils.d.ts +1 -1
  257. package/lib/typescript/commonjs/utils/index.d.ts +2 -0
  258. package/lib/typescript/commonjs/utils/placement.d.ts +55 -0
  259. package/lib/typescript/module/components/BarChart/BarChart.d.ts +62 -0
  260. package/lib/typescript/module/components/BarChart/index.d.ts +3 -0
  261. package/lib/typescript/module/components/BarChart/scale.d.ts +15 -0
  262. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +32 -0
  263. package/lib/typescript/module/components/BottomNavigation/index.d.ts +1 -1
  264. package/lib/typescript/module/components/BottomNavigation/useScreenReaderEnabled.d.ts +8 -0
  265. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +34 -3
  266. package/lib/typescript/module/components/BottomSheet/index.d.ts +2 -0
  267. package/lib/typescript/module/components/BottomSheet/useSheetSwap.d.ts +24 -0
  268. package/lib/typescript/module/components/Card/Card.d.ts +9 -0
  269. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +4 -1
  270. package/lib/typescript/module/components/Composer/Composer.d.ts +61 -0
  271. package/lib/typescript/module/components/Composer/index.d.ts +3 -0
  272. package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +37 -0
  273. package/lib/typescript/module/components/DateSeparator/index.d.ts +3 -0
  274. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +1 -1
  275. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +3 -1
  276. package/lib/typescript/module/components/Input/Input.d.ts +2 -2
  277. package/lib/typescript/module/components/ListItem/ListItem.d.ts +9 -0
  278. package/lib/typescript/module/components/Menu/Menu.d.ts +46 -0
  279. package/lib/typescript/module/components/Menu/MenuSurface.d.ts +30 -0
  280. package/lib/typescript/module/components/Menu/focusHost.d.ts +9 -0
  281. package/lib/typescript/module/components/Menu/index.d.ts +5 -0
  282. package/lib/typescript/module/components/Menu/menuModel.d.ts +68 -0
  283. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +58 -0
  284. package/lib/typescript/module/components/Menu/webOnly.d.ts +7 -0
  285. package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +87 -0
  286. package/lib/typescript/module/components/MessageBubble/index.d.ts +3 -0
  287. package/lib/typescript/module/components/MessageList/MessageList.d.ts +68 -0
  288. package/lib/typescript/module/components/MessageList/index.d.ts +3 -0
  289. package/lib/typescript/module/components/Notation/Notation.d.ts +10 -4
  290. package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +53 -0
  291. package/lib/typescript/module/components/OnboardingPager/index.d.ts +3 -0
  292. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +2 -0
  293. package/lib/typescript/module/components/PaymentResult/PaymentResult.d.ts +71 -0
  294. package/lib/typescript/module/components/PaymentResult/index.d.ts +3 -0
  295. package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +39 -0
  296. package/lib/typescript/module/components/PermissionPrompt/index.d.ts +5 -0
  297. package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +44 -0
  298. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +5 -2
  299. package/lib/typescript/module/components/Radio/Radio.d.ts +13 -4
  300. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +5 -0
  301. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +74 -0
  302. package/lib/typescript/module/components/ScannerOverlay/index.d.ts +3 -0
  303. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +35 -0
  304. package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +49 -0
  305. package/lib/typescript/module/components/SearchBar/highlight.d.ts +14 -0
  306. package/lib/typescript/module/components/SearchBar/index.d.ts +3 -0
  307. package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +24 -0
  308. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +5 -1
  309. package/lib/typescript/module/components/Select/Select.d.ts +4 -1
  310. package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +94 -0
  311. package/lib/typescript/module/components/SignaturePad/index.d.ts +4 -0
  312. package/lib/typescript/module/components/SignaturePad/signatureGeometry.d.ts +36 -0
  313. package/lib/typescript/module/components/SignaturePad/writePng.d.ts +7 -0
  314. package/lib/typescript/module/components/SignaturePad/writePng.web.d.ts +3 -0
  315. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +41 -0
  316. package/lib/typescript/module/components/Sparkline/geometry.d.ts +20 -0
  317. package/lib/typescript/module/components/Sparkline/index.d.ts +3 -0
  318. package/lib/typescript/module/components/Spinner/Spinner.d.ts +7 -1
  319. package/lib/typescript/module/components/StatTile/StatTile.d.ts +24 -1
  320. package/lib/typescript/module/components/StatTile/index.d.ts +1 -1
  321. package/lib/typescript/module/components/Switch/Switch.d.ts +11 -4
  322. package/lib/typescript/module/components/TagInput/TagInput.d.ts +4 -0
  323. package/lib/typescript/module/components/Toast/Toast.d.ts +21 -0
  324. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +21 -0
  325. package/lib/typescript/module/components/Toast/index.d.ts +1 -1
  326. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +27 -0
  327. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -0
  328. package/lib/typescript/module/components/Tooltip/index.d.ts +1 -1
  329. package/lib/typescript/module/components/Tooltip/tooltipPosition.d.ts +35 -0
  330. package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +21 -0
  331. package/lib/typescript/module/components/TypingIndicator/index.d.ts +3 -0
  332. package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +34 -0
  333. package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +73 -0
  334. package/lib/typescript/module/components/WheelPicker/index.d.ts +3 -0
  335. package/lib/typescript/module/components/index.d.ts +36 -8
  336. package/lib/typescript/module/hooks/index.d.ts +4 -0
  337. package/lib/typescript/module/hooks/useRefreshControl.d.ts +75 -0
  338. package/lib/typescript/module/hooks/useScrollDirection.d.ts +21 -0
  339. package/lib/typescript/module/index.d.ts +4 -4
  340. package/lib/typescript/module/specs/NativePdfRasterizer.d.ts +1 -1
  341. package/lib/typescript/module/utils/announce.d.ts +14 -0
  342. package/lib/typescript/module/utils/hapticUtils.d.ts +1 -1
  343. package/lib/typescript/module/utils/index.d.ts +2 -0
  344. package/lib/typescript/module/utils/placement.d.ts +55 -0
  345. package/package.json +3 -3
  346. package/src/specs/NativePdfRasterizer.ts +1 -1
@@ -108,8 +108,8 @@ export interface InputProps extends Omit<TextInputProps, 'style'> {
108
108
  * `'https://'`. The mirror of `unit`: the field's font size in the
109
109
  * placeholder colour, so it reads as part of the field rather than of what
110
110
  * was typed. Sits after `leftIcon` when both are set. A node (a symbol with
111
- * a subscript) is drawn as is, on the same line and with the same gap; it
112
- * owns its own type, and `prefixStyle` does not reach into it.
111
+ * a subscript) sits in the same Text on the same line with the same gap, so
112
+ * its base and subscript take that size and ink, and `prefixStyle` too.
113
113
  */
114
114
  prefix?: React.ReactNode;
115
115
  /** Style applied to the prefix text. */
@@ -4,6 +4,7 @@ import type { HapticType } from '../../utils/hapticUtils.js';
4
4
  import type { SlotIcon } from '../AppIcon/slotIcon.js';
5
5
  import type { ButtonProps } from '../Button/index.js';
6
6
  import type { IconBadgeTone } from '../IconBadge/index.js';
7
+ import type { ContextMenuConfig } from '../Menu/useContextMenu.js';
7
8
  import type { SwipeableAction } from '../Swipeable/index.js';
8
9
  export type ListItemSize = 'sm' | 'md' | 'lg';
9
10
  /**
@@ -88,6 +89,14 @@ export interface ListItemProps {
88
89
  leftActions?: SwipeableAction[];
89
90
  /** Optional swipe-from-right actions. Wraps the row in a Swipeable when provided. */
90
91
  rightActions?: SwipeableAction[];
92
+ /**
93
+ * A long-press menu. Long press (right-click or Shift+F10 on the web) lifts
94
+ * the row over a dimmed screen with the menu beside it, and every item is
95
+ * also a screen reader action on the row. Unavailable items are hidden
96
+ * unless `unavailable: 'disable'`. Keep each action reachable elsewhere too.
97
+ * A disabled row has no menu.
98
+ */
99
+ contextMenu?: ContextMenuConfig;
91
100
  accessibilityLabel?: string;
92
101
  accessibilityHint?: string;
93
102
  style?: StyleProp<ViewStyle>;
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import type { HapticType } from '../../utils/hapticUtils.js';
3
+ import type { PlacementPreference } from '../../utils/placement.js';
4
+ import type { MenuItem, MenuItems, MenuPresentation, MenuUnavailable } from './menuModel.js';
5
+ export interface MenuProps {
6
+ /** A flat list, or a list of up to three groups split by dividers. */
7
+ items: MenuItems;
8
+ /**
9
+ * The element that opens the menu on press, usually an `IconButton` or a
10
+ * `Button`. Its own `onPress` still runs first.
11
+ */
12
+ trigger: React.ReactElement;
13
+ /** A short heading over the items; also the menu's accessible name. */
14
+ title?: string;
15
+ /** Up to three icon actions in a row above the list (the iOS "medium" layout). */
16
+ topActions?: ReadonlyArray<MenuItem>;
17
+ /** Preferred side of the trigger; flips when the other side has the room. Default `'bottom'`. */
18
+ placement?: PlacementPreference;
19
+ /** Default `'auto'`: a sheet on a phone past seven items or with a description. */
20
+ presentation?: MenuPresentation;
21
+ /** Default `'disable'`: unavailable items stay visible, dimmed and focusable. */
22
+ unavailable?: MenuUnavailable;
23
+ /** Controlled open state. */
24
+ open?: boolean;
25
+ onOpenChange?: (open: boolean) => void;
26
+ /** Haptic on choosing an item. Pass false to disable; a HapticType to override. */
27
+ haptic?: HapticType | false;
28
+ /** Accessible name of the menu when there is no `title`. */
29
+ accessibilityLabel?: string;
30
+ /** Accessible name of the tap-outside area. Default `'Close menu'`. */
31
+ closeLabel?: string;
32
+ /** Accessible name of a submenu's Back row. Default `'Back'`. */
33
+ backLabel?: string;
34
+ /** On the trigger wrapper; the open menu takes `<testID>-menu` and its scrim `<testID>-scrim`. */
35
+ testID?: string;
36
+ }
37
+ /**
38
+ * A menu opened from a button, anchored below it (above when there is no
39
+ * room) and closed by choosing an item, tapping outside, Back or Escape.
40
+ * Items run after the menu has closed. For a long-press menu on a row or a
41
+ * card, use their `contextMenu` prop.
42
+ */
43
+ declare const Menu: React.FC<MenuProps>;
44
+ export { Menu };
45
+ export default Menu;
46
+ //# sourceMappingURL=Menu.d.ts.map
@@ -0,0 +1,30 @@
1
+ import type React from 'react';
2
+ import type { LayoutRectangle } from 'react-native';
3
+ import type { HapticType } from '../../utils/hapticUtils.js';
4
+ import type { PlacementPreference } from '../../utils/placement.js';
5
+ import type { MenuItem, MenuItems, MenuPresentation, MenuUnavailable } from './menuModel.js';
6
+ export interface MenuSurfaceProps {
7
+ open: boolean;
8
+ /** The trigger or the long-pressed view, in window coordinates. */
9
+ anchor: LayoutRectangle | null;
10
+ items: MenuItems;
11
+ title?: string;
12
+ topActions?: ReadonlyArray<MenuItem>;
13
+ placement: PlacementPreference;
14
+ presentation: MenuPresentation;
15
+ unavailable: MenuUnavailable;
16
+ /** A long-press menu: a dimmed scrim, the preview lifted, items reversed when it opens above. */
17
+ context?: boolean;
18
+ /** Drawn over the anchor while a context menu is open. */
19
+ preview?: React.ReactNode;
20
+ onClose: () => void;
21
+ /** Where focus goes back to when the menu closes without running an item. */
22
+ restoreFocusTo?: () => unknown;
23
+ haptic?: HapticType | false;
24
+ accessibilityLabel?: string;
25
+ closeLabel: string;
26
+ backLabel: string;
27
+ testID?: string;
28
+ }
29
+ export declare const MenuSurface: React.FC<MenuSurfaceProps>;
30
+ //# sourceMappingURL=MenuSurface.d.ts.map
@@ -0,0 +1,9 @@
1
+ /** Delay before moving screen reader focus, so it lands after the surface has drawn. */
2
+ export declare const FOCUS_DELAY_MS = 150;
3
+ /**
4
+ * Moves focus to a host view: keyboard focus on the web, screen reader focus
5
+ * on iOS and Android. A ref that resolved to something other than a host
6
+ * view (a consumer component without a forwarded ref) is left alone.
7
+ */
8
+ export declare const focusHost: (node: unknown) => void;
9
+ //# sourceMappingURL=focusHost.d.ts.map
@@ -0,0 +1,5 @@
1
+ export type { MenuProps } from './Menu.js';
2
+ export { default, Menu } from './Menu.js';
3
+ export type { MenuItem, MenuItems, MenuPresentation, MenuUnavailable } from './menuModel.js';
4
+ export type { ContextMenuConfig } from './useContextMenu.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,68 @@
1
+ import type { SlotIcon } from '../AppIcon/slotIcon.js';
2
+ /**
3
+ * One menu entry. Items are data, not children, so the same list can later
4
+ * be handed to a native menu (UIMenu, a Compose DropdownMenu) unchanged.
5
+ */
6
+ export interface MenuItem {
7
+ /** Stable id; also names the item's screen reader action on a context menu. */
8
+ key: string;
9
+ /** A verb, in title case on iOS. End it with an ellipsis when the action asks for more. */
10
+ label: string;
11
+ /** Leading icon. Give every item in a group an icon, or none of them. */
12
+ icon?: SlotIcon;
13
+ /** A line under the label. On a phone any description presents the menu as a sheet. */
14
+ description?: string;
15
+ /** Short trailing text, such as a count. */
16
+ detail?: string;
17
+ /** Draws a check mark and reports the checked state; leave undefined for a plain action. */
18
+ checked?: boolean;
19
+ /** Draws the item in the error ink. Confirm the action in a Dialog from `onPress`. */
20
+ destructive?: boolean;
21
+ /** Unavailable now. Hidden or dimmed by the menu's `unavailable` mode. */
22
+ disabled?: boolean;
23
+ /** Never shown. */
24
+ hidden?: boolean;
25
+ /** One level of items that replaces the list, with a Back row, when this item is chosen. */
26
+ submenu?: ReadonlyArray<MenuItem>;
27
+ /** Runs after the menu has closed, so a Dialog or a native picker can open from it. */
28
+ onPress?: () => void;
29
+ accessibilityLabel?: string;
30
+ testID?: string;
31
+ }
32
+ /** A flat list is one group; a list of lists is groups split by dividers (at most 3). */
33
+ export type MenuItems = ReadonlyArray<MenuItem> | ReadonlyArray<ReadonlyArray<MenuItem>>;
34
+ /**
35
+ * `hide` drops a disabled item (the HIG rule for context menus); `disable`
36
+ * shows it dimmed and focusable but not selectable (the Material rule for a
37
+ * button menu).
38
+ */
39
+ export type MenuUnavailable = 'hide' | 'disable';
40
+ /**
41
+ * `popover` anchors the menu to its trigger; `sheet` lists it in an
42
+ * OptionSheet; `auto` uses the sheet on a phone when the menu has more than
43
+ * seven items or any description, and the popover otherwise.
44
+ */
45
+ export type MenuPresentation = 'auto' | 'popover' | 'sheet';
46
+ export declare const MAX_GROUPS = 3;
47
+ export declare const MAX_TOP_ACTIONS = 3;
48
+ export declare const SHEET_ITEM_THRESHOLD = 7;
49
+ /** Prefixes a context menu's screen reader actions, so a key never collides with `activate`. */
50
+ export declare const ACTION_PREFIX = "menu:";
51
+ /** The groups to draw: hidden items and empty groups removed. */
52
+ export declare const visibleGroups: (items: MenuItems, unavailable: MenuUnavailable) => ReadonlyArray<ReadonlyArray<MenuItem>>;
53
+ /** The top row of the iOS "medium" layout, cut to three. */
54
+ export declare const visibleTopActions: (topActions: ReadonlyArray<MenuItem> | undefined, unavailable: MenuUnavailable) => ReadonlyArray<MenuItem>;
55
+ /** Whether `auto` presentation should use the sheet for these items on a phone. */
56
+ export declare const wantsSheet: (groups: ReadonlyArray<ReadonlyArray<MenuItem>>, topActions: ReadonlyArray<MenuItem>) => boolean;
57
+ export interface MenuAction {
58
+ name: string;
59
+ label: string;
60
+ item: MenuItem;
61
+ }
62
+ /**
63
+ * Every enabled leaf as a screen reader action: a context menu is reached by
64
+ * a long press, and the HIG wants its actions available without the gesture.
65
+ * A submenu item names its parent first.
66
+ */
67
+ export declare const menuActions: (groups: ReadonlyArray<ReadonlyArray<MenuItem>>, topActions: ReadonlyArray<MenuItem>) => MenuAction[];
68
+ //# sourceMappingURL=menuModel.d.ts.map
@@ -0,0 +1,58 @@
1
+ import type React from 'react';
2
+ import type { AccessibilityActionEvent, AccessibilityActionInfo, PressableProps, View as RNView } from 'react-native';
3
+ import type { HapticType } from '../../utils/hapticUtils.js';
4
+ import type { PlacementPreference } from '../../utils/placement.js';
5
+ import type { MenuItem, MenuItems, MenuPresentation, MenuUnavailable } from './menuModel.js';
6
+ /** The `contextMenu` prop of ListItem and Card. */
7
+ export interface ContextMenuConfig {
8
+ items: MenuItems;
9
+ /** A short heading over the items; also the menu's accessible name. */
10
+ title?: string;
11
+ /** Up to three icon actions in a row above the list (the iOS "medium" layout). */
12
+ topActions?: ReadonlyArray<MenuItem>;
13
+ /**
14
+ * What lifts over the dimmed screen while the menu is open. Default: the
15
+ * row or card itself, drawn again in place; `false` for none.
16
+ */
17
+ preview?: React.ReactNode | false;
18
+ /** Default `'hide'`: the HIG drops unavailable items from a context menu. */
19
+ unavailable?: MenuUnavailable;
20
+ /** Default `'auto'`: a sheet on a phone past seven items or with a description. */
21
+ presentation?: MenuPresentation;
22
+ /** Preferred side of the pressed view. Default `'bottom'`. */
23
+ placement?: PlacementPreference;
24
+ onOpenChange?: (open: boolean) => void;
25
+ accessibilityLabel?: string;
26
+ /** Accessible name of the tap-outside area. Default `'Close menu'`. */
27
+ closeLabel?: string;
28
+ /** Accessible name of a submenu's Back row. Default `'Back'`. */
29
+ backLabel?: string;
30
+ }
31
+ export interface UseContextMenuOptions {
32
+ /** The host's `haptic` prop: `longPress` on open, `selection` on an action, unless overridden. */
33
+ haptic?: HapticType | false;
34
+ /** Screen reader actions the host already has; the menu's are added after them. */
35
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo>;
36
+ onAccessibilityAction?: (event: AccessibilityActionEvent) => void;
37
+ testID?: string;
38
+ }
39
+ export interface ContextMenuBinding {
40
+ /** False when there is no config or nothing in it to show. */
41
+ enabled: boolean;
42
+ /** Merge onto the host's pressable; the menu measures it to anchor and lift it. */
43
+ hostRef: React.RefObject<RNView | null>;
44
+ /**
45
+ * Spread on the host's pressable after its own props: the long press, the
46
+ * screen reader actions and, on the web, right-click and Shift+F10.
47
+ * Empty when not enabled, so a host's own `onLongPress` survives.
48
+ */
49
+ hostProps: Partial<PressableProps>;
50
+ /** The menu itself, given the preview the host draws by default. */
51
+ renderSurface: (preview?: React.ReactNode) => React.ReactNode;
52
+ }
53
+ /**
54
+ * Wires a long-press menu onto a host view. ListItem and Card use it for
55
+ * their `contextMenu` prop; a host owns one Pressable and spreads `hostProps`.
56
+ */
57
+ export declare const useContextMenu: (config: ContextMenuConfig | undefined, options?: UseContextMenuOptions) => ContextMenuBinding;
58
+ //# sourceMappingURL=useContextMenu.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Props only react-native-web understands (`onKeyDown`, `onContextMenu`, an
3
+ * ARIA role React Native's union lacks), typed as the host's props so they
4
+ * can be spread. The phones get nothing, so no unknown prop reaches them.
5
+ */
6
+ export declare const webOnly: <T extends object>(props: object) => T | null;
7
+ //# sourceMappingURL=webOnly.d.ts.map
@@ -0,0 +1,87 @@
1
+ import { type DateValue } from '@webority/mobile-core';
2
+ import type React from 'react';
3
+ import type { StyleProp, ViewStyle } from 'react-native';
4
+ import type { HapticType } from '../../utils/hapticUtils.js';
5
+ export type MessageSide = 'mine' | 'theirs';
6
+ /**
7
+ * Where a message sits in a run from one author. The joined corners go small
8
+ * and the author and time show only on the run's edges.
9
+ */
10
+ export type MessageGroupPosition = 'single' | 'first' | 'middle' | 'last';
11
+ export type MessageStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'failed';
12
+ /** The message this one answers, drawn as a quote at the top of the bubble. */
13
+ export interface MessageReply {
14
+ author?: string;
15
+ text: string;
16
+ /** Jumps to the quoted message. */
17
+ onPress?: () => void;
18
+ }
19
+ /** A long-press action, also offered to screen readers as an accessibility action. */
20
+ export interface MessageAction {
21
+ /** Stable id, e.g. `'copy'`. `onRetry` takes `'retry'` and `replyTo.onPress` `'openReply'`. */
22
+ name: string;
23
+ label: string;
24
+ onPress: () => void;
25
+ }
26
+ export interface MessageBubbleLabels {
27
+ you: string;
28
+ sending: string;
29
+ sent: string;
30
+ delivered: string;
31
+ read: string;
32
+ failed: string;
33
+ retry: string;
34
+ replyTo: (author: string | undefined) => string;
35
+ }
36
+ export declare const DEFAULT_MESSAGE_BUBBLE_LABELS: Readonly<MessageBubbleLabels>;
37
+ export interface MessageBubbleProps {
38
+ side: MessageSide;
39
+ /**
40
+ * The message as plain text. Drawn when there are no `children`, read by
41
+ * screen readers, and announced once when a streaming reply completes.
42
+ */
43
+ text: string;
44
+ /** Rich content in place of `text` (a chart, an image, a renderer of your own). */
45
+ children?: React.ReactNode;
46
+ /** Draws `text` with the library `Markdown`. Ignored with `children`. */
47
+ markdown?: boolean;
48
+ /** Default `'single'`. */
49
+ groupPosition?: MessageGroupPosition;
50
+ /** Shown above the first message of a run of `theirs`; read before the text. */
51
+ author?: string;
52
+ /** Shown under the last message of a run, in the configured zone (IST by default). */
53
+ time?: DateValue;
54
+ /** Ticks under `mine`; read as a word ("Read"). */
55
+ status?: MessageStatus;
56
+ replyTo?: MessageReply;
57
+ /** The reply is still arriving: marked busy, announced once when it ends. */
58
+ streaming?: boolean;
59
+ /** A curated message shown under the bubble and announced at once. */
60
+ error?: string;
61
+ /** Shows Try again under a failed message, and offers it as an accessibility action. */
62
+ onRetry?: () => void;
63
+ /**
64
+ * Long-press actions (Copy, Reply). They are the screen reader's
65
+ * accessibility actions; a long press calls `onLongPress` to show them,
66
+ * typically in a menu. Without actions there is no long press.
67
+ */
68
+ actions?: ReadonlyArray<MessageAction>;
69
+ onLongPress?: () => void;
70
+ /** Content under the bubble on the same side (action cards, a rating). */
71
+ footer?: React.ReactNode;
72
+ labels?: Partial<MessageBubbleLabels>;
73
+ /** Long-press haptic. Default `'longPress'`. */
74
+ haptic?: HapticType | false;
75
+ style?: StyleProp<ViewStyle>;
76
+ testID?: string;
77
+ }
78
+ /**
79
+ * One chat message. `mine` sits on the trailing side in the brand tint and
80
+ * carries delivery ticks; `theirs` sits on the leading side on the secondary
81
+ * surface. Runs from one author share joined corners. The bubble reads as one
82
+ * element ("Asha, 4:32 PM, See you at six, Read") unless it holds `children`
83
+ * with no actions, when it stays open so links inside remain reachable.
84
+ */
85
+ export declare const MessageBubble: React.FC<MessageBubbleProps>;
86
+ export default MessageBubble;
87
+ //# sourceMappingURL=MessageBubble.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type { MessageAction, MessageBubbleLabels, MessageBubbleProps, MessageGroupPosition, MessageReply, MessageSide, MessageStatus } from './MessageBubble.js';
2
+ export { DEFAULT_MESSAGE_BUBBLE_LABELS, default, MessageBubble } from './MessageBubble.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,68 @@
1
+ import { type DateValue } from '@webority/mobile-core';
2
+ import type React from 'react';
3
+ import type { FlatListProps } from 'react-native';
4
+ import { type DateSeparatorLabels } from '../DateSeparator/index.js';
5
+ import type { MessageGroupPosition } from '../MessageBubble/index.js';
6
+ export interface MessageRenderInfo<T> {
7
+ item: T;
8
+ /** 0 is the newest. */
9
+ index: number;
10
+ /** Pass to `MessageBubble`; always `'single'` without `getAuthorKey`. */
11
+ groupPosition: MessageGroupPosition;
12
+ }
13
+ export interface MessageListLabels extends DateSeparatorLabels {
14
+ jumpToLatest: string;
15
+ newMessages: (count: number) => string;
16
+ /** The divider above the first unread message. */
17
+ unread: string;
18
+ loadingOlder: string;
19
+ }
20
+ export declare const DEFAULT_MESSAGE_LIST_LABELS: Readonly<MessageListLabels>;
21
+ type OwnedListProps = 'data' | 'renderItem' | 'keyExtractor' | 'inverted' | 'onEndReached' | 'ListHeaderComponent' | 'ListFooterComponent' | 'ListEmptyComponent' | 'renderScrollComponent';
22
+ export interface MessageListProps<T> extends Omit<FlatListProps<T>, OwnedListProps> {
23
+ /** Newest first, the order the list draws from the bottom up. */
24
+ messages: ReadonlyArray<T>;
25
+ keyExtractor: (item: T) => string;
26
+ /** Draws one message, usually a `MessageBubble` given `groupPosition`. */
27
+ renderMessage: (info: MessageRenderInfo<T>) => React.ReactElement | null;
28
+ /** Joins consecutive messages from one author into a run with shared corners. */
29
+ getAuthorKey?: (item: T) => string;
30
+ /** Draws a day separator ("Today", "Yesterday", "10-Oct-2026") where the day changes. */
31
+ getDate?: (item: T) => DateValue;
32
+ /** Draws the "New messages" divider above this message. */
33
+ firstUnreadKey?: string;
34
+ /** Called near the top of the history to load the page before the oldest. */
35
+ onLoadOlder?: () => void;
36
+ loadingOlder?: boolean;
37
+ /** False once the oldest page is in. Default true. */
38
+ hasOlder?: boolean;
39
+ /** Drawn under the newest message, e.g. a `TypingIndicator`. */
40
+ typing?: React.ReactNode;
41
+ /** Drawn while there are no messages. */
42
+ empty?: React.ReactNode;
43
+ /** A message to announce politely for each new message, e.g. "Asha: See you at six". */
44
+ getAnnouncement?: (item: T) => string | null | undefined;
45
+ /** True for a new message that should bring the list to the latest, such as the person's own. */
46
+ followNew?: (item: T) => boolean;
47
+ /**
48
+ * Lifts the newest messages above the keyboard through
49
+ * react-native-keyboard-controller's `KeyboardChatScrollView`. Default true;
50
+ * turn it off when a parent already moves with the keyboard.
51
+ */
52
+ keyboardAware?: boolean;
53
+ /** The `Composer`'s `keyboardOffset`. Default: the bottom safe-area inset. */
54
+ keyboardOffset?: number;
55
+ labels?: Partial<MessageListLabels>;
56
+ /** The reference for Today and Yesterday. Default: now. */
57
+ now?: Date;
58
+ }
59
+ /**
60
+ * A conversation: an inverted `FlatList` that starts at the newest message,
61
+ * draws day separators and an unread divider, joins runs from one author,
62
+ * loads older pages at the top without moving what is on screen, and lifts
63
+ * above the keyboard. Scrolled away from the latest, a jump button appears
64
+ * with the count of messages that arrived meanwhile.
65
+ */
66
+ export declare function MessageList<T>({ messages, keyExtractor, renderMessage, getAuthorKey, getDate, firstUnreadKey, onLoadOlder, loadingOlder, hasOlder, typing, empty, getAnnouncement, followNew, keyboardAware, keyboardOffset, labels: labelOverrides, now, onScroll, contentContainerStyle, style, testID, ...rest }: MessageListProps<T>): React.ReactElement;
67
+ export default MessageList;
68
+ //# sourceMappingURL=MessageList.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type { MessageListLabels, MessageListProps, MessageRenderInfo } from './MessageList.js';
2
+ export { DEFAULT_MESSAGE_LIST_LABELS, default, MessageList } from './MessageList.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ColorValue } from 'react-native';
2
+ import type { ColorValue, StyleProp, TextStyle } from 'react-native';
3
3
  export interface NotationRun {
4
4
  text: string;
5
5
  /** The subscript that follows `text`, when the run is a symbol. */
@@ -24,8 +24,8 @@ export interface NotationProps {
24
24
  /** Follows the symbol after a space. */
25
25
  desc?: string;
26
26
  /**
27
- * Subscript ink. Inside a field label it defaults to the label's ink, elsewhere to
28
- * `colors.text.primary`; pass the parent's colour when it differs.
27
+ * Subscript ink. Inside a field's or choice's label or message line it defaults to that line's
28
+ * ink, elsewhere to `colors.text.primary`; pass the parent's colour when it differs.
29
29
  */
30
30
  color?: string;
31
31
  testID?: string;
@@ -37,8 +37,14 @@ export interface NotationInk {
37
37
  fontSize: number;
38
38
  color: ColorValue;
39
39
  }
40
- /** Provided by a label Text (FieldLabel) so a subscript inside it scales and inks with the label. */
40
+ /**
41
+ * Provided by a field's text lines (FieldLabel, the floating label, FieldMessage, the FormField
42
+ * label, helper and error, and the Checkbox, Radio and Switch label, description and error) so a
43
+ * subscript inside one scales and inks with that line.
44
+ */
41
45
  export declare const NotationInkContext: React.Context<NotationInk | null>;
46
+ /** The ink for a line's provider: the line's own `style` size and colour win over its defaults. */
47
+ export declare const useNotationInk: (style: StyleProp<TextStyle>, fontSize: number, color: ColorValue) => NotationInk;
42
48
  /** A symbol of a standard with its subscript drawn small and lowered below the baseline. */
43
49
  export declare const Notation: React.FC<NotationProps>;
44
50
  /** A symbol as the standard prints it: `sym('C', 'IP')` is C with a small IP, then `desc` if given. */
@@ -0,0 +1,53 @@
1
+ import type React from 'react';
2
+ import type { HapticType } from '../../utils/hapticUtils.js';
3
+ export interface OnboardingPage {
4
+ /** Stable identity of the page; also the list key. */
5
+ key: string;
6
+ /** The picture or illustration above the text: any node, for example an `Image`. */
7
+ art?: React.ReactNode;
8
+ title: string;
9
+ body: string;
10
+ }
11
+ export interface OnboardingPagerLabels {
12
+ skip?: string;
13
+ next?: string;
14
+ /** Spoken before the title of each page. Default `Step 2 of 3`. */
15
+ step?: (position: number, total: number) => string;
16
+ /** Names the page control for a screen reader. Default `Page`. */
17
+ pageControl?: string;
18
+ }
19
+ export interface OnboardingPagerProps {
20
+ /** Three or four is the sweet spot; more than six are not shown. */
21
+ pages: OnboardingPage[];
22
+ /** The final button was pressed. The app records that the intro was seen. */
23
+ onDone: () => void;
24
+ /** Skip was pressed, on any page. The app records that the intro was seen. */
25
+ onSkip: () => void;
26
+ /** Title of the final button. Default `Get started`. */
27
+ doneLabel?: string;
28
+ labels?: OnboardingPagerLabels;
29
+ /**
30
+ * Pads the top and bottom by the device safe-area insets. Pass false when the pager sits
31
+ * inside a screen that already handles them. Default true.
32
+ */
33
+ safeArea?: boolean;
34
+ /** Haptic on Skip, Next and the final button. `false` opts out. */
35
+ haptic?: HapticType | false;
36
+ testID?: string;
37
+ }
38
+ /**
39
+ * A first-launch intro: full-screen pages of art, title and body that swipe, a page
40
+ * control, Skip at the top on every page, and a footer button that reads Next and then
41
+ * the done label, so the flow never needs a swipe. Built on `Carousel`
42
+ * (no autoplay, no loop). The app owns whether the intro was seen: `onDone` and `onSkip`
43
+ * both mean "seen", and it stores that itself. A page whose text outgrows the screen at a
44
+ * large font size scrolls inside the page.
45
+ *
46
+ * The page control is one adjustable element for a screen reader (swipe up or down to change
47
+ * page); touching its leading half goes back one page, its trailing half forward one. Under
48
+ * Reduce Motion pages change without animation and the active dot changes at once.
49
+ */
50
+ declare const OnboardingPager: React.FC<OnboardingPagerProps>;
51
+ export { OnboardingPager };
52
+ export default OnboardingPager;
53
+ //# sourceMappingURL=OnboardingPager.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type { OnboardingPage, OnboardingPagerLabels, OnboardingPagerProps } from './OnboardingPager.js';
2
+ export { default, OnboardingPager } from './OnboardingPager.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -45,6 +45,8 @@ export interface OptionSheetProps {
45
45
  * earlier, iOS attaches it to the closing window and dismisses it with it.
46
46
  */
47
47
  onAfterClose?: () => void;
48
+ /** Called with `true` when `open` turns on and `false` when it turns off, not again while it stays the same. */
49
+ onOpenChange?: (open: boolean) => void;
48
50
  /** Sheet heading. Also the modal's a11y label fallback. */
49
51
  title?: string;
50
52
  options: ReadonlyArray<unknown>;
@@ -0,0 +1,71 @@
1
+ import type React from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ import type { DescriptionItem } from '../Descriptions/index.js';
4
+ /**
5
+ * `pending` is its own outcome, never a kind of failure: the bank has not said
6
+ * yes or no, so the money may still go through. `refunded` is a payment that
7
+ * was taken and has been returned.
8
+ */
9
+ export type PaymentResultStatus = 'success' | 'pending' | 'failed' | 'refunded';
10
+ export interface PaymentResultProps {
11
+ status: PaymentResultStatus;
12
+ /** Integer paise, as the API carries it. Shown in rupees with Indian digit grouping. */
13
+ amount: number;
14
+ /** ISO 4217 code of `amount`'s currency. Default `'INR'`. */
15
+ currency?: string;
16
+ /** Who was paid ("Capnix"). */
17
+ payee?: string;
18
+ /** The gateway or bank reference (a UPI RRN or UTR). Read digit by digit by a screen reader. */
19
+ reference?: string;
20
+ /** When the payment was made: an ISO string, a Date or epoch milliseconds. Shown in IST. */
21
+ paidAt?: string | number | Date;
22
+ /** How it was paid ("UPI, HDFC Bank ...4821"). */
23
+ method?: string;
24
+ /** Receipt rows after the built-in ones. A row with an empty value is dropped. */
25
+ rows?: ReadonlyArray<DescriptionItem>;
26
+ /**
27
+ * For `failed`: whether money left the account. `true` says it will come back; `false` says
28
+ * nothing was taken and is the only value that lets `onRetry` show. Left unset, the screen
29
+ * tells the person to check their statement first and offers no retry.
30
+ */
31
+ debited?: boolean;
32
+ /** Working days the bank takes to return a debited amount. Default 5. */
33
+ refundDays?: number;
34
+ /** For `pending`: when it should settle, shown in IST. Without it the usual window is stated. */
35
+ settlesBy?: string | number | Date;
36
+ /** Replaces the heading ("Payment successful"). */
37
+ title?: string;
38
+ /** Replaces the line under the amount. The pending safety lines are not replaceable. */
39
+ message?: string;
40
+ /** Shows a Share receipt button. The app builds and shares the receipt itself. */
41
+ onShare?: () => void;
42
+ /** Shows a Download button. */
43
+ onDownload?: () => void;
44
+ /** Shows a Done button. */
45
+ onDone?: () => void;
46
+ /** Shows Try again. Honoured only for a `failed` payment with `debited={false}`. */
47
+ onRetry?: () => void;
48
+ /** Shows Check status while `pending`. The app polls or refetches; this component never does. */
49
+ onRefresh?: () => void;
50
+ /** Puts Check status into its busy state. */
51
+ refreshing?: boolean;
52
+ /** Burst of confetti on success. Default true. Not played under Reduce Motion. */
53
+ celebrate?: boolean;
54
+ /**
55
+ * Haptic on the outcome: a success buzz for `success` and an error buzz for `failed`.
56
+ * `pending` and `refunded` never buzz. Default true.
57
+ */
58
+ haptic?: boolean;
59
+ style?: StyleProp<ViewStyle>;
60
+ testID?: string;
61
+ }
62
+ /**
63
+ * The end of a payment: what happened, how much, and what to do next. A UPI
64
+ * payment can sit between "sent" and "settled" for minutes or hours, and showing
65
+ * that as a failure, or offering Try again, is how people pay twice. So `pending`
66
+ * has its own mark, its own word and no retry, and a failed payment offers retry
67
+ * only when the caller says nothing was debited.
68
+ */
69
+ export declare const PaymentResult: React.FC<PaymentResultProps>;
70
+ export default PaymentResult;
71
+ //# sourceMappingURL=PaymentResult.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type { PaymentResultProps, PaymentResultStatus } from './PaymentResult.js';
2
+ export { default, PaymentResult } from './PaymentResult.js';
3
+ //# sourceMappingURL=index.d.ts.map