@aloudata/aloudata-design 0.4.0-beta.9 → 0.4.1

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 (1115) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -220
  3. package/dist/Alert/index.d.ts +4 -0
  4. package/dist/Alert/index.js +2 -0
  5. package/dist/Alert/style/index.js +2 -0
  6. package/dist/Avatar/component/Avatar/index.js +44 -0
  7. package/dist/Avatar/index.js +4 -0
  8. package/dist/Avatar/style/index.js +2 -0
  9. package/dist/Breadcrumb/index.js +47 -0
  10. package/dist/Breadcrumb/style/index.js +2 -0
  11. package/dist/Button/index.d.ts +58 -0
  12. package/dist/Button/index.js +116 -0
  13. package/dist/Button/style/index.js +2 -0
  14. package/dist/Button/style/index.less +356 -0
  15. package/dist/Card/index.js +3 -0
  16. package/dist/Card/style/index.js +2 -0
  17. package/dist/Checkbox/component/CheckboxGroup/index.js +28 -0
  18. package/dist/Checkbox/index.js +24 -0
  19. package/dist/Checkbox/style/index.js +2 -0
  20. package/dist/Col/index.js +4 -0
  21. package/dist/Col/style/index.js +2 -0
  22. package/dist/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  23. package/dist/ConfigProvider/defaultRenderEmpty.js +37 -0
  24. package/dist/ConfigProvider/index.js +3 -0
  25. package/dist/ConfigProvider/sizeContext.d.ts +9 -0
  26. package/dist/ConfigProvider/style/index.js +2 -0
  27. package/dist/DatePicker/index.js +2 -0
  28. package/dist/DatePicker/style/index.js +2 -0
  29. package/dist/Divider/index.js +13 -0
  30. package/dist/Divider/style/index.js +2 -0
  31. package/dist/DoubleCircleIcon/index.d.ts +9 -0
  32. package/dist/DoubleCircleIcon/index.js +33 -0
  33. package/dist/DoubleCircleIcon/style/index.less +23 -0
  34. package/dist/Drawer/index.js +4 -0
  35. package/dist/Drawer/style/index.js +2 -0
  36. package/dist/Dropdown/Button.js +32 -0
  37. package/dist/Dropdown/index.js +24 -0
  38. package/dist/Dropdown/style/index.js +2 -0
  39. package/dist/Empty/image/Data.d.ts +3 -0
  40. package/dist/Empty/image/Data.js +222 -0
  41. package/dist/Empty/image/Search.d.ts +3 -0
  42. package/dist/Empty/image/Search.js +212 -0
  43. package/dist/Empty/image/SearchSmall.d.ts +3 -0
  44. package/dist/Empty/image/SearchSmall.js +20 -0
  45. package/dist/Empty/image/User.d.ts +3 -0
  46. package/dist/Empty/image/User.js +199 -0
  47. package/dist/Empty/image/WorkBook.d.ts +3 -0
  48. package/dist/Empty/image/WorkBook.js +205 -0
  49. package/dist/Empty/index.d.ts +23 -0
  50. package/dist/Empty/index.js +81 -0
  51. package/dist/Empty/style/index.js +1 -0
  52. package/dist/Empty/style/index.less +57 -0
  53. package/dist/Form/index.js +8 -0
  54. package/dist/Form/style/index.js +2 -0
  55. package/dist/Icon/components/Icon.js +29 -0
  56. package/dist/Icon/icons.js +1443 -0
  57. package/dist/Icon/index.js +2 -0
  58. package/dist/Icon/style/index.less +0 -0
  59. package/dist/Input/components/Group/index.js +24 -0
  60. package/dist/Input/components/Input/index.js +32 -0
  61. package/dist/Input/components/Password/index.js +40 -0
  62. package/dist/Input/components/TextArea/index.js +27 -0
  63. package/dist/Input/index.js +9 -0
  64. package/dist/Input/style/index.js +2 -0
  65. package/dist/InputNumber/index.js +33 -0
  66. package/dist/InputNumber/style/index.js +2 -0
  67. package/dist/InputNumber/type.d.ts +161 -0
  68. package/dist/Layout/index.js +2 -0
  69. package/dist/Layout/style/index.js +2 -0
  70. package/dist/Menu/Divider.js +6 -0
  71. package/dist/Menu/MenuItem.js +6 -0
  72. package/dist/Menu/SubMenu.js +23 -0
  73. package/dist/Menu/index.d.ts +23 -0
  74. package/dist/Menu/index.js +34 -0
  75. package/dist/Menu/style/dropdown.less +51 -0
  76. package/dist/Menu/style/index.js +2 -0
  77. package/dist/Menu/style/index.less +43 -0
  78. package/dist/Modal/index.d.ts +37 -0
  79. package/dist/Modal/index.js +212 -0
  80. package/dist/Modal/locale.js +20 -0
  81. package/dist/Modal/style/index.js +2 -0
  82. package/dist/Modal/style/index.less +88 -0
  83. package/dist/Navigator/components/Menu/index.js +53 -0
  84. package/dist/Navigator/index.js +35 -0
  85. package/dist/Navigator/style/index.js +2 -0
  86. package/dist/Popconfirm/index.d.ts +10 -0
  87. package/dist/Popconfirm/index.js +58 -0
  88. package/dist/Popconfirm/style/index.js +2 -0
  89. package/dist/Popconfirm/style/index.less +28 -0
  90. package/dist/Popover/index.js +23 -0
  91. package/dist/Popover/style/index.js +2 -0
  92. package/dist/Progress/index.js +3 -0
  93. package/dist/Progress/style/index.js +2 -0
  94. package/dist/Radio/components/Group/index.d.ts +6 -0
  95. package/dist/Radio/components/Radio/index.js +95 -0
  96. package/dist/Radio/index.js +5 -0
  97. package/dist/Radio/style/index.js +2 -0
  98. package/dist/Row/index.js +2 -0
  99. package/dist/Row/style/index.js +2 -0
  100. package/dist/Select/components/MultipleOption.d.ts +10 -0
  101. package/dist/Select/components/MultipleOption.js +23 -0
  102. package/dist/Select/components/SingleOption.d.ts +10 -0
  103. package/dist/Select/components/SingleOption.js +27 -0
  104. package/dist/Select/index.d.ts +9 -0
  105. package/dist/Select/index.js +223 -0
  106. package/dist/Select/style/index.js +2 -0
  107. package/dist/Select/style/index.less +109 -0
  108. package/dist/Select/style/multiple.less +43 -0
  109. package/dist/Select/style/single.less +27 -0
  110. package/dist/Select/style/size.less +159 -0
  111. package/dist/Select/style/status.less +33 -0
  112. package/dist/Select/style/variables.less +35 -0
  113. package/dist/Skeleton/index.js +3 -0
  114. package/dist/Skeleton/style/index.js +2 -0
  115. package/dist/Space/index.js +2 -0
  116. package/dist/Space/style/index.js +2 -0
  117. package/dist/Spin/CustomIcon/index.d.ts +8 -0
  118. package/dist/Spin/CustomIcon/index.js +26 -0
  119. package/dist/Spin/CustomIcon/index.less +125 -0
  120. package/dist/Spin/Icon/index.d.ts +4 -0
  121. package/dist/Spin/Icon/index.js +7 -0
  122. package/dist/Spin/Icon/index.less +41 -0
  123. package/dist/Spin/index.d.ts +7 -0
  124. package/dist/Spin/index.js +32 -0
  125. package/dist/Spin/style/index.js +2 -0
  126. package/dist/Spin/style/index.less +1 -0
  127. package/dist/Steps/components/CustomDot/index.d.ts +2 -0
  128. package/dist/Steps/components/CustomDot/index.js +8 -0
  129. package/dist/Steps/components/ProcessIcon/index.d.ts +6 -0
  130. package/dist/Steps/components/ProcessIcon/index.js +22 -0
  131. package/dist/Steps/components/Step/index.js +47 -0
  132. package/dist/Steps/index.d.ts +46 -0
  133. package/dist/Steps/index.js +34 -0
  134. package/dist/Steps/matchMedia.mock.d.ts +0 -0
  135. package/dist/Steps/matchMedia.mock.js +17 -0
  136. package/dist/Steps/style/index.js +2 -0
  137. package/dist/Steps/style/index.less +337 -0
  138. package/dist/Switch/index.js +70 -0
  139. package/dist/Switch/style/index.js +2 -0
  140. package/dist/Table/Table.js +401 -0
  141. package/dist/Table/components/Empty/index.js +16 -0
  142. package/dist/Table/components/Loading/index.js +14 -0
  143. package/dist/Table/components/TableBodyRowList/index.js +95 -0
  144. package/dist/Table/components/TableHead/index.js +262 -0
  145. package/dist/Table/constant.d.ts +0 -0
  146. package/dist/Table/constant.js +0 -0
  147. package/dist/Table/hooks/useFrame.js +90 -0
  148. package/dist/Table/index.js +2 -0
  149. package/dist/Table/style/index.js +2 -0
  150. package/dist/Table/style/index.less +243 -0
  151. package/dist/Table/style/variable.less +5 -0
  152. package/dist/Table/utils.d.ts +15 -0
  153. package/dist/Table/utils.js +139 -0
  154. package/dist/Tabs/TabPane.js +6 -0
  155. package/dist/Tabs/index.js +48 -0
  156. package/dist/Tabs/style/index.js +2 -0
  157. package/dist/Tabs/style/index.less +168 -0
  158. package/dist/Tooltip/style/index.js +2 -0
  159. package/dist/Tooltip/style/index.less +17 -0
  160. package/dist/Tree/demo/basic/index.d.ts +3 -0
  161. package/dist/Tree/demo/basic/index.js +34 -0
  162. package/dist/Tree/index.d.ts +13 -0
  163. package/dist/Tree/index.js +19 -0
  164. package/dist/Tree/style/index.js +2 -0
  165. package/dist/Tree/style/index.less +45 -0
  166. package/dist/Typography/index.js +2 -0
  167. package/dist/Typography/style/index.js +2 -0
  168. package/dist/Upload/index.d.ts +4 -0
  169. package/dist/Upload/index.js +2 -0
  170. package/dist/Upload/style/index.js +2 -0
  171. package/dist/_utils/hooks/useControlledState.d.ts +2 -0
  172. package/dist/_utils/hooks/usePrefixCls.d.ts +2 -0
  173. package/dist/_utils/hooks/usePrefixCls.js +13 -0
  174. package/dist/index.d.ts +78 -0
  175. package/dist/index.js +43 -0
  176. package/dist/locale/default.js +2 -0
  177. package/dist/locale-provider/context.d.ts +7 -0
  178. package/dist/locale-provider/default.js +2 -0
  179. package/dist/locale-provider/en_US.js +2 -0
  180. package/dist/locale-provider/index.d.ts +65 -0
  181. package/dist/locale-provider/index.js +105 -0
  182. package/dist/locale-provider/style/index.js +1 -0
  183. package/dist/locale-provider/zh_CN.js +2 -0
  184. package/dist/message/index.d.ts +14 -0
  185. package/dist/message/index.js +137 -0
  186. package/dist/message/style/color.less +55 -0
  187. package/dist/message/style/index.js +2 -0
  188. package/dist/message/style/index.less +32 -0
  189. package/dist/notification/index.d.ts +3 -0
  190. package/dist/notification/index.js +3 -0
  191. package/dist/notification/style/index.js +2 -0
  192. package/dist/style/index.js +1 -0
  193. package/dist/style/index.less +4 -0
  194. package/dist/style/themes/default/themeColor.module.less +439 -0
  195. package/package.json +74 -99
  196. package/es/Alert/index.d.ts +0 -4
  197. package/es/Alert/index.js +0 -3
  198. package/es/Alert/style/index.js +0 -2
  199. package/es/Avatar/component/Avatar/index.js +0 -42
  200. package/es/Avatar/index.js +0 -4
  201. package/es/Avatar/style/index.js +0 -2
  202. package/es/Breadcrumb/index.js +0 -46
  203. package/es/Breadcrumb/style/index.js +0 -2
  204. package/es/Button/index.d.ts +0 -49
  205. package/es/Button/index.js +0 -123
  206. package/es/Button/style/index.js +0 -2
  207. package/es/Button/style/index.less +0 -355
  208. package/es/Card/index.js +0 -3
  209. package/es/Card/style/index.js +0 -2
  210. package/es/Checkbox/component/CheckboxGroup/index.js +0 -27
  211. package/es/Checkbox/index.js +0 -23
  212. package/es/Checkbox/style/index.js +0 -2
  213. package/es/Col/index.js +0 -3
  214. package/es/Col/style/index.js +0 -2
  215. package/es/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
  216. package/es/ConfigProvider/defaultRenderEmpty.js +0 -37
  217. package/es/ConfigProvider/index.js +0 -4
  218. package/es/ConfigProvider/sizeContext.d.ts +0 -9
  219. package/es/ConfigProvider/style/index.js +0 -2
  220. package/es/DatePicker/index.js +0 -3
  221. package/es/DatePicker/style/index.js +0 -2
  222. package/es/Divider/index.js +0 -12
  223. package/es/Divider/style/index.js +0 -2
  224. package/es/Drawer/index.js +0 -3
  225. package/es/Drawer/style/index.js +0 -2
  226. package/es/Dropdown/Button.js +0 -34
  227. package/es/Dropdown/index.js +0 -26
  228. package/es/Dropdown/style/index.d.ts +0 -3
  229. package/es/Dropdown/style/index.js +0 -3
  230. package/es/Empty/image/Authority.d.ts +0 -3
  231. package/es/Empty/image/Authority.js +0 -360
  232. package/es/Empty/image/Dataspace.d.ts +0 -3
  233. package/es/Empty/image/Dataspace.js +0 -271
  234. package/es/Empty/image/Search.d.ts +0 -3
  235. package/es/Empty/image/Search.js +0 -156
  236. package/es/Empty/image/Simple.d.ts +0 -3
  237. package/es/Empty/image/Simple.js +0 -20
  238. package/es/Empty/image/Worksheet.d.ts +0 -3
  239. package/es/Empty/image/Worksheet.js +0 -270
  240. package/es/Empty/image/empty.d.ts +0 -3
  241. package/es/Empty/image/empty.js +0 -139
  242. package/es/Empty/index.d.ts +0 -23
  243. package/es/Empty/index.js +0 -86
  244. package/es/Empty/style/index.js +0 -1
  245. package/es/Empty/style/index.less +0 -69
  246. package/es/Form/index.js +0 -3
  247. package/es/Form/style/index.js +0 -2
  248. package/es/Icon/components/Icon.js +0 -27
  249. package/es/Icon/icons/AddLine.d.ts +0 -13
  250. package/es/Icon/icons/AddLine.js +0 -66
  251. package/es/Icon/icons/AlertFill.d.ts +0 -13
  252. package/es/Icon/icons/AlertFill.js +0 -73
  253. package/es/Icon/icons/ArrowsDownLine.d.ts +0 -13
  254. package/es/Icon/icons/ArrowsDownLine.js +0 -66
  255. package/es/Icon/icons/CancelFill.d.ts +0 -13
  256. package/es/Icon/icons/CancelFill.js +0 -73
  257. package/es/Icon/icons/CheckFill.d.ts +0 -13
  258. package/es/Icon/icons/CheckFill.js +0 -73
  259. package/es/Icon/icons/CheckLine.d.ts +0 -13
  260. package/es/Icon/icons/CheckLine.js +0 -73
  261. package/es/Icon/icons/CloseLine.d.ts +0 -13
  262. package/es/Icon/icons/CloseLine.js +0 -66
  263. package/es/Icon/icons/DatabaseLine.d.ts +0 -13
  264. package/es/Icon/icons/DatabaseLine.js +0 -66
  265. package/es/Icon/icons/Deleteline.d.ts +0 -13
  266. package/es/Icon/icons/Deleteline.js +0 -66
  267. package/es/Icon/icons/DownloadLine.d.ts +0 -13
  268. package/es/Icon/icons/DownloadLine.js +0 -73
  269. package/es/Icon/icons/ErrorFill.d.ts +0 -13
  270. package/es/Icon/icons/ErrorFill.js +0 -73
  271. package/es/Icon/icons/EyeOffLine.d.ts +0 -13
  272. package/es/Icon/icons/EyeOffLine.js +0 -73
  273. package/es/Icon/icons/EyeOnLine.d.ts +0 -13
  274. package/es/Icon/icons/EyeOnLine.js +0 -66
  275. package/es/Icon/icons/FileLine.d.ts +0 -13
  276. package/es/Icon/icons/FileLine.js +0 -73
  277. package/es/Icon/icons/HomeFill.d.ts +0 -13
  278. package/es/Icon/icons/HomeFill.js +0 -73
  279. package/es/Icon/icons/IconBase.withSpan.tpl +0 -58
  280. package/es/Icon/icons/LightningLine.d.ts +0 -13
  281. package/es/Icon/icons/LightningLine.js +0 -66
  282. package/es/Icon/icons/Loading.d.ts +0 -13
  283. package/es/Icon/icons/Loading.js +0 -66
  284. package/es/Icon/icons/More.d.ts +0 -13
  285. package/es/Icon/icons/More.js +0 -66
  286. package/es/Icon/icons/NewWindowsLine.d.ts +0 -13
  287. package/es/Icon/icons/NewWindowsLine.js +0 -74
  288. package/es/Icon/icons/SearchLine.d.ts +0 -13
  289. package/es/Icon/icons/SearchLine.js +0 -73
  290. package/es/Icon/icons/SortAscendingLine.d.ts +0 -13
  291. package/es/Icon/icons/SortAscendingLine.js +0 -66
  292. package/es/Icon/icons/SortDescendingLine.d.ts +0 -13
  293. package/es/Icon/icons/SortDescendingLine.js +0 -66
  294. package/es/Icon/icons/TextLine.d.ts +0 -13
  295. package/es/Icon/icons/TextLine.js +0 -73
  296. package/es/Icon/icons/UserLine.d.ts +0 -13
  297. package/es/Icon/icons/UserLine.js +0 -73
  298. package/es/Icon/icons/style.css +0 -9
  299. package/es/Icon/icons/style.css.d.ts +0 -10
  300. package/es/Icon/icons.js +0 -1590
  301. package/es/Icon/index.js +0 -2
  302. package/es/Icon/style/index.d.ts +0 -1
  303. package/es/Icon/style/index.js +0 -1
  304. package/es/Input/components/Group/index.js +0 -22
  305. package/es/Input/components/Input/index.js +0 -30
  306. package/es/Input/components/Password/index.js +0 -41
  307. package/es/Input/components/TextArea/index.js +0 -25
  308. package/es/Input/index.js +0 -9
  309. package/es/Input/style/index.d.ts +0 -3
  310. package/es/Input/style/index.js +0 -3
  311. package/es/InputNumber/index.js +0 -32
  312. package/es/InputNumber/style/index.js +0 -2
  313. package/es/InputNumber/type.d.ts +0 -161
  314. package/es/Layout/index.js +0 -3
  315. package/es/Layout/style/index.js +0 -2
  316. package/es/Menu/Divider.js +0 -7
  317. package/es/Menu/MenuItem.js +0 -7
  318. package/es/Menu/SubMenu.js +0 -22
  319. package/es/Menu/index.d.ts +0 -23
  320. package/es/Menu/index.js +0 -24
  321. package/es/Menu/style/index.d.ts +0 -3
  322. package/es/Menu/style/index.js +0 -3
  323. package/es/Menu/style/index.less +0 -41
  324. package/es/Modal/index.d.ts +0 -21
  325. package/es/Modal/index.js +0 -99
  326. package/es/Modal/locale.js +0 -20
  327. package/es/Modal/style/index.js +0 -2
  328. package/es/Modal/style/index.less +0 -209
  329. package/es/Navigator/components/Menu/index.js +0 -51
  330. package/es/Navigator/index.js +0 -35
  331. package/es/Navigator/style/index.js +0 -2
  332. package/es/PageHeader/index.d.ts +0 -3
  333. package/es/PageHeader/index.js +0 -3
  334. package/es/PageHeader/style/index.js +0 -2
  335. package/es/Popconfirm/index.d.ts +0 -3
  336. package/es/Popconfirm/index.js +0 -2
  337. package/es/Popconfirm/style/index.js +0 -2
  338. package/es/Popover/index.js +0 -22
  339. package/es/Popover/style/index.js +0 -2
  340. package/es/Progress/index.js +0 -2
  341. package/es/Progress/style/index.js +0 -2
  342. package/es/Radio/components/Group/index.d.ts +0 -6
  343. package/es/Radio/components/Radio/index.js +0 -95
  344. package/es/Radio/index.js +0 -5
  345. package/es/Radio/style/index.js +0 -2
  346. package/es/Row/index.js +0 -3
  347. package/es/Row/style/index.js +0 -2
  348. package/es/Select/index.d.ts +0 -39
  349. package/es/Select/index.js +0 -156
  350. package/es/Select/rc-select/BaseSelect.d.ts +0 -116
  351. package/es/Select/rc-select/BaseSelect.js +0 -641
  352. package/es/Select/rc-select/OptGroup.d.ts +0 -12
  353. package/es/Select/rc-select/OptGroup.js +0 -7
  354. package/es/Select/rc-select/Option.d.ts +0 -14
  355. package/es/Select/rc-select/Option.js +0 -7
  356. package/es/Select/rc-select/OptionList.d.ts +0 -10
  357. package/es/Select/rc-select/OptionList.js +0 -401
  358. package/es/Select/rc-select/Select.d.ts +0 -109
  359. package/es/Select/rc-select/Select.js +0 -547
  360. package/es/Select/rc-select/SelectContext.d.ts +0 -20
  361. package/es/Select/rc-select/SelectContext.js +0 -4
  362. package/es/Select/rc-select/SelectTrigger.d.ts +0 -30
  363. package/es/Select/rc-select/SelectTrigger.js +0 -136
  364. package/es/Select/rc-select/Selector/Input.d.ts +0 -26
  365. package/es/Select/rc-select/Selector/Input.js +0 -114
  366. package/es/Select/rc-select/Selector/MultipleSelector.d.ts +0 -16
  367. package/es/Select/rc-select/Selector/MultipleSelector.js +0 -246
  368. package/es/Select/rc-select/Selector/SingleSelector.d.ts +0 -8
  369. package/es/Select/rc-select/Selector/SingleSelector.js +0 -112
  370. package/es/Select/rc-select/Selector/index.d.ts +0 -80
  371. package/es/Select/rc-select/Selector/index.js +0 -194
  372. package/es/Select/rc-select/TransBtn.d.ts +0 -12
  373. package/es/Select/rc-select/TransBtn.js +0 -42
  374. package/es/Select/rc-select/hooks/useBaseProps.d.ts +0 -13
  375. package/es/Select/rc-select/hooks/useBaseProps.js +0 -11
  376. package/es/Select/rc-select/hooks/useCache.d.ts +0 -7
  377. package/es/Select/rc-select/hooks/useCache.js +0 -49
  378. package/es/Select/rc-select/hooks/useDelayReset.d.ts +0 -5
  379. package/es/Select/rc-select/hooks/useDelayReset.js +0 -50
  380. package/es/Select/rc-select/hooks/useFilterOptions.d.ts +0 -3
  381. package/es/Select/rc-select/hooks/useFilterOptions.js +0 -75
  382. package/es/Select/rc-select/hooks/useId.d.ts +0 -5
  383. package/es/Select/rc-select/hooks/useId.js +0 -47
  384. package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +0 -5
  385. package/es/Select/rc-select/hooks/useLayoutEffect.js +0 -17
  386. package/es/Select/rc-select/hooks/useLock.d.ts +0 -7
  387. package/es/Select/rc-select/hooks/useLock.js +0 -35
  388. package/es/Select/rc-select/hooks/useOptions.d.ts +0 -11
  389. package/es/Select/rc-select/hooks/useOptions.js +0 -53
  390. package/es/Select/rc-select/hooks/useRefFunc.d.ts +0 -5
  391. package/es/Select/rc-select/hooks/useRefFunc.js +0 -15
  392. package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -1
  393. package/es/Select/rc-select/hooks/useSelectTriggerControl.js +0 -40
  394. package/es/Select/rc-select/index.d.ts +0 -10
  395. package/es/Select/rc-select/index.js +0 -7
  396. package/es/Select/rc-select/interface.d.ts +0 -10
  397. package/es/Select/rc-select/utils/commonUtil.d.ts +0 -4
  398. package/es/Select/rc-select/utils/commonUtil.js +0 -12
  399. package/es/Select/rc-select/utils/keyUtil.d.ts +0 -2
  400. package/es/Select/rc-select/utils/keyUtil.js +0 -8
  401. package/es/Select/rc-select/utils/legacyUtil.d.ts +0 -3
  402. package/es/Select/rc-select/utils/legacyUtil.js +0 -58
  403. package/es/Select/rc-select/utils/platformUtil.d.ts +0 -1
  404. package/es/Select/rc-select/utils/platformUtil.js +0 -4
  405. package/es/Select/rc-select/utils/valueUtil.d.ts +0 -22
  406. package/es/Select/rc-select/utils/valueUtil.js +0 -157
  407. package/es/Select/rc-select/utils/warningPropsUtil.d.ts +0 -3
  408. package/es/Select/rc-select/utils/warningPropsUtil.js +0 -114
  409. package/es/Select/style/index.d.ts +0 -3
  410. package/es/Select/style/index.js +0 -4
  411. package/es/Select/style/index.less +0 -340
  412. package/es/Select/style/multiple.less +0 -222
  413. package/es/Select/style/rtl.less +0 -168
  414. package/es/Select/style/select.less +0 -337
  415. package/es/Select/style/single.less +0 -179
  416. package/es/Select/style/status.less +0 -48
  417. package/es/Select/style/variables.less +0 -67
  418. package/es/Select/style/variables.less.d.ts +0 -190
  419. package/es/Select/utils/iconUtil.d.ts +0 -24
  420. package/es/Select/utils/iconUtil.js +0 -86
  421. package/es/Skeleton/index.js +0 -2
  422. package/es/Skeleton/style/index.js +0 -2
  423. package/es/Space/index.js +0 -2
  424. package/es/Space/style/index.js +0 -2
  425. package/es/Spin/index.d.ts +0 -4
  426. package/es/Spin/index.js +0 -2
  427. package/es/Spin/style/index.js +0 -2
  428. package/es/Steps/components/ProcessIcon/index.d.ts +0 -6
  429. package/es/Steps/components/ProcessIcon/index.js +0 -8
  430. package/es/Steps/components/Step/index.js +0 -45
  431. package/es/Steps/index.d.ts +0 -37
  432. package/es/Steps/index.js +0 -31
  433. package/es/Steps/matchMedia.mock.d.ts +0 -1
  434. package/es/Steps/matchMedia.mock.js +0 -17
  435. package/es/Steps/style/index.js +0 -2
  436. package/es/Steps/style/index.less +0 -258
  437. package/es/Switch/index.js +0 -72
  438. package/es/Switch/style/index.js +0 -2
  439. package/es/Table/Table.js +0 -388
  440. package/es/Table/components/Empty/index.js +0 -16
  441. package/es/Table/components/Loading/index.js +0 -18
  442. package/es/Table/components/TableBodyRowList/index.js +0 -91
  443. package/es/Table/components/TableHead/index.js +0 -261
  444. package/es/Table/constant.d.ts +0 -1
  445. package/es/Table/constant.js +0 -1
  446. package/es/Table/hooks/useFrame.js +0 -90
  447. package/es/Table/index.js +0 -2
  448. package/es/Table/interface.js +0 -1
  449. package/es/Table/style/index.js +0 -2
  450. package/es/Table/style/index.less +0 -238
  451. package/es/Table/style/variable.less +0 -5
  452. package/es/Table/style/variable.less.d.ts +0 -7
  453. package/es/Table/utils.d.ts +0 -15
  454. package/es/Table/utils.js +0 -138
  455. package/es/Tabs/TabPane.js +0 -6
  456. package/es/Tabs/index.js +0 -48
  457. package/es/Tabs/style/index.d.ts +0 -3
  458. package/es/Tabs/style/index.js +0 -3
  459. package/es/Tabs/style/index.less +0 -166
  460. package/es/Tooltip/style/index.js +0 -2
  461. package/es/Tooltip/style/index.less +0 -15
  462. package/es/Tree/index.d.ts +0 -5
  463. package/es/Tree/index.js +0 -2
  464. package/es/Tree/style/index.js +0 -2
  465. package/es/Tree/style/index.less +0 -1
  466. package/es/Typography/index.js +0 -3
  467. package/es/Typography/style/index.js +0 -2
  468. package/es/Typography/style/index.less +0 -1
  469. package/es/Upload/index.d.ts +0 -4
  470. package/es/Upload/index.js +0 -3
  471. package/es/Upload/style/index.js +0 -2
  472. package/es/Upload/style/index.less +0 -1
  473. package/es/_utils/hooks/useControlledState.d.ts +0 -2
  474. package/es/_utils/hooks/usePrefixCls.d.ts +0 -2
  475. package/es/_utils/hooks/usePrefixCls.js +0 -14
  476. package/es/index.d.ts +0 -81
  477. package/es/index.js +0 -42
  478. package/es/locale/default.js +0 -2
  479. package/es/locale-provider/context.d.ts +0 -7
  480. package/es/locale-provider/default.js +0 -2
  481. package/es/locale-provider/en_US.js +0 -2
  482. package/es/locale-provider/index.d.ts +0 -65
  483. package/es/locale-provider/index.js +0 -102
  484. package/es/locale-provider/style/index.js +0 -1
  485. package/es/locale-provider/zh_CN.js +0 -2
  486. package/es/message/index.d.ts +0 -5
  487. package/es/message/index.js +0 -3
  488. package/es/message/style/index.js +0 -2
  489. package/es/message/style/index.less +0 -1
  490. package/es/notification/index.d.ts +0 -4
  491. package/es/notification/index.js +0 -3
  492. package/es/notification/style/index.js +0 -2
  493. package/es/notification/style/index.less +0 -1
  494. package/es/style/index.js +0 -1
  495. package/es/style/index.less +0 -5
  496. package/es/style/themes/default/themeColor.module.less +0 -445
  497. package/lib/Alert/index.d.ts +0 -4
  498. package/lib/Alert/index.js +0 -15
  499. package/lib/Alert/style/index.js +0 -5
  500. package/lib/Alert/style/index.less +0 -1
  501. package/lib/Avatar/component/Avatar/index.d.ts +0 -84
  502. package/lib/Avatar/component/Avatar/index.js +0 -61
  503. package/lib/Avatar/index.d.ts +0 -3
  504. package/lib/Avatar/index.js +0 -16
  505. package/lib/Avatar/style/index.js +0 -5
  506. package/lib/Avatar/style/index.less +0 -34
  507. package/lib/Breadcrumb/index.d.ts +0 -11
  508. package/lib/Breadcrumb/index.js +0 -59
  509. package/lib/Breadcrumb/style/index.js +0 -5
  510. package/lib/Breadcrumb/style/index.less +0 -36
  511. package/lib/Button/index.d.ts +0 -49
  512. package/lib/Button/index.js +0 -139
  513. package/lib/Button/style/index.js +0 -5
  514. package/lib/Button/style/index.less +0 -355
  515. package/lib/Button/style/variables.less +0 -67
  516. package/lib/Card/index.d.ts +0 -3
  517. package/lib/Card/index.js +0 -15
  518. package/lib/Card/style/index.d.ts +0 -2
  519. package/lib/Card/style/index.js +0 -5
  520. package/lib/Card/style/index.less +0 -1
  521. package/lib/Checkbox/component/CheckboxGroup/index.d.ts +0 -4
  522. package/lib/Checkbox/component/CheckboxGroup/index.js +0 -42
  523. package/lib/Checkbox/index.d.ts +0 -10
  524. package/lib/Checkbox/index.js +0 -37
  525. package/lib/Checkbox/style/index.d.ts +0 -2
  526. package/lib/Checkbox/style/index.js +0 -5
  527. package/lib/Checkbox/style/index.less +0 -133
  528. package/lib/Checkbox/type.d.ts +0 -94
  529. package/lib/Checkbox/type.js +0 -13
  530. package/lib/Col/index.d.ts +0 -4
  531. package/lib/Col/index.js +0 -15
  532. package/lib/Col/style/index.d.ts +0 -2
  533. package/lib/Col/style/index.js +0 -5
  534. package/lib/Col/style/index.less +0 -1
  535. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
  536. package/lib/ConfigProvider/defaultRenderEmpty.js +0 -55
  537. package/lib/ConfigProvider/index.d.ts +0 -4
  538. package/lib/ConfigProvider/index.js +0 -41
  539. package/lib/ConfigProvider/sizeContext.d.ts +0 -9
  540. package/lib/ConfigProvider/sizeContext.js +0 -30
  541. package/lib/ConfigProvider/style/index.d.ts +0 -2
  542. package/lib/ConfigProvider/style/index.js +0 -5
  543. package/lib/ConfigProvider/style/index.less +0 -1
  544. package/lib/DatePicker/index.d.ts +0 -4
  545. package/lib/DatePicker/index.js +0 -15
  546. package/lib/DatePicker/style/index.d.ts +0 -2
  547. package/lib/DatePicker/style/index.js +0 -5
  548. package/lib/DatePicker/style/index.less +0 -1
  549. package/lib/Divider/index.d.ts +0 -41
  550. package/lib/Divider/index.js +0 -25
  551. package/lib/Divider/style/index.d.ts +0 -2
  552. package/lib/Divider/style/index.js +0 -5
  553. package/lib/Divider/style/index.less +0 -5
  554. package/lib/Divider/style/index.less.d.ts +0 -183
  555. package/lib/Drawer/index.d.ts +0 -4
  556. package/lib/Drawer/index.js +0 -15
  557. package/lib/Drawer/style/index.d.ts +0 -2
  558. package/lib/Drawer/style/index.js +0 -5
  559. package/lib/Drawer/style/index.less +0 -1
  560. package/lib/Dropdown/Button.d.ts +0 -69
  561. package/lib/Dropdown/Button.js +0 -48
  562. package/lib/Dropdown/index.d.ts +0 -86
  563. package/lib/Dropdown/index.js +0 -39
  564. package/lib/Dropdown/style/index.d.ts +0 -3
  565. package/lib/Dropdown/style/index.js +0 -7
  566. package/lib/Dropdown/style/index.less +0 -73
  567. package/lib/Empty/image/Authority.d.ts +0 -3
  568. package/lib/Empty/image/Authority.js +0 -374
  569. package/lib/Empty/image/Dataspace.d.ts +0 -3
  570. package/lib/Empty/image/Dataspace.js +0 -285
  571. package/lib/Empty/image/Search.d.ts +0 -3
  572. package/lib/Empty/image/Search.js +0 -170
  573. package/lib/Empty/image/Simple.d.ts +0 -3
  574. package/lib/Empty/image/Simple.js +0 -34
  575. package/lib/Empty/image/Worksheet.d.ts +0 -3
  576. package/lib/Empty/image/Worksheet.js +0 -284
  577. package/lib/Empty/image/empty.d.ts +0 -3
  578. package/lib/Empty/image/empty.js +0 -153
  579. package/lib/Empty/index.d.ts +0 -23
  580. package/lib/Empty/index.js +0 -110
  581. package/lib/Empty/style/index.d.ts +0 -1
  582. package/lib/Empty/style/index.js +0 -3
  583. package/lib/Empty/style/index.less +0 -69
  584. package/lib/Form/index.d.ts +0 -8
  585. package/lib/Form/index.js +0 -15
  586. package/lib/Form/style/index.d.ts +0 -2
  587. package/lib/Form/style/index.js +0 -5
  588. package/lib/Form/style/index.less +0 -9
  589. package/lib/Icon/antdIconfont.d.ts +0 -4
  590. package/lib/Icon/antdIconfont.js +0 -13
  591. package/lib/Icon/components/Icon.d.ts +0 -32
  592. package/lib/Icon/components/Icon.js +0 -38
  593. package/lib/Icon/components/createFromScripts.d.ts +0 -1
  594. package/lib/Icon/components/createFromScripts.js +0 -41
  595. package/lib/Icon/iconSvgs/arrows_right_sm.svg +0 -3
  596. package/lib/Icon/icons/AddLine.d.ts +0 -13
  597. package/lib/Icon/icons/AddLine.js +0 -83
  598. package/lib/Icon/icons/AlertFill.d.ts +0 -13
  599. package/lib/Icon/icons/AlertFill.js +0 -90
  600. package/lib/Icon/icons/ArrowsDownLine.d.ts +0 -13
  601. package/lib/Icon/icons/ArrowsDownLine.js +0 -83
  602. package/lib/Icon/icons/CancelFill.d.ts +0 -13
  603. package/lib/Icon/icons/CancelFill.js +0 -90
  604. package/lib/Icon/icons/CheckFill.d.ts +0 -13
  605. package/lib/Icon/icons/CheckFill.js +0 -90
  606. package/lib/Icon/icons/CheckLine.d.ts +0 -13
  607. package/lib/Icon/icons/CheckLine.js +0 -90
  608. package/lib/Icon/icons/CloseLine.d.ts +0 -13
  609. package/lib/Icon/icons/CloseLine.js +0 -83
  610. package/lib/Icon/icons/DatabaseLine.d.ts +0 -13
  611. package/lib/Icon/icons/DatabaseLine.js +0 -83
  612. package/lib/Icon/icons/Deleteline.d.ts +0 -13
  613. package/lib/Icon/icons/Deleteline.js +0 -83
  614. package/lib/Icon/icons/DownloadLine.d.ts +0 -13
  615. package/lib/Icon/icons/DownloadLine.js +0 -90
  616. package/lib/Icon/icons/ErrorFill.d.ts +0 -13
  617. package/lib/Icon/icons/ErrorFill.js +0 -90
  618. package/lib/Icon/icons/EyeOffLine.d.ts +0 -13
  619. package/lib/Icon/icons/EyeOffLine.js +0 -90
  620. package/lib/Icon/icons/EyeOnLine.d.ts +0 -13
  621. package/lib/Icon/icons/EyeOnLine.js +0 -83
  622. package/lib/Icon/icons/FileLine.d.ts +0 -13
  623. package/lib/Icon/icons/FileLine.js +0 -90
  624. package/lib/Icon/icons/HomeFill.d.ts +0 -13
  625. package/lib/Icon/icons/HomeFill.js +0 -90
  626. package/lib/Icon/icons/IconBase.withSpan.tpl +0 -58
  627. package/lib/Icon/icons/LightningLine.d.ts +0 -13
  628. package/lib/Icon/icons/LightningLine.js +0 -83
  629. package/lib/Icon/icons/Loading.d.ts +0 -13
  630. package/lib/Icon/icons/Loading.js +0 -83
  631. package/lib/Icon/icons/More.d.ts +0 -13
  632. package/lib/Icon/icons/More.js +0 -83
  633. package/lib/Icon/icons/NewWindowsLine.d.ts +0 -13
  634. package/lib/Icon/icons/NewWindowsLine.js +0 -91
  635. package/lib/Icon/icons/SearchLine.d.ts +0 -13
  636. package/lib/Icon/icons/SearchLine.js +0 -90
  637. package/lib/Icon/icons/SortAscendingLine.d.ts +0 -13
  638. package/lib/Icon/icons/SortAscendingLine.js +0 -83
  639. package/lib/Icon/icons/SortDescendingLine.d.ts +0 -13
  640. package/lib/Icon/icons/SortDescendingLine.js +0 -83
  641. package/lib/Icon/icons/TextLine.d.ts +0 -13
  642. package/lib/Icon/icons/TextLine.js +0 -90
  643. package/lib/Icon/icons/UserLine.d.ts +0 -13
  644. package/lib/Icon/icons/UserLine.js +0 -90
  645. package/lib/Icon/icons/style.css +0 -9
  646. package/lib/Icon/icons/style.css.d.ts +0 -10
  647. package/lib/Icon/icons.d.ts +0 -9
  648. package/lib/Icon/icons.js +0 -1597
  649. package/lib/Icon/index.d.ts +0 -3
  650. package/lib/Icon/index.js +0 -13
  651. package/lib/Icon/index.less +0 -24
  652. package/lib/Icon/style/index.d.ts +0 -1
  653. package/lib/Icon/style/index.js +0 -1
  654. package/lib/Input/components/Group/index.d.ts +0 -18
  655. package/lib/Input/components/Group/index.js +0 -36
  656. package/lib/Input/components/Input/index.d.ts +0 -80
  657. package/lib/Input/components/Input/index.js +0 -46
  658. package/lib/Input/components/Password/index.d.ts +0 -22
  659. package/lib/Input/components/Password/index.js +0 -60
  660. package/lib/Input/components/TextArea/index.d.ts +0 -65
  661. package/lib/Input/components/TextArea/index.js +0 -40
  662. package/lib/Input/index.d.ts +0 -16
  663. package/lib/Input/index.js +0 -23
  664. package/lib/Input/style/index.d.ts +0 -3
  665. package/lib/Input/style/index.js +0 -7
  666. package/lib/Input/style/index.less +0 -490
  667. package/lib/InputNumber/index.d.ts +0 -4
  668. package/lib/InputNumber/index.js +0 -45
  669. package/lib/InputNumber/style/index.d.ts +0 -2
  670. package/lib/InputNumber/style/index.js +0 -5
  671. package/lib/InputNumber/style/index.less +0 -264
  672. package/lib/InputNumber/type.d.ts +0 -161
  673. package/lib/InputNumber/type.js +0 -5
  674. package/lib/Layout/index.d.ts +0 -4
  675. package/lib/Layout/index.js +0 -15
  676. package/lib/Layout/style/index.d.ts +0 -2
  677. package/lib/Layout/style/index.js +0 -5
  678. package/lib/Layout/style/index.less +0 -1
  679. package/lib/Menu/Divider.d.ts +0 -5
  680. package/lib/Menu/Divider.js +0 -20
  681. package/lib/Menu/MenuItem.d.ts +0 -30
  682. package/lib/Menu/MenuItem.js +0 -20
  683. package/lib/Menu/SubMenu.d.ts +0 -26
  684. package/lib/Menu/SubMenu.js +0 -36
  685. package/lib/Menu/index.d.ts +0 -23
  686. package/lib/Menu/index.js +0 -41
  687. package/lib/Menu/style/index.d.ts +0 -3
  688. package/lib/Menu/style/index.js +0 -7
  689. package/lib/Menu/style/index.less +0 -41
  690. package/lib/Modal/index.d.ts +0 -21
  691. package/lib/Modal/index.js +0 -128
  692. package/lib/Modal/locale.d.ts +0 -7
  693. package/lib/Modal/locale.js +0 -31
  694. package/lib/Modal/style/index.d.ts +0 -2
  695. package/lib/Modal/style/index.js +0 -5
  696. package/lib/Modal/style/index.less +0 -209
  697. package/lib/Navigator/components/Header/index.d.ts +0 -9
  698. package/lib/Navigator/components/Header/index.js +0 -28
  699. package/lib/Navigator/components/Menu/index.d.ts +0 -13
  700. package/lib/Navigator/components/Menu/index.js +0 -68
  701. package/lib/Navigator/components/MenuItem/index.d.ts +0 -21
  702. package/lib/Navigator/components/MenuItem/index.js +0 -56
  703. package/lib/Navigator/index.d.ts +0 -51
  704. package/lib/Navigator/index.js +0 -54
  705. package/lib/Navigator/style/bg.png +0 -0
  706. package/lib/Navigator/style/index.d.ts +0 -2
  707. package/lib/Navigator/style/index.js +0 -5
  708. package/lib/Navigator/style/index.less +0 -159
  709. package/lib/PageHeader/index.d.ts +0 -3
  710. package/lib/PageHeader/index.js +0 -15
  711. package/lib/PageHeader/style/index.d.ts +0 -2
  712. package/lib/PageHeader/style/index.js +0 -5
  713. package/lib/PageHeader/style/index.less +0 -1
  714. package/lib/Popconfirm/index.d.ts +0 -3
  715. package/lib/Popconfirm/index.js +0 -13
  716. package/lib/Popconfirm/style/index.d.ts +0 -2
  717. package/lib/Popconfirm/style/index.js +0 -5
  718. package/lib/Popconfirm/style/index.less +0 -1
  719. package/lib/Popover/index.d.ts +0 -5
  720. package/lib/Popover/index.js +0 -35
  721. package/lib/Popover/style/index.d.ts +0 -2
  722. package/lib/Popover/style/index.js +0 -5
  723. package/lib/Popover/style/index.less +0 -37
  724. package/lib/Progress/index.d.ts +0 -3
  725. package/lib/Progress/index.js +0 -13
  726. package/lib/Progress/style/index.d.ts +0 -2
  727. package/lib/Progress/style/index.js +0 -5
  728. package/lib/Progress/style/index.less +0 -1
  729. package/lib/Radio/components/Group/index.d.ts +0 -6
  730. package/lib/Radio/components/Group/index.js +0 -95
  731. package/lib/Radio/components/Radio/index.d.ts +0 -3
  732. package/lib/Radio/components/Radio/index.js +0 -115
  733. package/lib/Radio/index.d.ts +0 -10
  734. package/lib/Radio/index.js +0 -17
  735. package/lib/Radio/interface/radio.d.ts +0 -24
  736. package/lib/Radio/interface/radio.js +0 -5
  737. package/lib/Radio/interface/radioGroup.d.ts +0 -42
  738. package/lib/Radio/interface/radioGroup.js +0 -5
  739. package/lib/Radio/style/index.d.ts +0 -2
  740. package/lib/Radio/style/index.js +0 -5
  741. package/lib/Radio/style/index.less +0 -349
  742. package/lib/Row/index.d.ts +0 -3
  743. package/lib/Row/index.js +0 -15
  744. package/lib/Row/style/index.d.ts +0 -2
  745. package/lib/Row/style/index.js +0 -5
  746. package/lib/Row/style/index.less +0 -1
  747. package/lib/Select/index.d.ts +0 -39
  748. package/lib/Select/index.js +0 -181
  749. package/lib/Select/rc-select/BaseSelect.d.ts +0 -116
  750. package/lib/Select/rc-select/BaseSelect.js +0 -672
  751. package/lib/Select/rc-select/OptGroup.d.ts +0 -12
  752. package/lib/Select/rc-select/OptGroup.js +0 -15
  753. package/lib/Select/rc-select/Option.d.ts +0 -14
  754. package/lib/Select/rc-select/Option.js +0 -15
  755. package/lib/Select/rc-select/OptionList.d.ts +0 -10
  756. package/lib/Select/rc-select/OptionList.js +0 -428
  757. package/lib/Select/rc-select/Select.d.ts +0 -109
  758. package/lib/Select/rc-select/Select.js +0 -545
  759. package/lib/Select/rc-select/SelectContext.d.ts +0 -20
  760. package/lib/Select/rc-select/SelectContext.js +0 -19
  761. package/lib/Select/rc-select/SelectTrigger.d.ts +0 -30
  762. package/lib/Select/rc-select/SelectTrigger.js +0 -153
  763. package/lib/Select/rc-select/Selector/Input.d.ts +0 -26
  764. package/lib/Select/rc-select/Selector/Input.js +0 -132
  765. package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +0 -16
  766. package/lib/Select/rc-select/Selector/MultipleSelector.js +0 -267
  767. package/lib/Select/rc-select/Selector/SingleSelector.d.ts +0 -8
  768. package/lib/Select/rc-select/Selector/SingleSelector.js +0 -129
  769. package/lib/Select/rc-select/Selector/index.d.ts +0 -80
  770. package/lib/Select/rc-select/Selector/index.js +0 -203
  771. package/lib/Select/rc-select/TransBtn.d.ts +0 -12
  772. package/lib/Select/rc-select/TransBtn.js +0 -59
  773. package/lib/Select/rc-select/hooks/useBaseProps.d.ts +0 -13
  774. package/lib/Select/rc-select/hooks/useBaseProps.js +0 -28
  775. package/lib/Select/rc-select/hooks/useCache.d.ts +0 -7
  776. package/lib/Select/rc-select/hooks/useCache.js +0 -63
  777. package/lib/Select/rc-select/hooks/useDelayReset.d.ts +0 -5
  778. package/lib/Select/rc-select/hooks/useDelayReset.js +0 -62
  779. package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +0 -3
  780. package/lib/Select/rc-select/hooks/useFilterOptions.js +0 -91
  781. package/lib/Select/rc-select/hooks/useId.d.ts +0 -5
  782. package/lib/Select/rc-select/hooks/useId.js +0 -68
  783. package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +0 -5
  784. package/lib/Select/rc-select/hooks/useLayoutEffect.js +0 -32
  785. package/lib/Select/rc-select/hooks/useLock.d.ts +0 -7
  786. package/lib/Select/rc-select/hooks/useLock.js +0 -49
  787. package/lib/Select/rc-select/hooks/useOptions.d.ts +0 -11
  788. package/lib/Select/rc-select/hooks/useOptions.js +0 -68
  789. package/lib/Select/rc-select/hooks/useRefFunc.d.ts +0 -5
  790. package/lib/Select/rc-select/hooks/useRefFunc.js +0 -29
  791. package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -1
  792. package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +0 -54
  793. package/lib/Select/rc-select/index.d.ts +0 -10
  794. package/lib/Select/rc-select/index.js +0 -45
  795. package/lib/Select/rc-select/interface.d.ts +0 -10
  796. package/lib/Select/rc-select/interface.js +0 -5
  797. package/lib/Select/rc-select/utils/commonUtil.d.ts +0 -4
  798. package/lib/Select/rc-select/utils/commonUtil.js +0 -23
  799. package/lib/Select/rc-select/utils/keyUtil.d.ts +0 -2
  800. package/lib/Select/rc-select/utils/keyUtil.js +0 -17
  801. package/lib/Select/rc-select/utils/legacyUtil.d.ts +0 -3
  802. package/lib/Select/rc-select/utils/legacyUtil.js +0 -73
  803. package/lib/Select/rc-select/utils/platformUtil.d.ts +0 -1
  804. package/lib/Select/rc-select/utils/platformUtil.js +0 -11
  805. package/lib/Select/rc-select/utils/valueUtil.d.ts +0 -22
  806. package/lib/Select/rc-select/utils/valueUtil.js +0 -172
  807. package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +0 -3
  808. package/lib/Select/rc-select/utils/warningPropsUtil.js +0 -132
  809. package/lib/Select/style/index.d.ts +0 -3
  810. package/lib/Select/style/index.js +0 -7
  811. package/lib/Select/style/index.less +0 -340
  812. package/lib/Select/style/multiple.less +0 -222
  813. package/lib/Select/style/rtl.less +0 -168
  814. package/lib/Select/style/select.less +0 -337
  815. package/lib/Select/style/single.less +0 -179
  816. package/lib/Select/style/status.less +0 -48
  817. package/lib/Select/style/variables.less +0 -67
  818. package/lib/Select/style/variables.less.d.ts +0 -190
  819. package/lib/Select/utils/iconUtil.d.ts +0 -24
  820. package/lib/Select/utils/iconUtil.js +0 -108
  821. package/lib/Skeleton/index.d.ts +0 -3
  822. package/lib/Skeleton/index.js +0 -13
  823. package/lib/Skeleton/style/index.d.ts +0 -2
  824. package/lib/Skeleton/style/index.js +0 -5
  825. package/lib/Skeleton/style/index.less +0 -1
  826. package/lib/Space/index.d.ts +0 -4
  827. package/lib/Space/index.js +0 -17
  828. package/lib/Space/style/index.d.ts +0 -2
  829. package/lib/Space/style/index.js +0 -5
  830. package/lib/Space/style/index.less +0 -1
  831. package/lib/Spin/index.d.ts +0 -4
  832. package/lib/Spin/index.js +0 -13
  833. package/lib/Spin/style/index.d.ts +0 -2
  834. package/lib/Spin/style/index.js +0 -5
  835. package/lib/Spin/style/index.less +0 -1
  836. package/lib/Steps/components/ProcessIcon/index.d.ts +0 -6
  837. package/lib/Steps/components/ProcessIcon/index.js +0 -19
  838. package/lib/Steps/components/Step/index.d.ts +0 -20
  839. package/lib/Steps/components/Step/index.js +0 -61
  840. package/lib/Steps/index.d.ts +0 -37
  841. package/lib/Steps/index.js +0 -46
  842. package/lib/Steps/matchMedia.mock.d.ts +0 -1
  843. package/lib/Steps/matchMedia.mock.js +0 -17
  844. package/lib/Steps/style/index.d.ts +0 -2
  845. package/lib/Steps/style/index.js +0 -5
  846. package/lib/Steps/style/index.less +0 -258
  847. package/lib/Switch/index.d.ts +0 -48
  848. package/lib/Switch/index.js +0 -90
  849. package/lib/Switch/style/index.d.ts +0 -2
  850. package/lib/Switch/style/index.js +0 -5
  851. package/lib/Switch/style/index.less +0 -130
  852. package/lib/Table/Table.d.ts +0 -6
  853. package/lib/Table/Table.js +0 -419
  854. package/lib/Table/components/Empty/index.d.ts +0 -3
  855. package/lib/Table/components/Empty/index.js +0 -28
  856. package/lib/Table/components/Loading/index.d.ts +0 -3
  857. package/lib/Table/components/Loading/index.js +0 -31
  858. package/lib/Table/components/TableBodyRowList/index.d.ts +0 -13
  859. package/lib/Table/components/TableBodyRowList/index.js +0 -110
  860. package/lib/Table/components/TableHead/index.d.ts +0 -22
  861. package/lib/Table/components/TableHead/index.js +0 -285
  862. package/lib/Table/constant.d.ts +0 -1
  863. package/lib/Table/constant.js +0 -1
  864. package/lib/Table/hooks/useFrame.d.ts +0 -7
  865. package/lib/Table/hooks/useFrame.js +0 -98
  866. package/lib/Table/index.d.ts +0 -2
  867. package/lib/Table/index.js +0 -13
  868. package/lib/Table/interface.d.ts +0 -41
  869. package/lib/Table/interface.js +0 -5
  870. package/lib/Table/react-table-config.d.ts +0 -122
  871. package/lib/Table/style/index.d.ts +0 -2
  872. package/lib/Table/style/index.js +0 -5
  873. package/lib/Table/style/index.less +0 -238
  874. package/lib/Table/style/variable.less +0 -5
  875. package/lib/Table/style/variable.less.d.ts +0 -7
  876. package/lib/Table/utils.d.ts +0 -15
  877. package/lib/Table/utils.js +0 -154
  878. package/lib/Tabs/TabPane.d.ts +0 -21
  879. package/lib/Tabs/TabPane.js +0 -18
  880. package/lib/Tabs/index.d.ts +0 -47
  881. package/lib/Tabs/index.js +0 -64
  882. package/lib/Tabs/style/index.d.ts +0 -3
  883. package/lib/Tabs/style/index.js +0 -7
  884. package/lib/Tabs/style/index.less +0 -166
  885. package/lib/Tooltip/index.d.ts +0 -63
  886. package/lib/Tooltip/index.js +0 -44
  887. package/lib/Tooltip/style/index.d.ts +0 -2
  888. package/lib/Tooltip/style/index.js +0 -5
  889. package/lib/Tooltip/style/index.less +0 -15
  890. package/lib/Tree/index.d.ts +0 -5
  891. package/lib/Tree/index.js +0 -13
  892. package/lib/Tree/style/index.d.ts +0 -2
  893. package/lib/Tree/style/index.js +0 -5
  894. package/lib/Tree/style/index.less +0 -1
  895. package/lib/Typography/index.d.ts +0 -3
  896. package/lib/Typography/index.js +0 -15
  897. package/lib/Typography/style/index.d.ts +0 -2
  898. package/lib/Typography/style/index.js +0 -5
  899. package/lib/Typography/style/index.less +0 -1
  900. package/lib/Upload/index.d.ts +0 -4
  901. package/lib/Upload/index.js +0 -15
  902. package/lib/Upload/style/index.d.ts +0 -2
  903. package/lib/Upload/style/index.js +0 -5
  904. package/lib/Upload/style/index.less +0 -1
  905. package/lib/_utils/hooks/useControlledState.d.ts +0 -2
  906. package/lib/_utils/hooks/useControlledState.js +0 -63
  907. package/lib/_utils/hooks/useId.d.ts +0 -4
  908. package/lib/_utils/hooks/useId.js +0 -36
  909. package/lib/_utils/hooks/usePrefixCls.d.ts +0 -2
  910. package/lib/_utils/hooks/usePrefixCls.js +0 -27
  911. package/lib/index.d.ts +0 -81
  912. package/lib/index.js +0 -335
  913. package/lib/locale/default.d.ts +0 -2
  914. package/lib/locale/default.js +0 -13
  915. package/lib/locale/en_US.d.ts +0 -3
  916. package/lib/locale/en_US.js +0 -146
  917. package/lib/locale/zh_CN.d.ts +0 -3
  918. package/lib/locale/zh_CN.js +0 -145
  919. package/lib/locale-provider/LocaleReceiver.d.ts +0 -4
  920. package/lib/locale-provider/LocaleReceiver.js +0 -23
  921. package/lib/locale-provider/context.d.ts +0 -7
  922. package/lib/locale-provider/context.js +0 -12
  923. package/lib/locale-provider/default.d.ts +0 -2
  924. package/lib/locale-provider/default.js +0 -13
  925. package/lib/locale-provider/en_US.d.ts +0 -2
  926. package/lib/locale-provider/en_US.js +0 -13
  927. package/lib/locale-provider/index.d.ts +0 -65
  928. package/lib/locale-provider/index.js +0 -116
  929. package/lib/locale-provider/style/index.d.ts +0 -1
  930. package/lib/locale-provider/style/index.js +0 -3
  931. package/lib/locale-provider/style/index.less +0 -2
  932. package/lib/locale-provider/zh_CN.d.ts +0 -2
  933. package/lib/locale-provider/zh_CN.js +0 -13
  934. package/lib/message/index.d.ts +0 -5
  935. package/lib/message/index.js +0 -15
  936. package/lib/message/style/index.d.ts +0 -2
  937. package/lib/message/style/index.js +0 -5
  938. package/lib/message/style/index.less +0 -1
  939. package/lib/notification/index.d.ts +0 -4
  940. package/lib/notification/index.js +0 -15
  941. package/lib/notification/style/index.d.ts +0 -2
  942. package/lib/notification/style/index.js +0 -5
  943. package/lib/notification/style/index.less +0 -1
  944. package/lib/style/index.d.ts +0 -1
  945. package/lib/style/index.js +0 -3
  946. package/lib/style/index.less +0 -5
  947. package/lib/style/mixins/index.less +0 -8
  948. package/lib/style/themes/default/index.less +0 -36
  949. package/lib/style/themes/default/scrollBar.less +0 -16
  950. package/lib/style/themes/default/themeColor.module.less +0 -445
  951. package/lib/style/themes/default/themeColor.module.less.d.ts +0 -182
  952. /package/{es → dist}/Alert/style/index.d.ts +0 -0
  953. /package/{es → dist}/Alert/style/index.less +0 -0
  954. /package/{es → dist}/Avatar/component/Avatar/index.d.ts +0 -0
  955. /package/{es → dist}/Avatar/index.d.ts +0 -0
  956. /package/{es → dist}/Avatar/style/index.d.ts +0 -0
  957. /package/{es → dist}/Avatar/style/index.less +0 -0
  958. /package/{es → dist}/Breadcrumb/index.d.ts +0 -0
  959. /package/{es → dist}/Breadcrumb/style/index.d.ts +0 -0
  960. /package/{es → dist}/Breadcrumb/style/index.less +0 -0
  961. /package/{es → dist}/Button/style/index.d.ts +0 -0
  962. /package/{es → dist}/Button/style/variables.less +0 -0
  963. /package/{es → dist}/Card/index.d.ts +0 -0
  964. /package/{es → dist}/Card/style/index.d.ts +0 -0
  965. /package/{es → dist}/Card/style/index.less +0 -0
  966. /package/{es → dist}/Checkbox/component/CheckboxGroup/index.d.ts +0 -0
  967. /package/{es → dist}/Checkbox/index.d.ts +0 -0
  968. /package/{es → dist}/Checkbox/style/index.d.ts +0 -0
  969. /package/{es → dist}/Checkbox/style/index.less +0 -0
  970. /package/{es → dist}/Checkbox/type.d.ts +0 -0
  971. /package/{es → dist}/Checkbox/type.js +0 -0
  972. /package/{es → dist}/Col/index.d.ts +0 -0
  973. /package/{es → dist}/Col/style/index.d.ts +0 -0
  974. /package/{es → dist}/Col/style/index.less +0 -0
  975. /package/{es → dist}/ConfigProvider/index.d.ts +0 -0
  976. /package/{es → dist}/ConfigProvider/sizeContext.js +0 -0
  977. /package/{es → dist}/ConfigProvider/style/index.d.ts +0 -0
  978. /package/{es → dist}/ConfigProvider/style/index.less +0 -0
  979. /package/{es → dist}/DatePicker/index.d.ts +0 -0
  980. /package/{es → dist}/DatePicker/style/index.d.ts +0 -0
  981. /package/{es → dist}/DatePicker/style/index.less +0 -0
  982. /package/{es → dist}/Divider/index.d.ts +0 -0
  983. /package/{es → dist}/Divider/style/index.d.ts +0 -0
  984. /package/{es → dist}/Divider/style/index.less +0 -0
  985. /package/{es → dist}/Divider/style/index.less.d.ts +0 -0
  986. /package/{es → dist}/Drawer/index.d.ts +0 -0
  987. /package/{es → dist}/Drawer/style/index.d.ts +0 -0
  988. /package/{es → dist}/Drawer/style/index.less +0 -0
  989. /package/{es → dist}/Dropdown/Button.d.ts +0 -0
  990. /package/{es → dist}/Dropdown/index.d.ts +0 -0
  991. /package/{es/Form → dist/Dropdown}/style/index.d.ts +0 -0
  992. /package/{es → dist}/Dropdown/style/index.less +0 -0
  993. /package/{es → dist}/Empty/style/index.d.ts +0 -0
  994. /package/{es → dist}/Form/index.d.ts +0 -0
  995. /package/{es/InputNumber → dist/Form}/style/index.d.ts +0 -0
  996. /package/{es → dist}/Form/style/index.less +0 -0
  997. /package/{es → dist}/Icon/antdIconfont.d.ts +0 -0
  998. /package/{es → dist}/Icon/antdIconfont.js +0 -0
  999. /package/{es → dist}/Icon/components/Icon.d.ts +0 -0
  1000. /package/{es → dist}/Icon/components/createFromScripts.d.ts +0 -0
  1001. /package/{es → dist}/Icon/components/createFromScripts.js +0 -0
  1002. /package/{es → dist}/Icon/iconSvgs/arrows_right_sm.svg +0 -0
  1003. /package/{es → dist}/Icon/icons.d.ts +0 -0
  1004. /package/{es → dist}/Icon/index.d.ts +0 -0
  1005. /package/{es → dist}/Icon/index.less +0 -0
  1006. /package/{es/Icon/style/index.less → dist/Icon/style/index.d.ts} +0 -0
  1007. /package/{lib/Icon/style/index.less → dist/Icon/style/index.js} +0 -0
  1008. /package/{es → dist}/Input/components/Group/index.d.ts +0 -0
  1009. /package/{es → dist}/Input/components/Input/index.d.ts +0 -0
  1010. /package/{es → dist}/Input/components/Password/index.d.ts +0 -0
  1011. /package/{es → dist}/Input/components/TextArea/index.d.ts +0 -0
  1012. /package/{es → dist}/Input/index.d.ts +0 -0
  1013. /package/{es/Layout → dist/Input}/style/index.d.ts +0 -0
  1014. /package/{es → dist}/Input/style/index.less +0 -0
  1015. /package/{es → dist}/InputNumber/index.d.ts +0 -0
  1016. /package/{es/Modal → dist/InputNumber}/style/index.d.ts +0 -0
  1017. /package/{es → dist}/InputNumber/style/index.less +0 -0
  1018. /package/{es → dist}/InputNumber/type.js +0 -0
  1019. /package/{es → dist}/Layout/index.d.ts +0 -0
  1020. /package/{es/Navigator → dist/Layout}/style/index.d.ts +0 -0
  1021. /package/{es → dist}/Layout/style/index.less +0 -0
  1022. /package/{es → dist}/Menu/Divider.d.ts +0 -0
  1023. /package/{es → dist}/Menu/MenuItem.d.ts +0 -0
  1024. /package/{es → dist}/Menu/SubMenu.d.ts +0 -0
  1025. /package/{es/PageHeader → dist/Menu}/style/index.d.ts +0 -0
  1026. /package/{es → dist}/Modal/locale.d.ts +0 -0
  1027. /package/{es/Popconfirm → dist/Modal}/style/index.d.ts +0 -0
  1028. /package/{es → dist}/Navigator/components/Header/index.d.ts +0 -0
  1029. /package/{es → dist}/Navigator/components/Header/index.js +0 -0
  1030. /package/{es → dist}/Navigator/components/Menu/index.d.ts +0 -0
  1031. /package/{es → dist}/Navigator/components/MenuItem/index.d.ts +0 -0
  1032. /package/{es → dist}/Navigator/components/MenuItem/index.js +0 -0
  1033. /package/{es → dist}/Navigator/index.d.ts +0 -0
  1034. /package/{es → dist}/Navigator/style/bg.png +0 -0
  1035. /package/{es/Popover → dist/Navigator}/style/index.d.ts +0 -0
  1036. /package/{es → dist}/Navigator/style/index.less +0 -0
  1037. /package/{es/Progress → dist/Popconfirm}/style/index.d.ts +0 -0
  1038. /package/{es → dist}/Popover/index.d.ts +0 -0
  1039. /package/{es/Radio → dist/Popover}/style/index.d.ts +0 -0
  1040. /package/{es → dist}/Popover/style/index.less +0 -0
  1041. /package/{es → dist}/Progress/index.d.ts +0 -0
  1042. /package/{es/Row → dist/Progress}/style/index.d.ts +0 -0
  1043. /package/{es/PageHeader → dist/Progress}/style/index.less +0 -0
  1044. /package/{es → dist}/Radio/components/Group/index.js +0 -0
  1045. /package/{es → dist}/Radio/components/Radio/index.d.ts +0 -0
  1046. /package/{es → dist}/Radio/index.d.ts +0 -0
  1047. /package/{es → dist}/Radio/interface/radio.d.ts +0 -0
  1048. /package/{es → dist}/Radio/interface/radio.js +0 -0
  1049. /package/{es → dist}/Radio/interface/radioGroup.d.ts +0 -0
  1050. /package/{es → dist}/Radio/interface/radioGroup.js +0 -0
  1051. /package/{es/Skeleton → dist/Radio}/style/index.d.ts +0 -0
  1052. /package/{es → dist}/Radio/style/index.less +0 -0
  1053. /package/{es → dist}/Row/index.d.ts +0 -0
  1054. /package/{es/Space → dist/Row}/style/index.d.ts +0 -0
  1055. /package/{es/Popconfirm → dist/Row}/style/index.less +0 -0
  1056. /package/{es/Spin → dist/Select}/style/index.d.ts +0 -0
  1057. /package/{es → dist}/Skeleton/index.d.ts +0 -0
  1058. /package/{es/Steps → dist/Skeleton}/style/index.d.ts +0 -0
  1059. /package/{es/Progress → dist/Skeleton}/style/index.less +0 -0
  1060. /package/{es → dist}/Space/index.d.ts +0 -0
  1061. /package/{es/Switch → dist/Space}/style/index.d.ts +0 -0
  1062. /package/{es/Row → dist/Space}/style/index.less +0 -0
  1063. /package/{es/Table → dist/Spin}/style/index.d.ts +0 -0
  1064. /package/{es → dist}/Steps/components/Step/index.d.ts +0 -0
  1065. /package/{es/Tooltip → dist/Steps}/style/index.d.ts +0 -0
  1066. /package/{es → dist}/Switch/index.d.ts +0 -0
  1067. /package/{es/Tree → dist/Switch}/style/index.d.ts +0 -0
  1068. /package/{es → dist}/Switch/style/index.less +0 -0
  1069. /package/{es → dist}/Table/Table.d.ts +0 -0
  1070. /package/{es → dist}/Table/components/Empty/index.d.ts +0 -0
  1071. /package/{es → dist}/Table/components/Loading/index.d.ts +0 -0
  1072. /package/{es → dist}/Table/components/TableBodyRowList/index.d.ts +0 -0
  1073. /package/{es → dist}/Table/components/TableHead/index.d.ts +0 -0
  1074. /package/{es → dist}/Table/hooks/useFrame.d.ts +0 -0
  1075. /package/{es → dist}/Table/index.d.ts +0 -0
  1076. /package/{es → dist}/Table/interface.d.ts +0 -0
  1077. /package/{es/Select/rc-select → dist/Table}/interface.js +0 -0
  1078. /package/{es → dist}/Table/react-table-config.d.ts +0 -0
  1079. /package/{es/Typography → dist/Table}/style/index.d.ts +0 -0
  1080. /package/{es → dist}/Tabs/TabPane.d.ts +0 -0
  1081. /package/{es → dist}/Tabs/index.d.ts +0 -0
  1082. /package/{es/Upload → dist/Tabs}/style/index.d.ts +0 -0
  1083. /package/{es → dist}/Tooltip/index.d.ts +0 -0
  1084. /package/{es → dist}/Tooltip/index.js +0 -0
  1085. /package/{es/message → dist/Tooltip}/style/index.d.ts +0 -0
  1086. /package/{es/notification → dist/Tree}/style/index.d.ts +0 -0
  1087. /package/{es → dist}/Typography/index.d.ts +0 -0
  1088. /package/{lib/Alert → dist/Typography}/style/index.d.ts +0 -0
  1089. /package/{es/Skeleton → dist/Typography}/style/index.less +0 -0
  1090. /package/{lib/Avatar → dist/Upload}/style/index.d.ts +0 -0
  1091. /package/{es/Space → dist/Upload}/style/index.less +0 -0
  1092. /package/{es → dist}/_utils/hooks/useControlledState.js +0 -0
  1093. /package/{es → dist}/_utils/hooks/useId.d.ts +0 -0
  1094. /package/{es → dist}/_utils/hooks/useId.js +0 -0
  1095. /package/{es → dist}/locale/default.d.ts +0 -0
  1096. /package/{es → dist}/locale/en_US.d.ts +0 -0
  1097. /package/{es → dist}/locale/en_US.js +0 -0
  1098. /package/{es → dist}/locale/zh_CN.d.ts +0 -0
  1099. /package/{es → dist}/locale/zh_CN.js +0 -0
  1100. /package/{es → dist}/locale-provider/LocaleReceiver.d.ts +0 -0
  1101. /package/{es → dist}/locale-provider/LocaleReceiver.js +0 -0
  1102. /package/{es → dist}/locale-provider/context.js +0 -0
  1103. /package/{es → dist}/locale-provider/default.d.ts +0 -0
  1104. /package/{es → dist}/locale-provider/en_US.d.ts +0 -0
  1105. /package/{es → dist}/locale-provider/style/index.d.ts +0 -0
  1106. /package/{es → dist}/locale-provider/style/index.less +0 -0
  1107. /package/{es → dist}/locale-provider/zh_CN.d.ts +0 -0
  1108. /package/{lib/Breadcrumb → dist/message}/style/index.d.ts +0 -0
  1109. /package/{lib/Button → dist/notification}/style/index.d.ts +0 -0
  1110. /package/{es/Spin → dist/notification}/style/index.less +0 -0
  1111. /package/{es → dist}/style/index.d.ts +0 -0
  1112. /package/{es → dist}/style/mixins/index.less +0 -0
  1113. /package/{es → dist}/style/themes/default/index.less +0 -0
  1114. /package/{es → dist}/style/themes/default/scrollBar.less +0 -0
  1115. /package/{es → dist}/style/themes/default/themeColor.module.less.d.ts +0 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,238 +1,40 @@
