@webority/mobile-ui 0.174.1 → 0.175.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 (272) hide show
  1. package/dist/canvas-kit/kit.js +10 -10
  2. package/dist/canvas-kit/manifest.json +1 -1
  3. package/dist/canvas-kit/release.json +5 -5
  4. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  5. package/lib/commonjs/components/AmountSlider/AmountSlider.js +1 -1
  6. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  7. package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
  8. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  9. package/lib/commonjs/components/Badge/Badge.js +1 -1
  10. package/lib/commonjs/components/Banner/Banner.js +1 -1
  11. package/lib/commonjs/components/BarChart/BarChart.js +1 -1
  12. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  13. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  14. package/lib/commonjs/components/Box/Box.js +1 -1
  15. package/lib/commonjs/components/Button/Button.js +1 -1
  16. package/lib/commonjs/components/Calendar/Calendar.js +1 -1
  17. package/lib/commonjs/components/Card/Card.js +1 -1
  18. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  19. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  20. package/lib/commonjs/components/Chip/Chip.js +1 -1
  21. package/lib/commonjs/components/Composer/Composer.js +1 -1
  22. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  23. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  24. package/lib/commonjs/components/DecimalInput/DecimalInput.js +1 -1
  25. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  26. package/lib/commonjs/components/Divider/Divider.js +1 -1
  27. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  28. package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
  29. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  30. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  31. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  32. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  33. package/lib/commonjs/components/FilterChipRow/FilterChipRow.js +1 -1
  34. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  35. package/lib/commonjs/components/FormField/FormField.js +1 -1
  36. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  37. package/lib/commonjs/components/IconButton/IconButton.js +1 -1
  38. package/lib/commonjs/components/Input/Input.js +1 -1
  39. package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
  40. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  41. package/lib/commonjs/components/Modal/Modal.js +1 -1
  42. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  43. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  44. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  45. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  46. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
  47. package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
  48. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  49. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  50. package/lib/commonjs/components/Radio/Radio.js +1 -1
  51. package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
  52. package/lib/commonjs/components/Rating/Rating.js +1 -1
  53. package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
  54. package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
  55. package/lib/commonjs/components/Screen/Screen.js +1 -1
  56. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  57. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  58. package/lib/commonjs/components/Select/Select.js +1 -1
  59. package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
  60. package/lib/commonjs/components/Skeleton/SkeletonClock.js +1 -1
  61. package/lib/commonjs/components/Skeleton/SkeletonProvider.js +1 -1
  62. package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
  63. package/lib/commonjs/components/Slider/Slider.js +1 -1
  64. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  65. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  66. package/lib/commonjs/components/Spinner/Spinner.js +1 -1
  67. package/lib/commonjs/components/SquircleView/SquircleView.js +1 -1
  68. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  69. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  70. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  71. package/lib/commonjs/components/Switch/Switch.js +1 -1
  72. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  73. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  74. package/lib/commonjs/components/Text/Text.js +1 -1
  75. package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
  76. package/lib/commonjs/navigation/DiscardGuard.js +1 -1
  77. package/lib/commonjs/theme/ThemeContext.js +1 -1
  78. package/lib/commonjs/utils/shadows.js +1 -1
  79. package/lib/module/components/Accordion/Accordion.js +1 -1
  80. package/lib/module/components/AmountSlider/AmountSlider.js +1 -1
  81. package/lib/module/components/AppBar/AppBar.js +1 -1
  82. package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
  83. package/lib/module/components/Avatar/Avatar.js +1 -1
  84. package/lib/module/components/Badge/Badge.js +1 -1
  85. package/lib/module/components/Banner/Banner.js +1 -1
  86. package/lib/module/components/BarChart/BarChart.js +1 -1
  87. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  88. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  89. package/lib/module/components/Box/Box.js +1 -1
  90. package/lib/module/components/Button/Button.js +1 -1
  91. package/lib/module/components/Calendar/Calendar.js +1 -1
  92. package/lib/module/components/Card/Card.js +1 -1
  93. package/lib/module/components/Carousel/Carousel.js +1 -1
  94. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  95. package/lib/module/components/Chip/Chip.js +1 -1
  96. package/lib/module/components/Composer/Composer.js +1 -1
  97. package/lib/module/components/Confetti/Confetti.js +1 -1
  98. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  99. package/lib/module/components/DecimalInput/DecimalInput.js +1 -1
  100. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  101. package/lib/module/components/Divider/Divider.js +1 -1
  102. package/lib/module/components/Drawer/Drawer.js +1 -1
  103. package/lib/module/components/EmptyState/EmptyState.js +1 -1
  104. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  105. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  106. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  107. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  108. package/lib/module/components/FilterChipRow/FilterChipRow.js +1 -1
  109. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  110. package/lib/module/components/FormField/FormField.js +1 -1
  111. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  112. package/lib/module/components/IconButton/IconButton.js +1 -1
  113. package/lib/module/components/Input/Input.js +1 -1
  114. package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
  115. package/lib/module/components/ListItem/ListItem.js +1 -1
  116. package/lib/module/components/Modal/Modal.js +1 -1
  117. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  118. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  119. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  120. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  121. package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
  122. package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
  123. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  124. package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
  125. package/lib/module/components/Radio/Radio.js +1 -1
  126. package/lib/module/components/Radio/RadioGroup.js +1 -1
  127. package/lib/module/components/Rating/Rating.js +1 -1
  128. package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
  129. package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
  130. package/lib/module/components/Screen/Screen.js +1 -1
  131. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  132. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  133. package/lib/module/components/Select/Select.js +1 -1
  134. package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
  135. package/lib/module/components/Skeleton/SkeletonClock.js +1 -1
  136. package/lib/module/components/Skeleton/SkeletonProvider.js +1 -1
  137. package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
  138. package/lib/module/components/Slider/Slider.js +1 -1
  139. package/lib/module/components/SliderField/SliderField.js +1 -1
  140. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  141. package/lib/module/components/Spinner/Spinner.js +1 -1
  142. package/lib/module/components/SquircleView/SquircleView.js +1 -1
  143. package/lib/module/components/StatTile/StatTile.js +1 -1
  144. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  145. package/lib/module/components/Stepper/Stepper.js +1 -1
  146. package/lib/module/components/Switch/Switch.js +1 -1
  147. package/lib/module/components/Tabs/Tabs.js +1 -1
  148. package/lib/module/components/TagInput/TagInput.js +1 -1
  149. package/lib/module/components/Text/Text.js +1 -1
  150. package/lib/module/components/Toast/ToastProvider.js +1 -1
  151. package/lib/module/navigation/DiscardGuard.js +1 -1
  152. package/lib/module/theme/ThemeContext.js +1 -1
  153. package/lib/module/utils/shadows.js +1 -1
  154. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +3 -2
  155. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -1
  156. package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +3 -1
  157. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +6 -1
  158. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +5 -1
  159. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -1
  160. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +4 -1
  161. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +3 -1
  162. package/lib/typescript/commonjs/components/Box/Box.d.ts +6 -3
  163. package/lib/typescript/commonjs/components/Button/Button.d.ts +4 -2
  164. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +4 -2
  165. package/lib/typescript/commonjs/components/Card/Card.d.ts +2 -1
  166. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +4 -1
  167. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +3 -1
  168. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +3 -1
  169. package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +3 -1
  170. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +4 -2
  171. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +4 -2
  172. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +3 -2
  173. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +3 -1
  174. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +2 -1
  175. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +4 -1
  176. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +4 -2
  177. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -1
  178. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +3 -2
  179. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +4 -2
  180. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +4 -2
  181. package/lib/typescript/commonjs/components/Input/Input.d.ts +4 -1
  182. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +4 -1
  183. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +2 -0
  184. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +3 -1
  185. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +4 -2
  186. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +3 -2
  187. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +4 -2
  188. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -4
  189. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +4 -1
  190. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +3 -2
  191. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +2 -1
  192. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +4 -2
  193. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +5 -1
  194. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +2 -1
  195. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +2 -1
  196. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +4 -2
  197. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -2
  198. package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +4 -1
  199. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +3 -1
  200. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +3 -1
  201. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +3 -1
  202. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +4 -2
  203. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +2 -1
  204. package/lib/typescript/commonjs/components/SquircleView/SquircleView.d.ts +8 -3
  205. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +3 -2
  206. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +4 -1
  207. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +3 -1
  208. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +3 -2
  209. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +3 -2
  210. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +4 -2
  211. package/lib/typescript/commonjs/components/Text/Text.d.ts +4 -1
  212. package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +3 -1
  213. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +3 -2
  214. package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -1
  215. package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +3 -1
  216. package/lib/typescript/module/components/Avatar/Avatar.d.ts +6 -1
  217. package/lib/typescript/module/components/Badge/Badge.d.ts +5 -1
  218. package/lib/typescript/module/components/Banner/Banner.d.ts +3 -1
  219. package/lib/typescript/module/components/BarChart/BarChart.d.ts +4 -1
  220. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +3 -1
  221. package/lib/typescript/module/components/Box/Box.d.ts +6 -3
  222. package/lib/typescript/module/components/Button/Button.d.ts +4 -2
  223. package/lib/typescript/module/components/Calendar/Calendar.d.ts +4 -2
  224. package/lib/typescript/module/components/Card/Card.d.ts +2 -1
  225. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +4 -1
  226. package/lib/typescript/module/components/Chip/Chip.d.ts +3 -1
  227. package/lib/typescript/module/components/Composer/Composer.d.ts +3 -1
  228. package/lib/typescript/module/components/Confetti/Confetti.d.ts +3 -1
  229. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +4 -2
  230. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +4 -2
  231. package/lib/typescript/module/components/Divider/Divider.d.ts +3 -2
  232. package/lib/typescript/module/components/Drawer/Drawer.d.ts +3 -1
  233. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +2 -1
  234. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +4 -1
  235. package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +4 -2
  236. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -1
  237. package/lib/typescript/module/components/FormField/FormField.d.ts +3 -2
  238. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +4 -2
  239. package/lib/typescript/module/components/IconButton/IconButton.d.ts +4 -2
  240. package/lib/typescript/module/components/Input/Input.d.ts +4 -1
  241. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +4 -1
  242. package/lib/typescript/module/components/ListItem/ListItem.d.ts +2 -0
  243. package/lib/typescript/module/components/Modal/Modal.d.ts +3 -1
  244. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +4 -2
  245. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +3 -2
  246. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +4 -2
  247. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -4
  248. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +4 -1
  249. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +3 -2
  250. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +2 -1
  251. package/lib/typescript/module/components/Radio/Radio.d.ts +4 -2
  252. package/lib/typescript/module/components/Rating/Rating.d.ts +5 -1
  253. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +2 -1
  254. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +2 -1
  255. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +4 -2
  256. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -2
  257. package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +4 -1
  258. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +3 -1
  259. package/lib/typescript/module/components/Slider/Slider.d.ts +3 -1
  260. package/lib/typescript/module/components/SliderField/SliderField.d.ts +3 -1
  261. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +4 -2
  262. package/lib/typescript/module/components/Spinner/Spinner.d.ts +2 -1
  263. package/lib/typescript/module/components/SquircleView/SquircleView.d.ts +8 -3
  264. package/lib/typescript/module/components/StatTile/StatTile.d.ts +3 -2
  265. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +4 -1
  266. package/lib/typescript/module/components/Stepper/Stepper.d.ts +3 -1
  267. package/lib/typescript/module/components/Switch/Switch.d.ts +3 -2
  268. package/lib/typescript/module/components/Tabs/Tabs.d.ts +3 -2
  269. package/lib/typescript/module/components/TagInput/TagInput.d.ts +4 -2
  270. package/lib/typescript/module/components/Text/Text.d.ts +4 -1
  271. package/lib/typescript/module/navigation/DiscardGuard.d.ts +3 -1
  272. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
