@webority/mobile-ui 0.149.0 → 0.150.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 (459) hide show
  1. package/dist/canvas-kit/kit.js +13 -56714
  2. package/dist/canvas-kit/manifest.json +20 -41
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  5. package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
  6. package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
  7. package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
  8. package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
  9. package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
  10. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  11. package/lib/commonjs/components/Badge/Badge.js +1 -1
  12. package/lib/commonjs/components/Banner/Banner.js +1 -1
  13. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  14. package/lib/commonjs/components/Box/Box.js +1 -1
  15. package/lib/commonjs/components/Card/Card.js +1 -1
  16. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  17. package/lib/commonjs/components/Chip/Chip.js +1 -1
  18. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  19. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  20. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  21. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  22. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  23. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  24. package/lib/commonjs/components/FileViewer/fileSource.js +1 -1
  25. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  26. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  27. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  28. package/lib/commonjs/components/Input/Input.js +1 -1
  29. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  30. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  31. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  32. package/lib/commonjs/components/Menu/focusHost.js +1 -1
  33. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  34. package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
  35. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  36. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  37. package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
  38. package/lib/commonjs/components/Rating/Rating.js +1 -1
  39. package/lib/commonjs/components/Repeater/Repeater.js +1 -1
  40. package/lib/commonjs/components/Screen/Screen.js +1 -1
  41. package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
  42. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  43. package/lib/commonjs/components/Select/Select.js +1 -1
  44. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  45. package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
  46. package/lib/commonjs/components/Slider/Slider.js +1 -1
  47. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  48. package/lib/commonjs/components/SortableList/SortableList.js +1 -1
  49. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  50. package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
  51. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  52. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  53. package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
  54. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  55. package/lib/commonjs/components/Text/Text.js +1 -1
  56. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  57. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
  58. package/lib/commonjs/form/HookFormField.js +1 -1
  59. package/lib/commonjs/form/path.js +1 -1
  60. package/lib/commonjs/hooks/useControllableState.js +1 -1
  61. package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
  62. package/lib/commonjs/theme/ThemeContext.js +1 -1
  63. package/lib/commonjs/theme/animatedValue.js +1 -1
  64. package/lib/commonjs/theme/componentSizes.js +1 -1
  65. package/lib/commonjs/theme/merge.js +1 -1
  66. package/lib/commonjs/theme/scale.js +1 -1
  67. package/lib/commonjs/utils/complete.js +1 -0
  68. package/lib/commonjs/utils/guards.js +1 -0
  69. package/lib/commonjs/utils/hapticUtils.js +1 -1
  70. package/lib/module/components/Accordion/Accordion.js +1 -1
  71. package/lib/module/components/AppIcon/AppIcon.js +1 -1
  72. package/lib/module/components/AppIcon/glyphs.g.js +1 -1
  73. package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
  74. package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
  75. package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
  76. package/lib/module/components/Avatar/Avatar.js +1 -1
  77. package/lib/module/components/Badge/Badge.js +1 -1
  78. package/lib/module/components/Banner/Banner.js +1 -1
  79. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  80. package/lib/module/components/Box/Box.js +1 -1
  81. package/lib/module/components/Card/Card.js +1 -1
  82. package/lib/module/components/Carousel/Carousel.js +1 -1
  83. package/lib/module/components/Chip/Chip.js +1 -1
  84. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  85. package/lib/module/components/Confetti/Confetti.js +1 -1
  86. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  87. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  88. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  89. package/lib/module/components/Dialog/Dialog.js +1 -1
  90. package/lib/module/components/FileViewer/fileSource.js +1 -1
  91. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  92. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  93. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  94. package/lib/module/components/Input/Input.js +1 -1
  95. package/lib/module/components/ListItem/ListItem.js +1 -1
  96. package/lib/module/components/Markdown/Markdown.js +1 -1
  97. package/lib/module/components/Menu/MenuSurface.js +1 -1
  98. package/lib/module/components/Menu/focusHost.js +1 -1
  99. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  100. package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
  101. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  102. package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
  103. package/lib/module/components/Radio/RadioGroup.js +1 -1
  104. package/lib/module/components/Rating/Rating.js +1 -1
  105. package/lib/module/components/Repeater/Repeater.js +1 -1
  106. package/lib/module/components/Screen/Screen.js +1 -1
  107. package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
  108. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  109. package/lib/module/components/Select/Select.js +1 -1
  110. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  111. package/lib/module/components/Skeleton/SkeletonList.js +1 -1
  112. package/lib/module/components/Slider/Slider.js +1 -1
  113. package/lib/module/components/SliderField/SliderField.js +1 -1
  114. package/lib/module/components/SortableList/SortableList.js +1 -1
  115. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  116. package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
  117. package/lib/module/components/StatTile/StatTile.js +1 -1
  118. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  119. package/lib/module/components/StatusBadge/statusMap.js +1 -1
  120. package/lib/module/components/Stepper/Stepper.js +1 -1
  121. package/lib/module/components/Text/Text.js +1 -1
  122. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  123. package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
  124. package/lib/module/form/HookFormField.js +1 -1
  125. package/lib/module/form/path.js +1 -1
  126. package/lib/module/hooks/useControllableState.js +1 -1
  127. package/lib/module/specs/NativePdfRasterizer.js +1 -1
  128. package/lib/module/theme/ThemeContext.js +1 -1
  129. package/lib/module/theme/animatedValue.js +1 -1
  130. package/lib/module/theme/componentSizes.js +1 -1
  131. package/lib/module/theme/merge.js +1 -1
  132. package/lib/module/theme/scale.js +1 -1
  133. package/lib/module/utils/complete.js +1 -0
  134. package/lib/module/utils/guards.js +1 -0
  135. package/lib/module/utils/hapticUtils.js +1 -1
  136. package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
  137. package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
  138. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
  139. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
  140. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  141. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
  142. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
  143. package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
  144. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
  145. package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
  146. package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  147. package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  148. package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
  149. package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
  150. package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
  151. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +36 -36
  152. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
  153. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
  154. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
  155. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  156. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +32 -32
  157. package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
  158. package/lib/typescript/commonjs/components/Button/Button.d.ts +22 -22
  159. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
  160. package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
  161. package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
  162. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
  163. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
  164. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
  165. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  166. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
  167. package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
  168. package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
  169. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
  170. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  171. package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
  172. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
  173. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
  174. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
  175. package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
  176. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
  177. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +14 -14
  178. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
  179. package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  180. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
  181. package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
  182. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
  183. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
  184. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
  185. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
  186. package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
  187. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  188. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  189. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  190. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
  191. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
  192. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
  193. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
  194. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
  195. package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
  196. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  197. package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  198. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
  199. package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
  200. package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  201. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
  202. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
  203. package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
  204. package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
  205. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
  206. package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
  207. package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
  208. package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
  209. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
  210. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
  211. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
  212. package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
  213. package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  214. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +33 -33
  215. package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +8 -0
  216. package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  217. package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  218. package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  219. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  220. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  221. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  222. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  223. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
  224. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
  225. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
  226. package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
  227. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
  228. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
  229. package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
  230. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  231. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  232. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
  233. package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
  234. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
  235. package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
  236. package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
  237. package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
  238. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  239. package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
  240. package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
  241. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
  242. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
  243. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
  244. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
  245. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  246. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
  247. package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
  248. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
  249. package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
  250. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
  251. package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
  252. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
  253. package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
  254. package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
  255. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
  256. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
  257. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
  258. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +15 -15
  259. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
  260. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
  261. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
  262. package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
  263. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
  264. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
  265. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
  266. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
  267. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
  268. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
  269. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
  270. package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  271. package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +6 -6
  272. package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +20 -20
  273. package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  274. package/lib/typescript/commonjs/form/HookFormField.d.ts +5 -18
  275. package/lib/typescript/commonjs/form/path.d.ts +4 -2
  276. package/lib/typescript/commonjs/form/useFormCompletion.d.ts +1 -1
  277. package/lib/typescript/commonjs/hooks/useControllableState.d.ts +2 -2
  278. package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +3 -3
  279. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
  280. package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
  281. package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
  282. package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
  283. package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
  284. package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +2 -2
  285. package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
  286. package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
  287. package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
  288. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
  289. package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
  290. package/lib/typescript/commonjs/theme/types.d.ts +84 -84
  291. package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
  292. package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
  293. package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
  294. package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
  295. package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
  296. package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
  297. package/lib/typescript/module/canvasKit/index.d.ts +12 -12
  298. package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
  299. package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
  300. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
  301. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  302. package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
  303. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
  304. package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
  305. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
  306. package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
  307. package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  308. package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  309. package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
  310. package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
  311. package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
  312. package/lib/typescript/module/components/Avatar/Avatar.d.ts +36 -36
  313. package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
  314. package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
  315. package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
  316. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  317. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +32 -32
  318. package/lib/typescript/module/components/Box/Box.d.ts +27 -27
  319. package/lib/typescript/module/components/Button/Button.d.ts +22 -22
  320. package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
  321. package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
  322. package/lib/typescript/module/components/Card/Card.d.ts +41 -41
  323. package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
  324. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
  325. package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
  326. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  327. package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
  328. package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
  329. package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
  330. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
  331. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  332. package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
  333. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
  334. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
  335. package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
  336. package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
  337. package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
  338. package/lib/typescript/module/components/Drawer/Drawer.d.ts +14 -14
  339. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
  340. package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  341. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
  342. package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
  343. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
  344. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
  345. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
  346. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
  347. package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
  348. package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  349. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  350. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  351. package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
  352. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
  353. package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
  354. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
  355. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
  356. package/lib/typescript/module/components/Input/Input.d.ts +47 -47
  357. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  358. package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  359. package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
  360. package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
  361. package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  362. package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
  363. package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
  364. package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
  365. package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
  366. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
  367. package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
  368. package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
  369. package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
  370. package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
  371. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +27 -27
  372. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
  373. package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
  374. package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  375. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +33 -33
  376. package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +8 -0
  377. package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  378. package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  379. package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  380. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  381. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  382. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  383. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  384. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
  385. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
  386. package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
  387. package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
  388. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
  389. package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
  390. package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
  391. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  392. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  393. package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
  394. package/lib/typescript/module/components/Screen/index.d.ts +1 -1
  395. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
  396. package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
  397. package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
  398. package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
  399. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  400. package/lib/typescript/module/components/Select/Select.d.ts +50 -45
  401. package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
  402. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
  403. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
  404. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
  405. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
  406. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  407. package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
  408. package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
  409. package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
  410. package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
  411. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
  412. package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
  413. package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
  414. package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
  415. package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
  416. package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
  417. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
  418. package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
  419. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +15 -15
  420. package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
  421. package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
  422. package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
  423. package/lib/typescript/module/components/Text/Text.d.ts +10 -10
  424. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
  425. package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
  426. package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
  427. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
  428. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
  429. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
  430. package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
  431. package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  432. package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +6 -6
  433. package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +20 -20
  434. package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  435. package/lib/typescript/module/form/HookFormField.d.ts +5 -18
  436. package/lib/typescript/module/form/path.d.ts +4 -2
  437. package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
  438. package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
  439. package/lib/typescript/module/hooks/useDragToDismiss.d.ts +3 -3
  440. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
  441. package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
  442. package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
  443. package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
  444. package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
  445. package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
  446. package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
  447. package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
  448. package/lib/typescript/module/theme/Gradient.d.ts +2 -2
  449. package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
  450. package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
  451. package/lib/typescript/module/theme/types.d.ts +84 -84
  452. package/lib/typescript/module/utils/announce.d.ts +1 -1
  453. package/lib/typescript/module/utils/complete.d.ts +5 -0
  454. package/lib/typescript/module/utils/feedback.d.ts +3 -1
  455. package/lib/typescript/module/utils/guards.d.ts +9 -0
  456. package/lib/typescript/module/utils/placement.d.ts +3 -3
  457. package/lib/typescript/module/utils/squircle.d.ts +2 -2
  458. package/package.json +9 -9
  459. package/src/specs/NativePdfRasterizer.ts +1 -1
