react-native-terra-ui 0.1.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 (379) hide show
  1. package/README.md +70 -0
  2. package/lib/module/components/avatar/Avatar.js +121 -0
  3. package/lib/module/components/avatar/Avatar.js.map +1 -0
  4. package/lib/module/components/avatar/index.js +4 -0
  5. package/lib/module/components/avatar/index.js.map +1 -0
  6. package/lib/module/components/avatar/types.js +4 -0
  7. package/lib/module/components/avatar/types.js.map +1 -0
  8. package/lib/module/components/box/Box.js +49 -0
  9. package/lib/module/components/box/Box.js.map +1 -0
  10. package/lib/module/components/box/index.js +4 -0
  11. package/lib/module/components/box/index.js.map +1 -0
  12. package/lib/module/components/box/utils.js +95 -0
  13. package/lib/module/components/box/utils.js.map +1 -0
  14. package/lib/module/components/button/Button.js +281 -0
  15. package/lib/module/components/button/Button.js.map +1 -0
  16. package/lib/module/components/button/index.js +4 -0
  17. package/lib/module/components/button/index.js.map +1 -0
  18. package/lib/module/components/header/Header.js +25 -0
  19. package/lib/module/components/header/Header.js.map +1 -0
  20. package/lib/module/components/header/header-buttons.js +65 -0
  21. package/lib/module/components/header/header-buttons.js.map +1 -0
  22. package/lib/module/components/header/index.js +7 -0
  23. package/lib/module/components/header/index.js.map +1 -0
  24. package/lib/module/components/header/variants/LargeTitleHeader/index.js +335 -0
  25. package/lib/module/components/header/variants/LargeTitleHeader/index.js.map +1 -0
  26. package/lib/module/components/header/variants/TitleHeader/index.js +184 -0
  27. package/lib/module/components/header/variants/TitleHeader/index.js.map +1 -0
  28. package/lib/module/components/icon/Icon.js +53 -0
  29. package/lib/module/components/icon/Icon.js.map +1 -0
  30. package/lib/module/components/icon/index.js +4 -0
  31. package/lib/module/components/icon/index.js.map +1 -0
  32. package/lib/module/components/icon/utils.js +188 -0
  33. package/lib/module/components/icon/utils.js.map +1 -0
  34. package/lib/module/components/index.js +16 -0
  35. package/lib/module/components/index.js.map +1 -0
  36. package/lib/module/components/page-indicator/PageIndicator.js +49 -0
  37. package/lib/module/components/page-indicator/PageIndicator.js.map +1 -0
  38. package/lib/module/components/page-indicator/PageIndicatorRoot.js +24 -0
  39. package/lib/module/components/page-indicator/PageIndicatorRoot.js.map +1 -0
  40. package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js +24 -0
  41. package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js.map +1 -0
  42. package/lib/module/components/page-indicator/hooks/use-page-indicator-core.js +20 -0
  43. package/lib/module/components/page-indicator/hooks/use-page-indicator-core.js.map +1 -0
  44. package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js +68 -0
  45. package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js.map +1 -0
  46. package/lib/module/components/page-indicator/index.js +5 -0
  47. package/lib/module/components/page-indicator/index.js.map +1 -0
  48. package/lib/module/components/page-indicator/utils.js +127 -0
  49. package/lib/module/components/page-indicator/utils.js.map +1 -0
  50. package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js +50 -0
  51. package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js.map +1 -0
  52. package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js +165 -0
  53. package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js.map +1 -0
  54. package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js +60 -0
  55. package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js.map +1 -0
  56. package/lib/module/components/page-indicator/variants/DotIndicator/index.js +87 -0
  57. package/lib/module/components/page-indicator/variants/DotIndicator/index.js.map +1 -0
  58. package/lib/module/components/page-indicator/variants/DotIndicator/utils.js +28 -0
  59. package/lib/module/components/page-indicator/variants/DotIndicator/utils.js.map +1 -0
  60. package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js +53 -0
  61. package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js.map +1 -0
  62. package/lib/module/components/page-indicator/variants/PillIndicator/index.js +76 -0
  63. package/lib/module/components/page-indicator/variants/PillIndicator/index.js.map +1 -0
  64. package/lib/module/components/page-indicator/variants/PillIndicator/utils.js +47 -0
  65. package/lib/module/components/page-indicator/variants/PillIndicator/utils.js.map +1 -0
  66. package/lib/module/components/portal/PortalContext.js +20 -0
  67. package/lib/module/components/portal/PortalContext.js.map +1 -0
  68. package/lib/module/components/portal/PortalHost.js +23 -0
  69. package/lib/module/components/portal/PortalHost.js.map +1 -0
  70. package/lib/module/components/portal/PortalProvider.js +40 -0
  71. package/lib/module/components/portal/PortalProvider.js.map +1 -0
  72. package/lib/module/components/portal/index.js +6 -0
  73. package/lib/module/components/portal/index.js.map +1 -0
  74. package/lib/module/components/screen/Screen.js +100 -0
  75. package/lib/module/components/screen/Screen.js.map +1 -0
  76. package/lib/module/components/screen/ScreenContext.js +66 -0
  77. package/lib/module/components/screen/ScreenContext.js.map +1 -0
  78. package/lib/module/components/screen/ScreenFlatList.js +75 -0
  79. package/lib/module/components/screen/ScreenFlatList.js.map +1 -0
  80. package/lib/module/components/screen/ScreenScrollView.js +82 -0
  81. package/lib/module/components/screen/ScreenScrollView.js.map +1 -0
  82. package/lib/module/components/screen/index.js +7 -0
  83. package/lib/module/components/screen/index.js.map +1 -0
  84. package/lib/module/components/screen/utils.js +13 -0
  85. package/lib/module/components/screen/utils.js.map +1 -0
  86. package/lib/module/components/slot/Slot.js +38 -0
  87. package/lib/module/components/slot/Slot.js.map +1 -0
  88. package/lib/module/components/slot/index.js +10 -0
  89. package/lib/module/components/slot/index.js.map +1 -0
  90. package/lib/module/components/slot/utils.js +55 -0
  91. package/lib/module/components/slot/utils.js.map +1 -0
  92. package/lib/module/components/spinner/Spinner.js +132 -0
  93. package/lib/module/components/spinner/Spinner.js.map +1 -0
  94. package/lib/module/components/spinner/index.js +4 -0
  95. package/lib/module/components/spinner/index.js.map +1 -0
  96. package/lib/module/components/surface/Surface.js +74 -0
  97. package/lib/module/components/surface/Surface.js.map +1 -0
  98. package/lib/module/components/surface/index.js +4 -0
  99. package/lib/module/components/surface/index.js.map +1 -0
  100. package/lib/module/components/text/Text.js +67 -0
  101. package/lib/module/components/text/Text.js.map +1 -0
  102. package/lib/module/components/text/index.js +4 -0
  103. package/lib/module/components/text/index.js.map +1 -0
  104. package/lib/module/components/toast/Toast.js +350 -0
  105. package/lib/module/components/toast/Toast.js.map +1 -0
  106. package/lib/module/components/toast/ToastProvider.js +272 -0
  107. package/lib/module/components/toast/ToastProvider.js.map +1 -0
  108. package/lib/module/components/toast/index.js +5 -0
  109. package/lib/module/components/toast/index.js.map +1 -0
  110. package/lib/module/components/toast/parts/ToastAnimatedItem.js +168 -0
  111. package/lib/module/components/toast/parts/ToastAnimatedItem.js.map +1 -0
  112. package/lib/module/components/toast/types.js +4 -0
  113. package/lib/module/components/toast/types.js.map +1 -0
  114. package/lib/module/components/toast/utils/controller.js +19 -0
  115. package/lib/module/components/toast/utils/controller.js.map +1 -0
  116. package/lib/module/context/ThemeProvider.js +66 -0
  117. package/lib/module/context/ThemeProvider.js.map +1 -0
  118. package/lib/module/context/index.js +4 -0
  119. package/lib/module/context/index.js.map +1 -0
  120. package/lib/module/index.js +8 -0
  121. package/lib/module/index.js.map +1 -0
  122. package/lib/module/package.json +1 -0
  123. package/lib/module/theme/configure.js +152 -0
  124. package/lib/module/theme/configure.js.map +1 -0
  125. package/lib/module/theme/index.js +22 -0
  126. package/lib/module/theme/index.js.map +1 -0
  127. package/lib/module/theme/runtime.js +25 -0
  128. package/lib/module/theme/runtime.js.map +1 -0
  129. package/lib/module/theme/theme.js +121 -0
  130. package/lib/module/theme/theme.js.map +1 -0
  131. package/lib/module/theme/tokens/dark.js +109 -0
  132. package/lib/module/theme/tokens/dark.js.map +1 -0
  133. package/lib/module/theme/tokens/light.js +115 -0
  134. package/lib/module/theme/tokens/light.js.map +1 -0
  135. package/lib/module/theme/tokens/primitives.js +228 -0
  136. package/lib/module/theme/tokens/primitives.js.map +1 -0
  137. package/lib/module/theme/types.js +4 -0
  138. package/lib/module/theme/types.js.map +1 -0
  139. package/lib/module/types.js +2 -0
  140. package/lib/module/types.js.map +1 -0
  141. package/lib/module/utils/accent-utils.js +52 -0
  142. package/lib/module/utils/accent-utils.js.map +1 -0
  143. package/lib/module/utils/color-utils.js +53 -0
  144. package/lib/module/utils/color-utils.js.map +1 -0
  145. package/lib/module/utils/deep-merge.js +28 -0
  146. package/lib/module/utils/deep-merge.js.map +1 -0
  147. package/lib/module/utils/resolve-theme-color.js +20 -0
  148. package/lib/module/utils/resolve-theme-color.js.map +1 -0
  149. package/lib/module/utils/typography.js +13 -0
  150. package/lib/module/utils/typography.js.map +1 -0
  151. package/lib/module/utils/unflatten.js +35 -0
  152. package/lib/module/utils/unflatten.js.map +1 -0
  153. package/lib/typescript/package.json +1 -0
  154. package/lib/typescript/src/components/avatar/Avatar.d.ts +3 -0
  155. package/lib/typescript/src/components/avatar/Avatar.d.ts.map +1 -0
  156. package/lib/typescript/src/components/avatar/index.d.ts +3 -0
  157. package/lib/typescript/src/components/avatar/index.d.ts.map +1 -0
  158. package/lib/typescript/src/components/avatar/types.d.ts +30 -0
  159. package/lib/typescript/src/components/avatar/types.d.ts.map +1 -0
  160. package/lib/typescript/src/components/box/Box.d.ts +12 -0
  161. package/lib/typescript/src/components/box/Box.d.ts.map +1 -0
  162. package/lib/typescript/src/components/box/index.d.ts +4 -0
  163. package/lib/typescript/src/components/box/index.d.ts.map +1 -0
  164. package/lib/typescript/src/components/box/utils.d.ts +39 -0
  165. package/lib/typescript/src/components/box/utils.d.ts.map +1 -0
  166. package/lib/typescript/src/components/button/Button.d.ts +46 -0
  167. package/lib/typescript/src/components/button/Button.d.ts.map +1 -0
  168. package/lib/typescript/src/components/button/index.d.ts +3 -0
  169. package/lib/typescript/src/components/button/index.d.ts.map +1 -0
  170. package/lib/typescript/src/components/header/Header.d.ts +22 -0
  171. package/lib/typescript/src/components/header/Header.d.ts.map +1 -0
  172. package/lib/typescript/src/components/header/header-buttons.d.ts +16 -0
  173. package/lib/typescript/src/components/header/header-buttons.d.ts.map +1 -0
  174. package/lib/typescript/src/components/header/index.d.ts +7 -0
  175. package/lib/typescript/src/components/header/index.d.ts.map +1 -0
  176. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts +25 -0
  177. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts.map +1 -0
  178. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts +28 -0
  179. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts.map +1 -0
  180. package/lib/typescript/src/components/icon/Icon.d.ts +22 -0
  181. package/lib/typescript/src/components/icon/Icon.d.ts.map +1 -0
  182. package/lib/typescript/src/components/icon/index.d.ts +3 -0
  183. package/lib/typescript/src/components/icon/index.d.ts.map +1 -0
  184. package/lib/typescript/src/components/icon/utils.d.ts +4 -0
  185. package/lib/typescript/src/components/icon/utils.d.ts.map +1 -0
  186. package/lib/typescript/src/components/index.d.ts +14 -0
  187. package/lib/typescript/src/components/index.d.ts.map +1 -0
  188. package/lib/typescript/src/components/page-indicator/PageIndicator.d.ts +48 -0
  189. package/lib/typescript/src/components/page-indicator/PageIndicator.d.ts.map +1 -0
  190. package/lib/typescript/src/components/page-indicator/PageIndicatorRoot.d.ts +13 -0
  191. package/lib/typescript/src/components/page-indicator/PageIndicatorRoot.d.ts.map +1 -0
  192. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts +14 -0
  193. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts.map +1 -0
  194. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-core.d.ts +11 -0
  195. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-core.d.ts.map +1 -0
  196. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-progress.d.ts +19 -0
  197. package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-progress.d.ts.map +1 -0
  198. package/lib/typescript/src/components/page-indicator/index.d.ts +4 -0
  199. package/lib/typescript/src/components/page-indicator/index.d.ts.map +1 -0
  200. package/lib/typescript/src/components/page-indicator/utils.d.ts +36 -0
  201. package/lib/typescript/src/components/page-indicator/utils.d.ts.map +1 -0
  202. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/InactiveDot.d.ts +14 -0
  203. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/InactiveDot.d.ts.map +1 -0
  204. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.d.ts +11 -0
  205. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.d.ts.map +1 -0
  206. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/TravelingPill.d.ts +15 -0
  207. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/TravelingPill.d.ts.map +1 -0
  208. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts +32 -0
  209. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts.map +1 -0
  210. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/utils.d.ts +14 -0
  211. package/lib/typescript/src/components/page-indicator/variants/DotIndicator/utils.d.ts.map +1 -0
  212. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.d.ts +16 -0
  213. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.d.ts.map +1 -0
  214. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts +28 -0
  215. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts.map +1 -0
  216. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/utils.d.ts +21 -0
  217. package/lib/typescript/src/components/page-indicator/variants/PillIndicator/utils.d.ts.map +1 -0
  218. package/lib/typescript/src/components/portal/PortalContext.d.ts +19 -0
  219. package/lib/typescript/src/components/portal/PortalContext.d.ts.map +1 -0
  220. package/lib/typescript/src/components/portal/PortalHost.d.ts +7 -0
  221. package/lib/typescript/src/components/portal/PortalHost.d.ts.map +1 -0
  222. package/lib/typescript/src/components/portal/PortalProvider.d.ts +11 -0
  223. package/lib/typescript/src/components/portal/PortalProvider.d.ts.map +1 -0
  224. package/lib/typescript/src/components/portal/index.d.ts +6 -0
  225. package/lib/typescript/src/components/portal/index.d.ts.map +1 -0
  226. package/lib/typescript/src/components/screen/Screen.d.ts +53 -0
  227. package/lib/typescript/src/components/screen/Screen.d.ts.map +1 -0
  228. package/lib/typescript/src/components/screen/ScreenContext.d.ts +64 -0
  229. package/lib/typescript/src/components/screen/ScreenContext.d.ts.map +1 -0
  230. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts +26 -0
  231. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts.map +1 -0
  232. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts +36 -0
  233. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts.map +1 -0
  234. package/lib/typescript/src/components/screen/index.d.ts +9 -0
  235. package/lib/typescript/src/components/screen/index.d.ts.map +1 -0
  236. package/lib/typescript/src/components/screen/utils.d.ts +10 -0
  237. package/lib/typescript/src/components/screen/utils.d.ts.map +1 -0
  238. package/lib/typescript/src/components/slot/Slot.d.ts +17 -0
  239. package/lib/typescript/src/components/slot/Slot.d.ts.map +1 -0
  240. package/lib/typescript/src/components/slot/index.d.ts +8 -0
  241. package/lib/typescript/src/components/slot/index.d.ts.map +1 -0
  242. package/lib/typescript/src/components/slot/utils.d.ts +17 -0
  243. package/lib/typescript/src/components/slot/utils.d.ts.map +1 -0
  244. package/lib/typescript/src/components/spinner/Spinner.d.ts +18 -0
  245. package/lib/typescript/src/components/spinner/Spinner.d.ts.map +1 -0
  246. package/lib/typescript/src/components/spinner/index.d.ts +3 -0
  247. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -0
  248. package/lib/typescript/src/components/surface/Surface.d.ts +31 -0
  249. package/lib/typescript/src/components/surface/Surface.d.ts.map +1 -0
  250. package/lib/typescript/src/components/surface/index.d.ts +3 -0
  251. package/lib/typescript/src/components/surface/index.d.ts.map +1 -0
  252. package/lib/typescript/src/components/text/Text.d.ts +23 -0
  253. package/lib/typescript/src/components/text/Text.d.ts.map +1 -0
  254. package/lib/typescript/src/components/text/index.d.ts +3 -0
  255. package/lib/typescript/src/components/text/index.d.ts.map +1 -0
  256. package/lib/typescript/src/components/toast/Toast.d.ts +71 -0
  257. package/lib/typescript/src/components/toast/Toast.d.ts.map +1 -0
  258. package/lib/typescript/src/components/toast/ToastProvider.d.ts +4 -0
  259. package/lib/typescript/src/components/toast/ToastProvider.d.ts.map +1 -0
  260. package/lib/typescript/src/components/toast/index.d.ts +5 -0
  261. package/lib/typescript/src/components/toast/index.d.ts.map +1 -0
  262. package/lib/typescript/src/components/toast/parts/ToastAnimatedItem.d.ts +18 -0
  263. package/lib/typescript/src/components/toast/parts/ToastAnimatedItem.d.ts.map +1 -0
  264. package/lib/typescript/src/components/toast/types.d.ts +62 -0
  265. package/lib/typescript/src/components/toast/types.d.ts.map +1 -0
  266. package/lib/typescript/src/components/toast/utils/controller.d.ts +5 -0
  267. package/lib/typescript/src/components/toast/utils/controller.d.ts.map +1 -0
  268. package/lib/typescript/src/context/ThemeProvider.d.ts +29 -0
  269. package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -0
  270. package/lib/typescript/src/context/index.d.ts +3 -0
  271. package/lib/typescript/src/context/index.d.ts.map +1 -0
  272. package/lib/typescript/src/index.d.ts +4 -0
  273. package/lib/typescript/src/index.d.ts.map +1 -0
  274. package/lib/typescript/src/theme/configure.d.ts +47 -0
  275. package/lib/typescript/src/theme/configure.d.ts.map +1 -0
  276. package/lib/typescript/src/theme/index.d.ts +11 -0
  277. package/lib/typescript/src/theme/index.d.ts.map +1 -0
  278. package/lib/typescript/src/theme/runtime.d.ts +7 -0
  279. package/lib/typescript/src/theme/runtime.d.ts.map +1 -0
  280. package/lib/typescript/src/theme/theme.d.ts +22 -0
  281. package/lib/typescript/src/theme/theme.d.ts.map +1 -0
  282. package/lib/typescript/src/theme/tokens/dark.d.ts +100 -0
  283. package/lib/typescript/src/theme/tokens/dark.d.ts.map +1 -0
  284. package/lib/typescript/src/theme/tokens/light.d.ts +106 -0
  285. package/lib/typescript/src/theme/tokens/light.d.ts.map +1 -0
  286. package/lib/typescript/src/theme/tokens/primitives.d.ts +212 -0
  287. package/lib/typescript/src/theme/tokens/primitives.d.ts.map +1 -0
  288. package/lib/typescript/src/theme/types.d.ts +273 -0
  289. package/lib/typescript/src/theme/types.d.ts.map +1 -0
  290. package/lib/typescript/src/types.d.ts +4 -0
  291. package/lib/typescript/src/types.d.ts.map +1 -0
  292. package/lib/typescript/src/utils/accent-utils.d.ts +4 -0
  293. package/lib/typescript/src/utils/accent-utils.d.ts.map +1 -0
  294. package/lib/typescript/src/utils/color-utils.d.ts +11 -0
  295. package/lib/typescript/src/utils/color-utils.d.ts.map +1 -0
  296. package/lib/typescript/src/utils/deep-merge.d.ts +11 -0
  297. package/lib/typescript/src/utils/deep-merge.d.ts.map +1 -0
  298. package/lib/typescript/src/utils/resolve-theme-color.d.ts +12 -0
  299. package/lib/typescript/src/utils/resolve-theme-color.d.ts.map +1 -0
  300. package/lib/typescript/src/utils/typography.d.ts +6 -0
  301. package/lib/typescript/src/utils/typography.d.ts.map +1 -0
  302. package/lib/typescript/src/utils/unflatten.d.ts +12 -0
  303. package/lib/typescript/src/utils/unflatten.d.ts.map +1 -0
  304. package/package.json +137 -0
  305. package/src/components/avatar/Avatar.tsx +146 -0
  306. package/src/components/avatar/index.ts +8 -0
  307. package/src/components/avatar/types.ts +35 -0
  308. package/src/components/box/Box.tsx +59 -0
  309. package/src/components/box/index.ts +8 -0
  310. package/src/components/box/utils.ts +181 -0
  311. package/src/components/button/Button.tsx +313 -0
  312. package/src/components/button/index.ts +8 -0
  313. package/src/components/header/Header.ts +22 -0
  314. package/src/components/header/header-buttons.tsx +103 -0
  315. package/src/components/header/index.ts +11 -0
  316. package/src/components/header/variants/LargeTitleHeader/index.tsx +390 -0
  317. package/src/components/header/variants/TitleHeader/index.tsx +194 -0
  318. package/src/components/icon/Icon.tsx +74 -0
  319. package/src/components/icon/index.ts +2 -0
  320. package/src/components/icon/utils.tsx +147 -0
  321. package/src/components/index.ts +13 -0
  322. package/src/components/page-indicator/PageIndicator.tsx +100 -0
  323. package/src/components/page-indicator/PageIndicatorRoot.tsx +41 -0
  324. package/src/components/page-indicator/hooks/use-page-indicator-colors.ts +65 -0
  325. package/src/components/page-indicator/hooks/use-page-indicator-core.ts +34 -0
  326. package/src/components/page-indicator/hooks/use-page-indicator-progress.ts +122 -0
  327. package/src/components/page-indicator/index.ts +13 -0
  328. package/src/components/page-indicator/utils.ts +208 -0
  329. package/src/components/page-indicator/variants/DotIndicator/InactiveDot.tsx +70 -0
  330. package/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.tsx +201 -0
  331. package/src/components/page-indicator/variants/DotIndicator/TravelingPill.tsx +80 -0
  332. package/src/components/page-indicator/variants/DotIndicator/index.tsx +145 -0
  333. package/src/components/page-indicator/variants/DotIndicator/utils.ts +28 -0
  334. package/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.tsx +107 -0
  335. package/src/components/page-indicator/variants/PillIndicator/index.tsx +149 -0
  336. package/src/components/page-indicator/variants/PillIndicator/utils.ts +63 -0
  337. package/src/components/portal/PortalContext.tsx +27 -0
  338. package/src/components/portal/PortalHost.tsx +20 -0
  339. package/src/components/portal/PortalProvider.tsx +44 -0
  340. package/src/components/portal/index.ts +5 -0
  341. package/src/components/screen/Screen.tsx +163 -0
  342. package/src/components/screen/ScreenContext.tsx +144 -0
  343. package/src/components/screen/ScreenFlatList.tsx +121 -0
  344. package/src/components/screen/ScreenScrollView.tsx +130 -0
  345. package/src/components/screen/index.ts +8 -0
  346. package/src/components/screen/utils.ts +17 -0
  347. package/src/components/slot/Slot.tsx +56 -0
  348. package/src/components/slot/index.ts +8 -0
  349. package/src/components/slot/utils.ts +61 -0
  350. package/src/components/spinner/Spinner.tsx +153 -0
  351. package/src/components/spinner/index.ts +2 -0
  352. package/src/components/surface/Surface.tsx +100 -0
  353. package/src/components/surface/index.ts +2 -0
  354. package/src/components/text/Text.tsx +115 -0
  355. package/src/components/text/index.ts +2 -0
  356. package/src/components/toast/Toast.tsx +477 -0
  357. package/src/components/toast/ToastProvider.tsx +403 -0
  358. package/src/components/toast/index.ts +26 -0
  359. package/src/components/toast/parts/ToastAnimatedItem.tsx +184 -0
  360. package/src/components/toast/types.ts +75 -0
  361. package/src/components/toast/utils/controller.ts +23 -0
  362. package/src/context/ThemeProvider.tsx +97 -0
  363. package/src/context/index.ts +2 -0
  364. package/src/index.tsx +6 -0
  365. package/src/theme/configure.ts +215 -0
  366. package/src/theme/index.ts +72 -0
  367. package/src/theme/runtime.ts +27 -0
  368. package/src/theme/theme.ts +152 -0
  369. package/src/theme/tokens/dark.ts +117 -0
  370. package/src/theme/tokens/light.ts +123 -0
  371. package/src/theme/tokens/primitives.ts +232 -0
  372. package/src/theme/types.ts +384 -0
  373. package/src/types.ts +1 -0
  374. package/src/utils/accent-utils.ts +58 -0
  375. package/src/utils/color-utils.ts +51 -0
  376. package/src/utils/deep-merge.ts +36 -0
  377. package/src/utils/resolve-theme-color.ts +27 -0
  378. package/src/utils/typography.ts +15 -0
  379. package/src/utils/unflatten.ts +36 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Children","createContext","forwardRef","useContext","Pressable","StyleSheet","useUnistyles","getDefaultRadius","Icon","Spinner","Text","jsx","_jsx","jsxs","_jsxs","ButtonContext","color","size","useButtonContext","getColors","variant","theme","c","get","key","bg","border","borderWidth","fg","LABEL_TYPOGRAPHY","sm","weight","md","lg","ButtonLabel","children","typography","style","ICON_SIZE","ButtonIcon","name","sizeProp","colorProp","strokeWidth","renderChildren","map","child","trim","length","ButtonRoot","Button","radius","isDisabled","isLoading","isIconOnly","fullWidth","compact","onPress","rest","ref","styles","useVariants","iconOnly","blocked","externalStyle","pressableRest","Provider","value","undefined","disabled","accessibilityRole","accessibilityState","busy","state","base","backgroundColor","borderColor","pressed","opacity","Label","create","flexDirection","alignItems","justifyContent","alignSelf","variants","minHeight","paddingHorizontal","gap","none","borderRadius","xl","full","true","false","aspectRatio","paddingVertical"],"sourceRoot":"../../../../src","sources":["components/button/Button.tsx"],"mappings":";;AAAA,SACEA,QAAQ,EAERC,aAAa,EACbC,UAAU,EAEVC,UAAU,QACL,OAAO;AAEd,SAASC,SAAS,QAAQ,cAAc;AAExC,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,gBAAgB,QAAQ,kBAAkB;AASnD,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;;AA+B9B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOA,MAAMC,aAAa,gBAAGd,aAAa,CAAqB;EACtDe,KAAK,EAAE,EAAE;EACTC,IAAI,EAAE;AACR,CAAC,CAAC;AAEF,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAC9Bf,UAAU,CAACY,aAAa,CAAC;;AAE3B;;AASA,SAASI,SAASA,CAACC,OAAsB,EAAEC,KAAiB,EAAgB;EAC1E,MAAMC,CAAC,GAAGD,KAAK,CAACL,KAAsD;EACtE,MAAMO,GAAG,GAAIC,GAAW,IAAaF,CAAC,CAACE,GAAG,CAAC,IAAI,EAAE;EACjD,QAAQJ,OAAO;IACb,KAAK,SAAS;MACZ,OAAO;QACLK,EAAE,EAAEF,GAAG,CAAC,mBAAmB,CAAC;QAC5BG,MAAM,EAAEH,GAAG,CAAC,mBAAmB,CAAC;QAChCI,WAAW,EAAE,CAAC;QACdC,EAAE,EAAEL,GAAG,CAAC,mBAAmB;MAC7B,CAAC;IACH,KAAK,WAAW;MACd,OAAO;QACLE,EAAE,EAAEF,GAAG,CAAC,kBAAkB,CAAC;QAC3BG,MAAM,EAAEH,GAAG,CAAC,kBAAkB,CAAC;QAC/BI,WAAW,EAAE,CAAC;QACdC,EA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EAAE;UAAEqD,SAAS,EAAE,EAAE;UAAEC,iBAAiB,EAAE,EAAE;UAAEC,GAAG,EAAE;QAAE;MACrD,CAAC;MACDrC,MAAM,EAAE;QACNsC,IAAI,EAAE;UAAEC,YAAY,EAAErE,KAAK,CAAC8B,MAAM,CAACsC;QAAK,CAAC;QACzC3D,EAAE,EAAE;UAAE4D,YAAY,EAAErE,KAAK,CAAC8B,MAAM,CAACrB;QAAG,CAAC;QACrCE,EAAE,EAAE;UAAE0D,YAAY,EAAErE,KAAK,CAAC8B,MAAM,CAACnB;QAAG,CAAC;QACrCC,EAAE,EAAE;UAAEyD,YAAY,EAAErE,KAAK,CAAC8B,MAAM,CAAClB;QAAG,CAAC;QACrC0D,EAAE,EAAE;UAAED,YAAY,EAAErE,KAAK,CAAC8B,MAAM,CAACwC;QAAG,CAAC;QACrCC,IAAI,EAAE;UAAEF,YAAY,EAAErE,KAAK,CAAC8B,MAAM,CAACyC;QAAK;MAC1C,CAAC;MACDrC,SAAS,EAAE;QACTsC,IAAI,EAAE;UAAET,SAAS,EAAE;QAAU,CAAC;QAC9BU,KAAK,EAAE,CAAC;MACV,CAAC;MACDhC,QAAQ,EAAE;QACR+B,IAAI,EAAE;UAAEN,iBAAiB,EAAE,CAAC;UAAEQ,WAAW,EAAE;QAAE,CAAC;QAC9CD,KAAK,EAAE,CAAC;MACV;IACF;EACF,CAAC;EACDtC,OAAO,EAAE;IACP+B,iBAAiB,EAAE,CAAC;IACpBS,eAAe,EAAE,CAAC;IAClBV,SAAS,EAAE;EACb;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { Button, useButtonContext } from "./Button.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Button","useButtonContext"],"sourceRoot":"../../../../src","sources":["components/button/index.ts"],"mappings":";;AAOA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,aAAU","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ import { LargeTitleHeader } from "./variants/LargeTitleHeader/index.js";
