@aloudata/aloudata-design 1.9.13 → 1.9.15

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 (87) hide show
  1. package/dist/Button/index.js +3 -3
  2. package/dist/ColorPicker/index.js +2 -2
  3. package/dist/Dropdown/Button.js +2 -4
  4. package/dist/Dropdown/style/index.less +5 -0
  5. package/dist/Empty/image/SearchSmall.js +21 -9
  6. package/dist/Empty/index.js +5 -5
  7. package/dist/Empty/style/index.less +3 -3
  8. package/dist/Icon/components/AlertTriangleDuotone.d.ts +2 -3
  9. package/dist/Icon/components/AlertTriangleDuotone.js +3 -3
  10. package/dist/Icon/components/CancelCircleDuotone.d.ts +2 -3
  11. package/dist/Icon/components/CancelCircleDuotone.js +5 -5
  12. package/dist/Icon/components/CheckCircleDuotone.d.ts +2 -3
  13. package/dist/Icon/components/CheckCircleDuotone.js +4 -4
  14. package/dist/Icon/components/ChevronDownLine.d.ts +10 -0
  15. package/dist/Icon/components/ChevronDownLine.js +35 -0
  16. package/dist/Icon/components/ChevronLeftLine.d.ts +10 -0
  17. package/dist/Icon/components/ChevronLeftLine.js +35 -0
  18. package/dist/Icon/components/ChevronRightLine.d.ts +10 -0
  19. package/dist/Icon/components/ChevronRightLine.js +35 -0
  20. package/dist/Icon/components/CloseLLine.d.ts +10 -0
  21. package/dist/Icon/components/CloseLLine.js +42 -0
  22. package/dist/Icon/components/CloseMLine.d.ts +10 -0
  23. package/dist/Icon/components/CloseMLine.js +35 -0
  24. package/dist/Icon/components/EyeOffLine.d.ts +10 -0
  25. package/dist/Icon/components/EyeOffLine.js +35 -0
  26. package/dist/Icon/components/EyeOnLine.d.ts +10 -0
  27. package/dist/Icon/components/EyeOnLine.js +42 -0
  28. package/dist/Icon/components/FoldDownFill.d.ts +10 -0
  29. package/dist/Icon/components/FoldDownFill.js +38 -0
  30. package/dist/Icon/components/FoldUpFill.d.ts +10 -0
  31. package/dist/Icon/components/FoldUpFill.js +38 -0
  32. package/dist/Icon/components/InfoCircleDuotone.d.ts +10 -0
  33. package/dist/Icon/components/InfoCircleDuotone.js +35 -0
  34. package/dist/Icon/components/InfoCircleLine.d.ts +2 -3
  35. package/dist/Icon/components/InfoCircleLine.js +3 -3
  36. package/dist/Icon/components/LoadingLine.d.ts +10 -0
  37. package/dist/Icon/components/LoadingLine.js +35 -0
  38. package/dist/Icon/components/MoreVerticalLine.d.ts +10 -0
  39. package/dist/Icon/components/MoreVerticalLine.js +35 -0
  40. package/dist/Icon/components/SearchLine.d.ts +10 -0
  41. package/dist/Icon/components/SearchLine.js +35 -0
  42. package/dist/Icon/index.d.ts +13 -0
  43. package/dist/Icon/index.js +13 -0
  44. package/dist/Icon/svg/cancel-circle-duotone.svg +4 -4
  45. package/dist/Icon/svg/chevron-down-line.svg +5 -0
  46. package/dist/Icon/svg/chevron-left-line.svg +5 -0
  47. package/dist/Icon/svg/chevron-right-line.svg +5 -0
  48. package/dist/Icon/svg/close-L-line.svg +10 -0
  49. package/dist/Icon/svg/close-m-line.svg +5 -0
  50. package/dist/Icon/svg/eye-off-line.svg +5 -0
  51. package/dist/Icon/svg/eye-on-line.svg +9 -0
  52. package/dist/Icon/svg/fold-down-fill.svg +7 -0
  53. package/dist/Icon/svg/fold-up-fill.svg +7 -0
  54. package/dist/Icon/svg/info-circle-duotone.svg +3 -0
  55. package/dist/Icon/svg/loading-line.svg +5 -0
  56. package/dist/Icon/svg/more-vertical-line.svg +5 -0
  57. package/dist/Icon/svg/search-line.svg +5 -0
  58. package/dist/IconButton/index.js +1 -1
  59. package/dist/IconButton/style/index.less +1 -1
  60. package/dist/Input/components/Input/index.js +3 -2
  61. package/dist/Input/components/Password/index.js +1 -3
  62. package/dist/MemberPicker/components/MemberSelection.js +1 -1
  63. package/dist/MemberPicker/components/NickLabel.d.ts +1 -0
  64. package/dist/MemberPicker/components/NickLabel.js +3 -2
  65. package/dist/MemberPicker/components/SelectedMemberTags.js +2 -2
  66. package/dist/MemberPicker/index.js +1 -1
  67. package/dist/Menu/index.js +2 -2
  68. package/dist/Modal/index.d.ts +1 -0
  69. package/dist/Modal/index.js +38 -44
  70. package/dist/Modal/style/index.less +46 -32
  71. package/dist/Pagination/index.js +1 -1
  72. package/dist/Popconfirm/index.js +3 -3
  73. package/dist/Popconfirm/style/index.less +6 -1
  74. package/dist/Result/index.js +5 -2
  75. package/dist/Result/style/index.less +6 -2
  76. package/dist/Select/index.js +2 -2
  77. package/dist/Steps/components/Step/index.js +6 -6
  78. package/dist/Table/components/TableHead/index.js +2 -4
  79. package/dist/Tabs/index.js +2 -4
  80. package/dist/Tree/index.d.ts +2 -2
  81. package/dist/Tree/index.js +2 -2
  82. package/dist/message/index.d.ts +1 -1
  83. package/dist/message/index.js +9 -9
  84. package/dist/notification/index.js +9 -9
  85. package/dist/style/mixins/animate.css +13 -0
  86. package/dist/style/mixins/index.less +1 -0
  87. package/package.json +3 -7
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="loading-line">
3
+ <path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M7.28604 3.1808C9.32641 2.0902 11.6818 1.74081 13.9509 2.19216C16.22 2.64351 18.2624 3.86768 19.7301 5.65608C21.1978 7.44448 22 9.68646 22 12H20C20 10.1492 19.3582 8.35559 18.1841 6.92487C17.0099 5.49415 15.376 4.51481 13.5607 4.15373C11.7454 3.79265 9.86113 4.07216 8.22883 4.94465C6.59653 5.81713 5.31725 7.22859 4.60897 8.93855C3.90068 10.6485 3.80721 12.5511 4.34448 14.3223C4.88175 16.0934 6.01652 17.6235 7.55544 18.6518C9.09436 19.68 10.9422 20.1429 12.7841 19.9615C14.6261 19.7801 16.3481 18.9656 17.6569 17.6569L19.0711 19.0711C17.4351 20.707 15.2826 21.7251 12.9802 21.9519C10.6778 22.1786 8.36795 21.6001 6.4443 20.3147C4.52065 19.0294 3.10219 17.1168 2.4306 14.9029C1.75901 12.6889 1.87585 10.3106 2.76121 8.17318C3.64657 6.03574 5.24566 4.2714 7.28604 3.1808Z" fill="black"/>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="more-vertical-line">
3
+ <path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M13 6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6ZM13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17C12.5523 17 13 17.4477 13 18ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" fill="black"/>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="search-line">
3
+ <path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M15.438 16.1451C14.1188 17.3001 12.3911 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5C18 12.3911 17.3001 14.1188 16.1451 15.438L20.8536 20.1465L20.1465 20.8536L15.438 16.1451ZM17 10.5C17 14.0899 14.0899 17 10.5 17C6.91015 17 4 14.0899 4 10.5C4 6.91015 6.91015 4 10.5 4C14.0899 4 17 6.91015 17 10.5Z" fill="black"/>
4
+ </g>
5
+ </svg>
@@ -8,10 +8,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  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; }
9
9
  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; }
