@aloudata/aloudata-design 2.0.0-beta.1 → 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 (82) 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/style/variables.less +8 -5
  4. package/dist/Checkbox/index.js +10 -4
  5. package/dist/Checkbox/style/index.less +12 -0
  6. package/dist/Checkbox/type.d.ts +11 -0
  7. package/dist/ColorPicker/style/index.less +1 -2
  8. package/dist/DataPreviewTable/constant.d.ts +1 -1
  9. package/dist/DataPreviewTable/constant.js +1 -1
  10. package/dist/DataPreviewTable/style/index.less +11 -11
  11. package/dist/Dropdown/style/index.less +3 -2
  12. package/dist/Empty/image/Search.js +2 -2
  13. package/dist/Empty/image/SearchSmall.js +2 -2
  14. package/dist/Empty/index.js +2 -1
  15. package/dist/Empty/style/index.less +2 -1
  16. package/dist/Form/style/index.less +27 -6
  17. package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
  18. package/dist/Icon/components/CloseCircleLightLine.js +35 -0
  19. package/dist/Icon/components/User.d.ts +11 -0
  20. package/dist/Icon/components/User.js +41 -0
  21. package/dist/Icon/components/UserGroup.d.ts +11 -0
  22. package/dist/Icon/components/UserGroup.js +39 -0
  23. package/dist/Icon/index.d.ts +3 -0
  24. package/dist/Icon/index.js +4 -1
  25. package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
  26. package/dist/Icon/svg/check-circle-light-line.svg +1 -1
  27. package/dist/Icon/svg/information-circle-light-line.svg +1 -1
  28. package/dist/Icon/svg/user.svg +4 -0
  29. package/dist/Icon/svg/userGroup.svg +7 -0
  30. package/dist/InputNumber/style/index.less +12 -9
  31. package/dist/MemberPicker/components/MultipleOption.js +4 -3
  32. package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
  33. package/dist/MemberPicker/components/NickLabel.js +8 -2
  34. package/dist/MemberPicker/components/Panel.js +2 -2
  35. package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
  36. package/dist/MemberPicker/components/SingleOption.js +1 -0
  37. package/dist/MemberPicker/index.js +2 -0
  38. package/dist/MemberPicker/interface.d.ts +1 -0
  39. package/dist/MemberPicker/style/index.less +36 -28
  40. package/dist/Menu/style/index.less +1 -2
  41. package/dist/Navigator/style/index.less +1 -1
  42. package/dist/Pagination/index.d.ts +1 -1
  43. package/dist/Pagination/index.js +7 -1
  44. package/dist/Pagination/types.d.ts +1 -0
  45. package/dist/Popconfirm/index.js +2 -2
  46. package/dist/Popconfirm/style/index.less +49 -13
  47. package/dist/ScrollArea/index.d.ts +1 -0
  48. package/dist/ScrollArea/index.js +5 -2
  49. package/dist/ScrollArea/style/index.less +5 -0
  50. package/dist/Select/index.js +3 -1
  51. package/dist/Select/style/index.less +21 -9
  52. package/dist/Select/style/layout.less +7 -5
  53. package/dist/Select/style/selectDropdown.less +1 -2
  54. package/dist/Select/style/size.less +239 -20
  55. package/dist/Select/style/variables.less +6 -3
  56. package/dist/Skeleton/style/index.less +84 -4
  57. package/dist/Spin/index.js +2 -3
  58. package/dist/Spin/style/index.less +8 -0
  59. package/dist/Table/components/Pagination/index.js +3 -1
  60. package/dist/Table/index.js +18 -3
  61. package/dist/Table/style/index.less +12 -6
  62. package/dist/Table/types.d.ts +1 -0
  63. package/dist/Tabs/index.d.ts +5 -0
  64. package/dist/Tabs/index.js +5 -2
  65. package/dist/Tabs/style/index.less +9 -2
  66. package/dist/TextLink/index.js +3 -2
  67. package/dist/TextLink/style/index.less +5 -0
  68. package/dist/TextLink/style/type.less +2 -2
  69. package/dist/Tree/DirectoryTree.js +0 -12
  70. package/dist/Tree/Tree.js +2 -2
  71. package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
  72. package/dist/Tree/demo/directoryTree/index.js +44 -0
  73. package/dist/Tree/style/index.less +31 -12
  74. package/dist/Tree/style/mixin.less +3 -5
  75. package/dist/Tree/style/reset.less +15 -0
  76. package/dist/ald.min.css +1 -1
  77. package/dist/notification/demo/footer.d.ts +3 -0
  78. package/dist/notification/demo/footer.js +44 -0
  79. package/dist/notification/index.js +77 -48
  80. package/dist/notification/style/index.less +49 -11
  81. package/dist/style/themes/default/index.less +1 -1
  82. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle opacity="0.25" cx="50" cy="50" r="50" fill="#6366F1"/>
