@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
package/es/index.js CHANGED
@@ -7,4 +7,24 @@ export { default as Tabs } from './Tabs';
7
7
  export { default as Tooltip } from './Tooltip';
8
8
  export { default as Select } from './Select';
9
9
  export { default as Table } from './Table';
10
- export { default as Navigator } from './Navigator';
10
+ export { default as Navigator } from './Navigator';
11
+ export { default as Alert } from './Alert';
12
+ export { default as Col } from './Col';
13
+ export { default as Typography } from './Typography';
14
+ export { default as Upload } from './Upload';
15
+ export { default as ConfigProvider } from './ConfigProvider';
16
+ export { default as DatePicker } from './DatePicker';
17
+ export { default as Layout } from './Layout';
18
+ export { default as message } from './Message';
19
+ export { default as notification } from './Notification';
20
+ export { default as Tree } from './Tree';
21
+ export { default as Skeleton } from './Skeleton';
22
+ export { default as Row } from './Row';
23
+ export { default as Space } from './Space';
24
+ export { default as Spin } from './Spin';
25
+ export { default as Switch } from './Switch';
26
+ export { default as Steps } from './Steps';
27
+ export { default as Form } from './Form';
28
+ export { default as Divider } from './Divider';
29
+ export { default as Radio } from './Radio';
30
+ export { default as Checkbox } from './Checkbox';
@@ -0,0 +1,2 @@
1
+ import zhCN from 'antd/es/locale/zh_CN';
2
+ export default zhCN;
@@ -0,0 +1,2 @@
1
+ import zhCN from 'antd/es/locale/zh_CN';
2
+ export default zhCN;
@@ -1,2 +1,2 @@
1
- import 'antd/dist/antd.compact.css';
1
+ import 'antd/lib/style/compact.less';
2
2
  import './index.less';
package/es/style/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import 'antd/dist/antd.compact.css';
1
+ import 'antd/lib/style/compact.less';
2
2
  import './index.less';
@@ -1,6 +1,6 @@
1
1
  @import './themeColor.module.less';
2
2
  @font-family:sans-serif,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol','Noto Color Emoji';
3
- @ald-prefix: 'ald';
3
+ @ald-prefix: ant;
4
4
 
5
5
 
6
6
  // height rules
