@webority/mobile-ui 0.148.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 (485) hide show
  1. package/dist/canvas-kit/kit.js +13 -56553
  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/BarChart/BarChart.js +1 -1
  14. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  15. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  16. package/lib/commonjs/components/Box/Box.js +1 -1
  17. package/lib/commonjs/components/Card/Card.js +1 -1
  18. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  19. package/lib/commonjs/components/Chip/Chip.js +1 -1
  20. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  21. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  22. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  23. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  24. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  25. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  26. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  27. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  28. package/lib/commonjs/components/FileViewer/fileSource.js +1 -1
  29. package/lib/commonjs/components/FileViewer/useFileViewerZoom.js +1 -1
  30. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  31. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  32. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  33. package/lib/commonjs/components/Input/Input.js +1 -1
  34. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  35. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  36. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  37. package/lib/commonjs/components/Menu/focusHost.js +1 -1
  38. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  39. package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
  40. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  41. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  42. package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
  43. package/lib/commonjs/components/Rating/Rating.js +1 -1
  44. package/lib/commonjs/components/Repeater/Repeater.js +1 -1
  45. package/lib/commonjs/components/Screen/Screen.js +1 -1
  46. package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
  47. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  48. package/lib/commonjs/components/Select/Select.js +1 -1
  49. package/lib/commonjs/components/SignaturePad/SignaturePad.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/SlideToConfirm/SlideToConfirm.js +1 -1
  53. package/lib/commonjs/components/Slider/Slider.js +1 -1
  54. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  55. package/lib/commonjs/components/SortableList/SortableList.js +1 -1
  56. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  57. package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
  58. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  59. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  60. package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
  61. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  62. package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
  63. package/lib/commonjs/components/Text/Text.js +1 -1
  64. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  65. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  66. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
  67. package/lib/commonjs/components/ZoomableImage/ZoomableImage.js +1 -1
  68. package/lib/commonjs/form/HookFormField.js +1 -1
  69. package/lib/commonjs/form/path.js +1 -1
  70. package/lib/commonjs/hooks/useControllableState.js +1 -1
  71. package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
  72. package/lib/commonjs/navigation/NavigationScreen.js +1 -1
  73. package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
  74. package/lib/commonjs/theme/ThemeContext.js +1 -1
  75. package/lib/commonjs/theme/animatedValue.js +1 -1
  76. package/lib/commonjs/theme/componentSizes.js +1 -1
  77. package/lib/commonjs/theme/merge.js +1 -1
  78. package/lib/commonjs/theme/scale.js +1 -1
  79. package/lib/commonjs/utils/complete.js +1 -0
  80. package/lib/commonjs/utils/guards.js +1 -0
  81. package/lib/commonjs/utils/hapticUtils.js +1 -1
  82. package/lib/module/components/Accordion/Accordion.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/BarChart/BarChart.js +1 -1
  92. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  93. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  94. package/lib/module/components/Box/Box.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/Drawer/Drawer.js +1 -1
  105. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  106. package/lib/module/components/FileViewer/fileSource.js +1 -1
  107. package/lib/module/components/FileViewer/useFileViewerZoom.js +1 -1
  108. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  109. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  110. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  111. package/lib/module/components/Input/Input.js +1 -1
  112. package/lib/module/components/ListItem/ListItem.js +1 -1
  113. package/lib/module/components/Markdown/Markdown.js +1 -1
  114. package/lib/module/components/Menu/MenuSurface.js +1 -1
  115. package/lib/module/components/Menu/focusHost.js +1 -1
  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/SignaturePad/SignaturePad.js +1 -1
  128. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  129. package/lib/module/components/Skeleton/SkeletonList.js +1 -1
  130. package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
  131. package/lib/module/components/Slider/Slider.js +1 -1
  132. package/lib/module/components/SliderField/SliderField.js +1 -1
  133. package/lib/module/components/SortableList/SortableList.js +1 -1
  134. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  135. package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
  136. package/lib/module/components/StatTile/StatTile.js +1 -1
  137. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  138. package/lib/module/components/StatusBadge/statusMap.js +1 -1
  139. package/lib/module/components/Stepper/Stepper.js +1 -1
  140. package/lib/module/components/Swipeable/Swipeable.js +1 -1
  141. package/lib/module/components/Text/Text.js +1 -1
  142. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  143. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  144. package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
  145. package/lib/module/components/ZoomableImage/ZoomableImage.js +1 -1
  146. package/lib/module/form/HookFormField.js +1 -1
  147. package/lib/module/form/path.js +1 -1
  148. package/lib/module/hooks/useControllableState.js +1 -1
  149. package/lib/module/hooks/useDragToDismiss.js +1 -1
  150. package/lib/module/navigation/NavigationScreen.js +1 -1
  151. package/lib/module/specs/NativePdfRasterizer.js +1 -1
  152. package/lib/module/theme/ThemeContext.js +1 -1
  153. package/lib/module/theme/animatedValue.js +1 -1
  154. package/lib/module/theme/componentSizes.js +1 -1
  155. package/lib/module/theme/merge.js +1 -1
  156. package/lib/module/theme/scale.js +1 -1
  157. package/lib/module/utils/complete.js +1 -0
  158. package/lib/module/utils/guards.js +1 -0
  159. package/lib/module/utils/hapticUtils.js +1 -1
  160. package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
  161. package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
  162. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
  163. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
  164. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  165. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
  166. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
  167. package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
  168. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
  169. package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
  170. package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  171. package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  172. package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
  173. package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
  174. package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
  175. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +36 -36
  176. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
  177. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
  178. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
  179. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  180. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +33 -33
  181. package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
  182. package/lib/typescript/commonjs/components/Button/Button.d.ts +22 -22
  183. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
  184. package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
  185. package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
  186. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
  187. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
  188. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
  189. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  190. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
  191. package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
  192. package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
  193. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
  194. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  195. package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
  196. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
  197. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
  198. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
  199. package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
  200. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
  201. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +15 -15
  202. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
  203. package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  204. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
  205. package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
  206. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
  207. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
  208. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
  209. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
  210. package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
  211. package/lib/typescript/commonjs/components/FileViewer/useFileViewerZoom.d.ts +3 -3
  212. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  213. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  214. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  215. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
  216. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
  217. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
  218. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
  219. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
  220. package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
  221. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  222. package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  223. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
  224. package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
  225. package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  226. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
  227. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
  228. package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
  229. package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
  230. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
  231. package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
  232. package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
  233. package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
  234. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
  235. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
  236. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
  237. package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
  238. package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  239. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +33 -33
  240. package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +8 -0
  241. package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  242. package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  243. package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  244. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  245. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  246. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  247. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  248. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
  249. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
  250. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
  251. package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
  252. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
  253. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
  254. package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
  255. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  256. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  257. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
  258. package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
  259. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
  260. package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
  261. package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
  262. package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
  263. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  264. package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
  265. package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
  266. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
  267. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
  268. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
  269. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
  270. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  271. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
  272. package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
  273. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
  274. package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
  275. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
  276. package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
  277. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
  278. package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
  279. package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
  280. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
  281. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
  282. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
  283. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +16 -16
  284. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
  285. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
  286. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
  287. package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
  288. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
  289. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
  290. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
  291. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
  292. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
  293. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
  294. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
  295. package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  296. package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +6 -6
  297. package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +20 -20
  298. package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  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 +8 -8
  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/navigation/DiscardGuard.d.ts +2 -2
  310. package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
  311. package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
  312. package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
  313. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
  314. package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
  315. package/lib/typescript/commonjs/theme/types.d.ts +84 -84
  316. package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
  317. package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
  318. package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
  319. package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
  320. package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
  321. package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
  322. package/lib/typescript/module/canvasKit/index.d.ts +12 -12
  323. package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
  324. package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
  325. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
  326. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  327. package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
  328. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
  329. package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
  330. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
  331. package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
  332. package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  333. package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  334. package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
  335. package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
  336. package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
  337. package/lib/typescript/module/components/Avatar/Avatar.d.ts +36 -36
  338. package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
  339. package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
  340. package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
  341. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  342. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +33 -33
  343. package/lib/typescript/module/components/Box/Box.d.ts +27 -27
  344. package/lib/typescript/module/components/Button/Button.d.ts +22 -22
  345. package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
  346. package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
  347. package/lib/typescript/module/components/Card/Card.d.ts +41 -41
  348. package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
  349. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
  350. package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
  351. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  352. package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
  353. package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
  354. package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
  355. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
  356. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  357. package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
  358. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
  359. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
  360. package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
  361. package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
  362. package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
  363. package/lib/typescript/module/components/Drawer/Drawer.d.ts +15 -15
  364. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
  365. package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  366. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
  367. package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
  368. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
  369. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
  370. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
  371. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
  372. package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
  373. package/lib/typescript/module/components/FileViewer/useFileViewerZoom.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/NumberInput/NumberInput.d.ts +27 -27
  398. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
  399. package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
  400. package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  401. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +33 -33
  402. package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +8 -0
  403. package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  404. package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  405. package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  406. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  407. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  408. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  409. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  410. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
  411. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
  412. package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
  413. package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
  414. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
  415. package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
  416. package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
  417. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  418. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  419. package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
  420. package/lib/typescript/module/components/Screen/index.d.ts +1 -1
  421. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
  422. package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
  423. package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
  424. package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
  425. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  426. package/lib/typescript/module/components/Select/Select.d.ts +50 -45
  427. package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
  428. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
  429. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
  430. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
  431. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
  432. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  433. package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
  434. package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
  435. package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
  436. package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
  437. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
  438. package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
  439. package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
  440. package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
  441. package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
  442. package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
  443. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
  444. package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
  445. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +16 -16
  446. package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
  447. package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
  448. package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
  449. package/lib/typescript/module/components/Text/Text.d.ts +10 -10
  450. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
  451. package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
  452. package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
  453. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
  454. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
  455. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
  456. package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
  457. package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  458. package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +6 -6
  459. package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +20 -20
  460. package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  461. package/lib/typescript/module/form/HookFormField.d.ts +5 -18
  462. package/lib/typescript/module/form/path.d.ts +4 -2
  463. package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
  464. package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
  465. package/lib/typescript/module/hooks/useDragToDismiss.d.ts +8 -8
  466. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
  467. package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
  468. package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
  469. package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
  470. package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
  471. package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
  472. package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
  473. package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
  474. package/lib/typescript/module/theme/Gradient.d.ts +2 -2
  475. package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
  476. package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
  477. package/lib/typescript/module/theme/types.d.ts +84 -84
  478. package/lib/typescript/module/utils/announce.d.ts +1 -1
  479. package/lib/typescript/module/utils/complete.d.ts +5 -0
  480. package/lib/typescript/module/utils/feedback.d.ts +3 -1
  481. package/lib/typescript/module/utils/guards.d.ts +9 -0
  482. package/lib/typescript/module/utils/placement.d.ts +3 -3
  483. package/lib/typescript/module/utils/squircle.d.ts +2 -2
  484. package/package.json +11 -11
  485. package/src/specs/NativePdfRasterizer.ts +1 -1