10
10
  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); }
11
- import { FoldDownFill } from '@aloudata/icons-react';
12
11
  import classnames from 'classnames';
13
12
  import React, { forwardRef, useMemo } from 'react';
14
13
  import Dropdown from "../Dropdown";
14
+ import { FoldDownFill } from "../Icon";
15
15
  import { getSizeType } from "../Input/components/Input";
16
16
  import Tooltip from "../Tooltip";
17
17
  var InternalIconButton = /*#__PURE__*/forwardRef(function (props, ref) {
@@ -29,7 +29,7 @@
29
29
  appearance: none;
30
30
  box-sizing: border-box;
31
31
  user-select: none;
32
- transition: all 0.3s;
32
+ transition: background 0.3s;
33
33
 
34
34
  &:hover {
35
35
  background: var(--colors-gray-98, #f4f4f4);
@@ -1,4 +1,4 @@
1
- var _excluded = ["size", "className", "prefixCls"];
1
+ var _excluded = ["size", "className", "prefixCls", "bordered"];
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; }
@@ -18,6 +18,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
18
18
  var customSize = props.size,
19
19
  className = props.className,
20
20
  customizePrefixCls = props.prefixCls,
21
+ bordered = props.bordered,
21
22
  rest = _objectWithoutProperties(props, _excluded);
22
23
  var _React$useContext = React.useContext(ConfigContext),
23
24
  getPrefixCls = _React$useContext.getPrefixCls,
@@ -31,7 +32,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
31
32
  var size = compactSize || customSize || contentSize || 'middle';
32
33
  return /*#__PURE__*/React.createElement(AntdInput, _extends({}, rest, {
33
34
  ref: ref,
34
- bordered: true,
35
+ bordered: bordered,
35
36
  spellCheck: false,
36
37
  className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), className, compactItemClassnames),
37
38
  suffix: null
@@ -2,11 +2,11 @@ var _excluded = ["size", "className"];
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 { EyeOffLine, EyeOnLine } from '@aloudata/icons-react';
6
5
  import AntdPassword from 'antd/lib/input/Password';
7
6
  import classnames from 'classnames';
8
7
  import React, { useContext } from 'react';
9
8
  import SizeContext from "../../../ConfigProvider/sizeContext";
9
+ import { EyeOffLine, EyeOnLine } from "../../../Icon";
10
10
  import { getSizeType } from "../Input";
11
11
  // 不同的size对应的不同的icon
12
12
  export var iconSizeMap = {
@@ -27,10 +27,8 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
27
27
  className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), className),
28
28
  iconRender: function iconRender(visible) {
29
29
  return visible ? /*#__PURE__*/React.createElement(EyeOnLine, {
30
- fill: "currentColor",
31
30
  size: iconSizeMap[size]
32
31
  }) : /*#__PURE__*/React.createElement(EyeOffLine, {
33
- fill: "currentColor",
34
32
  size: iconSizeMap[size]
35
33
  });
36
34
  }
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { SearchLine } from '@aloudata/icons-react';
7
+ import { SearchLine } from "../../Icon";
8
8
  import classNames from 'classnames';
9
9
  import React, { useDeferredValue, useEffect, useState } from 'react';
10
10
  import Empty from "../../Empty";
@@ -3,6 +3,7 @@ interface INickLabelProps {
3
3
  nickname?: string;
4
4
  userId: string;
5
5
  src?: string;
6
+ account?: string;
6
7
  }
7
8
  declare const _default: React.NamedExoticComponent<INickLabelProps>;
8
9
  export default _default;
@@ -3,7 +3,8 @@ import Avatar from "../../Avatar";
3
3
  var NickLabel = function NickLabel(_ref) {
4
4
  var src = _ref.src,
5
5
  nickname = _ref.nickname,
6
- userId = _ref.userId;
6
+ userId = _ref.userId,
7
+ account = _ref.account;
7
8
  var innerName = nickname || userId;
8
9
  return /*#__PURE__*/React.createElement("div", {
9
10
  className: "ald-member-picker-nick-label"
@@ -13,7 +14,7 @@ var NickLabel = function NickLabel(_ref) {
13
14
  size: 20
14
15
  }, innerName), /*#__PURE__*/React.createElement("div", {
15
16
  className: "ald-member-picker-nick-label-name",
16
- title: innerName
17
+ title: "".concat(nickname, "(").concat(account, ")")
17
18
  }, innerName));
18
19
  };
19
20
  export default /*#__PURE__*/memo(NickLabel);
@@ -1,7 +1,7 @@
1
1
  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); }
2
- import { CloseMLine } from '@aloudata/icons-react';
3
2
  import classNames from 'classnames';
4
3
  import React from 'react';
4
+ import { CloseMLine } from "../../Icon";
5
5
  import ScrollArea from "../../ScrollArea";
6
6
  import NickLabel from "./NickLabel";
7
7
  export default function SelectedMemberTags(props) {
@@ -31,7 +31,7 @@ export default function SelectedMemberTags(props) {
31
31
  })), /*#__PURE__*/React.createElement(CloseMLine, {
32
32
  size: 20,
33
33
  className: 'ald-member-picker-close',
34
- fill: "#98A2B3",
34
+ color: "#98A2B3",
35
35
  onClick: function onClick() {
36
36
  var _props$onRemove;
37
37
  (_props$onRemove = props.onRemove) === null || _props$onRemove === void 0 ? void 0 : _props$onRemove.call(props, user);
@@ -11,13 +11,13 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
12
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
- import { FoldDownFill } from '@aloudata/icons-react';
15
14
  import { useRequest } from 'ahooks';
16
15
  import classNames from 'classnames';
17
16
  import _ from 'lodash';
18
17
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
19
18
  import ConfigProvider from "../ConfigProvider";
20
19
  import Dropdown from "../Dropdown";
20
+ import { FoldDownFill } from "../Icon";
21
21
  import message from "../message";
22
22
  import NickLabel from "./components/NickLabel";
23
23
  import Panel from "./components/Panel";
@@ -8,10 +8,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
  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; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
- import { ChevronRightLine } from '@aloudata/icons-react';
12
11
  import { Menu as AntdMenu } from 'antd';
13
12
  import classNames from 'classnames';
14
13
  import React from 'react';
14
+ import { ChevronRightLine } from "../Icon";
15
15
  import theme from "../style/themes/default/themeColor.module.less";
16
16
  import Divider from "./Divider";
17
17
  import MenuItem from "./MenuItem";
@@ -44,7 +44,7 @@ export default function Menu(props) {
44
44
  return /*#__PURE__*/React.createElement(AntdMenu, _extends({
45
45
  className: classNames(className, 'ald-menu'),
46
46
  expandIcon: expandIcon || /*#__PURE__*/React.createElement(ChevronRightLine, {
47
- fill: theme.NL50,
47
+ color: theme.NL50,
48
48
  size: 16
49
49
  })
50
50
  }, otherProps, {
@@ -18,6 +18,7 @@ export interface ModalProps extends Omit<AntdModalProps, 'okButtonProps' | 'canc
18
18
  okType?: ButtonType;
19
19
  paddingLess?: boolean;
20
20
  virtualScrollBar?: boolean;
21
+ hasHeaderBottomBorder?: boolean;
21
22
  }
22
23
  export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType' | 'icon'> {
23
24
  cancelButtonProps?: IButtonProps;
@@ -1,6 +1,6 @@
1
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
2
  var _excluded = ["className", "type", "loading", "size", "disabled", "shape"],
3
- _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "virtualScrollBar"],
3
+ _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "virtualScrollBar", "hasHeaderBottomBorder"],
4
4
  _excluded3 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
5
5
  _excluded4 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
6
6
  _excluded5 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
@@ -14,16 +14,16 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
14
14
  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); }
15
15
  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; }
16
16
  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; }
