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
@@ -1,5 +1,5 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import type { ScreenScrollableProps } from '../types.js';
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import type { ScreenScrollableProps } from "../types.js";
3
3
  /**
4
4
  * Centres a loading/empty placeholder in whatever space the content leaves.
5
5
  * Grows so the placeholder sits in the middle of the content area rather than
@@ -8,7 +8,7 @@ import type { ScreenScrollableProps } from '../types.js';
8
8
  export declare function ScreenPlaceholder({ children }: {
9
9
  children: ReactNode;
10
10
  }): import("react").JSX.Element;
11
- interface PlaceholderInput extends Pick<ScreenScrollableProps, 'loading' | 'LoadingComponent' | 'EmptyComponent'> {
11
+ interface PlaceholderInput extends Pick<ScreenScrollableProps, "loading" | "LoadingComponent" | "EmptyComponent"> {
12
12
  /** Whether the container has nothing to render (empty `data`, no children). */
13
13
  isEmpty: boolean;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/parts/ScreenPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAEtE;AAED,UAAU,gBACR,SAAQ,IAAI,CACV,qBAAqB,EACrB,SAAS,GAAG,kBAAkB,GAAG,gBAAgB,CAClD;IACD,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,OAAO,GACR,EAAE,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAUxC"}
1
+ {"version":3,"file":"ScreenPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/parts/ScreenPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAEtE;AAED,UAAU,gBACR,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;IACtF,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,OAAO,GACR,EAAE,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAQxC"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { ReactNode } from "react";
2
2
  /**
3
3
  * Which axes of the `layout.screen.margin` token a scroll container pads its
4
4
  * content with.
@@ -7,7 +7,7 @@ import type { ReactNode } from 'react';
7
7
  * structural insets — the header height and the safe area — which apply
8
8
  * whether or not margins are on.
9
9
  */
10
- export type ScreenMargins = 'all' | 'x' | 'y' | 'none';
10
+ export type ScreenMargins = "all" | "x" | "y" | "none";
11
11
  /**
12
12
  * Props shared by `Screen.ScrollView`, `Screen.FlatList` and `Screen.List`, so
13
13
  * a screen can swap one container for another without relearning its API.
@@ -1,5 +1,5 @@
1
- import { type ComponentType, type ReactElement } from 'react';
2
- import type { ScreenMargins } from './types.js';
1
+ import { type ComponentType, type ReactElement } from "react";
2
+ import type { ScreenMargins } from "./types.js";
3
3
  export type ListHeaderComponent = ComponentType | ReactElement | null | undefined;
4
4
  /** Renders a `ListHeaderComponent`-shaped prop (element, component, or nullish) into an element. */
5
5
  export declare function renderListHeader(ListHeaderComponent: ListHeaderComponent): ReactElement | null;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/screen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAC3B,aAAa,GACb,YAAY,GACZ,IAAI,GACJ,SAAS,CAAC;AAEd,oGAAoG;AACpG,wBAAgB,gBAAgB,CAC9B,mBAAmB,EAAE,mBAAmB,GACvC,YAAY,GAAG,IAAI,CAIrB;AAED,kDAAkD;AAClD,eAAO,MAAM,UAAU,GAAI,SAAS,aAAa,KAAG,OACd,CAAC;AAEvC,iFAAiF;AACjF,eAAO,MAAM,UAAU,GAAI,SAAS,aAAa,KAAG,OACd,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/screen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;AAElF,oGAAoG;AACpG,wBAAgB,gBAAgB,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAI9F;AAED,kDAAkD;AAClD,eAAO,MAAM,UAAU,GAAI,SAAS,aAAa,KAAG,OAA+C,CAAC;AAEpG,iFAAiF;AACjF,eAAO,MAAM,UAAU,GAAI,SAAS,aAAa,KAAG,OAA+C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type ReactNode } from 'react';
1
+ import { type ReactElement, type ReactNode } from "react";
2
2
  type AnyProps = Record<string, unknown>;
