@aloudata/aloudata-design 0.3.2 → 0.3.5

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 (205) hide show
  1. package/es/Breadcrumb/index.d.ts +1 -0
  2. package/es/Button/index.js +3 -2
  3. package/es/Button/style/index.less +135 -126
  4. package/es/Button/style/variables.less +53 -53
  5. package/es/Checkbox/index.d.ts +1 -0
  6. package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  7. package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
  8. package/es/ConfigProvider/sizeContext.d.ts +9 -0
  9. package/es/ConfigProvider/sizeContext.js +12 -0
  10. package/es/Dropdown/Button.js +3 -2
  11. package/es/Empty/image/Authority.d.ts +1 -0
  12. package/es/Empty/image/Dataspace.d.ts +1 -0
  13. package/es/Empty/image/Search.d.ts +1 -0
  14. package/es/Empty/image/Simple.d.ts +1 -0
  15. package/es/Empty/image/Worksheet.d.ts +1 -0
  16. package/es/Empty/image/empty.d.ts +1 -0
  17. package/es/Icon/icons.json +418 -0
  18. package/es/Input/components/Group/index.d.ts +3 -1
  19. package/es/Input/components/Group/index.js +6 -12
  20. package/es/Input/components/Input/index.d.ts +3 -2
  21. package/es/Input/components/Input/index.js +11 -23
  22. package/es/Input/components/Password/index.js +11 -16
  23. package/es/Input/components/TextArea/index.d.ts +8 -1
  24. package/es/Input/components/TextArea/index.js +8 -1
  25. package/es/Input/style/index.less +180 -102
  26. package/es/InputNumber/index.d.ts +1 -0
  27. package/es/InputNumber/style/index.less +69 -69
  28. package/es/Menu/Divider.d.ts +1 -0
  29. package/es/Modal/index.js +4 -7
  30. package/es/Modal/style/index.less +48 -45
  31. package/es/Navigator/components/Header/index.d.ts +1 -0
  32. package/es/Navigator/components/Menu/index.d.ts +1 -0
  33. package/es/PageHeader/index.d.ts +3 -0
  34. package/es/PageHeader/index.js +3 -0
  35. package/es/PageHeader/style/index.d.ts +2 -0
  36. package/es/PageHeader/style/index.js +2 -0
  37. package/es/PageHeader/style/index.less +1 -0
  38. package/es/Popover/index.d.ts +1 -0
  39. package/es/Radio/components/Group/index.d.ts +6 -0
  40. package/es/Radio/components/Group/index.js +74 -0
  41. package/es/Radio/components/Radio/index.d.ts +3 -0
  42. package/es/Radio/components/Radio/index.js +95 -0
  43. package/es/Radio/index.d.ts +9 -2
  44. package/es/Radio/index.js +5 -3
  45. package/es/Radio/interface/radio.d.ts +24 -0
  46. package/es/Radio/interface/radio.js +1 -0
  47. package/es/Radio/interface/radioGroup.d.ts +42 -0
  48. package/es/Radio/interface/radioGroup.js +1 -0
  49. package/es/Radio/style/index.less +348 -0
  50. package/es/Select/index.js +1 -1
  51. package/es/Select/rc-select/OptionList.js +3 -2
  52. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  53. package/es/Select/style/index.less +50 -49
  54. package/es/Select/style/variables.less +45 -45
  55. package/es/Select/utils/iconUtil.d.ts +2 -2
  56. package/es/Select/utils/iconUtil.js +6 -4
  57. package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
  58. package/es/Steps/components/ProcessIcon/index.js +8 -0
  59. package/es/Steps/components/Step/index.d.ts +20 -0
  60. package/es/Steps/components/Step/index.js +45 -0
  61. package/es/Steps/index.d.ts +36 -2
  62. package/es/Steps/index.js +30 -1
  63. package/es/Steps/matchMedia.mock.d.ts +1 -0
  64. package/es/Steps/matchMedia.mock.js +17 -0
  65. package/es/Steps/style/index.less +251 -0
  66. package/es/Switch/index.d.ts +46 -2
  67. package/es/Switch/index.js +71 -1
  68. package/es/Switch/style/index.less +129 -0
  69. package/es/Table/Table.d.ts +2 -1
  70. package/es/Table/Table.js +223 -330
  71. package/es/Table/components/Empty/index.d.ts +3 -0
  72. package/es/Table/components/Empty/index.js +16 -0
  73. package/es/Table/components/Loading/index.d.ts +3 -0
  74. package/es/Table/components/Loading/index.js +18 -0
  75. package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
  76. package/es/Table/components/TableBodyRowList/index.js +91 -0
  77. package/es/Table/components/TableHead/index.d.ts +23 -0
  78. package/es/Table/components/TableHead/index.js +262 -0
  79. package/es/Table/constant.d.ts +1 -0
  80. package/es/Table/constant.js +1 -0
  81. package/es/Table/hooks/useFrame.d.ts +7 -0
  82. package/es/Table/hooks/useFrame.js +90 -0
  83. package/es/Table/hooks/useTableColumn.d.ts +28 -0
  84. package/es/Table/hooks/useTableColumn.js +53 -0
  85. package/es/Table/interface.d.ts +3 -2
  86. package/es/Table/style/index.less +41 -37
  87. package/es/Table/style/index.less.d.ts +126 -0
  88. package/es/Table/style/variable.less +10 -0
  89. package/es/Table/style/variable.less.d.ts +7 -0
  90. package/es/Table/utils.d.ts +15 -0
  91. package/es/Table/utils.js +131 -0
  92. package/es/Tabs/index.js +3 -2
  93. package/es/Tabs/style/index.less +25 -25
  94. package/es/_utils/hooks/useId.d.ts +4 -0
  95. package/es/_utils/hooks/useId.js +23 -0
  96. package/es/index.d.ts +7 -5
  97. package/es/index.js +2 -1
  98. package/es/locale-provider/index.d.ts +5 -1
  99. package/es/style/index.d.ts +0 -1
  100. package/es/style/index.js +0 -1
  101. package/es/style/index.less +2 -2
  102. package/es/style/themes/default/index.less +30 -30
  103. package/lib/Breadcrumb/index.d.ts +1 -0
  104. package/lib/Button/index.js +5 -3
  105. package/lib/Button/style/index.less +135 -126
  106. package/lib/Button/style/variables.less +53 -53
  107. package/lib/Checkbox/index.d.ts +1 -0
  108. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  109. package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
  110. package/lib/ConfigProvider/sizeContext.d.ts +9 -0
  111. package/lib/ConfigProvider/sizeContext.js +30 -0
  112. package/lib/Dropdown/Button.js +7 -5
  113. package/lib/Empty/image/Authority.d.ts +1 -0
  114. package/lib/Empty/image/Dataspace.d.ts +1 -0
  115. package/lib/Empty/image/Search.d.ts +1 -0
  116. package/lib/Empty/image/Simple.d.ts +1 -0
  117. package/lib/Empty/image/Worksheet.d.ts +1 -0
  118. package/lib/Empty/image/empty.d.ts +1 -0
  119. package/lib/Icon/icons.json +418 -0
  120. package/lib/Input/components/Group/index.d.ts +3 -1
  121. package/lib/Input/components/Group/index.js +7 -12
  122. package/lib/Input/components/Input/index.d.ts +3 -2
  123. package/lib/Input/components/Input/index.js +13 -23
  124. package/lib/Input/components/Password/index.js +13 -17
  125. package/lib/Input/components/TextArea/index.d.ts +8 -1
  126. package/lib/Input/components/TextArea/index.js +10 -1
  127. package/lib/Input/style/index.less +180 -102
  128. package/lib/InputNumber/index.d.ts +1 -0
  129. package/lib/InputNumber/style/index.less +69 -69
  130. package/lib/Menu/Divider.d.ts +1 -0
  131. package/lib/Modal/index.js +8 -10
  132. package/lib/Modal/style/index.less +48 -45
  133. package/lib/Navigator/components/Header/index.d.ts +1 -0
  134. package/lib/Navigator/components/Menu/index.d.ts +1 -0
  135. package/lib/PageHeader/index.d.ts +3 -0
  136. package/lib/PageHeader/index.js +15 -0
  137. package/lib/PageHeader/style/index.d.ts +2 -0
  138. package/lib/PageHeader/style/index.js +5 -0
  139. package/lib/PageHeader/style/index.less +1 -0
  140. package/lib/Popover/index.d.ts +1 -0
  141. package/lib/Radio/components/Group/index.d.ts +6 -0
  142. package/lib/Radio/components/Group/index.js +95 -0
  143. package/lib/Radio/components/Radio/index.d.ts +3 -0
  144. package/lib/Radio/components/Radio/index.js +115 -0
  145. package/lib/Radio/index.d.ts +9 -2
  146. package/lib/Radio/index.js +5 -3
  147. package/lib/Radio/interface/radio.d.ts +24 -0
  148. package/lib/Radio/interface/radio.js +5 -0
  149. package/lib/Radio/interface/radioGroup.d.ts +42 -0
  150. package/lib/Radio/interface/radioGroup.js +5 -0
  151. package/lib/Radio/style/index.less +348 -0
  152. package/lib/Select/index.js +1 -1
  153. package/lib/Select/rc-select/OptionList.js +7 -5
  154. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  155. package/lib/Select/style/index.less +50 -49
  156. package/lib/Select/style/variables.less +45 -45
  157. package/lib/Select/utils/iconUtil.d.ts +2 -2
  158. package/lib/Select/utils/iconUtil.js +10 -8
  159. package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
  160. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  161. package/lib/Steps/components/Step/index.d.ts +20 -0
  162. package/lib/Steps/components/Step/index.js +61 -0
  163. package/lib/Steps/index.d.ts +36 -2
  164. package/lib/Steps/index.js +34 -1
  165. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  166. package/lib/Steps/matchMedia.mock.js +17 -0
  167. package/lib/Steps/style/index.less +251 -0
  168. package/lib/Switch/index.d.ts +46 -2
  169. package/lib/Switch/index.js +78 -1
  170. package/lib/Switch/style/index.less +129 -0
  171. package/lib/Table/Table.d.ts +2 -1
  172. package/lib/Table/Table.js +229 -332
  173. package/lib/Table/components/Empty/index.d.ts +3 -0
  174. package/lib/Table/components/Empty/index.js +28 -0
  175. package/lib/Table/components/Loading/index.d.ts +3 -0
  176. package/lib/Table/components/Loading/index.js +31 -0
  177. package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
  178. package/lib/Table/components/TableBodyRowList/index.js +110 -0
  179. package/lib/Table/components/TableHead/index.d.ts +23 -0
  180. package/lib/Table/components/TableHead/index.js +286 -0
  181. package/lib/Table/constant.d.ts +1 -0
  182. package/lib/Table/constant.js +1 -0
  183. package/lib/Table/hooks/useFrame.d.ts +7 -0
  184. package/lib/Table/hooks/useFrame.js +98 -0
  185. package/lib/Table/hooks/useTableColumn.d.ts +28 -0
  186. package/lib/Table/hooks/useTableColumn.js +66 -0
  187. package/lib/Table/interface.d.ts +3 -2
  188. package/lib/Table/style/index.less +41 -37
  189. package/lib/Table/style/index.less.d.ts +126 -0
  190. package/lib/Table/style/variable.less +10 -0
  191. package/lib/Table/style/variable.less.d.ts +7 -0
  192. package/lib/Table/utils.d.ts +15 -0
  193. package/lib/Table/utils.js +147 -0
  194. package/lib/Tabs/index.js +5 -3
  195. package/lib/Tabs/style/index.less +25 -25
  196. package/lib/_utils/hooks/useId.d.ts +4 -0
  197. package/lib/_utils/hooks/useId.js +36 -0
  198. package/lib/index.d.ts +7 -5
  199. package/lib/index.js +8 -0
  200. package/lib/locale-provider/index.d.ts +5 -1
  201. package/lib/style/index.d.ts +0 -1
  202. package/lib/style/index.js +0 -2
  203. package/lib/style/index.less +2 -2
  204. package/lib/style/themes/default/index.less +30 -30
  205. package/package.json +2 -1
