@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
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.loadingStyle = exports.createTypeStyles = exports.SIZE_STYLES = exports.PRESSED_STYLE = exports.DISABLED_STYLES = exports.DEFAULT_STYLES = exports.BLOCK_STYLES = void 0;
7
+ var _reactNative = require("react-native");
8
+ const DEFAULT_STYLES = exports.DEFAULT_STYLES = {
9
+ root: {
10
+ flexDirection: 'row',
11
+ alignItems: 'center',
12
+ justifyContent: 'center'
13
+ },
14
+ icon: {
15
+ marginRight: 6
16
+ },
17
+ content: {
18
+ fontSize: 14
19
+ }
20
+ };
21
+ const SIZE_STYLES = exports.SIZE_STYLES = {
22
+ default: {
23
+ root: {
24
+ paddingVertical: 10,
25
+ borderRadius: 8
26
+ },
27
+ content: {
28
+ fontSize: 14
29
+ }
30
+ },
31
+ small: {
32
+ root: {
33
+ paddingVertical: 6,
34
+ borderRadius: 6
35
+ },
36
+ content: {
37
+ fontSize: 12
38
+ }
39
+ }
40
+ };
41
+ const createTypeStyles = t => ({
42
+ primary: {
43
+ root: {
44
+ backgroundColor: t.colorPrimary
45
+ },
46
+ content: {
47
+ color: '#FFF',
48
+ fontWeight: '600'
49
+ }
50
+ },
51
+ outline: {
52
+ root: {
53
+ borderWidth: 1,
54
+ borderColor: t.colorBorder
55
+ },
56
+ content: {
57
+ color: t.colorTextSecondary
58
+ }
59
+ },
60
+ ghost: {
61
+ root: {
62
+ borderWidth: 1,
63
+ borderColor: t.colorPrimary
64
+ },
65
+ content: {
66
+ color: t.colorPrimary
67
+ }
68
+ },
69
+ danger: {
70
+ root: {
71
+ backgroundColor: t.colorError
72
+ },
73
+ content: {
74
+ color: '#FFF',
75
+ fontWeight: '600'
76
+ }
77
+ }
78
+ });
79
+ exports.createTypeStyles = createTypeStyles;
80
+ const DISABLED_STYLES = exports.DISABLED_STYLES = {
81
+ root: {
82
+ opacity: 0.5
83
+ }
84
+ };
85
+ const BLOCK_STYLES = exports.BLOCK_STYLES = {
86
+ root: {
87
+ flex: 1
88
+ }
89
+ };
90
+ const PRESSED_STYLE = exports.PRESSED_STYLE = {
91
+ opacity: 0.7
92
+ };
93
+ const loadingStyle = exports.loadingStyle = _reactNative.StyleSheet.create({
94
+ s: {
95
+ marginRight: 6
96
+ }
97
+ }).s;
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","DEFAULT_STYLES","exports","root","flexDirection","alignItems","justifyContent","icon","marginRight","content","fontSize","SIZE_STYLES","default","paddingVertical","borderRadius","small","createTypeStyles","t","primary","backgroundColor","colorPrimary","color","fontWeight","outline","borderWidth","borderColor","colorBorder","colorTextSecondary","ghost","danger","colorError","DISABLED_STYLES","opacity","BLOCK_STYLES","flex","PRESSED_STYLE","loadingStyle","StyleSheet","create","s"],"sourceRoot":"../../../../src","sources":["button/style/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAUO,MAAMC,cAAoC,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAClDE,IAAI,EAAE;IACJC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,IAAI,EAAE;IACJC,WAAW,EAAE;EACf,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,MAAMC,WAA0D,GAAAT,OAAA,CAAAS,WAAA,GAAG;EACxEC,OAAO,EAAE;IACPT,IAAI,EAAE;MAAEU,eAAe,EAAE,EAAE;MAAEC,YAAY,EAAE;IAAE,CAAC;IAC9CL,OAAO,EAAE;MAAEC,QAAQ,EAAE;IAAG;EAC1B,CAAC;EACDK,KAAK,EAAE;IACLZ,IAAI,EAAE;MAAEU,eAAe,EAAE,CAAC;MAAE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AAAkC,YAAA,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC5CC,CAAC,EAAE;IAAE/B,WAAW,EAAE;EAAE;AACtB,CAAC,CAAC,CAAC+B,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _style = require("./style");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ /**
13
+ * 居中布局容器
14
+ *
15
+ * justifyContent + alignItems 均为 'center'。
16
+ */
17
+
18
+ const Center = ({
19
+ style,
20
+ ...rest
21
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
22
+ style: [_style.baseStyle, style],
23
+ ...rest
24
+ });
25
+ var _default = exports.default = Center;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_style","_jsxRuntime","e","__esModule","default","Center","style","rest","jsx","View","baseStyle","_default","exports"],"sourceRoot":"../../../src","sources":["center/index.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAAoC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AATpC;AACA;AACA;AACA;AACA;;AASA,MAAMG,MAA6B,GAAGA,CAAC;EAAEC,KAAK;EAAE,GAAGC;AAAK,CAAC,kBACvD,IAAAN,WAAA,CAAAO,GAAA,EAACT,YAAA,CAAAU,IAAI;EAACH,KAAK,EAAE,CAACI,gBAAS,EAAEJ,KAAK,CAAE;EAAA,GAAKC;AAAI,CAAG,CAC7C;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAR,OAAA,GAEaC,MAAM","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ # Center 居中布局
2
+
3
+ 内容水平 + 垂直居中。替代 `justifyContent: 'center' + alignItems: 'center'`。
4
+
5
+ ## 何时使用
6
+
7
+ - 圆形图标按钮、头像容器
8
+ - 空状态页面居中
9
+ - 任何需要内容完全居中的场景
10
+
11
+ ## 代码演示
12
+
13
+ ```tsx
14
+ // 圆形按钮
15
+ <Center style={{width: 32, height: 32, borderRadius: 16, backgroundColor: '#EB6E00'}}>
16
+ <Icon name="add" size={18} color="#FFF" />
17
+ </Center>
18
+
19
+ // 空状态
20
+ <Center style={{flex: 1}}>
21
+ <Icon name="inbox" size={48} />
22
+ <Text secondary>暂无数据</Text>
23
+ </Center>
24
+ ```
25
+
26
+ ## API
27
+
28
+ > 继承所有 RN `ViewProps`,无额外属性。
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.baseStyle = void 0;
7
+ var _reactNative = require("react-native");
8
+ const baseStyle = exports.baseStyle = _reactNative.StyleSheet.create({
9
+ center: {
10
+ justifyContent: 'center',
11
+ alignItems: 'center'
12
+ }
13
+ }).center;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","baseStyle","exports","StyleSheet","create","center","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["center/style/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EACzCC,MAAM,EAAE;IACNC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC,CAACF,MAAM","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _hooks = require("../hooks");
10
+ var _context = require("../theme/context");
11
+ var _style = require("./style");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ /**
15
+ * Chip 基础组件
16
+ *
17
+ * 胶囊标签,支持选中态、禁用态和图标。
18
+ */
19
+
20
+ const PRESSED_STYLE = {
21
+ opacity: 0.7
22
+ };
23
+ const Chip = ({
24
+ children,
25
+ onPress,
26
+ selected,
27
+ disabled,
28
+ size = 'default',
29
+ icon,
30
+ style,
31
+ styles: semanticStyles,
32
+ testID
33
+ }) => {
34
+ const tokens = (0, _context.useTokens)();
35
+ const defaultStyles = (0, _react.useMemo)(() => (0, _style.createDefaultStyles)(tokens), [tokens]);
36
+ const selectedStyles = (0, _react.useMemo)(() => (0, _style.createSelectedStyles)(tokens), [tokens]);
37
+ const smallStyles = (0, _react.useMemo)(() => (0, _style.createSmallStyles)(tokens), [tokens]);
38
+ const s = (0, _react.useMemo)(() => (0, _hooks.mergeStyles)(defaultStyles, size === 'small' ? smallStyles : undefined, selected ? selectedStyles : undefined, disabled ? _style.DISABLED_STYLES : undefined, semanticStyles), [size, selected, disabled, semanticStyles, defaultStyles, selectedStyles, smallStyles]);
39
+ const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
40
+ style: [s.root, {
41
+ flexDirection: 'row',
42
+ alignItems: 'center'
43
+ }, style],
44
+ children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
45
+ style: {
46
+ marginRight: 4
47
+ },
48
+ children: icon
49
+ }), typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
50
+ style: s.content,
51
+ numberOfLines: 1,
52
+ children: children
53
+ }) : children]
54
+ });
55
+ if (onPress) {
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
57
+ onPress: onPress,
58
+ disabled: disabled,
59
+ style: ({
60
+ pressed
61
+ }) => pressed && PRESSED_STYLE,
62
+ testID: testID,
63
+ children: content
64
+ });
65
+ }
66
+ return content;
67
+ };
68
+ var _default = exports.default = Chip;
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_hooks","_context","_style","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PRESSED_STYLE","opacity","Chip","children","onPress","selected","disabled","size","icon","style","styles","semanticStyles","testID","tokens","useTokens","defaultStyles","useMemo","createDefaultStyles","selectedStyles","createSelectedStyles","smallStyles","createSmallStyles","s","mergeStyles","undefined","DISABLED_STYLES","content","jsxs","View","root","flexDirection","alignItems","jsx","marginRight","Text","numberOfLines","Pressable","pressed","_default","exports"],"sourceRoot":"../../../src","sources":["chip/index.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAKiB,IAAAK,WAAA,GAAAL,O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ACzB,KAAK,EAAEa,CAAC,CAACI,OAAQ;MAACS,aAAa,EAAE,CAAE;MAAAhC,QAAA,EACtCA;IAAQ,CACL,CAAC,GAEPA,QACD;EAAA,CACG,CACP;EAED,IAAIC,OAAO,EAAE;IACX,oBACE,IAAAxB,WAAA,CAAAoD,GAAA,EAACxD,YAAA,CAAA4D,SAAS;MACRhC,OAAO,EAAEA,OAAQ;MACjBE,QAAQ,EAAEA,QAAS;MACnBG,KAAK,EAAEA,CAAC;QAAE4B;MAAQ,CAAC,KAAKA,OAAO,IAAIrC,aAAc;MACjDY,MAAM,EAAEA,MAAO;MAAAT,QAAA,EAEduB;IAAO,CACC,CAAC;EAEhB;EAEA,OAAOA,OAAO;AAChB,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,CAAAhD,OAAA,GAEaW,IAAI","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ ---
2
+ title: Chip
3
+ nav:
4
+ title: 组件
5
+ order: 1
6
+ group:
7
+ title: 基础
8
+ order: 2
9
+ ---
10
+
11
+ # Chip 胶囊标签
12
+
13
+ 用于展示标签或可选项的胶囊形组件。
14
+
15
+ ## 何时使用
16
+
17
+ - 展示快捷建议
18
+ - 标签选择
19
+ - 筛选项
20
+
21
+ ## 代码演示
22
+
23
+ ```tsx
24
+ import { Chip, Icon } from '@unif/react-native-ui';
25
+
26
+ // 基本用法
27
+ <Chip onPress={() => {}}>标签文本</Chip>
28
+
29
+ // 带图标
30
+ <Chip icon={<Icon name="search-outline" size={14} />} onPress={() => {}}>
31
+ 搜索
32
+ </Chip>
33
+
34
+ // 选中态
35
+ <Chip selected onPress={() => {}}>已选中</Chip>
36
+
37
+ // 小尺寸
38
+ <Chip size="small">小标签</Chip>
39
+ ```
40
+
41
+ ## API
42
+
43
+ | 属性 | 说明 | 类型 | 默认值 |
44
+ | -------- | ------------ | ------------------------- | ----------- |
45
+ | children | 内容 | `ReactNode` | - |
46
+ | onPress | 点击回调 | `() => void` | - |
47
+ | selected | 选中状态 | `boolean` | - |
48
+ | disabled | 禁用状态 | `boolean` | - |
49
+ | size | 尺寸 | `'default'` \| `'small'` | `'default'` |
50
+ | icon | 左侧图标 | `ReactNode` | - |
51
+ | style | 容器样式 | `ViewStyle` | - |
52
+ | styles | 语义样式 | `ChipSemanticStyles` | - |
53
+ | testID | 测试标识 | `string` | - |
54
+
55
+ ## Semantic Styles
56
+
57
+ | Slot | 说明 |
58
+ | ------- | ---------- |
59
+ | root | 外层容器 |
60
+ | content | 文本样式 |
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createSmallStyles = exports.createSelectedStyles = exports.createDefaultStyles = exports.DISABLED_STYLES = void 0;
7
+ const createDefaultStyles = t => ({
8
+ root: {
9
+ backgroundColor: '#F0F0F5',
10
+ borderRadius: t.radiusFull,
11
+ paddingHorizontal: 14,
12
+ paddingVertical: 7
13
+ },
14
+ content: {
15
+ fontSize: t.fontSizeSm,
16
+ color: t.colorText
17
+ }
18
+ });
19
+ exports.createDefaultStyles = createDefaultStyles;
20
+ const createSelectedStyles = t => ({
21
+ root: {
22
+ borderWidth: 1,
23
+ borderColor: t.colorPrimary,
24
+ backgroundColor: '#FFF5EB'
25
+ },
26
+ content: {
27
+ color: t.colorPrimary
28
+ }
29
+ });
30
+ exports.createSelectedStyles = createSelectedStyles;
31
+ const DISABLED_STYLES = exports.DISABLED_STYLES = {
32
+ root: {
33
+ opacity: 0.5
34
+ }
35
+ };
36
+ const createSmallStyles = t => ({
37
+ root: {
38
+ paddingHorizontal: 10,
39
+ paddingVertical: 4
40
+ },
41
+ content: {
42
+ fontSize: t.fontSizeXs
43
+ }
44
+ });
45
+ exports.createSmallStyles = createSmallStyles;
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createDefaultStyles","t","root","backgroundColor","borderRadius","radiusFull","paddingHorizontal","paddingVertical","content","fontSize","fontSizeSm","color","colorText","exports","createSelectedStyles","borderWidth","borderColor","colorPrimary","DISABLED_STYLES","opacity","createSmallStyles","fontSizeXs"],"sourceRoot":"../../../../src","sources":["chip/style/index.tsx"],"mappings":";;;;;;AAQO,MAAMA,mBAAmB,GAAIC,CAAS,KAA0B;EACrEC,IAAI,EAAE;IACJC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAEH,CAAC,CAACI,UAAU;IAC1BC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE;EACnB,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAER,CAAC,CAACS,UAAU;IACtBC,KAAK,EAAEV,CAAC,CAACW;EACX;AACF,CAAC,CAAC;AAACC,OAAA,CAAAb,mBAAA,GAAAA,mBAAA;AAEI,MAAMc,oBAAoB,GAC/Bb,CAAS,KACwB;EACjCC,IAAI,EAAE;IACJa,WAAW,EAAE,CAAC;IACdC,WAAW,EAAEf,CAAC,CAACgB,YAAY;IAC3Bd,eAAe,EAAE;EACnB,CAAC;EACDK,OAAO,EAAE;IACPG,KAAK,EAAEV,CAAC,CAACgB;EACX;AACF,CAAC,CAAC;AAACJ,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEI,MAAMI,eAA4C,GAAAL,OAAA,CAAAK,eAAA,GAAG;EAC1DhB,IAAI,EAAE;IACJiB,OAAO,EAAE;EACX;AACF,CAAC;AAEM,MAAMC,iBAAiB,GAAInB,CAAS,KAAmC;EAC5EC,IAAI,EAAE;IACJI,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE;EACnB,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAER,CAAC,CAACoB;EACd;AACF,CAAC,CAAC;AAACR,OAAA,CAAAO,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _style = require("./style");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ /**
13
+ * 垂直布局容器
14
+ *
15
+ * 语义化的 View,显式 flexDirection: 'column'。
16
+ */
17
+
18
+ const Column = ({
19
+ align,
20
+ justify,
21
+ gap,
22
+ style,
23
+ ...rest
24
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
25
+ style: [_style.baseStyle, align != null && {
26
+ alignItems: align
27
+ }, justify != null && {
28
+ justifyContent: justify
29
+ }, gap != null && {
30
+ gap
31
+ }, style],
32
+ ...rest
33
+ });
34
+ var _default = exports.default = Column;
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_style","_jsxRuntime","e","__esModule","default","Column","align","justify","gap","style","rest","jsx","View","baseStyle","alignItems","justifyContent","_default","exports"],"sourceRoot":"../../../src","sources":["column/index.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAAoC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AATpC;AACA;AACA;AACA;AACA;;AAmBA,MAAMG,MAA6B,GAAGA,CAAC;EACrCC,KAAK;EACLC,OAAO;EACPC,GAAG;EACHC,KAAK;EACL,GAAGC;AACQ,CAAC,kBACZ,IAAAT,WAAA,CAAAU,GAAA,EAACZ,YAAA,CAAAa,IAAI;EACHH,KAAK,EAAE,CACLI,gBAAS,EACTP,KAAK,IAAI,IAAI,IAAI;IAAEQ,UAAU,EAAER;EAAM,CAAC,EACtCC,OAAO,IAAI,IAAI,IAAI;IAAEQ,cAAc,EAAER;EAAQ,CAAC,EAC9CC,GAAG,IAAI,IAAI,IAAI;IAAEA;EAAI,CAAC,EACtBC,KAAK,CACL;EAAA,GACEC;AAAI,CACT,CACF;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAEaC,MAAM","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ # Column 垂直布局
2
+
3
+ 垂直排列子元素。语义化替代裸 `<View>`,显式声明布局方向。
4
+
5
+ ## 何时使用
6
+
7
+ - 需要显式声明垂直布局方向时
8
+ - 需要 `gap`、`align`、`justify` 等布局属性时
9
+
10
+ ## 代码演示
11
+
12
+ ```tsx
13
+ // 基础用法
14
+ <Column gap={8}>
15
+ <Text variant="heading">标题</Text>
16
+ <Text variant="caption" secondary>描述文字</Text>
17
+ </Column>
18
+
19
+ // 居中对齐
20
+ <Column align="center" justify="center" style={{flex: 1}}>
21
+ <Icon name="empty" />
22
+ <Text>暂无数据</Text>
23
+ </Column>
24
+ ```
25
+
26
+ ## API
27
+
28
+ | 属性 | 说明 | 类型 | 默认值 |
29
+ |------|------|------|--------|
30
+ | align | alignItems | `ViewStyle['alignItems']` | - |
31
+ | justify | justifyContent | `ViewStyle['justifyContent']` | - |
32
+ | gap | 子元素间距 | `number` | - |
33
+
34
+ > 继承所有 RN `ViewProps`
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.baseStyle = void 0;
7
+ var _reactNative = require("react-native");
8
+ const baseStyle = exports.baseStyle = _reactNative.StyleSheet.create({
9
+ column: {
10
+ flexDirection: 'column'
11
+ }
12
+ }).column;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","baseStyle","exports","StyleSheet","create","column","flexDirection"],"sourceRoot":"../../../../src","sources":["column/style/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EACzCC,MAAM,EAAE;IACNC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC,CAACD,MAAM","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _context = require("../theme/context");
10
+ var _style = require("./style");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ /**
14
+ * 分割线组件
15
+ */
16
+
17
+ const Divider = ({
18
+ hairline = true,
19
+ marginHorizontal,
20
+ style
21
+ }) => {
22
+ const tokens = (0, _context.useTokens)();
23
+ const hairlineStyle = (0, _react.useMemo)(() => (0, _style.createHairlineStyle)(tokens), [tokens]);
24
+ const standardStyle = (0, _react.useMemo)(() => (0, _style.createStandardStyle)(tokens), [tokens]);
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
26
+ style: [hairline ? hairlineStyle : standardStyle, marginHorizontal != null && {
27
+ marginHorizontal
28
+ }, style]
29
+ });
30
+ };
31
+ var _default = exports.default = Divider;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_context","_style","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Divider","hairline","marginHorizontal","style","tokens","useTokens","hairlineStyle","useMemo","createHairlineStyle","standardStyle","createStandardStyle","jsx","View","_default","exports"],"sourceRoot":"../../../src","sources":["divider/index.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAmE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AARnE;AACA;AACA;;AAcA,MAAMkB,OAA+B,GAAGA,CAAC;EACvCC,QAAQ,GAAG,IAAI;EACfC,gBAAgB;EAChBC;AACY,CAAC,KAAK;EAClB,MAAMC,MAAM,GAAG,IAAAC,kBAAS,EAAC,CAAC;EAC1B,MAAMC,aAAa,GAAG,IAAAC,cAAO,EAAC,MAAM,IAAAC,0BAAmB,EAACJ,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAC1E,MAAMK,aAAa,GAAG,IAAAF,cAAO,EAAC,MAAM,IAAAG,0BAAmB,EAACN,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAE1E,oBACE,IAAAxB,WAAA,CAAA+B,GAAA,EAAClC,YAAA,CAAAmC,IAAI;IACHT,KAAK,EAAE,CACLF,QAAQ,GAAGK,aAAa,GAAGG,aAAa,EACxCP,gBAAgB,IAAI,IAAI,IAAI;MAAEA;IAAiB,CAAC,EAChDC,KAAK;EACL,CACH,CAAC;AAEN,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAvB,OAAA,GAEaS,OAAO","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ # Divider 分割线
2
+
3
+ 用于独立的视觉分隔元素。
4
+
5
+ ## 何时使用
6
+
7
+ - 替代独立的 `<View style={{height: 1, backgroundColor: border}} />`
8
+ - 列表项之间的分隔线(如 `FlatList` 的 `ItemSeparatorComponent`)
9
+
10
+ ## 何时不使用
11
+
12
+ - **不替换**容器自带的 `borderBottomWidth`(内嵌 border 保留原样)
13
+ - 容器 header / footer 的 `borderTopWidth` / `borderBottomWidth` 属于布局边界,改为独立 View 会影响 flex 布局
14
+
15
+ | 场景 | 处理 | 原因 |
16
+ |------|------|------|
17
+ | `<View style={styles.separator} />` | ✅ 用 `<Divider />` | 独立分割元素 |
18
+ | `styles.itemRow { borderBottomWidth }` | ❌ 保留原样 | 内嵌于容器 |
19
+ | `styles.header { borderBottomWidth }` | ❌ 保留原样 | 布局边界 |
20
+
21
+ ## 代码演示
22
+
23
+ ```tsx
24
+ // 默认 hairline
25
+ <Divider />
26
+
27
+ // 1px 带水平边距(列表分隔)
28
+ <Divider hairline={false} marginHorizontal={12} />
29
+
30
+ // 作为 FlatList 分隔
31
+ const Separator = () => <Divider hairline={false} marginHorizontal={12} />;
32
+ <FlatList ItemSeparatorComponent={Separator} ... />
33
+
34
+ // 自定义样式
35
+ <Divider style={{backgroundColor: 'red', marginVertical: 8}} />
36
+ ```
37
+
38
+ ## API
39
+
40
+ | 属性 | 说明 | 类型 | 默认值 |
41
+ |------|------|------|--------|
42
+ | hairline | 使用 `StyleSheet.hairlineWidth` | `boolean` | `true` |
43
+ | marginHorizontal | 水平边距 | `number` | - |
44
+ | style | 自定义样式 | `ViewStyle` | - |
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createStandardStyle = exports.createHairlineStyle = void 0;
7
+ var _reactNative = require("react-native");
8
+ const createHairlineStyle = t => _reactNative.StyleSheet.create({
9
+ line: {
10
+ height: _reactNative.StyleSheet.hairlineWidth,
11
+ backgroundColor: t.colorBorder
12
+ }
13
+ }).line;
14
+ exports.createHairlineStyle = createHairlineStyle;
15
+ const createStandardStyle = t => _reactNative.StyleSheet.create({
16
+ line: {
17
+ height: 1,
18
+ backgroundColor: t.colorBorder
19
+ }
20
+ }).line;
21
+ exports.createStandardStyle = createStandardStyle;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","createHairlineStyle","t","StyleSheet","create","line","height","hairlineWidth","backgroundColor","colorBorder","exports","createStandardStyle"],"sourceRoot":"../../../../src","sources":["divider/style/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGO,MAAMC,mBAAmB,GAAIC,CAAS,IAC3CC,uBAAU,CAACC,MAAM,CAAC;EAChBC,IAAI,EAAE;IACJC,MAAM,EAAEH,uBAAU,CAACI,aAAa;IAChCC,eAAe,EAAEN,CAAC,CAACO;EACrB;AACF,CAAC,CAAC,CAACJ,IAAI;AAACK,OAAA,CAAAT,mBAAA,GAAAA,mBAAA;AAEH,MAAMU,mBAAmB,GAAIT,CAAS,IAC3CC,uBAAU,CAACC,MAAM,CAAC;EAChBC,IAAI,EAAE;IAAEC,MAAM,EAAE,CAAC;IAAEE,eAAe,EAAEN,CAAC,CAACO;EAAY;AACpD,CAAC,CAAC,CAACJ,IAAI;AAACK,OAAA,CAAAC,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "mergeStyles", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _useMergeStyles.mergeStyles;
10
+ }
11
+ });
12
+ var _useMergeStyles = require("./useMergeStyles");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_useMergeStyles","require"],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}