@aloudata/aloudata-design 0.2.0-beta.7 → 0.2.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 (308) hide show
  1. package/README.md +188 -51
  2. package/es/Alert/index.d.ts +4 -0
  3. package/es/Alert/index.js +3 -0
  4. package/es/Alert/style/index.d.ts +2 -0
  5. package/es/Alert/style/index.js +2 -0
  6. package/es/Alert/style/index.less +1 -0
  7. package/es/Button/style/index.less +113 -63
  8. package/es/Checkbox/index.d.ts +11 -0
  9. package/es/Checkbox/index.js +38 -0
  10. package/es/Checkbox/style/index.d.ts +2 -0
  11. package/es/Checkbox/style/index.js +2 -0
  12. package/es/Checkbox/style/index.less +79 -0
  13. package/es/Col/index.d.ts +4 -0
  14. package/es/Col/index.js +3 -0
  15. package/es/Col/style/index.d.ts +2 -0
  16. package/es/Col/style/index.js +2 -0
  17. package/es/Col/style/index.less +1 -0
  18. package/es/ConfigProvider/index.d.ts +3 -0
  19. package/es/ConfigProvider/index.js +3 -0
  20. package/es/ConfigProvider/style/index.d.ts +2 -0
  21. package/es/ConfigProvider/style/index.js +2 -0
  22. package/es/ConfigProvider/style/index.less +1 -0
  23. package/es/DatePicker/index.d.ts +4 -0
  24. package/es/DatePicker/index.js +3 -0
  25. package/es/DatePicker/style/index.d.ts +2 -0
  26. package/es/DatePicker/style/index.js +2 -0
  27. package/es/DatePicker/style/index.less +1 -0
  28. package/es/Divider/index.d.ts +3 -0
  29. package/es/Divider/index.js +3 -0
  30. package/es/Divider/style/index.d.ts +2 -0
  31. package/es/Divider/style/index.js +2 -0
  32. package/es/Divider/style/index.less +1 -0
  33. package/es/Dropdown/Button.d.ts +1 -0
  34. package/es/Dropdown/Button.js +2 -1
  35. package/es/Dropdown/index.d.ts +22 -0
  36. package/es/Dropdown/style/index.d.ts +1 -0
  37. package/es/Dropdown/style/index.js +1 -0
  38. package/es/Empty/style/index.less +8 -7
  39. package/es/Form/index.d.ts +8 -0
  40. package/es/Form/index.js +3 -0
  41. package/es/Form/style/index.d.ts +2 -0
  42. package/es/Form/style/index.js +2 -0
  43. package/es/Form/style/index.less +1 -0
  44. package/es/Icon/index.d.ts +3 -0
  45. package/es/Icon/index.js +5 -2
  46. package/es/Input/components/Group/index.d.ts +1 -2
  47. package/es/Input/components/Input/index.d.ts +67 -0
  48. package/es/Input/components/Input/index.js +38 -0
  49. package/es/Input/components/Password/index.d.ts +5 -5
  50. package/es/Input/components/Password/index.js +5 -4
  51. package/es/Input/components/TextArea/index.d.ts +10 -4
  52. package/es/Input/components/TextArea/index.js +16 -6
  53. package/es/Input/index.d.ts +14 -62
  54. package/es/Input/index.js +4 -40
  55. package/es/Input/style/index.d.ts +1 -0
  56. package/es/Input/style/index.js +1 -0
  57. package/es/Input/style/index.less +44 -12
  58. package/es/Layout/index.d.ts +4 -0
  59. package/es/Layout/index.js +3 -0
  60. package/es/Layout/style/index.d.ts +2 -0
  61. package/es/Layout/style/index.js +2 -0
  62. package/es/Layout/style/index.less +1 -0
  63. package/es/Menu/MenuItem.d.ts +7 -1
  64. package/es/Menu/style/index.d.ts +1 -0
  65. package/es/Menu/style/index.js +1 -0
  66. package/es/Menu/style/index.less +9 -5
  67. package/es/Message/index.d.ts +4 -0
  68. package/es/Message/index.js +3 -0
  69. package/es/Message/style/index.d.ts +2 -0
  70. package/es/Message/style/index.js +2 -0
  71. package/es/Message/style/index.less +1 -0
  72. package/es/Navigator/components/Menu/index.js +2 -2
  73. package/es/Notification/index.d.ts +3 -0
  74. package/es/Notification/index.js +3 -0
  75. package/es/Notification/style/index.d.ts +2 -0
  76. package/es/Notification/style/index.js +2 -0
  77. package/es/Notification/style/index.less +1 -0
  78. package/es/Radio/index.d.ts +4 -0
  79. package/es/Radio/index.js +3 -0
  80. package/es/Radio/style/index.d.ts +2 -0
  81. package/es/Radio/style/index.js +2 -0
  82. package/es/Radio/style/index.less +1 -0
  83. package/es/Row/index.d.ts +3 -0
  84. package/es/Row/index.js +1 -0
  85. package/es/Row/style/index.d.ts +2 -0
  86. package/es/Row/style/index.js +2 -0
  87. package/es/Row/style/index.less +1 -0
  88. package/es/Select/BaseSelect.js +18 -5
  89. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +2 -1
  90. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
  91. package/es/Select/OptionsList/index.js +13 -20
  92. package/es/Select/Selector/index.js +13 -9
  93. package/es/Select/interface.d.ts +10 -2
  94. package/es/Select/style/index.less +63 -30
  95. package/es/Skeleton/index.d.ts +3 -0
  96. package/es/Skeleton/index.js +2 -0
  97. package/es/Skeleton/style/index.d.ts +2 -0
  98. package/es/Skeleton/style/index.js +2 -0
  99. package/es/Skeleton/style/index.less +1 -0
  100. package/es/Space/index.d.ts +4 -0
  101. package/es/Space/index.js +3 -0
  102. package/es/Space/style/index.d.ts +2 -0
  103. package/es/Space/style/index.js +2 -0
  104. package/es/Space/style/index.less +1 -0
  105. package/es/Spin/index.d.ts +4 -0
  106. package/es/Spin/index.js +2 -0
  107. package/es/Spin/style/index.d.ts +2 -0
  108. package/es/Spin/style/index.js +2 -0
  109. package/es/Spin/style/index.less +1 -0
  110. package/es/Steps/index.d.ts +3 -0
  111. package/es/Steps/index.js +2 -0
  112. package/es/Steps/style/index.d.ts +2 -0
  113. package/es/Steps/style/index.js +2 -0
  114. package/es/Steps/style/index.less +1 -0
  115. package/es/Switch/index.d.ts +4 -0
  116. package/es/Switch/index.js +2 -0
  117. package/es/Switch/style/index.d.ts +2 -0
  118. package/es/Switch/style/index.js +2 -0
  119. package/es/Switch/style/index.less +1 -0
  120. package/es/Table/index.d.ts +3 -3
  121. package/es/Table/index.js +286 -157
  122. package/es/Table/interface.d.ts +12 -4
  123. package/es/Table/react-table-config.d.ts +45 -45
  124. package/es/Table/style/index.less +121 -63
  125. package/es/Tabs/index.d.ts +5 -0
  126. package/es/Tabs/index.js +7 -4
  127. package/es/Tabs/style/index.d.ts +1 -0
  128. package/es/Tabs/style/index.js +1 -0
  129. package/es/Tabs/style/index.less +9 -2
  130. package/es/Tooltip/style/index.less +1 -1
  131. package/es/Tree/index.d.ts +5 -0
  132. package/es/Tree/index.js +2 -0
  133. package/es/Tree/style/index.d.ts +2 -0
  134. package/es/Tree/style/index.js +2 -0
  135. package/es/Tree/style/index.less +1 -0
  136. package/es/Typography/index.d.ts +3 -0
  137. package/es/Typography/index.js +3 -0
  138. package/es/Typography/style/index.d.ts +2 -0
  139. package/es/Typography/style/index.js +2 -0
  140. package/es/Typography/style/index.less +1 -0
  141. package/es/Upload/index.d.ts +4 -0
  142. package/es/Upload/index.js +3 -0
  143. package/es/Upload/style/index.d.ts +2 -0
  144. package/es/Upload/style/index.js +2 -0
  145. package/es/Upload/style/index.less +1 -0
  146. package/es/_utils/hooks/useControlledState.d.ts +1 -1
  147. package/es/_utils/hooks/useControlledState.js +11 -11
  148. package/es/index.d.ts +39 -1
  149. package/es/index.js +21 -1
  150. package/es/locale/zh_CN.d.ts +2 -0
  151. package/es/locale/zh_CN.js +2 -0
  152. package/es/style/index.d.ts +1 -1
  153. package/es/style/index.js +1 -1
  154. package/es/style/themes/default/index.less +1 -1
  155. package/lib/Alert/index.d.ts +4 -0
  156. package/lib/Alert/index.js +15 -0
  157. package/lib/Alert/style/index.d.ts +2 -0
  158. package/lib/Alert/style/index.js +5 -0
  159. package/lib/Alert/style/index.less +1 -0
  160. package/lib/Button/style/index.less +113 -63
  161. package/lib/Checkbox/index.d.ts +11 -0
  162. package/lib/Checkbox/index.js +52 -0
  163. package/lib/Checkbox/style/index.d.ts +2 -0
  164. package/lib/Checkbox/style/index.js +5 -0
  165. package/lib/Checkbox/style/index.less +79 -0
  166. package/lib/Col/index.d.ts +4 -0
  167. package/lib/Col/index.js +15 -0
  168. package/lib/Col/style/index.d.ts +2 -0
  169. package/lib/Col/style/index.js +5 -0
  170. package/lib/Col/style/index.less +1 -0
  171. package/lib/ConfigProvider/index.d.ts +3 -0
  172. package/lib/ConfigProvider/index.js +15 -0
  173. package/lib/ConfigProvider/style/index.d.ts +2 -0
  174. package/lib/ConfigProvider/style/index.js +5 -0
  175. package/lib/ConfigProvider/style/index.less +1 -0
  176. package/lib/DatePicker/index.d.ts +4 -0
  177. package/lib/DatePicker/index.js +15 -0
  178. package/lib/DatePicker/style/index.d.ts +2 -0
  179. package/lib/DatePicker/style/index.js +5 -0
  180. package/lib/DatePicker/style/index.less +1 -0
  181. package/lib/Divider/index.d.ts +3 -0
  182. package/lib/Divider/index.js +15 -0
  183. package/lib/Divider/style/index.d.ts +2 -0
  184. package/lib/Divider/style/index.js +5 -0
  185. package/lib/Divider/style/index.less +1 -0
  186. package/lib/Dropdown/Button.d.ts +1 -0
  187. package/lib/Dropdown/Button.js +2 -0
  188. package/lib/Dropdown/index.d.ts +22 -0
  189. package/lib/Dropdown/style/index.d.ts +1 -0
  190. package/lib/Dropdown/style/index.js +2 -0
  191. package/lib/Empty/style/index.less +8 -7
  192. package/lib/Form/index.d.ts +8 -0
  193. package/lib/Form/index.js +15 -0
  194. package/lib/Form/style/index.d.ts +2 -0
  195. package/lib/Form/style/index.js +5 -0
  196. package/lib/Form/style/index.less +1 -0
  197. package/lib/Icon/index.d.ts +3 -0
  198. package/lib/Icon/index.js +11 -3
  199. package/lib/Input/components/Group/index.d.ts +1 -2
  200. package/lib/Input/components/Input/index.d.ts +67 -0
  201. package/lib/Input/components/Input/index.js +51 -0
  202. package/lib/Input/components/Password/index.d.ts +5 -5
  203. package/lib/Input/components/Password/index.js +10 -8
  204. package/lib/Input/components/TextArea/index.d.ts +10 -4
  205. package/lib/Input/components/TextArea/index.js +18 -7
  206. package/lib/Input/index.d.ts +14 -62
  207. package/lib/Input/index.js +4 -42
  208. package/lib/Input/style/index.d.ts +1 -0
  209. package/lib/Input/style/index.js +2 -0
  210. package/lib/Input/style/index.less +44 -12
  211. package/lib/Layout/index.d.ts +4 -0
  212. package/lib/Layout/index.js +15 -0
  213. package/lib/Layout/style/index.d.ts +2 -0
  214. package/lib/Layout/style/index.js +5 -0
  215. package/lib/Layout/style/index.less +1 -0
  216. package/lib/Menu/MenuItem.d.ts +7 -1
  217. package/lib/Menu/style/index.d.ts +1 -0
  218. package/lib/Menu/style/index.js +2 -0
  219. package/lib/Menu/style/index.less +9 -5
  220. package/lib/Message/index.d.ts +4 -0
  221. package/lib/Message/index.js +15 -0
  222. package/lib/Message/style/index.d.ts +2 -0
  223. package/lib/Message/style/index.js +5 -0
  224. package/lib/Message/style/index.less +1 -0
  225. package/lib/Navigator/components/Menu/index.js +2 -2
  226. package/lib/Notification/index.d.ts +3 -0
  227. package/lib/Notification/index.js +15 -0
  228. package/lib/Notification/style/index.d.ts +2 -0
  229. package/lib/Notification/style/index.js +5 -0
  230. package/lib/Notification/style/index.less +1 -0
  231. package/lib/Radio/index.d.ts +4 -0
  232. package/lib/Radio/index.js +15 -0
  233. package/lib/Radio/style/index.d.ts +2 -0
  234. package/lib/Radio/style/index.js +5 -0
  235. package/lib/Radio/style/index.less +1 -0
  236. package/lib/Row/index.d.ts +3 -0
  237. package/lib/Row/index.js +8 -0
  238. package/lib/Row/style/index.d.ts +2 -0
  239. package/lib/Row/style/index.js +5 -0
  240. package/lib/Row/style/index.less +1 -0
  241. package/lib/Select/BaseSelect.js +18 -5
  242. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +2 -1
  243. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
  244. package/lib/Select/OptionsList/index.js +12 -20
  245. package/lib/Select/Selector/index.js +13 -9
  246. package/lib/Select/interface.d.ts +10 -2
  247. package/lib/Select/style/index.less +63 -30
  248. package/lib/Skeleton/index.d.ts +3 -0
  249. package/lib/Skeleton/index.js +13 -0
  250. package/lib/Skeleton/style/index.d.ts +2 -0
  251. package/lib/Skeleton/style/index.js +5 -0
  252. package/lib/Skeleton/style/index.less +1 -0
  253. package/lib/Space/index.d.ts +4 -0
  254. package/lib/Space/index.js +23 -0
  255. package/lib/Space/style/index.d.ts +2 -0
  256. package/lib/Space/style/index.js +5 -0
  257. package/lib/Space/style/index.less +1 -0
  258. package/lib/Spin/index.d.ts +4 -0
  259. package/lib/Spin/index.js +13 -0
  260. package/lib/Spin/style/index.d.ts +2 -0
  261. package/lib/Spin/style/index.js +5 -0
  262. package/lib/Spin/style/index.less +1 -0
  263. package/lib/Steps/index.d.ts +3 -0
  264. package/lib/Steps/index.js +13 -0
  265. package/lib/Steps/style/index.d.ts +2 -0
  266. package/lib/Steps/style/index.js +5 -0
  267. package/lib/Steps/style/index.less +1 -0
  268. package/lib/Switch/index.d.ts +4 -0
  269. package/lib/Switch/index.js +13 -0
  270. package/lib/Switch/style/index.d.ts +2 -0
  271. package/lib/Switch/style/index.js +5 -0
  272. package/lib/Switch/style/index.less +1 -0
  273. package/lib/Table/index.d.ts +3 -3
  274. package/lib/Table/index.js +295 -165
  275. package/lib/Table/interface.d.ts +12 -4
  276. package/lib/Table/react-table-config.d.ts +45 -45
  277. package/lib/Table/style/index.less +121 -63
  278. package/lib/Tabs/index.d.ts +5 -0
  279. package/lib/Tabs/index.js +6 -3
  280. package/lib/Tabs/style/index.d.ts +1 -0
  281. package/lib/Tabs/style/index.js +2 -0
  282. package/lib/Tabs/style/index.less +9 -2
  283. package/lib/Tooltip/style/index.less +1 -1
  284. package/lib/Tree/index.d.ts +5 -0
  285. package/lib/Tree/index.js +13 -0
  286. package/lib/Tree/style/index.d.ts +2 -0
  287. package/lib/Tree/style/index.js +5 -0
  288. package/lib/Tree/style/index.less +1 -0
  289. package/lib/Typography/index.d.ts +3 -0
  290. package/lib/Typography/index.js +15 -0
  291. package/lib/Typography/style/index.d.ts +2 -0
  292. package/lib/Typography/style/index.js +5 -0
  293. package/lib/Typography/style/index.less +1 -0
  294. package/lib/Upload/index.d.ts +4 -0
  295. package/lib/Upload/index.js +15 -0
  296. package/lib/Upload/style/index.d.ts +2 -0
  297. package/lib/Upload/style/index.js +5 -0
  298. package/lib/Upload/style/index.less +1 -0
  299. package/lib/_utils/hooks/useControlledState.d.ts +1 -1
  300. package/lib/_utils/hooks/useControlledState.js +11 -11
  301. package/lib/index.d.ts +39 -1
  302. package/lib/index.js +160 -0
  303. package/lib/locale/zh_CN.d.ts +2 -0
  304. package/lib/locale/zh_CN.js +13 -0
  305. package/lib/style/index.d.ts +1 -1
  306. package/lib/style/index.js +1 -1
  307. package/lib/style/themes/default/index.less +1 -1
  308. package/package.json +16 -5
