@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
@@ -45,51 +45,51 @@ export interface InputAction {
45
45
  label: string;
46
46
  onPress: () => void;
47
47
  /** Shows the Button's spinner and blocks presses. */
48
- loading?: boolean;
48
+ loading?: boolean | undefined;
49
49
  /** Blocks presses. The button is also disabled whenever the field is. */
50
- disabled?: boolean;
50
+ disabled?: boolean | undefined;
51
51
  /** Button variant. Default `'outline'`. */
52
- variant?: ButtonVariant;
52
+ variant?: ButtonVariant | undefined;
53
53
  /** Button tone. Default `'primary'`. */
54
- tone?: ButtonTone;
54
+ tone?: ButtonTone | undefined;
55
55
  /** Icon before the button label; the Button's own `leftIcon` contract. */
56
- icon?: SlotIcon;
57
- testID?: string;
56
+ icon?: SlotIcon | undefined;
57
+ testID?: string | undefined;
58
58
  }
59
59
  export interface InputProps extends Omit<TextInputProps, "style"> {
60
- keyboardType?: InputKeyboardType;
60
+ keyboardType?: InputKeyboardType | undefined;
61
61
  /**
62
62
  * A string, or a node for a symbol with a subscript. A node label needs an
63
63
  * explicit `accessibilityLabel` (the field's screen-reader name), the same
64
64
  * rule as ListItem's node title.
65
65
  */
66
- label?: React.ReactNode;
66
+ label?: React.ReactNode | undefined;
67
67
  /**
68
68
  * Drawn beside the static label, right after it and centred on its line
69
69
  * (a glossary info button, say). A sibling of the label text: it is not part
70
70
  * of the label's accessibility text, never shrinks it, and pressing it does
71
71
  * not focus the field. Only drawn with the static label (`labelMode="top"`).
72
72
  */
73
- help?: React.ReactNode;
74
- placeholder?: string;
75
- value?: string;
76
- onChangeText?: (text: string) => void;
73
+ help?: React.ReactNode | undefined;
74
+ placeholder?: string | undefined;
75
+ value?: string | undefined;
76
+ onChangeText?: ((text: string) => void) | undefined;
77
77
  /**
78
78
  * A string or a node puts the field in the error state and replaces the helper; `true` shows the
79
79
  * error state without a message.
80
80
  */
81
- error?: React.ReactNode;
81
+ error?: React.ReactNode | undefined;
82
82
  /** A string or a node. */
83
- helperText?: React.ReactNode;
83
+ helperText?: React.ReactNode | undefined;
84
84
  /** See {@link InputType}. Default `'input'`. */
85
- type?: InputType;
85
+ type?: InputType | undefined;
86
86
  /** Setting this alone also puts the field in password mode (same as `type="password"`). */
87
- showPasswordToggle?: boolean;
87
+ showPasswordToggle?: boolean | undefined;
88
88
  /** React Native's own prop; masks the value without the eye toggle. `type="password"` is the usual way. */
89
- secureTextEntry?: boolean;
90
- disabled?: boolean;
89
+ secureTextEntry?: boolean | undefined;
90
+ disabled?: boolean | undefined;
91
91
  /** React Native's own prop; same as `type="textarea"`. */
92
- multiline?: boolean;
92
+ multiline?: boolean | undefined;
93
93
  /**
94
94
  * Leading slot. The easy form is an icon name, `leftIcon="user"`: the
95
95
  * field draws that AppIcon in the palette's colour for its state (grey at
@@ -99,9 +99,9 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
99
99
  * any node drawn as is. A leading icon also gets the spec's hairline
100
100
  * divider between it and the text.
101
101
  */
102
- leftIcon?: InputSlotIcon;
102
+ leftIcon?: InputSlotIcon | undefined;
103
103
  /** Trailing slot; same contract as `leftIcon`. */
104
- rightIcon?: InputSlotIcon;
104
+ rightIcon?: InputSlotIcon | undefined;
105
105
  /**
106
106
  * A fixed unit drawn after the value in the trailing slot — `'km'`, `'%'`,
107
107
  * `'/month'`. Same prop and same look as NumberInput's `unit`: the field's
@@ -109,9 +109,9 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
109
109
  * rather than of what was typed. Sits before `rightIcon` when both are set;
110
110
  * the password eye keeps the slot to itself.
111
111
  */
112
- unit?: string;
112
+ unit?: string | undefined;
113
113
  /** Style applied to the unit text. */
114
- unitStyle?: StyleProp<TextStyle>;
114
+ unitStyle?: StyleProp<TextStyle> | undefined;
115
115
  /**
116
116
  * Fixed text drawn before the value in the leading slot: `'₹'`, `'+91'`,
117
117
  * `'https://'`. The mirror of `unit`: the field's font size in the
@@ -120,20 +120,20 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
120
120
  * a subscript) sits in the same Text on the same line with the same gap, so
121
121
  * its base and subscript take that size and ink, and `prefixStyle` too.
122
122
  */
123
- prefix?: React.ReactNode;
123
+ prefix?: React.ReactNode | undefined;
124
124
  /** Style applied to the prefix text. */
125
- prefixStyle?: StyleProp<TextStyle>;
125
+ prefixStyle?: StyleProp<TextStyle> | undefined;
126
126
  /**
127
127
  * Shows the value in normal ink and lets it be selected and copied, but not
128
128
  * edited. Unlike `disabled`, the field is not dimmed and stays focusable.
129
129
  */
130
- readOnly?: boolean;
130
+ readOnly?: boolean | undefined;
131
131
  /** A button beside the box; see {@link InputAction}. */
132
- action?: InputAction;
132
+ action?: InputAction | undefined;
133
133
  /** Style applied to the action button. */
134
- actionStyle?: StyleProp<ViewStyle>;
135
- size?: InputSize;
136
- variant?: InputVariant;
134
+ actionStyle?: StyleProp<ViewStyle> | undefined;
135
+ size?: InputSize | undefined;
136
+ variant?: InputVariant | undefined;
137
137
  /**
138
138
  * - `'top'` (default): the design spec's static label, 12px semibold above
139
139
  * the field, permanently visible.
@@ -142,43 +142,43 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
142
142
  *
143
143
  * Theme setting: `theme.settings.components.input.defaultLabelMode`.
144
144
  */
145
- labelMode?: InputLabelMode;
146
- required?: boolean;
147
- maxLength?: number;
145
+ labelMode?: InputLabelMode | undefined;
146
+ required?: boolean | undefined;
147
+ maxLength?: number | undefined;
148
148
  /**
149
149
  * Render the "n / maxLength" character counter below the field. Only
150
150
  * applies when `maxLength` is set and `value` is controlled. Default `true`.
151
151
  * Set `false` for fields that cap input without advertising it (amounts,
152
152
  * codes).
153
153
  */
154
- showCounter?: boolean;
154
+ showCounter?: boolean | undefined;
155
155
  /**
156
156
  * Format the raw `value` for display. Common uses: phone-number formatting
157
157
  * ("5551234567" → "(555) 123-4567"), currency, postal codes, masked IDs.
158
158
  * The TextInput shows `format(value)`; user input is passed to `parse` (or
159
159
  * left raw) before reaching `onChangeText`.
160
160
  */
161
- format?: (raw: string) => string;
161
+ format?: ((raw: string) => string) | undefined;
162
162
  /**
163
163
  * Reverse of `format` — strips the formatted display back to the canonical
164
164
  * value the consumer wants in state. If omitted, defaults to identity.
165
165
  */
166
- parse?: (formatted: string) => string;
167
- style?: StyleProp<ViewStyle>;
166
+ parse?: ((formatted: string) => string) | undefined;
167
+ style?: StyleProp<ViewStyle> | undefined;
168
168
  /** Style applied to the bordered field wrapper (the bit you'd colour or pad). Distinct from `style`, which targets the outermost container. */
169
- containerStyle?: StyleProp<ViewStyle>;
170
- inputStyle?: StyleProp<TextStyle>;
171
- labelStyle?: StyleProp<TextStyle>;
169
+ containerStyle?: StyleProp<ViewStyle> | undefined;
170
+ inputStyle?: StyleProp<TextStyle> | undefined;
171
+ labelStyle?: StyleProp<TextStyle> | undefined;
172
172
  /** Style applied to the helper/error text below the field. */
173
- messageStyle?: StyleProp<TextStyle>;
173
+ messageStyle?: StyleProp<TextStyle> | undefined;
174
174
  /** A theme radius name (`sm`, `md`, `lg`, `xl`, `pill`) for the field's corner. Wins over the field size's radius. */
175
- radius?: Exclude<RadiusName, "none">;
176
- onFocus?: (e: FocusEvent) => void;
177
- onBlur?: (e: BlurEvent) => void;
178
- accessibilityLabel?: string;
175
+ radius?: Exclude<RadiusName, "none"> | undefined;
176
+ onFocus?: ((e: FocusEvent) => void) | undefined;
177
+ onBlur?: ((e: BlurEvent) => void) | undefined;
178
+ accessibilityLabel?: string | undefined;
179
179
  /** Overrides for the password toggle's screen-reader names; merged over DEFAULT_INPUT_LABELS. */
180
- labels?: Partial<InputLabels>;
181
- testID?: string;
180
+ labels?: Partial<InputLabels> | undefined;
181
+ testID?: string | undefined;
182
182
  }