1
+ import type { ReactNode, Ref } from "react";
2
2
  import type { HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
@@ -46,8 +46,10 @@ export interface RadioProps extends Omit<PressableProps, "style" | "children" |
46
46
  dotStyle?: StyleProp<ViewStyle> | undefined;
47
47
  labelStyle?: StyleProp<TextStyle> | undefined;
48
48
  testID?: string | undefined;
49
+ /** The pressable row's ref: the host view the radio renders. */
50
+ ref?: Ref<HostInstance> | undefined;
49
51
  }
50
- declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HostInstance>>;
52
+ declare function Radio(props: RadioProps): import("react").JSX.Element;
51
53
  export { Radio };
52
54
  export default Radio;
53
55
  //# sourceMappingURL=Radio.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import type { Ref } from "react";
2
3
  import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
4
  import { type RatingText } from "../../text/phone/rating.g";
4
5
  import type { Size, Tone } from "../../types/vocabulary";
@@ -31,8 +32,11 @@ export interface RatingProps {
31
32
  style?: StyleProp<ViewStyle> | undefined;
32
33
  starContainerStyle?: StyleProp<ViewStyle> | undefined;
33
34
  testID?: string | undefined;
35
+ /** The root view's ref: the host view the rating renders. */
36
+ ref?: Ref<HostInstance> | undefined;
34
37
  }