17
- import { AlertTriangleDuotone, CheckCircleDuotone, CloseLLine, InfoCircleLine } from '@aloudata/icons-react';
18
17
  import { Modal as AntdModal } from 'antd';
19
18
  import { modalGlobalConfig } from 'antd/lib/modal/confirm';
20
19
  import useModal from 'antd/lib/modal/useModal/index';
21
20
  import classNames from 'classnames';
21
+ import { IconButton } from "../dist";
22
22
  import React from 'react';
23
23
  import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
24
- import DoubleCircleIcon from "../DoubleCircleIcon";
24
+ import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseLLine, InfoCircleDuotone } from "../Icon";
25
25
  import ScrollArea from "../ScrollArea";
26
- import theme from "../style/themes/default/themeColor.module.less";
26
+
27
27
  // export type { ModalProps, ModalFuncProps };
28
28
 
29
29
  export var destroyFns = [];
@@ -82,6 +82,8 @@ var OriginModal = function OriginModal(props) {
82
82
  title = props.title,
83
83
  paddingLess = props.paddingLess,
84
84
  virtualScrollBar = props.virtualScrollBar,
85
+ _props$hasHeaderBotto = props.hasHeaderBottomBorder,
86
+ hasHeaderBottomBorder = _props$hasHeaderBotto === void 0 ? false : _props$hasHeaderBotto,
85
87
  restProps = _objectWithoutProperties(props, _excluded2);
86
88
  return /*#__PURE__*/React.createElement(AntdModal, _extends({}, restProps, {
87
89
  title: ModalTitle({
@@ -101,17 +103,20 @@ var OriginModal = function OriginModal(props) {
101
103
  ,
102
104
  className: classNames('ald-modal', className, {
103
105
  'ald-modal-padding-less': paddingLess,
104
- 'ald-modal-virtual-scroll-bar': virtualScrollBar
106
+ 'ald-modal-virtual-scroll-bar': virtualScrollBar,
107
+ 'ald-modal-header-bottom-border': hasHeaderBottomBorder
105
108
  }),
106
109
  okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
107
110
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
108
111
  okText: okText,
109
112
  cancelText: cancelText,
110
113
  width: width || DEFAULT_WIDTH,
111
- closeIcon: closeIcon || /*#__PURE__*/React.createElement(CloseLLine, {
112
- size: 16,
113
- fill: theme.NL40,
114
- className: "ald-modal-close"
114
+ closeIcon: closeIcon || /*#__PURE__*/React.createElement(IconButton, {
115
+ icon: /*#__PURE__*/React.createElement(CloseLLine, {
116
+ color: "#171717",
117
+ size: 20
118
+ }),
119
+ size: 'middle'
115
120
  })
116
121
  }), virtualScrollBar ? /*#__PURE__*/React.createElement(ScrollArea, {
117
122
  className: 'ald-modal-body-wrap',
@@ -141,13 +146,11 @@ Modal.info = function infoFn(props) {
141
146
  width: width || DEFAULT_WIDTH,
142
147
  className: classNames('ald-modal', className),
143
148
  title: ModalTitle({
144
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
145
- type: "info"
146
- }, /*#__PURE__*/React.createElement(InfoCircleLine, {
147
- size: 16,
148
- fill: theme.B40,
149
+ icon: /*#__PURE__*/React.createElement(InfoCircleDuotone, {
150
+ size: 32,
151
+ color: '#3271C9',
149
152
  className: "ald-modal-close"
150
- })),
153
+ }),
151
154
  title: title,
152
155
  subTitle: subTitle
153
156
  }),
@@ -176,13 +179,11 @@ Modal.success = function successFn(props) {
176
179
  width: width || DEFAULT_WIDTH,
177
180
  className: classNames('ald-modal', className),
178
181
  title: ModalTitle({
179
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
180
- type: "success"
181
- }, /*#__PURE__*/React.createElement(CheckCircleDuotone, {
182
- fill: [theme.SA40, theme.ND0],
183
- size: 16,
184
- theme: "multi-color"
185
- })),
182
+ icon: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
183
+ fill: "#fff",
184
+ color: "#16B667",
185
+ size: 32
186
+ }),
186
187
  title: title,
187
188
  subTitle: subTitle
188
189
  }),
@@ -206,18 +207,16 @@ Modal.error = function errorFn(props) {
206
207
  className = props.className,
207
208
  restProps = _objectWithoutProperties(props, _excluded5);
208
209
  return AntdModal.error(_objectSpread({
209
- okButtonProps: getButtonProps(okButtonProps, 'dangerous', okType),
210
+ okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
210
211
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
211
212
  width: width || DEFAULT_WIDTH,
212
213
  className: classNames('ald-modal', className),
213
214
  title: ModalTitle({
214
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
215
- type: "error"
216
- }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
217
- fill: [theme.SC40, theme.ND0],
218
- size: 16,
219
- theme: "multi-color"
220
- })),
215
+ icon: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
216
+ color: "#D64343",
217
+ fill: '#fff',
218
+ size: 32
219
+ }),
221
220
  title: title,
222
221
  subTitle: subTitle
223
222
  }),
@@ -241,19 +240,16 @@ Modal.warning = function modalWarn(props) {
241
240
  className = props.className,
242
241
  restProps = _objectWithoutProperties(props, _excluded6);
243
242
  return AntdModal.warning(_objectSpread({
244
- okButtonProps: getButtonProps(okButtonProps, 'dangerous', okType),
243
+ okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
245
244
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
246
245
  width: width || DEFAULT_WIDTH,
247
246
  // className: classNames('ald-modal-warning', className),
248
247
  className: classNames('ald-modal ald-modal-warning', className),
249
248
  title: ModalTitle({
250
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
251
- type: "warning"
252
- }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
253
- fill: [theme.SB40, theme.ND0],
254
- theme: "multi-color",
255
- size: 16
256
- })),
249
+ icon: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
250
+ color: "#FFB01F",
251
+ size: 32
252
+ }),
257
253
  title: title,
258
254
  subTitle: subTitle
259
255
  }),
@@ -282,13 +278,11 @@ Modal.confirm = function confirmFn(props) {
282
278
  width: width || DEFAULT_WIDTH,
283
279
  className: classNames('ald-modal', className),
284
280
  title: ModalTitle({
285
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
286
- type: "info"
287
- }, /*#__PURE__*/React.createElement(InfoCircleLine, {
288
- size: 16,
289
- fill: theme.B40,
281
+ icon: /*#__PURE__*/React.createElement(InfoCircleDuotone, {
282
+ size: 32,
283
+ color: '#3271C9',
290
284
  className: "ald-modal-close"
291
- })),
285
+ }),
292
286
  title: title,
293
287
  subTitle: subTitle
294
288
  }),