183
183
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<TextInputInstance>>;
184
184
  export { Input };
@@ -1,14 +1,14 @@
1
1
  import type { KeyboardAwareScrollViewProps as ControllerScrollViewProps, KeyboardAwareScrollViewRef } from "react-native-keyboard-controller";
2
2
  export type SafeAreaEdge = "top" | "bottom" | "left" | "right";
3
3
  export type { KeyboardAwareScrollViewRef };
4
- export interface KeyboardAwareScrollViewProps extends ControllerScrollViewProps {
4
+ export interface KeyboardAwareScrollViewProps extends Omit<ControllerScrollViewProps, "bottomOffset" | "safeAreaEdges" | "refreshing" | "onRefresh" | "dismissOnTapOutside"> {
5
5
  /** Gap kept between the focused field and the top of the keyboard. Default 24. */
6
- bottomOffset?: number;
6
+ bottomOffset?: number | undefined;
7
7
  /** Safe-area edges to pad. Default ['bottom']. */
8
- safeAreaEdges?: SafeAreaEdge[];
8
+ safeAreaEdges?: SafeAreaEdge[] | undefined;
9
9
  /** Standard RefreshControl pass-through convenience. Ignored when `refreshControl` is set. */
10
- refreshing?: boolean;
11
- onRefresh?: () => void;
10
+ refreshing?: boolean | undefined;
11
+ onRefresh?: (() => void) | undefined;
12
12
  /**
13
13
  * A tap on empty space inside the content closes the keyboard and blurs the
14
14
  * focused field. Taps that a field, button or any other pressable claims are
@@ -17,7 +17,7 @@ export interface KeyboardAwareScrollViewProps extends ControllerScrollViewProps
17
17
  * ScrollView's own tap-out dismissal never fires because React Native sees no
18
18
  * keyboard metrics.
19
19
  */
20
- dismissOnTapOutside?: boolean;
20
+ dismissOnTapOutside?: boolean | undefined;
21
21
  }
22
22
  /**
23
23
  * react-native-keyboard-controller's `KeyboardAwareScrollView` with the
@@ -28,7 +28,7 @@ export interface KeyboardAwareScrollViewProps extends ControllerScrollViewProps
28
28
  * Needs the app's
29
29
  * `KeyboardProvider` at the root.
30
30
  */
31
- declare const KeyboardAwareScrollView: import("react").ForwardRefExoticComponent<KeyboardAwareScrollViewProps & import("react").RefAttributes<never>>;
31
+ declare const KeyboardAwareScrollView: import("react").ForwardRefExoticComponent<KeyboardAwareScrollViewProps & import("react").RefAttributes<KeyboardAwareScrollViewRef>>;
32
32
  export { KeyboardAwareScrollView };
33
33
  export default KeyboardAwareScrollView;
34
34
  //# sourceMappingURL=KeyboardAwareScrollView.d.ts.map
@@ -8,19 +8,19 @@ export interface KeyboardToolbarLabels {
8
8
  export declare const DEFAULT_KEYBOARD_TOOLBAR_LABELS: KeyboardToolbarLabels;
9
9
  export interface KeyboardToolbarProps {
10
10
  /** Show the prev/next chevrons. Default true. */
11
- showNavigation?: boolean;
11
+ showNavigation?: boolean | undefined;
12
12
  /** Override the dismiss action. Default: `KeyboardController.dismiss()`. */
13
- onDone?: () => void;
13
+ onDone?: (() => void) | undefined;
14
14
  /** Override "next field". Default: the next text input on screen (`KeyboardController.setFocusTo`). */
15
- onNext?: () => void;
15
+ onNext?: (() => void) | undefined;
16
16
  /** Override "previous field"; the same default as `onNext`, backwards. */
17
- onPrev?: () => void;
17
+ onPrev?: (() => void) | undefined;
18
18
  /** Overrides for the Done, previous and next labels. Missing keys keep the English defaults. */
19
- labels?: Partial<KeyboardToolbarLabels>;
19
+ labels?: Partial<KeyboardToolbarLabels> | undefined;
20
20
  /** Custom content rendered between the nav chevrons and the Done button. */
21
- leading?: React.ReactNode;
22
- style?: StyleProp<ViewStyle>;
23
- testID?: string;
21
+ leading?: React.ReactNode | undefined;
22
+ style?: StyleProp<ViewStyle> | undefined;
23
+ testID?: string | undefined;
24
24
  }
25
25
  /**
26
26
  * An accessory bar that rides on top of the keyboard. Shows a Done (dismiss)
@@ -20,12 +20,12 @@ export interface ListItemAction {
20
20
  label: string;
21
21
  onPress: () => void;
22
22
  /** Default `'outline'`. */
23
- variant?: ButtonProps["variant"];
24
- tone?: ButtonProps["tone"];
23
+ variant?: ButtonProps["variant"] | undefined;
24
+ tone?: ButtonProps["tone"] | undefined;
25
25
  /** Icon before the label, any `SlotIcon`. */
26
- icon?: SlotIcon;
27
- disabled?: boolean;
28
- testID?: string;
26
+ icon?: SlotIcon | undefined;
27
+ disabled?: boolean | undefined;
28
+ testID?: string | undefined;
29
29
  }
30
30
  export interface ListItemProps {
31
31
  /**
@@ -38,35 +38,35 @@ export interface ListItemProps {
38
38
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
39
39
  * when data arrives. Use this while the data driving the component is being fetched.
40
40
  */
41
- loading?: boolean;
41
+ loading?: boolean | undefined;
42
42
  /** Text in the subtitle style, or any node drawn as is. */
43
- subtitle?: React.ReactNode;
43
+ subtitle?: React.ReactNode | undefined;
44
44
  /** Text in the description style, clamped to 2 lines, or any node drawn as is. `descriptionStyle` and the clamp apply to text only. */
45
- description?: React.ReactNode;
45
+ description?: React.ReactNode | undefined;
46
46
  /**
47
47
  * Content drawn in the text column under the description, before a `trailing`
48
48
  * slot placed below. Inside the row's press target.
49
49
  */
50
- children?: React.ReactNode;
50
+ children?: React.ReactNode | undefined;
51
51
  /** Lines a text title may take before it is truncated. Default 1, or 2 in a menu row; 0 for no limit. */
52
- titleLines?: number;
52
+ titleLines?: number | undefined;
53
53
  /** Lines a text subtitle may take before it is truncated. Default 1; 0 for no limit. */
54
- subtitleLines?: number;
55
- leading?: React.ReactNode;
54
+ subtitleLines?: number | undefined;
55
+ leading?: React.ReactNode | undefined;
56
56
  /**
57
57
  * A leading icon in a tinted circle (an IconBadge sized to the row). Drawn in
58
58
  * the leading slot when `leading` is not given; `leading` wins when both are set.
59
59
  */
60
- icon?: SlotIcon;
60
+ icon?: SlotIcon | undefined;
61
61
  /** Tone of the `icon` circle. Default `'primary'`. */
62
- iconTone?: Tone;
63
- trailing?: React.ReactNode;
62
+ iconTone?: Tone | undefined;
63
+ trailing?: React.ReactNode | undefined;
64
64
  /**
65
65
  * Where the `trailing` slot is drawn. Default `'auto'`: beside the text, and
66
66
  * under the subtitle when the font scale is above 1.2. The chevron always
67
67
  * stays at the side.
68
68
  */
69
- rightPlacement?: ListItemRightPlacement;
69
+ rightPlacement?: ListItemRightPlacement | undefined;
70
70
  /**
71
71
  * Selection mode. The whole row becomes one checkbox (role `checkbox`, with
72
72
  * its `checked` state announced) and the box is drawn in the leading slot,
@@ -74,39 +74,39 @@ export interface ListItemProps {
74
74
  * `onPress` is not used. The box is a drawing, not a control, so nothing
75
75
  * nests inside the row's press target.
76
76
  */
77
- selectable?: boolean;
77
+ selectable?: boolean | undefined;
78
78
  /** Whether the row is checked. Controlled: update it from `onCheckedChange`. Used with `selectable`, and with `variant="menu"`, where it is announced. */
79
- checked?: boolean;
79
+ checked?: boolean | undefined;
80
80
  /** Called with the next value when a `selectable` row is pressed. */
81
- onCheckedChange?: (checked: boolean) => void;
81
+ onCheckedChange?: ((checked: boolean) => void) | undefined;
82
82
  /**
83
83
  * A row of buttons under the item: a node drawn as is, or an array of
84
84
  * `ListItemAction` drawn as small Buttons. They sit outside the row's press
85
85
  * target, so pressing one never fires `onPress`.
86
86
  */
87
- actions?: React.ReactNode | ListItemAction[];
88
- onPress?: (event: GestureResponderEvent) => void;
87
+ actions?: React.ReactNode | ListItemAction[] | undefined;
88
+ onPress?: ((event: GestureResponderEvent) => void) | undefined;
89
89
  /** Haptic feedback for interactions. Off unless a HapticType is passed. */
90
- haptic?: HapticType | false;
91
- selected?: boolean;
90
+ haptic?: HapticType | false | undefined;
91
+ selected?: boolean | undefined;
92
92
  /**
93
93
  * Open or closed state of a disclosure row (one that shows or hides content
94
94
  * below it). Announced to screen readers as expanded or collapsed; unset for
95
95
  * a row that discloses nothing.
96
96
  */
97
- expanded?: boolean;
98
- disabled?: boolean;
99
- size?: ListItemSize;
97
+ expanded?: boolean | undefined;
98
+ disabled?: boolean | undefined;
99
+ size?: ListItemSize | undefined;
100
100
  /** Default `'list'`. See {@link ListItemVariant}. */
101
- variant?: ListItemVariant;
101
+ variant?: ListItemVariant | undefined;
102
102
  /** Called when the row takes keyboard or screen reader focus. */
103
- onFocus?: PressableProps["onFocus"];
104
- divider?: boolean;
105
- chevron?: boolean;
103
+ onFocus?: PressableProps["onFocus"] | undefined;
104
+ divider?: boolean | undefined;
105
+ chevron?: boolean | undefined;
106
106
  /** Optional swipe-from-left actions. Wraps the row in a Swipeable when provided. */
107
- leftActions?: SwipeableAction[];
107
+ leftActions?: SwipeableAction[] | undefined;
108
108
  /** Optional swipe-from-right actions. Wraps the row in a Swipeable when provided. */
109
- rightActions?: SwipeableAction[];
109
+ rightActions?: SwipeableAction[] | undefined;
110
110
  /**
111
111
  * A long-press menu. Long press (right-click or Shift+F10 on the web) lifts
112
112
  * the row over a dimmed screen with the menu beside it, and every item is
@@ -114,19 +114,19 @@ export interface ListItemProps {
114
114
  * unless `unavailable: 'disable'`. Keep each action reachable elsewhere too.
115
115
  * A disabled row has no menu.
116
116
  */
117
- contextMenu?: ContextMenuConfig;
118
- accessibilityLabel?: string;
119
- accessibilityHint?: string;
120
- style?: StyleProp<ViewStyle>;
121
- containerStyle?: StyleProp<ViewStyle>;
122
- titleStyle?: StyleProp<TextStyle>;
123
- subtitleStyle?: StyleProp<TextStyle>;
124
- descriptionStyle?: StyleProp<TextStyle>;
125
- leftSlotStyle?: StyleProp<ViewStyle>;
126
- rightSlotStyle?: StyleProp<ViewStyle>;
127
- testID?: string;
117
+ contextMenu?: ContextMenuConfig | undefined;
118
+ accessibilityLabel?: string | undefined;
119
+ accessibilityHint?: string | undefined;
120
+ style?: StyleProp<ViewStyle> | undefined;
121
+ containerStyle?: StyleProp<ViewStyle> | undefined;
122
+ titleStyle?: StyleProp<TextStyle> | undefined;
123
+ subtitleStyle?: StyleProp<TextStyle> | undefined;
124
+ descriptionStyle?: StyleProp<TextStyle> | undefined;
125
+ leftSlotStyle?: StyleProp<ViewStyle> | undefined;
126
+ rightSlotStyle?: StyleProp<ViewStyle> | undefined;
127
+ testID?: string | undefined;
128
128
  }
129
- declare const ListItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HostInstance>>> & {
129
+ declare const ListItem: React.NamedExoticComponent<ListItemProps & React.RefAttributes<HostInstance>> & {
130
130
  Skeleton: React.FC<ListItemProps>;
131
131
  };
132
132
  export { ListItem };
@@ -3,16 +3,16 @@ import type { CardVariant } from "../Card/index.js";
3
3
  import type { SectionHeaderAction } from "../SectionHeader/index.js";
4
4
  export interface ListSectionProps {
5
5
  /** The heading above the card, drawn through SectionHeader. */
6
- title?: string;
6
+ title?: string | undefined;
7
7
  /** A link on the heading row, such as See all. It shows only with a title. */
8
- action?: SectionHeaderAction;
8
+ action?: SectionHeaderAction | undefined;
9
9
  /** A caption below the card. */
10
- footer?: string;
10
+ footer?: string | undefined;
11
11
  /** The card's surface. Default 'outline'. */
12
- variant?: CardVariant;
13
- testID?: string;
12
+ variant?: CardVariant | undefined;
13
+ testID?: string | undefined;
14
14
  /** The rows, each a ListItem. A divider is drawn between consecutive rows. */
15
- children?: React.ReactNode;
15
+ children?: React.ReactNode | undefined;
16
16
  }
17
17
  /** A titled group of list rows in one card, with a divider between the rows. */
18
18
  export declare const ListSection: React.FC<ListSectionProps>;
@@ -1,10 +1,15 @@
1
1
  import type React from "react";
2
+ declare const show: (message?: string) => void;
3
+ declare const hide: () => void;
4
+ declare const reset: () => void;
5
+ declare const isVisible: () => boolean;
6
+ declare const wrap: <T>(work: Promise<T> | (() => Promise<T>), message?: string) => Promise<T>;
2
7
  export declare const loader: {
3
- show: (message?: string) => void;
4
- hide: () => void;
5
- wrap: <T>(work: Promise<T> | (() => Promise<T>), message?: string) => Promise<T>;
6
- isVisible: () => boolean;
7
- reset: () => void;
8
+ show: typeof show;
9
+ hide: typeof hide;
10
+ wrap: typeof wrap;
11
+ isVisible: typeof isVisible;
12
+ reset: typeof reset;
8
13
  };
9
14
  export declare const useLoader: () => typeof loader;
10
15
  export interface LoaderOverlayLabels {
@@ -17,16 +22,17 @@ export interface LoaderOverlayProps {
17
22
  * Replaces the default themed spinner. Lets an app supply a Lottie or brand
18
23
  * animation without the library taking that dependency.
19
24
  */
20
- renderIndicator?: (message?: string) => React.ReactNode;
25
+ renderIndicator?: ((message?: string) => React.ReactNode) | undefined;
21
26
  /** Overlay dim colour override; defaults to a themed scrim. */
22
- backdropColor?: string;
27
+ backdropColor?: string | undefined;
23
28
  /** Delay before the overlay actually appears, so a fast request never flashes it. Default 150ms. */
24
- showDelayMs?: number;
29
+ showDelayMs?: number | undefined;
25
30
  /** Once visible, stay visible at least this long, so it never flickers. Default 400ms. */
26
- minVisibleMs?: number;
31
+ minVisibleMs?: number | undefined;
27
32
  /** Copy the component draws itself; a partial object overrides only the keys given. */
28
- labels?: Partial<LoaderOverlayLabels>;
29
- testID?: string;
33
+ labels?: Partial<LoaderOverlayLabels> | undefined;
34
+ testID?: string | undefined;
30
35
  }
31
36
  export declare const LoaderOverlay: React.FC<LoaderOverlayProps>;
37
+ export {};
32
38
  //# sourceMappingURL=LoaderOverlay.d.ts.map
@@ -3,37 +3,37 @@ import type React from "react";
3
3
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
4
4
  export interface MarkdownProps<T = string> {
5
5
  /** The markdown source. An empty or missing string renders nothing. */
6
- children?: string;
6
+ children?: string | undefined;
7
7
  /** `web` makes web and contact addresses pressable; `app` makes the links `resolveLink` maps pressable; `page` also asks `resolveLink` about every address and opens only relative addresses and addresses on the site's own origin. Any other scheme is plain text. */
8
- links?: MarkdownLinks;
8
+ links?: MarkdownLinks | undefined;
9
9
  /** `outline` sizes each heading by its level; `text` draws every heading as bold body text. */
10
- headings?: MarkdownHeadings;
10
+ headings?: MarkdownHeadings | undefined;
11
11
  /** Splits plain text into runs; a sub or sup run draws raised or lowered. Without it, text draws as written. Code spans and blocks are never split. */
12
- figureText?: (text: string) => FigureRun[];
12
+ figureText?: ((text: string) => FigureRun[]) | undefined;
13
13
  /** Maps an app link's address to what `onAppLinkPress` receives. Null leaves the link as plain text. */
14
- resolveLink?: (href: string) => T | null | undefined;
14
+ resolveLink?: ((href: string) => T | null | undefined) | undefined;
15
15
  /** Says whether a `[inner]` run is a citation the host can open. Without it, no run is a citation. */
16
- isCitation?: (inner: string) => boolean;
16
+ isCitation?: ((inner: string) => boolean) | undefined;
17
17
  /** Opens a citation by its inner text. Without it, citations show as plain primary text. */
18
- onOpenCitation?: (citation: string) => void;
18
+ onOpenCitation?: ((citation: string) => void) | undefined;
19
19
  /** Opens an app link. Without it, app links show as plain text. */
20
- onAppLinkPress?: (target: T) => void;
20
+ onAppLinkPress?: ((target: T) => void) | undefined;
21
21
  /** Called instead of Linking.openURL when a web or contact link is pressed. */
22
- onLinkPress?: (href: string) => void;
22
+ onLinkPress?: ((href: string) => void) | undefined;
23
23
  /** Opens a relative link, such as `/pricing`, in the host. Without it, relative links show as plain text. */
24
- onPageLinkPress?: (href: string) => void;
24
+ onPageLinkPress?: ((href: string) => void) | undefined;
25
25
  /**
26
26
  * When true, renders the component as its authored skeleton placeholder shape.
27
27
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
28
28
  * when data arrives. Use this while the data driving the component is being fetched.
29
29
  */
30
- loading?: boolean;
31
- style?: StyleProp<ViewStyle>;
30
+ loading?: boolean | undefined;
31
+ style?: StyleProp<ViewStyle> | undefined;
32
32
  /** Applied to every text block, so a caller can set the base size or colour. */
33
- textStyle?: StyleProp<TextStyle>;
33
+ textStyle?: StyleProp<TextStyle> | undefined;
34
34
  /** Makes every text block selectable, so a person can select and copy it. List markers are not selectable; a code block always is. */
35
- selectable?: boolean;
36
- testID?: string;
35
+ selectable?: boolean | undefined;
36
+ testID?: string | undefined;
37
37
  }
38
38
  /**
39
39
  * Renders the shared markdown grammar with the theme's own type scale and colours,
@@ -1,7 +1,12 @@
1
1
  import React from "react";
2
+ import type { GestureResponderEvent } from "react-native";
2
3
  import type { HapticType } from "../../utils/hapticUtils.js";
3
4
  import type { PlacementPreference } from "../../utils/placement.js";
4
5
  import type { MenuItem, MenuItems, MenuLabels, MenuPresentation, MenuUnavailable } from "./menuModel.js";
6
+ interface MenuTriggerProps {
7
+ onPress?: ((event: GestureResponderEvent) => void) | undefined;
8
+ ref?: React.Ref<unknown> | undefined;
9
+ }
5
10
  export interface MenuProps {
6
11
  /** A flat list, or a list of up to three groups split by dividers. */
7
12
  items: MenuItems;
@@ -9,28 +14,28 @@ export interface MenuProps {
9
14
  * The element that opens the menu on press, usually an `IconButton` or a
10
15
  * `Button`. Its own `onPress` still runs first.
11
16
  */
12
- trigger: React.ReactElement;
17
+ trigger: React.ReactElement<MenuTriggerProps>;
13
18
  /** A short heading over the items; also the menu's accessible name. */
14
- title?: string;
19
+ title?: string | undefined;
15
20
  /** Up to three icon actions in a row above the list (the iOS "medium" layout). */
16
- topActions?: ReadonlyArray<MenuItem>;
21
+ topActions?: ReadonlyArray<MenuItem> | undefined;
17
22
  /** Preferred side of the trigger; flips when the other side has the room. Default `'bottom'`. */
18
- placement?: PlacementPreference;
23
+ placement?: PlacementPreference | undefined;
19
24
  /** Default `'auto'`: a sheet on a phone past seven items or with a description. */
20
- presentation?: MenuPresentation;
25
+ presentation?: MenuPresentation | undefined;
21
26
  /** Default `'disable'`: unavailable items stay visible, dimmed and focusable. */
22
- unavailable?: MenuUnavailable;
27
+ unavailable?: MenuUnavailable | undefined;
23
28
  /** Controlled open state. */
24
- open?: boolean;
25
- onOpenChange?: (open: boolean) => void;
29
+ open?: boolean | undefined;
30
+ onOpenChange?: ((open: boolean) => void) | undefined;
26
31
  /** Haptic on choosing an item. Pass false to disable; a HapticType to override. */
27
- haptic?: HapticType | false;
32
+ haptic?: HapticType | false | undefined;
28
33
  /** Accessible name of the menu when there is no `title`. */
29
- accessibilityLabel?: string;
34
+ accessibilityLabel?: string | undefined;
30
35
  /** Accessible names of the tap-outside area (`close`, default 'Close menu') and of a submenu's Back row (`back`, default 'Back'). */
31
- labels?: Partial<MenuLabels>;
36
+ labels?: Partial<MenuLabels> | undefined;
32
37
  /** On the trigger wrapper; the open menu takes `<testID>-menu` and its scrim `<testID>-scrim`. */
33
- testID?: string;
38
+ testID?: string | undefined;
34
39
  }
35
40
  /**
36
41
  * A menu opened from a button, anchored below it (above when there is no
@@ -8,22 +8,22 @@ export interface MenuSurfaceProps {
8
8
  /** The trigger or the long-pressed view, in window coordinates. */
9
9
  anchor: LayoutRectangle | null;
10
10
  items: MenuItems;
11
- title?: string;
12
- topActions?: ReadonlyArray<MenuItem>;
11
+ title?: string | undefined;
12
+ topActions?: ReadonlyArray<MenuItem> | undefined;
13
13
  placement: PlacementPreference;
14
14
  presentation: MenuPresentation;
15
15
  unavailable: MenuUnavailable;
16
16
  /** A long-press menu: a dimmed scrim, the preview lifted, items reversed when it opens above. */
17
- context?: boolean;
17
+ context?: boolean | undefined;
18
18
  /** Drawn over the anchor while a context menu is open. */
19
- preview?: React.ReactNode;
19
+ preview?: React.ReactNode | undefined;
20
20
  onClose: () => void;
21
21
  /** Where focus goes back to when the menu closes without running an item. */
22
- restoreFocusTo?: () => unknown;
23
- haptic?: HapticType | false;
24
- accessibilityLabel?: string;
22
+ restoreFocusTo?: (() => unknown) | undefined;
23
+ haptic?: HapticType | false | undefined;
24
+ accessibilityLabel?: string | undefined;
25
25
  labels: MenuLabels;
26
- testID?: string;
26
+ testID?: string | undefined;
27
27
  }
28
28
  export declare const MenuSurface: React.FC<MenuSurfaceProps>;
29
29
  //# sourceMappingURL=MenuSurface.d.ts.map