3
3
  export interface SlotProps {
4
4
  /** Props (incl. pre-merged `style` and optional `ref`) to merge onto the child. */
@@ -12,6 +12,6 @@ export interface SlotProps {
12
12
  * rendering a wrapper. Composes `on*` handlers (child first), `style`
13
13
  * (`[slotStyle, childStyle]`), and refs.
14
14
  */
15
- export declare function Slot({ slotProps, ownerName, children, }: SlotProps): ReactElement | null;
15
+ export declare function Slot({ slotProps, ownerName, children }: SlotProps): ReactElement | null;
16
16
  export {};
17
17
  //# sourceMappingURL=Slot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/Slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAIf,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,mFAAmF;IACnF,SAAS,EAAE,QAAQ,CAAC;IACpB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,SAAuB,EACvB,QAAQ,GACT,EAAE,SAAS,GAAG,YAAY,GAAG,IAAI,CA0BjC"}
1
+ {"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/Slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAIlG,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,mFAAmF;IACnF,SAAS,EAAE,QAAQ,CAAC;IACpB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,SAAuB,EAAE,QAAQ,EAAE,EAAE,SAAS,GAAG,YAAY,GAAG,IAAI,CAqBrG"}
@@ -2,7 +2,7 @@
2
2
  * Low-level composition helpers for advanced use cases (custom primitives,
3
3
  * `asChild` patterns). Most apps should use component APIs directly.
4
4
  */
5
- export type { SlotProps } from './Slot.js';
6
- export { Slot } from './Slot.js';
7
- export { composeRefs, mergeProps } from './utils.js';
5
+ export type { SlotProps } from "./Slot.js";
6
+ export { Slot } from "./Slot.js";
7
+ export { composeRefs, mergeProps } from "./utils.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Ref } from 'react';
1
+ import type { Ref } from "react";
2
2
  /** Composes multiple refs so each receives the node. */
3
3
  export declare function composeRefs<T>(...refs: (Ref<T> | undefined)[]): Ref<T>;
4
4
  type AnyProps = Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,GAAG,EAAE,MAAM,OAAO,CAAC;AAUnD,wDAAwD;AACxD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAMtE;AAED,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAIxC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,QAAQ,EACnB,UAAU,EAAE,QAAQ,GACnB,QAAQ,CAwBV"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,GAAG,EAAE,MAAM,OAAO,CAAC;AAUnD,wDAAwD;AACxD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAMtE;AAED,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAIxC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAAG,QAAQ,CAwB9E"}
@@ -1,5 +1,5 @@
1
- import type { ColorToken } from '../../theme/types';
2
- export type SpinnerSize = 'sm' | 'md' | 'lg';
1
+ import type { ColorToken } from "../../theme/types";
2
+ export type SpinnerSize = "sm" | "md" | "lg";
3
3
  export interface SpinnerProps {
4
4
  /** Spinner diameter preset. Defaults to `'md'`. */
5
5
  size?: SpinnerSize;
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/Spinner.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,wEAAwE;IACxE,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAkED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,KAAqB,EAAE,EAAE,YAAY,+BAsD3E"}
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/Spinner.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,wEAAwE;IACxE,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAyCD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,KAAqB,EAAE,EAAE,YAAY,+BA+C3E"}
@@ -1,3 +1,3 @@
1
- export type { SpinnerProps, SpinnerSize } from './Spinner.js';
2
- export { Spinner } from './Spinner.js';
1
+ export type { SpinnerProps, SpinnerSize } from "./Spinner.js";
2
+ export { Spinner } from "./Spinner.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- import type { ElevationKey } from '../../theme/types';
2
- import { type BoxProps } from '../box/index.js';
1
+ import type { ElevationKey } from "../../theme/types";
2
+ import { type BoxProps } from "../box/index.js";
3
3
  /** Background level of a {@link Surface}. */
4
- export type SurfaceVariant = 'base' | 'raised' | 'sunken' | 'transparent';
5
- export interface SurfaceProps extends Omit<BoxProps, 'bg'> {
4
+ export type SurfaceVariant = "base" | "raised" | "sunken" | "transparent";
5
+ export interface SurfaceProps extends Omit<BoxProps, "background"> {
6
6
  /** Background surface level. Defaults to `'base'`. */
7
7
  variant?: SurfaceVariant;
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../../src/components/surface/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,iBAAQ,CAAC;AAEnE,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE1E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxD,sDAAsD;IACtD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAmCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,0LAmBnB,CAAC"}
1
+ {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../../src/components/surface/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,iBAAQ,CAAC;AAEnE,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE1E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChE,sDAAsD;IACtD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AA6BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,0LAiBlB,CAAC"}
@@ -1,3 +1,3 @@
1
- export type { SurfaceProps, SurfaceVariant } from './Surface.js';
2
- export { Surface } from './Surface.js';
1
+ export type { SurfaceProps, SurfaceVariant } from "./Surface.js";
2
+ export { Surface } from "./Surface.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { type TextProps as RNTextProps } from 'react-native';
2
- import type { ColorToken, FontWeightToken, TextVariant } from '../../theme/types';
3
- export type TextAlign = 'left' | 'center' | 'right' | 'justify';
1
+ import { type TextProps as RNTextProps } from "react-native";
2
+ import type { ColorToken, FontWeightToken, TextVariant } from "../../theme/types";
3
+ export type TextAlign = "left" | "center" | "right" | "justify";
4
4
  export interface TextProps extends RNTextProps {
5
5
  /** Typographic role. Defaults to `body-md`. */
6
6
  variant?: TextVariant;
@@ -11,7 +11,7 @@ export interface TextProps extends RNTextProps {
11
11
  align?: TextAlign;
12
12
  italic?: boolean;
13
13
  underline?: boolean;
14
- transform?: 'uppercase' | 'lowercase' | 'capitalize';
14
+ transform?: "uppercase" | "lowercase" | "capitalize";
15
15
  strikeThrough?: boolean;
16
16
  /** Truncate to a single line with a trailing ellipsis. */
17
17
  isTruncated?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,IAAI,WAAW,EAE9B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EAGf,WAAW,EACZ,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAiBhE,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,+CAA+C;IAC/C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,uLAoEhB,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,SAAS,IAAI,WAAW,EAAkB,MAAM,cAAc,CAAC;AAI7F,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EAGf,WAAW,EACZ,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAiBhE,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,+CAA+C;IAC/C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,uLA6Df,CAAC"}
@@ -1,3 +1,3 @@
1
- export type { TextAlign, TextProps } from './Text.js';
2
- export { Text } from './Text.js';
1
+ export type { TextAlign, TextProps } from "./Text.js";
2
+ export { Text } from "./Text.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,18 @@
1
- import { type ReactNode } from 'react';
2
- import type { PressableProps } from 'react-native';
3
- import type { TerraIconName } from '../../theme/types';
4
- import { type ButtonProps } from '../button/index.js';
5
- import { type IconProps } from '../icon/index.js';
6
- import { type SurfaceProps } from '../surface/index.js';
7
- import { type TextProps } from '../text/index.js';
8
- import type { ToastId as StackToastId, ToastShowOptions } from './types.js';
9
- export type ToastVariant = 'default' | 'accent' | 'info' | 'success' | 'warning' | 'danger';
1
+ import { type ReactNode } from "react";
2
+ import type { PressableProps } from "react-native";
3
+ import type { TerraIconName } from "../../theme/types";
4
+ import { type ButtonProps } from "../button/index.js";
5
+ import { type IconProps } from "../icon/index.js";
6
+ import { type SurfaceProps } from "../surface/index.js";
7
+ import { type TextProps } from "../text/index.js";
8
+ import type { ToastId as StackToastId, ToastShowOptions } from "./types.js";
9
+ export type ToastVariant = "default" | "accent" | "info" | "success" | "warning" | "danger";
10
10
  type ToastInstanceId = string | number;
11
11
  export interface ToastControls {
12
12
  hide?: (id: ToastInstanceId) => void;
13
13
  id?: ToastInstanceId;
14
14
  }
15
- export interface ToastProps extends Omit<SurfaceProps, 'id' | 'variant'> {
15
+ export interface ToastProps extends Omit<SurfaceProps, "id" | "variant"> {
16
16
  /** Visual tone for the toast. Defaults to `default`. */
17
17
  variant?: ToastVariant;
18
18
  /** Optional identifier passed back to `hide` when `Toast.Close` is pressed. */
@@ -29,26 +29,26 @@ declare const ToastTitle: import("react").ForwardRefExoticComponent<ToastTitlePr
29
29
  export interface ToastDescriptionProps extends TextProps {
30
30
  }
31
31
  declare const ToastDescription: import("react").ForwardRefExoticComponent<ToastDescriptionProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
32
- export interface ToastActionProps extends Omit<PressableProps, 'children' | 'disabled' | 'style'> {
32
+ export interface ToastActionProps extends Omit<PressableProps, "children" | "disabled" | "style"> {
33
33
  children?: ReactNode;
34
34
  /** Override the action button colour. Defaults to the parent Toast variant. */
35
35
  variant?: ToastVariant;
36
36
  fullWidth?: boolean;
37
37
  isDisabled?: boolean;
38
- size?: 'sm' | 'md' | 'lg';
39
- style?: PressableProps['style'];
38
+ size?: "sm" | "md" | "lg";
39
+ style?: PressableProps["style"];
40
40
  }
41
41
  declare const ToastAction: import("react").ForwardRefExoticComponent<ToastActionProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
42
- export interface ToastCloseProps extends Omit<ButtonProps, 'children'> {
42
+ export interface ToastCloseProps extends Omit<ButtonProps, "children"> {
43
43
  children?: ReactNode;
44
- iconProps?: Omit<IconProps, 'name'>;
44
+ iconProps?: Omit<IconProps, "name">;
45
45
  }
46
46
  declare const ToastClose: import("react").ForwardRefExoticComponent<ToastCloseProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
47
- export interface ToastIconProps extends Omit<IconProps, 'name'> {
47
+ export interface ToastIconProps extends Omit<IconProps, "name"> {
48
48
  name?: TerraIconName;
49
49
  }
50
50
  declare const ToastIcon: import("react").ForwardRefExoticComponent<ToastIconProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
51
- export interface DefaultToastProps extends Omit<ToastProps, 'children'> {
51
+ export interface DefaultToastProps extends Omit<ToastProps, "children"> {
52
52
  label?: ReactNode;
53
53
  description?: ReactNode;
54
54
  actionLabel?: ReactNode;
@@ -64,7 +64,7 @@ type ToastComponent = typeof ToastRoot & {
64
64
  Close: typeof ToastClose;
65
65
  Icon: typeof ToastIcon;
66
66
  show: (options: ToastShowOptions) => StackToastId;
67
- hide: (id?: StackToastId | StackToastId[] | 'all') => void;
67
+ hide: (id?: StackToastId | StackToastId[] | "all") => void;
68
68
  };
69
69
  export declare const Toast: ToastComponent;
70
70
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAyB,cAAc,EAAQ,MAAM,cAAc,CAAC;AAKhF,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,cAAc,CAAC;AAG9D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAW,CAAC;AACrD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAS,CAAC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iBAAkB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IACrE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,IAAI,EACJ,eAAe,EACf,EAAE,EACF,IAAI,EACJ,OAAmB,EACnB,GAAG,IAAI,EACR,EAAE,iBAAiB,+BAiBnB;AAED,KAAK,cAAc,GAAG,OAAO,SAAS,GAAG;IACvC,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,WAAW,EAAE,OAAO,gBAAgB,CAAC;IACrC,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,IAAI,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,YAAY,CAAC;IAClD,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,KAAK,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,KAAK,EAAgB,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ToastManager, ToastProviderProps } from './types.js';
1
+ import type { ToastManager, ToastProviderProps } from "./types.js";
2
2
  export declare function ToastProvider({ children, defaultPlacement, defaultDuration, maxVisibleToasts, offset, }: ToastProviderProps): import("react").JSX.Element;
3
3
  export declare function useToast(): ToastManager;
4
4
  //# sourceMappingURL=ToastProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/ToastProvider.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAKV,YAAY,EAEZ,kBAAkB,EAInB,MAAM,YAAS,CAAC;AA2EjB,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,gBAAwB,EACxB,eAAkC,EAClC,gBAA6C,EAC7C,MAAM,GACP,EAAE,kBAAkB,+BAoLpB;AAyGD,wBAAgB,QAAQ,IAAI,YAAY,CAMvC"}
1
+ {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/ToastProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAKV,YAAY,EAEZ,kBAAkB,EAInB,MAAM,YAAS,CAAC;AA2DjB,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,gBAAwB,EACxB,eAAkC,EAClC,gBAA6C,EAC7C,MAAM,GACP,EAAE,kBAAkB,+BA8IpB;AA+FD,wBAAgB,QAAQ,IAAI,YAAY,CAMvC"}
@@ -1,5 +1,5 @@
1
- export type { DefaultToastProps, ToastActionProps, ToastCloseProps, ToastControls, ToastDescriptionProps, ToastIconProps, ToastProps, ToastTitleProps, ToastVariant, } from './Toast.js';
2
- export { DefaultToast, Toast } from './Toast.js';
3
- export { ToastProvider, useToast } from './ToastProvider.js';
4
- export type { ToastActionHelpers, ToastComponentProps, ToastDuration, ToastId, ToastItem, ToastManager, ToastPlacement, ToastProviderProps, ToastShowConfig, ToastShowOptions, ToastShowOptionsWithComponent, } from './types.js';
1
+ export type { DefaultToastProps, ToastActionProps, ToastCloseProps, ToastControls, ToastDescriptionProps, ToastIconProps, ToastProps, ToastTitleProps, ToastVariant, } from "./Toast.js";
2
+ export { DefaultToast, Toast } from "./Toast.js";
3
+ export { ToastProvider, useToast } from "./ToastProvider.js";
4
+ export type { ToastActionHelpers, ToastComponentProps, ToastDuration, ToastId, ToastItem, ToastManager, ToastPlacement, ToastProviderProps, ToastShowConfig, ToastShowOptions, ToastShowOptionsWithComponent, } from "./types.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { ReactElement } from 'react';
2
- import { type SharedValue } from 'react-native-reanimated';
3
- import type { ToastId, ToastPlacement } from '../types.js';
1
+ import type { ReactElement } from "react";
2
+ import { type SharedValue } from "react-native-reanimated";
3
+ import type { ToastId, ToastPlacement } from "../types.js";
4
4
  export interface ToastAnimatedItemProps {
5
5
  children: ReactElement;
6
6
  heights: SharedValue<Record<ToastId, number>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ToastAnimatedItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/parts/ToastAnimatedItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAiB,EAKf,KAAK,WAAW,EAIjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAU,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9C,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,sDAUR,CAAC;AAEjB,eAAO,MAAM,UAAU,sDAUP,CAAC;AAEjB,eAAO,MAAM,cAAc,sDAUX,CAAC;AAEjB,eAAO,MAAM,aAAa,sDAUV,CAAC;AASjB,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAO,EACP,EAAE,EACF,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,sBAAsB,+BA0ExB"}
1
+ {"version":3,"file":"ToastAnimatedItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/parts/ToastAnimatedItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAiB,EAKf,KAAK,WAAW,EAIjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAU,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9C,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,sDAUR,CAAC;AAEjB,eAAO,MAAM,UAAU,sDAUP,CAAC;AAEjB,eAAO,MAAM,cAAc,sDAUX,CAAC;AAEjB,eAAO,MAAM,aAAa,sDAUV,CAAC;AASjB,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAO,EACP,EAAE,EACF,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,sBAAsB,+BAkExB"}
@@ -1,13 +1,13 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import type { ToastProps, ToastVariant } from './Toast.js';
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import type { ToastProps, ToastVariant } from "./Toast.js";
3
3
  export type ToastId = string;
4
- export type ToastDuration = number | 'persistent';
5
- export type ToastPlacement = 'top' | 'bottom';
4
+ export type ToastDuration = number | "persistent";
5
+ export type ToastPlacement = "top" | "bottom";
6
6
  export interface ToastActionHelpers {
7
- show: ToastManager['show'];
8
- hide: ToastManager['hide'];
7
+ show: ToastManager["show"];
8
+ hide: ToastManager["hide"];
9
9
  }
10
- export interface ToastShowConfig extends Pick<ToastProps, 'variant'> {
10
+ export interface ToastShowConfig extends Pick<ToastProps, "variant"> {
11
11
  id?: ToastId;
12
12
  label?: ReactNode;
13
13
  description?: ReactNode;
@@ -23,8 +23,8 @@ export interface ToastShowConfig extends Pick<ToastProps, 'variant'> {
23
23
  export interface ToastComponentProps {
24
24
  id: ToastId;
25
25
  index: number;
26
- hide: ToastManager['hide'];
27
- show: ToastManager['show'];
26
+ hide: ToastManager["hide"];
27
+ show: ToastManager["show"];
28
28
  }
29
29
  export interface ToastShowOptionsWithComponent {
30
30
  id?: ToastId;
@@ -44,7 +44,7 @@ export interface ToastItem {
44
44
  }
45
45
  export interface ToastManager {
46
46
  show: (options: ToastShowOptions) => ToastId;
47
- hide: (id?: ToastId | ToastId[] | 'all') => void;
47
+ hide: (id?: ToastId | ToastId[] | "all") => void;
48
48
  }
49
49
  export interface ToastProviderProps {
50
50
  children?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAExD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAC7B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAClD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;IAClE,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CA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AAE,OAAO,GAAG,OAAO,EAAE,GAAG,KAAK,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE;QACP,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ToastId, ToastManager, ToastShowOptions } from '../types.js';
1
+ import type { ToastId, ToastManager, ToastShowOptions } from "../types.js";
2
2
  export declare function setToastManager(manager: ToastManager | null): void;
3
3
  export declare function showToast(options: ToastShowOptions): ToastId;
4
- export declare function hideToast(id?: ToastId | ToastId[] | 'all'): void;
4
+ export declare function hideToast(id?: ToastId | ToastId[] | "all"): void;
5
5
  //# sourceMappingURL=controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/utils/controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAIxE,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAElE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAU5D;AAED,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAEhE"}
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/utils/controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAIxE,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAElE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAQ5D;AAED,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAEhE"}
@@ -1,7 +1,7 @@
1
- import { type ReactNode } from 'react';
2
- import { type PressableProps, type ViewProps } from 'react-native';
3
- import type { ColorToken, SpacingKey, TerraIconName } from '../../theme/types';
4
- interface ToolbarButtonBaseProps extends Omit<PressableProps, 'children' | 'style'> {
1
+ import { type ReactNode } from "react";
2
+ import { type PressableProps, type ViewProps } from "react-native";
3
+ import type { ColorToken, SpacingKey, TerraIconName } from "../../theme/types";
4
+ interface ToolbarButtonBaseProps extends Omit<PressableProps, "children" | "style"> {
5
5
  /** Icon to render, before the label when both are given. */
6
6
  icon?: TerraIconName;
7
7
  /** Icon size in density-independent pixels. Defaults to `20`. */
@@ -28,7 +28,7 @@ interface ToolbarButtonBaseProps extends Omit<PressableProps, 'children' | 'styl
28
28
  * pinned over a hero image) without a wrapper view. Supports `Pressable`'s
29
29
  * function form for press-state styling.
30
30
  */
31
- style?: PressableProps['style'];
31
+ style?: PressableProps["style"];
32
32
  }
33
33
  /**
34
34
  * An icon-only button has no visible text, so it must carry an
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,UAAU,EAAE,UAA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AAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,QAAa,EACb,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,OAAkB,EAClB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,kBAAkB,+BAoCpB;AAyBD,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,mDAAmD;IACnD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,+LAgBvB,CAAC;AAIH,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,WAAW,0LASf,CAAC;AAEH,KAAK,gBAAgB,GAAG,OAAO,WAAW,GAAG;IAC3C,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,MAAM,EAAE,OAAO,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAkB,gBAAgB,CAAC"}
@@ -1,3 +1,3 @@
1
- export type { ToolbarButtonProps, ToolbarGroupProps, ToolbarProps, } from './Toolbar.js';
2
- export { Toolbar } from './Toolbar.js';
1
+ export type { ToolbarButtonProps, ToolbarGroupProps, ToolbarProps, } from "./Toolbar.js";
2
+ export { Toolbar } from "./Toolbar.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { type PropsWithChildren } from 'react';
2
- import { type ResolvedScreenMargin } from '../theme/screen-margin.js';
3
- import type { Scheme, TerraTheme } from '../theme/types.js';
1
+ import { type PropsWithChildren } from "react";
2
+ import { type ResolvedScreenMargin } from "../theme/screen-margin.js";
3
+ import type { Scheme, TerraTheme } from "../theme/types.js";
4
4
  /**
5
5
  * Root provider for Terra UI. Wrap your app once near the root.
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,2BAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAczD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,iBAAiB,gCAoB9D,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,EAAE,UAAU,CAAC;IAClB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,kCAAkC;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,qCAAqC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAezC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAGtD"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAA8C,MAAM,OAAO,CAAC;AAO1G,OAAO,EAAE,KAAK,oBAAoB,EAAuB,MAAM,2BAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAczD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,iBAAiB,gCAe9D,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,EAAE,UAAU,CAAC;IAClB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,kCAAkC;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,qCAAqC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAezC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAGtD"}
@@ -1,3 +1,3 @@
1
- export type { UseThemeResult } from './ThemeProvider.js';
2
- export { TerraUIProvider, useScreenMargin, useTheme } from './ThemeProvider.js';
1
+ export type { UseThemeResult } from "./ThemeProvider.js";
2
+ export { TerraUIProvider, useScreenMargin, useTheme } from "./ThemeProvider.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './context/index.js';
2
- export * from './components/index.js';
3
- export * from './theme/index.js';
1
+ export * from "./context/index.js";
2
+ export * from "./components/index.js";
3
+ export * from "./theme/index.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { UnistylesBreakpoints } from 'react-native-unistyles';
1
+ import type { UnistylesBreakpoints } from "react-native-unistyles";
2
2
  /**
3
3
  * Viewport-width breakpoints (dp), registered with Unistyles via
4
4
  * `StyleSheet.configure({ breakpoints })` in {@link ./registry.ts}. `xs` must
@@ -13,7 +13,7 @@ export declare const breakpoints: {
13
13
  };
14
14
  export type AppBreakpoints = typeof breakpoints;
15
15
  export type BreakpointName = keyof AppBreakpoints;
16
- declare module 'react-native-unistyles' {
16
+ declare module "react-native-unistyles" {
17
17
  interface UnistylesBreakpoints extends AppBreakpoints {
18
18
  }
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/theme/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC;AAElD,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,oBAAqB,SAAQ,cAAc;KAAG;CAChE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,EACjC,UAAU,EAAE,MAAM,oBAAoB,GAAG,SAAS,GACjD,CAAC,CAIH"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/theme/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC;AAElD,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,oBAAqB,SAAQ,cAAc;KAAG;CAChE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,EACjC,UAAU,EAAE,MAAM,oBAAoB,GAAG,SAAS,GACjD,CAAC,CAEH"}
@@ -1,4 +1,4 @@
1
- import type { TerraIconComponent, TerraSemanticIconName } from '../types.js';
1
+ import type { TerraIconComponent, TerraSemanticIconName } from "../types.js";
2
2
  export declare const PersonIcon: TerraIconComponent;
3
3
  export declare const defaultIcons: Record<TerraSemanticIconName, TerraIconComponent>;
4
4
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAElB,qBAAqB,EACtB,MAAM,aAAU,CAAC;AAsHlB,eAAO,MAAM,UAAU,EAAE,kBAWxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,CAS1E,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAkB,qBAAqB,EAAE,MAAM,aAAU,CAAC;AA2G1F,eAAO,MAAM,UAAU,EAAE,kBAWxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,CAS1E,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TerraImageComponent } from '../types.js';
1
+ import type { TerraImageComponent } from "../types.js";
2
2
  /** Default image implementation, backed by React Native's `Image`. */
3
3
  export declare const defaultImage: TerraImageComponent;
4
4
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/image.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,aAAU,CAAC;AAW1E,sEAAsE;AACtE,eAAO,MAAM,YAAY,EAAE,mBAqBvB,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/image.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,aAAU,CAAC;AAQ1E,sEAAsE;AACtE,eAAO,MAAM,YAAY,EAAE,mBAmBvB,CAAC"}
@@ -1,15 +1,15 @@
1
- export { normalizeAccent } from '../utils/accent-utils';
2
- export { readableOn, shade, withAlpha } from '../utils/color-utils';
3
- export type { DeepPartial } from '../utils/deep-merge';
4
- export { deepMerge } from '../utils/deep-merge';
5
- export { resolveThemeColor } from '../utils/resolve-theme-color';
6
- export { FONT_WEIGHT_VALUE, SYSTEM_FONT } from '../utils/typography';
7
- export type { AppBreakpoints, BreakpointName } from './breakpoints.js';
8
- export { breakpoints, resolveBreakpointValue } from './breakpoints.js';
9
- export { configureTerraUI, getAccentNames, getDefaultRadius, getIcon, getImageComponent, getIsConfigured, getRequiredIcon, getSurfaceElevation, resolveTheme, } from './registry.js';
10
- export { applyAccent, applyScheme, getCurrentAccent } from './runtime.js';
11
- export type { ResolvedScreenMargin } from './screen-margin.js';
12
- export { resolveScreenMargin } from './screen-margin.js';
13
- export { defaultDarkTheme, defaultLightTheme } from './theme.js';
14
- export type { Accent, AccentOverride, AccentShorthand, ActionColorToken, BackgroundColorToken, BorderColorToken, ButtonDefaults, ColorToken, ComponentDefaults, ContentColorToken, DefaultRadiusToken, ElevationKey, ElevationScale, ElevationStyle, FontWeightToken, LayoutTokens, OpacityTokens, RadiusComponent, RadiusKey, Scheme, SpacingKey, StatusColorToken, SurfaceColorToken, SurfaceDefaults, TerraConfig, TerraIconComponent, TerraIconName, TerraIconProps, TerraImageComponent, TerraImageContentFit, TerraImageProps, TerraSemanticIconName, TerraTheme, TerraThemeOverride, TextColorToken, TextVariant, ThemeColor, ThemeRadiusOverride, TypeStyle, Typography, } from './types.js';
1
+ export { normalizeAccent } from "../utils/accent-utils";
2
+ export { readableOn, shade, withAlpha } from "../utils/color-utils";
3
+ export type { DeepPartial } from "../utils/deep-merge";
4
+ export { deepMerge } from "../utils/deep-merge";
5
+ export { resolveThemeColor } from "../utils/resolve-theme-color";
6
+ export { FONT_WEIGHT_VALUE, SYSTEM_FONT } from "../utils/typography";
7
+ export type { AppBreakpoints, BreakpointName } from "./breakpoints.js";
8
+ export { breakpoints, resolveBreakpointValue } from "./breakpoints.js";
9
+ export { configureTerraUI, getAccentNames, getDefaultRadius, getIcon, getImageComponent, getIsConfigured, getRequiredIcon, getSurfaceElevation, resolveTheme, } from "./registry.js";
10
+ export { applyAccent, applyScheme, getCurrentAccent } from "./runtime.js";
11
+ export type { ResolvedScreenMargin } from "./screen-margin.js";
12
+ export { resolveScreenMargin } from "./screen-margin.js";
13
+ export { defaultDarkTheme, defaultLightTheme } from "./theme.js";
14
+ export type { Accent, AccentOverride, AccentShorthand, ActionColorToken, BackgroundColorToken, BorderColorToken, ButtonDefaults, ColorToken, ComponentDefaults, ContentColorToken, DefaultRadiusToken, ElevationKey, ElevationScale, ElevationStyle, FontWeightToken, LayoutTokens, OpacityTokens, RadiusComponent, RadiusKey, Scheme, SpacingKey, StatusColorToken, SurfaceColorToken, SurfaceDefaults, TerraConfig, TerraIconComponent, TerraIconName, TerraIconProps, TerraImageComponent, TerraImageContentFit, TerraImageProps, TerraSemanticIconName, TerraTheme, TerraThemeOverride, TextColorToken, TextVariant, ThemeColor, ThemeRadiusOverride, TypeStyle, Typography, } from "./types.js";
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { DefaultRadiusToken, ElevationKey, NormalizedAccent, RadiusComponent, Scheme, TerraConfig, TerraIconComponent, TerraImageComponent, TerraSemanticIconName, TerraTheme } from './types.js';
1
+ import type { DefaultRadiusToken, ElevationKey, NormalizedAccent, RadiusComponent, Scheme, TerraConfig, TerraIconComponent, TerraImageComponent, TerraSemanticIconName, TerraTheme } from "./types.js";
2
2
  type ResolvedRadius = Record<RadiusComponent, DefaultRadiusToken>;
3
- declare module 'react-native-unistyles' {
3
+ declare module "react-native-unistyles" {
4
4
  interface UnistylesThemes {
5
5
  light: TerraTheme;
6
6
  dark: TerraTheme;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/registry.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAEV,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AA8C,CAAC;AAEpF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,KAAG,kBAAkB,GAAG,SACS,CAAC;AAEtE,eAAO,MAAM,eAAe,GAAI,MAAM,qBAAqB,KAAG,kBAClB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,eAAe,KAAG,kBAC3B,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAO,YAAyC,CAAC;AAEjF,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAI5E;AAwCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,WAAgB,GAAG,IAAI,CAY/D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAOvC"}
@@ -1,4 +1,4 @@
1
- import type { Scheme } from './types.js';
1
+ import type { Scheme } from "./types.js";
2
2
  /** Apply a named accent at runtime by updating both registered themes. */
3
3
  export declare function applyAccent(name: string): void;
4
4
  export declare const getCurrentAccent: () => string | undefined;