@aloudata/aloudata-design 0.1.0-beta1 → 0.2.0-beta.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 (402) hide show
  1. package/README.md +22 -13
  2. package/es/Button/demo/Icon/index.d.ts +3 -0
  3. package/es/Button/demo/Icon/index.js +67 -0
  4. package/{src → es}/Button/demo/Icon/index.less +0 -0
  5. package/es/Button/demo/basic/index.d.ts +4 -0
  6. package/es/Button/demo/basic/index.js +57 -0
  7. package/{src → es}/Button/demo/basic/index.less +0 -1
  8. package/es/Button/demo/disable/index.d.ts +3 -0
  9. package/es/Button/demo/disable/index.js +23 -0
  10. package/{src → es}/Button/demo/disable/index.less +0 -0
  11. package/es/Button/demo/href/index.d.ts +2 -0
  12. package/es/Button/demo/href/index.js +17 -0
  13. package/es/Button/demo/loading/index.d.ts +3 -0
  14. package/es/Button/demo/loading/index.js +37 -0
  15. package/{src → es}/Button/demo/loading/index.less +0 -0
  16. package/es/Button/index.d.ts +50 -0
  17. package/es/Button/index.js +108 -0
  18. package/es/Button/style/index.d.ts +2 -0
  19. package/es/Button/style/index.js +2 -0
  20. package/{src → es}/Button/style/index.less +5 -5
  21. package/es/Dropdown/Button.d.ts +69 -0
  22. package/es/Dropdown/Button.js +39 -0
  23. package/es/Dropdown/demo/basic/index.d.ts +4 -0
  24. package/es/Dropdown/demo/basic/index.js +18 -0
  25. package/es/Dropdown/demo/button/index.d.ts +3 -0
  26. package/es/Dropdown/demo/button/index.js +159 -0
  27. package/{src → es}/Dropdown/demo/button/index.less +0 -0
  28. package/es/Dropdown/demo/placement/index.d.ts +2 -0
  29. package/es/Dropdown/demo/placement/index.js +40 -0
  30. package/es/Dropdown/demo/subMenu/index.d.ts +2 -0
  31. package/es/Dropdown/demo/subMenu/index.js +42 -0
  32. package/es/Dropdown/demo/trigger/index.d.ts +2 -0
  33. package/es/Dropdown/demo/trigger/index.js +17 -0
  34. package/es/Dropdown/index.d.ts +59 -0
  35. package/es/Dropdown/index.js +33 -0
  36. package/es/Dropdown/style/index.d.ts +2 -0
  37. package/es/Dropdown/style/index.js +2 -0
  38. package/{src → es}/Dropdown/style/index.less +0 -0
  39. package/es/Empty/index.d.ts +8 -0
  40. package/es/Empty/index.js +57 -0
  41. package/es/Empty/style/index.d.ts +1 -0
  42. package/es/Empty/style/index.js +1 -0
  43. package/es/Empty/style/index.less +23 -0
  44. package/{src → es}/Icon/iconfont/demo.css +0 -0
  45. package/{src → es}/Icon/iconfont/demo_index.html +49 -3
  46. package/es/Icon/iconfont/iconfont.css +101 -0
  47. package/es/Icon/iconfont/iconfont.js +46 -0
  48. package/{src → es}/Icon/iconfont/iconfont.json +14 -0
  49. package/es/Icon/iconfont/iconfont.ttf +0 -0
  50. package/es/Icon/iconfont/iconfont.woff +0 -0
  51. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  52. package/es/Icon/index.d.ts +11 -0
  53. package/es/Icon/index.js +42 -0
  54. package/{src → es}/Icon/index.less +3 -3
  55. package/es/Input/components/Group/index.d.ts +14 -0
  56. package/es/Input/components/Group/index.js +12 -0
  57. package/es/Input/components/Password/index.d.ts +9 -0
  58. package/es/Input/components/Password/index.js +20 -0
  59. package/es/Input/components/TextArea/index.d.ts +52 -0
  60. package/es/Input/components/TextArea/index.js +14 -0
  61. package/es/Input/demo/allowClear/index.d.ts +3 -0
  62. package/es/Input/demo/allowClear/index.js +11 -0
  63. package/{src → es}/Input/demo/allowClear/index.less +0 -0
  64. package/es/Input/demo/basic/index.d.ts +4 -0
  65. package/es/Input/demo/basic/index.js +65 -0
  66. package/{src → es}/Input/demo/basic/index.less +1 -1
  67. package/es/Input/demo/gourp/index.d.ts +2 -0
  68. package/es/Input/demo/gourp/index.js +67 -0
  69. package/es/Input/demo/password/index.d.ts +3 -0
  70. package/es/Input/demo/password/index.js +21 -0
  71. package/{src → es}/Input/demo/password/index.less +0 -0
  72. package/es/Input/demo/prefix/index.d.ts +3 -0
  73. package/es/Input/demo/prefix/index.js +17 -0
  74. package/{src → es}/Input/demo/prefix/index.less +0 -0
  75. package/es/Input/demo/showCount/index.d.ts +3 -0
  76. package/es/Input/demo/showCount/index.js +17 -0
  77. package/{src → es}/Input/demo/showCount/index.less +0 -0
  78. package/es/Input/demo/textArea/autoSize.d.ts +2 -0
  79. package/es/Input/demo/textArea/autoSize.js +50 -0
  80. package/es/Input/index.d.ts +65 -0
  81. package/es/Input/index.js +46 -0
  82. package/es/Input/style/index.d.ts +2 -0
  83. package/es/Input/style/index.js +2 -0
  84. package/{src → es}/Input/style/index.less +4 -1
  85. package/es/Menu/Divider.d.ts +4 -0
  86. package/es/Menu/Divider.js +15 -0
  87. package/es/Menu/MenuItem.d.ts +17 -0
  88. package/es/Menu/MenuItem.js +15 -0
  89. package/es/Menu/SubMenu.d.ts +26 -0
  90. package/es/Menu/SubMenu.js +29 -0
  91. package/es/Menu/index.d.ts +20 -0
  92. package/es/Menu/index.js +31 -0
  93. package/es/Menu/style/index.d.ts +2 -0
  94. package/es/Menu/style/index.js +2 -0
  95. package/{src → es}/Menu/style/index.less +4 -0
  96. package/es/Navigator/components/Menu/index.d.ts +19 -0
  97. package/es/Navigator/components/Menu/index.js +187 -0
  98. package/es/Navigator/demo/basic/index.d.ts +4 -0
  99. package/es/Navigator/demo/basic/index.js +45 -0
  100. package/es/Navigator/demo/basic/index.less +3 -0
  101. package/es/Navigator/demo/example/index.d.ts +4 -0
  102. package/es/Navigator/demo/example/index.js +153 -0
  103. package/es/Navigator/demo/example/index.less +10 -0
  104. package/es/Navigator/demo/logo.png +0 -0
  105. package/es/Navigator/demo/menuWithFooter/index.d.ts +4 -0
  106. package/es/Navigator/demo/menuWithFooter/index.js +73 -0
  107. package/es/Navigator/demo/menuWithFooter/index.less +3 -0
  108. package/es/Navigator/demo/subMenu/index.d.ts +4 -0
  109. package/es/Navigator/demo/subMenu/index.js +71 -0
  110. package/es/Navigator/demo/subMenu/index.less +3 -0
  111. package/es/Navigator/index.d.ts +41 -0
  112. package/es/Navigator/index.js +45 -0
  113. package/es/Navigator/style/index.d.ts +2 -0
  114. package/es/Navigator/style/index.js +2 -0
  115. package/es/Navigator/style/index.less +224 -0
  116. package/es/Select/BaseSelect.d.ts +5 -0
  117. package/es/Select/BaseSelect.js +400 -0
  118. package/{src/Select/OptionsList/OptGroup.tsx → es/Select/OptionsList/OptGroup.d.ts} +2 -4
  119. package/es/Select/OptionsList/OptGroup.js +6 -0
  120. package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
  121. package/es/Select/OptionsList/OptionItem/RenderGroup.js +16 -0
  122. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
  123. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +44 -0
  124. package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
  125. package/es/Select/OptionsList/OptionItem/RenderOption.js +79 -0
  126. package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
  127. package/es/Select/OptionsList/OptionItem/RenderTooltip.js +25 -0
  128. package/es/Select/OptionsList/OptionItem.d.ts +4 -0
  129. package/es/Select/OptionsList/OptionItem.js +4 -0
  130. package/es/Select/OptionsList/Options.d.ts +7 -0
  131. package/es/Select/OptionsList/Options.js +6 -0
  132. package/es/Select/OptionsList/index.d.ts +4 -0
  133. package/es/Select/OptionsList/index.js +187 -0
  134. package/es/Select/Selector/index.d.ts +4 -0
  135. package/es/Select/Selector/index.js +252 -0
  136. package/es/Select/VirtualList.d.ts +5 -0
  137. package/es/Select/VirtualList.js +29 -0
  138. package/es/Select/demo/disabled/index.d.ts +2 -0
  139. package/es/Select/demo/disabled/index.js +50 -0
  140. package/es/Select/demo/multiple/index.d.ts +2 -0
  141. package/es/Select/demo/multiple/index.js +140 -0
  142. package/es/Select/demo/options/index.d.ts +2 -0
  143. package/es/Select/demo/options/index.js +55 -0
  144. package/es/Select/demo/single/index.d.ts +3 -0
  145. package/es/Select/demo/single/index.js +89 -0
  146. package/es/Select/demo/single/index.less +5 -0
  147. package/es/Select/hooks/useCacheOption.d.ts +9 -0
  148. package/es/Select/hooks/useCacheOption.js +107 -0
  149. package/es/Select/index.d.ts +12 -0
  150. package/es/Select/index.js +9 -0
  151. package/es/Select/interface.d.ts +227 -0
  152. package/es/Select/interface.js +1 -0
  153. package/es/Select/style/index.d.ts +2 -0
  154. package/es/Select/style/index.js +2 -0
  155. package/{src → es}/Select/style/index.less +3 -10
  156. package/es/Select/utils.d.ts +21 -0
  157. package/es/Select/utils.js +193 -0
  158. package/es/Table/demo/basic/createData.d.ts +9 -0
  159. package/es/Table/demo/basic/createData.js +18 -0
  160. package/es/Table/demo/basic/index.d.ts +2 -0
  161. package/es/Table/demo/basic/index.js +64 -0
  162. package/es/Table/demo/editCell/index.d.ts +2 -0
  163. package/es/Table/demo/editCell/index.js +39 -0
  164. package/es/Table/demo/renderHeaderRight/index.d.ts +2 -0
  165. package/es/Table/demo/renderHeaderRight/index.js +37 -0
  166. package/es/Table/demo/rowSelect/index.d.ts +2 -0
  167. package/es/Table/demo/rowSelect/index.js +40 -0
  168. package/es/Table/demo/virtualList/index.d.ts +2 -0
  169. package/es/Table/demo/virtualList/index.js +88 -0
  170. package/es/Table/index.d.ts +5 -0
  171. package/es/Table/index.js +201 -0
  172. package/es/Table/interface.d.ts +14 -0
  173. package/es/Table/interface.js +1 -0
  174. package/es/Table/style/index.d.ts +2 -0
  175. package/es/Table/style/index.js +2 -0
  176. package/es/Table/style/index.less +111 -0
  177. package/es/Tabs/TabPane.d.ts +21 -0
  178. package/es/Tabs/TabPane.js +12 -0
  179. package/es/Tabs/demo/adaptHeight/index.d.ts +3 -0
  180. package/es/Tabs/demo/adaptHeight/index.js +19 -0
  181. package/{src → es}/Tabs/demo/adaptHeight/index.less +0 -0
  182. package/es/Tabs/demo/basic/index.d.ts +4 -0
  183. package/es/Tabs/demo/basic/index.js +44 -0
  184. package/{src → es}/Tabs/demo/basic/index.less +0 -0
  185. package/es/Tabs/demo/horizontalScroll/index.d.ts +3 -0
  186. package/es/Tabs/demo/horizontalScroll/index.js +30 -0
  187. package/{src → es}/Tabs/demo/horizontalScroll/index.less +0 -0
  188. package/es/Tabs/index.d.ts +41 -0
  189. package/es/Tabs/index.js +42 -0
  190. package/es/Tabs/style/index.d.ts +2 -0
  191. package/es/Tabs/style/index.js +2 -0
  192. package/{src → es}/Tabs/style/index.less +0 -0
  193. package/es/Tooltip/demo/basic/index.d.ts +2 -0
  194. package/es/Tooltip/demo/basic/index.js +7 -0
  195. package/es/Tooltip/demo/overflow/index.d.ts +2 -0
  196. package/es/Tooltip/demo/overflow/index.js +7 -0
  197. package/es/Tooltip/demo/placement/index.d.ts +6 -0
  198. package/es/Tooltip/demo/placement/index.js +70 -0
  199. package/{src → es}/Tooltip/demo/placement/index.less +0 -0
  200. package/es/Tooltip/demo/trigger/index.d.ts +3 -0
  201. package/es/Tooltip/demo/trigger/index.js +20 -0
  202. package/{src → es}/Tooltip/demo/trigger/index.less +0 -0
  203. package/es/Tooltip/index.d.ts +64 -0
  204. package/es/Tooltip/index.js +33 -0
  205. package/es/Tooltip/style/index.d.ts +2 -0
  206. package/es/Tooltip/style/index.js +2 -0
  207. package/{src → es}/Tooltip/style/index.less +0 -0
  208. package/es/_utils/hooks/useControlledState.d.ts +2 -0
  209. package/es/_utils/hooks/useControlledState.js +54 -0
  210. package/es/_utils/hooks/usePrefixCls.d.ts +2 -0
  211. package/es/_utils/hooks/usePrefixCls.js +14 -0
  212. package/es/index.d.ts +10 -0
  213. package/{src/index.ts → es/index.js} +3 -1
  214. package/es/style/index.d.ts +2 -0
  215. package/{src/style/index.ts → es/style/index.js} +0 -0
  216. package/{src → es}/style/index.less +0 -0
  217. package/{src → es}/style/mixins/index.less +0 -0
  218. package/{src → es}/style/themes/default/index.less +1 -1
  219. package/{lib/style/themes/default/themeColor.less → es/style/themes/default/themeColor.module.less} +0 -0
  220. package/es/style/themes/default/themeColor.module.less.d.ts +108 -0
  221. package/lib/Button/demo/basic/index.less +0 -1
  222. package/lib/Button/index.js +2 -2
  223. package/lib/Button/style/index.less +5 -5
  224. package/lib/Dropdown/demo/button/index.js +1 -1
  225. package/lib/Empty/index.d.ts +8 -0
  226. package/lib/Empty/index.js +71 -0
  227. package/lib/Empty/style/index.d.ts +1 -0
  228. package/lib/Empty/style/index.js +3 -0
  229. package/lib/Empty/style/index.less +23 -0
  230. package/lib/Icon/iconfont/demo_index.html +49 -3
  231. package/lib/Icon/iconfont/iconfont.css +11 -3
  232. package/lib/Icon/iconfont/iconfont.js +1 -1
  233. package/lib/Icon/iconfont/iconfont.json +14 -0
  234. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  235. package/lib/Icon/iconfont/iconfont.woff +0 -0
  236. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  237. package/lib/Icon/index.less +3 -3
  238. package/lib/Input/components/Group/index.d.ts +0 -1
  239. package/lib/Input/components/Password/index.d.ts +0 -1
  240. package/lib/Input/demo/basic/index.less +1 -1
  241. package/lib/Input/style/index.less +4 -1
  242. package/lib/Menu/Divider.d.ts +0 -1
  243. package/lib/Menu/style/index.less +4 -0
  244. package/lib/Navigator/components/Menu/index.d.ts +19 -0
  245. package/lib/Navigator/components/Menu/index.js +205 -0
  246. package/lib/Navigator/demo/basic/index.d.ts +4 -0
  247. package/lib/Navigator/demo/basic/index.js +62 -0
  248. package/lib/Navigator/demo/basic/index.less +3 -0
  249. package/lib/Navigator/demo/example/index.d.ts +4 -0
  250. package/lib/Navigator/demo/example/index.js +179 -0
  251. package/lib/Navigator/demo/example/index.less +10 -0
  252. package/lib/Navigator/demo/logo.png +0 -0
  253. package/lib/Navigator/demo/menuWithFooter/index.d.ts +4 -0
  254. package/lib/Navigator/demo/menuWithFooter/index.js +92 -0
  255. package/lib/Navigator/demo/menuWithFooter/index.less +3 -0
  256. package/lib/Navigator/demo/subMenu/index.d.ts +4 -0
  257. package/lib/Navigator/demo/subMenu/index.js +88 -0
  258. package/lib/Navigator/demo/subMenu/index.less +3 -0
  259. package/lib/Navigator/index.d.ts +41 -0
  260. package/lib/Navigator/index.js +64 -0
  261. package/lib/Navigator/style/index.d.ts +2 -0
  262. package/lib/Navigator/style/index.js +5 -0
  263. package/lib/Navigator/style/index.less +224 -0
  264. package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
  265. package/lib/Select/OptionsList/OptionItem/RenderGroup.js +27 -0
  266. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
  267. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +58 -0
  268. package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
  269. package/lib/Select/OptionsList/OptionItem/RenderOption.js +94 -0
  270. package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
  271. package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +37 -0
  272. package/lib/Select/OptionsList/OptionItem.d.ts +4 -35
  273. package/lib/Select/OptionsList/OptionItem.js +26 -172
  274. package/lib/Select/OptionsList/Options.d.ts +2 -2
  275. package/lib/Select/OptionsList/index.js +1 -1
  276. package/lib/Select/Selector/index.d.ts +2 -2
  277. package/lib/Select/Selector/index.js +13 -10
  278. package/lib/Select/demo/single/index.d.ts +1 -0
  279. package/lib/Select/demo/single/index.js +5 -1
  280. package/lib/Select/demo/single/index.less +5 -0
  281. package/lib/Select/interface.d.ts +8 -2
  282. package/lib/Select/style/index.less +3 -10
  283. package/lib/Table/demo/basic/createData.d.ts +9 -0
  284. package/lib/Table/demo/basic/createData.js +23 -0
  285. package/lib/Table/demo/basic/index.d.ts +2 -0
  286. package/lib/Table/demo/basic/index.js +80 -0
  287. package/lib/Table/demo/editCell/index.d.ts +2 -0
  288. package/lib/Table/demo/editCell/index.js +54 -0
  289. package/lib/Table/demo/renderHeaderRight/index.d.ts +2 -0
  290. package/lib/Table/demo/renderHeaderRight/index.js +52 -0
  291. package/lib/Table/demo/rowSelect/index.d.ts +2 -0
  292. package/lib/Table/demo/rowSelect/index.js +55 -0
  293. package/lib/Table/demo/virtualList/index.d.ts +2 -0
  294. package/lib/Table/demo/virtualList/index.js +103 -0
  295. package/lib/Table/index.d.ts +5 -0
  296. package/lib/Table/index.js +225 -0
  297. package/lib/Table/interface.d.ts +14 -0
  298. package/lib/Table/interface.js +5 -0
  299. package/lib/Table/style/index.d.ts +2 -0
  300. package/lib/Table/style/index.js +5 -0
  301. package/lib/Table/style/index.less +111 -0
  302. package/lib/Tooltip/index.d.ts +1 -0
  303. package/lib/Tooltip/index.js +3 -1
  304. package/lib/index.d.ts +2 -0
  305. package/lib/index.js +16 -0
  306. package/lib/style/themes/default/index.less +1 -1
  307. package/{src/style/themes/default/themeColor.less → lib/style/themes/default/themeColor.module.less} +0 -0
  308. package/lib/style/themes/default/themeColor.module.less.d.ts +108 -0
  309. package/package.json +24 -8
  310. package/.editorconfig +0 -16
  311. package/.eslintrc.js +0 -43
  312. package/.fatherrc.ts +0 -16
  313. package/.prettierignore +0 -7
  314. package/.prettierrc.js +0 -1
  315. package/.stylelintrc.json +0 -36
  316. package/.umirc.ts +0 -15
  317. package/commitlint.config.js +0 -21
  318. package/docs/index.md +0 -21
  319. package/jest/setupTests.js +0 -1
  320. package/public/favicon.ico +0 -0
  321. package/src/Button/demo/Icon/index.tsx +0 -41
  322. package/src/Button/demo/basic/index.tsx +0 -26
  323. package/src/Button/demo/disable/index.tsx +0 -16
  324. package/src/Button/demo/href/index.tsx +0 -14
  325. package/src/Button/demo/loading/index.tsx +0 -21
  326. package/src/Button/index.md +0 -25
  327. package/src/Button/index.test.tsx +0 -58
  328. package/src/Button/index.tsx +0 -136
  329. package/src/Button/style/index.ts +0 -2
  330. package/src/Dropdown/Button.tsx +0 -93
  331. package/src/Dropdown/demo/basic/index.tsx +0 -20
  332. package/src/Dropdown/demo/button/index.tsx +0 -98
  333. package/src/Dropdown/demo/placement/index.tsx +0 -47
  334. package/src/Dropdown/demo/subMenu/index.tsx +0 -35
  335. package/src/Dropdown/demo/trigger/index.tsx +0 -19
  336. package/src/Dropdown/index.md +0 -35
  337. package/src/Dropdown/index.test.tsx +0 -185
  338. package/src/Dropdown/index.tsx +0 -71
  339. package/src/Dropdown/style/index.ts +0 -2
  340. package/src/Icon/iconfont/iconfont.css +0 -93
  341. package/src/Icon/iconfont/iconfont.js +0 -1
  342. package/src/Icon/iconfont/iconfont.ttf +0 -0
  343. package/src/Icon/iconfont/iconfont.woff +0 -0
  344. package/src/Icon/iconfont/iconfont.woff2 +0 -0
  345. package/src/Icon/index.tsx +0 -38
  346. package/src/Input/components/Group/index.tsx +0 -21
  347. package/src/Input/components/Password/index.tsx +0 -23
  348. package/src/Input/components/TextArea/index.tsx +0 -57
  349. package/src/Input/demo/allowClear/index.tsx +0 -10
  350. package/src/Input/demo/basic/index.tsx +0 -25
  351. package/src/Input/demo/gourp/index.tsx +0 -30
  352. package/src/Input/demo/password/index.tsx +0 -11
  353. package/src/Input/demo/prefix/index.tsx +0 -13
  354. package/src/Input/demo/showCount/index.tsx +0 -16
  355. package/src/Input/demo/textArea/autoSize.tsx +0 -21
  356. package/src/Input/index.md +0 -37
  357. package/src/Input/index.test.tsx +0 -78
  358. package/src/Input/index.tsx +0 -91
  359. package/src/Input/style/index.ts +0 -2
  360. package/src/Menu/Divider.tsx +0 -12
  361. package/src/Menu/MenuItem.tsx +0 -24
  362. package/src/Menu/SubMenu.tsx +0 -37
  363. package/src/Menu/index.md +0 -36
  364. package/src/Menu/index.test.tsx +0 -144
  365. package/src/Menu/index.tsx +0 -27
  366. package/src/Menu/style/index.ts +0 -2
  367. package/src/Select/BaseSelect.tsx +0 -321
  368. package/src/Select/OptionsList/OptionItem.tsx +0 -151
  369. package/src/Select/OptionsList/Options.tsx +0 -11
  370. package/src/Select/OptionsList/index.tsx +0 -169
  371. package/src/Select/Selector/index.tsx +0 -211
  372. package/src/Select/VirtualList.tsx +0 -36
  373. package/src/Select/demo/disabled/index.tsx +0 -44
  374. package/src/Select/demo/multiple/index.tsx +0 -77
  375. package/src/Select/demo/options/index.tsx +0 -63
  376. package/src/Select/demo/single/index.tsx +0 -50
  377. package/src/Select/hooks/useCacheOption.ts +0 -67
  378. package/src/Select/index.md +0 -72
  379. package/src/Select/index.tsx +0 -23
  380. package/src/Select/interface.ts +0 -231
  381. package/src/Select/style/index.ts +0 -2
  382. package/src/Select/utils.tsx +0 -133
  383. package/src/Tabs/TabPane.tsx +0 -28
  384. package/src/Tabs/demo/adaptHeight/index.tsx +0 -33
  385. package/src/Tabs/demo/basic/index.tsx +0 -30
  386. package/src/Tabs/demo/horizontalScroll/index.tsx +0 -36
  387. package/src/Tabs/index.md +0 -30
  388. package/src/Tabs/index.test.tsx +0 -100
  389. package/src/Tabs/index.tsx +0 -64
  390. package/src/Tabs/style/index.ts +0 -2
  391. package/src/Tooltip/demo/basic/index.tsx +0 -10
  392. package/src/Tooltip/demo/overflow/index.tsx +0 -10
  393. package/src/Tooltip/demo/placement/index.tsx +0 -60
  394. package/src/Tooltip/demo/trigger/index.tsx +0 -22
  395. package/src/Tooltip/index.md +0 -28
  396. package/src/Tooltip/index.test.tsx +0 -152
  397. package/src/Tooltip/index.tsx +0 -113
  398. package/src/Tooltip/style/index.ts +0 -2
  399. package/src/_utils/hooks/useControlledState.ts +0 -39
  400. package/src/_utils/hooks/usePrefixCls.ts +0 -11
  401. package/tsconfig.json +0 -13
  402. package/typings.d.ts +0 -3
