react-native-terra-ui 0.1.1 → 0.2.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 (262) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/lib/module/components/avatar/Avatar.js +118 -35
  3. package/lib/module/components/avatar/Avatar.js.map +1 -1
  4. package/lib/module/components/box/Box.js +15 -2
  5. package/lib/module/components/box/Box.js.map +1 -1
  6. package/lib/module/components/box/utils.js +4 -1
  7. package/lib/module/components/box/utils.js.map +1 -1
  8. package/lib/module/components/button/Button.js +7 -14
  9. package/lib/module/components/button/Button.js.map +1 -1
  10. package/lib/module/components/chip/Chip.js +372 -0
  11. package/lib/module/components/chip/Chip.js.map +1 -0
  12. package/lib/module/components/chip/index.js +4 -0
  13. package/lib/module/components/chip/index.js.map +1 -0
  14. package/lib/module/components/chip/types.js +2 -0
  15. package/lib/module/components/chip/types.js.map +1 -0
  16. package/lib/module/components/chip/utils.js +36 -0
  17. package/lib/module/components/chip/utils.js.map +1 -0
  18. package/lib/module/components/empty-state/EmptyState.js +200 -0
  19. package/lib/module/components/empty-state/EmptyState.js.map +1 -0
  20. package/lib/module/components/empty-state/index.js +4 -0
  21. package/lib/module/components/empty-state/index.js.map +1 -0
  22. package/lib/module/components/empty-state/types.js +2 -0
  23. package/lib/module/components/empty-state/types.js.map +1 -0
  24. package/lib/module/components/header/header-buttons.js +31 -36
  25. package/lib/module/components/header/header-buttons.js.map +1 -1
  26. package/lib/module/components/header/index.js +1 -1
  27. package/lib/module/components/header/index.js.map +1 -1
  28. package/lib/module/components/header/parts/HeaderGradientOverlay.js +38 -0
  29. package/lib/module/components/header/parts/HeaderGradientOverlay.js.map +1 -0
  30. package/lib/module/components/header/variants/LargeTitleHeader/index.js +69 -99
  31. package/lib/module/components/header/variants/LargeTitleHeader/index.js.map +1 -1
  32. package/lib/module/components/header/variants/TitleHeader/index.js +32 -63
  33. package/lib/module/components/header/variants/TitleHeader/index.js.map +1 -1
  34. package/lib/module/components/icon/Icon.js +20 -8
  35. package/lib/module/components/icon/Icon.js.map +1 -1
  36. package/lib/module/components/image/Image.js +54 -0
  37. package/lib/module/components/image/Image.js.map +1 -0
  38. package/lib/module/components/image/index.js +4 -0
  39. package/lib/module/components/image/index.js.map +1 -0
  40. package/lib/module/components/image/types.js +4 -0
  41. package/lib/module/components/image/types.js.map +1 -0
  42. package/lib/module/components/index.js +4 -0
  43. package/lib/module/components/index.js.map +1 -1
  44. package/lib/module/components/portal/Portal.js +42 -0
  45. package/lib/module/components/portal/Portal.js.map +1 -0
  46. package/lib/module/components/portal/PortalContext.js +1 -16
  47. package/lib/module/components/portal/PortalContext.js.map +1 -1
  48. package/lib/module/components/portal/PortalHost.js +16 -14
  49. package/lib/module/components/portal/PortalHost.js.map +1 -1
  50. package/lib/module/components/portal/PortalProvider.js +51 -19
  51. package/lib/module/components/portal/PortalProvider.js.map +1 -1
  52. package/lib/module/components/portal/index.js +1 -1
  53. package/lib/module/components/portal/index.js.map +1 -1
  54. package/lib/module/components/screen/Screen.js +25 -28
  55. package/lib/module/components/screen/Screen.js.map +1 -1
  56. package/lib/module/components/screen/ScreenContext.js +7 -5
  57. package/lib/module/components/screen/ScreenContext.js.map +1 -1
  58. package/lib/module/components/screen/ScreenFlashList.js +144 -0
  59. package/lib/module/components/screen/ScreenFlashList.js.map +1 -0
  60. package/lib/module/components/screen/ScreenFlatList.js +88 -27
  61. package/lib/module/components/screen/ScreenFlatList.js.map +1 -1
  62. package/lib/module/components/screen/ScreenScrollView.js +101 -34
  63. package/lib/module/components/screen/ScreenScrollView.js.map +1 -1
  64. package/lib/module/components/screen/index.js +1 -0
  65. package/lib/module/components/screen/index.js.map +1 -1
  66. package/lib/module/components/screen/parts/BottomSafeArea.js +62 -0
  67. package/lib/module/components/screen/parts/BottomSafeArea.js.map +1 -0
  68. package/lib/module/components/screen/parts/ScreenPlaceholder.js +50 -0
  69. package/lib/module/components/screen/parts/ScreenPlaceholder.js.map +1 -0
  70. package/lib/module/components/screen/types.js +4 -0
  71. package/lib/module/components/screen/types.js.map +1 -0
  72. package/lib/module/components/screen/utils.js +12 -9
  73. package/lib/module/components/screen/utils.js.map +1 -1
  74. package/lib/module/components/surface/Surface.js +16 -9
  75. package/lib/module/components/surface/Surface.js.map +1 -1
  76. package/lib/module/components/text/Text.js +23 -5
  77. package/lib/module/components/text/Text.js.map +1 -1
  78. package/lib/module/components/toast/Toast.js +8 -8
  79. package/lib/module/components/toast/Toast.js.map +1 -1
  80. package/lib/module/components/toolbar/Toolbar.js +268 -0
  81. package/lib/module/components/toolbar/Toolbar.js.map +1 -0
  82. package/lib/module/components/toolbar/index.js +4 -0
  83. package/lib/module/components/toolbar/index.js.map +1 -0
  84. package/lib/module/context/ThemeProvider.js +5 -2
  85. package/lib/module/context/ThemeProvider.js.map +1 -1
  86. package/lib/module/{components/icon/utils.js → theme/defaults/icons.js} +1 -1
  87. package/lib/module/theme/defaults/icons.js.map +1 -0
  88. package/lib/module/theme/defaults/image.js +30 -0
  89. package/lib/module/theme/defaults/image.js.map +1 -0
  90. package/lib/module/theme/index.js +1 -1
  91. package/lib/module/theme/{configure.js → registry.js} +21 -28
  92. package/lib/module/theme/registry.js.map +1 -0
  93. package/lib/module/theme/runtime.js +1 -1
  94. package/lib/module/theme/theme.js +91 -10
  95. package/lib/module/theme/theme.js.map +1 -1
  96. package/lib/module/theme/tokens/dark.js +59 -68
  97. package/lib/module/theme/tokens/dark.js.map +1 -1
  98. package/lib/module/theme/tokens/light.js +49 -67
  99. package/lib/module/theme/tokens/light.js.map +1 -1
  100. package/lib/module/theme/tokens/primitives.js +241 -20
  101. package/lib/module/theme/tokens/primitives.js.map +1 -1
  102. package/lib/module/utils/accent-utils.js +4 -4
  103. package/lib/module/utils/accent-utils.js.map +1 -1
  104. package/lib/typescript/src/components/avatar/Avatar.d.ts.map +1 -1
  105. package/lib/typescript/src/components/avatar/types.d.ts +4 -4
  106. package/lib/typescript/src/components/avatar/types.d.ts.map +1 -1
  107. package/lib/typescript/src/components/box/Box.d.ts.map +1 -1
  108. package/lib/typescript/src/components/box/utils.d.ts +6 -1
  109. package/lib/typescript/src/components/box/utils.d.ts.map +1 -1
  110. package/lib/typescript/src/components/button/Button.d.ts +1 -1
  111. package/lib/typescript/src/components/button/Button.d.ts.map +1 -1
  112. package/lib/typescript/src/components/chip/Chip.d.ts +24 -0
  113. package/lib/typescript/src/components/chip/Chip.d.ts.map +1 -0
  114. package/lib/typescript/src/components/chip/index.d.ts +4 -0
  115. package/lib/typescript/src/components/chip/index.d.ts.map +1 -0
  116. package/lib/typescript/src/components/chip/types.d.ts +8 -0
  117. package/lib/typescript/src/components/chip/types.d.ts.map +1 -0
  118. package/lib/typescript/src/components/chip/utils.d.ts +8 -0
  119. package/lib/typescript/src/components/chip/utils.d.ts.map +1 -0
  120. package/lib/typescript/src/components/empty-state/EmptyState.d.ts +45 -0
  121. package/lib/typescript/src/components/empty-state/EmptyState.d.ts.map +1 -0
  122. package/lib/typescript/src/components/empty-state/index.d.ts +4 -0
  123. package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -0
  124. package/lib/typescript/src/components/empty-state/types.d.ts +6 -0
  125. package/lib/typescript/src/components/empty-state/types.d.ts.map +1 -0
  126. package/lib/typescript/src/components/header/header-buttons.d.ts +27 -0
  127. package/lib/typescript/src/components/header/header-buttons.d.ts.map +1 -1
  128. package/lib/typescript/src/components/header/index.d.ts +1 -1
  129. package/lib/typescript/src/components/header/index.d.ts.map +1 -1
  130. package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts +7 -0
  131. package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts.map +1 -0
  132. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts +1 -1
  133. package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts.map +1 -1
  134. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts +18 -7
  135. package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts.map +1 -1
  136. package/lib/typescript/src/components/icon/Icon.d.ts.map +1 -1
  137. package/lib/typescript/src/components/image/Image.d.ts +16 -0
  138. package/lib/typescript/src/components/image/Image.d.ts.map +1 -0
  139. package/lib/typescript/src/components/image/index.d.ts +3 -0
  140. package/lib/typescript/src/components/image/index.d.ts.map +1 -0
  141. package/lib/typescript/src/components/image/types.d.ts +7 -0
  142. package/lib/typescript/src/components/image/types.d.ts.map +1 -0
  143. package/lib/typescript/src/components/index.d.ts +4 -0
  144. package/lib/typescript/src/components/index.d.ts.map +1 -1
  145. package/lib/typescript/src/components/portal/Portal.d.ts +26 -0
  146. package/lib/typescript/src/components/portal/Portal.d.ts.map +1 -0
  147. package/lib/typescript/src/components/portal/PortalContext.d.ts +11 -14
  148. package/lib/typescript/src/components/portal/PortalContext.d.ts.map +1 -1
  149. package/lib/typescript/src/components/portal/PortalHost.d.ts +9 -4
  150. package/lib/typescript/src/components/portal/PortalHost.d.ts.map +1 -1
  151. package/lib/typescript/src/components/portal/PortalProvider.d.ts +3 -3
  152. package/lib/typescript/src/components/portal/PortalProvider.d.ts.map +1 -1
  153. package/lib/typescript/src/components/portal/index.d.ts +4 -2
  154. package/lib/typescript/src/components/portal/index.d.ts.map +1 -1
  155. package/lib/typescript/src/components/screen/Screen.d.ts +18 -13
  156. package/lib/typescript/src/components/screen/Screen.d.ts.map +1 -1
  157. package/lib/typescript/src/components/screen/ScreenContext.d.ts +12 -9
  158. package/lib/typescript/src/components/screen/ScreenContext.d.ts.map +1 -1
  159. package/lib/typescript/src/components/screen/ScreenFlashList.d.ts +43 -0
  160. package/lib/typescript/src/components/screen/ScreenFlashList.d.ts.map +1 -0
  161. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts +17 -7
  162. package/lib/typescript/src/components/screen/ScreenFlatList.d.ts.map +1 -1
  163. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts +51 -16
  164. package/lib/typescript/src/components/screen/ScreenScrollView.d.ts.map +1 -1
  165. package/lib/typescript/src/components/screen/index.d.ts +3 -0
  166. package/lib/typescript/src/components/screen/index.d.ts.map +1 -1
  167. package/lib/typescript/src/components/screen/parts/BottomSafeArea.d.ts +30 -0
  168. package/lib/typescript/src/components/screen/parts/BottomSafeArea.d.ts.map +1 -0
  169. package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts +22 -0
  170. package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts.map +1 -0
  171. package/lib/typescript/src/components/screen/types.d.ts +42 -0
  172. package/lib/typescript/src/components/screen/types.d.ts.map +1 -0
  173. package/lib/typescript/src/components/screen/utils.d.ts +9 -9
  174. package/lib/typescript/src/components/screen/utils.d.ts.map +1 -1
  175. package/lib/typescript/src/components/surface/Surface.d.ts +7 -0
  176. package/lib/typescript/src/components/surface/Surface.d.ts.map +1 -1
  177. package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
  178. package/lib/typescript/src/components/toolbar/Toolbar.d.ts +115 -0
  179. package/lib/typescript/src/components/toolbar/Toolbar.d.ts.map +1 -0
  180. package/lib/typescript/src/components/toolbar/index.d.ts +3 -0
  181. package/lib/typescript/src/components/toolbar/index.d.ts.map +1 -0
  182. package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -1
  183. package/lib/typescript/src/{components/icon/utils.d.ts → theme/defaults/icons.d.ts} +2 -2
  184. package/lib/typescript/src/theme/defaults/icons.d.ts.map +1 -0
  185. package/lib/typescript/src/theme/defaults/image.d.ts +4 -0
  186. package/lib/typescript/src/theme/defaults/image.d.ts.map +1 -0
  187. package/lib/typescript/src/theme/index.d.ts +1 -1
  188. package/lib/typescript/src/theme/index.d.ts.map +1 -1
  189. package/lib/typescript/src/theme/{configure.d.ts → registry.d.ts} +1 -1
  190. package/lib/typescript/src/theme/registry.d.ts.map +1 -0
  191. package/lib/typescript/src/theme/theme.d.ts +21 -1
  192. package/lib/typescript/src/theme/theme.d.ts.map +1 -1
  193. package/lib/typescript/src/theme/tokens/dark.d.ts +41 -64
  194. package/lib/typescript/src/theme/tokens/dark.d.ts.map +1 -1
  195. package/lib/typescript/src/theme/tokens/light.d.ts +44 -65
  196. package/lib/typescript/src/theme/tokens/light.d.ts.map +1 -1
  197. package/lib/typescript/src/theme/tokens/primitives.d.ts +228 -17
  198. package/lib/typescript/src/theme/tokens/primitives.d.ts.map +1 -1
  199. package/lib/typescript/src/theme/types.d.ts +65 -35
  200. package/lib/typescript/src/theme/types.d.ts.map +1 -1
  201. package/package.json +23 -9
  202. package/skills/terra-ui/SKILL.md +193 -0
  203. package/skills/terra-ui/references/recipes.md +198 -0
  204. package/skills/terra-ui/references/troubleshooting.md +112 -0
  205. package/src/components/avatar/Avatar.tsx +128 -38
  206. package/src/components/avatar/types.ts +5 -5
  207. package/src/components/box/Box.tsx +13 -1
  208. package/src/components/box/utils.ts +10 -0
  209. package/src/components/button/Button.tsx +7 -15
  210. package/src/components/chip/Chip.tsx +444 -0
  211. package/src/components/chip/index.ts +3 -0
  212. package/src/components/chip/types.ts +15 -0
  213. package/src/components/chip/utils.ts +34 -0
  214. package/src/components/empty-state/EmptyState.tsx +209 -0
  215. package/src/components/empty-state/index.ts +3 -0
  216. package/src/components/empty-state/types.ts +5 -0
  217. package/src/components/header/header-buttons.tsx +33 -45
  218. package/src/components/header/index.ts +2 -0
  219. package/src/components/header/parts/HeaderGradientOverlay.tsx +29 -0
  220. package/src/components/header/variants/LargeTitleHeader/index.tsx +68 -102
  221. package/src/components/header/variants/TitleHeader/index.tsx +47 -56
  222. package/src/components/icon/Icon.tsx +20 -15
  223. package/src/components/image/Image.tsx +48 -0
  224. package/src/components/image/index.ts +2 -0
  225. package/src/components/image/types.ts +7 -0
  226. package/src/components/index.ts +4 -0
  227. package/src/components/portal/Portal.tsx +55 -0
  228. package/src/components/portal/PortalContext.tsx +14 -22
  229. package/src/components/portal/PortalHost.tsx +17 -10
  230. package/src/components/portal/PortalProvider.tsx +58 -21
  231. package/src/components/portal/index.ts +4 -2
  232. package/src/components/screen/Screen.tsx +45 -59
  233. package/src/components/screen/ScreenContext.tsx +19 -12
  234. package/src/components/screen/ScreenFlashList.tsx +196 -0
  235. package/src/components/screen/ScreenFlatList.tsx +100 -39
  236. package/src/components/screen/ScreenScrollView.tsx +114 -53
  237. package/src/components/screen/index.ts +3 -0
  238. package/src/components/screen/parts/BottomSafeArea.tsx +60 -0
  239. package/src/components/screen/parts/ScreenPlaceholder.tsx +55 -0
  240. package/src/components/screen/types.ts +43 -0
  241. package/src/components/screen/utils.ts +29 -15
  242. package/src/components/surface/Surface.tsx +17 -20
  243. package/src/components/text/Text.tsx +23 -5
  244. package/src/components/toast/Toast.tsx +8 -8
  245. package/src/components/toolbar/Toolbar.tsx +353 -0
  246. package/src/components/toolbar/index.ts +6 -0
  247. package/src/context/ThemeProvider.tsx +5 -4
  248. package/src/{components/icon/utils.tsx → theme/defaults/icons.tsx} +1 -1
  249. package/src/theme/defaults/image.tsx +34 -0
  250. package/src/theme/index.ts +1 -1
  251. package/src/theme/{configure.ts → registry.ts} +19 -34
  252. package/src/theme/runtime.ts +1 -1
  253. package/src/theme/theme.ts +127 -13
  254. package/src/theme/tokens/dark.ts +60 -69
  255. package/src/theme/tokens/light.ts +50 -68
  256. package/src/theme/tokens/primitives.ts +248 -20
  257. package/src/theme/types.ts +67 -35
  258. package/src/utils/accent-utils.ts +4 -4
  259. package/lib/module/components/icon/utils.js.map +0 -1
  260. package/lib/module/theme/configure.js.map +0 -1
  261. package/lib/typescript/src/components/icon/utils.d.ts.map +0 -1
  262. package/lib/typescript/src/theme/configure.d.ts.map +0 -1
