taro-ui 3.3.1 → 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 (413) hide show
  1. package/lib/common/component.d.ts +10 -0
  2. package/lib/common/component.js +27 -28
  3. package/lib/common/component.js.map +1 -1
  4. package/lib/common/utils.d.ts +41 -0
  5. package/lib/common/utils.js +169 -192
  6. package/lib/common/utils.js.map +1 -1
  7. package/lib/components/accordion/index.d.ts +14 -0
  8. package/lib/components/accordion/index.js +111 -106
  9. package/lib/components/accordion/index.js.map +1 -1
  10. package/lib/components/action-sheet/body/index.d.ts +5 -0
  11. package/lib/components/action-sheet/body/index.js +11 -8
  12. package/lib/components/action-sheet/body/index.js.map +1 -1
  13. package/lib/components/action-sheet/body/item/index.d.ts +9 -0
  14. package/lib/components/action-sheet/body/item/index.js +21 -18
  15. package/lib/components/action-sheet/body/item/index.js.map +1 -1
  16. package/lib/components/action-sheet/footer/index.d.ts +9 -0
  17. package/lib/components/action-sheet/footer/index.js +24 -18
  18. package/lib/components/action-sheet/footer/index.js.map +1 -1
  19. package/lib/components/action-sheet/header/index.d.ts +5 -0
  20. package/lib/components/action-sheet/header/index.js +14 -8
  21. package/lib/components/action-sheet/header/index.js.map +1 -1
  22. package/lib/components/action-sheet/index.d.ts +14 -0
  23. package/lib/components/action-sheet/index.js +69 -64
  24. package/lib/components/action-sheet/index.js.map +1 -1
  25. package/lib/components/activity-indicator/index.d.ts +8 -0
  26. package/lib/components/activity-indicator/index.js +33 -29
  27. package/lib/components/activity-indicator/index.js.map +1 -1
  28. package/lib/components/avatar/index.d.ts +9 -0
  29. package/lib/components/avatar/index.js +58 -55
  30. package/lib/components/avatar/index.js.map +1 -1
  31. package/lib/components/badge/index.d.ts +10 -0
  32. package/lib/components/badge/index.js +44 -35
  33. package/lib/components/badge/index.js.map +1 -1
  34. package/lib/components/button/index.d.ts +15 -0
  35. package/lib/components/button/index.js +165 -113
  36. package/lib/components/button/index.js.map +1 -1
  37. package/lib/components/calendar/body/index.d.ts +26 -0
  38. package/lib/components/calendar/body/index.js +279 -183
  39. package/lib/components/calendar/body/index.js.map +1 -1
  40. package/lib/components/calendar/common/constant.d.ts +3 -0
  41. package/lib/components/calendar/common/constant.js +8 -3
  42. package/lib/components/calendar/common/constant.js.map +1 -1
  43. package/lib/components/calendar/common/helper.d.ts +4 -0
  44. package/lib/components/calendar/common/helper.js +77 -76
  45. package/lib/components/calendar/common/helper.js.map +1 -1
  46. package/lib/components/calendar/common/plugins.d.ts +11 -0
  47. package/lib/components/calendar/common/plugins.js +50 -66
  48. package/lib/components/calendar/common/plugins.js.map +1 -1
  49. package/lib/components/calendar/controller/index.d.ts +5 -0
  50. package/lib/components/calendar/controller/index.js +49 -28
  51. package/lib/components/calendar/controller/index.js.map +1 -1
  52. package/lib/components/calendar/index.d.ts +20 -0
  53. package/lib/components/calendar/index.js +233 -196
  54. package/lib/components/calendar/index.js.map +1 -1
  55. package/lib/components/calendar/ui/date-list/index.d.ts +12 -0
  56. package/lib/components/calendar/ui/date-list/index.js +50 -39
  57. package/lib/components/calendar/ui/date-list/index.js.map +1 -1
  58. package/lib/components/calendar/ui/day-list/index.d.ts +4 -0
  59. package/lib/components/calendar/ui/day-list/index.js +9 -14
  60. package/lib/components/calendar/ui/day-list/index.js.map +1 -1
  61. package/lib/components/card/index.d.ts +9 -0
  62. package/lib/components/card/index.js +73 -52
  63. package/lib/components/card/index.js.map +1 -1
  64. package/lib/components/checkbox/index.d.ts +9 -0
  65. package/lib/components/checkbox/index.js +52 -48
  66. package/lib/components/checkbox/index.js.map +1 -1
  67. package/lib/components/countdown/index.d.ts +20 -0
  68. package/lib/components/countdown/index.js +140 -125
  69. package/lib/components/countdown/index.js.map +1 -1
  70. package/lib/components/countdown/item/index.d.ts +9 -0
  71. package/lib/components/countdown/item/index.js +18 -18
  72. package/lib/components/countdown/item/index.js.map +1 -1
  73. package/lib/components/curtain/index.d.ts +10 -0
  74. package/lib/components/curtain/index.js +56 -39
  75. package/lib/components/curtain/index.js.map +1 -1
  76. package/lib/components/divider/index.d.ts +8 -0
  77. package/lib/components/divider/index.js +51 -34
  78. package/lib/components/divider/index.js.map +1 -1
  79. package/lib/components/drawer/index.d.ts +16 -0
  80. package/lib/components/drawer/index.js +106 -85
  81. package/lib/components/drawer/index.js.map +1 -1
  82. package/lib/components/fab/index.d.ts +9 -0
  83. package/lib/components/fab/index.js +22 -19
  84. package/lib/components/fab/index.js.map +1 -1
  85. package/lib/components/flex/index.d.ts +7 -0
  86. package/lib/components/flex/index.js +37 -34
  87. package/lib/components/flex/index.js.map +1 -1
  88. package/lib/components/flex/item/index.d.ts +7 -0
  89. package/lib/components/flex/item/index.js +30 -27
  90. package/lib/components/flex/item/index.js.map +1 -1
  91. package/lib/components/float-layout/index.d.ts +13 -0
  92. package/lib/components/float-layout/index.js +96 -68
  93. package/lib/components/float-layout/index.js.map +1 -1
  94. package/lib/components/form/index.d.ts +10 -0
  95. package/lib/components/form/index.js +37 -24
  96. package/lib/components/form/index.js.map +1 -1
  97. package/lib/components/grid/index.d.ts +9 -0
  98. package/lib/components/grid/index.js +92 -62
  99. package/lib/components/grid/index.js.map +1 -1
  100. package/lib/components/icon/index.d.ts +9 -0
  101. package/lib/components/icon/index.js +48 -31
  102. package/lib/components/icon/index.js.map +1 -1
  103. package/lib/components/image-picker/index.d.ts +11 -0
  104. package/lib/components/image-picker/index.js +152 -126
  105. package/lib/components/image-picker/index.js.map +1 -1
  106. package/lib/components/indexes/index.d.ts +29 -0
  107. package/lib/components/indexes/index.js +255 -198
  108. package/lib/components/indexes/index.js.map +1 -1
  109. package/lib/components/input/index.d.ts +17 -0
  110. package/lib/components/input/index.js +224 -160
  111. package/lib/components/input/index.js.map +1 -1
  112. package/lib/components/input-number/index.d.ts +13 -0
  113. package/lib/components/input-number/index.js +180 -152
  114. package/lib/components/input-number/index.js.map +1 -1
  115. package/lib/components/list/index.d.ts +8 -0
  116. package/lib/components/list/index.js +20 -13
  117. package/lib/components/list/index.js.map +1 -1
  118. package/lib/components/list/item/index.d.ts +11 -0
  119. package/lib/components/list/item/index.js +146 -99
  120. package/lib/components/list/item/index.js.map +1 -1
  121. package/lib/components/load-more/index.d.ts +9 -0
  122. package/lib/components/load-more/index.js +65 -41
  123. package/lib/components/load-more/index.js.map +1 -1
  124. package/lib/components/loading/index.d.ts +12 -0
  125. package/lib/components/loading/index.js +26 -26
  126. package/lib/components/loading/index.js.map +1 -1
  127. package/lib/components/message/index.d.ts +15 -0
  128. package/lib/components/message/index.js +72 -63
  129. package/lib/components/message/index.js.map +1 -1
  130. package/lib/components/modal/action/index.d.ts +8 -0
  131. package/lib/components/modal/action/index.js +20 -14
  132. package/lib/components/modal/action/index.js.map +1 -1
  133. package/lib/components/modal/content/index.d.ts +5 -0
  134. package/lib/components/modal/content/index.js +11 -8
  135. package/lib/components/modal/content/index.js.map +1 -1
  136. package/lib/components/modal/header/index.d.ts +5 -0
  137. package/lib/components/modal/header/index.js +11 -8
  138. package/lib/components/modal/header/index.js.map +1 -1
  139. package/lib/components/modal/index.d.ts +15 -0
  140. package/lib/components/modal/index.js +96 -87
  141. package/lib/components/modal/index.js.map +1 -1
  142. package/lib/components/nav-bar/index.d.ts +12 -0
  143. package/lib/components/nav-bar/index.js +210 -98
  144. package/lib/components/nav-bar/index.js.map +1 -1
  145. package/lib/components/noticebar/index.d.ts +16 -0
  146. package/lib/components/noticebar/index.js +177 -154
  147. package/lib/components/noticebar/index.js.map +1 -1
  148. package/lib/components/pagination/index.d.ts +12 -0
  149. package/lib/components/pagination/index.js +133 -102
  150. package/lib/components/pagination/index.js.map +1 -1
  151. package/lib/components/progress/index.d.ts +7 -0
  152. package/lib/components/progress/index.js +48 -40
  153. package/lib/components/progress/index.js.map +1 -1
  154. package/lib/components/radio/index.d.ts +9 -0
  155. package/lib/components/radio/index.js +48 -37
  156. package/lib/components/radio/index.js.map +1 -1
  157. package/lib/components/range/index.d.ts +22 -0
  158. package/lib/components/range/index.js +197 -142
  159. package/lib/components/range/index.js.map +1 -1
  160. package/lib/components/rate/index.d.ts +9 -0
  161. package/lib/components/rate/index.js +74 -48
  162. package/lib/components/rate/index.js.map +1 -1
  163. package/lib/components/search-bar/index.d.ts +16 -0
  164. package/lib/components/search-bar/index.js +167 -112
  165. package/lib/components/search-bar/index.js.map +1 -1
  166. package/lib/components/segmented-control/index.d.ts +9 -0
  167. package/lib/components/segmented-control/index.js +78 -53
  168. package/lib/components/segmented-control/index.js.map +1 -1
  169. package/lib/components/slider/index.d.ts +13 -0
  170. package/lib/components/slider/index.js +107 -69
  171. package/lib/components/slider/index.js.map +1 -1
  172. package/lib/components/steps/index.d.ts +9 -0
  173. package/lib/components/steps/index.js +61 -44
  174. package/lib/components/steps/index.js.map +1 -1
  175. package/lib/components/swipe-action/index.d.ts +27 -0
  176. package/lib/components/swipe-action/index.js +206 -157
  177. package/lib/components/swipe-action/index.js.map +1 -1
  178. package/lib/components/swipe-action/options/index.d.ts +5 -0
  179. package/lib/components/swipe-action/options/index.js +22 -8
  180. package/lib/components/swipe-action/options/index.js.map +1 -1
  181. package/lib/components/switch/index.d.ts +9 -0
  182. package/lib/components/switch/index.js +53 -42
  183. package/lib/components/switch/index.js.map +1 -1
  184. package/lib/components/tab-bar/index.d.ts +9 -0
  185. package/lib/components/tab-bar/index.js +164 -90
  186. package/lib/components/tab-bar/index.js.map +1 -1
  187. package/lib/components/tabs/index.d.ts +24 -0
  188. package/lib/components/tabs/index.js +203 -174
  189. package/lib/components/tabs/index.js.map +1 -1
  190. package/lib/components/tabs-pane/index.d.ts +8 -0
  191. package/lib/components/tabs-pane/index.js +37 -24
  192. package/lib/components/tabs-pane/index.js.map +1 -1
  193. package/lib/components/tag/index.d.ts +9 -0
  194. package/lib/components/tag/index.js +64 -44
  195. package/lib/components/tag/index.js.map +1 -1
  196. package/lib/components/textarea/index.d.ts +13 -0
  197. package/lib/components/textarea/index.js +132 -86
  198. package/lib/components/textarea/index.js.map +1 -1
  199. package/lib/components/timeline/index.d.ts +8 -0
  200. package/lib/components/timeline/index.js +70 -47
  201. package/lib/components/timeline/index.js.map +1 -1
  202. package/lib/components/toast/img.json +6 -3
  203. package/lib/components/toast/index.d.ts +16 -0
  204. package/lib/components/toast/index.js +111 -104
  205. package/lib/components/toast/index.js.map +1 -1
  206. package/lib/index.d.ts +53 -0
  207. package/lib/index.js +108 -54
  208. package/lib/index.js.map +1 -1
  209. package/{dist → lib}/style/components/grid.scss +2 -2
  210. package/lib/style/components/index.scss +52 -0
  211. package/{dist → lib}/style/components/list.scss +2 -2
  212. package/lib/style/index.css +11754 -0
  213. package/lib/style/index.css.map +1 -0
  214. package/lib/style/mixins/index.scss +18 -0
  215. package/{dist → lib}/style/mixins/libs/shade.scss +4 -2
  216. package/{dist → lib}/style/mixins/libs/tint.scss +4 -2
  217. package/{dist → lib}/style/variables/default.scss +1 -1
  218. package/package.json +24 -32
  219. package/rn/components/action-sheet/index.tsx +8 -14
  220. package/rn/components/calendar/ui/date-list/index.tsx +1 -1
  221. package/rn/components/drawer/index.tsx +15 -15
  222. package/rn/components/float-layout/index.tsx +3 -2
  223. package/rn/components/input/index.tsx +14 -7
  224. package/rn/components/input-number/index.tsx +19 -19
  225. package/rn/components/message/index.tsx +1 -1
  226. package/rn/components/swipe-action/index.rn.tsx +4 -2
  227. package/rn/components/swipe-action/index.tsx +6 -5
  228. package/rn/components/tab-bar/index.tsx +1 -1
  229. package/rn/components/tabs/index.tsx +14 -14
  230. package/rn/components/textarea/index.tsx +2 -2
  231. package/dist/index.esm.js +0 -8506
  232. package/dist/index.esm.js.map +0 -1
  233. package/dist/index.js +0 -8567
  234. package/dist/index.js.map +0 -1
  235. package/dist/style/components/accordion.rn.scss +0 -79
  236. package/dist/style/components/action-sheet.rn.scss +0 -80
  237. package/dist/style/components/activity-indicator.rn.scss +0 -30
  238. package/dist/style/components/article.rn.scss +0 -59
  239. package/dist/style/components/avatar.rn.scss +0 -46
  240. package/dist/style/components/badge.rn.scss +0 -52
  241. package/dist/style/components/button.rn.scss +0 -80
  242. package/dist/style/components/calendar.rn.scss +0 -182
  243. package/dist/style/components/card.rn.scss +0 -88
  244. package/dist/style/components/checkbox.rn.scss +0 -108
  245. package/dist/style/components/countdown.rn.scss +0 -82
  246. package/dist/style/components/curtain.rn.scss +0 -129
  247. package/dist/style/components/divider.rn.scss +0 -33
  248. package/dist/style/components/drawer.rn.scss +0 -72
  249. package/dist/style/components/fab.rn.scss +0 -38
  250. package/dist/style/components/flex.rn.scss +0 -159
  251. package/dist/style/components/float-layout.rn.scss +0 -119
  252. package/dist/style/components/form.rn.scss +0 -12
  253. package/dist/style/components/grid.rn.scss +0 -104
  254. package/dist/style/components/icon.rn.scss +0 -221
  255. package/dist/style/components/image-picker.rn.scss +0 -108
  256. package/dist/style/components/index.rn.scss +0 -51
  257. package/dist/style/components/index.scss +0 -52
  258. package/dist/style/components/indexes.rn.scss +0 -53
  259. package/dist/style/components/input-number.rn.scss +0 -82
  260. package/dist/style/components/input.rn.scss +0 -149
  261. package/dist/style/components/list.rn.scss +0 -107
  262. package/dist/style/components/load-more.rn.scss +0 -28
  263. package/dist/style/components/loading.rn.scss +0 -45
  264. package/dist/style/components/message.rn.scss +0 -57
  265. package/dist/style/components/modal.rn.scss +0 -136
  266. package/dist/style/components/nav-bar.rn.scss +0 -123
  267. package/dist/style/components/noticebar.rn.scss +0 -111
  268. package/dist/style/components/pagination.rn.scss +0 -43
  269. package/dist/style/components/progress.rn.scss +0 -105
  270. package/dist/style/components/radio.rn.scss +0 -94
  271. package/dist/style/components/range.rn.scss +0 -52
  272. package/dist/style/components/rate.rn.scss +0 -48
  273. package/dist/style/components/search-bar.rn.scss +0 -134
  274. package/dist/style/components/segmented-control.rn.scss +0 -44
  275. package/dist/style/components/slider.rn.scss +0 -33
  276. package/dist/style/components/steps.rn.scss +0 -131
  277. package/dist/style/components/swipe-action.rn.scss +0 -53
  278. package/dist/style/components/switch.rn.scss +0 -61
  279. package/dist/style/components/tab-bar.rn.scss +0 -74
  280. package/dist/style/components/tabs.rn.scss +0 -205
  281. package/dist/style/components/tag.rn.scss +0 -74
  282. package/dist/style/components/textarea.rn.scss +0 -57
  283. package/dist/style/components/timeline.rn.scss +0 -89
  284. package/dist/style/components/toast.rn.scss +0 -112
  285. package/dist/style/index.rn.scss +0 -14
  286. package/dist/style/mixins/index.rn.scss +0 -18
  287. package/dist/style/mixins/index.scss +0 -18
  288. package/dist/style/mixins/libs/absolute-center.rn.scss +0 -9
  289. package/dist/style/mixins/libs/active.rn.scss +0 -10
  290. package/dist/style/mixins/libs/alignhack.rn.scss +0 -11
  291. package/dist/style/mixins/libs/border.rn.scss +0 -48
  292. package/dist/style/mixins/libs/clearfix.rn.scss +0 -21
  293. package/dist/style/mixins/libs/disabled.rn.scss +0 -6
  294. package/dist/style/mixins/libs/flex.rn.scss +0 -49
  295. package/dist/style/mixins/libs/hairline.rn.scss +0 -209
  296. package/dist/style/mixins/libs/line.rn.scss +0 -14
  297. package/dist/style/mixins/libs/overlay.rn.scss +0 -11
  298. package/dist/style/mixins/libs/placeholder.rn.scss +0 -12
  299. package/dist/style/mixins/libs/shade.rn.scss +0 -23
  300. package/dist/style/mixins/libs/tint.rn.scss +0 -23
  301. package/dist/style/themes/purple.rn.scss +0 -44
  302. package/dist/style/themes/red.rn.scss +0 -45
  303. package/dist/style/variables/default.rn.scss +0 -461
  304. package/types/accordion.d.ts +0 -49
  305. package/types/action-sheet.d.ts +0 -55
  306. package/types/activity-indicator.d.ts +0 -33
  307. package/types/avatar.d.ts +0 -39
  308. package/types/badge.d.ts +0 -24
  309. package/types/base.d.ts +0 -26
  310. package/types/button.d.ts +0 -70
  311. package/types/calendar.d.ts +0 -225
  312. package/types/card.d.ts +0 -48
  313. package/types/checkbox.d.ts +0 -24
  314. package/types/countdown.d.ts +0 -95
  315. package/types/curtain.d.ts +0 -26
  316. package/types/divider.d.ts +0 -33
  317. package/types/drawer.d.ts +0 -48
  318. package/types/fab.d.ts +0 -21
  319. package/types/flex.d.ts +0 -27
  320. package/types/float-button.d.ts +0 -26
  321. package/types/float-layout.d.ts +0 -73
  322. package/types/form.d.ts +0 -26
  323. package/types/grid.d.ts +0 -51
  324. package/types/icon.d.ts +0 -12
  325. package/types/image-picker.d.ts +0 -73
  326. package/types/index.d.ts +0 -55
  327. package/types/indexes.d.ts +0 -76
  328. package/types/input-number.d.ts +0 -89
  329. package/types/input.d.ts +0 -162
  330. package/types/list.d.ts +0 -84
  331. package/types/load-more.d.ts +0 -43
  332. package/types/message.d.ts +0 -43
  333. package/types/modal.d.ts +0 -62
  334. package/types/nav-bar.d.ts +0 -65
  335. package/types/noticebar.d.ts +0 -65
  336. package/types/pagination.d.ts +0 -51
  337. package/types/progress.d.ts +0 -30
  338. package/types/radio.d.ts +0 -47
  339. package/types/range.d.ts +0 -63
  340. package/types/rate.d.ts +0 -34
  341. package/types/search-bar.d.ts +0 -105
  342. package/types/segmented-control.d.ts +0 -44
  343. package/types/slider.d.ts +0 -73
  344. package/types/steps.d.ts +0 -69
  345. package/types/swipe-action.d.ts +0 -86
  346. package/types/switch.d.ts +0 -38
  347. package/types/tab-bar.d.ts +0 -98
  348. package/types/tabs-pane.d.ts +0 -25
  349. package/types/tabs.d.ts +0 -62
  350. package/types/tag.d.ts +0 -48
  351. package/types/textarea.d.ts +0 -113
  352. package/types/timeline.d.ts +0 -46
  353. package/types/toast.d.ts +0 -53
  354. /package/{dist → lib}/style/components/accordion.scss +0 -0
  355. /package/{dist → lib}/style/components/action-sheet.scss +0 -0
  356. /package/{dist → lib}/style/components/activity-indicator.scss +0 -0
  357. /package/{dist → lib}/style/components/article.scss +0 -0
  358. /package/{dist → lib}/style/components/avatar.scss +0 -0
  359. /package/{dist → lib}/style/components/badge.scss +0 -0
  360. /package/{dist → lib}/style/components/button.scss +0 -0
  361. /package/{dist → lib}/style/components/calendar.scss +0 -0
  362. /package/{dist → lib}/style/components/card.scss +0 -0
  363. /package/{dist → lib}/style/components/checkbox.scss +0 -0
  364. /package/{dist → lib}/style/components/countdown.scss +0 -0
  365. /package/{dist → lib}/style/components/curtain.scss +0 -0
  366. /package/{dist → lib}/style/components/divider.scss +0 -0
  367. /package/{dist → lib}/style/components/drawer.scss +0 -0
  368. /package/{dist → lib}/style/components/fab.scss +0 -0
  369. /package/{dist → lib}/style/components/flex.scss +0 -0
  370. /package/{dist → lib}/style/components/float-layout.scss +0 -0
  371. /package/{dist → lib}/style/components/form.scss +0 -0
  372. /package/{dist → lib}/style/components/icon.scss +0 -0
  373. /package/{dist → lib}/style/components/image-picker.scss +0 -0
  374. /package/{dist → lib}/style/components/indexes.scss +0 -0
  375. /package/{dist → lib}/style/components/input-number.scss +0 -0
  376. /package/{dist → lib}/style/components/input.scss +0 -0
  377. /package/{dist → lib}/style/components/load-more.scss +0 -0
  378. /package/{dist → lib}/style/components/loading.scss +0 -0
  379. /package/{dist → lib}/style/components/message.scss +0 -0
  380. /package/{dist → lib}/style/components/modal.scss +0 -0
  381. /package/{dist → lib}/style/components/nav-bar.scss +0 -0
  382. /package/{dist → lib}/style/components/noticebar.scss +0 -0
  383. /package/{dist → lib}/style/components/pagination.scss +0 -0
  384. /package/{dist → lib}/style/components/progress.scss +0 -0
  385. /package/{dist → lib}/style/components/radio.scss +0 -0
  386. /package/{dist → lib}/style/components/range.scss +0 -0
  387. /package/{dist → lib}/style/components/rate.scss +0 -0
  388. /package/{dist → lib}/style/components/search-bar.scss +0 -0
  389. /package/{dist → lib}/style/components/segmented-control.scss +0 -0
  390. /package/{dist → lib}/style/components/slider.scss +0 -0
  391. /package/{dist → lib}/style/components/steps.scss +0 -0
  392. /package/{dist → lib}/style/components/swipe-action.scss +0 -0
  393. /package/{dist → lib}/style/components/switch.scss +0 -0
  394. /package/{dist → lib}/style/components/tab-bar.scss +0 -0
  395. /package/{dist → lib}/style/components/tabs.scss +0 -0
  396. /package/{dist → lib}/style/components/tag.scss +0 -0
  397. /package/{dist → lib}/style/components/textarea.scss +0 -0
  398. /package/{dist → lib}/style/components/timeline.scss +0 -0
  399. /package/{dist → lib}/style/components/toast.scss +0 -0
  400. /package/{dist → lib}/style/index.scss +0 -0
  401. /package/{dist → lib}/style/mixins/libs/absolute-center.scss +0 -0
  402. /package/{dist → lib}/style/mixins/libs/active.scss +0 -0
  403. /package/{dist → lib}/style/mixins/libs/alignhack.scss +0 -0
  404. /package/{dist → lib}/style/mixins/libs/border.scss +0 -0
  405. /package/{dist → lib}/style/mixins/libs/clearfix.scss +0 -0
  406. /package/{dist → lib}/style/mixins/libs/disabled.scss +0 -0
  407. /package/{dist → lib}/style/mixins/libs/flex.scss +0 -0
  408. /package/{dist → lib}/style/mixins/libs/hairline.scss +0 -0
  409. /package/{dist → lib}/style/mixins/libs/line.scss +0 -0
  410. /package/{dist → lib}/style/mixins/libs/overlay.scss +0 -0
  411. /package/{dist → lib}/style/mixins/libs/placeholder.scss +0 -0
  412. /package/{dist → lib}/style/themes/purple.scss +0 -0
  413. /package/{dist → lib}/style/themes/red.scss +0 -0
@@ -1,116 +1,121 @@
1
- import classNames from 'classnames';
2
- import PropTypes from 'prop-types';
3
- import React from 'react';
4
- import { Text, View } from '@tarojs/components';
5
- import { delayQuerySelector, uuid } from '../../common/utils';
6
- export default class AtAccordion extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- this.handleClick = (event) => {
10
- const { open } = this.props;
11
- if (!this.isCompleted)
12
- return;
13
- this.props.onClick && this.props.onClick(!open, event);
14
- };
15
- this.isCompleted = true;
16
- this.startOpen = false;
17
- this.state = {
18
- componentId: uuid(),
19
- wrapperHeight: 0
20
- };
21
- }
22
- toggleWithAnimation() {
23
- const { open, isAnimation } = this.props;
24
- const { componentId } = this.state;
25
- if (!this.isCompleted || !isAnimation)
26
- return;
27
- this.isCompleted = false;
28
- delayQuerySelector(`#at-accordion__body-${componentId}`, 0).then(rect => {
29
- const height = parseInt(rect[0].height.toString());
30
- const startHeight = open ? height : 0;
31
- const endHeight = open ? 0 : height;
32
- this.startOpen = false;
33
- this.setState({
34
- wrapperHeight: startHeight
35
- }, () => {
1
+ import classNames from "classnames";
2
+ import PropTypes from "prop-types";
3
+ import React from "react";
4
+ import { Text, View } from "@tarojs/components";
5
+ import { delayQuerySelector, uuid } from "../../common/utils";
6
+ class AtAccordion extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+ this.handleClick = (event) => {
10
+ const { open } = this.props;
11
+ if (!this.isCompleted) return;
12
+ this.props.onClick && this.props.onClick(!open, event);
13
+ };
14
+ this.isCompleted = true;
15
+ this.startOpen = false;
16
+ this.state = {
17
+ componentId: uuid(),
18
+ wrapperHeight: 0
19
+ };
20
+ }
21
+ toggleWithAnimation() {
22
+ const { open, isAnimation } = this.props;
23
+ const { componentId } = this.state;
24
+ if (!this.isCompleted || !isAnimation) return;
25
+ this.isCompleted = false;
26
+ delayQuerySelector(`#at-accordion__body-${componentId}`, 0).then((rect) => {
27
+ const height = parseInt(rect[0].height.toString());
28
+ const startHeight = open ? height : 0;
29
+ const endHeight = open ? 0 : height;
30
+ this.startOpen = false;
31
+ this.setState(
32
+ {
33
+ wrapperHeight: startHeight
34
+ },
35
+ () => {
36
+ setTimeout(() => {
37
+ this.setState(
38
+ {
39
+ wrapperHeight: endHeight
40
+ },
41
+ () => {
36
42
  setTimeout(() => {
37
- this.setState({
38
- wrapperHeight: endHeight
39
- }, () => {
40
- setTimeout(() => {
41
- this.isCompleted = true;
42
- this.setState({});
43
- }, 700);
44
- });
45
- }, 100);
46
- });
47
- });
48
- }
49
- UNSAFE_componentWillReceiveProps(nextProps) {
50
- if (nextProps.open !== this.props.open) {
51
- this.startOpen = !!nextProps.open && !!nextProps.isAnimation;
52
- this.toggleWithAnimation();
43
+ this.isCompleted = true;
44
+ this.setState({});
45
+ }, 700);
46
+ }
47
+ );
48
+ }, 100);
53
49
  }
50
+ );
51
+ });
52
+ }
53
+ UNSAFE_componentWillReceiveProps(nextProps) {
54
+ if (nextProps.open !== this.props.open) {
55
+ this.startOpen = !!nextProps.open && !!nextProps.isAnimation;
56
+ this.toggleWithAnimation();
54
57
  }
55
- render() {
56
- const { customStyle, className, title, icon, hasBorder, open, note } = this.props;
57
- const { wrapperHeight } = this.state;
58
- const rootCls = classNames('at-accordion', className);
59
- const prefixClass = (icon && icon.prefixClass) || 'at-icon';
60
- const iconCls = classNames({
61
- [prefixClass]: true,
62
- [`${prefixClass}-${icon && icon.value}`]: icon && icon.value,
63
- 'at-accordion__icon': true
64
- });
65
- const headerCls = classNames('at-accordion__header', {
66
- 'at-accordion__header--noborder': !hasBorder
67
- });
68
- const arrowCls = classNames('at-accordion__arrow', {
69
- 'at-accordion__arrow--folded': !!open
70
- });
71
- const contentCls = classNames('at-accordion__content', {
72
- 'at-accordion__content--inactive': (!open && this.isCompleted) || this.startOpen
73
- });
74
- const iconStyle = {
75
- color: (icon && icon.color) || '',
76
- fontSize: (icon && `${icon.size}px`) || ''
77
- };
78
- const contentStyle = { height: `${wrapperHeight}px` };
79
- if (this.isCompleted) {
80
- contentStyle.height = '';
81
- }
82
- const { componentId } = this.state;
83
- return (React.createElement(View, { className: rootCls, style: customStyle },
84
- React.createElement(View, { className: headerCls, onClick: this.handleClick },
85
- icon && icon.value && (React.createElement(Text, { className: iconCls, style: iconStyle })),
86
- React.createElement(View, { className: 'at-accordion__info' },
87
- React.createElement(View, { className: 'at-accordion__info__title' }, title),
88
- React.createElement(View, { className: 'at-accordion__info__note' }, note)),
89
- React.createElement(View, { className: arrowCls },
90
- React.createElement(Text, { className: 'at-icon at-icon-chevron-down' }))),
91
- React.createElement(View, { style: contentStyle, className: contentCls },
92
- React.createElement(View, { id: `at-accordion__body-${componentId}`, className: 'at-accordion__body' }, this.props.children))));
58
+ }
59
+ render() {
60
+ const { customStyle, className, title, icon, hasBorder, open, note } = this.props;
61
+ const { wrapperHeight } = this.state;
62
+ const rootCls = classNames("at-accordion", className);
63
+ const prefixClass = icon && icon.prefixClass || "at-icon";
64
+ const iconCls = classNames({
65
+ [prefixClass]: true,
66
+ [`${prefixClass}-${icon && icon.value}`]: icon && icon.value,
67
+ "at-accordion__icon": true
68
+ });
69
+ const headerCls = classNames("at-accordion__header", {
70
+ "at-accordion__header--noborder": !hasBorder
71
+ });
72
+ const arrowCls = classNames("at-accordion__arrow", {
73
+ "at-accordion__arrow--folded": !!open
74
+ });
75
+ const contentCls = classNames("at-accordion__content", {
76
+ "at-accordion__content--inactive": !open && this.isCompleted || this.startOpen
77
+ });
78
+ const iconStyle = {
79
+ color: icon && icon.color || "",
80
+ fontSize: icon && `${icon.size}px` || ""
81
+ };
82
+ const contentStyle = { height: `${wrapperHeight}px` };
83
+ if (this.isCompleted) {
84
+ contentStyle.height = "";
93
85
  }
86
+ const { componentId } = this.state;
87
+ return /* @__PURE__ */ React.createElement(View, { className: rootCls, style: customStyle }, /* @__PURE__ */ React.createElement(View, { className: headerCls, onClick: this.handleClick }, icon && icon.value && /* @__PURE__ */ React.createElement(Text, { className: iconCls, style: iconStyle }), /* @__PURE__ */ React.createElement(View, { className: "at-accordion__info" }, /* @__PURE__ */ React.createElement(View, { className: "at-accordion__info__title" }, title), /* @__PURE__ */ React.createElement(View, { className: "at-accordion__info__note" }, note)), /* @__PURE__ */ React.createElement(View, { className: arrowCls }, /* @__PURE__ */ React.createElement(Text, { className: "at-icon at-icon-chevron-down" }))), /* @__PURE__ */ React.createElement(View, { style: contentStyle, className: contentCls }, /* @__PURE__ */ React.createElement(
88
+ View,
89
+ {
90
+ id: `at-accordion__body-${componentId}`,
91
+ className: "at-accordion__body"
92
+ },
93
+ this.props.children
94
+ )));
95
+ }
94
96
  }
