@webority/mobile-ui 0.149.0 → 0.152.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 (489) hide show
  1. package/dist/canvas-kit/kit.js +13 -56714
  2. package/dist/canvas-kit/manifest.json +157 -56
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  5. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  6. package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
  7. package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
  8. package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
  9. package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
  10. package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
  11. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  12. package/lib/commonjs/components/Badge/Badge.js +1 -1
  13. package/lib/commonjs/components/Banner/Banner.js +1 -1
  14. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  15. package/lib/commonjs/components/Box/Box.js +1 -1
  16. package/lib/commonjs/components/Button/Button.js +1 -1
  17. package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
  18. package/lib/commonjs/components/Card/Card.js +1 -1
  19. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  20. package/lib/commonjs/components/Chip/Chip.js +1 -1
  21. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  22. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  23. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  24. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  25. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  26. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  27. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  28. package/lib/commonjs/components/FileViewer/fileSource.js +1 -1
  29. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  30. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  31. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  32. package/lib/commonjs/components/Input/Input.js +1 -1
  33. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  34. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  35. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  36. package/lib/commonjs/components/Menu/focusHost.js +1 -1
  37. package/lib/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
  38. package/lib/commonjs/components/NonModalBottomSheet/index.js +1 -0
  39. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  40. package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
  41. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  42. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  43. package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
  44. package/lib/commonjs/components/Rating/Rating.js +1 -1
  45. package/lib/commonjs/components/Repeater/Repeater.js +1 -1
  46. package/lib/commonjs/components/Screen/Screen.js +1 -1
  47. package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
  48. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  49. package/lib/commonjs/components/Select/Select.js +1 -1
  50. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  51. package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
  52. package/lib/commonjs/components/Slider/Slider.js +1 -1
  53. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  54. package/lib/commonjs/components/SortableList/SortableList.js +1 -1
  55. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  56. package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
  57. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  58. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  59. package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
  60. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  61. package/lib/commonjs/components/Text/Text.js +1 -1
  62. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  63. package/lib/commonjs/components/Toast/Toast.js +1 -1
  64. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  65. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
  66. package/lib/commonjs/components/index.js +1 -1
  67. package/lib/commonjs/form/HookFormField.js +1 -1
  68. package/lib/commonjs/form/path.js +1 -1
  69. package/lib/commonjs/hooks/useControllableState.js +1 -1
  70. package/lib/commonjs/index.js +1 -1
  71. package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
  72. package/lib/commonjs/theme/ThemeContext.js +1 -1
  73. package/lib/commonjs/theme/animatedValue.js +1 -1
  74. package/lib/commonjs/theme/componentSizes.js +1 -1
  75. package/lib/commonjs/theme/merge.js +1 -1
  76. package/lib/commonjs/theme/scale.js +1 -1
  77. package/lib/commonjs/theme/tokens.generated.js +1 -1
  78. package/lib/commonjs/utils/complete.js +1 -0
  79. package/lib/commonjs/utils/guards.js +1 -0
  80. package/lib/commonjs/utils/hapticUtils.js +1 -1
  81. package/lib/module/components/Accordion/Accordion.js +1 -1
  82. package/lib/module/components/AppBar/AppBar.js +1 -1
  83. package/lib/module/components/AppIcon/AppIcon.js +1 -1
  84. package/lib/module/components/AppIcon/glyphs.g.js +1 -1
  85. package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
  86. package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
  87. package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
  88. package/lib/module/components/Avatar/Avatar.js +1 -1
  89. package/lib/module/components/Badge/Badge.js +1 -1
  90. package/lib/module/components/Banner/Banner.js +1 -1
  91. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  92. package/lib/module/components/Box/Box.js +1 -1
  93. package/lib/module/components/Button/Button.js +1 -1
  94. package/lib/module/components/Calendar/calendarStyles.js +1 -1
  95. package/lib/module/components/Card/Card.js +1 -1
  96. package/lib/module/components/Carousel/Carousel.js +1 -1
  97. package/lib/module/components/Chip/Chip.js +1 -1
  98. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  99. package/lib/module/components/Confetti/Confetti.js +1 -1
  100. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  101. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  102. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  103. package/lib/module/components/Dialog/Dialog.js +1 -1
  104. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  105. package/lib/module/components/FileViewer/fileSource.js +1 -1
  106. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  107. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  108. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  109. package/lib/module/components/Input/Input.js +1 -1
  110. package/lib/module/components/ListItem/ListItem.js +1 -1
  111. package/lib/module/components/Markdown/Markdown.js +1 -1
  112. package/lib/module/components/Menu/MenuSurface.js +1 -1
  113. package/lib/module/components/Menu/focusHost.js +1 -1
  114. package/lib/module/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
  115. package/lib/module/components/NonModalBottomSheet/index.js +1 -0
  116. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  117. package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
  118. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  119. package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
  120. package/lib/module/components/Radio/RadioGroup.js +1 -1
  121. package/lib/module/components/Rating/Rating.js +1 -1
  122. package/lib/module/components/Repeater/Repeater.js +1 -1
  123. package/lib/module/components/Screen/Screen.js +1 -1
  124. package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
  125. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  126. package/lib/module/components/Select/Select.js +1 -1
  127. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  128. package/lib/module/components/Skeleton/SkeletonList.js +1 -1
  129. package/lib/module/components/Slider/Slider.js +1 -1
  130. package/lib/module/components/SliderField/SliderField.js +1 -1
  131. package/lib/module/components/SortableList/SortableList.js +1 -1
  132. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  133. package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
  134. package/lib/module/components/StatTile/StatTile.js +1 -1
  135. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  136. package/lib/module/components/StatusBadge/statusMap.js +1 -1
  137. package/lib/module/components/Stepper/Stepper.js +1 -1
  138. package/lib/module/components/Text/Text.js +1 -1
  139. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  140. package/lib/module/components/Toast/Toast.js +1 -1
  141. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  142. package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
  143. package/lib/module/components/index.js +1 -1
  144. package/lib/module/form/HookFormField.js +1 -1
  145. package/lib/module/form/path.js +1 -1
  146. package/lib/module/hooks/useControllableState.js +1 -1
  147. package/lib/module/index.js +1 -1
  148. package/lib/module/specs/NativePdfRasterizer.js +1 -1
  149. package/lib/module/theme/ThemeContext.js +1 -1
  150. package/lib/module/theme/animatedValue.js +1 -1
  151. package/lib/module/theme/componentSizes.js +1 -1
  152. package/lib/module/theme/merge.js +1 -1
  153. package/lib/module/theme/scale.js +1 -1
  154. package/lib/module/theme/tokens.generated.js +1 -1
  155. package/lib/module/utils/complete.js +1 -0
  156. package/lib/module/utils/guards.js +1 -0
  157. package/lib/module/utils/hapticUtils.js +1 -1
  158. package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
  159. package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
  160. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
  161. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
  162. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  163. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
  164. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
  165. package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
  166. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
  167. package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
  168. package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  169. package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  170. package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
  171. package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
  172. package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
  173. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +41 -39
  174. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
  175. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
  176. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
  177. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  178. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +32 -32
  179. package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
  180. package/lib/typescript/commonjs/components/Button/Button.d.ts +29 -24
  181. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
  182. package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
  183. package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
  184. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
  185. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
  186. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
  187. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  188. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
  189. package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
  190. package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
  191. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
  192. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  193. package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
  194. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
  195. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
  196. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
  197. package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
  198. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
  199. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +14 -14
  200. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
  201. package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  202. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
  203. package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
  204. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
  205. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
  206. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
  207. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
  208. package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
  209. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  210. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  211. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  212. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
  213. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
  214. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
  215. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
  216. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
  217. package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
  218. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  219. package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  220. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
  221. package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
  222. package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  223. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
  224. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
  225. package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
  226. package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
  227. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
  228. package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
  229. package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
  230. package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
  231. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
  232. package/lib/typescript/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
  233. package/lib/typescript/commonjs/components/NonModalBottomSheet/index.d.ts +3 -0
  234. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
  235. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
  236. package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
  237. package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  238. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +39 -34
  239. package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +9 -0
  240. package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  241. package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  242. package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  243. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  244. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  245. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  246. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  247. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
  248. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
  249. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
  250. package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
  251. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
  252. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
  253. package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
  254. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  255. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  256. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
  257. package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
  258. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
  259. package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
  260. package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
  261. package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
  262. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  263. package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
  264. package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
  265. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
  266. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
  267. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
  268. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
  269. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  270. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
  271. package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
  272. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
  273. package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
  274. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
  275. package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
  276. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
  277. package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
  278. package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
  279. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
  280. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
  281. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
  282. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +15 -15
  283. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
  284. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
  285. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
  286. package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
  287. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
  288. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
  289. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
  290. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
  291. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
  292. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
  293. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
  294. package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  295. package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +10 -6
  296. package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +22 -20
  297. package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  298. package/lib/typescript/commonjs/components/index.d.ts +2 -0
  299. package/lib/typescript/commonjs/form/HookFormField.d.ts +5 -18
  300. package/lib/typescript/commonjs/form/path.d.ts +4 -2
  301. package/lib/typescript/commonjs/form/useFormCompletion.d.ts +1 -1
  302. package/lib/typescript/commonjs/hooks/useControllableState.d.ts +2 -2
  303. package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +3 -3
  304. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
  305. package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
  306. package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
  307. package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
  308. package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
  309. package/lib/typescript/commonjs/index.d.ts +1 -1
  310. package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +2 -2
  311. package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
  312. package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
  313. package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
  314. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
  315. package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
  316. package/lib/typescript/commonjs/theme/types.d.ts +84 -84
  317. package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
  318. package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
  319. package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
  320. package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
  321. package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
  322. package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
  323. package/lib/typescript/module/canvasKit/index.d.ts +12 -12
  324. package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
  325. package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
  326. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
  327. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  328. package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
  329. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
  330. package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
  331. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
  332. package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
  333. package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  334. package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  335. package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
  336. package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
  337. package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
  338. package/lib/typescript/module/components/Avatar/Avatar.d.ts +41 -39
  339. package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
  340. package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
  341. package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
  342. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  343. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +32 -32
  344. package/lib/typescript/module/components/Box/Box.d.ts +27 -27
  345. package/lib/typescript/module/components/Button/Button.d.ts +29 -24
  346. package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
  347. package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
  348. package/lib/typescript/module/components/Card/Card.d.ts +41 -41
  349. package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
  350. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
  351. package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
  352. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  353. package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
  354. package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
  355. package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
  356. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
  357. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  358. package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
  359. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
  360. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
  361. package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
  362. package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
  363. package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
  364. package/lib/typescript/module/components/Drawer/Drawer.d.ts +14 -14
  365. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
  366. package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  367. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
  368. package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
  369. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
  370. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
  371. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
  372. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
  373. package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
  374. package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  375. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  376. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  377. package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
  378. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
  379. package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
  380. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
  381. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
  382. package/lib/typescript/module/components/Input/Input.d.ts +47 -47
  383. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  384. package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  385. package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
  386. package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
  387. package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  388. package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
  389. package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
  390. package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
  391. package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
  392. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
  393. package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
  394. package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
  395. package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
  396. package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
  397. package/lib/typescript/module/components/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
  398. package/lib/typescript/module/components/NonModalBottomSheet/index.d.ts +3 -0
  399. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +27 -27
  400. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
  401. package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
  402. package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  403. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +39 -34
  404. package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +9 -0
  405. package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  406. package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  407. package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  408. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  409. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  410. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  411. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  412. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
  413. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
  414. package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
  415. package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
  416. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
  417. package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
  418. package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
  419. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  420. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  421. package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
  422. package/lib/typescript/module/components/Screen/index.d.ts +1 -1
  423. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
  424. package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
  425. package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
  426. package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
  427. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  428. package/lib/typescript/module/components/Select/Select.d.ts +50 -45
  429. package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
  430. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
  431. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
  432. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
  433. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
  434. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  435. package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
  436. package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
  437. package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
  438. package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
  439. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
  440. package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
  441. package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
  442. package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
  443. package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
  444. package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
  445. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
  446. package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
  447. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +15 -15
  448. package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
  449. package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
  450. package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
  451. package/lib/typescript/module/components/Text/Text.d.ts +10 -10
  452. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
  453. package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
  454. package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
  455. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
  456. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
  457. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
  458. package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
  459. package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  460. package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +10 -6
  461. package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +22 -20
  462. package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  463. package/lib/typescript/module/components/index.d.ts +2 -0
  464. package/lib/typescript/module/form/HookFormField.d.ts +5 -18
  465. package/lib/typescript/module/form/path.d.ts +4 -2
  466. package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
  467. package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
  468. package/lib/typescript/module/hooks/useDragToDismiss.d.ts +3 -3
  469. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
  470. package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
  471. package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
  472. package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
  473. package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
  474. package/lib/typescript/module/index.d.ts +1 -1
  475. package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
  476. package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
  477. package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
  478. package/lib/typescript/module/theme/Gradient.d.ts +2 -2
  479. package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
  480. package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
  481. package/lib/typescript/module/theme/types.d.ts +84 -84
  482. package/lib/typescript/module/utils/announce.d.ts +1 -1
  483. package/lib/typescript/module/utils/complete.d.ts +5 -0
  484. package/lib/typescript/module/utils/feedback.d.ts +3 -1
  485. package/lib/typescript/module/utils/guards.d.ts +9 -0
  486. package/lib/typescript/module/utils/placement.d.ts +3 -3
  487. package/lib/typescript/module/utils/squircle.d.ts +2 -2
  488. package/package.json +9 -9
  489. package/src/specs/NativePdfRasterizer.ts +1 -1
