@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
@@ -10,36 +10,36 @@ export interface ProgressBarSegment {
10
10
  /** Fraction of the full track (0–1). */
11
11
  value: number;
12
12
  /** Explicit colour; falls back to `tone`. */
13
- color?: string;
14
- tone?: Tone;
13
+ color?: string | undefined;
14
+ tone?: Tone | undefined;
15
15
  }
16
16
  export interface ProgressBarProps {
17
- progress?: number;
17
+ progress?: number | undefined;
18
18
  /** Text or node drawn above the bar. */
19
- label?: ReactNode;
19
+ label?: ReactNode | undefined;
20
20
  /** Shows the percent (`Math.round(progress * 100)%`) at the right of the label row. Determinate only. */
21
- showPercent?: boolean;
21
+ showPercent?: boolean | undefined;
22
22
  /** Text or node at the right of the label row, in place of the percent. A string is drawn like the percent. */
23
- valueLabel?: ReactNode;
24
- indeterminate?: boolean;
25
- height?: number;
26
- radius?: number;
27
- tone?: Tone;
28
- trackColor?: string;
29
- barColor?: string;
23
+ valueLabel?: ReactNode | undefined;
24
+ indeterminate?: boolean | undefined;
25
+ height?: number | undefined;
26
+ radius?: number | undefined;
27
+ tone?: Tone | undefined;
28
+ trackColor?: string | undefined;
29
+ barColor?: string | undefined;
30
30
  /** Gradient fill for the determinate bar: a GradientDefinition or a theme gradient token name. An unknown token name throws a RangeError. */
31
- gradient?: GradientDefinition | string;
31
+ gradient?: GradientDefinition | string | undefined;
32
32
  /** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
33
- segments?: ProgressBarSegment[];
34
- animated?: boolean;
33
+ segments?: ProgressBarSegment[] | undefined;
34
+ animated?: boolean | undefined;
35
35
  /** The outer box. Applied last on that node, so it wins over containerStyle. */
36
- style?: StyleProp<ViewStyle>;
36
+ style?: StyleProp<ViewStyle> | undefined;
37
37
  /** Alias of style, applied before it on the same node. Use style. */
38
- containerStyle?: StyleProp<ViewStyle>;
39
- barStyle?: StyleProp<ViewStyle>;
40
- accessibilityLabel?: string;
41
- labels?: Partial<ProgressBarLabels>;
42
- testID?: string;
38
+ containerStyle?: StyleProp<ViewStyle> | undefined;
39
+ barStyle?: StyleProp<ViewStyle> | undefined;
40
+ accessibilityLabel?: string | undefined;
41
+ labels?: Partial<ProgressBarLabels> | undefined;
42
+ testID?: string | undefined;
43
43
  }
44
44
  declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HostInstance>>;
45
45
  export { ProgressBar };
@@ -15,36 +15,36 @@ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
15
15
  import type { Tone } from "../../types/vocabulary.js";
16
16
  export interface ProgressRingProps {
17
17
  /** Fraction of the ring filled, 0 to 1, clamped. Default `0`. */
18
- progress?: number;
18
+ progress?: number | undefined;
19
19
  /** Outer diameter in pixels. Default `48`. */
20
- size?: number;
20
+ size?: number | undefined;
21
21
  /** Stroke width of the track and the fill. Default 4. */
22
- strokeWidth?: number;
22
+ strokeWidth?: number | undefined;
23
23
  /** Fill colour when no `ringColor` is set. Default `'primary'`. */
24
- tone?: Tone;
24
+ tone?: Tone | undefined;
25
25
  /** Track colour override. Default the surface-disabled colour. */
26
- trackColor?: string;
26
+ trackColor?: string | undefined;
27
27
  /** Fill colour override; wins over `tone`. */
28
- ringColor?: string;
28
+ ringColor?: string | undefined;
29
29
  /**
30
30
  * Colour the fill by how far it has got: `danger` below the first stop,
31
31
  * `warning` to the second, `success` from there (stops default to a third
32
32
  * and two thirds). The colour rides the same animated value as the arc,
33
33
  * so it flips exactly when the sweep crosses a stop. Ignored when `ringColor` is set. Default `false`.
34
34
  */
35
- colorByProgress?: boolean;
35
+ colorByProgress?: boolean | undefined;
36
36
  /**
37
37
  * Animate progress changes. Default `true`. A reduced-motion setting on
38
38
  * the device snaps the ring to the new value regardless.
39
39
  */
40
- animated?: boolean;
40
+ animated?: boolean | undefined;
41
41
  /** Rounded ends on the fill arc. Default `true`. */
42
- rounded?: boolean;
42
+ rounded?: boolean | undefined;
43
43
  /** Content centred inside the ring. */
44
- children?: React.ReactNode;
45
- accessibilityLabel?: string;
46
- style?: StyleProp<ViewStyle>;
47
- testID?: string;
44
+ children?: React.ReactNode | undefined;
45
+ accessibilityLabel?: string | undefined;
46
+ style?: StyleProp<ViewStyle> | undefined;
47
+ testID?: string | undefined;
48
48
  }
