@unif/react-native-ui 0.1.0 → 0.2.2

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 (367) hide show
  1. package/lib/commonjs/README.md +99 -0
  2. package/lib/commonjs/action-sheet/index.js +71 -0
  3. package/lib/commonjs/action-sheet/index.js.map +1 -0
  4. package/lib/commonjs/action-sheet/index.md +69 -0
  5. package/lib/commonjs/action-sheet/style/index.js +42 -0
  6. package/lib/commonjs/action-sheet/style/index.js.map +1 -0
  7. package/lib/commonjs/avatar/index.js +50 -0
  8. package/lib/commonjs/avatar/index.js.map +1 -0
  9. package/lib/commonjs/avatar/index.md +51 -0
  10. package/lib/commonjs/avatar/style/index.js +21 -0
  11. package/lib/commonjs/avatar/style/index.js.map +1 -0
  12. package/lib/commonjs/button/index.js +60 -0
  13. package/lib/commonjs/button/index.js.map +1 -0
  14. package/lib/commonjs/button/index.md +90 -0
  15. package/lib/commonjs/button/style/index.js +98 -0
  16. package/lib/commonjs/button/style/index.js.map +1 -0
  17. package/lib/commonjs/center/index.js +26 -0
  18. package/lib/commonjs/center/index.js.map +1 -0
  19. package/lib/commonjs/center/index.md +28 -0
  20. package/lib/commonjs/center/style/index.js +14 -0
  21. package/lib/commonjs/center/style/index.js.map +1 -0
  22. package/lib/commonjs/chip/index.js +69 -0
  23. package/lib/commonjs/chip/index.js.map +1 -0
  24. package/lib/commonjs/chip/index.md +60 -0
  25. package/lib/commonjs/chip/style/index.js +46 -0
  26. package/lib/commonjs/chip/style/index.js.map +1 -0
  27. package/lib/commonjs/column/index.js +35 -0
  28. package/lib/commonjs/column/index.js.map +1 -0
  29. package/lib/commonjs/column/index.md +34 -0
  30. package/lib/commonjs/column/style/index.js +13 -0
  31. package/lib/commonjs/column/style/index.js.map +1 -0
  32. package/lib/commonjs/divider/index.js +32 -0
  33. package/lib/commonjs/divider/index.js.map +1 -0
  34. package/lib/commonjs/divider/index.md +44 -0
  35. package/lib/commonjs/divider/style/index.js +22 -0
  36. package/lib/commonjs/divider/style/index.js.map +1 -0
  37. package/lib/commonjs/hooks/index.js +13 -0
  38. package/lib/commonjs/hooks/index.js.map +1 -0
  39. package/lib/commonjs/hooks/index.md +71 -0
  40. package/lib/commonjs/hooks/useMergeStyles.js +31 -0
  41. package/lib/commonjs/hooks/useMergeStyles.js.map +1 -0
  42. package/lib/commonjs/index.js +146 -0
  43. package/lib/commonjs/index.js.map +1 -0
  44. package/lib/commonjs/input/index.js +76 -0
  45. package/lib/commonjs/input/index.js.map +1 -0
  46. package/lib/commonjs/input/index.md +73 -0
  47. package/lib/commonjs/input/style/index.js +31 -0
  48. package/lib/commonjs/input/style/index.js.map +1 -0
  49. package/lib/commonjs/list-item/index.js +76 -0
  50. package/lib/commonjs/list-item/index.js.map +1 -0
  51. package/lib/commonjs/list-item/index.md +101 -0
  52. package/lib/commonjs/list-item/style/index.js +43 -0
  53. package/lib/commonjs/list-item/style/index.js.map +1 -0
  54. package/lib/commonjs/menu/index.js +66 -0
  55. package/lib/commonjs/menu/index.js.map +1 -0
  56. package/lib/commonjs/menu/style/index.js +32 -0
  57. package/lib/commonjs/menu/style/index.js.map +1 -0
  58. package/lib/commonjs/package.json +1 -0
  59. package/lib/commonjs/popover/index.js +68 -0
  60. package/lib/commonjs/popover/index.js.map +1 -0
  61. package/lib/commonjs/popover/index.md +57 -0
  62. package/lib/commonjs/popover/style/index.js +26 -0
  63. package/lib/commonjs/popover/style/index.js.map +1 -0
  64. package/lib/commonjs/row/index.js +36 -0
  65. package/lib/commonjs/row/index.js.map +1 -0
  66. package/lib/commonjs/row/index.md +46 -0
  67. package/lib/commonjs/row/style/index.js +19 -0
  68. package/lib/commonjs/row/style/index.js.map +1 -0
  69. package/lib/commonjs/space/index.js +25 -0
  70. package/lib/commonjs/space/index.js.map +1 -0
  71. package/lib/commonjs/space/index.md +31 -0
  72. package/lib/commonjs/space/style/index.js +15 -0
  73. package/lib/commonjs/space/style/index.js.map +1 -0
  74. package/lib/commonjs/text/index.js +40 -0
  75. package/lib/commonjs/text/index.js.map +1 -0
  76. package/lib/commonjs/text/index.md +63 -0
  77. package/lib/commonjs/text/style/index.js +56 -0
  78. package/lib/commonjs/text/style/index.js.map +1 -0
  79. package/lib/commonjs/theme/context.js +40 -0
  80. package/lib/commonjs/theme/context.js.map +1 -0
  81. package/lib/commonjs/theme/tokens.js +68 -0
  82. package/lib/commonjs/theme/tokens.js.map +1 -0
  83. package/lib/commonjs/touchable/index.js +40 -0
  84. package/lib/commonjs/touchable/index.js.map +1 -0
  85. package/lib/commonjs/touchable/index.md +42 -0
  86. package/lib/commonjs/touchable/style/index.js +13 -0
  87. package/lib/commonjs/touchable/style/index.js.map +1 -0
  88. package/lib/commonjs/wave-animation/index.js +72 -0
  89. package/lib/commonjs/wave-animation/index.js.map +1 -0
  90. package/lib/commonjs/wave-animation/index.md +50 -0
  91. package/lib/module/action-sheet/index.js +5 -2
  92. package/lib/module/action-sheet/index.js.map +1 -1
  93. package/lib/module/action-sheet/style/index.js +7 -8
  94. package/lib/module/action-sheet/style/index.js.map +1 -1
  95. package/lib/module/avatar/index.js +5 -2
  96. package/lib/module/avatar/index.js.map +1 -1
  97. package/lib/module/avatar/style/index.js +4 -5
  98. package/lib/module/avatar/style/index.js.map +1 -1
  99. package/lib/module/button/index.js +5 -2
  100. package/lib/module/button/index.js.map +1 -1
  101. package/lib/module/button/style/index.js +8 -9
  102. package/lib/module/button/style/index.js.map +1 -1
  103. package/lib/module/chip/index.js +7 -2
  104. package/lib/module/chip/index.js.map +1 -1
  105. package/lib/module/chip/style/index.js +12 -13
  106. package/lib/module/chip/style/index.js.map +1 -1
  107. package/lib/module/divider/index.js +13 -7
  108. package/lib/module/divider/index.js.map +1 -1
  109. package/lib/module/divider/style/index.js +4 -5
  110. package/lib/module/divider/style/index.js.map +1 -1
  111. package/lib/module/index.js +4 -4
  112. package/lib/module/index.js.map +1 -1
  113. package/lib/module/input/index.js +5 -3
  114. package/lib/module/input/index.js.map +1 -1
  115. package/lib/module/input/style/index.js +8 -9
  116. package/lib/module/input/style/index.js.map +1 -1
  117. package/lib/module/list-item/index.js +9 -7
  118. package/lib/module/list-item/index.js.map +1 -1
  119. package/lib/module/list-item/style/index.js +5 -6
  120. package/lib/module/list-item/style/index.js.map +1 -1
  121. package/lib/module/menu/index.js +60 -0
  122. package/lib/module/menu/index.js.map +1 -0
  123. package/lib/module/menu/style/index.js +27 -0
  124. package/lib/module/menu/style/index.js.map +1 -0
  125. package/lib/module/popover/index.js +5 -2
  126. package/lib/module/popover/index.js.map +1 -1
  127. package/lib/module/popover/style/index.js +6 -7
  128. package/lib/module/popover/style/index.js.map +1 -1
  129. package/lib/module/text/index.js +8 -3
  130. package/lib/module/text/index.js.map +1 -1
  131. package/lib/module/text/style/index.js +12 -14
  132. package/lib/module/text/style/index.js.map +1 -1
  133. package/lib/module/theme/context.js +33 -0
  134. package/lib/module/theme/context.js.map +1 -0
  135. package/lib/module/theme/tokens.js +3 -6
  136. package/lib/module/theme/tokens.js.map +1 -1
  137. package/lib/typescript/{jest.setup.d.ts.map → commonjs/jest.setup.d.ts.map} +1 -1
  138. package/lib/typescript/commonjs/package.json +1 -0
  139. package/lib/typescript/commonjs/src/action-sheet/index.d.ts.map +1 -0
  140. package/lib/typescript/{src → commonjs/src}/action-sheet/style/index.d.ts +2 -1
  141. package/lib/typescript/commonjs/src/action-sheet/style/index.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/src/avatar/index.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/src/avatar/style/index.d.ts +8 -0
  144. package/lib/typescript/commonjs/src/avatar/style/index.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/button/index.d.ts.map +1 -0
  146. package/lib/typescript/{src → commonjs/src}/button/style/index.d.ts +2 -1
  147. package/lib/typescript/commonjs/src/button/style/index.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/src/center/index.d.ts.map +1 -0
  149. package/lib/typescript/commonjs/src/center/style/index.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/src/chip/index.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/chip/style/index.d.ts +11 -0
  152. package/lib/typescript/commonjs/src/chip/style/index.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/src/column/index.d.ts.map +1 -0
  154. package/lib/typescript/commonjs/src/column/style/index.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/src/divider/index.d.ts.map +1 -0
  156. package/lib/typescript/commonjs/src/divider/style/index.d.ts +10 -0
  157. package/lib/typescript/commonjs/src/divider/style/index.d.ts.map +1 -0
  158. package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/hooks/useMergeStyles.d.ts.map +1 -0
  160. package/lib/typescript/{src → commonjs/src}/index.d.ts +6 -3
  161. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  162. package/lib/typescript/commonjs/src/input/index.d.ts.map +1 -0
  163. package/lib/typescript/{src → commonjs/src}/input/style/index.d.ts +2 -1
  164. package/lib/typescript/commonjs/src/input/style/index.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/list-item/index.d.ts.map +1 -0
  166. package/lib/typescript/{src → commonjs/src}/list-item/style/index.d.ts +2 -1
  167. package/lib/typescript/commonjs/src/list-item/style/index.d.ts.map +1 -0
  168. package/lib/typescript/commonjs/src/menu/index.d.ts +36 -0
  169. package/lib/typescript/commonjs/src/menu/index.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/src/menu/style/index.d.ts +32 -0
  171. package/lib/typescript/commonjs/src/menu/style/index.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/popover/index.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/popover/style/index.d.ts +8 -0
  174. package/lib/typescript/commonjs/src/popover/style/index.d.ts.map +1 -0
  175. package/lib/typescript/{src/column → commonjs/src/row}/index.d.ts.map +1 -1
  176. package/lib/typescript/commonjs/src/row/style/index.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/space/index.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/space/style/index.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/src/text/index.d.ts.map +1 -0
  180. package/lib/typescript/{src → commonjs/src}/text/style/index.d.ts +5 -4
  181. package/lib/typescript/commonjs/src/text/style/index.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/theme/context.d.ts +17 -0
  183. package/lib/typescript/commonjs/src/theme/context.d.ts.map +1 -0
  184. package/lib/typescript/{src → commonjs/src}/theme/tokens.d.ts +4 -3
  185. package/lib/typescript/commonjs/src/theme/tokens.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/src/touchable/index.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/touchable/style/index.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/src/wave-animation/index.d.ts.map +1 -0
  189. package/lib/typescript/module/jest.setup.d.ts +1 -0
  190. package/lib/typescript/module/jest.setup.d.ts.map +1 -0
  191. package/lib/typescript/module/src/action-sheet/index.d.ts +22 -0
  192. package/lib/typescript/module/src/action-sheet/index.d.ts.map +1 -0
  193. package/lib/typescript/module/src/action-sheet/style/index.d.ts +17 -0
  194. package/lib/typescript/module/src/action-sheet/style/index.d.ts.map +1 -0
  195. package/lib/typescript/module/src/avatar/index.d.ts +19 -0
  196. package/lib/typescript/module/src/avatar/index.d.ts.map +1 -0
  197. package/lib/typescript/module/src/avatar/style/index.d.ts +8 -0
  198. package/lib/typescript/module/src/avatar/style/index.d.ts.map +1 -0
  199. package/lib/typescript/module/src/button/index.d.ts +24 -0
  200. package/lib/typescript/module/src/button/index.d.ts.map +1 -0
  201. package/lib/typescript/module/src/button/style/index.d.ts +17 -0
  202. package/lib/typescript/module/src/button/style/index.d.ts.map +1 -0
  203. package/lib/typescript/module/src/center/index.d.ts +11 -0
  204. package/lib/typescript/module/src/center/index.d.ts.map +1 -0
  205. package/lib/typescript/module/src/center/style/index.d.ts +5 -0
  206. package/lib/typescript/module/src/center/style/index.d.ts.map +1 -0
  207. package/lib/typescript/module/src/chip/index.d.ts +22 -0
  208. package/lib/typescript/module/src/chip/index.d.ts.map +1 -0
  209. package/lib/typescript/module/src/chip/style/index.d.ts +11 -0
  210. package/lib/typescript/module/src/chip/style/index.d.ts.map +1 -0
  211. package/lib/typescript/module/src/column/index.d.ts +20 -0
  212. package/lib/typescript/module/src/column/index.d.ts.map +1 -0
  213. package/lib/typescript/module/src/column/style/index.d.ts +4 -0
  214. package/lib/typescript/module/src/column/style/index.d.ts.map +1 -0
  215. package/lib/typescript/module/src/divider/index.d.ts +13 -0
  216. package/lib/typescript/module/src/divider/index.d.ts.map +1 -0
  217. package/lib/typescript/module/src/divider/style/index.d.ts +10 -0
  218. package/lib/typescript/module/src/divider/style/index.d.ts.map +1 -0
  219. package/lib/typescript/module/src/hooks/index.d.ts +2 -0
  220. package/lib/typescript/module/src/hooks/index.d.ts.map +1 -0
  221. package/lib/typescript/module/src/hooks/useMergeStyles.d.ts +13 -0
  222. package/lib/typescript/module/src/hooks/useMergeStyles.d.ts.map +1 -0
  223. package/lib/typescript/module/src/index.d.ts +42 -0
  224. package/lib/typescript/module/src/index.d.ts.map +1 -0
  225. package/lib/typescript/module/src/input/index.d.ts +29 -0
  226. package/lib/typescript/module/src/input/index.d.ts.map +1 -0
  227. package/lib/typescript/module/src/input/style/index.d.ts +9 -0
  228. package/lib/typescript/module/src/input/style/index.d.ts.map +1 -0
  229. package/lib/typescript/module/src/list-item/index.d.ts +25 -0
  230. package/lib/typescript/module/src/list-item/index.d.ts.map +1 -0
  231. package/lib/typescript/module/src/list-item/style/index.d.ts +18 -0
  232. package/lib/typescript/module/src/list-item/style/index.d.ts.map +1 -0
  233. package/lib/typescript/module/src/menu/index.d.ts +36 -0
  234. package/lib/typescript/module/src/menu/index.d.ts.map +1 -0
  235. package/lib/typescript/module/src/menu/style/index.d.ts +32 -0
  236. package/lib/typescript/module/src/menu/style/index.d.ts.map +1 -0
  237. package/lib/typescript/module/src/popover/index.d.ts +27 -0
  238. package/lib/typescript/module/src/popover/index.d.ts.map +1 -0
  239. package/lib/typescript/module/src/popover/style/index.d.ts +8 -0
  240. package/lib/typescript/module/src/popover/style/index.d.ts.map +1 -0
  241. package/lib/typescript/module/src/row/index.d.ts +22 -0
  242. package/lib/typescript/module/src/row/index.d.ts.map +1 -0
  243. package/lib/typescript/module/src/row/style/index.d.ts +8 -0
  244. package/lib/typescript/module/src/row/style/index.d.ts.map +1 -0
  245. package/lib/typescript/module/src/space/index.d.ts +15 -0
  246. package/lib/typescript/module/src/space/index.d.ts.map +1 -0
  247. package/lib/typescript/module/src/space/style/index.d.ts +7 -0
  248. package/lib/typescript/module/src/space/style/index.d.ts.map +1 -0
  249. package/lib/typescript/module/src/text/index.d.ts +18 -0
  250. package/lib/typescript/module/src/text/index.d.ts.map +1 -0
  251. package/lib/typescript/module/src/text/style/index.d.ts +36 -0
  252. package/lib/typescript/module/src/text/style/index.d.ts.map +1 -0
  253. package/lib/typescript/module/src/theme/context.d.ts +17 -0
  254. package/lib/typescript/module/src/theme/context.d.ts.map +1 -0
  255. package/lib/typescript/module/src/theme/tokens.d.ts +62 -0
  256. package/lib/typescript/module/src/theme/tokens.d.ts.map +1 -0
  257. package/lib/typescript/module/src/touchable/index.d.ts +19 -0
  258. package/lib/typescript/module/src/touchable/index.d.ts.map +1 -0
  259. package/lib/typescript/module/src/touchable/style/index.d.ts +4 -0
  260. package/lib/typescript/module/src/touchable/style/index.d.ts.map +1 -0
  261. package/lib/typescript/module/src/wave-animation/index.d.ts +20 -0
  262. package/lib/typescript/module/src/wave-animation/index.d.ts.map +1 -0
  263. package/package.json +16 -5
  264. package/src/action-sheet/index.tsx +7 -3
  265. package/src/action-sheet/style/index.tsx +10 -8
  266. package/src/avatar/index.tsx +7 -3
  267. package/src/avatar/style/index.tsx +5 -5
  268. package/src/button/index.tsx +7 -3
  269. package/src/button/style/index.tsx +11 -9
  270. package/src/chip/index.tsx +16 -5
  271. package/src/chip/style/index.tsx +15 -13
  272. package/src/divider/index.tsx +18 -11
  273. package/src/divider/style/index.tsx +12 -10
  274. package/src/index.tsx +7 -4
  275. package/src/input/index.tsx +6 -4
  276. package/src/input/style/index.tsx +9 -9
  277. package/src/list-item/index.tsx +11 -6
  278. package/src/list-item/style/index.tsx +6 -6
  279. package/src/menu/index.tsx +96 -0
  280. package/src/menu/style/index.tsx +34 -0
  281. package/src/popover/index.tsx +7 -3
  282. package/src/popover/style/index.tsx +7 -7
  283. package/src/text/index.tsx +9 -3
  284. package/src/text/style/index.tsx +16 -12
  285. package/src/theme/context.tsx +38 -0
  286. package/src/theme/tokens.ts +5 -7
  287. package/lib/module/theme/config.js +0 -27
  288. package/lib/module/theme/config.js.map +0 -1
  289. package/lib/typescript/src/action-sheet/index.d.ts.map +0 -1
  290. package/lib/typescript/src/action-sheet/style/index.d.ts.map +0 -1
  291. package/lib/typescript/src/avatar/index.d.ts.map +0 -1
  292. package/lib/typescript/src/avatar/style/index.d.ts +0 -7
  293. package/lib/typescript/src/avatar/style/index.d.ts.map +0 -1
  294. package/lib/typescript/src/button/index.d.ts.map +0 -1
  295. package/lib/typescript/src/button/style/index.d.ts.map +0 -1
  296. package/lib/typescript/src/center/index.d.ts.map +0 -1
  297. package/lib/typescript/src/center/style/index.d.ts.map +0 -1
  298. package/lib/typescript/src/chip/index.d.ts.map +0 -1
  299. package/lib/typescript/src/chip/style/index.d.ts +0 -10
  300. package/lib/typescript/src/chip/style/index.d.ts.map +0 -1
  301. package/lib/typescript/src/column/style/index.d.ts.map +0 -1
  302. package/lib/typescript/src/divider/index.d.ts.map +0 -1
  303. package/lib/typescript/src/divider/style/index.d.ts +0 -9
  304. package/lib/typescript/src/divider/style/index.d.ts.map +0 -1
  305. package/lib/typescript/src/hooks/index.d.ts.map +0 -1
  306. package/lib/typescript/src/hooks/useMergeStyles.d.ts.map +0 -1
  307. package/lib/typescript/src/index.d.ts.map +0 -1
  308. package/lib/typescript/src/input/index.d.ts.map +0 -1
  309. package/lib/typescript/src/input/style/index.d.ts.map +0 -1
  310. package/lib/typescript/src/list-item/index.d.ts.map +0 -1
  311. package/lib/typescript/src/list-item/style/index.d.ts.map +0 -1
  312. package/lib/typescript/src/popover/index.d.ts.map +0 -1
  313. package/lib/typescript/src/popover/style/index.d.ts +0 -7
  314. package/lib/typescript/src/popover/style/index.d.ts.map +0 -1
  315. package/lib/typescript/src/row/index.d.ts.map +0 -1
  316. package/lib/typescript/src/row/style/index.d.ts.map +0 -1
  317. package/lib/typescript/src/space/index.d.ts.map +0 -1
  318. package/lib/typescript/src/space/style/index.d.ts.map +0 -1
  319. package/lib/typescript/src/text/index.d.ts.map +0 -1
  320. package/lib/typescript/src/text/style/index.d.ts.map +0 -1
  321. package/lib/typescript/src/theme/config.d.ts +0 -18
  322. package/lib/typescript/src/theme/config.d.ts.map +0 -1
  323. package/lib/typescript/src/theme/tokens.d.ts.map +0 -1
  324. package/lib/typescript/src/touchable/index.d.ts.map +0 -1
  325. package/lib/typescript/src/touchable/style/index.d.ts.map +0 -1
  326. package/lib/typescript/src/wave-animation/index.d.ts.map +0 -1
  327. package/lib/typescript/tests/component/component.coverage.test.d.ts +0 -2
  328. package/lib/typescript/tests/component/component.coverage.test.d.ts.map +0 -1
  329. package/lib/typescript/tests/component/component.interaction.test.d.ts +0 -2
  330. package/lib/typescript/tests/component/component.interaction.test.d.ts.map +0 -1
  331. package/lib/typescript/tests/component/component.snapshot.test.d.ts +0 -2
  332. package/lib/typescript/tests/component/component.snapshot.test.d.ts.map +0 -1
  333. package/lib/typescript/tests/e2e/app.e2e.test.d.ts +0 -2
  334. package/lib/typescript/tests/e2e/app.e2e.test.d.ts.map +0 -1
  335. package/lib/typescript/tests/integration/ui.integration.test.d.ts +0 -2
  336. package/lib/typescript/tests/integration/ui.integration.test.d.ts.map +0 -1
  337. package/lib/typescript/tests/unit/mergeStyles.unit.test.d.ts +0 -2
  338. package/lib/typescript/tests/unit/mergeStyles.unit.test.d.ts.map +0 -1
  339. package/lib/typescript/tests/unit/public-api.unit.test.d.ts +0 -2
  340. package/lib/typescript/tests/unit/public-api.unit.test.d.ts.map +0 -1
  341. package/lib/typescript/tests/unit/theme-config.unit.test.d.ts +0 -2
  342. package/lib/typescript/tests/unit/theme-config.unit.test.d.ts.map +0 -1
  343. package/src/theme/config.ts +0 -26
  344. /package/lib/typescript/{jest.setup.d.ts → commonjs/jest.setup.d.ts} +0 -0
  345. /package/lib/typescript/{src → commonjs/src}/action-sheet/index.d.ts +0 -0
  346. /package/lib/typescript/{src → commonjs/src}/avatar/index.d.ts +0 -0
  347. /package/lib/typescript/{src → commonjs/src}/button/index.d.ts +0 -0
  348. /package/lib/typescript/{src → commonjs/src}/center/index.d.ts +0 -0
  349. /package/lib/typescript/{src → commonjs/src}/center/style/index.d.ts +0 -0
  350. /package/lib/typescript/{src → commonjs/src}/chip/index.d.ts +0 -0
  351. /package/lib/typescript/{src → commonjs/src}/column/index.d.ts +0 -0
  352. /package/lib/typescript/{src → commonjs/src}/column/style/index.d.ts +0 -0
  353. /package/lib/typescript/{src → commonjs/src}/divider/index.d.ts +0 -0
  354. /package/lib/typescript/{src → commonjs/src}/hooks/index.d.ts +0 -0
  355. /package/lib/typescript/{src → commonjs/src}/hooks/useMergeStyles.d.ts +0 -0
  356. /package/lib/typescript/{src → commonjs/src}/input/index.d.ts +0 -0
  357. /package/lib/typescript/{src → commonjs/src}/list-item/index.d.ts +0 -0
  358. /package/lib/typescript/{src → commonjs/src}/popover/index.d.ts +0 -0
  359. /package/lib/typescript/{src → commonjs/src}/row/index.d.ts +0 -0
  360. /package/lib/typescript/{src → commonjs/src}/row/style/index.d.ts +0 -0
  361. /package/lib/typescript/{src → commonjs/src}/space/index.d.ts +0 -0
  362. /package/lib/typescript/{src → commonjs/src}/space/style/index.d.ts +0 -0
  363. /package/lib/typescript/{src → commonjs/src}/text/index.d.ts +0 -0
  364. /package/lib/typescript/{src → commonjs/src}/touchable/index.d.ts +0 -0
  365. /package/lib/typescript/{src → commonjs/src}/touchable/style/index.d.ts +0 -0
  366. /package/lib/typescript/{src → commonjs/src}/wave-animation/index.d.ts +0 -0
  367. /package/lib/typescript/{package.json → module/package.json} +0 -0