@@ -0,0 +1,38 @@
1
+ import "antd/es/checkbox/style";
2
+ import _Checkbox from "antd/es/checkbox";
3
+ var _excluded = ["className"],
4
+ _excluded2 = ["className"];
5
+
6
+ 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; }
7
+
8
+ 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; }
9
+
10
+ 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; }
11
+
12
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
+
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+
16
+ import React from 'react';
17
+ import classNames from 'classnames';
18
+ var CheckboxGroup = _Checkbox.Group;
19
+
20
+ function Checkbox(props) {
21
+ var className = props.className,
22
+ otherProps = _objectWithoutProperties(props, _excluded);
23
+
24
+ return /*#__PURE__*/React.createElement(_Checkbox, _objectSpread({
25
+ className: classNames('ald-checkbox', className)
26
+ }, otherProps));
27
+ }
28
+
29
+ Checkbox.Group = function (props) {
30
+ var className = props.className,
31
+ otherProps = _objectWithoutProperties(props, _excluded2);
32
+
33
+ return /*#__PURE__*/React.createElement(CheckboxGroup, _objectSpread({
34
+ className: classNames('ald-checkbox', className)
35
+ }, otherProps));
36
+ };
37
+
38
+ export default Checkbox;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,79 @@
1
+ @import '../../style/index.less';
2
+
3
+ .ald-checkbox {
4
+ .ant-checkbox-inner {
5
+ background-color: @BG97;
6
+ border-color: @NL60;
7
+ border-radius: 4px;
8
+ }
9
+
10
+ .ant-checkbox-checked {
11
+ &::after,
12
+ .ant-checkbox-inner {
13
+ background-color: @B60;
14
+ border-color: @B60;
15
+ border-radius: 4px;
16
+ }
17
+
18
+ .ant-checkbox-inner {
19
+ background-color: @B60;
20
+ border-color: @B60;
21
+
22
+ &::after {
23
+ top: 3px;
24
+ left: 2px;
25
+ z-index: 10;
26
+ width: 10px;
27
+ height: 8px;
28
+ background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9IndoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuNjc1NzMgMC4yNjI4NTJDMTAuMDgyOCAwLjYzNjA0NCAxMC4xMTA0IDEuMjY4NjEgOS43MzcxNiAxLjY3NTczTDQuMjM3MTYgNy42NzU3M0M0LjA0Nzc1IDcuODgyMzYgMy43ODAzMSA4LjAwMDAxIDMuNTAwMDEgOC4wMDAwMUMzLjIxOTcgOC4wMDAwMSAyLjk1MjI2IDcuODgyMzYgMi43NjI4NSA3LjY3NTczTDAuMjYyODUyIDQuOTQ4NDZDLTAuMTEwMzQxIDQuNTQxMzQgLTAuMDgyODM3OCAzLjkwODc3IDAuMzI0MjgxIDMuNTM1NThDMC43MzE0IDMuMTYyMzkgMS4zNjM5NyAzLjE4OTg5IDEuNzM3MTYgMy41OTcwMUwzLjUwMDAxIDUuNTIwMTFMOC4yNjI4NSAwLjMyNDI4MUM4LjYzNjA0IC0wLjA4MjgzNzggOS4yNjg2MSAtMC4xMTAzNDEgOS42NzU3MyAwLjI2Mjg1MloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')
29
+ no-repeat;
30
+ border-width: 0;
31
+ transform: none;
32
+ }
33
+ }
34
+ }
35
+
36
+ .ant-checkbox-disabled {
37
+ .ant-checkbox-inner {
38
+ background-color: @NL90;
39
+ border-color: @NL90;
40
+
41
+ &::after {
42
+ top: 3px;
43
+ left: 2px;
44
+ z-index: 10;
45
+ width: 10px;
46
+ height: 8px;
47
+ background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOS42NzU3MyAwLjI2Mjg1MkMxMC4wODI4IDAuNjM2MDQ0IDEwLjExMDQgMS4yNjg2MSA5LjczNzE2IDEuNjc1NzNMNC4yMzcxNiA3LjY3NTczQzQuMDQ3NzUgNy44ODIzNiAzLjc4MDMxIDguMDAwMDEgMy41MDAwMSA4LjAwMDAxQzMuMjE5NyA4LjAwMDAxIDIuOTUyMjYgNy44ODIzNiAyLjc2Mjg1IDcuNjc1NzNMMC4yNjI4NTIgNC45NDg0NkMtMC4xMTAzNDEgNC41NDEzNCAtMC4wODI4Mzc4IDMuOTA4NzcgMC4zMjQyODEgMy41MzU1OEMwLjczMTQgMy4xNjIzOSAxLjM2Mzk3IDMuMTg5ODkgMS43MzcxNiAzLjU5NzAxTDMuNTAwMDEgNS41MjAxMUw4LjI2Mjg1IDAuMzI0MjgxQzguNjM2MDQgLTAuMDgyODM3OCA5LjI2ODYxIC0wLjExMDM0MSA5LjY3NTczIDAuMjYyODUyWiIgZmlsbD0iIzAwMUEzMyIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9zdmc+Cg==');
48
+ border-width: 0;
49
+ transform: none;
50
+ }
51
+ }
52
+ }
53
+
54
+ .ant-checkbox-indeterminate {
55
+ .ant-checkbox-inner {
56
+ background-color: @B60;
57
+ border-color: @B60;
58
+
59
+ &::after {
60
+ width: 10px;
61
+ height: 2px;
62
+ background-color: @ND0;
63
+ border-radius: 2px;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ .ant-checkbox-group.ald-checkbox,
70
+ .ant-checkbox-wrapper.ald-checkbox {
71
+ &:hover .ant-checkbox-inner {
72
+ border-color: @B60;
73
+ }
74
+
75
+ .ant-checkbox:hover .ant-checkbox-inner,
76
+ .ant-checkbox-input:focus + .ant-checkbox-inner {
77
+ border-color: @B60;
78
+ }
79
+ }
@@ -0,0 +1,4 @@
1
+ import { Col } from 'antd';
2
+ import { ColSize, ColProps } from 'antd/lib/grid/col';
3
+ export { ColSize, ColProps };
4
+ export default Col;
@@ -0,0 +1,3 @@
1
+ import "antd/es/col/style";
2
+ import _Col from "antd/es/col";
3
+ export default _Col;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,3 @@
1
+ import { ConfigProvider } from 'antd';
2
+ export type { ConfigProviderProps } from 'antd/lib/config-provider';
3
+ export default ConfigProvider;
@@ -0,0 +1,3 @@
1
+ import "antd/es/config-provider/style";
2
+ import _ConfigProvider from "antd/es/config-provider";
3
+ export default _ConfigProvider;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,4 @@
1
+ import { DatePicker, DatePickerProps } from 'antd';
2
+ export type { MonthPickerProps, WeekPickerProps, RangePickerProps } from 'antd/lib/date-picker';
3
+ export type { DatePickerProps };
4
+ export default DatePicker;
@@ -0,0 +1,3 @@
1
+ import "antd/es/date-picker/style";
2
+ import _DatePicker from "antd/es/date-picker";
3
+ export default _DatePicker;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,3 @@
1
+ import { Divider, DividerProps } from 'antd';
2
+ export type { DividerProps };
3
+ export default Divider;
@@ -0,0 +1,3 @@
1
+ import "antd/es/divider/style";
2
+ import _Divider from "antd/es/divider";
3
+ export default _Divider;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,5 +1,6 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { ButtonType, Size } from '../Button';
3
+ import '../Button/style';
3
4
  export declare type ActionType = 'hover' | 'click' | 'contextMenu';
4
5
  export interface IDropdownButton {
5
6
  /**
@@ -11,7 +11,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
12
 
13
13
  import React from 'react';
14
- import Button from '../Button'; // eslint-disable-next-line import/no-cycle
14
+ import Button from '../Button';
15
+ import '../Button/style'; // eslint-disable-next-line import/no-cycle
15
16
 
16
17
  import Dropdown from './index';
17
18
  import Icon from '../Icon';
@@ -1,8 +1,25 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import DropdownButton from './Button';
3
+ declare type Align = {
4
+ points?: [string, string];
5
+ offset?: [number, number];
6
+ targetOffset?: [number, number];
7
+ overflow?: {
8
+ adjustX?: boolean;
9
+ adjustY?: boolean;
10
+ };
11
+ useCssRight?: boolean;
12
+ useCssBottom?: boolean;
13
+ useCssTransform?: boolean;
14
+ };
3
15
  export declare type ActionType = 'hover' | 'click' | 'contextMenu';
4
16
  export declare type PlacementType = 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
5
17
  export interface IDropdownProps {
18
+ /**
19
+ * @description 位置状态
20
+ * @default {}
21
+ */
22
+ align?: Align;
6
23
  /**
7
24
  * @description 关闭后是否销毁Dropdown
8
25
  * @default false
@@ -45,6 +62,11 @@ export interface IDropdownProps {
45
62
  * @default -
46
63
  */
47
64
  onVisibleChange?: (visible: boolean) => void;
65
+ /**
66
+ * @description 下拉框的属性
67
+ * @default -
68
+ */
69
+ overlayStyle?: React.CSSProperties;
48
70
  children?: React.ReactNode;
49
71
  /**
50
72
  * @description 是否禁用
@@ -1,2 +1,3 @@
1
+ import 'antd/lib/dropdown/style';
1
2
  import '../../style';
2
3
  import './index.less';
@@ -1,2 +1,3 @@
1
+ import 'antd/lib/dropdown/style';
1
2
  import '../../style';
2
3
  import './index.less';
@@ -1,23 +1,24 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @ald-prefix:ant;
4
- @ald-iconfont-css-prefix:anticon;
5
- .@{ald-prefix}-empty {
3
+ @ald-prefix: ant;
4
+ @ald-iconfont-css-prefix: anticon;
5
+
6
+ .ant-empty {
6
7
  display: flex;
7
8
  align-items: center;
8
9
  justify-content: center;
9
- padding: 46px 0;
10
10
  height: 100%;
11
+ padding: 46px 0;
11
12
 
12
13
  &-content {
13
14
  text-align: center;
14
15
  }
15
16
 
16
17
  &-description {
17
- font-size: 12px;
18
- font-weight: 500;
19
18
  color: @NL0;
20
- text-align: center;
19
+ font-weight: 500;
20
+ font-size: 12px;
21
21
  line-height: 16px;
22
+ text-align: center;
22
23
  }
23
24
  }
@@ -0,0 +1,8 @@
1
+ import { Form } from 'antd';
2
+ import { FormInstance, RuleRender, RuleObject, Rule } from 'antd/lib/form';
3
+ import { FormProps } from 'antd/lib/form/Form';
4
+ import { FormItemProps } from 'antd/lib/form/FormItem';
5
+ import { FormListProps } from 'antd/lib/form/FormList';
6
+ import { ErrorListProps } from 'antd/lib/form/ErrorList';
7
+ export { FormInstance, FormProps, FormItemProps, Rule, RuleObject, RuleRender, FormListProps, ErrorListProps, };
8
+ export default Form;
@@ -0,0 +1,3 @@
1
+ import "antd/es/form/style";
2
+ import _Form from "antd/es/form";
3
+ export default _Form;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { IconFontProps } from '@ant-design/icons/lib/components/IconFont';
3
+ import { createFromIconfontCN } from '@ant-design/icons';
3
4
  declare const Icon: (props: IIconProps) => JSX.Element;
4
5
  export default Icon;
6
+ export type { IconFontProps };
7
+ export { createFromIconfontCN };
5
8
  export interface IIconProps extends IconFontProps {
6
9
  className?: string;
7
10
  size?: number;
package/es/Icon/index.js CHANGED
@@ -6,8 +6,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6
6
 
7
7
  import React from 'react';
8
8
  import { createFromIconfontCN } from '@ant-design/icons'; // @ts-ignore iconfont.js 没有ts类型定义
9
+ // import iconfontJs from './iconfont/iconfont';
10
+
11
+ var iconfontJs = require('./iconfont/iconfont');
9
12
 
10
- import iconfontJs from './iconfont/iconfont';
11
13
  var IconFont = createFromIconfontCN({
12
14
  scriptUrl: iconfontJs
13
15
  });
@@ -39,4 +41,5 @@ var Icon = function Icon(props) {
39
41
  }));
40
42
  };
41
43
 
42
- export default Icon;
44
+ export default Icon;
45
+ export { createFromIconfontCN };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { GroupProps } from 'antd/lib/input';
3
- interface IGroupProps extends GroupProps {
3
+ export interface IGroupProps extends GroupProps {
4
4
  /**
5
5
  * @description 是否用紧凑模式
6
6
  * @default false
@@ -13,4 +13,3 @@ interface IGroupProps extends GroupProps {
13
13
  size?: 'large' | 'default' | 'small';
14
14
  }
15
15
  export default function Group(props: IGroupProps): JSX.Element;
16
- export {};
@@ -0,0 +1,67 @@
1
+ import React, { ReactNode } from 'react';
2
+ import type { InputProps } from 'antd/lib/input/Input';
3
+ import type { InputRef } from 'rc-input';
4
+ interface IShowCountProps {
5
+ formatter: (args: {
6
+ count: number;
7
+ maxLength?: number;
8
+ }) => string;
9
+ }
10
+ export declare type TSize = 'small' | 'default' | 'large';
11
+ export type { InputRef };
12
+ declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
13
+ export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange'> {
14
+ /**
15
+ * @description 输入框尺寸
16
+ * @default default
17
+ * @type 'small' | 'default' | 'large';
18
+ */
19
+ size?: TSize;
20
+ /**
21
+ * @description 输入框id
22
+ */
23
+ id?: string;
24
+ /**
25
+ * @description 提示文字
26
+ */
27
+ prefix?: ReactNode;
28
+ /**
29
+ * @description 带标签的 input,设置前置标签
30
+ */
31
+ allowClear?: boolean;
32
+ /**
33
+ * @description 可以点击清除图标删除内容
34
+ * @default true
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * @description 提示文字
39
+ * @default false
40
+ * @type boolean | { formatter: (args: { count: number; maxLength?: number; }) => string; };
41
+ */
42
+ showCount?: boolean | IShowCountProps;
43
+ /**
44
+ * @description 最大长度
45
+ */
46
+ maxLength?: number;
47
+ /**
48
+ * @description 输入框内容
49
+ */
50
+ value?: string;
51
+ /**
52
+ * @description 输入框默认内容
53
+ */
54
+ defaultValue?: string;
55
+ /**
56
+ * @description 按下回车的回调
57
+ * @type (e) => void
58
+ */
59
+ onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
60
+ /**
61
+ * @description 输入框内容变化时的回调
62
+ * @type (e: React.ChangeEvent<HTMLInputElement>) => void;
63
+ */
64
+ onChange?: ChangeEventHandler;
65
+ }
66
+ declare const Input: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<InputRef>>;
67
+ export default Input;
@@ -0,0 +1,38 @@
1
+ var _excluded = ["size"];
2
+
3
+ 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; }
4
+
5
+ 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; }
6
+
7
+ 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; }
8
+
9
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
+
11
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
+
13
+ import React from 'react';
14
+ import AntdInput from 'antd/lib/input/Input';
15
+ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
16
+ var _props$size = props.size,
17
+ size = _props$size === void 0 ? 'default' : _props$size,
18
+ rest = _objectWithoutProperties(props, _excluded);
19
+
20
+ var getInputSize = function getInputSize(inputSize) {
21
+ if (inputSize === 'small' || inputSize === 'large') {
22
+ return inputSize;
23
+ }
24
+
25
+ return 'middle';
26
+ };
27
+
28
+ return /*#__PURE__*/React.createElement(AntdInput, _objectSpread(_objectSpread({}, rest), {}, {
29
+ // @ts-ignore
30
+ ref: ref,
31
+ size: getInputSize(size),
32
+ bordered: true,
33
+ addonAfter: null,
34
+ addonBefore: null,
35
+ suffix: null
36
+ }));
37
+ });
38
+ export default Input;
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
- import { InputProps } from 'antd';
3
- interface IPasswordProps extends InputProps {
1
+ import React from 'react';
2
+ import { PasswordProps } from 'antd/lib/input/Password';
3
+ export interface IPasswordProps extends PasswordProps {
4
4
  /**
5
5
  * @description 是否显示切换按钮
6
6
  * @default true
7
7
  */
8
8
  visibilityToggle?: boolean;
9
9
  }
10
- export default function Password(props: IPasswordProps): JSX.Element;
11
- export {};
10
+ declare const _default: React.ForwardRefExoticComponent<IPasswordProps & React.RefAttributes<any>>;
11
+ export default _default;
@@ -5,11 +5,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  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; }
6
6
 
