@trionesdev/antd-mobile-base-react 0.0.2-beta.1 → 0.0.2-beta.3

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 (446) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/ActionSheet/ActionSheet.d.ts +0 -1
  4. package/dist/ActionSheet/index.d.ts +0 -1
  5. package/dist/ActionSheet/style.scss +52 -51
  6. package/dist/Alert/alert.d.ts +0 -1
  7. package/dist/Alert/index.d.ts +0 -1
  8. package/dist/Alert/style.scss +69 -69
  9. package/dist/Avatar/avatar.d.ts +2 -2
  10. package/dist/Avatar/avatar.js +14 -4
  11. package/dist/Avatar/index.d.ts +0 -1
  12. package/dist/Avatar/style.scss +17 -16
  13. package/dist/Badge/badge.d.ts +0 -1
  14. package/dist/Badge/index.d.ts +0 -1
  15. package/dist/Badge/style.scss +100 -100
  16. package/dist/Card/card.d.ts +0 -1
  17. package/dist/Card/index.d.ts +0 -1
  18. package/dist/Card/native-props.d.ts +0 -1
  19. package/dist/Card/style.scss +35 -35
  20. package/dist/CascaderPicker/cascader-picker.d.ts +0 -1
  21. package/dist/CascaderPicker/index.d.ts +0 -1
  22. package/dist/CascaderPicker/style.scss +42 -42
  23. package/dist/CascaderView/cascader-column-item.d.ts +0 -1
  24. package/dist/CascaderView/cascader-column.d.ts +0 -1
  25. package/dist/CascaderView/cascader-view.d.ts +0 -1
  26. package/dist/CascaderView/index.d.ts +0 -1
  27. package/dist/CascaderView/style.scss +22 -22
  28. package/dist/CascaderView/types.d.ts +0 -1
  29. package/dist/Cell/CellGroup.d.ts +0 -1
  30. package/dist/Cell/CellGroup.js +22 -14
  31. package/dist/Cell/cell.d.ts +0 -1
  32. package/dist/Cell/cell.js +54 -16
  33. package/dist/Cell/context.d.ts +11 -0
  34. package/dist/Cell/context.js +2 -0
  35. package/dist/Cell/index.d.ts +0 -1
  36. package/dist/Cell/styles.scss +48 -52
  37. package/dist/Cell/types.d.ts +15 -8
  38. package/dist/Checkbox/checkbox-button.d.ts +6 -3
  39. package/dist/Checkbox/checkbox-button.js +5 -17
  40. package/dist/Checkbox/checkbox-group.d.ts +0 -1
  41. package/dist/Checkbox/checkbox-group.js +19 -3
  42. package/dist/Checkbox/checkbox-round.d.ts +8 -0
  43. package/dist/Checkbox/checkbox-round.js +35 -0
  44. package/dist/Checkbox/checkbox.d.ts +0 -1
  45. package/dist/Checkbox/checkbox.js +49 -34
  46. package/dist/Checkbox/group-context.d.ts +0 -1
  47. package/dist/Checkbox/index.d.ts +0 -3
  48. package/dist/Checkbox/index.js +0 -2
  49. package/dist/Checkbox/index.scss +165 -151
  50. package/dist/Checkbox/types.d.ts +11 -2
  51. package/dist/ConfigProvider/config-provider.d.ts +0 -1
  52. package/dist/ConfigProvider/index.d.ts +0 -1
  53. package/dist/DemoBlock/index.d.ts +0 -1
  54. package/dist/DemoBlock/index.scss +20 -20
  55. package/dist/DemoDescription/index.d.ts +0 -1
  56. package/dist/DemoDescription/index.scss +3 -3
  57. package/dist/Descriptions/DescriptionItem.d.ts +0 -1
  58. package/dist/Descriptions/Descriptions.d.ts +0 -1
  59. package/dist/Descriptions/index.d.ts +0 -1
  60. package/dist/Descriptions/style.scss +65 -65
  61. package/dist/Descriptions/types.d.ts +0 -1
  62. package/dist/Divider/divider.d.ts +0 -1
  63. package/dist/Divider/index.d.ts +0 -1
  64. package/dist/Divider/style.scss +62 -62
  65. package/dist/Ellipsis/ellipsis.d.ts +0 -1
  66. package/dist/Ellipsis/index.d.ts +0 -1
  67. package/dist/Ellipsis/style.scss +13 -13
  68. package/dist/Ellipsis/useMeasure.d.ts +0 -1
  69. package/dist/Empty/empty-icon.d.ts +0 -1
  70. package/dist/Empty/empty.d.ts +0 -1
  71. package/dist/Empty/index.d.ts +0 -1
  72. package/dist/Empty/style.scss +29 -29
  73. package/dist/ErrorBlock/create-error-block.d.ts +0 -1
  74. package/dist/ErrorBlock/demo/base.d.ts +0 -1
  75. package/dist/ErrorBlock/demo/base.js +2 -2
  76. package/dist/ErrorBlock/error-block.d.ts +0 -1
  77. package/dist/ErrorBlock/images/busy.d.ts +0 -1
  78. package/dist/ErrorBlock/images/default.d.ts +0 -1
  79. package/dist/ErrorBlock/images/disconnected.d.ts +0 -1
  80. package/dist/ErrorBlock/images/empty.d.ts +0 -1
  81. package/dist/ErrorBlock/images/index.d.ts +0 -1
  82. package/dist/ErrorBlock/index.d.ts +0 -1
  83. package/dist/ErrorBlock/style.scss +62 -62
  84. package/dist/Footer/footer.d.ts +0 -1
  85. package/dist/Footer/index.d.ts +0 -1
  86. package/dist/Footer/style.scss +55 -55
  87. package/dist/Form/context.d.ts +2 -2
  88. package/dist/Form/form.d.ts +2 -8
  89. package/dist/Form/form.js +4 -3
  90. package/dist/Form/hooks/useForm.d.ts +0 -1
  91. package/dist/Form/hooks/useFormContext.d.ts +0 -1
  92. package/dist/Form/index.d.ts +5 -4
  93. package/dist/Form/index.js +4 -2
  94. package/dist/Form/interface.d.ts +0 -1
  95. package/dist/Form/types.d.ts +7 -0
  96. package/dist/Form/types.js +1 -0
  97. package/dist/Grid/grid.d.ts +0 -1
  98. package/dist/Grid/index.d.ts +0 -1
  99. package/dist/Grid/style.scss +17 -17
  100. package/dist/Icon/check-icon.d.ts +0 -1
  101. package/dist/Icon/demo/base.d.ts +0 -1
  102. package/dist/Icon/demo/base.js +2 -2
  103. package/dist/InputNumber/index.d.ts +0 -1
  104. package/dist/InputNumber/input-number.d.ts +3 -1
  105. package/dist/InputNumber/input-number.js +7 -3
  106. package/dist/InputNumber/style.scss +63 -43
  107. package/dist/Mask/index.d.ts +0 -1
  108. package/dist/Mask/mask-modal.d.ts +0 -1
  109. package/dist/Mask/mask.d.ts +0 -1
  110. package/dist/Mask/style.scss +20 -20
  111. package/dist/NavBar/index.d.ts +0 -1
  112. package/dist/NavBar/nav-bar.d.ts +1 -1
  113. package/dist/NavBar/nav-bar.js +2 -1
  114. package/dist/NavBar/style.scss +64 -61
  115. package/dist/NoticeBar/index.d.ts +0 -1
  116. package/dist/NoticeBar/notice-bar.d.ts +0 -1
  117. package/dist/NoticeBar/style.scss +130 -130
  118. package/dist/PageIndicator/index.d.ts +0 -1
  119. package/dist/PageIndicator/page-indicator.d.ts +0 -1
  120. package/dist/PageIndicator/style.scss +59 -59
  121. package/dist/Picker/index.d.ts +0 -1
  122. package/dist/Picker/picker.d.ts +0 -1
  123. package/dist/Picker/style.scss +41 -41
  124. package/dist/PickerView/index.d.ts +0 -1
  125. package/dist/PickerView/picker-view-column-item.d.ts +0 -1
  126. package/dist/PickerView/picker-view-column.d.ts +0 -1
  127. package/dist/PickerView/picker-view.d.ts +0 -1
  128. package/dist/PickerView/style.scss +72 -72
  129. package/dist/PickerView/types.d.ts +0 -1
  130. package/dist/Popup/index.d.ts +2 -1
  131. package/dist/Popup/index.js +2 -0
  132. package/dist/Popup/popup-modal.d.ts +0 -1
  133. package/dist/Popup/popup.d.ts +0 -1
  134. package/dist/Popup/style.scss +53 -53
  135. package/dist/Radio/GroupContext.d.ts +0 -1
  136. package/dist/Radio/RadioButton.d.ts +0 -1
  137. package/dist/Radio/RadioGroup.d.ts +0 -1
  138. package/dist/Radio/RadioGroup.js +3 -3
  139. package/dist/Radio/index.d.ts +0 -1
  140. package/dist/Radio/radio.d.ts +0 -1
  141. package/dist/Radio/style.scss +141 -138
  142. package/dist/Radio/types.d.ts +6 -5
  143. package/dist/Rate/index.d.ts +0 -1
  144. package/dist/Rate/rate.d.ts +0 -1
  145. package/dist/Rate/style.scss +37 -37
  146. package/dist/Result/demo/base.d.ts +0 -1
  147. package/dist/Result/demo/base.js +2 -2
  148. package/dist/Result/index.d.ts +0 -1
  149. package/dist/Result/result.d.ts +0 -1
  150. package/dist/Result/style.scss +73 -73
  151. package/dist/Result/use-result-icon.d.ts +0 -1
  152. package/dist/SafeArea/index.d.ts +0 -1
  153. package/dist/SafeArea/safe-area.d.ts +0 -1
  154. package/dist/SafeArea/style.scss +20 -18
  155. package/dist/Scaffold/index.d.ts +0 -1
  156. package/dist/Scaffold/scaffold.d.ts +0 -1
  157. package/dist/Scaffold/style.scss +17 -16
  158. package/dist/ScrollView/index.d.ts +0 -1
  159. package/dist/ScrollView/scroll-view.d.ts +0 -1
  160. package/dist/ScrollView/style.scss +19 -19
  161. package/dist/ScrollView/types.d.ts +0 -1
  162. package/dist/SideBar/SideBarContext.d.ts +0 -1
  163. package/dist/SideBar/index.d.ts +0 -1
  164. package/dist/SideBar/side-bar.d.ts +0 -1
  165. package/dist/SideBar/side-bar.js +6 -6
  166. package/dist/SideBar/style.scss +85 -85
  167. package/dist/SideBar/types.d.ts +0 -1
  168. package/dist/Space/index.d.ts +0 -1
  169. package/dist/Space/space.d.ts +1 -1
  170. package/dist/Space/space.js +17 -6
  171. package/dist/Space/style.scss +80 -77
  172. package/dist/SpinLoading/demo/base.d.ts +0 -1
  173. package/dist/SpinLoading/index.d.ts +0 -1
  174. package/dist/SpinLoading/spin-loading.d.ts +0 -1
  175. package/dist/SpinLoading/spin-loading.scss +40 -40
  176. package/dist/Steps/HorizontalSteps.d.ts +0 -1
  177. package/dist/Steps/HorizontalSteps.js +5 -1
  178. package/dist/Steps/Point.d.ts +0 -1
  179. package/dist/Steps/Steps.d.ts +0 -1
  180. package/dist/Steps/VerticalSteps.d.ts +0 -1
  181. package/dist/Steps/context.d.ts +0 -1
  182. package/dist/Steps/index.d.ts +0 -1
  183. package/dist/Steps/style.scss +153 -146
  184. package/dist/Steps/types.d.ts +0 -1
  185. package/dist/Switch/index.d.ts +0 -1
  186. package/dist/Switch/style.scss +128 -128
  187. package/dist/Switch/switch.d.ts +0 -1
  188. package/dist/TabBar/TabBarContext.d.ts +0 -1
  189. package/dist/TabBar/demo/base.d.ts +0 -1
  190. package/dist/TabBar/demo/base.js +2 -2
  191. package/dist/TabBar/index.d.ts +0 -1
  192. package/dist/TabBar/index.js +2 -1
  193. package/dist/TabBar/index.scss +37 -36
  194. package/dist/TabBar/tab-bar.d.ts +0 -1
  195. package/dist/Tabs/context.d.ts +0 -1
  196. package/dist/Tabs/demo/base.d.ts +0 -1
  197. package/dist/Tabs/index.d.ts +0 -1
  198. package/dist/Tabs/style.scss +108 -108
  199. package/dist/Tabs/tab-nav.d.ts +0 -1
  200. package/dist/Tabs/tab-pane.d.ts +0 -1
  201. package/dist/Tabs/tab.d.ts +0 -1
  202. package/dist/Tabs/tabs.d.ts +0 -1
  203. package/dist/Tag/demo/base.d.ts +0 -1
  204. package/dist/Tag/demo/base.js +2 -2
  205. package/dist/Tag/demo/style.scss +8 -8
  206. package/dist/Tag/index.d.ts +0 -1
  207. package/dist/Tag/style.scss +86 -86
  208. package/dist/Tag/tag.d.ts +0 -1
  209. package/dist/Toast/index.d.ts +0 -1
  210. package/dist/Toast/style.scss +63 -63
  211. package/dist/Toast/toast-modal.d.ts +0 -1
  212. package/dist/Toast/toast.d.ts +0 -1
  213. package/dist/WaterMark/index.d.ts +0 -1
  214. package/dist/WaterMark/style.scss +17 -17
  215. package/dist/WaterMark/water-mark.d.ts +0 -1
  216. package/dist/index.d.ts +3 -8
  217. package/dist/index.js +2 -4
  218. package/dist/locales/base.d.ts +0 -1
  219. package/dist/locales/en-US.d.ts +0 -1
  220. package/dist/locales/zh-CN.d.ts +0 -1
  221. package/dist/style/css-variable.scss +6 -0
  222. package/dist/style/index.d.ts +0 -1
  223. package/dist/style/style.scss +52 -52
  224. package/dist/style/theme-dark.scss +24 -24
  225. package/dist/style/theme-default.scss +54 -54
  226. package/dist/style/variable.scss +173 -168
  227. package/dist/types.d.ts +5 -2
  228. package/dist/utils/datetime-utils.d.ts +0 -1
  229. package/dist/utils/dev-log.d.ts +0 -1
  230. package/dist/utils/is-dev.d.ts +0 -1
  231. package/dist/utils/merge-locale.d.ts +0 -1
  232. package/dist/utils/native-props.d.ts +0 -1
  233. package/dist/utils/random-utils.d.ts +0 -1
  234. package/dist/utils/to-css-length.d.ts +0 -1
  235. package/dist/utils/type.d.ts +0 -1
  236. package/dist/utils/type.js +36 -36
  237. package/dist/utils/with-default-props.d.ts +0 -1
  238. package/dist/utils/with-default-props.js +4 -4
  239. package/dist/utils/with-stop-propagation.d.ts +0 -1
  240. package/package.json +4 -4
  241. package/dist/ActionSheet/ActionSheet.d.ts.map +0 -1
  242. package/dist/ActionSheet/index.d.ts.map +0 -1
  243. package/dist/Alert/alert.d.ts.map +0 -1
  244. package/dist/Alert/index.d.ts.map +0 -1
  245. package/dist/Avatar/avatar.d.ts.map +0 -1
  246. package/dist/Avatar/index.d.ts.map +0 -1
  247. package/dist/Badge/badge.d.ts.map +0 -1
  248. package/dist/Badge/index.d.ts.map +0 -1
  249. package/dist/Card/card.d.ts.map +0 -1
  250. package/dist/Card/index.d.ts.map +0 -1
  251. package/dist/Card/native-props.d.ts.map +0 -1
  252. package/dist/CascaderPicker/cascader-picker.d.ts.map +0 -1
  253. package/dist/CascaderPicker/index.d.ts.map +0 -1
  254. package/dist/CascaderView/cascader-column-item.d.ts.map +0 -1
  255. package/dist/CascaderView/cascader-column.d.ts.map +0 -1
  256. package/dist/CascaderView/cascader-view.d.ts.map +0 -1
  257. package/dist/CascaderView/index.d.ts.map +0 -1
  258. package/dist/CascaderView/types.d.ts.map +0 -1
  259. package/dist/Cell/CellGroup.d.ts.map +0 -1
  260. package/dist/Cell/cell.d.ts.map +0 -1
  261. package/dist/Cell/index.d.ts.map +0 -1
  262. package/dist/Cell/types.d.ts.map +0 -1
  263. package/dist/Checkbox/checkbox-button.d.ts.map +0 -1
  264. package/dist/Checkbox/checkbox-group.d.ts.map +0 -1
  265. package/dist/Checkbox/checkbox.d.ts.map +0 -1
  266. package/dist/Checkbox/group-context.d.ts.map +0 -1
  267. package/dist/Checkbox/index.d.ts.map +0 -1
  268. package/dist/Checkbox/types.d.ts.map +0 -1
  269. package/dist/ConfigProvider/config-provider.d.ts.map +0 -1
  270. package/dist/ConfigProvider/index.d.ts.map +0 -1
  271. package/dist/DemoBlock/index.d.ts.map +0 -1
  272. package/dist/DemoDescription/index.d.ts.map +0 -1
  273. package/dist/Descriptions/DescriptionItem.d.ts.map +0 -1
  274. package/dist/Descriptions/Descriptions.d.ts.map +0 -1
  275. package/dist/Descriptions/index.d.ts.map +0 -1
  276. package/dist/Descriptions/types.d.ts.map +0 -1
  277. package/dist/Divider/divider.d.ts.map +0 -1
  278. package/dist/Divider/index.d.ts.map +0 -1
  279. package/dist/Ellipsis/ellipsis.d.ts.map +0 -1
  280. package/dist/Ellipsis/index.d.ts.map +0 -1
  281. package/dist/Ellipsis/useMeasure.d.ts.map +0 -1
  282. package/dist/Empty/empty-icon.d.ts.map +0 -1
  283. package/dist/Empty/empty.d.ts.map +0 -1
  284. package/dist/Empty/index.d.ts.map +0 -1
  285. package/dist/ErrorBlock/create-error-block.d.ts.map +0 -1
  286. package/dist/ErrorBlock/demo/base.d.ts.map +0 -1
  287. package/dist/ErrorBlock/error-block.d.ts.map +0 -1
  288. package/dist/ErrorBlock/images/busy.d.ts.map +0 -1
  289. package/dist/ErrorBlock/images/default.d.ts.map +0 -1
  290. package/dist/ErrorBlock/images/disconnected.d.ts.map +0 -1
  291. package/dist/ErrorBlock/images/empty.d.ts.map +0 -1
  292. package/dist/ErrorBlock/images/index.d.ts.map +0 -1
  293. package/dist/ErrorBlock/index.d.ts.map +0 -1
  294. package/dist/Footer/footer.d.ts.map +0 -1
  295. package/dist/Footer/index.d.ts.map +0 -1
  296. package/dist/Form/FormItem/form-item-input.d.ts +0 -16
  297. package/dist/Form/FormItem/form-item-input.d.ts.map +0 -1
  298. package/dist/Form/FormItem/form-item-input.js +0 -39
  299. package/dist/Form/FormItem/form-item-label.d.ts +0 -14
  300. package/dist/Form/FormItem/form-item-label.d.ts.map +0 -1
  301. package/dist/Form/FormItem/form-item-label.js +0 -25
  302. package/dist/Form/FormItem/form-item.d.ts +0 -22
  303. package/dist/Form/FormItem/form-item.d.ts.map +0 -1
  304. package/dist/Form/FormItem/form-item.js +0 -70
  305. package/dist/Form/FormItem/index.d.ts +0 -6
  306. package/dist/Form/FormItem/index.d.ts.map +0 -1
  307. package/dist/Form/FormItem/index.js +0 -3
  308. package/dist/Form/context.d.ts.map +0 -1
  309. package/dist/Form/form.d.ts.map +0 -1
  310. package/dist/Form/hooks/useForm.d.ts.map +0 -1
  311. package/dist/Form/hooks/useFormContext.d.ts.map +0 -1
  312. package/dist/Form/index.d.ts.map +0 -1
  313. package/dist/Form/interface.d.ts.map +0 -1
  314. package/dist/Form/style.scss +0 -45
  315. package/dist/Grid/grid.d.ts.map +0 -1
  316. package/dist/Grid/index.d.ts.map +0 -1
  317. package/dist/Icon/check-icon.d.ts.map +0 -1
  318. package/dist/Icon/demo/base.d.ts.map +0 -1
  319. package/dist/Input/base-input.d.ts +0 -15
  320. package/dist/Input/base-input.d.ts.map +0 -1
  321. package/dist/Input/base-input.js +0 -63
  322. package/dist/Input/index.d.ts +0 -13
  323. package/dist/Input/index.d.ts.map +0 -1
  324. package/dist/Input/index.js +0 -9
  325. package/dist/Input/index.scss +0 -173
  326. package/dist/Input/input-affix-wrapper.d.ts +0 -9
  327. package/dist/Input/input-affix-wrapper.d.ts.map +0 -1
  328. package/dist/Input/input-affix-wrapper.js +0 -50
  329. package/dist/Input/input-opt.d.ts +0 -17
  330. package/dist/Input/input-opt.d.ts.map +0 -1
  331. package/dist/Input/input-opt.js +0 -93
  332. package/dist/Input/input-password.d.ts +0 -8
  333. package/dist/Input/input-password.d.ts.map +0 -1
  334. package/dist/Input/input-password.js +0 -47
  335. package/dist/Input/input.d.ts +0 -16
  336. package/dist/Input/input.d.ts.map +0 -1
  337. package/dist/Input/input.js +0 -47
  338. package/dist/Input/textarea.d.ts +0 -14
  339. package/dist/Input/textarea.d.ts.map +0 -1
  340. package/dist/Input/textarea.js +0 -45
  341. package/dist/Input/types.d.ts +0 -2
  342. package/dist/Input/types.d.ts.map +0 -1
  343. package/dist/Input/types.js +0 -1
  344. package/dist/InputNumber/index.d.ts.map +0 -1
  345. package/dist/InputNumber/input-number.d.ts.map +0 -1
  346. package/dist/Mask/index.d.ts.map +0 -1
  347. package/dist/Mask/mask-modal.d.ts.map +0 -1
  348. package/dist/Mask/mask.d.ts.map +0 -1
  349. package/dist/NavBar/index.d.ts.map +0 -1
  350. package/dist/NavBar/nav-bar.d.ts.map +0 -1
  351. package/dist/NoticeBar/index.d.ts.map +0 -1
  352. package/dist/NoticeBar/notice-bar.d.ts.map +0 -1
  353. package/dist/PageIndicator/index.d.ts.map +0 -1
  354. package/dist/PageIndicator/page-indicator.d.ts.map +0 -1
  355. package/dist/Picker/index.d.ts.map +0 -1
  356. package/dist/Picker/picker.d.ts.map +0 -1
  357. package/dist/PickerView/index.d.ts.map +0 -1
  358. package/dist/PickerView/picker-view-column-item.d.ts.map +0 -1
  359. package/dist/PickerView/picker-view-column.d.ts.map +0 -1
  360. package/dist/PickerView/picker-view.d.ts.map +0 -1
  361. package/dist/PickerView/types.d.ts.map +0 -1
  362. package/dist/Popup/index.d.ts.map +0 -1
  363. package/dist/Popup/popup-modal.d.ts.map +0 -1
  364. package/dist/Popup/popup.d.ts.map +0 -1
  365. package/dist/Radio/GroupContext.d.ts.map +0 -1
  366. package/dist/Radio/RadioButton.d.ts.map +0 -1
  367. package/dist/Radio/RadioGroup.d.ts.map +0 -1
  368. package/dist/Radio/index.d.ts.map +0 -1
  369. package/dist/Radio/radio.d.ts.map +0 -1
  370. package/dist/Radio/types.d.ts.map +0 -1
  371. package/dist/Rate/index.d.ts.map +0 -1
  372. package/dist/Rate/rate.d.ts.map +0 -1
  373. package/dist/Result/demo/base.d.ts.map +0 -1
  374. package/dist/Result/index.d.ts.map +0 -1
  375. package/dist/Result/result.d.ts.map +0 -1
  376. package/dist/Result/use-result-icon.d.ts.map +0 -1
  377. package/dist/SafeArea/index.d.ts.map +0 -1
  378. package/dist/SafeArea/safe-area.d.ts.map +0 -1
  379. package/dist/Scaffold/index.d.ts.map +0 -1
  380. package/dist/Scaffold/scaffold.d.ts.map +0 -1
  381. package/dist/ScrollView/index.d.ts.map +0 -1
  382. package/dist/ScrollView/scroll-view.d.ts.map +0 -1
  383. package/dist/ScrollView/types.d.ts.map +0 -1
  384. package/dist/SideBar/SideBarContext.d.ts.map +0 -1
  385. package/dist/SideBar/index.d.ts.map +0 -1
  386. package/dist/SideBar/side-bar.d.ts.map +0 -1
  387. package/dist/SideBar/types.d.ts.map +0 -1
  388. package/dist/Space/index.d.ts.map +0 -1
  389. package/dist/Space/space.d.ts.map +0 -1
  390. package/dist/SpinLoading/demo/base.d.ts.map +0 -1
  391. package/dist/SpinLoading/index.d.ts.map +0 -1
  392. package/dist/SpinLoading/spin-loading.d.ts.map +0 -1
  393. package/dist/Steps/HorizontalSteps.d.ts.map +0 -1
  394. package/dist/Steps/Point.d.ts.map +0 -1
  395. package/dist/Steps/Steps.d.ts.map +0 -1
  396. package/dist/Steps/VerticalSteps.d.ts.map +0 -1
  397. package/dist/Steps/context.d.ts.map +0 -1
  398. package/dist/Steps/index.d.ts.map +0 -1
  399. package/dist/Steps/types.d.ts.map +0 -1
  400. package/dist/Switch/index.d.ts.map +0 -1
  401. package/dist/Switch/switch.d.ts.map +0 -1
  402. package/dist/TabBar/TabBarContext.d.ts.map +0 -1
  403. package/dist/TabBar/demo/base.d.ts.map +0 -1
  404. package/dist/TabBar/index.d.ts.map +0 -1
  405. package/dist/TabBar/tab-bar.d.ts.map +0 -1
  406. package/dist/Tabs/context.d.ts.map +0 -1
  407. package/dist/Tabs/demo/base.d.ts.map +0 -1
  408. package/dist/Tabs/index.d.ts.map +0 -1
  409. package/dist/Tabs/tab-nav.d.ts.map +0 -1
  410. package/dist/Tabs/tab-pane.d.ts.map +0 -1
  411. package/dist/Tabs/tab.d.ts.map +0 -1
  412. package/dist/Tabs/tabs.d.ts.map +0 -1
  413. package/dist/Tag/demo/base.d.ts.map +0 -1
  414. package/dist/Tag/index.d.ts.map +0 -1
  415. package/dist/Tag/tag.d.ts.map +0 -1
  416. package/dist/Toast/index.d.ts.map +0 -1
  417. package/dist/Toast/toast-modal.d.ts.map +0 -1
  418. package/dist/Toast/toast.d.ts.map +0 -1
  419. package/dist/VerificationCodeInput/demo/base.d.ts +0 -4
  420. package/dist/VerificationCodeInput/demo/base.d.ts.map +0 -1
  421. package/dist/VerificationCodeInput/demo/base.js +0 -11
  422. package/dist/VerificationCodeInput/index.d.ts +0 -4
  423. package/dist/VerificationCodeInput/index.d.ts.map +0 -1
  424. package/dist/VerificationCodeInput/index.js +0 -2
  425. package/dist/VerificationCodeInput/style.scss +0 -20
  426. package/dist/VerificationCodeInput/verification-code-input.d.ts +0 -25
  427. package/dist/VerificationCodeInput/verification-code-input.d.ts.map +0 -1
  428. package/dist/VerificationCodeInput/verification-code-input.js +0 -99
  429. package/dist/WaterMark/index.d.ts.map +0 -1
  430. package/dist/WaterMark/water-mark.d.ts.map +0 -1
  431. package/dist/index.d.ts.map +0 -1
  432. package/dist/locales/base.d.ts.map +0 -1
  433. package/dist/locales/en-US.d.ts.map +0 -1
  434. package/dist/locales/zh-CN.d.ts.map +0 -1
  435. package/dist/style/index.d.ts.map +0 -1
  436. package/dist/types.d.ts.map +0 -1
  437. package/dist/utils/datetime-utils.d.ts.map +0 -1
  438. package/dist/utils/dev-log.d.ts.map +0 -1
  439. package/dist/utils/is-dev.d.ts.map +0 -1
  440. package/dist/utils/merge-locale.d.ts.map +0 -1
  441. package/dist/utils/native-props.d.ts.map +0 -1
  442. package/dist/utils/random-utils.d.ts.map +0 -1
  443. package/dist/utils/to-css-length.d.ts.map +0 -1
  444. package/dist/utils/type.d.ts.map +0 -1
  445. package/dist/utils/with-default-props.d.ts.map +0 -1
  446. package/dist/utils/with-stop-propagation.d.ts.map +0 -1
