@webority/mobile-ui 0.146.2 → 0.148.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 (294) hide show
  1. package/dist/canvas-kit/kit.js +4527 -4326
  2. package/dist/canvas-kit/manifest.json +8 -1
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  5. package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
  6. package/lib/commonjs/components/AuthedImage/imageStore.js +1 -1
  7. package/lib/commonjs/components/AuthedImage/imageStore.web.js +1 -1
  8. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  9. package/lib/commonjs/components/Badge/Badge.js +1 -1
  10. package/lib/commonjs/components/Banner/Banner.js +1 -1
  11. package/lib/commonjs/components/BarChart/BarChart.js +1 -1
  12. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  13. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  14. package/lib/commonjs/components/Box/Box.js +1 -1
  15. package/lib/commonjs/components/Button/Button.js +1 -1
  16. package/lib/commonjs/components/Calendar/Calendar.js +1 -1
  17. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  18. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  19. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  20. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  21. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  22. package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
  23. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  24. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  25. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  26. package/lib/commonjs/components/FormField/FormField.js +1 -1
  27. package/lib/commonjs/components/Input/Input.js +1 -1
  28. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  29. package/lib/commonjs/components/LoaderOverlay/LoaderOverlay.js +1 -1
  30. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  31. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  32. package/lib/commonjs/components/MessageList/MessageList.js +1 -1
  33. package/lib/commonjs/components/Modal/Modal.js +1 -1
  34. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  35. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  36. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  37. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  38. package/lib/commonjs/components/Radio/RadioDot.js +1 -1
  39. package/lib/commonjs/components/Rating/Rating.js +1 -1
  40. package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
  41. package/lib/commonjs/components/RichTextEditor/markdownActions.js +1 -1
  42. package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
  43. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  44. package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
  45. package/lib/commonjs/components/SignaturePad/signatureGeometry.js +1 -1
  46. package/lib/commonjs/components/SignaturePad/writePng.js +1 -1
  47. package/lib/commonjs/components/SignaturePad/writePng.web.js +1 -1
  48. package/lib/commonjs/components/Skeleton/SkeletonClock.js +1 -1
  49. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  50. package/lib/commonjs/components/Slider/valueText.js +1 -1
  51. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  52. package/lib/commonjs/components/Sparkline/geometry.js +1 -1
  53. package/lib/commonjs/components/Spinner/Spinner.js +1 -1
  54. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  55. package/lib/commonjs/components/Switch/Switch.js +1 -1
  56. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  57. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  58. package/lib/commonjs/components/Text/Text.js +1 -1
  59. package/lib/commonjs/components/Toast/Toast.js +1 -1
  60. package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
  61. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  62. package/lib/commonjs/components/Tour/Tour.js +1 -1
  63. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  64. package/lib/commonjs/form/path.js +1 -1
  65. package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
  66. package/lib/commonjs/hooks/usePressAnimation.js +1 -1
  67. package/lib/commonjs/index.js +1 -1
  68. package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
  69. package/lib/commonjs/theme/Gradient.js +1 -1
  70. package/lib/commonjs/theme/animatedValue.js +1 -1
  71. package/lib/commonjs/theme/componentSizes.js +1 -1
  72. package/lib/commonjs/theme/merge.js +1 -1
  73. package/lib/commonjs/theme/toneInk.js +1 -1
  74. package/lib/commonjs/utils/color.js +1 -1
  75. package/lib/commonjs/utils/nativeDriver.js +1 -0
  76. package/lib/module/components/AppBar/AppBar.js +1 -1
  77. package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
  78. package/lib/module/components/AuthedImage/imageStore.js +1 -1
  79. package/lib/module/components/AuthedImage/imageStore.web.js +1 -1
  80. package/lib/module/components/Avatar/Avatar.js +1 -1
  81. package/lib/module/components/Badge/Badge.js +1 -1
  82. package/lib/module/components/Banner/Banner.js +1 -1
  83. package/lib/module/components/BarChart/BarChart.js +1 -1
  84. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  85. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  86. package/lib/module/components/Box/Box.js +1 -1
  87. package/lib/module/components/Button/Button.js +1 -1
  88. package/lib/module/components/Calendar/Calendar.js +1 -1
  89. package/lib/module/components/Carousel/Carousel.js +1 -1
  90. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  91. package/lib/module/components/Confetti/Confetti.js +1 -1
  92. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  93. package/lib/module/components/Drawer/Drawer.js +1 -1
  94. package/lib/module/components/FieldBase/Chevron.js +1 -1
  95. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  96. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  97. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  98. package/lib/module/components/FormField/FormField.js +1 -1
  99. package/lib/module/components/Input/Input.js +1 -1
  100. package/lib/module/components/ListItem/ListItem.js +1 -1
  101. package/lib/module/components/LoaderOverlay/LoaderOverlay.js +1 -1
  102. package/lib/module/components/Markdown/Markdown.js +1 -1
  103. package/lib/module/components/Menu/MenuSurface.js +1 -1
  104. package/lib/module/components/MessageList/MessageList.js +1 -1
  105. package/lib/module/components/Modal/Modal.js +1 -1
  106. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  107. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  108. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  109. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  110. package/lib/module/components/Radio/RadioDot.js +1 -1
  111. package/lib/module/components/Rating/Rating.js +1 -1
  112. package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
  113. package/lib/module/components/RichTextEditor/markdownActions.js +1 -1
  114. package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
  115. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  116. package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
  117. package/lib/module/components/SignaturePad/signatureGeometry.js +1 -1
  118. package/lib/module/components/SignaturePad/writePng.js +1 -1
  119. package/lib/module/components/SignaturePad/writePng.web.js +1 -1
  120. package/lib/module/components/Skeleton/SkeletonClock.js +1 -1
  121. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  122. package/lib/module/components/Slider/valueText.js +1 -1
  123. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  124. package/lib/module/components/Sparkline/geometry.js +1 -1
  125. package/lib/module/components/Spinner/Spinner.js +1 -1
  126. package/lib/module/components/Stepper/Stepper.js +1 -1
  127. package/lib/module/components/Switch/Switch.js +1 -1
  128. package/lib/module/components/Tabs/Tabs.js +1 -1
  129. package/lib/module/components/TagInput/TagInput.js +1 -1
  130. package/lib/module/components/Text/Text.js +1 -1
  131. package/lib/module/components/Toast/Toast.js +1 -1
  132. package/lib/module/components/Toast/ToastProvider.js +1 -1
  133. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  134. package/lib/module/components/Tour/Tour.js +1 -1
  135. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  136. package/lib/module/form/path.js +1 -1
  137. package/lib/module/hooks/useDragToDismiss.js +1 -1
  138. package/lib/module/hooks/usePressAnimation.js +1 -1
  139. package/lib/module/index.js +1 -1
  140. package/lib/module/network/NetworkStatusBanner.js +1 -1
  141. package/lib/module/theme/Gradient.js +1 -1
  142. package/lib/module/theme/animatedValue.js +1 -1
  143. package/lib/module/theme/componentSizes.js +1 -1
  144. package/lib/module/theme/merge.js +1 -1
  145. package/lib/module/theme/toneInk.js +1 -1
  146. package/lib/module/utils/color.js +1 -1
  147. package/lib/module/utils/nativeDriver.js +1 -0
  148. package/lib/typescript/commonjs/canvasKit/index.d.ts +15 -6
  149. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +3 -2
  150. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -2
  151. package/lib/typescript/commonjs/components/AuthedImage/imageStore.d.ts +1 -1
  152. package/lib/typescript/commonjs/components/AuthedImage/imageStore.web.d.ts +1 -1
  153. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +2 -2
  154. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +2 -2
  155. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +2 -2
  156. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +2 -2
  157. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +2 -2
  158. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -3
  159. package/lib/typescript/commonjs/components/Box/Box.d.ts +4 -4
  160. package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -2
  161. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +3 -2
  162. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +25 -116
  163. package/lib/typescript/commonjs/components/Card/Card.d.ts +2 -2
  164. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -2
  165. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -2
  166. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +2 -2
  167. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +2 -3
  168. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +3 -2
  169. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +3 -2
  170. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +3 -2
  171. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +2 -2
  172. package/lib/typescript/commonjs/components/FileViewer/useFileViewerZoom.d.ts +14 -22
  173. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +3 -2
  174. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  175. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -2
  176. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +3 -2
  177. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +3 -2
  178. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -2
  179. package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -3
  180. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
  181. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +4 -3
  182. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
  183. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +2 -2
  184. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +3 -3
  185. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +4 -2
  186. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +2 -2
  187. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +2 -2
  188. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +4 -4
  189. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +2 -2
  190. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +3 -3
  191. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -2
  192. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  193. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +2 -2
  194. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +2 -2
  195. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +3 -3
  196. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -3
  197. package/lib/typescript/commonjs/components/Select/Select.d.ts +2 -2
  198. package/lib/typescript/commonjs/components/SignaturePad/writePng.d.ts +1 -1
  199. package/lib/typescript/commonjs/components/SignaturePad/writePng.web.d.ts +1 -1
  200. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +2 -2
  201. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -2
  202. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
  203. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +3 -2
  204. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +2 -2
  205. package/lib/typescript/commonjs/components/SquircleView/SquircleView.d.ts +3 -2
  206. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +3 -3
  207. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -2
  208. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -2
  209. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +3 -3
  210. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +3 -3
  211. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +3 -2
  212. package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -2
  213. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +3 -3
  214. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
  215. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +5 -5
  216. package/lib/typescript/commonjs/index.d.ts +1 -1
  217. package/lib/typescript/commonjs/theme/Gradient.d.ts +5 -1
  218. package/lib/typescript/commonjs/theme/animatedValue.d.ts +1 -1
  219. package/lib/typescript/commonjs/theme/makeStyles.d.ts +4 -2
  220. package/lib/typescript/commonjs/utils/nativeDriver.d.ts +2 -0
  221. package/lib/typescript/module/canvasKit/index.d.ts +15 -6
  222. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +3 -2
  223. package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -2
  224. package/lib/typescript/module/components/AuthedImage/imageStore.d.ts +1 -1
  225. package/lib/typescript/module/components/AuthedImage/imageStore.web.d.ts +1 -1
  226. package/lib/typescript/module/components/Avatar/Avatar.d.ts +2 -2
  227. package/lib/typescript/module/components/Badge/Badge.d.ts +2 -2
  228. package/lib/typescript/module/components/Banner/Banner.d.ts +2 -2
  229. package/lib/typescript/module/components/BarChart/BarChart.d.ts +2 -2
  230. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +2 -2
  231. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -3
  232. package/lib/typescript/module/components/Box/Box.d.ts +4 -4
  233. package/lib/typescript/module/components/Button/Button.d.ts +3 -2
  234. package/lib/typescript/module/components/Calendar/Calendar.d.ts +3 -2
  235. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +25 -116
  236. package/lib/typescript/module/components/Card/Card.d.ts +2 -2
  237. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -2
  238. package/lib/typescript/module/components/Chip/Chip.d.ts +2 -2
  239. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +2 -2
  240. package/lib/typescript/module/components/Composer/Composer.d.ts +2 -3
  241. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +3 -2
  242. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +3 -2
  243. package/lib/typescript/module/components/Divider/Divider.d.ts +3 -2
  244. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +2 -2
  245. package/lib/typescript/module/components/FileViewer/useFileViewerZoom.d.ts +14 -22
  246. package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +3 -2
  247. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  248. package/lib/typescript/module/components/FormField/FormField.d.ts +2 -2
  249. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +3 -2
  250. package/lib/typescript/module/components/IconButton/IconButton.d.ts +3 -2
  251. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -2
  252. package/lib/typescript/module/components/Input/Input.d.ts +2 -3
  253. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
  254. package/lib/typescript/module/components/ListItem/ListItem.d.ts +4 -3
  255. package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
  256. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +2 -2
  257. package/lib/typescript/module/components/Modal/Modal.d.ts +3 -3
  258. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +4 -2
  259. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +2 -2
  260. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +2 -2
  261. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +4 -4
  262. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +2 -2
  263. package/lib/typescript/module/components/Radio/Radio.d.ts +3 -3
  264. package/lib/typescript/module/components/Rating/Rating.d.ts +2 -2
  265. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +2 -2
  266. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +2 -2
  267. package/lib/typescript/module/components/Screen/Screen.d.ts +2 -2
  268. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +3 -3
  269. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -3
  270. package/lib/typescript/module/components/Select/Select.d.ts +2 -2
  271. package/lib/typescript/module/components/SignaturePad/writePng.d.ts +1 -1
  272. package/lib/typescript/module/components/SignaturePad/writePng.web.d.ts +1 -1
  273. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +2 -2
  274. package/lib/typescript/module/components/Slider/Slider.d.ts +2 -2
  275. package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
  276. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +3 -2
  277. package/lib/typescript/module/components/Spinner/Spinner.d.ts +2 -2
  278. package/lib/typescript/module/components/SquircleView/SquircleView.d.ts +3 -2
  279. package/lib/typescript/module/components/StatTile/StatTile.d.ts +3 -3
  280. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -2
  281. package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -2
  282. package/lib/typescript/module/components/Switch/Switch.d.ts +3 -3
  283. package/lib/typescript/module/components/Tabs/Tabs.d.ts +3 -3
  284. package/lib/typescript/module/components/TagInput/TagInput.d.ts +3 -2
  285. package/lib/typescript/module/components/Text/Text.d.ts +2 -2
  286. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +3 -3
  287. package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
  288. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +5 -5
  289. package/lib/typescript/module/index.d.ts +1 -1
  290. package/lib/typescript/module/theme/Gradient.d.ts +5 -1
  291. package/lib/typescript/module/theme/animatedValue.d.ts +1 -1
  292. package/lib/typescript/module/theme/makeStyles.d.ts +4 -2
  293. package/lib/typescript/module/utils/nativeDriver.d.ts +2 -0
  294. package/package.json +29 -29