@@ -40,35 +40,35 @@ export interface ScannerOverlayProps {
40
40
  * overlay, and the overlay never touches it: mapping `torch` to the
41
41
  * camera's `enableTorch` and `state` to its scan callback is the app's job.
42
42
  */
43
- children?: React.ReactNode;
43
+ children?: React.ReactNode | undefined;
44
44
  /** Default `'scanning'`. */
45
- state?: ScannerOverlayState;
45
+ state?: ScannerOverlayState | undefined;
46
46
  /** The line under the frame while scanning. Default from `labels.hint`. */
47
- helperText?: string;
47
+ helperText?: string | undefined;
48
48
  /** Replaces any of the default texts. */
49
- labels?: Partial<ScannerOverlayLabels>;
49
+ labels?: Partial<ScannerOverlayLabels> | undefined;
50
50
  /** Whether the torch is on. Default `false`. */
51
- torch?: boolean;
51
+ torch?: boolean | undefined;
52
52
  /** Shows the torch button, which calls this with the next value. Hidden when omitted. */
53
- onTorchChange?: (next: boolean) => void;
53
+ onTorchChange?: ((next: boolean) => void) | undefined;
54
54
  /** Shows the 'Enter code instead' button. It stays reachable in every state, camera or not. */
55
- onManualEntry?: () => void;
55
+ onManualEntry?: (() => void) | undefined;
56
56
  /** Shows the 'Upload from gallery' button. */
57
- onGallery?: () => void;
57
+ onGallery?: (() => void) | undefined;
58
58
  /** Shows the button on the `noPermission` panel; the app asks or opens Settings. */
59
- onPermissionAction?: () => void;
59
+ onPermissionAction?: (() => void) | undefined;
60
60
  /**
61
61
  * Side of the square cutout in points. Never below 240, so a code is large
62
62
  * enough to frame, and never wider than the screen less its margins. Default 260.
63
63
  */
64
- frameSize?: number;
64
+ frameSize?: number | undefined;
65
65
  /**
66
66
  * The torch button's press haptic; default `'selection'`. `false` also
67
67
  * turns off the success and error haptics fired when `state` changes.
68
68
  */
69
- haptic?: HapticType | false;
70
- style?: StyleProp<ViewStyle>;
71
- testID?: string;
69
+ haptic?: HapticType | false | undefined;
70
+ style?: StyleProp<ViewStyle> | undefined;
71
+ testID?: string | undefined;
72
72
  }