@@ -1,63 +0,0 @@
1
- var _excluded = ["className", "style", "placeholder", "type", "value", "onChange"];
2
- 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); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- 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."); }
5
- 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); }
6
- 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; }
7
- 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; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
- 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; }
10
- 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; }
11
- import classNames from 'classnames';
12
- import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
13
- export var BaseInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
14
- var className = _ref.className,
15
- style = _ref.style,
16
- placeholder = _ref.placeholder,
17
- type = _ref.type,
18
- value = _ref.value,
19
- _onChange = _ref.onChange,
20
- props = _objectWithoutProperties(_ref, _excluded);
21
- var _useState = useState(0),
22
- _useState2 = _slicedToArray(_useState, 2),
23
- keySequence = _useState2[0],
24
- setKeySequence = _useState2[1];
25
- var _useState3 = useState(value || ''),
26
- _useState4 = _slicedToArray(_useState3, 2),
27
- innerValue = _useState4[0],
28
- setInnerValue = _useState4[1];
29
- useImperativeHandle(ref, function () {
30
- return {
31
- clear: function clear() {
32
- setInnerValue('');
33
- _onChange === null || _onChange === void 0 || _onChange('');
34
- }
35
- };
36
- });
37
- var cls = 'triones-antm-input';
38
- useEffect(function () {
39
- setKeySequence(keySequence + 1);
40
- }, [type]);
41
- useEffect(function () {
42
- if (value === undefined) {
43
- return;
44
- }
45
- if (value === innerValue) {
46
- return;
47
- }
48
- setInnerValue(value);
49
- }, [value]);
50
- return /*#__PURE__*/React.createElement("input", _extends({
51
- key: keySequence
52
- }, props, {
53
- className: classNames(["".concat(cls), className]),
54
- style: style,
55
- placeholder: placeholder,
56
- type: type,
57
- value: innerValue,
58
- onChange: function onChange(e) {
59
- setInnerValue(e.target.value);
60
- _onChange === null || _onChange === void 0 || _onChange(e);
61
- }
62
- }));
63
- });
@@ -1,13 +0,0 @@
1
- import { InputProps, Input as InternalInput } from './input';
2
- import { InputOPT, InputOPTProps } from './input-opt';
3
- import { InputPassword, InputPasswordProps } from './input-password';
4
- import { InputTextareaProps, Textarea } from './textarea';
5
- type CompoundedComponent = typeof InternalInput & {
6
- Password: typeof InputPassword;
7
- TextArea: typeof Textarea;
8
- OPT: typeof InputOPT;
9
- };
10
- declare const Input: CompoundedComponent;
11
- export type { InputOPTProps, InputPasswordProps, InputProps, InputTextareaProps, };
12
- export default Input;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE1D,KAAK,mBAAmB,GAAG,OAAO,aAAa,GAAG;IAChD,QAAQ,EAAE,OAAO,aAAa,CAAC;IAC/B,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,GAAG,EAAE,OAAO,QAAQ,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,KAAK,qBAAuC,CAAC;AAKnD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,kBAAkB,GACnB,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -1,9 +0,0 @@
1
- import { Input as InternalInput } from "./input";
2
- import { InputOPT } from "./input-opt";
3
- import { InputPassword } from "./input-password";
4
- import { Textarea } from "./textarea";
5
- var Input = InternalInput;
6
- Input.Password = InputPassword;
7
- Input.OPT = InputOPT;
8
- Input.TextArea = Textarea;
9
- export default Input;
@@ -1,173 +0,0 @@
1
- @use "../style/variable" as *;
2
-
3
- $inputCls: 'triones-antm-input';
4
- $inputAffixWrapperCls: 'triones-antm-input-affix-wrapper';
5
- $inputGroupWrapperCls: 'triones-antm-input-group-wrapper';
6
- $inputPotCls: 'triones-antm-pot';
7
-
8
- input {
9
- height: auto;
10
- }
11
-
12
- .#{$inputCls} {
13
- box-sizing: border-box;
14
- display: inline-block;
15
- position: relative;
16
- width: 100%;
17
- min-width: 0;
18
- transition: all .2s;
19
- padding: $trionesInputPaddingBlock $trionesInputPaddingInline;
20
- outline: none;
21
- box-shadow: none;
22
- border: none;
23
- line-height: $trionesLineHeight;
24
- border-radius: $trionesBorderRadius;
25
- font-size: $trionesInputInputFontSize;
26
- height: auto;
27
-
28
- &::placeholder {
29
- font-size: $trionesInputInputFontSize;
30
- color: #cccccc;
31
- }
32
- }
33
-
34
-
35
- .#{$inputAffixWrapperCls} {
36
- box-sizing: border-box;
37
- position: relative;
38
- display: inline-flex;
39
- width: 100%;
40
- min-width: 0;
41
- line-height: $trionesLineHeight;
42
- padding: $trionesInputPaddingBlock $trionesInputPaddingInline;
43
- gap: 4Px;
44
-
45
- &::before {
46
-
47
- display: inline-block;
48
- width: 0;
49
- visibility: hidden;
50
- content: "\a0";
51
- }
52
-
53
- &::after {
54
-
55
- }
56
-
57
- .#{$inputCls} {
58
- padding: 0;
59
- background-color: transparent;
60
-
61
- &-prifix {
62
- }
63
-
64
- &-suffix {
65
- display: inline-flex;
66
- align-items: center;
67
- flex-shrink: 0;
68
- gap: 4Px;
69
-
70
- .clear-icon {
71
- color: rgba(0, 0, 0, 0.25);
72
-
73
-
74
- &:hover {
75
- color: rgba(0, 0, 0, 0.45);
76
- }
77
- }
78
-
79
- .triones-antm-icon {
80
- cursor: pointer;
81
- }
82
- }
83
- }
84
- }
85
-
86
- .#{$inputGroupWrapperCls} {
87
- }
88
-
89
-
90
- .#{$inputPotCls} {
91
- position: relative;
92
- display: inline-flex;
93
- &-wrapper{
94
- position: relative;
95
- display: inline-flex;
96
- align-items: center;
97
- flex-wrap: nowrap;
98
- column-gap: 8Px;
99
- }
100
- &-input {
101
- position: absolute;
102
- background-color: transparent;
103
- z-index: -1;
104
- left: 0;
105
- top: 0;
106
- right: 0;
107
- bottom: 0;
108
- opacity: 0;
109
- -moz-appearance: textfield;
110
- &::-webkit-outer-spin-button,
111
- &::-webkit-inner-spin-button {
112
- -webkit-appearance: none;
113
- margin: 0;
114
- }
115
- }
116
-
117
- &-item {
118
- text-align: center;
119
- font-size: $trionesInputInputFontSize;
120
- height: 32Px;
121
- width: 32Px;
122
- display: inline-flex;
123
- align-items: center;
124
- justify-content: center;
125
-
126
-
127
- &::placeholder {
128
- font-size: $trionesInputInputFontSize;
129
- }
130
- &-focus{
131
- &::after{
132
- content: ' ';
133
- height: 100%;
134
- width: 0.5Px;
135
- background-color: #0a0a0a;
136
- transition: transform 0.1s ease;
137
- animation: blink 1s step-end infinite;
138
- }
139
- }
140
-
141
- }
142
-
143
- .#{$inputCls}-outlined {
144
- font-size: $trionesInputInputFontSize;
145
- color: rgba(0, 0, 0, 0.88);
146
- background: #ffffff;
147
- border-width: 1Px;
148
- border-style: solid;
149
- border-color: #d9d9d9;
150
- -webkit-appearance: none;
151
- -moz-appearance: none;
152
- appearance: none;
153
- }
154
- }
155
-
156
-
157
- .#{$inputCls}-textarea {
158
- box-sizing: border-box;
159
- width: 100%;
160
- border: 0;
161
- outline: 0;
162
- padding: $trionesInputPaddingBlock $trionesInputPaddingInline;
163
- &::placeholder {
164
- font-size: $trionesInputInputFontSize;
165
- color: #cccccc;
166
- }
167
- }
168
-
169
- @keyframes blink {
170
- 50% {
171
- background-color: transparent;
172
- }
173
- }
@@ -1,9 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { BaseInputProps } from './base-input';
3
- export type InputAffixWrapperProps = BaseInputProps & {
4
- prefix?: React.ReactNode;
5
- suffix?: React.ReactNode;
6
- allowClear?: boolean;
7
- };
8
- export declare const InputAffixWrapper: FC<InputAffixWrapperProps>;
9
- //# sourceMappingURL=input-affix-wrapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-affix-wrapper.d.ts","sourceRoot":"","sources":["input-affix-wrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAU,MAAM,OAAO,CAAC;AAC1C,OAAO,EAA8B,cAAc,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG;IACpD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAyCxD,CAAC"}
@@ -1,50 +0,0 @@
1
- var _excluded = ["prefix", "suffix", "allowClear", "value", "onChange"];
2
- 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); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- 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."); }
5
- 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); }
6
- 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; }
7
- 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; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
- 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; }
10
- 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; }
11
- import { CloseCircleFill } from "../../../antd-mobile-icons-react";
12
- import classNames from 'classnames';
13
- import React, { useRef } from 'react';
14
- import { BaseInput } from "./base-input";
15
- export var InputAffixWrapper = function InputAffixWrapper(_ref) {
16
- var prefix = _ref.prefix,
17
- suffix = _ref.suffix,
18
- allowClear = _ref.allowClear,
19
- value = _ref.value,
20
- _onChange = _ref.onChange,
21
- rest = _objectWithoutProperties(_ref, _excluded);
22
- var _React$useState = React.useState(value),
23
- _React$useState2 = _slicedToArray(_React$useState, 2),
24
- innerValue = _React$useState2[0],
25
- setInnerValue = _React$useState2[1];
26
- var baseInputRef = useRef({});
27
- var cls = 'triones-antm-input-affix-wrapper';
28
- var inputCls = 'triones-antm-input';
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: classNames([cls])
31
- }, prefix && /*#__PURE__*/React.createElement("div", {
32
- className: classNames(["".concat(inputCls, "-prefix")])
33
- }, prefix), /*#__PURE__*/React.createElement(BaseInput, _extends({
34
- ref: baseInputRef
35
- }, rest, {
36
- value: value,
37
- onChange: function onChange(value) {
38
- setInnerValue(value);
39
- _onChange === null || _onChange === void 0 || _onChange(value);
40
- }
41
- })), (suffix || allowClear) && /*#__PURE__*/React.createElement("div", {
42
- className: classNames(["".concat(inputCls, "-suffix")])
43
- }, allowClear && innerValue && /*#__PURE__*/React.createElement(CloseCircleFill, {
44
- className: "clear-icon",
45
- onClick: function onClick() {
46
- var _baseInputRef$current, _baseInputRef$current2;
47
- (_baseInputRef$current = (_baseInputRef$current2 = baseInputRef.current).clear) === null || _baseInputRef$current === void 0 || _baseInputRef$current.call(_baseInputRef$current2);
48
- }
49
- }), suffix));
50
- };
@@ -1,17 +0,0 @@
1
- import React, { FC } from 'react';
2
- import './index.scss';
3
- export type InputOPTProps = {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- length?: number;
7
- value?: string;
8
- onChange?: (value: string) => void;
9
- };
10
- export type InputOPTItemProps = {
11
- index: number;
12
- focusIndex?: number;
13
- value?: string;
14
- onFocus?: (index: number) => void;
15
- };
16
- export declare const InputOPT: FC<InputOPTProps>;
17
- //# sourceMappingURL=input-opt.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-opt.d.ts","sourceRoot":"","sources":["input-opt.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAC,EAAE,EAA8B,MAAM,OAAO,CAAC;AAC7D,OAAO,cAAc,CAAC;AAKtB,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AA4BF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAmDtC,CAAC"}
@@ -1,93 +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
- import classNames from 'classnames';
8
- import React, { useEffect, useRef, useState } from 'react';
9
- import "./index.scss";
10
- var cls = 'triones-antm-pot';
11
- var inputCls = 'triones-antm-input';
12
- var InputOPTItem = function InputOPTItem(_ref) {
13
- var index = _ref.index,
14
- focusIndex = _ref.focusIndex,
15
- value = _ref.value,
16
- onFocus = _ref.onFocus;
17
- var ref = React.useRef(null);
18
- return /*#__PURE__*/React.createElement("div", {
19
- ref: ref,
20
- className: classNames("".concat(inputCls), "".concat(cls, "-item"), "".concat(inputCls, "-outlined") // {
21
- // [`${cls}-item-focus`]: focusIndex === index,
22
- // }
23
- ),
24
- onClick: function onClick() {
25
- onFocus === null || onFocus === void 0 || onFocus(index);
26
- }
27
- }, value);
28
- };
29
- export var InputOPT = function InputOPT(_ref2) {
30
- var className = _ref2.className,
31
- style = _ref2.style,
32
- _ref2$length = _ref2.length,
33
- length = _ref2$length === void 0 ? 6 : _ref2$length,
34
- value = _ref2.value,
35
- _onChange = _ref2.onChange;
36
- var inputRef = useRef();
37
- var _useState = useState(value || ''),
38
- _useState2 = _slicedToArray(_useState, 2),
39
- inputValue = _useState2[0],
40
- setInputValue = _useState2[1];
41
- var _React$useState = React.useState(Array.from({
42
- length: length
43
- }).map(function () {
44
- return '';
45
- })),
46
- _React$useState2 = _slicedToArray(_React$useState, 2),
47
- internalValue = _React$useState2[0],
48
- setInternalValue = _React$useState2[1];
49
- var _useState3 = useState(0),
50
- _useState4 = _slicedToArray(_useState3, 2),
51
- focusIndex = _useState4[0],
52
- setFocusIndex = _useState4[1];
53
- useEffect(function () {
54
- if (value === undefined) {
55
- return;
56
- }
57
- setInternalValue(Array.from(inputValue));
58
- }, [inputValue]);
59
- return /*#__PURE__*/React.createElement("div", {
60
- className: classNames(cls, className),
61
- style: style
62
- }, /*#__PURE__*/React.createElement("div", {
63
- className: classNames("".concat(cls, "-wrapper")),
64
- onClick: function onClick() {
65
- var _inputRef$current;
66
- (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
67
- }
68
- }, Array.from({
69
- length: length
70
- }).map(function (_, index) {
71
- return /*#__PURE__*/React.createElement(InputOPTItem, {
72
- key: index,
73
- index: index,
74
- focusIndex: focusIndex,
75
- value: (internalValue === null || internalValue === void 0 ? void 0 : internalValue[index]) || '',
76
- onFocus: function onFocus(index) {
77
- setFocusIndex(index);
78
- }
79
- });
80
- })), /*#__PURE__*/React.createElement("input", {
81
- ref: inputRef,
82
- className: "".concat(cls, "-input"),
83
- type: "number",
84
- value: inputValue,
85
- onChange: function onChange(e) {
86
- if (e.target.value.length > length) {
87
- return;
88
- }
89
- setInputValue(e.target.value);
90
- _onChange === null || _onChange === void 0 || _onChange(e.target.value);
91
- }
92
- }));
93
- };
@@ -1,8 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { InputProps } from './input';
3
- export type InputPasswordProps = Omit<InputProps, 'type'> & {
4
- iconRender?: (visible: boolean) => React.ReactNode;
5
- visibilityToggle?: boolean;
6
- };
7
- export declare const InputPassword: FC<InputPasswordProps>;
8
- //# sourceMappingURL=input-password.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["input-password.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG;IAC1D,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IACnD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAoChD,CAAC"}
@@ -1,47 +0,0 @@
1
- var _excluded = ["iconRender", "visibilityToggle", "suffix"];
2
- 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); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- 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."); }
5
- 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); }
6
- 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; }
7
- 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; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
- 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; }
10
- 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; }
11
- import { EyeInvisibleOutline, EyeOutline } from "../../../antd-mobile-icons-react";
12
- import React, { useState } from 'react';
13
- import { Input } from "./input";
14
- export var InputPassword = function InputPassword(_ref) {
15
- var iconRender = _ref.iconRender,
16
- _ref$visibilityToggle = _ref.visibilityToggle,
17
- visibilityToggle = _ref$visibilityToggle === void 0 ? true : _ref$visibilityToggle,
18
- suffix = _ref.suffix,
19
- rest = _objectWithoutProperties(_ref, _excluded);
20
- var _useState = useState(false),
21
- _useState2 = _slicedToArray(_useState, 2),
22
- visible = _useState2[0],
23
- setVisible = _useState2[1];
24
- var toggleRender = function toggleRender() {
25
- if (iconRender) {
26
- return iconRender(visible);
27
- } else {
28
- return /*#__PURE__*/React.createElement(React.Fragment, null, visible ? /*#__PURE__*/React.createElement(EyeOutline, {
29
- onClick: function onClick() {
30
- return setVisible(false);
31
- }
32
- }) : /*#__PURE__*/React.createElement(EyeInvisibleOutline, {
33
- onClick: function onClick() {
34
- return setVisible(true);
35
- }
36
- }));
37
- }
38
- };
39
- return /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
40
- type: visible ? 'text' : 'password',
41
- suffix: /*#__PURE__*/React.createElement(React.Fragment, null, ' ', visibilityToggle && /*#__PURE__*/React.createElement("div", {
42
- style: {
43
- paddingLeft: 4
44
- }
45
- }, toggleRender()), " ", suffix, ' ')
46
- }));
47
- };
@@ -1,16 +0,0 @@
1
- import React, { FC } from 'react';
2
- import './index.scss';
3
- export type InputProps = {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- placeholder?: string;
7
- type?: 'text' | 'password' | 'textarea';
8
- disabled?: boolean;
9
- allowClear?: boolean;
10
- prefix?: React.ReactNode;
11
- suffix?: React.ReactNode;
12
- value?: any;
13
- onChange?: (e: any) => void;
14
- };
15
- export declare const Input: FC<InputProps>;
16
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,cAAc,CAAC;AAEtB,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC7B,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA+ChC,CAAC"}
@@ -1,47 +0,0 @@
1
- var _excluded = ["className", "style", "placeholder", "type", "disabled", "allowClear", "prefix", "suffix", "value", "onChange"];
2
- 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); }
3
- 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; }
4
- 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; }
5
- import { BaseInput } from "./base-input";
6
- import { InputAffixWrapper } from "./input-affix-wrapper";
7
- import React from 'react';
8
- import "./index.scss";
9
- export var Input = function Input(_ref) {
10
- var className = _ref.className,
11
- style = _ref.style,
12
- placeholder = _ref.placeholder,
13
- type = _ref.type,
14
- disabled = _ref.disabled,
15
- allowClear = _ref.allowClear,
16
- prefix = _ref.prefix,
17
- suffix = _ref.suffix,
18
- value = _ref.value,
19
- onChange = _ref.onChange,
20
- rest = _objectWithoutProperties(_ref, _excluded);
21
- var handleRender = function handleRender() {
22
- if (prefix || suffix || allowClear) {
23
- return /*#__PURE__*/React.createElement(InputAffixWrapper, _extends({}, rest, {
24
- className: className,
25
- style: style,
26
- placeholder: placeholder,
27
- prefix: prefix,
28
- suffix: suffix,
29
- allowClear: allowClear,
30
- type: type,
31
- value: value,
32
- onChange: onChange
33
- }));
34
- } else {
35
- return /*#__PURE__*/React.createElement(BaseInput, _extends({}, rest, {
36
- className: className,
37
- style: style,
38
- placeholder: placeholder,
39
- type: type,
40
- disabled: disabled,
41
- value: value,
42
- onChange: onChange
43
- }));
44
- }
45
- };
46
- return /*#__PURE__*/React.createElement(React.Fragment, null, handleRender());
47
- };
@@ -1,14 +0,0 @@
1
- import React, { FC } from 'react';
2
- import './index.scss';
3
- export type InputTextareaProps = {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- placeholder?: string;
7
- disabled?: boolean;
8
- allowClear?: boolean;
9
- rows?: number;
10
- value?: any;
11
- onChange?: (e: any) => void;
12
- };
13
- export declare const Textarea: FC<InputTextareaProps>;
14
- //# sourceMappingURL=textarea.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,kBAAkB,CAkC3C,CAAC"}
@@ -1,45 +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
- import React, { useEffect } from 'react';
8
- import "./index.scss";
9
- import { inputCls } from "./types";
10
- import classNames from 'classnames';
11
- export var Textarea = function Textarea(_ref) {
12
- var className = _ref.className,
13
- style = _ref.style,
14
- placeholder = _ref.placeholder,
15
- disabled = _ref.disabled,
16
- allowClear = _ref.allowClear,
17
- rows = _ref.rows,
18
- value = _ref.value,
19
- onChange = _ref.onChange;
20
- var _React$useState = React.useState(value),
21
- _React$useState2 = _slicedToArray(_React$useState, 2),
22
- internalValue = _React$useState2[0],
23
- setInternalValue = _React$useState2[1];
24
- useEffect(function () {
25
- if (value === undefined) {
26
- return;
27
- }
28
- if (value === internalValue) {
29
- return;
30
- }
31
- setInternalValue(value);
32
- }, [value]);
33
- return /*#__PURE__*/React.createElement("textarea", {
34
- className: classNames("".concat(inputCls, "-textarea"), className),
35
- style: style,
36
- placeholder: placeholder,
37
- disabled: disabled,
38
- rows: rows,
39
- value: internalValue,
40
- onInput: function onInput(e) {
41
- setInternalValue(e.target.value);
42
- onChange === null || onChange === void 0 || onChange(e.target.value);
43
- }
44
- });
45
- };
@@ -1,2 +0,0 @@
1
- export declare const inputCls = "triones-antm-input";
2
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,uBAAuB,CAAC"}