@@ -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;
@@ -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';
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare const defaultRenderEmpty: (componentName?: string | undefined) => React.ReactNode;
3
+ export declare type RenderEmptyHandler = typeof defaultRenderEmpty;
4
+ export default defaultRenderEmpty;
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import { ConfigConsumer } from '.';
3
+ import Empty from '../Empty';
4
+
5
+ var defaultRenderEmpty = function defaultRenderEmpty(componentName) {
6
+ return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {
7
+ var getPrefixCls = _ref.getPrefixCls;
8
+ var prefix = getPrefixCls('empty');
9
+
10
+ switch (componentName) {
11
+ case 'Table':
12
+ case 'List':
13
+ return /*#__PURE__*/React.createElement(Empty, {
14
+ image: Empty.PRESENTED_IMAGE_SIMPLE
15
+ });
16
+
17
+ case 'Select':
18
+ case 'TreeSelect':
19
+ case 'Cascader':
20
+ case 'Transfer':
21
+ case 'Mentions':
22
+ return /*#__PURE__*/React.createElement(Empty, {
23
+ image: Empty.PRESENTED_IMAGE_SIMPLE,
24
+ title: "\u65E0\u6570\u636E",
25
+ className: "".concat(prefix, "-small")
26
+ });
27
+
28
+ /* istanbul ignore next */
29
+
30
+ default:
31
+ // Should never hit if we take all the component into consider.
32
+ return /*#__PURE__*/React.createElement(Empty, null);
33
+ }
34
+ });
35
+ };
36
+
37
+ export default defaultRenderEmpty;