@ray-js/components 0.3.0-beta.1c347991

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 (729) hide show
  1. package/lib/Button/Button.android.js +1 -0
  2. package/lib/Button/Button.d.ts +4 -0
  3. package/lib/Button/Button.ios.js +1 -0
  4. package/lib/Button/Button.js +57 -0
  5. package/lib/Button/Button.native.d.ts +29 -0
  6. package/lib/Button/Button.tuya.d.ts +4 -0
  7. package/lib/Button/Button.tuya.js +43 -0
  8. package/lib/Button/Button.web.js +57 -0
  9. package/lib/Button/Button.wechat.d.ts +4 -0
  10. package/lib/Button/Button.wechat.js +44 -0
  11. package/lib/Button/index.android.js +1 -0
  12. package/lib/Button/index.d.ts +3 -0
  13. package/lib/Button/index.ios.js +1 -0
  14. package/lib/Button/index.js +3 -0
  15. package/lib/Button/index.md +41 -0
  16. package/lib/Button/index.module.less +129 -0
  17. package/lib/Button/index.tuya.js +3 -0
  18. package/lib/Button/index.web.js +3 -0
  19. package/lib/Button/index.wechat.js +3 -0
  20. package/lib/Button/props.android.js +1 -0
  21. package/lib/Button/props.d.ts +18 -0
  22. package/lib/Button/props.ios.js +1 -0
  23. package/lib/Button/props.js +10 -0
  24. package/lib/Button/props.tuya.js +10 -0
  25. package/lib/Button/props.web.js +10 -0
  26. package/lib/Button/props.wechat.js +10 -0
  27. package/lib/Checkbox/Checkbox.android.js +1 -0
  28. package/lib/Checkbox/Checkbox.d.ts +5 -0
  29. package/lib/Checkbox/Checkbox.ios.js +1 -0
  30. package/lib/Checkbox/Checkbox.js +36 -0
  31. package/lib/Checkbox/Checkbox.native.d.ts +28 -0
  32. package/lib/Checkbox/Checkbox.tuya.d.ts +4 -0
  33. package/lib/Checkbox/Checkbox.tuya.js +22 -0
  34. package/lib/Checkbox/Checkbox.web.js +36 -0
  35. package/lib/Checkbox/Checkbox.wechat.d.ts +4 -0
  36. package/lib/Checkbox/Checkbox.wechat.js +24 -0
  37. package/lib/Checkbox/index.android.js +1 -0
  38. package/lib/Checkbox/index.d.ts +3 -0
  39. package/lib/Checkbox/index.ios.js +1 -0
  40. package/lib/Checkbox/index.js +3 -0
  41. package/lib/Checkbox/index.md +33 -0
  42. package/lib/Checkbox/index.module.less +11 -0
  43. package/lib/Checkbox/index.tuya.js +3 -0
  44. package/lib/Checkbox/index.web.js +3 -0
  45. package/lib/Checkbox/index.wechat.js +3 -0
  46. package/lib/Checkbox/props.android.js +1 -0
  47. package/lib/Checkbox/props.d.ts +7 -0
  48. package/lib/Checkbox/props.ios.js +1 -0
  49. package/lib/Checkbox/props.js +1 -0
  50. package/lib/Checkbox/props.tuya.js +1 -0
  51. package/lib/Checkbox/props.web.js +1 -0
  52. package/lib/Checkbox/props.wechat.js +1 -0
  53. package/lib/CheckboxGroup/CheckboxGroup.android.js +1 -0
  54. package/lib/CheckboxGroup/CheckboxGroup.d.ts +4 -0
  55. package/lib/CheckboxGroup/CheckboxGroup.ios.js +1 -0
  56. package/lib/CheckboxGroup/CheckboxGroup.js +9 -0
  57. package/lib/CheckboxGroup/CheckboxGroup.native.d.ts +18 -0
  58. package/lib/CheckboxGroup/CheckboxGroup.tuya.d.ts +4 -0
  59. package/lib/CheckboxGroup/CheckboxGroup.tuya.js +35 -0
  60. package/lib/CheckboxGroup/CheckboxGroup.web.js +9 -0
  61. package/lib/CheckboxGroup/CheckboxGroup.wechat.d.ts +4 -0
  62. package/lib/CheckboxGroup/CheckboxGroup.wechat.js +35 -0
  63. package/lib/CheckboxGroup/index.android.js +1 -0
  64. package/lib/CheckboxGroup/index.d.ts +3 -0
  65. package/lib/CheckboxGroup/index.ios.js +1 -0
  66. package/lib/CheckboxGroup/index.js +3 -0
  67. package/lib/CheckboxGroup/index.md +37 -0
  68. package/lib/CheckboxGroup/index.tuya.js +3 -0
  69. package/lib/CheckboxGroup/index.web.js +3 -0
  70. package/lib/CheckboxGroup/index.wechat.js +3 -0
  71. package/lib/CheckboxGroup/props.android.js +1 -0
  72. package/lib/CheckboxGroup/props.d.ts +13 -0
  73. package/lib/CheckboxGroup/props.ios.js +1 -0
  74. package/lib/CheckboxGroup/props.js +1 -0
  75. package/lib/CheckboxGroup/props.tuya.js +1 -0
  76. package/lib/CheckboxGroup/props.web.js +1 -0
  77. package/lib/CheckboxGroup/props.wechat.js +1 -0
  78. package/lib/ClickableSimplified/index.android.js +1 -0
  79. package/lib/ClickableSimplified/index.ios.js +1 -0
  80. package/lib/ClickableSimplified/index.native.d.ts +42 -0
  81. package/lib/DatePicker/DatePicker.android.js +1 -0
  82. package/lib/DatePicker/DatePicker.d.ts +4 -0
  83. package/lib/DatePicker/DatePicker.ios.js +1 -0
  84. package/lib/DatePicker/DatePicker.js +10 -0
  85. package/lib/DatePicker/DatePicker.native.d.ts +34 -0
  86. package/lib/DatePicker/DatePicker.tuya.d.ts +4 -0
  87. package/lib/DatePicker/DatePicker.tuya.js +56 -0
  88. package/lib/DatePicker/DatePicker.web.js +10 -0
  89. package/lib/DatePicker/DatePicker.wechat.d.ts +4 -0
  90. package/lib/DatePicker/DatePicker.wechat.js +56 -0
  91. package/lib/DatePicker/index.android.js +1 -0
  92. package/lib/DatePicker/index.d.ts +3 -0
  93. package/lib/DatePicker/index.ios.js +1 -0
  94. package/lib/DatePicker/index.js +3 -0
  95. package/lib/DatePicker/index.md +36 -0
  96. package/lib/DatePicker/index.module.less +0 -0
  97. package/lib/DatePicker/index.tuya.js +3 -0
  98. package/lib/DatePicker/index.web.js +3 -0
  99. package/lib/DatePicker/index.wechat.js +3 -0
  100. package/lib/DatePicker/props.android.js +1 -0
  101. package/lib/DatePicker/props.d.ts +31 -0
  102. package/lib/DatePicker/props.ios.js +1 -0
  103. package/lib/DatePicker/props.js +7 -0
  104. package/lib/DatePicker/props.tuya.js +7 -0
  105. package/lib/DatePicker/props.web.js +7 -0
  106. package/lib/DatePicker/props.wechat.js +7 -0
  107. package/lib/Icon/Icon.android.js +1 -0
  108. package/lib/Icon/Icon.d.ts +5 -0
  109. package/lib/Icon/Icon.ios.js +1 -0
  110. package/lib/Icon/Icon.js +23 -0
  111. package/lib/Icon/Icon.native.d.ts +15 -0
  112. package/lib/Icon/Icon.tuya.d.ts +5 -0
  113. package/lib/Icon/Icon.tuya.js +23 -0
  114. package/lib/Icon/Icon.web.js +23 -0
  115. package/lib/Icon/Icon.wechat.d.ts +5 -0
  116. package/lib/Icon/Icon.wechat.js +23 -0
  117. package/lib/Icon/iconfont/iconfont.android.js +1 -0
  118. package/lib/Icon/iconfont/iconfont.css +765 -0
  119. package/lib/Icon/iconfont/iconfont.ios.js +1 -0
  120. package/lib/Icon/iconfont/iconfont.js +47 -0
  121. package/lib/Icon/iconfont/iconfont.json +1318 -0
  122. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  123. package/lib/Icon/iconfont/iconfont.tuya.js +47 -0
  124. package/lib/Icon/iconfont/iconfont.web.js +47 -0
  125. package/lib/Icon/iconfont/iconfont.wechat.js +47 -0
  126. package/lib/Icon/iconfont/iconfont.woff +0 -0
  127. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  128. package/lib/Icon/iconfont-rn/iconfont.json +189 -0
  129. package/lib/Icon/index.android.js +1 -0
  130. package/lib/Icon/index.d.ts +3 -0
  131. package/lib/Icon/index.ios.js +1 -0
  132. package/lib/Icon/index.js +3 -0
  133. package/lib/Icon/index.less +5 -0
  134. package/lib/Icon/index.md +29 -0
  135. package/lib/Icon/index.tuya.js +3 -0
  136. package/lib/Icon/index.web.js +3 -0
  137. package/lib/Icon/index.wechat.js +3 -0
  138. package/lib/Icon/props.android.js +1 -0
  139. package/lib/Icon/props.d.ts +9 -0
  140. package/lib/Icon/props.ios.js +1 -0
  141. package/lib/Icon/props.js +5 -0
  142. package/lib/Icon/props.tuya.js +5 -0
  143. package/lib/Icon/props.web.js +5 -0
  144. package/lib/Icon/props.wechat.js +5 -0
  145. package/lib/Image/Image.android.js +1 -0
  146. package/lib/Image/Image.d.ts +4 -0
  147. package/lib/Image/Image.ios.js +1 -0
  148. package/lib/Image/Image.js +92 -0
  149. package/lib/Image/Image.native.d.ts +28 -0
  150. package/lib/Image/Image.tuya.d.ts +4 -0
  151. package/lib/Image/Image.tuya.js +23 -0
  152. package/lib/Image/Image.web.js +92 -0
  153. package/lib/Image/Image.wechat.d.ts +4 -0
  154. package/lib/Image/Image.wechat.js +51 -0
  155. package/lib/Image/index.android.js +1 -0
  156. package/lib/Image/index.d.ts +3 -0
  157. package/lib/Image/index.ios.js +1 -0
  158. package/lib/Image/index.js +3 -0
  159. package/lib/Image/index.md +50 -0
  160. package/lib/Image/index.module.less +6 -0
  161. package/lib/Image/index.tuya.js +3 -0
  162. package/lib/Image/index.web.js +3 -0
  163. package/lib/Image/index.wechat.js +3 -0
  164. package/lib/Image/props.android.js +1 -0
  165. package/lib/Image/props.d.ts +24 -0
  166. package/lib/Image/props.ios.js +1 -0
  167. package/lib/Image/props.js +4 -0
  168. package/lib/Image/props.tuya.js +4 -0
  169. package/lib/Image/props.web.js +4 -0
  170. package/lib/Image/props.wechat.js +4 -0
  171. package/lib/Input/Input.android.js +1 -0
  172. package/lib/Input/Input.d.ts +4 -0
  173. package/lib/Input/Input.ios.js +1 -0
  174. package/lib/Input/Input.js +100 -0
  175. package/lib/Input/Input.native.d.ts +32 -0
  176. package/lib/Input/Input.tuya.d.ts +4 -0
  177. package/lib/Input/Input.tuya.js +86 -0
  178. package/lib/Input/Input.web.js +100 -0
  179. package/lib/Input/Input.wechat.d.ts +4 -0
  180. package/lib/Input/Input.wechat.js +110 -0
  181. package/lib/Input/index.android.js +1 -0
  182. package/lib/Input/index.d.ts +3 -0
  183. package/lib/Input/index.ios.js +1 -0
  184. package/lib/Input/index.js +3 -0
  185. package/lib/Input/index.md +43 -0
  186. package/lib/Input/index.module.less +17 -0
  187. package/lib/Input/index.tuya.js +3 -0
  188. package/lib/Input/index.web.js +3 -0
  189. package/lib/Input/index.wechat.js +3 -0
  190. package/lib/Input/props.android.js +1 -0
  191. package/lib/Input/props.d.ts +36 -0
  192. package/lib/Input/props.ios.js +1 -0
  193. package/lib/Input/props.js +7 -0
  194. package/lib/Input/props.tuya.js +7 -0
  195. package/lib/Input/props.web.js +7 -0
  196. package/lib/Input/props.wechat.js +7 -0
  197. package/lib/Label/Label.android.js +1 -0
  198. package/lib/Label/Label.d.ts +4 -0
  199. package/lib/Label/Label.ios.js +1 -0
  200. package/lib/Label/Label.js +24 -0
  201. package/lib/Label/Label.native.d.ts +4 -0
  202. package/lib/Label/Label.tuya.d.ts +4 -0
  203. package/lib/Label/Label.tuya.js +21 -0
  204. package/lib/Label/Label.web.js +24 -0
  205. package/lib/Label/Label.wechat.d.ts +4 -0
  206. package/lib/Label/Label.wechat.js +21 -0
  207. package/lib/Label/index.android.js +1 -0
  208. package/lib/Label/index.d.ts +3 -0
  209. package/lib/Label/index.ios.js +1 -0
  210. package/lib/Label/index.js +3 -0
  211. package/lib/Label/index.module.less +4 -0
  212. package/lib/Label/index.tuya.js +3 -0
  213. package/lib/Label/index.web.js +3 -0
  214. package/lib/Label/index.wechat.js +3 -0
  215. package/lib/Label/props.android.js +1 -0
  216. package/lib/Label/props.d.ts +4 -0
  217. package/lib/Label/props.ios.js +1 -0
  218. package/lib/Label/props.js +1 -0
  219. package/lib/Label/props.tuya.js +1 -0
  220. package/lib/Label/props.web.js +1 -0
  221. package/lib/Label/props.wechat.js +1 -0
  222. package/lib/LinearGradient/LinearGradient.android.js +1 -0
  223. package/lib/LinearGradient/LinearGradient.d.ts +4 -0
  224. package/lib/LinearGradient/LinearGradient.ios.js +1 -0
  225. package/lib/LinearGradient/LinearGradient.js +8 -0
  226. package/lib/LinearGradient/LinearGradient.native.d.ts +16 -0
  227. package/lib/LinearGradient/LinearGradient.tuya.d.ts +4 -0
  228. package/lib/LinearGradient/LinearGradient.tuya.js +56 -0
  229. package/lib/LinearGradient/LinearGradient.web.js +8 -0
  230. package/lib/LinearGradient/LinearGradient.wechat.d.ts +4 -0
  231. package/lib/LinearGradient/LinearGradient.wechat.js +53 -0
  232. package/lib/LinearGradient/index.android.js +1 -0
  233. package/lib/LinearGradient/index.d.ts +3 -0
  234. package/lib/LinearGradient/index.ios.js +1 -0
  235. package/lib/LinearGradient/index.js +3 -0
  236. package/lib/LinearGradient/index.md +33 -0
  237. package/lib/LinearGradient/index.module.less +7 -0
  238. package/lib/LinearGradient/index.tuya.js +3 -0
  239. package/lib/LinearGradient/index.web.js +3 -0
  240. package/lib/LinearGradient/index.wechat.js +3 -0
  241. package/lib/LinearGradient/props.android.js +1 -0
  242. package/lib/LinearGradient/props.d.ts +48 -0
  243. package/lib/LinearGradient/props.ios.js +1 -0
  244. package/lib/LinearGradient/props.js +11 -0
  245. package/lib/LinearGradient/props.tuya.js +11 -0
  246. package/lib/LinearGradient/props.web.js +11 -0
  247. package/lib/LinearGradient/props.wechat.js +11 -0
  248. package/lib/Modal/Modal.android.js +1 -0
  249. package/lib/Modal/Modal.d.ts +4 -0
  250. package/lib/Modal/Modal.ios.js +1 -0
  251. package/lib/Modal/Modal.js +10 -0
  252. package/lib/Modal/Modal.native.d.ts +24 -0
  253. package/lib/Modal/Modal.tuya.d.ts +4 -0
  254. package/lib/Modal/Modal.tuya.js +75 -0
  255. package/lib/Modal/Modal.web.js +10 -0
  256. package/lib/Modal/Modal.wechat.d.ts +4 -0
  257. package/lib/Modal/Modal.wechat.js +75 -0
  258. package/lib/Modal/index.android.js +1 -0
  259. package/lib/Modal/index.d.ts +3 -0
  260. package/lib/Modal/index.ios.js +1 -0
  261. package/lib/Modal/index.js +3 -0
  262. package/lib/Modal/index.md +32 -0
  263. package/lib/Modal/index.module.less +46 -0
  264. package/lib/Modal/index.tuya.js +3 -0
  265. package/lib/Modal/index.web.js +3 -0
  266. package/lib/Modal/index.wechat.js +3 -0
  267. package/lib/Modal/props.android.js +1 -0
  268. package/lib/Modal/props.d.ts +16 -0
  269. package/lib/Modal/props.ios.js +1 -0
  270. package/lib/Modal/props.js +1 -0
  271. package/lib/Modal/props.tuya.js +1 -0
  272. package/lib/Modal/props.web.js +1 -0
  273. package/lib/Modal/props.wechat.js +1 -0
  274. package/lib/Motion/Fade/index.android.js +1 -0
  275. package/lib/Motion/Fade/index.d.ts +4 -0
  276. package/lib/Motion/Fade/index.ios.js +1 -0
  277. package/lib/Motion/Fade/index.js +28 -0
  278. package/lib/Motion/Fade/index.native.d.ts +2 -0
  279. package/lib/Motion/Fade/index.tuya.d.ts +4 -0
  280. package/lib/Motion/Fade/index.tuya.js +78 -0
  281. package/lib/Motion/Fade/index.web.js +28 -0
  282. package/lib/Motion/Fade/index.wechat.d.ts +4 -0
  283. package/lib/Motion/Fade/index.wechat.js +78 -0
  284. package/lib/Motion/PullUp/index.android.js +1 -0
  285. package/lib/Motion/PullUp/index.d.ts +4 -0
  286. package/lib/Motion/PullUp/index.ios.js +1 -0
  287. package/lib/Motion/PullUp/index.js +28 -0
  288. package/lib/Motion/PullUp/index.native.d.ts +2 -0
  289. package/lib/Motion/PullUp/index.tuya.d.ts +4 -0
  290. package/lib/Motion/PullUp/index.tuya.js +82 -0
  291. package/lib/Motion/PullUp/index.web.js +28 -0
  292. package/lib/Motion/PullUp/index.wechat.d.ts +4 -0
  293. package/lib/Motion/PullUp/index.wechat.js +82 -0
  294. package/lib/Motion/PushDown/index.android.js +1 -0
  295. package/lib/Motion/PushDown/index.d.ts +4 -0
  296. package/lib/Motion/PushDown/index.ios.js +1 -0
  297. package/lib/Motion/PushDown/index.js +28 -0
  298. package/lib/Motion/PushDown/index.native.d.ts +2 -0
  299. package/lib/Motion/PushDown/index.tuya.d.ts +4 -0
  300. package/lib/Motion/PushDown/index.tuya.js +82 -0
  301. package/lib/Motion/PushDown/index.web.js +28 -0
  302. package/lib/Motion/PushDown/index.wechat.d.ts +4 -0
  303. package/lib/Motion/PushDown/index.wechat.js +82 -0
  304. package/lib/Motion/ScaleFadeIn/index.android.js +1 -0
  305. package/lib/Motion/ScaleFadeIn/index.d.ts +4 -0
  306. package/lib/Motion/ScaleFadeIn/index.ios.js +1 -0
  307. package/lib/Motion/ScaleFadeIn/index.js +28 -0
  308. package/lib/Motion/ScaleFadeIn/index.native.d.ts +2 -0
  309. package/lib/Motion/ScaleFadeIn/index.tuya.d.ts +4 -0
  310. package/lib/Motion/ScaleFadeIn/index.tuya.js +83 -0
  311. package/lib/Motion/ScaleFadeIn/index.web.js +28 -0
  312. package/lib/Motion/ScaleFadeIn/index.wechat.d.ts +4 -0
  313. package/lib/Motion/ScaleFadeIn/index.wechat.js +83 -0
  314. package/lib/Motion/ScalePullDown/index.android.js +1 -0
  315. package/lib/Motion/ScalePullDown/index.d.ts +4 -0
  316. package/lib/Motion/ScalePullDown/index.ios.js +1 -0
  317. package/lib/Motion/ScalePullDown/index.js +28 -0
  318. package/lib/Motion/ScalePullDown/index.native.d.ts +2 -0
  319. package/lib/Motion/ScalePullDown/index.tuya.d.ts +4 -0
  320. package/lib/Motion/ScalePullDown/index.tuya.js +103 -0
  321. package/lib/Motion/ScalePullDown/index.web.js +28 -0
  322. package/lib/Motion/ScalePullDown/index.wechat.d.ts +4 -0
  323. package/lib/Motion/ScalePullDown/index.wechat.js +103 -0
  324. package/lib/Motion/index.android.js +1 -0
  325. package/lib/Motion/index.d.ts +14 -0
  326. package/lib/Motion/index.ios.js +1 -0
  327. package/lib/Motion/index.js +14 -0
  328. package/lib/Motion/index.md +68 -0
  329. package/lib/Motion/index.tuya.js +14 -0
  330. package/lib/Motion/index.web.js +14 -0
  331. package/lib/Motion/index.wechat.js +14 -0
  332. package/lib/Motion/props.android.js +1 -0
  333. package/lib/Motion/props.d.ts +92 -0
  334. package/lib/Motion/props.ios.js +1 -0
  335. package/lib/Motion/props.js +62 -0
  336. package/lib/Motion/props.tuya.js +62 -0
  337. package/lib/Motion/props.web.js +62 -0
  338. package/lib/Motion/props.wechat.js +62 -0
  339. package/lib/Picker/Picker.android.js +1 -0
  340. package/lib/Picker/Picker.d.ts +4 -0
  341. package/lib/Picker/Picker.ios.js +1 -0
  342. package/lib/Picker/Picker.js +11 -0
  343. package/lib/Picker/Picker.native.d.ts +22 -0
  344. package/lib/Picker/Picker.tuya.d.ts +4 -0
  345. package/lib/Picker/Picker.tuya.js +69 -0
  346. package/lib/Picker/Picker.web.js +11 -0
  347. package/lib/Picker/Picker.wechat.d.ts +4 -0
  348. package/lib/Picker/Picker.wechat.js +70 -0
  349. package/lib/Picker/index.android.js +1 -0
  350. package/lib/Picker/index.d.ts +3 -0
  351. package/lib/Picker/index.ios.js +1 -0
  352. package/lib/Picker/index.js +3 -0
  353. package/lib/Picker/index.md +35 -0
  354. package/lib/Picker/index.module.less +0 -0
  355. package/lib/Picker/index.tuya.js +3 -0
  356. package/lib/Picker/index.web.js +3 -0
  357. package/lib/Picker/index.wechat.js +3 -0
  358. package/lib/Picker/props.android.js +1 -0
  359. package/lib/Picker/props.d.ts +32 -0
  360. package/lib/Picker/props.ios.js +1 -0
  361. package/lib/Picker/props.js +4 -0
  362. package/lib/Picker/props.tuya.js +4 -0
  363. package/lib/Picker/props.web.js +4 -0
  364. package/lib/Picker/props.wechat.js +4 -0
  365. package/lib/PickerView/PickerView.android.js +1 -0
  366. package/lib/PickerView/PickerView.d.ts +4 -0
  367. package/lib/PickerView/PickerView.ios.js +1 -0
  368. package/lib/PickerView/PickerView.js +11 -0
  369. package/lib/PickerView/PickerView.native.d.ts +31 -0
  370. package/lib/PickerView/PickerView.tuya.d.ts +4 -0
  371. package/lib/PickerView/PickerView.tuya.js +71 -0
  372. package/lib/PickerView/PickerView.web.js +11 -0
  373. package/lib/PickerView/PickerView.wechat.d.ts +4 -0
  374. package/lib/PickerView/PickerView.wechat.js +72 -0
  375. package/lib/PickerView/index.android.js +1 -0
  376. package/lib/PickerView/index.d.ts +3 -0
  377. package/lib/PickerView/index.ios.js +1 -0
  378. package/lib/PickerView/index.js +3 -0
  379. package/lib/PickerView/index.md +32 -0
  380. package/lib/PickerView/index.module.less +8 -0
  381. package/lib/PickerView/index.tuya.js +3 -0
  382. package/lib/PickerView/index.web.js +3 -0
  383. package/lib/PickerView/index.wechat.js +3 -0
  384. package/lib/PickerView/props.android.js +1 -0
  385. package/lib/PickerView/props.d.ts +10 -0
  386. package/lib/PickerView/props.ios.js +1 -0
  387. package/lib/PickerView/props.js +1 -0
  388. package/lib/PickerView/props.tuya.js +1 -0
  389. package/lib/PickerView/props.web.js +1 -0
  390. package/lib/PickerView/props.wechat.js +1 -0
  391. package/lib/RadialGradient/RadialGradient.android.js +1 -0
  392. package/lib/RadialGradient/RadialGradient.d.ts +4 -0
  393. package/lib/RadialGradient/RadialGradient.ios.js +1 -0
  394. package/lib/RadialGradient/RadialGradient.js +8 -0
  395. package/lib/RadialGradient/RadialGradient.native.d.ts +17 -0
  396. package/lib/RadialGradient/RadialGradient.tuya.d.ts +4 -0
  397. package/lib/RadialGradient/RadialGradient.tuya.js +36 -0
  398. package/lib/RadialGradient/RadialGradient.web.js +8 -0
  399. package/lib/RadialGradient/RadialGradient.wechat.d.ts +4 -0
  400. package/lib/RadialGradient/RadialGradient.wechat.js +36 -0
  401. package/lib/RadialGradient/index.android.js +1 -0
  402. package/lib/RadialGradient/index.d.ts +3 -0
  403. package/lib/RadialGradient/index.ios.js +1 -0
  404. package/lib/RadialGradient/index.js +3 -0
  405. package/lib/RadialGradient/index.md +33 -0
  406. package/lib/RadialGradient/index.module.less +7 -0
  407. package/lib/RadialGradient/index.tuya.js +3 -0
  408. package/lib/RadialGradient/index.web.js +3 -0
  409. package/lib/RadialGradient/index.wechat.js +3 -0
  410. package/lib/RadialGradient/props.android.js +1 -0
  411. package/lib/RadialGradient/props.d.ts +54 -0
  412. package/lib/RadialGradient/props.ios.js +1 -0
  413. package/lib/RadialGradient/props.js +16 -0
  414. package/lib/RadialGradient/props.tuya.js +16 -0
  415. package/lib/RadialGradient/props.web.js +16 -0
  416. package/lib/RadialGradient/props.wechat.js +16 -0
  417. package/lib/Radio/Radio.android.js +1 -0
  418. package/lib/Radio/Radio.d.ts +4 -0
  419. package/lib/Radio/Radio.ios.js +1 -0
  420. package/lib/Radio/Radio.js +13 -0
  421. package/lib/Radio/Radio.native.d.ts +30 -0
  422. package/lib/Radio/Radio.tuya.d.ts +4 -0
  423. package/lib/Radio/Radio.tuya.js +22 -0
  424. package/lib/Radio/Radio.web.js +13 -0
  425. package/lib/Radio/Radio.wechat.d.ts +4 -0
  426. package/lib/Radio/Radio.wechat.js +24 -0
  427. package/lib/Radio/index.android.js +1 -0
  428. package/lib/Radio/index.d.ts +3 -0
  429. package/lib/Radio/index.ios.js +1 -0
  430. package/lib/Radio/index.js +3 -0
  431. package/lib/Radio/index.md +30 -0
  432. package/lib/Radio/index.module.less +0 -0
  433. package/lib/Radio/index.tuya.js +3 -0
  434. package/lib/Radio/index.web.js +3 -0
  435. package/lib/Radio/index.wechat.js +3 -0
  436. package/lib/Radio/props.android.js +1 -0
  437. package/lib/Radio/props.d.ts +7 -0
  438. package/lib/Radio/props.ios.js +1 -0
  439. package/lib/Radio/props.js +1 -0
  440. package/lib/Radio/props.tuya.js +1 -0
  441. package/lib/Radio/props.web.js +1 -0
  442. package/lib/Radio/props.wechat.js +1 -0
  443. package/lib/RadioGroup/RadioGroup.android.js +1 -0
  444. package/lib/RadioGroup/RadioGroup.d.ts +4 -0
  445. package/lib/RadioGroup/RadioGroup.ios.js +1 -0
  446. package/lib/RadioGroup/RadioGroup.js +9 -0
  447. package/lib/RadioGroup/RadioGroup.native.d.ts +18 -0
  448. package/lib/RadioGroup/RadioGroup.tuya.d.ts +4 -0
  449. package/lib/RadioGroup/RadioGroup.tuya.js +35 -0
  450. package/lib/RadioGroup/RadioGroup.web.js +9 -0
  451. package/lib/RadioGroup/RadioGroup.wechat.d.ts +4 -0
  452. package/lib/RadioGroup/RadioGroup.wechat.js +35 -0
  453. package/lib/RadioGroup/index.android.js +1 -0
  454. package/lib/RadioGroup/index.d.ts +3 -0
  455. package/lib/RadioGroup/index.ios.js +1 -0
  456. package/lib/RadioGroup/index.js +3 -0
  457. package/lib/RadioGroup/index.md +39 -0
  458. package/lib/RadioGroup/index.tuya.js +3 -0
  459. package/lib/RadioGroup/index.web.js +3 -0
  460. package/lib/RadioGroup/index.wechat.js +3 -0
  461. package/lib/RadioGroup/props.android.js +1 -0
  462. package/lib/RadioGroup/props.d.ts +14 -0
  463. package/lib/RadioGroup/props.ios.js +1 -0
  464. package/lib/RadioGroup/props.js +1 -0
  465. package/lib/RadioGroup/props.tuya.js +1 -0
  466. package/lib/RadioGroup/props.web.js +1 -0
  467. package/lib/RadioGroup/props.wechat.js +1 -0
  468. package/lib/ScrollView/ScrollView.android.js +1 -0
  469. package/lib/ScrollView/ScrollView.d.ts +4 -0
  470. package/lib/ScrollView/ScrollView.ios.js +1 -0
  471. package/lib/ScrollView/ScrollView.js +169 -0
  472. package/lib/ScrollView/ScrollView.native.d.ts +57 -0
  473. package/lib/ScrollView/ScrollView.tuya.d.ts +4 -0
  474. package/lib/ScrollView/ScrollView.tuya.js +20 -0
  475. package/lib/ScrollView/ScrollView.web.js +169 -0
  476. package/lib/ScrollView/ScrollView.wechat.d.ts +4 -0
  477. package/lib/ScrollView/ScrollView.wechat.js +20 -0
  478. package/lib/ScrollView/index.android.js +1 -0
  479. package/lib/ScrollView/index.d.ts +3 -0
  480. package/lib/ScrollView/index.ios.js +1 -0
  481. package/lib/ScrollView/index.js +3 -0
  482. package/lib/ScrollView/index.md +37 -0
  483. package/lib/ScrollView/index.module.less +6 -0
  484. package/lib/ScrollView/index.tuya.js +3 -0
  485. package/lib/ScrollView/index.web.js +3 -0
  486. package/lib/ScrollView/index.wechat.js +3 -0
  487. package/lib/ScrollView/props.android.js +1 -0
  488. package/lib/ScrollView/props.d.ts +43 -0
  489. package/lib/ScrollView/props.ios.js +1 -0
  490. package/lib/ScrollView/props.js +5 -0
  491. package/lib/ScrollView/props.tuya.js +5 -0
  492. package/lib/ScrollView/props.web.js +5 -0
  493. package/lib/ScrollView/props.wechat.js +5 -0
  494. package/lib/Slider/Slider.android.js +1 -0
  495. package/lib/Slider/Slider.d.ts +4 -0
  496. package/lib/Slider/Slider.ios.js +1 -0
  497. package/lib/Slider/Slider.js +20 -0
  498. package/lib/Slider/Slider.native.d.ts +21 -0
  499. package/lib/Slider/Slider.tuya.d.ts +4 -0
  500. package/lib/Slider/Slider.tuya.js +37 -0
  501. package/lib/Slider/Slider.web.js +20 -0
  502. package/lib/Slider/Slider.wechat.d.ts +4 -0
  503. package/lib/Slider/Slider.wechat.js +40 -0
  504. package/lib/Slider/index.android.js +1 -0
  505. package/lib/Slider/index.d.ts +3 -0
  506. package/lib/Slider/index.ios.js +1 -0
  507. package/lib/Slider/index.js +3 -0
  508. package/lib/Slider/index.md +42 -0
  509. package/lib/Slider/index.tuya.js +3 -0
  510. package/lib/Slider/index.web.js +3 -0
  511. package/lib/Slider/index.wechat.js +3 -0
  512. package/lib/Slider/props.android.js +1 -0
  513. package/lib/Slider/props.d.ts +34 -0
  514. package/lib/Slider/props.ios.js +1 -0
  515. package/lib/Slider/props.js +11 -0
  516. package/lib/Slider/props.tuya.js +11 -0
  517. package/lib/Slider/props.web.js +11 -0
  518. package/lib/Slider/props.wechat.js +11 -0
  519. package/lib/Swiper/Swiper.android.js +1 -0
  520. package/lib/Swiper/Swiper.d.ts +7 -0
  521. package/lib/Swiper/Swiper.ios.js +1 -0
  522. package/lib/Swiper/Swiper.js +10 -0
  523. package/lib/Swiper/Swiper.native.d.ts +6 -0
  524. package/lib/Swiper/Swiper.tuya.d.ts +7 -0
  525. package/lib/Swiper/Swiper.tuya.js +54 -0
  526. package/lib/Swiper/Swiper.web.js +10 -0
  527. package/lib/Swiper/Swiper.wechat.d.ts +7 -0
  528. package/lib/Swiper/Swiper.wechat.js +55 -0
  529. package/lib/Swiper/index.android.js +1 -0
  530. package/lib/Swiper/index.d.ts +3 -0
  531. package/lib/Swiper/index.ios.js +1 -0
  532. package/lib/Swiper/index.js +3 -0
  533. package/lib/Swiper/index.md +44 -0
  534. package/lib/Swiper/index.tuya.js +3 -0
  535. package/lib/Swiper/index.web.js +3 -0
  536. package/lib/Swiper/index.wechat.js +3 -0
  537. package/lib/Swiper/props.android.js +1 -0
  538. package/lib/Swiper/props.d.ts +44 -0
  539. package/lib/Swiper/props.ios.js +1 -0
  540. package/lib/Swiper/props.js +16 -0
  541. package/lib/Swiper/props.tuya.js +16 -0
  542. package/lib/Swiper/props.web.js +16 -0
  543. package/lib/Swiper/props.wechat.js +16 -0
  544. package/lib/Switch/Switch.android.js +1 -0
  545. package/lib/Switch/Switch.d.ts +4 -0
  546. package/lib/Switch/Switch.ios.js +1 -0
  547. package/lib/Switch/Switch.js +13 -0
  548. package/lib/Switch/Switch.native.d.ts +25 -0
  549. package/lib/Switch/Switch.tuya.d.ts +4 -0
  550. package/lib/Switch/Switch.tuya.js +35 -0
  551. package/lib/Switch/Switch.web.js +13 -0
  552. package/lib/Switch/Switch.wechat.d.ts +5 -0
  553. package/lib/Switch/Switch.wechat.js +36 -0
  554. package/lib/Switch/index.android.js +1 -0
  555. package/lib/Switch/index.d.ts +3 -0
  556. package/lib/Switch/index.ios.js +1 -0
  557. package/lib/Switch/index.js +3 -0
  558. package/lib/Switch/index.md +31 -0
  559. package/lib/Switch/index.module.less +7 -0
  560. package/lib/Switch/index.tuya.js +3 -0
  561. package/lib/Switch/index.web.js +3 -0
  562. package/lib/Switch/index.wechat.js +3 -0
  563. package/lib/Switch/props.android.js +1 -0
  564. package/lib/Switch/props.d.ts +20 -0
  565. package/lib/Switch/props.ios.js +1 -0
  566. package/lib/Switch/props.js +5 -0
  567. package/lib/Switch/props.tuya.js +5 -0
  568. package/lib/Switch/props.web.js +5 -0
  569. package/lib/Switch/props.wechat.js +5 -0
  570. package/lib/Text/Text.android.js +1 -0
  571. package/lib/Text/Text.d.ts +4 -0
  572. package/lib/Text/Text.ios.js +1 -0
  573. package/lib/Text/Text.js +41 -0
  574. package/lib/Text/Text.native.d.ts +8 -0
  575. package/lib/Text/Text.tuya.d.ts +4 -0
  576. package/lib/Text/Text.tuya.js +8 -0
  577. package/lib/Text/Text.web.js +41 -0
  578. package/lib/Text/Text.wechat.d.ts +4 -0
  579. package/lib/Text/Text.wechat.js +33 -0
  580. package/lib/Text/index.android.js +1 -0
  581. package/lib/Text/index.d.ts +3 -0
  582. package/lib/Text/index.ios.js +1 -0
  583. package/lib/Text/index.js +3 -0
  584. package/lib/Text/index.md +29 -0
  585. package/lib/Text/index.module.less +3 -0
  586. package/lib/Text/index.tuya.js +3 -0
  587. package/lib/Text/index.web.js +3 -0
  588. package/lib/Text/index.wechat.js +3 -0
  589. package/lib/Text/props.android.js +1 -0
  590. package/lib/Text/props.d.ts +14 -0
  591. package/lib/Text/props.ios.js +1 -0
  592. package/lib/Text/props.js +1 -0
  593. package/lib/Text/props.tuya.js +1 -0
  594. package/lib/Text/props.web.js +1 -0
  595. package/lib/Text/props.wechat.js +1 -0
  596. package/lib/Textarea/Textarea.android.js +1 -0
  597. package/lib/Textarea/Textarea.d.ts +4 -0
  598. package/lib/Textarea/Textarea.ios.js +1 -0
  599. package/lib/Textarea/Textarea.js +120 -0
  600. package/lib/Textarea/Textarea.native.d.ts +4 -0
  601. package/lib/Textarea/Textarea.tuya.d.ts +4 -0
  602. package/lib/Textarea/Textarea.tuya.js +60 -0
  603. package/lib/Textarea/Textarea.web.js +120 -0
  604. package/lib/Textarea/Textarea.wechat.d.ts +4 -0
  605. package/lib/Textarea/Textarea.wechat.js +60 -0
  606. package/lib/Textarea/index.android.js +1 -0
  607. package/lib/Textarea/index.d.ts +3 -0
  608. package/lib/Textarea/index.ios.js +1 -0
  609. package/lib/Textarea/index.js +3 -0
  610. package/lib/Textarea/index.md +46 -0
  611. package/lib/Textarea/index.module.less +12 -0
  612. package/lib/Textarea/index.tuya.js +3 -0
  613. package/lib/Textarea/index.web.js +3 -0
  614. package/lib/Textarea/index.wechat.js +3 -0
  615. package/lib/Textarea/props.android.js +1 -0
  616. package/lib/Textarea/props.d.ts +21 -0
  617. package/lib/Textarea/props.ios.js +1 -0
  618. package/lib/Textarea/props.js +1 -0
  619. package/lib/Textarea/props.tuya.js +1 -0
  620. package/lib/Textarea/props.web.js +1 -0
  621. package/lib/Textarea/props.wechat.js +1 -0
  622. package/lib/TimePicker/TimePicker.android.js +1 -0
  623. package/lib/TimePicker/TimePicker.d.ts +4 -0
  624. package/lib/TimePicker/TimePicker.ios.js +1 -0
  625. package/lib/TimePicker/TimePicker.js +10 -0
  626. package/lib/TimePicker/TimePicker.native.d.ts +39 -0
  627. package/lib/TimePicker/TimePicker.tuya.d.ts +4 -0
  628. package/lib/TimePicker/TimePicker.tuya.js +26 -0
  629. package/lib/TimePicker/TimePicker.web.js +10 -0
  630. package/lib/TimePicker/TimePicker.wechat.d.ts +4 -0
  631. package/lib/TimePicker/TimePicker.wechat.js +56 -0
  632. package/lib/TimePicker/index.android.js +1 -0
  633. package/lib/TimePicker/index.d.ts +3 -0
  634. package/lib/TimePicker/index.ios.js +1 -0
  635. package/lib/TimePicker/index.js +3 -0
  636. package/lib/TimePicker/index.md +35 -0
  637. package/lib/TimePicker/index.module.less +0 -0
  638. package/lib/TimePicker/index.tuya.js +3 -0
  639. package/lib/TimePicker/index.web.js +3 -0
  640. package/lib/TimePicker/index.wechat.js +3 -0
  641. package/lib/TimePicker/props.android.js +1 -0
  642. package/lib/TimePicker/props.d.ts +28 -0
  643. package/lib/TimePicker/props.ios.js +1 -0
  644. package/lib/TimePicker/props.js +6 -0
  645. package/lib/TimePicker/props.tuya.js +6 -0
  646. package/lib/TimePicker/props.web.js +6 -0
  647. package/lib/TimePicker/props.wechat.js +6 -0
  648. package/lib/View/View.android.js +1 -0
  649. package/lib/View/View.d.ts +4 -0
  650. package/lib/View/View.ios.js +1 -0
  651. package/lib/View/View.js +70 -0
  652. package/lib/View/View.native.d.ts +2 -0
  653. package/lib/View/View.tuya.d.ts +4 -0
  654. package/lib/View/View.tuya.js +76 -0
  655. package/lib/View/View.web.js +70 -0
  656. package/lib/View/View.wechat.d.ts +4 -0
  657. package/lib/View/View.wechat.js +76 -0
  658. package/lib/View/index.android.js +1 -0
  659. package/lib/View/index.d.ts +3 -0
  660. package/lib/View/index.ios.js +1 -0
  661. package/lib/View/index.js +3 -0
  662. package/lib/View/index.md +33 -0
  663. package/lib/View/index.module.less +10 -0
  664. package/lib/View/index.tuya.js +3 -0
  665. package/lib/View/index.web.js +3 -0
  666. package/lib/View/index.wechat.js +3 -0
  667. package/lib/View/props.android.js +1 -0
  668. package/lib/View/props.d.ts +11 -0
  669. package/lib/View/props.ios.js +1 -0
  670. package/lib/View/props.js +4 -0
  671. package/lib/View/props.tuya.js +4 -0
  672. package/lib/View/props.web.js +4 -0
  673. package/lib/View/props.wechat.js +4 -0
  674. package/lib/assets/back.png +0 -0
  675. package/lib/assets/edit.png +0 -0
  676. package/lib/assets/icons.android.js +1 -0
  677. package/lib/assets/icons.d.ts +7 -0
  678. package/lib/assets/icons.ios.js +1 -0
  679. package/lib/assets/icons.js +7 -0
  680. package/lib/assets/icons.tuya.js +7 -0
  681. package/lib/assets/icons.web.js +7 -0
  682. package/lib/assets/icons.wechat.js +7 -0
  683. package/lib/assets/loading-warn.png +0 -0
  684. package/lib/assets/loading.png +0 -0
  685. package/lib/assets/success_no_circle.png +0 -0
  686. package/lib/core/index.android.js +1 -0
  687. package/lib/core/index.d.ts +6 -0
  688. package/lib/core/index.ios.js +1 -0
  689. package/lib/core/index.js +25 -0
  690. package/lib/core/index.tuya.js +25 -0
  691. package/lib/core/index.web.js +25 -0
  692. package/lib/core/index.wechat.js +25 -0
  693. package/lib/index.android.js +1 -0
  694. package/lib/index.d.ts +24 -0
  695. package/lib/index.ios.js +1 -0
  696. package/lib/index.js +24 -0
  697. package/lib/index.tuya.js +24 -0
  698. package/lib/index.web.js +24 -0
  699. package/lib/index.wechat.js +24 -0
  700. package/lib/style/var.less +26 -0
  701. package/lib/types/event.android.js +0 -0
  702. package/lib/types/event.d.ts +3 -0
  703. package/lib/types/event.ios.js +0 -0
  704. package/lib/types/event.js +1 -0
  705. package/lib/types/event.tuya.js +1 -0
  706. package/lib/types/event.web.js +1 -0
  707. package/lib/types/event.wechat.js +1 -0
  708. package/lib/types/index.android.js +1 -0
  709. package/lib/types/index.d.ts +54 -0
  710. package/lib/types/index.ios.js +1 -0
  711. package/lib/types/index.js +9 -0
  712. package/lib/types/index.tuya.js +9 -0
  713. package/lib/types/index.web.js +9 -0
  714. package/lib/types/index.wechat.js +9 -0
  715. package/lib/utils/index.android.js +1 -0
  716. package/lib/utils/index.d.ts +10 -0
  717. package/lib/utils/index.ios.js +1 -0
  718. package/lib/utils/index.js +90 -0
  719. package/lib/utils/index.tuya.js +90 -0
  720. package/lib/utils/index.web.js +90 -0
  721. package/lib/utils/index.wechat.js +90 -0
  722. package/lib/utils/interface.android.js +1 -0
  723. package/lib/utils/interface.d.ts +20 -0
  724. package/lib/utils/interface.ios.js +1 -0
  725. package/lib/utils/interface.js +1 -0
  726. package/lib/utils/interface.tuya.js +1 -0
  727. package/lib/utils/interface.web.js +1 -0
  728. package/lib/utils/interface.wechat.js +1 -0
  729. package/package.json +61 -0