@@ -26,7 +26,7 @@ export interface SlotIconState {
26
26
  /** An AppIcon by name, optionally in a style. */
27
27
  export interface SlotIconRef {
28
28
  name: AppIconName;
29
- variant?: IconVariant;
29
+ variant?: IconVariant | undefined;
30
30
  }
31
31
  /**
32
32
  * A node a slot draws as is. `string` is carved out of `ReactNode` so a bare
@@ -13,14 +13,14 @@ export interface AppLockOverlayProps {
13
13
  open: boolean;
14
14
  onUnlock: () => void;
15
15
  /** The last unlock failure; "cancelled" shows no message. */
16
- failure?: AppLockFailure;
16
+ failure?: AppLockFailure | undefined;
17
17
  secondaryAction?: {
18
18
  label: string;
19
19
  onPress: () => void;
20
- };
21
- brandMark?: React.ReactNode;
22
- labels?: Partial<AppLockOverlayLabels>;
23
- testID?: string;
20
+ } | undefined;
21
+ brandMark?: React.ReactNode | undefined;
22
+ labels?: Partial<AppLockOverlayLabels> | undefined;
23
+ testID?: string | undefined;
24
24
  }
25
25
  /** Calls `onUnlock` once each time it becomes open, and again on every press of the unlock button. */
