@webority/mobile-ui 0.88.0 → 0.89.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 (400) hide show
  1. package/README.md +2 -0
  2. package/lib/commonjs/canvasKit/index.js +1 -1
  3. package/lib/commonjs/canvasKit/meta.js +1 -0
  4. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  5. package/lib/commonjs/components/AmountSlider/AmountSlider.js +1 -1
  6. package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +1 -1
  7. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  8. package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
  9. package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
  10. package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
  11. package/lib/commonjs/components/Autocomplete/Autocomplete.js +1 -1
  12. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  13. package/lib/commonjs/components/Badge/Badge.js +1 -1
  14. package/lib/commonjs/components/Banner/Banner.js +1 -1
  15. package/lib/commonjs/components/BarChart/BarChart.js +1 -1
  16. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  17. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  18. package/lib/commonjs/components/Box/Box.js +1 -1
  19. package/lib/commonjs/components/Button/Button.js +1 -1
  20. package/lib/commonjs/components/Calendar/Calendar.js +1 -1
  21. package/lib/commonjs/components/Calendar/CalendarDay.js +1 -1
  22. package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
  23. package/lib/commonjs/components/Card/Card.js +1 -1
  24. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  25. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  26. package/lib/commonjs/components/Chip/Chip.js +1 -1
  27. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  28. package/lib/commonjs/components/Composer/Composer.js +1 -1
  29. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  30. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  31. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  32. package/lib/commonjs/components/DateSeparator/DateSeparator.js +1 -1
  33. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  34. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  35. package/lib/commonjs/components/Divider/Divider.js +1 -1
  36. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  37. package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
  38. package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js +1 -1
  39. package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
  40. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  41. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  42. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  43. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  44. package/lib/commonjs/components/FileViewer/FileViewer.js +1 -1
  45. package/lib/commonjs/components/FilterChipRow/FilterChipRow.js +1 -1
  46. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  47. package/lib/commonjs/components/FormField/FormField.js +1 -1
  48. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  49. package/lib/commonjs/components/IconButton/IconButton.js +1 -1
  50. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  51. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  52. package/lib/commonjs/components/Input/Input.js +1 -1
  53. package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
  54. package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
  55. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  56. package/lib/commonjs/components/LoaderOverlay/LoaderOverlay.js +1 -1
  57. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  58. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  59. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
  60. package/lib/commonjs/components/MessageList/MessageList.js +1 -1
  61. package/lib/commonjs/components/Modal/Modal.js +1 -1
  62. package/lib/commonjs/components/Notation/Notation.js +1 -1
  63. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  64. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  65. package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -1
  66. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  67. package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -1
  68. package/lib/commonjs/components/PermissionPrompt/PermissionPrompt.js +1 -1
  69. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  70. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
  71. package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
  72. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  73. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  74. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  75. package/lib/commonjs/components/Radio/Radio.js +1 -1
  76. package/lib/commonjs/components/Radio/RadioDot.js +1 -1
  77. package/lib/commonjs/components/Rating/Rating.js +1 -1
  78. package/lib/commonjs/components/Repeater/Repeater.js +1 -1
  79. package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
  80. package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
  81. package/lib/commonjs/components/Screen/Screen.js +1 -1
  82. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  83. package/lib/commonjs/components/SearchBar/SearchPanel.js +1 -1
  84. package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
  85. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  86. package/lib/commonjs/components/Select/Select.js +1 -1
  87. package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
  88. package/lib/commonjs/components/Skeleton/Skeleton.js +1 -1
  89. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  90. package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
  91. package/lib/commonjs/components/Slider/Slider.js +1 -1
  92. package/lib/commonjs/components/Slider/valueText.js +1 -1
  93. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  94. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  95. package/lib/commonjs/components/Spinner/Spinner.js +1 -1
  96. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  97. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  98. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  99. package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
  100. package/lib/commonjs/components/Switch/Switch.js +1 -1
  101. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  102. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  103. package/lib/commonjs/components/Text/Text.js +1 -1
  104. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  105. package/lib/commonjs/components/Timeline/Timeline.js +1 -1
  106. package/lib/commonjs/components/Toast/Toast.js +1 -1
  107. package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
  108. package/lib/commonjs/components/Tooltip/RichTooltipBody.js +1 -1
  109. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  110. package/lib/commonjs/components/Tour/Tour.js +1 -1
  111. package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -1
  112. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  113. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
  114. package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
  115. package/lib/commonjs/hooks/usePressAnimation.js +1 -1
  116. package/lib/commonjs/hooks/useRefreshControl.js +1 -1
  117. package/lib/commonjs/index.js +1 -1
  118. package/lib/commonjs/initUI.js +1 -1
  119. package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
  120. package/lib/commonjs/theme/ThemeContext.js +1 -1
  121. package/lib/commonjs/theme/componentSizes.js +1 -1
  122. package/lib/commonjs/theme/index.js +1 -1
  123. package/lib/commonjs/theme/merge.js +1 -1
  124. package/lib/commonjs/theme/scale.js +1 -1
  125. package/lib/commonjs/theme/textStyle.js +1 -1
  126. package/lib/commonjs/theme/tokens.generated.js +1 -0
  127. package/lib/commonjs/theme/tokens.js +1 -1
  128. package/lib/commonjs/utils/color.js +1 -1
  129. package/lib/module/canvasKit/index.js +1 -1
  130. package/lib/module/canvasKit/meta.js +1 -0
  131. package/lib/module/components/Accordion/Accordion.js +1 -1
  132. package/lib/module/components/AmountSlider/AmountSlider.js +1 -1
  133. package/lib/module/components/AnimatePresence/AnimatePresence.js +1 -1
  134. package/lib/module/components/AppBar/AppBar.js +1 -1
  135. package/lib/module/components/AppIcon/AppIcon.js +1 -1
  136. package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
  137. package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
  138. package/lib/module/components/Autocomplete/Autocomplete.js +1 -1
  139. package/lib/module/components/Avatar/Avatar.js +1 -1
  140. package/lib/module/components/Badge/Badge.js +1 -1
  141. package/lib/module/components/Banner/Banner.js +1 -1
  142. package/lib/module/components/BarChart/BarChart.js +1 -1
  143. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  144. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  145. package/lib/module/components/Box/Box.js +1 -1
  146. package/lib/module/components/Button/Button.js +1 -1
  147. package/lib/module/components/Calendar/Calendar.js +1 -1
  148. package/lib/module/components/Calendar/CalendarDay.js +1 -1
  149. package/lib/module/components/Calendar/calendarStyles.js +1 -1
  150. package/lib/module/components/Card/Card.js +1 -1
  151. package/lib/module/components/Carousel/Carousel.js +1 -1
  152. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  153. package/lib/module/components/Chip/Chip.js +1 -1
  154. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  155. package/lib/module/components/Composer/Composer.js +1 -1
  156. package/lib/module/components/Confetti/Confetti.js +1 -1
  157. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  158. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  159. package/lib/module/components/DateSeparator/DateSeparator.js +1 -1
  160. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  161. package/lib/module/components/Dialog/Dialog.js +1 -1
  162. package/lib/module/components/Divider/Divider.js +1 -1
  163. package/lib/module/components/Drawer/Drawer.js +1 -1
  164. package/lib/module/components/EmptyState/EmptyState.js +1 -1
  165. package/lib/module/components/ErrorBoundary/ErrorBoundary.js +1 -1
  166. package/lib/module/components/FieldBase/Chevron.js +1 -1
  167. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  168. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  169. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  170. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  171. package/lib/module/components/FileViewer/FileViewer.js +1 -1
  172. package/lib/module/components/FilterChipRow/FilterChipRow.js +1 -1
  173. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  174. package/lib/module/components/FormField/FormField.js +1 -1
  175. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  176. package/lib/module/components/IconButton/IconButton.js +1 -1
  177. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  178. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  179. package/lib/module/components/Input/Input.js +1 -1
  180. package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
  181. package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
  182. package/lib/module/components/ListItem/ListItem.js +1 -1
  183. package/lib/module/components/LoaderOverlay/LoaderOverlay.js +1 -1
  184. package/lib/module/components/Markdown/Markdown.js +1 -1
  185. package/lib/module/components/Menu/MenuSurface.js +1 -1
  186. package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
  187. package/lib/module/components/MessageList/MessageList.js +1 -1
  188. package/lib/module/components/Modal/Modal.js +1 -1
  189. package/lib/module/components/Notation/Notation.js +1 -1
  190. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  191. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  192. package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -1
  193. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  194. package/lib/module/components/PaymentResult/PaymentResult.js +1 -1
  195. package/lib/module/components/PermissionPrompt/PermissionPrompt.js +1 -1
  196. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  197. package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
  198. package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
  199. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  200. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  201. package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
  202. package/lib/module/components/Radio/Radio.js +1 -1
  203. package/lib/module/components/Radio/RadioDot.js +1 -1
  204. package/lib/module/components/Rating/Rating.js +1 -1
  205. package/lib/module/components/Repeater/Repeater.js +1 -1
  206. package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
  207. package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
  208. package/lib/module/components/Screen/Screen.js +1 -1
  209. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  210. package/lib/module/components/SearchBar/SearchPanel.js +1 -1
  211. package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
  212. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  213. package/lib/module/components/Select/Select.js +1 -1
  214. package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
  215. package/lib/module/components/Skeleton/Skeleton.js +1 -1
  216. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  217. package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
  218. package/lib/module/components/Slider/Slider.js +1 -1
  219. package/lib/module/components/Slider/valueText.js +1 -1
  220. package/lib/module/components/SliderField/SliderField.js +1 -1
  221. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  222. package/lib/module/components/Spinner/Spinner.js +1 -1
  223. package/lib/module/components/StatTile/StatTile.js +1 -1
  224. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  225. package/lib/module/components/Stepper/Stepper.js +1 -1
  226. package/lib/module/components/Swipeable/Swipeable.js +1 -1
  227. package/lib/module/components/Switch/Switch.js +1 -1
  228. package/lib/module/components/Tabs/Tabs.js +1 -1
  229. package/lib/module/components/TagInput/TagInput.js +1 -1
  230. package/lib/module/components/Text/Text.js +1 -1
  231. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  232. package/lib/module/components/Timeline/Timeline.js +1 -1
  233. package/lib/module/components/Toast/Toast.js +1 -1
  234. package/lib/module/components/Toast/ToastProvider.js +1 -1
  235. package/lib/module/components/Tooltip/RichTooltipBody.js +1 -1
  236. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  237. package/lib/module/components/Tour/Tour.js +1 -1
  238. package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -1
  239. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  240. package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
  241. package/lib/module/hooks/useDragToDismiss.js +1 -1
  242. package/lib/module/hooks/usePressAnimation.js +1 -1
  243. package/lib/module/hooks/useRefreshControl.js +1 -1
  244. package/lib/module/index.js +1 -1
  245. package/lib/module/initUI.js +1 -1
  246. package/lib/module/network/NetworkStatusBanner.js +1 -1
  247. package/lib/module/theme/ThemeContext.js +1 -1
  248. package/lib/module/theme/componentSizes.js +1 -1
  249. package/lib/module/theme/index.js +1 -1
  250. package/lib/module/theme/merge.js +1 -1
  251. package/lib/module/theme/scale.js +1 -1
  252. package/lib/module/theme/textStyle.js +1 -1
  253. package/lib/module/theme/tokens.generated.js +1 -0
  254. package/lib/module/theme/tokens.js +1 -1
  255. package/lib/module/utils/color.js +1 -1
  256. package/lib/typescript/commonjs/canvasKit/meta.d.ts +32 -0
  257. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +1 -1
  258. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +1 -1
  259. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
  260. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +1 -1
  261. package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +1 -1
  262. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +4 -4
  263. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +1 -1
  264. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +1 -1
  265. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +1 -1
  266. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +8 -10
  267. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -2
  268. package/lib/typescript/commonjs/components/Box/Box.d.ts +21 -21
  269. package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -3
  270. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +1 -1
  271. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +9 -9
  272. package/lib/typescript/commonjs/components/Card/Card.d.ts +7 -6
  273. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +1 -1
  274. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +1 -1
  275. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
  276. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +2 -2
  277. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
  278. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +32 -33
  279. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +2 -3
  280. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  281. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -3
  282. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +1 -1
  283. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
  284. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -3
  285. package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
  286. package/lib/typescript/commonjs/components/Notation/Notation.d.ts +1 -1
  287. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +2 -2
  288. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +2 -3
  289. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
  290. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +5 -6
  291. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
  292. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +6 -7
  293. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +1 -1
  294. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -1
  295. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -4
  296. package/lib/typescript/commonjs/components/Select/Select.d.ts +5 -5
  297. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +2 -2
  298. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
  299. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +6 -7
  300. package/lib/typescript/commonjs/components/Slider/valueText.d.ts +1 -1
  301. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +1 -1
  302. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -3
  303. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +2 -2
  304. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +1 -1
  305. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +6 -7
  306. package/lib/typescript/commonjs/components/Text/Text.d.ts +6 -7
  307. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +1 -1
  308. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +1 -1
  309. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +2 -2
  310. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
  311. package/lib/typescript/commonjs/hooks/usePresenceMotion.d.ts +2 -2
  312. package/lib/typescript/commonjs/index.d.ts +2 -2
  313. package/lib/typescript/commonjs/initUI.d.ts +3 -3
  314. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -3
  315. package/lib/typescript/commonjs/theme/componentSizes.d.ts +40 -18
  316. package/lib/typescript/commonjs/theme/index.d.ts +15 -17
  317. package/lib/typescript/commonjs/theme/merge.d.ts +15 -2
  318. package/lib/typescript/commonjs/theme/scale.d.ts +6 -4
  319. package/lib/typescript/commonjs/theme/textStyle.d.ts +4 -17
  320. package/lib/typescript/commonjs/theme/tokens.generated.d.ts +362 -0
  321. package/lib/typescript/commonjs/theme/types.d.ts +104 -347
  322. package/lib/typescript/commonjs/utils/color.d.ts +6 -2
  323. package/lib/typescript/commonjs/utils/shadows.d.ts +2 -2
  324. package/lib/typescript/module/canvasKit/meta.d.ts +32 -0
  325. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +1 -1
  326. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +1 -1
  327. package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
  328. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +1 -1
  329. package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +1 -1
  330. package/lib/typescript/module/components/Avatar/Avatar.d.ts +4 -4
  331. package/lib/typescript/module/components/Badge/Badge.d.ts +1 -1
  332. package/lib/typescript/module/components/Banner/Banner.d.ts +1 -1
  333. package/lib/typescript/module/components/BarChart/BarChart.d.ts +1 -1
  334. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +8 -10
  335. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -2
  336. package/lib/typescript/module/components/Box/Box.d.ts +21 -21
  337. package/lib/typescript/module/components/Button/Button.d.ts +3 -3
  338. package/lib/typescript/module/components/Calendar/Calendar.d.ts +1 -1
  339. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +9 -9
  340. package/lib/typescript/module/components/Card/Card.d.ts +7 -6
  341. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +1 -1
  342. package/lib/typescript/module/components/Chip/Chip.d.ts +1 -1
  343. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
  344. package/lib/typescript/module/components/Dialog/Dialog.d.ts +2 -2
  345. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
  346. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +32 -33
  347. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +2 -3
  348. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  349. package/lib/typescript/module/components/FormField/FormField.d.ts +2 -3
  350. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +1 -1
  351. package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
  352. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -3
  353. package/lib/typescript/module/components/Input/Input.d.ts +2 -2
  354. package/lib/typescript/module/components/Notation/Notation.d.ts +1 -1
  355. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +2 -2
  356. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +2 -3
  357. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
  358. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +5 -6
  359. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
  360. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +6 -7
  361. package/lib/typescript/module/components/Radio/Radio.d.ts +1 -1
  362. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -1
  363. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -4
  364. package/lib/typescript/module/components/Select/Select.d.ts +5 -5
  365. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +2 -2
  366. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
  367. package/lib/typescript/module/components/Slider/Slider.d.ts +6 -7
  368. package/lib/typescript/module/components/Slider/valueText.d.ts +1 -1
  369. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +1 -1
  370. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -3
  371. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +2 -2
  372. package/lib/typescript/module/components/Switch/Switch.d.ts +1 -1
  373. package/lib/typescript/module/components/Tabs/Tabs.d.ts +6 -7
  374. package/lib/typescript/module/components/Text/Text.d.ts +6 -7
  375. package/lib/typescript/module/components/Timeline/Timeline.d.ts +1 -1
  376. package/lib/typescript/module/components/Toast/Toast.d.ts +1 -1
  377. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +2 -2
  378. package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
  379. package/lib/typescript/module/hooks/usePresenceMotion.d.ts +2 -2
  380. package/lib/typescript/module/index.d.ts +2 -2
  381. package/lib/typescript/module/initUI.d.ts +3 -3
  382. package/lib/typescript/module/theme/ThemeContext.d.ts +5 -3
  383. package/lib/typescript/module/theme/componentSizes.d.ts +40 -18
  384. package/lib/typescript/module/theme/index.d.ts +15 -17
  385. package/lib/typescript/module/theme/merge.d.ts +15 -2
  386. package/lib/typescript/module/theme/scale.d.ts +6 -4
  387. package/lib/typescript/module/theme/textStyle.d.ts +4 -17
  388. package/lib/typescript/module/theme/tokens.generated.d.ts +362 -0
  389. package/lib/typescript/module/theme/types.d.ts +104 -347
  390. package/lib/typescript/module/utils/color.d.ts +6 -2
  391. package/lib/typescript/module/utils/shadows.d.ts +2 -2
  392. package/package.json +14 -15
  393. package/lib/commonjs/theme/componentTokens.js +0 -1
  394. package/lib/commonjs/theme/retiredThemeKeys.js +0 -1
  395. package/lib/module/theme/componentTokens.js +0 -1
  396. package/lib/module/theme/retiredThemeKeys.js +0 -1
  397. package/lib/typescript/commonjs/theme/componentTokens.d.ts +0 -762
  398. package/lib/typescript/commonjs/theme/retiredThemeKeys.d.ts +0 -22
  399. package/lib/typescript/module/theme/componentTokens.d.ts +0 -762
  400. package/lib/typescript/module/theme/retiredThemeKeys.d.ts +0 -22