@@ -0,0 +1,108 @@
1
+ // This file is automatically generated.
2
+ // Please do not change this file!
3
+ interface CssExports {
4
+ 'B10': string;
5
+ 'B20': string;
6
+ 'B30': string;
7
+ 'B40': string;
8
+ 'B50': string;
9
+ 'B60': string;
10
+ 'B70': string;
11
+ 'B80': string;
12
+ 'B90': string;
13
+ 'B95': string;
14
+ 'B98': string;
15
+ 'BBG10': string;
16
+ 'BBG15': string;
17
+ 'BBG20': string;
18
+ 'BBG30': string;
19
+ 'BBG40': string;
20
+ 'BBG50': string;
21
+ 'BBG60': string;
22
+ 'BBG70': string;
23
+ 'BBG80': string;
24
+ 'BBG90': string;
25
+ 'BBG95': string;
26
+ 'BBG97': string;
27
+ 'BBG98': string;
28
+ 'BG0': string;
29
+ 'BG10': string;
30
+ 'BG100': string;
31
+ 'BG20': string;
32
+ 'BG30': string;
33
+ 'BG40': string;
34
+ 'BG50': string;
35
+ 'BG60': string;
36
+ 'BG70': string;
37
+ 'BG80': string;
38
+ 'BG90': string;
39
+ 'BG95': string;
40
+ 'BG97': string;
41
+ 'BLACK': string;
42
+ 'IMAGE_HOLDER': string;
43
+ 'MATE': string;
44
+ 'ND0': string;
45
+ 'ND10': string;
46
+ 'ND20': string;
47
+ 'ND30': string;
48
+ 'ND40': string;
49
+ 'ND50': string;
50
+ 'ND60': string;
51
+ 'ND70': string;
52
+ 'ND80': string;
53
+ 'ND90': string;
54
+ 'ND95': string;
55
+ 'ND97': string;
56
+ 'NL0': string;
57
+ 'NL10': string;
58
+ 'NL20': string;
59
+ 'NL30': string;
60
+ 'NL40': string;
61
+ 'NL50': string;
62
+ 'NL60': string;
63
+ 'NL70': string;
64
+ 'NL80': string;
65
+ 'NL90': string;
66
+ 'NL95': string;
67
+ 'NL97': string;
68
+ 'SA10': string;
69
+ 'SA20': string;
70
+ 'SA30': string;
71
+ 'SA40': string;
72
+ 'SA50': string;
73
+ 'SA60': string;
74
+ 'SA70': string;
75
+ 'SA80': string;
76
+ 'SA90': string;
77
+ 'SA95': string;
78
+ 'SA98': string;
79
+ 'SB10': string;
80
+ 'SB20': string;
81
+ 'SB30': string;
82
+ 'SB40': string;
83
+ 'SB50': string;
84
+ 'SB60': string;
85
+ 'SB70': string;
86
+ 'SB80': string;
87
+ 'SB90': string;
88
+ 'SB95': string;
89
+ 'SB98': string;
90
+ 'SC10': string;
91
+ 'SC20': string;
92
+ 'SC30': string;
93
+ 'SC40': string;
94
+ 'SC50': string;
95
+ 'SC60': string;
96
+ 'SC70': string;
97
+ 'SC80': string;
98
+ 'SC90': string;
99
+ 'SC95': string;
100
+ 'SC98': string;
101
+ 'SHADOW_ACTIONSHEET': string;
102
+ 'SHADOW_CARD': string;
103
+ 'SHADOW_NOTIFICATION': string;
104
+ 'SHADOW_OPTION': string;
105
+ 'WHITE': string;
106
+ }
107
+ export const cssExports: CssExports;
108
+ export default cssExports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.1.0-beta1",
3
+ "version": "0.2.0-beta.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -13,7 +13,9 @@
13
13
  "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
