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

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 (491) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/Alert/alert.d.ts +0 -1
  4. package/dist/Alert/index.d.ts +0 -1
  5. package/dist/Alert/style.scss +69 -69
  6. package/dist/Avatar/avatar.d.ts +4 -2
  7. package/dist/Avatar/avatar.js +19 -6
  8. package/dist/Avatar/index.d.ts +0 -1
  9. package/dist/Avatar/style.scss +17 -16
  10. package/dist/Badge/badge.d.ts +0 -1
  11. package/dist/Badge/index.d.ts +0 -1
  12. package/dist/Badge/style.scss +100 -100
  13. package/dist/Card/card.d.ts +0 -1
  14. package/dist/Card/index.d.ts +0 -1
  15. package/dist/Card/native-props.d.ts +0 -1
  16. package/dist/Card/style.scss +35 -35
  17. package/dist/CascaderView/cascader-column-item.d.ts +0 -1
  18. package/dist/CascaderView/cascader-column.d.ts +0 -1
  19. package/dist/CascaderView/cascader-view.d.ts +0 -1
  20. package/dist/CascaderView/index.d.ts +0 -1
  21. package/dist/CascaderView/style.scss +22 -22
  22. package/dist/CascaderView/types.d.ts +0 -1
  23. package/dist/Cell/CellGroup.d.ts +0 -1
  24. package/dist/Cell/CellGroup.js +39 -17
  25. package/dist/Cell/cell.d.ts +0 -1
  26. package/dist/Cell/cell.js +70 -16
  27. package/dist/Cell/context.d.ts +17 -0
  28. package/dist/Cell/context.js +2 -0
  29. package/dist/Cell/index.d.ts +0 -1
  30. package/dist/Cell/styles.scss +51 -52
  31. package/dist/Cell/types.d.ts +28 -8
  32. package/dist/Checkbox/checkbox-button.d.ts +6 -3
  33. package/dist/Checkbox/checkbox-button.js +5 -17
  34. package/dist/Checkbox/checkbox-group.d.ts +0 -1
  35. package/dist/Checkbox/checkbox-group.js +19 -3
  36. package/dist/Checkbox/checkbox-round.d.ts +8 -0
  37. package/dist/Checkbox/checkbox-round.js +35 -0
  38. package/dist/Checkbox/checkbox.d.ts +0 -1
  39. package/dist/Checkbox/checkbox.js +49 -34
  40. package/dist/Checkbox/group-context.d.ts +0 -1
  41. package/dist/Checkbox/index.d.ts +0 -3
  42. package/dist/Checkbox/index.js +0 -2
  43. package/dist/Checkbox/index.scss +165 -151
  44. package/dist/Checkbox/types.d.ts +11 -2
  45. package/dist/ConfigProvider/config-provider.d.ts +0 -1
  46. package/dist/ConfigProvider/index.d.ts +0 -1
  47. package/dist/DemoBlock/index.d.ts +0 -1
  48. package/dist/DemoBlock/index.scss +20 -20
  49. package/dist/DemoDescription/index.d.ts +0 -1
  50. package/dist/DemoDescription/index.scss +3 -3
  51. package/dist/Descriptions/DescriptionItem.d.ts +0 -1
  52. package/dist/Descriptions/Descriptions.d.ts +0 -1
  53. package/dist/Descriptions/index.d.ts +0 -1
  54. package/dist/Descriptions/style.scss +65 -65
  55. package/dist/Descriptions/types.d.ts +0 -1
  56. package/dist/Divider/divider.d.ts +0 -1
  57. package/dist/Divider/index.d.ts +0 -1
  58. package/dist/Divider/style.scss +62 -62
  59. package/dist/Ellipsis/ellipsis.d.ts +0 -1
  60. package/dist/Ellipsis/index.d.ts +0 -1
  61. package/dist/Ellipsis/style.scss +13 -13
  62. package/dist/Ellipsis/useMeasure.d.ts +0 -1
  63. package/dist/Empty/empty-icon.d.ts +0 -1
  64. package/dist/Empty/empty.d.ts +0 -1
  65. package/dist/Empty/index.d.ts +0 -1
  66. package/dist/Empty/style.scss +29 -29
  67. package/dist/ErrorBlock/create-error-block.d.ts +0 -1
  68. package/dist/ErrorBlock/demo/base.d.ts +0 -1
  69. package/dist/ErrorBlock/demo/base.js +2 -2
  70. package/dist/ErrorBlock/error-block.d.ts +0 -1
  71. package/dist/ErrorBlock/images/busy.d.ts +0 -1
  72. package/dist/ErrorBlock/images/default.d.ts +0 -1
  73. package/dist/ErrorBlock/images/disconnected.d.ts +0 -1
  74. package/dist/ErrorBlock/images/empty.d.ts +0 -1
  75. package/dist/ErrorBlock/images/index.d.ts +0 -1
  76. package/dist/ErrorBlock/index.d.ts +0 -1
  77. package/dist/ErrorBlock/style.scss +62 -62
  78. package/dist/Footer/footer.d.ts +0 -1
  79. package/dist/Footer/index.d.ts +0 -1
  80. package/dist/Footer/style.scss +55 -55
  81. package/dist/Form/context.d.ts +2 -2
  82. package/dist/Form/form.d.ts +2 -8
  83. package/dist/Form/form.js +4 -3
  84. package/dist/Form/hooks/useForm.d.ts +0 -1
  85. package/dist/Form/hooks/useFormContext.d.ts +0 -1
  86. package/dist/Form/index.d.ts +5 -4
  87. package/dist/Form/index.js +4 -2
  88. package/dist/Form/interface.d.ts +0 -1
  89. package/dist/Form/types.d.ts +7 -0
  90. package/dist/Grid/grid.d.ts +0 -1
  91. package/dist/Grid/index.d.ts +0 -1
  92. package/dist/Grid/style.scss +17 -17
  93. package/dist/Icon/check-icon.d.ts +0 -1
  94. package/dist/Icon/demo/base.d.ts +0 -1
  95. package/dist/Icon/demo/base.js +2 -2
  96. package/dist/IndexedStack/IndexedStack.d.ts +9 -0
  97. package/dist/IndexedStack/IndexedStack.js +27 -0
  98. package/dist/IndexedStack/index.d.ts +3 -0
  99. package/dist/IndexedStack/index.js +2 -0
  100. package/dist/InputNumber/index.d.ts +0 -1
  101. package/dist/InputNumber/input-number.d.ts +3 -1
  102. package/dist/InputNumber/input-number.js +7 -3
  103. package/dist/InputNumber/style.scss +63 -43
  104. package/dist/NavBar/index.d.ts +0 -1
  105. package/dist/NavBar/nav-bar.d.ts +1 -1
  106. package/dist/NavBar/nav-bar.js +2 -1
  107. package/dist/NavBar/style.scss +64 -61
  108. package/dist/NoticeBar/index.d.ts +0 -1
  109. package/dist/NoticeBar/notice-bar.d.ts +0 -1
  110. package/dist/NoticeBar/style.scss +130 -130
  111. package/dist/PageIndicator/index.d.ts +0 -1
  112. package/dist/PageIndicator/page-indicator.d.ts +0 -1
  113. package/dist/PageIndicator/style.scss +59 -59
  114. package/dist/Progress/Progress.d.ts +39 -0
  115. package/dist/Progress/Progress.js +56 -0
  116. package/dist/Progress/ProgressCircle.d.ts +15 -0
  117. package/dist/Progress/ProgressCircle.js +114 -0
  118. package/dist/Progress/ProgressLine.d.ts +15 -0
  119. package/dist/Progress/ProgressLine.js +87 -0
  120. package/dist/Progress/index.d.ts +3 -0
  121. package/dist/Progress/index.js +2 -0
  122. package/dist/Progress/style.scss +33 -0
  123. package/dist/Progress/types.d.ts +6 -0
  124. package/dist/Progress/types.js +2 -0
  125. package/dist/Radio/GroupContext.d.ts +0 -1
  126. package/dist/Radio/RadioButton.d.ts +0 -1
  127. package/dist/Radio/RadioGroup.d.ts +0 -1
  128. package/dist/Radio/RadioGroup.js +3 -3
  129. package/dist/Radio/index.d.ts +0 -1
  130. package/dist/Radio/radio.d.ts +0 -1
  131. package/dist/Radio/style.scss +141 -138
  132. package/dist/Radio/types.d.ts +6 -5
  133. package/dist/Rate/index.d.ts +0 -1
  134. package/dist/Rate/rate.d.ts +0 -1
  135. package/dist/Rate/style.scss +37 -37
  136. package/dist/Result/demo/base.d.ts +0 -1
  137. package/dist/Result/demo/base.js +2 -2
  138. package/dist/Result/index.d.ts +0 -1
  139. package/dist/Result/result.d.ts +0 -1
  140. package/dist/Result/style.scss +73 -73
  141. package/dist/Result/use-result-icon.d.ts +0 -1
  142. package/dist/SafeArea/index.d.ts +0 -1
  143. package/dist/SafeArea/safe-area.d.ts +0 -1
  144. package/dist/SafeArea/style.scss +20 -18
  145. package/dist/Scaffold/index.d.ts +0 -1
  146. package/dist/Scaffold/scaffold.d.ts +0 -1
  147. package/dist/Scaffold/style.scss +17 -16
  148. package/dist/Skeleton/Skeleton.d.ts +27 -0
  149. package/dist/Skeleton/Skeleton.js +72 -0
  150. package/dist/Skeleton/index.d.ts +1 -0
  151. package/dist/Skeleton/index.js +1 -0
  152. package/dist/Skeleton/style.scss +48 -0
  153. package/dist/Space/index.d.ts +0 -1
  154. package/dist/Space/space.d.ts +1 -1
  155. package/dist/Space/space.js +17 -6
  156. package/dist/Space/style.scss +80 -77
  157. package/dist/SpinLoading/demo/base.d.ts +0 -1
  158. package/dist/SpinLoading/index.d.ts +0 -1
  159. package/dist/SpinLoading/spin-loading.d.ts +0 -1
  160. package/dist/SpinLoading/spin-loading.scss +40 -40
  161. package/dist/Steps/HorizontalSteps.d.ts +0 -1
  162. package/dist/Steps/HorizontalSteps.js +5 -1
  163. package/dist/Steps/Point.d.ts +0 -1
  164. package/dist/Steps/Steps.d.ts +0 -1
  165. package/dist/Steps/VerticalSteps.d.ts +0 -1
  166. package/dist/Steps/context.d.ts +0 -1
  167. package/dist/Steps/index.d.ts +0 -1
  168. package/dist/Steps/style.scss +153 -146
  169. package/dist/Steps/types.d.ts +0 -1
  170. package/dist/Switch/index.d.ts +0 -1
  171. package/dist/Switch/style.scss +128 -128
  172. package/dist/Switch/switch.d.ts +0 -1
  173. package/dist/TabBar/TabBarContext.d.ts +0 -1
  174. package/dist/TabBar/demo/base.d.ts +0 -1
  175. package/dist/TabBar/demo/base.js +2 -2
  176. package/dist/TabBar/index.d.ts +0 -1
  177. package/dist/TabBar/index.js +2 -1
  178. package/dist/TabBar/index.scss +37 -36
  179. package/dist/TabBar/tab-bar.d.ts +0 -1
  180. package/dist/Tabs/context.d.ts +0 -1
  181. package/dist/Tabs/demo/base.d.ts +0 -1
  182. package/dist/Tabs/index.d.ts +0 -1
  183. package/dist/Tabs/style.scss +108 -108
  184. package/dist/Tabs/tab-nav.d.ts +0 -1
  185. package/dist/Tabs/tab-pane.d.ts +0 -1
  186. package/dist/Tabs/tab.d.ts +0 -1
  187. package/dist/Tabs/tabs.d.ts +0 -1
  188. package/dist/Tag/index.d.ts +0 -1
  189. package/dist/Tag/style.scss +108 -86
  190. package/dist/Tag/tag.d.ts +3 -1
  191. package/dist/Tag/tag.js +7 -1
  192. package/dist/WaterMark/index.d.ts +0 -1
  193. package/dist/WaterMark/style.scss +17 -17
  194. package/dist/WaterMark/water-mark.d.ts +0 -1
  195. package/dist/index.d.ts +6 -25
  196. package/dist/index.js +3 -12
  197. package/dist/locales/base.d.ts +0 -1
  198. package/dist/locales/en-US.d.ts +0 -1
  199. package/dist/locales/zh-CN.d.ts +0 -1
  200. package/dist/style/css-variable.scss +6 -0
  201. package/dist/style/index.d.ts +0 -1
  202. package/dist/style/style.scss +52 -52
  203. package/dist/style/theme-dark.scss +24 -24
  204. package/dist/style/theme-default.scss +54 -54
  205. package/dist/style/variable.scss +173 -168
  206. package/dist/types.d.ts +5 -2
  207. package/dist/utils/datetime-utils.d.ts +0 -1
  208. package/dist/utils/dev-log.d.ts +0 -1
  209. package/dist/utils/is-dev.d.ts +0 -1
  210. package/dist/utils/merge-locale.d.ts +0 -1
  211. package/dist/utils/native-props.d.ts +0 -1
  212. package/dist/utils/random-utils.d.ts +0 -1
  213. package/dist/utils/to-css-length.d.ts +0 -1
  214. package/dist/utils/type.d.ts +0 -1
  215. package/dist/utils/type.js +36 -36
  216. package/dist/utils/with-default-props.d.ts +0 -1
  217. package/dist/utils/with-default-props.js +4 -4
  218. package/dist/utils/with-stop-propagation.d.ts +0 -1
  219. package/package.json +5 -5
  220. package/dist/ActionSheet/ActionSheet.d.ts +0 -26
  221. package/dist/ActionSheet/ActionSheet.d.ts.map +0 -1
  222. package/dist/ActionSheet/ActionSheet.js +0 -77
  223. package/dist/ActionSheet/index.d.ts +0 -4
  224. package/dist/ActionSheet/index.d.ts.map +0 -1
  225. package/dist/ActionSheet/index.js +0 -2
  226. package/dist/ActionSheet/style.scss +0 -51
  227. package/dist/Alert/alert.d.ts.map +0 -1
  228. package/dist/Alert/index.d.ts.map +0 -1
  229. package/dist/Avatar/avatar.d.ts.map +0 -1
  230. package/dist/Avatar/index.d.ts.map +0 -1
  231. package/dist/Badge/badge.d.ts.map +0 -1
  232. package/dist/Badge/index.d.ts.map +0 -1
  233. package/dist/Card/card.d.ts.map +0 -1
  234. package/dist/Card/index.d.ts.map +0 -1
  235. package/dist/Card/native-props.d.ts.map +0 -1
  236. package/dist/CascaderPicker/cascader-picker.d.ts +0 -28
  237. package/dist/CascaderPicker/cascader-picker.d.ts.map +0 -1
  238. package/dist/CascaderPicker/cascader-picker.js +0 -88
  239. package/dist/CascaderPicker/index.d.ts +0 -4
  240. package/dist/CascaderPicker/index.d.ts.map +0 -1
  241. package/dist/CascaderPicker/index.js +0 -2
  242. package/dist/CascaderPicker/style.scss +0 -42
  243. package/dist/CascaderView/cascader-column-item.d.ts.map +0 -1
  244. package/dist/CascaderView/cascader-column.d.ts.map +0 -1
  245. package/dist/CascaderView/cascader-view.d.ts.map +0 -1
  246. package/dist/CascaderView/index.d.ts.map +0 -1
  247. package/dist/CascaderView/types.d.ts.map +0 -1
  248. package/dist/Cell/CellGroup.d.ts.map +0 -1
  249. package/dist/Cell/cell.d.ts.map +0 -1
  250. package/dist/Cell/index.d.ts.map +0 -1
  251. package/dist/Cell/types.d.ts.map +0 -1
  252. package/dist/Checkbox/checkbox-button.d.ts.map +0 -1
  253. package/dist/Checkbox/checkbox-group.d.ts.map +0 -1
  254. package/dist/Checkbox/checkbox.d.ts.map +0 -1
  255. package/dist/Checkbox/group-context.d.ts.map +0 -1
  256. package/dist/Checkbox/index.d.ts.map +0 -1
  257. package/dist/Checkbox/types.d.ts.map +0 -1
  258. package/dist/ConfigProvider/config-provider.d.ts.map +0 -1
  259. package/dist/ConfigProvider/index.d.ts.map +0 -1
  260. package/dist/DemoBlock/index.d.ts.map +0 -1
  261. package/dist/DemoDescription/index.d.ts.map +0 -1
  262. package/dist/Descriptions/DescriptionItem.d.ts.map +0 -1
  263. package/dist/Descriptions/Descriptions.d.ts.map +0 -1
  264. package/dist/Descriptions/index.d.ts.map +0 -1
  265. package/dist/Descriptions/types.d.ts.map +0 -1
  266. package/dist/Divider/divider.d.ts.map +0 -1
  267. package/dist/Divider/index.d.ts.map +0 -1
  268. package/dist/Ellipsis/ellipsis.d.ts.map +0 -1
  269. package/dist/Ellipsis/index.d.ts.map +0 -1
  270. package/dist/Ellipsis/useMeasure.d.ts.map +0 -1
  271. package/dist/Empty/empty-icon.d.ts.map +0 -1
  272. package/dist/Empty/empty.d.ts.map +0 -1
  273. package/dist/Empty/index.d.ts.map +0 -1
  274. package/dist/ErrorBlock/create-error-block.d.ts.map +0 -1
  275. package/dist/ErrorBlock/demo/base.d.ts.map +0 -1
  276. package/dist/ErrorBlock/error-block.d.ts.map +0 -1
  277. package/dist/ErrorBlock/images/busy.d.ts.map +0 -1
  278. package/dist/ErrorBlock/images/default.d.ts.map +0 -1
  279. package/dist/ErrorBlock/images/disconnected.d.ts.map +0 -1
  280. package/dist/ErrorBlock/images/empty.d.ts.map +0 -1
  281. package/dist/ErrorBlock/images/index.d.ts.map +0 -1
  282. package/dist/ErrorBlock/index.d.ts.map +0 -1
  283. package/dist/Footer/footer.d.ts.map +0 -1
  284. package/dist/Footer/index.d.ts.map +0 -1
  285. package/dist/Form/FormItem/form-item-input.d.ts +0 -16
  286. package/dist/Form/FormItem/form-item-input.d.ts.map +0 -1
  287. package/dist/Form/FormItem/form-item-input.js +0 -39
  288. package/dist/Form/FormItem/form-item-label.d.ts +0 -14
  289. package/dist/Form/FormItem/form-item-label.d.ts.map +0 -1
  290. package/dist/Form/FormItem/form-item-label.js +0 -25
  291. package/dist/Form/FormItem/form-item.d.ts +0 -22
  292. package/dist/Form/FormItem/form-item.d.ts.map +0 -1
  293. package/dist/Form/FormItem/form-item.js +0 -70
  294. package/dist/Form/FormItem/index.d.ts +0 -6
  295. package/dist/Form/FormItem/index.d.ts.map +0 -1
  296. package/dist/Form/FormItem/index.js +0 -3
  297. package/dist/Form/context.d.ts.map +0 -1
  298. package/dist/Form/form.d.ts.map +0 -1
  299. package/dist/Form/hooks/useForm.d.ts.map +0 -1
  300. package/dist/Form/hooks/useFormContext.d.ts.map +0 -1
  301. package/dist/Form/index.d.ts.map +0 -1
  302. package/dist/Form/interface.d.ts.map +0 -1
  303. package/dist/Form/style.scss +0 -45
  304. package/dist/Grid/grid.d.ts.map +0 -1
  305. package/dist/Grid/index.d.ts.map +0 -1
  306. package/dist/Icon/check-icon.d.ts.map +0 -1
  307. package/dist/Icon/demo/base.d.ts.map +0 -1
  308. package/dist/Input/base-input.d.ts +0 -15
  309. package/dist/Input/base-input.d.ts.map +0 -1
  310. package/dist/Input/base-input.js +0 -63
  311. package/dist/Input/index.d.ts +0 -13
  312. package/dist/Input/index.d.ts.map +0 -1
  313. package/dist/Input/index.js +0 -9
  314. package/dist/Input/index.scss +0 -173
  315. package/dist/Input/input-affix-wrapper.d.ts +0 -9
  316. package/dist/Input/input-affix-wrapper.d.ts.map +0 -1
  317. package/dist/Input/input-affix-wrapper.js +0 -50
  318. package/dist/Input/input-opt.d.ts +0 -17
  319. package/dist/Input/input-opt.d.ts.map +0 -1
  320. package/dist/Input/input-opt.js +0 -93
  321. package/dist/Input/input-password.d.ts +0 -8
  322. package/dist/Input/input-password.d.ts.map +0 -1
  323. package/dist/Input/input-password.js +0 -47
  324. package/dist/Input/input.d.ts +0 -16
  325. package/dist/Input/input.d.ts.map +0 -1
  326. package/dist/Input/input.js +0 -47
  327. package/dist/Input/textarea.d.ts +0 -14
  328. package/dist/Input/textarea.d.ts.map +0 -1
  329. package/dist/Input/textarea.js +0 -45
  330. package/dist/Input/types.d.ts +0 -2
  331. package/dist/Input/types.d.ts.map +0 -1
  332. package/dist/Input/types.js +0 -1
  333. package/dist/InputNumber/index.d.ts.map +0 -1
  334. package/dist/InputNumber/input-number.d.ts.map +0 -1
  335. package/dist/Mask/index.d.ts +0 -4
  336. package/dist/Mask/index.d.ts.map +0 -1
  337. package/dist/Mask/index.js +0 -2
  338. package/dist/Mask/mask-modal.d.ts +0 -46
  339. package/dist/Mask/mask-modal.d.ts.map +0 -1
  340. package/dist/Mask/mask-modal.js +0 -32
  341. package/dist/Mask/mask.d.ts +0 -6
  342. package/dist/Mask/mask.d.ts.map +0 -1
  343. package/dist/Mask/mask.js +0 -19
  344. package/dist/Mask/style.scss +0 -20
  345. package/dist/NavBar/index.d.ts.map +0 -1
  346. package/dist/NavBar/nav-bar.d.ts.map +0 -1
  347. package/dist/NoticeBar/index.d.ts.map +0 -1
  348. package/dist/NoticeBar/notice-bar.d.ts.map +0 -1
  349. package/dist/PageIndicator/index.d.ts.map +0 -1
  350. package/dist/PageIndicator/page-indicator.d.ts.map +0 -1
  351. package/dist/Picker/index.d.ts +0 -4
  352. package/dist/Picker/index.d.ts.map +0 -1
  353. package/dist/Picker/index.js +0 -2
  354. package/dist/Picker/picker.d.ts +0 -20
  355. package/dist/Picker/picker.d.ts.map +0 -1
  356. package/dist/Picker/picker.js +0 -97
  357. package/dist/Picker/style.scss +0 -41
  358. package/dist/PickerView/index.d.ts +0 -5
  359. package/dist/PickerView/index.d.ts.map +0 -1
  360. package/dist/PickerView/index.js +0 -2
  361. package/dist/PickerView/picker-view-column-item.d.ts +0 -8
  362. package/dist/PickerView/picker-view-column-item.d.ts.map +0 -1
  363. package/dist/PickerView/picker-view-column-item.js +0 -11
  364. package/dist/PickerView/picker-view-column.d.ts +0 -11
  365. package/dist/PickerView/picker-view-column.d.ts.map +0 -1
  366. package/dist/PickerView/picker-view-column.js +0 -117
  367. package/dist/PickerView/picker-view.d.ts +0 -13
  368. package/dist/PickerView/picker-view.d.ts.map +0 -1
  369. package/dist/PickerView/picker-view.js +0 -60
  370. package/dist/PickerView/style.scss +0 -72
  371. package/dist/PickerView/types.d.ts +0 -5
  372. package/dist/PickerView/types.d.ts.map +0 -1
  373. package/dist/Popup/index.d.ts +0 -4
  374. package/dist/Popup/index.d.ts.map +0 -1
  375. package/dist/Popup/index.js +0 -2
  376. package/dist/Popup/popup-modal.d.ts +0 -53
  377. package/dist/Popup/popup-modal.d.ts.map +0 -1
  378. package/dist/Popup/popup-modal.js +0 -74
  379. package/dist/Popup/popup.d.ts +0 -5
  380. package/dist/Popup/popup.d.ts.map +0 -1
  381. package/dist/Popup/popup.js +0 -56
  382. package/dist/Popup/style.scss +0 -53
  383. package/dist/Radio/GroupContext.d.ts.map +0 -1
  384. package/dist/Radio/RadioButton.d.ts.map +0 -1
  385. package/dist/Radio/RadioGroup.d.ts.map +0 -1
  386. package/dist/Radio/index.d.ts.map +0 -1
  387. package/dist/Radio/radio.d.ts.map +0 -1
  388. package/dist/Radio/types.d.ts.map +0 -1
  389. package/dist/Rate/index.d.ts.map +0 -1
  390. package/dist/Rate/rate.d.ts.map +0 -1
  391. package/dist/Result/demo/base.d.ts.map +0 -1
  392. package/dist/Result/index.d.ts.map +0 -1
  393. package/dist/Result/result.d.ts.map +0 -1
  394. package/dist/Result/use-result-icon.d.ts.map +0 -1
  395. package/dist/SafeArea/index.d.ts.map +0 -1
  396. package/dist/SafeArea/safe-area.d.ts.map +0 -1
  397. package/dist/Scaffold/index.d.ts.map +0 -1
  398. package/dist/Scaffold/scaffold.d.ts.map +0 -1
  399. package/dist/ScrollView/index.d.ts +0 -5
  400. package/dist/ScrollView/index.d.ts.map +0 -1
  401. package/dist/ScrollView/index.js +0 -2
  402. package/dist/ScrollView/scroll-view.d.ts +0 -5
  403. package/dist/ScrollView/scroll-view.d.ts.map +0 -1
  404. package/dist/ScrollView/scroll-view.js +0 -55
  405. package/dist/ScrollView/style.scss +0 -19
  406. package/dist/ScrollView/types.d.ts +0 -27
  407. package/dist/ScrollView/types.d.ts.map +0 -1
  408. package/dist/ScrollView/types.js +0 -1
  409. package/dist/SideBar/SideBarContext.d.ts +0 -19
  410. package/dist/SideBar/SideBarContext.d.ts.map +0 -1
  411. package/dist/SideBar/SideBarContext.js +0 -2
  412. package/dist/SideBar/index.d.ts +0 -4
  413. package/dist/SideBar/index.d.ts.map +0 -1
  414. package/dist/SideBar/index.js +0 -2
  415. package/dist/SideBar/side-bar.d.ts +0 -26
  416. package/dist/SideBar/side-bar.d.ts.map +0 -1
  417. package/dist/SideBar/side-bar.js +0 -351
  418. package/dist/SideBar/style.scss +0 -85
  419. package/dist/SideBar/types.d.ts +0 -8
  420. package/dist/SideBar/types.d.ts.map +0 -1
  421. package/dist/SideBar/types.js +0 -1
  422. package/dist/Space/index.d.ts.map +0 -1
  423. package/dist/Space/space.d.ts.map +0 -1
  424. package/dist/SpinLoading/demo/base.d.ts.map +0 -1
  425. package/dist/SpinLoading/index.d.ts.map +0 -1
  426. package/dist/SpinLoading/spin-loading.d.ts.map +0 -1
  427. package/dist/Steps/HorizontalSteps.d.ts.map +0 -1
  428. package/dist/Steps/Point.d.ts.map +0 -1
  429. package/dist/Steps/Steps.d.ts.map +0 -1
  430. package/dist/Steps/VerticalSteps.d.ts.map +0 -1
  431. package/dist/Steps/context.d.ts.map +0 -1
  432. package/dist/Steps/index.d.ts.map +0 -1
  433. package/dist/Steps/types.d.ts.map +0 -1
  434. package/dist/Switch/index.d.ts.map +0 -1
  435. package/dist/Switch/switch.d.ts.map +0 -1
  436. package/dist/TabBar/TabBarContext.d.ts.map +0 -1
  437. package/dist/TabBar/demo/base.d.ts.map +0 -1
  438. package/dist/TabBar/index.d.ts.map +0 -1
  439. package/dist/TabBar/tab-bar.d.ts.map +0 -1
  440. package/dist/Tabs/context.d.ts.map +0 -1
  441. package/dist/Tabs/demo/base.d.ts.map +0 -1
  442. package/dist/Tabs/index.d.ts.map +0 -1
  443. package/dist/Tabs/tab-nav.d.ts.map +0 -1
  444. package/dist/Tabs/tab-pane.d.ts.map +0 -1
  445. package/dist/Tabs/tab.d.ts.map +0 -1
  446. package/dist/Tabs/tabs.d.ts.map +0 -1
  447. package/dist/Tag/demo/base.d.ts +0 -8
  448. package/dist/Tag/demo/base.d.ts.map +0 -1
  449. package/dist/Tag/demo/base.js +0 -67
  450. package/dist/Tag/demo/style.scss +0 -8
  451. package/dist/Tag/index.d.ts.map +0 -1
  452. package/dist/Tag/tag.d.ts.map +0 -1
  453. package/dist/Toast/index.d.ts +0 -6
  454. package/dist/Toast/index.d.ts.map +0 -1
  455. package/dist/Toast/index.js +0 -3
  456. package/dist/Toast/style.scss +0 -63
  457. package/dist/Toast/toast-modal.d.ts +0 -19
  458. package/dist/Toast/toast-modal.d.ts.map +0 -1
  459. package/dist/Toast/toast-modal.js +0 -112
  460. package/dist/Toast/toast.d.ts +0 -8
  461. package/dist/Toast/toast.d.ts.map +0 -1
  462. package/dist/Toast/toast.js +0 -78
  463. package/dist/VerificationCodeInput/demo/base.d.ts +0 -4
  464. package/dist/VerificationCodeInput/demo/base.d.ts.map +0 -1
  465. package/dist/VerificationCodeInput/demo/base.js +0 -11
  466. package/dist/VerificationCodeInput/index.d.ts +0 -4
  467. package/dist/VerificationCodeInput/index.d.ts.map +0 -1
  468. package/dist/VerificationCodeInput/index.js +0 -2
  469. package/dist/VerificationCodeInput/style.scss +0 -20
  470. package/dist/VerificationCodeInput/verification-code-input.d.ts +0 -25
  471. package/dist/VerificationCodeInput/verification-code-input.d.ts.map +0 -1
  472. package/dist/VerificationCodeInput/verification-code-input.js +0 -99
  473. package/dist/WaterMark/index.d.ts.map +0 -1
  474. package/dist/WaterMark/water-mark.d.ts.map +0 -1
  475. package/dist/index.d.ts.map +0 -1
  476. package/dist/locales/base.d.ts.map +0 -1
  477. package/dist/locales/en-US.d.ts.map +0 -1
  478. package/dist/locales/zh-CN.d.ts.map +0 -1
  479. package/dist/style/index.d.ts.map +0 -1
  480. package/dist/types.d.ts.map +0 -1
  481. package/dist/utils/datetime-utils.d.ts.map +0 -1
  482. package/dist/utils/dev-log.d.ts.map +0 -1
  483. package/dist/utils/is-dev.d.ts.map +0 -1
  484. package/dist/utils/merge-locale.d.ts.map +0 -1
  485. package/dist/utils/native-props.d.ts.map +0 -1
  486. package/dist/utils/random-utils.d.ts.map +0 -1
  487. package/dist/utils/to-css-length.d.ts.map +0 -1
  488. package/dist/utils/type.d.ts.map +0 -1
  489. package/dist/utils/with-default-props.d.ts.map +0 -1
  490. package/dist/utils/with-stop-propagation.d.ts.map +0 -1
  491. /package/dist/{PickerView → Form}/types.js +0 -0
