@aloudata/aloudata-design 0.2.0-beta.9 → 0.2.3

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 (318) 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/index.js +1 -1
  8. package/es/Button/style/index.less +90 -50
  9. package/es/Checkbox/index.d.ts +11 -0
  10. package/es/Checkbox/index.js +32 -0
  11. package/es/Checkbox/style/index.d.ts +2 -0
  12. package/es/Checkbox/style/index.js +2 -0
  13. package/es/Checkbox/style/index.less +79 -0
  14. package/es/Col/index.d.ts +4 -0
  15. package/es/Col/index.js +3 -0
  16. package/es/Col/style/index.d.ts +2 -0
  17. package/es/Col/style/index.js +2 -0
  18. package/es/Col/style/index.less +1 -0
  19. package/es/ConfigProvider/index.d.ts +3 -0
  20. package/es/ConfigProvider/index.js +3 -0
  21. package/es/ConfigProvider/style/index.d.ts +2 -0
  22. package/es/ConfigProvider/style/index.js +2 -0
  23. package/es/ConfigProvider/style/index.less +1 -0
  24. package/es/DatePicker/index.d.ts +4 -0
  25. package/es/DatePicker/index.js +3 -0
  26. package/es/DatePicker/style/index.d.ts +2 -0
  27. package/es/DatePicker/style/index.js +2 -0
  28. package/es/DatePicker/style/index.less +1 -0
  29. package/es/Divider/index.d.ts +3 -0
  30. package/es/Divider/index.js +3 -0
  31. package/es/Divider/style/index.d.ts +2 -0
  32. package/es/Divider/style/index.js +2 -0
  33. package/es/Divider/style/index.less +1 -0
  34. package/es/Dropdown/Button.d.ts +1 -0
  35. package/es/Dropdown/Button.js +3 -8
  36. package/es/Dropdown/index.d.ts +27 -0
  37. package/es/Dropdown/index.js +1 -7
  38. package/es/Dropdown/style/index.d.ts +1 -0
  39. package/es/Dropdown/style/index.js +1 -0
  40. package/es/Empty/style/index.less +6 -6
  41. package/es/Form/index.d.ts +8 -0
  42. package/es/Form/index.js +3 -0
  43. package/es/Form/style/index.d.ts +2 -0
  44. package/es/Form/style/index.js +2 -0
  45. package/es/Form/style/index.less +1 -0
  46. package/es/Icon/index.d.ts +3 -0
  47. package/es/Icon/index.js +3 -2
  48. package/es/Input/components/Group/index.d.ts +1 -2
  49. package/es/Input/components/Group/index.js +1 -7
  50. package/es/Input/components/Input/index.d.ts +67 -0
  51. package/es/Input/components/Input/index.js +32 -0
  52. package/es/Input/components/Password/index.d.ts +5 -5
  53. package/es/Input/components/Password/index.js +6 -11
  54. package/es/Input/components/TextArea/index.d.ts +10 -4
  55. package/es/Input/components/TextArea/index.js +13 -9
  56. package/es/Input/index.d.ts +14 -62
  57. package/es/Input/index.js +4 -40
  58. package/es/Input/style/index.d.ts +1 -0
  59. package/es/Input/style/index.js +1 -0
  60. package/es/Input/style/index.less +40 -10
  61. package/es/Layout/index.d.ts +4 -0
  62. package/es/Layout/index.js +3 -0
  63. package/es/Layout/style/index.d.ts +2 -0
  64. package/es/Layout/style/index.js +2 -0
  65. package/es/Layout/style/index.less +1 -0
  66. package/es/Menu/Divider.js +1 -8
  67. package/es/Menu/MenuItem.d.ts +7 -1
  68. package/es/Menu/MenuItem.js +1 -8
  69. package/es/Menu/SubMenu.js +1 -7
  70. package/es/Menu/index.js +1 -7
  71. package/es/Menu/style/index.d.ts +1 -0
  72. package/es/Menu/style/index.js +1 -0
  73. package/es/Menu/style/index.less +9 -5
  74. package/es/Message/index.d.ts +4 -0
  75. package/es/Message/index.js +3 -0
  76. package/es/Message/style/index.d.ts +2 -0
  77. package/es/Message/style/index.js +2 -0
  78. package/es/Message/style/index.less +1 -0
  79. package/es/Navigator/components/Menu/index.js +2 -2
  80. package/es/Notification/index.d.ts +3 -0
  81. package/es/Notification/index.js +3 -0
  82. package/es/Notification/style/index.d.ts +2 -0
  83. package/es/Notification/style/index.js +2 -0
  84. package/es/Notification/style/index.less +1 -0
  85. package/es/Radio/index.d.ts +4 -0
  86. package/es/Radio/index.js +3 -0
  87. package/es/Radio/style/index.d.ts +2 -0
  88. package/es/Radio/style/index.js +2 -0
  89. package/es/Radio/style/index.less +1 -0
  90. package/es/Row/index.d.ts +3 -0
  91. package/es/Row/index.js +3 -0
  92. package/es/Row/style/index.d.ts +2 -0
  93. package/es/Row/style/index.js +2 -0
  94. package/es/Row/style/index.less +1 -0
  95. package/es/Select/BaseSelect.js +18 -5
  96. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +3 -1
  97. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
  98. package/es/Select/OptionsList/index.js +14 -25
  99. package/es/Select/Selector/index.js +14 -14
  100. package/es/Select/interface.d.ts +10 -2
  101. package/es/Select/style/index.less +63 -30
  102. package/es/Skeleton/index.d.ts +3 -0
  103. package/es/Skeleton/index.js +2 -0
  104. package/es/Skeleton/style/index.d.ts +2 -0
  105. package/es/Skeleton/style/index.js +2 -0
  106. package/es/Skeleton/style/index.less +1 -0
  107. package/es/Space/index.d.ts +4 -0
  108. package/es/Space/index.js +3 -0
  109. package/es/Space/style/index.d.ts +2 -0
  110. package/es/Space/style/index.js +2 -0
  111. package/es/Space/style/index.less +1 -0
  112. package/es/Spin/index.d.ts +4 -0
  113. package/es/Spin/index.js +2 -0
  114. package/es/Spin/style/index.d.ts +2 -0
  115. package/es/Spin/style/index.js +2 -0
  116. package/es/Spin/style/index.less +1 -0
  117. package/es/Steps/index.d.ts +3 -0
  118. package/es/Steps/index.js +2 -0
  119. package/es/Steps/style/index.d.ts +2 -0
  120. package/es/Steps/style/index.js +2 -0
  121. package/es/Steps/style/index.less +1 -0
  122. package/es/Switch/index.d.ts +4 -0
  123. package/es/Switch/index.js +2 -0
  124. package/es/Switch/style/index.d.ts +2 -0
  125. package/es/Switch/style/index.js +2 -0
  126. package/es/Switch/style/index.less +1 -0
  127. package/es/Table/index.d.ts +3 -3
  128. package/es/Table/index.js +255 -142
  129. package/es/Table/interface.d.ts +10 -4
  130. package/es/Table/react-table-config.d.ts +45 -45
  131. package/es/Table/style/index.less +88 -40
  132. package/es/Tabs/TabPane.js +1 -7
  133. package/es/Tabs/index.d.ts +5 -0
  134. package/es/Tabs/index.js +7 -4
  135. package/es/Tabs/style/index.d.ts +1 -0
  136. package/es/Tabs/style/index.js +1 -0
  137. package/es/Tabs/style/index.less +9 -2
  138. package/es/Tooltip/style/index.less +1 -1
  139. package/es/Tree/index.d.ts +5 -0
  140. package/es/Tree/index.js +2 -0
  141. package/es/Tree/style/index.d.ts +2 -0
  142. package/es/Tree/style/index.js +2 -0
  143. package/es/Tree/style/index.less +1 -0
  144. package/es/Typography/index.d.ts +3 -0
  145. package/es/Typography/index.js +3 -0
  146. package/es/Typography/style/index.d.ts +2 -0
  147. package/es/Typography/style/index.js +2 -0
  148. package/es/Typography/style/index.less +1 -0
  149. package/es/Upload/index.d.ts +4 -0
  150. package/es/Upload/index.js +3 -0
  151. package/es/Upload/style/index.d.ts +2 -0
  152. package/es/Upload/style/index.js +2 -0
  153. package/es/Upload/style/index.less +1 -0
  154. package/es/_utils/hooks/useControlledState.d.ts +1 -1
  155. package/es/_utils/hooks/useControlledState.js +11 -11
  156. package/es/index.d.ts +39 -1
  157. package/es/index.js +21 -1
  158. package/es/locale/zh_CN.d.ts +2 -0
  159. package/es/locale/zh_CN.js +2 -0
  160. package/lib/Alert/index.d.ts +4 -0
  161. package/lib/Alert/index.js +15 -0
  162. package/lib/Alert/style/index.d.ts +2 -0
  163. package/lib/Alert/style/index.js +5 -0
  164. package/lib/Alert/style/index.less +1 -0
  165. package/lib/Button/index.js +1 -1
  166. package/lib/Button/style/index.less +90 -50
  167. package/lib/Checkbox/index.d.ts +11 -0
  168. package/lib/Checkbox/index.js +46 -0
  169. package/lib/Checkbox/style/index.d.ts +2 -0
  170. package/lib/Checkbox/style/index.js +5 -0
  171. package/lib/Checkbox/style/index.less +79 -0
  172. package/lib/Col/index.d.ts +4 -0
  173. package/lib/Col/index.js +15 -0
  174. package/lib/Col/style/index.d.ts +2 -0
  175. package/lib/Col/style/index.js +5 -0
  176. package/lib/Col/style/index.less +1 -0
  177. package/lib/ConfigProvider/index.d.ts +3 -0
  178. package/lib/ConfigProvider/index.js +15 -0
  179. package/lib/ConfigProvider/style/index.d.ts +2 -0
  180. package/lib/ConfigProvider/style/index.js +5 -0
  181. package/lib/ConfigProvider/style/index.less +1 -0
  182. package/lib/DatePicker/index.d.ts +4 -0
  183. package/lib/DatePicker/index.js +15 -0
  184. package/lib/DatePicker/style/index.d.ts +2 -0
  185. package/lib/DatePicker/style/index.js +5 -0
  186. package/lib/DatePicker/style/index.less +1 -0
  187. package/lib/Divider/index.d.ts +3 -0
  188. package/lib/Divider/index.js +15 -0
  189. package/lib/Divider/style/index.d.ts +2 -0
  190. package/lib/Divider/style/index.js +5 -0
  191. package/lib/Divider/style/index.less +1 -0
  192. package/lib/Dropdown/Button.d.ts +1 -0
  193. package/lib/Dropdown/Button.js +3 -7
  194. package/lib/Dropdown/index.d.ts +27 -0
  195. package/lib/Dropdown/index.js +1 -7
  196. package/lib/Dropdown/style/index.d.ts +1 -0
  197. package/lib/Dropdown/style/index.js +2 -0
  198. package/lib/Empty/style/index.less +6 -6
  199. package/lib/Form/index.d.ts +8 -0
  200. package/lib/Form/index.js +15 -0
  201. package/lib/Form/style/index.d.ts +2 -0
  202. package/lib/Form/style/index.js +5 -0
  203. package/lib/Form/style/index.less +1 -0
  204. package/lib/Icon/index.d.ts +3 -0
  205. package/lib/Icon/index.js +7 -1
  206. package/lib/Input/components/Group/index.d.ts +1 -2
  207. package/lib/Input/components/Group/index.js +1 -7
  208. package/lib/Input/components/Input/index.d.ts +67 -0
  209. package/lib/Input/components/Input/index.js +45 -0
  210. package/lib/Input/components/Password/index.d.ts +5 -5
  211. package/lib/Input/components/Password/index.js +10 -14
  212. package/lib/Input/components/TextArea/index.d.ts +10 -4
  213. package/lib/Input/components/TextArea/index.js +16 -11
  214. package/lib/Input/index.d.ts +14 -62
  215. package/lib/Input/index.js +4 -42
  216. package/lib/Input/style/index.d.ts +1 -0
  217. package/lib/Input/style/index.js +2 -0
  218. package/lib/Input/style/index.less +40 -10
  219. package/lib/Layout/index.d.ts +4 -0
  220. package/lib/Layout/index.js +15 -0
  221. package/lib/Layout/style/index.d.ts +2 -0
  222. package/lib/Layout/style/index.js +5 -0
  223. package/lib/Layout/style/index.less +1 -0
  224. package/lib/Menu/Divider.js +1 -7
  225. package/lib/Menu/MenuItem.d.ts +7 -1
  226. package/lib/Menu/MenuItem.js +1 -7
  227. package/lib/Menu/SubMenu.js +1 -7
  228. package/lib/Menu/index.js +1 -7
  229. package/lib/Menu/style/index.d.ts +1 -0
  230. package/lib/Menu/style/index.js +2 -0
  231. package/lib/Menu/style/index.less +9 -5
  232. package/lib/Message/index.d.ts +4 -0
  233. package/lib/Message/index.js +15 -0
  234. package/lib/Message/style/index.d.ts +2 -0
  235. package/lib/Message/style/index.js +5 -0
  236. package/lib/Message/style/index.less +1 -0
  237. package/lib/Navigator/components/Menu/index.js +2 -2
  238. package/lib/Notification/index.d.ts +3 -0
  239. package/lib/Notification/index.js +15 -0
  240. package/lib/Notification/style/index.d.ts +2 -0
  241. package/lib/Notification/style/index.js +5 -0
  242. package/lib/Notification/style/index.less +1 -0
  243. package/lib/Radio/index.d.ts +4 -0
  244. package/lib/Radio/index.js +15 -0
  245. package/lib/Radio/style/index.d.ts +2 -0
  246. package/lib/Radio/style/index.js +5 -0
  247. package/lib/Radio/style/index.less +1 -0
  248. package/lib/Row/index.d.ts +3 -0
  249. package/lib/Row/index.js +15 -0
  250. package/lib/Row/style/index.d.ts +2 -0
  251. package/lib/Row/style/index.js +5 -0
  252. package/lib/Row/style/index.less +1 -0
  253. package/lib/Select/BaseSelect.js +18 -5
  254. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +3 -1
  255. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
  256. package/lib/Select/OptionsList/index.js +13 -25
  257. package/lib/Select/Selector/index.js +14 -14
  258. package/lib/Select/interface.d.ts +10 -2
  259. package/lib/Select/style/index.less +63 -30
  260. package/lib/Skeleton/index.d.ts +3 -0
  261. package/lib/Skeleton/index.js +13 -0
  262. package/lib/Skeleton/style/index.d.ts +2 -0
  263. package/lib/Skeleton/style/index.js +5 -0
  264. package/lib/Skeleton/style/index.less +1 -0
  265. package/lib/Space/index.d.ts +4 -0
  266. package/lib/Space/index.js +23 -0
  267. package/lib/Space/style/index.d.ts +2 -0
  268. package/lib/Space/style/index.js +5 -0
  269. package/lib/Space/style/index.less +1 -0
  270. package/lib/Spin/index.d.ts +4 -0
  271. package/lib/Spin/index.js +13 -0
  272. package/lib/Spin/style/index.d.ts +2 -0
  273. package/lib/Spin/style/index.js +5 -0
  274. package/lib/Spin/style/index.less +1 -0
  275. package/lib/Steps/index.d.ts +3 -0
  276. package/lib/Steps/index.js +13 -0
  277. package/lib/Steps/style/index.d.ts +2 -0
  278. package/lib/Steps/style/index.js +5 -0
  279. package/lib/Steps/style/index.less +1 -0
  280. package/lib/Switch/index.d.ts +4 -0
  281. package/lib/Switch/index.js +13 -0
  282. package/lib/Switch/style/index.d.ts +2 -0
  283. package/lib/Switch/style/index.js +5 -0
  284. package/lib/Switch/style/index.less +1 -0
  285. package/lib/Table/index.d.ts +3 -3
  286. package/lib/Table/index.js +264 -150
  287. package/lib/Table/interface.d.ts +10 -4
  288. package/lib/Table/react-table-config.d.ts +45 -45
  289. package/lib/Table/style/index.less +88 -40
  290. package/lib/Tabs/TabPane.js +1 -7
  291. package/lib/Tabs/index.d.ts +5 -0
  292. package/lib/Tabs/index.js +7 -4
  293. package/lib/Tabs/style/index.d.ts +1 -0
  294. package/lib/Tabs/style/index.js +2 -0
  295. package/lib/Tabs/style/index.less +9 -2
  296. package/lib/Tooltip/style/index.less +1 -1
  297. package/lib/Tree/index.d.ts +5 -0
  298. package/lib/Tree/index.js +13 -0
  299. package/lib/Tree/style/index.d.ts +2 -0
  300. package/lib/Tree/style/index.js +5 -0
  301. package/lib/Tree/style/index.less +1 -0
  302. package/lib/Typography/index.d.ts +3 -0
  303. package/lib/Typography/index.js +15 -0
  304. package/lib/Typography/style/index.d.ts +2 -0
  305. package/lib/Typography/style/index.js +5 -0
  306. package/lib/Typography/style/index.less +1 -0
  307. package/lib/Upload/index.d.ts +4 -0
  308. package/lib/Upload/index.js +15 -0
  309. package/lib/Upload/style/index.d.ts +2 -0
  310. package/lib/Upload/style/index.js +5 -0
  311. package/lib/Upload/style/index.less +1 -0
  312. package/lib/_utils/hooks/useControlledState.d.ts +1 -1
  313. package/lib/_utils/hooks/useControlledState.js +11 -11
  314. package/lib/index.d.ts +39 -1
  315. package/lib/index.js +160 -0
  316. package/lib/locale/zh_CN.d.ts +2 -0
  317. package/lib/locale/zh_CN.js +13 -0
  318. package/package.json +15 -4
