@aloudata/aloudata-design 0.3.1 → 0.3.4

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 (264) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +1 -0
  3. package/es/Button/index.js +3 -2
  4. package/es/Button/style/index.less +135 -126
  5. package/es/Button/style/variables.less +53 -53
  6. package/es/Card/index.d.ts +3 -0
  7. package/es/Card/index.js +3 -0
  8. package/es/Card/style/index.d.ts +2 -0
  9. package/es/Card/style/index.js +2 -0
  10. package/es/Card/style/index.less +1 -0
  11. package/es/Checkbox/index.d.ts +1 -0
  12. package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  13. package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
  14. package/es/ConfigProvider/sizeContext.d.ts +9 -0
  15. package/es/ConfigProvider/sizeContext.js +12 -0
  16. package/es/Dropdown/Button.js +4 -3
  17. package/es/Empty/image/Authority.d.ts +1 -0
  18. package/es/Empty/image/Dataspace.d.ts +1 -0
  19. package/es/Empty/image/Search.d.ts +1 -0
  20. package/es/Empty/image/Simple.d.ts +1 -0
  21. package/es/Empty/image/Worksheet.d.ts +1 -0
  22. package/es/Empty/image/empty.d.ts +1 -0
  23. package/es/Icon/icons/CheckLine.d.ts +13 -0
  24. package/es/Icon/icons/CheckLine.js +73 -0
  25. package/es/Icon/icons.json +410 -0
  26. package/es/Input/components/Group/index.d.ts +3 -1
  27. package/es/Input/components/Group/index.js +6 -12
  28. package/es/Input/components/Input/index.d.ts +3 -2
  29. package/es/Input/components/Input/index.js +11 -23
  30. package/es/Input/components/Password/index.js +11 -16
  31. package/es/Input/components/TextArea/index.d.ts +8 -1
  32. package/es/Input/components/TextArea/index.js +8 -1
  33. package/es/Input/style/index.less +180 -102
  34. package/es/InputNumber/index.d.ts +1 -0
  35. package/es/InputNumber/style/index.less +69 -69
  36. package/es/Menu/Divider.d.ts +1 -0
  37. package/es/Modal/index.js +20 -16
  38. package/es/Modal/locale.d.ts +7 -0
  39. package/es/Modal/locale.js +20 -0
  40. package/es/Modal/style/index.less +48 -45
  41. package/es/Navigator/components/Header/index.d.ts +1 -0
  42. package/es/Navigator/components/Menu/index.d.ts +1 -0
  43. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  44. package/es/Navigator/index.d.ts +1 -1
  45. package/es/PageHeader/index.d.ts +3 -0
  46. package/es/PageHeader/index.js +3 -0
  47. package/es/PageHeader/style/index.d.ts +2 -0
  48. package/es/PageHeader/style/index.js +2 -0
  49. package/es/PageHeader/style/index.less +1 -0
  50. package/es/Popover/index.d.ts +1 -0
  51. package/es/Radio/components/Group/index.d.ts +6 -0
  52. package/es/Radio/components/Group/index.js +72 -0
  53. package/es/Radio/components/Radio/index.d.ts +3 -0
  54. package/es/Radio/components/Radio/index.js +95 -0
  55. package/es/Radio/index.d.ts +9 -2
  56. package/es/Radio/index.js +5 -3
  57. package/es/Radio/interface/radio.d.ts +24 -0
  58. package/es/Radio/interface/radio.js +1 -0
  59. package/es/Radio/interface/radioGroup.d.ts +42 -0
  60. package/es/Radio/interface/radioGroup.js +1 -0
  61. package/es/Radio/style/index.less +348 -0
  62. package/es/Select/index.js +1 -1
  63. package/es/Select/rc-select/OptionList.js +4 -4
  64. package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
  65. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  66. package/es/Select/style/index.less +70 -45
  67. package/es/Select/style/variables.less +45 -45
  68. package/es/Select/utils/iconUtil.d.ts +2 -2
  69. package/es/Select/utils/iconUtil.js +9 -5
  70. package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
  71. package/es/Steps/components/ProcessIcon/index.js +8 -0
  72. package/es/Steps/components/Step/index.d.ts +20 -0
  73. package/es/Steps/components/Step/index.js +45 -0
  74. package/es/Steps/index.d.ts +36 -2
  75. package/es/Steps/index.js +30 -1
  76. package/es/Steps/matchMedia.mock.d.ts +1 -0
  77. package/es/Steps/matchMedia.mock.js +17 -0
  78. package/es/Steps/style/index.less +251 -0
  79. package/es/Switch/index.d.ts +46 -2
  80. package/es/Switch/index.js +71 -1
  81. package/es/Switch/style/index.less +129 -0
  82. package/es/Table/Table.d.ts +2 -1
  83. package/es/Table/Table.js +223 -330
  84. package/es/Table/components/Empty/index.d.ts +3 -0
  85. package/es/Table/components/Empty/index.js +17 -0
  86. package/es/Table/components/Loading/index.d.ts +3 -0
  87. package/es/Table/components/Loading/index.js +19 -0
  88. package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
  89. package/es/Table/components/TableBodyRowList/index.js +89 -0
  90. package/es/Table/components/TableHead/index.d.ts +23 -0
  91. package/es/Table/components/TableHead/index.js +262 -0
  92. package/es/Table/constant.d.ts +1 -0
  93. package/es/Table/constant.js +1 -0
  94. package/es/Table/hooks/useFrame.d.ts +7 -0
  95. package/es/Table/hooks/useFrame.js +90 -0
  96. package/es/Table/hooks/useTableColumn.d.ts +28 -0
  97. package/es/Table/hooks/useTableColumn.js +53 -0
  98. package/es/Table/interface.d.ts +3 -2
  99. package/es/Table/style/index.less +33 -30
  100. package/es/Table/utils.d.ts +15 -0
  101. package/es/Table/utils.js +131 -0
  102. package/es/Tabs/index.js +7 -9
  103. package/es/Tabs/style/index.less +57 -25
  104. package/es/_utils/hooks/useId.d.ts +4 -0
  105. package/es/_utils/hooks/useId.js +23 -0
  106. package/es/index.d.ts +9 -5
  107. package/es/index.js +3 -1
  108. package/es/locale/default.d.ts +2 -0
  109. package/es/locale/default.js +2 -0
  110. package/es/locale/en_US.d.ts +3 -0
  111. package/es/locale/en_US.js +132 -0
  112. package/es/locale/zh_CN.d.ts +3 -2
  113. package/es/locale/zh_CN.js +131 -2
  114. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  115. package/es/locale-provider/LocaleReceiver.js +3 -0
  116. package/es/locale-provider/context.d.ts +7 -0
  117. package/es/locale-provider/context.js +3 -0
  118. package/es/locale-provider/default.d.ts +2 -0
  119. package/es/locale-provider/default.js +2 -0
  120. package/es/locale-provider/en_US.d.ts +2 -0
  121. package/es/locale-provider/en_US.js +2 -0
  122. package/es/locale-provider/index.d.ts +65 -0
  123. package/es/locale-provider/index.js +102 -0
  124. package/es/locale-provider/style/index.d.ts +1 -0
  125. package/es/locale-provider/style/index.js +1 -0
  126. package/es/locale-provider/style/index.less +2 -0
  127. package/es/locale-provider/zh_CN.d.ts +2 -0
  128. package/es/locale-provider/zh_CN.js +2 -0
  129. package/es/style/index.d.ts +0 -1
  130. package/es/style/index.js +0 -1
  131. package/es/style/index.less +2 -2
  132. package/es/style/themes/default/index.less +30 -30
  133. package/lib/Breadcrumb/index.d.ts +1 -0
  134. package/lib/Button/index.js +5 -3
  135. package/lib/Button/style/index.less +135 -126
  136. package/lib/Button/style/variables.less +53 -53
  137. package/lib/Card/index.d.ts +3 -0
  138. package/lib/Card/index.js +15 -0
  139. package/lib/Card/style/index.d.ts +2 -0
  140. package/lib/Card/style/index.js +5 -0
  141. package/lib/Card/style/index.less +1 -0
  142. package/lib/Checkbox/index.d.ts +1 -0
  143. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  144. package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
  145. package/lib/ConfigProvider/sizeContext.d.ts +9 -0
  146. package/lib/ConfigProvider/sizeContext.js +30 -0
  147. package/lib/Dropdown/Button.js +8 -6
  148. package/lib/Empty/image/Authority.d.ts +1 -0
  149. package/lib/Empty/image/Dataspace.d.ts +1 -0
  150. package/lib/Empty/image/Search.d.ts +1 -0
  151. package/lib/Empty/image/Simple.d.ts +1 -0
  152. package/lib/Empty/image/Worksheet.d.ts +1 -0
  153. package/lib/Empty/image/empty.d.ts +1 -0
  154. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  155. package/lib/Icon/icons/CheckLine.js +90 -0
  156. package/lib/Icon/icons.json +410 -0
  157. package/lib/Input/components/Group/index.d.ts +3 -1
  158. package/lib/Input/components/Group/index.js +7 -12
  159. package/lib/Input/components/Input/index.d.ts +3 -2
  160. package/lib/Input/components/Input/index.js +13 -23
  161. package/lib/Input/components/Password/index.js +13 -17
  162. package/lib/Input/components/TextArea/index.d.ts +8 -1
  163. package/lib/Input/components/TextArea/index.js +10 -1
  164. package/lib/Input/style/index.less +180 -102
  165. package/lib/InputNumber/index.d.ts +1 -0
  166. package/lib/InputNumber/style/index.less +69 -69
  167. package/lib/Menu/Divider.d.ts +1 -0
  168. package/lib/Modal/index.js +25 -18
  169. package/lib/Modal/locale.d.ts +7 -0
  170. package/lib/Modal/locale.js +31 -0
  171. package/lib/Modal/style/index.less +48 -45
  172. package/lib/Navigator/components/Header/index.d.ts +1 -0
  173. package/lib/Navigator/components/Menu/index.d.ts +1 -0
  174. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  175. package/lib/Navigator/index.d.ts +1 -1
  176. package/lib/PageHeader/index.d.ts +3 -0
  177. package/lib/PageHeader/index.js +15 -0
  178. package/lib/PageHeader/style/index.d.ts +2 -0
  179. package/lib/PageHeader/style/index.js +5 -0
  180. package/lib/PageHeader/style/index.less +1 -0
  181. package/lib/Popover/index.d.ts +1 -0
  182. package/lib/Radio/components/Group/index.d.ts +6 -0
  183. package/lib/Radio/components/Group/index.js +93 -0
  184. package/lib/Radio/components/Radio/index.d.ts +3 -0
  185. package/lib/Radio/components/Radio/index.js +115 -0
  186. package/lib/Radio/index.d.ts +9 -2
  187. package/lib/Radio/index.js +5 -3
  188. package/lib/Radio/interface/radio.d.ts +24 -0
  189. package/lib/Radio/interface/radio.js +5 -0
  190. package/lib/Radio/interface/radioGroup.d.ts +42 -0
  191. package/lib/Radio/interface/radioGroup.js +5 -0
  192. package/lib/Radio/style/index.less +348 -0
  193. package/lib/Select/index.js +1 -1
  194. package/lib/Select/rc-select/OptionList.js +8 -7
  195. package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
  196. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  197. package/lib/Select/style/index.less +70 -45
  198. package/lib/Select/style/variables.less +45 -45
  199. package/lib/Select/utils/iconUtil.d.ts +2 -2
  200. package/lib/Select/utils/iconUtil.js +13 -7
  201. package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
  202. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  203. package/lib/Steps/components/Step/index.d.ts +20 -0
  204. package/lib/Steps/components/Step/index.js +61 -0
  205. package/lib/Steps/index.d.ts +36 -2
  206. package/lib/Steps/index.js +34 -1
  207. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  208. package/lib/Steps/matchMedia.mock.js +17 -0
  209. package/lib/Steps/style/index.less +251 -0
  210. package/lib/Switch/index.d.ts +46 -2
  211. package/lib/Switch/index.js +78 -1
  212. package/lib/Switch/style/index.less +129 -0
  213. package/lib/Table/Table.d.ts +2 -1
  214. package/lib/Table/Table.js +228 -332
  215. package/lib/Table/components/Empty/index.d.ts +3 -0
  216. package/lib/Table/components/Empty/index.js +30 -0
  217. package/lib/Table/components/Loading/index.d.ts +3 -0
  218. package/lib/Table/components/Loading/index.js +33 -0
  219. package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
  220. package/lib/Table/components/TableBodyRowList/index.js +108 -0
  221. package/lib/Table/components/TableHead/index.d.ts +23 -0
  222. package/lib/Table/components/TableHead/index.js +286 -0
  223. package/lib/Table/constant.d.ts +1 -0
  224. package/lib/Table/constant.js +1 -0
  225. package/lib/Table/hooks/useFrame.d.ts +7 -0
  226. package/lib/Table/hooks/useFrame.js +98 -0
  227. package/lib/Table/hooks/useTableColumn.d.ts +28 -0
  228. package/lib/Table/hooks/useTableColumn.js +66 -0
  229. package/lib/Table/interface.d.ts +3 -2
  230. package/lib/Table/style/index.less +33 -30
  231. package/lib/Table/utils.d.ts +15 -0
  232. package/lib/Table/utils.js +147 -0
  233. package/lib/Tabs/index.js +9 -11
  234. package/lib/Tabs/style/index.less +57 -25
  235. package/lib/_utils/hooks/useId.d.ts +4 -0
  236. package/lib/_utils/hooks/useId.js +36 -0
  237. package/lib/index.d.ts +9 -5
  238. package/lib/index.js +16 -0
  239. package/lib/locale/default.d.ts +2 -0
  240. package/lib/locale/default.js +13 -0
  241. package/lib/locale/en_US.d.ts +3 -0
  242. package/lib/locale/en_US.js +146 -0
  243. package/lib/locale/zh_CN.d.ts +3 -2
  244. package/lib/locale/zh_CN.js +134 -2
  245. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  246. package/lib/locale-provider/LocaleReceiver.js +23 -0
  247. package/lib/locale-provider/context.d.ts +7 -0
  248. package/lib/locale-provider/context.js +12 -0
  249. package/lib/locale-provider/default.d.ts +2 -0
  250. package/lib/locale-provider/default.js +13 -0
  251. package/lib/locale-provider/en_US.d.ts +2 -0
  252. package/lib/locale-provider/en_US.js +13 -0
  253. package/lib/locale-provider/index.d.ts +65 -0
  254. package/lib/locale-provider/index.js +116 -0
  255. package/lib/locale-provider/style/index.d.ts +1 -0
  256. package/lib/locale-provider/style/index.js +3 -0
  257. package/lib/locale-provider/style/index.less +2 -0
  258. package/lib/locale-provider/zh_CN.d.ts +2 -0
  259. package/lib/locale-provider/zh_CN.js +13 -0
  260. package/lib/style/index.d.ts +0 -1
  261. package/lib/style/index.js +0 -2
  262. package/lib/style/index.less +2 -2
  263. package/lib/style/themes/default/index.less +30 -30
  264. package/package.json +11 -8
