@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.10

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 (232) hide show
  1. package/dist/Avatar/component/Avatar/index.js +9 -7
  2. package/dist/Avatar/style/index.less +8 -1
  3. package/dist/Button/index.d.ts +3 -4
  4. package/dist/Button/index.js +7 -20
  5. package/dist/Button/style/size.less +21 -8
  6. package/dist/Button/style/type.less +61 -33
  7. package/dist/Button/style/variables.less +236 -48
  8. package/dist/Checkbox/index.js +10 -4
  9. package/dist/Checkbox/style/index.less +117 -108
  10. package/dist/Checkbox/type.d.ts +11 -0
  11. package/dist/ColorPicker/style/index.less +1 -2
  12. package/dist/DataPreviewTable/constant.d.ts +1 -1
  13. package/dist/DataPreviewTable/constant.js +1 -1
  14. package/dist/DataPreviewTable/style/index.less +11 -11
  15. package/dist/Dropdown/index.d.ts +1 -2
  16. package/dist/Dropdown/style/index.less +71 -107
  17. package/dist/Empty/image/Search.js +2 -2
  18. package/dist/Empty/image/SearchSmall.js +2 -2
  19. package/dist/Empty/index.js +2 -1
  20. package/dist/Empty/style/index.less +2 -1
  21. package/dist/Form/style/index.less +27 -6
  22. package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
  23. package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
  24. package/dist/Icon/components/AlertTriangleLine.js +35 -0
  25. package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
  26. package/dist/Icon/components/ArrowDownFill.js +35 -0
  27. package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
  28. package/dist/Icon/components/AttentionCircleFill.js +35 -0
  29. package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
  30. package/dist/Icon/components/AttentionTriangleFill.js +35 -0
  31. package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
  32. package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
  33. package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
  34. package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
  35. package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
  36. package/dist/Icon/components/CheckCircleFill.js +35 -0
  37. package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
  38. package/dist/Icon/components/CheckCircleLightLine.js +38 -0
  39. package/dist/Icon/components/CheckLightLine.d.ts +11 -0
  40. package/dist/Icon/components/CheckLightLine.js +35 -0
  41. package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
  42. package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
  43. package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
  44. package/dist/Icon/components/CircleLightLine.d.ts +11 -0
  45. package/dist/Icon/components/CircleLightLine.js +38 -0
  46. package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
  47. package/dist/Icon/components/CloseCircleFill.js +35 -0
  48. package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
  49. package/dist/Icon/components/CloseCircleLightLine.js +35 -0
  50. package/dist/Icon/components/CloseLLine.d.ts +1 -1
  51. package/dist/Icon/components/CloseLightLine.d.ts +11 -0
  52. package/dist/Icon/components/CloseLightLine.js +35 -0
  53. package/dist/Icon/components/CloseMLine.d.ts +1 -1
  54. package/dist/Icon/components/DragLine.d.ts +1 -1
  55. package/dist/Icon/components/Ellipsis.d.ts +11 -0
  56. package/dist/Icon/components/Ellipsis.js +35 -0
  57. package/dist/Icon/components/EyeOffLine.d.ts +1 -1
  58. package/dist/Icon/components/EyeOnLine.d.ts +1 -1
  59. package/dist/Icon/components/FoldDownFill.d.ts +1 -1
  60. package/dist/Icon/components/FoldUpFill.d.ts +1 -1
  61. package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
  62. package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
  63. package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
  64. package/dist/Icon/components/InformationCircleFill.js +35 -0
  65. package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
  66. package/dist/Icon/components/InformationCircleLightLine.js +38 -0
  67. package/dist/Icon/components/Loading2Line.d.ts +1 -1
  68. package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
  69. package/dist/Icon/components/LoadingDuotone.js +39 -0
  70. package/dist/Icon/components/LoadingLine.d.ts +1 -1
  71. package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
  72. package/dist/Icon/components/SearchLine.d.ts +1 -1
  73. package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
  74. package/dist/Icon/components/TriangleLightLine.js +35 -0
  75. package/dist/Icon/components/User.d.ts +11 -0
  76. package/dist/Icon/components/User.js +41 -0
  77. package/dist/Icon/components/UserGroup.d.ts +11 -0
  78. package/dist/Icon/components/UserGroup.js +39 -0
  79. package/dist/Icon/index.d.ts +19 -3
  80. package/dist/Icon/index.js +19 -2
  81. package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
  82. package/dist/Icon/svg/Loading-duotone.svg +6 -0
  83. package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
  84. package/dist/Icon/svg/alert-triangle-line.svg +5 -0
  85. package/dist/Icon/svg/arrow-down-fill.svg +5 -0
  86. package/dist/Icon/svg/attention-circle-fill.svg +5 -0
  87. package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
  88. package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
  89. package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
  90. package/dist/Icon/svg/check-circle-duotone.svg +6 -2
  91. package/dist/Icon/svg/check-circle-fill.svg +5 -0
  92. package/dist/Icon/svg/check-circle-light-line.svg +8 -0
  93. package/dist/Icon/svg/check-light-line.svg +5 -0
  94. package/dist/Icon/svg/chevron-down-line.svg +6 -4
  95. package/dist/Icon/svg/chevron-left-line.svg +6 -4
  96. package/dist/Icon/svg/chevron-right-line.svg +6 -4
  97. package/dist/Icon/svg/circle-light-line.svg +9 -0
  98. package/dist/Icon/svg/close-L-line.svg +11 -9
  99. package/dist/Icon/svg/close-circle-fill.svg +5 -0
  100. package/dist/Icon/svg/close-light-line.svg +5 -0
  101. package/dist/Icon/svg/close-m-line.svg +6 -4
  102. package/dist/Icon/svg/drag-line.svg +6 -4
  103. package/dist/Icon/svg/ellipsis.svg +5 -0
  104. package/dist/Icon/svg/eye-off-line.svg +6 -4
  105. package/dist/Icon/svg/eye-on-line.svg +14 -8
  106. package/dist/Icon/svg/fold-down-fill.svg +7 -6
  107. package/dist/Icon/svg/fold-up-fill.svg +7 -6
  108. package/dist/Icon/svg/info-circle-duotone.svg +4 -2
  109. package/dist/Icon/svg/info-circle-line.svg +3 -1
  110. package/dist/Icon/svg/information-circle-fill.svg +5 -0
  111. package/dist/Icon/svg/information-circle-light-line.svg +9 -0
  112. package/dist/Icon/svg/loading-2-line.svg +4 -2
  113. package/dist/Icon/svg/loading-line.svg +6 -4
  114. package/dist/Icon/svg/more-vertical-line.svg +6 -4
  115. package/dist/Icon/svg/search-line.svg +6 -4
  116. package/dist/Icon/svg/triangle-light-line.svg +5 -0
  117. package/dist/Icon/svg/user.svg +4 -0
  118. package/dist/Icon/svg/userGroup.svg +7 -0
  119. package/dist/IconButton/index.d.ts +2 -2
  120. package/dist/IconButton/index.js +8 -19
  121. package/dist/IconButton/style/index.less +49 -25
  122. package/dist/Input/components/Input/index.js +18 -2
  123. package/dist/Input/components/Password/index.d.ts +0 -5
  124. package/dist/Input/components/Password/index.js +10 -10
  125. package/dist/Input/components/TextArea/index.js +15 -2
  126. package/dist/Input/index.d.ts +2 -5
  127. package/dist/Input/index.js +1 -3
  128. package/dist/Input/style/index.less +4 -565
  129. package/dist/Input/style/reset.less +22 -0
  130. package/dist/Input/style/size.less +82 -0
  131. package/dist/Input/style/status.less +105 -0
  132. package/dist/InputNumber/style/index.less +12 -9
  133. package/dist/MemberPicker/components/MultipleOption.js +4 -3
  134. package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
  135. package/dist/MemberPicker/components/NickLabel.js +8 -2
  136. package/dist/MemberPicker/components/Panel.js +2 -2
  137. package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
  138. package/dist/MemberPicker/components/SingleOption.js +1 -0
  139. package/dist/MemberPicker/index.js +2 -0
  140. package/dist/MemberPicker/interface.d.ts +1 -0
  141. package/dist/MemberPicker/style/index.less +38 -30
  142. package/dist/Menu/index.js +6 -9
  143. package/dist/Menu/style/index.less +71 -133
  144. package/dist/Modal/index.d.ts +1 -1
  145. package/dist/Modal/index.js +32 -43
  146. package/dist/Modal/style/index.less +3 -191
  147. package/dist/Modal/style/modal.less +132 -0
  148. package/dist/Modal/style/modalConfirm.less +100 -0
  149. package/dist/Navigator/style/index.less +1 -1
  150. package/dist/Pagination/index.d.ts +1 -1
  151. package/dist/Pagination/index.js +11 -3
  152. package/dist/Pagination/style/index.less +11 -4
  153. package/dist/Pagination/types.d.ts +1 -0
  154. package/dist/Popconfirm/index.js +8 -7
  155. package/dist/Popconfirm/style/index.less +58 -12
  156. package/dist/Popover/style/index.less +29 -29
  157. package/dist/Radio/components/Group/index.js +3 -5
  158. package/dist/Radio/components/Radio/index.js +2 -1
  159. package/dist/Radio/interface/radioGroup.d.ts +1 -1
  160. package/dist/Radio/style/index.less +69 -56
  161. package/dist/ScrollArea/index.d.ts +1 -0
  162. package/dist/ScrollArea/index.js +5 -2
  163. package/dist/ScrollArea/style/index.less +5 -0
  164. package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
  165. package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
  166. package/dist/Select/components/SingleOption.d.ts +2 -2
  167. package/dist/Select/components/SingleOption.js +3 -1
  168. package/dist/Select/index.d.ts +5 -0
  169. package/dist/Select/index.js +28 -40
  170. package/dist/Select/style/index.less +109 -77
  171. package/dist/Select/style/layout.less +43 -0
  172. package/dist/Select/style/option.less +42 -3
  173. package/dist/Select/style/selectDropdown.less +16 -0
  174. package/dist/Select/style/size.less +316 -84
  175. package/dist/Select/style/status.less +69 -21
  176. package/dist/Select/style/variables.less +13 -17
  177. package/dist/Skeleton/style/index.less +84 -4
  178. package/dist/Spin/CustomIcon/index.d.ts +3 -0
  179. package/dist/Spin/CustomIcon/index.js +20 -15
  180. package/dist/Spin/CustomIcon/index.less +32 -105
  181. package/dist/Spin/index.d.ts +2 -0
  182. package/dist/Spin/index.js +10 -5
  183. package/dist/Spin/style/index.less +17 -1
  184. package/dist/Switch/index.d.ts +1 -1
  185. package/dist/Switch/style/index.less +130 -56
  186. package/dist/Table/components/Pagination/index.js +3 -1
  187. package/dist/Table/index.js +18 -3
  188. package/dist/Table/style/index.less +24 -10
  189. package/dist/Table/types.d.ts +1 -0
  190. package/dist/Tabs/index.d.ts +7 -2
  191. package/dist/Tabs/index.js +9 -6
  192. package/dist/Tabs/style/index.less +29 -18
  193. package/dist/TextLink/index.d.ts +44 -0
  194. package/dist/TextLink/index.js +26 -0
  195. package/dist/TextLink/style/index.d.ts +2 -0
  196. package/dist/TextLink/style/index.js +2 -0
  197. package/dist/TextLink/style/index.less +14 -0
  198. package/dist/TextLink/style/size.less +37 -0
  199. package/dist/TextLink/style/type.less +44 -0
  200. package/dist/Tree/DirectoryTree.js +0 -12
  201. package/dist/Tree/Tree.js +2 -2
  202. package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
  203. package/dist/Tree/demo/directoryTree/index.js +44 -0
  204. package/dist/Tree/style/index.less +31 -12
  205. package/dist/Tree/style/mixin.less +3 -5
  206. package/dist/Tree/style/reset.less +15 -0
  207. package/dist/Tree/style/var.less +1 -1
  208. package/dist/ald.min.css +1 -1
  209. package/dist/index.d.ts +2 -1
  210. package/dist/index.js +1 -1
  211. package/dist/index.less +1 -0
  212. package/dist/message/index.js +15 -14
  213. package/dist/message/style/color.less +22 -41
  214. package/dist/message/style/index.less +15 -16
  215. package/dist/notification/demo/footer.d.ts +3 -0
  216. package/dist/notification/demo/footer.js +44 -0
  217. package/dist/notification/demo/index.js +1 -0
  218. package/dist/notification/index.js +84 -55
  219. package/dist/notification/style/index.less +53 -9
  220. package/dist/style/index.less +1 -0
  221. package/dist/style/themes/default/default.less +1 -1
  222. package/dist/style/themes/default/index.less +4 -4
  223. package/dist/style/themes/default/scrollBar.less +1 -1
  224. package/dist/style/var/default.css +1334 -0
  225. package/package.json +4 -3
  226. package/dist/Icon/components/Icon.d.ts +0 -32
  227. package/dist/Icon/components/Icon.js +0 -25
  228. package/dist/Input/components/Group/index.d.ts +0 -18
  229. package/dist/Input/components/Group/index.js +0 -19
  230. package/dist/Menu/style/dropdown.less +0 -61
  231. package/dist/Select/style/multiple.less +0 -55
  232. package/dist/Select/style/single.less +0 -44