@@ -1,4 +1,3 @@
1
1
  import { CascaderView, CascaderViewProps } from "./cascader-view";
2
2
  export type { CascaderViewProps, };
3
3
  export default CascaderView;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,22 +1,22 @@
1
- @use "../style/variable" as *;
2
-
3
- $cascaderViewCls: 'triones-antm-cascader-view';
4
- .#{$cascaderViewCls} {
5
- &-column {
6
- height: 100%;
7
- overflow-y: auto;
8
- scrollbar-width: thin;
9
- &-item {
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- height: 34Px;
14
- cursor: default;
15
- padding: 0Px 8Px;
16
-
17
- &-selected {
18
- color: $trionesColorPrimary;
19
- }
20
- }
21
- }
22
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $cascaderViewCls: 'triones-antm-cascader-view';
4
+ .#{$cascaderViewCls} {
5
+ &-column {
6
+ height: 100%;
7
+ overflow-y: auto;
8
+ scrollbar-width: thin;
9
+ &-item {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ height: 34Px;
14
+ cursor: default;
15
+ padding: 0Px 8Px;
16
+
17
+ &-selected {
18
+ color: variable.$trionesColorPrimary;
19
+ }
20
+ }
21
+ }
22
+ }
@@ -9,4 +9,3 @@ export type ColumnOption = {
9
9
  children?: ColumnOption[];
10
10
  [key: string]: any;
11
11
  };