14
14
  "test": "umi-test",
15
15
  "test:coverage": "umi-test --coverage",
16
- "prepublishOnly": "npm run build"
16
+ "prepublishOnly": "npm run build",
17
+ "release": "npm publish --access public",
18
+ "postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
17
19
  },
18
20
  "module": "es/index.js",
19
21
  "typings": "es/index.d.ts",
@@ -23,6 +25,10 @@
23
25
  "pre-commit": "npm run lint && npm run stylelint && npm run test"
24
26
  }
25
27
  },
28
+ "files": [
29
+ "es",
30
+ "lib"
31
+ ],
26
32
  "gitHooks": {
27
33
  "pre-commit": "lint-staged"
28
34
  },
@@ -36,7 +42,6 @@
36
42
  },
37
43
  "dependencies": {
38
44
  "@ant-design/icons": "^4.7.0",
39
- "@types/react-truncate": "^2.3.4",
40
45
  "antd": "^4.18.6",
41
46
  "classnames": "^2.3.1",
42
47
  "lodash": "^4.17.21",
@@ -44,8 +49,9 @@
44
49
  "rc-overflow": "^1.2.3",
45
50
  "rc-trigger": "^5.2.10",
46
51
  "rc-virtual-list": "^3.4.2",
47
- "react": "^16.12.0 || ^17.0.0",
48
- "react-dom": "^16.12.0 || ^17.0.0"
52
+ "react-table": "^7.7.0",
53
+ "react-window": "^1.8.6",
54
+ "react-window-infinite-loader": "^1.0.7"
49
55
  },