@@ -9,6 +9,10 @@
9
9
  * `palette.*` is kept for Figma parity / authoring reference; the runtime theme
10
10
  * consumes already-resolved semantic colors (see `light.ts` / `dark.ts`) and
11
11
  * does not read the palette directly.
12
+ *
13
+ * Ramps are Tailwind CSS v4's default palette (https://tailwindcss.com/docs/colors),
14
+ * hex-converted from Tailwind's canonical OKLCH definitions (not the older v3
15
+ * hex palette, which uses different, less vivid values for the same names).
12
16
  */
13
17
  export const primitives = {
14
18
  // ── palette (Tailwind-derived ramps) ──────────────────────────────────────
@@ -102,25 +106,249 @@ export const primitives = {
102
106
  'palette.neutral.800': '#27272a',
103
107
  'palette.neutral.900': '#18181b',
104
108
  'palette.neutral.950': '#09090b',
109
+ 'palette.gray.50': '#f9fafb',
110
+ 'palette.gray.100': '#f3f4f6',
111
+ 'palette.gray.200': '#e5e7eb',
112
+ 'palette.gray.300': '#d1d5dc',
113
+ 'palette.gray.400': '#99a1af',
114
+ 'palette.gray.500': '#6a7282',
115
+ 'palette.gray.600': '#4a5565',
116
+ 'palette.gray.700': '#364153',
117
+ 'palette.gray.800': '#1e2939',
118
+ 'palette.gray.900': '#101828',
119
+ 'palette.gray.950': '#030712',
120
+ 'palette.zinc.50': '#fafafa',
121
+ 'palette.zinc.100': '#f4f4f5',
122
+ 'palette.zinc.200': '#e4e4e7',
123
+ 'palette.zinc.300': '#d4d4d8',
124
+ 'palette.zinc.400': '#9f9fa9',
125
+ 'palette.zinc.500': '#71717b',
126
+ 'palette.zinc.600': '#52525c',
127
+ 'palette.zinc.700': '#3f3f46',
128
+ 'palette.zinc.800': '#27272a',
129
+ 'palette.zinc.900': '#18181b',
130
+ 'palette.zinc.950': '#09090b',
131
+ 'palette.stone.50': '#fafaf9',
132
+ 'palette.stone.100': '#f5f5f4',
133
+ 'palette.stone.200': '#e7e5e4',
134
+ 'palette.stone.300': '#d6d3d1',
135
+ 'palette.stone.400': '#a6a09b',
136
+ 'palette.stone.500': '#79716b',
137
+ 'palette.stone.600': '#57534d',
138
+ 'palette.stone.700': '#44403b',
139
+ 'palette.stone.800': '#292524',
140
+ 'palette.stone.900': '#1c1917',
141
+ 'palette.stone.950': '#0c0a09',
142
+
143
+ // ── extended neutral tones (Tailwind's newer tinted-gray families) ────────
144
+ 'palette.mauve.50': '#fafafa',
145
+ 'palette.mauve.100': '#f3f1f3',
146
+ 'palette.mauve.200': '#e7e4e7',
147
+ 'palette.mauve.300': '#d7d0d7',
148
+ 'palette.mauve.400': '#a89ea9',
149
+ 'palette.mauve.500': '#79697b',
150
+ 'palette.mauve.600': '#594c5b',
151
+ 'palette.mauve.700': '#463947',
152
+ 'palette.mauve.800': '#2a212c',
153
+ 'palette.mauve.900': '#1d161e',
154
+ 'palette.mauve.950': '#0c090c',
155
+ 'palette.mist.50': '#f9fbfb',
156
+ 'palette.mist.100': '#f1f3f3',
157
+ 'palette.mist.200': '#e3e7e8',
158
+ 'palette.mist.300': '#d0d6d8',
159
+ 'palette.mist.400': '#9ca8ab',
160
+ 'palette.mist.500': '#67787c',
161
+ 'palette.mist.600': '#4b585b',
162
+ 'palette.mist.700': '#394447',
163
+ 'palette.mist.800': '#22292b',
164
+ 'palette.mist.900': '#161b1d',
165
+ 'palette.mist.950': '#090b0c',
166
+ 'palette.olive.50': '#fbfbf9',
167
+ 'palette.olive.100': '#f4f4f0',
168
+ 'palette.olive.200': '#e8e8e3',
169
+ 'palette.olive.300': '#d8d8d0',
170
+ 'palette.olive.400': '#abab9c',
171
+ 'palette.olive.500': '#7c7c67',
172
+ 'palette.olive.600': '#5b5b4b',
173
+ 'palette.olive.700': '#474739',
174
+ 'palette.olive.800': '#2b2b22',
175
+ 'palette.olive.900': '#1d1d16',
176
+ 'palette.olive.950': '#0c0c09',
177
+ 'palette.taupe.50': '#fbfaf9',
178
+ 'palette.taupe.100': '#f3f1f1',
179
+ 'palette.taupe.200': '#e8e4e3',
180
+ 'palette.taupe.300': '#d8d2d0',
181
+ 'palette.taupe.400': '#aba09c',
182
+ 'palette.taupe.500': '#7c6d67',
183
+ 'palette.taupe.600': '#5b4f4b',
184
+ 'palette.taupe.700': '#473c39',
185
+ 'palette.taupe.800': '#2b2422',
186
+ 'palette.taupe.900': '#1d1816',
187
+ 'palette.taupe.950': '#0c0a09',
188
+
189
+ // ── additional hues (Tailwind's full chromatic palette) ───────────────────
190
+ 'palette.orange.50': '#fff7ed',
191
+ 'palette.orange.100': '#ffedd4',
192
+ 'palette.orange.200': '#ffd6a7',
193
+ 'palette.orange.300': '#ffb86a',
194
+ 'palette.orange.400': '#ff8904',
195
+ 'palette.orange.500': '#ff6900',
196
+ 'palette.orange.600': '#f54900',
197
+ 'palette.orange.700': '#ca3500',
198
+ 'palette.orange.800': '#9f2d00',
199
+ 'palette.orange.900': '#7e2a0c',
200
+ 'palette.orange.950': '#441306',
201
+ 'palette.yellow.50': '#fefce8',
202
+ 'palette.yellow.100': '#fef9c2',
203
+ 'palette.yellow.200': '#fff085',
204
+ 'palette.yellow.300': '#ffdf20',
205
+ 'palette.yellow.400': '#fdc700',
206
+ 'palette.yellow.500': '#f0b100',
207
+ 'palette.yellow.600': '#d08700',
208
+ 'palette.yellow.700': '#a65f00',
209
+ 'palette.yellow.800': '#894b00',
210
+ 'palette.yellow.900': '#733e0a',
211
+ 'palette.yellow.950': '#432004',
212
+ 'palette.lime.50': '#f7fee7',
213
+ 'palette.lime.100': '#ecfcca',
214
+ 'palette.lime.200': '#d8f999',
215
+ 'palette.lime.300': '#bbf451',
216
+ 'palette.lime.400': '#9ae600',
217
+ 'palette.lime.500': '#7ccf00',
218
+ 'palette.lime.600': '#5ea500',
219
+ 'palette.lime.700': '#497d00',
220
+ 'palette.lime.800': '#3c6300',
221
+ 'palette.lime.900': '#35530e',
222
+ 'palette.lime.950': '#192e03',
223
+ 'palette.teal.50': '#f0fdfa',
224
+ 'palette.teal.100': '#cbfbf1',
225
+ 'palette.teal.200': '#96f7e4',
226
+ 'palette.teal.300': '#46ecd5',
227
+ 'palette.teal.400': '#00d5be',
228
+ 'palette.teal.500': '#00bba7',
229
+ 'palette.teal.600': '#009689',
230
+ 'palette.teal.700': '#00786f',
231
+ 'palette.teal.800': '#005f5a',
232
+ 'palette.teal.900': '#0b4f4a',
233
+ 'palette.teal.950': '#022f2e',
234
+ 'palette.cyan.50': '#ecfeff',
235
+ 'palette.cyan.100': '#cefafe',
236
+ 'palette.cyan.200': '#a2f4fd',
237
+ 'palette.cyan.300': '#53eafd',
238
+ 'palette.cyan.400': '#00d3f2',
239
+ 'palette.cyan.500': '#00b8db',
240
+ 'palette.cyan.600': '#0092b8',
241
+ 'palette.cyan.700': '#007595',
242
+ 'palette.cyan.800': '#005f78',
243
+ 'palette.cyan.900': '#104e64',
244
+ 'palette.cyan.950': '#053345',
245
+ 'palette.indigo.50': '#eef2ff',
246
+ 'palette.indigo.100': '#e0e7ff',
247
+ 'palette.indigo.200': '#c6d2ff',
248
+ 'palette.indigo.300': '#a3b3ff',
249
+ 'palette.indigo.400': '#7c86ff',
250
+ 'palette.indigo.500': '#615fff',
251
+ 'palette.indigo.600': '#4f39f6',
252
+ 'palette.indigo.700': '#432dd7',
253
+ 'palette.indigo.800': '#372aac',
254
+ 'palette.indigo.900': '#312c85',
255
+ 'palette.indigo.950': '#1e1a4d',
256
+ 'palette.violet.50': '#f5f3ff',
257
+ 'palette.violet.100': '#ede9fe',
258
+ 'palette.violet.200': '#ddd6ff',
259
+ 'palette.violet.300': '#c4b4ff',
260
+ 'palette.violet.400': '#a684ff',
261
+ 'palette.violet.500': '#8e51ff',
262
+ 'palette.violet.600': '#7f22fe',
263
+ 'palette.violet.700': '#7008e7',
264
+ 'palette.violet.800': '#5d0ec0',
265
+ 'palette.violet.900': '#4d179a',
266
+ 'palette.violet.950': '#2f0d68',
267
+ 'palette.purple.50': '#faf5ff',
268
+ 'palette.purple.100': '#f3e8ff',
269
+ 'palette.purple.200': '#e9d4ff',
270
+ 'palette.purple.300': '#dab2ff',
271
+ 'palette.purple.400': '#c27aff',
272
+ 'palette.purple.500': '#ad46ff',
273
+ 'palette.purple.600': '#9810fa',
274
+ 'palette.purple.700': '#8200db',
275
+ 'palette.purple.800': '#6e11b0',
276
+ 'palette.purple.900': '#59168b',
277
+ 'palette.purple.950': '#3c0366',
278
+ 'palette.fuchsia.50': '#fdf4ff',
279
+ 'palette.fuchsia.100': '#fae8ff',
280
+ 'palette.fuchsia.200': '#f6cfff',
281
+ 'palette.fuchsia.300': '#f4a8ff',
282
+ 'palette.fuchsia.400': '#ed6aff',
283
+ 'palette.fuchsia.500': '#e12afb',
284
+ 'palette.fuchsia.600': '#c800de',
285
+ 'palette.fuchsia.700': '#a800b7',
286
+ 'palette.fuchsia.800': '#8a0194',
287
+ 'palette.fuchsia.900': '#721378',
288
+ 'palette.fuchsia.950': '#4b004f',
289
+ 'palette.pink.50': '#fdf2f8',
290
+ 'palette.pink.100': '#fce7f3',
291
+ 'palette.pink.200': '#fccee8',
292
+ 'palette.pink.300': '#fda5d5',
293
+ 'palette.pink.400': '#fb64b6',
294
+ 'palette.pink.500': '#f6339a',
295
+ 'palette.pink.600': '#e60076',
296
+ 'palette.pink.700': '#c6005c',
297
+ 'palette.pink.800': '#a3004c',
298
+ 'palette.pink.900': '#861043',
299
+ 'palette.pink.950': '#510424',
300
+ 'palette.rose.50': '#fff1f2',
301
+ 'palette.rose.100': '#ffe4e6',
302
+ 'palette.rose.200': '#ffccd3',
303
+ 'palette.rose.300': '#ffa1ad',
304
+ 'palette.rose.400': '#ff637e',
305
+ 'palette.rose.500': '#ff2056',
306
+ 'palette.rose.600': '#ec003f',
307
+ 'palette.rose.700': '#c70036',
308
+ 'palette.rose.800': '#a50036',
309
+ 'palette.rose.900': '#8b0836',
310
+ 'palette.rose.950': '#4d0218',
311
+
312
+ // ── spacing scale base (dp) ────────────────────────────────────────────────
313
+ // Only the BASE (the 4dp unit) is authored here. The full spacing scale is
314
+ // DERIVED from it via `buildSpacingScale()` in `../theme.ts` — each step's
315
+ // value is its key multiplied by this base (e.g. spacing.5 = 5 × 4 = 20).
316
+ // Two ways to change it: edit this design-time token, or override at
317
+ // configure time with `configureTerraUI({ shared: { spacing: { base } } })`.
318
+ 'spacing.base': 4,
319
+
320
+ // ── elevation: platform-aware shadow + Android elevation ──────────────────
321
+ // Scheme-agnostic; shadowColor is layered on separately from each theme's
322
+ // `color.shadow` token (see withShadowColor() in ../theme.ts).
323
+ 'elevation.none.shadowOpacity': 0,
324
+ 'elevation.none.shadowRadius': 0,
325
+ 'elevation.none.shadowOffset.width': 0,
326
+ 'elevation.none.shadowOffset.height': 0,
327
+ 'elevation.none.elevation': 0,
328
+
329
+ 'elevation.sm.shadowOpacity': 0.1,
330
+ 'elevation.sm.shadowRadius': 2,
331
+ 'elevation.sm.shadowOffset.width': 0,
332
+ 'elevation.sm.shadowOffset.height': 1,
333
+ 'elevation.sm.elevation': 1,
334
+
335
+ 'elevation.md.shadowOpacity': 0.14,
336
+ 'elevation.md.shadowRadius': 4,
337
+ 'elevation.md.shadowOffset.width': 0,
338
+ 'elevation.md.shadowOffset.height': 2,
339
+ 'elevation.md.elevation': 3,
340
+
341
+ 'elevation.lg.shadowOpacity': 0.16,
342
+ 'elevation.lg.shadowRadius': 8,
343
+ 'elevation.lg.shadowOffset.width': 0,
344
+ 'elevation.lg.shadowOffset.height': 4,
345
+ 'elevation.lg.elevation': 6,
105
346
 
106
- // ── spacing scale (dp, 4dp base unit) ─────────────────────────────────────
107
- 'spacing.0': 0,
108
- 'spacing.1': 4,
109
- 'spacing.2': 8,
110
- 'spacing.3': 12,
111
- 'spacing.4': 16,
112
- 'spacing.5': 20,
113
- 'spacing.6': 24,
114
- 'spacing.7': 28,
115
- 'spacing.8': 32,
116
- 'spacing.9': 36,
117
- 'spacing.10': 40,
118
- 'spacing.12': 48,
119
- 'spacing.14': 56,
120
- 'spacing.16': 64,
121
- 'spacing.20': 80,
122
- 'spacing.24': 96,
123
- 'spacing.32': 128,
347
+ 'elevation.xl.shadowOpacity': 0.16,
348
+ 'elevation.xl.shadowRadius': 16,
349
+ 'elevation.xl.shadowOffset.width': 0,
350
+ 'elevation.xl.shadowOffset.height': 8,
351
+ 'elevation.xl.elevation': 12,
124
352
 
125
353
  // ── border-radius base (dp) ───────────────────────────────────────────────
126
354
  // Only the BASE (the `lg`/×1 step) is authored here. The full radius scale is
@@ -181,7 +409,7 @@ export const primitives = {
181
409
  'typography.variants.title-sm.fontWeight': 'semibold',
182
410
  'typography.variants.title-sm.letterSpacing': 0,
183
411
  'typography.variants.title-sm.maxFontSizeMultiplier': 1.4,
184
- 'typography.variants.body-lg.fontSize': 17,
412
+ 'typography.variants.body-lg.fontSize': 18,
185
413
  'typography.variants.body-lg.lineHeight': 26,
186
414
  'typography.variants.body-lg.fontWeight': 'regular',
187
415
  'typography.variants.body-lg.letterSpacing': 0,
@@ -196,7 +424,7 @@ export const primitives = {
196
424
  'typography.variants.body-sm.fontWeight': 'regular',
197
425
  'typography.variants.body-sm.letterSpacing': 0,
198
426
  'typography.variants.body-sm.maxFontSizeMultiplier': 1.8,
199
- 'typography.variants.label-lg.fontSize': 15,
427
+ 'typography.variants.label-lg.fontSize': 16,
200
428
  'typography.variants.label-lg.lineHeight': 20,
201
429
  'typography.variants.label-lg.fontWeight': 'medium',
202
430
  'typography.variants.label-lg.letterSpacing': 0.1,
@@ -111,6 +111,16 @@ export interface Typography {
111
111
  * (e.g. { regular: 'Inter-Regular', semibold: 'Inter-SemiBold' }).
112
112
  */
113
113
  fonts: Record<FontWeightToken, string>;
114
+ /**
115
+ * Weight token → italic font-family name. Optional per weight.
116
+ * Custom fonts can't be slanted via `fontStyle: 'italic'` (that's a no-op
117
+ * for a non-system `fontFamily` on iOS/Android) — point each weight at its
118
+ * dedicated italic file (e.g. { bold: 'Inter-BoldItalic' }) to make
119
+ * `<Text italic />` render correctly. Weights left unset fall back to the
120
+ * upright family in `fonts`. Not needed for the system font, which can
121
+ * synthesize italic on its own.
122
+ */
123
+ fontsItalic?: Partial<Record<FontWeightToken, string>>;
114
124
  variants: Record<RoleTextVariant, TypeStyle>;
115
125
  }
116
126
 
@@ -123,6 +133,8 @@ export interface Typography {
123
133
  export interface ThemeColor {
124
134
  // page background
125
135
  background: string;
136
+ // shadow color (used as elevation.*.shadowColor)
137
+ shadow: string;
126
138
  // surfaces
127
139
  'surface.default': string;
128
140
  'surface.raised': string;
@@ -152,44 +164,50 @@ export interface ThemeColor {
152
164
  'action.bg.primary.active': string;
153
165
  'action.bg.primary.disabled': string;
154
166
  'action.fg.primary': string;
155
- 'action.bg.subtle': string;
156
- 'action.bg.subtle.hover': string;
157
- 'action.bg.subtle.active': string;
158
- 'action.bg.subtle.disabled': string;
159
- 'action.fg.subtle': string;
160
- 'action.bg.neutral': string;
161
- 'action.bg.neutral.hover': string;
162
- 'action.bg.neutral.active': string;
163
- 'action.bg.neutral.disabled': string;
164
- 'action.fg.neutral': string;
167
+ 'action.bg.primary.subtle': string;
168
+ 'action.bg.primary.subtle.hover': string;
169
+ 'action.bg.primary.subtle.active': string;
170
+ 'action.bg.primary.subtle.disabled': string;
171
+ 'action.fg.primary.subtle': string;
172
+ 'action.bg.secondary': string;
173
+ 'action.fg.secondary': string;
174
+ 'action.bg.secondary.subtle': string;
175
+ 'action.bg.secondary.subtle.hover': string;
176
+ 'action.bg.secondary.subtle.active': string;
177
+ 'action.bg.secondary.subtle.disabled': string;
178
+ 'action.fg.secondary.subtle': string;
165
179
  // status — success
166
- 'status.bg.success': string;
167
- 'status.bg.success.subtle': string;
168
- 'status.border.success': string;
169
- 'status.border.success.subtle': string;
170
- 'status.fg.success': string;
171
- 'status.fg.success.subtle': string;
180
+ 'status.success': string;
181
+ 'status.success.bg': string;
182
+ 'status.success.bg.subtle': string;
183
+ 'status.success.border': string;
184
+ 'status.success.border.subtle': string;
185
+ 'status.success.fg': string;
186
+ 'status.success.fg.subtle': string;
172
187
  // status — warning
173
- 'status.bg.warning': string;
174
- 'status.bg.warning.subtle': string;
175
- 'status.border.warning': string;
176
- 'status.border.warning.subtle': string;
177
- 'status.fg.warning': string;
178
- 'status.fg.warning.subtle': string;
188
+ 'status.warning': string;
189
+ 'status.warning.bg': string;
190
+ 'status.warning.bg.subtle': string;
191
+ 'status.warning.border': string;
192
+ 'status.warning.border.subtle': string;
193
+ 'status.warning.fg': string;
194
+ 'status.warning.fg.subtle': string;
179
195
  // status — danger
180
- 'status.bg.danger': string;
181
- 'status.bg.danger.subtle': string;
182
- 'status.border.danger': string;
183
- 'status.border.danger.subtle': string;
184
- 'status.fg.danger': string;
185
- 'status.fg.danger.subtle': string;
196
+ 'status.danger': string;
197
+ 'status.danger.bg': string;
198
+ 'status.danger.bg.subtle': string;
199
+ 'status.danger.border': string;
200
+ 'status.danger.border.subtle': string;
201
+ 'status.danger.fg': string;
202
+ 'status.danger.fg.subtle': string;
186
203
  // status — info
187
- 'status.bg.info': string;
188
- 'status.bg.info.subtle': string;
189
- 'status.border.info': string;
190
- 'status.border.info.subtle': string;
191
- 'status.fg.info': string;
192
- 'status.fg.info.subtle': string;
204
+ 'status.info': string;
205
+ 'status.info.bg': string;
206
+ 'status.info.bg.subtle': string;
207
+ 'status.info.border': string;
208
+ 'status.info.border.subtle': string;
209
+ 'status.info.fg': string;
210
+ 'status.info.fg.subtle': string;
193
211
  }
194
212
 
195
213
  // ─── Full theme ──────────────────────────────────────────────────────────────
@@ -292,6 +310,8 @@ export interface TerraImageProps {
292
310
  style?: StyleProp<ImageStyle>;
293
311
  accessibilityLabel?: string;
294
312
  contentFit?: TerraImageContentFit;
313
+ /** Shown while `source` is loading (and if it fails to resolve). */
314
+ placeholder?: { uri: string } | number;
295
315
  onError?: () => void;
296
316
  }
297
317
 
@@ -329,9 +349,21 @@ export type ThemeRadiusOverride = DeepPartial<TerraTheme['radius']> & {
329
349
  base?: number;
330
350
  };
331
351
 
352
+ export type ThemeSpacingOverride = DeepPartial<TerraTheme['spacing']> & {
353
+ /**
354
+ * Base spacing unit in dp. Every step's value is its key multiplied by this
355
+ * base (e.g. `'5'` → `5 × base`). Per-step spacing overrides still win over
356
+ * the derived value.
357
+ */
358
+ base?: number;
359
+ };
360
+
332
361
  /** Theme override accepted at configure time. */
333
- export type TerraThemeOverride = DeepPartial<Omit<TerraTheme, 'radius'>> & {
362
+ export type TerraThemeOverride = DeepPartial<
363
+ Omit<TerraTheme, 'radius' | 'spacing'>
364
+ > & {
334
365
  radius?: ThemeRadiusOverride;
366
+ spacing?: ThemeSpacingOverride;
335
367
  };
336
368
 
337
369
  /** Default props for the Button component. A per-instance prop still wins. */
@@ -35,10 +35,10 @@ function hueToPartial(
35
35
  'action.fg.primary': fg,
36
36
  'action.bg.primary.hover': shade(hue, dir * 0.12),
37
37
  'action.bg.primary.active': shade(hue, dir * 0.24),
38
- 'action.bg.subtle': withAlpha(hue, isLight ? 0.12 : 0.2),
39
- 'action.fg.subtle': hue,
40
- 'action.bg.subtle.hover': withAlpha(hue, isLight ? 0.18 : 0.28),
41
- 'action.bg.subtle.active': withAlpha(hue, isLight ? 0.24 : 0.36),
38
+ 'action.bg.primary.subtle': withAlpha(hue, isLight ? 0.12 : 0.2),
39
+ 'action.fg.primary.subtle': hue,
40
+ 'action.bg.primary.subtle.hover': withAlpha(hue, isLight ? 0.18 : 0.28),
41
+ 'action.bg.primary.subtle.active': withAlpha(hue, isLight ? 0.24 : 0.36),
42
42
  'text.accent': hue,
43
43
  'text.link': hue,
44
44
  'text.on-accent': fg,
@@ -1 +0,0 @@
1
- {"version":3,"names":["Svg","Circle","Path","jsx","_jsx","jsxs","_jsxs","DEFAULT_SIZE","DEFAULT_COLOR","DEFAULT_STROKE_WIDTH","resolveIconProps","size","color","strokeWidth","strokeProps","stroke","strokeLinecap","strokeLinejoin","SvgIcon","children","width","height","viewBox","fill","PathIcon","d","props","NAV_CENTER","NAV_CHEVRON_OPEN","NAV_CHEVRON_ARM","BackIcon","ForwardIcon","CloseIcon","InfoIcon","cx","cy","r","SuccessIcon","WarningIcon","DangerIcon","PersonIcon","iconSize","defaultIcons","person"],"sourceRoot":"../../../../src","sources":["components/icon/utils.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAIC,MAAM,EAAEC,IAAI,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQrD,MAAMC,YAAY,GAAG,EAAE;AACvB,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,oBAAoB,GAAG,CAAC;AAE9B,MAAMC,gBAAgB,GAAGA,CAAC;EAC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defaultIcons","normalizeAccent","deepMerge","buildRadiusScale","defaultDarkTheme","defaultLightTheme","CONTENT_FIT_MAP","cover","contain","fill","DefaultImage","contentFit","source","style","accessibilityLabel","onError","resizeMode","undefined","DEFAULT_RADIUS","DEFAULT_ELEVATION","resolveDefaultRadius","components","button","radius","surface","registry","baseLight","baseDark","accents","currentAccent","defaultRadius","surfaceElevation","icons","imageComponent","configured","getRegistry","getIsConfigured","getAccentNames","Object","keys","getImageComponent","getIcon","name","getRequiredIcon","getDefaultRadius","component","getSurfaceElevation","resolveTheme","scheme","accentName","base","accent","mergeThemeOverride","theme","override","rest","next","radiusTokens","configureTerraUI","config","__DEV__","length","console","warn","shared","schemes","light","dark","elevation","image","entries","defaultAccent","themes","adaptive","adaptiveThemes","settings","initialScheme","initialTheme","configure"],"sourceRoot":"../../../src","sources":["theme/configure.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,OAAO;AACrC,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,YAAY;AACrB,SAASC,eAAe;AACxB,SAASC,SAAS;AAElB,SAASC,gBAAgB,EAAEC,gBAAgB,EAAEC,iBAAiB;AAiB9D;;AAEA,MAAMC,eAAe,GAAG;EACtBC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE;AACR,CAGC;AAED,MAAMC,YAAiC,GAAGA,CAAC;EACzCC,UAAU,GAAG,OAAO;EACpBC,MAAM;EACNC,KAAK;EACLC,kBAAkB;EAClBC;AACF,CAAC,kBACClB,aAAa,CAACC,KAAK,EAAE;EACnBc,MAAM;EACNC,KAAK;EACLC,kBAAkB;EAClBE,UAAU,EAAEV,eAAe,CAACK,UAAU,CAAC;EACvCI,OAAO,EAAEA,OAAO,GAAG,MAAMA,OAAO,CAAC,CAAC,GAAGE;AACvC,CAAC,CAAC;;AAEJ;;AAEA;AACA,MAAMC,cAAkC,GAAG,IAAI;AAC/C;AACA,MAA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,EAAEtB,QAAQ,CAACI,aAAa,CAAC;IACpDsC,IAAI,EAAEpB,YAAY,CAAC,MAAM,EAAEtB,QAAQ,CAACI,aAAa;EACnD,CAAC;EAED,MAAM4C,QAAQ,GAAGd,MAAM,CAACe,cAAc,IAAI,IAAI;EAC9C,MAAMC,QAAQ,GAAGhB,MAAM,CAACiB,aAAa,GACjC;IAAEC,YAAY,EAAElB,MAAM,CAACiB;EAAc,CAAC,GACtCH,QAAQ,GACN;IAAEC,cAAc,EAAE;EAAc,CAAC,GACjC;IAAEG,YAAY,EAAE;EAAiB,CAAC;EAExC9E,UAAU,CAAC+E,SAAS,CAAC;IAAEN,MAAM;IAAEG;EAAS,CAAC,CAAC;AAC5C","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAElB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAsHtB,eAAO,MAAM,UAAU,EAAE,kBAWxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,CAS1E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../../src/theme/configure.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAEV,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EAEnB,qBAAqB,EACrB,UAAU,EAEX,MAAM,YAAS,CAAC;AAmCjB,KAAK,cAAc,GAAG,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC;AAWlE,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,eAAe;QAC9B,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,UAAU,CAAC;KAClB;CACF;AAED,UAAU,QAAQ;IAChB,S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