12
- //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { CellGroupProps } from './types';
3
3
  export declare const CellGroup: FC<CellGroupProps>;
4
- //# sourceMappingURL=CellGroup.d.ts.map
@@ -1,28 +1,38 @@
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
1
7
  import classNames from 'classnames';
2
8
  import React from 'react';
3
- import Divider from "../Divider";
4
9
  import { cls } from "./types";
10
+ import { CellGroupContext } from "./context";
11
+ import Cell from '.';
12
+ import { Cell as InternalCell } from "./cell";
5
13
  export var CellGroup = function CellGroup(_ref) {
6
14
  var className = _ref.className,
7
15
  style = _ref.style,
8
16
  children = _ref.children,
9
17
  title = _ref.title,
10
18
  extra = _ref.extra,
11
- divider = _ref.divider;
19
+ labelCol = _ref.labelCol,
20
+ labelAlign = _ref.labelAlign,
21
+ wrapperAlign = _ref.wrapperAlign,
22
+ divider = _ref.divider,
23
+ styles = _ref.styles;
12
24
  var handleRender = function handleRender() {
13
25
  if (children) {
14
26
  if (Array.isArray(children)) {
15
27
  var childrenArray = [];
16
- for (var i = 0; i < children.length; i++) {
17
- childrenArray.push( /*#__PURE__*/React.cloneElement(children[i]));
18
- if (divider && i !== children.length - 1) {
19
- if ( /*#__PURE__*/React.isValidElement(divider)) {
20
- childrenArray.push(divider);
21
- } else {
22
- childrenArray.push( /*#__PURE__*/React.createElement(Divider, null));
23
- }
28
+ children.filter(function (child) {
29
+ return /*#__PURE__*/React.isValidElement(child) && (child.type == Cell || child.type == InternalCell);
30
+ }).forEach(function (child, index) {
31
+ childrenArray.push(child);
32
+ if (divider && index < React.Children.count(children) - 1) {
33
+ childrenArray.push(divider);
24
34
  }
25
- }
35
+ });
26
36
  return childrenArray;
27
37
  } else {
28
38
  return children;
@@ -30,12 +40,24 @@ export var CellGroup = function CellGroup(_ref) {
30
40
  }
31
41
  return null;
32
42
  };
33
- return /*#__PURE__*/React.createElement("div", {
43
+ return /*#__PURE__*/React.createElement(CellGroupContext.Provider, {
44
+ value: {
45
+ labelCol: labelCol,
46
+ labelAlign: labelAlign,
47
+ wrapperAlign: wrapperAlign,
48
+ extra: extra,
49
+ styles: {
50
+ cell: styles === null || styles === void 0 ? void 0 : styles.cell,
51
+ label: styles === null || styles === void 0 ? void 0 : styles.label,
52
+ content: styles === null || styles === void 0 ? void 0 : styles.content,
53
+ extra: styles === null || styles === void 0 ? void 0 : styles.extra
54
+ }
55
+ }
56
+ }, /*#__PURE__*/React.createElement("div", {
34
57
  className: classNames("".concat(cls, "-group"), className),
35
- style: style
58
+ style: _objectSpread(_objectSpread({}, style), styles === null || styles === void 0 ? void 0 : styles.container)
36
59
  }, title && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
37
- className: classNames("".concat(cls, "-group-title"))
38
- }, /*#__PURE__*/React.createElement("div", null, title), /*#__PURE__*/React.createElement("div", {
39
- className: classNames("".concat(cls, "-group-extra"))
40
- }, extra)), /*#__PURE__*/React.createElement(Divider, null)), handleRender());
60
+ className: classNames("".concat(cls, "-group-title")),
61
+ style: styles === null || styles === void 0 ? void 0 : styles.title
62
+ }, title)), handleRender()));
41
63
  };