@@ -8,7 +8,8 @@
8
8
  * or tick icon / multi checkbox) and the multi-select Done footer. The Modal
9
9
  * owns the open/close animations, the scrim and the dismissal; selection STATE
10
10
  * stays with the caller; the sheet marks the rows of `value` and reports every
11
- * tap on an enabled row through `onChange(value, option)`.
11
+ * tap on an enabled row through `onChange(value, option)`, except a row with
12
+ * its own action, which runs it and closes the sheet.
12
13
  *
13
14
  * Also the home of the canonical option types (`SelectValue`, `SelectOption`)
14
15
  * and accessor signatures shared by every option-picking component. Select
@@ -21,9 +22,11 @@ export type SelectValue = string | number;
21
22
  export interface SelectOption {
22
23
  label: string;
23
24
  value: SelectValue;
24
- description?: string;
25
- disabled?: boolean;
26
- icon?: React.ReactNode;
25
+ description?: string | undefined;
26
+ disabled?: boolean | undefined;
27
+ icon?: React.ReactNode | undefined;
28
+ /** Runs when the row is tapped, then the sheet closes; `onChange` does not fire for this row. */
29
+ onPress?: (() => void) | undefined;
27
30
  }
28
31
  /** A titled group of options; the sheet lists groups in order under a header row each. */