50
56
  "devDependencies": {
51
57
  "@aloudata/eslint-config-base": "^0.0.6",
@@ -55,6 +61,10 @@
55
61
  "@testing-library/react": "^12.1.2",
56
62
  "@types/jest": "^27.0.3",
57
63
  "@types/lodash": "^4.14.178",
64
+ "@types/react-table": "^7.7.9",
65
+ "@types/react-window": "^1.8.5",
66
+ "@types/react-truncate": "^2.3.4",
67
+ "@types/react-window-infinite-loader": "^1.0.6",
58
68
  "@umijs/fabric": "^2.8.1",
59
69
  "@umijs/test": "^3.0.5",
60
70
  "babel-plugin-import": "^1.13.3",
@@ -65,16 +75,22 @@
65
75
  "eslint-plugin-jsx-a11y": "^6.4.1",
66
76
  "eslint-plugin-react": "^7.24.0",
67
77
  "eslint-plugin-react-hooks": "^4.2.0",
68
- "father-build": "^1.17.2",
78
+ "father-build": "^1.21.2",
69
79
  "gh-pages": "^3.0.0",
70
80
  "husky": "^3.0.9",
71
81
  "lint-staged": "^10.0.7",
72
- "postcss": "8.4.6",
82
+ "postcss": "^8.4.7",
83
+ "postcss-less": "^6.0.0",
73
84
  "prettier": "^2.2.1",
74
85
  "stylelint": "^14.5.3",
75
- "stylelint-config-standard": "^24.0.0",
86
+ "stylelint-config-standard": "^25.0.0",
87
+ "typescript": "4.1.2",
76
88
  "yorkie": "^2.0.0"
77
89
  },