4
+ import { TitleHeader } from "./variants/TitleHeader/index.js";
5
+
6
+ /**
7
+ * Composite header namespace.
8
+ *
9
+ * - `Header.Title` — compact title bar ({@link TitleHeader}).
10
+ * - `Header.LargeTitle` — collapsing large-title header ({@link LargeTitleHeader}).
11
+ *
12
+ * Both are also exported standalone (`TitleHeader`, `LargeTitleHeader`).
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <Screen.Header>
17
+ * <Header.LargeTitle title="Meditate" />
18
+ * </Screen.Header>
19
+ * ```
20
+ */
21
+ export const Header = {
22
+ Title: TitleHeader,
23
+ LargeTitle: LargeTitleHeader
24
+ };
25
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LargeTitleHeader","TitleHeader","Header","Title","LargeTitle"],"sourceRoot":"../../../../src","sources":["components/header/Header.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,sCAA6B;AAC9D,SAASC,WAAW,QAAQ,iCAAwB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAG;EACpBC,KAAK,EAAEF,WAAW;EAClBG,UAAU,EAAEJ;AACd,CAAC","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ import { Pressable } from 'react-native';
4
+ import { StyleSheet, useUnistyles } from 'react-native-unistyles';
5
+ import { Icon } from "../icon/index.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const getDismissAccessibilityLabel = dismissAction => dismissAction === 'close' ? 'Close' : 'Back';
8
+ const getDismissIconName = dismissAction => dismissAction === 'close' ? 'navigation.close' : 'navigation.back';
9
+ const warnUnavailableDismiss = dismissAction => {
10
+ if (__DEV__) {
11
+ console.warn(`[react-native-terra-ui] Header.Title dismissAction="${dismissAction}" was pressed, but no dismiss handler or available navigation action was provided.`);
12
+ }
13
+ };
14
+ export function HeaderDismissButton({
15
+ dismissAction = 'none',
16
+ navigation,
17
+ onDismiss
18
+ }) {
19
+ const {
20
+ theme
21
+ } = useUnistyles();
22
+ if (dismissAction === 'none') return null;
23
+ const handlePress = () => {
24
+ if (onDismiss) {
25
+ onDismiss();
26
+ return;
27
+ }
28
+ if (dismissAction === 'close' && navigation?.dismiss) {
29
+ navigation.dismiss();
30
+ return;
31
+ }
32
+ if (navigation?.goBack && navigation.canGoBack?.() !== false) {
33
+ navigation.goBack();
34
+ return;
35
+ }
36
+ warnUnavailableDismiss(dismissAction);
37
+ };
38
+ return /*#__PURE__*/_jsx(Pressable, {
39
+ accessibilityLabel: getDismissAccessibilityLabel(dismissAction),
40
+ accessibilityRole: "button",
41
+ hitSlop: 8,
42
+ onPress: handlePress,
43
+ style: ({
44
+ pressed
45
+ }) => [styles.button, pressed ? {
46
+ opacity: theme.opacity.pressed
47
+ } : null],
48
+ children: /*#__PURE__*/_jsx(Icon, {
49
+ size: 26,
50
+ color: "text.default",
51
+ name: getDismissIconName(dismissAction)
52
+ })
53
+ });
54
+ }
55
+ const styles = StyleSheet.create(theme => ({
56
+ button: {
57
+ width: 36,
58
+ height: 36,
59
+ borderRadius: theme.radius.full,
60
+ backgroundColor: theme.color['surface.default'] ?? '',
61
+ alignItems: 'center',
62
+ justifyContent: 'center'
63
+ }
64
+ }));
65
+ //# sourceMappingURL=header-buttons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Pressable","StyleSheet","useUnistyles","Icon","jsx","_jsx","getDismissAccessibilityLabel","dismissAction","getDismissIconName","warnUnavailableDismiss","__DEV__","console","warn","HeaderDismissButton","navigation","onDismiss","theme","handlePress","dismiss","goBack","canGoBack","accessibilityLabel","accessibilityRole","hitSlop","onPress","style","pressed","styles","button","opacity","children","size","color","name","create","width","height","borderRadius","radius","full","backgroundColor","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["components/header/header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AAEP,WAAY;IACrBQ,KAAK,EAAEA,CAAC;MAAEC;IAAQ,CAAC,KAAK,CACtBC,MAAM,CAACC,MAAM,EACbF,OAAO,GAAG;MAAEG,OAAO,EAAEb,KAAK,CAACa,OAAO,CAACH;IAAQ,CAAC,GAAG,IAAI,CACnD;IAAAI,QAAA,eAEFzB,IAAA,CAACF,IAAI;MACH4B,IAAI,EAAE,EAAG;MACTC,KAAK,EAAC,cAAc;MACpBC,IAAI,EAAEzB,kBAAkB,CAACD,aAAa;IAAE,CACzC;EAAC,CACO,CAAC;AAEhB;AAEA,MAAMoB,MAAM,GAAG1B,UAAU,CAACiC,MAAM,CAAElB,KAAK,KAAM;EAC3CY,MAAM,EAAE;IACNO,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAErB,KAAK,CAACsB,MAAM,CAACC,IAAI;IAC/BC,eAAe,EACZxB,KAAK,CAACgB,KAAK,CACV,iBAAiB,CAClB,IAAI,EAAE;IACTS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export { Header } from "./Header.js";
4
+ export { HeaderDismissButton } from "./header-buttons.js";
5
+ export { LargeTitleHeader } from "./variants/LargeTitleHeader/index.js";
6
+ export { TitleHeader } from "./variants/TitleHeader/index.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Header","HeaderDismissButton","LargeTitleHeader","TitleHeader"],"sourceRoot":"../../../../src","sources":["components/header/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,aAAU;AACjC,SAEEC,mBAAmB,QAGd,qBAAkB;AAEzB,SAASC,gBAAgB,QAAQ,sCAA6B;AAE9D,SAASC,WAAW,QAAQ,iCAAwB","ignoreList":[]}
@@ -0,0 +1,335 @@
1
+ "use strict";
2
+
3
+ import { useCallback, useEffect, useId } from 'react';
4
+ import { Text, View } from 'react-native';
5
+ import Animated, { interpolate, useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
6
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
+ import Svg, { Defs, Rect, Stop, LinearGradient as SvgLinearGradient } from 'react-native-svg';
8
+ import { StyleSheet, useUnistyles } from 'react-native-unistyles';
9
+ import { resolveThemeColor } from '#utils/resolve-theme-color';
10
+ import { FONT_WEIGHT_VALUE } from '#utils/typography';
11
+ import { usePortal } from "../../../portal/index.js";
12
+ import { useScreen } from "../../../screen/ScreenContext.js";
13
+ import { HeaderDismissButton } from "../../header-buttons.js";
14
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
+ const AnimatedText = Animated.createAnimatedComponent(Text);
16
+
17
+ /** Compact title offset (px) when the large title is fully expanded. */
18
+ const COMPACT_TITLE_SLIDE_OFFSET = 8;
19
+ /** Large title offset (px) when fully collapsed. */
20
+ const LARGE_TITLE_SLIDE_OFFSET = 6;
21
+ function LargeTitlePortalContent({
22
+ title,
23
+ caption,
24
+ onLayout
25
+ }) {
26
+ const {
27
+ theme
28
+ } = useUnistyles();
29
+ const {
30
+ scrollY,
31
+ headerCollapseHeight
32
+ } = useScreen();
33
+ const largeTitleAnimatedStyle = useAnimatedStyle(() => {
34
+ const height = headerCollapseHeight.value;
35
+ if (height <= 0) {
36
+ return {
37
+ opacity: 1,
38
+ transform: [{
39
+ translateY: 0
40
+ }]
41
+ };
42
+ }
43
+ return {
44
+ opacity: interpolate(scrollY.value, [0, height], [1, 0], 'clamp'),
45
+ transform: [{
46
+ translateY: interpolate(scrollY.value, [0, height], [0, -LARGE_TITLE_SLIDE_OFFSET], 'clamp')
47
+ }]
48
+ };
49
+ });
50
+ return /*#__PURE__*/_jsxs(Animated.View, {
51
+ style: [styles.portalContent, largeTitleAnimatedStyle],
52
+ onLayout: onLayout,
53
+ children: [/*#__PURE__*/_jsx(Text, {
54
+ style: styles.largeTitle,
55
+ maxFontSizeMultiplier: theme.typography.variants['headline-lg'].maxFontSizeMultiplier,
56
+ children: title
57
+ }), !!caption && /*#__PURE__*/_jsx(Text, {
58
+ style: styles.caption,
59
+ maxFontSizeMultiplier: theme.typography.variants['body-lg'].maxFontSizeMultiplier,
60
+ children: caption
61
+ })]
62
+ });
63
+ }
64
+
65
+ /**
66
+ * iOS-style collapsing large-title header. The large title is injected (via the
67
+ * `Screen`'s portal) into the top of the scroll content, so it scrolls away
68
+ * naturally; the compact bar title cross-fades and slides in over the measured
69
+ * portal height. Native scroll snap (`snapToOffsets`) settles between expanded
70
+ * and collapsed when released mid-collapse.
71
+ *
72
+ * Must be used inside a `Screen` with a `Screen.ScrollView` / `Screen.FlatList`.
73
+ *
74
+ * @example
75
+ * ```tsx
76
+ * <Screen.Header>
77
+ * <Header.LargeTitle title="Meditate" caption="Good morning" />
78
+ * </Screen.Header>
79
+ * ```
80
+ */
81
+ export function LargeTitleHeader({
82
+ title,
83
+ caption,
84
+ LeftComponent,
85
+ RightComponent,
86
+ dismissAction = 'none',
87
+ navigation,
88
+ onDismiss,
89
+ titleAlignment = 'center',
90
+ isLargeTitleHidden = false,
91
+ bg = 'surface.default'
92
+ }) {
93
+ const {
94
+ theme
95
+ } = useUnistyles();
96
+ const {
97
+ top
98
+ } = useSafeAreaInsets();
99
+ const gradientId = useId();
100
+ const bgColor = resolveThemeColor(bg, theme) ?? theme.color['surface.default'] ?? '';
101
+ const isTransparent = bgColor === 'transparent';
102
+ const gradientColor = isTransparent ? theme.color.background : bgColor;
103
+ const {
104
+ scrollY,
105
+ headerCollapseHeight,
106
+ setHeaderCollapseHeight
107
+ } = useScreen();
108
+ const {
109
+ registerContent,
110
+ unregisterContent
111
+ } = usePortal();
112
+ const portalId = useId();
113
+ const isLargeTitleHiddenValue = useSharedValue(isLargeTitleHidden);
114
+ styles.useVariants({
115
+ titleAlignment
116
+ });
117
+ const handlePortalLayout = useCallback(event => {
118
+ setHeaderCollapseHeight(event.nativeEvent.layout.height);
119
+ }, [setHeaderCollapseHeight]);
120
+
121
+ // Animate the gradient overlay's opacity: 0 (expanded) → 1 (collapsed).
122
+ const gradientOpacityStyle = useAnimatedStyle(() => {
123
+ if (isLargeTitleHiddenValue.value) {
124
+ return {
125
+ opacity: 1
126
+ };
127
+ }
128
+ const height = headerCollapseHeight.value;
129
+ if (height <= 0) {
130
+ return {
131
+ opacity: 0
132
+ };
133
+ }
134
+ return {
135
+ opacity: interpolate(scrollY.value, [0, height], [0, 1], 'clamp')
136
+ };
137
+ });
138
+ const compactTitleAnimatedStyle = useAnimatedStyle(() => {
139
+ if (isLargeTitleHiddenValue.value) {
140
+ return {
141
+ opacity: 1,
142
+ transform: [{
143
+ translateY: 0
144
+ }]
145
+ };
146
+ }
147
+ const height = headerCollapseHeight.value;
148
+ if (height <= 0) {
149
+ return {
150
+ opacity: 0,
151
+ transform: [{
152
+ translateY: COMPACT_TITLE_SLIDE_OFFSET
153
+ }]
154
+ };
155
+ }
156
+ return {
157
+ opacity: interpolate(scrollY.value, [0, height], [0, 1], 'clamp'),
158
+ transform: [{
159
+ translateY: interpolate(scrollY.value, [0, height], [COMPACT_TITLE_SLIDE_OFFSET, 0], 'clamp')
160
+ }]
161
+ };
162
+ });
163
+ useEffect(() => {
164
+ isLargeTitleHiddenValue.value = isLargeTitleHidden;
165
+ }, [isLargeTitleHidden, isLargeTitleHiddenValue]);
166
+ useEffect(() => {
167
+ if (isLargeTitleHidden) {
168
+ setHeaderCollapseHeight(0);
169
+ unregisterContent(portalId);
170
+ return;
171
+ }
172
+ setHeaderCollapseHeight(0);
173
+ registerContent(portalId, /*#__PURE__*/_jsx(LargeTitlePortalContent, {
174
+ title: title,
175
+ caption: caption,
176
+ onLayout: handlePortalLayout
177
+ }));
178
+ return () => unregisterContent(portalId);
179
+ }, [portalId, title, caption, isLargeTitleHidden, setHeaderCollapseHeight, handlePortalLayout, registerContent, unregisterContent]);
180
+ const leading = dismissAction === 'back' ? /*#__PURE__*/_jsxs(_Fragment, {
181
+ children: [/*#__PURE__*/_jsx(HeaderDismissButton, {
182
+ dismissAction: dismissAction,
183
+ navigation: navigation,
184
+ onDismiss: onDismiss
185
+ }), LeftComponent]
186
+ }) : LeftComponent;
187
+ const trailing = dismissAction === 'close' ? /*#__PURE__*/_jsxs(_Fragment, {
188
+ children: [RightComponent, /*#__PURE__*/_jsx(HeaderDismissButton, {
189
+ dismissAction: dismissAction,
190
+ navigation: navigation,
191
+ onDismiss: onDismiss
192
+ })]
193
+ }) : RightComponent;
194
+ return /*#__PURE__*/_jsxs(View, {
195
+ style: styles.safeArea,
196
+ children: [/*#__PURE__*/_jsx(Animated.View, {
197
+ style: [{
198
+ height: top,
199
+ backgroundColor: gradientColor
200
+ }, gradientOpacityStyle]
201
+ }), /*#__PURE__*/_jsxs(View, {
202
+ style: styles.bar,
203
+ children: [/*#__PURE__*/_jsx(Animated.View, {
204
+ style: [styles.gradient, gradientOpacityStyle],
205
+ pointerEvents: "none",
206
+ children: /*#__PURE__*/_jsxs(Svg, {
207
+ height: "100%",
208
+ width: "100%",
209
+ children: [/*#__PURE__*/_jsx(Defs, {
210
+ children: /*#__PURE__*/_jsxs(SvgLinearGradient, {
211
+ id: gradientId,
212
+ x1: "0",
213
+ y1: "0",
214
+ x2: "0",
215
+ y2: "1",
216
+ children: [/*#__PURE__*/_jsx(Stop, {
217
+ offset: "0",
218
+ stopColor: gradientColor,
219
+ stopOpacity: "1"
220
+ }), /*#__PURE__*/_jsx(Stop, {
221
+ offset: "1",
222
+ stopColor: gradientColor,
223
+ stopOpacity: "0"
224
+ })]
225
+ })
226
+ }), /*#__PURE__*/_jsx(Rect, {
227
+ width: "100%",
228
+ height: "100%",
229
+ fill: `url(#${gradientId})`
230
+ })]
231
+ })
232
+ }), leading != null && /*#__PURE__*/_jsx(View, {
233
+ style: styles.slot,
234
+ children: leading
235
+ }), /*#__PURE__*/_jsx(Animated.View, {
236
+ style: [styles.titleContainer, compactTitleAnimatedStyle],
237
+ pointerEvents: "none",
238
+ children: /*#__PURE__*/_jsx(AnimatedText, {
239
+ style: styles.compactTitle,
240
+ maxFontSizeMultiplier: theme.typography.variants['title-md'].maxFontSizeMultiplier,
241
+ children: title
242
+ })
243
+ }), trailing != null && /*#__PURE__*/_jsx(View, {
244
+ style: styles.slotEnd,
245
+ children: trailing
246
+ })]
247
+ })]
248
+ });
249
+ }
250
+ const styles = StyleSheet.create(theme => ({
251
+ safeArea: {
252
+ position: 'absolute',
253
+ top: 0,
254
+ left: 0,
255
+ right: 0,
256
+ zIndex: 1000
257
+ },
258
+ gradient: {
259
+ position: 'absolute',
260
+ top: 0,
261
+ left: 0,
262
+ right: 0,
263
+ bottom: 0
264
+ },
265
+ bar: {
266
+ height: theme.layout.header.height,
267
+ flexDirection: 'row',
268
+ alignItems: 'center',
269
+ justifyContent: 'space-between',
270
+ paddingHorizontal: theme.layout.screen.margin.x,
271
+ gap: theme.spacing['3']
272
+ },
273
+ slot: {
274
+ flexDirection: 'row',
275
+ alignItems: 'center',
276
+ gap: theme.spacing['2']
277
+ },
278
+ slotEnd: {
279
+ flexDirection: 'row',
280
+ alignItems: 'center',
281
+ justifyContent: 'flex-end',
282
+ gap: theme.spacing['2']
283
+ },
284
+ portalContent: {
285
+ marginTop: theme.spacing['1'],
286
+ marginBottom: theme.spacing['3']
287
+ },
288
+ largeTitle: {
289
+ fontSize: theme.typography.variants['headline-lg'].fontSize,
290
+ lineHeight: theme.typography.variants['headline-lg'].lineHeight,
291
+ letterSpacing: theme.typography.variants['headline-lg'].letterSpacing,
292
+ fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants['headline-lg'].fontWeight],
293
+ color: theme.color['text.default'] ?? ''
294
+ },
295
+ caption: {
296
+ fontSize: theme.typography.variants['body-lg'].fontSize,
297
+ lineHeight: theme.typography.variants['body-lg'].lineHeight,
298
+ letterSpacing: theme.typography.variants['body-lg'].letterSpacing,
299
+ color: theme.color['text.subtle'] ?? ''
300
+ },
301
+ compactTitle: {
302
+ fontSize: theme.typography.variants['title-md'].fontSize,
303
+ lineHeight: theme.typography.variants['title-md'].lineHeight,
304
+ letterSpacing: theme.typography.variants['title-md'].letterSpacing,
305
+ fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants['title-md'].fontWeight],
306
+ color: theme.color['text.default'] ?? '',
307
+ variants: {
308
+ titleAlignment: {
309
+ center: {
310
+ textAlign: 'center'
311
+ },
312
+ left: {
313
+ textAlign: 'left'
314
+ }
315
+ }
316
+ }
317
+ },
318
+ titleContainer: {
319
+ variants: {
320
+ titleAlignment: {
321
+ center: {
322
+ position: 'absolute',
323
+ left: 0,
324
+ right: 0,
325
+ alignItems: 'center'
326
+ },
327
+ left: {
328
+ flex: 1,
329
+ alignItems: 'flex-start'
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }));
335
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useCallback","useEffect","useId","Text","View","Animated","interpolate","useAnimatedStyle","useSharedValue","useSafeAreaInsets","Svg","Defs","Rect","Stop","LinearGradient","SvgLinearGradient","StyleSheet","useUnistyles","resolveThemeColor","FONT_WEIGHT_VALUE","usePortal","useScreen","HeaderDismissButton","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","AnimatedText","createAnimatedComponent","COMPACT_TITLE_SLIDE_OFFSET","LARGE_TITLE_SLIDE_OFFSET","LargeTitlePortalContent","title","caption","onLayout","theme","scrollY","headerCollapseHeight","largeTitleAnimatedStyle","height","value","opacity","transform","translateY","style","styles","portalContent","children","largeTitle","maxFontSizeMultiplier","typography","variants","LargeTitleHeader","LeftComponent","RightComponent","dismissAction","navigation","onDismiss","titleAlignment","isLargeTitleHidden","bg","top","gradientId","bgColor","color","isTransparent","gradientColor","background","setHeaderCollapseHeight","registerContent","unregisterContent","portalId","isLargeTitleHiddenValue","useVariants","handlePortalLayout","event","nativeEvent","layout","gradientOpacityStyle","compactTitleAnimatedStyle","leading","trailing","safeArea","backgroundColor","bar","gradient","pointerEvents","width","id","x1","y1","x2","y2","offset","stopColor","stopOpacity","fill","slot","titleContainer","compactTitle","slotEnd","create","position","left","right","zIndex","bottom","header","flexDirection","alignItems","justifyContent","paddingHorizontal","screen","margin","x","gap","spacing","marginTop","marginBottom","fontSize","lineHeight","letterSpacing","fontWeight","center","textAlign","flex"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/LargeTitleHeader/index.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,KAAK,QAAQ,OAAO;AACrD,SAAiCC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEjE,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,EAChBC,cAAc,QACT,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,OAAOC,GAAG,IACRC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,cAAc,IAAIC,iBAAiB,QAC9B,kBAAkB;AACzB,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,iBAAiB,QAAQ,4BAA4B;AAC9D,SAASC,iBAAiB,QAAQ,mBAAmB;AAErD,SAASC,SAAS,QAAQ,0BAAiB;AAC3C,SAASC,SAAS,QAAQ,kCAA+B;AACzD,SAASC,mBAAmB,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAG3D,MAAMC,YAAY,GAAGxB,QAAQ,CAACyB,uBAAuB,CAAC3B,IAAI,CAAC;;AAE3D;AACA,MAAM4B,0BAA0B,GAAG,CAAC;AACpC;AACA,MAAMC,wBAAwB,GAAG,CAAC;AASlC,SAASC,uBAAuBA,CAAC;EAC/BC,KAAK;EACLC,OAAO;EACPC;AAGF,CAAC,EAAE;EACD,MAAM;IAAEC;EAAM,CAAC,GAAGpB,YAAY,CAAC,CAAC;EAChC,MAAM;IAAEqB,OAAO;IAAEC;EAAqB,CAAC,GAAGlB,SAAS,CAAC,C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