package/README.md CHANGED
@@ -221,8 +221,18 @@ api展示为表格形势,可以使用**API**标签,如:
221
221
 
222
222
  请在./public/style/common.css 中自定义修改样式
223
223
 
224
- ## 组件开发踩过的坑(持续更新中)
225
-
226
- 1. 组件未暴露className
227
- 2. 组件未暴露ref
228
- 3. 组件未打包出ts校验类型
224
+ ## 按需引用
225
+
226
+ ```js
227
+ [
228
+ 'import',
229
+ {
230
+ libraryName: '@aloudata/aloudata-design',
231
+ libraryDirectory: 'es',
232
+ style:(name)=>{
233
+ return `${name}/style/index.less`
234
+ },
235
+ camel2DashComponentName: false,
236
+ },
237
+ ]
238
+ ```
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BreadcrumbItemProps, BreadcrumbProps } from 'antd';
2
3
  export type { BreadcrumbItemProps, BreadcrumbProps };
3
4
  declare const Breadcrumb: {
@@ -1,5 +1,7 @@
1
1
  import "antd/es/button/style";
2
2
  import _Button from "antd/es/button";
3
+ import "@aloudata/icons-react/styles/index.less";
4
+ import _LoadingLine from "@aloudata/icons-react/es/icons/LoadingLine";
3
5
  var _excluded = ["type", "size", "shape", "loading", "disabled", "icon", "className"];
4
6
 
5
7
  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; }