3
+ <path d="M67.9995 90.1619C62.5051 92.6281 56.4127 94 50 94C35.8547 94 23.2683 87.325 15.2191 76.9531C19.9103 68.0611 29.2473 62 40 62C55.464 62 68 74.536 68 90C68 90.054 67.9998 90.1079 67.9995 90.1619Z" fill="#6366F1"/>
4
+ <path d="M84.7809 76.9531C82.2018 80.2764 79.1569 83.2202 75.7442 85.6864C74.6138 76.2201 69.8101 67.882 62.799 62.1382C72.3574 63.0868 80.5018 68.8423 84.7809 76.9531Z" fill="#6366F1"/>
5
+ <path d="M40 53C48.8365 53 56 45.8365 56 37C56 28.1635 48.8365 21 40 21C31.1634 21 24 28.1635 24 37C24 45.8365 31.1634 53 40 53Z" fill="#6366F1"/>
6
+ <path d="M64 37C64 43.0872 61.7337 48.6451 57.9989 52.8761C58.6545 52.9579 59.3223 53 60 53C68.8365 53 76 45.8366 76 37C76 28.1634 68.8365 21 60 21C59.3223 21 58.6545 21.0421 57.9989 21.1239C61.7337 25.3549 64 30.9128 64 37Z" fill="#6366F1"/>
7
+ </svg>
@@ -3,27 +3,30 @@
3
3
 
4
4
  @inputNumber-height-large: 36px;
5
5
  @inputNumber-font-size-large: 16px;
6
- @inputNumber-border-radius-large: 4px;
6
+ @inputNumber-border-radius-large: 8px;
7
7
  @inputNumber-padding-large: 0 11px;
8
8
 
9
9
  @inputNumber-height-middle: 32px;
10
- @inputNumber-font-size-middle: 13px;
11
- @inputNumber-border-radius-middle: 2px;
10
+ @inputNumber-font-size-middle: 14px;
11
+ @inputNumber-border-radius-middle: 6px;
12
12
  @inputNumber-padding-middle: 0 7px;
13
13
 
14
14
  @inputNumber-height-small: 28px;
15
15
  @inputNumber-font-size-small: 12px;
16
- @inputNumber-border-radius-small: 2px;
16
+ @inputNumber-border-radius-small: 4px;
17
17
  @inputNumber-padding-small: 0 7px;
18
18
 
19
19
  //默认
20
- @inputNumber-bg-color: @BG100;
21
- @inputNumber-border-color: @BG60;
22
- @inputNumber-color: @NL0;
20
+ @inputNumber-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
21
+ @inputNumber-border-color: var(
22
+ --alias-colors-border-accent-gray-subtle-default,
23
+ #d1d5db
24
+ );
25
+ @inputNumber-color: var(--alias-colors-text-default, #1f2937);
23
26
  @inputNumber-wrapper-bg-color: @BG95;
24
27
  //激活
25
- @inputNumber-active-bg-color: @BG100;
26
- @inputNumber-active-border-color: @B40;
28
+ @inputNumber-active-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
29
+ @inputNumber-active-border-color: var(--alias-colors-border-selected, #126fdd);
27
30
 
28
31
  //disable
29
32
  @inputNumber-disabled-bg-color: @BG90;
@@ -4,8 +4,8 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
4
4
  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); }
5
5
  import classnames from 'classnames';
6
6
  import React from 'react';
7
- import Button from "../../Button";
8
7
  import Checkbox from "../../Checkbox";