@@ -1,7 +1,7 @@
1
1
  import type React from "react";
2
- import type { TextStyle, ViewStyle } from "react-native";
3
- import type { ComponentTokens } from "./componentTokens.js";
4
- export type ColorMode = "light" | "dark";
2
+ import type { TextStyle } from "react-native";
3
+ import type { ColorName, FontFaces, FontName, LetterSpacingName, RadiusName, TextName, TokenSet, WeightName } from "./tokens.generated.js";
4
+ export type ColorMode = TokenSet["mode"];
5
5
  /**
6
6
  * A linear gradient definition used by Button, Card and consumer components.
7
7
  * `colors` must have at least 2 entries. `start`/`end` are unit vectors in a
@@ -20,7 +20,7 @@ export interface GradientDefinition {
20
20
  };
21
21
  }
22
22
  export interface GradientScale {
23
- /** Brand-primary gradient — used by `Button gradient` and `Card gradient="primary"`. */
23
+ /** Brand-primary gradient: used by `Button gradient` and `Card gradient="primary"`. */
24
24
  primary?: GradientDefinition;
25
25
  /** Secondary brand gradient. */
26
26
  secondary?: GradientDefinition;
@@ -29,298 +29,10 @@ export interface GradientScale {
29
29
  /** Free-form named gradients. Consumer extends as needed. */
30
30
  [key: string]: GradientDefinition | undefined;
31
31
  }
