@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.2

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 (344) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +0 -1
  3. package/es/Breadcrumb/style/index.less +11 -3
  4. package/es/Button/index.js +17 -2
  5. package/es/Button/style/index.less +41 -39
  6. package/es/Button/style/variables.less +9 -2
  7. package/es/Card/index.d.ts +3 -0
  8. package/es/Card/index.js +3 -0
  9. package/es/{Message → Card}/style/index.d.ts +0 -0
  10. package/es/{Message → Card}/style/index.js +0 -0
  11. package/es/{Message → Card}/style/index.less +0 -0
  12. package/es/Checkbox/index.d.ts +0 -1
  13. package/es/Checkbox/style/index.less +19 -0
  14. package/es/Drawer/index.d.ts +4 -0
  15. package/es/Drawer/index.js +3 -0
  16. package/es/{Notification → Drawer}/style/index.d.ts +0 -0
  17. package/es/{Notification → Drawer}/style/index.js +0 -0
  18. package/es/{Notification → Drawer}/style/index.less +0 -0
  19. package/es/Dropdown/Button.js +3 -3
  20. package/es/Empty/image/Authority.d.ts +0 -1
  21. package/es/Empty/image/Dataspace.d.ts +0 -1
  22. package/es/Empty/image/Search.d.ts +0 -1
  23. package/es/Empty/image/Simple.d.ts +0 -1
  24. package/es/Empty/image/Worksheet.d.ts +0 -1
  25. package/es/Empty/image/empty.d.ts +0 -1
  26. package/es/Form/style/index.less +8 -0
  27. package/es/Icon/antdIconfont.d.ts +4 -0
  28. package/es/Icon/antdIconfont.js +2 -0
  29. package/es/Icon/components/Icon.d.ts +32 -0
  30. package/es/Icon/components/Icon.js +27 -0
  31. package/es/Icon/components/createFromScripts.d.ts +1 -0
  32. package/es/Icon/components/createFromScripts.js +35 -0
  33. package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  34. package/es/Icon/icons/AddLine.d.ts +13 -0
  35. package/es/Icon/icons/AddLine.js +66 -0
  36. package/es/Icon/icons/AlertFill.d.ts +13 -0
  37. package/es/Icon/icons/AlertFill.js +73 -0
  38. package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
  39. package/es/Icon/icons/ArrowsDownLine.js +66 -0
  40. package/es/Icon/icons/CancelFill.d.ts +13 -0
  41. package/es/Icon/icons/CancelFill.js +73 -0
  42. package/es/Icon/icons/CheckFill.d.ts +13 -0
  43. package/es/Icon/icons/CheckFill.js +73 -0
  44. package/es/Icon/icons/CheckLine.d.ts +13 -0
  45. package/es/Icon/icons/CheckLine.js +73 -0
  46. package/es/Icon/icons/CloseLine.d.ts +13 -0
  47. package/es/Icon/icons/CloseLine.js +66 -0
  48. package/es/Icon/icons/DatabaseLine.d.ts +13 -0
  49. package/es/Icon/icons/DatabaseLine.js +66 -0
  50. package/es/Icon/icons/Deleteline.d.ts +13 -0
  51. package/es/Icon/icons/Deleteline.js +66 -0
  52. package/es/Icon/icons/DownloadLine.d.ts +13 -0
  53. package/es/Icon/icons/DownloadLine.js +73 -0
  54. package/es/Icon/icons/ErrorFill.d.ts +13 -0
  55. package/es/Icon/icons/ErrorFill.js +73 -0
  56. package/es/Icon/icons/EyeOffLine.d.ts +13 -0
  57. package/es/Icon/icons/EyeOffLine.js +73 -0
  58. package/es/Icon/icons/EyeOnLine.d.ts +13 -0
  59. package/es/Icon/icons/EyeOnLine.js +66 -0
  60. package/es/Icon/icons/FileLine.d.ts +13 -0
  61. package/es/Icon/icons/FileLine.js +73 -0
  62. package/es/Icon/icons/HomeFill.d.ts +13 -0
  63. package/es/Icon/icons/HomeFill.js +73 -0
  64. package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
  65. package/es/Icon/icons/LightningLine.d.ts +13 -0
  66. package/es/Icon/icons/LightningLine.js +66 -0
  67. package/es/Icon/icons/Loading.d.ts +13 -0
  68. package/es/Icon/icons/Loading.js +66 -0
  69. package/es/Icon/icons/More.d.ts +13 -0
  70. package/es/Icon/icons/More.js +66 -0
  71. package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
  72. package/es/Icon/icons/NewWindowsLine.js +74 -0
  73. package/es/Icon/icons/SearchLine.d.ts +13 -0
  74. package/es/Icon/icons/SearchLine.js +73 -0
  75. package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
  76. package/es/Icon/icons/SortAscendingLine.js +66 -0
  77. package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
  78. package/es/Icon/icons/SortDescendingLine.js +66 -0
  79. package/es/Icon/icons/TextLine.d.ts +13 -0
  80. package/es/Icon/icons/TextLine.js +73 -0
  81. package/es/Icon/icons/UserLine.d.ts +13 -0
  82. package/es/Icon/icons/UserLine.js +73 -0
  83. package/es/Icon/icons/style.css +9 -0
  84. package/es/Icon/icons/style.css.d.ts +10 -0
  85. package/es/Icon/index.d.ts +2 -13
  86. package/es/Icon/index.js +2 -53
  87. package/es/Icon/index.less +9 -17
  88. package/es/Icon/style/index.d.ts +1 -0
  89. package/es/Icon/style/index.js +1 -0
  90. package/es/Icon/style/index.less +0 -0
  91. package/es/Input/components/Group/index.d.ts +0 -1
  92. package/es/Input/components/Password/index.js +6 -5
  93. package/es/Input/style/index.less +1 -1
  94. package/es/InputNumber/index.d.ts +0 -1
  95. package/es/InputNumber/style/index.less +88 -16
  96. package/es/Menu/Divider.d.ts +0 -1
  97. package/es/Menu/style/index.less +4 -3
  98. package/es/Modal/index.js +21 -12
  99. package/es/Modal/locale.d.ts +7 -0
  100. package/es/Modal/locale.js +20 -0
  101. package/es/Modal/style/index.less +3 -3
  102. package/es/Navigator/components/Header/index.d.ts +0 -1
  103. package/es/Navigator/components/Menu/index.d.ts +0 -1
  104. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  105. package/es/Navigator/index.d.ts +1 -1
  106. package/es/Navigator/style/index.less +46 -5
  107. package/es/Popover/index.d.ts +0 -1
  108. package/es/Select/index.d.ts +2 -1
  109. package/es/Select/index.js +2 -1
  110. package/es/Select/rc-select/OptionList.js +3 -4
  111. package/es/Select/rc-select/Selector/MultipleSelector.js +13 -3
  112. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  113. package/es/Select/style/index.d.ts +0 -1
  114. package/es/Select/style/index.js +0 -1
  115. package/es/Select/style/index.less +105 -10
  116. package/es/Select/style/variables.less +20 -9
  117. package/es/Select/style/variables.less.d.ts +4 -1
  118. package/es/Select/utils/iconUtil.d.ts +2 -2
  119. package/es/Select/utils/iconUtil.js +10 -13
  120. package/es/Table/Table.d.ts +0 -1
  121. package/es/Table/Table.js +23 -14
  122. package/es/Table/style/index.less +7 -0
  123. package/es/Tabs/index.d.ts +2 -1
  124. package/es/Tabs/index.js +9 -6
  125. package/es/Tabs/style/index.less +67 -1
  126. package/es/index.d.ts +8 -3
  127. package/es/index.js +6 -3
  128. package/es/locale/default.d.ts +2 -0
  129. package/es/locale/default.js +2 -0
  130. package/es/locale/en_US.d.ts +3 -0
  131. package/es/locale/en_US.js +132 -0
  132. package/es/locale/zh_CN.d.ts +3 -2
  133. package/es/locale/zh_CN.js +131 -2
  134. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  135. package/es/locale-provider/LocaleReceiver.js +3 -0
  136. package/es/locale-provider/context.d.ts +7 -0
  137. package/es/locale-provider/context.js +3 -0
  138. package/es/locale-provider/default.d.ts +2 -0
  139. package/es/locale-provider/default.js +2 -0
  140. package/es/locale-provider/en_US.d.ts +2 -0
  141. package/es/locale-provider/en_US.js +2 -0
  142. package/es/locale-provider/index.d.ts +61 -0
  143. package/es/locale-provider/index.js +102 -0
  144. package/es/locale-provider/style/index.d.ts +1 -0
  145. package/es/locale-provider/style/index.js +1 -0
  146. package/es/locale-provider/style/index.less +2 -0
  147. package/es/locale-provider/zh_CN.d.ts +2 -0
  148. package/es/locale-provider/zh_CN.js +2 -0
  149. package/es/{Message → message}/index.d.ts +0 -0
  150. package/es/{Message → message}/index.js +0 -0
  151. package/{lib/Message → es/message}/style/index.d.ts +0 -0
  152. package/es/message/style/index.js +2 -0
  153. package/{lib/Message → es/message}/style/index.less +0 -0
  154. package/es/{Notification → notification}/index.d.ts +0 -0
  155. package/es/{Notification → notification}/index.js +0 -0
  156. package/{lib/Notification → es/notification}/style/index.d.ts +0 -0
  157. package/es/notification/style/index.js +2 -0
  158. package/{lib/Notification → es/notification}/style/index.less +0 -0
  159. package/es/style/index.less +1 -0
  160. package/es/style/themes/default/scrollBar.less +13 -0
  161. package/lib/Breadcrumb/index.d.ts +0 -1
  162. package/lib/Breadcrumb/style/index.less +11 -3
  163. package/lib/Button/index.js +18 -2
  164. package/lib/Button/style/index.less +41 -39
  165. package/lib/Button/style/variables.less +9 -2
  166. package/lib/Card/index.d.ts +3 -0
  167. package/lib/Card/index.js +15 -0
  168. package/lib/Card/style/index.d.ts +2 -0
  169. package/lib/{Message → Card}/style/index.js +0 -0
  170. package/lib/Card/style/index.less +1 -0
  171. package/lib/Checkbox/index.d.ts +0 -1
  172. package/lib/Checkbox/style/index.less +19 -0
  173. package/lib/Drawer/index.d.ts +4 -0
  174. package/lib/Drawer/index.js +15 -0
  175. package/lib/Drawer/style/index.d.ts +2 -0
  176. package/lib/{Notification → Drawer}/style/index.js +0 -0
  177. package/lib/Drawer/style/index.less +1 -0
  178. package/lib/Dropdown/Button.js +3 -3
  179. package/lib/Empty/image/Authority.d.ts +0 -1
  180. package/lib/Empty/image/Dataspace.d.ts +0 -1
  181. package/lib/Empty/image/Search.d.ts +0 -1
  182. package/lib/Empty/image/Simple.d.ts +0 -1
  183. package/lib/Empty/image/Worksheet.d.ts +0 -1
  184. package/lib/Empty/image/empty.d.ts +0 -1
  185. package/lib/Form/style/index.less +8 -0
  186. package/lib/Icon/antdIconfont.d.ts +4 -0
  187. package/lib/Icon/antdIconfont.js +13 -0
  188. package/lib/Icon/components/Icon.d.ts +32 -0
  189. package/lib/Icon/components/Icon.js +38 -0
  190. package/lib/Icon/components/createFromScripts.d.ts +1 -0
  191. package/lib/Icon/components/createFromScripts.js +41 -0
  192. package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  193. package/lib/Icon/icons/AddLine.d.ts +13 -0
  194. package/lib/Icon/icons/AddLine.js +83 -0
  195. package/lib/Icon/icons/AlertFill.d.ts +13 -0
  196. package/lib/Icon/icons/AlertFill.js +90 -0
  197. package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
  198. package/lib/Icon/icons/ArrowsDownLine.js +83 -0
  199. package/lib/Icon/icons/CancelFill.d.ts +13 -0
  200. package/lib/Icon/icons/CancelFill.js +90 -0
  201. package/lib/Icon/icons/CheckFill.d.ts +13 -0
  202. package/lib/Icon/icons/CheckFill.js +90 -0
  203. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  204. package/lib/Icon/icons/CheckLine.js +90 -0
  205. package/lib/Icon/icons/CloseLine.d.ts +13 -0
  206. package/lib/Icon/icons/CloseLine.js +83 -0
  207. package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
  208. package/lib/Icon/icons/DatabaseLine.js +83 -0
  209. package/lib/Icon/icons/Deleteline.d.ts +13 -0
  210. package/lib/Icon/icons/Deleteline.js +83 -0
  211. package/lib/Icon/icons/DownloadLine.d.ts +13 -0
  212. package/lib/Icon/icons/DownloadLine.js +90 -0
  213. package/lib/Icon/icons/ErrorFill.d.ts +13 -0
  214. package/lib/Icon/icons/ErrorFill.js +90 -0
  215. package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
  216. package/lib/Icon/icons/EyeOffLine.js +90 -0
  217. package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
  218. package/lib/Icon/icons/EyeOnLine.js +83 -0
  219. package/lib/Icon/icons/FileLine.d.ts +13 -0
  220. package/lib/Icon/icons/FileLine.js +90 -0
  221. package/lib/Icon/icons/HomeFill.d.ts +13 -0
  222. package/lib/Icon/icons/HomeFill.js +90 -0
  223. package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
  224. package/lib/Icon/icons/LightningLine.d.ts +13 -0
  225. package/lib/Icon/icons/LightningLine.js +83 -0
  226. package/lib/Icon/icons/Loading.d.ts +13 -0
  227. package/lib/Icon/icons/Loading.js +83 -0
  228. package/lib/Icon/icons/More.d.ts +13 -0
  229. package/lib/Icon/icons/More.js +83 -0
  230. package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
  231. package/lib/Icon/icons/NewWindowsLine.js +91 -0
  232. package/lib/Icon/icons/SearchLine.d.ts +13 -0
  233. package/lib/Icon/icons/SearchLine.js +90 -0
  234. package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
  235. package/lib/Icon/icons/SortAscendingLine.js +83 -0
  236. package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
  237. package/lib/Icon/icons/SortDescendingLine.js +83 -0
  238. package/lib/Icon/icons/TextLine.d.ts +13 -0
  239. package/lib/Icon/icons/TextLine.js +90 -0
  240. package/lib/Icon/icons/UserLine.d.ts +13 -0
  241. package/lib/Icon/icons/UserLine.js +90 -0
  242. package/lib/Icon/icons/style.css +9 -0
  243. package/lib/Icon/icons/style.css.d.ts +10 -0
  244. package/lib/Icon/index.d.ts +2 -13
  245. package/lib/Icon/index.js +2 -59
  246. package/lib/Icon/index.less +9 -17
  247. package/lib/Icon/style/index.d.ts +1 -0
  248. package/lib/Icon/style/index.js +1 -0
  249. package/lib/Icon/style/index.less +0 -0
  250. package/lib/Input/components/Group/index.d.ts +0 -1
  251. package/lib/Input/components/Password/index.js +7 -5
  252. package/lib/Input/style/index.less +1 -1
  253. package/lib/InputNumber/index.d.ts +0 -1
  254. package/lib/InputNumber/style/index.less +88 -16
  255. package/lib/Menu/Divider.d.ts +0 -1
  256. package/lib/Menu/style/index.less +4 -3
  257. package/lib/Modal/index.js +23 -12
  258. package/lib/Modal/locale.d.ts +7 -0
  259. package/lib/Modal/locale.js +31 -0
  260. package/lib/Modal/style/index.less +3 -3
  261. package/lib/Navigator/components/Header/index.d.ts +0 -1
  262. package/lib/Navigator/components/Menu/index.d.ts +0 -1
  263. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  264. package/lib/Navigator/index.d.ts +1 -1
  265. package/lib/Navigator/style/index.less +46 -5
  266. package/lib/Popover/index.d.ts +0 -1
  267. package/lib/Select/index.d.ts +2 -1
  268. package/lib/Select/index.js +2 -1
  269. package/lib/Select/rc-select/OptionList.js +3 -4
  270. package/lib/Select/rc-select/Selector/MultipleSelector.js +13 -3
  271. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  272. package/lib/Select/style/index.d.ts +0 -1
  273. package/lib/Select/style/index.js +0 -2
  274. package/lib/Select/style/index.less +105 -10
  275. package/lib/Select/style/variables.less +20 -9
  276. package/lib/Select/style/variables.less.d.ts +4 -1
  277. package/lib/Select/utils/iconUtil.d.ts +2 -2
  278. package/lib/Select/utils/iconUtil.js +11 -14
  279. package/lib/Table/Table.d.ts +0 -1
  280. package/lib/Table/Table.js +25 -15
  281. package/lib/Table/style/index.less +7 -0
  282. package/lib/Tabs/index.d.ts +2 -1
  283. package/lib/Tabs/index.js +9 -6
  284. package/lib/Tabs/style/index.less +67 -1
  285. package/lib/index.d.ts +8 -3
  286. package/lib/index.js +38 -14
  287. package/lib/locale/default.d.ts +2 -0
  288. package/lib/locale/default.js +13 -0
  289. package/lib/locale/en_US.d.ts +3 -0
  290. package/lib/locale/en_US.js +146 -0
  291. package/lib/locale/zh_CN.d.ts +3 -2
  292. package/lib/locale/zh_CN.js +134 -2
  293. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  294. package/lib/locale-provider/LocaleReceiver.js +23 -0
  295. package/lib/locale-provider/context.d.ts +7 -0
  296. package/lib/locale-provider/context.js +12 -0
  297. package/lib/locale-provider/default.d.ts +2 -0
  298. package/lib/locale-provider/default.js +13 -0
  299. package/lib/locale-provider/en_US.d.ts +2 -0
  300. package/lib/locale-provider/en_US.js +13 -0
  301. package/lib/locale-provider/index.d.ts +61 -0
  302. package/lib/locale-provider/index.js +116 -0
  303. package/lib/locale-provider/style/index.d.ts +1 -0
  304. package/lib/locale-provider/style/index.js +3 -0
  305. package/lib/locale-provider/style/index.less +2 -0
  306. package/lib/locale-provider/zh_CN.d.ts +2 -0
  307. package/lib/locale-provider/zh_CN.js +13 -0
  308. package/lib/{Message → message}/index.d.ts +0 -0
  309. package/lib/{Message → message}/index.js +0 -0
  310. package/lib/message/style/index.d.ts +2 -0
  311. package/lib/message/style/index.js +5 -0
  312. package/lib/message/style/index.less +1 -0
  313. package/lib/{Notification → notification}/index.d.ts +0 -0
  314. package/lib/{Notification → notification}/index.js +0 -0
  315. package/lib/notification/style/index.d.ts +2 -0
  316. package/lib/notification/style/index.js +5 -0
  317. package/lib/notification/style/index.less +1 -0
  318. package/lib/style/index.less +1 -0
  319. package/lib/style/themes/default/scrollBar.less +13 -0
  320. package/package.json +10 -8
  321. package/es/Icon/iconfont/demo.css +0 -539
  322. package/es/Icon/iconfont/demo_index.html +0 -720
  323. package/es/Icon/iconfont/iconfont.css +0 -109
  324. package/es/Icon/iconfont/iconfont.js +0 -46
  325. package/es/Icon/iconfont/iconfont.json +0 -170
  326. package/es/Icon/iconfont/iconfont.ttf +0 -0
  327. package/es/Icon/iconfont/iconfont.woff +0 -0
  328. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  329. package/es/Table/components/Empty/empty-img.png +0 -0
  330. package/es/Table/components/Empty/index.d.ts +0 -4
  331. package/es/Table/components/Empty/index.js +0 -16
  332. package/es/Table/components/Empty/index.less +0 -24
  333. package/lib/Icon/iconfont/demo.css +0 -539
  334. package/lib/Icon/iconfont/demo_index.html +0 -720
  335. package/lib/Icon/iconfont/iconfont.css +0 -109
  336. package/lib/Icon/iconfont/iconfont.js +0 -48
  337. package/lib/Icon/iconfont/iconfont.json +0 -170
  338. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  339. package/lib/Icon/iconfont/iconfont.woff +0 -0
  340. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  341. package/lib/Table/components/Empty/empty-img.png +0 -0
  342. package/lib/Table/components/Empty/index.d.ts +0 -4
  343. package/lib/Table/components/Empty/index.js +0 -30
  344. package/lib/Table/components/Empty/index.less +0 -24