49
49
  declare const ProgressRing: React.ForwardRefExoticComponent<ProgressRingProps & React.RefAttributes<HostInstance>>;
50
50
  export { ProgressRing };
@@ -10,41 +10,41 @@ export interface RadioGroupContextValue {
10
10
  onChange: (value: RadioValue) => void;
11
11
  disabled: boolean;
12
12
  /** The group is in error: every radio draws its empty ring in the error colour. */
13
- error?: boolean;
13
+ error?: boolean | undefined;
14
14
  }
15
15
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextValue | null>;
16
16
  export declare const useRadioGroup: () => RadioGroupContextValue | null;
17
17
  export interface RadioProps extends Omit<PressableProps, "style" | "children" | "onPress"> {
18
18
  value: RadioValue;
19
- selected?: boolean;
20
- onChange?: (value: RadioValue) => void;
21
- disabled?: boolean;
19
+ selected?: boolean | undefined;
20
+ onChange?: ((value: RadioValue) => void) | undefined;
21
+ disabled?: boolean | undefined;
22
22
  /**
23
23
  * A string, or a node for a symbol with a subscript. A node label needs an
24
24
  * explicit `accessibilityLabel` (the radio's screen-reader name).
25
25
  */
26
- label?: ReactNode;
26
+ label?: ReactNode | undefined;
27
27
  /** A muted hint directly under the label. It is the accessibility hint when set. */
28
- helperText?: string;
28
+ helperText?: string | undefined;
29
29
  /** Secondary line under the helper text. */
30
- description?: string;
30
+ description?: string | undefined;
31
31
  /**
32
32
  * Error line under the label, helper text and description; also draws the empty ring in the error colour.
33
33
  * `true` shows the error state without a message.
34
34
  */
35
- error?: string | boolean;
36
- size?: RadioSize;
37
- tone?: RadioTone;
38
- accessibilityLabel?: string;
39
- haptic?: HapticType | false;
35
+ error?: string | boolean | undefined;
36
+ size?: RadioSize | undefined;
37
+ tone?: RadioTone | undefined;
38
+ accessibilityLabel?: string | undefined;
39
+ haptic?: HapticType | false | undefined;
40
40
  /** The outer box. Applied last on that node, so it wins over containerStyle. */
41
- style?: StyleProp<ViewStyle>;
41
+ style?: StyleProp<ViewStyle> | undefined;
42
42
  /** Alias of style, applied before it on the same node. Use style. */
43
- containerStyle?: StyleProp<ViewStyle>;
44
- circleStyle?: StyleProp<ViewStyle>;
45
- dotStyle?: StyleProp<ViewStyle>;
46
- labelStyle?: StyleProp<TextStyle>;
47
- testID?: string;
43
+ containerStyle?: StyleProp<ViewStyle> | undefined;
44
+ circleStyle?: StyleProp<ViewStyle> | undefined;
45
+ dotStyle?: StyleProp<ViewStyle> | undefined;
46
+ labelStyle?: StyleProp<TextStyle> | undefined;
47
+ testID?: string | undefined;
48
48
  }
49
49
  declare const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HostInstance>>;
50
50
  export { Radio };
@@ -12,12 +12,12 @@ export type RadioDotSize = "sm" | "md" | "lg";
12
12
  export interface RadioDotProps {
13
13
  selected: boolean;
14
14
  /** Fill colour of the inner dot + selected ring. Default `colors.primary`. */
15
- color?: string;
16
- disabled?: boolean;
15
+ color?: string | undefined;
16
+ disabled?: boolean | undefined;
17
17
  /** Named size reads `theme.components.radio[size]`; a number is the outer diameter in px (inner = half). */
18
- size?: RadioDotSize | number;
19
- style?: StyleProp<ViewStyle>;
20
- dotStyle?: StyleProp<ViewStyle>;
18
+ size?: RadioDotSize | number | undefined;
19
+ style?: StyleProp<ViewStyle> | undefined;
20
+ dotStyle?: StyleProp<ViewStyle> | undefined;
21
21
  }
22
22
  export declare const RadioDot: React.FC<RadioDotProps>;
23
23
  export default RadioDot;