@@ -2,4 +2,3 @@ import { FC } from 'react';
2
2
  import './styles.scss';
3
3
  import { CellProps } from './types';
4
4
  export declare const Cell: FC<CellProps>;
5
- //# sourceMappingURL=cell.d.ts.map
package/dist/Cell/cell.js CHANGED
@@ -1,31 +1,85 @@
1
- import { RightOutline } from "../../../antd-mobile-icons-react";
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
2
7
  import classNames from 'classnames';
3
- import React from 'react';
8
+ import React, { useContext, useMemo } from 'react';
4
9
  import "./styles.scss";
10
+ import { CellGroupContext } from "./context";
11
+ import { assign } from "lodash-es";
5
12
  var cls = 'triones-antm-cell';
6
13
  export var Cell = function Cell(_ref) {
7
14
  var className = _ref.className,
8
15
  style = _ref.style,
9
16
  placeholder = _ref.placeholder,
10
17
  children = _ref.children,
18
+ label = _ref.label,
11
19
  extra = _ref.extra,
12
- _ref$arrow = _ref.arrow,
13
- arrow = _ref$arrow === void 0 ? true : _ref$arrow,
20
+ labelCol = _ref.labelCol,
21
+ labelAlign = _ref.labelAlign,
22
+ wrapperAlign = _ref.wrapperAlign,
14
23
  onClick = _ref.onClick,
15
- picker = _ref.picker;
24
+ styles = _ref.styles;
25
+ var _useContext = useContext(CellGroupContext),
26
+ ctxLabelCol = _useContext.labelCol,
27
+ ctxLabelAlign = _useContext.labelAlign,
28
+ ctxWrapperAlign = _useContext.wrapperAlign,
29
+ ctxExtra = _useContext.extra,
30
+ ctxStyles = _useContext.styles;
31
+ var labelWidth = useMemo(function () {
32
+ return (labelCol === null || labelCol === void 0 ? void 0 : labelCol.flex) || (ctxLabelCol === null || ctxLabelCol === void 0 ? void 0 : ctxLabelCol.flex) || 'auto';
33
+ }, [labelCol, ctxLabelCol]);
34
+ var labelAlignStyle = useMemo(function () {
35
+ var align = labelAlign || ctxLabelAlign;
36
+ switch (align) {
37
+ case 'left':
38
+ return 'start';
39
+ case 'center':
40
+ return 'center';
41
+ case 'right':
42
+ return 'end';
43
+ default:
44
+ return 'start';
45
+ }
46
+ }, [labelAlign, ctxLabelAlign]);
47
+ var wrapperAlignStyle = useMemo(function () {
48
+ var align = wrapperAlign || ctxWrapperAlign;
49
+ switch (align) {
50
+ case 'left':
51
+ return 'start';
52
+ case 'center':
53
+ return 'center';
54
+ case 'right':
55
+ return 'end';
56
+ default:
57
+ return 'start';
58
+ }
59
+ }, [wrapperAlign, ctxWrapperAlign]);
60
+ var mergedStyles = assign({}, ctxStyles, styles);
61
+ if (style) {
62
+ mergedStyles.cell = assign(mergedStyles.cell, style);
63
+ }
16
64
  return /*#__PURE__*/React.createElement("div", {
17
65
  className: classNames(cls, className),
18
- style: style,
66
+ style: _objectSpread({}, mergedStyles.cell),
19
67
  onClick: onClick
20
- }, /*#__PURE__*/React.createElement("div", {
21
- className: classNames("".concat(cls, "-wrapper"))
22
- }, /*#__PURE__*/React.createElement("div", {
23
- className: classNames("".concat(cls, "-content"))
24
- }, picker, children || placeholder && /*#__PURE__*/React.createElement("div", {
68
+ }, label && /*#__PURE__*/React.createElement("div", {
69
+ className: classNames("".concat(cls, "-label")),
70
+ style: _objectSpread({
71
+ width: labelWidth,
72
+ justifyContent: labelAlignStyle
73
+ }, mergedStyles === null || mergedStyles === void 0 ? void 0 : mergedStyles.label)
74
+ }, label), /*#__PURE__*/React.createElement("div", {
75
+ className: classNames("".concat(cls, "-content")),
76
+ style: _objectSpread({
77
+ justifyContent: wrapperAlignStyle
78
+ }, mergedStyles === null || mergedStyles === void 0 ? void 0 : mergedStyles.content)
79
+ }, children || placeholder && /*#__PURE__*/React.createElement("div", {
25
80
  className: classNames("".concat(cls, "-placeholder"))
26
- }, placeholder)), extra && /*#__PURE__*/React.createElement("div", {
27
- className: classNames("".concat(cls, "-extra"))
28
- }, extra)), arrow && /*#__PURE__*/React.createElement("div", {
29
- className: classNames("".concat(cls, "-arrow"))
30
- }, /*#__PURE__*/React.createElement(RightOutline, null)));
81
+ }, placeholder)), (extra || ctxExtra) && /*#__PURE__*/React.createElement("div", {
82
+ className: classNames("".concat(cls, "-extra")),
83
+ style: mergedStyles === null || mergedStyles === void 0 ? void 0 : mergedStyles.extra
84
+ }, extra || ctxExtra));
31
85
  };
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { Col } from "../types";
3
+ import { align } from "./types";
4
+ type CellGroupContextType = {
5
+ labelCol?: Col;
6
+ labelAlign?: align;
7
+ wrapperAlign?: align;
8
+ extra?: React.ReactNode;
9
+ styles?: {
10
+ cell?: React.CSSProperties;
11
+ label?: React.CSSProperties;
12
+ content?: React.CSSProperties;
13
+ extra?: React.CSSProperties;
14
+ };
15
+ };
16
+ export declare const CellGroupContext: React.Context<CellGroupContextType>;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export var CellGroupContext = /*#__PURE__*/React.createContext({});
@@ -7,4 +7,3 @@ type CompoundedComponent = typeof InternalCell & {
7
7
  declare const Cell: CompoundedComponent;
8
8
  export type { CellProps, CellGroupProps };
9
9
  export default Cell;
10
- //# sourceMappingURL=index.d.ts.map
@@ -1,52 +1,51 @@
1
- @use "../style/variable" as *;
2
-
3
- $cellCls: 'triones-antm-cell';
4
-
5
- .#{$cellCls} {
6
- display: flex;
7
- padding: 4Px 11Px;
8
- gap: 4Px;
9
-
10
- &-wrapper {
11
- display: flex;
12
- flex: 1 auto;
13
- }
14
-
15
- &-content {
16
- flex: 1 auto;
17
- display: flex;
18
- align-items: center;
19
- }
20
-
21
- &-extra {
22
- }
23
-
24
- &-arrow {
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- }
29
- &-placeholder{
30
- font-size: 14Px;
31
- color: #cccccc;
32
- }
33
- }
34
-
35
- .#{$cellCls}-group {
36
- display: flex;
37
- flex-direction: column;
38
- border-radius: $trionesBorderRadius;
39
- padding: 4Px 4Px;
40
-
41
- &-title {
42
- padding: 4Px 4Px;
43
- display: flex;
44
- justify-content: space-between;
45
-
46
- &-text {
47
- }
48
-
49
- &-extra {
50
- }
51
- }
52
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $cellCls: 'triones-antm-cell';
4
+
5
+ .#{$cellCls} {
6
+ padding-block: 4Px;
7
+ display: flex;
8
+ gap: 4Px;
9
+ align-items: center;
10
+
11
+
12
+ &-label {
13
+ display: flex;
14
+ align-items: center;
15
+ }
16
+
17
+ &-content {
18
+ flex: 1 auto;
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ &-extra {
24
+ display: flex;
25
+ align-items: center;
26
+ }
27
+
28
+
29
+ &-placeholder {
30
+ font-size: variable.$trionesFontSize;
31
+ color: variable.$trionesColorTextPlaceholder;
32
+ }
33
+ }
34
+
35
+ .#{$cellCls}-group {
36
+ display: flex;
37
+ flex-direction: column;
38
+ border-radius: variable.$trionesBorderRadius;
39
+
40
+ &-title {
41
+ padding: 4Px 4Px;
42
+ display: flex;
43
+ justify-content: space-between;
44
+
45
+ &-text {
46
+ }
47
+
48
+ &-extra {
49
+ }
50
+ }
51
+ }
@@ -1,10 +1,16 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
+ import { Col } from "../types";
2
3
  export declare const cls = "triones-antm-cell";
