react-native-terra-ui 0.5.0 → 0.6.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 (357) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/lib/module/components/avatar/Avatar.js +60 -60
  3. package/lib/module/components/avatar/Avatar.js.map +1 -1
  4. package/lib/module/components/box/Box.js +2 -2
  5. package/lib/module/components/box/Box.js.map +1 -1
  6. package/lib/module/components/box/utils.js +19 -19
  7. package/lib/module/components/box/utils.js.map +1 -1
  8. package/lib/module/components/button/Button.js +54 -48
  9. package/lib/module/components/button/Button.js.map +1 -1
  10. package/lib/module/components/chip/Chip.js +94 -94
  11. package/lib/module/components/chip/Chip.js.map +1 -1
  12. package/lib/module/components/chip/utils.js +3 -3
  13. package/lib/module/components/empty-state/EmptyState.js +40 -40
  14. package/lib/module/components/empty-state/EmptyState.js.map +1 -1
  15. package/lib/module/components/header/header-buttons.js +5 -5
  16. package/lib/module/components/header/header-buttons.js.map +1 -1
  17. package/lib/module/components/header/parts/HeaderGradientOverlay.js +2 -2
  18. package/lib/module/components/header/parts/HeaderGradientOverlay.js.map +1 -1
  19. package/lib/module/components/header/variants/LargeTitleHeader/index.js +58 -58
  20. package/lib/module/components/header/variants/LargeTitleHeader/index.js.map +1 -1
  21. package/lib/module/components/header/variants/TitleHeader/index.js +27 -27
  22. package/lib/module/components/header/variants/TitleHeader/index.js.map +1 -1
  23. package/lib/module/components/icon/Icon.js +6 -6
  24. package/lib/module/components/icon/Icon.js.map +1 -1
  25. package/lib/module/components/image/Image.js +11 -6
  26. package/lib/module/components/image/Image.js.map +1 -1
  27. package/lib/module/components/page-indicator/PageIndicator.js +1 -1
  28. package/lib/module/components/page-indicator/PageIndicatorRoot.js.map +1 -1
  29. package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js +8 -8
  30. package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js.map +1 -1
  31. package/lib/module/components/page-indicator/hooks/use-page-indicator-core.js.map +1 -1
  32. package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js +6 -6
  33. package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js.map +1 -1
  34. package/lib/module/components/page-indicator/utils.js +8 -8
  35. package/lib/module/components/page-indicator/utils.js.map +1 -1
  36. package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js +2 -2
  37. package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js.map +1 -1
  38. package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js +9 -9
  39. package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js.map +1 -1
  40. package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js +2 -2
  41. package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js.map +1 -1
  42. package/lib/module/components/page-indicator/variants/DotIndicator/index.js +3 -3
  43. package/lib/module/components/page-indicator/variants/DotIndicator/index.js.map +1 -1
  44. package/lib/module/components/page-indicator/variants/DotIndicator/utils.js +1 -1
  45. package/lib/module/components/page-indicator/variants/DotIndicator/utils.js.map +1 -1
  46. package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js +1 -1
  47. package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js.map +1 -1
  48. package/lib/module/components/page-indicator/variants/PillIndicator/index.js +5 -5
  49. package/lib/module/components/page-indicator/variants/PillIndicator/index.js.map +1 -1
  50. package/lib/module/components/page-indicator/variants/PillIndicator/utils.js +3 -3
  51. package/lib/module/components/portal/Portal.js +1 -1
  52. package/lib/module/components/portal/PortalContext.js +1 -1
  53. package/lib/module/components/portal/PortalHost.js +1 -1
  54. package/lib/module/components/portal/PortalProvider.js +1 -1
  55. package/lib/module/components/portal/PortalProvider.js.map +1 -1
  56. package/lib/module/components/screen/Screen.js +8 -8
  57. package/lib/module/components/screen/Screen.js.map +1 -1
  58. package/lib/module/components/screen/ScreenContext.js +6 -6
  59. package/lib/module/components/screen/ScreenContext.js.map +1 -1
  60. package/lib/module/components/screen/ScreenFlatList.js +3 -3
  61. package/lib/module/components/screen/ScreenFlatList.js.map +1 -1
  62. package/lib/module/components/screen/ScreenList.js +5 -5
  63. package/lib/module/components/screen/ScreenList.js.map +1 -1
  64. package/lib/module/components/screen/ScreenScrollView.js +6 -6
  65. package/lib/module/components/screen/ScreenScrollView.js.map +1 -1
  66. package/lib/module/components/screen/parts/BottomSafeArea.js +1 -1
  67. package/lib/module/components/screen/parts/BottomSafeArea.js.map +1 -1
  68. package/lib/module/components/screen/parts/ScreenPlaceholder.js +3 -3
  69. package/lib/module/components/screen/parts/ScreenPlaceholder.js.map +1 -1
  70. package/lib/module/components/screen/utils.js +3 -3
  71. package/lib/module/components/screen/utils.js.map +1 -1
  72. package/lib/module/components/slot/Slot.js +2 -2
  73. package/lib/module/components/slot/Slot.js.map +1 -1
  74. package/lib/module/components/slot/utils.js +3 -3
  75. package/lib/module/components/slot/utils.js.map +1 -1
  76. package/lib/module/components/spinner/Spinner.js +10 -10
  77. package/lib/module/components/spinner/Spinner.js.map +1 -1
  78. package/lib/module/components/surface/Surface.js +14 -14
  79. package/lib/module/components/surface/Surface.js.map +1 -1
  80. package/lib/module/components/text/Text.js +13 -13
  81. package/lib/module/components/text/Text.js.map +1 -1
  82. package/lib/module/components/toast/Toast.js +46 -46
  83. package/lib/module/components/toast/Toast.js.map +1 -1
  84. package/lib/module/components/toast/ToastProvider.js +32 -32
  85. package/lib/module/components/toast/ToastProvider.js.map +1 -1
  86. package/lib/module/components/toast/parts/ToastAnimatedItem.js +10 -10
  87. package/lib/module/components/toast/parts/ToastAnimatedItem.js.map +1 -1
  88. package/lib/module/components/toast/utils/controller.js +2 -2
  89. package/lib/module/components/toast/utils/controller.js.map +1 -1
  90. package/lib/module/components/toolbar/Toolbar.js +25 -25
  91. package/lib/module/components/toolbar/Toolbar.js.map +1 -1
  92. package/lib/module/context/ThemeProvider.js +5 -5
  93. package/lib/module/context/ThemeProvider.js.map +1 -1
  94. package/lib/module/theme/breakpoints.js.map +1 -1
  95. package/lib/module/theme/defaults/icons.js +11 -11
  96. package/lib/module/theme/defaults/icons.js.map +1 -1
  97. package/lib/module/theme/defaults/image.js +7 -7
  98. package/lib/module/theme/defaults/image.js.map +1 -1
  99. package/lib/module/theme/registry.js +11 -11
  100. package/lib/module/theme/registry.js.map +1 -1
  101. package/lib/module/theme/runtime.js +3 -3
  102. package/lib/module/theme/runtime.js.map +1 -1
  103. package/lib/module/theme/theme.js +9 -9
  104. package/lib/module/theme/theme.js.map +1 -1
  105. package/lib/module/theme/tokens/dark.js +67 -67
  106. package/lib/module/theme/tokens/light.js +67 -67
  107. package/lib/module/theme/tokens/primitives.js +417 -417
  108. package/lib/module/utils/accent-utils.js +16 -16
  109. package/lib/module/utils/accent-utils.js.map +1 -1
  110. package/lib/module/utils/color-utils.js +3 -3
  111. package/lib/module/utils/deep-merge.js +1 -1
  112. package/lib/module/utils/resolve-theme-color.js +2 -2
  113. package/lib/module/utils/resolve-theme-color.js.map +1 -1
  114. package/lib/module/utils/typography.js +5 -5
  115. package/lib/module/utils/typography.js.map +1 -1
  116. package/lib/module/utils/unflatten.js +2 -2
  117. package/lib/typescript/src/components/avatar/Avatar.d.ts +1 -1
  118. package/lib/typescript/src/components/avatar/Avatar.d.ts.map +1 -1
  119. package/lib/typescript/src/components/avatar/index.d.ts +2 -2
  120. package/lib/typescript/src/components/avatar/types.d.ts +7 -7
  121. package/lib/typescript/src/components/avatar/types.d.ts.map +1 -1
  122. package/lib/typescript/src/components/box/Box.d.ts +2 -2
  123. package/lib/typescript/src/components/box/Box.d.ts.map +1 -1
  124. package/lib/typescript/src/components/box/index.d.ts +3 -3
  125. package/lib/typescript/src/components/box/utils.d.ts +7 -7
  126. package/lib/typescript/src/components/box/utils.d.ts.map +1 -1
  127. package/lib/typescript/src/components/button/Button.d.ts +15 -8
  128. package/lib/typescript/src/components/button/Button.d.ts.map +1 -1
  129. package/lib/typescript/src/components/button/index.d.ts +2 -2
  130. package/lib/typescript/src/components/chip/Chip.d.ts +5 -5
  131. package/lib/typescript/src/components/chip/Chip.d.ts.map +1 -1
  132. package/lib/typescript/src/components/chip/index.d.ts +3 -3
  133. package/lib/typescript/src/components/chip/types.d.ts +3 -3
  134. package/lib/typescript/src/components/chip/utils.d.ts +1 -1
  135. package/lib/typescript/src/components/empty-state/EmptyState.d.ts +5 -5
  136. package/lib/typescript/src/components/empty-state/EmptyState.d.ts.map +1 -1
  137. package/lib/typescript/src/components/empty-state/index.d.ts +3 -3
  138. package/lib/typescript/src/components/empty-state/types.d.ts +1 -1
  139. package/lib/typescript/src/components/header/Header.d.ts +2 -2
  140. package/lib/typescript/src/components/header/header-buttons.d.ts +3 -3
  141. package/lib/typescript/src/components/header/header-buttons.d.ts.map +1 -1
  142. package/lib/typescript/src/components/header/index.d.ts +6 -6
  143. package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts.map +1 -1
  144. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts +1 -1
  145. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts.map +1 -1
  146. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts +4 -4
  147. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts.map +1 -1
  148. package/lib/typescript/src/components/icon/Icon.d.ts +3 -3
  149. package/lib/typescript/src/components/icon/Icon.d.ts.map +1 -1
  150. package/lib/typescript/src/components/icon/index.d.ts +2 -2
  151. package/lib/typescript/src/components/image/Image.d.ts +2 -2
  152. package/lib/typescript/src/components/image/Image.d.ts.map +1 -1
  153. package/lib/typescript/src/components/image/index.d.ts +2 -2
  154. package/lib/typescript/src/components/image/types.d.ts +1 -1
  155. package/lib/typescript/src/components/index.d.ts +17 -17
  156. package/lib/typescript/src/components/page-indicator/PageIndicator.d.ts +10 -10
  157. package/lib/typescript/src/components/page-indicator/PageIndicatorRoot.d.ts +2 -2
  158. package/lib/typescript/src/components/page-indicator/PageIndicatorRoot.d.ts.map +1 -1
  159. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts +1 -1
  160. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts.map +1 -1
  161. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-core.d.ts +3 -3
  162. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-core.d.ts.map +1 -1
  163. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-progress.d.ts +2 -2
  164. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-progress.d.ts.map +1 -1
  165. package/lib/typescript/src/components/page-indicator/index.d.ts +3 -3
  166. package/lib/typescript/src/components/page-indicator/utils.d.ts +2 -2
  167. package/lib/typescript/src/components/page-indicator/utils.d.ts.map +1 -1
  168. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/InactiveDot.d.ts +1 -1
  169. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/InactiveDot.d.ts.map +1 -1
  170. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.d.ts +2 -2
  171. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.d.ts.map +1 -1
  172. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/TravelingPill.d.ts +2 -2
  173. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/TravelingPill.d.ts.map +1 -1
  174. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts +3 -3
  175. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts.map +1 -1
  176. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/utils.d.ts.map +1 -1
  177. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.d.ts +2 -2
  178. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.d.ts.map +1 -1
  179. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts +3 -3
  180. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts.map +1 -1
  181. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/utils.d.ts +1 -1
  182. package/lib/typescript/src/components/portal/Portal.d.ts +3 -3
  183. package/lib/typescript/src/components/portal/PortalContext.d.ts +1 -1
  184. package/lib/typescript/src/components/portal/PortalHost.d.ts +2 -2
  185. package/lib/typescript/src/components/portal/PortalProvider.d.ts +1 -1
  186. package/lib/typescript/src/components/portal/PortalProvider.d.ts.map +1 -1
  187. package/lib/typescript/src/components/portal/index.d.ts +7 -7
  188. package/lib/typescript/src/components/screen/Screen.d.ts +10 -10
  189. package/lib/typescript/src/components/screen/Screen.d.ts.map +1 -1
  190. package/lib/typescript/src/components/screen/ScreenContext.d.ts +3 -3
  191. package/lib/typescript/src/components/screen/ScreenContext.d.ts.map +1 -1
  192. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts +3 -3
  193. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts.map +1 -1
  194. package/lib/typescript/src/components/screen/ScreenList.d.ts +5 -5
  195. package/lib/typescript/src/components/screen/ScreenList.d.ts.map +1 -1
  196. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts +5 -5
  197. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts.map +1 -1
  198. package/lib/typescript/src/components/screen/index.d.ts +11 -11
  199. package/lib/typescript/src/components/screen/parts/BottomSafeArea.d.ts.map +1 -1
  200. package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts +3 -3
  201. package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts.map +1 -1
  202. package/lib/typescript/src/components/screen/types.d.ts +2 -2
  203. package/lib/typescript/src/components/screen/utils.d.ts +2 -2
  204. package/lib/typescript/src/components/screen/utils.d.ts.map +1 -1
  205. package/lib/typescript/src/components/slot/Slot.d.ts +2 -2
  206. package/lib/typescript/src/components/slot/Slot.d.ts.map +1 -1
  207. package/lib/typescript/src/components/slot/index.d.ts +3 -3
  208. package/lib/typescript/src/components/slot/utils.d.ts +1 -1
  209. package/lib/typescript/src/components/slot/utils.d.ts.map +1 -1
  210. package/lib/typescript/src/components/spinner/Spinner.d.ts +2 -2
  211. package/lib/typescript/src/components/spinner/Spinner.d.ts.map +1 -1
  212. package/lib/typescript/src/components/spinner/index.d.ts +2 -2
  213. package/lib/typescript/src/components/surface/Surface.d.ts +4 -4
  214. package/lib/typescript/src/components/surface/Surface.d.ts.map +1 -1
  215. package/lib/typescript/src/components/surface/index.d.ts +2 -2
  216. package/lib/typescript/src/components/text/Text.d.ts +4 -4
  217. package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
  218. package/lib/typescript/src/components/text/index.d.ts +2 -2
  219. package/lib/typescript/src/components/toast/Toast.d.ts +18 -18
  220. package/lib/typescript/src/components/toast/Toast.d.ts.map +1 -1
  221. package/lib/typescript/src/components/toast/ToastProvider.d.ts +1 -1
  222. package/lib/typescript/src/components/toast/ToastProvider.d.ts.map +1 -1
  223. package/lib/typescript/src/components/toast/index.d.ts +4 -4
  224. package/lib/typescript/src/components/toast/parts/ToastAnimatedItem.d.ts +3 -3
  225. package/lib/typescript/src/components/toast/parts/ToastAnimatedItem.d.ts.map +1 -1
  226. package/lib/typescript/src/components/toast/types.d.ts +10 -10
  227. package/lib/typescript/src/components/toast/types.d.ts.map +1 -1
  228. package/lib/typescript/src/components/toast/utils/controller.d.ts +2 -2
  229. package/lib/typescript/src/components/toast/utils/controller.d.ts.map +1 -1
  230. package/lib/typescript/src/components/toolbar/Toolbar.d.ts +5 -5
  231. package/lib/typescript/src/components/toolbar/Toolbar.d.ts.map +1 -1
  232. package/lib/typescript/src/components/toolbar/index.d.ts +2 -2
  233. package/lib/typescript/src/context/ThemeProvider.d.ts +3 -3
  234. package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -1
  235. package/lib/typescript/src/context/index.d.ts +2 -2
  236. package/lib/typescript/src/index.d.ts +3 -3
  237. package/lib/typescript/src/theme/breakpoints.d.ts +2 -2
  238. package/lib/typescript/src/theme/breakpoints.d.ts.map +1 -1
  239. package/lib/typescript/src/theme/defaults/icons.d.ts +1 -1
  240. package/lib/typescript/src/theme/defaults/icons.d.ts.map +1 -1
  241. package/lib/typescript/src/theme/defaults/image.d.ts +1 -1
  242. package/lib/typescript/src/theme/defaults/image.d.ts.map +1 -1
  243. package/lib/typescript/src/theme/index.d.ts +14 -14
  244. package/lib/typescript/src/theme/registry.d.ts +2 -2
  245. package/lib/typescript/src/theme/registry.d.ts.map +1 -1
  246. package/lib/typescript/src/theme/runtime.d.ts +1 -1
  247. package/lib/typescript/src/theme/runtime.d.ts.map +1 -1
  248. package/lib/typescript/src/theme/screen-margin.d.ts +2 -2
  249. package/lib/typescript/src/theme/theme.d.ts +2 -2
  250. package/lib/typescript/src/theme/theme.d.ts.map +1 -1
  251. package/lib/typescript/src/theme/tokens/dark.d.ts +67 -67
  252. package/lib/typescript/src/theme/tokens/light.d.ts +67 -67
  253. package/lib/typescript/src/theme/tokens/primitives.d.ts +417 -417
  254. package/lib/typescript/src/theme/types.d.ts +99 -84
  255. package/lib/typescript/src/theme/types.d.ts.map +1 -1
  256. package/lib/typescript/src/utils/accent-utils.d.ts +1 -1
  257. package/lib/typescript/src/utils/accent-utils.d.ts.map +1 -1
  258. package/lib/typescript/src/utils/resolve-theme-color.d.ts +1 -1
  259. package/lib/typescript/src/utils/resolve-theme-color.d.ts.map +1 -1
  260. package/lib/typescript/src/utils/typography.d.ts +2 -2
  261. package/lib/typescript/src/utils/typography.d.ts.map +1 -1
  262. package/package.json +1 -1
  263. package/src/components/avatar/Avatar.tsx +66 -71
  264. package/src/components/avatar/index.ts +2 -2
  265. package/src/components/avatar/types.ts +7 -12
  266. package/src/components/box/Box.tsx +7 -18
  267. package/src/components/box/index.ts +3 -3
  268. package/src/components/box/utils.ts +59 -81
  269. package/src/components/button/Button.tsx +119 -144
  270. package/src/components/button/index.ts +2 -2
  271. package/src/components/chip/Chip.tsx +107 -143
  272. package/src/components/chip/index.ts +3 -3
  273. package/src/components/chip/types.ts +7 -7
  274. package/src/components/chip/utils.ts +5 -5
  275. package/src/components/empty-state/EmptyState.tsx +44 -60
  276. package/src/components/empty-state/index.ts +3 -3
  277. package/src/components/empty-state/types.ts +1 -1
  278. package/src/components/header/Header.ts +2 -2
  279. package/src/components/header/header-buttons.tsx +10 -18
  280. package/src/components/header/index.ts +6 -6
  281. package/src/components/header/parts/HeaderGradientOverlay.tsx +3 -7
  282. package/src/components/header/variants/LargeTitleHeader/index.tsx +75 -139
  283. package/src/components/header/variants/TitleHeader/index.tsx +40 -62
  284. package/src/components/icon/Icon.tsx +31 -39
  285. package/src/components/icon/index.ts +2 -2
  286. package/src/components/image/Image.tsx +22 -11
  287. package/src/components/image/index.ts +2 -2
  288. package/src/components/image/types.ts +1 -1
  289. package/src/components/index.ts +17 -17
  290. package/src/components/page-indicator/PageIndicator.tsx +14 -14
  291. package/src/components/page-indicator/PageIndicatorRoot.tsx +4 -12
  292. package/src/components/page-indicator/hooks/use-page-indicator-colors.ts +17 -35
  293. package/src/components/page-indicator/hooks/use-page-indicator-core.ts +6 -8
  294. package/src/components/page-indicator/hooks/use-page-indicator-progress.ts +10 -30
  295. package/src/components/page-indicator/index.ts +3 -3
  296. package/src/components/page-indicator/utils.ts +20 -48
  297. package/src/components/page-indicator/variants/DotIndicator/InactiveDot.tsx +5 -16
  298. package/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.tsx +21 -63
  299. package/src/components/page-indicator/variants/DotIndicator/TravelingPill.tsx +6 -16
  300. package/src/components/page-indicator/variants/DotIndicator/index.tsx +20 -38
  301. package/src/components/page-indicator/variants/DotIndicator/utils.ts +2 -6
  302. package/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.tsx +12 -50
  303. package/src/components/page-indicator/variants/PillIndicator/index.tsx +19 -41
  304. package/src/components/page-indicator/variants/PillIndicator/utils.ts +4 -4
  305. package/src/components/portal/Portal.tsx +4 -4
  306. package/src/components/portal/PortalContext.tsx +1 -1
  307. package/src/components/portal/PortalHost.tsx +4 -4
  308. package/src/components/portal/PortalProvider.tsx +24 -35
  309. package/src/components/portal/index.ts +7 -7
  310. package/src/components/screen/Screen.tsx +45 -52
  311. package/src/components/screen/ScreenContext.tsx +8 -17
  312. package/src/components/screen/ScreenFlatList.tsx +17 -36
  313. package/src/components/screen/ScreenList.tsx +31 -63
  314. package/src/components/screen/ScreenScrollView.tsx +17 -30
  315. package/src/components/screen/index.ts +11 -11
  316. package/src/components/screen/parts/BottomSafeArea.tsx +5 -6
  317. package/src/components/screen/parts/ScreenPlaceholder.tsx +9 -14
  318. package/src/components/screen/types.ts +2 -2
  319. package/src/components/screen/utils.ts +6 -19
  320. package/src/components/slot/Slot.tsx +5 -20
  321. package/src/components/slot/index.ts +3 -3
  322. package/src/components/slot/utils.ts +5 -8
  323. package/src/components/spinner/Spinner.tsx +19 -52
  324. package/src/components/spinner/index.ts +2 -2
  325. package/src/components/surface/Surface.tsx +34 -43
  326. package/src/components/surface/index.ts +2 -2
  327. package/src/components/text/Text.tsx +75 -85
  328. package/src/components/text/index.ts +2 -2
  329. package/src/components/toast/Toast.tsx +195 -251
  330. package/src/components/toast/ToastProvider.tsx +61 -136
  331. package/src/components/toast/index.ts +4 -4
  332. package/src/components/toast/parts/ToastAnimatedItem.tsx +14 -22
  333. package/src/components/toast/types.ts +11 -14
  334. package/src/components/toast/utils/controller.ts +4 -6
  335. package/src/components/toolbar/Toolbar.tsx +42 -61
  336. package/src/components/toolbar/index.ts +2 -2
  337. package/src/context/ThemeProvider.tsx +13 -28
  338. package/src/context/index.ts +2 -2
  339. package/src/index.tsx +3 -3
  340. package/src/theme/breakpoints.ts +3 -5
  341. package/src/theme/defaults/icons.tsx +15 -30
  342. package/src/theme/defaults/image.tsx +9 -14
  343. package/src/theme/index.ts +14 -14
  344. package/src/theme/registry.ts +30 -49
  345. package/src/theme/runtime.ts +6 -7
  346. package/src/theme/screen-margin.ts +3 -3
  347. package/src/theme/theme.ts +39 -60
  348. package/src/theme/tokens/dark.ts +67 -67
  349. package/src/theme/tokens/light.ts +67 -67
  350. package/src/theme/tokens/primitives.ts +417 -417
  351. package/src/theme/types.ts +138 -135
  352. package/src/utils/accent-utils.ts +21 -30
  353. package/src/utils/color-utils.ts +3 -3
  354. package/src/utils/deep-merge.ts +1 -1
  355. package/src/utils/resolve-theme-color.ts +8 -11
  356. package/src/utils/typography.ts +7 -10
  357. package/src/utils/unflatten.ts +2 -2