32
- export interface ColorPalette {
33
- primary: string;
34
- primaryHover: string;
35
- primaryPressed: string;
36
- primaryMuted: string;
37
- secondary: string;
38
- secondaryHover: string;
39
- success: string;
40
- warning: string;
41
- error: string;
42
- info: string;
43
- /**
44
- * Foreground (text/icon) colour to render ON a solid fill of each semantic
45
- * tone. Solid Button / Badge / Chip / Banner backgrounds read these instead
46
- * of assuming `text.inverse` (white) — white-on-pale (notably `warning`
47
- * amber) fails contrast. Library defaults use white on the light scheme's
48
- * primary/success/error/info and dark ink on `warning` and on every dark
49
- * scheme tone, each pair at 4.5:1 or more, and `text.primary` for the
50
- * surface-like `secondary` tone. A brand that overrides a tone colour (or
51
- * its `on*` ink) gets the FILL moved, in its own hue, until the pair reads
52
- * at 4.5:1 (`mergeTheme`); override per-brand to match your palette's
53
- * luminance.
54
- */
55
- onPrimary: string;
56
- /** Text and icons on a filled neutral surface. */
57
- onNeutral: string;
58
- onSecondary: string;
59
- onSuccess: string;
60
- onWarning: string;
61
- onError: string;
62
- onInfo: string;
63
- /** Ink on a scrim (`background.overlay`), which is dark in both schemes. */
64
- onOverlay: string;
65
- /**
66
- * Each tone as TEXT, on the page surfaces and on that tone's own soft tint
67
- * (14% of the tone). The tone colours above are fills: `warning` amber and
68
- * `success` green sit near 2:1 as small text on a light page. These hold
69
- * 4.5:1 against every `background.*` and the soft tint in both schemes, in
70
- * the tone's own hue. Every component that draws a tone as text (soft and
71
- * outline `StatusBadge`, `Banner`, `Chip`, `Button` soft / outline / ghost
72
- * labels, `Avatar` initials on a tint, a field's required marker, the
73
- * `FormField` hint and `ErrorBoundary` text) reads them. A brand that
74
- * overrides a tone colour overrides its ink too.
75
- */
76
- toneText: {
77
- primary: string;
78
- success: string;
79
- warning: string;
80
- error: string;
81
- info: string;
82
- };
83
- text: {
84
- primary: string;
85
- secondary: string;
86
- tertiary: string;
87
- inverse: string;
88
- /** Emphasis ink for labels and lead-in lines that sit above body text. */
89
- strong: string;
90
- disabled: string;
91
- link: string;
92
- };
93
- background: {
94
- primary: string;
95
- secondary: string;
96
- tertiary: string;
97
- elevated: string;
98
- overlay: string;
99
- inverse: string;
100
- };
101
- border: {
102
- primary: string;
103
- secondary: string;
104
- focus: string;
105
- error: string;
106
- /**
107
- * Global outline thickness shared by every input-style control —
108
- * Input, SearchBar, Select, OTPInput, Checkbox, Radio, outlined Card,
109
- * outline Chip, Avatar border, outline Button, etc. Library default: 1.5.
110
- * Component-specific tokens (e.g. `theme.components.input.borderWidth`)
111
- * still win when set.
112
- */
113
- width: number;
114
- };
115
- /**
116
- * The field family's own palette — Input, Select, SearchBar, NumberInput,
117
- * PhoneNumberInput, the picker triggers: everything that composes
118
- * FieldBase. Kept apart from the brand tones because a field's resting fill,
119
- * hairline border and focus ring are a quieter set than `primary` /
120
- * `border.focus` (the design spec draws the focus ring in a soft blue while
121
- * buttons stay on the brand colour). Each key names the state it paints.
122
- */
123
- field: {
124
- /** Resting fill (idle, empty or filled alike). */
125
- background: string;
126
- /** Fill while focused. */
127
- backgroundFocused: string;
128
- /** Fill while disabled. */
129
- backgroundDisabled: string;
130
- /** Resting hairline border (outlined box, underline rule, leading-icon divider). */
131
- border: string;
132
- /** Border while focused. */
133
- borderFocused: string;
134
- /** Border while in error. */
135
- borderError: string;
136
- /** Static label above the field. Stays put across focus/error. */
137
- label: string;
138
- /** Typed value. */
139
- text: string;
140
- /** Typed value while disabled; the spec dims it to the disabled placeholder ink. */
141
- textDisabled: string;
142
- /** Placeholder while enabled. */
143
- placeholder: string;
144
- /** Placeholder while disabled. */
145
- placeholderDisabled: string;
146
- /** Leading / trailing icon while idle. */
147
- icon: string;
148
- /** Leading / trailing icon while focused. */
149
- iconFocused: string;
150
- /** Leading / trailing icon while disabled. */
151
- iconDisabled: string;
152
- /** Caret and text-selection tint. */
153
- caret: string;
154
- /** Error message text and its glyph below the field. */
155
- message: string;
156
- };
157
- surface: {
158
- pressed: string;
159
- hovered: string;
160
- selected: string;
161
- disabled: string;
162
- };
163
- /**
164
- * A frosted control on a coloured or gradient surface: the `glass` variant
165
- * of Button and IconButton (a "Switch" pill on a brand-colour card, a back
166
- * button over a hero image). The surface under it is the brand colour in
167
- * both colour schemes, so unlike every other group these values are the
168
- * SAME in the light and dark themes. Bound to `text.inverse` they would
169
- * flip with the scheme and put near-white ink on a pale fill in dark mode.
170
- * A brand whose gradients are pale overrides the group.
171
- */
172
- glass: {
173
- /** Translucent white fill; the surface shows through it. */
174
- fill: string;
175
- /** Specular rim, a step brighter than the fill, so the box has an edge. */
176
- border: string;
177
- /** Label and icon ink on the fill. */
178
- on: string;
179
- /** Opaque disc behind a badged slot icon (`Button leftIconBadge`). */
180
- badge: string;
181
- };
182
- skeleton: {
183
- background: string;
184
- highlight: string;
185
- };
186
- /**
187
- * Fixed hue set Avatar hashes a user's name against to pick an initials
188
- * background — same index always resolves to the same colour for a given
189
- * name. Light/dark themes each tune the 8 hues for contrast against their
190
- * own surface; the hues themselves stay recognisably paired across modes.
191
- */
192
- avatarPalette: readonly string[];
193
- }
194
- export interface FontFamilyScale {
195
- /** Font family for normal-weight text. Falls back to platform system font when undefined. */
196
- regular?: string;
197
- medium?: string;
198
- semibold?: string;
199
- bold?: string;
200
- /**
201
- * The title face (a serif, say). The built-in `display`, `h1`, `h2` and
202
- * `title` `Text` variants, and a registered variant with
203
- * `fontFamily: 'display'`, draw in it; when unset they use the weight faces
204
- * above. It is one face: the variant's weight is not sent alongside it, so
205
- * register the weight you want as this face.
206
- */
207
- display?: string;
208
- }
209
- export interface TypographyScale {
210
- fontSize: {
211
- xs: number;
212
- sm: number;
213
- base: number;
214
- lg: number;
215
- xl: number;
216
- "2xl": number;
217
- "3xl": number;
218
- "4xl": number;
219
- };
220
- fontWeight: {
221
- normal: TextStyle["fontWeight"];
222
- medium: TextStyle["fontWeight"];
223
- semibold: TextStyle["fontWeight"];
224
- bold: TextStyle["fontWeight"];
225
- };
226
- /**
227
- * Optional brand font families. When set, library text components prefer
228
- * `fontFamily.<weight>` over `fontWeight.<weight>` to match the consumer
229
- * app's typeface. Each key is independently optional — leave undefined to
230
- * fall back to the system font for that weight.
231
- */
232
- fontFamily?: FontFamilyScale;
233
- lineHeight: {
234
- tight: number;
235
- normal: number;
236
- relaxed: number;
237
- };
238
- letterSpacing: {
239
- tight: number;
240
- normal: number;
241
- wide: number;
242
- };
243
- }
244
- export interface SpacingScale {
245
- none: 0;
246
- xxs: number;
247
- xs: number;
248
- sm: number;
249
- md: number;
250
- lg: number;
251
- xl: number;
252
- "2xl": number;
253
- "3xl": number;
254
- "4xl": number;
255
- }
256
- export interface RadiusScale {
257
- none: 0;
258
- sm: number;
259
- md: number;
260
- lg: number;
261
- xl: number;
262
- pill: 9999;
263
- }
264
- export type SpacingKey = keyof SpacingScale;
265
- export type FontSizeKey = keyof TypographyScale["fontSize"];
266
- export type RadiusKey = keyof RadiusScale;
267
- export interface ShadowDefinition {
268
- shadowColor: string;
269
- shadowOffset: {
270
- width: number;
271
- height: number;
272
- };
273
- shadowOpacity: number;
274
- shadowRadius: number;
275
- elevation: number;
276
- }
277
- export interface ShadowScale {
278
- none: ViewStyle;
279
- xs: ShadowDefinition;
280
- sm: ShadowDefinition;
281
- md: ShadowDefinition;
282
- lg: ShadowDefinition;
283
- xl: ShadowDefinition;
284
- "2xl": ShadowDefinition;
285
- }
286
- export interface MotionScale {
287
- duration: {
288
- instant: number;
289
- fast: number;
290
- normal: number;
291
- slow: number;
292
- slower: number;
293
- };
294
- easing: {
295
- standard: readonly [number, number, number, number];
296
- accelerate: readonly [number, number, number, number];
297
- decelerate: readonly [number, number, number, number];
298
- sharp: readonly [number, number, number, number];
299
- };
300
- spring: {
301
- gentle: {
302
- damping: number;
303
- stiffness: number;
304
- mass: number;
305
- };
306
- bouncy: {
307
- damping: number;
308
- stiffness: number;
309
- mass: number;
310
- };
311
- snappy: {
312
- damping: number;
313
- stiffness: number;
314
- mass: number;
315
- };
316
- };
317
- /** Length in ms of the opacity fade that replaces movement under Reduce Motion. Never collapsed. */
318
- fadeDuration: number;
319
- }
320
- export type * from "./componentTokens.js";
32
+ export type * from "./tokens.generated.js";
321
33
  /**
322
34
  * Renderer signature for theme-level icons. Each registry entry receives a
323
- * pixel `size` and a `color` and returns whatever JSX the consumer wants —
35
+ * pixel `size` and a `color` and returns whatever JSX the consumer wants -
324
36
  * an SVG, a vector-icons glyph, an Image, an emoji-wrapped Text, anything.
325
37
  */
