@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
@@ -0,0 +1,114 @@
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); }
7
+ import React, { memo, useMemo } from "react";
8
+ import { exceptionColor, successColor } from "./types";
9
+ import classNames from "classnames";
10
+ import { CheckOutline, CloseOutline } from "@trionesdev/antd-mobile-icons-react";
11
+ export var ProgressCircle = /*#__PURE__*/memo(function (_ref) {
12
+ var format = _ref.format,
13
+ _ref$percent = _ref.percent,
14
+ percent = _ref$percent === void 0 ? 0 : _ref$percent,
15
+ _ref$strokeWidth = _ref.strokeWidth,
16
+ strokeWidth = _ref$strokeWidth === void 0 ? 6 : _ref$strokeWidth,
17
+ _ref$size = _ref.size,
18
+ size = _ref$size === void 0 ? 'middle' : _ref$size,
19
+ _ref$showInfo = _ref.showInfo,
20
+ showInfo = _ref$showInfo === void 0 ? true : _ref$showInfo,
21
+ _ref$railColor = _ref.railColor,
22
+ railColor = _ref$railColor === void 0 ? '#E5E5E5' : _ref$railColor,
23
+ _ref$strokeColor = _ref.strokeColor,
24
+ strokeColor = _ref$strokeColor === void 0 ? '#1777FF' : _ref$strokeColor,
25
+ _ref$strokeLineCap = _ref.strokeLineCap,
26
+ strokeLineCap = _ref$strokeLineCap === void 0 ? 'round' : _ref$strokeLineCap,
27
+ status = _ref.status;
28
+ var clsPrefix = 'triones-antm-progress-circle';
29
+ var computedDiameter = useMemo(function () {
30
+ switch (size) {
31
+ case 'small':
32
+ return 50;
33
+ case 'middle':
34
+ return 100;
35
+ case 'large':
36
+ return 150;
37
+ default:
38
+ return size || 50;
39
+ }
40
+ }, [size]);
41
+ var style = {
42
+ width: computedDiameter,
43
+ height: computedDiameter
44
+ };
45
+ var computedIconSize = function computedIconSize() {
46
+ var iconSize = (computedDiameter - strokeWidth) / 2 / 3;
47
+ if (iconSize < 24) {
48
+ return 24;
49
+ }
50
+ return iconSize;
51
+ };
52
+ var computePercentSize = function computePercentSize() {
53
+ var percentSize = (computedDiameter - strokeWidth) / 2 / 3;
54
+ if (percentSize < 10) {
55
+ return 10;
56
+ }
57
+ return percentSize || 10;
58
+ };
59
+ var handleIndicator = function handleIndicator() {
60
+ var iconSize = computedIconSize();
61
+ var percentSize = computePercentSize();
62
+ var indicatorColor = '#333';
63
+ if (status === 'exception') {
64
+ indicatorColor = exceptionColor;
65
+ }
66
+ if (percent >= 100) {
67
+ indicatorColor = successColor;
68
+ }
69
+ if (format) {
70
+ return /*#__PURE__*/React.createElement("div", {
71
+ style: {
72
+ color: indicatorColor,
73
+ fontSize: percentSize
74
+ }
75
+ }, format(percent));
76
+ }
77
+ if (status === 'exception') {
78
+ return /*#__PURE__*/React.createElement(CloseOutline, {
79
+ style: {
80
+ color: indicatorColor,
81
+ fontSize: iconSize
82
+ }
83
+ });
84
+ }
85
+ if (percent >= 100) {
86
+ return /*#__PURE__*/React.createElement(CheckOutline, {
87
+ style: {
88
+ color: indicatorColor,
89
+ fontSize: iconSize
90
+ }
91
+ });
92
+ }
93
+ return /*#__PURE__*/React.createElement("div", {
94
+ style: {
95
+ color: indicatorColor,
96
+ fontSize: percentSize
97
+ }
98
+ }, percent, "%");
99
+ };
100
+ var radius = (computedDiameter - strokeWidth) / 2;
101
+ var circumference = 2 * Math.PI * radius; // 圆周长
102
+
103
+ // 计算偏移量:(1 - 比例) * 周长
104
+ var offset = circumference - percent / 100 * circumference;
105
+ var svg = "<svg xmlns='http://www.w3.org/2000/svg' width=\"".concat(computedDiameter, "\" height=\"").concat(computedDiameter, "\">\n <circle\n cx=\"").concat(computedDiameter / 2, "\"\n cy=\"").concat(computedDiameter / 2, "\"\n r=\"").concat(radius, "\"\n stroke=\"#e5e7eb\"\n stroke-width=\"").concat(strokeWidth, "\"\n fill=\"transparent\"\n />\n <circle\n cx=\"").concat(computedDiameter / 2, "\"\n cy=\"").concat(computedDiameter / 2, "\"\n r=\"").concat(radius, "\"\n stroke=\"").concat(strokeColor, "\"\n stroke-width=\"").concat(strokeWidth, "\"\n fill=\"transparent\"\n stroke-dasharray=\"").concat(circumference, "\"\n stroke-dashoffset=\"").concat(offset, "\"\n stroke-linecap=\"").concat(strokeLineCap, "\"\n transform=\"rotate(-90, ").concat(computedDiameter / 2, ", ").concat(computedDiameter / 2, ")\"\n />\n</svg>");
106
+ return /*#__PURE__*/React.createElement("div", {
107
+ className: classNames("".concat(clsPrefix)),
108
+ style: _objectSpread(_objectSpread({}, style), {}, {
109
+ backgroundImage: "url(\"data:image/svg+xml,".concat(encodeURIComponent(svg), "\")")
110
+ })
111
+ }, showInfo && computedDiameter > 20 && /*#__PURE__*/React.createElement("div", {
112
+ className: "".concat(clsPrefix, "-indicator")
113
+ }, handleIndicator()));
114
+ });
@@ -0,0 +1,15 @@
1
+ import { Size } from "./types";
2
+ import { FC } from "react";
3
+ import { PercentPositionAlign, ProgressStatus } from "./types";
4
+ type ProgressLineProps = {
5
+ format?: (percent: number) => string;
6
+ percent?: number;
7
+ size?: Size;
8
+ showInfo?: boolean;
9
+ railColor?: string;
10
+ strokeColor?: string;
11
+ status?: ProgressStatus;
12
+ percentPositionAlign?: PercentPositionAlign;
13
+ };
14
+ export declare const ProgressLine: FC<ProgressLineProps>;
15
+ export {};
@@ -0,0 +1,87 @@
1
+ import React from "react";
2
+ import classNames from "classnames";
3
+ import { exceptionColor, successColor } from "./types";
4
+ import { CloseCircleFill, CheckCircleFill } from "@trionesdev/antd-mobile-icons-react";
5
+ export var ProgressLine = function ProgressLine(_ref) {
6
+ var format = _ref.format,
7
+ _ref$percent = _ref.percent,
8
+ percent = _ref$percent === void 0 ? 0 : _ref$percent,
9
+ _ref$size = _ref.size,
10
+ size = _ref$size === void 0 ? 'middle' : _ref$size,
11
+ _ref$showInfo = _ref.showInfo,
12
+ showInfo = _ref$showInfo === void 0 ? true : _ref$showInfo,
13
+ _ref$railColor = _ref.railColor,
14
+ railColor = _ref$railColor === void 0 ? '#E5E5E5' : _ref$railColor,
15
+ _ref$strokeColor = _ref.strokeColor,
16
+ strokeColor = _ref$strokeColor === void 0 ? '#1777FF' : _ref$strokeColor,
17
+ status = _ref.status,
18
+ _ref$percentPositionA = _ref.percentPositionAlign,
19
+ percentPositionAlign = _ref$percentPositionA === void 0 ? 'end' : _ref$percentPositionA;
20
+ var clsPrefix = 'triones-antm-progress-line';
21
+ var handleComputeLineHeight = function handleComputeLineHeight() {
22
+ switch (size) {
23
+ case 'small':
24
+ return 6;
25
+ case 'middle':
26
+ return 8;
27
+ case 'large':
28
+ return 12;
29
+ default:
30
+ return size || 8;
31
+ }
32
+ };
33
+ var handleComputeInfoHeight = function handleComputeInfoHeight() {
34
+ var lineHeight = handleComputeLineHeight();
35
+ if (lineHeight <= 8) {
36
+ return 12;
37
+ } else if (lineHeight <= 12) {
38
+ return 14;
39
+ } else {
40
+ return 16;
41
+ }
42
+ };
43
+ var handleIndicator = function handleIndicator() {
44
+ if (format) {
45
+ return /*#__PURE__*/React.createElement("div", null, format(percent));
46
+ }
47
+ if (status === 'exception') {
48
+ return /*#__PURE__*/React.createElement(CloseCircleFill, {
49
+ style: {
50
+ color: exceptionColor,
51
+ fontSize: handleComputeInfoHeight()
52
+ }
53
+ });
54
+ }
55
+ if (percent >= 100) {
56
+ return /*#__PURE__*/React.createElement(CheckCircleFill, {
57
+ style: {
58
+ color: successColor,
59
+ fontSize: handleComputeInfoHeight()
60
+ }
61
+ });
62
+ }
63
+ return /*#__PURE__*/React.createElement("div", {
64
+ style: {
65
+ fontSize: handleComputeInfoHeight()
66
+ }
67
+ }, percent, "%");
68
+ };
69
+ var info = /*#__PURE__*/React.createElement("div", {
70
+ className: classNames("".concat(clsPrefix, "-indicator"))
71
+ }, handleIndicator());
72
+ return /*#__PURE__*/React.createElement("div", {
73
+ className: classNames(clsPrefix)
74
+ }, showInfo && percentPositionAlign === 'start' && info, /*#__PURE__*/React.createElement("div", {
75
+ className: classNames("".concat(clsPrefix, "-rail")),
76
+ style: {
77
+ backgroundColor: railColor
78
+ }
79
+ }, /*#__PURE__*/React.createElement("div", {
80
+ className: classNames("".concat(clsPrefix, "-track")),
81
+ style: {
82
+ width: "".concat(percent, "%"),
83
+ backgroundColor: strokeColor,
84
+ height: handleComputeLineHeight()
85
+ }
86
+ })), showInfo && percentPositionAlign === 'end' && info);
87
+ };
@@ -0,0 +1,3 @@
1
+ import { Progress, ProgressProps } from "./Progress";
2
+ export type { ProgressProps };
3
+ export default Progress;
@@ -0,0 +1,2 @@
1
+ import { Progress } from "./Progress";
2
+ export default Progress;
@@ -0,0 +1,33 @@
1
+ $progressLineCls: 'triones-antm-progress-line';
2
+ $progressCircleCls: 'triones-antm-progress-circle';
3
+
4
+ .#{$progressLineCls}{
5
+ width: 100%;
6
+ display: flex;
7
+ align-items: center;
8
+ gap: 4Px;
9
+ &-rail{
10
+ flex: 1 auto;
11
+ border-radius: 90Px;
12
+ }
13
+ &-track{
14
+ border-radius: 90Px;
15
+ }
16
+ &-indicator{}
17
+ }
18
+
19
+ .#{$progressCircleCls} {
20
+ position: relative;
21
+ &-indicator {
22
+ position: absolute;
23
+ inset-block-start: 50%;
24
+ inset-inline-start: 0;
25
+ width: 100%;
26
+ margin: 0;
27
+ padding: 0;
28
+ line-height: 1;
29
+ white-space: normal;
30
+ text-align: center;
31
+ transform: translatey(-50%);
32
+ }
33
+ }
@@ -0,0 +1,6 @@
1
+ import { SizeType } from "..";
2
+ export type Size = SizeType | number;
3
+ export type ProgressStatus = 'normal' | 'active' | 'success' | 'exception';
4
+ export type PercentPositionAlign = 'start' | 'end';
5
+ export declare const successColor = "#53C31B";
6
+ export declare const exceptionColor = "#FF4D4F";
@@ -0,0 +1,2 @@
1
+ export var successColor = "#53C31B";
2
+ export var exceptionColor = "#FF4D4F";
@@ -8,4 +8,3 @@ type RadioGroupContextType = {
8
8
  };