@@ -4,21 +4,21 @@
4
4
  * untyped (Figma-generated); these types describe the runtime theme that the
5
5
  * data is unflattened into, plus the public configuration surface.
6
6
  */
7
- import type { ComponentType } from 'react';
8
- import type { ImageStyle, StyleProp } from 'react-native';
9
- import type { DeepPartial } from '../utils/deep-merge';
10
- import type { BreakpointName } from './breakpoints.js';
7
+ import type { ComponentType } from "react";
8
+ import type { ImageStyle, StyleProp } from "react-native";
9
+ import type { DeepPartial } from "../utils/deep-merge";
10
+ import type { BreakpointName } from "./breakpoints.js";
11
11
  /** Spacing scale keys (dp, 4dp base unit). Read as `gap={3}` → string '3'. */
12
- export type SpacingKey = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '12' | '14' | '16' | '20' | '24' | '32';
12
+ export type SpacingKey = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "24" | "32";
13
13
  /** Border-radius scale keys. */
14
- export type RadiusKey = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
14
+ export type RadiusKey = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
15
15
  /**
16
16
  * The radius tokens offered as a component default. Excludes the extreme/rare
17
17
  * steps (`xs`, `2xl`, `3xl`).
18
18
  */
19
- export type DefaultRadiusToken = 'sm' | 'md' | 'lg' | 'xl' | 'full';
19
+ export type DefaultRadiusToken = "sm" | "md" | "lg" | "xl" | "full";
20
20
  /** Components whose default appearance can be configured. */
