@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
@@ -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.js";
19
19
  import type { Size, Tone } from "../../types/vocabulary.js";
@@ -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.js";
3
4
  import type { HapticType } from "../../utils/hapticUtils.js";
@@ -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.js";
@@ -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.js";
4
5
  import type { HapticType } from "../../utils/index.js";
@@ -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.js";
13
13
  import type { Tone } from "../../types/vocabulary.js";
@@ -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.js";
4
4
  import type { IconVariant } from "../AppIcon/AppIcon.js";
@@ -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.js";
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.js";
4
5
  import type { Tone } from "../../types/vocabulary.js";
@@ -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.js";
4
4
  import type { HapticType } from "../../utils/hapticUtils.js";
@@ -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.js";
@@ -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/index.js";
4
4
  import type { FieldBaseSize, FieldBaseVariant } from "../FieldBase/index.js";
@@ -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.js";
4
5
  import type { Tone } from "../../types/vocabulary.js";
@@ -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.js";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.174.1",
3
+ "version": "0.175.0",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -126,13 +126,13 @@
126
126
  }
127
127
  },
128
128
  "dependencies": {
129
- "@webority/markdown-core": "0.174.1"
129
+ "@webority/markdown-core": "0.175.0"
130
130
  },
131
131
  "peerDependencies": {
132
132
  "@react-navigation/bottom-tabs": ">=7.0.0",
133
133
  "@react-navigation/native": ">=7.0.0",
134
- "@webority/canvas-kit": "0.174.1",
135
- "@webority/mobile-core": "0.174.1",
134
+ "@webority/canvas-kit": "0.175.0",
135
+ "@webority/mobile-core": "0.175.0",
136
136
  "expo": ">=58.0.0",
137
137
  "expo-file-system": ">=58.0.0",
138
138
  "expo-haptics": ">=58.0.0",
@@ -196,10 +196,10 @@
196
196
  "@types/jest": "29.5.14",
197
197
  "@types/node": "25.6.0",
198
198
  "@types/react": "19.3.0",
199
- "@webority/canvas-kit": "0.174.1",
200
- "@webority/mobile-core": "0.174.1",
199
+ "@webority/canvas-kit": "0.175.0",
200
+ "@webority/mobile-core": "0.175.0",
201
201
  "@webority/mobile-dev": "0.0.0",
202
- "@webority/tokens": "0.174.1",
202
+ "@webority/tokens": "0.175.0",
203
203
  "expo": "58.0.23",
204
204
  "expo-file-system": "58.0.13",
205
205
  "expo-haptics": "58.0.7",