26
26
  export declare function AppLockOverlay({ open, onUnlock, failure, secondaryAction, brandMark, labels: labelOverrides, testID, }: AppLockOverlayProps): React.ReactElement | null;
@@ -1,69 +1,51 @@
1
+ import type { DataState } from "@webority/mobile-core/query";
1
2
  import type React from "react";
2
3
  import type { StyleProp, ViewStyle } from "react-native";
4
+ import type { EmptyStateProps } from "../EmptyState/index.js";
3
5
  /** Which failure the error state describes. */
4
6
  export type AsyncBlockErrorVariant = "default" | "offline";
5
7
  export interface AsyncBlockLabels {
6
8
  emptyTitle: string;
7
9
  errorTitle: string;
8
10
  offlineTitle: string;
9
- offlineHint: string;
10
11
  retry: string;
11
12
  }
12
13
  export declare const DEFAULT_ASYNC_BLOCK_LABELS: Readonly<AsyncBlockLabels>;
13
- export interface AsyncBlockProps {
14
- /** Show the placeholder instead of content. */
15
- loading?: boolean;
16
- /**
17
- * An error to show in place of content. Falsy means no error. A string is the
18
- * description. A React element or array is rendered under the state. Any other
19
- * truthy value is read with `extractApiError`, and its `message` is the description.
20
- */
21
- error?: unknown;
14
+ export interface AsyncBlockProps<T> {
15
+ /** The request's data state: one of the four members of DataState. */
16
+ state: DataState<T>;
17
+ /** Called only in the "data" state, with the loaded data. */
18
+ children: (data: T) => React.ReactNode;
19
+ /** Content of the empty state. Default: an EmptyState titled with `labels.emptyTitle`. */
20
+ empty?: EmptyStateProps | undefined;
22
21
  /**
23
22
  * `'offline'` draws the error state as a lost connection: a cloud icon and
24
- * `offlineTitle`, with a reconnect hint unless the description is text. Unset,
25
- * an error whose code is `OFFLINE_CODE` picks it and every other error is
26
- * `'default'`. A set value always wins.
23
+ * `offlineTitle`. Unset, an error whose code is `OFFLINE_CODE` picks it and every
24
+ * other error is `'default'`. A set value always wins.
27
25
  */
28
- errorVariant?: AsyncBlockErrorVariant;
29
- /** The fetch succeeded with nothing to show. */
30
- empty?: boolean;
31
- /** Retry affordance on the error state. Omit to render the error without one. */
32
- onRetry?: () => void;
26
+ errorVariant?: AsyncBlockErrorVariant | undefined;
33
27
  /** Placeholder shaped like the content. Falls back to a centred Spinner. */
34
- skeleton?: React.ReactNode;
35
- /** Copy for the empty state. Wins over `labels.emptyTitle`. */
36
- emptyTitle?: string;
37
- emptyDescription?: string;
38
- emptyIcon?: React.ReactNode;
39
- /** Copy for the error state. The description is `error` when it is a string, else the extracted message. Wins over `labels.errorTitle`. */
40
- errorTitle?: string;
28
+ skeleton?: React.ReactNode | undefined;
29
+ /** Title of the error state. Wins over `labels.errorTitle`. */
30
+ errorTitle?: string | undefined;
41
31
  /** Title of the offline error state. Wins over `labels.offlineTitle`. */
42
- offlineTitle?: string;
32
+ offlineTitle?: string | undefined;
43
33
  /** Overrides the built-in copy for the keys given; the title props above win over their matching key. */
44
- labels?: Partial<AsyncBlockLabels>;
45
- /** Rendered as given (no wrapper) once loaded, error-free and non-empty. */
46
- children?: React.ReactNode;
34
+ labels?: Partial<AsyncBlockLabels> | undefined;
47
35
  /** Style of the loading, error and empty states' wrapper. Content is not wrapped. */
48
- style?: StyleProp<ViewStyle>;
36
+ style?: StyleProp<ViewStyle> | undefined;
49
37
  /** Test selector on the loading, error and empty states' wrapper. */
50
- testID?: string;
38
+ testID?: string | undefined;
51
39
  }
52
40
  /**
53
41
  * The loading / error / empty / content switcher every screen that fetches data
54
- * needs. Without it each screen re-implements the same four-way branch and they
55
- * disagree — one shows a spinner over stale rows, the next flashes an empty
56
- * state mid-fetch.
57
- *
58
- * Precedence is fixed: `loading` wins over everything, then `error`, then
59
- * `empty`, then `children`. A fetch that is both in flight and holding a stale
60
- * error shows only the loading state, which is the least surprising reading of
61
- * "still in flight".
42
+ * needs. It draws one closed set of states, so a screen cannot show a spinner over
43
+ * stale rows or flash an empty state mid-fetch.
62
44
  *
63
45
  * Content is returned as given: a wrapper there took part in the caller's
64
46
  * flex layout (a list inside lost its `flex: 1`), so only the placeholder
65
47
  * states carry `style` and `testID`.
66
48
  */
67
- export declare const AsyncBlock: React.FC<AsyncBlockProps>;
49
+ export declare function AsyncBlock<T>({ state, children, empty, errorVariant, skeleton, errorTitle, offlineTitle, labels: labelOverrides, style, testID, }: AsyncBlockProps<T>): React.ReactElement;
68
50
  export default AsyncBlock;
69
51
  //# sourceMappingURL=AsyncBlock.d.ts.map
@@ -14,40 +14,40 @@ export declare const DEFAULT_AUTHED_IMAGE_LABELS: Readonly<AuthedImageLabels>;
14
14
  * `contentPosition`, `transition`, `cachePolicy`, `recyclingKey` and the rest)