@@ -1,3 +1,4 @@
1
+ @import '../../IconButton/style/index.less';
1
2
  @import '../../style/index.less';
2
3
  @import '../../ScrollArea/style/index.less';
3
4
  @import '../../Button/style/index.less';
@@ -12,20 +13,19 @@
12
13
  }
13
14
 
14
15
  .ant-modal-content {
15
- padding: 15px 23px;
16
+ padding: 0;
16
17
  box-shadow: none;
17
18
  border-radius: 4px;
18
19
  border: 1px solid @BG60;
19
20
  overflow: hidden;
20
21
 
21
22
  .ant-modal-body {
22
- max-height: 70vh;
23
+ min-height: 130px;
24
+ max-height: 68vh;
23
25
  line-height: 20px;
24
26
  font-size: 13px;
25
27
  overflow-y: auto;
26
- margin-left: -23px;
27
- width: calc(100% + 46px);
28
- padding: 0 23px;
28
+ padding: 16px 20px;
29
29
  }
30
30
  }
31
31
 
@@ -38,7 +38,7 @@
38
38
  .ald-modal-title-container {
39
39
  display: flex;
40
40
  align-items: center;
41
- gap: 12px;
41
+ gap: 8px;
42
42
 
43
43
  .ald-modal-text-container {
44
44
  // margin-left: 12px;
@@ -62,7 +62,8 @@
62
62
  }
63
63
 
64
64
  .ant-modal-header {
65
- margin-bottom: 16px;
65
+ padding: 16px 20px;
66
+ margin-bottom: 0;
66
67
 
67
68
  .ant-modal-title {
68
69
  width: 95%;
@@ -83,7 +84,7 @@
83
84
 
84
85
  .ald-modal-body-wrap {
85
86
  .ald-modal-body-wrap-inner {
86
- max-height: 70vh;
87
+ max-height: 68vh;
87
88
  padding: 0 23px;
88
89
  }
89
90
  }
@@ -97,7 +98,9 @@
97
98
 
98
99
  .ant-modal-footer {
99
100
  position: relative;
100
- margin-top: 16px;
101
+ margin-top: 0;
102
+ padding: 12px 20px;
103
+ background: #f4f4f4;
101
104
 
102
105
  .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
103
106
  margin-bottom: 0;
@@ -107,22 +110,29 @@
107
110
  &::before {
108
111
  content: '';
109
112
  position: absolute;
110
- top: -16px;
113
+ top: 0;
111
114
  left: 0;
112
- width: calc(100% + 48px);
113
- margin-left: -24px;
114
- margin-right: -24px;
115
+ width: 100%;
115
116
  height: 1px;
116
117
  background-color: var(--colors-gray-300, #e8e8e8);
117
118
  }
118
119
  }
120
+
121
+ .ant-modal-close-x {
122
+ width: 24px;
123
+ background-color: #fff;
124
+ }
125
+ }
126
+
127
+ .ald-modal-header-bottom-border {
128
+ .ant-modal-header {
129
+ border-bottom: 1px solid #dbdbdb;
130
+ }
119
131
  }
120
132
 
121
133
  .ald-modal-padding-less {
122
134
  .ant-modal-content {
123
135
  .ant-modal-body {
124
- margin: 0 -24px;
125
-
126
136
  .ald-modal-body-wrap {
127
137
  .ald-modal-body-wrap-inner {
128
138
  padding: 0;
@@ -133,6 +143,10 @@
133
143
  }
134
144
 
135
145
  .ald-modal.ant-modal-confirm {
146
+ .ant-modal-body {
147
+ padding-bottom: 12px !important;
148
+ }
149
+
136
150
  .ant-modal-confirm-body > .i-icon {
137
151
  & + .ant-modal-confirm-title {
138
152
  flex: 1;
@@ -153,8 +167,8 @@
153
167
  display: none;
154
168
 
155
169
  + .ant-modal-confirm-title + .ant-modal-confirm-content {
156
- margin-left: 0;
157
- margin-top: 16px;
170
+ margin-left: 40px;
171
+ margin-top: 4px;
158
172
  }
159
173
  }
160
174
  }
@@ -164,18 +178,18 @@
164
178
  }
165
179
  }
166
180
 
167
- .ald-modal.ald-modal-warning {
168
- .ant-modal-confirm-btns {
169
- .ald-btn {
170
- background-color: @SB40;
171
- border-color: @SB40;
172
-
173
- &:hover,
174
- &:active,
175
- &:focus {
176
- background-color: @SB40;
177
- border-color: @SB40;
178
- }
179
- }
180
- }
181
- }
181
+ // .ald-modal.ald-modal-warning {
182
+ // .ant-modal-confirm-btns {
183
+ // .ald-btn {
184
+ // background-color: @SB40;
185
+ // border-color: @SB40;
186
+
187
+ // &:hover,
188
+ // &:active,
189
+ // &:focus {
190
+ // background-color: @SB40;
191
+ // border-color: @SB40;
192
+ // }
193
+ // }
194
+ // }
195
+ // }
@@ -8,11 +8,11 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import { ChevronLeftLine, ChevronRightLine } from '@aloudata/icons-react';
12
11
  import classnames from 'classnames';
13
12
  import _ from 'lodash';
14
13
  import React, { useCallback, useEffect, useState } from 'react';
15
14
  import Button from "../Button";
15
+ import { ChevronLeftLine, ChevronRightLine } from "../Icon";
16
16
  function Pagination(props) {
17
17
  var _props$current = props.current,
18
18
  currPage = _props$current === void 0 ? 1 : _props$current,
@@ -2,11 +2,11 @@ var _excluded = ["okButtonProps", "cancelButtonProps", "okType", "icon"];
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 { AlertTriangleDuotone } from '@aloudata/icons-react';
6
5
  import { Popconfirm } from 'antd';
7
6
  import classNames from 'classnames';
8
7
  import React from 'react';
9
8
  import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
9
+ import { AlertTriangleDuotone } from "../Icon";
10
10
  import themeColor from "../style/themes/default/themeColor.module.less";
11
11
  function MyPopconfirm(props) {
12
12
  var _props$okButtonProps = props.okButtonProps,
@@ -17,8 +17,8 @@ function MyPopconfirm(props) {
17
17
  _props$icon = props.icon,
18
18
  icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
19
19
  size: 16,
20
- theme: "multi-color",
21
- fill: [themeColor.SB40, themeColor.BG100]
20
+ color: themeColor.SB40,
21
+ fill: themeColor.BG100
22
22
  }) : _props$icon,
23
23
  restProps = _objectWithoutProperties(props, _excluded);
24
24
  function getButtonProps(buttonProps, defaultBtnType) {
@@ -9,6 +9,7 @@
9
9
  .ant-popconfirm-message {
10
10
  padding-bottom: 16px;
11
11
  margin-bottom: 0;
12
+ align-items: center;
12
13
  }
13
14
 
14
15
  .ant-popconfirm-buttons {
@@ -18,7 +19,11 @@
18
19
  }
19
20
 
20
21
  .ant-popconfirm-message {
21
- margin-bottom: 16px;
22
+ .ant-popconfirm-message-icon {
23
+ line-height: 20px;
24
+ display: flex;
25
+ align-items: center;
26
+ }
22
27
 
23
28
  .ant-popconfirm-message-title {
24
29
  font-weight: 400;
@@ -25,7 +25,8 @@ export var IconMap = {
25
25
  }),
26
26
  warning: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
27
27
  size: 80,
28
- color: "#FFB01F"
28
+ color: "#FFB01F",
29
+ fill: "#FFFFFF"
29
30
  })
30
31
  };
31
32
  export var ExceptionMap = {
@@ -93,6 +94,8 @@ var Result = function Result(_ref2) {
93
94
  })));
94
95
  }
95
96
  return /*#__PURE__*/React.createElement("div", {
97
+ className: "ald-result-vertical-wrap"
98
+ }, /*#__PURE__*/React.createElement("div", {
96
99
  className: classNames('ald-result-vertical', className),
97
100
  style: style
98
101
  }, /*#__PURE__*/React.createElement(Icon, {
@@ -106,7 +109,7 @@ var Result = function Result(_ref2) {
106
109
  className: "ald-result-extra"
107
110
  }, extra), children && /*#__PURE__*/React.createElement("div", {
108
111
  className: "ald-result-content"
109
- }, children));
112
+ }, children)));
110
113
  };
111
114
  Result.PRESENTED_IMAGE_403 = ExceptionMap['unauthorized'];
112
115
  Result.PRESENTED_IMAGE_404 = ExceptionMap['noFound'];
@@ -1,12 +1,16 @@
1
1
  @import '../../style/index.less';
2
2
 
3
+ .ald-result-vertical-wrap {
4
+ height: 100%;
5
+ width: 100%;
6
+ overflow: auto;
7
+ }
8
+
3
9
  .ald-result-vertical {
4
10
  display: flex;
5
11
  align-items: center;
6
12
  justify-content: center;
7
13
  flex-direction: column;
8
- width: 100%;
9
- height: 100%;
10
14
 
11
15
  .ald-result-icon {
12
16
  margin-bottom: 16px;