@@ -2,19 +2,19 @@ import type React from "react";
2
2
  import type { StyleProp, ViewStyle } from "react-native";
3
3
  import type { RadioValue } from "./Radio.js";
4
4
  export interface RadioGroupProps {
5
- value?: RadioValue;
6
- defaultValue?: RadioValue;
7
- onChange?: (value: RadioValue) => void;
5
+ value?: RadioValue | undefined;
6
+ defaultValue?: RadioValue | undefined;
7
+ onChange?: ((value: RadioValue) => void) | undefined;
8
8
  children: React.ReactNode;
9
- disabled?: boolean;
9
+ disabled?: boolean | undefined;
10
10
  /**
11
11
  * One error line under the group, and every radio's empty ring in the error colour. `true` shows
12
12
  * the error state without a message.
13
13
  */
14
- error?: string | boolean;
15
- accessibilityLabel?: string;
16
- style?: StyleProp<ViewStyle>;
17
- testID?: string;
14
+ error?: string | boolean | undefined;
15
+ accessibilityLabel?: string | undefined;
16
+ style?: StyleProp<ViewStyle> | undefined;
17
+ testID?: string | undefined;
18
18
  }
19
19
  declare const RadioGroup: React.FC<RadioGroupProps>;
20
20
  export { RadioGroup };
