@ray-js/components 1.4.3 → 1.4.5-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (566) hide show
  1. package/package.json +4 -4
  2. package/lib/Button/Button.android.js +0 -1
  3. package/lib/Button/Button.ios.js +0 -1
  4. package/lib/Button/Button.native.d.ts +0 -29
  5. package/lib/Button/Button.tuya.d.ts +0 -4
  6. package/lib/Button/Button.tuya.js +0 -43
  7. package/lib/Button/Button.web.js +0 -57
  8. package/lib/Button/index.android.js +0 -1
  9. package/lib/Button/index.ios.js +0 -1
  10. package/lib/Button/index.md +0 -41
  11. package/lib/Button/index.tuya.js +0 -3
  12. package/lib/Button/index.web.js +0 -3
  13. package/lib/Button/index.wechat.js +0 -3
  14. package/lib/Button/props.android.js +0 -1
  15. package/lib/Button/props.ios.js +0 -1
  16. package/lib/Button/props.tuya.js +0 -10
  17. package/lib/Button/props.web.js +0 -10
  18. package/lib/Button/props.wechat.js +0 -10
  19. package/lib/Checkbox/Checkbox.android.js +0 -1
  20. package/lib/Checkbox/Checkbox.ios.js +0 -1
  21. package/lib/Checkbox/Checkbox.native.d.ts +0 -28
  22. package/lib/Checkbox/Checkbox.tuya.d.ts +0 -4
  23. package/lib/Checkbox/Checkbox.tuya.js +0 -22
  24. package/lib/Checkbox/Checkbox.web.js +0 -36
  25. package/lib/Checkbox/index.android.js +0 -1
  26. package/lib/Checkbox/index.ios.js +0 -1
  27. package/lib/Checkbox/index.md +0 -33
  28. package/lib/Checkbox/index.tuya.js +0 -3
  29. package/lib/Checkbox/index.web.js +0 -3
  30. package/lib/Checkbox/index.wechat.js +0 -3
  31. package/lib/Checkbox/props.android.js +0 -1
  32. package/lib/Checkbox/props.ios.js +0 -1
  33. package/lib/Checkbox/props.tuya.js +0 -1
  34. package/lib/Checkbox/props.web.js +0 -1
  35. package/lib/Checkbox/props.wechat.js +0 -1
  36. package/lib/CheckboxGroup/CheckboxGroup.android.js +0 -1
  37. package/lib/CheckboxGroup/CheckboxGroup.ios.js +0 -1
  38. package/lib/CheckboxGroup/CheckboxGroup.native.d.ts +0 -18
  39. package/lib/CheckboxGroup/CheckboxGroup.tuya.d.ts +0 -4
  40. package/lib/CheckboxGroup/CheckboxGroup.tuya.js +0 -35
  41. package/lib/CheckboxGroup/CheckboxGroup.web.js +0 -9
  42. package/lib/CheckboxGroup/index.android.js +0 -1
  43. package/lib/CheckboxGroup/index.ios.js +0 -1
  44. package/lib/CheckboxGroup/index.md +0 -37
  45. package/lib/CheckboxGroup/index.tuya.js +0 -3
  46. package/lib/CheckboxGroup/index.web.js +0 -3
  47. package/lib/CheckboxGroup/index.wechat.js +0 -3
  48. package/lib/CheckboxGroup/props.android.js +0 -1
  49. package/lib/CheckboxGroup/props.ios.js +0 -1
  50. package/lib/CheckboxGroup/props.tuya.js +0 -1
  51. package/lib/CheckboxGroup/props.web.js +0 -1
  52. package/lib/CheckboxGroup/props.wechat.js +0 -1
  53. package/lib/ClickableSimplified/index.android.js +0 -1
  54. package/lib/ClickableSimplified/index.ios.js +0 -1
  55. package/lib/ClickableSimplified/index.native.d.ts +0 -42
  56. package/lib/DatePicker/DatePicker.android.js +0 -1
  57. package/lib/DatePicker/DatePicker.d.ts +0 -4
  58. package/lib/DatePicker/DatePicker.ios.js +0 -1
  59. package/lib/DatePicker/DatePicker.js +0 -10
  60. package/lib/DatePicker/DatePicker.native.d.ts +0 -34
  61. package/lib/DatePicker/DatePicker.tuya.d.ts +0 -4
  62. package/lib/DatePicker/DatePicker.tuya.js +0 -56
  63. package/lib/DatePicker/DatePicker.web.js +0 -10
  64. package/lib/DatePicker/DatePicker.wechat.d.ts +0 -4
  65. package/lib/DatePicker/DatePicker.wechat.js +0 -56
  66. package/lib/DatePicker/index.android.js +0 -1
  67. package/lib/DatePicker/index.d.ts +0 -3
  68. package/lib/DatePicker/index.ios.js +0 -1
  69. package/lib/DatePicker/index.js +0 -3
  70. package/lib/DatePicker/index.md +0 -36
  71. package/lib/DatePicker/index.module.less +0 -0
  72. package/lib/DatePicker/index.tuya.js +0 -3
  73. package/lib/DatePicker/index.web.js +0 -3
  74. package/lib/DatePicker/index.wechat.js +0 -3
  75. package/lib/DatePicker/props.android.js +0 -1
  76. package/lib/DatePicker/props.d.ts +0 -31
  77. package/lib/DatePicker/props.ios.js +0 -1
  78. package/lib/DatePicker/props.js +0 -7
  79. package/lib/DatePicker/props.tuya.js +0 -7
  80. package/lib/DatePicker/props.web.js +0 -7
  81. package/lib/DatePicker/props.wechat.js +0 -7
  82. package/lib/Icon/Icon.android.js +0 -1
  83. package/lib/Icon/Icon.ios.js +0 -1
  84. package/lib/Icon/Icon.native.d.ts +0 -15
  85. package/lib/Icon/Icon.tuya.d.ts +0 -5
  86. package/lib/Icon/Icon.tuya.js +0 -23
  87. package/lib/Icon/Icon.web.js +0 -23
  88. package/lib/Icon/iconfont/iconfont.android.js +0 -1
  89. package/lib/Icon/iconfont/iconfont.ios.js +0 -1
  90. package/lib/Icon/iconfont/iconfont.tuya.js +0 -47
  91. package/lib/Icon/iconfont/iconfont.web.js +0 -47
  92. package/lib/Icon/iconfont/iconfont.wechat.js +0 -47
  93. package/lib/Icon/iconfont-rn/iconfont.json +0 -189
  94. package/lib/Icon/index.android.js +0 -1
  95. package/lib/Icon/index.ios.js +0 -1
  96. package/lib/Icon/index.md +0 -29
  97. package/lib/Icon/index.tuya.js +0 -3
  98. package/lib/Icon/index.web.js +0 -3
  99. package/lib/Icon/index.wechat.js +0 -3
  100. package/lib/Icon/props.android.js +0 -1
  101. package/lib/Icon/props.ios.js +0 -1
  102. package/lib/Icon/props.tuya.js +0 -5
  103. package/lib/Icon/props.web.js +0 -5
  104. package/lib/Icon/props.wechat.js +0 -5
  105. package/lib/Image/Image.android.js +0 -1
  106. package/lib/Image/Image.ios.js +0 -1
  107. package/lib/Image/Image.native.d.ts +0 -28
  108. package/lib/Image/Image.tuya.d.ts +0 -4
  109. package/lib/Image/Image.tuya.js +0 -23
  110. package/lib/Image/Image.web.js +0 -92
  111. package/lib/Image/index.android.js +0 -1
  112. package/lib/Image/index.ios.js +0 -1
  113. package/lib/Image/index.md +0 -50
  114. package/lib/Image/index.tuya.js +0 -3
  115. package/lib/Image/index.web.js +0 -3
  116. package/lib/Image/index.wechat.js +0 -3
  117. package/lib/Image/props.android.js +0 -1
  118. package/lib/Image/props.ios.js +0 -1
  119. package/lib/Image/props.tuya.js +0 -4
  120. package/lib/Image/props.web.js +0 -4
  121. package/lib/Image/props.wechat.js +0 -4
  122. package/lib/Input/Input.android.js +0 -1
  123. package/lib/Input/Input.ios.js +0 -1
  124. package/lib/Input/Input.native.d.ts +0 -32
  125. package/lib/Input/Input.tuya.d.ts +0 -4
  126. package/lib/Input/Input.tuya.js +0 -86
  127. package/lib/Input/Input.web.js +0 -100
  128. package/lib/Input/index.android.js +0 -1
  129. package/lib/Input/index.ios.js +0 -1
  130. package/lib/Input/index.md +0 -43
  131. package/lib/Input/index.tuya.js +0 -3
  132. package/lib/Input/index.web.js +0 -3
  133. package/lib/Input/index.wechat.js +0 -3
  134. package/lib/Input/props.android.js +0 -1
  135. package/lib/Input/props.ios.js +0 -1
  136. package/lib/Input/props.tuya.js +0 -7
  137. package/lib/Input/props.web.js +0 -7
  138. package/lib/Input/props.wechat.js +0 -7
  139. package/lib/Label/Label.android.js +0 -1
  140. package/lib/Label/Label.ios.js +0 -1
  141. package/lib/Label/Label.native.d.ts +0 -4
  142. package/lib/Label/Label.tuya.d.ts +0 -4
  143. package/lib/Label/Label.tuya.js +0 -21
  144. package/lib/Label/Label.web.js +0 -24
  145. package/lib/Label/index.android.js +0 -1
  146. package/lib/Label/index.ios.js +0 -1
  147. package/lib/Label/index.tuya.js +0 -3
  148. package/lib/Label/index.web.js +0 -3
  149. package/lib/Label/index.wechat.js +0 -3
  150. package/lib/Label/props.android.js +0 -1
  151. package/lib/Label/props.ios.js +0 -1
  152. package/lib/Label/props.tuya.js +0 -1
  153. package/lib/Label/props.web.js +0 -1
  154. package/lib/Label/props.wechat.js +0 -1
  155. package/lib/LinearGradient/LinearGradient.android.js +0 -1
  156. package/lib/LinearGradient/LinearGradient.d.ts +0 -4
  157. package/lib/LinearGradient/LinearGradient.ios.js +0 -1
  158. package/lib/LinearGradient/LinearGradient.js +0 -8
  159. package/lib/LinearGradient/LinearGradient.native.d.ts +0 -16
  160. package/lib/LinearGradient/LinearGradient.tuya.d.ts +0 -4
  161. package/lib/LinearGradient/LinearGradient.tuya.js +0 -56
  162. package/lib/LinearGradient/LinearGradient.web.js +0 -8
  163. package/lib/LinearGradient/LinearGradient.wechat.d.ts +0 -4
  164. package/lib/LinearGradient/LinearGradient.wechat.js +0 -53
  165. package/lib/LinearGradient/index.android.js +0 -1
  166. package/lib/LinearGradient/index.d.ts +0 -3
  167. package/lib/LinearGradient/index.ios.js +0 -1
  168. package/lib/LinearGradient/index.js +0 -3
  169. package/lib/LinearGradient/index.md +0 -33
  170. package/lib/LinearGradient/index.module.less +0 -7
  171. package/lib/LinearGradient/index.tuya.js +0 -3
  172. package/lib/LinearGradient/index.web.js +0 -3
  173. package/lib/LinearGradient/index.wechat.js +0 -3
  174. package/lib/LinearGradient/props.android.js +0 -1
  175. package/lib/LinearGradient/props.d.ts +0 -48
  176. package/lib/LinearGradient/props.ios.js +0 -1
  177. package/lib/LinearGradient/props.js +0 -11
  178. package/lib/LinearGradient/props.tuya.js +0 -11
  179. package/lib/LinearGradient/props.web.js +0 -11
  180. package/lib/LinearGradient/props.wechat.js +0 -11
  181. package/lib/Modal/Modal.android.js +0 -1
  182. package/lib/Modal/Modal.d.ts +0 -4
  183. package/lib/Modal/Modal.ios.js +0 -1
  184. package/lib/Modal/Modal.js +0 -10
  185. package/lib/Modal/Modal.native.d.ts +0 -24
  186. package/lib/Modal/Modal.tuya.d.ts +0 -4
  187. package/lib/Modal/Modal.tuya.js +0 -75
  188. package/lib/Modal/Modal.web.js +0 -10
  189. package/lib/Modal/Modal.wechat.d.ts +0 -4
  190. package/lib/Modal/Modal.wechat.js +0 -75
  191. package/lib/Modal/index.android.js +0 -1
  192. package/lib/Modal/index.ios.js +0 -1
  193. package/lib/Modal/index.md +0 -32
  194. package/lib/Modal/index.module.less +0 -46
  195. package/lib/Modal/index.tuya.js +0 -3
  196. package/lib/Modal/index.wechat.js +0 -3
  197. package/lib/Modal/props.android.js +0 -1
  198. package/lib/Modal/props.d.ts +0 -16
  199. package/lib/Modal/props.ios.js +0 -1
  200. package/lib/Modal/props.js +0 -1
  201. package/lib/Modal/props.tuya.js +0 -1
  202. package/lib/Modal/props.web.js +0 -1
  203. package/lib/Modal/props.wechat.js +0 -1
  204. package/lib/Motion/Fade/index.android.js +0 -1
  205. package/lib/Motion/Fade/index.d.ts +0 -4
  206. package/lib/Motion/Fade/index.ios.js +0 -1
  207. package/lib/Motion/Fade/index.js +0 -28
  208. package/lib/Motion/Fade/index.native.d.ts +0 -2
  209. package/lib/Motion/Fade/index.tuya.d.ts +0 -4
  210. package/lib/Motion/Fade/index.tuya.js +0 -78
  211. package/lib/Motion/Fade/index.web.js +0 -28
  212. package/lib/Motion/Fade/index.wechat.d.ts +0 -4
  213. package/lib/Motion/Fade/index.wechat.js +0 -78
  214. package/lib/Motion/PullUp/index.android.js +0 -1
  215. package/lib/Motion/PullUp/index.d.ts +0 -4
  216. package/lib/Motion/PullUp/index.ios.js +0 -1
  217. package/lib/Motion/PullUp/index.js +0 -28
  218. package/lib/Motion/PullUp/index.native.d.ts +0 -2
  219. package/lib/Motion/PullUp/index.tuya.d.ts +0 -4
  220. package/lib/Motion/PullUp/index.tuya.js +0 -82
  221. package/lib/Motion/PullUp/index.web.js +0 -28
  222. package/lib/Motion/PullUp/index.wechat.d.ts +0 -4
  223. package/lib/Motion/PullUp/index.wechat.js +0 -82
  224. package/lib/Motion/PushDown/index.android.js +0 -1
  225. package/lib/Motion/PushDown/index.d.ts +0 -4
  226. package/lib/Motion/PushDown/index.ios.js +0 -1
  227. package/lib/Motion/PushDown/index.js +0 -28
  228. package/lib/Motion/PushDown/index.native.d.ts +0 -2
  229. package/lib/Motion/PushDown/index.tuya.d.ts +0 -4
  230. package/lib/Motion/PushDown/index.tuya.js +0 -82
  231. package/lib/Motion/PushDown/index.web.js +0 -28
  232. package/lib/Motion/PushDown/index.wechat.d.ts +0 -4
  233. package/lib/Motion/PushDown/index.wechat.js +0 -82
  234. package/lib/Motion/ScaleFadeIn/index.android.js +0 -1
  235. package/lib/Motion/ScaleFadeIn/index.d.ts +0 -4
  236. package/lib/Motion/ScaleFadeIn/index.ios.js +0 -1
  237. package/lib/Motion/ScaleFadeIn/index.js +0 -28
  238. package/lib/Motion/ScaleFadeIn/index.native.d.ts +0 -2
  239. package/lib/Motion/ScaleFadeIn/index.tuya.d.ts +0 -4
  240. package/lib/Motion/ScaleFadeIn/index.tuya.js +0 -83
  241. package/lib/Motion/ScaleFadeIn/index.web.js +0 -28
  242. package/lib/Motion/ScaleFadeIn/index.wechat.d.ts +0 -4
  243. package/lib/Motion/ScaleFadeIn/index.wechat.js +0 -83
  244. package/lib/Motion/ScalePullDown/index.android.js +0 -1
  245. package/lib/Motion/ScalePullDown/index.d.ts +0 -4
  246. package/lib/Motion/ScalePullDown/index.ios.js +0 -1
  247. package/lib/Motion/ScalePullDown/index.js +0 -28
  248. package/lib/Motion/ScalePullDown/index.native.d.ts +0 -2
  249. package/lib/Motion/ScalePullDown/index.tuya.d.ts +0 -4
  250. package/lib/Motion/ScalePullDown/index.tuya.js +0 -103
  251. package/lib/Motion/ScalePullDown/index.web.js +0 -28
  252. package/lib/Motion/ScalePullDown/index.wechat.d.ts +0 -4
  253. package/lib/Motion/ScalePullDown/index.wechat.js +0 -103
  254. package/lib/Motion/index.android.js +0 -1
  255. package/lib/Motion/index.d.ts +0 -14
  256. package/lib/Motion/index.ios.js +0 -1
  257. package/lib/Motion/index.js +0 -14
  258. package/lib/Motion/index.md +0 -68
  259. package/lib/Motion/index.tuya.js +0 -14
  260. package/lib/Motion/index.web.js +0 -14
  261. package/lib/Motion/index.wechat.js +0 -14
  262. package/lib/Motion/props.android.js +0 -1
  263. package/lib/Motion/props.d.ts +0 -92
  264. package/lib/Motion/props.ios.js +0 -1
  265. package/lib/Motion/props.js +0 -62
  266. package/lib/Motion/props.tuya.js +0 -62
  267. package/lib/Motion/props.web.js +0 -62
  268. package/lib/Motion/props.wechat.js +0 -62
  269. package/lib/PageContainer/PageContainer.android.js +0 -1
  270. package/lib/PageContainer/PageContainer.ios.js +0 -1
  271. package/lib/PageContainer/PageContainer.tuya.d.ts +0 -3
  272. package/lib/PageContainer/PageContainer.tuya.js +0 -8
  273. package/lib/PageContainer/PageContainer.web.js +0 -10
  274. package/lib/PageContainer/index.android.js +0 -1
  275. package/lib/PageContainer/index.ios.js +0 -1
  276. package/lib/PageContainer/index.md +0 -42
  277. package/lib/PageContainer/index.tuya.js +0 -3
  278. package/lib/PageContainer/index.web.js +0 -3
  279. package/lib/PageContainer/index.wechat.js +0 -3
  280. package/lib/PageContainer/props.android.js +0 -1
  281. package/lib/PageContainer/props.ios.js +0 -1
  282. package/lib/PageContainer/props.tuya.js +0 -9
  283. package/lib/PageContainer/props.web.js +0 -9
  284. package/lib/PageContainer/props.wechat.js +0 -9
  285. package/lib/Picker/Picker.android.js +0 -1
  286. package/lib/Picker/Picker.ios.js +0 -1
  287. package/lib/Picker/Picker.native.d.ts +0 -22
  288. package/lib/Picker/Picker.tuya.d.ts +0 -4
  289. package/lib/Picker/Picker.tuya.js +0 -69
  290. package/lib/Picker/Picker.web.js +0 -11
  291. package/lib/Picker/index.android.js +0 -1
  292. package/lib/Picker/index.ios.js +0 -1
  293. package/lib/Picker/index.md +0 -35
  294. package/lib/Picker/index.tuya.js +0 -3
  295. package/lib/Picker/index.web.js +0 -3
  296. package/lib/Picker/index.wechat.js +0 -3
  297. package/lib/Picker/props.android.js +0 -1
  298. package/lib/Picker/props.d.ts +0 -32
  299. package/lib/Picker/props.ios.js +0 -1
  300. package/lib/Picker/props.js +0 -4
  301. package/lib/Picker/props.tuya.js +0 -4
  302. package/lib/Picker/props.web.js +0 -4
  303. package/lib/Picker/props.wechat.js +0 -4
  304. package/lib/PickerView/PickerView.android.js +0 -1
  305. package/lib/PickerView/PickerView.ios.js +0 -1
  306. package/lib/PickerView/PickerView.native.d.ts +0 -31
  307. package/lib/PickerView/PickerView.tuya.d.ts +0 -4
  308. package/lib/PickerView/PickerView.tuya.js +0 -71
  309. package/lib/PickerView/PickerView.web.js +0 -11
  310. package/lib/PickerView/index.android.js +0 -1
  311. package/lib/PickerView/index.ios.js +0 -1
  312. package/lib/PickerView/index.md +0 -32
  313. package/lib/PickerView/index.tuya.js +0 -3
  314. package/lib/PickerView/index.web.js +0 -3
  315. package/lib/PickerView/index.wechat.js +0 -3
  316. package/lib/PickerView/props.android.js +0 -1
  317. package/lib/PickerView/props.ios.js +0 -1
  318. package/lib/PickerView/props.tuya.js +0 -1
  319. package/lib/PickerView/props.web.js +0 -1
  320. package/lib/PickerView/props.wechat.js +0 -1
  321. package/lib/RadialGradient/RadialGradient.android.js +0 -1
  322. package/lib/RadialGradient/RadialGradient.d.ts +0 -4
  323. package/lib/RadialGradient/RadialGradient.ios.js +0 -1
  324. package/lib/RadialGradient/RadialGradient.js +0 -8
  325. package/lib/RadialGradient/RadialGradient.native.d.ts +0 -17
  326. package/lib/RadialGradient/RadialGradient.tuya.d.ts +0 -4
  327. package/lib/RadialGradient/RadialGradient.tuya.js +0 -36
  328. package/lib/RadialGradient/RadialGradient.web.js +0 -8
  329. package/lib/RadialGradient/RadialGradient.wechat.d.ts +0 -4
  330. package/lib/RadialGradient/RadialGradient.wechat.js +0 -36
  331. package/lib/RadialGradient/index.android.js +0 -1
  332. package/lib/RadialGradient/index.d.ts +0 -3
  333. package/lib/RadialGradient/index.ios.js +0 -1
  334. package/lib/RadialGradient/index.js +0 -3
  335. package/lib/RadialGradient/index.md +0 -33
  336. package/lib/RadialGradient/index.module.less +0 -7
  337. package/lib/RadialGradient/index.tuya.js +0 -3
  338. package/lib/RadialGradient/index.web.js +0 -3
  339. package/lib/RadialGradient/index.wechat.js +0 -3
  340. package/lib/RadialGradient/props.android.js +0 -1
  341. package/lib/RadialGradient/props.d.ts +0 -54
  342. package/lib/RadialGradient/props.ios.js +0 -1
  343. package/lib/RadialGradient/props.js +0 -16
  344. package/lib/RadialGradient/props.tuya.js +0 -16
  345. package/lib/RadialGradient/props.web.js +0 -16
  346. package/lib/RadialGradient/props.wechat.js +0 -16
  347. package/lib/Radio/Radio.android.js +0 -1
  348. package/lib/Radio/Radio.ios.js +0 -1
  349. package/lib/Radio/Radio.native.d.ts +0 -30
  350. package/lib/Radio/Radio.tuya.d.ts +0 -4
  351. package/lib/Radio/Radio.tuya.js +0 -22
  352. package/lib/Radio/Radio.web.js +0 -13
  353. package/lib/Radio/index.android.js +0 -1
  354. package/lib/Radio/index.ios.js +0 -1
  355. package/lib/Radio/index.md +0 -30
  356. package/lib/Radio/index.tuya.js +0 -3
  357. package/lib/Radio/index.web.js +0 -3
  358. package/lib/Radio/index.wechat.js +0 -3
  359. package/lib/Radio/props.android.js +0 -1
  360. package/lib/Radio/props.ios.js +0 -1
  361. package/lib/Radio/props.tuya.js +0 -1
  362. package/lib/Radio/props.web.js +0 -1
  363. package/lib/Radio/props.wechat.js +0 -1
  364. package/lib/RadioGroup/RadioGroup.android.js +0 -1
  365. package/lib/RadioGroup/RadioGroup.ios.js +0 -1
  366. package/lib/RadioGroup/RadioGroup.native.d.ts +0 -18
  367. package/lib/RadioGroup/RadioGroup.tuya.d.ts +0 -4
  368. package/lib/RadioGroup/RadioGroup.tuya.js +0 -35
  369. package/lib/RadioGroup/RadioGroup.web.js +0 -9
  370. package/lib/RadioGroup/index.android.js +0 -1
  371. package/lib/RadioGroup/index.ios.js +0 -1
  372. package/lib/RadioGroup/index.md +0 -39
  373. package/lib/RadioGroup/index.tuya.js +0 -3
  374. package/lib/RadioGroup/index.web.js +0 -3
  375. package/lib/RadioGroup/index.wechat.js +0 -3
  376. package/lib/RadioGroup/props.android.js +0 -1
  377. package/lib/RadioGroup/props.ios.js +0 -1
  378. package/lib/RadioGroup/props.tuya.js +0 -1
  379. package/lib/RadioGroup/props.web.js +0 -1
  380. package/lib/RadioGroup/props.wechat.js +0 -1
  381. package/lib/ScrollView/ScrollView.android.js +0 -1
  382. package/lib/ScrollView/ScrollView.ios.js +0 -1
  383. package/lib/ScrollView/ScrollView.native.d.ts +0 -57
  384. package/lib/ScrollView/ScrollView.tuya.d.ts +0 -4
  385. package/lib/ScrollView/ScrollView.tuya.js +0 -20
  386. package/lib/ScrollView/ScrollView.web.js +0 -169
  387. package/lib/ScrollView/index.android.js +0 -1
  388. package/lib/ScrollView/index.ios.js +0 -1
  389. package/lib/ScrollView/index.md +0 -37
  390. package/lib/ScrollView/index.tuya.js +0 -3
  391. package/lib/ScrollView/index.web.js +0 -3
  392. package/lib/ScrollView/index.wechat.js +0 -3
  393. package/lib/ScrollView/props.android.js +0 -1
  394. package/lib/ScrollView/props.d.ts +0 -43
  395. package/lib/ScrollView/props.ios.js +0 -1
  396. package/lib/ScrollView/props.js +0 -5
  397. package/lib/ScrollView/props.tuya.js +0 -5
  398. package/lib/ScrollView/props.web.js +0 -5
  399. package/lib/ScrollView/props.wechat.js +0 -5
  400. package/lib/Slider/Slider.android.js +0 -1
  401. package/lib/Slider/Slider.ios.js +0 -1
  402. package/lib/Slider/Slider.native.d.ts +0 -21
  403. package/lib/Slider/Slider.tuya.d.ts +0 -4
  404. package/lib/Slider/Slider.tuya.js +0 -37
  405. package/lib/Slider/Slider.web.js +0 -20
  406. package/lib/Slider/index.android.js +0 -1
  407. package/lib/Slider/index.ios.js +0 -1
  408. package/lib/Slider/index.md +0 -63
  409. package/lib/Slider/index.tuya.js +0 -3
  410. package/lib/Slider/index.web.js +0 -3
  411. package/lib/Slider/index.wechat.js +0 -3
  412. package/lib/Slider/props.android.js +0 -1
  413. package/lib/Slider/props.ios.js +0 -1
  414. package/lib/Slider/props.tuya.js +0 -11
  415. package/lib/Slider/props.web.js +0 -11
  416. package/lib/Slider/props.wechat.js +0 -11
  417. package/lib/Swiper/Swiper.android.js +0 -1
  418. package/lib/Swiper/Swiper.ios.js +0 -1
  419. package/lib/Swiper/Swiper.native.d.ts +0 -6
  420. package/lib/Swiper/Swiper.tuya.d.ts +0 -7
  421. package/lib/Swiper/Swiper.tuya.js +0 -54
  422. package/lib/Swiper/Swiper.web.js +0 -10
  423. package/lib/Swiper/index.android.js +0 -1
  424. package/lib/Swiper/index.ios.js +0 -1
  425. package/lib/Swiper/index.md +0 -44
  426. package/lib/Swiper/index.tuya.js +0 -3
  427. package/lib/Swiper/index.web.js +0 -3
  428. package/lib/Swiper/index.wechat.js +0 -3
  429. package/lib/Swiper/props.android.js +0 -1
  430. package/lib/Swiper/props.ios.js +0 -1
  431. package/lib/Swiper/props.tuya.js +0 -16
  432. package/lib/Swiper/props.web.js +0 -16
  433. package/lib/Swiper/props.wechat.js +0 -16
  434. package/lib/Switch/Switch.android.js +0 -1
  435. package/lib/Switch/Switch.ios.js +0 -1
  436. package/lib/Switch/Switch.native.d.ts +0 -25
  437. package/lib/Switch/Switch.tuya.d.ts +0 -4
  438. package/lib/Switch/Switch.tuya.js +0 -35
  439. package/lib/Switch/Switch.web.js +0 -13
  440. package/lib/Switch/index.android.js +0 -1
  441. package/lib/Switch/index.ios.js +0 -1
  442. package/lib/Switch/index.md +0 -31
  443. package/lib/Switch/index.tuya.js +0 -3
  444. package/lib/Switch/index.web.js +0 -3
  445. package/lib/Switch/index.wechat.js +0 -3
  446. package/lib/Switch/props.android.js +0 -1
  447. package/lib/Switch/props.ios.js +0 -1
  448. package/lib/Switch/props.tuya.js +0 -5
  449. package/lib/Switch/props.web.js +0 -5
  450. package/lib/Switch/props.wechat.js +0 -5
  451. package/lib/Text/Text.android.js +0 -1
  452. package/lib/Text/Text.ios.js +0 -1
  453. package/lib/Text/Text.native.d.ts +0 -8
  454. package/lib/Text/Text.tuya.d.ts +0 -4
  455. package/lib/Text/Text.tuya.js +0 -8
  456. package/lib/Text/Text.web.js +0 -41
  457. package/lib/Text/index.android.js +0 -1
  458. package/lib/Text/index.ios.js +0 -1
  459. package/lib/Text/index.md +0 -29
  460. package/lib/Text/index.tuya.js +0 -3
  461. package/lib/Text/index.web.js +0 -3
  462. package/lib/Text/index.wechat.js +0 -3
  463. package/lib/Text/props.android.js +0 -1
  464. package/lib/Text/props.ios.js +0 -1
  465. package/lib/Text/props.tuya.js +0 -1
  466. package/lib/Text/props.web.js +0 -1
  467. package/lib/Text/props.wechat.js +0 -1
  468. package/lib/Textarea/Textarea.android.js +0 -1
  469. package/lib/Textarea/Textarea.ios.js +0 -1
  470. package/lib/Textarea/Textarea.native.d.ts +0 -4
  471. package/lib/Textarea/Textarea.tuya.d.ts +0 -4
  472. package/lib/Textarea/Textarea.tuya.js +0 -60
  473. package/lib/Textarea/Textarea.web.js +0 -120
  474. package/lib/Textarea/index.android.js +0 -1
  475. package/lib/Textarea/index.ios.js +0 -1
  476. package/lib/Textarea/index.md +0 -46
  477. package/lib/Textarea/index.tuya.js +0 -3
  478. package/lib/Textarea/index.web.js +0 -3
  479. package/lib/Textarea/index.wechat.js +0 -3
  480. package/lib/Textarea/props.android.js +0 -1
  481. package/lib/Textarea/props.ios.js +0 -1
  482. package/lib/Textarea/props.tuya.js +0 -1
  483. package/lib/Textarea/props.web.js +0 -1
  484. package/lib/Textarea/props.wechat.js +0 -1
  485. package/lib/TimePicker/TimePicker.android.js +0 -1
  486. package/lib/TimePicker/TimePicker.d.ts +0 -4
  487. package/lib/TimePicker/TimePicker.ios.js +0 -1
  488. package/lib/TimePicker/TimePicker.js +0 -10
  489. package/lib/TimePicker/TimePicker.native.d.ts +0 -39
  490. package/lib/TimePicker/TimePicker.tuya.d.ts +0 -4
  491. package/lib/TimePicker/TimePicker.tuya.js +0 -26
  492. package/lib/TimePicker/TimePicker.web.js +0 -10
  493. package/lib/TimePicker/TimePicker.wechat.d.ts +0 -4
  494. package/lib/TimePicker/TimePicker.wechat.js +0 -56
  495. package/lib/TimePicker/index.android.js +0 -1
  496. package/lib/TimePicker/index.d.ts +0 -3
  497. package/lib/TimePicker/index.ios.js +0 -1
  498. package/lib/TimePicker/index.js +0 -3
  499. package/lib/TimePicker/index.md +0 -35
  500. package/lib/TimePicker/index.module.less +0 -0
  501. package/lib/TimePicker/index.tuya.js +0 -3
  502. package/lib/TimePicker/index.web.js +0 -3
  503. package/lib/TimePicker/index.wechat.js +0 -3
  504. package/lib/TimePicker/props.android.js +0 -1
  505. package/lib/TimePicker/props.d.ts +0 -28
  506. package/lib/TimePicker/props.ios.js +0 -1
  507. package/lib/TimePicker/props.js +0 -6
  508. package/lib/TimePicker/props.tuya.js +0 -6
  509. package/lib/TimePicker/props.web.js +0 -6
  510. package/lib/TimePicker/props.wechat.js +0 -6
  511. package/lib/View/View.android.js +0 -1
  512. package/lib/View/View.ios.js +0 -1
  513. package/lib/View/View.native.d.ts +0 -2
  514. package/lib/View/View.tuya.d.ts +0 -4
  515. package/lib/View/View.tuya.js +0 -76
  516. package/lib/View/View.web.js +0 -70
  517. package/lib/View/index.android.js +0 -1
  518. package/lib/View/index.ios.js +0 -1
  519. package/lib/View/index.md +0 -33
  520. package/lib/View/index.tuya.js +0 -3
  521. package/lib/View/index.web.js +0 -3
  522. package/lib/View/index.wechat.js +0 -3
  523. package/lib/View/props.android.js +0 -1
  524. package/lib/View/props.ios.js +0 -1
  525. package/lib/View/props.tuya.js +0 -4
  526. package/lib/View/props.web.js +0 -4
  527. package/lib/View/props.wechat.js +0 -4
  528. package/lib/assets/icons.android.js +0 -1
  529. package/lib/assets/icons.ios.js +0 -1
  530. package/lib/assets/icons.tuya.js +0 -7
  531. package/lib/assets/icons.web.js +0 -7
  532. package/lib/assets/icons.wechat.js +0 -7
  533. package/lib/core/index.android.js +0 -1
  534. package/lib/core/index.ios.js +0 -1
  535. package/lib/core/index.tuya.js +0 -25
  536. package/lib/core/index.web.js +0 -25
  537. package/lib/core/index.wechat.js +0 -25
  538. package/lib/index.android.js +0 -1
  539. package/lib/index.ios.js +0 -1
  540. package/lib/index.tuya.js +0 -25
  541. package/lib/index.web.js +0 -25
  542. package/lib/index.wechat.js +0 -25
  543. package/lib/types/event.android.js +0 -0
  544. package/lib/types/event.ios.js +0 -0
  545. package/lib/types/event.tuya.js +0 -1
  546. package/lib/types/event.web.js +0 -1
  547. package/lib/types/event.wechat.js +0 -1
  548. package/lib/types/index.android.js +0 -1
  549. package/lib/types/index.ios.js +0 -1
  550. package/lib/types/index.tuya.js +0 -9
  551. package/lib/types/index.web.js +0 -9
  552. package/lib/types/index.wechat.js +0 -9
  553. package/lib/utils/index.android.js +0 -1
  554. package/lib/utils/index.d.ts +0 -10
  555. package/lib/utils/index.ios.js +0 -1
  556. package/lib/utils/index.js +0 -90
  557. package/lib/utils/index.tuya.js +0 -90
  558. package/lib/utils/index.web.js +0 -90
  559. package/lib/utils/index.wechat.js +0 -90
  560. package/lib/utils/interface.android.js +0 -1
  561. package/lib/utils/interface.d.ts +0 -20
  562. package/lib/utils/interface.ios.js +0 -1
  563. package/lib/utils/interface.js +0 -1
  564. package/lib/utils/interface.tuya.js +0 -1
  565. package/lib/utils/interface.web.js +0 -1
  566. package/lib/utils/interface.wechat.js +0 -1
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import { ITYModalProps } from './props';
4
- export interface IProps extends Omit<ITYModalProps, 'overlayStyle' | 'customStyle'> {
5
- overlayStyle?: StyleProp<ViewStyle>;
6
- customStyle?: StyleProp<ViewStyle>;
7
- }
8
- export interface ITYModalState {
9
- visible: boolean;
10
- }
11
- declare class TYModal extends React.Component<IProps, ITYModalState> {
12
- static defaultProps: {
13
- position: string;
14
- onClickOverlay: null;
15
- overlayStyle: null;
16
- overlay: boolean;
17
- customStyle: null;
18
- };
19
- constructor(props: IProps);
20
- componentDidUpdate(prevProps: Readonly<IProps>): void;
21
- _handleMaskPress: () => void;
22
- render(): React.ReactNode;
23
- }
24
- export default TYModal;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { IModalProps } from './props';
3
- declare const Modal: React.FC<IModalProps>;
4
- export default Modal;
@@ -1,75 +0,0 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
- import * as React from 'react';
5
- import clsx from 'clsx';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
- import View from '../View';
8
- import styles from './index.module.less';
9
- var DURATION = 300; // Modal动画时长,不可props更改
10
-
11
- var Modal = function (props) {
12
- var _clsx;
13
-
14
- var isPreShow = React.useRef(false);
15
- var id = props.id,
16
- _props$show = props.show,
17
- show = _props$show === void 0 ? false : _props$show,
18
- _props$overlay = props.overlay,
19
- overlay = _props$overlay === void 0 ? false : _props$overlay,
20
- _props$onClickOverlay = props.onClickOverlay,
21
- onClickOverlay = _props$onClickOverlay === void 0 ? function () {} : _props$onClickOverlay,
22
- overlayStyle = props.overlayStyle,
23
- customStyle = props.customStyle,
24
- _props$position = props.position,
25
- position = _props$position === void 0 ? 'top' : _props$position;
26
-
27
- var _React$useState = React.useState(show),
28
- _React$useState2 = _slicedToArray(_React$useState, 2),
29
- isShowModalOpacity = _React$useState2[0],
30
- setIsShowOpacity = _React$useState2[1];
31
-
32
- var _React$useState3 = React.useState(show),
33
- _React$useState4 = _slicedToArray(_React$useState3, 2),
34
- isShowModalDisplay = _React$useState4[0],
35
- setIsShowDisplay = _React$useState4[1];
36
-
37
- React.useEffect(function () {
38
- if (show) {
39
- isPreShow.current = true;
40
- setIsShowDisplay(true);
41
- setTimeout(function () {
42
- setIsShowOpacity(true);
43
- }, 10);
44
- } else if (isPreShow.current) {
45
- isPreShow.current = false;
46
- setTimeout(function () {
47
- setIsShowDisplay(false);
48
- }, DURATION);
49
- setIsShowOpacity(false);
50
- }
51
- }, [show]);
52
-
53
- var stopPropagation = function (e) {
54
- e.origin.stopPropagation();
55
- };
56
-
57
- return /*#__PURE__*/React.createElement(View, {
58
- id: id,
59
- className: clsx(styles.modalWrp, styles[position], (_clsx = {}, _defineProperty(_clsx, styles.showModalOpacity, isShowModalOpacity), _defineProperty(_clsx, styles.hideModalOpacity, !isShowModalOpacity), _defineProperty(_clsx, styles.showModalDisplay, isShowModalDisplay), _defineProperty(_clsx, styles.hideModalDisplay, !isShowModalDisplay), _defineProperty(_clsx, styles.opacityOverlay, !overlay), _clsx)),
60
- style: inlineStyle(_objectSpread({}, overlayStyle)),
61
- onClick: function handleMaskClick(e) {
62
- e.origin.stopPropagation();
63
- onClickOverlay({
64
- type: 'clickoverlay'
65
- });
66
- },
67
- onTouchMove: stopPropagation
68
- }, isShowModalOpacity && /*#__PURE__*/React.createElement(View, {
69
- className: clsx(styles.container),
70
- onClick: stopPropagation
71
- }, props.children));
72
- };
73
-
74
- Modal.displayName = 'Modal';
75
- export default Modal;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
-
3
- // import styles from './index.module.less';
4
- var Modal = function () {
5
- // const { disabled, className, style } = props;
6
- return /*#__PURE__*/React.createElement("div", null, "\u6682\u672A\u5B9E\u73B0");
7
- };
8
-
9
- Modal.displayName = 'Modal';
10
- export default Modal;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { IModalProps } from './props';
3
- declare const Modal: React.FC<IModalProps>;
4
- export default Modal;
@@ -1,75 +0,0 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
- import * as React from 'react';
5
- import clsx from 'clsx';
6
- import { inlineStyle } from '@ray-js/framework-shared';
7
- import View from '../View';
8
- import styles from './index.module.less';
9
- var DURATION = 300; // Modal动画时长,不可props更改
10
-
11
- var Modal = function (props) {
12
- var _clsx;
13
-
14
- var isPreShow = React.useRef(false);
15
- var id = props.id,
16
- _props$show = props.show,
17
- show = _props$show === void 0 ? false : _props$show,
18
- _props$overlay = props.overlay,
19
- overlay = _props$overlay === void 0 ? false : _props$overlay,
20
- _props$onClickOverlay = props.onClickOverlay,
21
- onClickOverlay = _props$onClickOverlay === void 0 ? function () {} : _props$onClickOverlay,
22
- overlayStyle = props.overlayStyle,
23
- customStyle = props.customStyle,
24
- _props$position = props.position,
25
- position = _props$position === void 0 ? 'top' : _props$position;
26
-
27
- var _React$useState = React.useState(show),
28
- _React$useState2 = _slicedToArray(_React$useState, 2),
29
- isShowModalOpacity = _React$useState2[0],
30
- setIsShowOpacity = _React$useState2[1];
31
-
32
- var _React$useState3 = React.useState(show),
33
- _React$useState4 = _slicedToArray(_React$useState3, 2),
34
- isShowModalDisplay = _React$useState4[0],
35
- setIsShowDisplay = _React$useState4[1];
36
-
37
- React.useEffect(function () {
38
- if (show) {
39
- isPreShow.current = true;
40
- setIsShowDisplay(true);
41
- setTimeout(function () {
42
- setIsShowOpacity(true);
43
- }, 10);
44
- } else if (isPreShow.current) {
45
- isPreShow.current = false;
46
- setTimeout(function () {
47
- setIsShowDisplay(false);
48
- }, DURATION);
49
- setIsShowOpacity(false);
50
- }
51
- }, [show]);
52
-
53
- var stopPropagation = function (e) {
54
- e.origin.stopPropagation();
55
- };
56
-
57
- return /*#__PURE__*/React.createElement(View, {
58
- id: id,
59
- className: clsx(styles.modalWrp, styles[position], (_clsx = {}, _defineProperty(_clsx, styles.showModalOpacity, isShowModalOpacity), _defineProperty(_clsx, styles.hideModalOpacity, !isShowModalOpacity), _defineProperty(_clsx, styles.showModalDisplay, isShowModalDisplay), _defineProperty(_clsx, styles.hideModalDisplay, !isShowModalDisplay), _defineProperty(_clsx, styles.opacityOverlay, !overlay), _clsx)),
60
- style: inlineStyle(_objectSpread({}, overlayStyle)),
61
- onTouchMove: stopPropagation,
62
- onClick: function handleMaskClick(e) {
63
- e.origin.stopPropagation();
64
- onClickOverlay({
65
- type: 'clickoverlay'
66
- });
67
- }
68
- }, isShowModalOpacity && /*#__PURE__*/React.createElement(View, {
69
- className: clsx(styles.container),
70
- onClick: stopPropagation
71
- }, props.children));
72
- };
73
-
74
- Modal.displayName = 'Modal';
75
- export default Modal;
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Modal=_interopRequireDefault(require("./Modal"));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=_Modal.default;exports.default=_default;
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={};exports.default=void 0;var _Modal=_interopRequireDefault(require("./Modal"));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=_Modal.default;exports.default=_default;
@@ -1,32 +0,0 @@
1
- ---
2
- nav:
3
- title: 组件
4
- path: /components
5
- group:
6
- title: 视图容器
7
- ---
8
-
9
- # Modal
10
-
11
- 遮罩弹框
12
-
13
- ## 导入
14
-
15
- ```js
16
- import { Modal } from '@ray-js/components';
17
- ```
18
-
19
- ## 示例代码
20
-
21
- <code src="./demos/bottom.tsx" title="基本使用" background="#f2f4f6"/>
22
-
23
- ## Props
24
-
25
- | 属性 | 类型 | 默认值 | 说明 | 支持平台 |
26
- | --- | --- | --- | --- | --- |
27
- | show | boolean | false | 是否显示弹框 | RN、涂鸦、微信 |
28
- | overlay | boolean | true | 是否显示遮罩 | RN、涂鸦、微信 |
29
- | position | 'top' or 'center' or 'bottom' | 'center' | 弹出层弹出位置 | RN、涂鸦、微信 |
30
- | overlayStyle | React.CSSProperties | | 自定义遮罩层样式 | RN、涂鸦、微信 |
31
- | customStyle | React.CSSProperties | | 自定义弹出层样式 | RN、涂鸦、微信 |
32
- | onClickOverlay | (event: { type: 'clickoverlay' }) => void | | 点击蒙层触发事件 | RN、涂鸦、微信 |
@@ -1,46 +0,0 @@
1
- .modalWrp {
2
- position: fixed;
3
- display: flex;
4
- z-index: 500;
5
- top: 0;
6
- left: 0;
7
- width: 100vh;
8
- height: 100vh;
9
- background-color: rgba(0, 0, 0, 0.5);
10
- pointer-events: auto;
11
- flex-direction: column;
12
- transition: opacity 0.3s;
13
- &.opacityOverlay {
14
- background: transparent;
15
- pointer-events: none;
16
- }
17
- &.top {
18
- justify-content: flex-start;
19
- }
20
- &.center {
21
- justify-content: center;
22
- }
23
- &.bottom {
24
- justify-content: flex-end;
25
- }
26
- &.showModalDisplay {
27
- display: flex;
28
- }
29
- &.hideModalDisplay {
30
- display: none;
31
- }
32
- &.showModalOpacity {
33
- opacity: 1;
34
- }
35
- &.hideModalOpacity {
36
- opacity: 0;
37
- }
38
- }
39
- .container {
40
- position: fixed;
41
- z-index: 200;
42
- width: 100vw;
43
- display: flex;
44
- justify-content: center;
45
- align-items: center;
46
- }
@@ -1,3 +0,0 @@
1
- import Modal from './Modal';
2
- export * from './props';
3
- export default Modal;
@@ -1,3 +0,0 @@
1
- import Modal from './Modal';
2
- export * from './props';
3
- export default Modal;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseProps } from '../types';
3
- export interface ITYModalProps extends IModalProps {
4
- activeIdx: number;
5
- children: JSX.Element[];
6
- }
7
- export interface IModalProps extends BaseProps {
8
- show: boolean;
9
- overlay?: boolean;
10
- onClickOverlay?: (event: {
11
- type: 'clickoverlay';
12
- }) => void;
13
- overlayStyle?: React.CSSProperties;
14
- customStyle?: React.CSSProperties;
15
- position?: 'top' | 'center' | 'bottom';
16
- }
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _tuyaPanelMotion=_interopRequireDefault(require("tuya-panel-motion"));var Fade=_tuyaPanelMotion.default.Fade;var _default=Fade;exports.default=_default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export default class Fade extends React.Component {
3
- render(): JSX.Element;
4
- }
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _tuyaPanelMotion=_interopRequireDefault(require("tuya-panel-motion"));var Fade=_tuyaPanelMotion.default.Fade;var _default=Fade;exports.default=_default;
@@ -1,28 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
- import React from 'react';
6
-
7
- var Fade = /*#__PURE__*/function (_React$Component) {
8
- _inherits(Fade, _React$Component);
9
-
10
- var _super = _createSuper(Fade);
11
-
12
- function Fade() {
13
- _classCallCheck(this, Fade);
14
-
15
- return _super.apply(this, arguments);
16
- }
17
-
18
- _createClass(Fade, [{
19
- key: "render",
20
- value: function render() {
21
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("text", null, "\u672A\u5B9E\u73B0"));
22
- }
23
- }]);
24
-
25
- return Fade;
26
- }(React.Component);
27
-
28
- export { Fade as default };
@@ -1,2 +0,0 @@
1
- declare const Fade: typeof import("tuya-panel-motion/lib/fade").default;
2
- export default Fade;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { MotionFadeProps } from '../props';
3
- declare const Fade: React.FC<MotionFadeProps>;
4
- export default Fade;
@@ -1,78 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import * as React from 'react';
3
- import { inlineStyle } from '@ray-js/framework-shared';
4
- import { View } from '@ray-js/components';
5
- import { defaultMotionFadeProps } from '../props';
6
-
7
- var Fade = function (props) {
8
- var isPreShow = React.useRef(false);
9
- var id = props.id,
10
- style = props.style,
11
- className = props.className,
12
- children = props.children,
13
- show = props.show,
14
- onShow = props.onShow,
15
- onHide = props.onHide,
16
- showDuration = props.showDuration,
17
- hideDuration = props.hideDuration,
18
- fadeOpacity = props.fadeOpacity,
19
- delay = props.delay;
20
-
21
- var _React$useState = React.useState(undefined),
22
- _React$useState2 = _slicedToArray(_React$useState, 2),
23
- anim = _React$useState2[0],
24
- setAnim = _React$useState2[1];
25
-
26
- var _React$useState3 = React.useState(false),
27
- _React$useState4 = _slicedToArray(_React$useState3, 2),
28
- isAddNode = _React$useState4[0],
29
- setIsAddNode = _React$useState4[1]; // 是否将节点渲染到页面上
30
-
31
-
32
- var animationRef = React.useRef(null);
33
- var isFirstRenderRef = React.useRef(true);
34
- React.useEffect(function () {
35
- animationRef.current = ty.createAnimation({
36
- duration: 0,
37
- timingFunction: 'ease'
38
- });
39
- }, []);
40
- React.useEffect(function () {
41
- if (show) {
42
- isPreShow.current = true;
43
- setIsAddNode(true);
44
- } else if (isPreShow.current) {
45
- isPreShow.current = false;
46
- setTimeout(function () {
47
- setIsAddNode(false);
48
- }, delay + hideDuration);
49
- }
50
-
51
- if (isFirstRenderRef.current) {
52
- isFirstRenderRef.current = false;
53
- animationRef.current.opacity(show ? fadeOpacity : 0).step({
54
- duration: 0
55
- });
56
- } else {
57
- animationRef.current.opacity(show ? fadeOpacity : 0).step({
58
- duration: show ? showDuration : hideDuration,
59
- delay: delay
60
- });
61
- }
62
-
63
- var temp = animationRef.current.export();
64
- setTimeout(function () {
65
- setAnim(temp);
66
- }, 20);
67
- show && typeof onShow === 'function' && onShow();
68
- !show && typeof onHide === 'function' && onHide();
69
- }, [show]);
70
- return isAddNode && /*#__PURE__*/React.createElement(View, {
71
- animation: anim,
72
- style: inlineStyle(style),
73
- className: className
74
- }, children);
75
- };
76
-
77
- Fade.defaultProps = defaultMotionFadeProps;
78
- export default Fade;
@@ -1,28 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
- import React from 'react';
6
-
7
- var Fade = /*#__PURE__*/function (_React$Component) {
8
- _inherits(Fade, _React$Component);
9
-
10
- var _super = _createSuper(Fade);
11
-
12
- function Fade() {
13
- _classCallCheck(this, Fade);
14
-
15
- return _super.apply(this, arguments);
16
- }
17
-
18
- _createClass(Fade, [{
19
- key: "render",
20
- value: function render() {
21
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("text", null, "\u672A\u5B9E\u73B0"));
22
- }
23
- }]);
24
-
25
- return Fade;
26
- }(React.Component);
27
-
28
- export { Fade as default };
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { MotionFadeProps } from '../props';
3
- declare const Fade: React.FC<MotionFadeProps>;
4
- export default Fade;
@@ -1,78 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import * as React from 'react';
3
- import { inlineStyle } from '@ray-js/framework-shared';
4
- import { View } from '@ray-js/components';
5
- import { defaultMotionFadeProps } from '../props';
6
-
7
- var Fade = function (props) {
8
- var isPreShow = React.useRef(false);
9
- var id = props.id,
10
- style = props.style,
11
- className = props.className,
12
- children = props.children,
13
- show = props.show,
14
- onShow = props.onShow,
15
- onHide = props.onHide,
16
- showDuration = props.showDuration,
17
- hideDuration = props.hideDuration,
18
- fadeOpacity = props.fadeOpacity,
19
- delay = props.delay;
20
-
21
- var _React$useState = React.useState(undefined),
22
- _React$useState2 = _slicedToArray(_React$useState, 2),
23
- anim = _React$useState2[0],
24
- setAnim = _React$useState2[1];
25
-
26
- var _React$useState3 = React.useState(false),
27
- _React$useState4 = _slicedToArray(_React$useState3, 2),
28
- isAddNode = _React$useState4[0],
29
- setIsAddNode = _React$useState4[1]; // 是否将节点渲染到页面上
30
-
31
-
32
- var animationRef = React.useRef(null);
33
- var isFirstRenderRef = React.useRef(true);
34
- React.useEffect(function () {
35
- animationRef.current = wx.createAnimation({
36
- duration: 0,
37
- timingFunction: 'ease'
38
- });
39
- }, []);
40
- React.useEffect(function () {
41
- if (show) {
42
- isPreShow.current = true;
43
- setIsAddNode(true);
44
- } else if (isPreShow.current) {
45
- isPreShow.current = false;
46
- setTimeout(function () {
47
- setIsAddNode(false);
48
- }, delay + hideDuration);
49
- }
50
-
51
- if (isFirstRenderRef.current) {
52
- isFirstRenderRef.current = false;
53
- animationRef.current.opacity(show ? fadeOpacity : 0).step({
54
- duration: 0
55
- });
56
- } else {
57
- animationRef.current.opacity(show ? fadeOpacity : 0).step({
58
- duration: show ? showDuration : hideDuration,
59
- delay: delay
60
- });
61
- }
62
-
63
- var temp = animationRef.current.export();
64
- setTimeout(function () {
65
- setAnim(temp);
66
- }, 20);
67
- show && typeof onShow === 'function' && onShow();
68
- !show && typeof onHide === 'function' && onHide();
69
- }, [show]);
70
- return isAddNode && /*#__PURE__*/React.createElement(View, {
71
- animation: anim,
72
- style: inlineStyle(style),
73
- className: className
74
- }, children);
75
- };
76
-
77
- Fade.defaultProps = defaultMotionFadeProps;
78
- export default Fade;
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _tuyaPanelMotion=_interopRequireDefault(require("tuya-panel-motion"));var PullUp=_tuyaPanelMotion.default.PullUp;var _default=PullUp;exports.default=_default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export default class Fade extends React.Component {
3
- render(): JSX.Element;
4
- }
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _tuyaPanelMotion=_interopRequireDefault(require("tuya-panel-motion"));var PullUp=_tuyaPanelMotion.default.PullUp;var _default=PullUp;exports.default=_default;
@@ -1,28 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
- import React from 'react';
6
-
7
- var Fade = /*#__PURE__*/function (_React$Component) {
8
- _inherits(Fade, _React$Component);
9
-
10
- var _super = _createSuper(Fade);
11
-
12
- function Fade() {
13
- _classCallCheck(this, Fade);
14
-
15
- return _super.apply(this, arguments);
16
- }
17
-
18
- _createClass(Fade, [{
19
- key: "render",
20
- value: function render() {
21
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("text", null, "\u672A\u5B9E\u73B0"));
22
- }
23
- }]);
24
-
25
- return Fade;
26
- }(React.Component);
27
-
28
- export { Fade as default };
@@ -1,2 +0,0 @@
1
- declare const PullUp: typeof import("tuya-panel-motion/lib/pull-up").default;
2
- export default PullUp;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { MotionPullUpProps } from '../props';
3
- declare const PullUp: React.FC<MotionPullUpProps>;
4
- export default PullUp;