taro-ui 3.3.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/LICENSE +21 -0
  2. package/lib/common/component.d.ts +10 -0
  3. package/lib/common/component.js +27 -28
  4. package/lib/common/component.js.map +1 -1
  5. package/lib/common/utils.d.ts +41 -0
  6. package/lib/common/utils.js +169 -192
  7. package/lib/common/utils.js.map +1 -1
  8. package/lib/components/accordion/index.d.ts +14 -0
  9. package/lib/components/accordion/index.js +111 -106
  10. package/lib/components/accordion/index.js.map +1 -1
  11. package/lib/components/action-sheet/body/index.d.ts +5 -0
  12. package/lib/components/action-sheet/body/index.js +11 -8
  13. package/lib/components/action-sheet/body/index.js.map +1 -1
  14. package/lib/components/action-sheet/body/item/index.d.ts +9 -0
  15. package/lib/components/action-sheet/body/item/index.js +21 -18
  16. package/lib/components/action-sheet/body/item/index.js.map +1 -1
  17. package/lib/components/action-sheet/footer/index.d.ts +9 -0
  18. package/lib/components/action-sheet/footer/index.js +24 -18
  19. package/lib/components/action-sheet/footer/index.js.map +1 -1
  20. package/lib/components/action-sheet/header/index.d.ts +5 -0
  21. package/lib/components/action-sheet/header/index.js +14 -8
  22. package/lib/components/action-sheet/header/index.js.map +1 -1
  23. package/lib/components/action-sheet/index.d.ts +14 -0
  24. package/lib/components/action-sheet/index.js +69 -64
  25. package/lib/components/action-sheet/index.js.map +1 -1
  26. package/lib/components/activity-indicator/index.d.ts +8 -0
  27. package/lib/components/activity-indicator/index.js +33 -29
  28. package/lib/components/activity-indicator/index.js.map +1 -1
  29. package/lib/components/avatar/index.d.ts +9 -0
  30. package/lib/components/avatar/index.js +58 -50
  31. package/lib/components/avatar/index.js.map +1 -1
  32. package/lib/components/badge/index.d.ts +10 -0
  33. package/lib/components/badge/index.js +44 -35
  34. package/lib/components/badge/index.js.map +1 -1
  35. package/lib/components/button/index.d.ts +15 -0
  36. package/lib/components/button/index.js +165 -113
  37. package/lib/components/button/index.js.map +1 -1
  38. package/lib/components/calendar/body/index.d.ts +26 -0
  39. package/lib/components/calendar/body/index.js +279 -183
  40. package/lib/components/calendar/body/index.js.map +1 -1
  41. package/lib/components/calendar/common/constant.d.ts +3 -0
  42. package/lib/components/calendar/common/constant.js +8 -3
  43. package/lib/components/calendar/common/constant.js.map +1 -1
  44. package/lib/components/calendar/common/helper.d.ts +4 -0
  45. package/lib/components/calendar/common/helper.js +77 -76
  46. package/lib/components/calendar/common/helper.js.map +1 -1
  47. package/lib/components/calendar/common/plugins.d.ts +11 -0
  48. package/lib/components/calendar/common/plugins.js +50 -66
  49. package/lib/components/calendar/common/plugins.js.map +1 -1
  50. package/lib/components/calendar/controller/index.d.ts +5 -0
  51. package/lib/components/calendar/controller/index.js +49 -28
  52. package/lib/components/calendar/controller/index.js.map +1 -1
  53. package/lib/components/calendar/index.d.ts +20 -0
  54. package/lib/components/calendar/index.js +233 -196
  55. package/lib/components/calendar/index.js.map +1 -1
  56. package/lib/components/calendar/ui/date-list/index.d.ts +12 -0
  57. package/lib/components/calendar/ui/date-list/index.js +50 -39
  58. package/lib/components/calendar/ui/date-list/index.js.map +1 -1
  59. package/lib/components/calendar/ui/day-list/index.d.ts +4 -0
  60. package/lib/components/calendar/ui/day-list/index.js +9 -14
  61. package/lib/components/calendar/ui/day-list/index.js.map +1 -1
  62. package/lib/components/card/index.d.ts +9 -0
  63. package/lib/components/card/index.js +73 -52
  64. package/lib/components/card/index.js.map +1 -1
  65. package/lib/components/checkbox/index.d.ts +9 -0
  66. package/lib/components/checkbox/index.js +52 -48
  67. package/lib/components/checkbox/index.js.map +1 -1
  68. package/lib/components/countdown/index.d.ts +20 -0
  69. package/lib/components/countdown/index.js +140 -125
  70. package/lib/components/countdown/index.js.map +1 -1
  71. package/lib/components/countdown/item/index.d.ts +9 -0
  72. package/lib/components/countdown/item/index.js +18 -18
  73. package/lib/components/countdown/item/index.js.map +1 -1
  74. package/lib/components/curtain/index.d.ts +10 -0
  75. package/lib/components/curtain/index.js +56 -39
  76. package/lib/components/curtain/index.js.map +1 -1
  77. package/lib/components/divider/index.d.ts +8 -0
  78. package/lib/components/divider/index.js +51 -34
  79. package/lib/components/divider/index.js.map +1 -1
  80. package/lib/components/drawer/index.d.ts +16 -0
  81. package/lib/components/drawer/index.js +106 -85
  82. package/lib/components/drawer/index.js.map +1 -1
  83. package/lib/components/fab/index.d.ts +9 -0
  84. package/lib/components/fab/index.js +22 -19
  85. package/lib/components/fab/index.js.map +1 -1
  86. package/lib/components/flex/index.d.ts +7 -0
  87. package/lib/components/flex/index.js +37 -34
  88. package/lib/components/flex/index.js.map +1 -1
  89. package/lib/components/flex/item/index.d.ts +7 -0
  90. package/lib/components/flex/item/index.js +30 -27
  91. package/lib/components/flex/item/index.js.map +1 -1
  92. package/lib/components/float-layout/index.d.ts +13 -0
  93. package/lib/components/float-layout/index.js +96 -68
  94. package/lib/components/float-layout/index.js.map +1 -1
  95. package/lib/components/form/index.d.ts +10 -0
  96. package/lib/components/form/index.js +37 -24
  97. package/lib/components/form/index.js.map +1 -1
  98. package/lib/components/grid/index.d.ts +9 -0
  99. package/lib/components/grid/index.js +92 -62
  100. package/lib/components/grid/index.js.map +1 -1
  101. package/lib/components/icon/index.d.ts +9 -0
  102. package/lib/components/icon/index.js +48 -31
  103. package/lib/components/icon/index.js.map +1 -1
  104. package/lib/components/image-picker/index.d.ts +11 -0
  105. package/lib/components/image-picker/index.js +152 -126
  106. package/lib/components/image-picker/index.js.map +1 -1
  107. package/lib/components/indexes/index.d.ts +29 -0
  108. package/lib/components/indexes/index.js +255 -198
  109. package/lib/components/indexes/index.js.map +1 -1
  110. package/lib/components/input/index.d.ts +17 -0
  111. package/lib/components/input/index.js +224 -160
  112. package/lib/components/input/index.js.map +1 -1
  113. package/lib/components/input-number/index.d.ts +13 -0
  114. package/lib/components/input-number/index.js +180 -152
  115. package/lib/components/input-number/index.js.map +1 -1
  116. package/lib/components/list/index.d.ts +8 -0
  117. package/lib/components/list/index.js +20 -13
  118. package/lib/components/list/index.js.map +1 -1
  119. package/lib/components/list/item/index.d.ts +11 -0
  120. package/lib/components/list/item/index.js +146 -99
  121. package/lib/components/list/item/index.js.map +1 -1
  122. package/lib/components/load-more/index.d.ts +9 -0
  123. package/lib/components/load-more/index.js +65 -41
  124. package/lib/components/load-more/index.js.map +1 -1
  125. package/lib/components/loading/index.d.ts +12 -0
  126. package/lib/components/loading/index.js +26 -26
  127. package/lib/components/loading/index.js.map +1 -1
  128. package/lib/components/message/index.d.ts +15 -0
  129. package/lib/components/message/index.js +72 -63
  130. package/lib/components/message/index.js.map +1 -1
  131. package/lib/components/modal/action/index.d.ts +8 -0
  132. package/lib/components/modal/action/index.js +20 -14
  133. package/lib/components/modal/action/index.js.map +1 -1
  134. package/lib/components/modal/content/index.d.ts +5 -0
  135. package/lib/components/modal/content/index.js +11 -8
  136. package/lib/components/modal/content/index.js.map +1 -1
  137. package/lib/components/modal/header/index.d.ts +5 -0
  138. package/lib/components/modal/header/index.js +11 -8
  139. package/lib/components/modal/header/index.js.map +1 -1
  140. package/lib/components/modal/index.d.ts +15 -0
  141. package/lib/components/modal/index.js +96 -87
  142. package/lib/components/modal/index.js.map +1 -1
  143. package/lib/components/nav-bar/index.d.ts +12 -0
  144. package/lib/components/nav-bar/index.js +210 -98
  145. package/lib/components/nav-bar/index.js.map +1 -1
  146. package/lib/components/noticebar/index.d.ts +16 -0
  147. package/lib/components/noticebar/index.js +177 -154
  148. package/lib/components/noticebar/index.js.map +1 -1
  149. package/lib/components/pagination/index.d.ts +12 -0
  150. package/lib/components/pagination/index.js +133 -102
  151. package/lib/components/pagination/index.js.map +1 -1
  152. package/lib/components/progress/index.d.ts +7 -0
  153. package/lib/components/progress/index.js +48 -40
  154. package/lib/components/progress/index.js.map +1 -1
  155. package/lib/components/radio/index.d.ts +9 -0
  156. package/lib/components/radio/index.js +48 -37
  157. package/lib/components/radio/index.js.map +1 -1
  158. package/lib/components/range/index.d.ts +22 -0
  159. package/lib/components/range/index.js +197 -142
  160. package/lib/components/range/index.js.map +1 -1
  161. package/lib/components/rate/index.d.ts +9 -0
  162. package/lib/components/rate/index.js +74 -48
  163. package/lib/components/rate/index.js.map +1 -1
  164. package/lib/components/search-bar/index.d.ts +16 -0
  165. package/lib/components/search-bar/index.js +167 -112
  166. package/lib/components/search-bar/index.js.map +1 -1
  167. package/lib/components/segmented-control/index.d.ts +9 -0
  168. package/lib/components/segmented-control/index.js +78 -53
  169. package/lib/components/segmented-control/index.js.map +1 -1
  170. package/lib/components/slider/index.d.ts +13 -0
  171. package/lib/components/slider/index.js +107 -69
  172. package/lib/components/slider/index.js.map +1 -1
  173. package/lib/components/steps/index.d.ts +9 -0
  174. package/lib/components/steps/index.js +61 -44
  175. package/lib/components/steps/index.js.map +1 -1
  176. package/lib/components/swipe-action/index.d.ts +27 -0
  177. package/lib/components/swipe-action/index.js +206 -157
  178. package/lib/components/swipe-action/index.js.map +1 -1
  179. package/lib/components/swipe-action/options/index.d.ts +5 -0
  180. package/lib/components/swipe-action/options/index.js +22 -8
  181. package/lib/components/swipe-action/options/index.js.map +1 -1
  182. package/lib/components/switch/index.d.ts +9 -0
  183. package/lib/components/switch/index.js +53 -42
  184. package/lib/components/switch/index.js.map +1 -1
  185. package/lib/components/tab-bar/index.d.ts +9 -0
  186. package/lib/components/tab-bar/index.js +164 -90
  187. package/lib/components/tab-bar/index.js.map +1 -1
  188. package/lib/components/tabs/index.d.ts +24 -0
  189. package/lib/components/tabs/index.js +203 -174
  190. package/lib/components/tabs/index.js.map +1 -1
  191. package/lib/components/tabs-pane/index.d.ts +8 -0
  192. package/lib/components/tabs-pane/index.js +37 -24
  193. package/lib/components/tabs-pane/index.js.map +1 -1
  194. package/lib/components/tag/index.d.ts +9 -0
  195. package/lib/components/tag/index.js +64 -44
  196. package/lib/components/tag/index.js.map +1 -1
  197. package/lib/components/textarea/index.d.ts +13 -0
  198. package/lib/components/textarea/index.js +132 -86
  199. package/lib/components/textarea/index.js.map +1 -1
  200. package/lib/components/timeline/index.d.ts +8 -0
  201. package/lib/components/timeline/index.js +70 -47
  202. package/lib/components/timeline/index.js.map +1 -1
  203. package/lib/components/toast/img.json +6 -3
  204. package/lib/components/toast/index.d.ts +16 -0
  205. package/lib/components/toast/index.js +111 -104
  206. package/lib/components/toast/index.js.map +1 -1
  207. package/lib/index.d.ts +53 -0
  208. package/lib/index.js +108 -54
  209. package/lib/index.js.map +1 -1
  210. package/{dist → lib}/style/components/curtain.scss +3 -3
  211. package/{dist → lib}/style/components/grid.scss +2 -2
  212. package/lib/style/components/index.scss +52 -0
  213. package/{dist → lib}/style/components/list.scss +2 -2
  214. package/{dist → lib}/style/components/range.scss +2 -2
  215. package/{dist → lib}/style/components/toast.scss +1 -1
  216. package/lib/style/index.css +11754 -0
  217. package/lib/style/index.css.map +1 -0
  218. package/lib/style/mixins/index.scss +18 -0
  219. package/{dist → lib}/style/mixins/libs/shade.scss +4 -2
  220. package/{dist → lib}/style/mixins/libs/tint.scss +4 -2
  221. package/{dist → lib}/style/variables/default.scss +1 -1
  222. package/package.json +45 -48
  223. package/rn/components/action-sheet/index.tsx +8 -14
  224. package/rn/components/calendar/ui/date-list/index.tsx +1 -1
  225. package/rn/components/drawer/index.tsx +15 -15
  226. package/rn/components/float-layout/index.tsx +3 -2
  227. package/rn/components/input/index.tsx +14 -7
  228. package/rn/components/input-number/index.tsx +19 -19
  229. package/rn/components/message/index.tsx +1 -1
  230. package/rn/components/swipe-action/index.rn.tsx +4 -2
  231. package/rn/components/swipe-action/index.tsx +6 -5
  232. package/rn/components/tab-bar/index.tsx +1 -1
  233. package/rn/components/tabs/index.tsx +14 -14
  234. package/rn/components/textarea/index.tsx +2 -2
  235. package/README.md +0 -85
  236. package/dist/index.esm.js +0 -8407
  237. package/dist/index.esm.js.map +0 -1
  238. package/dist/index.js +0 -8468
  239. package/dist/index.js.map +0 -1
  240. package/dist/style/components/accordion.rn.scss +0 -79
  241. package/dist/style/components/action-sheet.rn.scss +0 -80
  242. package/dist/style/components/activity-indicator.rn.scss +0 -30
  243. package/dist/style/components/article.rn.scss +0 -59
  244. package/dist/style/components/avatar.rn.scss +0 -46
  245. package/dist/style/components/badge.rn.scss +0 -52
  246. package/dist/style/components/button.rn.scss +0 -80
  247. package/dist/style/components/calendar.rn.scss +0 -182
  248. package/dist/style/components/card.rn.scss +0 -88
  249. package/dist/style/components/checkbox.rn.scss +0 -108
  250. package/dist/style/components/countdown.rn.scss +0 -82
  251. package/dist/style/components/curtain.rn.scss +0 -129
  252. package/dist/style/components/divider.rn.scss +0 -33
  253. package/dist/style/components/drawer.rn.scss +0 -72
  254. package/dist/style/components/fab.rn.scss +0 -38
  255. package/dist/style/components/flex.rn.scss +0 -159
  256. package/dist/style/components/float-layout.rn.scss +0 -119
  257. package/dist/style/components/form.rn.scss +0 -12
  258. package/dist/style/components/grid.rn.scss +0 -104
  259. package/dist/style/components/icon.rn.scss +0 -221
  260. package/dist/style/components/image-picker.rn.scss +0 -108
  261. package/dist/style/components/index.rn.scss +0 -51
  262. package/dist/style/components/index.scss +0 -52
  263. package/dist/style/components/indexes.rn.scss +0 -53
  264. package/dist/style/components/input-number.rn.scss +0 -82
  265. package/dist/style/components/input.rn.scss +0 -149
  266. package/dist/style/components/list.rn.scss +0 -107
  267. package/dist/style/components/load-more.rn.scss +0 -28
  268. package/dist/style/components/loading.rn.scss +0 -45
  269. package/dist/style/components/message.rn.scss +0 -57
  270. package/dist/style/components/modal.rn.scss +0 -136
  271. package/dist/style/components/nav-bar.rn.scss +0 -123
  272. package/dist/style/components/noticebar.rn.scss +0 -111
  273. package/dist/style/components/pagination.rn.scss +0 -43
  274. package/dist/style/components/progress.rn.scss +0 -105
  275. package/dist/style/components/radio.rn.scss +0 -94
  276. package/dist/style/components/range.rn.scss +0 -52
  277. package/dist/style/components/rate.rn.scss +0 -48
  278. package/dist/style/components/search-bar.rn.scss +0 -134
  279. package/dist/style/components/segmented-control.rn.scss +0 -44
  280. package/dist/style/components/slider.rn.scss +0 -33
  281. package/dist/style/components/steps.rn.scss +0 -131
  282. package/dist/style/components/swipe-action.rn.scss +0 -53
  283. package/dist/style/components/switch.rn.scss +0 -61
  284. package/dist/style/components/tab-bar.rn.scss +0 -74
  285. package/dist/style/components/tabs.rn.scss +0 -205
  286. package/dist/style/components/tag.rn.scss +0 -74
  287. package/dist/style/components/textarea.rn.scss +0 -57
  288. package/dist/style/components/timeline.rn.scss +0 -89
  289. package/dist/style/components/toast.rn.scss +0 -112
  290. package/dist/style/index.rn.scss +0 -14
  291. package/dist/style/mixins/index.rn.scss +0 -18
  292. package/dist/style/mixins/index.scss +0 -18
  293. package/dist/style/mixins/libs/absolute-center.rn.scss +0 -9
  294. package/dist/style/mixins/libs/active.rn.scss +0 -10
  295. package/dist/style/mixins/libs/alignhack.rn.scss +0 -11
  296. package/dist/style/mixins/libs/border.rn.scss +0 -48
  297. package/dist/style/mixins/libs/clearfix.rn.scss +0 -21
  298. package/dist/style/mixins/libs/disabled.rn.scss +0 -6
  299. package/dist/style/mixins/libs/flex.rn.scss +0 -49
  300. package/dist/style/mixins/libs/hairline.rn.scss +0 -209
  301. package/dist/style/mixins/libs/line.rn.scss +0 -14
  302. package/dist/style/mixins/libs/overlay.rn.scss +0 -11
  303. package/dist/style/mixins/libs/placeholder.rn.scss +0 -12
  304. package/dist/style/mixins/libs/shade.rn.scss +0 -23
  305. package/dist/style/mixins/libs/tint.rn.scss +0 -23
  306. package/dist/style/themes/purple.rn.scss +0 -44
  307. package/dist/style/themes/red.rn.scss +0 -45
  308. package/dist/style/variables/default.rn.scss +0 -461
  309. package/types/accordion.d.ts +0 -49
  310. package/types/action-sheet.d.ts +0 -55
  311. package/types/activity-indicator.d.ts +0 -33
  312. package/types/avatar.d.ts +0 -39
  313. package/types/badge.d.ts +0 -24
  314. package/types/base.d.ts +0 -26
  315. package/types/button.d.ts +0 -70
  316. package/types/calendar.d.ts +0 -225
  317. package/types/card.d.ts +0 -48
  318. package/types/checkbox.d.ts +0 -24
  319. package/types/countdown.d.ts +0 -95
  320. package/types/curtain.d.ts +0 -26
  321. package/types/divider.d.ts +0 -33
  322. package/types/drawer.d.ts +0 -48
  323. package/types/fab.d.ts +0 -21
  324. package/types/flex.d.ts +0 -27
  325. package/types/float-button.d.ts +0 -26
  326. package/types/float-layout.d.ts +0 -73
  327. package/types/form.d.ts +0 -26
  328. package/types/grid.d.ts +0 -51
  329. package/types/icon.d.ts +0 -12
  330. package/types/image-picker.d.ts +0 -73
  331. package/types/index.d.ts +0 -55
  332. package/types/indexes.d.ts +0 -76
  333. package/types/input-number.d.ts +0 -89
  334. package/types/input.d.ts +0 -162
  335. package/types/list.d.ts +0 -84
  336. package/types/load-more.d.ts +0 -43
  337. package/types/message.d.ts +0 -43
  338. package/types/modal.d.ts +0 -62
  339. package/types/nav-bar.d.ts +0 -65
  340. package/types/noticebar.d.ts +0 -65
  341. package/types/pagination.d.ts +0 -51
  342. package/types/progress.d.ts +0 -30
  343. package/types/radio.d.ts +0 -47
  344. package/types/range.d.ts +0 -63
  345. package/types/rate.d.ts +0 -34
  346. package/types/search-bar.d.ts +0 -105
  347. package/types/segmented-control.d.ts +0 -44
  348. package/types/slider.d.ts +0 -73
  349. package/types/steps.d.ts +0 -69
  350. package/types/swipe-action.d.ts +0 -86
  351. package/types/switch.d.ts +0 -38
  352. package/types/tab-bar.d.ts +0 -98
  353. package/types/tabs-pane.d.ts +0 -25
  354. package/types/tabs.d.ts +0 -62
  355. package/types/tag.d.ts +0 -48
  356. package/types/textarea.d.ts +0 -113
  357. package/types/timeline.d.ts +0 -46
  358. package/types/toast.d.ts +0 -53
  359. /package/{dist → lib}/style/components/accordion.scss +0 -0
  360. /package/{dist → lib}/style/components/action-sheet.scss +0 -0
  361. /package/{dist → lib}/style/components/activity-indicator.scss +0 -0
  362. /package/{dist → lib}/style/components/article.scss +0 -0
  363. /package/{dist → lib}/style/components/avatar.scss +0 -0
  364. /package/{dist → lib}/style/components/badge.scss +0 -0
  365. /package/{dist → lib}/style/components/button.scss +0 -0
  366. /package/{dist → lib}/style/components/calendar.scss +0 -0
  367. /package/{dist → lib}/style/components/card.scss +0 -0
  368. /package/{dist → lib}/style/components/checkbox.scss +0 -0
  369. /package/{dist → lib}/style/components/countdown.scss +0 -0
  370. /package/{dist → lib}/style/components/divider.scss +0 -0
  371. /package/{dist → lib}/style/components/drawer.scss +0 -0
  372. /package/{dist → lib}/style/components/fab.scss +0 -0
  373. /package/{dist → lib}/style/components/flex.scss +0 -0
  374. /package/{dist → lib}/style/components/float-layout.scss +0 -0
  375. /package/{dist → lib}/style/components/form.scss +0 -0
  376. /package/{dist → lib}/style/components/icon.scss +0 -0
  377. /package/{dist → lib}/style/components/image-picker.scss +0 -0
  378. /package/{dist → lib}/style/components/indexes.scss +0 -0
  379. /package/{dist → lib}/style/components/input-number.scss +0 -0
  380. /package/{dist → lib}/style/components/input.scss +0 -0
  381. /package/{dist → lib}/style/components/load-more.scss +0 -0
  382. /package/{dist → lib}/style/components/loading.scss +0 -0
  383. /package/{dist → lib}/style/components/message.scss +0 -0
  384. /package/{dist → lib}/style/components/modal.scss +0 -0
  385. /package/{dist → lib}/style/components/nav-bar.scss +0 -0
  386. /package/{dist → lib}/style/components/noticebar.scss +0 -0
  387. /package/{dist → lib}/style/components/pagination.scss +0 -0
  388. /package/{dist → lib}/style/components/progress.scss +0 -0
  389. /package/{dist → lib}/style/components/radio.scss +0 -0
  390. /package/{dist → lib}/style/components/rate.scss +0 -0
  391. /package/{dist → lib}/style/components/search-bar.scss +0 -0
  392. /package/{dist → lib}/style/components/segmented-control.scss +0 -0
  393. /package/{dist → lib}/style/components/slider.scss +0 -0
  394. /package/{dist → lib}/style/components/steps.scss +0 -0
  395. /package/{dist → lib}/style/components/swipe-action.scss +0 -0
  396. /package/{dist → lib}/style/components/switch.scss +0 -0
  397. /package/{dist → lib}/style/components/tab-bar.scss +0 -0
  398. /package/{dist → lib}/style/components/tabs.scss +0 -0
  399. /package/{dist → lib}/style/components/tag.scss +0 -0
  400. /package/{dist → lib}/style/components/textarea.scss +0 -0
  401. /package/{dist → lib}/style/components/timeline.scss +0 -0
  402. /package/{dist → lib}/style/index.scss +0 -0
  403. /package/{dist → lib}/style/mixins/libs/absolute-center.scss +0 -0
  404. /package/{dist → lib}/style/mixins/libs/active.scss +0 -0
  405. /package/{dist → lib}/style/mixins/libs/alignhack.scss +0 -0
  406. /package/{dist → lib}/style/mixins/libs/border.scss +0 -0
  407. /package/{dist → lib}/style/mixins/libs/clearfix.scss +0 -0
  408. /package/{dist → lib}/style/mixins/libs/disabled.scss +0 -0
  409. /package/{dist → lib}/style/mixins/libs/flex.scss +0 -0
  410. /package/{dist → lib}/style/mixins/libs/hairline.scss +0 -0
  411. /package/{dist → lib}/style/mixins/libs/line.scss +0 -0
  412. /package/{dist → lib}/style/mixins/libs/overlay.scss +0 -0
  413. /package/{dist → lib}/style/mixins/libs/placeholder.scss +0 -0
  414. /package/{dist → lib}/style/themes/purple.scss +0 -0
  415. /package/{dist → lib}/style/themes/red.scss +0 -0