35
- declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HostInstance>> & {
38
+ declare function RatingRoot({ ref, ...props }: RatingProps): React.JSX.Element;
39
+ declare const Rating: typeof RatingRoot & {
36
40
  Skeleton: React.FC<RatingProps>;
37
41
  };
38
42
  export { Rating };
@@ -37,6 +37,7 @@ export interface RichTextEditorProps {
37
37
  /** Style for the multiline TextInput. */
38
38
  inputStyle?: StyleProp<TextStyle> | undefined;
39
39
  testID?: string | undefined;
40
+ ref?: React.Ref<TextInputInstance> | undefined;
40
41
  }
41
42
  /**
42
43
  * A markdown editor: a themed multiline field plus a toolbar that wraps the
@@ -46,6 +47,6 @@ export interface RichTextEditorProps {
46
47
  * exactly what replacing the stale `react-native-pell-rich-editor` was meant to
47
48
  * escape: markdown in, markdown out, one plain TextInput, no bridge.
48
49
  */
49
- export declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<TextInputInstance>>;
50
+ export declare const RichTextEditor: (props: RichTextEditorProps) => React.ReactElement;
50
51
  export default RichTextEditor;
51
52
  //# sourceMappingURL=RichTextEditor.d.ts.map
@@ -44,8 +44,9 @@ export interface ScannerOverlayProps {
44
44
  haptic?: HapticType | false | undefined;
45
45
  style?: StyleProp<ViewStyle> | undefined;
46
46
  testID?: string | undefined;
47
+ ref?: React.Ref<HostInstance> | undefined;
47
48
  }
48
- declare const ScannerOverlay: React.ForwardRefExoticComponent<ScannerOverlayProps & React.RefAttributes<HostInstance>>;
49
+ declare function ScannerOverlay(props: ScannerOverlayProps): React.ReactElement;
49
50
  export { ScannerOverlay };
50
51
  export default ScannerOverlay;
51
52
  //# sourceMappingURL=ScannerOverlay.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, RefAttributes } from "react";
1
+ import type { Ref } from "react";
2
2
  import type { StyleProp, TextInputInstance, TextInputProps, TextStyle, ViewStyle } from "react-native";
3
3
  import { type SearchBarText } from "../../text/phone/searchBar.g";
4
4
  import type { RadiusName } from "../../theme/types";
@@ -78,8 +78,10 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
78
78
  accessibilityLabel?: string | undefined;
79
79
  /** Derives `${testID}-field` (the field box) and `${testID}-field-press` (its box-press wrapper). */
80
80
  testID?: string | undefined;
81
+ /** The text field's instance, for focus and blur from the parent. */
82
+ ref?: Ref<TextInputInstance> | undefined;
81
83
  }
82
- declare const SearchBar: ForwardRefExoticComponent<SearchBarProps & RefAttributes<TextInputInstance>>;
84
+ declare function SearchBar({ ref, ...props }: SearchBarProps): import("react").JSX.Element;
83
85
  export { SearchBar };
84
86
  export default SearchBar;
85
87
  //# sourceMappingURL=SearchBar.d.ts.map
@@ -13,7 +13,7 @@
13
13
  * and vertical extent. It is a look, not a semantic change: the roles stay
14
14
  * radiogroup / radio, and screen navigation is still Tabs.
15
15
  */
16
- import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
16
+ import type { ReactNode, Ref } from "react";
17
17
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
18
18
  import type { RadiusName } from "../../theme/types";