21
- export type RadiusComponent = 'button' | 'surface';
21
+ export type RadiusComponent = "button" | "surface";
22
22
  /** Elevation preset — platform-aware shadow + Android elevation. */
23
23
  export interface ElevationStyle {
24
24
  shadowColor: string;
@@ -31,12 +31,12 @@ export interface ElevationStyle {
31
31
  /** Android elevation. */
32
32
  elevation: number;
33
33
  }
34
- export type ElevationKey = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
34
+ export type ElevationKey = "none" | "xs" | "sm" | "md" | "lg" | "xl";
35
35
  export type ElevationScale = Record<ElevationKey, ElevationStyle>;
36
- export type RoleTextVariant = 'display-lg' | 'display-md' | 'display-sm' | 'headline-lg' | 'headline-md' | 'headline-sm' | 'title-lg' | 'title-md' | 'title-sm' | 'body-lg' | 'body-md' | 'body-sm' | 'label-lg' | 'label-md' | 'label-sm' | 'caption';
37
- export type HeadingTextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
36
+ export type RoleTextVariant = "display-lg" | "display-md" | "display-sm" | "headline-lg" | "headline-md" | "headline-sm" | "title-lg" | "title-md" | "title-sm" | "body-lg" | "body-md" | "body-sm" | "label-lg" | "label-md" | "label-sm" | "caption";
37
+ export type HeadingTextVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
38
38
  export type TextVariant = RoleTextVariant | HeadingTextVariant;
39
- export type FontWeightToken = 'regular' | 'medium' | 'semibold' | 'bold';
39
+ export type FontWeightToken = "regular" | "medium" | "semibold" | "bold";
40
40
  export interface TypeStyle {
41
41
  fontSize: number;
42
42
  lineHeight: number;
@@ -72,71 +72,71 @@ export interface Typography {
72
72
  export interface ThemeColor {
73
73
  background: string;
74
74
  shadow: string;
75
- 'surface.default': string;
76
- 'surface.raised': string;
77
- 'surface.sunken': string;
78
- 'surface.overlay': string;
79
- 'surface.accent': string;
80
- 'surface.accent.subtle': string;
81
- 'text.default': string;
82
- 'text.muted': string;
83
- 'text.subtle': string;
84
- 'text.disabled': string;
85
- 'text.inverse': string;
86
- 'text.link': string;
87
- 'text.accent': string;
88
- 'text.on-accent': string;
89
- 'text.on-accent-subtle': string;
90
- 'border.subtle': string;
91
- 'border.default': string;
92
- 'border.strong': string;
93
- 'border.focus': string;
94
- 'border.accent': string;
95
- 'action.bg.primary': string;
96
- 'action.bg.primary.hover': string;
97
- 'action.bg.primary.active': string;
98
- 'action.bg.primary.disabled': string;
99
- 'action.fg.primary': string;
100
- 'action.bg.primary.subtle': string;
101
- 'action.bg.primary.subtle.hover': string;
102
- 'action.bg.primary.subtle.active': string;
103
- 'action.bg.primary.subtle.disabled': string;
104
- 'action.fg.primary.subtle': string;
105
- 'action.bg.secondary': string;
106
- 'action.fg.secondary': string;
107
- 'action.bg.secondary.subtle': string;
108
- 'action.bg.secondary.subtle.hover': string;
109
- 'action.bg.secondary.subtle.active': string;
110
- 'action.bg.secondary.subtle.disabled': string;
111
- 'action.fg.secondary.subtle': string;
112
- 'status.success': string;
113
- 'status.success.bg': string;
114
- 'status.success.bg.subtle': string;
115
- 'status.success.border': string;
116
- 'status.success.border.subtle': string;
117
- 'status.success.fg': string;
118
- 'status.success.fg.subtle': string;
119
- 'status.warning': string;
120
- 'status.warning.bg': string;
121
- 'status.warning.bg.subtle': string;
122
- 'status.warning.border': string;
123
- 'status.warning.border.subtle': string;
124
- 'status.warning.fg': string;
125
- 'status.warning.fg.subtle': string;
126
- 'status.danger': string;
127
- 'status.danger.bg': string;
128
- 'status.danger.bg.subtle': string;
129
- 'status.danger.border': string;
130
- 'status.danger.border.subtle': string;
131
- 'status.danger.fg': string;
132
- 'status.danger.fg.subtle': string;
133
- 'status.info': string;
134
- 'status.info.bg': string;
135
- 'status.info.bg.subtle': string;
136
- 'status.info.border': string;
137
- 'status.info.border.subtle': string;
138
- 'status.info.fg': string;
139
- 'status.info.fg.subtle': string;
75
+ "surface.default": string;
76
+ "surface.raised": string;
77
+ "surface.sunken": string;
78
+ "surface.overlay": string;
79
+ "surface.accent": string;
80
+ "surface.accent.subtle": string;
81
+ "text.default": string;
82
+ "text.muted": string;
83
+ "text.subtle": string;
84
+ "text.disabled": string;
85
+ "text.inverse": string;
86
+ "text.link": string;
87
+ "text.accent": string;
88
+ "text.on-accent": string;
89
+ "text.on-accent-subtle": string;
90
+ "border.subtle": string;
91
+ "border.default": string;
92
+ "border.strong": string;
93
+ "border.focus": string;
94
+ "border.accent": string;
95
+ "action.bg.primary": string;
96
+ "action.bg.primary.hover": string;
97
+ "action.bg.primary.active": string;
98
+ "action.bg.primary.disabled": string;
99
+ "action.fg.primary": string;
100
+ "action.bg.primary.subtle": string;
101
+ "action.bg.primary.subtle.hover": string;
102
+ "action.bg.primary.subtle.active": string;
103
+ "action.bg.primary.subtle.disabled": string;
104
+ "action.fg.primary.subtle": string;
105
+ "action.bg.secondary": string;
106
+ "action.fg.secondary": string;
107
+ "action.bg.secondary.subtle": string;
108
+ "action.bg.secondary.subtle.hover": string;
109
+ "action.bg.secondary.subtle.active": string;
110
+ "action.bg.secondary.subtle.disabled": string;
111
+ "action.fg.secondary.subtle": string;
112
+ "status.success": string;
113
+ "status.success.bg": string;
114
+ "status.success.bg.subtle": string;
115
+ "status.success.border": string;
116
+ "status.success.border.subtle": string;
117
+ "status.success.fg": string;
118
+ "status.success.fg.subtle": string;
119
+ "status.warning": string;
120
+ "status.warning.bg": string;
121
+ "status.warning.bg.subtle": string;
122
+ "status.warning.border": string;
123
+ "status.warning.border.subtle": string;
124
+ "status.warning.fg": string;
125
+ "status.warning.fg.subtle": string;
126
+ "status.danger": string;
127
+ "status.danger.bg": string;
128
+ "status.danger.bg.subtle": string;
129
+ "status.danger.border": string;
130
+ "status.danger.border.subtle": string;
131
+ "status.danger.fg": string;
132
+ "status.danger.fg.subtle": string;
133
+ "status.info": string;
134
+ "status.info.bg": string;
135
+ "status.info.bg.subtle": string;
136
+ "status.info.border": string;
137
+ "status.info.border.subtle": string;
138
+ "status.info.fg": string;
139
+ "status.info.fg.subtle": string;
140
140
  }
141
141
  /** State-layer opacities for disabled / pressed feedback. */
142
142
  export interface OpacityTokens {
@@ -172,7 +172,7 @@ export interface TerraTheme {
172
172
  opacity: OpacityTokens;
173
173
  layout: LayoutTokens;
174
174
  }
175
- export type BackgroundColorToken = 'background';
175
+ export type BackgroundColorToken = "background";
176
176
  export type SurfaceColorToken = Extract<keyof ThemeColor, `surface.${string}`>;
177
177
  export type TextColorToken = Extract<keyof ThemeColor, `text.${string}`>;
178
178
  export type BorderColorToken = Extract<keyof ThemeColor, `border.${string}`>;
@@ -186,7 +186,7 @@ export type ContentColorToken = TextColorToken;
186
186
  * or a raw CSS color literal (`#fff`, `rgb(...)`, `transparent`).
187
187
  */
188
188
  export type ColorToken = BackgroundColorToken | SurfaceColorToken | TextColorToken | BorderColorToken | ActionColorToken | StatusColorToken | (string & {});
189
- export type Scheme = 'light' | 'dark';
189
+ export type Scheme = "light" | "dark";
190
190
  /** A hue shorthand per scheme — expands to primary + accent token patches. */
191
191
  export interface AccentShorthand {
192
192
  light: string;
@@ -210,7 +210,7 @@ export interface TerraIconProps {
210
210
  strokeWidth?: number;
211
211
  }
212
212
  export type TerraIconComponent = ComponentType<TerraIconProps>;
213
- export type TerraImageContentFit = 'cover' | 'contain' | 'fill';
213
+ export type TerraImageContentFit = "cover" | "contain" | "fill";
214
214
  export interface TerraImageProps {
215
215
  source: {
216
216
  uri: string;
@@ -222,6 +222,21 @@ export interface TerraImageProps {
222
222
  placeholder?: {
223
223
  uri: string;
224
224
  } | number;
225
+ /**
226
+ * How `placeholder` fits its container. Defaults to matching `contentFit`
227
+ * — the expo-image backend otherwise defaults placeholders to
228
+ * `'scale-down'` regardless of `contentFit`, which renders a
229
+ * same-resolution placeholder visibly smaller than the loaded image.
230
+ * No-op on the default React Native `Image` backend.
231
+ */
232
+ placeholderContentFit?: TerraImageContentFit;
233
+ /**
234
+ * Identifies this image across recycled views (e.g. FlashList cells).
235
+ * Changing it resets the view to blank/placeholder before the new source
236
+ * loads, instead of holding the previous cell's bitmap during recycling.
237
+ * No-op on the default React Native `Image` backend.
238
+ */
239
+ recyclingKey?: string | null;
225
240
  onError?: () => void;
226
241
  }
227
242
  export type TerraImageComponent = ComponentType<TerraImageProps>;
@@ -233,10 +248,10 @@ declare global {
233
248
  }
234
249
  export interface TerraIconRegistry extends TerraUI.IconRegistry {
235
250
  }
236
- export type TerraSemanticIconName = 'navigation.back' | 'navigation.forward' | 'navigation.close' | 'status.info' | 'status.success' | 'status.warning' | 'status.danger' | 'person';
251
+ export type TerraSemanticIconName = "navigation.back" | "navigation.forward" | "navigation.close" | "status.info" | "status.success" | "status.warning" | "status.danger" | "person";
237
252
  export type TerraConfiguredIconName = keyof TerraIconRegistry & string;
238
253
  export type TerraIconName = TerraSemanticIconName | TerraConfiguredIconName;
239
- export type ThemeRadiusOverride = DeepPartial<TerraTheme['radius']> & {
254
+ export type ThemeRadiusOverride = DeepPartial<TerraTheme["radius"]> & {
240
255
  /**
241
256
  * Base corner radius in dp — the `lg` (×1) step. The rest of the scale is
242
257
  * derived by fixed multipliers (`xs` ×0.25, `sm` ×0.5, `md` ×0.75,
@@ -245,7 +260,7 @@ export type ThemeRadiusOverride = DeepPartial<TerraTheme['radius']> & {
245
260
  */
246
261
  base?: number;
247
262
  };
248
- export type ThemeSpacingOverride = DeepPartial<TerraTheme['spacing']> & {
263
+ export type ThemeSpacingOverride = DeepPartial<TerraTheme["spacing"]> & {
249
264
  /**
250
265
  * Base spacing unit in dp. Every step's value is its key multiplied by this
251
266
  * base (e.g. `'5'` → `5 × base`). Per-step spacing overrides still win over
@@ -254,7 +269,7 @@ export type ThemeSpacingOverride = DeepPartial<TerraTheme['spacing']> & {
254
269
  base?: number;
255
270
  };
256
271
  /** Theme override accepted at configure time. */
257
- export type TerraThemeOverride = DeepPartial<Omit<TerraTheme, 'radius' | 'spacing'>> & {
272
+ export type TerraThemeOverride = DeepPartial<Omit<TerraTheme, "radius" | "spacing">> & {
258
273
  radius?: ThemeRadiusOverride;
259
274
  spacing?: ThemeSpacingOverride;
260
275
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.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,CAAC,EAAE,mBAAmB,CAAC;IAC7B,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,8EAA8E;IAC9E,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,0DAA0D;IAC1D,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,kBAAkB,CAAC;QAAC,IAAI,CAAC,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACpE,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAC3D;;;;OAIG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,sDAAsD;IACtD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -1,4 +1,4 @@
1
- import type { Accent, NormalizedAccent } from '../theme/types';
1
+ import type { Accent, NormalizedAccent } from "../theme/types";
2
2
  /** Normalizes any accent input into per-scheme partial-theme overrides. */
3
3
  export declare function normalizeAccent(accent: Accent): NormalizedAccent;
4
4
  //# sourceMappingURL=accent-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accent-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/accent-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AA2CtB,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAQhE"}
1
+ {"version":3,"file":"accent-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/accent-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAmB,gBAAgB,EAAc,MAAM,cAAc,CAAC;AAuC1F,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAQhE"}
@@ -1,4 +1,4 @@
1
- import type { ColorToken, TerraTheme } from '../theme/types';
1
+ import type { ColorToken, TerraTheme } from "../theme/types";
2
2
  /**
3
3
  * Resolves a {@link ColorToken} to a concrete color string using the theme.
4
4
  * Raw literals pass through unchanged.
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-theme-color.d.ts","sourceRoot":"","sources":["../../../../src/utils/resolve-theme-color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS3D;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,KAAK,EAAE,UAAU,GAChB,MAAM,GAAG,SAAS,CAKpB"}
1
+ {"version":3,"file":"resolve-theme-color.d.ts","sourceRoot":"","sources":["../../../../src/utils/resolve-theme-color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS3D;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAKtG"}
@@ -1,6 +1,6 @@
1
- import type { FontWeightToken } from '../theme/types';
1
+ import type { FontWeightToken } from "../theme/types";
2
2
  /** RN's sentinel for the platform default font (SF on iOS, Roboto on Android). */
3
3
  export declare const SYSTEM_FONT = "System";
4
4
  /** Numeric fontWeight applied when a weight token maps to the system font. */
5
- export declare const FONT_WEIGHT_VALUE: Record<FontWeightToken, '400' | '500' | '600' | '700'>;
5
+ export declare const FONT_WEIGHT_VALUE: Record<FontWeightToken, "400" | "500" | "600" | "700">;
6
6
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/utils/typography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,kFAAkF;AAClF,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAM9B,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/utils/typography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,kFAAkF;AAClF,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAKpF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-terra-ui",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Themeable React Native UI components built on react-native-unistyles",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -1,13 +1,12 @@
1
- import { useState } from 'react';
2
- import { Text, View } from 'react-native';
1
+ import { useState } from "react";
2
+ import { Text, View } from "react-native";
3
3
 
4
- import { StyleSheet, useUnistyles } from 'react-native-unistyles';
4
+ import { StyleSheet, useUnistyles } from "react-native-unistyles";
5
5
 
6
- import type { RadiusKey } from '#theme/types';
7
-
8
- import { Icon } from '../icon';
9
- import { Image } from '../image';
10
- import type { AvatarProps, AvatarShape, AvatarSize } from './types';
6
+ import type { RadiusKey } from "#theme/types";
7
+ import { Icon } from "../icon";
8
+ import { Image } from "../image";
9
+ import type { AvatarProps, AvatarShape, AvatarSize } from "./types";
11
10
 
12
11
  const SIZE_PX: Record<AvatarSize, number> = {
13
12
  xs: 24,
@@ -27,18 +26,14 @@ const INITIALS_FONT_SIZE: Record<AvatarSize, number> = {
27
26
 
28
27
  function getInitials(name: string): string {
29
28
  const parts = name.trim().split(/\s+/);
30
- const first = parts[0]?.[0] ?? '';
31
- const last = parts.length > 1 ? (parts[parts.length - 1]?.[0] ?? '') : '';
29
+ const first = parts[0]?.[0] ?? "";
30
+ const last = parts.length > 1 ? (parts[parts.length - 1]?.[0] ?? "") : "";
32
31
  return (first + last).toUpperCase();
33
32
  }
34
33
 
35
- function getBorderRadius(
36
- shape: AvatarShape,
37
- sizePx: number,
38
- radiusMd: number
39
- ): number {
40
- if (shape === 'circle') return sizePx / 2;
41
- if (shape === 'rounded') return radiusMd;
34
+ function getBorderRadius(shape: AvatarShape, sizePx: number, radiusMd: number): number {
35
+ if (shape === "circle") return sizePx / 2;
36
+ if (shape === "rounded") return radiusMd;
42
37
  return 0;
43
38
  }
44
39
 
@@ -47,20 +42,20 @@ function getBorderRadius(
47
42
  // `'full'` (theme.radius.full) clamps to a circle at any size, same as the
48
43
  // container's computed `sizePx / 2`.
49
44
  function getImageRadius(shape: AvatarShape): RadiusKey {
50
- if (shape === 'circle') return 'full';
51
- if (shape === 'rounded') return 'md';
52
- return 'none';
45
+ if (shape === "circle") return "full";
46
+ if (shape === "rounded") return "md";
47
+ return "none";
53
48
  }
54
49
 
55
50
  export function Avatar({
56
- size = 'md',
57
- shape = 'circle',
51
+ size = "md",
52
+ shape = "circle",
58
53
  source,
59
54
  name,
60
55
  fallback,
61
- contentFit = 'cover',
62
- color = 'secondary',
63
- variant = 'solid',
56
+ contentFit = "cover",
57
+ color = "secondary",
58
+ variant = "solid",
64
59
  style,
65
60
  ...rest
66
61
  }: AvatarProps) {
@@ -72,8 +67,8 @@ export function Avatar({
72
67
  const borderRadius = getBorderRadius(shape, sizePx, theme.radius.md);
73
68
  const showFallback = !source || hasError;
74
69
 
75
- const bg = styles.base.backgroundColor ?? '';
76
- const fg = styles.base.color ?? '';
70
+ const bg = styles.base.backgroundColor ?? "";
71
+ const fg = styles.base.color ?? "";
77
72
 
78
73
  const fallbackContent =
79
74
  fallback !== undefined ? (
@@ -82,7 +77,7 @@ export function Avatar({
82
77
  <Text
83
78
  style={{
84
79
  fontSize: INITIALS_FONT_SIZE[size],
85
- fontWeight: '600',
80
+ fontWeight: "600",
86
81
  color: fg,
87
82
  includeFontPadding: false,
88
83
  }}
@@ -103,9 +98,9 @@ export function Avatar({
103
98
  height: sizePx,
104
99
  borderRadius,
105
100
  backgroundColor: bg,
106
- alignItems: 'center',
107
- justifyContent: 'center',
108
- overflow: 'hidden',
101
+ alignItems: "center",
102
+ justifyContent: "center",
103
+ overflow: "hidden",
109
104
  },
110
105
  style,
111
106
  ]}
@@ -151,83 +146,83 @@ const styles = StyleSheet.create((theme) => {
151
146
  },
152
147
  compoundVariants: [
153
148
  {
154
- color: 'secondary',
155
- variant: 'solid',
149
+ color: "secondary",
150
+ variant: "solid",
156
151
  styles: {
157
- backgroundColor: c['action.bg.secondary'],
158
- color: c['action.fg.secondary'],
152
+ backgroundColor: c["action.bg.secondary"],
153
+ color: c["action.fg.secondary"],
159
154
  },
160
155
  },
161
156
  {
162
- color: 'secondary',
163
- variant: 'soft',
157
+ color: "secondary",
158
+ variant: "soft",
164
159
  styles: {
165
- backgroundColor: c['action.bg.secondary.subtle'],
166
- color: c['action.fg.secondary.subtle'],
160
+ backgroundColor: c["action.bg.secondary.subtle"],
161
+ color: c["action.fg.secondary.subtle"],
167
162
  },
168
163
  },
169
164
  {
170
- color: 'primary',
171
- variant: 'solid',
165
+ color: "primary",
166
+ variant: "solid",
172
167
  styles: {
173
- backgroundColor: c['action.bg.primary'],
174
- color: c['action.fg.primary'],
168
+ backgroundColor: c["action.bg.primary"],
169
+ color: c["action.fg.primary"],
175
170
  },
176
171
  },
177
172
  {
178
- color: 'primary',
179
- variant: 'soft',
173
+ color: "primary",
174
+ variant: "soft",
180
175
  styles: {
181
- backgroundColor: c['action.bg.primary.subtle'],
182
- color: c['action.fg.primary.subtle'],
176
+ backgroundColor: c["action.bg.primary.subtle"],
177
+ color: c["action.fg.primary.subtle"],
183
178
  },
184
179
  },
185
180
  {
186
- color: 'success',
187
- variant: 'solid',
181
+ color: "success",
182
+ variant: "solid",
188
183
  styles: {
189
- backgroundColor: c['status.success.bg'],
190
- color: c['status.success.fg'],
184
+ backgroundColor: c["status.success.bg"],
185
+ color: c["status.success.fg"],
191
186
  },
192
187
  },
193
188
  {
194
- color: 'success',
195
- variant: 'soft',
189
+ color: "success",
190
+ variant: "soft",
196
191
  styles: {
197
- backgroundColor: c['status.success.bg.subtle'],
198
- color: c['status.success.fg.subtle'],
192
+ backgroundColor: c["status.success.bg.subtle"],
193
+ color: c["status.success.fg.subtle"],
199
194
  },
200
195
  },
201
196
  {
202
- color: 'warning',
203
- variant: 'solid',
197
+ color: "warning",
198
+ variant: "solid",
204
199
  styles: {
205
- backgroundColor: c['status.warning.bg'],
206
- color: c['status.warning.fg'],
200
+ backgroundColor: c["status.warning.bg"],
201
+ color: c["status.warning.fg"],
207
202
  },
208
203
  },
209
204
  {
210
- color: 'warning',
211
- variant: 'soft',
205
+ color: "warning",
206
+ variant: "soft",
212
207
  styles: {
213
- backgroundColor: c['status.warning.bg.subtle'],
214
- color: c['status.warning.fg.subtle'],
208
+ backgroundColor: c["status.warning.bg.subtle"],
209
+ color: c["status.warning.fg.subtle"],
215
210
  },
216
211
  },
217
212
  {
218
- color: 'danger',
219
- variant: 'solid',
213
+ color: "danger",
214
+ variant: "solid",
220
215
  styles: {
221
- backgroundColor: c['status.danger.bg'],
222
- color: c['status.danger.fg'],
216
+ backgroundColor: c["status.danger.bg"],
217
+ color: c["status.danger.fg"],
223
218
  },
224
219
  },
225
220
  {
226
- color: 'danger',
227
- variant: 'soft',
221
+ color: "danger",
222
+ variant: "soft",
228
223
  styles: {
229
- backgroundColor: c['status.danger.bg.subtle'],
230
- color: c['status.danger.fg.subtle'],
224
+ backgroundColor: c["status.danger.bg.subtle"],
225
+ color: c["status.danger.fg.subtle"],
231
226
  },
232
227
  },
233
228
  ],
@@ -1,8 +1,8 @@
1
- export { Avatar } from './Avatar';
1
+ export { Avatar } from "./Avatar";
2
2
  export type {
3
3
  AvatarColor,
4
4
  AvatarProps,
5
5
  AvatarShape,
6
6
  AvatarSize,
7
7
  AvatarVariant,
8
- } from './types';
8
+ } from "./types";
@@ -1,19 +1,14 @@
1
- import type { ReactNode } from 'react';
2
- import type { ViewProps } from 'react-native';
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native";
3
3
 
4
- import type { TerraImageContentFit } from '#theme/types';
4
+ import type { TerraImageContentFit } from "#theme/types";
5
5
 
6
- export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
- export type AvatarShape = 'circle' | 'rounded' | 'square';
6
+ export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
7
+ export type AvatarShape = "circle" | "rounded" | "square";
8
8
  /** Semantic color scheme for the fallback state (initials / placeholder icon). */
9
- export type AvatarColor =
10
- | 'secondary'
11
- | 'primary'
12
- | 'success'
13
- | 'warning'
14
- | 'danger';
9
+ export type AvatarColor = "secondary" | "primary" | "success" | "warning" | "danger";
15
10
  /** Visual weight of the fallback background. */
16
- export type AvatarVariant = 'solid' | 'soft';
11
+ export type AvatarVariant = "solid" | "soft";
17
12
 
18
13
  export interface AvatarProps extends ViewProps {
19
14
  /** Predefined size token. Defaults to `'md'`. */