73
73
  export declare const DEFAULT_SCANNER_OVERLAY_LABELS: Readonly<ScannerOverlayLabels>;
74
74
  declare const ScannerOverlay: React.ForwardRefExoticComponent<ScannerOverlayProps & React.RefAttributes<HostInstance>>;
@@ -1,4 +1,4 @@
1
- import type { PagedListPaging } from "@webority/mobile-core/query";
1
+ import type { DataState, PagedListPaging } from "@webority/mobile-core/query";
2
2
  import type React from "react";
3
3
  import type { FlatListProps, NativeScrollEvent, NativeSyntheticEvent, ScrollViewInstance, StyleProp, ViewStyle } from "react-native";
4
4
  import { FlatList } from "react-native";
@@ -6,64 +6,62 @@ import type { AppBarAction } from "../AppBar";
6
6
  import type { EmptyStateProps } from "../EmptyState";
7
7
  import type { FloatingActionButtonPosition } from "../FloatingActionButton";
8
8
  import type { SafeAreaEdge } from "../KeyboardAwareScrollView/KeyboardAwareScrollView";
9
- export interface ScreenListState {
10
- /** First load: draws `skeleton` (or a Spinner) instead of the list. */
11
- loading: boolean;
12
- /** A failed first load: drawn through AsyncBlock's error state with `onRetry`. */
13
- error?: unknown;
14
- /** Title of the first-load error state; AsyncBlock's default title when unset. */
15
- errorTitle?: string;
16
- onRetry?: () => void;
17
- /** Drawn when the loaded list has no items; nothing is drawn when unset. */
18
- empty?: EmptyStateProps;
19
- skeleton?: React.ReactNode;
20
- }
21
- export interface ScreenListProps<ItemT> extends Omit<FlatListProps<ItemT>, "onScroll" | "refreshControl" | "ListEmptyComponent"> {
22
- state?: ScreenListState;
23
- /** From usePagedList or pagingFromInfiniteQuery: the screen draws PagedListFooter and calls loadMore on end reached. */
24
- paging?: PagedListPaging;
25
- }
9
+ type ScreenListBase<ItemT> = Omit<FlatListProps<ItemT>, "data" | "onScroll" | "refreshControl" | "ListEmptyComponent"> & {
10
+ /** From usePagedList or useInfiniteDataState: the screen draws PagedListFooter and calls loadMore on end reached. */
11
+ paging?: PagedListPaging | undefined;
12
+ /** Drawn when the state is "empty". */
13
+ empty?: EmptyStateProps | undefined;
14
+ skeleton?: React.ReactNode | undefined;
15
+ errorTitle?: string | undefined;
16
+ };
17
+ export type ScreenListProps<ItemT> = ScreenListBase<ItemT> & ({
18
+ data: readonly ItemT[];
19
+ state?: never;
20
+ } | {
21
+ state: DataState<readonly ItemT[]>;
22
+ data?: never;
23
+ });
26
24
  export interface FloatingActionSlotProps {
27
- bottomOffset?: number;
28
- size?: "sm" | "md" | "lg";
29
- position?: FloatingActionButtonPosition;
25
+ bottomOffset?: number | undefined;
26
+ size?: "sm" | "md" | "lg" | undefined;
27
+ position?: FloatingActionButtonPosition | undefined;
30
28
  }