package/types/tag.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import { MouseEvent, ComponentClass } from 'react'
2
- import { CommonEvent } from '@tarojs/components/types/common'
3
-
4
- import AtComponent from './base'
5
-
6
- export interface TagInfo {
7
- name: string
8
- active: boolean
9
- }
10
-
11
- export interface AtTagProps extends AtComponent {
12
- /**
13
- * 大小尺寸
14
- * @default 'normal'
15
- */
16
- size?: 'normal' | 'small'
17
- /**
18
- * 样式类型
19
- */
20
- type?: string
21
- /**
22
- * 标签名字
23
- */
24
- name?: string
25
- /**
26
- * 是否大圆角
27
- * @default false
28
- */
29
- circle?: boolean
30
- /**
31
- * 是否为选中态
32
- * @default false
33
- */
34
- active?: boolean
35
- /**
36
- * 是否为禁用态
37
- * @default false
38
- */
39
- disabled?: boolean
40
- /**
41
- * 点击标签时触发,返回标签名字和状态的对象
42
- */
43
- onClick?: (tagInfo: TagInfo, event: CommonEvent) => void
44
- }
45
-
46
- declare const AtTag: ComponentClass<AtTagProps>
47
-
48
- export default AtTag
@@ -1,113 +0,0 @@
1
- import { ComponentClass } from 'react'
2
- import {
3
- CommonEvent,
4
- CommonEventFunction
5
- } from '@tarojs/components/types/common'
6
- import AtComponent from './base'
7
-
8
- export interface AtTextareaProps extends AtComponent {
9
- /**
10
- * 输入框当前值,用户需要通过 onChange 事件的 event.detail.value 来更新 value 值,必填
11
- */
12
- value: string
13
- /**
14
- * 最大长度
15
- * @default 200
16
- */
17
- maxLength?: string | number
18
- /**
19
- * 占位符
20
- */
21
- placeholder?: string
22
- /**
23
- * 指定 placeholder 的样式类,只在小程序有效
24
- */
25
- placeholderClass?: string
26
- /**
27
- * 指定 placeholder 的样式,只在小程序有效
28
- */
29
- placeholderStyle?: string
30
- /**
31
- * 是否禁用
32
- * @default false
33
- */
34
- disabled?: boolean
35
- /**
36
- * 是否自动聚焦
37
- * @default false
38
- */
39
- autoFocus?: boolean
40
- /**
41
- * 获取焦点
42
- * @default false
43
- */
44
- focus?: boolean
45
- /**
46
- * 是否显示键盘上方带有“完成”按钮那一栏
47
- * @default false
48
- */
49
- showConfirmBar?: boolean
50
- /**
51
- * 光标起始位置,自动聚集时有效,需与 selection-end 搭配使用
52
- * @default -1
53
- */
54
- selectionStart?: number
55
- /**
56
- * 光标结束位置,自动聚集时有效,需与 selectionStart 搭配使用
57
- * @default -1
58
- */
59
- selectionEnd?: number
60
- /**
61
- * 是否显示字数
62
- * @default true
63
- */
64
- count?: boolean
65
- /**
66
- * 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true
67
- * @default false
68
- */
69
- fixed?: boolean
70
- /**
71
- * 文字超出最大长度时是否禁止输入,若否,则还可以在 maxLength 的基础上输入 500 字符,并右下角红字提示
72
- * @default true
73
- */
74
- textOverflowForbidden?: boolean
75
- /**
76
- * 输入框高度
77
- * @default 100
78
- */
79
- height?: string | number
80
- /**
81
- * 指定光标与键盘的距离,单位 px。
82
- * 取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离,
83
- * 只在小程序端有效,目前安卓端微信官方有 bug,该特性失效
84
- * @default 100
85
- */
86
- cursorSpacing?: number
87
- /**
88
- * 输入框值改变时触发的事件,
89
- * 开发者需要通过 onChange 事件来更新 value 值变化,
90
- * onChange 函数必填
91
- */
92
- onChange: (value: string, event?: CommonEvent) => void
93
- /**
94
- * 输入框获得焦点时触发,height 为键盘高度,在基础库 1.9.90 起支持
95
- */
96
- onFocus?: CommonEventFunction
97
- /**
98
- * 输入框失去焦点时触发
99
- */
100
- onBlur?: CommonEventFunction
101
- /**
102
- * 点击完成时,触发 confirm 事件
103
- */
104
- onConfirm?: CommonEventFunction
105
- /**
106
- * 输入框行数变化时调用
107
- */
108
- onLinechange?: CommonEventFunction
109
- }
110
-
111
- declare const AtTextarea: ComponentClass<AtTextareaProps>
112
-
113
- export default AtTextarea
@@ -1,46 +0,0 @@
1
- import { MouseEvent, ComponentClass, ReactNode } from 'react'
2
-
3
- import AtComponent from './base'
4
-
5
- export interface Item {
6
- /**
7
- * 标题
8
- */
9
- title: ReactNode
10
- /**
11
- * 子项内容
12
- */
13
- content?: ReactNode[]
14
- /**
15
- * 自定义 icon
16
- */
17
- icon?: string
18
- /**
19
- * icon 颜色
20
- * @default 'blue'
21
- */
22
- color?: 'blue' | 'green' | 'red' | 'yellow'
23
- }
24
-
25
- export interface AtTimelineProps extends AtComponent {
26
- /**
27
- * 最后一项是否为未完成态
28
- * @default false
29
- */
30
- pending?: boolean
31
- /**
32
- * 需展示的内容
33
- */
34
- items: Array<Item>
35
-
36
- /**
37
- * 点击 item 触发的事件
38
- * @param {number} current 当前点击的 item 的索引值
39
- * @param {MouseEvent} event
40
- */
41
- onClickItem?: (current: number, event: MouseEvent) => void
42
- }
43
-
44
- declare const AtTimeline: ComponentClass<AtTimelineProps>
45
-
46
- export default AtTimeline
package/types/toast.d.ts DELETED
@@ -1,53 +0,0 @@
1
- import { MouseEvent, ComponentClass } from 'react'
2
- import { CommonEventFunction } from '@tarojs/components/types/common'
3
-
4
- import AtComponent from './base'
5
-
6
- export interface AtToastProps extends AtComponent {
7
- /**
8
- * 是否展示元素
9
- * @default false
10
- */
11
- isOpened: boolean
12
- /**
13
- * 元素的内容
14
- */
15
- text?: string
16
- /**
17
- * icon 的类型
18
- */
19
- icon?: string
20
- /**
21
- * 元素展示的图片
22
- */
23
- image?: string
24
- /**
25
- * 元素的状态
26
- */
27
- status?: 'error' | 'loading' | 'success'
28
- /**
29
- * 元素持续的事件(设置为 0 将不会自动消失)
30
- * @default 3000
31
- */
32
- duration?: number
33
- /**
34
- * 是否存在底部遮罩层(无法点击底部的内容区)
35
- */
36
- hasMask?: boolean
37
- /**
38
- * 元素被点击之后触发的事件
39
- */
40
- onClick?: CommonEventFunction
41
- /**
42
- * 元素被关闭之后触发的事件
43
- */
44
- onClose?: CommonEventFunction
45
- }
46
-
47
- export interface AtToastState {
48
- _isOpened: boolean
49
- }
50
-
51
- declare const AtToast: ComponentClass<AtToastProps>
52
-
53
- export default AtToast
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes