@trionesdev/antd-taro-react 0.0.1-beta.3 → 0.0.2-beta.0

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 (581) hide show
  1. package/dist/ActionSheet/index.d.ts +3 -0
  2. package/dist/ActionSheet/index.js +2 -0
  3. package/dist/Alert/index.d.ts +1 -1
  4. package/dist/Alert/index.js +1 -1
  5. package/dist/Avatar/index.d.ts +2 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/Badge/index.d.ts +2 -2
  8. package/dist/Badge/index.js +1 -1
  9. package/dist/Button/button.d.ts +10 -6
  10. package/dist/Button/button.js +17 -9
  11. package/dist/Button/style.scss +231 -193
  12. package/dist/Calendar/calendar-grid.js +2 -2
  13. package/dist/Calendar/calendar-header.js +3 -3
  14. package/dist/Calendar/calendar-range.d.ts +3 -2
  15. package/dist/Calendar/calendar-range.js +17 -7
  16. package/dist/Calendar/calendar.d.ts +5 -3
  17. package/dist/Calendar/calendar.js +22 -8
  18. package/dist/Calendar/index.d.ts +4 -4
  19. package/dist/Calendar/style.scss +85 -85
  20. package/dist/Calendar/touchable-calendar-grid.js +49 -41
  21. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +10 -0
  22. package/dist/{Switch/switch.js → CalendarDatetimePicker/CalendarDatetimePicker.js} +154 -93
  23. package/dist/CalendarDatetimePicker/DateTimeSwitch.d.ts +14 -0
  24. package/dist/{Checkbox/checkbox-button.js → CalendarDatetimePicker/DateTimeSwitch.js} +26 -29
  25. package/dist/CalendarDatetimePicker/index.d.ts +3 -0
  26. package/dist/CalendarDatetimePicker/index.js +2 -0
  27. package/dist/CalendarDatetimePicker/style.scss +54 -0
  28. package/dist/CalendarDatetimePicker/types.d.ts +5 -0
  29. package/dist/CalendarDatetimePicker/types.js +6 -0
  30. package/dist/CalendarPicker/calendar-picker.d.ts +3 -3
  31. package/dist/CalendarPicker/calendar-picker.js +13 -12
  32. package/dist/CalendarPicker/calendar-range-picker.js +8 -7
  33. package/dist/CalendarPicker/style.scss +31 -20
  34. package/dist/Card/index.d.ts +2 -3
  35. package/dist/Card/index.js +1 -2
  36. package/dist/CascaderPicker/index.d.ts +1 -1
  37. package/dist/CascaderPicker/index.js +1 -1
  38. package/dist/CascaderView/index.d.ts +1 -1
  39. package/dist/CascaderView/index.js +1 -1
  40. package/dist/Cell/index.d.ts +3 -0
  41. package/dist/Cell/index.js +2 -0
  42. package/dist/Checkbox/index.d.ts +2 -8
  43. package/dist/Checkbox/index.js +1 -10
  44. package/dist/ConfigProvider/index.d.ts +2 -3
  45. package/dist/ConfigProvider/index.js +1 -2
  46. package/dist/Descriptions/index.d.ts +3 -0
  47. package/dist/Descriptions/index.js +2 -0
  48. package/dist/Divider/index.d.ts +2 -1
  49. package/dist/Divider/index.js +1 -1
  50. package/dist/Ellipsis/index.d.ts +2 -2
  51. package/dist/Ellipsis/index.js +1 -1
  52. package/dist/Empty/index.d.ts +2 -11
  53. package/dist/Empty/index.js +1 -48
  54. package/dist/ErrorBlock/index.d.ts +2 -6
  55. package/dist/ErrorBlock/index.js +1 -2
  56. package/dist/Footer/index.d.ts +2 -2
  57. package/dist/Footer/index.js +1 -1
  58. package/dist/Form/index.d.ts +1 -10
  59. package/dist/Form/index.js +1 -7
  60. package/dist/Grid/index.d.ts +2 -6
  61. package/dist/Grid/index.js +1 -3
  62. package/dist/Image/image.d.ts +9 -0
  63. package/dist/{Card/native-props.js → Image/image.js} +15 -19
  64. package/dist/Image/index.d.ts +3 -0
  65. package/dist/Image/index.js +2 -0
  66. package/dist/ImagesPreview/ImagesPreview.d.ts +12 -0
  67. package/dist/ImagesPreview/ImagesPreview.js +84 -0
  68. package/dist/ImagesPreview/index.d.ts +3 -0
  69. package/dist/ImagesPreview/index.js +2 -0
  70. package/dist/ImagesPreview/style.scss +34 -0
  71. package/dist/ImagesWall/ImagesWall.d.ts +29 -0
  72. package/dist/ImagesWall/ImagesWall.js +139 -0
  73. package/dist/ImagesWall/index.d.ts +3 -0
  74. package/dist/ImagesWall/index.js +2 -0
  75. package/dist/ImagesWall/style.scss +70 -0
  76. package/dist/Input/index.d.ts +2 -9
  77. package/dist/Input/index.js +1 -6
  78. package/dist/InputNumber/index.d.ts +1 -1
  79. package/dist/InputNumber/index.js +1 -1
  80. package/dist/Mask/index.d.ts +2 -1
  81. package/dist/Mask/index.js +1 -1
  82. package/dist/NavBar/index.d.ts +2 -2
  83. package/dist/NavBar/index.js +1 -1
  84. package/dist/NoticeBar/index.d.ts +2 -2
  85. package/dist/NoticeBar/index.js +1 -1
  86. package/dist/PageIndicator/index.d.ts +2 -2
  87. package/dist/PageIndicator/index.js +1 -1
  88. package/dist/Picker/index.d.ts +1 -1
  89. package/dist/Picker/index.js +1 -1
  90. package/dist/PickerView/index.d.ts +2 -3
  91. package/dist/PickerView/index.js +1 -1
  92. package/dist/Popup/index.d.ts +1 -1
  93. package/dist/Popup/index.js +1 -1
  94. package/dist/Progress/Progress.d.ts +38 -0
  95. package/dist/Progress/Progress.js +53 -0
  96. package/dist/Progress/ProgressCircle.d.ts +16 -0
  97. package/dist/Progress/ProgressCircle.js +147 -0
  98. package/dist/Progress/ProgressLine.d.ts +15 -0
  99. package/dist/Progress/ProgressLine.js +87 -0
  100. package/dist/Progress/index.d.ts +3 -0
  101. package/dist/Progress/index.js +2 -0
  102. package/dist/Progress/style.scss +33 -0
  103. package/dist/Progress/types.d.ts +4 -0
  104. package/dist/Progress/types.js +2 -0
  105. package/dist/Radio/index.d.ts +2 -10
  106. package/dist/Radio/index.js +1 -13
  107. package/dist/Rate/index.d.ts +2 -1
  108. package/dist/Rate/index.js +1 -1
  109. package/dist/Result/index.d.ts +2 -2
  110. package/dist/Result/index.js +1 -1
  111. package/dist/SafeArea/index.d.ts +2 -3
  112. package/dist/SafeArea/index.js +1 -2
  113. package/dist/Scaffold/index.d.ts +1 -1
  114. package/dist/Scaffold/index.js +1 -1
  115. package/dist/ScrollView/index.d.ts +1 -1
  116. package/dist/ScrollView/index.js +1 -1
  117. package/dist/SideBar/SideBarContext.d.ts +3 -3
  118. package/dist/SideBar/index.d.ts +1 -1
  119. package/dist/SideBar/side-bar.js +183 -95
  120. package/dist/SideBar/style.scss +85 -86
  121. package/dist/Space/index.d.ts +2 -2
  122. package/dist/Space/index.js +1 -1
  123. package/dist/SpinLoading/index.d.ts +2 -1
  124. package/dist/SpinLoading/index.js +1 -1
  125. package/dist/Steps/index.d.ts +3 -0
  126. package/dist/Steps/index.js +2 -0
  127. package/dist/Swiper/index.d.ts +8 -0
  128. package/dist/Swiper/index.js +5 -0
  129. package/dist/Swiper/swiper.d.ts +11 -0
  130. package/dist/{Avatar/avatar.js → Swiper/swiper.js} +19 -34
  131. package/dist/Switch/index.d.ts +2 -2
  132. package/dist/Switch/index.js +1 -1
  133. package/dist/TabBar/index.d.ts +2 -5
  134. package/dist/TabBar/index.js +1 -2
  135. package/dist/Tabs/index.d.ts +1 -7
  136. package/dist/Tabs/index.js +1 -4
  137. package/dist/Tag/index.d.ts +1 -1
  138. package/dist/Tag/index.js +1 -1
  139. package/dist/Toast/index.d.ts +1 -6
  140. package/dist/Toast/index.js +1 -3
  141. package/dist/VerificationCodeInput/index.d.ts +2 -1
  142. package/dist/VerificationCodeInput/index.js +1 -1
  143. package/dist/WaterMark/index.d.ts +2 -2
  144. package/dist/WaterMark/index.js +1 -1
  145. package/dist/hooks/index.d.ts +1 -0
  146. package/dist/hooks/index.js +1 -0
  147. package/dist/hooks/useTaro.d.ts +7 -0
  148. package/dist/hooks/useTaro.js +21 -0
  149. package/dist/index.d.ts +55 -11
  150. package/dist/index.js +15 -7
  151. package/dist/types.d.ts +9 -0
  152. package/dist/utils/datetime-utils.d.ts +3 -0
  153. package/dist/utils/datetime-utils.js +18 -0
  154. package/dist/utils/random-utils.d.ts +3 -0
  155. package/dist/utils/random-utils.js +13 -0
  156. package/package.json +36 -72
  157. package/readme.md +23 -43
  158. package/dist/Alert/alert.d.ts +0 -32
  159. package/dist/Alert/alert.js +0 -49
  160. package/dist/Alert/demo/base.d.ts +0 -3
  161. package/dist/Alert/demo/base.js +0 -56
  162. package/dist/Alert/style.scss +0 -69
  163. package/dist/Avatar/avatar.d.ts +0 -14
  164. package/dist/Avatar/demo/base.d.ts +0 -7
  165. package/dist/Avatar/demo/base.js +0 -109
  166. package/dist/Avatar/demo/style.scss +0 -6
  167. package/dist/Avatar/style.scss +0 -16
  168. package/dist/Badge/badge.d.ts +0 -14
  169. package/dist/Badge/badge.js +0 -82
  170. package/dist/Badge/demo/base.d.ts +0 -7
  171. package/dist/Badge/demo/base.js +0 -167
  172. package/dist/Badge/demo/base.scss +0 -6
  173. package/dist/Badge/style.scss +0 -100
  174. package/dist/Button/demo/base.d.ts +0 -3
  175. package/dist/Button/demo/base.js +0 -163
  176. package/dist/Calendar/demo/calendar.d.ts +0 -3
  177. package/dist/Calendar/demo/calendar.js +0 -10
  178. package/dist/Calendar/demo/grid.d.ts +0 -3
  179. package/dist/Calendar/demo/grid.js +0 -12
  180. package/dist/Calendar/demo/touch-grid.d.ts +0 -3
  181. package/dist/Calendar/demo/touch-grid.js +0 -8
  182. package/dist/CalendarPicker/demo/base.d.ts +0 -3
  183. package/dist/CalendarPicker/demo/base.js +0 -65
  184. package/dist/Card/card.d.ts +0 -17
  185. package/dist/Card/card.js +0 -36
  186. package/dist/Card/demo/base.d.ts +0 -4
  187. package/dist/Card/demo/base.js +0 -63
  188. package/dist/Card/demo/base.scss +0 -18
  189. package/dist/Card/native-props.d.ts +0 -8
  190. package/dist/Card/style.scss +0 -31
  191. package/dist/CascaderPicker/cascader-picker.d.ts +0 -20
  192. package/dist/CascaderPicker/cascader-picker.js +0 -106
  193. package/dist/CascaderPicker/demo/base.d.ts +0 -3
  194. package/dist/CascaderPicker/demo/base.js +0 -85
  195. package/dist/CascaderPicker/style.scss +0 -39
  196. package/dist/CascaderView/cascader-column-item.d.ts +0 -8
  197. package/dist/CascaderView/cascader-column-item.js +0 -19
  198. package/dist/CascaderView/cascader-column.d.ts +0 -9
  199. package/dist/CascaderView/cascader-column.js +0 -26
  200. package/dist/CascaderView/cascader-view.d.ts +0 -12
  201. package/dist/CascaderView/cascader-view.js +0 -120
  202. package/dist/CascaderView/demo/async.d.ts +0 -3
  203. package/dist/CascaderView/demo/async.js +0 -41
  204. package/dist/CascaderView/demo/base.d.ts +0 -3
  205. package/dist/CascaderView/demo/base.js +0 -62
  206. package/dist/CascaderView/demo/value.d.ts +0 -3
  207. package/dist/CascaderView/demo/value.js +0 -63
  208. package/dist/CascaderView/style.scss +0 -20
  209. package/dist/CascaderView/types.d.ts +0 -10
  210. package/dist/Checkbox/checkbox-button.d.ts +0 -3
  211. package/dist/Checkbox/checkbox-group.d.ts +0 -3
  212. package/dist/Checkbox/checkbox-group.js +0 -32
  213. package/dist/Checkbox/checkbox.d.ts +0 -4
  214. package/dist/Checkbox/checkbox.js +0 -43
  215. package/dist/Checkbox/demo/base.d.ts +0 -6
  216. package/dist/Checkbox/demo/base.js +0 -42
  217. package/dist/Checkbox/demo/disabled.d.ts +0 -3
  218. package/dist/Checkbox/demo/disabled.js +0 -19
  219. package/dist/Checkbox/group-context.d.ts +0 -3
  220. package/dist/Checkbox/group-context.js +0 -2
  221. package/dist/Checkbox/index.scss +0 -151
  222. package/dist/Checkbox/types.d.ts +0 -19
  223. package/dist/Checkbox/types.js +0 -1
  224. package/dist/ConfigProvider/config-provider.d.ts +0 -57
  225. package/dist/ConfigProvider/config-provider.js +0 -41
  226. package/dist/ConfigProvider/demo/base.d.ts +0 -6
  227. package/dist/ConfigProvider/demo/base.js +0 -24
  228. package/dist/DemoBlock/index.d.ts +0 -10
  229. package/dist/DemoBlock/index.js +0 -15
  230. package/dist/DemoBlock/index.scss +0 -20
  231. package/dist/DemoDescription/index.d.ts +0 -6
  232. package/dist/DemoDescription/index.js +0 -7
  233. package/dist/DemoDescription/index.scss +0 -3
  234. package/dist/Divider/demo/base.d.ts +0 -3
  235. package/dist/Divider/demo/base.js +0 -35
  236. package/dist/Divider/divider.d.ts +0 -17
  237. package/dist/Divider/divider.js +0 -36
  238. package/dist/Divider/style.scss +0 -62
  239. package/dist/Ellipsis/demo/base.d.ts +0 -3
  240. package/dist/Ellipsis/demo/base.js +0 -81
  241. package/dist/Ellipsis/ellipsis.d.ts +0 -16
  242. package/dist/Ellipsis/ellipsis.js +0 -79
  243. package/dist/Ellipsis/style.scss +0 -13
  244. package/dist/Ellipsis/useMeasure.d.ts +0 -2
  245. package/dist/Ellipsis/useMeasure.js +0 -123
  246. package/dist/Empty/demo/base.d.ts +0 -3
  247. package/dist/Empty/demo/base.js +0 -38
  248. package/dist/Empty/empty.d.ts +0 -3
  249. package/dist/Empty/empty.js +0 -48
  250. package/dist/Empty/style.scss +0 -22
  251. package/dist/ErrorBlock/create-error-block.d.ts +0 -13
  252. package/dist/ErrorBlock/create-error-block.js +0 -45
  253. package/dist/ErrorBlock/demo/base.d.ts +0 -3
  254. package/dist/ErrorBlock/demo/base.js +0 -23
  255. package/dist/ErrorBlock/error-block.d.ts +0 -2
  256. package/dist/ErrorBlock/error-block.js +0 -9
  257. package/dist/ErrorBlock/images/busy.d.ts +0 -2
  258. package/dist/ErrorBlock/images/busy.js +0 -90
  259. package/dist/ErrorBlock/images/busy.png +0 -0
  260. package/dist/ErrorBlock/images/default.d.ts +0 -2
  261. package/dist/ErrorBlock/images/default.js +0 -166
  262. package/dist/ErrorBlock/images/default.png +0 -0
  263. package/dist/ErrorBlock/images/disconnected.d.ts +0 -2
  264. package/dist/ErrorBlock/images/disconnected.js +0 -123
  265. package/dist/ErrorBlock/images/disconnected.png +0 -0
  266. package/dist/ErrorBlock/images/empty.d.ts +0 -2
  267. package/dist/ErrorBlock/images/empty.js +0 -119
  268. package/dist/ErrorBlock/images/empty.png +0 -0
  269. package/dist/ErrorBlock/images/index.d.ts +0 -4
  270. package/dist/ErrorBlock/images/index.js +0 -4
  271. package/dist/ErrorBlock/style.scss +0 -62
  272. package/dist/Footer/demo/base.d.ts +0 -6
  273. package/dist/Footer/demo/base.js +0 -81
  274. package/dist/Footer/footer.d.ts +0 -20
  275. package/dist/Footer/footer.js +0 -66
  276. package/dist/Footer/style.scss +0 -55
  277. package/dist/Form/FormItem/form-item-input.d.ts +0 -12
  278. package/dist/Form/FormItem/form-item-input.js +0 -34
  279. package/dist/Form/FormItem/form-item-label.d.ts +0 -13
  280. package/dist/Form/FormItem/form-item-label.js +0 -25
  281. package/dist/Form/FormItem/form-item.d.ts +0 -17
  282. package/dist/Form/FormItem/form-item.js +0 -48
  283. package/dist/Form/FormItem/index.d.ts +0 -5
  284. package/dist/Form/FormItem/index.js +0 -3
  285. package/dist/Form/context.d.ts +0 -11
  286. package/dist/Form/context.js +0 -6
  287. package/dist/Form/demo/base.d.ts +0 -3
  288. package/dist/Form/demo/base.js +0 -76
  289. package/dist/Form/form.d.ts +0 -39
  290. package/dist/Form/form.js +0 -28
  291. package/dist/Form/hooks/useForm.d.ts +0 -2
  292. package/dist/Form/hooks/useForm.js +0 -24
  293. package/dist/Form/hooks/useFormContext.d.ts +0 -2
  294. package/dist/Form/hooks/useFormContext.js +0 -6
  295. package/dist/Form/interface.d.ts +0 -3
  296. package/dist/Form/interface.js +0 -1
  297. package/dist/Form/style.scss +0 -42
  298. package/dist/Grid/demo/base.d.ts +0 -7
  299. package/dist/Grid/demo/base.js +0 -46
  300. package/dist/Grid/demo/base.scss +0 -7
  301. package/dist/Grid/grid.d.ts +0 -16
  302. package/dist/Grid/grid.js +0 -36
  303. package/dist/Grid/style.scss +0 -17
  304. package/dist/Icon/demo/base.d.ts +0 -6
  305. package/dist/Icon/demo/base.js +0 -41
  306. package/dist/Images/broken-image-icon.d.ts +0 -2
  307. package/dist/Images/broken-image-icon.js +0 -11
  308. package/dist/Images/demo/base.d.ts +0 -4
  309. package/dist/Images/demo/base.js +0 -101
  310. package/dist/Images/demo/base.scss +0 -4
  311. package/dist/Images/image-icon.d.ts +0 -2
  312. package/dist/Images/image-icon.js +0 -11
  313. package/dist/Images/image.d.ts +0 -19
  314. package/dist/Images/image.js +0 -114
  315. package/dist/Images/index.d.ts +0 -4
  316. package/dist/Images/index.js +0 -3
  317. package/dist/Images/lazy-detector.d.ts +0 -6
  318. package/dist/Images/lazy-detector.js +0 -22
  319. package/dist/Images/style.scss +0 -30
  320. package/dist/Input/base-input.d.ts +0 -14
  321. package/dist/Input/base-input.js +0 -54
  322. package/dist/Input/demo/base.d.ts +0 -3
  323. package/dist/Input/demo/base.js +0 -25
  324. package/dist/Input/index.scss +0 -160
  325. package/dist/Input/input-affix-wrapper.d.ts +0 -8
  326. package/dist/Input/input-affix-wrapper.js +0 -50
  327. package/dist/Input/input-opt.d.ts +0 -16
  328. package/dist/Input/input-opt.js +0 -91
  329. package/dist/Input/input-password.d.ts +0 -7
  330. package/dist/Input/input-password.js +0 -47
  331. package/dist/Input/input.d.ts +0 -15
  332. package/dist/Input/input.js +0 -47
  333. package/dist/Input/native-input.d.ts +0 -10
  334. package/dist/Input/native-input.js +0 -30
  335. package/dist/InputNumber/demo/base.d.ts +0 -3
  336. package/dist/InputNumber/demo/base.js +0 -13
  337. package/dist/InputNumber/input-number.d.ts +0 -13
  338. package/dist/InputNumber/input-number.js +0 -65
  339. package/dist/InputNumber/style.scss +0 -32
  340. package/dist/Mark/demo/base.d.ts +0 -4
  341. package/dist/Mark/demo/base.js +0 -158
  342. package/dist/Mark/demo/base.scss +0 -14
  343. package/dist/Mark/index.d.ts +0 -4
  344. package/dist/Mark/index.js +0 -3
  345. package/dist/Mark/mark.d.ts +0 -20
  346. package/dist/Mark/mark.js +0 -110
  347. package/dist/Mark/style.scss +0 -24
  348. package/dist/Mask/mask.d.ts +0 -10
  349. package/dist/Mask/mask.js +0 -25
  350. package/dist/Mask/style.scss +0 -17
  351. package/dist/NavBar/demo/base.d.ts +0 -4
  352. package/dist/NavBar/demo/base.js +0 -70
  353. package/dist/NavBar/demo/base.scss +0 -5
  354. package/dist/NavBar/nav-bar.d.ts +0 -31
  355. package/dist/NavBar/nav-bar.js +0 -36
  356. package/dist/NavBar/style.scss +0 -61
  357. package/dist/NoticeBar/demo/base.d.ts +0 -3
  358. package/dist/NoticeBar/demo/base.js +0 -90
  359. package/dist/NoticeBar/notice-bar.d.ts +0 -64
  360. package/dist/NoticeBar/notice-bar.js +0 -112
  361. package/dist/NoticeBar/style.scss +0 -130
  362. package/dist/PageIndicator/demo/base.d.ts +0 -3
  363. package/dist/PageIndicator/demo/base.js +0 -41
  364. package/dist/PageIndicator/page-indicator.d.ts +0 -10
  365. package/dist/PageIndicator/page-indicator.js +0 -27
  366. package/dist/PageIndicator/style.scss +0 -59
  367. package/dist/Picker/demo/base.d.ts +0 -3
  368. package/dist/Picker/demo/base.js +0 -56
  369. package/dist/Picker/picker.d.ts +0 -19
  370. package/dist/Picker/picker.js +0 -94
  371. package/dist/Picker/style.scss +0 -37
  372. package/dist/PickerView/demo/base.d.ts +0 -3
  373. package/dist/PickerView/demo/base.js +0 -36
  374. package/dist/PickerView/picker-view-column-item.d.ts +0 -7
  375. package/dist/PickerView/picker-view-column-item.js +0 -11
  376. package/dist/PickerView/picker-view-column.d.ts +0 -10
  377. package/dist/PickerView/picker-view-column.js +0 -117
  378. package/dist/PickerView/picker-view.d.ts +0 -11
  379. package/dist/PickerView/picker-view.js +0 -57
  380. package/dist/PickerView/style.scss +0 -72
  381. package/dist/PickerView/types.d.ts +0 -4
  382. package/dist/PickerView/types.js +0 -1
  383. package/dist/Popup/demo/base.d.ts +0 -3
  384. package/dist/Popup/demo/base.js +0 -98
  385. package/dist/Popup/popup-modal.d.ts +0 -54
  386. package/dist/Popup/popup-modal.js +0 -87
  387. package/dist/Popup/popup.d.ts +0 -10
  388. package/dist/Popup/popup.js +0 -52
  389. package/dist/Popup/style.scss +0 -53
  390. package/dist/ProgressBar/demo/base.d.ts +0 -3
  391. package/dist/ProgressBar/demo/base.js +0 -114
  392. package/dist/ProgressBar/index.d.ts +0 -2
  393. package/dist/ProgressBar/index.js +0 -2
  394. package/dist/ProgressBar/progress-bar.d.ts +0 -27
  395. package/dist/ProgressBar/progress-bar.js +0 -38
  396. package/dist/ProgressBar/style.scss +0 -34
  397. package/dist/Radio/GroupContext.d.ts +0 -9
  398. package/dist/Radio/GroupContext.js +0 -2
  399. package/dist/Radio/RadioButton.d.ts +0 -3
  400. package/dist/Radio/RadioButton.js +0 -60
  401. package/dist/Radio/RadioGroup.d.ts +0 -3
  402. package/dist/Radio/RadioGroup.js +0 -48
  403. package/dist/Radio/demo/base.d.ts +0 -4
  404. package/dist/Radio/demo/base.js +0 -84
  405. package/dist/Radio/demo/base.scss +0 -4
  406. package/dist/Radio/radio.d.ts +0 -4
  407. package/dist/Radio/radio.js +0 -68
  408. package/dist/Radio/style.scss +0 -116
  409. package/dist/Radio/types.d.ts +0 -55
  410. package/dist/Radio/types.js +0 -1
  411. package/dist/Rate/demo/base.d.ts +0 -3
  412. package/dist/Rate/demo/base.js +0 -59
  413. package/dist/Rate/rate.d.ts +0 -51
  414. package/dist/Rate/rate.js +0 -100
  415. package/dist/Rate/style.scss +0 -37
  416. package/dist/Result/demo/base.d.ts +0 -3
  417. package/dist/Result/demo/base.js +0 -57
  418. package/dist/Result/result.d.ts +0 -10
  419. package/dist/Result/result.js +0 -28
  420. package/dist/Result/style.scss +0 -73
  421. package/dist/Result/use-result-icon.d.ts +0 -2
  422. package/dist/Result/use-result-icon.js +0 -53
  423. package/dist/SafeArea/demo/base.d.ts +0 -3
  424. package/dist/SafeArea/demo/base.js +0 -17
  425. package/dist/SafeArea/demo/base.scss +0 -18
  426. package/dist/SafeArea/safe-area.d.ts +0 -12
  427. package/dist/SafeArea/safe-area.js +0 -15
  428. package/dist/SafeArea/style.scss +0 -17
  429. package/dist/Scaffold/demo/base.d.ts +0 -3
  430. package/dist/Scaffold/demo/base.js +0 -30
  431. package/dist/Scaffold/scaffold.d.ts +0 -8
  432. package/dist/Scaffold/scaffold.js +0 -19
  433. package/dist/Scaffold/style.scss +0 -16
  434. package/dist/ScrollView/demo/base.d.ts +0 -3
  435. package/dist/ScrollView/demo/base.js +0 -43
  436. package/dist/ScrollView/scroll-view.d.ts +0 -24
  437. package/dist/ScrollView/scroll-view.js +0 -84
  438. package/dist/ScrollView/style.scss +0 -19
  439. package/dist/SideBar/demo/base.d.ts +0 -3
  440. package/dist/SideBar/demo/base.js +0 -54
  441. package/dist/SideBar/demo/default-active.d.ts +0 -3
  442. package/dist/SideBar/demo/default-active.js +0 -34
  443. package/dist/SideBar/demo/scroll-mode.d.ts +0 -3
  444. package/dist/SideBar/demo/scroll-mode.js +0 -55
  445. package/dist/Space/demo/base.d.ts +0 -3
  446. package/dist/Space/demo/base.js +0 -120
  447. package/dist/Space/space.d.ts +0 -38
  448. package/dist/Space/space.js +0 -61
  449. package/dist/Space/style.scss +0 -77
  450. package/dist/SpinLoading/demo/base.d.ts +0 -3
  451. package/dist/SpinLoading/demo/base.js +0 -21
  452. package/dist/SpinLoading/spin-loading.d.ts +0 -10
  453. package/dist/SpinLoading/spin-loading.js +0 -59
  454. package/dist/SpinLoading/spin-loading.scss +0 -40
  455. package/dist/Switch/demo/base.d.ts +0 -3
  456. package/dist/Switch/demo/base.js +0 -104
  457. package/dist/Switch/spin-icon.d.ts +0 -3
  458. package/dist/Switch/spin-icon.js +0 -23
  459. package/dist/Switch/style.scss +0 -113
  460. package/dist/Switch/switch.d.ts +0 -15
  461. package/dist/TabBar/TabBarContext.d.ts +0 -10
  462. package/dist/TabBar/TabBarContext.js +0 -2
  463. package/dist/TabBar/demo/base.d.ts +0 -6
  464. package/dist/TabBar/demo/base.js +0 -26
  465. package/dist/TabBar/index.scss +0 -35
  466. package/dist/TabBar/tab-bar.d.ts +0 -59
  467. package/dist/TabBar/tab-bar.js +0 -83
  468. package/dist/Tabs/context.d.ts +0 -11
  469. package/dist/Tabs/context.js +0 -4
  470. package/dist/Tabs/demo/base.d.ts +0 -3
  471. package/dist/Tabs/demo/base.js +0 -59
  472. package/dist/Tabs/style.scss +0 -107
  473. package/dist/Tabs/tab-nav.d.ts +0 -9
  474. package/dist/Tabs/tab-nav.js +0 -25
  475. package/dist/Tabs/tab-pane.d.ts +0 -7
  476. package/dist/Tabs/tab-pane.js +0 -17
  477. package/dist/Tabs/tab.d.ts +0 -7
  478. package/dist/Tabs/tab.js +0 -6
  479. package/dist/Tabs/tabs.d.ts +0 -25
  480. package/dist/Tabs/tabs.js +0 -156
  481. package/dist/Tag/demo/base.d.ts +0 -7
  482. package/dist/Tag/demo/base.js +0 -67
  483. package/dist/Tag/demo/style.scss +0 -8
  484. package/dist/Tag/style.scss +0 -85
  485. package/dist/Tag/tag.d.ts +0 -30
  486. package/dist/Tag/tag.js +0 -44
  487. package/dist/Toast/demo/base.d.ts +0 -3
  488. package/dist/Toast/demo/base.js +0 -121
  489. package/dist/Toast/demo/component-mode.d.ts +0 -3
  490. package/dist/Toast/demo/component-mode.js +0 -32
  491. package/dist/Toast/style.scss +0 -63
  492. package/dist/Toast/toast-modal.d.ts +0 -18
  493. package/dist/Toast/toast-modal.js +0 -112
  494. package/dist/Toast/toast.d.ts +0 -20
  495. package/dist/Toast/toast.js +0 -112
  496. package/dist/VerificationCodeInput/demo/base.d.ts +0 -3
  497. package/dist/VerificationCodeInput/demo/base.js +0 -11
  498. package/dist/VerificationCodeInput/style.scss +0 -20
  499. package/dist/VerificationCodeInput/verification-code-input.d.ts +0 -25
  500. package/dist/VerificationCodeInput/verification-code-input.js +0 -99
  501. package/dist/WaterMark/demo/demo1.d.ts +0 -7
  502. package/dist/WaterMark/demo/demo1.js +0 -47
  503. package/dist/WaterMark/demo/demo1.scss +0 -6
  504. package/dist/WaterMark/demo/demo2.d.ts +0 -3
  505. package/dist/WaterMark/demo/demo2.js +0 -31
  506. package/dist/WaterMark/style.scss +0 -17
  507. package/dist/WaterMark/water-mark.d.ts +0 -22
  508. package/dist/WaterMark/water-mark.js +0 -108
  509. package/dist/style/index.d.ts +0 -1
  510. package/dist/style/index.js +0 -5
  511. package/dist/style/style.scss +0 -52
  512. package/dist/style/theme-dark.scss +0 -24
  513. package/dist/style/theme-default.scss +0 -54
  514. package/dist/style/variable.scss +0 -167
  515. package/dist/utils/attach-properties-to-component.d.ts +0 -1
  516. package/dist/utils/attach-properties-to-component.js +0 -9
  517. package/dist/utils/bound.d.ts +0 -1
  518. package/dist/utils/bound.js +0 -10
  519. package/dist/utils/can-use-dom.d.ts +0 -1
  520. package/dist/utils/can-use-dom.js +0 -1
  521. package/dist/utils/convert-px.d.ts +0 -1
  522. package/dist/utils/convert-px.js +0 -27
  523. package/dist/utils/dev-log.d.ts +0 -3
  524. package/dist/utils/dev-log.js +0 -36
  525. package/dist/utils/get-container.d.ts +0 -2
  526. package/dist/utils/get-container.js +0 -4
  527. package/dist/utils/get-scroll-parent.d.ts +0 -3
  528. package/dist/utils/get-scroll-parent.js +0 -23
  529. package/dist/utils/is-dev.d.ts +0 -1
  530. package/dist/utils/is-dev.js +0 -1
  531. package/dist/utils/lang.d.ts +0 -1
  532. package/dist/utils/lang.js +0 -1
  533. package/dist/utils/matrix.d.ts +0 -10
  534. package/dist/utils/matrix.js +0 -37
  535. package/dist/utils/reactNode.d.ts +0 -7
  536. package/dist/utils/reactNode.js +0 -13
  537. package/dist/utils/render-imperatively.d.ts +0 -14
  538. package/dist/utils/render-imperatively.js +0 -105
  539. package/dist/utils/render-to-body.d.ts +0 -2
  540. package/dist/utils/render-to-body.js +0 -13
  541. package/dist/utils/render-to-container.d.ts +0 -3
  542. package/dist/utils/render-to-container.js +0 -10
  543. package/dist/utils/render.d.ts +0 -9
  544. package/dist/utils/render.js +0 -87
  545. package/dist/utils/rubberband.d.ts +0 -2
  546. package/dist/utils/rubberband.js +0 -11
  547. package/dist/utils/should-render.d.ts +0 -10
  548. package/dist/utils/should-render.js +0 -12
  549. package/dist/utils/supports-passive.d.ts +0 -1
  550. package/dist/utils/supports-passive.js +0 -13
  551. package/dist/utils/taro-utils.d.ts +0 -1
  552. package/dist/utils/taro-utils.js +0 -6
  553. package/dist/utils/to-css-length.d.ts +0 -1
  554. package/dist/utils/to-css-length.js +0 -3
  555. package/dist/utils/type.d.ts +0 -65
  556. package/dist/utils/type.js +0 -48
  557. package/dist/utils/use-initialized.d.ts +0 -1
  558. package/dist/utils/use-initialized.js +0 -8
  559. package/dist/utils/use-isomorphic-update-layout-effect.d.ts +0 -2
  560. package/dist/utils/use-isomorphic-update-layout-effect.js +0 -2
  561. package/dist/utils/use-lock-scroll.d.ts +0 -2
  562. package/dist/utils/use-lock-scroll.js +0 -81
  563. package/dist/utils/use-mutation-effect.d.ts +0 -3
  564. package/dist/utils/use-mutation-effect.js +0 -26
  565. package/dist/utils/use-props-value.d.ts +0 -8
  566. package/dist/utils/use-props-value.js +0 -22
  567. package/dist/utils/use-resize-effect.d.ts +0 -2
  568. package/dist/utils/use-resize-effect.js +0 -23
  569. package/dist/utils/use-touch.d.ts +0 -17
  570. package/dist/utils/use-touch.js +0 -63
  571. package/dist/utils/validate.d.ts +0 -1
  572. package/dist/utils/validate.js +0 -4
  573. package/dist/utils/with-default-props.d.ts +0 -9
  574. package/dist/utils/with-default-props.js +0 -33
  575. package/dist/utils/with-stop-propagation.d.ts +0 -4
  576. package/dist/utils/with-stop-propagation.js +0 -38
  577. package/dist/utils/zIndex.d.ts +0 -1
  578. package/dist/utils/zIndex.js +0 -4
  579. package/dist/utils/zindexContext.d.ts +0 -3
  580. package/dist/utils/zindexContext.js +0 -6
  581. /package/dist/{CascaderView/types.js → types.js} +0 -0
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import ValidationCodeInput from "../index";
3
- export default (function () {
4
- return /*#__PURE__*/React.createElement("div", {
5
- style: {
6
- backgroundColor: 'rgb(244 244 244)'
7
- }
8
- }, /*#__PURE__*/React.createElement(ValidationCodeInput, {
9
- placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"
10
- }));
11
- });
@@ -1,20 +0,0 @@
1
- @import "../style/variable";
2
-
3
- $verificationCodeInputCls: 'triones-antm-verification-code-input';
4
-
5
- .#{$verificationCodeInputCls} {
6
- &-send {
7
- padding-inline: $trionesPaddingContentHorizontal;
8
- cursor: pointer;
9
-
10
- &:hover {
11
- color: $trionesColorPrimary;
12
- }
13
- }
14
-
15
- &-counting {
16
- padding-inline: $trionesPaddingContentHorizontal;
17
- cursor: not-allowed;
18
- color: $trionesColorTextDisabled;
19
- }
20
- }
@@ -1,25 +0,0 @@
1
- import { FC } from 'react';
2
- import { InputProps } from '..';
3
- import './style.scss';
4
- type ValidationCodeInputProps = Omit<InputProps, 'suffix'> & {
5
- /**
6
- * @description 发送文本
7
- * @default 获取验证码
8
- */
9
- sendText?: string;
10
- /**
11
- * @description 重新发送文本
12
- * @default 重新发送
13
- */
14
- resendText?: string;
15
- /**
16
- * @description 等待时间
17
- */
18
- waitSeconds?: number;
19
- /**
20
- * @description 发送事件
21
- */
22
- onSend?: () => Promise<boolean>;
23
- };
24
- export declare const VerificationCodeInput: FC<ValidationCodeInputProps>;
25
- export {};
@@ -1,99 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["sendText", "resendText", "waitSeconds", "onSend"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
5
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
6
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
- import classNames from 'classnames';
16
- import React, { useEffect, useRef, useState } from 'react';
17
- import Input from "../Input";
18
- import "./style.scss";
19
- export var VerificationCodeInput = function VerificationCodeInput(_ref) {
20
- var _ref$sendText = _ref.sendText,
21
- sendText = _ref$sendText === void 0 ? '获取验证码' : _ref$sendText,
22
- _ref$resendText = _ref.resendText,
23
- resendText = _ref$resendText === void 0 ? '重新发送' : _ref$resendText,
24
- _ref$waitSeconds = _ref.waitSeconds,
25
- waitSeconds = _ref$waitSeconds === void 0 ? 60 : _ref$waitSeconds,
26
- onSend = _ref.onSend,
27
- props = _objectWithoutProperties(_ref, _excluded);
28
- var _useState = useState(false),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- send = _useState2[0],
31
- setSend = _useState2[1];
32
- var _useState3 = useState(0),
33
- _useState4 = _slicedToArray(_useState3, 2),
34
- seconds = _useState4[0],
35
- setSeconds = _useState4[1];
36
- var secondsRef = useRef(0);
37
- var timer = useRef(null);
38
- useEffect(function () {
39
- if (seconds < 1) {
40
- clearTimeout(timer.current);
41
- timer.current = null;
42
- } else {
43
- setSend(true);
44
- }
45
- }, [seconds]);
46
- useEffect(function () {
47
- return function () {
48
- clearTimeout(timer.current);
49
- };
50
- }, []);
51
- var prefixCls = 'triones-antm-verification-code-input';
52
- var handleSuffix = function handleSuffix() {
53
- if (seconds > 0) {
54
- return /*#__PURE__*/React.createElement("div", {
55
- className: classNames("".concat(prefixCls, "-counting"))
56
- }, seconds, "s");
57
- }
58
- return /*#__PURE__*/React.createElement("div", {
59
- className: classNames("".concat(prefixCls, "-send")),
60
- onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
61
- return _regeneratorRuntime().wrap(function _callee$(_context) {
62
- while (1) switch (_context.prev = _context.next) {
63
- case 0:
64
- if (timer.current) {
65
- _context.next = 9;
66
- break;
67
- }
68
- _context.t0 = onSend === undefined;
69
- if (_context.t0) {
70
- _context.next = 6;
71
- break;
72
- }
73
- _context.next = 5;
74
- return onSend === null || onSend === void 0 ? void 0 : onSend();
75
- case 5:
76
- _context.t0 = _context.sent;
77
- case 6:
78
- if (!_context.t0) {
79
- _context.next = 9;
80
- break;
81
- }
82
- secondsRef.current = waitSeconds;
83
- timer.current = setInterval(function () {
84
- secondsRef.current = secondsRef.current - 1;
85
- setSeconds(secondsRef.current);
86
- }, 1000);
87
- case 9:
88
- case "end":
89
- return _context.stop();
90
- }
91
- }, _callee);
92
- }))
93
- }, send ? resendText : sendText);
94
- };
95
- return /*#__PURE__*/React.createElement(Input, _extends({}, props, {
96
- className: classNames(prefixCls, props.className),
97
- suffix: handleSuffix()
98
- }));
99
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * compact: true
3
- */
4
- import React from 'react';
5
- import './demo1.scss';
6
- declare const _default: () => React.JSX.Element;
7
- export default _default;
@@ -1,47 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- /**
8
- * compact: true
9
- */
10
- import React, { useState } from 'react';
11
- import "./demo1.scss";
12
- import Button from "../../Button";
13
- import WaterMark from "../index";
14
- var textProps = {
15
- content: 'Ant Taro Mobile'
16
- };
17
- var rowsTextProps = {
18
- content: ['Ant Taro Mobile', 'Ant Taro Mobile Pro']
19
- };
20
- var imageProps = {
21
- image: 'https://gw.alipayobjects.com/zos/bmw-prod/59a18171-ae17-4fc5-93a0-2645f64a3aca.svg',
22
- imageWidth: 115,
23
- imageHeight: 36,
24
- width: 140,
25
- height: 80
26
- };
27
- export default (function () {
28
- var _useState = useState(textProps),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- props = _useState2[0],
31
- setProps = _useState2[1];
32
- return /*#__PURE__*/React.createElement("div", {
33
- className: "water-mark-overlay"
34
- }, /*#__PURE__*/React.createElement(Button, {
35
- onClick: function onClick() {
36
- return setProps(textProps);
37
- }
38
- }, "\u666E\u901A\u6C34\u5370"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
39
- onClick: function onClick() {
40
- return setProps(rowsTextProps);
41
- }
42
- }, "\u591A\u884C\u6587\u5B57\u6C34\u5370"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
43
- onClick: function onClick() {
44
- return setProps(imageProps);
45
- }
46
- }, "\u56FE\u7247\u6C34\u5370"), /*#__PURE__*/React.createElement(WaterMark, props));
47
- });
@@ -1,6 +0,0 @@
1
- .water-mark-overlay {
2
- padding: 12px;
3
- button {
4
- margin-bottom: 12px;
5
- }
6
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
3
- export default _default;
@@ -1,31 +0,0 @@
1
- /**
2
- * compact: true
3
- */
4
- import { DemoBlock } from "../../DemoBlock";
5
- import React from 'react';
6
- import WaterMark from "../index";
7
- export default (function () {
8
- return /*#__PURE__*/React.createElement(DemoBlock, {
9
- title: "\u5C40\u90E8\u6C34\u5370"
10
- }, /*#__PURE__*/React.createElement("div", {
11
- style: {
12
- display: 'inline-flex',
13
- position: 'relative'
14
- }
15
- }, /*#__PURE__*/React.createElement("img", {
16
- style: {
17
- width: '100%'
18
- },
19
- src: "https://images.unsplash.com/photo-1529919864908-4c7b46026144?ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8NTN8fHxlbnwwfHx8fA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=900&q=60"
20
- }), /*#__PURE__*/React.createElement(WaterMark, {
21
- content: 'Ant Design Mobile',
22
- gapX: 12,
23
- gapY: 24,
24
- fullPage: false
25
- })), /*#__PURE__*/React.createElement("div", {
26
- style: {
27
- color: '#ccc',
28
- marginTop: 10
29
- }
30
- }, "\u628A WaterMark \u653E\u5230\u4E00\u4E2A relative \u5B9A\u4F4D\u7684\u7236\u5143\u7D20\uFF0C\u5B83\u4F1A\u81EA\u52A8\u6491\u6EE1\u8FD9\u4E2A\u7236\u5143\u7D20\u7684\u8303\u56F4\u3002"));
31
- });
@@ -1,17 +0,0 @@
1
- $class-prefix-water-mark: 'triones-antm-water-mark';
2
- /* prettier-ignore */
3
- .#{$class-prefix-water-mark} {
4
- --z-index: var(--triones-antm-water-mark-z-index, 2000);
5
-
6
- position: absolute;
7
- z-index: var(--z-index);
8
- left: 0;
9
- right: 0;
10
- top: 0;
11
- bottom: 0;
12
- pointer-events: none;
13
- background-repeat: repeat;
14
- &-full-page {
15
- position: fixed;
16
- }
17
- }
@@ -1,22 +0,0 @@
1
- import type { FC } from 'react';
2
- import { NativeProps } from '../utils/native-props';
3
- import './style.scss';
4
- export type WaterMarkProps = {
5
- gapX?: number;
6
- gapY?: number;
7
- zIndex?: number;
8
- width?: number;
9
- height?: number;
10
- rotate?: number;
11
- image?: string;
12
- imageWidth?: number;
13
- imageHeight?: number;
14
- content?: string | string[];
15
- fontColor?: string;
16
- fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
17
- fontFamily?: string;
18
- fontWeight?: 'normal' | 'light' | 'weight' | number;
19
- fontSize?: number | string;
20
- fullPage?: boolean;
21
- } & NativeProps<'--z-index'>;
22
- export declare const WaterMark: FC<WaterMarkProps>;
@@ -1,108 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import classNames from 'classnames';
12
- import React, { useEffect, useState } from 'react';
13
- import { withNativeProps } from "../utils/native-props";
14
- import { mergeProps } from "../utils/with-default-props";
15
- import "./style.scss";
16
- var classPrefix = "triones-antm-water-mark";
17
- var defaultProps = {
18
- fullPage: true
19
- };
20
- export var WaterMark = function WaterMark(p) {
21
- var props = mergeProps(defaultProps, p);
22
- var zIndex = props.zIndex,
23
- _props$gapX = props.gapX,
24
- gapX = _props$gapX === void 0 ? 24 : _props$gapX,
25
- _props$gapY = props.gapY,
26
- gapY = _props$gapY === void 0 ? 48 : _props$gapY,
27
- _props$width = props.width,
28
- width = _props$width === void 0 ? 120 : _props$width,
29
- _props$height = props.height,
30
- height = _props$height === void 0 ? 64 : _props$height,
31
- _props$rotate = props.rotate,
32
- rotate = _props$rotate === void 0 ? -22 : _props$rotate,
33
- image = props.image,
34
- _props$imageWidth = props.imageWidth,
35
- imageWidth = _props$imageWidth === void 0 ? 120 : _props$imageWidth,
36
- _props$imageHeight = props.imageHeight,
37
- imageHeight = _props$imageHeight === void 0 ? 64 : _props$imageHeight,
38
- content = props.content,
39
- _props$fontStyle = props.fontStyle,
40
- fontStyle = _props$fontStyle === void 0 ? 'normal' : _props$fontStyle,
41
- _props$fontWeight = props.fontWeight,
42
- fontWeight = _props$fontWeight === void 0 ? 'normal' : _props$fontWeight,
43
- _props$fontColor = props.fontColor,
44
- fontColor = _props$fontColor === void 0 ? 'rgba(0,0,0,.15)' : _props$fontColor,
45
- _props$fontSize = props.fontSize,
46
- fontSize = _props$fontSize === void 0 ? 14 : _props$fontSize,
47
- _props$fontFamily = props.fontFamily,
48
- fontFamily = _props$fontFamily === void 0 ? 'sans-serif' : _props$fontFamily;
49
- var _useState = useState(''),
50
- _useState2 = _slicedToArray(_useState, 2),
51
- base64Url = _useState2[0],
52
- setBase64Url = _useState2[1];
53
- useEffect(function () {
54
- var canvas = document.createElement('canvas');
55
- var ratio = window.devicePixelRatio;
56
- var ctx = canvas.getContext('2d');
57
- var canvasWidth = "".concat((gapX + width) * ratio, "px");
58
- var canvasHeight = "".concat((gapY + height) * ratio, "px");
59
- var markWidth = width * ratio;
60
- var markHeight = height * ratio;
61
- canvas.setAttribute('width', canvasWidth);
62
- canvas.setAttribute('height', canvasHeight);
63
- if (ctx) {
64
- if (image) {
65
- ctx.translate(markWidth / 2, markHeight / 2);
66
- ctx.rotate(Math.PI / 180 * Number(rotate));
67
- var img = new Image();
68
- img.crossOrigin = 'anonymous';
69
- img.referrerPolicy = 'no-referrer';
70
- img.onload = function () {
71
- ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
72
- ctx.restore();
73
- setBase64Url(canvas.toDataURL());
74
- };
75
- img.src = image;
76
- } else if (content) {
77
- ctx.textBaseline = 'middle';
78
- ctx.textAlign = 'center';
79
- // 文字绕中间旋转
80
- ctx.translate(markWidth / 2, markHeight / 2);
81
- ctx.rotate(Math.PI / 180 * Number(rotate));
82
- var markSize = Number(fontSize) * ratio;
83
- ctx.font = "".concat(fontStyle, " normal ").concat(fontWeight, " ").concat(markSize, "px/").concat(markHeight, "px ").concat(fontFamily);
84
- ctx.fillStyle = fontColor;
85
- if (Array.isArray(content)) {
86
- content.forEach(function (item, index) {
87
- return ctx.fillText(item, 0, index * markSize);
88
- });
89
- } else {
90
- ctx.fillText(content, 0, 0);
91
- }
92
- ctx.restore();
93
- setBase64Url(canvas.toDataURL());
94
- }
95
- } else {
96
- throw new Error('Canvas is not supported in the current environment');
97
- }
98
- }, [gapX, gapY, rotate, fontStyle, fontWeight, width, height, fontFamily, fontColor, image, content, fontSize]);
99
- return withNativeProps(props, /*#__PURE__*/React.createElement("div", {
100
- className: classNames(classPrefix, _defineProperty({}, "".concat(classPrefix, "-full-page"), props.fullPage)),
101
- style: {
102
- zIndex: zIndex,
103
- backgroundSize: "".concat(gapX + width, "px"),
104
- // Not give `url` if its empty. Which will cause 404 error.
105
- backgroundImage: base64Url === '' ? undefined : "url('".concat(base64Url, "')")
106
- }
107
- }));
108
- };
@@ -1 +0,0 @@
1
- import './style.scss';
@@ -1,5 +0,0 @@
1
- import "./style.scss";
2
- var canUseDom = !!(typeof window !== 'undefined' && typeof document !== 'undefined' && window.document && window.document.createElement);
3
- if (canUseDom) {
4
- document.addEventListener('touchstart', function () {}, true);
5
- }
@@ -1,52 +0,0 @@
1
- @import './theme-default.scss';
2
- @import './theme-dark.scss';
3
-
4
- :root {
5
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
6
- }
7
-
8
- html {
9
- background-color: var(--triones-antm-color-background-body);
10
- }
11
-
12
- body {
13
- color: var(--triones-antm-color-text);
14
- font-size: var(--triones-antm-font-size-main);
15
- font-family: var(--triones-antm-font-family);
16
- }
17
-
18
- a,
19
- button {
20
- cursor: pointer;
21
- }
22
-
23
- a {
24
- color: var(--triones-antm-color-primary);
25
- transition: opacity ease-in-out 0.2s;
26
- &:active {
27
- opacity: 0.8;
28
- }
29
- }
30
-
31
- .adm-plain-anchor {
32
- color: unset;
33
- transition: none;
34
- &:active {
35
- opacity: unset;
36
- }
37
- }
38
-
39
- body.triones-antm-overflow-hidden {
40
- overflow: hidden !important;
41
- }
42
-
43
- div.triones-antm-px-tester {
44
- --size: 1;
45
- height: calc(var(--size) / 2 * 2px);
46
- width: 0;
47
- position: fixed;
48
- left: -100vw;
49
- top: -100vh;
50
- user-select: none;
51
- pointer-events: none;
52
- }
@@ -1,24 +0,0 @@
1
- html[data-prefers-color-scheme='dark'] {
2
- // variables should be exposed to users:
3
- --triones-antm-color-primary: #3086ff;
4
- --triones-antm-color-success: #34b368;
5
- --triones-antm-color-warning: #ffa930;
6
- --triones-antm-color-danger: #ff4a58;
7
-
8
- --triones-antm-color-yellow: #ffa930;
9
- --triones-antm-color-orange: #e65a2b;
10
- --triones-antm-color-wathet: #0d2543;
11
-
12
- --triones-antm-color-text: #e6e6e6;
13
- --triones-antm-color-text-secondary: #b3b3b3;
14
- --triones-antm-color-weak: #808080;
15
- --triones-antm-color-light: #4d4d4d;
16
- --triones-antm-color-border: #2b2b2b;
17
- --triones-antm-color-box: #0a0a0a;
18
- --triones-antm-color-background: #1a1a1a;
19
-
20
- --triones-antm-color-background-body: var(--triones-antm-color-background);
21
-
22
- // The variables below are deprecated and only exist for backward compatibility:
23
- --triones-antm-border-color: var(--triones-antm-color-border);
24
- }
@@ -1,54 +0,0 @@
1
- :root {
2
- // Currently internal variables:
3
- --triones-antm-radius-s: 4px;
4
- --triones-antm-radius-m: 8px;
5
- --triones-antm-radius-l: 12px;
6
-
7
- --triones-antm-font-size-1: 9px;
8
- --triones-antm-font-size-2: 10px;
9
- --triones-antm-font-size-3: 11px;
10
- --triones-antm-font-size-4: 12px;
11
- --triones-antm-font-size-5: 13px;
12
- --triones-antm-font-size-6: 14px;
13
- --triones-antm-font-size-7: 15px;
14
- --triones-antm-font-size-8: 16px;
15
- --triones-antm-font-size-9: 17px;
16
- --triones-antm-font-size-10: 18px;
17
-
18
- // variables should be exposed to users:
19
- --triones-antm-color-primary: #1677ff;
20
- --triones-antm-color-success: #00b578;
21
- --triones-antm-color-warning: #ff8f1f;
22
- --triones-antm-color-danger: #ff3141;
23
-
24
- --triones-antm-color-yellow: #ff9f18;
25
- --triones-antm-color-orange: #ff6430;
26
- --triones-antm-color-wathet: #e7f1ff;
27
-
28
- --triones-antm-color-text: #333333;
29
- --triones-antm-color-text-secondary: #666666;
30
- --triones-antm-color-weak: #999999;
31
- --triones-antm-color-light: #cccccc;
32
- --triones-antm-color-border: #eeeeee;
33
- --triones-antm-color-background: #ffffff;
34
-
35
- --triones-antm-color-highlight: var(--triones-antm-color-danger);
36
-
37
- // Deprecated. We use `--triones-antm-color-text-light-solid` in code
38
- // but keep here for compatible
39
- --triones-antm-color-white: #ffffff;
40
- --triones-antm-color-box: #f5f5f5;
41
-
42
- --triones-antm-color-text-light-solid: var(--triones-antm-color-white);
43
- --triones-antm-color-text-dark-solid: #000000;
44
- --triones-antm-color-fill-content: var(--triones-antm-color-box);
45
-
46
- --triones-antm-font-size-main: var(--triones-antm-font-size-5);
47
-
48
- --triones-antm-font-family: -apple-system, blinkmacsystemfont,
49
- 'Helvetica Neue', helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
50
- 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
51
-
52
- // The variables below are deprecated and only exist for backward compatibility:
53
- --triones-antm-border-color: var(--triones-antm-color-border);
54
- }