@@ -14,7 +16,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
14
16
 
15
17
  import React from 'react';
16
18
  import classNames from 'classnames';
17
- import LoadingIcon from '../Icon/icons/Loading';
18
19
  var iconPrefixCls = 'aldicon';
19
20
  var ICON_LARGE = 16;
20
21
  var ICON_MIDDLE = 14;
@@ -103,7 +104,7 @@ function Button(props) {
103
104
  }
104
105
 
105
106
  if (loading) {
106
- return /*#__PURE__*/React.createElement(LoadingIcon, {
107
+ return /*#__PURE__*/React.createElement(_LoadingLine, {
107
108
  spin: true,
108
109
  size: ICON_LARGE,
109
110
  className: classNames("".concat(iconPrefixCls, "-icon-left"), iconPrefixCls),
@@ -15,12 +15,9 @@
15
15
  display: inline-flex;
16
16
  align-items: center;
17
17
  justify-content: center;
18
- height: @height-base;
19
18
  font-weight: 500;
20
19
  font-size: 12px;
21
- line-height: @height-base;
22
20
  text-shadow: none;
23
- vertical-align: bottom;
24
21
  }
25
22
 
26
23
  &.ant-btn-loading::before {
@@ -28,198 +25,196 @@
28
25
  }
29
26
 
30
27
  &-primary {
31
- color: @Button-primary-color;
32
- background-color: @Button-primary-bgColor;
33
- border-color: @Button-primary-bgColor;
28
+ color: @button-primary-color;
29
+ background-color: @button-primary-bg-color;
30
+ border-color: @button-primary-bg-color;
34
31
  box-shadow: none;
35
32
 
36
33
  &:focus {
37
34
  //text-shadow: @text-shadow;
38
- color: @Button-primary-color;
39
- background-color: @Button-primary-bgColor;
40
- border-color: @Button-primary-bgColor;
35
+ color: @button-primary-color;
36
+ background-color: @button-primary-bg-color;
37
+ border-color: @button-primary-bg-color;
41
38
  box-shadow: none;
42
39
  }
43
40
 
44
41
  &:hover,
45
42
  &:active {
46
- color: @Button-primary-color-active;
47
- background-color: @Button-primary-bgColor-active;
48
- border-color: @Button-primary-bgColor-active;
43
+ color: @button-primary-color-active;
44
+ background-color: @button-primary-bg-color-active;
45
+ border-color: @button-primary-bg-color-active;
49
46
  }
50
47
 
51
48
  &.ant-btn-loading,
52
49
  &[disabled] {
53
- color: @Button-primary-color-disable;
54
- background-color: @Button-primary-bgColor-disable;
55
- border-color: @Button-primary-bgColor-disable;
50
+ color: @button-primary-color-disable;
51
+ background-color: @button-primary-bg-color-disable;
52
+ border-color: @button-primary-bg-color-disable;
56
53
  cursor: default;
57
54
 
58
55
  &:hover,
59
56
  &:focus,
60
57
  &:active {
61
- color: @Button-primary-color-disable;
62
- background-color: @Button-primary-bgColor-disable;
63
- border-color: @Button-primary-bgColor-disable;
58
+ color: @button-primary-color-disable;
59
+ background-color: @button-primary-bg-color-disable;
60
+ border-color: @button-primary-bg-color-disable;
64
61
  }
65
62
  }
66
63
  }
67
64
 
68
65
  &-dangerous {
69
- color: @Button-dangerous-color;
70
- background-color: @Button-dangerous-bgColor;
71
- border-color: @Button-dangerous-bgColor;
66
+ color: @button-dangerous-color;
67
+ background-color: @button-dangerous-bg-color;
68
+ border-color: @button-dangerous-bg-color;
72
69
  box-shadow: unset;
73
70
 
74
71
  &:focus {
75
- color: @Button-dangerous-color;
76
- background-color: @Button-dangerous-bgColor;
77
- border-color: @Button-dangerous-bgColor;
72
+ color: @button-dangerous-color;
73
+ background-color: @button-dangerous-bg-color;
74
+ border-color: @button-dangerous-bg-color;
78
75
  box-shadow: unset;
79
76
  }
80
77
 
81
78
  &:hover,
82
79
  &:active {
83
- color: @Button-dangerous-color-active;
84
- background-color: @Button-dangerous-bgColor-active;
85
- border-color: @Button-dangerous-bgColor-active;
80
+ color: @button-dangerous-color-active;
81
+ background-color: @button-dangerous-bg-color-active;
82
+ border-color: @button-dangerous-bg-color-active;
86
83
  }
87
84
 
88
85
  &[disabled],
89
86
  &.ant-btn-loading {
90
- color: @Button-dangerous-color-disable;
91
- background-color: @Button-dangerous-bgColor-disable;
92
- border-color: @Button-dangerous-bgColor-disable;
87
+ color: @button-dangerous-color-disable;
88
+ background-color: @button-dangerous-bg-color-disable;
89
+ border-color: @button-dangerous-bg-color-disable;
93
90
  cursor: default;
94
91
 
95
92
  &:hover,
96
93
  &:focus,
97
94
  &:active {
98
- color: @Button-dangerous-color-disable;
99
- background-color: @Button-dangerous-bgColor-disable;
100
- border-color: @Button-dangerous-bgColor-disable;
95
+ color: @button-dangerous-color-disable;
96
+ background-color: @button-dangerous-bg-color-disable;
97
+ border-color: @button-dangerous-bg-color-disable;
101
98
  }
102
99
  }
103
100
  }
104
101
 
105
102
  &.ant-btn-circle {
106
103
  justify-content: center;
107
- min-width: @height-base;
108
- height: @height-base;
109
104
  padding: 0;
110
105
  border-radius: 50%;
111
106
  }
112
107
 
113
108
  &-default,
114
109
  &-secondary {
115
- color: @Button-secondary-color;
116
- background-color: @Button-secondary-bgColor;
110
+ color: @button-secondary-color;
111
+ background-color: @button-secondary-bg-color;
117
112
  border: 1px solid;
118
- border-color: @Button-secondary-borderColor;
113
+ border-color: @button-secondary-border-color;
119
114
  box-shadow: none;
120
115
 
121
116
  &:focus {
122
- color: @Button-secondary-color;
117
+ color: @button-secondary-color;
123
118
  //text-shadow: @text-shadow;
124
- background-color: @Button-secondary-bgColor;
125
- border-color: @Button-secondary-borderColor;
119
+ background-color: @button-secondary-bg-color;
120
+ border-color: @button-secondary-border-color;
126
121
  box-shadow: none;
127
122
  }
128
123
 
129
124
  &:hover,
130
125
  &:active {
131
- color: @Button-secondary-color-active;
132
- background-color: @Button-secondary-bgColor-active;
133
- border-color: @Button-secondary-borderColor-active;
126
+ color: @button-secondary-color-active;
127
+ background-color: @button-secondary-bg-color-active;
128
+ border-color: @button-secondary-border-color-active;
134
129
  }
135
130
 
136
131
  &[disabled],
137
132
  &.ant-btn-loading {
138
- color: @Button-secondary-color-disable;
139
- background-color: @Button-secondary-bgColor-disable;
140
- border-color: @Button-secondary-borderColor;
133
+ color: @button-secondary-color-disable;
134
+ background-color: @button-secondary-bg-color-disable;
135
+ border-color: @button-secondary-border-color;
141
136
  cursor: default;
142
137
 
143
138
  &:hover,
144
139
  &:focus,
145
140
  &:active {
146
- color: @Button-secondary-color-disable;
147
- background-color: @Button-secondary-bgColor-disable;
148
- border-color: @Button-secondary-borderColor;
141
+ color: @button-secondary-color-disable;
142
+ background-color: @button-secondary-bg-color-disable;
143
+ border-color: @button-secondary-border-color;
149
144
  }
150
145
  }
151
146
  }
152
147
 
153
148
  &-text {
154
- color: @Button-text-color;
155
- background-color: @Button-text-bgColor;
149
+ color: @button-text-color;
150
+ background-color: @button-text-bg-color;
156
151
  border: none;
157
152
  box-shadow: none;
158
153
 
159
154
  &:focus,
160
155
  &:active {
161
- color: @Button-text-color;
162
- background-color: @Button-text-bgColor;
156
+ color: @button-text-color;
157
+ background-color: @button-text-bg-color;
163
158
  box-shadow: none;
164
159
  }
165
160
 
166
161
  &:hover,
167
162
  &.ant-btn-loading {
168
- color: @Button-text-color-active;
169
- background-color: @Button-text-bgColor-active;
163
+ color: @button-text-color-active;
164
+ background-color: @button-text-bg-color-active;
170
165
  }
171
166
 
172
167
  &[disabled] {
173
- color: @Button-text-color-disable;
174
- background-color: @Button-text-bgColor-disable;
168
+ color: @button-text-color-disable;
169
+ background-color: @button-text-bg-color-disable;
175
170
  cursor: default;
176
171
 
177
172
  &:hover,
178
173
  &:focus,
179
174
  &:active {
180
- color: @Button-text-color-disable;
181
- background-color: @Button-text-bgColor-disable;
175
+ color: @button-text-color-disable;
176
+ background-color: @button-text-bg-color-disable;
182
177
  }
183
178
  }
184
179
  }
185
180
 
186
181
  &-link {
187
- color: @Button-link-color;
182
+ color: @button-link-color;
188
183
  font-weight: 400;
189
184
  //text-shadow: @text-shadow;
190
- background-color: @Button-link-bgColor;
191
- border-color: @Button-link-bgColor;
185
+ background-color: @button-link-bg-color;
186
+ border-color: @button-link-bg-color;
192
187
  box-shadow: none;
193
188
 
194
189
  &:focus {
195
- color: @Button-link-color;
190
+ color: @button-link-color;
196
191
  font-weight: 400;
197
192
  //text-shadow: @text-shadow;
198
- background-color: @Button-link-bgColor;
199
- border-color: @Button-link-bgColor;
193
+ background-color: @button-link-bg-color;
194
+ border-color: @button-link-bg-color;
200
195
  box-shadow: none;
201
196
  }
202
197
 
203
198
  &:hover,
204
199
  &:active {
205
- color: @Button-link-color-active;
206
- background-color: @Button-link-bgColor-active;
207
- border-color: @Button-link-bgColor-active;
200
+ color: @button-link-color-active;
201
+ background-color: @button-link-bg-color-active;
202
+ border-color: @button-link-bg-color-active;
208
203
  }
209
204
 
210
205
  &[disabled],
211
206
  &.ant-btn-loading {
212
- color: @Button-link-color-disable;
213
- background-color: @Button-link-bgColor-disable;
214
- border-color: @Button-link-bgColor-disable;
207
+ color: @button-link-color-disable;
208
+ background-color: @button-link-bg-color-disable;
209
+ border-color: @button-link-bg-color-disable;
215
210
  cursor: default;
216
211
 
217
212
  &:hover,
218
213
  &:focus,
219
214
  &:active {
220
- color: @Button-link-color-disable;
221
- background-color: @Button-link-bgColor-disable;
222
- border-color: @Button-link-bgColor-disable;
215
+ color: @button-link-color-disable;
216
+ background-color: @button-link-bg-color-disable;
217
+ border-color: @button-link-bg-color-disable;
223
218
  }
224
219
  }
225
220
  }
@@ -228,112 +223,126 @@
228
223
  justify-content: center;
229
224
  width: initial;
230
225
  padding: 0;
231
- vertical-align: bottom;
232
-
233
- &.ant-btn-loading-icon {
234
- vertical-align: baseline;
235
- }
236
- .@{ald-iconfont-css-prefix} {
237
- display: flex;
238
- align-items: center;
239
- justify-content: center;
240
- margin: 0;
241
- }
226
+ vertical-align: baseline;
242
227
  }
243
228
 
244
229
  &-large {
245
230
  min-width: auto;
246
- height: @Button-height-large;
247
- padding: @Button-border-padding-large;
248
- font-size: @Button-text-size-large;
249
- border-radius: @Button-borderRadius-large;
231
+ height: @button-height-large;
232
+ padding: @button-border-padding-large;
233
+ font-size: @button-text-size-large;
234
+ border-radius: @button-border-radius-large;
250
235
 
251
236
  &.ant-btn-icon-only {
252
- min-width: @Button-height-large;
253
- height: @Button-height-large;
254
- border-radius: @Button-borderRadius-large;
237
+ min-width: @button-height-large;
238
+ height: @button-height-large;
239
+ border-radius: @button-border-radius-large;
255
240
  }
256
241
 
257
242
  &.ant-btn-circle {
258
- min-width: @Button-height-large;
259
- height: @Button-height-large;
243
+ min-width: @button-height-large;
244
+ height: @button-height-large;
260
245
  border-radius: 50%;
261
246
  }
262
247
 
248
+ .aldicon-icon-left {
249
+ svg {
250
+ vertical-align: -2px;
251
+ }
252
+ }
253
+
263
254
  .aldicon-icon-left + span {
264
- margin-left: @Button-leftIcon-marginRight-large;
255
+ margin-left: @button-left-icon-margin-right-large;
265
256
  }
266
257
  }
267
258
 
268
259
  &-middle {
269
260
  min-width: auto;
270
- height: @Button-height-middle;
271
- padding: @Button-border-padding-middle;
272
- font-size: @Button-text-size-middle;
273
- border-radius: @Button-borderRadius-middle;
261
+ height: @button-height-middle;
262
+ padding: @button-border-padding-middle;
263
+ font-size: @button-text-size-middle;
264
+ border-radius: @button-border-radius-middle;
274
265
 
275
266
  &.ant-btn-icon-only {
276
- min-width: @Button-height-middle;
277
- height: @Button-height-middle;
278
- border-radius: @Button-borderRadius-middle;
267
+ min-width: @button-height-middle;
268
+ height: @button-height-middle;
269
+ border-radius: @button-border-radius-middle;
279
270
  }
280
271
 
281
272
  &.ant-btn-circle {
282
- min-width: @Button-height-middle;
283
- height: @Button-height-middle;
273
+ min-width: @button-height-middle;
274
+ height: @button-height-middle;
284
275
  border-radius: 50%;
285
276
  }
286
277
 
278
+ .aldicon-icon-left {
279
+ svg {
280
+ vertical-align: -2px;
281
+ }
282
+ }
283
+
287
284
  .aldicon-icon-left + span {
288
- margin-left: @Button-leftIcon-marginRight-middle;
285
+ margin-left: @button-left-icon-margin-right-middle;
289
286
  }
290
287
  }
291
288
 
292
289
  &-small {
293
- height: @Button-height-small;
294
- padding: @Button-border-padding-small;
295
- font-size: @Button-text-size-small;
290
+ height: @button-height-small;
291
+ padding: @button-border-padding-small;
292
+ font-size: @button-text-size-small;
296
293
  line-height: 22px;
297
- border-radius: @Button-borderRadius-small;
294
+ border-radius: @button-border-radius-small;
298
295
 
299
296
  &.ant-btn-icon-only {
300
- min-width: @Button-height-small;
301
- height: @Button-height-small;
302
- border-radius: @Button-borderRadius-small;
297
+ min-width: @button-height-small;
298
+ height: @button-height-small;
299
+ border-radius: @button-border-radius-small;
303
300
  }
304
301
 
305
302
  &.ant-btn-circle {
306
- min-width: @Button-height-small;
307
- height: @Button-height-small;
303
+ min-width: @button-height-small;
304
+ height: @button-height-small;
308
305
  border-radius: 50%;
309
306
  }
310
307
 
308
+ .aldicon-icon-left {
309
+ svg {
310
+ vertical-align: -2px;
311
+ }
312
+ }
313
+
311
314
  .aldicon-icon-left + span {
312
- margin-left: @Button-leftIcon-marginRight-small;
315
+ margin-left: @button-left-icon-margin-right-small;
313
316
  }
314
317
  }
315
318
 
316
319
  &-mini {
317
- height: @Button-height-mini;
318
- padding: @Button-border-padding-mini;
319
- font-size: @Button-text-size-mini;
320
+ height: @button-height-mini;
321
+ padding: @button-border-padding-mini;
322
+ font-size: @button-text-size-mini;
320
323
  line-height: 22px;
321
- border-radius: @Button-borderRadius-mini;
324
+ border-radius: @button-border-radius-mini;
322
325
 
323
326
  &.ant-btn-icon-only {
324
- min-width: @Button-height-mini;
325
- height: @Button-height-mini;
326
- border-radius: @Button-borderRadius-mini;
327
+ min-width: @button-height-mini;
328
+ height: @button-height-mini;
329
+ border-radius: @button-border-radius-mini;
327
330
  }
328
331
 
329
332
  &.ant-btn-circle {
330
- min-width: @Button-height-mini;
331
- height: @Button-height-mini;
333
+ min-width: @button-height-mini;
334
+ height: @button-height-mini;
332
335
  border-radius: 50%;
333
336
  }
334
337
 
338
+ .aldicon-icon-left {
339
+ svg {
340
+ vertical-align: -2px;
341
+ }
342
+ }
343
+
335
344
  .aldicon-icon-left + span {
336
- margin-left: @Button-leftIcon-marginRight-mini;
345
+ margin-left: @button-left-icon-margin-right-mini;
337
346
  }
338
347
  }
339
348
  }
@@ -1,67 +1,67 @@
1
1
  @ald-prefix: ald;
2
2
  @ald-iconfont-css-prefix: aldicon;
3
3
 
4
- @Button-padding: 0 12px;
4
+ @button-padding: 0 12px;
5
5
 
6
6
  /** size控制 **/
7
- @Button-height-large: 36px;
8
- @Button-text-size-large: 16px;
9
- @Button-borderRadius-large: 8px;
10
- @Button-border-padding-large: 0 11px;
11
- @Button-leftIcon-marginRight-large: 8px;
7
+ @button-height-large: 36px;
8
+ @button-text-size-large: 16px;
9
+ @button-border-radius-large: 8px;
10
+ @button-border-padding-large: 0 11px;
11
+ @button-left-icon-margin-right-large: 8px;
12
12
 
13
- @Button-height-middle: 32px;
14
- @Button-text-size-middle: 14px;
15
- @Button-borderRadius-middle: 6px;
16
- @Button-border-padding-middle: 0 11px;
17
- @Button-leftIcon-marginRight-middle: 8px;
13
+ @button-height-middle: 32px;
14
+ @button-text-size-middle: 14px;
15
+ @button-border-radius-middle: 6px;
16
+ @button-border-padding-middle: 0 11px;
17
+ @button-left-icon-margin-right-middle: 8px;
18
18
 
19
- @Button-height-small: 28px;
20
- @Button-text-size-small: 12px;
21
- @Button-borderRadius-small: 4px;
22
- @Button-border-padding-small: 0 7px;
23
- @Button-leftIcon-marginRight-small: 4px;
19
+ @button-height-small: 28px;
20
+ @button-text-size-small: 12px;
21
+ @button-border-radius-small: 4px;
22
+ @button-border-padding-small: 0 7px;
23
+ @button-left-icon-margin-right-small: 4px;
24
24
 
25
- @Button-height-mini: 24px;
26
- @Button-text-size-mini: 12px;
27
- @Button-borderRadius-mini: 4px;
28
- @Button-border-padding-mini: 0 7px;
29
- @Button-leftIcon-marginRight-mini: 4px;
25
+ @button-height-mini: 24px;
26
+ @button-text-size-mini: 12px;
27
+ @button-border-radius-mini: 4px;
28
+ @button-border-padding-mini: 0 7px;
29
+ @button-left-icon-margin-right-mini: 4px;
30
30
 
31
31
  /**** type控制 ****/
32
- @Button-primary-bgColor: @B60;
33
- @Button-primary-bgColor-active: @B50;
34
- @Button-primary-bgColor-disable: @B90;
35
- @Button-primary-color: @ND0;
36
- @Button-primary-color-active: @ND0;
37
- @Button-primary-color-disable: @ND0;
32
+ @button-primary-bg-color: @B60;
33
+ @button-primary-bg-color-active: @B50;
34
+ @button-primary-bg-color-disable: @B90;
35
+ @button-primary-color: @ND0;
36
+ @button-primary-color-active: @ND0;
37
+ @button-primary-color-disable: @ND0;
38
38
 
39
- @Button-dangerous-bgColor: @SC60;
40
- @Button-dangerous-bgColor-active: @SC50;
41
- @Button-dangerous-bgColor-disable: @SC90;
42
- @Button-dangerous-color: @ND0;
43
- @Button-dangerous-color-active: @ND0;
44
- @Button-dangerous-color-disable: @ND0;
39
+ @button-dangerous-bg-color: @SC60;
40
+ @button-dangerous-bg-color-active: @SC50;
41
+ @button-dangerous-bg-color-disable: @SC90;
42
+ @button-dangerous-color: @ND0;
43
+ @button-dangerous-color-active: @ND0;
44
+ @button-dangerous-color-disable: @ND0;
45
45
 
46
- @Button-secondary-bgColor: @BG97;
47
- @Button-secondary-bgColor-active: @BG95;
48
- @Button-secondary-bgColor-disable: @BG97;
49
- @Button-secondary-color: @NL30;
50
- @Button-secondary-color-active: @B60;
51
- @Button-secondary-color-disable: @NL80;
52
- @Button-secondary-borderColor: @NL90;
53
- @Button-secondary-borderColor-active: @B60;
46
+ @button-secondary-bg-color: @BG97;
47
+ @button-secondary-bg-color-active: @BG95;
48
+ @button-secondary-bg-color-disable: @BG97;
49
+ @button-secondary-color: @NL30;
50
+ @button-secondary-color-active: @B60;
51
+ @button-secondary-color-disable: @NL80;
52
+ @button-secondary-border-color: @NL90;
53
+ @button-secondary-border-color-active: @B60;
54
54
 
55
- @Button-text-bgColor: transparent;
56
- @Button-text-bgColor-active: @NL97;
57
- @Button-text-bgColor-disable: @BG100;
58
- @Button-text-color: @NL30;
59
- @Button-text-color-active: @B60;
60
- @Button-text-color-disable: @NL80;
55
+ @button-text-bg-color: transparent;
56
+ @button-text-bg-color-active: @NL97;
57
+ @button-text-bg-color-disable: transparent;
58
+ @button-text-color: @NL30;
59
+ @button-text-color-active: @B60;
60
+ @button-text-color-disable: @NL80;
61
61
 
62
- @Button-link-bgColor: @BG100;
63
- @Button-link-bgColor-active: @BG100;
64
- @Button-link-bgColor-disable: @BG100;
65
- @Button-link-color: @B60;
66
- @Button-link-color-active: @B50;
67
- @Button-link-color-disable: @B90;
62
+ @button-link-bg-color: transparent;
63
+ @button-link-bg-color-active: transparent;
64
+ @button-link-bg-color-disable: transparent;
65
+ @button-link-color: @B60;
66
+ @button-link-color-active: @B50;
67
+ @button-link-color-disable: @B90;
@@ -0,0 +1,3 @@
1
+ import { Card } from 'antd';
2
+ export { CardProps } from 'antd/lib/card';
3
+ export default Card;
@@ -0,0 +1,3 @@
1
+ import "antd/es/card/style";
2
+ import _Card from "antd/es/card";
3
+ export default _Card;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxProps } from 'antd';
2
3
  import { CheckboxGroupProps } from 'antd/lib/checkbox';
3
4
  export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';