@@ -1 +1 @@
1
- "use strict";export const ACCENT_PRESSED_TINT="rgba(0, 0, 0, 0.12)";export const tintOf=(t,r,e)=>{const s=/^#([0-9a-f]{6})$/i.exec(t);if(!s)return e;const a=Math.round(255*r).toString(16).padStart(2,"0");return`#${s[1]}${a}`};const channelsOf=t=>{const r=/^#([0-9a-f]{6})$/i.exec(t);if(!r)return null;const e=Number.parseInt(r[1],16);return[e>>16&255,e>>8&255,255&e]},rgbaOf=t=>{const r=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(t);if(r){const t=3===r[1].length?[...r[1]].map(t=>t+t).join(""):r[1],n=r=>Number.parseInt(t.slice(r,r+2),16);return[n(0),n(2),n(4),8===t.length?n(6)/255:1]}const e=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+)\s*)?\)$/i.exec(t);return e?[Number(e[1]),Number(e[2]),Number(e[3]),void 0===e[4]?1:Number(e[4])]:null};export const withAlpha=(t,r)=>{const e=rgbaOf(t);return e?`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${r})`:null};export const transparentOf=t=>withAlpha(t,0)??"transparent";export const blendOf=(t,r,e,s)=>{const a=channelsOf(t),o=channelsOf(e);if(!a||!o)return s;return`#${a.map((t,e)=>Math.round(t*r+o[e]*(1-r))).map(t=>t.toString(16).padStart(2,"0")).join("")}`.toUpperCase()};
1
+ "use strict";export const ACCENT_PRESSED_TINT="rgba(0, 0, 0, 0.12)";export const tintOf=(t,r,e)=>{const s=/^#([0-9a-f]{6})$/i.exec(t);if(!s)return e;const o=Math.round(255*r).toString(16).padStart(2,"0");return`#${s[1]}${o}`};const channelsOf=t=>{const r=/^#([0-9a-f]{6})$/i.exec(t);if(!r)return null;const e=r[1];if(void 0===e)throw new Error("The six-digit hex pattern captures its digits.");const s=Number.parseInt(e,16);return[s>>16&255,s>>8&255,255&s]},rgbaOf=t=>{const r=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(t);if(r){const t=r[1];if(void 0===t)throw new Error("The hex pattern captures its digits.");const e=3===t.length?[...t].map(t=>t+t).join(""):t,n=t=>Number.parseInt(e.slice(t,t+2),16);return[n(0),n(2),n(4),8===e.length?n(6)/255:1]}const e=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+)\s*)?\)$/i.exec(t);return e?[Number(e[1]),Number(e[2]),Number(e[3]),void 0===e[4]?1:Number(e[4])]:null};export const withAlpha=(t,r)=>{const e=rgbaOf(t);return e?`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${r})`:null};export const transparentOf=t=>withAlpha(t,0)??"transparent";export const blendOf=(t,r,e,s)=>{const o=channelsOf(t),a=channelsOf(e);if(!o||!a)return s;const[i,c,u]=o,[p,f,h]=a;return`#${[Math.round(i*r+p*(1-r)),Math.round(c*r+f*(1-r)),Math.round(u*r+h*(1-r))].map(t=>t.toString(16).padStart(2,"0")).join("")}`.toUpperCase()};
@@ -0,0 +1 @@
1
+ "use strict";import{Platform}from"react-native";export const nativeDriver="web"!==Platform.OS;
@@ -1,5 +1,4 @@
1
1
  import { type ReactNode } from "react";
2
- import { View } from "react-native";
3
2
  import type { ColorMode } from "../theme/types";
4
3
  export type PhoneChromeOs = "Ios" | "Android";
5
4
  export declare const PHONE_CHROME_INSETS: {
@@ -22,29 +21,39 @@ export interface StatusBarProps {
22
21
  /** Battery level in percent, 0 to 100. */
23
22
  battery?: number;
24
23
  }
25
- export declare const StatusBar: ({ os, colorMode, time, signal, battery }: StatusBarProps) => import("react").CElement<import("react-native").ViewProps, View>;
24
+ export declare const StatusBar: ({ os, colorMode, time, signal, battery }: StatusBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
25
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
26
+ }>;
26
27
  export interface HomeIndicatorProps {
27
28
  os: PhoneChromeOs;
28
29
  colorMode?: ColorMode;
29
30
  }
30
- export declare const HomeIndicator: ({ os, colorMode }: HomeIndicatorProps) => import("react").CElement<import("react-native").ViewProps, View>;
31
+ export declare const HomeIndicator: ({ os, colorMode }: HomeIndicatorProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
32
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
33
+ }>;
31
34
  export interface NavigationBarProps {
32
35
  os: PhoneChromeOs;
33
36
  colorMode?: ColorMode;
34
37
  }
35
- export declare const NavigationBar: ({ os, colorMode }: NavigationBarProps) => import("react").CElement<import("react-native").ViewProps, View> | null;
38
+ export declare const NavigationBar: ({ os, colorMode }: NavigationBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
39
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
40
+ }> | null;
36
41
  export interface SafeAreaProps {
37
42
  os: PhoneChromeOs;
38
43
  children?: ReactNode;
39
44
  }
40
- export declare const SafeArea: ({ os, children }: SafeAreaProps) => import("react").CElement<import("react-native").ViewProps, View>;
45
+ export declare const SafeArea: ({ os, children }: SafeAreaProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
46
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
47
+ }>;
41
48
  export type KeyboardPreviewOs = "ios" | "android";
42
49
  export interface KeyboardFrameProps {
43
50
  colorMode?: ColorMode;
44
51
  previewOs?: KeyboardPreviewOs;
45
52
  children?: ReactNode;
46
53
  }
47
- export declare const KeyboardFrame: ({ colorMode, previewOs, children }: KeyboardFrameProps) => import("react").CElement<import("react-native").ViewProps, View>;
54
+ export declare const KeyboardFrame: ({ colorMode, previewOs, children }: KeyboardFrameProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
55
+ ref?: React.Ref<import("react-native").ViewInstance> | undefined;
56
+ }>;
48
57
  export interface PhoneChromeManifestProp {
49
58
  name: string;
50
59
  type: "enum" | "string" | "number";
@@ -1,5 +1,6 @@
1
1
  import { type NumberGrouping } from "@webority/mobile-core";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import { type ForwardRefExoticComponent, type RefAttributes } from "react";
3
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
  import type { HapticType } from "../../utils";
4
5
  import type { SliderSize, SliderTone, SliderVariant } from "../Slider";
5
6
  export interface AmountSliderLabels {
@@ -61,7 +62,7 @@ interface Scaled {
61
62
  type ScaleUnits = Exclude<NumberGrouping, "none">;
62
63
  /** Splits a value into the number and unit the header shows. */
63
64
  export declare const scaleAmount: (value: number, units: ScaleUnits, labels?: AmountSliderLabels) => Scaled;
64
- declare const AmountSlider: import("react").ForwardRefExoticComponent<AmountSliderProps & import("react").RefAttributes<RNView>>;
65
+ declare const AmountSlider: ForwardRefExoticComponent<AmountSliderProps & RefAttributes<HostInstance>>;
65
66
  export { AmountSlider };
66
67
  export default AmountSlider;
67
68
  //# sourceMappingURL=AmountSlider.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import { Animated } from "react-native";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  import type { MenuItem } from "../Menu";
@@ -128,7 +128,7 @@ export interface AppBarProps {
128
128
  haptic?: HapticType | false;
129
129
  testID?: string;
130
130
  }
131
- declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<RNView>>;
131
+ declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<HostInstance>>;
132
132
  export { AppBar };
133
133
  export default AppBar;
134
134
  //# sourceMappingURL=AppBar.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const writeImage: (fileName: string, bytes: Uint8Array<ArrayBuffer>, _contentType: string) => string;
1
+ export declare const writeImage: (fileName: string, bytes: Uint8Array<ArrayBuffer>, _contentType: string) => Promise<string>;
2
2
  export declare const imageUri: (fileName: string) => string;
3
3
  export declare const imageExists: (fileName: string) => boolean;
4
4
  export declare const deleteImage: (fileName: string) => void;
@@ -1,4 +1,4 @@
1
- export declare const writeImage: (fileName: string, bytes: Uint8Array<ArrayBuffer>, contentType: string) => string;
1
+ export declare const writeImage: (fileName: string, bytes: Uint8Array<ArrayBuffer>, contentType: string) => Promise<string>;
2
2
  export declare const imageUri: (fileName: string) => string;
3
3
  export declare const imageExists: (fileName: string) => boolean;
4
4
  export declare const deleteImage: (fileName: string) => void;
@@ -1,6 +1,6 @@
1
1
  import type { DownloadHttpClient } from "@webority/mobile-core/download";
2
2
  import type React from "react";
3
- import type { GestureResponderEvent, ImageSourcePropType, ImageStyle, PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
3
+ import type { GestureResponderEvent, HostInstance, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
4
4
  import type { RadiusName } from "../../theme/tokens.generated";
5
5
  import type { Theme } from "../../theme/types";
6
6
  import type { Size, Tone } from "../../types/vocabulary";
@@ -139,7 +139,7 @@ export interface AvatarProps {
139
139
  labels?: Partial<AvatarLabels>;
140
140
  testID?: string;
141
141
  }
142
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<RNView>> & {
142
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HostInstance>> & {
143
143
  Skeleton: React.FC<AvatarProps>;
144
144
  };
145
145
  export type AvatarGroupSpacing = "tight" | "normal" | "loose";
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  export type BadgeVariant = "standard" | "dot";
5
5
  export type BadgeTone = Tone;
@@ -38,7 +38,7 @@ export interface BadgeProps {
38
38
  textStyle?: StyleProp<TextStyle>;
39
39
  testID?: string;
40
40
  }
41
- declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<RNView>> & {
41
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HostInstance>> & {
42
42
  Skeleton: React.FC<BadgeProps>;
43
43
  };
44
44
  export { Badge };
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
3
3
  import type { FillVariant, Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  import type { SlotIcon } from "../AppIcon/slotIcon";
@@ -87,7 +87,7 @@ export interface BannerProps {
87
87
  actionButtonStyle?: StyleProp<ViewStyle>;
88
88
  testID?: string;
89
89
  }
90
- declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<RNView>> & {
90
+ declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HostInstance>> & {
91
91
  Skeleton: React.FC<BannerProps>;
92
92
  };
93
93
  export { Banner };
@@ -19,7 +19,7 @@
19
19
  * A legend names the series, and a bar is read as its label and every series value.
20
20
  */
21
21
  import type React from "react";
22
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
22
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
23
23
  import type { Tone } from "../../types/vocabulary";
24
24
  import type { HapticType } from "../../utils";
25
25
  export type BarChartTone = Tone;
@@ -85,7 +85,7 @@ export interface BarChartProps {
85
85
  style?: StyleProp<ViewStyle>;
86
86
  testID?: string;
87
87
  }
88
- declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<RNView>>;
88
+ declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<HostInstance>>;
89
89
  export { BarChart };
90
90
  export default BarChart;
91
91
  //# sourceMappingURL=BarChart.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { ScrollDirection } from "../../hooks/useScrollDirection";
4
4
  import type { ShadowName } from "../../theme/types";
5
5
  import type { HapticType } from "../../utils";
@@ -257,7 +257,7 @@ export interface BottomNavigationProps {
257
257
  labels?: Partial<BottomNavigationLabels>;
258
258
  testID?: string;
259
259
  }
260
- declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<RNView>>;
260
+ declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<HostInstance>>;
261
261
  export { BottomNavigation };
262
262
  export default BottomNavigation;
263
263
  //# sourceMappingURL=BottomNavigation.d.ts.map
@@ -12,8 +12,7 @@
12
12
  * </BottomSheet>
13
13
  */
14
14
  import type React from "react";
15
- import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, StyleProp, ViewStyle } from "react-native";
16
- import { ScrollView } from "react-native";
15
+ import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, ScrollViewInstance, StyleProp, ViewStyle } from "react-native";
17
16
  import type { DialogAction } from "../Dialog/Dialog";
18
17
  import { type ActionsLayout } from "../Dialog/OverlayActions";
19
18
  /**
@@ -94,7 +93,7 @@ export interface BottomSheetProps {
94
93
  */
95
94
  scrollable?: boolean;
96
95
  /** Ref to the inner ScrollView. Used only with `scrollable`. */
97
- scrollRef?: React.Ref<ScrollView>;
96
+ scrollRef?: React.Ref<ScrollViewInstance>;
98
97
  /** Forwarded to the inner ScrollView. Used only with `scrollable`. */
99
98
  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
100
99
  /** Forwarded to the inner ScrollView. Used only with `scrollable`. */
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, ViewProps, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, ViewProps, ViewStyle } from "react-native";
3
3
  import type { RadiusName, SpaceName, Theme } from "../../theme/types";
4
4
  export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse" | "primary-wash";
5
5
  export interface BoxProps extends ViewProps {
@@ -37,13 +37,13 @@ export interface BoxProps extends ViewProps {
37
37
  }
38
38
  type LayoutProps = Omit<BoxProps, "style" | "children">;
39
39
  export declare const resolveBoxStyle: (theme: Theme, p: LayoutProps) => ViewStyle;
40
- declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<RNView>>;
40
+ declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HostInstance>>;
41
41
  export type StackProps = Omit<BoxProps, "direction">;
42
42
  /** Vertical flex container with token spacing between children (default gap `md`). */
43
- declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<RNView>>;
43
+ declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HostInstance>>;
44
44
  export type RowProps = Omit<BoxProps, "direction">;
45
45
  /** Horizontal flex container (default `align="center"`, gap `sm`). */
46
- declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<RNView>>;
46
+ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HostInstance>>;
47
47
  export interface SpacerProps {
48
48
  /** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
49
49
  size?: SpaceName;
@@ -1,4 +1,5 @@
1
- import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
1
+ import { type ForwardRefExoticComponent, type RefAttributes } from "react";
2
+ import type { HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
2
3
  import type { PressAnimationPreset } from "../../hooks/usePressAnimation";
3
4
  import type { GradientDefinition, Theme } from "../../theme/types";
4
5
  import type { FillVariant, Size, Tone } from "../../types/vocabulary";
@@ -86,7 +87,7 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children">
86
87
  /** Overrides the text the Button draws for its own states; a key left out keeps its default. */
87
88
  labels?: Partial<ButtonLabels>;
88
89
  }
89
- declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<RNView>>;
90
+ declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HostInstance>>;
90
91
  /**
91
92
  * The colour a Button draws its label in, for the given variant, tone and disabled state: the same value
92
93
  * the Button itself uses, so a renderer that draws a Button's label (Canvas) never keeps its own copy of the rules.
@@ -3,7 +3,8 @@
3
3
  * days drawn as dots in a tone and read aloud with each day. DateRangePicker
4
4
  * renders this same grid inside its sheet.
5
5
  */
6
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
6
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
7
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
7
8
  import type { SelectionMode, Tone } from "../../types/vocabulary";
8
9
  import type { HapticType } from "../../utils";
9
10
  import type { CalendarWeekStart } from "./calendarDates";
@@ -73,7 +74,7 @@ export interface CalendarProps {
73
74
  navButtonStyle?: StyleProp<ViewStyle>;
74
75
  testID?: string;
75
76
  }
76
- declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<RNView>>;
77
+ declare const Calendar: ForwardRefExoticComponent<CalendarProps & RefAttributes<HostInstance>>;
77
78
  export { Calendar };
78
79
  export default Calendar;
79
80
  //# sourceMappingURL=Calendar.d.ts.map
@@ -1,122 +1,31 @@
1
+ import { type TextStyle, type ViewStyle } from "react-native";
1
2
  import type { Theme } from "../../theme/types";
2
3
  /** The smallest day cell: the 44 pt minimum touch target. */
3
4
  export declare const MIN_CELL_SIZE = 44;
4
5
  export declare const NAV_BUTTON_SIZE = 36;
5
- export declare const buildCalendarStyles: (theme: Theme) => {
6
- root: {
7
- alignSelf: "stretch";
8
- };
9
- headerRow: {
10
- flexDirection: "row";
11
- alignItems: "center";
12
- justifyContent: "space-between";
13
- marginBottom: number;
14
- };
15
- navBtn: {
16
- alignItems: "center";
17
- justifyContent: "center";
18
- backgroundColor: string;
19
- borderCurve: "continuous";
20
- width: number;
21
- height: number;
22
- borderRadius: number;
23
- };
24
- navBtnPressed: {
25
- backgroundColor: string;
26
- };
27
- navBtnDisabled: {
28
- opacity: number;
29
- };
30
- navText: {
31
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
32
- fontFamily?: string | undefined | undefined;
33
- fontSize: number;
34
- lineHeight: number;
35
- color: string;
36
- };
37
- headerLabelWrap: {
38
- flex: number;
39
- alignItems: "center";
40
- };
41
- headerLabel: {
42
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
43
- fontFamily?: string | undefined | undefined;
44
- fontSize: number;
45
- color: string;
46
- };
47
- weekdayRow: {
48
- flexDirection: "row";
49
- justifyContent: "center";
50
- marginBottom: number;
51
- };
52
- weekdayCell: {
53
- alignItems: "center";
54
- paddingVertical: number;
55
- };
56
- weekdayText: {
57
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
58
- fontFamily?: string | undefined | undefined;
59
- fontSize: number;
60
- color: string;
61
- letterSpacing: number;
62
- };
63
- gridRow: {
64
- flexDirection: "row";
65
- justifyContent: "center";
66
- };
67
- dayCell: {
68
- alignItems: "center";
69
- justifyContent: "center";
70
- padding: number;
71
- };
72
- barLeft: {
73
- position: "absolute";
74
- left: number;
75
- right: "50%";
76
- top: "5%";
77
- bottom: "5%";
78
- };
79
- barRight: {
80
- position: "absolute";
81
- left: "50%";
82
- right: number;
83
- top: "5%";
84
- bottom: "5%";
85
- };
86
- rangeFill: {
87
- backgroundColor: string;
88
- };
89
- dayInner: {
90
- borderCurve: "continuous";
91
- width: "90%";
92
- height: "90%";
93
- alignItems: "center";
94
- justifyContent: "center";
95
- borderRadius: number;
96
- };
97
- dayEdge: {
98
- backgroundColor: string;
99
- };
100
- dayMid: {
101
- borderRadius: number;
102
- };
103
- dayText: {
104
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
105
- fontFamily?: string | undefined | undefined;
106
- fontSize: number;
107
- };
108
- dots: {
109
- position: "absolute";
110
- bottom: number;
111
- flexDirection: "row";
112
- gap: number;
113
- };
114
- dot: {
115
- borderCurve: "continuous";
116
- width: number;
117
- height: number;
118
- borderRadius: number;
119
- };
6
+ export declare const buildCalendarStyles: (theme: Theme) => CalendarStyles;
7
+ export type CalendarStyles = {
8
+ root: ViewStyle;
9
+ headerRow: ViewStyle;
10
+ navBtn: ViewStyle;
11
+ navBtnPressed: ViewStyle;
12
+ navBtnDisabled: ViewStyle;
13
+ navText: TextStyle;
14
+ headerLabelWrap: ViewStyle;
15
+ headerLabel: TextStyle;
16
+ weekdayRow: ViewStyle;
17
+ weekdayCell: ViewStyle;
18
+ weekdayText: TextStyle;
19
+ gridRow: ViewStyle;
20
+ dayCell: ViewStyle;
21
+ barLeft: ViewStyle;
22
+ barRight: ViewStyle;
23
+ rangeFill: ViewStyle;
24
+ dayInner: ViewStyle;
25
+ dayEdge: ViewStyle;
26
+ dayMid: ViewStyle;
27
+ dayText: TextStyle;
28
+ dots: ViewStyle;
29
+ dot: ViewStyle;
120
30
  };
121
- export type CalendarStyles = ReturnType<typeof buildCalendarStyles>;
122
31
  //# sourceMappingURL=calendarStyles.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { GestureResponderEvent, ImageSourcePropType, PressableProps, View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { GestureResponderEvent, HostInstance, ImageSourcePropType, PressableProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { PressAnimationPreset } from "../../hooks/usePressAnimation";
4
4
  import type { GradientDefinition, ShadowName } from "../../theme/types";
5
5
  import type { HapticType } from "../../utils/hapticUtils";
@@ -107,7 +107,7 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
107
107
  footerStyle?: StyleProp<ViewStyle>;
108
108
  testID?: string;
109
109
  }
110
- declare const Card: React.MemoExoticComponent<React.ForwardRefExoticComponent<CardProps & React.RefAttributes<RNView>>> & {
110
+ declare const Card: React.MemoExoticComponent<React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HostInstance>>> & {
111
111
  Skeleton: React.FC<CardProps>;
112
112
  };
113
113
  export { Card };
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  export type CheckboxSize = Extract<Size, "sm" | "md" | "lg">;
@@ -49,7 +49,7 @@ export interface CheckboxProps extends Omit<PressableProps, "style" | "children"
49
49
  labelStyle?: StyleProp<TextStyle>;
50
50
  testID?: string;
51
51
  }
52
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<RNView>>;
52
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HostInstance>>;
53
53
  export { Checkbox };
54
54
  export default Checkbox;
55
55
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ import type { HostInstance, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { FillVariant, SelectionMode, Size, Tone } from "../../types/vocabulary";
4
4
  import type { HapticType } from "../../utils/hapticUtils";
5
5
  import type { IconVariant } from "../AppIcon/AppIcon";
@@ -79,7 +79,7 @@ export interface ChipProps {
79
79
  labels?: Partial<ChipLabels>;
80
80
  testID?: string;
81
81
  }
82
- declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<RNView>> & {
82
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HostInstance>> & {
83
83
  Skeleton: React.FC<ChipProps>;
84
84
  };
85
85
  export { Chip };
@@ -25,7 +25,7 @@
25
25
  * accessors for custom shapes.
26
26
  */
27
27
  import type React from "react";
28
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
28
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
29
29
  import type { SelectionMode, Size } from "../../types/vocabulary";
30
30
  import type { HapticType } from "../../utils";
31
31
  import type { SlotIcon } from "../AppIcon/slotIcon";
@@ -157,7 +157,7 @@ export interface MultipleChoiceGroupProps<T = ChoiceOption> extends BaseChoiceGr
157
157
  onChange?: (values: RadioValue[]) => void;
158
158
  }
159
159
  export type ChoiceGroupProps<T = ChoiceOption> = SingleChoiceGroupProps<T> | MultipleChoiceGroupProps<T>;
160
- declare const ChoiceGroup: React.ForwardRefExoticComponent<ChoiceGroupProps<unknown> & React.RefAttributes<RNView>>;
160
+ declare const ChoiceGroup: React.ForwardRefExoticComponent<ChoiceGroupProps<unknown> & React.RefAttributes<HostInstance>>;
161
161
  export { ChoiceGroup };
162
162
  export default ChoiceGroup;
163
163
  //# sourceMappingURL=ChoiceGroup.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import type React from "react";
2
- import type { StyleProp, ViewStyle } from "react-native";
3
- import { TextInput } from "react-native";
2
+ import type { StyleProp, TextInputInstance, ViewStyle } from "react-native";
4
3
  import type { HapticType } from "../../utils/hapticUtils";
5
4
  import type { AppIconName } from "../AppIcon/AppIcon";
6
5
  export interface ComposerLabels {
@@ -82,6 +81,6 @@ export interface ComposerProps {
82
81
  * the keyboard and pads for the bottom safe area, so a chat screen is a
83
82
  * `MessageList` above a `Composer` with no keyboard wiring of its own.
84
83
  */
85
- export declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<TextInput>>;
84
+ export declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<TextInputInstance>>;
86
85
  export default Composer;
87
86
  //# sourceMappingURL=Composer.d.ts.map
@@ -1,4 +1,5 @@
1
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
2
3
  import type { HapticType } from "../../utils";
3
4
  import type { CalendarMark } from "../Calendar";
4
5
  import type { CalendarWeekStart } from "../Calendar/calendarDates";
@@ -64,7 +65,7 @@ export interface DateRangePickerProps extends PickerTriggerPassThroughProps {
64
65
  footerButtonStyle?: StyleProp<ViewStyle>;
65
66
  testID?: string;
66
67
  }
67
- declare const DateRangePicker: import("react").ForwardRefExoticComponent<DateRangePickerProps & import("react").RefAttributes<RNView>>;
68
+ declare const DateRangePicker: ForwardRefExoticComponent<DateRangePickerProps & RefAttributes<HostInstance>>;
68
69
  export { DateRangePicker };
69
70
  export default DateRangePicker;
70
71
  //# sourceMappingURL=DateRangePicker.d.ts.map
@@ -1,4 +1,5 @@
1
- import type { TextInput } from "react-native";
1
+ import { type ForwardRefExoticComponent, type RefAttributes } from "react";
2
+ import type { TextInputInstance } from "react-native";
2
3
  import type { InputProps } from "../Input";
3
4
  export interface DecimalRules {
4
5
  /** Digits only: no point, no minus. */
@@ -59,7 +60,7 @@ export interface DecimalInputProps extends Omit<InputProps, "value" | "onChange"
59
60
  * A figure typed on a number keyboard, over Input. Every Input prop passes through; the value may be
60
61
  * empty or half-typed, which NumberInput's stepper cannot be.
61
62
  */
62
- declare const DecimalInput: import("react").ForwardRefExoticComponent<DecimalInputProps & import("react").RefAttributes<TextInput>>;
63
+ declare const DecimalInput: ForwardRefExoticComponent<DecimalInputProps & RefAttributes<TextInputInstance>>;
63
64
  export { DecimalInput };
64
65
  export default DecimalInput;
65
66
  //# sourceMappingURL=DecimalInput.d.ts.map
@@ -1,4 +1,5 @@
1
- import type { View as RNView, StyleProp, ViewStyle } from "react-native";
1
+ import type { ForwardRefExoticComponent, RefAttributes } from "react";
2
+ import type { HostInstance, StyleProp, ViewStyle } from "react-native";
2
3
  export type DividerOrientation = "horizontal" | "vertical";
3
4
  export type DividerSpacing = "none" | "sm" | "md" | "lg";
4
5
  export type DividerLabelPosition = "start" | "center" | "end";
@@ -13,7 +14,7 @@ export interface DividerProps {
13
14
  style?: StyleProp<ViewStyle>;
14
15
  testID?: string;
15
16
  }
16
- declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<RNView>>;
17
+ declare const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<HostInstance>>;
17
18
  export { Divider };
18
19
  export default Divider;
19
20
  //# sourceMappingURL=Divider.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { ImageSourcePropType, View as RNView, StyleProp, ViewStyle } from "react-native";
2
+ import type { HostInstance, ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Size } from "../../types/vocabulary";
4
4
  export type EmptyStateSize = Extract<Size, "sm" | "md" | "lg">;
5
5
  /** `block` is the centred block with room around it. `inline` is one quiet caption line, centred, with no padding; it draws the title only. */
@@ -33,7 +33,7 @@ export interface EmptyStateProps {
33
33
  style?: StyleProp<ViewStyle>;
34
34
  testID?: string;
35
35
  }
36
- declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<RNView>>;
36
+ declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HostInstance>>;
37
37
  export { EmptyState };
38
38
  export default EmptyState;
39
39
  //# sourceMappingURL=EmptyState.d.ts.map