95
97
  AtAccordion.defaultProps = {
96
- open: false,
97
- customStyle: '',
98
- className: '',
99
- title: '',
100
- note: '',
101
- icon: { value: '' },
102
- hasBorder: true,
103
- isAnimation: true
98
+ open: false,
99
+ customStyle: "",
100
+ className: "",
101
+ title: "",
102
+ note: "",
103
+ icon: { value: "" },
104
+ hasBorder: true,
105
+ isAnimation: true
104
106
  };
105
107
  AtAccordion.propTypes = {
106
- customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
107
- className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
108
- open: PropTypes.bool,
109
- isAnimation: PropTypes.bool,
110
- title: PropTypes.string,
111
- note: PropTypes.string,
112
- icon: PropTypes.object,
113
- hasBorder: PropTypes.bool,
114
- onClick: PropTypes.func
108
+ customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
109
+ className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
110
+ open: PropTypes.bool,
111
+ isAnimation: PropTypes.bool,
112
+ title: PropTypes.string,
113
+ note: PropTypes.string,
114
+ icon: PropTypes.object,
115
+ hasBorder: PropTypes.bool,
116
+ onClick: PropTypes.func
117
+ };
118
+ export {
119
+ AtAccordion as default
115
120
  };
116
121
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/accordion/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,SAAyB,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAG/C,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE7D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,SAG9C;IAOC,YAAmB,KAAuB;QACxC,KAAK,CAAC,KAAK,CAAC,CAAA;QASN,gBAAW,GAAG,CAAC,KAAkB,EAAQ,EAAE;YACjD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;YAC3B,IAAI,CAAC,IAAI,CAAC,WAAW;gBAAE,OAAM;YAE7B,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACxD,CAAC,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,CAAC,QAAQ,CACf,CACF,CACF,CACR,CAAA;IACH,CAAC;CACF;AAED,WAAW,CAAC,YAAY,GAAG;IACzB,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,EAAE;IACf,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACnB,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,WAAW,CAAC,SAAS,GAAG;IACtB,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACtE,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACnE,IAAI,EAAE,SAAS,CAAC,IAAI;IACpB,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,SAAS,EAAE,SAAS,CAAC,IAAI;IACzB,OAAO,EAAE,SAAS,CAAC,IAAI;CACxB,CAAA"}
1
+ {"version":3,"sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport PropTypes, { InferProps } from 'prop-types'\nimport React from 'react'\nimport { Text, View } from '@tarojs/components'\nimport { CommonEvent } from '@tarojs/components/types/common'\nimport { AtAccordionProps, AtAccordionState } from '../../../types/accordion'\nimport { delayQuerySelector, uuid } from '../../common/utils'\n\nexport default class AtAccordion extends React.Component<\n AtAccordionProps,\n AtAccordionState\n> {\n private isCompleted: boolean\n private startOpen: boolean\n\n public static defaultProps: AtAccordionProps\n public static propTypes: InferProps<AtAccordionProps>\n\n public constructor(props: AtAccordionProps) {\n super(props)\n this.isCompleted = true\n this.startOpen = false\n this.state = {\n componentId: uuid(),\n wrapperHeight: 0\n }\n }\n\n private handleClick = (event: CommonEvent): void => {\n const { open } = this.props\n if (!this.isCompleted) return\n\n this.props.onClick && this.props.onClick(!open, event)\n }\n\n private toggleWithAnimation(): void {\n const { open, isAnimation } = this.props\n const { componentId } = this.state\n if (!this.isCompleted || !isAnimation) return\n\n this.isCompleted = false\n\n delayQuerySelector(`#at-accordion__body-${componentId}`, 0).then(rect => {\n const height = parseInt(rect[0].height.toString())\n const startHeight = open ? height : 0\n const endHeight = open ? 0 : height\n this.startOpen = false\n this.setState(\n {\n wrapperHeight: startHeight\n },\n () => {\n setTimeout(() => {\n this.setState(\n {\n wrapperHeight: endHeight\n },\n () => {\n setTimeout(() => {\n this.isCompleted = true\n this.setState({})\n }, 700)\n }\n )\n }, 100)\n }\n )\n })\n }\n\n public UNSAFE_componentWillReceiveProps(nextProps: AtAccordionProps): void {\n if (nextProps.open !== this.props.open) {\n this.startOpen = !!nextProps.open && !!nextProps.isAnimation\n this.toggleWithAnimation()\n }\n }\n\n public render(): JSX.Element {\n const { customStyle, className, title, icon, hasBorder, open, note } =\n this.props\n const { wrapperHeight } = this.state\n\n const rootCls = classNames('at-accordion', className)\n const prefixClass = (icon && icon.prefixClass) || 'at-icon'\n const iconCls = classNames({\n [prefixClass]: true,\n [`${prefixClass}-${icon && icon.value}`]: icon && icon.value,\n 'at-accordion__icon': true\n })\n const headerCls = classNames('at-accordion__header', {\n 'at-accordion__header--noborder': !hasBorder\n })\n const arrowCls = classNames('at-accordion__arrow', {\n 'at-accordion__arrow--folded': !!open\n })\n const contentCls = classNames('at-accordion__content', {\n 'at-accordion__content--inactive':\n (!open && this.isCompleted) || this.startOpen\n })\n const iconStyle = {\n color: (icon && icon.color) || '',\n fontSize: (icon && `${icon.size}px`) || ''\n }\n const contentStyle = { height: `${wrapperHeight}px` }\n\n if (this.isCompleted) {\n contentStyle.height = ''\n }\n\n const { componentId } = this.state\n\n return (\n <View className={rootCls} style={customStyle}>\n <View className={headerCls} onClick={this.handleClick}>\n {icon && icon.value && (\n <Text className={iconCls} style={iconStyle}></Text>\n )}\n <View className='at-accordion__info'>\n <View className='at-accordion__info__title'>{title}</View>\n <View className='at-accordion__info__note'>{note}</View>\n </View>\n <View className={arrowCls}>\n <Text className='at-icon at-icon-chevron-down'></Text>\n </View>\n </View>\n <View style={contentStyle} className={contentCls}>\n <View\n id={`at-accordion__body-${componentId}`}\n className='at-accordion__body'\n >\n {this.props.children}\n </View>\n </View>\n </View>\n )\n }\n}\n\nAtAccordion.defaultProps = {\n open: false,\n customStyle: '',\n className: '',\n title: '',\n note: '',\n icon: { value: '' },\n hasBorder: true,\n isAnimation: true\n}\n\nAtAccordion.propTypes = {\n customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),\n open: PropTypes.bool,\n isAnimation: PropTypes.bool,\n title: PropTypes.string,\n note: PropTypes.string,\n icon: PropTypes.object,\n hasBorder: PropTypes.bool,\n onClick: PropTypes.func\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,OAAO,eAA+B;AACtC,OAAO,WAAW;AAClB,SAAS,MAAM,YAAY;AAG3B,SAAS,oBAAoB,YAAY;AAEzC,MAAO,oBAAkC,MAAM,UAG7C;AAAA,EAOO,YAAY,OAAyB;AAC1C,UAAM,KAAK;AASb,SAAQ,cAAc,CAAC,UAA6B;AAClD,YAAM,EAAE,KAAK,IAAI,KAAK;AACtB,UAAI,CAAC,KAAK,YAAa;AAEvB,WAAK,MAAM,WAAW,KAAK,MAAM,QAAQ,CAAC,MAAM,KAAK;AAAA,IACvD;AAbE,SAAK,cAAc;AACnB,SAAK,YAAY;AACjB,SAAK,QAAQ;AAAA,MACX,aAAa,KAAK;AAAA,MAClB,eAAe;AAAA,IACjB;AAAA,EACF;AAAA,EASQ,sBAA4B;AAClC,UAAM,EAAE,MAAM,YAAY,IAAI,KAAK;AACnC,UAAM,EAAE,YAAY,IAA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EACrE,WAAW,UAAU,UAAU,CAAC,UAAU,OAAO,UAAU,MAAM,CAAC;AAAA,EAClE,MAAM,UAAU;AAAA,EAChB,aAAa,UAAU;AAAA,EACvB,OAAO,UAAU;AAAA,EACjB,MAAM,UAAU;AAAA,EAChB,MAAM,UAAU;AAAA,EAChB,WAAW,UAAU;AAAA,EACrB,SAAS,UAAU;AACrB;","names":[]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { AtActionSheetBodyProps } from '../../../../types/action-sheet';
3
+ export default class AtActionSheetBody extends React.Component<AtActionSheetBodyProps> {
4
+ render(): JSX.Element;
5
+ }
@@ -1,10 +1,13 @@
1
- import classNames from 'classnames';
2
- import React from 'react';
3
- import { View } from '@tarojs/components';
4
- export default class AtActionSheetBody extends React.Component {
5
- render() {
6
- const rootClass = classNames('at-action-sheet__body', this.props.className);
7
- return React.createElement(View, { className: rootClass }, this.props.children);
8
- }
1
+ import classNames from "classnames";
2
+ import React from "react";
3
+ import { View } from "@tarojs/components";
4
+ class AtActionSheetBody extends React.Component {
5
+ render() {
6
+ const rootClass = classNames("at-action-sheet__body", this.props.className);
7
+ return /* @__PURE__ */ React.createElement(View, { className: rootClass }, this.props.children);
8
+ }
9
9
  }
10
+ export {
11
+ AtActionSheetBody as default
12
+ };
10
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/action-sheet/body/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAGzC,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,KAAK,CAAC,SAAiC;IAC7E,MAAM;QACX,MAAM,SAAS,GAAG,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAC3E,OAAO,oBAAC,IAAI,IAAC,SAAS,EAAE,SAAS,IAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAQ,CAAA;IACjE,CAAC;CACF"}
1
+ {"version":3,"sources":["../../../../src/components/action-sheet/body/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport React from 'react'\nimport { View } from '@tarojs/components'\nimport { AtActionSheetBodyProps } from '../../../../types/action-sheet'\n\nexport default class AtActionSheetBody extends React.Component<AtActionSheetBodyProps> {\n public render(): JSX.Element {\n const rootClass = classNames('at-action-sheet__body', this.props.className)\n return <View className={rootClass}>{this.props.children}</View>\n }\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAClB,SAAS,YAAY;AAGrB,MAAO,0BAAwC,MAAM,UAAkC;AAAA,EAC9E,SAAsB;AAC3B,UAAM,YAAY,WAAW,yBAAyB,KAAK,MAAM,SAAS;AAC1E,WAAO,oCAAC,QAAK,WAAW,aAAY,KAAK,MAAM,QAAS;AAAA,EAC1D;AACF;","names":[]}
@@ -0,0 +1,9 @@
1
+ import { InferProps } from 'prop-types';
2
+ import React from 'react';
3
+ import { AtActionSheetItemProps } from '../../../../../types/action-sheet';
4
+ export default class AtActionSheetItem extends React.Component<AtActionSheetItemProps> {
5
+ static defaultProps: AtActionSheetItemProps;
6
+ static propTypes: InferProps<AtActionSheetItemProps>;
7
+ private handleClick;
8
+ render(): JSX.Element;
9
+ }
@@ -1,22 +1,25 @@
1
- import classNames from 'classnames';
2
- import PropTypes from 'prop-types';
3
- import React from 'react';
4
- import { View } from '@tarojs/components';
5
- export default class AtActionSheetItem extends React.Component {
6
- constructor() {
7
- super(...arguments);
8
- this.handleClick = (args) => {
9
- if (typeof this.props.onClick === 'function') {
10
- this.props.onClick(args);
11
- }
12
- };
13
- }
14
- render() {
15
- const rootClass = classNames('at-action-sheet__item', this.props.className);
16
- return (React.createElement(View, { className: rootClass, onClick: this.handleClick }, this.props.children));
17
- }
1
+ import classNames from "classnames";
2
+ import PropTypes from "prop-types";
3
+ import React from "react";
4
+ import { View } from "@tarojs/components";
5
+ class AtActionSheetItem extends React.Component {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.handleClick = (args) => {
9
+ if (typeof this.props.onClick === "function") {
10
+ this.props.onClick(args);
11
+ }
12
+ };
13
+ }
14
+ render() {
15
+ const rootClass = classNames("at-action-sheet__item", this.props.className);
16
+ return /* @__PURE__ */ React.createElement(View, { className: rootClass, onClick: this.handleClick }, this.props.children);
17
+ }
18
18
  }
19
19
  AtActionSheetItem.propTypes = {
20
- onClick: PropTypes.func
20
+ onClick: PropTypes.func
21
+ };
22
+ export {
23
+ AtActionSheetItem as default
21
24
  };
22
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/action-sheet/body/item/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,SAAyB,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAGzC,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,KAAK,CAAC,SAAiC;IAAtF;;QAIU,gBAAW,GAAG,CAAC,IAAS,EAAQ,EAAE;YACxC,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,UAAU,EAAE;gBAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;aACzB;QACH,CAAC,CAAA;IAWH,CAAC;IATQ,MAAM;QACX,MAAM,SAAS,GAAG,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAE3E,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,WAAW,IAClD,IAAI,CAAC,KAAK,CAAC,QAAQ,CACf,CACR,CAAA;IACH,CAAC;CACF;AAED,iBAAiB,CAAC,SAAS,GAAG;IAC5B,OAAO,EAAE,SAAS,CAAC,IAAI;CACxB,CAAA"}
1
+ {"version":3,"sources":["../../../../../src/components/action-sheet/body/item/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport PropTypes, { InferProps } from 'prop-types'\nimport React from 'react'\nimport { View } from '@tarojs/components'\nimport { AtActionSheetItemProps } from '../../../../../types/action-sheet'\n\nexport default class AtActionSheetItem extends React.Component<AtActionSheetItemProps> {\n public static defaultProps: AtActionSheetItemProps\n public static propTypes: InferProps<AtActionSheetItemProps>\n\n private handleClick = (args: any): void => {\n if (typeof this.props.onClick === 'function') {\n this.props.onClick(args)\n }\n }\n\n public render(): JSX.Element {\n const rootClass = classNames('at-action-sheet__item', this.props.className)\n\n return (\n <View className={rootClass} onClick={this.handleClick}>\n {this.props.children}\n </View>\n )\n }\n}\n\nAtActionSheetItem.propTypes = {\n onClick: PropTypes.func\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,OAAO,eAA+B;AACtC,OAAO,WAAW;AAClB,SAAS,YAAY;AAGrB,MAAO,0BAAwC,MAAM,UAAkC;AAAA,EAAvF;AAAA;AAIE,SAAQ,cAAc,CAAC,SAAoB;AACzC,UAAI,OAAO,KAAK,MAAM,YAAY,YAAY;AAC5C,aAAK,MAAM,QAAQ,IAAI;AAAA,MACzB;AAAA,IACF;AAAA;AAAA,EAEO,SAAsB;AAC3B,UAAM,YAAY,WAAW,yBAAyB,KAAK,MAAM,SAAS;AAE1E,WACE,oCAAC,QAAK,WAAW,WAAW,SAAS,KAAK,eACvC,KAAK,MAAM,QACd;AAAA,EAEJ;AACF;AAEA,kBAAkB,YAAY;AAAA,EAC5B,SAAS,UAAU;AACrB;","names":[]}
@@ -0,0 +1,9 @@
1
+ import { InferProps } from 'prop-types';
2
+ import React from 'react';
3
+ import { AtActionSheetFooterProps } from '../../../../types/action-sheet';
4
+ export default class AtActionSheetFooter extends React.Component<AtActionSheetFooterProps> {
5
+ static defaultProps: AtActionSheetFooterProps;
6
+ static propTypes: InferProps<AtActionSheetFooterProps>;
7
+ private handleClick;
8
+ render(): JSX.Element;
9
+ }
@@ -1,22 +1,28 @@
1
- import classNames from 'classnames';
2
- import PropTypes from 'prop-types';
3
- import React from 'react';
4
- import { View } from '@tarojs/components';
5
- export default class AtActionSheetFooter extends React.Component {
6
- constructor() {
7
- super(...arguments);
8
- this.handleClick = (...args) => {
9
- if (typeof this.props.onClick === 'function') {
10
- this.props.onClick(...args);
11
- }
12
- };
13
- }
14
- render() {
15
- const rootClass = classNames('at-action-sheet__footer', this.props.className);
16
- return (React.createElement(View, { onClick: this.handleClick, className: rootClass }, this.props.children));
17
- }
1
+ import classNames from "classnames";
2
+ import PropTypes from "prop-types";
3
+ import React from "react";
4
+ import { View } from "@tarojs/components";
5
+ class AtActionSheetFooter extends React.Component {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.handleClick = (...args) => {
9
+ if (typeof this.props.onClick === "function") {
10
+ this.props.onClick(...args);
11
+ }
12
+ };
13
+ }
14
+ render() {
15
+ const rootClass = classNames(
16
+ "at-action-sheet__footer",
17
+ this.props.className
18
+ );
19
+ return /* @__PURE__ */ React.createElement(View, { onClick: this.handleClick, className: rootClass }, this.props.children);
20
+ }
18
21
  }
19
22
  AtActionSheetFooter.propTypes = {
20
- onClick: PropTypes.func
23
+ onClick: PropTypes.func
24
+ };
25
+ export {
26
+ AtActionSheetFooter as default
21
27
  };
22
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/action-sheet/footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,SAAyB,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAGzC,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,KAAK,CAAC,SAAmC;IAA1F;;QAIU,gBAAW,GAAG,CAAC,GAAG,IAAW,EAAQ,EAAE;YAC7C,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,UAAU,EAAE;gBAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAA;aAC5B;QACH,CAAC,CAAA;IAcH,CAAC;IAZQ,MAAM;QACX,MAAM,SAAS,GAAG,UAAU,CAC1B,yBAAyB,EACzB,IAAI,CAAC,KAAK,CAAC,SAAS,CACrB,CAAA;QAED,OAAO,CACL,oBAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,IAClD,IAAI,CAAC,KAAK,CAAC,QAAQ,CACf,CACR,CAAA;IACH,CAAC;CACF;AAED,mBAAmB,CAAC,SAAS,GAAG;IAC9B,OAAO,EAAE,SAAS,CAAC,IAAI;CACxB,CAAA"}
1
+ {"version":3,"sources":["../../../../src/components/action-sheet/footer/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport PropTypes, { InferProps } from 'prop-types'\nimport React from 'react'\nimport { View } from '@tarojs/components'\nimport { AtActionSheetFooterProps } from '../../../../types/action-sheet'\n\nexport default class AtActionSheetFooter extends React.Component<AtActionSheetFooterProps> {\n public static defaultProps: AtActionSheetFooterProps\n public static propTypes: InferProps<AtActionSheetFooterProps>\n\n private handleClick = (...args: any[]): void => {\n if (typeof this.props.onClick === 'function') {\n this.props.onClick(...args)\n }\n }\n\n public render(): JSX.Element {\n const rootClass = classNames(\n 'at-action-sheet__footer',\n this.props.className\n )\n\n return (\n <View onClick={this.handleClick} className={rootClass}>\n {this.props.children}\n </View>\n )\n }\n}\n\nAtActionSheetFooter.propTypes = {\n onClick: PropTypes.func\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,OAAO,eAA+B;AACtC,OAAO,WAAW;AAClB,SAAS,YAAY;AAGrB,MAAO,4BAA0C,MAAM,UAAoC;AAAA,EAA3F;AAAA;AAIE,SAAQ,cAAc,IAAI,SAAsB;AAC9C,UAAI,OAAO,KAAK,MAAM,YAAY,YAAY;AAC5C,aAAK,MAAM,QAAQ,GAAG,IAAI;AAAA,MAC5B;AAAA,IACF;AAAA;AAAA,EAEO,SAAsB;AAC3B,UAAM,YAAY;AAAA,MAChB;AAAA,MACA,KAAK,MAAM;AAAA,IACb;AAEA,WACE,oCAAC,QAAK,SAAS,KAAK,aAAa,WAAW,aACzC,KAAK,MAAM,QACd;AAAA,EAEJ;AACF;AAEA,oBAAoB,YAAY;AAAA,EAC9B,SAAS,UAAU;AACrB;","names":[]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { AtActionSheetHeaderProps } from '../../../../types/action-sheet';
3
+ export default class AtActionSheetHeader extends React.Component<AtActionSheetHeaderProps> {
4
+ render(): JSX.Element;
5
+ }
@@ -1,10 +1,16 @@
1
- import classNames from 'classnames';
2
- import React from 'react';
3
- import { View } from '@tarojs/components';
4
- export default class AtActionSheetHeader extends React.Component {
5
- render() {
6
- const rootClass = classNames('at-action-sheet__header', this.props.className);
7
- return React.createElement(View, { className: rootClass }, this.props.children);
8
- }
1
+ import classNames from "classnames";
2
+ import React from "react";
3
+ import { View } from "@tarojs/components";
4
+ class AtActionSheetHeader extends React.Component {
5
+ render() {
6
+ const rootClass = classNames(
7
+ "at-action-sheet__header",
8
+ this.props.className
9
+ );
10
+ return /* @__PURE__ */ React.createElement(View, { className: rootClass }, this.props.children);
11
+ }
9
12
  }
13
+ export {
14
+ AtActionSheetHeader as default
15
+ };
10
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/action-sheet/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAGzC,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,KAAK,CAAC,SAAmC;IACjF,MAAM;QACX,MAAM,SAAS,GAAG,UAAU,CAC1B,yBAAyB,EACzB,IAAI,CAAC,KAAK,CAAC,SAAS,CACrB,CAAA;QAED,OAAO,oBAAC,IAAI,IAAC,SAAS,EAAE,SAAS,IAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAQ,CAAA;IACjE,CAAC;CACF"}
1
+ {"version":3,"sources":["../../../../src/components/action-sheet/header/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport React from 'react'\nimport { View } from '@tarojs/components'\nimport { AtActionSheetHeaderProps } from '../../../../types/action-sheet'\n\nexport default class AtActionSheetHeader extends React.Component<AtActionSheetHeaderProps> {\n public render(): JSX.Element {\n const rootClass = classNames(\n 'at-action-sheet__header',\n this.props.className\n )\n\n return <View className={rootClass}>{this.props.children}</View>\n }\n}\n"],"mappings":"AAAA,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAClB,SAAS,YAAY;AAGrB,MAAO,4BAA0C,MAAM,UAAoC;AAAA,EAClF,SAAsB;AAC3B,UAAM,YAAY;AAAA,MAChB;AAAA,MACA,KAAK,MAAM;AAAA,IACb;AAEA,WAAO,oCAAC,QAAK,WAAW,aAAY,KAAK,MAAM,QAAS;AAAA,EAC1D;AACF;","names":[]}
@@ -0,0 +1,14 @@
1
+ import { InferProps } from 'prop-types';
2
+ import React from 'react';
3
+ import { AtActionSheetProps, AtActionSheetState } from '../../../types/action-sheet';
4
+ export default class AtActionSheet extends React.Component<AtActionSheetProps, AtActionSheetState> {
5
+ static defaultProps: AtActionSheetProps;
6
+ static propTypes: InferProps<AtActionSheetProps>;
7
+ constructor(props: AtActionSheetProps);
8
+ UNSAFE_componentWillReceiveProps(nextProps: AtActionSheetProps): void;
9
+ private handleClose;
10
+ private handleCancel;
11
+ private close;
12
+ private handleTouchMove;
13
+ render(): JSX.Element;
14
+ }