@webority/mobile-ui 0.128.0 → 0.130.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 (312) hide show
  1. package/dist/canvas-kit/kit.js +8340 -8095
  2. package/dist/canvas-kit/manifest.json +492 -333
  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/catalog.g.js +1 -1
  8. package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
  9. package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
  10. package/lib/commonjs/components/AppLockOverlay/AppLockOverlay.js +1 -1
  11. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  12. package/lib/commonjs/components/Banner/Banner.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/Card/Card.js +1 -1
  17. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  18. package/lib/commonjs/components/Composer/Composer.js +1 -1
  19. package/lib/commonjs/components/Confirm/confirm.js +1 -1
  20. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  21. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  22. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  23. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  24. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  25. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  26. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  27. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  28. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  29. package/lib/commonjs/components/FileViewer/FileViewer.js +1 -1
  30. package/lib/commonjs/components/FileViewer/FileViewerImage.js +1 -0
  31. package/lib/commonjs/components/FileViewer/fileSource.js +1 -0
  32. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  33. package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +1 -1
  34. package/lib/commonjs/components/FormField/FormField.js +1 -1
  35. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  36. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  37. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  38. package/lib/commonjs/components/Input/Input.js +1 -1
  39. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  40. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  41. package/lib/commonjs/components/Menu/Menu.js +1 -1
  42. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  43. package/lib/commonjs/components/Menu/useContextMenu.js +1 -1
  44. package/lib/commonjs/components/Modal/Modal.js +1 -1
  45. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  46. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  47. package/lib/commonjs/components/OTPInput/OTPResendRow.js +1 -0
  48. package/lib/commonjs/components/OTPInput/index.js +1 -1
  49. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  50. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  51. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
  52. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  53. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  54. package/lib/commonjs/components/Radio/Radio.js +1 -1
  55. package/lib/commonjs/components/Rating/Rating.js +1 -1
  56. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  57. package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
  58. package/lib/commonjs/components/Select/Select.js +1 -1
  59. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  60. package/lib/commonjs/components/SquircleImage/SquircleImage.js +1 -1
  61. package/lib/commonjs/components/Text/Text.js +1 -1
  62. package/lib/commonjs/components/Text/textInk.js +1 -0
  63. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  64. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  65. package/lib/commonjs/components/Tour/Tour.js +1 -1
  66. package/lib/commonjs/components/index.js +1 -1
  67. package/lib/commonjs/components/not-drawn.json +1 -0
  68. package/lib/commonjs/form/HookFormField.js +1 -1
  69. package/lib/commonjs/hooks/index.js +1 -1
  70. package/lib/commonjs/hooks/useFieldErrorScroll.js +1 -0
  71. package/lib/commonjs/hooks/useResendCountdown.js +1 -0
  72. package/lib/commonjs/icons.js +1 -0
  73. package/lib/commonjs/index.js +1 -1
  74. package/lib/commonjs/navigation/DiscardGuard.js +1 -1
  75. package/lib/commonjs/navigation/index.js +1 -1
  76. package/lib/commonjs/navigation/useNavigationTheme.js +1 -0
  77. package/lib/commonjs/sizes.js +1 -0
  78. package/lib/commonjs/squircle.js +1 -0
  79. package/lib/commonjs/utils/feedback.js +1 -1
  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/catalog.g.js +1 -1
  85. package/lib/module/components/AppIcon/glyphs.g.js +1 -1
  86. package/lib/module/components/AppIcon/variants.g.js +1 -1
  87. package/lib/module/components/AppLockOverlay/AppLockOverlay.js +1 -1
  88. package/lib/module/components/Avatar/Avatar.js +1 -1
  89. package/lib/module/components/Banner/Banner.js +1 -1
  90. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  91. package/lib/module/components/Box/Box.js +1 -1
  92. package/lib/module/components/Button/Button.js +1 -1
  93. package/lib/module/components/Card/Card.js +1 -1
  94. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  95. package/lib/module/components/Composer/Composer.js +1 -1
  96. package/lib/module/components/Confirm/confirm.js +1 -1
  97. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  98. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  99. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  100. package/lib/module/components/Dialog/Dialog.js +1 -1
  101. package/lib/module/components/Drawer/Drawer.js +1 -1
  102. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  103. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  104. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  105. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  106. package/lib/module/components/FileViewer/FileViewer.js +1 -1
  107. package/lib/module/components/FileViewer/FileViewerImage.js +1 -0
  108. package/lib/module/components/FileViewer/fileSource.js +1 -0
  109. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  110. package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +1 -1
  111. package/lib/module/components/FormField/FormField.js +1 -1
  112. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  113. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  114. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  115. package/lib/module/components/Input/Input.js +1 -1
  116. package/lib/module/components/ListItem/ListItem.js +1 -1
  117. package/lib/module/components/Markdown/Markdown.js +1 -1
  118. package/lib/module/components/Menu/Menu.js +1 -1
  119. package/lib/module/components/Menu/MenuSurface.js +1 -1
  120. package/lib/module/components/Menu/useContextMenu.js +1 -1
  121. package/lib/module/components/Modal/Modal.js +1 -1
  122. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  123. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  124. package/lib/module/components/OTPInput/OTPResendRow.js +1 -0
  125. package/lib/module/components/OTPInput/index.js +1 -1
  126. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  127. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  128. package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
  129. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  130. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  131. package/lib/module/components/Radio/Radio.js +1 -1
  132. package/lib/module/components/Rating/Rating.js +1 -1
  133. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  134. package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
  135. package/lib/module/components/Select/Select.js +1 -1
  136. package/lib/module/components/SliderField/SliderField.js +1 -1
  137. package/lib/module/components/SquircleImage/SquircleImage.js +1 -1
  138. package/lib/module/components/Text/Text.js +1 -1
  139. package/lib/module/components/Text/textInk.js +1 -0
  140. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  141. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  142. package/lib/module/components/Tour/Tour.js +1 -1
  143. package/lib/module/components/index.js +1 -1
  144. package/lib/module/components/not-drawn.json +1 -0
  145. package/lib/module/form/HookFormField.js +1 -1
  146. package/lib/module/hooks/index.js +1 -1
  147. package/lib/module/hooks/useFieldErrorScroll.js +1 -0
  148. package/lib/module/hooks/useResendCountdown.js +1 -0
  149. package/lib/module/icons.js +1 -0
  150. package/lib/module/index.js +1 -1
  151. package/lib/module/navigation/DiscardGuard.js +1 -1
  152. package/lib/module/navigation/index.js +1 -1
  153. package/lib/module/navigation/useNavigationTheme.js +1 -0
  154. package/lib/module/sizes.js +1 -0
  155. package/lib/module/squircle.js +1 -0
  156. package/lib/module/utils/feedback.js +1 -1
  157. package/lib/module/utils/hapticUtils.js +1 -1
  158. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +2 -1
  159. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -1
  160. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +6 -3
  161. package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
  162. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
  163. package/lib/typescript/commonjs/components/AppIcon/index.d.ts +1 -1
  164. package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
  165. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +7 -0
  166. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -2
  167. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +4 -4
  168. package/lib/typescript/commonjs/components/Box/Box.d.ts +2 -2
  169. package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -0
  170. package/lib/typescript/commonjs/components/Card/Card.d.ts +6 -7
  171. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -1
  172. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -1
  173. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +4 -0
  174. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +7 -17
  175. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +7 -17
  176. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
  177. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +1 -1
  178. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +4 -4
  179. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +8 -6
  180. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +5 -33
  181. package/lib/typescript/commonjs/components/FileViewer/FileViewerImage.d.ts +5 -0
  182. package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +24 -0
  183. package/lib/typescript/commonjs/components/FileViewer/index.d.ts +1 -1
  184. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +8 -0
  185. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
  186. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +4 -0
  187. package/lib/typescript/commonjs/components/IconBadge/index.d.ts +1 -1
  188. package/lib/typescript/commonjs/components/Input/Input.d.ts +3 -2
  189. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +7 -7
  190. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
  191. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +3 -3
  192. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +1 -1
  193. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +14 -4
  194. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +2 -0
  195. package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +25 -0
  196. package/lib/typescript/commonjs/components/OTPInput/index.d.ts +2 -0
  197. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +5 -5
  198. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
  199. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +7 -2
  200. package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +1 -1
  201. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +2 -0
  202. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +2 -0
  203. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -0
  204. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +5 -3
  205. package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +2 -0
  206. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +2 -0
  207. package/lib/typescript/commonjs/components/Select/Select.d.ts +4 -3
  208. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -0
  209. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
  210. package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +4 -3
  211. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -0
  212. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +2 -0
  213. package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -0
  214. package/lib/typescript/commonjs/components/Text/textInk.d.ts +14 -0
  215. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +7 -18
  216. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +4 -3
  217. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +1 -1
  218. package/lib/typescript/commonjs/components/index.d.ts +5 -6
  219. package/lib/typescript/commonjs/form/HookFormField.d.ts +4 -4
  220. package/lib/typescript/commonjs/hooks/index.d.ts +4 -0
  221. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +28 -0
  222. package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +16 -0
  223. package/lib/typescript/commonjs/icons.d.ts +3 -0
  224. package/lib/typescript/commonjs/index.d.ts +9 -8
  225. package/lib/typescript/commonjs/navigation/index.d.ts +1 -0
  226. package/lib/typescript/commonjs/navigation/useNavigationTheme.d.ts +7 -0
  227. package/lib/typescript/commonjs/sizes.d.ts +2 -0
  228. package/lib/typescript/commonjs/squircle.d.ts +2 -0
  229. package/lib/typescript/commonjs/utils/feedback.d.ts +2 -2
  230. package/lib/typescript/commonjs/utils/hapticUtils.d.ts +2 -0
  231. package/lib/typescript/module/components/Accordion/Accordion.d.ts +2 -1
  232. package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -1
  233. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +6 -3
  234. package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
  235. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
  236. package/lib/typescript/module/components/AppIcon/index.d.ts +1 -1
  237. package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
  238. package/lib/typescript/module/components/Avatar/Avatar.d.ts +7 -0
  239. package/lib/typescript/module/components/Banner/Banner.d.ts +3 -2
  240. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +4 -4
  241. package/lib/typescript/module/components/Box/Box.d.ts +2 -2
  242. package/lib/typescript/module/components/Button/Button.d.ts +3 -0
  243. package/lib/typescript/module/components/Card/Card.d.ts +6 -7
  244. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -1
  245. package/lib/typescript/module/components/Chip/Chip.d.ts +2 -1
  246. package/lib/typescript/module/components/Composer/Composer.d.ts +4 -0
  247. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +7 -17
  248. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +7 -17
  249. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
  250. package/lib/typescript/module/components/Dialog/Dialog.d.ts +1 -1
  251. package/lib/typescript/module/components/Drawer/Drawer.d.ts +4 -4
  252. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +8 -6
  253. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +5 -33
  254. package/lib/typescript/module/components/FileViewer/FileViewerImage.d.ts +5 -0
  255. package/lib/typescript/module/components/FileViewer/fileSource.d.ts +24 -0
  256. package/lib/typescript/module/components/FileViewer/index.d.ts +1 -1
  257. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +8 -0
  258. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
  259. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +4 -0
  260. package/lib/typescript/module/components/IconBadge/index.d.ts +1 -1
  261. package/lib/typescript/module/components/Input/Input.d.ts +3 -2
  262. package/lib/typescript/module/components/ListItem/ListItem.d.ts +7 -7
  263. package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
  264. package/lib/typescript/module/components/Menu/Menu.d.ts +3 -3
  265. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +1 -1
  266. package/lib/typescript/module/components/Modal/Modal.d.ts +14 -4
  267. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +2 -0
  268. package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +25 -0
  269. package/lib/typescript/module/components/OTPInput/index.d.ts +2 -0
  270. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +5 -5
  271. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
  272. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +7 -2
  273. package/lib/typescript/module/components/PickerTrigger/index.d.ts +1 -1
  274. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +2 -0
  275. package/lib/typescript/module/components/Radio/Radio.d.ts +2 -0
  276. package/lib/typescript/module/components/Rating/Rating.d.ts +2 -0
  277. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +5 -3
  278. package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +2 -0
  279. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +2 -0
  280. package/lib/typescript/module/components/Select/Select.d.ts +4 -3
  281. package/lib/typescript/module/components/Slider/Slider.d.ts +2 -0
  282. package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
  283. package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +4 -3
  284. package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -0
  285. package/lib/typescript/module/components/Switch/Switch.d.ts +2 -0
  286. package/lib/typescript/module/components/Text/Text.d.ts +2 -0
  287. package/lib/typescript/module/components/Text/textInk.d.ts +14 -0
  288. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +7 -18
  289. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +4 -3
  290. package/lib/typescript/module/components/Tour/Tour.d.ts +1 -1
  291. package/lib/typescript/module/components/index.d.ts +5 -6
  292. package/lib/typescript/module/form/HookFormField.d.ts +4 -4
  293. package/lib/typescript/module/hooks/index.d.ts +4 -0
  294. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +28 -0
  295. package/lib/typescript/module/hooks/useResendCountdown.d.ts +16 -0
  296. package/lib/typescript/module/icons.d.ts +3 -0
  297. package/lib/typescript/module/index.d.ts +9 -8
  298. package/lib/typescript/module/navigation/index.d.ts +1 -0
  299. package/lib/typescript/module/navigation/useNavigationTheme.d.ts +7 -0
  300. package/lib/typescript/module/sizes.d.ts +2 -0
  301. package/lib/typescript/module/squircle.d.ts +2 -0
  302. package/lib/typescript/module/utils/feedback.d.ts +2 -2
  303. package/lib/typescript/module/utils/hapticUtils.d.ts +2 -0
  304. package/package.json +37 -7
  305. package/lib/commonjs/components/Notation/Notation.js +0 -1
  306. package/lib/commonjs/components/Notation/index.js +0 -1
  307. package/lib/module/components/Notation/Notation.js +0 -1
  308. package/lib/module/components/Notation/index.js +0 -1
  309. package/lib/typescript/commonjs/components/Notation/Notation.d.ts +0 -53
  310. package/lib/typescript/commonjs/components/Notation/index.d.ts +0 -3
  311. package/lib/typescript/module/components/Notation/Notation.d.ts +0 -53
  312. package/lib/typescript/module/components/Notation/index.d.ts +0 -3
@@ -1,16 +1,17 @@
1
1
  export { PHONE_CHROME_INSETS } from "./canvasKit/index.js";
2
- export * from "./components/index.js";
3
- export type { AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName, IconsaxShadowedName, IconVariant, SlotIcon, SlotIconRef, SlotIconState, SlotNode, } from "./components/AppIcon/index.js";
4
- export { APP_ICON_SIZES, AppIcon, CURATED_ICON_NAMES, defaultIcons, ICON_NAMES, ICONSAX_SUFFIX, renderSlotIcon, } from "./components/AppIcon/index.js";
2
+ export type * from "./components/index.js";
3
+ export { Accordion, AccordionGroup, ALL_CALLING_CODES, AmountSlider, AnimatePresence, AppBar, AppLockOverlay, AsyncBlock, AuthedImage, Autocomplete, Avatar, AvatarGroup, authedImageCacheStats, Badge, Banner, BarChart, BottomNavigation, BottomSheet, Box, Button, buttonLabelInk, Calendar, Card, Carousel, Checkbox, Chip, ChoiceGroup, Composer, Confetti, ConfirmHost, clearAuthedImageCache, confirm, DatePicker, DateRangePicker, DateSeparator, DEFAULT_CALLING_CODES, DecimalInput, Descriptions, Dialog, Divider, Drawer, defineStatusMap, EmptyState, ErrorBoundary, FilePicker, FileViewer, FilterChipRow, FloatingActionButton, FloatingActionButtonGroup, ForceUpdateDialog, FormField, formatE164, formatFileSize, getAuthedImageCacheLimit, IconBadge, IconButton, ImageGallery, InlineSelect, Input, KeyboardAwareScrollView, KeyboardToolbar, ListItem, ListSection, LoaderOverlay, loader, Markdown, Menu, MessageBubble, MessageList, MODAL_DISMISS_GRACE_MS, Modal, NumberInput, OnboardingPager, OptionSheet, OTPInput, OTPResendRow, PagedListFooter, PermissionPrompt, PhoneNumberInput, PickerTrigger, ProfileCompletion, ProfilePicker, ProgressBar, ProgressRing, Radio, RadioDot, RadioGroup, Rating, Repeater, RichTextEditor, Row, ScannerOverlay, Screen, SearchBar, SectionHeader, SegmentedControl, Select, SignaturePad, Skeleton, SkeletonCircle, SkeletonClockProvider, SkeletonContent, SkeletonList, SkeletonProvider, SkeletonSkip, SkeletonText, Slider, SliderField, SlideToConfirm, SortableList, Spacer, Sparkline, Spinner, SquircleImage, SquircleView, Stack, StatTile, StatusBadge, Stepper, Swipeable, Switch, setAuthedImageCacheLimit, Tabs, TagInput, Text, TextInkContext, Timeline, TimePicker, Toast, ToastHost, ToastProvider, Tooltip, Tour, TypingIndicator, toast, useBottomSheet, useErrorHandler, useRecentSearches, useTextInk, useToast, WheelPicker, withErrorBoundary, ZoomableImage, } from "./components/index.js";
4
+ export type { AppIconColor, AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName, IconsaxShadowedName, IconVariant, SlotIcon, SlotIconRef, SlotIconState, SlotNode, } from "./components/AppIcon/index.js";
5
+ export { AppIcon } from "./components/AppIcon/index.js";
5
6
  export type { FormCompletion, HookFieldProps, HookFormFieldProps, UseFormCompletionOptions } from "./form/index.js";
6
- export { deletePath, getPath, HookFormField, isFieldFilled, setPath, useFormCompletion, useHookFormField, } from "./form/index.js";
7
- export type { FieldChain, FieldChainProps, MotionDurationKey, PresenceMotion, PressAnimationPreset, ScrollDirection, UseControllableStateOptions, UsePressAnimationOptions, UsePressAnimationResult, UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, UseScrollDirectionOptions, UseScrollDirectionResult, UseToggleResult, } from "./hooks/index.js";
8
- export { FLICK_TOLERANCE, PRESENCE_REDUCE_MOTION, PRESS_ANIMATION_PRESETS, useControllableState, useDebounce, useFieldChain, useFlickGuard, usePresenceMotion, usePressAnimation, useReducedMotion, useRefreshControl, useScrollDirection, useToggle, } from "./hooks/index.js";
7
+ export { HookFormField, useHookFormField } from "./form/index.js";
8
+ export type { FieldChain, FieldChainProps, FieldErrorRegistry, MotionDurationKey, PresenceMotion, PressAnimationPreset, ScrollDirection, UseControllableStateOptions, UseFieldErrorScrollOptions, UseFieldErrorScrollResult, UsePressAnimationOptions, UsePressAnimationResult, UseRefreshControlLabels, UseRefreshControlOptions, UseRefreshControlResult, UseResendCountdownOptions, UseResendCountdownResult, UseScrollDirectionOptions, UseScrollDirectionResult, UseToggleResult, } from "./hooks/index.js";
9
+ export { useDebounce, useFieldChain, useRefreshControl, useScrollDirection } from "./hooks/index.js";
9
10
  export type { NetworkStatusBannerProps } from "./network/index.js";