31
29
  export interface ScreenProps<ItemT = unknown> {
32
- title?: string;
33
- subtitle?: string;
30
+ title?: string | undefined;
31
+ subtitle?: string | undefined;
34
32
  /** Large title that collapses into the bar on scroll. Default true. */
35
- largeTitle?: boolean;
33
+ largeTitle?: boolean | undefined;
36
34
  /** Shows a shadow under the fixed app bar once the content scrolls. Default: the theme's `components.screen.headerShadowOnScroll`, else true. */
37
- headerShadowOnScroll?: boolean;
35
+ headerShadowOnScroll?: boolean | undefined;
38
36
  /** Shows the back chevron; runs on press and on Android Back. */
39
- onBack?: () => void;
40
- rightActions?: AppBarAction[];
41
- leading?: React.ReactNode;
37
+ onBack?: (() => void) | undefined;
38
+ rightActions?: AppBarAction[] | undefined;
39
+ leading?: React.ReactNode | undefined;
42
40
  /** A node at the bar's right edge, such as a profile avatar, in place of the last right action. */
43
- trailing?: React.ReactNode;
41
+ trailing?: React.ReactNode | undefined;
44
42
  /** Scroll and fixed modes: the content. List mode: overlays (sheets, dialogs) drawn above the list. */
45
- children?: React.ReactNode;
46
- onRefresh?: () => unknown;
47
- refreshing?: boolean;
43
+ children?: React.ReactNode | undefined;
44
+ onRefresh?: (() => unknown) | undefined;
45
+ refreshing?: boolean | undefined;
48
46
  /** Pinned under the content, above the keyboard. */
49
- footer?: React.ReactNode;
47
+ footer?: React.ReactNode | undefined;
50
48
  /** Default true; false renders a plain View. */
51
- scroll?: boolean;
52
- list?: ScreenListProps<ItemT>;
49
+ scroll?: boolean | undefined;
50
+ list?: ScreenListProps<ItemT> | undefined;
53
51
  /** Safe-area edges padded. Default top and bottom. */
54
- edges?: SafeAreaEdge[];
52
+ edges?: SafeAreaEdge[] | undefined;
55
53
  /** Extra space under the content and the footer, for a tab bar drawn over the screen. Default 0. */
56
- bottomInset?: number;
54
+ bottomInset?: number | undefined;
57
55
  /** Side margin of the content from the theme's screen gutter (16). Default true in scroll and fixed modes, false in list mode, where rows carry their own padding. The footer always has it. */
58
- gutter?: boolean;
56
+ gutter?: boolean | undefined;
59
57
  /** A FloatingActionButton or FloatingActionButtonGroup. The screen draws it above the tab bar and the footer and leaves room under the content so the last row is never covered. Floats bottomRight unless its own `position` is set. */
60
- floatingAction?: React.ReactElement<FloatingActionSlotProps>;
58
+ floatingAction?: React.ReactElement<FloatingActionSlotProps> | undefined;
61
59
  /** Default true. */
62
- keyboardToolbar?: boolean;
63
- scrollRef?: React.Ref<ScrollViewInstance | FlatList<ItemT>>;
64
- onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
65
- contentContainerStyle?: StyleProp<ViewStyle>;
66
- testID?: string;
60
+ keyboardToolbar?: boolean | undefined;
61
+ scrollRef?: React.Ref<ScrollViewInstance | FlatList<ItemT>> | undefined;
62
+ onScroll?: ((event: NativeSyntheticEvent<NativeScrollEvent>) => void) | undefined;
63
+ contentContainerStyle?: StyleProp<ViewStyle> | undefined;
64
+ testID?: string | undefined;
67
65
  }
68
66
  /**
69
67
  * The page shell: safe area, app bar with a large title that collapses as the
@@ -75,4 +73,5 @@ export interface ScreenProps<ItemT = unknown> {
75
73
  * it to react-navigation and holds the unsaved-changes guard.
76
74
  */
77
75
  export declare function Screen<ItemT = unknown>(props: ScreenProps<ItemT>): React.ReactElement;
76
+ export {};
78
77
  //# sourceMappingURL=Screen.d.ts.map