326
38
  export type IconRenderer = (props: {
@@ -331,21 +43,21 @@ export type IconRenderer = (props: {
331
43
  * Theme-level icon registry. Library components read from this when they
332
44
  * need to render an icon internally (Input password toggle, SearchBar
333
45
  * magnifier/clear, ImageGallery close, etc.). Consumers provide the
334
- * implementations — the library ships with no icon dependency.
46
+ * implementations: the library ships with no icon dependency.
335
47
  *
336
- * Slots default to `undefined` — if a slot is missing the library renders
48
+ * Slots default to `undefined`: if a slot is missing the library renders
337
49
  * a small text/SVG fallback (or nothing, depending on the call site).
338
50
  */
339
51
  export interface IconRegistry {
340
- /** Magnifier icon — SearchBar leading slot when no `leftIcon` prop. */
52
+ /** Magnifier icon: SearchBar leading slot when no `leftIcon` prop. */
341
53
  search?: IconRenderer;
342
- /** Close/dismiss icon — SearchBar clear, ImageGallery close, etc. */
54
+ /** Close/dismiss icon: SearchBar clear, ImageGallery close, etc. */
343
55
  close?: IconRenderer;
344
- /** Show-password icon — Input password toggle (visible state). */
56
+ /** Show-password icon: Input password toggle (visible state). */
345
57
  eye?: IconRenderer;
346
- /** Hide-password icon — Input password toggle (masked state). */
58
+ /** Hide-password icon: Input password toggle (masked state). */
347
59
  eyeOff?: IconRenderer;
348
- /** Paperclip/attachment icon — FilePicker trigger. Text-only trigger when unset. */
60
+ /** Paperclip/attachment icon: FilePicker trigger. Text-only trigger when unset. */
349
61
  attachment?: IconRenderer;
350
62
  /**
351
63
  * Circled-exclamation glyph drawn before a field's error message. When
@@ -367,34 +79,97 @@ export interface IconRegistry {
367
79
  */
368
80
  selectedTick?: IconRenderer;
369
81
  }
370
- /**
371
- * An app's own text style, registered under a name in `theme.textVariants` and
372
- * used as `<Text variant="cardTitle">`. Sizes, line heights and letter spacing
373
- * take a typography token or a raw number.
374
- */
375
82
  export interface TextVariantSpec {
376
- size: keyof TypographyScale["fontSize"] | number;
377
- weight?: keyof TypographyScale["fontWeight"];
378
- /** Pixels, or a `typography.lineHeight` token (a multiple of the size). Omitted: the font's own metrics decide. */
379
- lineHeight?: number | keyof TypographyScale["lineHeight"];
380
- /** A text role, semantic tone or raw colour. Defaults to `primary`. */
381
- color?: string;
83
+ size: TextName;
84
+ weight?: WeightName;
85
+ /** Line height in px; when unset the variant takes its text step's own line height. */
86
+ lineHeight?: number;
87
+ color?: ColorName;
382
88
  uppercase?: boolean;
383
- /** Pixels, or a `typography.letterSpacing` token. */
384
- letterSpacing?: number | keyof TypographyScale["letterSpacing"];
89
+ letterSpacing?: LetterSpacingName;
385
90
  italic?: boolean;
386
91
  fontVariant?: TextStyle["fontVariant"];
387
- /** `'display'` draws the variant in `typography.fontFamily.display` when the theme sets it; otherwise the weight faces. */
388
92
  fontFamily?: "display";
389
- /** Announce text in this variant as a heading (accessibilityRole header). */
390
93
  heading?: boolean;
391
94
  }
392
- export interface Theme {
393
- mode: ColorMode;
394
- colors: ColorPalette;
395
- typography: TypographyScale;
396
- spacing: SpacingScale;
397
- radius: RadiusScale;
95
+ export type FieldVariant = "outlined" | "filled" | "underline";
96
+ type ToneValue = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
97
+ export interface ComponentSettings {
98
+ field?: {
99
+ defaultVariant?: FieldVariant;
100
+ requiredMarker?: string;
101
+ };
102
+ input?: {
103
+ defaultVariant?: FieldVariant;
104
+ defaultLabelMode?: "float" | "top";
105
+ tintLabelOnFocus?: boolean;
106
+ shakeOnError?: boolean;
107
+ };
108
+ "search-bar"?: {
109
+ defaultVariant?: FieldVariant;
110
+ };
111
+ select?: {
112
+ defaultVariant?: FieldVariant;
113
+ };
114
+ "otp-input"?: {
115
+ shakeOnError?: boolean;
116
+ };
117
+ "option-sheet"?: {
118
+ selectedMarker?: "dot" | "icon";
119
+ };
120
+ "profile-picker"?: {
121
+ defaultTone?: ToneValue;
122
+ defaultVariant?: "solid" | "soft" | "outline";
123
+ defaultAvatarTone?: ToneValue | "secondary";
124
+ };
125
+ slider?: {
126
+ thumbPressAnimation?: boolean;
127
+ };
128
+ rating?: {
129
+ pulseOnPress?: boolean;
130
+ };
131
+ stepper?: {
132
+ pulseAnimation?: boolean;
133
+ };
134
+ tooltip?: {
135
+ enableScaleAnimation?: boolean;
136
+ };
137
+ toast?: {
138
+ enableSwipeDismiss?: boolean;
139
+ defaultDurationMs?: number;
140
+ };
141
+ }
142
+ export interface ThemeSettings {
143
+ icons?: IconRegistry;
144
+ gradients?: GradientScale;
145
+ textVariants?: Record<string, TextVariantSpec>;
146
+ maxFontSizeMultiplier?: number;
147
+ components?: ComponentSettings;
148
+ }
149
+ /** A product's brand, generated by `webority brand` as theme/generated/brand.phone.js. Never spacing, text or component sizes. */
150
+ export interface BrandOverrides {
151
+ colors?: {
152
+ light?: Partial<Record<ColorName, string>>;
153
+ dark?: Partial<Record<ColorName, string>>;
154
+ };
155
+ radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number>>;
156
+ font?: Partial<Record<FontName, FontFaces>>;
157
+ }
158
+ export interface Spring {
159
+ damping: number;
160
+ stiffness: number;
161
+ mass: number;
162
+ }
163
+ export interface SpringScale {
164
+ gentle: Spring;
165
+ bouncy: Spring;
166
+ snappy: Spring;
167
+ }
168
+ export interface Theme extends Omit<TokenSet, "motion"> {
169
+ motion: TokenSet["motion"] & {
170
+ spring: SpringScale;
171
+ fadeDuration: number;
172
+ };
398
173
  /**
399
174
  * Corner smoothing of the squircle Android draws behind Button, Card,
400
175
  * fields, Box and the other smooth-cornered hosts: 0 is a plain rounded
@@ -403,30 +178,12 @@ export interface Theme {
403
178
  * `SQUIRCLE_SMOOTHING` (0.6, Figma's "iOS" preset).
404
179
  */
405
180
  cornerSmoothing: number;
406
- shadows: ShadowScale;
407
- motion: MotionScale;
408
- components: ComponentTokens;
409
- /** Theme-level icon registry — see {@link IconRegistry}. */
410
- icons?: IconRegistry;
411
- /**
412
- * Optional brand gradient palette. Empty by default — consumers register
413
- * their own via theme overrides. Components that accept gradient inputs
414
- * (Button, Card) read from here when consumers pass a string token, OR
415
- * accept a `GradientDefinition` literal directly.
416
- */
417
- gradients: GradientScale;
418
- /** The app's own `Text` variants, by name. A built-in variant name always wins. */
419
- textVariants?: Record<string, TextVariantSpec>;
420
- /**
421
- * Upper bound on how far system font scaling grows any `Text`, as
422
- * `maxFontSizeMultiplier`. Unset leaves React Native's default (no cap).
423
- * A `maxFontSizeMultiplier` on the `Text` itself wins. Set it through
424
- * ThemeProvider `lightOverrides` and `darkOverrides`.
425
- */
426
- maxFontSizeMultiplier?: number;
181
+ settings: {
182
+ icons: IconRegistry;
183
+ gradients: GradientScale;
184
+ textVariants: Record<string, TextVariantSpec>;
185
+ maxFontSizeMultiplier?: number;
186
+ components: ComponentSettings;
187
+ };
427
188
  }
428
- export type DeepPartial<T> = T extends object ? {
429
- [K in keyof T]?: DeepPartial<T[K]>;
430
- } : T;
431
- export type ThemeOverrides = DeepPartial<Theme>;
432
189
  //# sourceMappingURL=types.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The tint a pressed control paints over a fill in one of the theme's accent
3
- * colours (primary, success, warning, error). The theme's own
4
- * `surface.pressed` is meant for its surfaces: a dark wash in the light
3
+ * colours (primary, success, warning, danger). The theme's own
4
+ * `surface-pressed` colour is meant for its surfaces: a dark wash in the light
5
5
  * theme and a WHITE wash in the dark theme, which on a coloured fill reads
6
6
  * as the control flashing white. A coloured fill darkens on press in either
7
7
  * theme, so this is fixed rather than themed.
@@ -14,6 +14,10 @@ export declare const ACCENT_PRESSED_TINT = "rgba(0, 0, 0, 0.12)";
14
14
  * caller sets to the nearest flat theme surface.
15
15
  */
16
16
  export declare const tintOf: (color: string, opacity: number, fallback: string) => string;
17
+ /** `color` with its alpha replaced by `alpha`, as `rgba()`; null when `color` is not hex or rgb(). */
18
+ export declare const withAlpha: (color: string, alpha: number) => string | null;
19
+ /** `color` fully transparent, the start of a fade that keeps its hue; "transparent" when `color` cannot be read. */
20
+ export declare const transparentOf: (color: string) => string;
17
21
  /**
18
22
  * The OPAQUE colour of `color` at `opacity` laid over `over`: what `tintOf`
19
23
  * would look like on that surface, as a flat `#RRGGBB`. For a tint that sits
@@ -1,6 +1,6 @@
1
1
  import type { ViewStyle } from "react-native";
2
- import type { ShadowScale } from "../theme/types.js";
3
- export declare const shadowStyle: (shadows: ShadowScale, level: keyof ShadowScale) => ViewStyle;
2
+ import type { ShadowName, Theme } from "../theme/types.js";
3
+ export declare const shadowStyle: (shadows: Theme["shadow"], level: ShadowName) => ViewStyle;
4
4
  /**
5
5
  * Whether this platform draws a `boxShadow`. Android paints an outset box
6
6
  * shadow only from API 28; below that the style is ignored, so a caller
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.88.0",
3
+ "version": "0.89.0",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -40,16 +40,6 @@
40
40
  "default": "./lib/commonjs/canvasKit/index.js"
41
41
  }
42
42
  },
43
- "./retired-theme-keys": {
44
- "import": {
45
- "types": "./lib/typescript/module/theme/retiredThemeKeys.d.ts",
46
- "default": "./lib/module/theme/retiredThemeKeys.js"
47
- },
48
- "require": {
49
- "types": "./lib/typescript/commonjs/theme/retiredThemeKeys.d.ts",
50
- "default": "./lib/commonjs/theme/retiredThemeKeys.js"
51
- }
52
- },
53
43
  "./package.json": "./package.json"
54
44
  },
55
45
  "main": "./lib/commonjs/index.js",
@@ -93,9 +83,14 @@
93
83
  "react-native-safe-area-context": ">=5.4.0",
94
84
  "react-native-svg": ">=15.0.0",
95
85
  "react-native-worklets": ">=0.10.0",
96
- "@webority/mobile-core": "0.88.0"
86
+ "@webority/canvas-kit": "0.89.0",
87
+ "@webority/mobile-core": "0.89.0"
88
+ },
89
+ "peerDependenciesMeta": {
90
+ "@webority/canvas-kit": {
91
+ "optional": true
92
+ }
97
93
  },
98
- "peerDependenciesMeta": {},
99
94
  "publishConfig": {
100
95
  "access": "public",
101
96
  "registry": "https://registry.npmjs.org/"
@@ -150,8 +145,10 @@
150
145
  "react-test-renderer": "19.2.8",
151
146
  "rimraf": "6.1.3",
152
147
  "typescript": "5.9.3",
153
- "@webority/mobile-core": "0.88.0",
154
- "@webority/mobile-dev": "0.0.0"
148
+ "@webority/canvas-kit": "0.89.0",
149
+ "@webority/mobile-dev": "0.0.0",
150
+ "@webority/mobile-core": "0.89.0",
151
+ "@webority/tokens": "0.89.0"
155
152
  },
156
153
  "scripts": {
157
154
  "build": "bob build && node ../mobile-dev/scripts/minify-lib.mjs",
@@ -159,6 +156,8 @@
159
156
  "lint": "biome lint ./src",
160
157
  "lint:fix": "biome lint --write ./src",
161
158
  "test": "jest",
159
+ "tokens": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --phone src/theme/tokens.generated.ts",
160
+ "tokens:check": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --phone src/theme/tokens.generated.ts --check",
162
161
  "typecheck": "tsc --noEmit"
163
162
  }
164
163
  }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RETIRED_THEME_KEYS_RELEASE=exports.RETIRED_THEME_KEYS=void 0;const RETIRED_THEME_KEYS_RELEASE=exports.RETIRED_THEME_KEYS_RELEASE="0.19.0",sized=(e,n)=>Object.entries(n).map(([n,[i,o]])=>({path:`components.${e}.<size>.${n}`,to:i,...o?{scale:o}:{}})),gone=(e,n)=>({path:e,to:null,hint:n}),renamed=(e,n,i)=>({path:e,to:n,...i?{scale:i}:{}}),RETIRED_THEME_KEYS=exports.RETIRED_THEME_KEYS=[...sized("button",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0]}),...sized("field",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0],labelFontSize:["labelText","fontSize"],messageFontSize:["messageText","fontSize"]}),...sized("badge",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"]}),...sized("chip",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],closeFontSize:["closeText","fontSize"],iconSize:["icon",void 0]}),...sized("emptyState",{iconSize:["icon",void 0],titleFontSize:["titleText","fontSize"],descriptionFontSize:["descriptionText","fontSize"],paddingVertical:["paddingY","spacing"]}),...sized("listItem",{paddingVertical:["paddingY","spacing"],titleFontSize:["titleText","fontSize"],subtitleFontSize:["subtitleText","fontSize"]}),...sized("otpInput",{fontSize:["text","fontSize"],borderRadius:["radius","radius"]}),...sized("segmentedControl",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"],iconSize:["icon",void 0]}),...sized("tabs",{fontSize:["text","fontSize"],paddingVertical:["paddingY","spacing"],paddingHorizontal:["paddingX","spacing"],scrollablePaddingHorizontal:["scrollablePaddingX","spacing"],iconSize:["icon",void 0]}),renamed("components.searchBar.<size>.borderRadius","radius","radius"),gone("components.searchBar.<size>.minHeight","set components.field.<size>.minHeight"),gone("components.searchBar.<size>.paddingHorizontal","set components.field.<size>.paddingX"),gone("components.searchBar.<size>.fontSize","set components.field.<size>.text"),gone("components.searchBar.<size>.iconSize","set components.field.<size>.icon"),gone("components.input.<size>","set components.field.<size>"),gone("components.input.borderRadius","set components.field.<size>.radius"),gone("components.select.borderRadius","set components.field.<size>.radius"),gone("components.phoneNumberInput","set components.field.<size>"),renamed("components.accordion.cardPaddingVertical","cardPaddingY","spacing"),renamed("components.appBar.badgePaddingHorizontal","badgePaddingX","spacing"),renamed("components.appBar.badgeFontSize","badgeText","fontSize"),renamed("components.avatar.fontSize","text","fontSize"),renamed("components.banner.iconGlyphFontSize","iconGlyphText","fontSize"),renamed("components.banner.closeGlyphFontSize","closeGlyphText","fontSize"),renamed("components.banner.actionButtonPaddingHorizontal","actionButtonPaddingX","spacing"),renamed("components.banner.actionButtonPaddingVertical","actionButtonPaddingY","spacing"),gone("components.banner.iconCircleRadius","the icon circle is always round"),gone("components.banner.closeButtonRadius","the close button is always round"),renamed("components.bottomNavigation.borderRadius","radius","radius"),renamed("components.choiceGroup.borderRadius","radius","radius"),renamed("components.datePicker.navTextFontSize","navText","fontSize"),renamed("components.datePicker.dayInnerBorderRadius","dayInnerRadius","radius"),renamed("components.datePicker.yearInnerBorderRadius","yearInnerRadius","radius"),renamed("components.dateRangePicker.navTextFontSize","navText","fontSize"),gone("components.dialog.iconWrapperBorderRadius","the icon disc is always round"),renamed("components.filePicker.borderRadius","radius","radius"),renamed("components.tabs.tabIconSpacing","iconGap","spacing"),gone("components.tabs.tabPaddingHorizontal","set components.tabs.<size>.paddingX"),gone("components.tabs.tabPaddingVertical","set components.tabs.<size>.paddingY"),gone("components.tabs.tabIconSize","set components.tabs.<size>.icon"),renamed("components.toast.iconGlyphFontSize","iconGlyphText","fontSize"),gone("components.toast.iconCircleBorderRadius","the icon circle is always round"),renamed("radius.full","pill"),gone("radius.xs","use sm, or none"),gone("radius.2xl","use xl")];
@@ -1 +0,0 @@
1
- "use strict";export{};
@@ -1 +0,0 @@
1
- "use strict";export const RETIRED_THEME_KEYS_RELEASE="0.19.0";const sized=(e,n)=>Object.entries(n).map(([n,[i,o]])=>({path:`components.${e}.<size>.${n}`,to:i,...o?{scale:o}:{}})),gone=(e,n)=>({path:e,to:null,hint:n}),renamed=(e,n,i)=>({path:e,to:n,...i?{scale:i}:{}});export const RETIRED_THEME_KEYS=[...sized("button",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0]}),...sized("field",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0],labelFontSize:["labelText","fontSize"],messageFontSize:["messageText","fontSize"]}),...sized("badge",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"]}),...sized("chip",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],closeFontSize:["closeText","fontSize"],iconSize:["icon",void 0]}),...sized("emptyState",{iconSize:["icon",void 0],titleFontSize:["titleText","fontSize"],descriptionFontSize:["descriptionText","fontSize"],paddingVertical:["paddingY","spacing"]}),...sized("listItem",{paddingVertical:["paddingY","spacing"],titleFontSize:["titleText","fontSize"],subtitleFontSize:["subtitleText","fontSize"]}),...sized("otpInput",{fontSize:["text","fontSize"],borderRadius:["radius","radius"]}),...sized("segmentedControl",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"],iconSize:["icon",void 0]}),...sized("tabs",{fontSize:["text","fontSize"],paddingVertical:["paddingY","spacing"],paddingHorizontal:["paddingX","spacing"],scrollablePaddingHorizontal:["scrollablePaddingX","spacing"],iconSize:["icon",void 0]}),renamed("components.searchBar.<size>.borderRadius","radius","radius"),gone("components.searchBar.<size>.minHeight","set components.field.<size>.minHeight"),gone("components.searchBar.<size>.paddingHorizontal","set components.field.<size>.paddingX"),gone("components.searchBar.<size>.fontSize","set components.field.<size>.text"),gone("components.searchBar.<size>.iconSize","set components.field.<size>.icon"),gone("components.input.<size>","set components.field.<size>"),gone("components.input.borderRadius","set components.field.<size>.radius"),gone("components.select.borderRadius","set components.field.<size>.radius"),gone("components.phoneNumberInput","set components.field.<size>"),renamed("components.accordion.cardPaddingVertical","cardPaddingY","spacing"),renamed("components.appBar.badgePaddingHorizontal","badgePaddingX","spacing"),renamed("components.appBar.badgeFontSize","badgeText","fontSize"),renamed("components.avatar.fontSize","text","fontSize"),renamed("components.banner.iconGlyphFontSize","iconGlyphText","fontSize"),renamed("components.banner.closeGlyphFontSize","closeGlyphText","fontSize"),renamed("components.banner.actionButtonPaddingHorizontal","actionButtonPaddingX","spacing"),renamed("components.banner.actionButtonPaddingVertical","actionButtonPaddingY","spacing"),gone("components.banner.iconCircleRadius","the icon circle is always round"),gone("components.banner.closeButtonRadius","the close button is always round"),renamed("components.bottomNavigation.borderRadius","radius","radius"),renamed("components.choiceGroup.borderRadius","radius","radius"),renamed("components.datePicker.navTextFontSize","navText","fontSize"),renamed("components.datePicker.dayInnerBorderRadius","dayInnerRadius","radius"),renamed("components.datePicker.yearInnerBorderRadius","yearInnerRadius","radius"),renamed("components.dateRangePicker.navTextFontSize","navText","fontSize"),gone("components.dialog.iconWrapperBorderRadius","the icon disc is always round"),renamed("components.filePicker.borderRadius","radius","radius"),renamed("components.tabs.tabIconSpacing","iconGap","spacing"),gone("components.tabs.tabPaddingHorizontal","set components.tabs.<size>.paddingX"),gone("components.tabs.tabPaddingVertical","set components.tabs.<size>.paddingY"),gone("components.tabs.tabIconSize","set components.tabs.<size>.icon"),renamed("components.toast.iconGlyphFontSize","iconGlyphText","fontSize"),gone("components.toast.iconCircleBorderRadius","the icon circle is always round"),renamed("radius.full","pill"),gone("radius.xs","use sm, or none"),gone("radius.2xl","use xl")];