19
19
  import type { Size, Tone } from "../../types/vocabulary";
@@ -94,8 +94,9 @@ export interface SegmentedControlProps {
94
94
  textStyle?: StyleProp<TextStyle> | undefined;
95
95
  labelStyle?: StyleProp<TextStyle> | undefined;
96
96
  testID?: string | undefined;
97
+ ref?: Ref<HostInstance> | undefined;
97
98
  }
98
- declare const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<HostInstance>>;
99
+ declare function SegmentedControl({ ref, ...props }: SegmentedControlProps): import("react").JSX.Element;
99
100
  export { SegmentedControl };
100
101
  export default SegmentedControl;
101
102
  //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { type Ref } from "react";
1
2
  import type { StyleProp, ViewStyle } from "react-native";
2
3
  import { type SignaturePadText } from "../../text/phone/signaturePad.g";
3
4
  import type { HapticType } from "../../utils/hapticUtils";
@@ -19,6 +20,8 @@ export interface SignaturePadRef {
19
20
  isEmpty: () => boolean;
20
21
  }
21
22
  export interface SignaturePadProps {
23
+ /** The imperative handle: `toFile()`, `toSvg()`, `clear()`, `undo()` and `isEmpty()`. */
24
+ ref?: Ref<SignaturePadRef> | undefined;
22
25
  /** A signature kept from before: each stroke a list of [x, y] points in the pad's own dp. Read once, at mount. */
23
26
  initialStrokes?: ReadonlyArray<SignatureStroke> | undefined;
24
27
  /** Answers the whole signature after each stroke, Undo and Clear, in the shape of `initialStrokes`. */
@@ -68,7 +71,7 @@ export interface SignaturePadProps {
68
71
  style?: StyleProp<ViewStyle> | undefined;
69
72
  testID?: string | undefined;
70
73
  }
71
- declare const SignaturePad: import("react").ForwardRefExoticComponent<SignaturePadProps & import("react").RefAttributes<SignaturePadRef>>;
74
+ declare function SignaturePad({ ref, ...props }: SignaturePadProps): import("react").JSX.Element;
72
75
  export { SignaturePad };
73
76
  export default SignaturePad;
74
77
  //# sourceMappingURL=SignaturePad.d.ts.map
@@ -1,3 +1,4 @@
1
+ import type { Ref } from "react";
1
2
  import React from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import { type SlideToConfirmText } from "../../text/phone/slideToConfirm.g";
@@ -28,8 +29,9 @@ export interface SlideToConfirmProps {
28
29
  handleStyle?: StyleProp<ViewStyle> | undefined;
29
30
  labelStyle?: StyleProp<TextStyle> | undefined;
30
31
  testID?: string | undefined;
32
+ ref?: Ref<HostInstance> | undefined;
31
33
  }
32
- declare const SlideToConfirm: React.ForwardRefExoticComponent<SlideToConfirmProps & React.RefAttributes<HostInstance>>;
34
+ declare function SlideToConfirm({ ref, ...props }: SlideToConfirmProps): React.JSX.Element;
33
35
  export { SlideToConfirm };
34
36
  export default SlideToConfirm;
35
37
  //# sourceMappingURL=SlideToConfirm.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import { type Ref } from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import type { Size, Tone } from "../../types/vocabulary";
4
5
  import type { HapticType } from "../../utils";
@@ -74,6 +75,7 @@ interface SliderCommonProps {
74
75
  * `${testID}-pan` on the low thumb's pan gesture.
75
76
  */
76
77
  testID?: string | undefined;
78
+ ref?: Ref<HostInstance> | undefined;
77
79
  }
78
80
  export interface SliderSingleProps extends SliderCommonProps {
79
81
  range?: false | undefined;
@@ -88,7 +90,7 @@ export interface SliderRangeProps extends SliderCommonProps {
88
90
  onChange?: ((value: [number, number]) => void) | undefined;
89
91
  }
90
92
  export type SliderProps = SliderSingleProps | SliderRangeProps;
91
- declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HostInstance>>;
93
+ declare function Slider({ ref, ...props }: SliderProps): React.JSX.Element;
92
94
  export { Slider };
93
95
  export default Slider;
94
96
  //# sourceMappingURL=Slider.d.ts.map
@@ -62,6 +62,8 @@ interface SliderFieldCommonProps {
62
62
  labels?: Partial<SliderFieldText> | undefined;
63
63
  /** Read out for the slider. Defaults to `label`. */
64
64
  accessibilityLabel?: string | undefined;
65
+ /** Points at the field's outer View. */
66
+ ref?: React.Ref<HostInstance> | undefined;
65
67
  style?: StyleProp<ViewStyle> | undefined;
66
68
  labelStyle?: StyleProp<TextStyle> | undefined;
67
69
  boundStyle?: StyleProp<TextStyle> | undefined;
@@ -83,7 +85,7 @@ interface SliderFieldRangeProps extends SliderFieldCommonProps {
83
85
  onChange?: ((value: [number, number]) => void) | undefined;
84
86
  }
85
87
  export type SliderFieldProps = SliderFieldSingleProps | SliderFieldRangeProps;
86
- declare const SliderField: React.ForwardRefExoticComponent<SliderFieldProps & React.RefAttributes<HostInstance>>;
88
+ declare function SliderField({ ref, ...props }: SliderFieldProps): React.JSX.Element;
87
89
  export { SliderField };
88
90
  export default SliderField;
89
91
  //# sourceMappingURL=SliderField.d.ts.map
@@ -7,7 +7,7 @@
7
7
  * reads as one image to a screen reader, with a label that states the start,
8
8
  * end, low and high values, so nothing rests on the line's colour.
9
9
  */
10
- import type { ForwardRefExoticComponent, RefAttributes } from "react";
10
+ import type { Ref } from "react";
11
11
  import type { HostInstance, StyleProp, ViewStyle } from "react-native";
12
12
  import { type SparklineText } from "../../text/phone/sparkline.g";
13
13
  import type { Tone } from "../../types/vocabulary";
@@ -39,8 +39,10 @@ export interface SparklineProps {
39
39
  labels?: Partial<SparklineText> | undefined;
40
40
  style?: StyleProp<ViewStyle> | undefined;
41
41
  testID?: string | undefined;
42
+ /** The root view's ref: the host view the sparkline renders. */
43
+ ref?: Ref<HostInstance> | undefined;
42
44
  }
43
- declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HostInstance>>;
45
+ declare function Sparkline(props: SparklineProps): import("react").JSX.Element;
44
46
  export { Sparkline };
45
47
  export default Sparkline;
46
48
  //# sourceMappingURL=Sparkline.d.ts.map
@@ -21,8 +21,9 @@ export interface SpinnerProps {
21
21
  labels?: Partial<SpinnerText> | undefined;
22
22
  style?: StyleProp<ViewStyle> | undefined;
23
23
  testID?: string | undefined;
24
+ ref?: React.Ref<HostInstance> | undefined;
24
25
  }
25
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HostInstance>>;
26
+ declare function Spinner({ ref, ...props }: SpinnerProps): React.JSX.Element;
26
27
  export { Spinner };
27
28
  export default Spinner;
28
29
  //# sourceMappingURL=Spinner.d.ts.map
@@ -1,6 +1,8 @@
1
- import type { ForwardRefExoticComponent, RefAttributes } from "react";
1
+ import type { Ref } from "react";
2
2
  import type { HostInstance, ViewProps } from "react-native";
3
- export type SquircleViewProps = ViewProps;
3
+ export interface SquircleViewProps extends ViewProps {
4
+ ref?: Ref<HostInstance> | undefined;
5
+ }
4
6
  /**
5
7
  * A `View` whose rounded corners are smooth on both platforms, for a surface
6
8
  * the library has no component for (a photo tile, a signature pad frame).
@@ -17,7 +19,10 @@ export type SquircleViewProps = ViewProps;
17
19
  * Children are not clipped to the curve. Use `Card` or `Box` when the surface
18
20
  * is a themed card or a spacing container.
19
21
  */
20
- declare const SquircleView: ForwardRefExoticComponent<SquircleViewProps & RefAttributes<HostInstance>>;
22
+ declare function SquircleView({ style, children, onLayout, ref, ...rest }: SquircleViewProps): import("react").JSX.Element;
23
+ declare namespace SquircleView {
24
+ var displayName: string;
25
+ }
21
26
  export { SquircleView };
22
27
  export default SquircleView;
23
28
  //# sourceMappingURL=SquircleView.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
1
+ import type { ReactNode, Ref } from "react";
2
2
  import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Tone } from "../../types/vocabulary";
4
4
  import type { IconVariant } from "../AppIcon/AppIcon";
@@ -57,8 +57,9 @@ export interface StatTileProps {
57
57
  flex?: number | undefined;
58
58
  style?: StyleProp<ViewStyle> | undefined;
59
59
  testID?: string | undefined;
60
+ ref?: Ref<HostInstance> | undefined;
60
61
  }
61
- declare const StatTile: ForwardRefExoticComponent<StatTileProps & RefAttributes<HostInstance>>;
62
+ declare function StatTile(props: StatTileProps): import("react").JSX.Element;
62
63
  export { StatTile };
63
64
  export default StatTile;
64
65
  //# sourceMappingURL=StatTile.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import type { Ref } from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import type { FillVariant, Size, Tone } from "../../types/vocabulary";
4
5
  /**
@@ -59,8 +60,10 @@ export interface StatusBadgeProps {
59
60
  style?: StyleProp<ViewStyle> | undefined;
60
61
  textStyle?: StyleProp<TextStyle> | undefined;
61
62
  testID?: string | undefined;
63
+ /** The root view's ref: the host view the badge renders. */
64
+ ref?: Ref<HostInstance> | undefined;
62
65
  }
63
- declare const StatusBadge: React.ForwardRefExoticComponent<StatusBadgeProps & React.RefAttributes<HostInstance>> & {
66
+ declare const StatusBadge: React.FC<StatusBadgeProps> & {
64
67
  Skeleton: React.FC<StatusBadgeProps>;
65
68
  };
66
69
  export { StatusBadge };
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import { type Ref } from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import { type StepperText } from "../../text/phone/stepper.g";
4
5
  import type { Tone } from "../../types/vocabulary";
@@ -79,8 +80,9 @@ export interface StepperProps {
79
80
  */
80
81
  haptic?: HapticType | false | undefined;
81
82
  testID?: string | undefined;
83
+ ref?: Ref<HostInstance> | undefined;
82
84
  }
83
- declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HostInstance>> & {
85
+ declare const Stepper: React.FC<StepperProps> & {
84
86
  Skeleton: React.FC<StepperProps>;
85
87
  };
86
88
  export { Stepper };
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
1
+ import type { ReactNode, Ref } from "react";
2
2
  import type { HostInstance, PressableProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
@@ -47,8 +47,9 @@ export interface SwitchProps extends Omit<PressableProps, "style" | "children" |
47
47
  trackStyle?: StyleProp<ViewStyle> | undefined;
48
48
  thumbStyle?: StyleProp<ViewStyle> | undefined;
49
49
  testID?: string | undefined;
50
+ ref?: Ref<HostInstance> | undefined;
50
51
  }
51
- declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HostInstance>>;
52
+ declare function Switch({ ref, ...props }: SwitchProps): import("react").JSX.Element;
52
53
  export { Switch };
53
54
  export default Switch;
54
55
  //# sourceMappingURL=Switch.d.ts.map
@@ -14,7 +14,7 @@
14
14
  * is a look, not a semantic change: the roles stay tablist/tab, and a value
15
15
  * choice is still SegmentedControl.
16
16
  */
17
- import { type ForwardRefExoticComponent, type ReactNode, type RefAttributes } from "react";
17
+ import { type ReactNode, type Ref } from "react";
18
18
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
19
19
  import { Animated } from "react-native";
20
20
  import type { RadiusName } from "../../theme/types";
@@ -93,8 +93,9 @@ export interface TabsProps {
93
93
  haptic?: HapticType | false | undefined;
94
94
  accessibilityLabel?: string | undefined;
95
95
  testID?: string | undefined;
96
+ ref?: Ref<HostInstance> | undefined;
96
97
  }
97
- declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HostInstance>>;
98
+ declare function Tabs({ ref, ...props }: TabsProps): import("react").JSX.Element;
98
99
  export { Tabs };
99
100
  export default Tabs;
100
101
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, RefAttributes } from "react";
1
+ import type { ReactElement, Ref } from "react";
2
2
  import type { FocusEvent, StyleProp, TextInputInstance, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils";
4
4
  import type { FieldBaseSize, FieldBaseVariant } from "../FieldBase";
@@ -33,12 +33,14 @@ export interface TagInputProps {
33
33
  style?: StyleProp<ViewStyle> | undefined;
34
34
  /** Derives `${testID}-field` (the field box) and `${testID}-field-press` (its box-press wrapper). */
35
35
  testID?: string | undefined;
36
+ /** The underlying text input. */
37
+ ref?: Ref<TextInputInstance> | undefined;
36
38
  }
37
39
  /**
38
40
  * Chips as input: the "type a value, press enter, it becomes a tag" field.
39
41
  * Chip renders a tag and Input takes text, but nothing joined them, so consumers
40
42
  * built this by hand each time (and each one disagreed about backspace).
41
43
  */
42
- export declare const TagInput: ForwardRefExoticComponent<TagInputProps & RefAttributes<TextInputInstance>>;
44
+ export declare const TagInput: ({ ref, ...props }: TagInputProps) => ReactElement;
43
45
  export default TagInput;
44
46
  //# sourceMappingURL=TagInput.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import type { Ref } from "react";
2
3
  import type { HostInstance, TextProps as RNTextProps, StyleProp, TextStyle } from "react-native";
3
4
  import type { TextName, Theme, WeightName } from "../../theme/types";
4
5
  import type { Tone } from "../../types/vocabulary";
@@ -23,9 +24,11 @@ export interface TextProps extends Omit<RNTextProps, "style"> {
23
24
  strikethrough?: boolean | undefined;
24
25
  children?: React.ReactNode | undefined;
25
26
  style?: StyleProp<TextStyle> | undefined;
27
+ /** The host text the component renders. */
28
+ ref?: Ref<HostInstance> | undefined;
26
29
  }
27
30
  export declare const resolveColor: (theme: Theme, color: string) => string;
28
- declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HostInstance>>;
31
+ declare function Text({ ref, ...props }: TextProps): React.JSX.Element;
29
32
  export { Text };
30
33
  export default Text;
31
34
  //# sourceMappingURL=Text.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { type Ref } from "react";
1
2
  import { type DiscardGuardText } from "../text/phone/discardGuard.g";
2
3
  export interface DiscardGuardHandle {
3
4
  /** Leaves on purpose (after a save): the guard lifts, then `go` runs. */
@@ -8,6 +9,7 @@ export interface DiscardGuardProps {
8
9
  when: boolean;
9
10
  labels?: Partial<DiscardGuardText> | undefined;
10
11
  testID?: string | undefined;
12
+ ref?: Ref<DiscardGuardHandle> | undefined;
11
13
  }
12
14
  /**
13
15
  * Asks before a form with unsaved changes is left. While `when` is true, every way out of the screen (the phone's
@@ -16,5 +18,5 @@ export interface DiscardGuardProps {
16
18
  * A screen that leaves on purpose, after a save, goes through the ref: `guard.current.leave(() =>
17
19
  * navigation.goBack())`. The form is still changed at that moment, so a plain goBack would be held too.
18
20
  */
19
- export declare const DiscardGuard: import("react").ForwardRefExoticComponent<DiscardGuardProps & import("react").RefAttributes<DiscardGuardHandle>>;
21
+ export declare const DiscardGuard: ({ when, labels: overrides, testID, ref }: DiscardGuardProps) => import("react").JSX.Element;
20
22
  //# sourceMappingURL=DiscardGuard.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { type NumberGrouping } from "@webority/mobile-core";
2
- import { type ForwardRefExoticComponent, type RefAttributes } from "react";
2
+ import { type Ref } from "react";
3
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
4
4
  import { type AmountSliderText } from "../../text/phone/amountSlider.g.js";
5
5
  import type { HapticType } from "../../utils/index.js";
@@ -46,6 +46,7 @@ export interface AmountSliderProps {
46
46
  inputStyle?: StyleProp<ViewStyle> | undefined;
47
47
  sliderStyle?: StyleProp<ViewStyle> | undefined;
48
48
  testID?: string | undefined;
49
+ ref?: Ref<HostInstance> | undefined;
49
50
  }
50
51
  interface Scaled {
51
52
  amount: number;
@@ -54,7 +55,7 @@ interface Scaled {
54
55
  type ScaleUnits = Exclude<NumberGrouping, "none">;
55
56
  /** Splits a value into the number and unit the header shows. */
56
57
  export declare const scaleAmount: (value: number, units: ScaleUnits, labels?: AmountSliderText) => Scaled;
57
- declare const AmountSlider: ForwardRefExoticComponent<AmountSliderProps & RefAttributes<HostInstance>>;
58
+ declare function AmountSlider({ ref, ...props }: AmountSliderProps): import("react").JSX.Element;
58
59
  export { AmountSlider };
59
60
  export default AmountSlider;
60
61
  //# sourceMappingURL=AmountSlider.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import { type ReactElement, type Ref } from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import { Animated } from "react-native";
4
5
  import { type BarText } from "../../text/phone/bar.g.js";
@@ -123,8 +124,10 @@ export interface AppBarProps {
123
124
  haptic?: HapticType | false | undefined;
124
125
  /** The bar's root testID; the large variant's title row is `${testID}-title-row`. */
125
126
  testID?: string | undefined;
127
+ /** The bar's root view. */
128
+ ref?: Ref<HostInstance> | undefined;
126
129
  }
127
- declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<HostInstance>>;
130
+ declare function AppBar(props: AppBarProps): ReactElement;
128
131
  export { AppBar };
129
132
  export default AppBar;
130
133
  //# sourceMappingURL=AppBar.d.ts.map
@@ -31,7 +31,9 @@ export declare const removeEntry: (cacheKey: string) => Promise<void>;
31
31
  */
32
32
  export declare class AuthedImageHttpError extends Error {
33
33
  readonly status: number;
34
- constructor(message: string, status: number);
34
+ constructor(message: string, options: {
35
+ status: number;
36
+ } & ErrorOptions);
35
37
  }
36
38
  /**
37
39
  * The server says the image is gone or no longer this user's: a 4xx other
@@ -1,5 +1,6 @@
1
1
  import type { DownloadHttpClient } from "@webority/mobile-core/download";
2
2
  import type React from "react";
3
+ import { type Ref } from "react";
3
4
  import type { GestureResponderEvent, HostInstance, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
4
5
  import { type AvatarText } from "../../text/phone/avatar.g.js";
5
6
  import type { RadiusName } from "../../theme/tokens.generated.js";
@@ -131,8 +132,12 @@ export interface AvatarProps {
131
132
  labels?: Partial<AvatarText> | undefined;
132
133
  /** Test id of the root; the built-in picture is `<testID>-image`. */
133
134
  testID?: string | undefined;
135
+ /** Ref to the root: the pressable when the avatar is a button, otherwise the view. */
136
+ ref?: Ref<HostInstance> | undefined;
134
137
  }
135
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HostInstance>> & {
138
+ declare function AvatarRoot({ ref, ...props }: AvatarProps): React.JSX.Element;
139
+ declare const Avatar: typeof AvatarRoot & {
140
+ displayName?: string;
136
141
  Skeleton: React.FC<AvatarProps>;
137
142
  };
138
143
  export type AvatarGroupSpacing = "tight" | "normal" | "loose";
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import type { Ref } from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import { type BadgeText } from "../../text/phone/badge.g.js";
4
5
  import type { Size, Tone } from "../../types/vocabulary.js";
@@ -9,6 +10,7 @@ export type BadgeAnchor = "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
9
10
  /** `solid` fills the pill with the tone. `soft` draws the tone's soft colour behind a semibold count in the tone. */
10
11
  export type BadgeFill = "solid" | "soft";
11
12
  export interface BadgeProps {
13
+ ref?: Ref<HostInstance> | undefined;
12
14
  value?: number | string | undefined;
13
15
  max?: number | undefined;
14
16
  variant?: BadgeVariant | undefined;
@@ -34,7 +36,9 @@ export interface BadgeProps {
34
36
  textStyle?: StyleProp<TextStyle> | undefined;
35
37
  testID?: string | undefined;
36
38
  }
37
- declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HostInstance>> & {
39
+ declare function BadgeRoot({ ref, ...props }: BadgeProps): React.JSX.Element;
40
+ declare const Badge: typeof BadgeRoot & {
41
+ displayName?: string;
38
42
  Skeleton: React.FC<BadgeProps>;
39
43
  };
40
44
  export { Badge };
@@ -81,8 +81,10 @@ export interface BannerProps {
81
81
  /** Style applied to each action button (Pressable). */
82
82
  actionButtonStyle?: StyleProp<ViewStyle> | undefined;
83
83
  testID?: string | undefined;
84
+ /** The banner's outer view. */
85
+ ref?: React.Ref<HostInstance> | undefined;
84
86
  }
85
- declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HostInstance>> & {
87
+ declare const Banner: React.FC<BannerProps> & {
86
88
  Skeleton: React.FC<BannerProps>;
87
89
  };
88
90
  export { Banner };
@@ -19,6 +19,7 @@
19
19
  * A legend names the series, and a bar is read as its label and every series value.
20
20
  */
21
21
  import type React from "react";
22
+ import type { Ref } from "react";
22
23
  import type { HostInstance, StyleProp, ViewStyle } from "react-native";
23
24
  import { type BarChartText } from "../../text/phone/barChart.g.js";
24
25
  import type { Tone } from "../../types/vocabulary.js";
@@ -78,9 +79,11 @@ export interface BarChartProps {
78
79
  /** Copy for the chart's spoken and written text. A key left out keeps its default. */
79
80
  labels?: Partial<BarChartText> | undefined;
80
81
  style?: StyleProp<ViewStyle> | undefined;
82
+ /** The chart's root view, for a parent that measures it or scrolls to it. */
83
+ ref?: Ref<HostInstance> | undefined;
81
84
  testID?: string | undefined;
82
85
  }
83
- declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<HostInstance>>;
86
+ declare function BarChart({ ref, ...props }: BarChartProps): React.ReactElement;
84
87
  export { BarChart };
85
88
  export default BarChart;
86
89
  //# sourceMappingURL=BarChart.d.ts.map
@@ -1,3 +1,4 @@
1
+ import type { Ref } from "react";
1
2
  import React from "react";
2
3
  import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import type { ScrollDirection } from "../../hooks/useScrollDirection.js";
@@ -251,8 +252,9 @@ export interface BottomNavigationProps {
251
252
  /** Overrides the built-in English strings for the screen reader; each key you omit keeps its default. */
252
253
  labels?: Partial<BottomNavigationText> | undefined;
253
254
  testID?: string | undefined;
255
+ ref?: Ref<HostInstance> | undefined;
254
256
  }
255
- declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<HostInstance>>;
257
+ declare function BottomNavigation({ ref, ...props }: BottomNavigationProps): React.JSX.Element;
256
258
  export { BottomNavigation };
257
259
  export default BottomNavigation;
258
260
  //# sourceMappingURL=BottomNavigation.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import type React from "react";
2
+ import type { Ref } from "react";
2
3
  import type { HostInstance, StyleProp, ViewProps, ViewStyle } from "react-native";
3
4
  import type { RadiusName, SpaceName, Theme } from "../../theme/types.js";
4
5
  export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse" | "primary-wash";
@@ -34,16 +35,18 @@ export interface BoxProps extends ViewProps {
34
35
  direction?: ViewStyle["flexDirection"] | undefined;
35
36
  wrap?: boolean | undefined;
36
37
  style?: StyleProp<ViewStyle> | undefined;
38
+ /** The root view's ref: the host view the box renders. */
39
+ ref?: Ref<HostInstance> | undefined;
37
40
  }
38
41
  type LayoutProps = Omit<BoxProps, "style" | "children">;
39
42
  export declare const resolveBoxStyle: (theme: Theme, p: LayoutProps) => ViewStyle;
40
- declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HostInstance>>;
43
+ declare function Box(props: BoxProps): React.JSX.Element;
41
44
  export type StackProps = Omit<BoxProps, "direction">;
42
45
  /** Vertical flex container with token spacing between children (default gap `md`). */
43
- declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HostInstance>>;
46
+ declare function Stack({ gap, ref, ...rest }: StackProps): React.JSX.Element;
44
47
  export type RowProps = Omit<BoxProps, "direction">;
45
48
  /** Horizontal flex container (default `align="center"`, gap `sm`). */
46
- declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HostInstance>>;
49
+ declare function Row({ gap, align, ref, ...rest }: RowProps): React.JSX.Element;
47
50
  export interface SpacerProps {
48
51
  /** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
49
52
  size?: SpaceName | undefined;
@@ -1,4 +1,4 @@
1
- import { type ForwardRefExoticComponent, type RefAttributes } from "react";
1
+ import { type ReactElement, type Ref } from "react";
2
2
  import type { GestureResponderEvent, HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { PressAnimationPreset } from "../../hooks/usePressAnimation.js";
4
4
  import { type ButtonText } from "../../text/phone/button.g.js";
@@ -91,8 +91,10 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children" |
91
91
  testID?: string | undefined;
92
92
  /** Overrides the text the Button draws for its own states; a key left out keeps its default. */
93
93
  labels?: Partial<ButtonText> | undefined;
94
+ /** The host view, for imperative calls such as focus or measure. */
95
+ ref?: Ref<HostInstance> | undefined;
94
96
  }
95
- declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HostInstance>>;
97
+ declare function Button({ ref, ...props }: ButtonProps): ReactElement;
96
98
  /**
97
99
  * The colour a Button draws its label in, for the given variant, tone and disabled state: the same value
98
100
  * the Button itself uses, so a renderer that draws a Button's label (Canvas) never keeps its own copy of the rules.
@@ -3,7 +3,7 @@
3
3
  * days drawn as dots in a tone and read aloud with each day. DateRangePicker
4
4
  * renders this same grid inside its sheet.
5
5
  */
6
- import type { ForwardRefExoticComponent, RefAttributes } from "react";
6
+ import type { Ref } from "react";
7
7
  import type { HostInstance, StyleProp, ViewStyle } from "react-native";
8
8
  import { type CalendarText } from "../../text/phone/calendar.g.js";
9
9
  import type { SelectionMode, Tone } from "../../types/vocabulary.js";
@@ -67,8 +67,10 @@ export interface CalendarProps {
67
67
  /** Style override for the previous and next month buttons. */
68
68
  navButtonStyle?: StyleProp<ViewStyle> | undefined;
69
69
  testID?: string | undefined;
70
+ /** The root view of the calendar. */
71
+ ref?: Ref<HostInstance> | undefined;
70
72
  }
71
- declare const Calendar: ForwardRefExoticComponent<CalendarProps & RefAttributes<HostInstance>>;
73
+ declare function Calendar({ ref, ...props }: CalendarProps): import("react").JSX.Element;
72
74
  export { Calendar };
73
75
  export default Calendar;
74
76
  //# sourceMappingURL=Calendar.d.ts.map