@@ -2,10 +2,10 @@ var _excluded = ["size", "showFullValue", "children", "src"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  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; }
4
4
  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; }
5
+ import { User } from "../../../Icon";
5
6
  import InternalAvatar from 'antd/lib/avatar/avatar';
6
7
  import classNames from 'classnames';
7
8
  import * as React from 'react';
8
- import DefaultAvatar from "./avatar";
9
9
  var ZERO = 0;
10
10
  var Avatar = function Avatar(props) {
11
11
  var _props$size = props.size,
@@ -32,15 +32,17 @@ var Avatar = function Avatar(props) {
32
32
  return children;
33
33
  };
34
34
  var defaultSrc = React.useMemo(function () {
35
- if (typeof src === 'undefined' && typeof children === 'undefined') {
36
- return /*#__PURE__*/React.createElement(DefaultAvatar, null);
35
+ if (typeof src === 'undefined' || !src) {
36
+ return /*#__PURE__*/React.createElement(User, {
37
+ size: size
38
+ });
37
39
  }
38
40
  return src;
39
- }, [src, children]);
40
- return /*#__PURE__*/React.createElement(InternalAvatar, _extends({
41
+ }, [size, src]);
42
+ return /*#__PURE__*/React.createElement(InternalAvatar, _extends({}, restProps, {
41
43
  size: typeof size === 'number' ? size : undefined,
42
- className: getSizeClass(size),
44
+ className: classNames(getSizeClass(size), restProps.className),
43
45
  src: defaultSrc
44
- }, restProps), getChildren());
46
+ }), getChildren());
45
47
  };