10
11
  export { NetworkStatusBanner } from "./network/index.js";
11
12
  export type { BrandOverrides, ColorMode, ColorName, ColorSchemePreference, ComponentName, ComponentSettings, ComponentSizeTokens, ComponentTokens, DurationName, EaseName, FontFaces, FontName, FontWeightValue, GradientDefinition, GradientScale, IconRegistry, IconRenderer, KitThemeBridgeProps, LeadingName, LetterSpacingName, PhoneShadow, RadiusName, Resolved, ShadowName, SizeName, SpaceName, Spring, SpringScale, TextName, TextVariantSpec, Theme, ThemeProviderProps, ThemeSettings, TokenSet, WeightName, } from "./theme/index.js";
12
- export { COLOR_NAMES, DURATION_NAMES, darkTheme, EASE_NAMES, FONT_NAMES, KitThemeBridge, LEADING_NAMES, LETTER_SPACING_NAMES, lightTheme, makeStyles, mergeBrand, RADIUS_NAMES, radiusOf, resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, SHADOW_NAMES, SIZE_NAMES, SPACE_NAMES, spaceOf, TEXT_NAMES, ThemeProvider, textOf, useTheme, useThemeMode, WEIGHT_NAMES, } from "./theme/index.js";
13
+ export { KitThemeBridge, lightTheme, makeStyles, ThemeProvider, useTheme, useThemeMode } from "./theme/index.js";
13
14
  export type { FieldVariant, FillVariant, SelectionMode, Size, Tone, } from "./types/vocabulary.js";