package/es/Table/Table.js CHANGED
@@ -27,14 +27,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
27
  /// <reference types ='./react-table-config' />
28
28
  import _ from 'lodash';
29
29
  import classnames from 'classnames';
30
- import Icon from '../Icon';
30
+ import Descending from '../Icon/icons/SortDescendingLine';
31
+ import Ascending from '../Icon/icons/SortAscendingLine';
32
+ import LoadingIcon from '../Icon/icons/Loading';
31
33
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
32
34
  import usePrefixCls from '../_utils/hooks/usePrefixCls';
33
35
  import InfiniteScroll from 'react-infinite-scroll-component';
34
- import TableEmpty from './components/Empty';
35
36
  import ResizeObserver from 'rc-resize-observer';
36
- import { useTable, useBlockLayout, useRowSelect, useSortBy, useResizeColumns } from 'react-table';
37
- import './style/index';
37
+ import Empty from '../Empty';
38
+ import { useTable, useBlockLayout, useRowSelect, useSortBy, useResizeColumns } from 'react-table'; // import './style/index';
39
+
38
40
  var ARRAY_FIRST_INDEX = 0;
39
41
  var DEFAULT_ROW_WIDTH = 0;
40
42
  var DEFAULT_BODY_HEIGHT = 0;
@@ -329,13 +331,13 @@ function Table(props, ref) {
329
331
  return null;
330
332
  }