@@ -0,0 +1,44 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from '../types';
3
+ import { GenericEvent as WxEvent } from '@remax/wechat';
4
+ export declare type SwiperProps<I> = BaseProps & {
5
+ /** (default: false) 是否显示面板指示点 */
6
+ dots?: boolean;
7
+ /** (default: rgba(0, 0, 0, .3)) 指示点颜色 */
8
+ dotColor?: string;
9
+ /** (default: #000000) 当前选中的指示点颜色 */
10
+ dotActiveColor?: string;
11
+ /** (default: false) 是否自动切换 */
12
+ autoplay?: boolean;
13
+ /** (default: 0) 当前所在滑块的 index */
14
+ current?: number;
15
+ /** (default: 5000) 自动切换时间间隔 */
16
+ interval?: number;
17
+ /** (default: 500) 滑动动画时长 */
18
+ duration?: number;
19
+ /** (default: false) 是否采用衔接滑动 */
20
+ circular?: boolean;
21
+ /** (default: false) 滑动方向是否为纵向 */
22
+ vertical?: boolean;
23
+ /** 前边距,可用于露出前一项的一小部分 */
24
+ /** 后边距,可用于露出后一项的一小部分 */
25
+ /** current 改变时会触发 change 事件 */
26
+ onChange?: (event: {
27
+ current: number;
28
+ source: '' | 'autoplay' | 'touch';
29
+ origin?: WxEvent;
30
+ }) => void;
31
+ /** swiper-item 的位置发生改变时会触发 transition 事件,event.detail = {dx: dx, dy: dy} 2.4.3 */
32
+ /** 动画结束时会触发 onAfterChange 事件 */
33
+ onAfterChange?: (event: any) => void;
34
+ /** 列表数据 */
35
+ dataSource: I[];
36
+ /** 渲染列表项目 */
37
+ renderItem: (item: I, index: number) => React.ReactNode;
38
+ };
39
+ export declare const defaultSwiperProps: Partial<SwiperProps<any>>;
40
+ export declare const SwiperPropsAlias: {
41
+ dotActiveColor: string;
42
+ dotColor: string;
43
+ dots: string;
44
+ };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.defaultSwiperProps=exports.SwiperPropsAlias=void 0;var defaultSwiperProps={autoplay:false,circular:false,current:0,dotActiveColor:'#000',dotColor:'rgba(0,0,0,0.3)',dots:false,duration:500,interval:5000,vertical:false};exports.defaultSwiperProps=defaultSwiperProps;var SwiperPropsAlias={dotActiveColor:'indicatorActiveColor',dotColor:'indicatorColor',dots:'indicatorDots'};exports.SwiperPropsAlias=SwiperPropsAlias;
@@ -0,0 +1,16 @@
1
+ export var defaultSwiperProps = {
2
+ autoplay: false,
3
+ circular: false,
4
+ current: 0,
5
+ dotActiveColor: '#000',
6
+ dotColor: 'rgba(0,0,0,0.3)',
7
+ dots: false,
8
+ duration: 500,
9
+ interval: 5000,
10
+ vertical: false
11
+ };
12
+ export var SwiperPropsAlias = {
13
+ dotActiveColor: 'indicatorActiveColor',
14
+ dotColor: 'indicatorColor',
15
+ dots: 'indicatorDots'
16
+ };
@@ -0,0 +1,16 @@
1
+ export var defaultSwiperProps = {
2
+ autoplay: false,
3
+ circular: false,
4
+ current: 0,
5
+ dotActiveColor: '#000',
6
+ dotColor: 'rgba(0,0,0,0.3)',
7
+ dots: false,
8
+ duration: 500,
9
+ interval: 5000,
10
+ vertical: false
11
+ };
12
+ export var SwiperPropsAlias = {
13
+ dotActiveColor: 'indicatorActiveColor',
14
+ dotColor: 'indicatorColor',
15
+ dots: 'indicatorDots'
16
+ };
@@ -0,0 +1,16 @@
1
+ export var defaultSwiperProps = {
2
+ autoplay: false,
3
+ circular: false,
4
+ current: 0,
5
+ dotActiveColor: '#000',
6
+ dotColor: 'rgba(0,0,0,0.3)',
7
+ dots: false,
8
+ duration: 500,
9
+ interval: 5000,
10
+ vertical: false
11
+ };
12
+ export var SwiperPropsAlias = {
13
+ dotActiveColor: 'indicatorActiveColor',
14
+ dotColor: 'indicatorColor',
15
+ dots: 'indicatorDots'
16
+ };
@@ -0,0 +1,16 @@
1
+ export var defaultSwiperProps = {
2
+ autoplay: false,
3
+ circular: false,
4
+ current: 0,
5
+ dotActiveColor: '#000',
6
+ dotColor: 'rgba(0,0,0,0.3)',
7
+ dots: false,
8
+ duration: 500,
9
+ interval: 5000,
10
+ vertical: false
11
+ };
12
+ export var SwiperPropsAlias = {
13
+ dotActiveColor: 'indicatorActiveColor',
14
+ dotColor: 'indicatorColor',
15
+ dots: 'indicatorDots'
16
+ };
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireDefault(require("react"));var _switch=_interopRequireDefault(require("tuya-panel-switch/lib/switch"));var _Checkbox=_interopRequireDefault(require("../Checkbox"));var _props=require("./props");var _jsxFileName="/drone/src/packages/components/src/Switch/Switch.native.tsx";var _excluded=["style","color","disabled","type"];function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var _Switch=function(_React$Component){(0,_inherits2.default)(_Switch,_React$Component);var _super=_createSuper(_Switch);function _Switch(){var _this;(0,_classCallCheck2.default)(this,_Switch);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this=_super.call.apply(_super,[this].concat(args));_this.$touchable=_react.default.createRef();_this.state={checked:!!_this.props.checked};_this._simulateNativePress=function(evt){var type=_this.props.type;if(type==='checkbox'){var node=_this.$touchable.current;node&&node._simulateNativePress(evt);}else{_this.setState({checked:!_this.state.checked});}};_this.onCheckedChange=function(event){var checked=event.checked;var onChange=_this.props.onChange;typeof onChange==='function'&&onChange({type:'change',value:checked});_this.setState({checked:checked});};_this.onSwitchChange=function(isChecked){var onChange=_this.props.onChange;typeof onChange==='function'&&onChange({type:'change',value:isChecked});_this.setState({checked:isChecked});};return _this;}(0,_createClass2.default)(_Switch,[{key:"render",value:function render(){var _this$props=this.props,style=_this$props.style,color=_this$props.color,disabled=_this$props.disabled,type=_this$props.type,rest=(0,_objectWithoutProperties2.default)(_this$props,_excluded);var checked=this.state.checked;if(type==='checkbox'){return _react.default.createElement(_Checkbox.default,{checked:this.state.checked,style:style,disabled:disabled,onChange:this.onCheckedChange,ref:this.$touchable,__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:14}});}return _react.default.createElement(_switch.default,(0,_extends2.default)({size:{width:50,height:30,activeSize:26,margin:2},thumbTintColor:"#FFFFFF",tintColor:'rgba(0,0,0,0.12)'},rest,{value:checked,onValueChange:this.onSwitchChange,style:style,onTintColor:color,disabled:disabled,ref:this.$touchable,__self:this,__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:12}}));}}]);return _Switch;}(_react.default.Component);exports.default=_Switch;_Switch.displayName='Switch';_Switch.defaultProps=_props.defaultSwitchProps;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { SwitchProps } from './props';
3
+ declare const Switch: React.FC<SwitchProps>;
4
+ export default Switch;
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireDefault(require("react"));var _switch=_interopRequireDefault(require("tuya-panel-switch/lib/switch"));var _Checkbox=_interopRequireDefault(require("../Checkbox"));var _props=require("./props");var _jsxFileName="/drone/src/packages/components/src/Switch/Switch.native.tsx";var _excluded=["style","color","disabled","type"];function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var _Switch=function(_React$Component){(0,_inherits2.default)(_Switch,_React$Component);var _super=_createSuper(_Switch);function _Switch(){var _this;(0,_classCallCheck2.default)(this,_Switch);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this=_super.call.apply(_super,[this].concat(args));_this.$touchable=_react.default.createRef();_this.state={checked:!!_this.props.checked};_this._simulateNativePress=function(evt){var type=_this.props.type;if(type==='checkbox'){var node=_this.$touchable.current;node&&node._simulateNativePress(evt);}else{_this.setState({checked:!_this.state.checked});}};_this.onCheckedChange=function(event){var checked=event.checked;var onChange=_this.props.onChange;typeof onChange==='function'&&onChange({type:'change',value:checked});_this.setState({checked:checked});};_this.onSwitchChange=function(isChecked){var onChange=_this.props.onChange;typeof onChange==='function'&&onChange({type:'change',value:isChecked});_this.setState({checked:isChecked});};return _this;}(0,_createClass2.default)(_Switch,[{key:"render",value:function render(){var _this$props=this.props,style=_this$props.style,color=_this$props.color,disabled=_this$props.disabled,type=_this$props.type,rest=(0,_objectWithoutProperties2.default)(_this$props,_excluded);var checked=this.state.checked;if(type==='checkbox'){return _react.default.createElement(_Checkbox.default,{checked:this.state.checked,style:style,disabled:disabled,onChange:this.onCheckedChange,ref:this.$touchable,__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:14}});}return _react.default.createElement(_switch.default,(0,_extends2.default)({size:{width:50,height:30,activeSize:26,margin:2},thumbTintColor:"#FFFFFF",tintColor:'rgba(0,0,0,0.12)'},rest,{value:checked,onValueChange:this.onSwitchChange,style:style,onTintColor:color,disabled:disabled,ref:this.$touchable,__self:this,__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:12}}));}}]);return _Switch;}(_react.default.Component);exports.default=_Switch;_Switch.displayName='Switch';_Switch.defaultProps=_props.defaultSwitchProps;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+
3
+ var Switch = function (props) {
4
+ var checked = props.checked,
5
+ disabled = props.disabled,
6
+ color = props.color,
7
+ className = props.className,
8
+ style = props.style;
9
+ return /*#__PURE__*/React.createElement("div", null, "\u6682\u672A\u5B9E\u73B011");
10
+ };
11
+
12
+ Switch.displayName = 'Switch';
13
+ export default Switch;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { GestureResponderEvent } from 'react-native';
3
+ import { SwitchProps } from './props';
4
+ export interface ISwitchState {
5
+ checked: boolean;
6
+ }
7
+ export default class _Switch extends React.Component<SwitchProps, ISwitchState> {
8
+ static displayName: string;
9
+ static defaultProps: {
10
+ type: string;
11
+ color: string;
12
+ disabled: boolean;
13
+ };
14
+ $touchable: React.RefObject<any>;
15
+ state: {
16
+ checked: boolean;
17
+ };
18
+ _simulateNativePress: (evt: GestureResponderEvent) => void;
19
+ onCheckedChange: (event: {
20
+ value: string;
21
+ checked: boolean;
22
+ }) => void;
23
+ onSwitchChange: (isChecked: boolean) => void;
24
+ render(): JSX.Element;
25
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { SwitchProps } from './props';
3
+ declare const Switch: React.FC<SwitchProps>;
4
+ export default Switch;
@@ -0,0 +1,35 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["className", "style", "id", "onChange", "type", "color"];
4
+ import clsx from 'clsx';
5
+ import * as React from 'react';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
7
+ import { Switch as RemaxSwitch } from '@ray-js/remax-tuya';
8
+
9
+ var Switch = function (props) {
10
+ var className = props.className,
11
+ style = props.style,
12
+ id = props.id,
13
+ onChange = props.onChange,
14
+ _props$type = props.type,
15
+ type = _props$type === void 0 ? 'switch' : _props$type,
16
+ color = props.color,
17
+ restProps = _objectWithoutProperties(props, _excluded);
18
+
19
+ return /*#__PURE__*/React.createElement(RemaxSwitch, _extends({
20
+ id: id,
21
+ onChange: function handleChange(e) {
22
+ onChange === null || onChange === void 0 ? void 0 : onChange({
23
+ type: 'change',
24
+ value: e.detail.value,
25
+ origin: e
26
+ });
27
+ },
28
+ style: inlineStyle(style),
29
+ className: clsx(className),
30
+ color: color || (type === 'switch' ? '#007aff' : '#ffffff'),
31
+ type: type
32
+ }, restProps));
33
+ };
34
+
35
+ export default Switch;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+
3
+ var Switch = function (props) {
4
+ var checked = props.checked,
5
+ disabled = props.disabled,
6
+ color = props.color,
7
+ className = props.className,
8
+ style = props.style;
9
+ return /*#__PURE__*/React.createElement("div", null, "\u6682\u672A\u5B9E\u73B011");
10
+ };
11
+
12
+ Switch.displayName = 'Switch';
13
+ export default Switch;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { SwitchProps } from './props';
3
+ import './index.module.less';
4
+ declare const Switch: React.FC<SwitchProps>;
5
+ export default Switch;
@@ -0,0 +1,36 @@
1
+ import { Switch as _Switch } from "@remax/wechat/esm/hostComponents/Switch/index";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ var _excluded = ["className", "style", "id", "onChange", "type", "color"];
5
+ import clsx from 'clsx';
6
+ import * as React from 'react';
7
+ import { inlineStyle } from '@ray-js/framework-shared';
8
+ import './index.module.less';
9
+
10
+ var Switch = function (props) {
11
+ var className = props.className,
12
+ style = props.style,
13
+ id = props.id,
14
+ onChange = props.onChange,
15
+ _props$type = props.type,
16
+ type = _props$type === void 0 ? 'switch' : _props$type,
17
+ color = props.color,
18
+ restProps = _objectWithoutProperties(props, _excluded);
19
+
20
+ return /*#__PURE__*/React.createElement(_Switch, _extends({
21
+ id: id,
22
+ onChange: function handleChange(e) {
23
+ onChange === null || onChange === void 0 ? void 0 : onChange({
24
+ type: 'change',
25
+ value: e.detail.value,
26
+ origin: e
27
+ });
28
+ },
29
+ style: inlineStyle(style),
30
+ className: clsx('raySwitch', className),
31
+ type: type,
32
+ color: color || '#007AFF'
33
+ }, restProps));
34
+ };
35
+
36
+ export default Switch;
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Switch=_interopRequireDefault(require("./Switch"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Switch.default;exports.default=_default;
@@ -0,0 +1,3 @@
1
+ import Switch from './Switch';
2
+ export * from './props';
3
+ export default Switch;
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Switch=_interopRequireDefault(require("./Switch"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Switch.default;exports.default=_default;
@@ -0,0 +1,3 @@
1
+ import Switch from './Switch';
2
+ export * from './props';
3
+ export default Switch;
@@ -0,0 +1,31 @@
1
+ ---
2
+ nav:
3
+ title: 组件
4
+ path: /components
5
+ group:
6
+ title: 表单组件
7
+ ---
8
+
9
+ # Switch
10
+
11
+ 开关选择器。
12
+
13
+ ## 导入
14
+
15
+ ```js
16
+ import { Switch } from '@ray-js/components';
17
+ ```
18
+
19
+ ## 代码演示
20
+
21
+ <code src="./demos/basic.tsx" title="基本用法" background="#f2f4f6" />
22
+
23
+ ## Props
24
+
25
+ | 属性 | 类型 | 默认值 | 说明 | 支持平台 |
26
+ | --- | --- | --- | --- | --- |
27
+ | checked | boolean | false | 当前是否选中 | RN、涂鸦、微信 |
28
+ | disabled | boolean | false | 是否禁用 | RN、涂鸦、微信 |
29
+ | color | string | #007AFF | Switch 的颜色,同 css 的 color | RN、涂鸦、微信 |
30
+ | type | string | switch | 可选值 `switch` `checkbox` | RN、涂鸦、微信 |
31
+ | onChange | func(event) | 否 | checked 改变时触发 change 事件,event.detail={ value} | RN、涂鸦、微信 |
@@ -0,0 +1,7 @@
1
+ .raySwitch {
2
+ --ty-native-switch-bg: (120, 120, 128, 0.16);
3
+ }
4
+
5
+ .raySwitch .wx-switch-input:before {
6
+ background-color: var(--ty-native-switch-bg);
7
+ }
@@ -0,0 +1,3 @@
1
+ import Switch from './Switch';
2
+ export * from './props';
3
+ export default Switch;
@@ -0,0 +1,3 @@
1
+ import Switch from './Switch';
2
+ export * from './props';
3
+ export default Switch;
@@ -0,0 +1,3 @@
1
+ import Switch from './Switch';
2
+ export * from './props';
3
+ export default Switch;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.defaultSwitchProps=void 0;var defaultSwitchProps={type:'switch',color:'#007AFF',disabled:false};exports.defaultSwitchProps=defaultSwitchProps;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { BaseProps } from '../types';
4
+ export interface SwitchProps extends BaseProps {
5
+ onChange?: (event: {
6
+ type: 'change';
7
+ value: boolean;
8
+ origin: any;
9
+ }) => void;
10
+ checked?: boolean;
11
+ disabled?: boolean;
12
+ color?: string;
13
+ type?: 'switch' | 'checkbox';
14
+ style?: React.CSSProperties | StyleProp<ViewStyle>;
15
+ }
16
+ export declare const defaultSwitchProps: {
17
+ type: string;
18
+ color: string;
19
+ disabled: boolean;
20
+ };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.defaultSwitchProps=void 0;var defaultSwitchProps={type:'switch',color:'#007AFF',disabled:false};exports.defaultSwitchProps=defaultSwitchProps;
@@ -0,0 +1,5 @@
1
+ export var defaultSwitchProps = {
2
+ type: 'switch',
3
+ color: '#007AFF',
4
+ disabled: false
5
+ };
@@ -0,0 +1,5 @@
1
+ export var defaultSwitchProps = {
2
+ type: 'switch',
3
+ color: '#007AFF',
4
+ disabled: false
5
+ };
@@ -0,0 +1,5 @@
1
+ export var defaultSwitchProps = {
2
+ type: 'switch',
3
+ color: '#007AFF',
4
+ disabled: false
5
+ };
@@ -0,0 +1,5 @@
1
+ export var defaultSwitchProps = {
2
+ type: 'switch',
3
+ color: '#007AFF',
4
+ disabled: false
5
+ };
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _excluded=["selectable","onClick","style","children"];var _this=this,_jsxFileName="/drone/src/packages/components/src/Text/Text.native.tsx";var _Text=function(props){var selectable=props.selectable,onClick=props.onClick,style=props.style,children=props.children,rest=(0,_objectWithoutProperties2.default)(props,_excluded);var clickProps={onPress:undefined};if(onClick)clickProps.onPress=function onTextClick(event){var nativeEvent=event.nativeEvent;var timestamp=nativeEvent.timestamp,pageX=nativeEvent.pageX,pageY=nativeEvent.pageY;typeof onClick==='function'&&onClick({type:'click',timeStamp:timestamp,pageX:pageX,pageY:pageY,origin:event});};return _react.default.createElement(_reactNative.Text,(0,_extends2.default)({selectable:!!selectable,style:style},rest,clickProps,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:39,columnNumber:10}}),children);};_Text.displayName='_Text';var _default=_Text;exports.default=_default;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TextProps } from './props';
3
+ declare const Text: React.FC<TextProps>;
4
+ export default Text;
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _excluded=["selectable","onClick","style","children"];var _this=this,_jsxFileName="/drone/src/packages/components/src/Text/Text.native.tsx";var _Text=function(props){var selectable=props.selectable,onClick=props.onClick,style=props.style,children=props.children,rest=(0,_objectWithoutProperties2.default)(props,_excluded);var clickProps={onPress:undefined};if(onClick)clickProps.onPress=function onTextClick(event){var nativeEvent=event.nativeEvent;var timestamp=nativeEvent.timestamp,pageX=nativeEvent.pageX,pageY=nativeEvent.pageY;typeof onClick==='function'&&onClick({type:'click',timeStamp:timestamp,pageX:pageX,pageY:pageY,origin:event});};return _react.default.createElement(_reactNative.Text,(0,_extends2.default)({selectable:!!selectable,style:style},rest,clickProps,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:39,columnNumber:10}}),children);};_Text.displayName='_Text';var _default=_Text;exports.default=_default;
@@ -0,0 +1,41 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
+ import * as React from 'react';
4
+ import clsx from 'clsx';
5
+ import { inlineStyle } from '@ray-js/framework-shared';
6
+ import styles from './index.module.less';
7
+
8
+ var Text = function (props) {
9
+ var onClick = props.onClick,
10
+ onTouchStart = props.onTouchStart,
11
+ onTouchMove = props.onTouchMove,
12
+ onTouchEnd = props.onTouchEnd,
13
+ onTouchCancel = props.onTouchCancel,
14
+ className = props.className,
15
+ selectable = props.selectable,
16
+ dataset = props.dataset,
17
+ id = props.id,
18
+ style = props.style,
19
+ children = props.children;
20
+ return /*#__PURE__*/React.createElement("span", _extends({}, dataset, {
21
+ id: id,
22
+ style: inlineStyle(style),
23
+ className: clsx('ray-text', className, _defineProperty({}, styles.selectable, selectable)),
24
+ onClick: onClick,
25
+ onTouchStart: function (e) {
26
+ return onTouchStart === null || onTouchStart === void 0 ? void 0 : onTouchStart(e);
27
+ },
28
+ onTouchMove: function (e) {
29
+ return onTouchMove === null || onTouchMove === void 0 ? void 0 : onTouchMove(e);
30
+ },
31
+ onTouchEnd: function (e) {
32
+ return onTouchEnd === null || onTouchEnd === void 0 ? void 0 : onTouchEnd(e);
33
+ },
34
+ onTouchCancel: function (e) {
35
+ return onTouchCancel === null || onTouchCancel === void 0 ? void 0 : onTouchCancel(e);
36
+ }
37
+ }), children);
38
+ };
39
+
40
+ Text.displayName = 'Text';
41
+ export default Text;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { TextProps } from './props';
4
+ export interface IProps extends Omit<TextProps, 'style'> {
5
+ style?: StyleProp<ViewStyle>;
6
+ }
7
+ declare const _Text: React.FC<IProps>;
8
+ export default _Text;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TextProps } from './props';
3
+ declare const Text: React.FC<TextProps>;
4
+ export default Text;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Text as RemaxText } from '@ray-js/remax-tuya';
3
+
4
+ var Text = function (props) {
5
+ return /*#__PURE__*/React.createElement(RemaxText, props);
6
+ };
7
+
8
+ export default Text;
@@ -0,0 +1,41 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
+ import * as React from 'react';
4
+ import clsx from 'clsx';
5
+ import { inlineStyle } from '@ray-js/framework-shared';
6
+ import styles from './index.module.less';
7
+
8
+ var Text = function (props) {
9
+ var onClick = props.onClick,
10
+ onTouchStart = props.onTouchStart,
11
+ onTouchMove = props.onTouchMove,
12
+ onTouchEnd = props.onTouchEnd,
13
+ onTouchCancel = props.onTouchCancel,
14
+ className = props.className,
15
+ selectable = props.selectable,
16
+ dataset = props.dataset,
17
+ id = props.id,
18
+ style = props.style,
19
+ children = props.children;
20
+ return /*#__PURE__*/React.createElement("span", _extends({}, dataset, {
21
+ id: id,
22
+ style: inlineStyle(style),
23
+ className: clsx('ray-text', className, _defineProperty({}, styles.selectable, selectable)),
24
+ onClick: onClick,
25
+ onTouchStart: function (e) {
26
+ return onTouchStart === null || onTouchStart === void 0 ? void 0 : onTouchStart(e);
27
+ },
28
+ onTouchMove: function (e) {
29
+ return onTouchMove === null || onTouchMove === void 0 ? void 0 : onTouchMove(e);
30
+ },
31
+ onTouchEnd: function (e) {
32
+ return onTouchEnd === null || onTouchEnd === void 0 ? void 0 : onTouchEnd(e);
33
+ },
34
+ onTouchCancel: function (e) {
35
+ return onTouchCancel === null || onTouchCancel === void 0 ? void 0 : onTouchCancel(e);
36
+ }
37
+ }), children);
38
+ };
39
+
40
+ Text.displayName = 'Text';
41
+ export default Text;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TextProps } from './props';
3
+ declare const Text: React.FC<TextProps>;
4
+ export default Text;
@@ -0,0 +1,33 @@
1
+ import { Text as _Text } from "@remax/wechat/esm/hostComponents/Text/index";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
+ var _excluded = ["onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
6
+ import * as React from 'react';
7
+ import { useTouch } from '@ray-js/framework-shared';
8
+
9
+ var Text = function (props) {
10
+ var onClick = props.onClick,
11
+ onLongClick = props.onLongClick,
12
+ onTouchCancel = props.onTouchCancel,
13
+ onTouchEnd = props.onTouchEnd,
14
+ onTouchMove = props.onTouchMove,
15
+ onTouchStart = props.onTouchStart,
16
+ restProps = _objectWithoutProperties(props, _excluded);
17
+
18
+ var _useTouch = useTouch({
19
+ onLongClick: onLongClick,
20
+ onTouchStart: onTouchStart,
21
+ onTouchMove: onTouchMove,
22
+ onTouchEnd: onTouchEnd,
23
+ onTouchCancel: onTouchCancel,
24
+ onClick: onClick
25
+ }),
26
+ _useTouch2 = _slicedToArray(_useTouch, 2),
27
+ touching = _useTouch2[0],
28
+ handlers = _useTouch2[1];
29
+
30
+ return /*#__PURE__*/React.createElement(_Text, _extends({}, restProps, handlers));
31
+ };
32
+
33
+ export default Text;
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Text=_interopRequireDefault(require("./Text"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Text.default;exports.default=_default;
@@ -0,0 +1,3 @@
1
+ import Text from './Text';
2
+ export * from './props';
3
+ export default Text;
@@ -0,0 +1 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Text=_interopRequireDefault(require("./Text"));var _props=require("./props");Object.keys(_props).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_props[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _props[key];}});});var _default=_Text.default;exports.default=_default;
@@ -0,0 +1,3 @@
1
+ import Text from './Text';
2
+ export * from './props';
3
+ export default Text;
@@ -0,0 +1,29 @@
1
+ ---
2
+ nav:
3
+ title: 组件
4
+ path: /components
5
+ group:
6
+ title: 基础组件
7
+ ---
8
+
9
+ # Text
10
+
11
+ 文本内容
12
+
13
+ ## 导入
14
+
15
+ ```js
16
+ import { Text } from '@ray-js/components';
17
+ ```
18
+
19
+ ## 代码演示
20
+
21
+ <code src="./demos/simple.tsx" title="基本用法" background="#f2f4f6" />
22
+
23
+ ## Props
24
+
25
+ | 属性 | 类型 | 默认值 | 说明 | 支持平台 |
26
+ | ---------- | ------------------------------ | ------ | ------------ | -------------- |
27
+ | className | string | | 样式名 | RN、涂鸦、微信 |
28
+ | selectable | boolean | false | 文本是否可选 | RN、涂鸦、微信 |
29
+ | onClick | (e: { type: 'click' }) => void | false | 点击事件 | RN、涂鸦、微信 |
@@ -0,0 +1,3 @@
1
+ .selectable {
2
+ user-select: text;
3
+ }