7
7
  import React from 'react';
8
- import AntdInput from 'antd/lib/input';
9
8
  import Icon from '../../../Icon';
10
- var AntdPassword = AntdInput.Password;
11
- export default function Password(props) {
9
+ import AntdPassword from 'antd/lib/input/Password'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+
11
+ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
12
12
  return /*#__PURE__*/React.createElement(AntdPassword, _objectSpread(_objectSpread({}, props), {}, {
13
+ ref: ref,
13
14
  iconRender: function iconRender(visible) {
14
15
  var type = visible ? 'eye' : 'eye_off';
15
16
  return /*#__PURE__*/React.createElement(Icon, {
@@ -17,4 +18,4 @@ export default function Password(props) {
17
18
  });
18
19
  }
19
20
  }));
20
- }
21
+ });
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { TextAreaProps } from 'antd/lib/input';
3
- interface ITextAreaProps extends Omit<TextAreaProps, 'onPressEnter'> {
2
+ import { TextAreaProps, TextAreaRef } from 'antd/lib/input/TextArea';
3
+ export type { TextAreaRef };
4
+ export interface ITextAreaProps extends Omit<TextAreaProps, 'onPressEnter'> {
4
5
  /**
5
6
  * @description 可以点击清除图标删除内容
6
7
  * @default false
@@ -47,6 +48,11 @@ interface ITextAreaProps extends Omit<TextAreaProps, 'onPressEnter'> {
47
48
  width: number;
48
49
  height: number;
49
50
  }) => void;
51
+ /**
52
+ * @description 是否有边框
53
+ * @type boolean
54
+ */
55
+ border?: boolean;
50
56
  }
51
- export default function TextArea(props: ITextAreaProps): JSX.Element;
52
- export {};
57
+ declare const _default: React.ForwardRefExoticComponent<ITextAreaProps & React.RefAttributes<TextAreaRef>>;
58
+ export default _default;
@@ -1,14 +1,24 @@
1
+ var _excluded = ["bordered"];
2
+
1
3
  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; }
2
4
 
3
5
  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; }
4
6
 
5
7
  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; }
6
8
 
9
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
+
11
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
+
7
13
  import React from 'react';
8
- import AntdInput from 'antd/lib/input';
9
- var AntdTextArea = AntdInput.TextArea;
10
- export default function TextArea(props) {
11
- return /*#__PURE__*/React.createElement(AntdTextArea, _objectSpread(_objectSpread({}, props), {}, {
12
- bordered: true
14
+ import AntdTextArea from 'antd/lib/input/TextArea';
15
+ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
16
+ var _props$bordered = props.bordered,
17
+ bordered = _props$bordered === void 0 ? true : _props$bordered,
18
+ rest = _objectWithoutProperties(props, _excluded);
19
+
20
+ return /*#__PURE__*/React.createElement(AntdTextArea, _objectSpread(_objectSpread({}, rest), {}, {
21
+ ref: ref,
22
+ bordered: bordered
13
23
  }));
14
- }
24
+ });