@@ -10,32 +10,32 @@ export interface RatingLabels {
10
10
  export declare const DEFAULT_RATING_LABELS: Readonly<RatingLabels>;
11
11
  export interface RatingProps {
12
12
  value: number;
13
- onChange?: (value: number) => void;
14
- max?: number;
15
- allowHalf?: boolean;
16
- readonly?: boolean;
17
- size?: RatingSize;
18
- tone?: RatingTone;
19
- label?: string;
13
+ onChange?: ((value: number) => void) | undefined;
14
+ max?: number | undefined;
15
+ allowHalf?: boolean | undefined;
16
+ readonly?: boolean | undefined;
17
+ size?: RatingSize | undefined;
18
+ tone?: RatingTone | undefined;
19
+ label?: string | undefined;
20
20
  /**
21
21
  * When true, renders the component as its authored skeleton placeholder shape.
22
22
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
23
23
  * when data arrives. Use this while the data driving the component is being fetched.
24
24
  */
25
- loading?: boolean;
25
+ loading?: boolean | undefined;
26
26
  /**
27
27
  * Haptic feedback for interactions. Pass false to disable; pass a HapticType
28
28
  * to override the default.
29
29
  */
30
- haptic?: HapticType | false;
31
- labels?: Partial<RatingLabels>;
32
- accessibilityLabel?: string;
30
+ haptic?: HapticType | false | undefined;
31
+ labels?: Partial<RatingLabels> | undefined;
32
+ accessibilityLabel?: string | undefined;
33
33
  /** The outer box. Applied last on that node, so it wins over containerStyle. */
34
- style?: StyleProp<ViewStyle>;
34
+ style?: StyleProp<ViewStyle> | undefined;
35
35
  /** Alias of style, applied before it on the same node. Use style. */
36
- containerStyle?: StyleProp<ViewStyle>;
37
- starContainerStyle?: StyleProp<ViewStyle>;
38
- testID?: string;
36
+ containerStyle?: StyleProp<ViewStyle> | undefined;
37
+ starContainerStyle?: StyleProp<ViewStyle> | undefined;
38
+ testID?: string | undefined;
39
39
  }
40
40
  declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HostInstance>> & {
41
41
  Skeleton: React.FC<RatingProps>;
@@ -30,31 +30,31 @@ export interface RepeaterProps<T> {
30
30
  createRow: () => T;
31
31
  renderRow: (args: RepeaterRenderArgs<T>) => React.ReactNode;
32
32
  /** Copy for the add button, the empty text, the per-row heading (`labels.row`) and the remove button. */
33
- labels?: Partial<RepeaterLabels>;
33
+ labels?: Partial<RepeaterLabels> | undefined;
34
34
  /**
35
35
  * Draws your own header above each row's content, in place of the built-in
36
36
  * one (the `labels.row` heading and the remove button), so a card-style row can
37
37
  * carry a title, a summary and its own remove control. Call `remove()` from
38
38
  * it; it does nothing when `canRemove` is false.
39
39
  */
40
- renderRowHeader?: (args: RepeaterRenderArgs<T>) => React.ReactNode;
40
+ renderRowHeader?: ((args: RepeaterRenderArgs<T>) => React.ReactNode) | undefined;
41
41
  /**
42
42
  * Called with the row's index and value when a row is removed, by the
43
43
  * built-in button or by `remove()`, immediately BEFORE `onChange` with the
44
44
  * shortened array. Use it to drop state you keep for that row. Not called
45
45
  * when the removal is refused (`minRows`, `removable`, `disabled`).
46
46
  */
47
- onRemove?: (index: number, item: T) => void;
47
+ onRemove?: ((index: number, item: T) => void) | undefined;
48
48
  /** Rows below this cannot be removed. Default 0. */
49
- minRows?: number;
49
+ minRows?: number | undefined;
50
50
  /** Add is hidden at this count. Omit for unlimited. */
51
- maxRows?: number;
51
+ maxRows?: number | undefined;
52
52
  /** Remove affordance. Default true. */
53
- removable?: boolean;
54
- disabled?: boolean;
55
- haptic?: HapticType | false;
56
- style?: StyleProp<ViewStyle>;
57
- testID?: string;
53
+ removable?: boolean | undefined;
54
+ disabled?: boolean | undefined;
55
+ haptic?: HapticType | false | undefined;
56
+ style?: StyleProp<ViewStyle> | undefined;
57
+ testID?: string | undefined;
58
58
  }
59
59
  /**
60
60
  * Add / remove / edit a list of form rows — line items, phone numbers,
@@ -6,38 +6,38 @@ export type RichTextEditorLabels = Record<MarkdownAction, string>;
6
6
  export declare const DEFAULT_RICH_TEXT_EDITOR_LABELS: Readonly<RichTextEditorLabels>;
7
7
  export interface RichTextEditorProps {
8
8
  /** The markdown source. Controlled, like any other input. */
9
- value?: string;
9
+ value?: string | undefined;
10
10
  /** Fires with the full markdown source after typing or a toolbar action. */
11
- onChangeText?: (text: string) => void;
12
- placeholder?: string;
11
+ onChangeText?: ((text: string) => void) | undefined;
12
+ placeholder?: string | undefined;
13
13
  /**
14
14
  * Which toolbar actions to show, in the order given. Defaults to the full
15
15
  * set the paired `<Markdown>` renderer can read.
16
16
  */
17
- actions?: MarkdownAction[];
17
+ actions?: MarkdownAction[] | undefined;
18
18
  /** Blocks typing and every toolbar action, and dims the editor. */
19
- disabled?: boolean;
19
+ disabled?: boolean | undefined;
20
20
  /**
21
21
  * When true, renders the component as its authored skeleton placeholder shape.
22
22
  * The placeholder mirrors the real layout's footprint so the UI doesn't reflow
23
23
  * when data arrives. Use this while the data driving the component is being fetched.
24
24
  */
25
- loading?: boolean;
25
+ loading?: boolean | undefined;
26
26
  /** Minimum height of the text area in pixels. Default 160. */
27
- minHeight?: number;
28
- autoFocus?: boolean;
29
- accessibilityLabel?: string;
27
+ minHeight?: number | undefined;
28
+ autoFocus?: boolean | undefined;
29
+ accessibilityLabel?: string | undefined;
30
30
  /** Haptic feedback for toolbar presses. Pass false to disable; pass a HapticType to override. */
31
- haptic?: HapticType | false;
31
+ haptic?: HapticType | false | undefined;
32
32
  /** Spoken and tooltip names of the toolbar actions. Merged over the English defaults. */
33
- labels?: Partial<RichTextEditorLabels>;
33
+ labels?: Partial<RichTextEditorLabels> | undefined;
34
34
  /** Style for the outer bordered box. */
35
- style?: StyleProp<ViewStyle>;
35
+ style?: StyleProp<ViewStyle> | undefined;
36
36
  /** Style for the toolbar row. */
37
- toolbarStyle?: StyleProp<ViewStyle>;
37
+ toolbarStyle?: StyleProp<ViewStyle> | undefined;
38
38
  /** Style for the multiline TextInput. */
39
- inputStyle?: StyleProp<TextStyle>;
40
- testID?: string;
39
+ inputStyle?: StyleProp<TextStyle> | undefined;
40
+ testID?: string | undefined;
41
41
  }
42
42
  /**
43
43
  * A markdown editor: a themed multiline field plus a toolbar that wraps the
@@ -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/index.js";
6
6
  import type { EmptyStateProps } from "../EmptyState/index.js";
7
7
  import type { FloatingActionButtonPosition } from "../FloatingActionButton/index.js";
8
8
  import type { SafeAreaEdge } from "../KeyboardAwareScrollView/KeyboardAwareScrollView.js";
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.js";
1
+ export type { ScreenListProps, ScreenProps } from "./Screen.js";
2
2
  export { Screen } from "./Screen.js";
3
3
  //# sourceMappingURL=index.d.ts.map