@webority/mobile-ui 0.88.1 → 0.90.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 (396) hide show
  1. package/README.md +2 -0
  2. package/lib/commonjs/canvasKit/index.js +1 -1
  3. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  4. package/lib/commonjs/components/AmountSlider/AmountSlider.js +1 -1
  5. package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +1 -1
  6. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  7. package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
  8. package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
  9. package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
  10. package/lib/commonjs/components/Autocomplete/Autocomplete.js +1 -1
  11. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  12. package/lib/commonjs/components/Badge/Badge.js +1 -1
  13. package/lib/commonjs/components/Banner/Banner.js +1 -1
  14. package/lib/commonjs/components/BarChart/BarChart.js +1 -1
  15. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  16. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  17. package/lib/commonjs/components/Box/Box.js +1 -1
  18. package/lib/commonjs/components/Button/Button.js +1 -1
  19. package/lib/commonjs/components/Calendar/Calendar.js +1 -1
  20. package/lib/commonjs/components/Calendar/CalendarDay.js +1 -1
  21. package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
  22. package/lib/commonjs/components/Card/Card.js +1 -1
  23. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  24. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  25. package/lib/commonjs/components/Chip/Chip.js +1 -1
  26. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  27. package/lib/commonjs/components/Composer/Composer.js +1 -1
  28. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  29. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  30. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  31. package/lib/commonjs/components/DateSeparator/DateSeparator.js +1 -1
  32. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  33. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  34. package/lib/commonjs/components/Divider/Divider.js +1 -1
  35. package/lib/commonjs/components/Drawer/Drawer.js +1 -1
  36. package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
  37. package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js +1 -1
  38. package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
  39. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  40. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  41. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  42. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  43. package/lib/commonjs/components/FileViewer/FileViewer.js +1 -1
  44. package/lib/commonjs/components/FilterChipRow/FilterChipRow.js +1 -1
  45. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  46. package/lib/commonjs/components/FormField/FormField.js +1 -1
  47. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  48. package/lib/commonjs/components/IconButton/IconButton.js +1 -1
  49. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  50. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  51. package/lib/commonjs/components/Input/Input.js +1 -1
  52. package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
  53. package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
  54. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  55. package/lib/commonjs/components/LoaderOverlay/LoaderOverlay.js +1 -1
  56. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  57. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  58. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
  59. package/lib/commonjs/components/MessageList/MessageList.js +1 -1
  60. package/lib/commonjs/components/Modal/Modal.js +1 -1
  61. package/lib/commonjs/components/Notation/Notation.js +1 -1
  62. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  63. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  64. package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -1
  65. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  66. package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -1
  67. package/lib/commonjs/components/PermissionPrompt/PermissionPrompt.js +1 -1
  68. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  69. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
  70. package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
  71. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  72. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  73. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  74. package/lib/commonjs/components/Radio/Radio.js +1 -1
  75. package/lib/commonjs/components/Radio/RadioDot.js +1 -1
  76. package/lib/commonjs/components/Rating/Rating.js +1 -1
  77. package/lib/commonjs/components/Repeater/Repeater.js +1 -1
  78. package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
  79. package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
  80. package/lib/commonjs/components/Screen/Screen.js +1 -1
  81. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  82. package/lib/commonjs/components/SearchBar/SearchPanel.js +1 -1
  83. package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
  84. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  85. package/lib/commonjs/components/Select/Select.js +1 -1
  86. package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
  87. package/lib/commonjs/components/Skeleton/Skeleton.js +1 -1
  88. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  89. package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
  90. package/lib/commonjs/components/Slider/Slider.js +1 -1
  91. package/lib/commonjs/components/Slider/valueText.js +1 -1
  92. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  93. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  94. package/lib/commonjs/components/Spinner/Spinner.js +1 -1
  95. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  96. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  97. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  98. package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
  99. package/lib/commonjs/components/Switch/Switch.js +1 -1
  100. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  101. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  102. package/lib/commonjs/components/Text/Text.js +1 -1
  103. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  104. package/lib/commonjs/components/Timeline/Timeline.js +1 -1
  105. package/lib/commonjs/components/Toast/Toast.js +1 -1
  106. package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
  107. package/lib/commonjs/components/Tooltip/RichTooltipBody.js +1 -1
  108. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  109. package/lib/commonjs/components/Tour/Tour.js +1 -1
  110. package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -1
  111. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  112. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
  113. package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
  114. package/lib/commonjs/hooks/usePressAnimation.js +1 -1
  115. package/lib/commonjs/hooks/useRefreshControl.js +1 -1
  116. package/lib/commonjs/index.js +1 -1
  117. package/lib/commonjs/initUI.js +1 -1
  118. package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
  119. package/lib/commonjs/theme/ThemeContext.js +1 -1
  120. package/lib/commonjs/theme/componentSizes.js +1 -1
  121. package/lib/commonjs/theme/index.js +1 -1
  122. package/lib/commonjs/theme/merge.js +1 -1
  123. package/lib/commonjs/theme/scale.js +1 -1
  124. package/lib/commonjs/theme/textStyle.js +1 -1
  125. package/lib/commonjs/theme/tokens.generated.js +1 -1
  126. package/lib/commonjs/theme/tokens.js +1 -1
  127. package/lib/commonjs/utils/color.js +1 -1
  128. package/lib/module/canvasKit/index.js +1 -1
  129. package/lib/module/components/Accordion/Accordion.js +1 -1
  130. package/lib/module/components/AmountSlider/AmountSlider.js +1 -1
  131. package/lib/module/components/AnimatePresence/AnimatePresence.js +1 -1
  132. package/lib/module/components/AppBar/AppBar.js +1 -1
  133. package/lib/module/components/AppIcon/AppIcon.js +1 -1
  134. package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
  135. package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
  136. package/lib/module/components/Autocomplete/Autocomplete.js +1 -1
  137. package/lib/module/components/Avatar/Avatar.js +1 -1
  138. package/lib/module/components/Badge/Badge.js +1 -1
  139. package/lib/module/components/Banner/Banner.js +1 -1
  140. package/lib/module/components/BarChart/BarChart.js +1 -1
  141. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  142. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  143. package/lib/module/components/Box/Box.js +1 -1
  144. package/lib/module/components/Button/Button.js +1 -1
  145. package/lib/module/components/Calendar/Calendar.js +1 -1
  146. package/lib/module/components/Calendar/CalendarDay.js +1 -1
  147. package/lib/module/components/Calendar/calendarStyles.js +1 -1
  148. package/lib/module/components/Card/Card.js +1 -1
  149. package/lib/module/components/Carousel/Carousel.js +1 -1
  150. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  151. package/lib/module/components/Chip/Chip.js +1 -1
  152. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  153. package/lib/module/components/Composer/Composer.js +1 -1
  154. package/lib/module/components/Confetti/Confetti.js +1 -1
  155. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  156. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  157. package/lib/module/components/DateSeparator/DateSeparator.js +1 -1
  158. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  159. package/lib/module/components/Dialog/Dialog.js +1 -1
  160. package/lib/module/components/Divider/Divider.js +1 -1
  161. package/lib/module/components/Drawer/Drawer.js +1 -1
  162. package/lib/module/components/EmptyState/EmptyState.js +1 -1
  163. package/lib/module/components/ErrorBoundary/ErrorBoundary.js +1 -1
  164. package/lib/module/components/FieldBase/Chevron.js +1 -1
  165. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  166. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  167. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  168. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  169. package/lib/module/components/FileViewer/FileViewer.js +1 -1
  170. package/lib/module/components/FilterChipRow/FilterChipRow.js +1 -1
  171. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  172. package/lib/module/components/FormField/FormField.js +1 -1
  173. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  174. package/lib/module/components/IconButton/IconButton.js +1 -1
  175. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  176. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  177. package/lib/module/components/Input/Input.js +1 -1
  178. package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
  179. package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
  180. package/lib/module/components/ListItem/ListItem.js +1 -1
  181. package/lib/module/components/LoaderOverlay/LoaderOverlay.js +1 -1
  182. package/lib/module/components/Markdown/Markdown.js +1 -1
  183. package/lib/module/components/Menu/MenuSurface.js +1 -1
  184. package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
  185. package/lib/module/components/MessageList/MessageList.js +1 -1
  186. package/lib/module/components/Modal/Modal.js +1 -1
  187. package/lib/module/components/Notation/Notation.js +1 -1
  188. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  189. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  190. package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -1
  191. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  192. package/lib/module/components/PaymentResult/PaymentResult.js +1 -1
  193. package/lib/module/components/PermissionPrompt/PermissionPrompt.js +1 -1
  194. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  195. package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
  196. package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
  197. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  198. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  199. package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
  200. package/lib/module/components/Radio/Radio.js +1 -1
  201. package/lib/module/components/Radio/RadioDot.js +1 -1
  202. package/lib/module/components/Rating/Rating.js +1 -1
  203. package/lib/module/components/Repeater/Repeater.js +1 -1
  204. package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
  205. package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
  206. package/lib/module/components/Screen/Screen.js +1 -1
  207. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  208. package/lib/module/components/SearchBar/SearchPanel.js +1 -1
  209. package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
  210. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  211. package/lib/module/components/Select/Select.js +1 -1
  212. package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
  213. package/lib/module/components/Skeleton/Skeleton.js +1 -1
  214. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  215. package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
  216. package/lib/module/components/Slider/Slider.js +1 -1
  217. package/lib/module/components/Slider/valueText.js +1 -1
  218. package/lib/module/components/SliderField/SliderField.js +1 -1
  219. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  220. package/lib/module/components/Spinner/Spinner.js +1 -1
  221. package/lib/module/components/StatTile/StatTile.js +1 -1
  222. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  223. package/lib/module/components/Stepper/Stepper.js +1 -1
  224. package/lib/module/components/Swipeable/Swipeable.js +1 -1
  225. package/lib/module/components/Switch/Switch.js +1 -1
  226. package/lib/module/components/Tabs/Tabs.js +1 -1
  227. package/lib/module/components/TagInput/TagInput.js +1 -1
  228. package/lib/module/components/Text/Text.js +1 -1
  229. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  230. package/lib/module/components/Timeline/Timeline.js +1 -1
  231. package/lib/module/components/Toast/Toast.js +1 -1
  232. package/lib/module/components/Toast/ToastProvider.js +1 -1
  233. package/lib/module/components/Tooltip/RichTooltipBody.js +1 -1
  234. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  235. package/lib/module/components/Tour/Tour.js +1 -1
  236. package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -1
  237. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  238. package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
  239. package/lib/module/hooks/useDragToDismiss.js +1 -1
  240. package/lib/module/hooks/usePressAnimation.js +1 -1
  241. package/lib/module/hooks/useRefreshControl.js +1 -1
  242. package/lib/module/index.js +1 -1
  243. package/lib/module/initUI.js +1 -1
  244. package/lib/module/network/NetworkStatusBanner.js +1 -1
  245. package/lib/module/theme/ThemeContext.js +1 -1
  246. package/lib/module/theme/componentSizes.js +1 -1
  247. package/lib/module/theme/index.js +1 -1
  248. package/lib/module/theme/merge.js +1 -1
  249. package/lib/module/theme/scale.js +1 -1
  250. package/lib/module/theme/textStyle.js +1 -1
  251. package/lib/module/theme/tokens.generated.js +1 -1
  252. package/lib/module/theme/tokens.js +1 -1
  253. package/lib/module/utils/color.js +1 -1
  254. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +1 -1
  255. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +1 -1
  256. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
  257. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +1 -1
  258. package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +1 -1
  259. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +4 -4
  260. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +1 -1
  261. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +1 -1
  262. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +1 -1
  263. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +8 -10
  264. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -2
  265. package/lib/typescript/commonjs/components/Box/Box.d.ts +21 -21
  266. package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -3
  267. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +1 -1
  268. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +9 -9
  269. package/lib/typescript/commonjs/components/Card/Card.d.ts +7 -6
  270. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +1 -1
  271. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +1 -1
  272. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
  273. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +2 -2
  274. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
  275. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +32 -33
  276. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +2 -3
  277. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  278. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -3
  279. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +1 -1
  280. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
  281. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -3
  282. package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
  283. package/lib/typescript/commonjs/components/Notation/Notation.d.ts +1 -1
  284. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +2 -2
  285. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +2 -3
  286. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
  287. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +5 -6
  288. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
  289. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +6 -7
  290. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +1 -1
  291. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -1
  292. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -4
  293. package/lib/typescript/commonjs/components/Select/Select.d.ts +5 -5
  294. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +2 -2
  295. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
  296. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +6 -7
  297. package/lib/typescript/commonjs/components/Slider/valueText.d.ts +1 -1
  298. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +1 -1
  299. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -3
  300. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +2 -2
  301. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +1 -1
  302. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +6 -7
  303. package/lib/typescript/commonjs/components/Text/Text.d.ts +6 -7
  304. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +1 -1
  305. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +1 -1
  306. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +2 -2
  307. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
  308. package/lib/typescript/commonjs/hooks/usePresenceMotion.d.ts +2 -2
  309. package/lib/typescript/commonjs/index.d.ts +2 -2
  310. package/lib/typescript/commonjs/initUI.d.ts +3 -3
  311. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -3
  312. package/lib/typescript/commonjs/theme/componentSizes.d.ts +40 -18
  313. package/lib/typescript/commonjs/theme/index.d.ts +15 -17
  314. package/lib/typescript/commonjs/theme/merge.d.ts +15 -2
  315. package/lib/typescript/commonjs/theme/scale.d.ts +6 -4
  316. package/lib/typescript/commonjs/theme/textStyle.d.ts +4 -17
  317. package/lib/typescript/commonjs/theme/tokens.generated.d.ts +239 -92
  318. package/lib/typescript/commonjs/theme/types.d.ts +104 -347
  319. package/lib/typescript/commonjs/utils/color.d.ts +6 -2
  320. package/lib/typescript/commonjs/utils/shadows.d.ts +2 -2
  321. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +1 -1
  322. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +1 -1
  323. package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
  324. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +1 -1
  325. package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +1 -1
  326. package/lib/typescript/module/components/Avatar/Avatar.d.ts +4 -4
  327. package/lib/typescript/module/components/Badge/Badge.d.ts +1 -1
  328. package/lib/typescript/module/components/Banner/Banner.d.ts +1 -1
  329. package/lib/typescript/module/components/BarChart/BarChart.d.ts +1 -1
  330. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +8 -10
  331. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -2
  332. package/lib/typescript/module/components/Box/Box.d.ts +21 -21
  333. package/lib/typescript/module/components/Button/Button.d.ts +3 -3
  334. package/lib/typescript/module/components/Calendar/Calendar.d.ts +1 -1
  335. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +9 -9
  336. package/lib/typescript/module/components/Card/Card.d.ts +7 -6
  337. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +1 -1
  338. package/lib/typescript/module/components/Chip/Chip.d.ts +1 -1
  339. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
  340. package/lib/typescript/module/components/Dialog/Dialog.d.ts +2 -2
  341. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
  342. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +32 -33
  343. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +2 -3
  344. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  345. package/lib/typescript/module/components/FormField/FormField.d.ts +2 -3
  346. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +1 -1
  347. package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
  348. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -3
  349. package/lib/typescript/module/components/Input/Input.d.ts +2 -2
  350. package/lib/typescript/module/components/Notation/Notation.d.ts +1 -1
  351. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +2 -2
  352. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +2 -3
  353. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
  354. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +5 -6
  355. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
  356. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +6 -7
  357. package/lib/typescript/module/components/Radio/Radio.d.ts +1 -1
  358. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -1
  359. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -4
  360. package/lib/typescript/module/components/Select/Select.d.ts +5 -5
  361. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +2 -2
  362. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
  363. package/lib/typescript/module/components/Slider/Slider.d.ts +6 -7
  364. package/lib/typescript/module/components/Slider/valueText.d.ts +1 -1
  365. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +1 -1
  366. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -3
  367. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +2 -2
  368. package/lib/typescript/module/components/Switch/Switch.d.ts +1 -1
  369. package/lib/typescript/module/components/Tabs/Tabs.d.ts +6 -7
  370. package/lib/typescript/module/components/Text/Text.d.ts +6 -7
  371. package/lib/typescript/module/components/Timeline/Timeline.d.ts +1 -1
  372. package/lib/typescript/module/components/Toast/Toast.d.ts +1 -1
  373. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +2 -2
  374. package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
  375. package/lib/typescript/module/hooks/usePresenceMotion.d.ts +2 -2
  376. package/lib/typescript/module/index.d.ts +2 -2
  377. package/lib/typescript/module/initUI.d.ts +3 -3
  378. package/lib/typescript/module/theme/ThemeContext.d.ts +5 -3
  379. package/lib/typescript/module/theme/componentSizes.d.ts +40 -18
  380. package/lib/typescript/module/theme/index.d.ts +15 -17
  381. package/lib/typescript/module/theme/merge.d.ts +15 -2
  382. package/lib/typescript/module/theme/scale.d.ts +6 -4
  383. package/lib/typescript/module/theme/textStyle.d.ts +4 -17
  384. package/lib/typescript/module/theme/tokens.generated.d.ts +239 -92
  385. package/lib/typescript/module/theme/types.d.ts +104 -347
  386. package/lib/typescript/module/utils/color.d.ts +6 -2
  387. package/lib/typescript/module/utils/shadows.d.ts +2 -2
  388. package/package.json +8 -15
  389. package/lib/commonjs/theme/componentTokens.js +0 -1
  390. package/lib/commonjs/theme/retiredThemeKeys.js +0 -1
  391. package/lib/module/theme/componentTokens.js +0 -1
  392. package/lib/module/theme/retiredThemeKeys.js +0 -1
  393. package/lib/typescript/commonjs/theme/componentTokens.d.ts +0 -762
  394. package/lib/typescript/commonjs/theme/retiredThemeKeys.d.ts +0 -22
  395. package/lib/typescript/module/theme/componentTokens.d.ts +0 -762
  396. package/lib/typescript/module/theme/retiredThemeKeys.d.ts +0 -22
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { ScrollDirection } from "../../hooks/useScrollDirection.js";
4
- import type { ShadowScale } from "../../theme/types.js";
4
+ import type { ShadowName } from "../../theme/types.js";
5
5
  import type { HapticType } from "../../utils/index.js";