9
9
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextType>;
10
10
  export {};
11
- //# sourceMappingURL=GroupContext.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { FC } from "react";
2
2
  import { RadioProps } from "./types";
3
3
  export declare const RadioButton: FC<RadioProps>;
4
- //# sourceMappingURL=RadioButton.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { RadioGroupProps } from './types';
3
3
  export declare const RadioGroup: FC<RadioGroupProps>;
4
- //# sourceMappingURL=RadioGroup.d.ts.map
@@ -20,7 +20,7 @@ export var RadioGroup = function RadioGroup(_ref) {
20
20
  labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
21
21
  _ref$direction = _ref.direction,
22
22
  direction = _ref$direction === void 0 ? 'horizontal' : _ref$direction,
23
- items = _ref.items;
23
+ options = _ref.options;
24
24
  var _useState = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : value),
25
25
  _useState2 = _slicedToArray(_useState, 2),
26
26
  internalValue = _useState2[0],
@@ -44,14 +44,14 @@ export var RadioGroup = function RadioGroup(_ref) {
44
44
  }
45
45
  }, shape === 'button' ? /*#__PURE__*/React.createElement("div", {
46
46
  className: classNames("".concat(classPrefix, "-button-group"))
47
- }, children || (items === null || items === void 0 ? void 0 : items.map(function (item) {
47
+ }, children || (options === null || options === void 0 ? void 0 : options.map(function (item) {
48
48
  return /*#__PURE__*/React.createElement(RadioButton, {
49
49
  key: item.value,
50
50
  value: item.value
51
51
  }, item.label);
52
52
  }))) : /*#__PURE__*/React.createElement("div", {
53
53
  className: classNames("".concat(classPrefix, "-group"), "".concat(classPrefix, "-group-").concat(direction))
54
- }, children || (items === null || items === void 0 ? void 0 : items.map(function (item) {
54
+ }, children || (options === null || options === void 0 ? void 0 : options.map(function (item) {
55
55
  return /*#__PURE__*/React.createElement(Radio, {
56
56
  key: item.value,
57
57
  value: item.value
@@ -9,4 +9,3 @@ type CompoundedComponent = typeof InternalRadio & {
9
9
  };
10
10
  declare const Radio: CompoundedComponent;
11
11
  export default Radio;
12
- //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,3 @@ import { FC } from 'react';
2
2
  import { RadioProps } from './types';
3
3
  export type RadioValue = string | number;
4
4
  export declare const Radio: FC<RadioProps>;
5
- //# sourceMappingURL=radio.d.ts.map
@@ -1,138 +1,141 @@
1
- @use "../style/variable" as *;
2
-
3
- $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
4
-
5
- $class-prefix-radio: 'triones-antm-radio';
6
-
7
- .#{$class-prefix-radio}-wrapper {
8
- cursor: pointer;
9
- display: flex;
10
- align-items: center;
11
- gap: 8Px;
12
-
13
- .#{$class-prefix-radio} {
14
- &-fake {
15
- width: 22PX;
16
- height: 22PX;
17
-
18
- .triones-antm-icon {
19
- //position: absolute;
20
- }
21
-
22
- &-checked {
23
- height: 100%;
24
- width: 100%;
25
- display: inline-flex;
26
- justify-content: center;
27
- align-items: center;
28
- background-color: $trionesColorPrimary;
29
- color: white;
30
- border-radius: 50vh;
31
- box-sizing: border-box;
32
- overflow: hidden;
33
-
34
- }
35
-
36
- &-unchecked {
37
- height: 100%;
38
- width: 100%;
39
- display: inline-flex;
40
- justify-content: center;
41
- align-items: center;
42
- border-radius: 50vh;
43
- border: 1PX solid $trionesBorderColor;
44
- box-sizing: border-box;
45
- }
46
-
47
- }
48
-
49
-
50
-
51
- &-label {
52
- flex: 1 auto;
53
- }
54
- }
55
-
56
- &.#{$class-prefix-radio} {
57
- &-disabled {
58
- color: $checkboxDisabledColor;
59
- pointer-events: none;
60
-
61
- .#{$class-prefix-radio}-fake-checked {
62
- background-color: $checkboxDisabledColor;
63
- }
64
- }
65
- &-block {
66
- width: 100%;
67
- }
68
- }
69
-
70
- }
71
-
72
-
73
- .#{$class-prefix-radio}-group {
74
- display: flex;
75
- gap: 8Px;
76
- &-horizontal{
77
- flex-direction: row;
78
- }
79
- &-vertical{
80
- flex-direction: column;
81
- }
82
- }
83
-
84
- .#{$class-prefix-radio}-button-group {
85
- display: flex;
86
- }
87
-
88
- .#{$class-prefix-radio}-button-wrapper {
89
- display: inline-flex;
90
- position: relative;
91
- border-top: 1PX solid $trionesBorderColor;
92
- border-bottom: 1PX solid $trionesBorderColor;
93
- border-right: 1PX solid $trionesBorderColor;
94
-
95
- &:first-child {
96
- border-left: 1PX solid $trionesBorderColor;
97
- border-top-left-radius: $trionesBorderRadius;
98
- border-bottom-left-radius: $trionesBorderRadius;
99
- }
100
-
101
- &:last-child {
102
- border-right: 1PX solid $trionesBorderColor;
103
- border-top-right-radius: $trionesBorderRadius;
104
- border-bottom-right-radius: $trionesBorderRadius;
105
- }
106
-
107
- &-checked {
108
- border-top: 1PX solid $trionesColorPrimary;
109
- border-bottom: 1PX solid $trionesColorPrimary;
110
- color: $trionesColorPrimary;
111
-
112
- &:first-child {
113
- border: 1PX solid $trionesColorPrimary;
114
- }
115
-
116
- &:not(:first-child) {
117
- &::before {
118
- content: " ";
119
- width: 1PX;
120
- background-color: $trionesColorPrimary;
121
- position: absolute;
122
- inset-block-start: -1Px;
123
- inset-inline-start: -1Px;
124
- height: 100%;
125
- padding-block: 1Px;
126
- }
127
-
128
- border-right: 1PX solid $trionesColorPrimary;
129
- }
130
- }
131
-
132
- .#{$class-prefix-radio}-button {
133
- cursor: pointer;
134
- display: inline-flex;
135
- padding: 8Px 12Px;
136
-
137
- }
138
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
4
+
5
+ $class-prefix-radio: 'triones-antm-radio';
6
+
7
+ .#{$class-prefix-radio}-wrapper {
8
+ cursor: pointer;
9
+ display: flex;
10
+ align-items: center;
11
+ gap: 8Px;
12
+
13
+ .#{$class-prefix-radio} {
14
+ &-fake {
15
+ width: 20PX;
16
+ height: 20PX;
17
+
18
+ .triones-antm-icon {
19
+ //position: absolute;
20
+ font-size: variable.$trionesFontSize;
21
+ }
22
+
23
+ &-checked {
24
+ height: 100%;
25
+ width: 100%;
26
+ display: inline-flex;
27
+ justify-content: center;
28
+ align-items: center;
29
+ background-color: variable.$trionesColorPrimary;
30
+ color: white;
31
+ border-radius: 50vh;
32
+ box-sizing: border-box;
33
+ overflow: hidden;
34
+ .triones-antm-icon{
35
+ font-size: 14Px;
36
+ }
37
+ }
38
+
39
+ &-unchecked {
40
+ height: 100%;
41
+ width: 100%;
42
+ display: inline-flex;
43
+ justify-content: center;
44
+ align-items: center;
45
+ border-radius: 50vh;
46
+ border: 1PX solid variable.$trionesBorderColor;
47
+ box-sizing: border-box;
48
+ }
49
+
50
+ }
51
+
52
+
53
+
54
+ &-label {
55
+ flex: 1 auto;
56
+ }
57
+ }
58
+
59
+ &.#{$class-prefix-radio} {
60
+ &-disabled {
61
+ color: $checkboxDisabledColor;
62
+ pointer-events: none;
63
+
64
+ .#{$class-prefix-radio}-fake-checked {
65
+ background-color: $checkboxDisabledColor;
66
+ }
67
+ }
68
+ &-block {
69
+ width: 100%;
70
+ }
71
+ }
72
+
73
+ }
74
+
75
+
76
+ .#{$class-prefix-radio}-group {
77
+ display: flex;
78
+ gap: 8Px;
79
+ &-horizontal{
80
+ flex-direction: row;
81
+ }
82
+ &-vertical{
83
+ flex-direction: column;
84
+ }
85
+ }
86
+
87
+ .#{$class-prefix-radio}-button-group {
88
+ display: flex;
89
+ }
90
+
91
+ .#{$class-prefix-radio}-button-wrapper {
92
+ display: inline-flex;
93
+ position: relative;
94
+ border-top: 1PX solid variable.$trionesBorderColor;
95
+ border-bottom: 1PX solid variable.$trionesBorderColor;
96
+ border-right: 1PX solid variable.$trionesBorderColor;
97
+
98
+ &:first-child {
99
+ border-left: 1PX solid variable.$trionesBorderColor;
100
+ border-top-left-radius: variable.$trionesBorderRadius;
101
+ border-bottom-left-radius: variable.$trionesBorderRadius;
102
+ }
103
+
104
+ &:last-child {
105
+ border-right: 1PX solid variable.$trionesBorderColor;
106
+ border-top-right-radius: variable.$trionesBorderRadius;
107
+ border-bottom-right-radius: variable.$trionesBorderRadius;
108
+ }
109
+
110
+ &-checked {
111
+ border-top: 1PX solid variable.$trionesColorPrimary;
112
+ border-bottom: 1PX solid variable.$trionesColorPrimary;
113
+ color: variable.$trionesColorPrimary;
114
+
115
+ &:first-child {
116
+ border: 1PX solid variable.$trionesColorPrimary;
117
+ }
118
+
119
+ &:not(:first-child) {
120
+ &::before {
121
+ content: " ";
122
+ width: 1PX;
123
+ background-color: variable.$trionesColorPrimary;
124
+ position: absolute;
125
+ inset-block-start: -1Px;
126
+ inset-inline-start: -1Px;
127
+ height: 100%;
128
+ padding-block: 1Px;
129
+ }
130
+
131
+ border-right: 1PX solid variable.$trionesColorPrimary;
132
+ }
133
+ }
134
+
135
+ .#{$class-prefix-radio}-button {
136
+ cursor: pointer;
137
+ display: inline-flex;
138
+ padding: 8Px 12Px;
139
+
140
+ }
141
+ }
@@ -41,6 +41,11 @@ export type RadioProps = {
41
41
  */
42
42
  onClick?: (event: React.MouseEvent<HTMLLabelElement, MouseEvent>) => void;
43
43
  };
44
+ export type RadioOptionProps = {
45
+ label?: React.ReactNode;
46
+ value?: any;
47
+ [key: string]: any;
48
+ };
44
49
  export interface RadioGroupProps {
45
50
  children?: ReactNode;
46
51
  className?: string;
@@ -51,9 +56,5 @@ export interface RadioGroupProps {
51
56
  shape?: 'button' | 'round';
52
57
  labelPosition?: 'left' | 'right';
53
58
  direction?: 'vertical' | 'horizontal';
54
- items?: {
55
- label: React.ReactNode;
56
- value: any;
57
- }[];
59
+ options?: RadioOptionProps[];
58
60
  }
59
- //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rate, RateProps } from "./rate";
2
2
  export type { RateProps };
3
3
  export default Rate;
4
- //# sourceMappingURL=index.d.ts.map
@@ -48,4 +48,3 @@ export type RateProps = {
48
48
  style?: React.CSSProperties;
49
49
  } & NativeProps<'--active-color' | '--inactive-color'>;
50
50
  export declare const Rate: FC<RateProps>;
51
- //# sourceMappingURL=rate.d.ts.map