14
15
  export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SquirclePathParams, } from "./utils/index.js";
15
- export { announce, Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps, } from "./utils/index.js";
16
+ export { setHapticImplementation, triggerHaptic } from "./utils/index.js";
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,5 @@ export type { DiscardGuardHandle, DiscardGuardLabels, DiscardGuardProps } from "
2
2
  export { DEFAULT_DISCARD_GUARD_LABELS, DiscardGuard } from "./DiscardGuard.js";
3
3
  export type { NavigationScreenKind, NavigationScreenProps } from "./NavigationScreen.js";
4
4
  export { NavigationScreen } from "./NavigationScreen.js";
5
+ export { useNavigationTheme } from "./useNavigationTheme.js";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The app's tokens in React Navigation's theme shape. Without it the container paints its light
3
+ * default behind every transition, which flashes white in dark mode.
4
+ */
5
+ import type { Theme } from "@react-navigation/native";
6
+ export declare const useNavigationTheme: () => Theme;
7
+ //# sourceMappingURL=useNavigationTheme.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, } from "./theme/index.js";
2
+ //# sourceMappingURL=sizes.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { squircleApplies, squircleHostRadius, squirclePath } from "./utils/index.js";
2
+ //# sourceMappingURL=squircle.d.ts.map
@@ -9,8 +9,8 @@ import { type HapticType } from "./hapticUtils.js";
9
9
  */
10
10
  export type FeedbackIntent = "tap" | "select" | "longPress" | "created" | "deleted" | "restored" | "toggledOn" | "toggledOff" | "succeeded" | "warned" | "failed";
11
11
  /**
12
- * Gate every intent from one place, so an app's "haptics" setting needs no
13
- * per-component plumbing.
12
+ * Gates `triggerHaptic` itself, so every caller is silenced by one setting: the
13
+ * library components and the app's own calls alike, not only these intents.
14
14
  */