29
32
  export interface OptionSheetSection<T = SelectOption> {
@@ -58,11 +61,11 @@ export interface OptionSheetProps<T = SelectOption> {
58
61
  * is about to unmount (`MODAL_DISMISS_GRACE_MS` after `open` turns false).
59
62
  * Present anything native (an image picker, the share sheet) from here.
60
63
  */
61
- onAfterClose?: () => void;
64
+ onAfterClose?: (() => void) | undefined;
62
65
  /** Called with `true` when `open` turns on and `false` when it turns off, not again while it stays the same. */
63
- onOpenChange?: (open: boolean) => void;
66
+ onOpenChange?: ((open: boolean) => void) | undefined;
64
67
  /** Sheet heading. Also the modal's a11y label fallback. */
65
- title?: string;
68
+ title?: string | undefined;
66
69
  options: ReadonlyArray<T>;
67
70
  /**
68
71
  * Group the options under header rows instead of listing `options` flat
@@ -70,15 +73,15 @@ export interface OptionSheetProps<T = SelectOption> {
70
73
  * names its list once). Search filters inside each group and drops a group
71
74
  * that empties. PhoneNumberInput uses this for "Popular" over "All countries".
72
75
  */
73
- sections?: ReadonlyArray<OptionSheetSection<T>>;
76
+ sections?: ReadonlyArray<OptionSheetSection<T>> | undefined;
74
77
  /** Draw the header row for a section yourself; the default is the title in the section ink. */
75
- renderSectionHeader?: (title: string) => React.ReactNode;
78
+ renderSectionHeader?: ((title: string) => React.ReactNode) | undefined;
76
79
  /**
77
80
  * Replace the row's content (icon + label + description) with your own. The
78
81
  * pressable row, its accessibility state and the selected mark / checkbox
79
82
  * stay, so a custom row is still a button to a screen reader.
80
83
  */
81
- renderOption?: (state: OptionRenderState<T>) => React.ReactNode;
84
+ renderOption?: ((state: OptionRenderState<T>) => React.ReactNode) | undefined;
82
85
  /**
83
86
  * A rail of letters down the right edge; a tap jumps the list to the first
84
87
  * option whose label starts with that letter. For a long list sorted by
@@ -86,47 +89,49 @@ export interface OptionSheetProps<T = SelectOption> {
86
89
  * full list, so a pinned group above does not catch the jump. Hidden while
87
90
  * a search query is typed. Default false.
88
91
  */
89
- alphabetIndex?: boolean;
92
+ alphabetIndex?: boolean | undefined;
90
93
  /** Copy of the sheet: the search placeholder, the empty list text, the Done button and the accessibility names. */
91
- labels?: Partial<OptionSheetLabels>;
92
- /** Default `(o) => (o as SelectOption).label`. */
93
- getOptionLabel?: (option: T) => string;
94
- /** Default `(o) => (o as SelectOption).value`. */
95
- getOptionValue?: (option: T) => SelectValue;
96
- /** Default `(o) => (o as SelectOption).description`. */
97
- getOptionDescription?: (option: T) => string | undefined;
98
- /** Default `(o) => (o as SelectOption).disabled === true`. */
99
- isOptionDisabled?: (option: T) => boolean;
100
- /** Default `(o) => (o as SelectOption).icon`. */
101
- getOptionIcon?: (option: T) => React.ReactNode;
94
+ labels?: Partial<OptionSheetLabels> | undefined;
95
+ /** Default: reads the option's `label`. */
96
+ getOptionLabel?: ((option: T) => string) | undefined;
97
+ /** Default: reads the option's `value`; an option with neither a string nor a number value throws. */
98
+ getOptionValue?: ((option: T) => SelectValue) | undefined;
99
+ /** Default: reads the option's `description`. */
100
+ getOptionDescription?: ((option: T) => string | undefined) | undefined;
101
+ /** Default: reads whether the option's `disabled` is `true`. */
102
+ isOptionDisabled?: ((option: T) => boolean) | undefined;
103
+ /** Default: reads the option's `icon`. */
104
+ getOptionIcon?: ((option: T) => React.ReactNode) | undefined;
102
105
  /**
103
106
  * A row that destroys something (ProfilePicker's "Remove photo"): its label
104
107
  * is painted in `colors.danger`. The row itself, its icon and its description
105
108
  * are untouched, so the caller passes a matching icon. Default: none.
106
109
  */
107
- destructiveOf?: (option: T) => boolean;
110
+ destructiveOf?: ((option: T) => boolean) | undefined;
111
+ /** The action a row runs on tap. Default: reads the option's `onPress`. A row with one runs it and closes the sheet; `onChange` does not fire for it. */
112
+ getOptionAction?: ((option: T) => (() => void) | undefined) | undefined;
108
113
  /** The selected value, or the selected values in multi mode. Marks those rows. */
109
- value?: SelectValue | ReadonlyArray<SelectValue>;
114
+ value?: SelectValue | ReadonlyArray<SelectValue> | undefined;
110
115
  /** Tap on an enabled option, with its value and option. Caller updates state and (for single-select) closes. */
111
116
  onChange: (value: SelectValue, option: T) => void;
112
117
  /** Multi mode: checkboxes + Done footer instead of the selected dot. */
113
- multi?: boolean;
114
- searchable?: boolean;
118
+ multi?: boolean | undefined;
119
+ searchable?: boolean | undefined;
115
120
  /** Caret/selection colour of the search input — callers mirror their focus colour. Default: `colors["focus-ring"]`. */
116
- searchSelectionColor?: string;
117
- accessibilityLabel?: string;
121
+ searchSelectionColor?: string | undefined;
122
+ accessibilityLabel?: string | undefined;
118
123
  /** Style for every option row container (padding, background, etc.). Wins over the row defaults. */
119
- optionStyle?: StyleProp<ViewStyle>;
124
+ optionStyle?: StyleProp<ViewStyle> | undefined;
120
125
  /** Extra style merged onto the selected option row — wins over `optionStyle` and the default selected fill. */
121
- selectedOptionStyle?: StyleProp<ViewStyle>;
126
+ selectedOptionStyle?: StyleProp<ViewStyle> | undefined;
122
127
  /** Style for every option's label text. Wins over the label defaults. */
123
- optionTextStyle?: StyleProp<TextStyle>;
128
+ optionTextStyle?: StyleProp<TextStyle> | undefined;
124
129
  /** Extra style merged onto the selected option's label text — wins over `optionTextStyle` and the default selected colour. */
125
- selectedOptionTextStyle?: StyleProp<TextStyle>;
130
+ selectedOptionTextStyle?: StyleProp<TextStyle> | undefined;
126
131
  /** The haptic for the sheet's own open and dismiss; false turns it off. Default: the Modal's default. */
127
- haptic?: HapticType | false;
132
+ haptic?: HapticType | false | undefined;
128
133
  /** Test selector on the sheet panel. */
129
- testID?: string;
134
+ testID?: string | undefined;
130
135
  }
131
136
  export declare function OptionSheet<T = SelectOption>(props: OptionSheetProps<T>): React.ReactElement;
132
137
  export declare namespace OptionSheet {
@@ -0,0 +1,9 @@
1
+ import type React from "react";
2
+ import type { SelectValue } from "./OptionSheet";
3
+ export declare const selectOptionLabel: (o: unknown) => string;
4
+ export declare const selectOptionValue: (o: unknown) => SelectValue;
5
+ export declare const selectOptionDescription: (o: unknown) => string | undefined;
6
+ export declare const selectOptionDisabled: (o: unknown) => boolean;
7
+ export declare const selectOptionIcon: (o: unknown) => React.ReactNode;
8
+ export declare const selectOptionAction: (o: unknown) => (() => void) | undefined;
9
+ //# sourceMappingURL=optionAccessors.d.ts.map
@@ -8,8 +8,8 @@ export interface PagedListFooterLabels {
8
8
  export declare const DEFAULT_PAGED_LIST_FOOTER_LABELS: Readonly<PagedListFooterLabels>;
9
9
  export interface PagedListFooterProps {
10
10
  paging: PagedListPaging;
11
- labels?: Partial<PagedListFooterLabels>;
12
- testID?: string;
11
+ labels?: Partial<PagedListFooterLabels> | undefined;
12
+ testID?: string | undefined;
13
13
  }
14
14
  export declare function PagedListFooter({ paging, labels: labelOverrides, testID }: PagedListFooterProps): React.ReactElement | null;
15
15
  //# sourceMappingURL=PagedListFooter.d.ts.map
@@ -26,16 +26,16 @@ export interface PermissionPromptProps {
26
26
  /** One sentence: what the app does with the access, ending in a full stop. */
27
27
  reason: string;
28
28
  /** An AppIcon name or any node, drawn in a tinted disc above the title. */
29
- icon?: SlotIcon;
29
+ icon?: SlotIcon | undefined;
30
30
  /** The status each time it settles: after the first check finds nothing to ask, and after each request or Cancel. */
31
31
  onResult: (status: PermissionStatus) => void;
32
32
  /** The way to carry on without the access, shown in the unavailable state. */
33
- fallback?: PermissionPromptFallback;
33
+ fallback?: PermissionPromptFallback | undefined;
34
34
  /** Haptic on each button press. Default `'selection'`. */
35
- haptic?: HapticType | false;
36
- labels?: Partial<PermissionPromptLabels>;
37
- style?: StyleProp<ViewStyle>;
38
- testID?: string;
35
+ haptic?: HapticType | false | undefined;
36
+ labels?: Partial<PermissionPromptLabels> | undefined;
37
+ style?: StyleProp<ViewStyle> | undefined;
38
+ testID?: string | undefined;
39
39
  }
40
40
  /**
41
41
  * Explains why the app needs a permission before the system prompt, in the way
@@ -12,7 +12,7 @@ export interface UsePermissionPromptOptions {
12
12
  * check finds nothing to ask (granted, limited, blocked or unavailable), and after
13
13
  * each request or Cancel.
14
14
  */
15
- onResult?: (status: PermissionStatus) => void;
15
+ onResult?: ((status: PermissionStatus) => void) | undefined;
16
16
  }
17
17
  export interface UsePermissionPromptResult {
18
18
  view: PermissionPromptView;
@@ -37,14 +37,14 @@ export declare const DEFAULT_CALLING_CODES: ReadonlyArray<CallingCode>;
37
37
  * `PHONE_COUNTRY_NAMES`; narrow it with `hiddenCountries` or pass your own list.
38
38
  */
39
39
  export declare const ALL_CALLING_CODES: ReadonlyArray<CallingCode>;
40
- export interface PhoneNumberValue {
40
+ export type PhoneNumberValue = {
41
41
  /** Dial prefix without the plus, e.g. '1'. */
42
42
  callingCode: string;
43
43
  /** Digits only, no prefix. */
44
44
  nationalNumber: string;
45
45
  /** ISO of the selected country. */
46
46
  iso: string;
47
- }
47
+ };
48
48
  /**
49
49
  * What counts as a valid number. `'any'` is the country's numbering plan as
50
50
  * libphonenumber knows it (a fixed line passes). `'mobile'` also rejects fixed
@@ -81,7 +81,7 @@ export interface PhoneNumberInfo {
81
81
  valid: boolean;
82
82
  }
83
83
  export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyType" | "submitBehavior" | "onSubmitEditing" | "blurOnSubmit"> {
84
- value?: PhoneNumberValue;
84
+ value?: PhoneNumberValue | undefined;
85
85
  /**
86
86
  * Controlled value as one E.164 string (`'+14155550123'`, `''` for empty),
87
87
  * for a form that stores the number as a string. The country is read from the
@@ -89,49 +89,49 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyTy
89
89
  * knows; a shared code such as +1 keeps the country already picked). Pass
90
90
  * `onChangeE164` to receive changes. Ignored when `value` is set.
91
91
  */
92
- e164?: string;
92
+ e164?: string | undefined;
93
93
  /**
94
94
  * Fires on every change with the E.164 string (`''` while no digits are
95
95
  * typed) and the country, national digits and validity. Works beside `e164`
96
96
  * or an uncontrolled field; `onChange` still fires too.
97
97
  */
98
- onChangeE164?: (e164: string, info: PhoneNumberInfo) => void;
98
+ onChangeE164?: ((e164: string, info: PhoneNumberInfo) => void) | undefined;
99
99
  /**
100
100
  * Starting value for uncontrolled use. A structured value, or a string: an
101
101
  * E.164 number (`'+14155550123'`) resolves its own country, a bare national
102
102
  * number resolves through `defaultCountry`.
103
103
  */
104
- defaultValue?: PhoneNumberValue | string;
105
- onChange?: (value: PhoneNumberValue) => void;
104
+ defaultValue?: PhoneNumberValue | string | undefined;
105
+ onChange?: ((value: PhoneNumberValue) => void) | undefined;
106
106
  /** Fires with `+<code><national>` the moment the number becomes valid under `validation`. */
107
- onComplete?: (e164: string) => void;
107
+ onComplete?: ((e164: string) => void) | undefined;
108
108
  /** Fires whenever validity flips, after the first render. Forms read this instead of a ref. */
109
- onValidityChange?: (valid: boolean) => void;
109
+ onValidityChange?: ((valid: boolean) => void) | undefined;
110
110
  /** The picker's list. Default `ALL_CALLING_CODES`, every country; `DEFAULT_CALLING_CODES` is the short shipping list. */
111
- countries?: ReadonlyArray<CallingCode>;
111
+ countries?: ReadonlyArray<CallingCode> | undefined;
112
112
  /**
113
113
  * ISOs to list first under their own heading (`labels.popular`), in this order,
114
114
  * with the full list below under `labels.allCountries`. A popular country appears
115
115
  * in both groups, the way a contacts app pins favourites.
116
116
  */
117
- popularCountries?: ReadonlyArray<string>;
118
- /** ISOs to leave out of the picker; a pasted number for one is taken as digits. */
119
- hiddenCountries?: ReadonlyArray<string>;
117
+ popularCountries?: ReadonlyArray<string> | undefined;
118
+ /** ISOs to leave out of the picker; a pasted number for one is taken as digits, and a `defaultCountry` it lists throws at mount. */
119
+ hiddenCountries?: ReadonlyArray<string> | undefined;
120
120
  /** Show the country's flag emoji before the code and in the picker rows. Default true. */
121
- showFlag?: boolean;
121
+ showFlag?: boolean | undefined;
122
122
  /** Draw the flag yourself (an SVG, an image) in place of the emoji; used in the trigger and the rows. */
123
- renderFlag?: (country: CallingCode) => ReactNode;
123
+ renderFlag?: ((country: CallingCode) => ReactNode) | undefined;
124
124
  /** Draw a picker row's content yourself; the row stays a button with its selected dot. */
125
- renderCountry?: (country: CallingCode, state: {
125
+ renderCountry?: ((country: CallingCode, state: {
126
126
  selected: boolean;
127
- }) => ReactNode;
127
+ }) => ReactNode) | undefined;
128
128
  /**
129
129
  * A to Z rail down the picker's right edge; a tap jumps to the first country
130
130
  * starting with that letter (in the full list when `popularCountries` pins a
131
131
  * group above it). Default: on once the list has more than 20 entries, since
132
132
  * a short list is a glance, not a hunt.
133
133
  */
134
- showAlphabetIndex?: boolean;
134
+ showAlphabetIndex?: boolean | undefined;
135
135
  /**
136
136
  * The country to start on when no `value` / `defaultValue` names one. Default:
137
137
  * the region of the locale set through configureFormatters; with no region, the
@@ -139,13 +139,13 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyTy
139
139
  * controlled `value` overrides it, and changing it later does nothing until the
140
140
  * field remounts.
141
141
  */
142
- defaultCountry?: PhoneCountry;
142
+ defaultCountry?: PhoneCountry | undefined;
143
143
  /**
144
144
  * Which numbers count as valid, by the country's numbering plan. `'any'`
145
145
  * (default) accepts fixed lines too; `'mobile'` is for an OTP or WhatsApp
146
146
  * field; `false` turns validation off.
147
147
  */
148
- validation?: PhoneNumberValidation;
148
+ validation?: PhoneNumberValidation | undefined;
149
149
  /**
150
150
  * Hard stop on national digits, below the country's own. The field already
151
151
  * stops where a subscriber's number ends (10 for India, 9 for the UAE; under
@@ -153,27 +153,27 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyTy
153
153
  * the digit after it rather than the field trimming it later. Set this only
154
154
  * to stop earlier still.
155
155
  */
156
- maxLength?: number;
156
+ maxLength?: number | undefined;
157
157
  /** Group the digits as the country writes them while typing. Default true. The value stays digits. */
158
- formatAsYouType?: boolean;
158
+ formatAsYouType?: boolean | undefined;
159
159
  /** Keeps the country fixed: the code still shows, the picker does not open, the chevron is hidden. */
160
- countryLocked?: boolean;
161
- label?: string;
160
+ countryLocked?: boolean | undefined;
161
+ label?: string | undefined;
162
162
  /**
163
163
  * How the label sits, the same two modes as Input. Default `'top'`, the
164
164
  * field family's static label above the box; `'float'` rests it over the
165
165
  * number (past the country code) and rises it to the box's top edge on
166
166
  * focus or once a number is typed.
167
167
  */
168
- labelMode?: PhoneNumberInputLabelMode;
169
- labelStyle?: StyleProp<TextStyle>;
170
- placeholder?: string;
171
- helperText?: string;
168
+ labelMode?: PhoneNumberInputLabelMode | undefined;
169
+ labelStyle?: StyleProp<TextStyle> | undefined;
170
+ placeholder?: string | undefined;
171
+ helperText?: string | undefined;
172
172
  /**
173
173
  * The app's own error text, a string or a node; it replaces the built-in invalid-number message.
174
174
  * `true` shows the error state and keeps the built-in message; `false` and `''` change nothing.
175
175
  */
176
- error?: ReactNode;
176
+ error?: ReactNode | undefined;
177
177
  /**
178
178
  * Text under the field once the typed number is not a real number for the
179
179
  * country under `validation`. Shown after the user leaves the field with
@@ -184,24 +184,24 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, "returnKeyTy
184
184
  * a string replaces the text, `false` turns the message off. Nothing shows
185
185
  * under `validation={false}`, and an `error` text always wins.
186
186
  */
187
- invalidMessage?: string | false;
188
- required?: boolean;
189
- disabled?: boolean;
190
- size?: Extract<Size, "sm" | "md" | "lg">;
191
- variant?: FieldVariant;
187
+ invalidMessage?: string | false | undefined;
188
+ required?: boolean | undefined;
189
+ disabled?: boolean | undefined;
190
+ size?: Extract<Size, "sm" | "md" | "lg"> | undefined;
191
+ variant?: FieldVariant | undefined;
192
192
  /** Corner radius token from the theme (none, sm, md, lg, xl, pill). Wins over the field size's radius. */
193
- radius?: keyof Theme["radius"];
193
+ radius?: keyof Theme["radius"] | undefined;
194
194
  /** Strings the field draws itself: the placeholder, the picker's headings and search box, the invalid-number texts, the country button's name. */
195
- labels?: Partial<PhoneNumberInputLabels>;
196
- haptic?: HapticType | false;
195
+ labels?: Partial<PhoneNumberInputLabels> | undefined;
196
+ haptic?: HapticType | false | undefined;
197
197
  /** Screen-reader name for the number field. Default: the label, else the placeholder. */
198
- accessibilityLabel?: string;
198
+ accessibilityLabel?: string | undefined;
199
199
  /** Screen-reader name for the country button. Default: `Country code, currently +<code>`. */
200
- countryAccessibilityLabel?: string;
201
- onFocus?: () => void;
202
- onBlur?: () => void;
203
- style?: StyleProp<ViewStyle>;
204
- testID?: string;
200
+ countryAccessibilityLabel?: string | undefined;
201
+ onFocus?: (() => void) | undefined;
202
+ onBlur?: (() => void) | undefined;
203
+ style?: StyleProp<ViewStyle> | undefined;
204
+ testID?: string | undefined;
205
205
  }
206
206
  /** `+<code><national>`, presentational only; the value stays structured. */
207
207
  export declare const formatE164: (value: PhoneNumberValue) => string;
@@ -25,51 +25,51 @@ export interface PickerTriggerLabels {
25
25
  export declare const DEFAULT_PICKER_TRIGGER_LABELS: Readonly<PickerTriggerLabels>;
26
26
  export interface PickerTriggerProps {
27
27
  /** The currently selected value rendered as the trigger's primary text. */
28
- value?: string;
28
+ value?: string | undefined;
29
29
  /** Shown when `value` is empty. Falls back to "Select…". */
30
- placeholder?: string;
30
+ placeholder?: string | undefined;
31
31
  /** Static label rendered above the field. A string, or a node (a node needs an explicit `accessibilityLabel`). */
32
- label?: React.ReactNode;
32
+ label?: React.ReactNode | undefined;
33
33
  /** Drawn beside the label, right after it (a glossary info button, say); outside the trigger, so pressing it does not open the picker. */
34
- help?: React.ReactNode;
34
+ help?: React.ReactNode | undefined;
35
35
  /** Helper text shown below the field. Hidden when `error` is set. A string or a node. */
36
- helperText?: React.ReactNode;
36
+ helperText?: React.ReactNode | undefined;
37
37
  /**
38
38
  * Error message shown below the field (and red-borders the field). A string or a node; `true`
39
39
  * shows the error state without a message.
40
40
  */
41
- error?: React.ReactNode;
41
+ error?: React.ReactNode | undefined;
42
42
  /**
43
43
  * Appends the required marker to the label. Marker text comes from
44
44
  * `theme.settings.components.field.requiredMarker` (default `'*'`).
45
45
  */
46
- required?: boolean;
46
+ required?: boolean | undefined;
47
47
  /** Tap handler — typically opens the modal picker. */
48
48
  onPress: () => void;
49
49
  /** Render a clear (×) affordance when `value` is non-empty. */
50
- clearable?: boolean;
50
+ clearable?: boolean | undefined;
51
51
  /** Called when the clear affordance is pressed. */
52
- onClear?: () => void;
52
+ onClear?: (() => void) | undefined;
53
53
  /** Left icon slot (e.g. calendar / clock). */
54
- leftIcon?: React.ReactNode;
54
+ leftIcon?: React.ReactNode | undefined;
55
55
  /** Trailing slot — defaults to a chevron when unset. Pass `null` to suppress. */
56
- trailing?: React.ReactNode;
57
- disabled?: boolean;
58
- size?: PickerTriggerSize;
59
- variant?: PickerTriggerVariant;
60
- style?: StyleProp<ViewStyle>;
61
- triggerStyle?: StyleProp<ViewStyle>;
62
- valueStyle?: StyleProp<TextStyle>;
63
- labelStyle?: StyleProp<TextStyle>;
64
- messageStyle?: StyleProp<TextStyle>;
65
- accessibilityLabel?: string;
66
- labels?: Partial<PickerTriggerLabels>;
67
- testID?: string;
56
+ trailing?: React.ReactNode | undefined;
57
+ disabled?: boolean | undefined;
58
+ size?: PickerTriggerSize | undefined;
59
+ variant?: PickerTriggerVariant | undefined;
60
+ style?: StyleProp<ViewStyle> | undefined;
61
+ triggerStyle?: StyleProp<ViewStyle> | undefined;
62
+ valueStyle?: StyleProp<TextStyle> | undefined;
63
+ labelStyle?: StyleProp<TextStyle> | undefined;
64
+ messageStyle?: StyleProp<TextStyle> | undefined;
65
+ accessibilityLabel?: string | undefined;
66
+ labels?: Partial<PickerTriggerLabels> | undefined;
67
+ testID?: string | undefined;
68
68
  }
69
69
  /** The PickerTrigger props a picker forwards to its built-in trigger field. */
70
70
  export type PickerTriggerPassThroughProps = Pick<PickerTriggerProps, "label" | "help" | "placeholder" | "helperText" | "error" | "required" | "disabled" | "size" | "variant" | "clearable" | "onClear" | "leftIcon" | "trailing" | "triggerStyle" | "valueStyle" | "labelStyle" | "messageStyle" | "accessibilityLabel"> & {
71
71
  /** Copy for the trigger field (placeholder, selection, noSelection, clear). Named apart from labels, which is the copy of the picker sheet. */
72
- triggerLabels?: Partial<PickerTriggerLabels>;
72
+ triggerLabels?: Partial<PickerTriggerLabels> | undefined;
73
73
  };
74
74
  declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<(props: Omit<import("react-native").ViewProps, "ref"> & {
75
75
  ref?: React.Ref<import("react-native").ViewInstance> | undefined;
@@ -32,58 +32,58 @@ export interface ProfileCompletionProps {
32
32
  /** The profile's name. */
33
33
  title: string;
34
34
  /** A second line under the title: a type, a role, a tenure. Drawn small and uppercase. */
35
- subtitle?: string;
35
+ subtitle?: string | undefined;
36
36
  /** A sentence under the subtitle. */
37
- description?: string;
37
+ description?: string | undefined;
38
38
  /** Avatar image; falls back to the title's initials. */
39
- source?: ImageSourcePropType;
39
+ source?: ImageSourcePropType | undefined;
40
40
  /** Custom image renderer, the Avatar's own `ImageComponent` contract. */
41
- ImageComponent?: React.ComponentType<AvatarImageProps>;
41
+ ImageComponent?: React.ComponentType<AvatarImageProps> | undefined;
42
42
  /** Avatar size: sm, md, lg or xl. Default md. The ring wraps it with `ringGap` of air. */
43
- size?: ProfileCompletionSize;
43
+ size?: ProfileCompletionSize | undefined;
44
44
  /**
45
45
  * Colour scheme of the initials circle: a soft tinted fill with the tone's
46
46
  * ink, the same recipe as the soft Button. `'neutral'` (default) is the
47
47
  * quiet grey on primary text, so the ring carries the colour. The
48
48
  * Avatar's per-name palette colour is not used here.
49
49
  */
50
- avatarTone?: ProfileCompletionAvatarTone;
50
+ avatarTone?: ProfileCompletionAvatarTone | undefined;
51
51
  /** Fill behind the initials; wins over `avatarTone`. */
52
- avatarBackgroundColor?: string;
52
+ avatarBackgroundColor?: string | undefined;
53
53
  /** Colour of the initials; wins over `avatarTone`. */
54
- avatarColor?: string;
54
+ avatarColor?: string | undefined;
55
55
  /** Ring stroke width. Default `3`. */
56
- ringWidth?: number;
56
+ ringWidth?: number | undefined;
57
57
  /** Air between the avatar's edge and the ring's inner edge. Default `1`. */
58
- ringGap?: number;
58
+ ringGap?: number | undefined;
59
59
  /**
60
60
  * `'banded'` (default) colours the ring by progress: `danger` below a
61
61
  * third, `warning` to two thirds, `success` from there. `'single'` draws it in one
62
62
  * colour, `tone` (default `'primary'`), at every progress.
63
63
  */
64
- ringVariant?: ProfileCompletionRingVariant;
64
+ ringVariant?: ProfileCompletionRingVariant | undefined;
65
65
  /** A fixed ring colour; also turns the bands off. Default `'primary'` in the single variant. */
66
- tone?: Tone;
66
+ tone?: Tone | undefined;
67
67
  /** Explicit ring colour; wins over `tone` and the progress bands. */
68
- ringColor?: string;
68
+ ringColor?: string | undefined;
69
69
  /** Sweep the ring to a new progress. Default `true`. */
70
- animated?: boolean;
70
+ animated?: boolean | undefined;
71
71
  /**
72
72
  * At 100%, a round tick badge on the ring's bottom right, in the ring's own
73
73
  * colour: green in the banded variant, `tone` or `ringColor` otherwise.
74
74
  * Default `true`; `false` leaves the full ring on its own.
75
75
  */
76
- showCompleteBadge?: boolean;
76
+ showCompleteBadge?: boolean | undefined;
77
77
  /** Content at the right edge: an Edit link, a percent badge. Stays its own accessibility element. */
78
- trailing?: React.ReactNode;
78
+ trailing?: React.ReactNode | undefined;
79
79
  /** Spoken text overrides; each key falls back to the English default. */
80
- labels?: Partial<ProfileCompletionLabels>;
81
- accessibilityLabel?: string;
82
- style?: StyleProp<ViewStyle>;
83
- titleStyle?: StyleProp<TextStyle>;
84
- subtitleStyle?: StyleProp<TextStyle>;
85
- descriptionStyle?: StyleProp<TextStyle>;
86
- testID?: string;
80
+ labels?: Partial<ProfileCompletionLabels> | undefined;
81
+ accessibilityLabel?: string | undefined;
82
+ style?: StyleProp<ViewStyle> | undefined;
83
+ titleStyle?: StyleProp<TextStyle> | undefined;
84
+ subtitleStyle?: StyleProp<TextStyle> | undefined;
85
+ descriptionStyle?: StyleProp<TextStyle> | undefined;
86
+ testID?: string | undefined;
87
87
  }
88
88
  declare const ProfileCompletion: React.ForwardRefExoticComponent<ProfileCompletionProps & React.RefAttributes<HostInstance>>;
89
89
  export { ProfileCompletion };
@@ -49,42 +49,42 @@ export interface ProfilePickerLabels {
49
49
  export declare const DEFAULT_PROFILE_PICKER_LABELS: Readonly<ProfilePickerLabels>;
50
50
  export interface ProfilePickerProps {
51
51
  /** Current photo URL or local URI, or null for none. */
52
- value?: string | null;
52
+ value?: string | null | undefined;
53
53
  /** Person's name: drives the initials shown when there is no photo. */
54
- name?: string;
54
+ name?: string | undefined;
55
55
  /** Native picking adapters (same shape as FilePicker's). One launches directly; several open a chooser. */
56
56
  sources: ReadonlyArray<FilePickerSource>;
57
57
  /** Receives the validated pick. Upload it and pass the resulting URL back as `value`. */
58
- onPick?: (file: PickedFile) => void;
58
+ onPick?: ((file: PickedFile) => void) | undefined;
59
59
  /**
60
60
  * Clears the photo. Removal is a row at the end of the sheet: a just-picked
61
61
  * photo always offers it; an existing `value` offers it only when this is
62
62
  * wired (the app owns removal). While it is offered, tapping the photo opens
63
63
  * the sheet even with a single source.
64
64
  */
65
- onRemove?: () => void;
65
+ onRemove?: (() => void) | undefined;
66
66
  /** Spinner over the photo and no interaction, while the pick uploads. */
67
- loading?: boolean;
68
- disabled?: boolean;
67
+ loading?: boolean | undefined;
68
+ disabled?: boolean | undefined;
69
69
  /** Accepted mime globs. Default `['image/*']`. A pick with no type passes. */
70
- accept?: ReadonlyArray<string>;
70
+ accept?: ReadonlyArray<string> | undefined;
71
71
  /** Size cap in MB, enforced when the source reports a size. */
72
- maxSizeMB?: number;
72
+ maxSizeMB?: number | undefined;
73
73
  /** A preset: sm 72, md 120, lg 160. Default 'md'. */
74
- size?: ProfilePickerSize;
75
- shape?: ProfilePickerShape;
74
+ size?: ProfilePickerSize | undefined;
75
+ shape?: ProfilePickerShape | undefined;
76
76
  /** Badge icon at the bottom-right: a name, or `{ name, variant }` for another Iconsax style. Default 'camera'. */
77
- badgeIcon?: IconName | SlotIconRef;
77
+ badgeIcon?: IconName | SlotIconRef | undefined;
78
78
  /**
79
79
  * Theme colour of the badge. Default `theme.settings.components["profile-picker"].defaultTone`,
80
80
  * else 'primary'.
81
81
  */
82
- tone?: Tone;
82
+ tone?: Tone | undefined;
83
83
  /**
84
84
  * Look of the badge: `solid` (default), `soft` or `outline`. Default
85
85
  * `theme.settings.components["profile-picker"].defaultVariant`, else 'solid'.
86
86
  */
87
- variant?: ProfilePickerVariant;
87
+ variant?: ProfilePickerVariant | undefined;
88
88
  /**
89
89
  * Theme colour of the photo area when there is no photo: the initials disc
90
90
  * and the empty person placeholder take a soft tint of the tone with the
@@ -92,31 +92,31 @@ export interface ProfilePickerProps {
92
92
  * Avatar's per-name palette and the grey placeholder. Default
93
93
  * `theme.settings.components["profile-picker"].defaultAvatarTone`.
94
94
  */
95
- avatarTone?: AvatarTone;
95
+ avatarTone?: AvatarTone | undefined;
96
96
  /** Fill behind the initials or the placeholder icon; wins over `avatarTone`. */
97
- avatarBackgroundColor?: string;
97
+ avatarBackgroundColor?: string | undefined;
98
98
  /** Colour of the initials or the placeholder icon; wins over `avatarTone`. */
99
- avatarColor?: string;
100
- label?: string;
101
- required?: boolean;
102
- helperText?: string;
99
+ avatarColor?: string | undefined;
100
+ label?: string | undefined;
101
+ required?: boolean | undefined;
102
+ helperText?: string | undefined;
103
103
  /** App-supplied error; wins over a rejected pick's own message. */
104
- error?: React.ReactNode;
105
- layout?: ProfilePickerLayout;
104
+ error?: React.ReactNode | undefined;
105
+ layout?: ProfilePickerLayout | undefined;
106
106
  /** Bold primary text beside / beneath the photo (inline and profile layouts). */
107
- title?: string;
107
+ title?: string | undefined;
108
108
  /** Muted secondary text beside / beneath the photo (inline and profile layouts). */
109
- subtitle?: string;
109
+ subtitle?: string | undefined;
110
110
  /** Renders the photo, e.g. an authenticated image loader (see Avatar). */
111
- ImageComponent?: React.ComponentType<AvatarImageProps>;
112
- labels?: Partial<ProfilePickerLabels>;
111
+ ImageComponent?: React.ComponentType<AvatarImageProps> | undefined;
112
+ labels?: Partial<ProfilePickerLabels> | undefined;
113
113
  /** Haptic on an accepted pick and on remove; errors use `notificationError`. Pass false to disable. */
114
- haptic?: HapticType | false;
114
+ haptic?: HapticType | false | undefined;
115
115
  /** Called with the message of a rejected or failed pick. */
116
- onError?: (message: string) => void;
117
- accessibilityLabel?: string;
118
- style?: StyleProp<ViewStyle>;
119
- testID?: string;
116
+ onError?: ((message: string) => void) | undefined;
117
+ accessibilityLabel?: string | undefined;
118
+ style?: StyleProp<ViewStyle> | undefined;
119
+ testID?: string | undefined;
120
120
  }
121
121
  declare const ProfilePicker: React.ForwardRefExoticComponent<ProfilePickerProps & React.RefAttributes<HostInstance>>;
122
122
  export { ProfilePicker };