@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
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.ANT_MARK = void 0;
9
+
10
+ var _memoizeOne = _interopRequireDefault(require("memoize-one"));
11
+
12
+ var React = _interopRequireWildcard(require("react"));
13
+
14
+ var _warning = _interopRequireDefault(require("antd/es/_util/warning"));
15
+
16
+ var _locale = require("antd/es/modal/locale");
17
+
18
+ var _context = _interopRequireDefault(require("./context"));
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
26
+ 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; }
27
+
28
+ 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; }
29
+
30
+ 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; }
31
+
32
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
+
34
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
35
+
36
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
37
+
38
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
+
40
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
+
42
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
43
+
44
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
45
+
46
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
47
+
48
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
49
+
50
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
+
52
+ var ANT_MARK = 'internalMark';
53
+ exports.ANT_MARK = ANT_MARK;
54
+
55
+ var LocaleProvider = /*#__PURE__*/function (_React$Component) {
56
+ _inherits(LocaleProvider, _React$Component);
57
+
58
+ var _super = _createSuper(LocaleProvider);
59
+
60
+ function LocaleProvider(props) {
61
+ var _this;
62
+
63
+ _classCallCheck(this, LocaleProvider);
64
+
65
+ _this = _super.call(this, props);
66
+ _this.getMemoizedContextValue = (0, _memoizeOne.default)(function (localeValue) {
67
+ return _objectSpread(_objectSpread({}, localeValue), {}, {
68
+ exist: true
69
+ });
70
+ });
71
+ (0, _locale.changeConfirmLocale)(props.locale && props.locale.Modal);
72
+ (0, _warning.default)( // eslint-disable-next-line no-underscore-dangle
73
+ props._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale');
74
+ return _this;
75
+ }
76
+
77
+ _createClass(LocaleProvider, [{
78
+ key: "componentDidMount",
79
+ value: function componentDidMount() {
80
+ (0, _locale.changeConfirmLocale)(this.props.locale && this.props.locale.Modal);
81
+ }
82
+ }, {
83
+ key: "componentDidUpdate",
84
+ value: function componentDidUpdate(prevProps) {
85
+ var locale = this.props.locale;
86
+
87
+ if (prevProps.locale !== locale) {
88
+ (0, _locale.changeConfirmLocale)(locale && locale.Modal);
89
+ }
90
+ }
91
+ }, {
92
+ key: "componentWillUnmount",
93
+ value: function componentWillUnmount() {
94
+ (0, _locale.changeConfirmLocale)();
95
+ }
96
+ }, {
97
+ key: "render",
98
+ value: function render() {
99
+ var _this$props = this.props,
100
+ locale = _this$props.locale,
101
+ children = _this$props.children;
102
+ var contextValue = this.getMemoizedContextValue(locale);
103
+ return /*#__PURE__*/React.createElement(_context.default.Provider, {
104
+ value: contextValue
105
+ }, children);
106
+ }
107
+ }]);
108
+
109
+ return LocaleProvider;
110
+ }(React.Component);
111
+
112
+ exports.default = LocaleProvider;
113
+ LocaleProvider.defaultProps = {
114
+ // eslint-disable-next-line react/default-props-match-prop-types
115
+ locale: {}
116
+ };
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
@@ -0,0 +1,2 @@
1
+ // placeholder
2
+ @import '../../style/themes/index';
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/zh_CN';
2
+ export default locale;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _zh_CN = _interopRequireDefault(require("../locale/zh_CN"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ var _default = _zh_CN.default;
13
+ exports.default = _default;
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,4 +1,5 @@
1
1
  @root-entry-name: default;
2
2
  @import './mixins/index.less';
3
+ @import './themes/default/scrollBar.less';
3
4
  @import './themes/default/index.less';
4
5
  @import './mixins/index.less';
@@ -0,0 +1,13 @@
1
+ ::-webkit-scrollbar-thumb {
2
+ background: @NL90;
3
+ background-clip: padding-box;
4
+ border: 3px solid transparent;
5
+ border-radius: 6px;
6
+ }
7
+
8
+ ::-webkit-scrollbar {
9
+ width: 12px;
10
+ height: 12px;
11
+ min-height: 12px;
12
+ background-color: transparent;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.3.0-beta.1",
3
+ "version": "0.3.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -53,12 +53,14 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@ant-design/icons": "^4.7.0",
56
- "antd": "^4.19.6",
56
+ "antd": "^4.21.5",
57
+ "babel-preset-react-app": "^10.0.1",
57
58
  "classnames": "^2.3.1",
58
59
  "lodash": "^4.17.21",
59
60
  "rc-input": "^0.0.1-alpha.6",
60
61
  "rc-menu": "^9.3.2",
61
62
  "rc-overflow": "^1.2.3",
63
+ "rc-pagination": "^3.1.17",
62
64
  "rc-resize-observer": "^1.2.0",
63
65
  "rc-trigger": "^5.2.10",
64
66
  "rc-util": "^5.21.5",
@@ -72,10 +74,12 @@
72
74
  "@aloudata/eslint-config-base": "^0.0.6",
73
75
  "@commitlint/cli": "^12.1.4",
74
76
  "@commitlint/config-angular": "^12.1.4",
75
- "@testing-library/jest-dom": "^5.15.1",
76
- "@testing-library/react": "^12.1.2",
77
+ "@testing-library/jest-dom": "^5.16.4",
78
+ "@testing-library/react": "^13.3.0",
77
79
  "@types/jest": "^27.0.3",
78
80
  "@types/lodash": "^4.14.178",
81
+ "@types/react": "^18.0.14",
82
+ "@types/react-dom": "^18.0.5",
79
83
  "@types/react-table": "^7.7.9",
80
84
  "@types/react-truncate": "^2.3.4",
81
85
  "@types/react-window": "^1.8.5",
@@ -100,6 +104,8 @@
100
104
  "postcss-import": "^14.1.0",
101
105
  "postcss-less": "^6.0.0",
102
106
  "prettier": "^2.2.1",
107
+ "react": "^18.2.0",
108
+ "react-dom": "^18.2.0",
103
109
  "stylelint": "^14.5.3",
104
110
  "stylelint-config-prettier": "^9.0.3",
105
111
  "stylelint-config-standard": "^25.0.0",
@@ -108,10 +114,6 @@
108
114
  "yorkie": "^2.0.0",
109
115
  "zx": "^6.1.0"
110
116
  },
111
- "peerDependencies": {
112
- "react": "^16.12.0 || ^17.0.0",
113
- "react-dom": "^16.12.0 || ^17.0.0"
114
- },
115
117
  "jest": {
116
118
  "setupFiles": [
117
119
  "./jest/setupTests.js"