@@ -1,3 +1,3 @@
1
- export type { ScreenListProps, ScreenListState, ScreenProps } from "./Screen";
1
+ export type { ScreenListProps, ScreenProps } from "./Screen";
2
2
  export { Screen } from "./Screen";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -24,73 +24,73 @@ export interface SearchBarLabels {
24
24
  export declare const DEFAULT_SEARCH_BAR_LABELS: Readonly<SearchBarLabels>;
25
25
  export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" | "onChangeText"> {
26
26
  /** Optional label: static above the field (`labelMode="top"`) or floating from inside it. */
27
- label?: string;
27
+ label?: string | undefined;
28
28
  /** How the label sits. Default `'top'`, the field family's static label; `'float'` rises on focus / value. */
29
- labelMode?: SearchBarLabelMode;
30
- labelStyle?: StyleProp<TextStyle>;
29
+ labelMode?: SearchBarLabelMode | undefined;
30
+ labelStyle?: StyleProp<TextStyle> | undefined;
31
31
  /** Current value. Optional / nullable — treated as empty string when undefined or null. */
32
- value?: string | null;
32
+ value?: string | null | undefined;
33
33
  onChangeText: (text: string) => void;
34
- onSubmit?: (text: string) => void;
35
- placeholder?: string;
36
- autoFocus?: boolean;
37
- disabled?: boolean;
38
- onClear?: () => void;
34
+ onSubmit?: ((text: string) => void) | undefined;
35
+ placeholder?: string | undefined;
36
+ autoFocus?: boolean | undefined;
37
+ disabled?: boolean | undefined;
38
+ onClear?: (() => void) | undefined;
39
39
  /**
40
40
  * Replaces the magnifier. An icon name (`leftIcon="filter"`) is drawn at
41
41
  * the magnifier's own colour and size; `{ name, variant }`, a render
42
42
  * function or any node also work.
43
43
  */
44
- leftIcon?: SlotIcon;
45
- debounceMs?: number;
46
- size?: Extract<Size, "sm" | "md" | "lg">;
47
- variant?: FieldVariant;
44
+ leftIcon?: SlotIcon | undefined;
45
+ debounceMs?: number | undefined;
46
+ size?: Extract<Size, "sm" | "md" | "lg"> | undefined;
47
+ variant?: FieldVariant | undefined;
48
48
  /**
49
49
  * Corner radius from the theme's radius scale. Default: the theme's
50
50
  * `components["search-bar"].<size>.radius` (the pill). Ignored on `underline`,
51
51
  * which is always square.
52
52
  */
53
- radius?: RadiusName;
53
+ radius?: RadiusName | undefined;
54
54
  /**
55
55
  * Chips under the field that narrow what is searched, for example All, People, Files.
56
56
  * Put the broadest scope first: it is the one selected until the person picks another.
57
57
  */
58
- scopes?: SearchScope[];
58
+ scopes?: SearchScope[] | undefined;
59
59
  /** The selected scope's `value`. Pass it to control the selection; leave it out to let the bar keep it. */
60
- scope?: string;
61
- onScopeChange?: (value: string) => void;
60
+ scope?: string | undefined;
61
+ onScopeChange?: ((value: string) => void) | undefined;
62
62
  /**
63
63
  * Searches to offer while the field is focused and empty, newest first. The app keeps
64
64
  * them; `useRecentSearches` does it through mobile-core storage.
65
65
  */
66
- recents?: string[];
66
+ recents?: string[] | undefined;
67
67
  /** Most recent searches drawn. Default 8. */
68
- maxRecents?: number;
68
+ maxRecents?: number | undefined;
69
69
  /** A recent search was tapped. The bar blurs the field; the app sets the text and runs the search. */
70
- onSelectRecent?: (text: string) => void;
70
+ onSelectRecent?: ((text: string) => void) | undefined;
71
71
  /** Shows a remove button on each recent search. */
72
- onRemove?: (text: string) => void;
72
+ onRemove?: ((text: string) => void) | undefined;
73
73
  /** Shows a "Clear all" button above the recent searches. */
74
- onClearRecents?: () => void;
74
+ onClearRecents?: (() => void) | undefined;
75
75
  /**
76
76
  * Predicted searches to offer while the field is focused and has text. The app fetches
77
77
  * them (from the debounced `onChangeText`); the part of each that matches the field is
78
78
  * drawn emphasised. A string is shorthand for `{ text }`.
79
79
  */
80
- suggestions?: (string | SearchSuggestion)[];
80
+ suggestions?: (string | SearchSuggestion)[] | undefined;
81
81
  /** Most suggestions drawn. Default 8. */
82
- maxSuggestions?: number;
82
+ maxSuggestions?: number | undefined;
83
83
  /** A suggestion was tapped. The bar blurs the field; the app sets the text and runs the search. */
84
- onSelect?: (suggestion: SearchSuggestion) => void;
84
+ onSelect?: ((suggestion: SearchSuggestion) => void) | undefined;
85
85
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
86
- haptic?: HapticType | false;
86
+ haptic?: HapticType | false | undefined;
87
87
  /** Copy for the bar's labels and announcements. A key left out keeps its English default. */
88
- labels?: Partial<SearchBarLabels>;
89
- style?: StyleProp<ViewStyle>;
88
+ labels?: Partial<SearchBarLabels> | undefined;
89
+ style?: StyleProp<ViewStyle> | undefined;
90
90
  /** Style applied to the search text, after the library's own size, colour and font. */
91
- inputStyle?: StyleProp<TextStyle>;
92
- accessibilityLabel?: string;
93
- testID?: string;
91
+ inputStyle?: StyleProp<TextStyle> | undefined;
92
+ accessibilityLabel?: string | undefined;
93
+ testID?: string | undefined;
94
94
  }
95
95
  declare const SearchBar: ForwardRefExoticComponent<SearchBarProps & RefAttributes<TextInputInstance>>;
96
96
  export { SearchBar };