@@ -0,0 +1,4 @@
1
+ import { Alert } from 'antd';
2
+ import { AlertProps } from 'antd/lib/alert';
3
+ export { AlertProps };
4
+ export default Alert;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/alert/style");
9
+
10
+ var _alert = _interopRequireDefault(require("antd/es/alert"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _alert.default;
15
+ exports.default = _default;
@@ -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,10 +1,10 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @ald-prefix:ant;
4
- @ald-iconfont-css-prefix:anticon;
5
- .@{ald-prefix}-btn {
3
+ @ald-prefix: ant;
4
+ @ald-iconfont-css-prefix: anticon;
6
5
 
7
- &.@{ald-prefix}-btn {
6
+ .ant-btn {
7
+ &.ant-btn {
8
8
  // &-loading::before{
9
9
  // // display: none !important;
10
10
  // }
@@ -14,14 +14,14 @@
14
14
  &-secondary,
15
15
  &-text,
16
16
  &-link {
17
- font-size: 12px;
18
- height: @height-base;
19
- padding: 0 12px;
20
17
  display: inline-flex;
21
- line-height: @height-base;
22
18
  align-items: center;
23
- font-weight: 500;
24
19
  justify-content: center;
20
+ height: @height-base;
21
+ padding: 0 11px;
22
+ font-weight: 500;
23
+ font-size: 12px;
24
+ line-height: @height-base;
25
25
  .@{ald-iconfont-css-prefix} {
26
26
  + span {
27
27
  margin-left: 4px;
@@ -38,171 +38,216 @@
38
38
  }
39
39
 
40
40
  &-primary {
41
+ text-shadow: @text-shadow;
41
42
  background-color: @B40;
42
43
  border-color: @B40;
43
- box-shadow: none;
44
44
  border-radius: @border-radius-base;
45
- text-shadow: @text-shadow;
45
+ box-shadow: none;
46
+
47
+ &:focus {
48
+ text-shadow: @text-shadow;
49
+ background-color: @B40;
50
+ border-color: @B40;
51
+ border-radius: @border-radius-base;
52
+ box-shadow: none;
53
+ }
54
+
46
55
  &:hover,
47
- &:focus,
48
56
  &:active,
49
- &.@{ald-prefix}-btn-loading {
57
+ &.ant-btn-loading {
58
+ color: @ND0;
50
59
  background-color: @B20;
51
60
  border-color: @B20;
52
- color: @ND0;
53
61
  }
54
62
 
55
63
  &[disabled] {
64
+ color: @NL80;
56
65
  background-color: @NL90;
57
66
  border-color: transparent;
58
- color: @NL80;
67
+ cursor: default;
59
68
 
60
69
  &:hover,
61
70
  &:focus,
62
71
  &:active {
72
+ color: @NL80;
63
73
  background-color: @NL90;
64
74
  border-color: transparent;
65
- color: @NL80;
66
75
  }
67
76
  }
68
77
  }
69
- &-dangerous.@{ald-prefix}-btn-primary {
70
- background-color: @SC40;
71
- border-color: @SC40;
78
+
79
+ &-dangerous.ant-btn-primary {
72
80
  color: @ND0;
73
81
  text-shadow: @text-shadow;
82
+ background-color: @SC40;
83
+ border-color: @SC40;
74
84
  box-shadow: unset;
75
85
 
76
- &:hover {
77
- background-color: @SC20;
78
- border-color: @SC20;
86
+ &:focus {
79
87
  color: @ND0;
88
+ text-shadow: @text-shadow;
89
+ background-color: @SC40;
90
+ border-color: @SC40;
91
+ box-shadow: unset;
80
92
  }
81
- &:focus,
93
+
94
+ &:hover,
82
95
  &:active,
83
- &.@{ald-prefix}-btn-loading {
96
+ &.ant-btn-loading {
97
+ color: @ND0;
84
98
  background-color: @SC20;
85
99
  border-color: @SC20;
86
- color: @ND0;
87
100
  }
88
101
 
89
102
  &[disabled] {
103
+ color: @NL80;
90
104
  background-color: @NL90;
91
105
  border-color: transparent;
92
- color: @NL80;
106
+ cursor: default;
93
107
 
94
108
  &:hover,
95
109
  &:focus,
96
110
  &:active {
111
+ color: @NL80;
97
112
  background-color: @NL90;
98
113
  border-color: transparent;
99
- color: @NL80;
100
114
  }
101
115
  }
102
116
  }
103
117
 
104
118
  &-secondary {
119
+ color: @NL30;
120
+ text-shadow: @text-shadow;
105
121
  background-color: @BG100;
106
122
  border-color: @NL90;
107
- color: @NL30;
108
- box-shadow: none;
109
123
  border-radius: @border-radius-base;
110
- text-shadow: @text-shadow;
124
+ box-shadow: none;
125
+
126
+ &:focus {
127
+ color: @NL30;
128
+ text-shadow: @text-shadow;
129
+ background-color: @BG100;
130
+ border-color: @NL90;
131
+ border-radius: @border-radius-base;
132
+ box-shadow: none;
133
+ }
111
134
 
112
135
  &:hover,
113
- &:focus,
114
136
  &:active,
115
- &.@{ald-prefix}-btn-loading {
137
+ &.ant-btn-loading {
138
+ color: @NL30;
116
139
  background-color: @NL97;
117
140
  border-color: @NL90;
118
- color: @NL30;
119
141
  }
120
142
 
121
143
  &[disabled] {
144
+ color: @NL80;
122
145
  background-color: @BG100;
123
146
  border-color: @NL90;
124
- color: @NL80;
147
+ cursor: default;
125
148
 
126
149
  &:hover,
127
150
  &:focus,
128
151
  &:active {
152
+ color: @NL80;
129
153
  background-color: @BG100;
130
154
  border-color: @NL90;
131
- color: @NL80;
132
155
  }
133
156
  }
134
157
  }
135
158
 
136
159
  &-text {
160
+ color: @NL30;
161
+ text-shadow: @text-shadow;
137
162
  background-color: @BG100;
138
163
  border-color: @BG100;
139
- color: @NL30;
140
- box-shadow: none;
141
164
  border-radius: @border-radius-base;
142
- text-shadow: @text-shadow;
165
+ box-shadow: none;
166
+
167
+ &:focus {
168
+ color: @NL30;
169
+ text-shadow: @text-shadow;
170
+ background-color: @BG100;
171
+ border-color: @BG100;
172
+ border-radius: @border-radius-base;
173
+ box-shadow: none;
174
+ }
175
+
143
176
  &:hover,
144
- &:focus,
145
177
  &:active,
146
- &.@{ald-prefix}-btn-loading {
147
- background-color: @NL97;
178
+ &.ant-btn-loading {
148
179
  // border-color: @NL97;
149
180
  color: @NL30;
181
+ background-color: @NL97;
150
182
  }
151
183
 
152
184
  &[disabled] {
185
+ color: @NL80;
153
186
  background-color: transparent;
154
187
  border-color: transparent;
155
- color: @NL80;
188
+ cursor: default;
156
189
 
157
190
  &:hover,
158
191
  &:focus,
159
192
  &:active {
193
+ color: @NL80;
160
194
  background-color: transparent;
161
195
  border-color: transparent;
162
- color: @NL80;
163
196
  }
164
197
  }
165
198
  }
166
199
 
167
200
  &-link {
168
- background-color: @BG100;
169
- border-color: @BG100;
170
201
  color: @B40;
171
202
  font-weight: 400;
172
- box-shadow: none;
173
- border-radius: @border-radius-base;
174
203
  text-shadow: @text-shadow;
204
+ background-color: @BG100;
205
+ border-color: @BG100;
206
+ border-radius: @border-radius-base;
207
+ box-shadow: none;
208
+
209
+ &:focus {
210
+ color: @B40;
211
+ font-weight: 400;
212
+ text-shadow: @text-shadow;
213
+ background-color: @BG100;
214
+ border-color: @BG100;
215
+ border-radius: @border-radius-base;
216
+ box-shadow: none;
217
+ }
218
+
175
219
  &:hover,
176
- &:focus,
177
220
  &:active,
178
- &.@{ald-prefix}-btn-loading {
221
+ &.ant-btn-loading {
222
+ color: @B20;
179
223
  background-color: @BG100;
180
224
  border-color: @BG100;
181
- color: @B20;
182
225
  }
183
226
 
184
227
  &[disabled] {
228
+ color: @NL80;
185
229
  background-color: transparent;
186
230
  border-color: transparent;
187
- color: @NL80;
231
+ cursor: default;
188
232
 
189
233
  &:hover,
190
234
  &:focus,
191
235
  &:active {
236
+ color: @NL80;
192
237
  background-color: transparent;
193
238
  border-color: transparent;
194
- color: @NL80;
195
239
  }
196
240
  }
197
241
  }
198
242
 
199
243
  &-icon-only {
200
244
  justify-content: center;
245
+ width: @height-base;
246
+ height: @height-base;
201
247
  padding: 0;
202
248
  vertical-align: bottom;
203
- height: @height-base;
204
- width: @height-base;
205
- &.@{ald-prefix}-btn-loading-icon {
249
+
250
+ &.ant-btn-loading-icon {
206
251
  vertical-align: baseline;
207
252
  }
208
253
  .@{ald-iconfont-css-prefix} {
@@ -214,23 +259,25 @@
214
259
  }
215
260
 
216
261
  &-circle {
262
+ justify-content: center;
217
263
  width: @height-base;
218
264
  min-width: auto;
219
265
  padding: 0;
220
- justify-content: center;
221
266
  border-radius: 50%;
222
267
  }
223
268
 
224
269
  &-lg {
270
+ min-width: auto;
225
271
  height: 32px;
226
272
  font-size: 14px;
227
- min-width: auto;
228
- &.@{ald-prefix}-btn-icon-only {
229
- height: 32px;
273
+
274
+ &.ant-btn-icon-only {
230
275
  width: 32px;
231
276
  min-width: auto;
277
+ height: 32px;
232
278
  }
233
- &.@{ald-prefix}-btn-circle {
279
+
280
+ &.ant-btn-circle {
234
281
  width: 32px;
235
282
  height: 32px;
236
283
  border-radius: 50%;
@@ -239,13 +286,16 @@
239
286
 
240
287
  &-sm {
241
288
  height: 24px;
289
+ line-height: 22px;
242
290
  border-radius: @border-radius-sm;
243
- &.@{ald-prefix}-btn-icon-only {
244
- height: 24px;
291
+
292
+ &.ant-btn-icon-only {
245
293
  width: 24px;
294
+ height: 24px;
246
295
  border-radius: @border-radius-sm;
247
296
  }
248
- &.@{ald-prefix}-btn-circle {
297
+
298
+ &.ant-btn-circle {
249
299
  width: 32px;
250
300
  height: 32px;
251
301
  border-radius: 50%;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxProps } from 'antd';
3
+ import { CheckboxGroupProps } from 'antd/lib/checkbox';
4
+ export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';
5
+ export type { CheckboxChangeEvent } from 'antd/es/checkbox/Checkbox';
6
+ declare function Checkbox(props: CheckboxProps): JSX.Element;
7
+ declare namespace Checkbox {
8
+ var Group: (props: CheckboxGroupProps) => JSX.Element;
9
+ }
10
+ export type { CheckboxProps };
11
+ export default Checkbox;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/checkbox/style");
9
+
10
+ var _checkbox = _interopRequireDefault(require("antd/es/checkbox"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _excluded = ["className"],
17
+ _excluded2 = ["className"];
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ 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; }
22
+
23
+ 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; }
24
+
25
+ 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; }
26
+
27
+ 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; }
28
+
29
+ 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; }
30
+
31
+ var CheckboxGroup = _checkbox.default.Group;
32
+
33
+ function Checkbox(props) {
34
+ var className = props.className,
35
+ otherProps = _objectWithoutProperties(props, _excluded);
36
+
37
+ return /*#__PURE__*/_react.default.createElement(_checkbox.default, _objectSpread({
38
+ className: (0, _classnames.default)('ald-checkbox', className)
39
+ }, otherProps));
40
+ }
41
+
42
+ Checkbox.Group = function (props) {
43
+ var className = props.className,
44
+ otherProps = _objectWithoutProperties(props, _excluded2);
45
+
46
+ return /*#__PURE__*/_react.default.createElement(CheckboxGroup, _objectSpread({
47
+ className: (0, _classnames.default)('ald-checkbox', className)
48
+ }, otherProps));
49
+ };
50
+
51
+ var _default = Checkbox;
52
+ exports.default = _default;
@@ -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,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,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/col/style");
9
+
10
+ var _col = _interopRequireDefault(require("antd/es/col"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _col.default;
15
+ exports.default = _default;
@@ -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';
@@ -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,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/config-provider/style");
9
+
10
+ var _configProvider = _interopRequireDefault(require("antd/es/config-provider"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _configProvider.default;
15
+ exports.default = _default;
@@ -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';
@@ -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;