6
6
  import type { SlotIcon, SlotIconState } from "../AppIcon/index.js";
7
7
  /**
@@ -35,7 +35,7 @@ export type BottomNavigationRadius = number | "pill";
35
35
  */
36
36
  export type BottomNavigationIndicatorRadius = number | "auto";
37
37
  /** Shadow under the bar surface: a theme shadow level, or `none`. */
38
- export type BottomNavigationElevation = keyof ShadowScale;
38
+ export type BottomNavigationElevation = "none" | ShadowName;
39
39
  export type TabBadge = number | string | boolean | null;
40
40
  /** What a tab knows about itself when it draws its icon. */
41
41
  export interface TabIconProps extends SlotIconState {
@@ -92,7 +92,7 @@ export interface BottomNavigationCenterAction {
92
92
  size?: number;
93
93
  /** Fill of the circle. Default the theme's `primary`. */
94
94
  color?: string;
95
- /** Ink of the icon in the circle. Default the theme's `onPrimary`. */
95
+ /** Ink of the icon in the circle. Default the theme's `on-primary`. */
96
96
  iconColor?: string;
97
97
  /** Pixel size of the icon in the circle. Default 24. */
98
98
  iconSize?: number;
@@ -157,8 +157,8 @@ export interface BottomNavigationProps {
157
157
  /**
158
158
  * Corner radius of the active tab's background on the `pill`, `floating`,
159
159
  * `solid`, `tile` and `expand` variants. `auto` (default) takes the bar's
160
- * radius once one is set through `radius` or the `radius` token, and
161
- * stays fully round while none is. A number sets the background's own
160
+ * radius once one is set through `radius`, and stays fully round while
161
+ * none is. A number sets the background's own
162
162
  * radius whatever the bar's. Capped at half the background's height, since
163
163
  * Android squares off a larger radius, so a large number is fully round.
164
164
  */
@@ -170,14 +170,12 @@ export interface BottomNavigationProps {
170
170
  */
171
171
  elevation?: BottomNavigationElevation;
172
172
  /**
173
- * Size of every tab icon in pixels. Default 18, or
174
- * `components.bottomNavigation.iconSize`. The active pill follows it.
173
+ * Size of every tab icon in pixels. Default 18. The active pill follows it.
175
174
  */
176
175
  iconSize?: number;
177
176
  /**
178
177
  * Air between the bar surface and the screen's left and right edges, in
179
- * pixels, on every variant. Default 16, or
180
- * `components.bottomNavigation.floatingMargin`.
178
+ * pixels, on every variant. Default 16.
181
179
  */
182
180
  marginHorizontal?: number;
183
181
  /**
@@ -185,7 +183,7 @@ export interface BottomNavigationProps {
185
183
  * `floating` and `tile` capsules and 0 for a docked bar. Above zero it
186
184
  * lifts any variant off the screen edge. Over a safe-area inset (a home
187
185
  * indicator or Android's system buttons) the lift is the inset plus
188
- * `theme.spacing.sm`, never less than this margin.
186
+ * `theme.space.sm`, never less than this margin.
189
187
  */
190
188
  marginVertical?: number;
191
189
  /**
@@ -92,10 +92,10 @@ export interface BottomSheetProps {
92
92
  scrollEventThrottle?: number;
93
93
  /**
94
94
  * @deprecated Backdrop opacity is now controlled by the theme token
95
- * `colors.background.overlay` (alpha baked into the rgba value). Animated
95
+ * `colors.scrim` (alpha baked into the rgba value). Animated
96
96
  * opacity on the backdrop was unreliable under Fabric view-flattening, so
97
97
  * the scrim is now a static plain View. To tune dim level, override
98
- * `theme.colors.background.overlay` in your theme bridge.
98
+ * `theme.colors.scrim` in your theme bridge.
99
99
  */
100
100
  backdropOpacity?: number;
101
101
  /**
@@ -1,32 +1,32 @@
1
1
  import type React from "react";
2
2
  import type { View as RNView, StyleProp, ViewProps, ViewStyle } from "react-native";
3
- import type { ColorPalette, RadiusKey, SpacingKey, Theme } from "../../theme/types.js";
4
- export type BackgroundToken = keyof ColorPalette["background"];
3
+ import type { RadiusName, SpaceName, Theme } from "../../theme/types.js";
4
+ export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse";
5
5
  export interface BoxProps extends ViewProps {
6
6
  /** padding (all sides) */
7
- p?: SpacingKey;
7
+ p?: SpaceName;
8
8
  /** paddingHorizontal */
9
- px?: SpacingKey;
9
+ px?: SpaceName;
10
10
  /** paddingVertical */
11
- py?: SpacingKey;
12
- pt?: SpacingKey;
13
- pr?: SpacingKey;
14
- pb?: SpacingKey;
15
- pl?: SpacingKey;
11
+ py?: SpaceName;
12
+ pt?: SpaceName;
13
+ pr?: SpaceName;
14
+ pb?: SpaceName;
15
+ pl?: SpaceName;
16
16
  /** margin (all sides) */
17
- m?: SpacingKey;
18
- mx?: SpacingKey;
19
- my?: SpacingKey;
20
- mt?: SpacingKey;
21
- mr?: SpacingKey;
22
- mb?: SpacingKey;
23
- ml?: SpacingKey;
17
+ m?: SpaceName;
18
+ mx?: SpaceName;
19
+ my?: SpaceName;
20
+ mt?: SpaceName;
21
+ mr?: SpaceName;
22
+ mb?: SpaceName;
23
+ ml?: SpaceName;
24
24
  /** Flexbox gap between children (spacing token). */
25
- gap?: SpacingKey;
26
- /** Background — a `colors.background.*` token or a raw colour string. */
25
+ gap?: SpaceName;
26
+ /** Background: a colour name (bg, bg-subtle, bg-muted, surface, scrim, surface-inverse) or a raw colour string. */
27
27
  bg?: BackgroundToken | (string & {});
28
- radius?: RadiusKey;
29
- /** Draw a hairline border in `colors.border.primary`. */
28
+ radius?: RadiusName;
29
+ /** Draw a hairline border in `colors.border`. */
30
30
  border?: boolean;
31
31
  flex?: number;
32
32
  align?: ViewStyle["alignItems"];
@@ -46,7 +46,7 @@ export type RowProps = Omit<BoxProps, "direction">;
46
46
  declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<RNView>>;
47
47
  export interface SpacerProps {
48
48
  /** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
49
- size?: SpacingKey;
49
+ size?: SpaceName;
50
50
  style?: StyleProp<ViewStyle>;
51
51
  testID?: string;
52
52
  }
@@ -13,11 +13,11 @@ import type { SlotIcon } from "../AppIcon/slotIcon.js";
13
13
  * the left on press and stays. `glass` is the odd one out: a frosted white
14
14
  * fill with a bright rim and dark ink, for a button sitting on a brand
15
15
  * gradient or a photo, where a tone fill would fight the surface. Its
16
- * colours come from `theme.colors.glass`, the same in both schemes, and the
16
+ * colours are the `glass-*` tokens, the same in both schemes, and the
17
17
  * tone only inks a badged icon.
18
18
  */
19
19
  export type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link" | "glass";
20
- export type ButtonTone = "primary" | "secondary" | "success" | "warning" | "error" | "neutral";
20
+ export type ButtonTone = "primary" | "secondary" | "success" | "warning" | "danger" | "neutral";
21
21
  export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
22
22
  export interface ButtonProps extends Omit<PressableProps, "style" | "children"> {
23
23
  /** The label, and the button's accessible name unless `accessibilityLabel` is set. */
@@ -65,7 +65,7 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children">
65
65
  haptic?: HapticType | false;
66
66
  rounded?: boolean;
67
67
  /**
68
- * Optional gradient background. Pass either a key from `theme.gradients`
68
+ * Optional gradient background. Pass either a key from `theme.settings.gradients`
69
69
  * (e.g. `"primary"`) or a `GradientDefinition` literal.
70
70
  */
71
71
  gradient?: string | GradientDefinition;
@@ -14,7 +14,7 @@ export interface CalendarMarkedDate {
14
14
  kind: CalendarMarkKind;
15
15
  /** What the day is ("Dussehra", "Casual leave"); read aloud before the kind. */
16
16
  label?: string;
17
- /** Dot colour. Default: `error` for a holiday, `primary` for an event, `warning` for pending. */
17
+ /** Dot colour. Default: `danger` for a holiday, `primary` for an event, `warning` for pending. */
18
18
  tone?: StatusBadgeTone;
19
19
  }
20
20
  /** A selection. Single mode uses `start` only; a range in progress has no `end` yet. */
@@ -19,7 +19,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
19
19
  borderCurve: "continuous";
20
20
  width: number;
21
21
  height: number;
22
- borderRadius: 9999;
22
+ borderRadius: number;
23
23
  };
24
24
  navBtnPressed: {
25
25
  backgroundColor: string;
@@ -28,8 +28,8 @@ export declare const buildCalendarStyles: (theme: Theme) => {
28
28
  opacity: number;
29
29
  };
30
30
  navText: {
31
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
32
31
  fontFamily?: string | undefined | undefined;
32
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
33
33
  fontSize: number;
34
34
  lineHeight: number;
35
35
  color: string;
@@ -39,8 +39,8 @@ export declare const buildCalendarStyles: (theme: Theme) => {
39
39
  alignItems: "center";
40
40
  };
41
41
  headerLabel: {
42
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
43
42
  fontFamily?: string | undefined | undefined;
43
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
44
44
  fontSize: number;
45
45
  color: string;
46
46
  };
@@ -54,8 +54,8 @@ export declare const buildCalendarStyles: (theme: Theme) => {
54
54
  paddingVertical: number;
55
55
  };
56
56
  weekdayText: {
57
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
58
57
  fontFamily?: string | undefined | undefined;
58
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
59
59
  fontSize: number;
60
60
  color: string;
61
61
  letterSpacing: number;
@@ -67,7 +67,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
67
67
  dayCell: {
68
68
  alignItems: "center";
69
69
  justifyContent: "center";
70
- padding: 0;
70
+ padding: number;
71
71
  };
72
72
  barLeft: {
73
73
  position: "absolute";
@@ -92,17 +92,17 @@ export declare const buildCalendarStyles: (theme: Theme) => {
92
92
  height: "90%";
93
93
  alignItems: "center";
94
94
  justifyContent: "center";
95
- borderRadius: 9999;
95
+ borderRadius: number;
96
96
  };
97
97
  dayEdge: {
98
98
  backgroundColor: string;
99
99
  };
100
100
  dayMid: {
101
- borderRadius: 0;
101
+ borderRadius: number;
102
102
  };
103
103
  dayText: {
104
- fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
105
104
  fontFamily?: string | undefined | undefined;
105
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
106
106
  fontSize: number;
107
107
  };
108
108
  dayStruck: {
@@ -118,7 +118,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
118
118
  borderCurve: "continuous";
119
119
  width: number;
120
120
  height: number;
121
- borderRadius: 9999;
121
+ borderRadius: number;
122
122
  };
123
123
  };
124
124
  export type CalendarStyles = ReturnType<typeof buildCalendarStyles>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { GestureResponderEvent, ImageSourcePropType, PressableProps, View as RNView, StyleProp, ViewStyle } from "react-native";
3
- import type { ColorPalette, GradientDefinition } from "../../theme/types.js";
3
+ import type { GradientDefinition, ShadowName } from "../../theme/types.js";
4
4
  import type { HapticType } from "../../utils/hapticUtils.js";
5
5
  import type { ContextMenuConfig } from "../Menu/useContextMenu.js";
6
6
  export type CardVariant = "elevated" | "outlined" | "filled" | "flat";
@@ -10,10 +10,12 @@ export interface CardTextAction {
10
10
  onPress: () => void;
11
11
  accessibilityLabel?: string;
12
12
  }
13
- export type CardElevation = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
13
+ export type CardElevation = "none" | ShadowName;
14
14
  export type CardRadius = "sm" | "md" | "lg" | "xl";
15
15
  export type CardPadding = "none" | "sm" | "md" | "lg" | "xl";
16
- export type CardBackground = keyof ColorPalette["background"] | (string & {});
16
+ declare const BACKGROUND_TOKENS: readonly ["bg", "bg-subtle", "bg-muted", "surface", "scrim", "surface-inverse"];
17
+ type CardBackgroundToken = (typeof BACKGROUND_TOKENS)[number];
18
+ export type CardBackground = CardBackgroundToken | (string & {});
17
19
  export interface CardProps extends Omit<PressableProps, "style" | "children"> {
18
20
  children?: React.ReactNode;
19
21
  variant?: CardVariant;
@@ -22,8 +24,7 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
22
24
  padding?: CardPadding;
23
25
  interactive?: boolean;
24
26
  /**
25
- * Background colour: a `colors.background.*` token or any raw colour
26
- * string. Applies on every variant and replaces the variant's default
27
+ * Background colour: a background colour name (`bg`, `bg-subtle`, `bg-muted`, `surface`, `scrim`, `surface-inverse`) or any raw colour string. Applies on every variant and replaces the variant's default
27
28
  * surface colour; `style` / `containerStyle` still win over it.
28
29
  */
29
30
  bg?: CardBackground;
@@ -64,7 +65,7 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
64
65
  */
65
66
  loading?: boolean;
66
67
  /**
67
- * Optional gradient background. Pass a key from `theme.gradients` or a
68
+ * Optional gradient background. Pass a key from `theme.settings.gradients` or a
68
69
  * literal `GradientDefinition`. Layered behind the card's content so
69
70
  * existing variant/elevation/radius continue to work.
70
71
  */
@@ -2,7 +2,7 @@ import type React from "react";
2
2
  import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils/hapticUtils.js";
4
4
  export type CheckboxSize = "sm" | "md" | "lg";
5
- export type CheckboxTone = "primary" | "success" | "warning" | "error";
5
+ export type CheckboxTone = "primary" | "success" | "warning" | "danger";
6
6
  export interface CheckboxProps extends Omit<PressableProps, "style" | "children" | "onPress"> {
7
7
  checked?: boolean;
8
8
  defaultChecked?: boolean;
@@ -9,7 +9,7 @@ import type { SlotIcon } from "../AppIcon/slotIcon.js";
9
9
  * IconButton draw as `soft`).
10
10
  */
11
11
  export type ChipVariant = "filled" | "outlined" | "soft";
12
- export type ChipTone = "primary" | "neutral" | "success" | "warning" | "error" | "info";
12
+ export type ChipTone = "primary" | "neutral" | "success" | "warning" | "danger" | "info";
13
13
  export type ChipSize = "sm" | "md";
14
14
  export type ChipSelectionMode = "single" | "multiple" | "radio";
15
15
  export interface ChipProps {
@@ -89,7 +89,7 @@ interface BaseChoiceGroupProps<T = ChoiceOption> {
89
89
  indicatorPosition?: ChoiceGroupIndicatorPosition;
90
90
  /** Main axis of the option list. Default `'row'`. */
91
91
  direction?: ChoiceGroupDirection;
92
- /** Gap between options. Default `theme.spacing.sm`. */
92
+ /** Gap between options. Default `theme.space.sm`. */
93
93
  gap?: number;
94
94
  /** Allow options to wrap onto multiple lines (swatch grids). Default `false`. */
95
95
  wrap?: boolean;
@@ -1,8 +1,8 @@
1
1
  import type React from "react";
2
2
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils/hapticUtils.js";
4
- export type DialogVariant = "default" | "success" | "warning" | "error" | "info";
5
- export type DialogActionTone = "primary" | "neutral" | "info" | "error";
4
+ export type DialogVariant = "default" | "success" | "warning" | "danger" | "info";
5
+ export type DialogActionTone = "primary" | "neutral" | "info" | "danger";
6
6
  export interface DialogAction {
7
7
  label: string;
8
8
  onPress: () => void;
@@ -4,7 +4,7 @@
4
4
  * One glyph for Select, InlineSelect, PickerTrigger and PhoneNumberInput so
5
5
  * the indicator never drifts between trigger components. It is the design
6
6
  * system's line chevron (AppIcon `chevron-down`), reached through the icon
7
- * registry so an app can swap it with `theme.icons.chevronDown`; it used to
7
+ * registry so an app can swap it with `theme.settings.icons.chevronDown`; it used to
8
8
  * be a filled triangle drawn with view borders. Pass `open` to get the 180°
9
9
  * rotate-on-open animation; omit it for a static chevron.
10
10
  */
@@ -9,7 +9,7 @@
9
9
  * props or via theme tokens — never accidental drift.
10
10
  *
11
11
  * Responsibilities:
12
- * - Resolve size / variant dimensions from `theme.components.field`.
12
+ * - Resolve size dimensions from `theme.components.field`.
13
13
  * - Animate the border + background between idle / focused / error.
14
14
  * - Render leading + trailing slots either side of `children`.
15
15
  * - Become Pressable when `onPress` is set (Select, PickerTrigger).
@@ -24,9 +24,10 @@
24
24
  import type React from "react";
25
25
  import type { AccessibilityRole, AccessibilityState, StyleProp, TextStyle, ViewStyle } from "react-native";
26
26
  import { Animated } from "react-native";
27
- import type { FieldSide, FieldVariantTokens, Theme } from "../../theme/types.js";
27
+ import type { Theme } from "../../theme/types.js";
28
28
  export type FieldBaseSize = "sm" | "md" | "lg";
29
29
  export type FieldBaseVariant = "outlined" | "filled" | "underline";
30
+ type FieldSide = "top" | "right" | "bottom" | "left";
30
31
  /**
31
32
  * Pick the most "representative" side colour from a 4-side record. Used by
32
33
  * consumers (Input's selectionColor, focus rings, etc.) that need a single
@@ -40,7 +41,7 @@ export interface FieldBaseProps {
40
41
  size?: FieldBaseSize;
41
42
  /**
42
43
  * Controls the resting fill + border treatment. Override the theme default
43
- * (`theme.components.field.defaultVariant`) via this prop. Default `'outlined'`.
44
+ * (`theme.settings.components.field.defaultVariant`) via this prop. Default `'outlined'`.
44
45
  */
45
46
  variant?: FieldBaseVariant;
46
47
  /** Parent-controlled focus state — drives the border + fill animation. */
@@ -124,7 +125,7 @@ export interface FieldBaseProps {
124
125
  borderBottomLeftRadius?: number;
125
126
  /** Bottom-right corner radius. Wins over `borderRadius`. */
126
127
  borderBottomRightRadius?: number;
127
- /** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `colors.border.width`. */
128
+ /** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `size.border`. */
128
129
  borderWidth?: number;
129
130
  /** Top border width. Wins over `borderWidth`. */
130
131
  borderTopWidth?: number;
@@ -134,9 +135,8 @@ export interface FieldBaseProps {
134
135
  borderBottomWidth?: number;
135
136
  /** Left border width. Wins over `borderWidth`. */
136
137
  borderLeftWidth?: number;
137
- /** Gap between leading / children / trailing. Defaults to `theme.spacing.md` (the spec's 12px). */
138
+ /** Gap between leading / children / trailing. Defaults to `theme.space.md` (the spec's 12px). */
138
139
  gap?: number;
139
- fillOverrides?: Partial<FieldVariantTokens>;
140
140
  style?: StyleProp<ViewStyle>;
141
141
  testID?: string;
142
142
  accessibilityRole?: AccessibilityRole;
@@ -165,18 +165,17 @@ export interface FieldTextStyle {
165
165
  weightStyle: Pick<TextStyle, "fontFamily" | "fontWeight">;
166
166
  }
167
167
  /**
168
- * Resolve the canonical text style chunk for a field's value. Reads from
169
- * `theme.components.field.{textColor,disabledTextColor,placeholderColor,fontWeight}`
170
- * first, then the field palette (`theme.colors.field`); brand fonts wired via
171
- * `typography.fontFamily` apply via the shared `fontFor` helper.
168
+ * Resolve the canonical text style chunk for a field's value. Reads the field
169
+ * colours from the theme and the face through the shared `fontFor` helper, so
170
+ * every field component renders the same value and placeholder ink.
172
171
  */
173
172
  export declare const resolveFieldTextStyle: (theme: Theme, options?: FieldTextStyleResolverOptions) => FieldTextStyle;
174
173
  /**
175
174
  * The required-field marker appended to a field's label. Single source of
176
175
  * truth for the whole field family (Input, Select, FormField, PickerTrigger →
177
- * Date/Time/DateRange pickers). Themeable via
178
- * `theme.components.field.{requiredMarker,requiredMarkerColor}`; font family /
179
- * weight / size are inherited from the parent label `<Text>`.
176
+ * Date/Time/DateRange pickers). Its text is `theme.settings.components.field.requiredMarker`
177
+ * (default `*`) in `colors["danger-text"]`; font family / weight / size are
178
+ * inherited from the parent label `<Text>`.
180
179
  */
181
180
  export declare const RequiredMark: React.FC;
182
181
  /**
@@ -200,9 +199,9 @@ export declare const RequiredPlaceholder: React.FC<{
200
199
  }>;
201
200
  /**
202
201
  * The circled-exclamation glyph that leads a field's error message. Uses the
203
- * theme's `icons.error` renderer when one is registered; otherwise draws a
204
- * ring-and-bang from views so the message never renders bare. Shared by
205
- * every field component that shows an error line (Input, Select, FormField,
202
+ * theme's `settings.icons.error` renderer when one is registered; otherwise
203
+ * draws a ring-and-bang from views so the message never renders bare. Shared
204
+ * by every field component that shows an error line (Input, Select, FormField,
206
205
  * the pickers) so the message row reads identically across the family.
207
206
  */
208
207
  export declare const FieldErrorGlyph: React.FC<{
@@ -223,8 +222,8 @@ export declare const hasFieldText: (value: React.ReactNode) => boolean;
223
222
  */
224
223
  export declare const fieldTextAsString: (value: React.ReactNode) => string | undefined;
225
224
  /**
226
- * The static label above a field, per the design spec: `field.label` ink,
227
- * the size ladder's `labelFontSize`, semibold, `labelGap` below. It stays on
225
+ * The static label above a field, per the design spec: `field-label` ink,
226
+ * the size ladder's `label-text` size, semibold, `label-gap` below. It stays on
228
227
  * that ink through focus and error (the ring and the message row carry the
229
228
  * error). Shared by Input, Select, PickerTrigger, NumberInput. The label may
230
229
  * be a string or a node, and `help` (a glossary button, say) is drawn right
@@ -237,15 +236,15 @@ export declare const FieldLabel: React.FC<{
237
236
  required?: boolean;
238
237
  /** Drawn beside the label, after the required marker. */
239
238
  help?: React.ReactNode;
240
- /** Label ink; defaults to `colors.field.label`. */
239
+ /** Label ink; defaults to `colors["field-label"]`. */
241
240
  color?: string;
242
241
  style?: StyleProp<TextStyle>;
243
242
  }>;
244
243
  /**
245
- * The helper / error line under a field: `messageFontSize`, `messageGap`
246
- * from the box, `field.message` red with the circled-exclamation glyph when
247
- * `error`, `text.secondary` otherwise. The text may be a string or a node.
248
- * Renders nothing without text.
244
+ * The helper / error line under a field: the `message-text` size and
245
+ * `message-gap` from the box, `field-message` red with the circled-exclamation
246
+ * glyph when `error`, `text-muted` otherwise. The text may be a string or a
247
+ * node. Renders nothing without text.
249
248
  */
250
249
  export declare const FieldMessage: React.FC<{
251
250
  text?: React.ReactNode;
@@ -254,12 +253,12 @@ export declare const FieldMessage: React.FC<{
254
253
  style?: StyleProp<TextStyle>;
255
254
  }>;
256
255
  /**
257
- * Strict, fully-resolved colour set used internally. Mirrors `FieldVariantTokens`
258
- * but every border colour / width is expanded to a 4-side record by the time
259
- * the box renders, so the animation pipeline can treat per-side and shorthand
260
- * the same way. `borderFocusedRepresentative` is a single colour pulled from
261
- * the focused sides — exposed for consumers (Input's selectionColor) that
262
- * need to mirror the visible focus indicator without re-resolving per side.
256
+ * Strict, fully-resolved colour set used internally. Every border colour /
257
+ * width is expanded to a 4-side record by the time the box renders, so the
258
+ * animation pipeline can treat per-side and shorthand the same way.
259
+ * `borderFocusedRepresentative` is a single colour pulled from the focused
260
+ * sides — exposed for consumers (Input's selectionColor) that need to mirror
261
+ * the visible focus indicator without re-resolving per side.
263
262
  */
264
263
  interface ResolvedFieldColors {
265
264
  backgroundIdleEmpty: string;
@@ -279,11 +278,11 @@ interface ResolvedFieldColors {
279
278
  }
280
279
  /**
281
280
  * Resolve the full set of state-aware fill + border colours for a given
282
- * variant. Order: explicit override → theme token → library default. Border
283
- * colour + width are normalized to per-side records here; callers that need
284
- * a single colour read `borderFocusedRepresentative`.
281
+ * variant, from the field colour names. Border colour + width are normalized
282
+ * to per-side records here; callers that need a single colour read
283
+ * `borderFocusedRepresentative`.
285
284
  */
286
- export declare const resolveVariantColors: (theme: Theme, variant: FieldBaseVariant, override?: Partial<FieldVariantTokens>) => ResolvedFieldColors;
285
+ export declare const resolveVariantColors: (theme: Theme, variant: FieldBaseVariant) => ResolvedFieldColors;
287
286
  export declare const FieldBase: React.FC<FieldBaseProps>;
288
287
  export default FieldBase;
289
288
  //# sourceMappingURL=FieldBase.d.ts.map
@@ -15,8 +15,7 @@
15
15
  */
16
16
  import type React from "react";
17
17
  import type { StyleProp, TextStyle } from "react-native";
18
- import { type Resolved } from "../../theme/index.js";
19
- import type { FieldSizeTokens } from "../../theme/types.js";
18
+ import { type resolveFieldSize } from "../../theme/index.js";
20
19
  import type { FieldBaseProps, FieldBaseVariant } from "./FieldBase.js";
21
20
  /** The floated label's scale; the outlined notch is sized from it. */
22
21
  export declare const FLOATED_LABEL_SCALE = 0.85;
@@ -29,7 +28,7 @@ export interface UseFloatingLabelOptions {
29
28
  floated: boolean;
30
29
  required?: boolean;
31
30
  variant: FieldBaseVariant;
32
- sizeTokens: Resolved<FieldSizeTokens>;
31
+ sizeTokens: ReturnType<typeof resolveFieldSize>;
33
32
  /** Where the text starts past the leading slot (icon, gaps, divider), px. */
34
33
  leadingOffset: number;
35
34
  /** Width the trailing slot takes, for a right-aligned label, px. */
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import type { View as RNView, StyleProp, ViewStyle } from "react-native";
3
3
  import type { HapticType } from "../../utils/hapticUtils.js";
4
4
  export type FloatingActionButtonSize = "sm" | "md" | "lg";
5
- export type FloatingActionButtonTone = "primary" | "success" | "warning" | "error" | "neutral";
5
+ export type FloatingActionButtonTone = "primary" | "success" | "warning" | "danger" | "neutral";
6
6
  export type FloatingActionButtonPosition = "bottomRight" | "bottomLeft" | "bottomCenter";
7
7
  export interface FloatingActionButtonProps {
8
- /** JSX element for the icon. The FAB sizes it via the `size` prop's iconSize token. */
8
+ /** JSX element for the icon. The FAB sizes it with the size's `icon` token. */
9
9
  icon: React.ReactNode;
10
10
  onPress: () => void;
11
11
  /** Text beside the icon; makes the button extended (a pill). */
@@ -18,9 +18,8 @@ export interface FormFieldProps {
18
18
  */
19
19
  error?: React.ReactNode;
20
20
  /**
21
- * Appends the required marker to the label. Marker text + colour come from
22
- * `theme.components.field.{requiredMarker,requiredMarkerColor}` (default
23
- * `'*'` in `colors.error`).
21
+ * Appends the required marker to the label. Marker text comes from
22
+ * `theme.settings.components.field.requiredMarker` (default `'*'` in `colors.danger`).
24
23
  */
25
24
  required?: boolean;
26
25
  /**
@@ -2,7 +2,7 @@ import type { View as RNView, StyleProp, ViewStyle } from "react-native";
2
2
  import type { IconVariant } from "../AppIcon/AppIcon.js";
3
3
  import type { SlotIcon } from "../AppIcon/slotIcon.js";
4
4
  export type IconBadgeSize = "sm" | "md" | "lg";
5
- export type IconBadgeTone = "primary" | "secondary" | "success" | "warning" | "error" | "info" | "neutral";
5
+ export type IconBadgeTone = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
6
6
  export interface IconBadgeProps {
7
7
  /**
8
8
  * The icon: an AppIcon name (`icon="shield-tick"`), `{ name, variant }`, a
@@ -2,11 +2,11 @@ import type { GestureResponderEvent, View as RNView, StyleProp, ViewStyle } from
2
2
  import type { HapticType } from "../../utils/index.js";
3
3
  import type { IconVariant } from "../AppIcon/AppIcon.js";
4
4
  import type { SlotIcon } from "../AppIcon/slotIcon.js";
5
- export type IconButtonTone = "primary" | "secondary" | "success" | "warning" | "error" | "neutral";
5
+ export type IconButtonTone = "primary" | "secondary" | "success" | "warning" | "danger" | "neutral";
6
6
  /**
7
7
  * `glass` is a frosted white fill with a bright rim and dark ink, for a
8
8
  * button over a brand gradient or a photo (a back button on a hero). Its
9
- * colours are `theme.colors.glass`, the same in both schemes; the tone is
9
+ * colours are the glass colours (`glass-fill`, `glass-border`, `on-glass`), the same in both schemes; the tone is
10
10
  * unused unless `active` forces the solid fill.
11
11
  */
12
12
  export type IconButtonVariant = "solid" | "soft" | "outline" | "ghost" | "glass";
@@ -68,9 +68,8 @@ export interface InlineSelectProps<T = SelectOption> {
68
68
  */
69
69
  size?: InlineSelectSize;
70
70
  /**
71
- * Trigger text + chevron colour. Resolution: prop →
72
- * `theme.components.inlineSelect.color` → `colors.primary`
73
- * (`text.disabled` when disabled).
71
+ * Trigger text and chevron colour. Resolution: prop, then `colors.primary`
72
+ * (`text-disabled` when disabled).
74
73
  */
75
74
  color?: string;
76
75
  /** Chevron colour override — falls back to `color`'s resolution. */
@@ -21,7 +21,7 @@ export type InputKeyboardType = "default" | "email-address" | "numeric" | "phone
21
21
  export interface InputSlotState extends SlotIconState {
22
22
  focused: boolean;
23
23
  error: boolean;
24
- /** The field palette's icon colour for this state (`colors.field.icon*`). */
24
+ /** The field palette's icon colour for this state (`field-icon`, `field-icon-focus`, `field-icon-disabled`). */
25
25
  color: string;
26
26
  /** The size ladder's icon size for the field's `size`. */
27
27
  size: number;
@@ -133,7 +133,7 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
133
133
  * - `'float'`: Material-Design floating label that animates from inside the
134
134
  * field to the top border on focus / when there's a value.
135
135
  *
136
- * Theme override: `theme.components.input.defaultLabelMode`.
136
+ * Theme setting: `theme.settings.components.input.defaultLabelMode`.
137
137
  */
138
138
  labelMode?: InputLabelMode;
139
139
  required?: boolean;
@@ -25,7 +25,7 @@ export interface NotationProps {
25
25
  desc?: string;
26
26
  /**
27
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.primary`; pass the parent's colour when it differs.
28
+ * ink, elsewhere to `colors["text-body"]`; pass the parent's colour when it differs.
29
29
  */
30
30
  color?: string;
31
31
  testID?: string;