8
+ import TextLink from "../../TextLink/index";
9
9
  import { getAccount, getId, getPhoto } from "../utils";
10
10
  import { isUserGroup } from "../utils/getUsersWithUserId";
11
11
  import NickLabel from "./NickLabel";
@@ -32,13 +32,14 @@ export default function MultipleList(params) {
32
32
  checked: selected,
33
33
  disabled: disabled
34
34
  }), /*#__PURE__*/React.createElement(NickLabel, {
35
+ type: user.type,
35
36
  id: getId(user),
36
37
  name: user.name,
37
38
  photo: getPhoto(user),
38
39
  account: getAccount(user)
39
- })), isUserGroup(user) && hasNextLevel && /*#__PURE__*/React.createElement(Button, {
40
- type: "link",
40
+ })), isUserGroup(user) && hasNextLevel && /*#__PURE__*/React.createElement(TextLink, {
41
41
  className: "ald-member-picker-btn",
42
+ size: "small",
42
43
  onClick: function onClick(e) {
43
44
  onNextLevel === null || onNextLevel === void 0 ? void 0 : onNextLevel(user);
44
45
  e.stopPropagation();
@@ -1,9 +1,11 @@
1
+ import { EUserType } from "../../ConfigProvider/getUserList";
1
2
  import React from 'react';
2
3
  interface INickLabelProps {
3
4
  name?: string;
4
5
  id: string;
5
6
  photo?: React.ReactNode;
6
7
  account?: string;
8
+ type: EUserType;
7
9
  }
8
10
  declare const _default: React.NamedExoticComponent<INickLabelProps>;
9
11
  export default _default;
@@ -1,16 +1,22 @@
1
+ import { EUserType } from "../../ConfigProvider/getUserList";
2
+ import { UserGroup } from "../../Icon";
1
3
  import React, { memo } from 'react';
2
4
  import Avatar from "../../Avatar";
3
5
  var NickLabel = function NickLabel(_ref) {
4
6
  var photo = _ref.photo,
5
7
  name = _ref.name,
6
8
  id = _ref.id,
7
- account = _ref.account;
9
+ account = _ref.account,
10
+ type = _ref.type;
8
11
  var innerName = name || id;
12
+ var photoSrc = !photo && type === EUserType.USER_GROUP ? /*#__PURE__*/React.createElement(UserGroup, {
13
+ size: 20
14
+ }) : photo;
9
15
  return /*#__PURE__*/React.createElement("div", {
10
16
  className: "ald-member-picker-nick-label"
11
17
  }, /*#__PURE__*/React.createElement(Avatar, {
12
18
  key: innerName,
13
- src: photo,
19
+ src: photoSrc,
14
20
  size: 20
15
21
  }, innerName), /*#__PURE__*/React.createElement("div", {
16
22
  className: "ald-member-picker-nick-label-name",
@@ -86,7 +86,7 @@ export default function Panel(props) {
86
86
  var userSelection = /*#__PURE__*/React.createElement(MemberSelection, {
87
87
  className: 'ald-member-picker-member-selection-multiple',
88
88
  userList: dataList.filter(isUser),
89
- width: (panelWidth - 3) / 2,
89
+ width: (panelWidth - 6) / 2,
90
90
  selectedUsers: selectedUsers.filter(isUser),
91
91
  onChange: onSelectionChange,
92
92
  onSearchValueChange: onSearchValueChange,
@@ -97,7 +97,7 @@ export default function Panel(props) {
97
97
  var userGroupSelection = /*#__PURE__*/React.createElement(UserGroupSelection, {
98
98
  className: 'ald-member-picker-member-selection-multiple',
99
99
  userGroupList: dataList.filter(isUserGroup),
100
- width: (panelWidth - 3) / 2,
100
+ width: (panelWidth - 6) / 2,
101
101
  selectedUsersGroup: selectedUsers.filter(isUserGroup),
102
102
  onChange: onSelectionChange,
103
103
  onSearchValueChange: onSearchValueChange,
@@ -43,12 +43,15 @@ export default function SelectedMemberTags(props) {
43
43
  return /*#__PURE__*/React.createElement("div", {
44
44
  className: 'ald-member-picker-selected-member-tag',
45
45
  key: getId(user)
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ className: 'ald-member-picker-selected-member-tag-user'
46
48
  }, /*#__PURE__*/React.createElement(NickLabel, {
49
+ type: user.type,
47
50
  id: getId(user),
48
51
  name: user.name,
49
52
  photo: getPhoto(user),
50
53
  account: getAccount(user)
51
- }), !hasLocked && /*#__PURE__*/React.createElement(CloseMLine, {
54
+ })), !hasLocked && /*#__PURE__*/React.createElement(CloseMLine, {
52
55
  size: 20,
53
56
  className: 'ald-member-picker-close',
54
57
  color: "#98A2B3",
@@ -21,6 +21,7 @@ export default function SingleOption(params) {
21
21
  className: classnames('ald-member-picker-option', className, 'ald-member-picker-singleOption', _defineProperty({}, 'ald-member-picker-single-option-selected', selected)),
22
22
  onClick: onClick
23
23
  }, /*#__PURE__*/React.createElement(NickLabel, {
24
+ type: user.type,
24
25
  id: getId(user),
25
26
  name: user.name,
26
27
  photo: getPhoto(user),
@@ -35,6 +35,7 @@ var Component = function Component(_ref) {
35
35
  disabled = _ref.disabled,
36
36
  _onClear = _ref.onClear,
37
37
  size = _ref.size,
38
+ selectType = _ref.selectType,
38
39
  _ref$lockedIds = _ref.lockedIds,
39
40
  lockedIds = _ref$lockedIds === void 0 ? [] : _ref$lockedIds;
40
41
  var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
@@ -185,6 +186,7 @@ var Component = function Component(_ref) {
185
186
  return /*#__PURE__*/React.createElement(Select, {
186
187
  prefix: prefix,
187
188
  size: size,
189
+ type: selectType,
188
190
  className: classNames('ald-member-picker-select', className),
189
191
  value: selectedUserList.map(function (item) {
190
192
  if (item.type === EUserType.USER_GROUP) {
@@ -15,6 +15,7 @@ export interface IBaseMemberSelectorProps extends Pick<ISelectProps, 'allowClear
15
15
  open?: boolean;
16
16
  onOpenChange?: (open: boolean) => void;
17
17
  type?: EMemberPicker;
18
+ selectType?: ISelectProps['type'];
18
19
  lockedIds?: Array<TUserValue | TUserGroupValue>;
19
20
  }
20
21
  export interface IMultipleMemberSelectorProps extends IBaseMemberSelectorProps {
@@ -6,6 +6,7 @@
6
6
  @import '../../Empty/style/index.less';
7
7
  @import '../../message/style/index.less';
8
8
  @import '../../Spin/style/index.less';
9
+ @import '../../TextLink/style/index.less';
9
10
 
10
11
  @btnWidth: 30px;
11
12
 
@@ -13,8 +14,7 @@
13
14
  box-sizing: border-box;
14
15
  border: 1px solid var(--colors-gray-400, #dbdbdb);
15
16
  background: var(--global-colors-base-white-950a, #fff);
16
- box-shadow: 0 20px 24px -4px rgb(16 24 40 / 0.08),
17
- 0 8px 8px -4px rgb(16 24 40 / 0.03);
17
+ box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
18
18
 
19
19
  &.ald-member-picker-multiple {
20
20
  display: flex;
@@ -22,9 +22,6 @@
22
22
  border-radius: 2px;
23
23
  // .memberSelection {
24
24
  // }
25
- .ald-member-picker-selected-member-tags {
26
- border-left: 1px solid var(--colors-gray-400, #dbdbdb);
27
- }
28
25
 
29
26
  .ald-member-picker-selector-footer {
30
27
  grid-column: 1 / 3;
@@ -34,6 +31,7 @@
34
31
 
35
32
  .ald-member-picker-member-selection-wrapper {
36
33
  width: 50%;
34
+ border-right: 1px solid var(--alias-colors-border-default, #e5e7eb);
37
35
  }
38
36
 
39
37
  .ald-member-picker-member-list-wrap {
@@ -51,7 +49,7 @@
51
49
  .ald-member-picker-search-input.ald-member-picker-search-input {
52
50
  border: none;
53
51
  border-bottom: 1px solid var(--colors-gray-300, #e8e8e8) !important;
54
- border-radius: 0;
52
+ border-radius: 0 !important;
55
53
  flex: 0 0 32px;
56
54
 
57
55
  &.ant-input-affix-wrapper-focused {
@@ -72,7 +70,7 @@
72
70
  }
73
71
 
74
72
  .ald-member-picker-member-list {
75
- height: 200px;
73
+ height: 300px;
76
74
 
77
75
  &.ald-member-picker-member-list-null {
78
76
  display: none;
@@ -82,6 +80,7 @@
82
80
 
83
81
  .ald-member-picker-selected-member-tags-wrap {
84
82
  width: 50%;
83
+ height: 100%;
85
84
  max-height: 320px;
86
85
  padding: 8px;
87
86
 
@@ -102,19 +101,21 @@
102
101
 
103
102
  .ald-member-picker-selected-member-tag {
104
103
  display: flex;
105
- padding: 1px 5px;
106
104
  justify-content: center;
107
- gap: var(--global-number-spacing-spacing-xxs, 4px);
108
- border-radius: var(--global-number-radius-radius-sm, 2px);
109
- border: 1px solid var(--colors-gray-300, #e8e8e8);
110
- font-size: 13px;
111
- font-style: normal;
105
+ align-items: center;
106
+ border-radius: var(--alias-radius-50, 4px);
107
+ border: 1px solid
108
+ var(--alias-colors-border-accent-gray-subtler-default, #e5e7eb);
109
+ background: var(--alias-colors-bg-accent-gray-subtler-default, #f9fafb);
110
+ color: var(--alias-colors-text-accent-gray-default, #374151);
111
+ text-align: center;
112
+ font-size: 14px;
112
113
  font-weight: 400;
113
- line-height: 20px;
114
- height: 24px;
115
- max-width: 100%;
114
+ line-height: 20px; /* 142.857% */
116
115
 
117
116
  .ald-member-picker-close {
117
+ border-left: 1px solid
118
+ var(--alias-colors-border-accent-gray-subtler-default, #e5e7eb);
118
119
  cursor: pointer;
119
120
  }
120
121
  }
@@ -130,18 +131,18 @@
130
131
  align-items: center;
131
132
  gap: var(--global-number-spacing-spacing-sm, 12px);
132
133
  align-self: stretch;
133
- border-top: 1px solid var(--colors-gray-300, #e8e8e8);
134
- background: var(--colors-gray-97, #f8f8f8);
134
+ border-top: 1px solid var(--alias-colors-border-default, #e5e7eb);
135
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
135
136
  }
136
137
 
137
138
  .ald-member-picker-option {
138
- padding: 0 8px;
139
+ padding: 0 12px;
139
140
  display: flex;
140
141
  align-items: center;
141
142
  box-sizing: border-box;
142
- height: 32px;
143
+ height: 36px;
143
144
  line-height: 20px;
144
- gap: 4px;
145
+ gap: 6px;
145
146
  cursor: pointer;
146
147
  justify-content: space-between;
147
148
 
@@ -231,8 +232,13 @@
231
232
  }
232
233
  }
233
234
 
235
+ .ald-member-picker-selected-member-tag-user {
236
+ padding: 2px 6px;
237
+ display: flex;
238
+ align-items: center;
239
+ }
240
+
234
241
  .ald-member-picker-nick-label {
235
- font-size: 0;
236
242
  display: inline-flex;
237
243
  gap: 4px;
238
244
  flex-wrap: nowrap;
@@ -246,15 +252,14 @@
246
252
  }
247
253
 
248
254
  .ald-member-picker-nick-label-name {
249
- color: var(--colors-gray-900, #171717);
250
- font-size: 13px;
251
- font-style: normal;
255
+ color: var(--alias-colors-text-default, #1f2937);
256
+ font-size: 14px;
252
257
  font-weight: 400;
253
- line-height: 20px;
258
+ line-height: 20px; /* 142.857% */
254
259
  white-space: nowrap;
255
260
  text-overflow: ellipsis;
256
261
  overflow: hidden;
257
- max-width: 140px;
262
+ max-width: 130px;
258
263
  }
259
264
  }
260
265
 
@@ -308,8 +313,11 @@
308
313
  align-items: center;
309
314
  }
310
315
 
311
- .ald-select-popup.ald-member-picker-popup.ald-member-picker-popup {
316
+ .ald-select-popup.ald-member-picker-popup.ald-member-picker-popup.ald-member-picker-popup {
312
317
  border: none;
313
318
  background-color: transparent;
314
319
  overflow: hidden;
320
+ padding: 0;
321
+ box-shadow: none;
322
+ border-radius: 0;
315
323
  }
@@ -84,8 +84,7 @@
84
84
  .menu-wrap {
85
85
  border: 1px solid var(--alias-colors-border-strong, #d1d5db);
86
86
  border-radius: var(--alias-radius-75, 6px);
87
- box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
88
- 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
87
+ box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
89
88
  overflow: hidden;
90
89
  }
91
90
 
@@ -1,7 +1,7 @@
1
1
  @import '../../style/index.less';
2
2
  @import '../../Icon/index.less';
3
3
 
4
- @ald-prefix: ant;
4
+ @ald-prefix: ald;
5
5
  @header-height: 80px;
6
6
  @footer-height: 88px;
7
7
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IPaginationProps } from './types';
3
- declare function Pagination(props: IPaginationProps): React.JSX.Element;
3
+ declare function Pagination(props: IPaginationProps): React.JSX.Element | null;
4
4
  export default Pagination;
5
5
  /**
6
6
  * 获取在安全范围内的当前页数
@@ -18,7 +18,8 @@ function Pagination(props) {
18
18
  currPage = _props$current === void 0 ? 1 : _props$current,
19
19
  pageSize = props.pageSize,
20
20
  total = props.total,
21
- onChange = props.onChange;
21
+ onChange = props.onChange,
22
+ hideOnSinglePage = props.hideOnSinglePage;
22
23
  var totalPage = getTotalPage(total, pageSize);
23
24
  var _useState = useState(getSafeCurrent(totalPage, currPage)),
24
25
  _useState2 = _slicedToArray(_useState, 2),
@@ -41,6 +42,11 @@ function Pagination(props) {
41
42
  };
42
43
  }, [onChange, current]);
43
44
  var pageRange = getPaginationRange(totalPage, current);
45
+ if (hideOnSinglePage) {
46
+ if (totalPage <= 1) {
47
+ return null;
48
+ }
49
+ }
44
50
  return /*#__PURE__*/React.createElement("div", {
45
51
  className: prefixCls('container')
46
52
  }, /*#__PURE__*/React.createElement(Button, {
@@ -3,4 +3,5 @@ export interface IPaginationProps {
3
3
  pageSize: number;
4
4
  total: number;
5
5
  onChange: (current: number) => void;
6
+ hideOnSinglePage?: boolean;
6
7
  }
@@ -6,7 +6,7 @@ import { Popconfirm } from 'antd';
6
6
  import classNames from 'classnames';
7
7
  import React from 'react';
8
8
  import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
9
- import { AlertTriangleLine } from "../Icon";
9
+ import { AttentionTriangleFill } from "../Icon";
10
10
  function MyPopconfirm(props) {
11
11
  var _props$okButtonProps = props.okButtonProps,
12
12
  okButtonProps = _props$okButtonProps === void 0 ? {} : _props$okButtonProps,
@@ -15,7 +15,7 @@ function MyPopconfirm(props) {
15
15
  okType = props.okType,
16
16
  rootClassName = props.rootClassName,
17
17
  _props$icon = props.icon,
18
- icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(AlertTriangleLine, {
18
+ icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(AttentionTriangleFill, {
19
19
  size: 20,
20
20
  color: "#D64343",
21
21
  fill: "#fff"
@@ -1,45 +1,81 @@
1
1
  @import '../../style/index.less';
2
2
  @import '../../Button/style/index.less';
3
3
 
4
+ .ant-popover-arrow.ant-popover-arrow.ant-popover-arrow {
5
+ overflow: visible;
6
+ }
7
+
8
+ .ant-popover[class] .ant-popover-arrow::before {
9
+ content: '';
10
+ width: 10px;
11
+ display: inline-block;
12
+ bottom: -6px;
13
+ position: absolute;
14
+ left: 4px;
15
+ height: 10px;
16
+ border: 1px solid #d1d5db;
17
+ transform: rotate(45deg);
18
+ clip-path: none;
19
+ }
20
+
21
+ .ant-popover[class] .ant-popover-arrow::after {
22
+ content: '';
23
+ width: 15px;
24
+ background-color: #fff;
25
+ display: inline-block;
26
+ bottom: -11px;
27
+ position: absolute;
28
+ left: 1px;
29
+ height: 10px;
30
+ transform: none;
31
+ box-shadow: none !important;
32
+ }
33
+
4
34
  .ald-pop-confirm.ant-popover.ant-popover .ant-popover-inner {
35
+ width: 240px;
5
36
  padding: 12px;
6
- border-radius: 2px;
7
- box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08),
8
- 0 4px 6px -2px rgba(16, 24, 40, 0.03);
37
+ border: 1px solid #d1d5db;
38
+ border-radius: 6px;
39
+ box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
9
40
 
10
41
  .ant-popover-inner-content {
11
42
  .ant-popconfirm-message {
12
43
  padding-bottom: 12px;
13
44
  margin-bottom: 0;
14
- align-items: center;
15
45
  }
16
46
 
17
47
  .ant-popconfirm-buttons {
18
48
  padding-top: 12px;
49
+ padding-left: 24px;
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 16px;
53
+ flex-direction: row-reverse;
54
+ justify-content: start;
19
55
  }
20
56
  }
21
57
  }
22
58
 
23
59
  .ant-popconfirm-message {
24
60
  .ant-popconfirm-message-icon {
25
- line-height: 20px;
26
- display: flex;
27
- align-items: center;
61
+ display: inline-block;
62
+ height: 100%;
28
63
  }
29
64
 
30
65
  .ant-popconfirm-message-title {
31
66
  font-weight: 400;
32
- font-size: 13px;
33
- line-height: 20px;
34
- color: var(--colors-gray-900, #171717);
67
+ font-size: 12px;
68
+ line-height: 16px;
69
+ color: var(--alias-colors-text-default, #1f2937);
35
70
  margin-inline-start: 4px;
36
- margin-left: 4px !important;
71
+ margin-left: 8px !important;
72
+ width: 190px;
73
+ word-break: break-all;
37
74
  }
38
75
  }
39
76
 
40
77
  .ald-pop-confirm.ant-popover.ant-popover .ant-popover-arrow {
41
78
  &::after {
42
- box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08),
43
- 0 4px 6px -2px rgba(16, 24, 40, 0.03);
79
+ box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
44
80
  }
45
81
  }
@@ -8,6 +8,7 @@ interface Props extends ScrollAreaProps {
8
8
  onViewportScroll?: (event: React.UIEvent<HTMLDivElement>) => void;
9
9
  innerClassName?: string;
10
10
  scrollBarHidden?: Array<'horizontal' | 'vertical'>;
11
+ contentDeterminesWidth?: boolean;
11
12
  }
12
13
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>>;
13
14
  export default _default;
@@ -1,4 +1,4 @@
1
- var _excluded = ["children", "className", "innerClassName", "horizontalScrollBarClassName", "verticalScrollBarClassName", "onViewportScroll", "scrollBarHidden"];
1
+ var _excluded = ["children", "className", "innerClassName", "horizontalScrollBarClassName", "verticalScrollBarClassName", "onViewportScroll", "contentDeterminesWidth", "scrollBarHidden"];
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; }
@@ -12,6 +12,7 @@ var ScrollArea = function ScrollArea(props, ref) {
12
12
  horizontalScrollBarClassName = props.horizontalScrollBarClassName,
13
13
  verticalScrollBarClassName = props.verticalScrollBarClassName,
14
14
  onViewportScroll = props.onViewportScroll,
15
+ contentDeterminesWidth = props.contentDeterminesWidth,
15
16
  scrollBarHidden = props.scrollBarHidden,
16
17
  rest = _objectWithoutProperties(props, _excluded);
17
18
  var isHorizontalScrollBarHidden = scrollBarHidden === null || scrollBarHidden === void 0 ? void 0 : scrollBarHidden.includes('horizontal');
@@ -20,7 +21,9 @@ var ScrollArea = function ScrollArea(props, ref) {
20
21
  scrollHideDelay: 50,
21
22
  className: classNames('ald-scroll-area', className)
22
23
  }), /*#__PURE__*/React.createElement(ScrollAreaComponent.Viewport, {
23
- className: classNames('ald-scroll-area-inner', innerClassName),
24
+ className: classNames('ald-scroll-area-inner', {
25
+ 'ald-scroll-area-width-auto': !contentDeterminesWidth
26
+ }, innerClassName),
24
27
  onScroll: function onScroll(event) {
25
28
  onViewportScroll === null || onViewportScroll === void 0 ? void 0 : onViewportScroll(event);
26
29
  },
@@ -46,4 +46,9 @@
46
46
  height: 100%;
47
47
  box-sizing: border-box;
48
48
  position: relative;
49
+
50
+ &.ald-scroll-area-width-auto > div {
51
+ // 覆盖内联的display:table;
52
+ display: block !important;
53
+ }
49
54
  }
@@ -23,6 +23,7 @@ import { FormItemInputContext } from 'antd/lib/form/context';
23
23
  import useStyle from 'antd/lib/select/style';
24
24
  import { useCompactItemContext } from 'antd/lib/space/Compact';
25
25
  import classNames from 'classnames';
26
+ import _ from 'lodash';
26
27
  import List from 'rc-virtual-list';
27
28
  import React, { forwardRef, useContext, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
28
29
  import { ConfigContext } from "../ConfigProvider";
@@ -370,7 +371,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
370
371
  setIsOpen(!isOpen);
371
372
  }
372
373
  },
373
- className: classNames('ald-select', className, (_classNames = {}, _defineProperty(_classNames, "ald-select-".concat(type), type === 'primary' || type === 'secondary'), _defineProperty(_classNames, 'ald-select-multiple', isMultiple), _defineProperty(_classNames, 'ald-select-single', !isMultiple), _defineProperty(_classNames, 'ald-select-large', size === 'large'), _defineProperty(_classNames, 'ald-select-small', size === 'small'), _defineProperty(_classNames, 'ald-select-disabled', mergedDisabled), _defineProperty(_classNames, 'ald-select-middle', size !== 'large' && size !== 'small'), _defineProperty(_classNames, 'ald-select-open', typeof _open === 'boolean' ? _open : isOpen), _defineProperty(_classNames, 'ald-select-focus', isFocus), _defineProperty(_classNames, "ald-select-status-".concat(mergedStatus), mergedStatus), _classNames), compactItemClassnames, hashId),
374
+ className: classNames('ald-select', className, (_classNames = {}, _defineProperty(_classNames, "ald-select-".concat(type), type === 'primary' || type === 'secondary'), _defineProperty(_classNames, 'ald-select-multiple', isMultiple), _defineProperty(_classNames, 'ald-select-single', !isMultiple), _defineProperty(_classNames, 'ald-select-large', size === 'large'), _defineProperty(_classNames, 'ald-select-small', size === 'small'), _defineProperty(_classNames, 'ald-select-disabled', mergedDisabled), _defineProperty(_classNames, 'ald-select-middle', size !== 'large' && size !== 'small'), _defineProperty(_classNames, 'ald-select-open', typeof _open === 'boolean' ? _open : isOpen), _defineProperty(_classNames, 'ald-select-focus', isFocus), _defineProperty(_classNames, "ald-select-status-".concat(mergedStatus), mergedStatus), _defineProperty(_classNames, 'ald-select-has-value', !_.isEmpty(value) || !_.isEmpty(currentValue)), _classNames), compactItemClassnames, hashId),
374
375
  spellCheck: false,
375
376
  style: Object.assign(styleVar, style)
376
377
  }, !!prefix && /*#__PURE__*/React.createElement("span", {
@@ -404,6 +405,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
404
405
  className: "ald-select-suffix-icon"
405
406
  }),
406
407
  onDropdownVisibleChange: function onDropdownVisibleChange(open) {
408
+ console.log(open, 'open');
407
409
  setIsOpen(open);
408
410
  if (!open) {
409
411
  dropDownTimeRef.current = Date.now();