@@ -1,22 +1,21 @@
1
1
  "use strict";
2
2
 
3
- import { tokens } from "../../theme/tokens.js";
4
- export const DEFAULT_STYLES = {
3
+ export const createDefaultStyles = t => ({
5
4
  overlay: {
6
5
  flex: 1
7
6
  },
8
7
  content: {
9
8
  position: 'absolute',
10
- backgroundColor: tokens.colorBgElevated,
9
+ backgroundColor: t.colorBgElevated,
11
10
  borderRadius: 12,
12
11
  shadowColor: '#000',
13
12
  shadowOffset: {
14
13
  width: 0,
15
14
  height: 4
16
15
  },
17
- shadowOpacity: 0.12,
18
- shadowRadius: 12,
19
- elevation: 8
16
+ shadowOpacity: 0.08,
17
+ shadowRadius: 8,
18
+ elevation: 4
20
19
  }
21
- };
20
+ });
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["tokens","DEFAULT_STYLES","overlay","flex","content","position","backgroundColor","colorBgElevated","borderRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../src","sources":["popover/style/index.tsx"],"mappings":";;AACA,SAASA,MAAM,QAAQ,uBAAoB;AAO3C,OAAO,MAAMC,cAAqC,GAAG;EACnDC,OAAO,EAAE;IACPC,IAAI,EAAE;EACR,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE,UAAU;IACpBC,eAAe,EAAEN,MAAM,CAACO,eAAe;IACvCC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["createDefaultStyles","t","overlay","flex","content","position","backgroundColor","colorBgElevated","borderRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../src","sources":["popover/style/index.tsx"],"mappings":";;AAQA,OAAO,MAAMA,mBAAmB,GAAIC,CAAS,KAA6B;EACxEC,OAAO,EAAE;IACPC,IAAI,EAAE;EACR,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE,UAAU;IACpBC,eAAe,EAAEL,CAAC,CAACM,eAAe;IAClCC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -6,9 +6,10 @@
6
6
  * variant 驱动样式,支持嵌套 Text。
7
7
  */
8
8
 
9
- import React from 'react';
9
+ import React, { useMemo } from 'react';
10
10
  import { Text as RNText } from 'react-native';
11
- import { VARIANT_MAP, WEIGHT_MAP, secondaryStyle, primaryStyle } from "./style/index.js";
11
+ import { useTokens } from "../theme/context.js";
12
+ import { createVariantMap, WEIGHT_MAP, createSecondaryStyle, createPrimaryStyle } from "./style/index.js";
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const Text = ({
14
15
  variant = 'body',
@@ -19,8 +20,12 @@ const Text = ({
19
20
  style,
20
21
  ...rest
21
22
  }) => {
23
+ const tokens = useTokens();
24
+ const variantMap = useMemo(() => createVariantMap(tokens), [tokens]);
25
+ const secondaryStyle = useMemo(() => createSecondaryStyle(tokens), [tokens]);
26
+ const primaryStyle = useMemo(() => createPrimaryStyle(tokens), [tokens]);
22
27
  return /*#__PURE__*/_jsx(RNText, {
23
- style: [VARIANT_MAP[variant], secondary && secondaryStyle, primary && primaryStyle, color != null && {
28
+ style: [variantMap[variant], secondary && secondaryStyle, primary && primaryStyle, color != null && {
24
29
  color
25
30
  }, weight != null && WEIGHT_MAP[weight], style],
26
31
  ...rest
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","RNText","VARIANT_MAP","WEIGHT_MAP","secondaryStyle","primaryStyle","jsx","_jsx","variant","secondary","primary","color","weight","style","rest"],"sourceRoot":"../../../src","sources":["text/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,MAAM,QAAQ,cAAc;AAG7C,SAASC,WAAW,EAAEC,UAAU,EAAEC,cAAc,EAAEC,YAAY,QAAQ,kBAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUhF,MAAMP,IAAyB,GAAGA,CAAC;EACjCQ,OAAO,GAAG,MAAM;EAChBC,SAAS;EACTC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,KAAK;EACL,GAAGC;AACM,CAAC,KAAK;EACf,oBACEP,IAAA,CAACN,MAAM;IACLY,KAAK,EAAE,CACLX,WAAW,CAACM,OAAO,CAAC,EACpBC,SAAS,IAAIL,cAAc,EAC3BM,OAAO,IAAIL,YAAY,EACvBM,KAAK,IAAI,IAAI,IAAI;MAAEA;IAAM,CAAC,EAC1BC,MAAM,IAAI,IAAI,IAAIT,UAAU,CAACS,MAAM,CAAC,EACpCC,KAAK,CACL;IAAA,GACEC;EAAI,CACT,CAAC;AAEN,CAAC;AAED,eAAed,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","Text","RNText","useTokens","createVariantMap","WEIGHT_MAP","createSecondaryStyle","createPrimaryStyle","jsx","_jsx","variant","secondary","primary","color","weight","style","rest","tokens","variantMap","secondaryStyle","primaryStyle"],"sourceRoot":"../../../src","sources":["text/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,IAAIC,MAAM,QAAQ,cAAc;AAE7C,SAASC,SAAS,QAAQ,qBAAkB;AAE5C,SAASC,gBAAgB,EAAEC,UAAU,EAAEC,oBAAoB,EAAEC,kBAAkB,QAAQ,kBAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUjG,MAAMR,IAAyB,GAAGA,CAAC;EACjCS,OAAO,GAAG,MAAM;EAChBC,SAAS;EACTC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,KAAK;EACL,GAAGC;AACM,CAAC,KAAK;EACf,MAAMC,MAAM,GAAGd,SAAS,CAAC,CAAC;EAC1B,MAAMe,UAAU,GAAGlB,OAAO,CAAC,MAAMI,gBAAgB,CAACa,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EACpE,MAAME,cAAc,GAAGnB,OAAO,CAAC,MAAMM,oBAAoB,CAACW,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAC5E,MAAMG,YAAY,GAAGpB,OAAO,CAAC,MAAMO,kBAAkB,CAACU,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAExE,oBACER,IAAA,CAACP,MAAM;IACLa,KAAK,EAAE,CACLG,UAAU,CAACR,OAAO,CAAC,EACnBC,SAAS,IAAIQ,cAAc,EAC3BP,OAAO,IAAIQ,YAAY,EACvBP,KAAK,IAAI,IAAI,IAAI;MAAEA;IAAM,CAAC,EAC1BC,MAAM,IAAI,IAAI,IAAIT,UAAU,CAACS,MAAM,CAAC,EACpCC,KAAK,CACL;IAAA,GACEC;EAAI,CACT,CAAC;AAEN,CAAC;AAED,eAAef,IAAI","ignoreList":[]}
@@ -1,34 +1,32 @@
1
1
  "use strict";
2
2
 
3
- import { StyleSheet } from 'react-native';
4
- import { tokens } from "../../theme/tokens.js";
5
- export const VARIANT_MAP = StyleSheet.create({
3
+ export const createVariantMap = t => ({
6
4
  title: {
7
5
  fontSize: 20,
8
6
  lineHeight: 26,
9
7
  fontWeight: '600',
10
- color: tokens.colorText
8
+ color: t.colorText
11
9
  },
12
10
  heading: {
13
11
  fontSize: 16,
14
12
  lineHeight: 22,
15
13
  fontWeight: '600',
16
- color: tokens.colorText
14
+ color: t.colorText
17
15
  },
18
16
  body: {
19
17
  fontSize: 15,
20
18
  lineHeight: 22,
21
- color: tokens.colorText
19
+ color: t.colorText
22
20
  },
23
21
  caption: {
24
22
  fontSize: 13,
25
23
  lineHeight: 18,
26
- color: tokens.colorText
24
+ color: t.colorText
27
25
  },
28
26
  micro: {
29
27
  fontSize: 12,
30
28
  lineHeight: 18,
31
- color: tokens.colorText
29
+ color: t.colorText
32
30
  }
33
31
  });
34
32
  export const WEIGHT_MAP = {
@@ -42,10 +40,10 @@ export const WEIGHT_MAP = {
42
40
  fontWeight: '700'
43
41
  }
44
42
  };
45
- export const secondaryStyle = {
46
- color: tokens.colorTextSecondary
47
- };
48
- export const primaryStyle = {
49
- color: tokens.colorPrimary
50
- };
43
+ export const createSecondaryStyle = t => ({
44
+ color: t.colorTextSecondary
45
+ });
46
+ export const createPrimaryStyle = t => ({
47
+ color: t.colorPrimary
48
+ });
51
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","tokens","VARIANT_MAP","create","title","fontSize","lineHeight","fontWeight","color","colorText","heading","body","caption","micro","WEIGHT_MAP","medium","semibold","bold","secondaryStyle","colorTextSecondary","primaryStyle","colorPrimary"],"sourceRoot":"../../../../src","sources":["text/style/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,MAAM,QAAQ,uBAAoB;AAI3C,OAAO,MAAMC,WAAW,GAAGF,UAAU,CAACG,MAAM,CAAC;EAC3CC,KAAK,EAAE;IACLC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEP,MAAM,CAACQ;EAChB,CAAC;EACDC,OAAO,EAAE;IACPL,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEP,MAAM,CAACQ;EAChB,CAAC;EACDE,IAAI,EAAE;IAAEN,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEE,KAAK,EAAEP,MAAM,CAACQ;EAAU,CAAC;EAC/DG,OAAO,EAAE;IAAEP,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEE,KAAK,EAAEP,MAAM,CAACQ;EAAU,CAAC;EAClEI,KAAK,EAAE;IAAER,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEE,KAAK,EAAEP,MAAM,CAACQ;EAAU;AACjE,CAAC,CAAC;AAEF,OAAO,MAAMK,UAAyC,GAAG;EACvDC,MAAM,EAAE;IAAER,UAAU,EAAE;EAAM,CAAC;EAC7BS,QAAQ,EAAE;IAAET,UAAU,EAAE;EAAM,CAAC;EAC/BU,IAAI,EAAE;IAAEV,UAAU,EAAE;EAAM;AAC5B,CAAC;AAED,OAAO,MAAMW,cAAyB,GAAG;EAAEV,KAAK,EAAEP,MAAM,CAACkB;AAAmB,CAAC;AAC7E,OAAO,MAAMC,YAAuB,GAAG;EAAEZ,KAAK,EAAEP,MAAM,CAACoB;AAAa,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["createVariantMap","t","title","fontSize","lineHeight","fontWeight","color","colorText","heading","body","caption","micro","WEIGHT_MAP","medium","semibold","bold","createSecondaryStyle","colorTextSecondary","createPrimaryStyle","colorPrimary"],"sourceRoot":"../../../../src","sources":["text/style/index.tsx"],"mappings":";;AAKA,OAAO,MAAMA,gBAAgB,GAAIC,CAAS,KAAM;EAC9CC,KAAK,EAAE;IACLC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAc;IAC1BC,KAAK,EAAEL,CAAC,CAACM;EACX,CAAC;EACDC,OAAO,EAAE;IACPL,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAc;IAC1BC,KAAK,EAAEL,CAAC,CAACM;EACX,CAAC;EACDE,IAAI,EAAE;IAAEN,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEE,KAAK,EAAEL,CAAC,CAACM;EAAU,CAAC;EAC1DG,OAAO,EAAE;IAAEP,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEE,KAAK,EAAEL,CAAC,CAACM;EAAU,CAAC;EAC7DI,KAAK,EAAE;IAAER,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,EAAE;IAAEE,KAAK,EAAEL,CAAC,CAACM;EAAU;AAC5D,CAAC,CAAC;AAEF,OAAO,MAAMK,UAAyC,GAAG;EACvDC,MAAM,EAAE;IAAER,UAAU,EAAE;EAAM,CAAC;EAC7BS,QAAQ,EAAE;IAAET,UAAU,EAAE;EAAM,CAAC;EAC/BU,IAAI,EAAE;IAAEV,UAAU,EAAE;EAAM;AAC5B,CAAC;AAED,OAAO,MAAMW,oBAAoB,GAAIf,CAAS,KAAiB;EAC7DK,KAAK,EAAEL,CAAC,CAACgB;AACX,CAAC,CAAC;AAEF,OAAO,MAAMC,kBAAkB,GAAIjB,CAAS,KAAiB;EAC3DK,KAAK,EAAEL,CAAC,CAACkB;AACX,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * ConfigProvider — 声明式主题系统
5
+ *
6
+ * 通过 React Context 注入 token,支持嵌套覆盖。
7
+ */
8
+
9
+ import React, { createContext, useContext, useMemo } from 'react';
10
+ import { defaultTokens } from "./tokens.js";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ const ThemeContext = /*#__PURE__*/createContext(defaultTokens);
13
+ export const ConfigProvider = ({
14
+ theme,
15
+ children
16
+ }) => {
17
+ const parent = useContext(ThemeContext);
18
+ const merged = useMemo(() => {
19
+ if (!theme?.token) return parent;
20
+ return {
21
+ ...parent,
22
+ ...theme.token
23
+ };
24
+ }, [parent, theme?.token]);
25
+ return /*#__PURE__*/_jsx(ThemeContext.Provider, {
26
+ value: merged,
27
+ children: children
28
+ });
29
+ };
30
+ export function useTokens() {
31
+ return useContext(ThemeContext);
32
+ }
33
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","createContext","useContext","useMemo","defaultTokens","jsx","_jsx","ThemeContext","ConfigProvider","theme","children","parent","merged","token","Provider","value","useTokens"],"sourceRoot":"../../../src","sources":["theme/context.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AACjE,SAASC,aAAa,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAKzC,MAAMC,YAAY,gBAAGN,aAAa,CAASG,aAAa,CAAC;AAOzD,OAAO,MAAMI,cAA6C,GAAGA,CAAC;EAC5DC,KAAK;EACLC;AACF,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAGT,UAAU,CAACK,YAAY,CAAC;EAEvC,MAAMK,MAAM,GAAGT,OAAO,CAAS,MAAM;IACnC,IAAI,CAACM,KAAK,EAAEI,KAAK,EAAE,OAAOF,MAAM;IAChC,OAAO;MAAE,GAAGA,MAAM;MAAE,GAAGF,KAAK,CAACI;IAAM,CAAC;EACtC,CAAC,EAAE,CAACF,MAAM,EAAEF,KAAK,EAAEI,KAAK,CAAC,CAAC;EAE1B,oBACEP,IAAA,CAACC,YAAY,CAACO,QAAQ;IAACC,KAAK,EAAEH,MAAO;IAAAF,QAAA,EAAEA;EAAQ,CAAwB,CAAC;AAE5E,CAAC;AAED,OAAO,SAASM,SAASA,CAAA,EAAW;EAClC,OAAOd,UAAU,CAACK,YAAY,CAAC;AACjC","ignoreList":[]}
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  /**
4
- * Design Tokens
4
+ * Design Tokens — 静态默认值
5
5
  */
6
6
 
7
- import { getPrimaryColor } from "./config.js";
8
- export const tokens = {
9
- get colorPrimary() {
10
- return getPrimaryColor();
11
- },
7
+ export const defaultTokens = {
8
+ colorPrimary: '#EB6E00',
12
9
  colorSuccess: '#34C759',
13
10
  colorWarning: '#FF9500',
14
11
  colorError: '#FF3B30',
@@ -1 +1 @@
1
- {"version":3,"names":["getPrimaryColor","tokens","colorPrimary","colorSuccess","colorWarning","colorError","colorBgPage","colorBgElevated","colorBgUserMsg","colorText","colorTextSecondary","colorTextPlaceholder","colorBorder","colorLink","colorBgHeader","colorHeaderText","colorHeaderIcon","fontSizeXs","fontSizeSm","fontSize","fontSizeMd","fontSizeLg","fontSizeXl","lineHeight","lineHeightLg","spaceXs","spaceSm","space","spaceMd","spaceLg","spaceXl","spaceXxl","radiusSm","radius","radiusLg","radiusXl","radiusFull","shadowSm","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","shadow"],"sourceRoot":"../../../src","sources":["theme/tokens.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,eAAe,QAAQ,aAAU;AAE1C,OAAO,MAAMC,MAAM,GAAG;EACpB,IAAIC,YAAYA,CAAA,EAAG;IACjB,OAAOF,eAAe,CAAC,CAAC;EAC1B,CAAC;EACDG,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,UAAU,EAAE,SAAS;EAErBC,WAAW,EAAE,SAAS;EACtBC,eAAe,EAAE,SAAS;EAC1BC,cAAc,EAAE,SAAS;EAEzBC,SAAS,EAAE,SAAS;EACpBC,kBAAkB,EAAE,SAAS;EAC7BC,oBAAoB,EAAE,SAAS;EAC/BC,WAAW,EAAE,SAAS;EACtBC,SAAS,EAAE,SAAS;EAEpBC,aAAa,EAAE,SAAS;EACxBC,eAAe,EAAE,SAAS;EAC1BC,eAAe,EAAE,SAAS;EAE1BC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,YAAY,EAAE,EAAE;EAEhBC,OAAO,EAAE,CAAC;EACVC,OAAO,EAAE,CAAC;EACVC,KAAK,EAAE,EAAE;EACTC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EAEZC,QAAQ,EAAE,CAAC;EACXC,MAAM,EAAE,EAAE;EACVC,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,GAAG;EAEfC,QAAQ,EAAE;IACRC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDC,MAAM,EAAE;IACNP,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["defaultTokens","colorPrimary","colorSuccess","colorWarning","colorError","colorBgPage","colorBgElevated","colorBgUserMsg","colorText","colorTextSecondary","colorTextPlaceholder","colorBorder","colorLink","colorBgHeader","colorHeaderText","colorHeaderIcon","fontSizeXs","fontSizeSm","fontSize","fontSizeMd","fontSizeLg","fontSizeXl","lineHeight","lineHeightLg","spaceXs","spaceSm","space","spaceMd","spaceLg","spaceXl","spaceXxl","radiusSm","radius","radiusLg","radiusXl","radiusFull","shadowSm","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","shadow"],"sourceRoot":"../../../src","sources":["theme/tokens.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,OAAO,MAAMA,aAAa,GAAG;EAC3BC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,UAAU,EAAE,SAAS;EAErBC,WAAW,EAAE,SAAS;EACtBC,eAAe,EAAE,SAAS;EAC1BC,cAAc,EAAE,SAAS;EAEzBC,SAAS,EAAE,SAAS;EACpBC,kBAAkB,EAAE,SAAS;EAC7BC,oBAAoB,EAAE,SAAS;EAC/BC,WAAW,EAAE,SAAS;EACtBC,SAAS,EAAE,SAAS;EAEpBC,aAAa,EAAE,SAAS;EACxBC,eAAe,EAAE,SAAS;EAC1BC,eAAe,EAAE,SAAS;EAE1BC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,UAAU,EAAE,EAAE;EACdC,YAAY,EAAE,EAAE;EAEhBC,OAAO,EAAE,CAAC;EACVC,OAAO,EAAE,CAAC;EACVC,KAAK,EAAE,EAAE;EACTC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EAEZC,QAAQ,EAAE,CAAC;EACXC,MAAM,EAAE,EAAE;EACVC,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,GAAG;EAEfC,QAAQ,EAAE;IACRC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDC,MAAM,EAAE;IACNP,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"jest.setup.d.ts","sourceRoot":"","sources":["../../jest.setup.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"jest.setup.d.ts","sourceRoot":"","sources":["../../../jest.setup.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/action-sheet/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
2
3
  export type ActionSheetSemanticStyles = {
3
4
  overlay?: ViewStyle;
4
5
  panel?: ViewStyle;
@@ -12,5 +13,5 @@ export interface ActionSheetOption {
12
13
  label: string;
13
14
  icon?: React.ReactNode;
14
15
  }
15
- export declare const DEFAULT_STYLES: ActionSheetSemanticStyles;
16
+ export declare const createDefaultStyles: (t: Tokens) => ActionSheetSemanticStyles;
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/action-sheet/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,GAC9B,GAAG,MAAM,KACR,yBAiCD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/avatar/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ViewStyle, ImageStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
3
+ export type AvatarSemanticStyles = {
4
+ root?: ViewStyle;
5
+ image?: ImageStyle;
6
+ };
7
+ export declare const createDefaultStyles: (t: Tokens) => AvatarSemanticStyles;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/avatar/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,KAAG,oBAY9C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/button/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAWpD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
2
3
  export type ButtonSemanticStyles = {
3
4
  root?: ViewStyle;
4
5
  icon?: ViewStyle;
@@ -6,7 +7,7 @@ export type ButtonSemanticStyles = {
6
7
  };
7
8
  export declare const DEFAULT_STYLES: ButtonSemanticStyles;
8
9
  export declare const SIZE_STYLES: Record<string, Partial<ButtonSemanticStyles>>;
9
- export declare const TYPE_STYLES: Record<string, Partial<ButtonSemanticStyles>>;
10
+ export declare const createTypeStyles: (t: Tokens) => Record<string, Partial<ButtonSemanticStyles>>;
10
11
  export declare const DISABLED_STYLES: Partial<ButtonSemanticStyles>;
11
12
  export declare const BLOCK_STYLES: Partial<ButtonSemanticStyles>;
12
13
  export declare const PRESSED_STYLE: ViewStyle;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/button/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,oBAY5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,CASrE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,GAAG,MAAM,KACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAiB7C,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,oBAAoB,CAEzD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,oBAAoB,CAEtD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAA4B,CAAC;AAEzD,eAAO,MAAM,YAAY;;CAErB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/center/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/center/style/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAKb,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chip/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAuD7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
3
+ export type ChipSemanticStyles = {
4
+ root?: ViewStyle;
5
+ content?: TextStyle;
6
+ };
7
+ export declare const createDefaultStyles: (t: Tokens) => ChipSemanticStyles;
8
+ export declare const createSelectedStyles: (t: Tokens) => Partial<ChipSemanticStyles>;
9
+ export declare const DISABLED_STYLES: Partial<ChipSemanticStyles>;
10
+ export declare const createSmallStyles: (t: Tokens) => Partial<ChipSemanticStyles>;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/chip/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,KAAG,kBAW9C,CAAC;AAEH,eAAO,MAAM,oBAAoB,GAC/B,GAAG,MAAM,KACR,OAAO,CAAC,kBAAkB,CAS3B,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,kBAAkB,CAIvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,GAAG,MAAM,KAAG,OAAO,CAAC,kBAAkB,CAQtE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/column/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,KAAK,UAAU,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC1C,KAAK,cAAc,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iBAAiB;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,YAAY;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiBjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/column/style/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;CAIb,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/divider/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkBnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Tokens } from '../../theme/tokens';
2
+ export declare const createHairlineStyle: (t: Tokens) => {
3
+ height: number;
4
+ backgroundColor: string;
5
+ };
6
+ export declare const createStandardStyle: (t: Tokens) => {
7
+ height: number;
8
+ backgroundColor: string;
9
+ };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/divider/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM;;;CAMpC,CAAC;AAEV,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM;;;CAGpC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMergeStyles.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useMergeStyles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAErE,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAErD;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,EAC1E,GAAG,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GACrC,CAAC,CAWH"}
@@ -1,6 +1,7 @@
1
- export { configure } from './theme/config';
2
- export type { ThemeConfig } from './theme/config';
3
- export { tokens } from './theme/tokens';
1
+ export { ConfigProvider, useTokens } from './theme/context';
2
+ export type { ConfigProviderProps, TokenOverrides } from './theme/context';
3
+ export { defaultTokens } from './theme/tokens';
4
+ export type { Tokens } from './theme/tokens';
4
5
  export { mergeStyles } from './hooks';
5
6
  export { default as Row } from './row';
6
7
  export type { RowProps } from './row';
@@ -36,4 +37,6 @@ export type { ActionSheetOption, ActionSheetSemanticStyles } from './action-shee
36
37
  export { default as Popover } from './popover';
37
38
  export type { PopoverProps } from './popover';
38
39
  export type { PopoverSemanticStyles } from './popover/style';
40
+ export { default as Menu } from './menu';
41
+ export type { MenuProps, Action, MenuSemanticStyles } from './menu';
39
42
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,YAAY,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/input/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,KAAK,2KAyDT,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
2
3
  export type InputSemanticStyles = {
3
4
  root?: ViewStyle;
4
5
  input?: TextStyle;
5
6
  toolbar?: ViewStyle;
6
7
  };
7
- export declare const DEFAULT_STYLES: InputSemanticStyles;
8
+ export declare const createDefaultStyles: (t: Tokens) => InputSemanticStyles;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/input/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,KAAG,mBAqB9C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/list-item/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAGzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgErC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
2
3
  export type ListItemSemanticStyles = {
3
4
  root?: ViewStyle;
4
5
  content?: TextStyle;
5
6
  description?: TextStyle;
6
7
  extra?: ViewStyle & TextStyle;
7
8
  };
8
- export declare const DEFAULT_SEMANTIC: ListItemSemanticStyles;
9
+ export declare const createDefaultStyles: (t: Tokens) => ListItemSemanticStyles;
9
10
  export declare const lineStyle: {
10
11
  flex: number;
11
12
  flexDirection: "row";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/list-item/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,KAAG,sBAqB9C,CAAC;AAEH,eAAO,MAAM,SAAS;;;;CAElB,CAAC;AAEL,eAAO,MAAM,gBAAgB;;CAEzB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Menu 独立组件
3
+ *
4
+ * 基于 Popover 实现的菜单列表,支持 danger、icon、disabled。
5
+ */
6
+ import React from 'react';
7
+ import type { ViewStyle } from 'react-native';
8
+ import type { MenuSemanticStyles } from './style';
9
+ export type { MenuSemanticStyles } from './style';
10
+ export type Action = {
11
+ key: string;
12
+ text: string;
13
+ icon?: React.ReactNode;
14
+ disabled?: boolean;
15
+ danger?: boolean;
16
+ };
17
+ export interface MenuProps {
18
+ visible: boolean;
19
+ onClose: () => void;
20
+ anchorLayout: {
21
+ x: number;
22
+ y: number;
23
+ width: number;
24
+ height: number;
25
+ };
26
+ actions: Action[];
27
+ onAction?: (item: Action) => void;
28
+ placement?: 'bottom' | 'top';
29
+ width?: number;
30
+ style?: ViewStyle;
31
+ styles?: Partial<MenuSemanticStyles>;
32
+ testID?: string;
33
+ }
34
+ declare const Menu: React.FC<MenuProps>;
35
+ export default Menu;
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/menu/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAwD7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
3
+ export type MenuSemanticStyles = {
4
+ item?: ViewStyle;
5
+ itemLabel?: TextStyle;
6
+ itemIcon?: ViewStyle;
7
+ divider?: ViewStyle;
8
+ };
9
+ export declare const createDefaultStyles: (t: Tokens) => {
10
+ item: {
11
+ flexDirection: "row";
12
+ alignItems: "center";
13
+ paddingVertical: number;
14
+ paddingHorizontal: number;
15
+ };
16
+ itemLabel: {
17
+ fontSize: number;
18
+ color: string;
19
+ };
20
+ itemLabelDanger: {
21
+ fontSize: number;
22
+ color: string;
23
+ };
24
+ itemIcon: {
25
+ marginRight: number;
26
+ };
27
+ divider: {
28
+ height: number;
29
+ backgroundColor: string;
30
+ };
31
+ };
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/menu/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsB3C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/popover/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiDnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ViewStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
3
+ export type PopoverSemanticStyles = {
4
+ overlay?: ViewStyle;
5
+ content?: ViewStyle;
6
+ };
7
+ export declare const createDefaultStyles: (t: Tokens) => PopoverSemanticStyles;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/popover/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,GAAG,MAAM,KAAG,qBAc9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/column/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,KAAK,UAAU,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC1C,KAAK,cAAc,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iBAAiB;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,YAAY;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiBjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/row/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,KAAK,UAAU,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC1C,KAAK,cAAc,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAElD,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,6BAA6B;IAC7B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,YAAY;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAmB3B,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/row/style/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAKhB,CAAC;AAEP,eAAO,MAAM,SAAS;;CAIf,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/space/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAU;IACzB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACvC;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAQ/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/space/style/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM;;CAAuB,CAAC;AAElE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM;;CAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/text/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2B7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { TextStyle } from 'react-native';
2
+ import type { Tokens } from '../../theme/tokens';
2
3
  export type FontWeight = 'medium' | 'semibold' | 'bold';
3
- export declare const VARIANT_MAP: Readonly<{
4
+ export declare const createVariantMap: (t: Tokens) => {
4
5
  title: {
5
6
  fontSize: number;
6
7
  lineHeight: number;
@@ -28,8 +29,8 @@ export declare const VARIANT_MAP: Readonly<{
28
29
  lineHeight: number;
29
30
  color: string;
30
31
  };
31
- }>;
32
+ };
32
33
  export declare const WEIGHT_MAP: Record<FontWeight, TextStyle>;
33
- export declare const secondaryStyle: TextStyle;
34
- export declare const primaryStyle: TextStyle;
34
+ export declare const createSecondaryStyle: (t: Tokens) => TextStyle;
35
+ export declare const createPrimaryStyle: (t: Tokens) => TextStyle;
35
36
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/text/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAExD,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxC,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAIpD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,GAAG,MAAM,KAAG,SAE/C,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,KAAG,SAE7C,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ConfigProvider — 声明式主题系统
3
+ *
4
+ * 通过 React Context 注入 token,支持嵌套覆盖。
5
+ */
6
+ import React from 'react';
7
+ import type { Tokens } from './tokens';
8
+ export type TokenOverrides = Partial<Tokens>;
9
+ export interface ConfigProviderProps {
10
+ theme?: {
11
+ token?: TokenOverrides;
12
+ };
13
+ children: React.ReactNode;
14
+ }
15
+ export declare const ConfigProvider: React.FC<ConfigProviderProps>;
16
+ export declare function useTokens(): Tokens;
17
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/theme/context.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAA6C,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAI7C,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,cAAc,CAAA;KAAE,CAAC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAcxD,CAAC;AAEF,wBAAgB,SAAS,IAAI,MAAM,CAElC"}