331
333
 
332
- return desc ? /*#__PURE__*/React.createElement(Icon, {
334
+ return desc ? /*#__PURE__*/React.createElement(Descending, {
333
335
  className: "".concat(prefixCls, "-sortIcon"),
334
- type: "sort_descending",
336
+ fill: "currentColor",
335
337
  size: 12
336
- }) : /*#__PURE__*/React.createElement(Icon, {
338
+ }) : /*#__PURE__*/React.createElement(Ascending, {
337
339
  className: "".concat(prefixCls, "-sortIcon"),
338
- type: "sort_ascending",
340
+ fill: "currentColor",
339
341
  size: 12
340
342
  });
341
343
  };
@@ -357,9 +359,10 @@ function Table(props, ref) {
357
359
  });
358
360
  var LoadingNode = /*#__PURE__*/React.createElement("div", {
359
361
  className: classnames("".concat(prefixCls, "-loading"))
360
- }, /*#__PURE__*/React.createElement(Icon, {
361
- type: "waiting",
362
+ }, /*#__PURE__*/React.createElement(LoadingIcon, {
362
363
  size: 16,
364
+ fill: "currentColor",
365
+ spin: true,
363
366
  className: classnames("".concat(prefixCls, "-loading-icon"))
364
367
  }), "Loading");
365
368
 
@@ -369,7 +372,13 @@ function Table(props, ref) {
369
372
  }
370
373
 
371
374
  if (!loading && !rows.length) {
372
- return /*#__PURE__*/React.createElement(TableEmpty, null);
375
+ return /*#__PURE__*/React.createElement("div", {
376
+ className: classnames("".concat(prefixCls, "-empty-icon"))
377
+ }, /*#__PURE__*/React.createElement(Empty, {
378
+ title: "No Data",
379
+ size: "large",
380
+ image: Empty.PRESENTED_IMAGE_SIMPLE
381
+ }));
373
382
  }
374
383
 
375
384
  var renderRowList = function renderRowList() {
@@ -393,7 +402,7 @@ function Table(props, ref) {
393
402
  }), row.cells.map(function (cell) {
394
403
  return /*#__PURE__*/React.createElement("div", Object.assign({}, cell.getCellProps(), {
395
404
  className: classnames("".concat(prefixCls, "-cell"))
396
- }), cell.render('Cell'));
405
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, cell.render('Cell')));
397
406
  }));