46
48
  export default Avatar;
@@ -2,7 +2,8 @@
2
2
 
3
3
  .ald-avatar.ald-avatar {
4
4
  color: @ND0;
5
- background-color: @B40;
5
+ background-color: #fff;
6
+ border: 0;
6
7
 
7
8
  &.ald-avatar-default {
8
9
  background-color: transparent;
@@ -36,3 +37,9 @@
36
37
  line-height: 24px;
37
38
  }
38
39
  }
40
+
41
+ .ant-avatar-group {
42
+ .ald-avatar.ald-avatar {
43
+ border: 1px solid #fff;
44
+ }
45
+ }
@@ -1,12 +1,12 @@
1
1
  import type { ButtonProps as AntdButtonProps, ButtonType as AntdButtonType } from 'antd/lib/button';
2
2
  import React from 'react';
3
3
  export declare const btnPrefix = "ald-btn";
4
- export type ButtonType = 'primary' | 'secondary' | 'dangerous' | 'text' | 'link';
4
+ export type ButtonType = 'primary' | 'secondary' | 'dangerous' | 'text' | 'inverse';
5
5
  export type Size = 'small' | 'middle' | 'large';
6
6
  export interface IButtonProps extends Omit<AntdButtonProps, 'type' | 'dangerous' | 'shape' | 'icon' | 'href' | 'target' | 'onClick' | 'loading'> {
7
7
  /**
8
8
  * @description 类型
9
- * @type 'primary' | 'secondary' | 'dangerous' | 'text' | 'link'
9
+ * @type 'primary' | 'secondary' | 'dangerous' | 'text' |'inverse'
10
10
  * @default primary
11
11
  */
12
12
  type?: ButtonType;
@@ -49,9 +49,8 @@ export interface IButtonProps extends Omit<AntdButtonProps, 'type' | 'dangerous'
49
49
  export declare function getButtonType(buttonType: ButtonType): AntdButtonType;
50
50
  export declare function getDangerStatus(buttonType: ButtonType): boolean;
51
51
  export declare function getButtonSizeClass(ButtonSize: Size): string;
52
- export declare function getIconSize(ButtonSize: Size): number;
53
52
  export declare function getShape(ButtonShape: 'circle' | 'default'): 'circle' | 'default';
54
- export declare const setIcon: (iconNode: React.ReactElement, size: Size, loading: boolean | {
53
+ export declare const setIcon: (iconNode: React.ReactElement, loading: boolean | {
55
54
  delay?: number | undefined;
56
55
  }) => React.JSX.Element;
57
56
  declare function Button(props: IButtonProps): React.JSX.Element;
@@ -15,18 +15,15 @@ import React, { useContext } from 'react';
15
15
  import { ConfigContext } from "../ConfigProvider";
16
16
  import SizeContext from "../ConfigProvider/sizeContext";
17
17
  import { LoadingLine } from "../Icon";
18
- var ICON_LARGE = 24;
19
- var ICON_MIDDLE = 20;
20
- var ICON_SMALL = 16;
21
18
  export var btnPrefix = 'ald-btn';
22
19
  export function getButtonType(buttonType) {
23
- if (!['primary', 'secondary', 'dangerous', 'text', 'link'].includes(buttonType)) {
20
+ if (!['primary', 'secondary', 'dangerous', 'text', 'inverse'].includes(buttonType)) {
24
21
  return 'default';
25
22
  }
26
23
  if (buttonType === 'dangerous') {
27
- return 'primary';
24
+ return 'default';
28
25
  }
29
- if (buttonType === 'secondary') {
26
+ if (buttonType === 'secondary' || buttonType === 'inverse') {
30
27
  return 'default';
31
28
  }
32
29
  return buttonType;
@@ -40,35 +37,25 @@ export function getDangerStatus(buttonType) {
40
37
  export function getButtonSizeClass(ButtonSize) {
41
38
  return ['small', 'large'].includes(ButtonSize) ? "".concat(btnPrefix, "-").concat(ButtonSize) : "".concat(btnPrefix, "-middle");
42
39
  }
43
- export function getIconSize(ButtonSize) {
44
- if (ButtonSize === 'large') {
45
- return ICON_LARGE;
46
- }
47
- if (ButtonSize === 'small') {
48
- return ICON_SMALL;
49
- }
50
- return ICON_MIDDLE;
51
- }
52
40
  export function getShape(ButtonShape) {
53
41
  if (ButtonShape === 'circle') {
54
42
  return ButtonShape;
55
43
  }
56
44
  return 'default';
57
45
  }
58
- export var setIcon = function setIcon(iconNode, size, loading) {
46
+ export var setIcon = function setIcon(iconNode, loading) {
59
47
  if (iconNode) {
60
48
  var p = _objectSpread({
61
49
  className: '',
62
- size: ICON_LARGE,
63
50
  fill: 'currentColor'
64
51
  }, iconNode.props);
65
- p.size = getIconSize(size);
52
+ p.size = '1em';
66
53
  return /*#__PURE__*/React.cloneElement(iconNode, p);
67
54
  }
68
55
  if (loading) {
69
56
  return /*#__PURE__*/React.createElement(LoadingLine, {
70
57
  className: "ald-loading-spin",
71
- size: getIconSize(size),
58
+ size: '1em',
72
59
  color: "currentColor"
73
60
  });
74
61
  }
@@ -99,7 +86,7 @@ function Button(props) {
99
86
  var size = compactSize || customSize || contentSize || 'middle';
100
87
  return /*#__PURE__*/React.createElement(AntdButton, _extends({}, rest, {
101
88
  disabled: loading ? true : disabled,
102
- icon: setIcon(icon, size, loading),
89
+ icon: setIcon(icon, loading),
103
90
  type: getButtonType(type),
104
91
  className: classNames(btnPrefix, "".concat(btnPrefix, "-").concat(type), className, getButtonSizeClass(size), compactItemClassnames),
105
92
  danger: getDangerStatus(type),
@@ -2,9 +2,9 @@
2
2
  &-large {
3
3
  min-width: auto;
4
4
  height: @button-height-large;
5
- padding: @button-border-padding-large;
5
+ padding: @button-padding-large;
6
6
  font-size: @button-text-size-large;
7
- line-height: 24px;
7
+ line-height: @button-line-height-large;
8
8
  border-radius: @button-border-radius-large;
9
9
 
10
10
  &.ant-btn-icon-only {
@@ -22,19 +22,24 @@
22
22
  border-radius: 50%;
23
23
  }
24
24
 
25
- gap: @button-left-icon-margin-right-large;
25
+ gap: @button-gap-large;
26
26
 
27
27
  &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
28
28
  min-width: @button-text-min-width-large;
29
29
  }
30
+
31
+ svg {
32
+ font-size: @button-line-height-large;
33
+ }
30
34
  }
31
35
 
32
36
  &-middle {
33
37
  min-width: auto;
34
38
  height: @button-height-middle;
35
- padding: @button-border-padding-middle;
39
+ padding: @button-padding-middle;
36
40
  font-size: @button-text-size-middle;
37
41
  border-radius: @button-border-radius-middle;
42
+ line-height: @button-line-height-middle;
38
43
 
39
44
  &.ant-btn-icon-only {
40
45
  min-width: @button-height-middle;
@@ -51,18 +56,22 @@
51
56
  border-radius: 50%;
52
57
  }
53
58
 
54
- gap: @button-left-icon-margin-right-middle;
59
+ gap: @button-gap-middle;
55
60
 
56
61
  &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
57
62
  min-width: @button-text-min-width-middle;
58
63
  }
64
+
65
+ svg {
66
+ font-size: @button-line-height-middle;
67
+ }
59
68
  }
60
69
 
61
70
  &-small {
62
71
  height: @button-height-small;
63
- padding: @button-border-padding-small;
72
+ padding: @button-padding-small;
64
73
  font-size: @button-text-size-small;
65
- line-height: 22px;
74
+ line-height: @button-line-height-small;
66
75
  border-radius: @button-border-radius-small;
67
76
 
68
77
  &.ant-btn-icon-only {
@@ -80,10 +89,14 @@
80
89
  border-radius: 50%;
81
90
  }
82
91
 
83
- gap: @button-left-icon-margin-right-small;
92
+ gap: @button-gap-small;
84
93
 
85
94
  &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
86
95
  min-width: @button-text-min-width-small;
87
96
  }
97
+
98
+ svg {
99
+ font-size: @button-line-height-small;
100
+ }
88
101
  }
89
102
  }
@@ -40,7 +40,12 @@
40
40
  box-shadow: none;
41
41
  }
42
42
 
43
- &:hover,
43
+ &:hover {
44
+ color: @button-primary-color-hover;
45
+ background-color: @button-primary-bg-color-hover;
46
+ border-color: @button-primary-bg-color-hover;
47
+ }
48
+
44
49
  &:active {
45
50
  color: @button-primary-color-active;
46
51
  background-color: @button-primary-bg-color-active;
@@ -78,7 +83,12 @@
78
83
  box-shadow: unset;
79
84
  }
80
85
 
81
- &:hover:not(:disabled),
86
+ &:hover:not(:disabled) {
87
+ color: @button-dangerous-color-hover;
88
+ background-color: @button-dangerous-bg-color-hover;
89
+ border-color: @button-dangerous-bg-color-hover;
90
+ }
91
+
82
92
  &:active:not(:disabled) {
83
93
  color: @button-dangerous-color-active;
84
94
  background-color: @button-dangerous-bg-color-active;
@@ -125,7 +135,12 @@
125
135
  box-shadow: none;
126
136
  }
127
137
 
128
- &:hover,
138
+ &:hover {
139
+ color: @button-secondary-color-hover;
140
+ background-color: @button-secondary-bg-color-hover;
141
+ border-color: @button-secondary-border-color-hover;
142
+ }
143
+
129
144
  &:active {
130
145
  color: @button-secondary-color-active;
131
146
  background-color: @button-secondary-bg-color-active;
@@ -136,7 +151,7 @@
136
151
  &.ant-btn-loading {
137
152
  color: @button-secondary-color-disable;
138
153
  background-color: @button-secondary-bg-color-disable;
139
- border-color: @button-secondary-border-color;
154
+ border-color: @button-secondary-border-color-disable;
140
155
  cursor: default;
141
156
  opacity: 0.5;
142
157
 
@@ -145,7 +160,7 @@
145
160
  &:active {
146
161
  color: @button-secondary-color-disable;
147
162
  background-color: @button-secondary-bg-color-disable;
148
- border-color: @button-secondary-border-color;
163
+ border-color: @button-secondary-border-color-disable;
149
164
  }
150
165
  }
151
166
  }
@@ -153,26 +168,35 @@
153
168
  &-text {
154
169
  color: @button-text-color;
155
170
  background-color: @button-text-bg-color;
156
- border: none;
171
+ border: 1px solid;
172
+ border-color: @button-text-border-color;
157
173
  box-shadow: none;
158
174
 
159
- &:focus,
160
- &:active {
175
+ &:focus {
161
176
  color: @button-text-color;
162
177
  background-color: @button-text-bg-color;
178
+ border-color: @button-text-border-color;
163
179
  box-shadow: none;
164
180
  }
165
181
 
166
- &:hover,
167
- &.ant-btn-loading {
182
+ &:hover {
183
+ color: @button-text-color-hover;
184
+ background-color: @button-text-bg-color-hover;
185
+ border-color: @button-text-border-color-hover;
186
+ }
187
+
188
+ &:active {
168
189
  color: @button-text-color-active;
169
190
  background-color: @button-text-bg-color-active;
170
- mix-blend-mode: multiply;
191
+ border-color: @button-text-border-color-active;
192
+ box-shadow: none;
171
193
  }
172
194
 
173
- &[disabled] {
195
+ &[disabled],
196
+ &.ant-btn-loading {
174
197
  color: @button-text-color-disable;
175
198
  background-color: @button-text-bg-color-disable;
199
+ border-color: @button-text-border-color-disable;
176
200
  cursor: default;
177
201
  opacity: 0.5;
178
202
 
@@ -181,48 +205,52 @@
181
205
  &:active {
182
206
  color: @button-text-color-disable;
183
207
  background-color: @button-text-bg-color-disable;
208
+ border-color: @button-text-border-color-disable;
184
209
  }
185
210
  }
186
211
  }
187
212
 
188
- &-link {
189
- color: @button-link-color;
190
- font-weight: 400;
191
- //text-shadow: @text-shadow;
192
- background-color: @button-link-bg-color;
193
- border-color: @button-link-bg-color;
213
+ &-inverse {
214
+ color: @button-inverse-color;
215
+ background-color: @button-inverse-bg-color;
216
+ border: 1px solid;
217
+ border-color: @button-inverse-border-color;
194
218
  box-shadow: none;
195
- padding: 0 !important;
196
219
 
197
220
  &:focus {
198
- color: @button-link-color;
199
- //text-shadow: @text-shadow;
200
- background-color: @button-link-bg-color;
201
- border-color: @button-link-bg-color;
221
+ color: @button-inverse-color;
222
+ background-color: @button-inverse-bg-color;
223
+ border-color: @button-inverse-border-color;
202
224
  box-shadow: none;
203
225
  }
204
226
 
205
- &:hover,
227
+ &:hover {
228
+ color: @button-inverse-color-hover;
229
+ background-color: @button-inverse-bg-color-hover;
230
+ border-color: @button-inverse-border-color-hover;
231
+ }
232
+
206
233
  &:active {
207
- color: @button-link-color-active;
208
- background-color: @button-link-bg-color-active;
209
- border-color: @button-link-bg-color-active;
234
+ color: @button-inverse-color-active;
235
+ background-color: @button-inverse-bg-color-active;
236
+ border-color: @button-inverse-border-color-active;
237
+ box-shadow: none;
210
238
  }
211
239
 
212
240
  &[disabled],
213
241
  &.ant-btn-loading {
214
- color: @button-link-color-disable;
215
- background-color: @button-link-bg-color-disable;
216
- border-color: @button-link-bg-color-disable;
242
+ color: @button-inverse-color-disable;
243
+ background-color: @button-inverse-bg-color-disable;
244
+ border-color: @button-inverse-border-color-disable;
217
245
  cursor: default;
218
246
  opacity: 0.5;
219
247
 
220
248
  &:hover,
221
249
  &:focus,
222
250
  &:active {
223
- color: @button-link-color-disable;
224
- background-color: @button-link-bg-color-disable;
225
- border-color: @button-link-bg-color-disable;
251
+ color: @button-inverse-color-disable;
252
+ background-color: @button-inverse-bg-color-disable;
253
+ border-color: @button-inverse-border-color-disable;
226
254
  }
227
255
  }
228
256
  }