15
15
  * passes through. Its `placeholder` is this component's own loading slot.
16
16
  */
17
- export interface AuthedImageProps extends Omit<ImageProps, "source" | "onError" | "placeholder" | "resizeMode" | "fadeDuration" | "defaultSource" | "loadingIndicatorSource"> {
17
+ export interface AuthedImageProps extends Omit<ImageProps, "source" | "onError" | "onLoadStart" | "onLoadEnd" | "placeholder" | "resizeMode" | "fadeDuration" | "defaultSource" | "loadingIndicatorSource"> {
18
18
  uri: string;
19
19
  /**
20
20
  * React Native's name for `contentFit`, mapped onto it: `stretch` becomes
21
21
  * `fill`, `center` becomes `scale-down` and `repeat`, which expo-image cannot
22
22
  * draw, becomes `cover`. `contentFit` wins when both are set.
23
23
  */
24
- resizeMode?: AuthedImageResizeMode;
24
+ resizeMode?: AuthedImageResizeMode | undefined;
25
25
  /** React Native's Android cross-fade, in milliseconds. Mapped onto `transition`, which wins. */
26
- fadeDuration?: number;
27
- headers?: Record<string, string>;
26
+ fadeDuration?: number | undefined;
27
+ headers?: Record<string, string> | undefined;
28
28
  /**
29
29
  * Fetches the image. Pass the app's signed-in client (mobile-core's
30
30
  * `userClient`, or its own) so an expired token refreshes and the image
31
31
  * retries like any other call; defaults to mobile-core's `publicClient`.
32
32
  */
33
- client?: DownloadHttpClient;
33
+ client?: DownloadHttpClient | undefined;
34
34
  /**
35
35
  * Attach the stored bearer token when no `client` is given. Default true. The token goes only to
36
36
  * a relative address or one on the configured `baseUrl`'s origin; any other host gets none.
37
37
  */
38
- authenticated?: boolean;
38
+ authenticated?: boolean | undefined;
39
39
  /** Cache lifetime. Default 7 days. */
40
- ttlMs?: number;
41
- placeholder?: React.ReactNode;
42
- fallback?: React.ReactNode;
43
- onLoadStart?: () => void;
44
- onLoadEnd?: () => void;
45
- onError?: (error: Error) => void;
40
+ ttlMs?: number | undefined;
41
+ placeholder?: React.ReactNode | undefined;
42
+ fallback?: React.ReactNode | undefined;
43
+ onLoadStart?: (() => void) | undefined;
44
+ onLoadEnd?: (() => void) | undefined;
45
+ onError?: ((error: Error) => void) | undefined;
46
46
  /** Override the key derived from `uri`. */
47
- cacheKey?: string;
48
- testID?: string;
47
+ cacheKey?: string | undefined;
48
+ testID?: string | undefined;
49
49
  /** Text for the loading spinner and the failed-image box. Each key overrides its default. */
50
- labels?: Partial<AuthedImageLabels>;
50
+ labels?: Partial<AuthedImageLabels> | undefined;
51
51
  }
52
52
  declare const AuthedImage: React.FC<AuthedImageProps>;
53
53
  export { AuthedImage };
@@ -47,10 +47,10 @@ export declare const authedImageCacheStats: () => Promise<{
47
47
  }>;
48
48
  export interface FetchOptions {
49
49
  uri: string;
50
- headers?: Record<string, string>;
50
+ headers?: Record<string, string> | undefined;
51
51
  /** Attaches the stored bearer token, only when no `client` is given and the address is the app's own API. */
52
52
  authenticated: boolean;
53
- client?: DownloadHttpClient;
53
+ client?: DownloadHttpClient | undefined;
54
54
  }
55
55
  export interface InFlightFetch {
56
56
  promise: Promise<CachedImage>;
@@ -11,43 +11,43 @@ export interface AutocompleteProps<T = string> {
11
11
  /** Candidate options to filter. */
12
12
  options: ReadonlyArray<T>;
13
13
  /** Controlled input text. */
14
- value?: string;
14
+ value?: string | undefined;
15
15
  /** Uncontrolled initial text. */
16
- defaultValue?: string;
17
- onChangeText?: (text: string) => void;
16
+ defaultValue?: string | undefined;
17
+ onChangeText?: ((text: string) => void) | undefined;
18
18
  /** Fired when a suggestion is chosen. */
19
19
  onSelect: (option: T) => void;
20
20
  /** Read a display label from an option. Defaults to the option itself for strings. */
21
- getOptionLabel?: (option: T) => string;
21
+ getOptionLabel?: ((option: T) => string) | undefined;
22
22
  /** Stable React key per option. Defaults to its label. */
23
- getOptionKey?: (option: T) => string;
23
+ getOptionKey?: ((option: T) => string) | undefined;
24
24
  /** Custom match predicate. Defaults to a case-insensitive substring match on the label. */
25
- filter?: (option: T, query: string) => boolean;
25
+ filter?: ((option: T, query: string) => boolean) | undefined;
26
26
  /** Minimum characters before suggestions appear. Default 1. */
27
- minChars?: number;
27
+ minChars?: number | undefined;
28
28
  /** Cap the number of suggestions shown. Default 8. */
29
- maxResults?: number;
29
+ maxResults?: number | undefined;
30
30
  /** Show a loading spinner in the dropdown — e.g. while fetching remote results. */
31
- loading?: boolean;
31
+ loading?: boolean | undefined;
32
32
  /** `'client'` filters `options` locally; `'none'` shows them as-is (for server-side search). Default `'client'`. */
33
- filterMode?: "client" | "none";
33
+ filterMode?: "client" | "none" | undefined;
34
34
  /** Text beside the loading spinner. Default `labels.searching`. */
35
- loadingText?: string;
35
+ loadingText?: string | undefined;
36
36
  /** Dropdown copy. Missing keys keep `DEFAULT_AUTOCOMPLETE_LABELS`. */
37
- labels?: Partial<AutocompleteLabels>;
38
- placeholder?: string;
39
- label?: string;
40
- error?: string | boolean;
41
- helperText?: string;
42
- disabled?: boolean;
43
- size?: InputSize;
44
- variant?: InputVariant;
37
+ labels?: Partial<AutocompleteLabels> | undefined;
38
+ placeholder?: string | undefined;
39
+ label?: string | undefined;
40
+ error?: string | boolean | undefined;
41
+ helperText?: string | undefined;
42
+ disabled?: boolean | undefined;
43
+ size?: InputSize | undefined;
44
+ variant?: InputVariant | undefined;
45
45
  /** Haptic on select. Default `'selection'`. */
46
- haptic?: HapticType | false;
47
- style?: StyleProp<ViewStyle>;
48
- listStyle?: StyleProp<ViewStyle>;
49
- optionTextStyle?: StyleProp<TextStyle>;
50
- testID?: string;
46
+ haptic?: HapticType | false | undefined;
47
+ style?: StyleProp<ViewStyle> | undefined;
48
+ listStyle?: StyleProp<ViewStyle> | undefined;
49
+ optionTextStyle?: StyleProp<TextStyle> | undefined;
50
+ testID?: string | undefined;
51
51
  }
52
52
  declare function Autocomplete<T = string>(props: AutocompleteProps<T>): React.JSX.Element;
53
53
  declare namespace Autocomplete {
@@ -20,7 +20,7 @@ export interface AvatarImageProps {
20
20
  contentFit: AvatarContentFit;
21
21
  resizeMode: AvatarContentFit;
22
22
  onError: () => void;
23
- accessibilityIgnoresInvertColors?: boolean;
23
+ accessibilityIgnoresInvertColors?: boolean | undefined;
24
24
  }
25
25
  export type AvatarSize = Size;
26
26
  export type AvatarShape = "circle" | "square" | "rounded";
@@ -57,7 +57,7 @@ export interface AvatarLabels {
57
57
  }
58
58
  export declare const DEFAULT_AVATAR_LABELS: Readonly<AvatarLabels>;
59
59
  export interface AvatarProps {
60
- source?: ImageSourcePropType;
60
+ source?: ImageSourcePropType | undefined;
61
61
  /**
62
62
  * Custom component used to render the image instead of the built-in `<Image>`.
63
63
  * Receives {@link AvatarImageProps}. Use this when `source` points at a secured
@@ -65,79 +65,79 @@ export interface AvatarProps {
65
65
  * app's authenticated image loader. On error it should call `onError`, which
66
66
  * triggers the initials fallback. When omitted, expo-image's `<Image>` is used.
67
67
  */
68
- ImageComponent?: React.ComponentType<AvatarImageProps>;
68
+ ImageComponent?: React.ComponentType<AvatarImageProps> | undefined;
69
69
  /**
70
70
  * The authed fetcher for a `source` with a `uri` (the app's signed-in client, as AuthedImage's `client`).
71
71
  * With it set and no ImageComponent, the picture draws through AuthedImage: the image is fetched with the
72
72
  * client, cached on disk and shown with the initials as its fallback.
73
73
  */
74
- imageClient?: DownloadHttpClient;
75
- name?: string;
76
- size?: AvatarSize;
77
- shape?: AvatarShape;
74
+ imageClient?: DownloadHttpClient | undefined;
75
+ name?: string | undefined;
76
+ size?: AvatarSize | undefined;
77
+ shape?: AvatarShape | undefined;
78
78
  /** Width and height in points, for a host that sizes the picture itself. Wins over `size`. */
79
- dimension?: number;
79
+ dimension?: number | undefined;
80
80
  /** Corner of a `rounded` avatar from the radius tokens. Unset keeps 22 percent of the side. */
81
- radius?: AvatarRadius;
81
+ radius?: AvatarRadius | undefined;
82
82
  /** Draws a 1 pt border in the border colour inside the frame; the picture fills what is left. Default false. */
83
- border?: boolean;
83
+ border?: boolean | undefined;
84
84
  /** How a picture fills the frame. `contain` shows all of it, with no fill behind it. Default `'cover'`. */
85
- contentFit?: AvatarContentFit;
85
+ contentFit?: AvatarContentFit | undefined;
86
86
  /**
87
87
  * Drawn when there is no picture and no name, at 45 percent of the side, on
88
88
  * the neutral grey (`bg-muted`) in `text-subtle`, unless `tone`,
89
89
  * `backgroundColor` or `color` say otherwise.
90
90
  */
91
- placeholderIcon?: SlotIcon;
92
- status?: AvatarStatus;
93
- statusPosition?: AvatarStatusPosition;
91
+ placeholderIcon?: SlotIcon | undefined;
92
+ status?: AvatarStatus | undefined;
93
+ statusPosition?: AvatarStatusPosition | undefined;
94
94
  /**
95
95
  * Theme colour of the initials disc (see {@link AvatarTone}). Unset keeps
96
96
  * the per-name palette colour with inverse ink. `backgroundColor` and
97
97
  * `color` win over it.
98
98
  */
99
- tone?: AvatarTone;
100
- backgroundColor?: string;
101
- color?: string;
99
+ tone?: AvatarTone | undefined;
100
+ backgroundColor?: string | undefined;
101
+ color?: string | undefined;
102
102
  /**
103
103
  * Per-instance initials font size in pixels. Wins over the size-derived default.
104
104
  */
105
- fontSize?: number;
105
+ fontSize?: number | undefined;
106
106
  /**
107
107
  * When true, renders the component as its authored skeleton placeholder shape.
108
108
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
109
109
  * when data arrives. Use this while the data driving the component is being fetched.
110
110
  */
111
- loading?: boolean;
111
+ loading?: boolean | undefined;
112
112
  /**
113
113
  * Accessible name. The default is `"<name>'s avatar"`, or the name alone
114
114
  * when the avatar is pressable.
115
115
  */
116
- accessibilityLabel?: string;
116
+ accessibilityLabel?: string | undefined;
117
117
  /**
118
118
  * Makes the avatar a button: it is announced as one, dims while pressed and
119
119
  * fires the haptic. Pass it to open a profile or a photo menu. Ignored
120
120
  * while `loading`.
121
121
  */
122
- onPress?: (event: GestureResponderEvent) => void;
122
+ onPress?: ((event: GestureResponderEvent) => void) | undefined;
123
123
  /** Long press; also makes the avatar a button. The `longPress` haptic fires first. */
124
- onLongPress?: (event: GestureResponderEvent) => void;
124
+ onLongPress?: ((event: GestureResponderEvent) => void) | undefined;
125
125
  /**
126
126
  * Haptic on a press (default `'selection'`) and a long press (default
127
127
  * `'longPress'`). A type replaces both; `false` turns both off. Only a
128
128
  * pressable avatar fires one.
129
129
  */
130
- haptic?: HapticType | false;
130
+ haptic?: HapticType | false | undefined;
131
131
  /**
132
132
  * Extra touch area of a pressable avatar. Unset, it grows the avatar to
133
133
  * 44 points on each side, so `xs` and `sm` stay easy to hit.
134
134
  */
135
- hitSlop?: PressableProps["hitSlop"];
136
- style?: StyleProp<ViewStyle>;
137
- textStyle?: StyleProp<TextStyle>;
135
+ hitSlop?: PressableProps["hitSlop"] | undefined;
136
+ style?: StyleProp<ViewStyle> | undefined;
137
+ textStyle?: StyleProp<TextStyle> | undefined;
138
138
  /** Spoken text in its default English. Override any key to translate it or to change its wording. */
139
- labels?: Partial<AvatarLabels>;
140
- testID?: string;
139
+ labels?: Partial<AvatarLabels> | undefined;
140
+ testID?: string | undefined;
141
141
  }
142
142
  declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HostInstance>> & {
143
143
  Skeleton: React.FC<AvatarProps>;
@@ -146,15 +146,15 @@ export type AvatarGroupSpacing = "tight" | "normal" | "loose";
146
146
  export type AvatarGroupOverflowVariant = "count" | "plus";
147
147
  export interface AvatarGroupProps {
148
148
  children: React.ReactElement<AvatarProps>[];
149
- max?: number;
150
- size?: AvatarSize;
151
- spacing?: AvatarGroupSpacing;
152
- overflowVariant?: AvatarGroupOverflowVariant;
153
- accessibilityLabel?: string;
154
- style?: StyleProp<ViewStyle>;
149
+ max?: number | undefined;
150
+ size?: AvatarSize | undefined;
151
+ spacing?: AvatarGroupSpacing | undefined;
152
+ overflowVariant?: AvatarGroupOverflowVariant | undefined;
153
+ accessibilityLabel?: string | undefined;
154
+ style?: StyleProp<ViewStyle> | undefined;
155
155
  /** Spoken text in its default English; passed down to each avatar unless the avatar sets its own. */
156
- labels?: Partial<AvatarLabels>;
157
- testID?: string;
156
+ labels?: Partial<AvatarLabels> | undefined;
157
+ testID?: string | undefined;
158
158
  }
159
159
  declare const AvatarGroup: React.FC<AvatarGroupProps>;
160
160
  export { Avatar, AvatarGroup };
@@ -13,30 +13,30 @@ export interface BadgeLabels {
13
13
  }
14
14
  export declare const DEFAULT_BADGE_LABELS: Readonly<BadgeLabels>;
15
15
  export interface BadgeProps {
16
- value?: number | string;
17
- max?: number;
18
- variant?: BadgeVariant;
19
- tone?: BadgeTone;
20
- size?: BadgeSize;
21
- fill?: BadgeFill;
22
- invisible?: boolean;
16
+ value?: number | string | undefined;
17
+ max?: number | undefined;
18
+ variant?: BadgeVariant | undefined;
19
+ tone?: BadgeTone | undefined;
20
+ size?: BadgeSize | undefined;
21
+ fill?: BadgeFill | undefined;
22
+ invisible?: boolean | undefined;
23
23
  /** False hides the badge from screen readers, for a host that already announces the count. */
24
- accessible?: boolean;
24
+ accessible?: boolean | undefined;
25
25
  /**
26
26
  * When true, renders the component as its authored skeleton placeholder shape.
27
27
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
28
28
  * when data arrives. Use this while the data driving the component is being fetched.
29
29
  */
30
- loading?: boolean;
31
- children?: React.ReactNode;
32
- anchor?: BadgeAnchor;
33
- pulse?: boolean;
34
- accessibilityLabel?: string;
35
- labels?: Partial<BadgeLabels>;
36
- style?: StyleProp<ViewStyle>;
37
- badgeStyle?: StyleProp<ViewStyle>;
38
- textStyle?: StyleProp<TextStyle>;
39
- testID?: string;
30
+ loading?: boolean | undefined;
31
+ children?: React.ReactNode | undefined;
32
+ anchor?: BadgeAnchor | undefined;
33
+ pulse?: boolean | undefined;
34
+ accessibilityLabel?: string | undefined;
35
+ labels?: Partial<BadgeLabels> | undefined;
36
+ style?: StyleProp<ViewStyle> | undefined;
37
+ badgeStyle?: StyleProp<ViewStyle> | undefined;
38
+ textStyle?: StyleProp<TextStyle> | undefined;
39
+ testID?: string | undefined;
40
40
  }
41
41
  declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HostInstance>> & {
42
42
  Skeleton: React.FC<BadgeProps>;
@@ -28,64 +28,64 @@ export interface BannerAction {
28
28
  * `primary` takes the banner's colour, `neutral` the secondary text colour,
29
29
  * and every other tone its own colour, whatever the banner's tone. Default `primary`.
30
30
  */
31
- tone?: BannerActionTone;
31
+ tone?: BannerActionTone | undefined;
32
32
  /**
33
33
  * `ghost`: text only, a tint on press. `outline`: a bordered button in the
34
34
  * banner's colour. `solid`: filled with the banner's colour. Default `ghost`.
35
35
  */
36
- variant?: BannerActionVariant;
36
+ variant?: BannerActionVariant | undefined;
37
37
  /** `md` is a taller button with a 44 pt touch target. Default `sm`. */
38
- size?: BannerActionSize;
38
+ size?: BannerActionSize | undefined;
39
39
  /** Test id for this action's button. */
40
- testID?: string;
40
+ testID?: string | undefined;
41
41
  }
42
42
  export interface BannerLabels {
43
43
  dismiss: string;
44
44
  }
45
45
  export declare const DEFAULT_BANNER_LABELS: Readonly<BannerLabels>;
46
46
  export interface BannerProps {
47
- title?: string;
47
+ title?: string | undefined;
48
48
  message: string | React.ReactNode;
49
- tone?: BannerTone;
49
+ tone?: BannerTone | undefined;
50
50
  /** Default `'bar'`. See {@link BannerVariant}. */
51
- variant?: BannerVariant;
52
- icon?: SlotIcon | false;
53
- actions?: BannerAction[];
54
- dismissible?: boolean;
55
- onClose?: () => void;
51
+ variant?: BannerVariant | undefined;
52
+ icon?: SlotIcon | false | undefined;
53
+ actions?: BannerAction[] | undefined;
54
+ dismissible?: boolean | undefined;
55
+ onClose?: (() => void) | undefined;
56
56
  /** Copy for the close button's screen-reader name; merged over DEFAULT_BANNER_LABELS. */
57
- labels?: Partial<BannerLabels>;
57
+ labels?: Partial<BannerLabels> | undefined;
58
58
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
59
- haptic?: HapticType | false;
60
- open?: boolean;
61
- animateMount?: boolean;
59
+ haptic?: HapticType | false | undefined;
60
+ open?: boolean | undefined;
61
+ animateMount?: boolean | undefined;
62
62
  /**
63
63
  * When true, renders the component as its authored skeleton placeholder shape.
64
64
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
65
65
  * when data arrives. Use this while the data driving the component is being fetched.
66
66
  */
67
- loading?: boolean;
67
+ loading?: boolean | undefined;
68
68
  /** Default `'alert'`. See {@link BannerRole}. */
69
- accessibilityRole?: BannerRole;
69
+ accessibilityRole?: BannerRole | undefined;
70
70
  /**
71
71
  * Replaces what the banner is announced as. Leave unset to let a screen
72
72
  * reader read the title, the message and each button in turn: a label on
73
73
  * the container makes TalkBack read the label alone and skip the rest.
74
74
  */
75
- accessibilityLabel?: string;
75
+ accessibilityLabel?: string | undefined;
76
76
  /** The outer box. Applied last on that node, so it wins over containerStyle. */
77
- style?: StyleProp<ViewStyle>;
77
+ style?: StyleProp<ViewStyle> | undefined;
78
78
  /** Alias of style, applied before it on the same node. Use style. */
79
- containerStyle?: StyleProp<ViewStyle>;
79
+ containerStyle?: StyleProp<ViewStyle> | undefined;
80
80
  /** Style applied to the auto-rendered icon circle (when no custom `icon` is provided). */
81
- iconCircleStyle?: StyleProp<ViewStyle>;
81
+ iconCircleStyle?: StyleProp<ViewStyle> | undefined;
82
82
  /** Style applied to the leading tint bar. */
83
- tintBarStyle?: StyleProp<ViewStyle>;
83
+ tintBarStyle?: StyleProp<ViewStyle> | undefined;
84
84
  /** Style applied to the dismiss/close button. */
85
- closeButtonStyle?: StyleProp<ViewStyle>;
85
+ closeButtonStyle?: StyleProp<ViewStyle> | undefined;
86
86
  /** Style applied to each action button (Pressable). */
87
- actionButtonStyle?: StyleProp<ViewStyle>;
88
- testID?: string;
87
+ actionButtonStyle?: StyleProp<ViewStyle> | undefined;
88
+ testID?: string | undefined;
89
89
  }
90
90
  declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HostInstance>> & {
91
91
  Skeleton: React.FC<BannerProps>;
@@ -29,19 +29,19 @@ export interface BarChartSeries {
29
29
  /** The series name, written in the legend and read aloud with its value. */
30
30
  label: string;
31
31
  /** Colour of the series, drawn in the tone's text ink. Default: the next of primary, info, success, warning, danger, neutral. */
32
- tone?: BarChartTone;
32
+ tone?: BarChartTone | undefined;
33
33
  }
34
34
  export interface BarChartDatum {
35
35
  /** The full name of the bar, read aloud and written in the callout: "Mon 06-Oct-2026". */
36
36
  label: string;
37
37
  /** The bar's value, for a chart without `series`. A value that is not a finite number draws as zero. */
38
- value?: number;
38
+ value?: number | undefined;
39
39
  /** With `series`: the value of each series by its key, in place of `value`. A missing or non-finite value draws as zero. */
40
- values?: Record<string, number>;
40
+ values?: Record<string, number> | undefined;
41
41
  /** A shorter label drawn under the bar: "Mon". Default `label`. */
42
- axisLabel?: string;
42
+ axisLabel?: string | undefined;
43
43
  /** Replaces the spoken text of the bar. Default `"label, value"`. */
44
- accessibilityLabel?: string;
44
+ accessibilityLabel?: string | undefined;
45
45
  }
46
46
  export interface BarChartLabels {
47
47
  chart: string;
@@ -52,38 +52,38 @@ export declare const DEFAULT_BAR_CHART_LABELS: Readonly<BarChartLabels>;
52
52
  export interface BarChartProps {
53
53
  data: ReadonlyArray<BarChartDatum>;
54
54
  /** Colour of the bars. Default `'primary'`. Drawn in the tone's text ink so it holds 3:1 on the page in light and dark. */
55
- tone?: BarChartTone;
55
+ tone?: BarChartTone | undefined;
56
56
  /**
57
57
  * Turns the bars into stacks, one segment per series in this order, with a legend. Each datum then carries `values`
58
58
  * instead of `value`. `tone` and `color` do not apply; a series takes its own `tone`.
59
59
  */
60
- series?: ReadonlyArray<BarChartSeries>;
60
+ series?: ReadonlyArray<BarChartSeries> | undefined;
61
61
  /** Bar colour override; wins over `tone`. Not used with `series`. */
62
- color?: string;
62
+ color?: string | undefined;
63
63
  /** Height of the plot in points. Default `160`. */
64
- height?: number;
64
+ height?: number | undefined;
65
65
  /** What the chart shows, read first by a screen reader: "Approvals per day". */
66
- label?: string;
66
+ label?: string | undefined;
67
67
  /** The main message in a sentence, visible while no bar is picked: "Approvals peaked on Thursday". Default: the highest bar. */
68
- summary?: string;
68
+ summary?: string | undefined;
69
69
  /** Write a value in full, for the callout and the spoken text. Default: the number format of the configured locale. */
70
- formatValue?: (value: number) => string;
70
+ formatValue?: ((value: number) => string) | undefined;
71
71
  /** Write a value short, for the axis and the figures on the bars. Default: the compact number format of the configured locale. */
72
- formatTick?: (value: number) => string;
72
+ formatTick?: ((value: number) => string) | undefined;
73
73
  /** Draw each bar's value on it. Default: when there are 7 bars or fewer. */
74
- showValues?: boolean;
74
+ showValues?: boolean | undefined;
75
75
  /** Picked bar (controlled); `null` for none. */
76
- selection?: number | null;
76
+ selection?: number | null | undefined;
77
77
  /** Picked bar when uncontrolled. Default none. */
78
- defaultSelection?: number | null;
78
+ defaultSelection?: number | null | undefined;
79
79
  /** Called when a bar is picked, or `null` when the picked bar is tapped again. */
80
- onSelect?: (index: number | null) => void;
80
+ onSelect?: ((index: number | null) => void) | undefined;
81
81
  /** Haptic tick for each bar a drag crosses and for a tap. `false` turns it off. Default `'tick'`. */
82
- haptic?: HapticType | false;
82
+ haptic?: HapticType | false | undefined;
83
83
  /** Copy for the chart's spoken and written text. A key left out keeps its default. */
84
- labels?: Partial<BarChartLabels>;
85
- style?: StyleProp<ViewStyle>;
86
- testID?: string;
84
+ labels?: Partial<BarChartLabels> | undefined;
85
+ style?: StyleProp<ViewStyle> | undefined;
86
+ testID?: string | undefined;
87
87
  }
88
88
  declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<HostInstance>>;
89
89
  export { BarChart };