15
15
  export declare const configureFeedback: (prefs: {
16
16
  haptics: boolean;
@@ -1,4 +1,6 @@
1
1
  export type HapticType = "selection" | "impactLight" | "impactMedium" | "impactHeavy" | "notificationSuccess" | "notificationWarning" | "notificationError" | "longPress" | "tick" | "denseTick" | "confirm" | "reject" | "gestureStart";
2
+ export declare const setHapticsEnabled: (enabled: boolean) => void;
3
+ export declare const isHapticsEnabled: () => boolean;
2
4
  export declare const triggerHaptic: (type?: HapticType) => void;
3
5
  /**
4
6
  * Replace the haptic backend. Intended for TESTS and for the showcase; an app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.128.0",
3
+ "version": "0.130.0",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -50,6 +50,36 @@
50
50
  "default": "./lib/commonjs/navigation/index.js"
51
51
  }
52
52
  },
53
+ "./sizes": {
54
+ "import": {
55
+ "types": "./lib/typescript/module/sizes.d.ts",
56
+ "default": "./lib/module/sizes.js"
57
+ },
58
+ "require": {
59
+ "types": "./lib/typescript/commonjs/sizes.d.ts",
60
+ "default": "./lib/commonjs/sizes.js"
61
+ }
62
+ },
63
+ "./squircle": {
64
+ "import": {
65
+ "types": "./lib/typescript/module/squircle.d.ts",
66
+ "default": "./lib/module/squircle.js"
67
+ },
68
+ "require": {
69
+ "types": "./lib/typescript/commonjs/squircle.d.ts",
70
+ "default": "./lib/commonjs/squircle.js"
71
+ }
72
+ },
73
+ "./icons": {
74
+ "import": {
75
+ "types": "./lib/typescript/module/icons.d.ts",
76
+ "default": "./lib/module/icons.js"
77
+ },
78
+ "require": {
79
+ "types": "./lib/typescript/commonjs/icons.d.ts",
80
+ "default": "./lib/commonjs/icons.js"
81
+ }
82
+ },
53
83
  "./canvas-kit/*": "./dist/canvas-kit/*",
54
84
  "./package.json": "./package.json"
55
85
  },
@@ -85,13 +115,13 @@
85
115
  }
86
116
  },
87
117
  "dependencies": {
88
- "@webority/markdown-core": "0.128.0"
118
+ "@webority/markdown-core": "0.130.0"
89
119
  },
90
120
  "peerDependencies": {
91
121
  "@react-navigation/bottom-tabs": ">=7.0.0",
92
122
  "@react-navigation/native": ">=7.0.0",
93
- "@webority/canvas-kit": "0.128.0",
94
- "@webority/mobile-core": "0.128.0",
123
+ "@webority/canvas-kit": "0.130.0",
124
+ "@webority/mobile-core": "0.130.0",
95
125
  "expo": ">=57.0.0",
96
126
  "expo-file-system": ">=57.0.0",
97
127
  "expo-haptics": ">=57.0.0",
@@ -155,10 +185,10 @@
155
185
  "@types/node": "25.6.0",
156
186
  "@types/react": "19.2.18",
157
187
  "@types/react-test-renderer": "19.1.0",
158
- "@webority/canvas-kit": "0.128.0",
159
- "@webority/mobile-core": "0.128.0",
188
+ "@webority/canvas-kit": "0.130.0",
189
+ "@webority/mobile-core": "0.130.0",
160
190
  "@webority/mobile-dev": "0.0.0",
161
- "@webority/tokens": "0.128.0",
191
+ "@webority/tokens": "0.130.0",
162
192
  "expo": "57.0.31",
163
193
  "expo-file-system": "57.0.7",
164
194
  "expo-haptics": "57.0.3",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNotationInk=exports.sym=exports.parseNotation=exports.default=exports.NotationInkContext=exports.Notation=void 0;var _react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_jsxRuntime=require("react/jsx-runtime");const SUBSCRIPTED=/(?<![A-Za-z0-9_])([A-Za-z])_([A-Za-z0-9]+)(?![A-Za-z0-9_])/g,parseNotation=t=>{const e=String(t??""),n=[];let o=0;for(const t of e.matchAll(SUBSCRIPTED)){const r=t.index??0;r>o&&n.push({text:e.slice(o,r)}),n.push({text:t[1],sub:t[2]}),o=r+t[0].length}return o<e.length&&n.push({text:e.slice(o)}),n};exports.parseNotation=parseNotation;const SUB_DROP=.4,NotationInkContext=exports.NotationInkContext=(0,_react.createContext)(null),useNotationInk=(t,e,n)=>{const o=_reactNative.StyleSheet.flatten(t),r=o?.fontSize??e,s=o?.color??n;return(0,_react.useMemo)(()=>({fontSize:r,color:s}),[r,s])};exports.useNotationInk=useNotationInk;const Subscript=({children:t,color:e})=>{const n=(0,_index.useTheme)(),o=(0,_react.useContext)(NotationInkContext),r=Math.round(.75*(o?.fontSize??n.text.sm.size));return(0,_jsxRuntime.jsx)(_reactNative.View,{style:{transform:[{translateY:Math.round(.4*r)}]},children:(0,_jsxRuntime.jsx)(_reactNative.Text,{maxFontSizeMultiplier:n.settings.maxFontSizeMultiplier,style:[styles.sub,{fontSize:r,lineHeight:r,color:e??o?.color??n.colors["text-body"],...(0,_index.fontFor)(n,"normal")}],children:t})})},renderNotation=(t,e)=>parseNotation(t).map((t,n)=>t.sub?(0,_jsxRuntime.jsxs)(_react.Fragment,{children:[t.text,(0,_jsxRuntime.jsx)(Subscript,{color:e,children:t.sub})]},n):(0,_jsxRuntime.jsx)(_react.Fragment,{children:t.text},n)),Notation=({text:t,base:e,sub:n,desc:o,color:r,testID:s})=>null!=e?(0,_jsxRuntime.jsxs)(_reactNative.Text,{testID:s,children:[e,n?(0,_jsxRuntime.jsx)(Subscript,{color:r,children:n}):null,o?` ${o}`:null]}):(0,_jsxRuntime.jsx)(_reactNative.Text,{testID:s,children:"string"==typeof t||null==t?renderNotation(t??"",r):t.map((t,e)=>"string"==typeof t?(0,_jsxRuntime.jsx)(_react.Fragment,{children:renderNotation(t,r)},e):(0,_jsxRuntime.jsx)(_react.Fragment,{children:t.verbatim},e))});exports.Notation=Notation;const sym=(t,e,n,o)=>(0,_jsxRuntime.jsx)(Notation,{base:t,sub:e,desc:n,color:o});exports.sym=sym;const styles=_reactNative.StyleSheet.create({sub:{includeFontPadding:!1}});var _default=exports.default=Notation;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Notation",{enumerable:!0,get:function(){return _Notation.Notation}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _Notation.default}}),Object.defineProperty(exports,"parseNotation",{enumerable:!0,get:function(){return _Notation.parseNotation}}),Object.defineProperty(exports,"sym",{enumerable:!0,get:function(){return _Notation.sym}});var cache,_Notation=_interopRequireWildcard(require("./Notation.js"));function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var r,o,n=Object.defineProperty,a={__proto__:null,default:e};if(Object(e)!==e)return a;if(cache||"function"!=typeof WeakMap||(cache=new WeakMap),cache){if(cache.has(e))return cache.get(e);cache.set(e,a)}for(o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((r=n&&Object.getOwnPropertyDescriptor(e,o))&&(r.get||r.set)?n(a,o,r):a[o]=e[o]);return a}
@@ -1 +0,0 @@
1
- "use strict";import{createContext,Fragment,useContext,useMemo}from"react";import{Text as RNText,StyleSheet,View}from"react-native";import{fontFor,useTheme}from"../../theme/index.js";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";const SUBSCRIPTED=/(?<![A-Za-z0-9_])([A-Za-z])_([A-Za-z0-9]+)(?![A-Za-z0-9_])/g;export const parseNotation=t=>{const e=String(t??""),o=[];let n=0;for(const t of e.matchAll(SUBSCRIPTED)){const s=t.index??0;s>n&&o.push({text:e.slice(n,s)}),o.push({text:t[1],sub:t[2]}),n=s+t[0].length}return n<e.length&&o.push({text:e.slice(n)}),o};const SUB_DROP=.4;export const NotationInkContext=createContext(null);export const useNotationInk=(t,e,o)=>{const n=StyleSheet.flatten(t),s=n?.fontSize??e,r=n?.color??o;return useMemo(()=>({fontSize:s,color:r}),[s,r])};const Subscript=({children:t,color:e})=>{const o=useTheme(),n=useContext(NotationInkContext),s=Math.round(.75*(n?.fontSize??o.text.sm.size));return _jsx(View,{style:{transform:[{translateY:Math.round(.4*s)}]},children:_jsx(RNText,{maxFontSizeMultiplier:o.settings.maxFontSizeMultiplier,style:[styles.sub,{fontSize:s,lineHeight:s,color:e??n?.color??o.colors["text-body"],...fontFor(o,"normal")}],children:t})})},renderNotation=(t,e)=>parseNotation(t).map((t,o)=>t.sub?_jsxs(Fragment,{children:[t.text,_jsx(Subscript,{color:e,children:t.sub})]},o):_jsx(Fragment,{children:t.text},o));export const Notation=({text:t,base:e,sub:o,desc:n,color:s,testID:r})=>null!=e?_jsxs(RNText,{testID:r,children:[e,o?_jsx(Subscript,{color:s,children:o}):null,n?` ${n}`:null]}):_jsx(RNText,{testID:r,children:"string"==typeof t||null==t?renderNotation(t??"",s):t.map((t,e)=>_jsx(Fragment,"string"==typeof t?{children:renderNotation(t,s)}:{children:t.verbatim},e))});export const sym=(t,e,o,n)=>_jsx(Notation,{base:t,sub:e,desc:o,color:n});const styles=StyleSheet.create({sub:{includeFontPadding:!1}});export default Notation;
@@ -1 +0,0 @@
1
- "use strict";export{default,Notation,parseNotation,sym}from"./Notation.js";
@@ -1,53 +0,0 @@
1
- import type React from "react";
2
- import type { ColorValue, StyleProp, TextStyle } from "react-native";
3
- export interface NotationRun {
4
- text: string;
5
- /** The subscript that follows `text`, when the run is a symbol. */
6
- sub?: string;
7
- }
8
- /**
9
- * One run of a `text` list: a string is ours and its `X_sub` symbols are subscripted; a
10
- * `{ verbatim }` run is stored text (a citation, a clause, an option name) printed exactly as given.
11
- */
12
- export type NotationTextRun = string | {
13
- verbatim: string;
14
- };
15
- export interface NotationProps {
16
- /**
17
- * Engine text where an underscore marks a subscript ("N_SG exceeds N_C"), or a list of runs that
18
- * mixes such text with verbatim stored text. Needs a parent Text.
19
- */
20
- text?: string | readonly NotationTextRun[];
21
- /** One symbol: the base, drawn with `sub` small and lowered after it. Needs a parent Text. */
22
- base?: string;
23
- sub?: string;
24
- /** Follows the symbol after a space. */
25
- desc?: string;
26
- /**
27
- * Subscript ink. Inside a field's or choice's label or message line it defaults to that line's
28
- * ink, elsewhere to `colors["text-body"]`; pass the parent's colour when it differs.
29
- */
30
- color?: string;
31
- testID?: string;
32
- }
33
- /** The text split into runs: `{ text }` for prose, `{ text, sub }` for a symbol and its subscript. */
34
- export declare const parseNotation: (text: string | null | undefined) => NotationRun[];
35
- /** The size and ink of the Text a Notation sits in, which the subscript's View cannot inherit. */
36
- export interface NotationInk {
37
- fontSize: number;
38
- color: ColorValue;
39
- }
40
- /**
41
- * Provided by a field's text lines (FieldLabel, the floating label, FieldMessage, the FormField
42
- * label, helper and error, and the Checkbox, Radio and Switch label, description and error) so a
43
- * subscript inside one scales and inks with that line.
44
- */
45
- export declare const NotationInkContext: React.Context<NotationInk | null>;
46
- /** The ink for a line's provider: the line's own `style` size and colour win over its defaults. */
47
- export declare const useNotationInk: (style: StyleProp<TextStyle>, fontSize: number, color: ColorValue) => NotationInk;
48
- /** A symbol of a standard with its subscript drawn small and lowered below the baseline. */
49
- export declare const Notation: React.FC<NotationProps>;
50
- /** A symbol as the standard prints it: `sym('C', 'IP')` is C with a small IP, then `desc` if given. */
51
- export declare const sym: (base: string, sub?: string, desc?: string, color?: string) => React.ReactElement;
52
- export default Notation;
53
- //# sourceMappingURL=Notation.d.ts.map
@@ -1,3 +0,0 @@
1
- export type { NotationProps, NotationRun, NotationTextRun } from "./Notation";
2
- export { default, Notation, parseNotation, sym } from "./Notation";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,53 +0,0 @@
1
- import type React from "react";
2
- import type { ColorValue, StyleProp, TextStyle } from "react-native";
3
- export interface NotationRun {
4
- text: string;
5
- /** The subscript that follows `text`, when the run is a symbol. */
6
- sub?: string;
7
- }
8
- /**
9
- * One run of a `text` list: a string is ours and its `X_sub` symbols are subscripted; a
10
- * `{ verbatim }` run is stored text (a citation, a clause, an option name) printed exactly as given.
11
- */
12
- export type NotationTextRun = string | {
13
- verbatim: string;
14
- };
15
- export interface NotationProps {
16
- /**
17
- * Engine text where an underscore marks a subscript ("N_SG exceeds N_C"), or a list of runs that
18
- * mixes such text with verbatim stored text. Needs a parent Text.
19
- */
20
- text?: string | readonly NotationTextRun[];
21
- /** One symbol: the base, drawn with `sub` small and lowered after it. Needs a parent Text. */
22
- base?: string;
23
- sub?: string;
24
- /** Follows the symbol after a space. */
25
- desc?: string;
26
- /**
27
- * Subscript ink. Inside a field's or choice's label or message line it defaults to that line's
28
- * ink, elsewhere to `colors["text-body"]`; pass the parent's colour when it differs.
29
- */
30
- color?: string;
31
- testID?: string;
32
- }
33
- /** The text split into runs: `{ text }` for prose, `{ text, sub }` for a symbol and its subscript. */
34
- export declare const parseNotation: (text: string | null | undefined) => NotationRun[];
35
- /** The size and ink of the Text a Notation sits in, which the subscript's View cannot inherit. */
36
- export interface NotationInk {
37
- fontSize: number;
38
- color: ColorValue;
39
- }
40
- /**
41
- * Provided by a field's text lines (FieldLabel, the floating label, FieldMessage, the FormField
42
- * label, helper and error, and the Checkbox, Radio and Switch label, description and error) so a
43
- * subscript inside one scales and inks with that line.
44
- */
45
- export declare const NotationInkContext: React.Context<NotationInk | null>;
46
- /** The ink for a line's provider: the line's own `style` size and colour win over its defaults. */
47
- export declare const useNotationInk: (style: StyleProp<TextStyle>, fontSize: number, color: ColorValue) => NotationInk;
48
- /** A symbol of a standard with its subscript drawn small and lowered below the baseline. */
49
- export declare const Notation: React.FC<NotationProps>;
50
- /** A symbol as the standard prints it: `sym('C', 'IP')` is C with a small IP, then `desc` if given. */
51
- export declare const sym: (base: string, sub?: string, desc?: string, color?: string) => React.ReactElement;
52
- export default Notation;
53
- //# sourceMappingURL=Notation.d.ts.map
@@ -1,3 +0,0 @@
1
- export type { NotationProps, NotationRun, NotationTextRun } from "./Notation.js";
2
- export { default, Notation, parseNotation, sym } from "./Notation.js";
3
- //# sourceMappingURL=index.d.ts.map