@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
@@ -1,24 +1,37 @@
1
- var _excluded = ["bordered", "size", "className"];
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["bordered", "size", "disabled", "className"];
2
3
  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); }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
7
  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
8
  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
9
  import AntdTextArea from 'antd/lib/input/TextArea';
6
10
  import classnames from 'classnames';
7
11
  import React, { useContext } from 'react';
8
12
  import SizeContext from "../../../ConfigProvider/sizeContext";
13
+ import { CloseCircleFill } from "../../../Icon";
9
14
  import { getSizeType } from "../Input";
10
15
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
11
16
  var _props$bordered = props.bordered,
12
17
  bordered = _props$bordered === void 0 ? true : _props$bordered,
13
18
  customSize = props.size,
19
+ disabled = props.disabled,
14
20
  _props$className = props.className,
15
21
  className = _props$className === void 0 ? '' : _props$className,
16
22
  rest = _objectWithoutProperties(props, _excluded);
17
23
  var contentSize = useContext(SizeContext);
18
24
  var size = customSize || contentSize || 'middle';
19
25
  return /*#__PURE__*/React.createElement(AntdTextArea, _extends({}, rest, {
26
+ disabled: disabled,
20
27
  spellCheck: false,
21
- className: classnames('ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), className),
28
+ className: classnames('ald-input', 'ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), _defineProperty({}, "ald-input-disabled", disabled), className),
29
+ allowClear: {
30
+ clearIcon: /*#__PURE__*/React.createElement(CloseCircleFill, {
31
+ size: 20,
32
+ color: "#6B7280"
33
+ })
34
+ },
22
35
  ref: ref,
23
36
  bordered: bordered
24
37
  }));
@@ -1,14 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { IInputProps, InputRef } from './components/Input';
3
- import Group from './components/Group';
4
- import TextArea from './components/TextArea';
5
3
  import Password from './components/Password';
4
+ import TextArea from './components/TextArea';
6
5
  export type { IInputProps, InputRef, TSize } from './components/Input';
7
- export type { IGroupProps } from './components/Group';
8
- export type { ITextAreaProps, TextAreaRef } from './components/TextArea';
9
6
  export type { IPasswordProps } from './components/Password';
7
+ export type { ITextAreaProps, TextAreaRef } from './components/TextArea';
10
8
  interface ICompoundedComponent extends React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<InputRef>> {
11
- Group: typeof Group;
12
9
  TextArea: typeof TextArea;
13
10
  Password: typeof Password;
14
11
  }
@@ -1,9 +1,7 @@
1
1
  import InternalInput from "./components/Input";
2
- import Group from "./components/Group";
3
- import TextArea from "./components/TextArea";
4
2
  import Password from "./components/Password";
3
+ import TextArea from "./components/TextArea";
5
4
  var Input = InternalInput;
6
- Input.Group = Group;
7
5
  Input.TextArea = TextArea;
8
6
  Input.Password = Password;
9
7
  export default Input;
@@ -1,573 +1,12 @@
1
1
  /* stylelint-disable no-descending-specificity */
2
2
  @import '../../style/index.less';
3
3
  @import '../../Icon/index.less';
4
-
5
- @ald-prefix: ant;
6
-
7
- // size===large
8
- @input-height-large: 36px;
9
- @input-padding-large: 5px 11px;
10
- @input-font-size-large: 16px;
11
- @input-border-radius-large: 4px;
12
- @input-prefix-margin-right-large: 8px;
13
- @input-clear-icon-large: 20px;
14
- // size===middle
15
- @input-height-middle: 32px;
16
- @input-padding-middle: 5px 7px;
17
- @input-font-size-middle: 13px;
18
- @input-border-radius-middle: 2px;
19
- @input-prefix-margin-right-middle: 4px;
20
- @input-clear-icon-middle: 16px;
21
- // size===small
22
- @input-height-small: 28px;
23
- @input-padding-small: 5px 7px;
24
- @input-font-size-small: 12px;
25
- @input-border-radius-small: 2px;
26
- @input-prefix-margin-right-small: 4px;
27
- @input-clear-icon-small: 14px;
28
- //custom status
29
- @input-border-color: @BG60;
30
- @input-fontColor: @NL0;
31
- @input-placeholder-color: @NL50;
32
- @input-prefix-color: @NL40;
33
- @input-bg-color: @BG100;
34
- // active status
35
- @input-active-border-color: @B40;
36
- // @input-box-shadow-active: @shadow-xs;
37
- // disabled status
38
- @input-disabled-border-color: @BG60;
39
- @input-disabled-bg-color: @BG90;
40
- @input-disabled-font-color: @NL40;
41
-
42
- .ant-input.ald-input.ald-input,
43
- .ant-input-affix-wrapper.ald-input.ald-input,
44
- .ald-input.ald-input .ant-input {
45
- color: @NL0;
46
- font-weight: 400;
47
- background-color: @input-bg-color;
48
- border-color: @input-border-color;
49
- border-radius: @input-border-radius-middle;
50
- // box-shadow: @shadow-xs;
51
- caret-color: @B60;
52
-
53
- .ant-input-suffix .ant-input-clear-icon {
54
- display: none;
55
- }
56
-
57
- &:hover {
58
- border-color: @input-border-color;
59
-
60
- .ant-input-suffix .ant-input-clear-icon {
61
- display: block;
62
- }
63
- }
64
-
65
- &.ant-input-affix-wrapper-focused {
66
- .ant-input-suffix .ant-input-clear-icon {
67
- display: block;
68
- }
69
- }
70
-
71
- &::placeholder {
72
- color: @input-placeholder-color;
73
- }
74
-
75
- &-prefix {
76
- color: @input-prefix-color;
77
- font-size: inherit;
78
- }
79
-
80
- &-suffix {
81
- color: @NL60;
82
- }
83
-
84
- &:focus,
85
- &-focused {
86
- border-color: @input-active-border-color;
87
- box-shadow: none;
88
- // box-shadow: @input-box-shadow-active;
89
- }
90
-
91
- &[disabled].ald-input {
92
- color: @input-disabled-font-color;
93
- background-color: @input-disabled-bg-color;
94
- border-color: @input-disabled-border-color;
95
- box-shadow: none;
96
- cursor: default;
97
-
98
- &::placeholder {
99
- color: @input-placeholder-color;
100
- }
101
- }
102
-
103
- &-affix-wrapper {
104
- // height: 28px;
105
- // padding: 0 12px;
106
- // border-radius: @border-radius-base;
107
-
108
- &-hover,
109
- &-focused,
110
- &:hover {
111
- box-shadow: unset;
112
- }
113
-
114
- .ant-input {
115
- height: 100%;
116
- border-radius: 0;
117
- }
118
- }
119
-
120
- .ant-input {
121
- font-size: inherit;
122
- }
123
- }
124
-
125
- .ant-input-affix-wrapper.ant-input-affix-wrapper.ant-input-affix-wrapper {
126
- background-color: @input-bg-color;
127
- border-color: @input-border-color;
128
- border-radius: 2px;
129
-
130
- // &:hover,
131
- &-focused {
132
- &:not(.ant-input-affix-wrapper-disabled) {
133
- border-color: @input-active-border-color;
134
- // box-shadow: @input-box-shadow-active;
135
- box-shadow: none;
136
- cursor: initial;
137
- }
138
- }
139
-
140
- .ant-input {
141
- color: @NL0;
142
- background-color: @input-bg-color;
143
- border-radius: 0;
144
- box-shadow: none;
145
- caret-color: @B60;
146
-
147
- &::placeholder {
148
- color: @input-placeholder-color;
149
- }
150
- }
151
-
152
- .ald-input {
153
- height: 1.5715em; //和行高一致
154
- }
155
-
156
- .ant-input-prefix {
157
- color: #858585;
158
- }
159
-
160
- .ant-input-suffix {
161
- color: #858585;
162
-
163
- .ant-input-clear-icon {
164
- color: #858585;
165
- font-size: inherit;
166
- }
167
-
168
- .ant-input-password-icon {
169
- color: #858585;
170
- }
171
- }
172
- }
173
-
174
- .ant-input-affix-wrapper-focused {
175
- &.ant-input-password {
176
- border-color: @input-active-border-color;
177
- // box-shadow: @input-box-shadow-active;
178
- }
179
-
180
- // &:hover {
181
- // border-color: @input-active-border-color;
182
- // // box-shadow: @input-box-shadow-active;
183
- // }
184
-
185
- .ant-input:hover {
186
- box-shadow: none;
187
- }
188
- }
189
-
190
- .ald-input {
191
- &.ald-input-small {
192
- height: @input-height-small;
193
- padding: @input-padding-small;
194
- font-size: @input-font-size-small;
195
- border-radius: @input-border-radius-small;
196
-
197
- .ant-input-prefix {
198
- margin-right: @input-prefix-margin-right-small;
199
- }
200
-
201
- .ant-input-suffix .ant-input-clear-icon {
202
- font-size: @input-clear-icon-small;
203
- }
204
- }
205
-
206
- &.ald-input-middle {
207
- height: @input-height-middle;
208
- padding: @input-padding-middle;
209
- font-size: @input-font-size-middle;
210
- border-radius: @input-border-radius-middle;
211
-
212
- .ant-input-prefix {
213
- margin-right: @input-prefix-margin-right-middle;
214
- }
215
-
216
- .ant-input-suffix .ant-input-clear-icon {
217
- font-size: @input-clear-icon-middle;
218
- }
219
- }
220
-
221
- &.ald-input-large {
222
- height: @input-height-large;
223
- padding: @input-padding-large;
224
- font-size: @input-font-size-large;
225
- border-radius: @input-border-radius-large;
226
-
227
- .ant-input-prefix {
228
- margin-right: @input-prefix-margin-right-large;
229
- }
230
-
231
- .ant-input-suffix .ant-input-clear-icon {
232
- font-size: @input-clear-icon-small;
233
- }
234
- }
235
- }
236
-
237
- .ald-input-group {
238
- .ald-input {
239
- margin: 0;
240
- }
241
- }
242
-
243
- .ald-input-group-large {
244
- &:not(.ant-input-group-compact) .ald-input {
245
- height: @input-height-large;
246
- padding: @input-padding-large;
247
- font-size: @input-font-size-large;
248
-
249
- &.ant-input {
250
- border-radius: @input-border-radius-large;
251
- }
252
-
253
- .ant-input-prefix {
254
- margin-right: @input-prefix-margin-right-large;
255
- }
256
- }
257
-
258
- &.ant-input-group-compact {
259
- .ald-input,
260
- .ald-select,
261
- .ald-btn.ant-btn {
262
- border-radius: 0;
263
- }
264
- }
265
-
266
- &.ant-input-group-compact > *:first-child {
267
- border-radius: 0 !important;
268
- border-start-start-radius: @input-border-radius-large !important;
269
- border-end-start-radius: @input-border-radius-large !important;
270
- }
271
-
272
- &.ant-input-group-compact > *:last-child {
273
- border-radius: 0 !important;
274
- border-inline-end-width: 1px;
275
- border-start-end-radius: @input-border-radius-large !important;
276
- border-end-end-radius: @input-border-radius-large !important;
277
- }
278
- }
279
-
280
- .ald-input-group-middle {
281
- &:not(.ant-input-group-compact) .ald-input {
282
- height: @input-height-middle;
283
- padding: @input-padding-middle;
284
- font-size: @input-font-size-middle;
285
- border-radius: @input-border-radius-middle;
286
-
287
- &.ant-input {
288
- border-radius: @input-border-radius-middle;
289
- }
290
-
291
- .ant-input-prefix {
292
- margin-right: @input-prefix-margin-right-middle;
293
- }
294
- }
295
-
296
- &.ant-input-group-compact {
297
- .ald-input,
298
- .ald-select,
299
- .ald-btn.ant-btn {
300
- border-radius: 0;
301
- }
302
- }
303
-
304
- &.ant-input-group-compact > *:first-child {
305
- border-radius: 0 !important;
306
- border-start-start-radius: @input-border-radius-middle !important;
307
- border-end-start-radius: @input-border-radius-middle !important;
308
- }
309
-
310
- &.ant-input-group-compact > *:last-child {
311
- border-radius: 0 !important;
312
- border-inline-end-width: 1px;
313
- border-start-end-radius: @input-border-radius-middle !important;
314
- border-end-end-radius: @input-border-radius-middle !important;
315
- }
316
- }
317
-
318
- .ald-input-group-small {
319
- &:not(.ant-input-group-compact) .ald-input {
320
- height: @input-height-small;
321
- padding: @input-padding-small;
322
- font-size: @input-font-size-small;
323
- border-radius: @input-border-radius-small;
324
-
325
- &.ant-input {
326
- border-radius: @input-border-radius-small;
327
- }
328
-
329
- .ant-input-prefix {
330
- margin-right: @input-prefix-margin-right-small;
331
- }
332
- }
333
-
334
- &.ant-input-group-compact {
335
- .ald-input,
336
- .ald-select,
337
- .ald-btn.ant-btn {
338
- border-radius: 0;
339
- }
340
- }
341
-
342
- &.ant-input-group-compact > *:first-child {
343
- border-radius: 0 !important;
344
- border-start-start-radius: @input-border-radius-small !important;
345
- border-end-start-radius: @input-border-radius-small !important;
346
- }
347
-
348
- &.ant-input-group-compact > *:last-child {
349
- border-radius: 0 !important;
350
- border-inline-end-width: 1px;
351
- border-start-end-radius: @input-border-radius-small !important;
352
- border-end-end-radius: @input-border-radius-small !important;
353
- }
354
- }
355
-
356
- .ald-textarea-large {
357
- padding: 5px 11px;
358
- font-size: @font-size-large;
359
- line-height: @line-height-large;
360
- border-radius: @border-radius-large;
361
- }
362
-
363
- .ald-textarea-middle {
364
- padding: 5px 11px;
365
- font-size: @font-size-middle;
366
- line-height: @line-height-middle;
367
- border-radius: @border-radius-middle;
368
- }
369
-
370
- .ald-textarea-small {
371
- padding: 5px 7px;
372
- font-size: @font-size-small;
373
- line-height: @line-height-small;
374
- border-radius: @border-radius-small;
375
- }
376
-
377
- textarea.ald-input-textarea-large.ald-input-textarea,
378
- .ald-input-textarea.ald-input-textarea-large .ant-input {
379
- .ald-textarea-large();
380
- }
381
-
382
- textarea.ald-input-textarea-middle.ald-input-textarea,
383
- .ald-input-textarea.ald-input-textarea-middle .ant-input {
384
- .ald-textarea-middle();
385
- }
386
-
387
- textarea.ald-input-textarea-small.ald-input-textarea,
388
- .ald-input-textarea.ald-input-textarea-small .ant-input {
389
- .ald-textarea-small();
390
- }
391
-
392
- textarea.ald-input-textarea.ald-input-textarea,
393
- .ald-input-textarea.ald-input-textarea .ant-input {
394
- color: @NL0;
395
- background: @input-bg-color;
396
- caret-color: @B60;
397
- border-color: @input-border-color;
398
-
399
- // &:hover,
400
- &:active,
401
- &:focus {
402
- border-color: @B40;
403
- box-shadow: none;
404
- }
405
-
406
- ::placeholder {
407
- color: @NL80;
408
- }
409
-
410
- &.ant-input-disabled {
411
- color: #858585;
412
- background: #f8f8f8;
413
- cursor: initial;
414
-
415
- // &:hover,
416
- &:active,
417
- &:focus {
418
- border-color: #dbdbdb;
419
- box-shadow: none;
420
- }
421
- }
422
- }
423
-
424
- .ant-input-textarea-show-count::after {
425
- color: @NL50;
426
- font-size: 11px;
427
- line-height: 16px;
428
- }
429
-
430
- .ant-input-group-wrapper {
431
- .ant-input-group-addon {
432
- color: #858585 !important;
433
- border-color: @input-border-color;
434
- }
435
-
436
- &.ald-input-large {
437
- .ant-input-group-addon {
438
- padding: 4px 14px;
439
- font-size: @input-font-size-large;
440
- }
441
-
442
- .ant-input {
443
- height: @input-height-large;
444
- padding: @input-padding-large;
445
- font-size: @input-font-size-large;
446
-
447
- .ant-input-prefix {
448
- margin-right: @input-prefix-margin-right-large;
449
- }
450
-
451
- .ant-input-suffix .ant-input-clear-icon {
452
- font-size: @input-clear-icon-small;
453
- }
454
- }
455
-
456
- .ant-input:first-child,
457
- .ant-input-group-addon:first-child {
458
- border-radius: @input-border-radius-large 0 0 @input-border-radius-large;
459
- }
460
-
461
- .ant-input:last-child,
462
- .ant-input-group-addon:last-child {
463
- border-radius: 0 @input-border-radius-large @input-border-radius-large 0;
464
- }
465
- }
466
-
467
- &.ald-input-middle {
468
- .ant-input-group-addon {
469
- padding: 4px 8px;
470
- font-size: @input-font-size-middle;
471
- }
472
-
473
- .ant-input {
474
- height: @input-height-middle;
475
- padding: @input-padding-middle;
476
- font-size: @input-font-size-middle;
477
-
478
- .ant-input-prefix {
479
- margin-right: @input-prefix-margin-right-middle;
480
- }
481
-
482
- .ant-input-suffix .ant-input-clear-icon {
483
- font-size: @input-clear-icon-middle;
484
- }
485
- }
486
-
487
- .ant-input:first-child,
488
- .ant-input-group-addon:first-child {
489
- border-radius: @input-border-radius-middle 0 0 @input-border-radius-middle;
490
- }
491
-
492
- .ant-input:last-child,
493
- .ant-input-group-addon:last-child {
494
- border-radius: 0 @input-border-radius-middle @input-border-radius-middle 0;
495
- }
496
- }
497
-
498
- &.ald-input-small {
499
- .ant-input-group-addon {
500
- padding: 3px 8px;
501
- font-size: @input-font-size-small;
502
- }
503
-
504
- .ant-input {
505
- height: @input-height-small;
506
- padding: @input-padding-small;
507
- font-size: @input-font-size-small;
508
-
509
- .ant-input-prefix {
510
- margin-right: @input-prefix-margin-right-small;
511
- }
512
-
513
- .ant-input-suffix .ant-input-clear-icon {
514
- font-size: @input-clear-icon-small;
515
- }
516
- }
517
-
518
- .ant-input:first-child,
519
- .ant-input-group-addon:first-child {
520
- border-radius: @input-border-radius-small 0 0 @input-border-radius-small;
521
- }
522
-
523
- .ant-input:last-child,
524
- .ant-input-group-addon:last-child {
525
- border-radius: 0 @input-border-radius-small @input-border-radius-small 0;
526
- }
527
- }
528
-
529
- /* stylelint-disable-next-line no-duplicate-selectors */
530
- .ant-input-group-addon[class][class] {
531
- background-color: #f8f8f8;
532
-
533
- &:first-child {
534
- border-top-right-radius: 0;
535
- border-bottom-right-radius: 0;
536
- }
537
-
538
- &:last-child {
539
- border-top-left-radius: 0;
540
- border-bottom-left-radius: 0;
541
- }
542
- }
543
- }
544
-
545
- .ant-input-group.ant-input-group-compact {
546
- & > {
547
- .ald-select,
548
- .ald-input,
549
- .ant-input,
550
- .ant-input-number {
551
- &:hover {
552
- position: relative;
553
- z-index: 2;
554
- }
555
- }
556
- }
557
-
558
- & > .ald-select.ald-select-open {
559
- position: relative;
560
- z-index: 1;
561
- }
562
-
563
- .ant-input-number.ant-input-number-focused {
564
- position: relative;
565
- z-index: 1;
566
- }
567
- }
4
+ @import './reset.less';
5
+ @import './size.less';
6
+ @import './status.less';
568
7
 
569
8
  .ant-input-status-error:not(.ant-input-disabled):not(
570
9
  .ant-input-borderless
571
10
  ).ant-input.ant-input {
572
- border-color: @error-color;
11
+ border-color: var(--alias-colors-border-danger, #dc2626);
573
12
  }
@@ -0,0 +1,22 @@
1
+ .ald-input.ald-input {
2
+ // 纯input 输入框,比如普通的<Input /> <Input.textarea />
3
+ &:not(.ant-input-affix-wrapper) {
4
+ box-shadow: none;
5
+ }
6
+ // 带有其他内容的输入框,比如带 allowClear图标、prefix、suffix、密码图标等。
7
+ &.ant-input-affix-wrapper {
8
+ box-shadow: none;
9
+ // 输入框
10
+ .ant-input.ant-input {
11
+ color: inherit;
12
+ font-size: inherit;
13
+ }
14
+ // 后缀
15
+ .ant-input-suffix {
16
+ .ant-input-clear-icon {
17
+ display: grid;
18
+ place-items: center;
19
+ }
20
+ }
21
+ }
22
+ }