1
- # 组件库开发规范
1
+ # @aloudata/aloudata-design
2
2
 
3
- ## 简介
3
+ [![NPM version](https://img.shields.io/npm/v/@aloudata/aloudata-design.svg?style=flat)](https://npmjs.org/package/@aloudata/aloudata-design)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/@aloudata/aloudata-design.svg?style=flat)](https://npmjs.org/package/@aloudata/aloudata-design)
4
5
 
5
- 本文档用于介绍组件库开发相关的规范以及组件库开发过程中的注意事项。
6
6
 
7
- ## 环境配置
8
7
 
9
- 组件库开发过程中,需要满足以下条件:
8
+ ## Usage
10
9
 
11
- Node version >= 16.0.0
10
+ TODO
12
11
 
13
- ## 组件库介绍
12
+ ## Options
14
13
 
15
- ### 1 快速开始
14
+ TODO
16
15
 
17
- #### 安装和启动
16
+ ## Development
18
17
 
19
18
  ```bash
20
- git clone https://codeup.aliyun.com/60dd34bf4690c27532d3d021/fe/aloudata-design.git
21
- cd aloudata-design
22
- yarn install
23
- yarn start
24
- ```
25
-
26
- #### 创建组件模板
27
-
28
- ```bash
29
- yarn run cmt //根据指令输入组件名称,创建组件开发模板
30
- ```
31
-
32
- #### 组件校验
33
-
34
- ```bash
35
- yarn run lint //stylelint、eslint 校验
36
- ```
37
-
38
- #### 组件测试
39
-
40
- ```bash
41
- yarn run test //单元测试
42
- ```
43
-
44
- #### 组件打包
45
-
46
- ```bash
47
- yarn run build //打包
48
- ```
49
-
50
- #### 组件本地link
51
-
52
- ```bash
53
- npm link //将组件库link到本地npm
54
- // 切换到业务项目目录,·引入组件库
55
- npm link @aloudata/aloudata-design // 业务项目中引入组件库
56
- ```
57
-
58
- ### 2 目录结构
59
-
60
- ```text
61
- .
62
- ├── README.md --> readme
63
- ├── docs --> 文档目录
64
- │   └── index.md
65
- ├── jest --> jest 脚本目录
66
- ├── public --> 公共资源目录
67
- │   ├── ad_logo.png
68
- │   ├── favicon.ico
69
- │   └── style
70
- ├── scripts --> 自定义脚本目录
71
- │   └── createComponentTemplate.mjs
72
- ├── lib --> 组件打包生成的lib目录
73
- ├── es --> 组件打包生成的es目录
74
- ├── src --> 组件目录
75
- ├── tsconfig.json --> tsconfig ts配置文件
76
- ├── .editorconfig
77
- ├── .eslintrc.js --> eslint ts等校验规则配置
78
- ├── .fatherrc.ts ---> father组件打包配置
79
- ├── .prettierrc.js ---> prettier 代码格式化配置
80
- ├── .stylelintrc.json ---> less 校验规则配置
81
- ├── .umirc.js ---> 脚手架配置
82
- ├── commitlint.config.js --> commit 配置规则
83
- ├── typings.d.ts
84
- ├── package-lock.json
85
- ├── package.json
86
- ├── yarn-error.log
87
- └── yarn.lock
88
- ```
89
-
90
- ### 3 代码风格
91
-
92
- 我们使用eslint+stylelint+prettier 来统一代码风格,同时**需要对vscode做一定的配置**,具体[配置参考](https://docs.dingtalk.com/i/nodes/mM3zoYAw1Rr8D5Nong2XWnZ07y9NpXxD?dontjump=true&iframeQuery=utm_source%3Dportal%26utm_medium%3Dportal_space_file_tree&navQuery=spaceId%3Da0gX104nML97WzeJ&nav=spaces)
93
-
94
- ts文件使用 *eslint* 校验, 配置文件 .eslintrc.js [查看规则](https://cn.eslint.org/docs/rules/)
95
- less文件使用 *stylelint* 校验, 配置文件 .stylelintrc.json [查看规则](https://stylelint.bootcss.com/user-guide/rules/list)
96
- 使用 *prettier* 格式化代码,配置文件 .prettierrc.js
97
-
98
- ## 组件开发指南(必读)
99
-
100
- ### 了解组件分类
101
-
102
- 1. 毛坯组件
103
- 原始的未做任何修改的antd组件
104
- 2. 简装组件
105
- 是指在毛坯组件的基础上,只简单了修改了一些颜色、样式等的组件
106
- 3. 精装组件
107
- 所谓精装组件,是指设计师精心设计过组件应用场景和UI的组件,可能基于antd,也可以完全自定义
108
-
109
- ### 单元测试
110
-
111
- 组件开发过程中需要写单测的,建议先写单测,然后进行开发。[了解TDD](https://baike.baidu.com/item/TDD/9064369)
112
-
113
- 哪些情况需要写单元测试:
114
-
115
- 1. 如果是基于antd的组件,但凡组件有api接口变动,必须要写单元测试
116
- 2. 非基于antd的组件,必须要写单元测试
117
- 3. 单元测试需要覆盖组件每一个api接口的各个状态
118
- 4. 单元测试文件以 *.test.tsx* 结尾
119
-
120
- 单元测试参考资料:
19
+ # install dependencies
20
+ $ yarn install
121
21
 
122
- - [jestjs](https://jestjs.io/zh-Hans/docs/getting-started)
123
- - [jest-dom](https://testing-library.com/docs/ecosystem-jest-dom/)
22
+ # develop library by docs demo
23
+ $ yarn start
124
24
 
125
- ### 组件开发注意事项
25
+ # build library source code
26
+ $ yarn run build
126
27
 
127
- 组件开发支持两种模式,基于antd开发和其它自定义开发。
28
+ # build library source code in watch mode
29
+ $ yarn run build:watch
128
30
 
129
- **基于antd开发:** 在业务满足的情况下,建议基于antd开发或者rc组件开发。方式是把antd组件引用过来,然后做升级修改之后,再作为ald组件暴露出去
31
+ # build docs
32
+ $ yarn run docs:build
130
33
 
131
- **自定义开发:** 当antd组件不满足业务的时候,可以自定义开发,允许引用其它基础组件进行二次开发或者完全自定义组件进行开发。通常是精装组件。
132
-
133
- 组件开发有以下几个**必须要注意**的点
134
-
135
- 1. 组件样式要和组件类进行分离,即在组件开发的过程中,不允许引用css、less等样式组件。样式单独写在style文件夹下。
136
- 2. 组件文档内的api接口展示,是获取组件属性props的接口interface定义来实现的(自定义md表格除外)。组件库脚手架对于组件接口interface有处理,即凡是接口来自于外部库引入的部分,不会被文档api识别,即无法展示。interface接口的每一个想要暴露的属性,都必须要写注释,主要包括类型、描述、默认值等。
137
- 3. 组件简装及以上,必须要写demo样例,用于展示已经支持的样式及功能
138
- 4. 精装组件必须要写单元测试。每一个组件的属性,都要在测例中进行测试,保证在组件的的维护修改过程中,不会出现bug。
139
- 5. 组件由ts编写,必须对外暴露所有可能在业务使用过程中需要的ts类型。
140
- 6. 组件库不使用css-module,请考虑权重问题,禁止出现 **!important** 这样的样式
141
-
142
- ### 组件库文档编写注意事项
143
-
144
- #### 文档前文frontMatter编写
145
-
146
- 在组件库官网展示的时候,会根据文档头部的信息,对文档进行分类,我们当前的计划是分成三类:设计、文档、组件;
147
-
148
- 在文档头部,使用YAML预发进行编写,用于描述组件的文档的信息,如:
149
-
150
- ```yaml
151
- ---
152
- nav:
153
- title: 组件
154
- path: /components
155
- title: Select 选择器
156
- group:
157
- title: 组件
158
- ---
34
+ # check your project for potential problems
35
+ $ yarn run doctor
159
36
  ```
160
37
 
161
- 具体参考:[FrontMatter](https://d.umijs.org/zh-CN/config/frontmatter)
162
-
163
- #### 组件场景用例demo展示
164
-
165
- 每个简装以上组件都需要展示场景用例,写在src/**/demos/文件夹下
166
- demo项目中,像在业务中使用aloudata-design一样,脚手架会自动关联项目到node-modules下。(建议先build一下,然后再进行demo展示)
167
- 在组件的md文档中使用code引入用例,在文档中展示用例,如:
168
-
169
- ```jsx
170
- <code src="./demos/single/index.tsx" title="单项选择"/>
171
- ```
172
-
173
- 关于demo的配置,即code的用法,请参考[demo配置](https://d.umijs.org/zh-CN/config/frontmatter#demo-%E9%85%8D%E7%BD%AE%E9%A1%B9)
174
-
175
- #### 组件api展示
176
-
177
- api展示为表格形势,可以使用**API**标签,如:
178
-
179
- ```jsx
180
- <API src="/path/to/your/component.tsx" hideTitle></API>
181
- ```
182
-
183
- 参考文档:[API](https://d.umijs.org/zh-CN/guide/advanced#%E5%9C%A8%E6%96%87%E6%A1%A3%E4%B8%AD%E5%B1%95%E7%A4%BA-api)
184
-
185
- 也可以自己使用md语法写表格
186
-
187
- ```md
188
- | 属性 | 描述 | 类型 | 默认值 |
189
- | ---- | ---- | ---- | ---- |
190
- | value | 某个值 | string | 当前选中的值 |
191
- ```
192
-
193
- ### 关于组件模板创建
194
-
195
- 使用 *npm run cmt* 创建的组件模板只是做一个参考,需要自己根据实际需求进行修改
196
-
197
- ## 关于组件库打包
198
-
199
- ### 一、组件打包
200
-
201
- ```bash
202
- npm run build
203
- ```
204
-
205
- 组件打包的入口在src/index.tsx,必须在文件总暴露出来,组件才会被打包。
206
- 组件打包使用umi框架的 [falter](https://github.com/umijs/father) 打包工具, 具体配置在 .fatherrc.ts中。打包后会生成lib目录,es目录。
207
-
208
- ### 二、官方网站打包
209
-
210
- ```bash
211
- npm run docs:build
212
- ```
213
-
214
- 官网打包我们默认使用dumi站点模式,会分为设计、文档、组件三个版块,其中设计和文档版块的内容在docs目录下,组件版块的内容在src/**/*.test.md文件中。
215
-
216
- 1. 设计部分用于描述组件的设计理念,内容由设计师提供,可以是链接,也可以是资料等。
217
- 2. 文档用于描述组件库开发的一些信息等。
218
- 3. 组件用于展示组件的使用场景用例,组件的一些信息,组件的api接口等
219
-
220
- ### 官方网站样式修改
221
-
222
- 请在./public/style/common.css 中自定义修改样式
223
-
224
- ## 按需引用
38
+ ## LICENSE
225
39
 
226
- ```js
227
- [
228
- 'import',
229
- {
230
- libraryName: '@aloudata/aloudata-design',
231
- libraryDirectory: 'es',
232
- style:(name)=>{
233
- return `${name}/style/index.less`
234
- },
235
- camel2DashComponentName: false,
236
- },
237
- ]
238
- ```
40
+ MIT
@@ -0,0 +1,4 @@
1
+ import { Alert } from 'antd';
2
+ import { AlertProps } from 'antd/lib/alert';
3
+ export type { AlertProps };
4
+ export default Alert;
@@ -0,0 +1,2 @@
1
+ import { Alert } from 'antd';
2
+ export default Alert;
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";
@@ -0,0 +1,44 @@
1
+ var _excluded = ["size", "showFullValue", "children"];
2
+
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
9
+ import * as React from 'react';
10
+ import InternalAvatar from 'antd/es/avatar/avatar';
11
+ import classNames from 'classnames';
12
+ var ZERO = 0;
13
+
14
+ var Avatar = function Avatar(props) {
15
+ var _props$size = props.size,
16
+ size = _props$size === void 0 ? 'middle' : _props$size,
17
+ _props$showFullValue = props.showFullValue,
18
+ showFullValue = _props$showFullValue === void 0 ? false : _props$showFullValue,
19
+ children = props.children,
20
+ restProps = _objectWithoutProperties(props, _excluded);
21
+
22
+ var getSizeClass = function getSizeClass(avatarSize) {
23
+ if (['large', 'small', 'mini'].includes("".concat(avatarSize))) {
24
+ return classNames('ald-avatar', "ald-avatar-".concat(avatarSize));
25
+ }
26
+
27
+ return classNames('ald-avatar', 'ald-avatar-middle');
28
+ };
29
+
30
+ var getChildren = function getChildren() {
31
+ if (!showFullValue && typeof children === 'string') {
32
+ return children[ZERO].toLocaleUpperCase();
33
+ }
34
+
35
+ return children;
36
+ };
37
+
38
+ return /*#__PURE__*/React.createElement(InternalAvatar, _extends({
39
+ size: typeof size === 'number' ? size : undefined,
40
+ className: getSizeClass(size)
41
+ }, restProps), getChildren());
42
+ };
43
+
44
+ export default Avatar;
@@ -0,0 +1,4 @@
1
+ import Group from 'antd/es/avatar/group';
2
+ import Avatar from "./component/Avatar";
3
+ Avatar.Group = Group;
4
+ export default Avatar;
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";
@@ -0,0 +1,47 @@
1
+ var _excluded = ["className", "separator"],
2
+ _excluded2 = ["className"];
3
+
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+
6
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
7
+
8
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
+
10
+ import React from 'react';
11
+ import { Breadcrumb as AntdBreadcrumb } from 'antd';
12
+ import classNames from 'classnames';
13
+
14
+ var Breadcrumb = function Breadcrumb(props) {
15
+ var className = props.className,
16
+ separator = props.separator,
17
+ restProps = _objectWithoutProperties(props, _excluded);
18
+
19
+ var getSeparator = function getSeparator() {
20
+ if (separator === null) {
21
+ return separator;
22
+ }
23
+
24
+ return separator || /*#__PURE__*/React.createElement("span", {
25
+ className: "default-separator"
26
+ });
27
+ };
28
+
29
+ return /*#__PURE__*/React.createElement(AntdBreadcrumb, _extends({}, restProps, {
30
+ separator: getSeparator(),
31
+ className: classNames('ald-breadcrumb', className)
32
+ }));
33
+ };
34
+
35
+ var BreadcrumbItem = function BreadcrumbItem(props) {
36
+ var className = props.className,
37
+ restProps = _objectWithoutProperties(props, _excluded2);
38
+
39
+ return /*#__PURE__*/React.createElement(AntdBreadcrumb.Item, _extends({}, restProps, {
40
+ className: classNames('ald-breadcrumb-item', className)
41
+ }));
42
+ }; // eslint-disable-next-line no-underscore-dangle
43
+
44
+
45
+ BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
46
+ Breadcrumb.Item = BreadcrumbItem;
47
+ export default Breadcrumb;
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";
@@ -0,0 +1,58 @@
1
+ import type { ButtonProps as AntdButtonProps, ButtonType as AntdButtonType } from 'antd/lib/button';
2
+ import React from 'react';
3
+ export declare const btnPrefix = "ald-btn";
4
+ export declare type ButtonType = 'primary' | 'secondary' | 'dangerous' | 'text' | 'link';
5
+ export declare type Size = 'small' | 'middle' | 'large';
6
+ export interface IButtonProps extends Omit<AntdButtonProps, 'type' | 'size' | 'dangerous' | 'shape' | 'icon' | 'href' | 'target' | 'onClick' | 'loading'> {
7
+ /**
8
+ * @description 类型
9
+ * @type 'primary' | 'secondary' | 'dangerous' | 'text' | 'link'
10
+ * @default primary
11
+ */
12
+ type?: ButtonType;
13
+ /**
14
+ * @description 尺寸
15
+ * @type 'small' | 'default' | 'large'
16
+ * @default large
17
+ */
18
+ size?: Size;
19
+ /**
20
+ * @description 是否禁用
21
+ * @default false
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * @description 设置按钮的图标组件
26
+ */
27
+ icon?: React.ReactNode;
28
+ shape?: 'circle' | 'default';
29
+ /**
30
+ * @description 指定此属性,点击行为和a链接一致
31
+ */
32
+ href?: string;
33
+ /**
34
+ * @description 相当于 a 链接的 target 属性,href 存在时生效
35
+ */
36
+ target?: string;
37
+ /**
38
+ * @description 点击按钮时的回调
39
+ */
40
+ onClick?: React.MouseEventHandler<HTMLElement>;
41
+ /**
42
+ * @description 设置按钮进入载入状态
43
+ * @default false
44
+ */
45
+ loading?: boolean | {
46
+ delay?: number;
47
+ };
48
+ }
49
+ export declare function getButtonType(buttonType: ButtonType): AntdButtonType;
50
+ export declare function getDangerStatus(buttonType: ButtonType): boolean;
51
+ export declare function getButtonSizeClass(ButtonSize: Size): string;
52
+ export declare function getIconSize(ButtonSize: Size): number;
53
+ export declare function getShape(ButtonShape: 'circle' | 'default'): 'circle' | 'default';
54
+ export declare const setIcon: (iconNode: React.ReactElement, size: Size, loading: boolean | {
55
+ delay?: number | undefined;
56
+ }) => JSX.Element;
57
+ declare function Button(props: IButtonProps): JSX.Element;
58
+ export default Button;
@@ -0,0 +1,116 @@
1
+ var _excluded = ["type", "size", "shape", "loading", "disabled", "icon", "className"];
2
+
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10
+
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+
13
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+
15
+ import { LoadingLine } from '@aloudata/icons-react';
16
+ import { Button as AntdButton } from 'antd';
17
+ import classNames from 'classnames';
18
+ import React from 'react';
19
+ var iconPrefixCls = 'aldicon';
20
+ var ICON_LARGE = 24;
21
+ var ICON_MIDDLE = 20;
22
+ var ICON_SMALL = 16;
23
+ export var btnPrefix = 'ald-btn';
24
+ export function getButtonType(buttonType) {
25
+ if (!['primary', 'secondary', 'dangerous', 'text', 'link'].includes(buttonType)) {
26
+ return 'default';
27
+ }
28
+
29
+ if (buttonType === 'dangerous') {
30
+ return 'primary';
31
+ }
32
+
33
+ if (buttonType === 'secondary') {
34
+ return 'default';
35
+ }
36
+
37
+ return buttonType;
38
+ }
39
+ export function getDangerStatus(buttonType) {
40
+ if (buttonType === 'dangerous') {
41
+ return true;
42
+ }
43
+
44
+ return false;
45
+ }
46
+ export function getButtonSizeClass(ButtonSize) {
47
+ return ButtonSize === 'middle' || undefined ? "".concat(btnPrefix, "-middle") : "".concat(btnPrefix, "-").concat(ButtonSize);
48
+ }
49
+ export function getIconSize(ButtonSize) {
50
+ if (ButtonSize === 'large') {
51
+ return ICON_LARGE;
52
+ }
53
+
54
+ if (ButtonSize === 'small') {
55
+ return ICON_SMALL;
56
+ }
57
+
58
+ return ICON_MIDDLE;
59
+ }
60
+ export function getShape(ButtonShape) {
61
+ if (ButtonShape === 'circle') {
62
+ return ButtonShape;
63
+ }
64
+
65
+ return 'default';
66
+ }
67
+ export var setIcon = function setIcon(iconNode, size, loading) {
68
+ if (iconNode) {
69
+ var p = _objectSpread({
70
+ className: '',
71
+ size: ICON_LARGE,
72
+ fill: 'currentColor'
73
+ }, iconNode.props);
74
+
75
+ p.className = classNames("".concat(iconPrefixCls, "-icon-left"), p.className, iconPrefixCls);
76
+ p.size = getIconSize(size);
77
+ return /*#__PURE__*/React.cloneElement(iconNode, p);
78
+ }
79
+
80
+ if (loading) {
81
+ return /*#__PURE__*/React.createElement(LoadingLine, {
82
+ spin: true,
83
+ size: ICON_LARGE,
84
+ className: classNames("".concat(iconPrefixCls, "-icon-left"), iconPrefixCls),
85
+ fill: "currentColor"
86
+ });
87
+ }
88
+
89
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
90
+ };
91
+
92
+ function Button(props) {
93
+ var _props$type = props.type,
94
+ type = _props$type === void 0 ? 'secondary' : _props$type,
95
+ _props$size = props.size,
96
+ size = _props$size === void 0 ? 'middle' : _props$size,
97
+ _props$shape = props.shape,
98
+ shape = _props$shape === void 0 ? 'default' : _props$shape,
99
+ _props$loading = props.loading,
100
+ loading = _props$loading === void 0 ? false : _props$loading,
101
+ disabled = props.disabled,
102
+ icon = props.icon,
103
+ className = props.className,
104
+ rest = _objectWithoutProperties(props, _excluded);
105
+
106
+ return /*#__PURE__*/React.createElement(AntdButton, _extends({}, rest, {
107
+ disabled: loading ? true : disabled,
108
+ icon: setIcon(icon, size, loading),
109
+ type: getButtonType(type),
110
+ className: classNames(btnPrefix, "".concat(btnPrefix, "-").concat(type), className, getButtonSizeClass(size)),
111
+ danger: getDangerStatus(type),
112
+ shape: getShape(shape)
113
+ }), props.children);
114
+ }
115
+
116
+ export default Button;
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";