398
407
  });
399
408
  };
@@ -447,9 +456,9 @@ function Table(props, ref) {
447
456
  style: {
448
457
  width: '100%'
449
458
  }
450
- }), column.render('Header'), /*#__PURE__*/React.createElement(SortIcons, {
459
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, column.render('Header'), /*#__PURE__*/React.createElement(SortIcons, {
451
460
  id: column.id
452
- })), /*#__PURE__*/React.createElement("div", Object.assign({}, barPorps, {
461
+ }))), /*#__PURE__*/React.createElement("div", Object.assign({}, barPorps, {
453
462
  className: classnames(_defineProperty({}, "".concat(prefixCls, "-dragBar"), resizeColumn), "".concat(prefixCls, "-bar"))
454
463
  })));
455
464
  }));
@@ -135,8 +135,15 @@
135
135
  }
136
136
  }
137
137
 
138
+ &-empty-icon {
139
+ padding-top: 52px;
140
+ }
141
+
138
142
  &-init-loading {
139
143
  .ald-table-loading {
144
+ display: flex;
145
+ align-items: center;
146
+ justify-content: center;
140
147
  padding-top: 84px;
141
148
  }
142
149
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import { TabsProps } from 'antd';
2
3
  export declare type TabsSize = 'default' | 'large';
3
- export interface ITabsProps {
4
+ export interface ITabsProps extends Omit<TabsProps, 'size'> {
4
5
  /**
5
6
  * @description 大小
6
7
  * @default default
package/es/Tabs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "antd/es/tabs/style";
2
2
  import _Tabs from "antd/es/tabs";
3
- var _excluded = ["size", "className", "adaptHeight"];
3
+ var _excluded = ["size", "className", "popupClassName", "adaptHeight"];
4
4
 
5
5
  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; }
6
6
 
@@ -14,12 +14,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
14
14
 
15
15
  import React from 'react'; // import AntdTabs, { TabsProps } from 'antd/lib/tabs';
16
16
 
17
- import Icon from '../Icon';
17
+ import More from '../Icon/icons/More';
18
18
  import TabPane from './TabPane';
19
19
  import classNames from 'classnames';
20
20
  export default function Tabs(props) {
21
21
  var size = props.size,
22
22
  className = props.className,
23
+ popupClassName = props.popupClassName,
23
24
  adaptHeight = props.adaptHeight,
24
25
  otherProps = _objectWithoutProperties(props, _excluded);
25
26
 
@@ -30,11 +31,13 @@ export default function Tabs(props) {
30
31
  }
31
32
 
32
33
  return /*#__PURE__*/React.createElement(_Tabs, Object.assign({
33
- moreIcon: /*#__PURE__*/React.createElement(Icon, {
34
- type: "more_vert",
35
- size: 18
36
- }),
34
+ moreIcon: /*#__PURE__*/React.createElement("div", {
35
+ className: "ald-tabs-moreIcon"
36
+ }, /*#__PURE__*/React.createElement(More, {
37
+ color: "currentColor"
38
+ })),
37
39
  tabBarGutter: 24,
40
+ popupClassName: classNames(popupClassName, 'ald-tabs-dropdown'),
38
41
  className: classNames('ald-tabs', className, {
39
42
  'ald-adapt-height': adaptHeight,
40
43
  'ald-tabs-default': size !== 'large'
@@ -1,5 +1,6 @@
1
+ /* stylelint-disable no-descending-specificity */
1
2
  @import '../../style/index.less';
2
-
3
+ @import '../../Button/style/index.less';
3
4
  //status- default
4
5
  @Tabs-color: @NL30;
5
6
  @Tabs-fontWeight: 400;
@@ -60,6 +61,12 @@
60
61
  .ant-tabs-ink-bar {
61
62
  height: @Tabs-ink-link-bar-height-large;
62
63
  }
64
+
65
+ .ald-tabs-moreIcon {
66
+ width: 36px;
67
+ height: 36px;
68
+ border-radius: 8px;
69
+ }
63
70
  }
64
71
 
65
72
  &.ald-tabs-default {
@@ -67,10 +74,35 @@
67
74
  font-size: @Tabs-fontSize;
68
75
  line-height: @Tabs-lineHeight;
69
76
  }
77
+
78
+ .ald-tabs-moreIcon {
79
+ width: 32px;
80
+ height: 32px;
81
+ border-radius: 6px;
82
+ }
70
83
  }
71
84
 
72
85
  .ant-tabs-nav-more {
86
+ display: inline-flex;
87
+ align-items: center;
88
+ justify-content: center;
73
89
  margin: 0 !important;
90
+ padding: 2px;
91
+
92
+ .ald-tabs-moreIcon {
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ color: inherit;
97
+ font-size: inherit;
98
+ }
99
+
100
+ &.ant-tabs-dropdown-open {
101
+ .ald-tabs-moreIcon {
102
+ color: @B60;
103
+ background-color: @NL97;
104
+ }
105
+ }
74
106
  }
75
107
 
76
108
  /* body自适应高度 */
@@ -98,3 +130,37 @@
98
130
  }
99
131
  }
100
132
  }
133
+
134
+ .ald-tabs-dropdown {
135
+ .ant-tabs-dropdown-menu {
136
+ padding: 4px;
137
+ border-radius: 6px;
138
+ box-shadow: @shadow-L;
139
+
140
+ .ant-tabs-dropdown-menu-item-active {
141
+ background-color: @NL97;
142
+ }
143
+
144
+ .ant-tabs-dropdown-menu-item {
145
+ padding: 8px 12px;
146
+ line-height: 20px;
147
+ border-radius: 6px;
148
+ }
149
+
150
+ .ant-tabs-dropdown-menu-item,
151
+ .ant-tabs-dropdown-menu-submenu-title {
152
+ &:hover {
153
+ background-color: @NL97;
154
+ }
155
+
156
+ &.ant-tabs-dropdown-menu-item-disabled {
157
+ color: @NL80;
158
+ cursor: default;
159
+
160
+ &:hover {
161
+ background-color: @BG100;
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
package/es/index.d.ts CHANGED
@@ -20,6 +20,8 @@ export { default as Navigator } from './Navigator';
20
20
  export type { INavigatorProps as NavigatorProps, IMenuItem as NavigatorMenu, ISelectedMenuInfo as SelectedMenuInfo, } from './Navigator';
21
21
  export { default as Alert } from './Alert';
22
22
  export type { AlertProps } from './Alert';
23
+ export { default as Card } from './Card';
24
+ export type { CardProps } from './Card';
23
25
  export { default as Col } from './Col';
24
26
  export type { ColProps } from './Col';
25
27
  export type { TypographyProps } from './Typography';
@@ -31,9 +33,9 @@ export { default as DatePicker } from './DatePicker';
31
33
  export type { DatePickerProps } from './DatePicker';
32
34
  export { default as Layout } from './Layout';
33
35
  export type { LayoutProps } from './Layout';
34
- export { default as Message } from './Message';
35
- export type { MessageArgsProps } from './Message';
36
- export { default as Notification } from './Notification';
36
+ export { default as message } from './message';
37
+ export type { MessageArgsProps } from './message';
38
+ export { default as notification } from './notification';
37
39
  export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
38
40
  export { default as Tree } from './Tree';
39
41
  export type { SkeletonProps } from './Skeleton';
@@ -52,6 +54,8 @@ export { default as Form } from './Form';
52
54
  export type { FormInstance, FormProps, FormItemProps } from './Form';
53
55
  export { default as Divider } from './Divider';
54
56
  export type { DividerProps } from './Divider';
57
+ export { default as Drawer } from './Drawer';
58
+ export type { DrawerProps } from './Drawer';
55
59
  export { default as Radio } from './Radio';
56
60
  export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
57
61
  export { default as Checkbox } from './Checkbox';
@@ -68,3 +72,4 @@ export { default as Empty } from './Empty';
68
72
  export type { IEmptyProps as EmptyProps } from './Empty';
69
73
  export { default as Avatar } from './Avatar';
70
74
  export type { IAvatarProps as AvatarProps } from './Avatar';
75
+ export { default as Icon } from './Icon';
package/es/index.js CHANGED
@@ -9,14 +9,15 @@ export { default as Select } from './Select';
9
9
  export { default as Table } from './Table';
10
10
  export { default as Navigator } from './Navigator';
11
11
  export { default as Alert } from './Alert';
12
+ export { default as Card } from './Card';
12
13
  export { default as Col } from './Col';
13
14
  export { default as Typography } from './Typography';
14
15
  export { default as Upload } from './Upload';
15
16
  export { default as ConfigProvider } from './ConfigProvider';
16
17
  export { default as DatePicker } from './DatePicker';
17
18
  export { default as Layout } from './Layout';
18
- export { default as Message } from './Message';
19
- export { default as Notification } from './Notification';
19
+ export { default as message } from './message';
20
+ export { default as notification } from './notification';
20
21
  export { default as Tree } from './Tree';
21
22
  export { default as Skeleton } from './Skeleton';
22
23
  export { default as Row } from './Row';
@@ -26,6 +27,7 @@ export { default as Switch } from './Switch';
26
27
  export { default as Steps } from './Steps';
27
28
  export { default as Form } from './Form';
28
29
  export { default as Divider } from './Divider';
30
+ export { default as Drawer } from './Drawer';
29
31
  export { default as Radio } from './Radio';
30
32
  export { default as Checkbox } from './Checkbox';
31
33
  export { default as Modal } from './Modal';
@@ -33,4 +35,5 @@ export { default as Popover } from './Popover';
33
35
  export { default as InputNumber } from './InputNumber';
34
36
  export { default as Breadcrumb } from './Breadcrumb';
35
37
  export { default as Empty } from './Empty';
36
- export { default as Avatar } from './Avatar';
38
+ export { default as Avatar } from './Avatar';
39
+ export { default as Icon } from './Icon';
@@ -0,0 +1,2 @@
1
+ import defaultLocale from './zh_CN';
2
+ export default defaultLocale;
@@ -0,0 +1,2 @@
1
+ import defaultLocale from './zh_CN';
2
+ export default defaultLocale;
@@ -0,0 +1,3 @@
1
+ import type { Locale } from '../locale-provider';
2
+ declare const localeValues: Locale;
3
+ export default localeValues;
@@ -0,0 +1,132 @@
1
+ /* eslint-disable no-template-curly-in-string */
2
+ import Pagination from 'rc-pagination/lib/locale/en_US';
3
+ import Calendar from 'antd/es/calendar/locale/en_US';
4
+ import DatePicker from 'antd/es/date-picker/locale/en_US';
5
+ import TimePicker from 'antd/es/time-picker/locale/en_US';
6
+ var typeTemplate = '${label} is not a valid ${type}';
7
+ var localeValues = {
8
+ locale: 'en',
9
+ Pagination: Pagination,
10
+ DatePicker: DatePicker,
11
+ TimePicker: TimePicker,
12
+ Calendar: Calendar,
13
+ global: {
14
+ placeholder: 'Please select'
15
+ },
16
+ Table: {
17
+ filterTitle: 'Filter menu',
18
+ filterConfirm: 'OK',
19
+ filterReset: 'Reset',
20
+ filterEmptyText: 'No filters',
21
+ filterCheckall: 'Select all items',
22
+ filterSearchPlaceholder: 'Search in filters',
23
+ emptyText: 'No data',
24
+ selectAll: 'Select current page',
25
+ selectInvert: 'Invert current page',
26
+ selectNone: 'Clear all data',
27
+ selectionAll: 'Select all data',
28
+ sortTitle: 'Sort',
29
+ expand: 'Expand row',
30
+ collapse: 'Collapse row',
31
+ triggerDesc: 'Click to sort descending',
32
+ triggerAsc: 'Click to sort ascending',
33
+ cancelSort: 'Click to cancel sorting'
34
+ },
35
+ Modal: {
36
+ okText: 'OK',
37
+ cancelText: 'Cancel',
38
+ justOkText: 'OK'
39
+ },
40
+ Popconfirm: {
41
+ okText: 'OK',
42
+ cancelText: 'Cancel'
43
+ },
44
+ Transfer: {
45
+ titles: ['', ''],
46
+ searchPlaceholder: 'Search here',
47
+ itemUnit: 'item',
48
+ itemsUnit: 'items',
49
+ remove: 'Remove',
50
+ selectCurrent: 'Select current page',
51
+ removeCurrent: 'Remove current page',
52
+ selectAll: 'Select all data',
53
+ removeAll: 'Remove all data',
54
+ selectInvert: 'Invert current page'
55
+ },
56
+ Upload: {
57
+ uploading: 'Uploading...',
58
+ removeFile: 'Remove file',
59
+ uploadError: 'Upload error',
60
+ previewFile: 'Preview file',
61
+ downloadFile: 'Download file'
62
+ },
63
+ Empty: {
64
+ description: 'No Data'
65
+ },
66
+ Icon: {
67
+ icon: 'icon'
68
+ },
69
+ Text: {
70
+ edit: 'Edit',
71
+ copy: 'Copy',
72
+ copied: 'Copied',
73
+ expand: 'Expand'
74
+ },
75
+ PageHeader: {
76
+ back: 'Back'
77
+ },
78
+ Form: {
79
+ optional: '(optional)',
80
+ defaultValidateMessages: {
81
+ default: 'Field validation error for ${label}',
82
+ required: 'Please enter ${label}',
83
+ enum: '${label} must be one of [${enum}]',
84
+ whitespace: '${label} cannot be a blank character',
85
+ date: {
86
+ format: '${label} date format is invalid',
87
+ parse: '${label} cannot be converted to a date',
88
+ invalid: '${label} is an invalid date'
89
+ },
90
+ types: {
91
+ string: typeTemplate,
92
+ method: typeTemplate,
93
+ array: typeTemplate,
94
+ object: typeTemplate,
95
+ number: typeTemplate,
96
+ date: typeTemplate,
97
+ boolean: typeTemplate,
98
+ integer: typeTemplate,
99
+ float: typeTemplate,
100
+ regexp: typeTemplate,
101
+ email: typeTemplate,
102
+ url: typeTemplate,
103
+ hex: typeTemplate
104
+ },
105
+ string: {
106
+ len: '${label} must be ${len} characters',
107
+ min: '${label} must be at least ${min} characters',
108
+ max: '${label} must be up to ${max} characters',
109
+ range: '${label} must be between ${min}-${max} characters'
110
+ },
111
+ number: {
112
+ len: '${label} must be equal to ${len}',
113
+ min: '${label} must be minimum ${min}',
114
+ max: '${label} must be maximum ${max}',
115
+ range: '${label} must be between ${min}-${max}'
116
+ },
117
+ array: {
118
+ len: 'Must be ${len} ${label}',
119
+ min: 'At least ${min} ${label}',
120
+ max: 'At most ${max} ${label}',
121
+ range: 'The amount of ${label} must be between ${min}-${max}'
122
+ },
123
+ pattern: {
124
+ mismatch: '${label} does not match the pattern ${pattern}'
125
+ }
126
+ }
127
+ },
128
+ Image: {
129
+ preview: 'Preview'
130
+ }
131
+ };
132
+ export default localeValues;
@@ -1,2 +1,3 @@
1
- import zhCN from 'antd/es/locale/zh_CN';
2
- export default zhCN;
1
+ import type { Locale } from '../locale-provider';
2
+ declare const localeValues: Locale;
3
+ export default localeValues;
@@ -1,2 +1,131 @@
1
- import zhCN from 'antd/es/locale/zh_CN';
2
- export default zhCN;
1
+ /* eslint-disable no-template-curly-in-string */
2
+ import Pagination from 'rc-pagination/lib/locale/zh_CN';
3
+ import Calendar from 'antd/es/calendar/locale/zh_CN';
4
+ import DatePicker from 'antd/es/date-picker/locale/zh_CN';
5
+ import TimePicker from 'antd/es/time-picker/locale/zh_CN';
6
+ var typeTemplate = '${label}不是一个有效的${type}';
7
+ var localeValues = {
8
+ locale: 'zh-cn',
9
+ Pagination: Pagination,
10
+ DatePicker: DatePicker,
11
+ TimePicker: TimePicker,
12
+ Calendar: Calendar,
13
+ // locales for all components
14
+ global: {
15
+ placeholder: '请选择'
16
+ },
17
+ Table: {
18
+ filterTitle: '筛选',
19
+ filterConfirm: '确定',
20
+ filterReset: '重置',
21
+ filterEmptyText: '无筛选项',
22
+ filterCheckall: '全选',
23
+ filterSearchPlaceholder: '在筛选项中搜索',
24
+ selectAll: '全选当页',
25
+ selectInvert: '反选当页',
26
+ selectNone: '清空所有',
27
+ selectionAll: '全选所有',
28
+ sortTitle: '排序',
29
+ expand: '展开行',
30
+ collapse: '关闭行',
31
+ triggerDesc: '点击降序',
32
+ triggerAsc: '点击升序',
33
+ cancelSort: '取消排序'
34
+ },
35
+ Modal: {
36
+ okText: '确定',
37
+ cancelText: '取消',
38
+ justOkText: '知道了'
39
+ },
40
+ Popconfirm: {
41
+ cancelText: '取消',
42
+ okText: '确定'
43
+ },
44
+ Transfer: {
45
+ searchPlaceholder: '请输入搜索内容',
46
+ itemUnit: '项',
47
+ itemsUnit: '项',
48
+ remove: '删除',
49
+ selectCurrent: '全选当页',
50
+ removeCurrent: '删除当页',
51
+ selectAll: '全选所有',
52
+ removeAll: '删除全部',
53
+ selectInvert: '反选当页'
54
+ },
55
+ Upload: {
56
+ uploading: '文件上传中',
57
+ removeFile: '删除文件',
58
+ uploadError: '上传错误',
59
+ previewFile: '预览文件',
60
+ downloadFile: '下载文件'
61
+ },
62
+ Empty: {
63
+ description: '暂无数据'
64
+ },
65
+ Icon: {
66
+ icon: '图标'
67
+ },
68
+ Text: {
69
+ edit: '编辑',
70
+ copy: '复制',
71
+ copied: '复制成功',
72
+ expand: '展开'
73
+ },
74
+ PageHeader: {
75
+ back: '返回'
76
+ },
77
+ Form: {
78
+ optional: '(可选)',
79
+ defaultValidateMessages: {
80
+ default: '字段验证错误${label}',
81
+ required: '请输入${label}',
82
+ enum: '${label}必须是其中一个[${enum}]',
83
+ whitespace: '${label}不能为空字符',
84
+ date: {
85
+ format: '${label}日期格式无效',
86
+ parse: '${label}不能转换为日期',
87
+ invalid: '${label}是一个无效日期'
88
+ },
89
+ types: {
90
+ string: typeTemplate,
91
+ method: typeTemplate,
92
+ array: typeTemplate,
93
+ object: typeTemplate,
94
+ number: typeTemplate,
95
+ date: typeTemplate,
96
+ boolean: typeTemplate,
97
+ integer: typeTemplate,
98
+ float: typeTemplate,
99
+ regexp: typeTemplate,
100
+ email: typeTemplate,
101
+ url: typeTemplate,
102
+ hex: typeTemplate
103
+ },
104
+ string: {
105
+ len: '${label}须为${len}个字符',
106
+ min: '${label}最少${min}个字符',
107
+ max: '${label}最多${max}个字符',
108
+ range: '${label}须在${min}-${max}字符之间'
109
+ },
110
+ number: {
111
+ len: '${label}必须等于${len}',
112
+ min: '${label}最小值为${min}',
113
+ max: '${label}最大值为${max}',
114
+ range: '${label}须在${min}-${max}之间'
115
+ },
116
+ array: {
117
+ len: '须为${len}个${label}',
118
+ min: '最少${min}个${label}',
119
+ max: '最多${max}个${label}',
120
+ range: '${label}数量须在${min}-${max}之间'
121
+ },
122
+ pattern: {
123
+ mismatch: '${label}与模式不匹配${pattern}'
124
+ }
125
+ }
126
+ },
127
+ Image: {
128
+ preview: '预览'
129
+ }
130
+ };
131
+ export default localeValues;
@@ -0,0 +1,4 @@
1
+ import LocaleReceiver, { useLocaleReceiver } from 'antd/es/locale-provider/LocaleReceiver';
2
+ export default LocaleReceiver;
3
+ export type { LocaleComponentName, LocaleReceiverProps, } from 'antd/es/locale-provider/LocaleReceiver';
4
+ export { useLocaleReceiver };
@@ -0,0 +1,3 @@
1
+ import LocaleReceiver, { useLocaleReceiver } from 'antd/es/locale-provider/LocaleReceiver';
2
+ export default LocaleReceiver;
3
+ export { useLocaleReceiver };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { Locale } from '.';
3
+ export declare type LocaleContextProps = Partial<Locale> & {
4
+ exist?: boolean;
5
+ };
6
+ declare const LocaleContext: import("react").Context<LocaleContextProps | undefined>;
7
+ export default LocaleContext;
@@ -0,0 +1,3 @@
1
+ import { createContext } from 'react';
2
+ var LocaleContext = /*#__PURE__*/createContext(undefined);
3
+ export default LocaleContext;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/default';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/default';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/en_US';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/en_US';
2
+ export default locale;