@@ -10,13 +10,13 @@ export interface SearchScope {
10
10
  /** A row of predicted searches under the field. A plain string stands for `{ text }`. */
11
11
  export interface SearchSuggestion {
12
12
  /** Identifies the row when two suggestions share text. Default: the text. */
13
- id?: string;
13
+ id?: string | undefined;
14
14
  /** The suggested search; the part that matches the field is drawn emphasised. */
15
15
  text: string;
16
16
  /** A second, quieter line under the text. */
17
- subtitle?: string;
17
+ subtitle?: string | undefined;
18
18
  /** Replaces the magnifier. */
19
- icon?: SlotIcon;
19
+ icon?: SlotIcon | undefined;
20
20
  }
21
21
  export declare const normalizeSuggestion: (item: string | SearchSuggestion) => SearchSuggestion;
22
22
  interface HoldProps {
@@ -28,7 +28,7 @@ interface ScopeBarProps {
28
28
  scopes: SearchScope[];
29
29
  scope: string;
30
30
  disabled: boolean;
31
- haptic?: HapticType | false;
31
+ haptic?: HapticType | false | undefined;
32
32
  labels: SearchBarLabels;
33
33
  onChange: (value: string) => void;
34
34
  }
@@ -37,8 +37,8 @@ interface RecentsProps extends HoldProps {
37
37
  recents: string[];
38
38
  labels: SearchBarLabels;
39
39
  onSelect: (text: string) => void;
40
- onRemove?: (text: string) => void;
41
- onClear?: () => void;
40
+ onRemove?: ((text: string) => void) | undefined;
41
+ onClear?: (() => void) | undefined;
42
42
  }
43
43
  export declare const SearchRecents: React.FC<RecentsProps>;
44
44
  interface SuggestionsProps extends HoldProps {
@@ -1,6 +1,6 @@
1
1
  export interface UseRecentSearchesOptions {
2
2
  /** Most searches kept; the oldest drops first. Default 8. */
3
- max?: number;
3
+ max?: number | undefined;
4
4
  }
5
5
  export interface UseRecentSearchesResult {
6
6
  /** Newest first. Empty until the saved list has loaded. */
@@ -8,23 +8,23 @@ export declare const DEFAULT_SECTION_HEADER_LABELS: Readonly<SectionHeaderLabels
8
8
  export interface SectionHeaderAction {
9
9
  label: string;
10
10
  onPress: () => void;
11
- testID?: string;
11
+ testID?: string | undefined;
12
12
  }
13
13
  export interface SectionHeaderProps {
14
- children?: React.ReactNode;
14
+ children?: React.ReactNode | undefined;
15
15
  /** 'title' is the heading, 'caps' the quieter uppercase label, 'sub' a heading inside a card. */
16
- variant?: SectionHeaderVariant;
16
+ variant?: SectionHeaderVariant | undefined;
17
17
  /** Drop the room above, for the first heading of a block. */
18
- flush?: boolean;
18
+ flush?: boolean | undefined;
19
19
  /** Drop the room below, for a heading that sits tight on the content under it. flush drops the room above. */
20
- flushBottom?: boolean;
20
+ flushBottom?: boolean | undefined;
21
21
  /** Draws the required marker after the heading and announces the heading as required. */
22
- required?: boolean;
22
+ required?: boolean | undefined;
23
23
  /** A link at the end of the heading row, such as See all. */
24
- action?: SectionHeaderAction;
25
- labels?: Partial<SectionHeaderLabels>;
26
- style?: StyleProp<TextStyle>;
27
- testID?: string;
24
+ action?: SectionHeaderAction | undefined;
25
+ labels?: Partial<SectionHeaderLabels> | undefined;
26
+ style?: StyleProp<TextStyle> | undefined;
27
+ testID?: string | undefined;
28
28
  }
29
29
  /** The heading between groups of fields in a form, a wizard step or a panel. */
30
30
  export declare const SectionHeader: React.FC<SectionHeaderProps>;
@@ -40,34 +40,35 @@ export type SegmentIcon = SlotIcon<SegmentIconState>;
40
40
  export interface SegmentItem {
41
41
  label: string;
42
42
  value: SegmentValue;
43
- icon?: SegmentIcon;
43
+ icon?: SegmentIcon | undefined;
44
44
  }
45
45
  export interface SegmentedControlProps {
46
- segments: SegmentItem[];
46
+ segments: readonly SegmentItem[];
47
47
  /** A label above the control, drawn like a field label. A string also names the radiogroup when `accessibilityLabel` is not set. */
48
- label?: ReactNode;
48
+ label?: ReactNode | undefined;
49
49
  /** Helper line under the control. */
50
- helperText?: ReactNode;
50
+ helperText?: ReactNode | undefined;
51
51
  /**
52
52
  * Error line under the control, in the error colour, with the control outlined (the underline
53
53
  * look recolours its divider). Replaces `helperText`; `true` shows the error state without a
54
54
  * message.
55
55
  */
56
- error?: ReactNode;
57
- value?: SegmentValue;
58
- defaultValue?: SegmentValue;
59
- onChange?: (value: SegmentValue) => void;
60
- size?: SegmentedControlSize;
61
- fullWidth?: boolean;
62
- disabled?: boolean;
63
- tone?: SegmentedControlTone;
56
+ error?: ReactNode | undefined;
57
+ /** The selected segment's value; `null` keeps the control controlled with no segment selected. */
58
+ value?: SegmentValue | null | undefined;
59
+ defaultValue?: SegmentValue | undefined;
60
+ onChange?: ((value: SegmentValue) => void) | undefined;
61
+ size?: SegmentedControlSize | undefined;
62
+ fullWidth?: boolean | undefined;
63
+ disabled?: boolean | undefined;
64
+ tone?: SegmentedControlTone | undefined;
64
65
  /**
65
66
  * Indicator look, the same three as `Tabs`. `segmented` (default) is the
66
67
  * filled track with a sliding thumb; `underline` a bar under the selected
67
68
  * label over a hairline divider; `pills` a tinted pill behind it. The
68
69
  * height, type size and side padding per size are the same on all three.
69
70
  */
70
- variant?: SegmentedControlVariant;
71
+ variant?: SegmentedControlVariant | undefined;
71
72
  /**
72
73
  * Corner radius, a theme token or a pixel number. Rounds the segmented
73
74
  * track (the thumb nests inside with the track's corner minus the inset),
@@ -75,26 +76,26 @@ export interface SegmentedControlProps {
75
76
  * own default: `md` track with an `sm` thumb, a `pill`-radius pill, a square
76
77
  * underline.
77
78
  */
78
- radius?: SegmentedControlRadius;
79
+ radius?: SegmentedControlRadius | undefined;
79
80
  /**
80
81
  * Lines a segment label may take before it is truncated: 1 (default) or 2.
81
82
  * At 2 the segment is taller by one line, so a two-word label ("Second
82
83
  * half") wraps instead of ending in an ellipsis; a one-word label stays on
83
84
  * one line, centred.
84
85
  */
85
- labelLines?: 1 | 2;
86
+ labelLines?: 1 | 2 | undefined;
86
87
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
87
- haptic?: HapticType | false;
88
- accessibilityLabel?: string;
88
+ haptic?: HapticType | false | undefined;
89
+ accessibilityLabel?: string | undefined;
89
90
  /** The outer box. Applied last on that node, so it wins over containerStyle. */
90
- style?: StyleProp<ViewStyle>;
91
+ style?: StyleProp<ViewStyle> | undefined;
91
92
  /** Alias of style, applied before it on the same node. Use style. */
92
- containerStyle?: StyleProp<ViewStyle>;
93
- segmentStyle?: StyleProp<ViewStyle>;
94
- selectedIndicatorStyle?: StyleProp<ViewStyle>;
95
- textStyle?: StyleProp<TextStyle>;
96
- labelStyle?: StyleProp<TextStyle>;
97
- testID?: string;
93
+ containerStyle?: StyleProp<ViewStyle> | undefined;
94
+ segmentStyle?: StyleProp<ViewStyle> | undefined;
95
+ selectedIndicatorStyle?: StyleProp<ViewStyle> | undefined;
96
+ textStyle?: StyleProp<TextStyle> | undefined;
97
+ labelStyle?: StyleProp<TextStyle> | undefined;
98
+ testID?: string | undefined;
98
99
  }
99
100
  declare const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<HostInstance>>;
100
101
  export { SegmentedControl };
@@ -36,128 +36,133 @@ interface BaseSelectProps<T = SelectOption> {
36
36
  * `getOptionIcon`) so Select can read it without per-call-site mapping.
37
37
  */
38
38
  options: ReadonlyArray<T>;
39
- /** Defaults to `(o) => (o as SelectOption).label`. */
40
- getOptionLabel?: (option: T) => string;
41
- /** Defaults to `(o) => (o as SelectOption).value`. */
42
- getOptionValue?: (option: T) => SelectValue;
43
- /** Defaults to `(o) => (o as SelectOption).disabled === true`. */
44
- isOptionDisabled?: (option: T) => boolean;
45
- /** Defaults to `(o) => (o as SelectOption).description`. */
46
- getOptionDescription?: (option: T) => string | undefined;
47
- /** Defaults to `(o) => (o as SelectOption).icon`. */
48
- getOptionIcon?: (option: T) => React.ReactNode;
49
- placeholder?: string;
39
+ /** Defaults to reading the option's `label`. */
40
+ getOptionLabel?: ((option: T) => string) | undefined;
41
+ /** Defaults to reading the option's `value`. */
42
+ getOptionValue?: ((option: T) => SelectValue) | undefined;
43
+ /** Defaults to reading whether the option's `disabled` is `true`. */
44
+ isOptionDisabled?: ((option: T) => boolean) | undefined;
45
+ /** Defaults to reading the option's `description`. */
46
+ getOptionDescription?: ((option: T) => string | undefined) | undefined;
47
+ /** Defaults to reading the option's `icon`. */
48
+ getOptionIcon?: ((option: T) => React.ReactNode) | undefined;
49
+ placeholder?: string | undefined;
50
50
  /** Called with `true` when the option sheet opens and `false` when it closes. */
51
- onOpenChange?: (open: boolean) => void;
52
- searchable?: boolean;
51
+ onOpenChange?: ((open: boolean) => void) | undefined;
52
+ searchable?: boolean | undefined;
53
53
  /**
54
54
  * Haptic feedback for interactions. Pass false to disable; pass a HapticType
55
55
  * to override the default.
56
56
  */
57
- haptic?: HapticType | false;
57
+ haptic?: HapticType | false | undefined;
58
58
  /** Copy the component shows. Unset keys keep `DEFAULT_SELECT_LABELS`. */
59
- labels?: Partial<SelectLabels>;
59
+ labels?: Partial<SelectLabels> | undefined;
60
60
  /**
61
61
  * A string, or a node for a symbol with a subscript. A node label needs an
62
62
  * explicit `accessibilityLabel` (the trigger's screen-reader name); the
63
63
  * sheet's heading then comes from `title`. A string label is the sheet's
64
64
  * heading when `title` is unset.
65
65
  */
66
- label?: React.ReactNode;
66
+ label?: React.ReactNode | undefined;
67
67
  /**
68
68
  * Drawn beside the label, right after it and centred on its line (a
69
69
  * glossary info button, say). A sibling of the label text, outside the
70
70
  * trigger: it is not part of the label's accessibility text and pressing it
71
71
  * does not open the sheet.
72
72
  */
73
- help?: React.ReactNode;
73
+ help?: React.ReactNode | undefined;
74
74
  /**
75
75
  * Heading shown at the top of the options bottom-sheet. Independent of
76
76
  * `label` (the field label above the trigger) — omit it for a sheet with no
77
77
  * heading. Falls back to `label`/`placeholder` only for the sheet's a11y name.
78
78
  */
79
- title?: string;
79
+ title?: string | undefined;
80
80
  /**
81
81
  * Appends the required marker to the label. Marker text comes from
82
82
  * `theme.settings.components.field.requiredMarker` (default `'*'` in
83
83
  * `colors.danger`).
84
84
  */
85
- required?: boolean;
85
+ required?: boolean | undefined;
86
86
  /**
87
87
  * A string or a node puts the trigger in the error state and shows it below; `true` shows the
88
88
  * error state without a message.
89
89
  */
90
- error?: React.ReactNode;
90
+ error?: React.ReactNode | undefined;
91
91
  /** Hint under the field, shown while there is no `error`. A string or a node. */
92
- helperText?: React.ReactNode;
92
+ helperText?: React.ReactNode | undefined;
93
93
  /**
94
94
  * Fixed text drawn before the value: `'$'`, `'+1'`. The same prop and look
95
95
  * as Input's `prefix`, in the placeholder colour. Sits after `leftIcon`. A
96
96
  * node (a symbol with a subscript) sits in the same Text with the same gap,
97
97
  * so its base and subscript take that size and colour.
98
98
  */
99
- prefix?: React.ReactNode;
99
+ prefix?: React.ReactNode | undefined;
100
100
  /**
101
101
  * Lines the chosen value may take before it is truncated. Default `1`;
102
102
  * `0` lets a long value (or a multi selection) wrap onto as many lines as
103
103
  * it needs, and the field grows with it.
104
104
  */
105
- numberOfLines?: number;
106
- disabled?: boolean;
107
- size?: SelectSize;
105
+ numberOfLines?: number | undefined;
106
+ disabled?: boolean | undefined;
107
+ size?: SelectSize | undefined;
108
108
  /**
109
109
  * Controls the trigger field's fill + border treatment. Resolution chain:
110
110
  * caller prop → `settings.components.select.defaultVariant` → `settings.components.field.defaultVariant`
111
111
  * → 'outline'.
112
112
  */
113
- variant?: FieldVariant;
113
+ variant?: FieldVariant | undefined;
114
114
  /**
115
115
  * Slot rendered to the left of the trigger text. Mirrors Input's `leftIcon`:
116
116
  * an icon name (`leftIcon="user"`) is drawn in the field palette's icon
117
117
  * colour and size for the current state; `{ name, variant }`, a render
118
118
  * function or any node also work.
119
119
  */
120
- leftIcon?: SlotIcon;
120
+ leftIcon?: SlotIcon | undefined;
121
121
  /**
122
122
  * Replaces the built-in arrow on the right of the trigger. Rendered static —
123
123
  * the default chevron's rotate-on-open is dropped, so pass an already-animated
124
124
  * node if you want motion. Mirrors Input's `rightIcon`, same contract as `leftIcon`.
125
125
  */
126
- rightIcon?: SlotIcon;
126
+ rightIcon?: SlotIcon | undefined;
127
127
  /** Colour of the built-in chevron. Ignored when `rightIcon` is set. Default: `colors["text-subtle"]` (`text-disabled` when disabled). */
128
- chevronColor?: string;
128
+ chevronColor?: string | undefined;
129
129
  /** Size of the built-in chevron in pixels. Ignored when `rightIcon` is set. Default: the field size's `icon`. */
130
- chevronSize?: number;
130
+ chevronSize?: number | undefined;
131
131
  /** A theme radius token name for the trigger's corner. Wins over the field size's radius. */
132
- radius?: SelectRadius;
133
- accessibilityLabel?: string;
132
+ radius?: SelectRadius | undefined;
133
+ accessibilityLabel?: string | undefined;
134
134
  /** Style for the field label text above the trigger; the same prop as Input's and NumberInput's. */
135
- labelStyle?: StyleProp<TextStyle>;
136
- style?: StyleProp<ViewStyle>;
137
- triggerStyle?: StyleProp<ViewStyle>;
138
- textStyle?: StyleProp<TextStyle>;
135
+ labelStyle?: StyleProp<TextStyle> | undefined;
136
+ style?: StyleProp<ViewStyle> | undefined;
137
+ triggerStyle?: StyleProp<ViewStyle> | undefined;
138
+ textStyle?: StyleProp<TextStyle> | undefined;
139
139
  /** Style for every option row in the sheet (padding, background, …). */
140
- optionStyle?: StyleProp<ViewStyle>;
140
+ optionStyle?: StyleProp<ViewStyle> | undefined;
141
141
  /** Extra style for the selected option row — wins over `optionStyle` and the default selected fill. */
142
- selectedOptionStyle?: StyleProp<ViewStyle>;
142
+ selectedOptionStyle?: StyleProp<ViewStyle> | undefined;
143
143
  /** Style for every option's label text in the sheet. */
144
- optionTextStyle?: StyleProp<TextStyle>;
144
+ optionTextStyle?: StyleProp<TextStyle> | undefined;
145
145
  /** Extra style for the selected option's label text — wins over `optionTextStyle` and the default selected colour. */
146
- selectedOptionTextStyle?: StyleProp<TextStyle>;
147
- testID?: string;
146
+ selectedOptionTextStyle?: StyleProp<TextStyle> | undefined;
147
+ testID?: string | undefined;
148
148
  }
149
149
  export interface SingleSelectProps<T = SelectOption> extends BaseSelectProps<T> {
150
- multi?: false;
151
- value?: SelectValue;
150
+ multi?: false | undefined;
151
+ value?: SelectValue | undefined;
152
152
  onChange: (value: SelectValue) => void;
153
153
  }
154
154
  export interface MultiSelectProps<T = SelectOption> extends BaseSelectProps<T> {
155
155
  multi: true;
156
- value?: SelectValue[];
156
+ value?: SelectValue[] | undefined;
157
157
  onChange: (value: SelectValue[]) => void;
158
158
  }
159
159
  export type SelectProps<T = SelectOption> = SingleSelectProps<T> | MultiSelectProps<T>;
160
- declare const Select: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<HostInstance>>;
160
+ declare function Select<T = SelectOption>(props: SelectProps<T> & {
161
+ ref?: React.Ref<HostInstance> | undefined;
162
+ }): React.ReactElement;
163
+ declare namespace Select {
164
+ var displayName: string;
165
+ }
161
166
  export { Select };
162
167
  export default Select;
163
168
  //# sourceMappingURL=Select.d.ts.map