90
+ "peerDependencies": {
91
+ "react": "^16.12.0 || ^17.0.0",
92
+ "react-dom": "^16.12.0 || ^17.0.0"
93
+ },
78
94
  "jest": {
79
95
  "setupFiles": [
80
96
  "./jest/setupTests.js"
package/.editorconfig DELETED
@@ -1,16 +0,0 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
14
-
15
- [Makefile]
16
- indent_style = tab
package/.eslintrc.js DELETED
@@ -1,43 +0,0 @@
1
- module.exports = {
2
- extends: [
3
- '@aloudata/eslint-config-base'
4
- ],
5
- parserOptions: {
6
- project: './tsconfig.json',
7
- },
8
- ignorePatterns: [
9
- '**/*.less.d.ts',
10
- '**/demo/*',
11
- "**/iconfont.js",
12
- "jest"
13
- ],
14
- rules: {
15
- 'react/require-default-props': 'off',
16
- 'linebreak-style': 'off',
17
- curly: ['error', 'all'],
18
- 'import/extensions': 'off',
19
- '@typescript-eslint/type-annotation-spacing': ['error', { after: true }],
20
- '@typescript-eslint/no-unsafe-member-access': ['error'],
21
- // 'id-length': ['error', { properties: 'never', exceptions: ['i', 'j', 'e', '_'] }],
22
- // 'react/jsx-key': ['error'],
23
- '@typescript-eslint/naming-convention': [
24
- 'error',
25
- {
26
- selector: 'interface',
27
- format: ['PascalCase'],
28
- custom: {
29
- regex: '^I[A-Z]',
30
- match: true
31
- }
32
- },
33
- {
34
- selector: 'enum',
35
- format: ['PascalCase'],
36
- custom: {
37
- regex: '^E[A-Z]',
38
- match: true
39
- }
40
- }
41
- ],
42
- }
43
- };
package/.fatherrc.ts DELETED
@@ -1,16 +0,0 @@
1
- export default {
2
- esm: 'babel', // 通过 babel 编译相关组件即可,而无需打包在一个文件中,实现在使用时可按需加载。
3
- cjs: 'babel',
4
- // lessInBabelMode: true, // less 转 css
5
- // 打包的产物若需引入 antd ,则通过按需加载形式引入。
6
- extraBabelPlugins: [
7
- [
8
- 'babel-plugin-import',
9
- {
10
- libraryName: 'antd',
11
- libraryDirectory: 'es',
12
- style: true,
13
- },
14
- ],
15
- ],
16
- }
package/.prettierignore DELETED
@@ -1,7 +0,0 @@
1
- **/*.svg
2
- **/*.ejs
3
- **/*.html
4
- package.json
5
- .umi
6
- .umi-production
7
- .umi-test
package/.prettierrc.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('@umijs/fabric').prettier;
package/.stylelintrc.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "stylelint-config-standard",
3
- "ignoreFiles": [
4
- "src/style/**/*",
5
- "**/*.tsx",
6
- "**/*.js",
7
- "**/*.ts",
8
- "**/*.png",
9
- "**/*.css",
10
- "**/*.json",
11
- "**/*.md",
12
- "**/*.ttf",
13
- "**/*.woff",
14
- "**/*.woff2",
15
- "**/*.html"
16
- ],
17
- "overrides": [{
18
- "files": ["**/*.less"],
19
- "customSyntax": "postcss-less",
20
- "rules": {
21
- "no-missing-end-of-source-newline": null,
22
- "no-empty-source": null,
23
- "selector-pseudo-class-no-unknown": [
24
- true,
25
- {
26
- "ignorePseudoClasses": ["global", "local"]
27
- }
28
- ],
29
- "selector-class-pattern": ["^([a-z][a-zA-Z0-9]+)|(([a-z][a-z0-9]*)(-[a-z0-9]+)*$)$"],
30
- "alpha-value-notation": null,
31
- "color-function-notation": null,
32
- "keyframes-name-pattern": "^[a-z][a-zA-Z0-9]+$",
33
- "string-quotes": "single"
34
- }
35
- }]
36
- }
package/.umirc.ts DELETED
@@ -1,15 +0,0 @@
1
- import { defineConfig } from 'dumi';
2
- export default defineConfig({
3
- // mode:'site',
4
- title: 'design',
5
- logo: 'https://cdn.aloudata.com/source/workstation_test/static/logo.8b20330e.svg',
6
- outputPath: 'docs-dist',
7
- apiParser:{
8
- propFilter:{
9
- skipNodeModules: true,
10
- skipPropsWithoutDoc:true
11
- }
12
- }
13
- // mode:'site'
14
- // more config: https://d.umijs.org/config
15
- });
@@ -1,21 +0,0 @@
1
- const OFF_NUM = 0;
2
- const ERROR_NUM = 2;
3
-
4
- module.exports = {
5
- extends: ['@commitlint/config-angular'],
6
- rules: {
7
- 'type-enum': [ERROR_NUM, 'always', [
8
- 'feat', // 新功能(feature)
9
- 'fix', // 修补bug
10
- 'style', // 样式(不影响代码运行的变动)
11
- 'refactor', // 重构(即不是新增功能,也不是修改bug的代码变动)
12
- 'test', // 增加测试
13
- 'chore', // 构建过程或辅助工具的变动
14
- 'delete', // 删除内容
15
- 'doc', // 文档类修改
16
- ]],
17
- 'subject-full-stop': [OFF_NUM, 'never'],
18
- 'subject-case': [OFF_NUM, 'never']
19
- }
20
-
21
- };
package/docs/index.md DELETED
@@ -1,21 +0,0 @@
1
- ---
2
- hero:
3
- title: design
4
- desc: design site example
5
- actions:
6
- - text: Getting Started
7
- link: /components
8
- features:
9
- - icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
10
- title: Feature 1
11
- desc: Balabala
12
- - icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
13
- title: Feature 2
14
- desc: Balabala
15
- - icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
16
- title: Feature 3
17
- desc: Balabala
18
- footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
19
- ---
20
-
21
- ## Hello design!
@@ -1 +0,0 @@
1
- jest.mock('../src/Icon/iconfont/iconfont.js', () => {});
Binary file
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
- import './index.less';
4
- import Icon from '../../../Icon'
5
- export default () => {
6
- return (
7
- <div className="ald-button-demo">
8
- <Button type="primary" icon={<Icon type="add" size={20} />}>
9
- Search
10
- </Button>
11
- <Button type="secondary" icon={<Icon type="add" size={20} />}>
12
- Search
13
- </Button>
14
- <Button type="text" icon={<Icon type="add" size={20} />}>
15
- Search
16
- </Button>
17
- <Button type="danger" icon={<Icon type="add" size={20} />}>
18
- Search
19
- </Button>
20
- <Button type="link" icon={<Icon type="add" size={20} />}>
21
- Search
22
- </Button>
23
- <br />
24
- <Button icon={<Icon type="add" size={20} />}>
25
- </Button>
26
- <Button shape='circle' icon={<Icon type="add" size={20} />}>
27
- </Button>
28
- <Button shape='circle'>
29
- S
30
- </Button>
31
- <br />
32
- <Button size='small' icon={<Icon type="add" size={20} />}>
33
- </Button>
34
- <Button shape='circle' size="large" icon={<Icon type="add" size={20} />}>
35
- </Button>
36
- <Button shape='circle'>
37
- M
38
- </Button>
39
- </div>
40
- )
41
- }
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
- import '../../style/index.less';
4
- import { Radio } from 'antd';
5
- import './index.less';
6
- export default () => {
7
- const [size, setSize] = React.useState('default');
8
- const handleSizeChange = (e: any) => {
9
- setSize(e.target.value);
10
- }
11
- return (
12
- <div className='ald-button-demo'>
13
- <Radio.Group value={size} onChange={handleSizeChange}>
14
- <Radio.Button value="small">Small</Radio.Button>
15
- <Radio.Button value='default'>Default</Radio.Button>
16
- <Radio.Button value="large">Large</Radio.Button>
17
- </Radio.Group>
18
- <br />
19
- <Button type="primary" size={size}>Primary Button</Button>
20
- <Button type="danger" size={size}>danger Button</Button>
21
- <Button type="secondary" size={size}>secondary Button</Button>
22
- <Button type="text" size={size}>Text Button</Button>
23
- <Button type="link" size={size}>Link Button</Button>
24
- </div>
25
- )
26
- };
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
- import './index.less';
4
-
5
- export default () => {
6
-
7
- return (
8
- <div className="ald-button-demo">
9
- <Button type="primary" disabled>primary disable</Button>
10
- <Button type="secondary" disabled>secondary disable</Button>
11
- <Button type="text" disabled>text disable</Button>
12
- <Button type="danger" disabled>danger disable</Button>
13
- <Button type="link" disabled>link disable</Button>
14
- </div>
15
- )
16
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
-
4
- export default () => {
5
-
6
- return (
7
- <div className="ald-button-demo">
8
- <Button href="https://www.aloudata.com/">aloudata</Button>
9
- <Button href="https://www.aloudata.com/" target="_blank">target _blank aloudata</Button>
10
- <Button href="https://www.aloudata.com/" target="_self">target _self aloudata</Button>
11
- <Button target="_blank"> 无href target _blank</Button>
12
- </div>
13
- )
14
- }
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { Button } from "@aloudata/aloudata-design";
3
- import './index.less'
4
-
5
-
6
- export default () => {
7
- const [loading, setLoading] = React.useState(false);
8
- const handleChange = (e: any) => {
9
- setLoading(true);
10
- setTimeout(setLoading.bind(false), 3000)
11
- }
12
-
13
- return (
14
- <div className="ald-button-demo">
15
- <Button loading={true}>loading</Button>
16
- <Button loading={true}></Button>
17
- <Button loading={loading} onClick={handleChange}>点击提交</Button>
18
- </div>
19
-
20
- )
21
- }
@@ -1,25 +0,0 @@
1
- ---
2
- # nav:
3
- # title: 组件
4
- # path: /components
5
- title: Button 按钮
6
- group:
7
- title: 组件
8
- ---
9
-
10
- ## Button 按钮
11
-
12
- 按钮用于开始一个即时操作。
13
-
14
- ## 代码演示
15
-
16
- <code src="./demo/basic" title="基础用法" description="不同尺寸不同类型的按钮">
17
- <code src="./demo/icon" title="带图标" description="纯图标和带前缀图标">
18
- <code src="./demo/loading" title="加载中" description="纯图标和带前缀图标">
19
- <code src="./demo/disable" title="禁用状态">
20
- <code src="./demo/href" title="链接" description="target属性在有href时生效">
21
-
22
- <API />
23
-
24
- 支持原生 button 的其他所有属性。
25
-
@@ -1,58 +0,0 @@
1
- import '@testing-library/jest-dom';
2
- import React from 'react';
3
- import { render, screen, fireEvent } from '@testing-library/react';
4
- import Button from './index';
5
- import { SearchOutlined } from '@ant-design/icons';
6
-
7
- describe('Button ', () => {
8
- it('render Button with type=link', () => {
9
- const type = 'link';
10
- render(<Button type={type}>{type}</Button>);
11
- expect(document.querySelector('.ant-btn-link')).not.toBeNull();
12
- });
13
-
14
- it('render Button with type=danger', () => {
15
- const type = 'danger';
16
- render(<Button type={type}>{type}</Button>);
17
- expect(document.querySelector('.ant-btn-dangerous')).not.toBeNull();
18
- });
19
-
20
- it('render Button size=small', () => {
21
- const size = 'small';
22
- render(<Button size={size} className="ald-btn-sm">{size}</Button>);
23
- expect(document.querySelector('.ald-btn-sm')).toHaveClass('ant-btn-sm');
24
- });
25
-
26
- it('render Button disable', () => {
27
- render(<Button disabled className="ald-btn-disable">disabled</Button>);
28
- expect(document.querySelector('.ald-btn-disable')).toBeDisabled();
29
- });
30
-
31
- it('render Button shape=circle', () => {
32
- render(<Button shape="circle" className="ald-btn-circle">circle</Button>);
33
- expect(document.querySelector('.ald-btn-circle')).toHaveClass('ant-btn-circle');
34
- });
35
-
36
- it('render Button icon', () => {
37
- render(<Button icon={<SearchOutlined />}>Search</Button>);
38
- expect(document.querySelector('.anticon-search')).not.toBeNull();
39
- });
40
-
41
- it('render Button loading', () => {
42
- render(<Button loading>loading</Button>);
43
- expect(document.querySelector('.anticon-loading')).not.toBeNull();
44
- });
45
-
46
- it('render Button href', () => {
47
- render(<Button href="https://www.aloudata.com/" className="ald-btn-href">aloudata</Button>);
48
- expect(document.querySelector('.ald-btn-href')).toHaveAttribute('href', 'https://www.aloudata.com/');
49
- });
50
-
51
- it('render Button onClick', () => {
52
- const onClick = jest.fn();
53
- render(<Button onClick={onClick}>onClick</Button>);
54
- const button = screen.queryByRole('button');
55
- fireEvent.click(button!);
56
- expect(onClick).toBeCalled();
57
- });
58
- });