@@ -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';
@@ -108,7 +108,7 @@ function Button(props) {
108
108
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
109
109
  };
110
110
 
111
- return /*#__PURE__*/_react.default.createElement(_button.default, _objectSpread(_objectSpread({}, rest), {}, {
111
+ return /*#__PURE__*/_react.default.createElement(_button.default, Object.assign({}, rest, {
112
112
  icon: setIcon(icon),
113
113
  type: getButtonType(type),
114
114
  className: (0, _classnames.default)("".concat(prefix, "-").concat(type), className),
@@ -1,7 +1,7 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @ald-prefix:ant;
4
- @ald-iconfont-css-prefix:anticon;
3
+ @ald-prefix: ant;
4
+ @ald-iconfont-css-prefix: anticon;
5
5
 
6
6
  .ant-btn {
7
7
  &.ant-btn {
@@ -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,175 +38,214 @@
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
+ }
46
54
 
47
55
  &:hover,
48
- &:focus,
49
56
  &:active,
50
57
  &.ant-btn-loading {
58
+ color: @ND0;
51
59
  background-color: @B20;
52
60
  border-color: @B20;
53
- color: @ND0;
54
61
  }
55
62
 
56
63
  &[disabled] {
64
+ color: @NL80;
57
65
  background-color: @NL90;
58
66
  border-color: transparent;
59
- color: @NL80;
67
+ cursor: default;
60
68
 
61
69
  &:hover,
62
70
  &:focus,
63
71
  &:active {
72
+ color: @NL80;
64
73
  background-color: @NL90;
65
74
  border-color: transparent;
66
- color: @NL80;
67
75
  }
68
76
  }
69
77
  }
70
78
 
71
79
  &-dangerous.ant-btn-primary {
72
- background-color: @SC40;
73
- border-color: @SC40;
74
80
  color: @ND0;
75
81
  text-shadow: @text-shadow;
82
+ background-color: @SC40;
83
+ border-color: @SC40;
76
84
  box-shadow: unset;
77
85
 
78
- &:hover {
79
- background-color: @SC20;
80
- border-color: @SC20;
86
+ &:focus {
81
87
  color: @ND0;
88
+ text-shadow: @text-shadow;
89
+ background-color: @SC40;
90
+ border-color: @SC40;
91
+ box-shadow: unset;
82
92
  }
83
93
 
84
- &:focus,
94
+ &:hover,
85
95
  &:active,
86
96
  &.ant-btn-loading {
97
+ color: @ND0;
87
98
  background-color: @SC20;
88
99
  border-color: @SC20;
89
- color: @ND0;
90
100
  }
91
101
 
92
102
  &[disabled] {
103
+ color: @NL80;
93
104
  background-color: @NL90;
94
105
  border-color: transparent;
95
- color: @NL80;
106
+ cursor: default;
96
107
 
97
108
  &:hover,
98
109
  &:focus,
99
110
  &:active {
111
+ color: @NL80;
100
112
  background-color: @NL90;
101
113
  border-color: transparent;
102
- color: @NL80;
103
114
  }
104
115
  }
105
116
  }
106
117
 
107
118
  &-secondary {
119
+ color: @NL30;
120
+ text-shadow: @text-shadow;
108
121
  background-color: @BG100;
109
122
  border-color: @NL90;
110
- color: @NL30;
111
- box-shadow: none;
112
123
  border-radius: @border-radius-base;
113
- 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
+ }
114
134
 
115
135
  &:hover,
116
- &:focus,
117
136
  &:active,
118
137
  &.ant-btn-loading {
138
+ color: @NL30;
119
139
  background-color: @NL97;
120
140
  border-color: @NL90;
121
- color: @NL30;
122
141
  }
123
142
 
124
143
  &[disabled] {
144
+ color: @NL80;
125
145
  background-color: @BG100;
126
146
  border-color: @NL90;
127
- color: @NL80;
147
+ cursor: default;
128
148
 
129
149
  &:hover,
130
150
  &:focus,
131
151
  &:active {
152
+ color: @NL80;
132
153
  background-color: @BG100;
133
154
  border-color: @NL90;
134
- color: @NL80;
135
155
  }
136
156
  }
137
157
  }
138
158
 
139
159
  &-text {
160
+ color: @NL30;
161
+ text-shadow: @text-shadow;
140
162
  background-color: @BG100;
141
163
  border-color: @BG100;
142
- color: @NL30;
143
- box-shadow: none;
144
164
  border-radius: @border-radius-base;
145
- 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
+ }
146
175
 
147
176
  &:hover,
148
- &:focus,
149
177
  &:active,
150
178
  &.ant-btn-loading {
151
- background-color: @NL97;
152
179
  // border-color: @NL97;
153
180
  color: @NL30;
181
+ background-color: @NL97;
154
182
  }
155
183
 
156
184
  &[disabled] {
185
+ color: @NL80;
157
186
  background-color: transparent;
158
187
  border-color: transparent;
159
- color: @NL80;
188
+ cursor: default;
160
189
 
161
190
  &:hover,
162
191
  &:focus,
163
192
  &:active {
193
+ color: @NL80;
164
194
  background-color: transparent;
165
195
  border-color: transparent;
166
- color: @NL80;
167
196
  }
168
197
  }
169
198
  }
170
199
 
171
200
  &-link {
172
- background-color: @BG100;
173
- border-color: @BG100;
174
201
  color: @B40;
175
202
  font-weight: 400;
176
- box-shadow: none;
177
- border-radius: @border-radius-base;
178
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
+ }
179
218
 
180
219
  &:hover,
181
- &:focus,
182
220
  &:active,
183
221
  &.ant-btn-loading {
222
+ color: @B20;
184
223
  background-color: @BG100;
185
224
  border-color: @BG100;
186
- color: @B20;
187
225
  }
188
226
 
189
227
  &[disabled] {
228
+ color: @NL80;
190
229
  background-color: transparent;
191
230
  border-color: transparent;
192
- color: @NL80;
231
+ cursor: default;
193
232
 
194
233
  &:hover,
195
234
  &:focus,
196
235
  &:active {
236
+ color: @NL80;
197
237
  background-color: transparent;
198
238
  border-color: transparent;
199
- color: @NL80;
200
239
  }
201
240
  }
202
241
  }
203
242
 
204
243
  &-icon-only {
205
244
  justify-content: center;
245
+ width: @height-base;
246
+ height: @height-base;
206
247
  padding: 0;
207
248
  vertical-align: bottom;
208
- height: @height-base;
209
- width: @height-base;
210
249
 
211
250
  &.ant-btn-loading-icon {
212
251
  vertical-align: baseline;
@@ -220,22 +259,22 @@
220
259
  }
221
260
 
222
261
  &-circle {
262
+ justify-content: center;
223
263
  width: @height-base;
224
264
  min-width: auto;
225
265
  padding: 0;
226
- justify-content: center;
227
266
  border-radius: 50%;
228
267
  }
229
268
 
230
269
  &-lg {
270
+ min-width: auto;
231
271
  height: 32px;
232
272
  font-size: 14px;
233
- min-width: auto;
234
273
 
235
274
  &.ant-btn-icon-only {
236
- height: 32px;
237
275
  width: 32px;
238
276
  min-width: auto;
277
+ height: 32px;
239
278
  }
240
279
 
241
280
  &.ant-btn-circle {
@@ -247,11 +286,12 @@
247
286
 
248
287
  &-sm {
249
288
  height: 24px;
289
+ line-height: 22px;
250
290
  border-radius: @border-radius-sm;
251
291
 
252
292
  &.ant-btn-icon-only {
253
- height: 24px;
254
293
  width: 24px;
294
+ height: 24px;
255
295
  border-radius: @border-radius-sm;
256
296
  }
257
297
 
@@ -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,46 @@
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 _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; }
22
+
23
+ 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; }
24
+
25
+ var CheckboxGroup = _checkbox.default.Group;
26
+
27
+ function Checkbox(props) {
28
+ var className = props.className,
29
+ otherProps = _objectWithoutProperties(props, _excluded);
30
+
31
+ return /*#__PURE__*/_react.default.createElement(_checkbox.default, Object.assign({
32
+ className: (0, _classnames.default)('ald-checkbox', className)
33
+ }, otherProps));
34
+ }
35
+
36
+ Checkbox.Group = function (props) {
37
+ var className = props.className,
38
+ otherProps = _objectWithoutProperties(props, _excluded2);
39
+
40
+ return /*#__PURE__*/_react.default.createElement(CheckboxGroup, Object.assign({
41
+ className: (0, _classnames.default)('ald-checkbox', className)
42
+ }, otherProps));
43
+ };
44
+
45
+ var _default = Checkbox;
46
+ 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;
@@ -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/date-picker/style");
9
+
10
+ var _datePicker = _interopRequireDefault(require("antd/es/date-picker"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _datePicker.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 { Divider, DividerProps } from 'antd';
2
+ export type { DividerProps };
3
+ export default Divider;
@@ -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/divider/style");
9
+
10
+ var _divider = _interopRequireDefault(require("antd/es/divider"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _divider.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,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
  /**