4
+ export type align = 'left' | 'center' | 'right';
3
5
  export type CellProps = {
4
6
  className?: string;
5
7
  style?: React.CSSProperties;
6
8
  placeholder?: string;
7
9
  children?: React.ReactNode;
10
+ /**
11
+ * @description 左侧内容
12
+ */
13
+ label?: React.ReactNode;
8
14
  /**
9
15
  * @description 右侧内容
10
16
  * @default
@@ -19,7 +25,14 @@ export type CellProps = {
19
25
  * @description 点击事件
20
26
  */
21
27
  onClick?: () => void;
22
- picker?: React.ReactNode;
28
+ labelCol?: Col;
29
+ labelAlign?: align;
30
+ wrapperAlign?: align;
31
+ styles?: {
32
+ label?: React.CSSProperties;
33
+ content?: React.CSSProperties;
34
+ extra?: React.CSSProperties;
35
+ };
23
36
  };
24
37
  export type CellGroupProps = {
25
38
  className?: string;
@@ -33,10 +46,17 @@ export type CellGroupProps = {
33
46
  * @description 分组右侧内容
34
47
  */
35
48
  extra?: React.ReactNode;
36
- /**
37
- * @description 是否显示分割线
38
- * @default false
39
- */
40
- divider?: boolean | React.ReactNode;
49
+ arrow?: boolean;
50
+ labelCol?: Col;
51
+ labelAlign?: align;
52
+ wrapperAlign?: align;
53
+ divider?: ReactNode;
54
+ styles?: {
55
+ container?: React.CSSProperties;
56
+ title?: React.CSSProperties;
57
+ cell?: React.CSSProperties;
58
+ label?: React.CSSProperties;
59
+ content?: React.CSSProperties;
60
+ extra?: React.CSSProperties;
61
+ };
41
62
  };
42
- //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,7 @@
1
- import { CheckboxProps } from './types';
2
1
  import { FC } from 'react';
3
- export declare const CheckboxButton: FC<CheckboxProps>;
4
- //# sourceMappingURL=checkbox-button.d.ts.map
2
+ import { CheckboxProps } from './types';
3
+ type CheckboxButtonProps = CheckboxProps & {
4
+ onClick: () => void;
5
+ };
6
+ export declare const CheckboxButton: FC<CheckboxButtonProps>;
7
+ export {};
@@ -2,39 +2,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
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
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
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
5
  import React from 'react';
12
6
  import { cls } from "./types";
13
- import { useState } from 'react';
14
7
  import classNames from 'classnames';
15
8
  import { CheckOutline } from "../../../antd-mobile-icons-react";
16
9
  export var CheckboxButton = function CheckboxButton(_ref) {
17
- var _ref2;
18
10
  var children = _ref.children,
19
11
  checked = _ref.checked,
20
- defaultChecked = _ref.defaultChecked,
21
- disabled = _ref.disabled;
22
- var _useState = useState((_ref2 = checked !== null && checked !== void 0 ? checked : defaultChecked) !== null && _ref2 !== void 0 ? _ref2 : false),
23
- _useState2 = _slicedToArray(_useState, 2),
24
- innerChecked = _useState2[0],
25
- setInnerChecked = _useState2[1];
12
+ disabled = _ref.disabled,
13
+ _onClick = _ref.onClick;
26
14
  var prefixCls = "".concat(cls, "-button");
27
15
  return /*#__PURE__*/React.createElement("label", {
28
- className: classNames("".concat(prefixCls), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-checked"), innerChecked)),
16
+ className: classNames("".concat(prefixCls), _defineProperty(_defineProperty({}, "".concat(cls, "-disabled"), disabled), "".concat(prefixCls, "-checked"), checked)),
29
17
  onClick: function onClick() {
30
18
  if (disabled) {
31
19
  return;
32
20
  }
33
- setInnerChecked(!innerChecked);
21
+ _onClick === null || _onClick === void 0 || _onClick();
34
22
  }
35
23
  }, /*#__PURE__*/React.createElement("div", {
36
24
  className: classNames("".concat(prefixCls, "-content"))
37
- }, children), innerChecked && /*#__PURE__*/React.createElement("div", {
25
+ }, children), checked && /*#__PURE__*/React.createElement("div", {
38
26
  className: classNames("".concat(prefixCls, "-icon"))
39
27
  }, /*#__PURE__*/React.createElement(CheckOutline, {
40
28
  className: classNames("checkedIcon")
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { CheckboxGroupProps } from './types';
3
3
  export declare const CheckboxGroup: FC<CheckboxGroupProps>;
4
- //# sourceMappingURL=checkbox-group.d.ts.map
@@ -8,25 +8,41 @@ import classNames from 'classnames';
8
8
  import React, { useState } from 'react';
9
9
  import { CheckboxGroupContext } from "./group-context";
10
10
  import { cls } from "./types";
11
+ import Checkbox from "./index";
12
+ import { isEmpty } from "lodash-es";
13
+ import Space from "../Space";
11
14
  export var CheckboxGroup = function CheckboxGroup(_ref) {
12
15
  var _ref2;
13
16
  var value = _ref.value,
14
17
  defaultValue = _ref.defaultValue,
15
18
  onChange = _ref.onChange,
16
- children = _ref.children;
19
+ children = _ref.children,
20
+ shape = _ref.shape,
21
+ options = _ref.options,
22
+ direction = _ref.direction;
17
23
  var _useState = useState((_ref2 = value !== null && value !== void 0 ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : []),
18
24
  _useState2 = _slicedToArray(_useState, 2),
19
25
  innerValue = _useState2[0],
20
26
  setInnerValue = _useState2[1];
21
27
  return /*#__PURE__*/React.createElement(CheckboxGroupContext.Provider, {
22
28
  value: {
29
+ group: true,
23
30
  value: innerValue,
24
- handleCheck: function handleCheck(v) {
31
+ onValueChange: function onValueChange(v) {
25
32
  setInnerValue(v);
33
+ console.log('value', v);
26
34
  onChange === null || onChange === void 0 || onChange(v);
27
35
  }
28
36
  }
29
37
  }, /*#__PURE__*/React.createElement("div", {
30
38
  className: classNames("".concat(cls, "-group}"))
31
- }, children));
39
+ }, !isEmpty(options) && /*#__PURE__*/React.createElement(Space, {
40
+ direction: direction
41
+ }, options === null || options === void 0 ? void 0 : options.map(function (item, index) {
42
+ return /*#__PURE__*/React.createElement(Checkbox, {
43
+ key: "".concat(index),
44
+ shape: shape,
45
+ value: item.value
46
+ }, item.label);
47
+ })), isEmpty(options) && children));
32
48
  };
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import './index.scss';
3
+ import { CheckboxProps } from './types';
4
+ type CheckboxRoundProps = CheckboxProps & {
5
+ onClick: () => void;
6
+ };
7
+ export declare const CheckboxRound: FC<CheckboxRoundProps>;
8
+ export {};
@@ -0,0 +1,35 @@
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
+ import { CheckOutline } from "../../../antd-mobile-icons-react";
6
+ import classNames from 'classnames';
7
+ import React from 'react';
8
+ import "./index.scss";
9
+ import { cls } from "./types";
10
+ export var CheckboxRound = function CheckboxRound(_ref) {
11
+ var children = _ref.children,
12
+ checked = _ref.checked,
13
+ disabled = _ref.disabled,
14
+ _onClick = _ref.onClick;
15
+ var prefixCls = "".concat(cls, "-round");
16
+ return /*#__PURE__*/React.createElement("label", {
17
+ className: classNames("".concat(prefixCls), _defineProperty({}, "".concat(cls, "-disabled"), disabled)),
18
+ onClick: function onClick() {
19
+ if (disabled) {
20
+ return;
21
+ }
22
+ _onClick === null || _onClick === void 0 || _onClick();
23
+ }
24
+ }, /*#__PURE__*/React.createElement("div", {
25
+ className: classNames("".concat(prefixCls))
26
+ }, /*#__PURE__*/React.createElement("div", {
27
+ className: classNames("".concat(prefixCls, "-fake"))
28
+ }, checked ? /*#__PURE__*/React.createElement("div", {
29
+ className: classNames("".concat(prefixCls, "-fake-checked"))
30
+ }, /*#__PURE__*/React.createElement(CheckOutline, null)) : /*#__PURE__*/React.createElement("div", {
31
+ className: classNames("".concat(prefixCls, "-fake-unchecked"))
32
+ }))), children && /*#__PURE__*/React.createElement("div", {
33
+ className: classNames("".concat(prefixCls, "-content"))
34
+ }, children));
35
+ };
@@ -2,4 +2,3 @@ import { FC } from 'react';
2
2
  import './index.scss';
3
3
  import { CheckboxProps } from './types';
4
4
  export declare const Checkbox: FC<CheckboxProps>;
5
- //# sourceMappingURL=checkbox.d.ts.map