@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,5 +1,5 @@
1
1
  export declare const CELL_HEIGHT = 20;
2
- export declare const HEADER_HEIGHT = 28;
2
+ export declare const HEADER_HEIGHT = 32;
3
3
  export declare const DEFAULT_COLUMN_WIDTH = 100;
4
4
  export declare const PRE_RENDER_RANGE = 100;
5
5
  export declare const UNDEFINED_INDEX = -1;
@@ -1,5 +1,5 @@
1
1
  export var CELL_HEIGHT = 20;
2
- export var HEADER_HEIGHT = 28;
2
+ export var HEADER_HEIGHT = 32;
3
3
  export var DEFAULT_COLUMN_WIDTH = 100;
4
4
  export var PRE_RENDER_RANGE = 100; //预渲染范围
5
5
 
@@ -5,7 +5,7 @@
5
5
  @import '../../Result/style/index.less';
6
6
 
7
7
  .ald-data-preview-table {
8
- border: 1px solid #d5d5d5;
8
+ border: 1px solid var(--alias-colors-border-default, #e5e7eb);
9
9
  font-size: 12px;
10
10
  position: relative;
11
11
 
@@ -15,29 +15,30 @@
15
15
  }
16
16
 
17
17
  .ald-data-preview-header {
18
- height: 28px;
18
+ height: 32px;
19
19
  z-index: 2;
20
- background-color: #e9e9e9;
20
+ background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
21
21
  width: 100%;
22
22
  }
23
23
 
24
24
  .ald-data-preview-header-cell {
25
25
  height: 100%;
26
26
  position: relative;
27
- border: 1px solid #d5d5d5;
27
+ border: 1px solid var(--alias-colors-border-default, #e5e7eb);
28
28
  border-left: none;
29
29
  border-top: none;
30
30
  display: flex;
31
31
  align-items: center;
32
32
  box-sizing: border-box;
33
- color: #171717;
33
+ color: var(--alias-colors-text-strong, #111827);
34
34
  font-weight: 500;
35
35
 
36
36
  .ald-data-preview-header-default {
37
- padding: 4px 13px 3px 20px;
37
+ padding: 6px 4px;
38
38
  height: 100%;
39
39
  width: 100%;
40
40
  line-height: 20px;
41
+ background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
41
42
 
42
43
  .ald-data-preview-header-left {
43
44
  width: 20px;
@@ -78,15 +79,14 @@
78
79
  .ald-data-preview-body-cell {
79
80
  white-space: nowrap;
80
81
  overflow: hidden;
81
- border: 1px solid #e8e8e8;
82
+ border: 1px solid var(--alias-colors-border-subtle, #f3f4f6);
82
83
  border-left: none;
83
84
  border-top: none;
84
- padding: 2px 7px 1px 8px;
85
+ padding: 2px 4px;
85
86
  line-height: 16px;
86
87
  box-sizing: border-box;
87
- font-style: normal;
88
- font-weight: 400;
89
- text-align: left;
88
+ color: var(--alias-colors-text-default, #1f2937);
89
+ font-size: 12px;
90
90
  }
91
91
 
92
92
  .ald-data-preview-body-skeleton-cell {
@@ -1,5 +1,5 @@
1
1
  import { MenuProps } from 'antd';
2
- import React, { ReactElement } from 'react';
2
+ import React from 'react';
3
3
  import DropdownButton from './Button';
4
4
  type Align = {
5
5
  points?: [string, string];
@@ -36,7 +36,6 @@ export interface IDropdownProps {
36
36
  * @type Menu | () => Menu
37
37
  * @default -
38
38
  */
39
- overlay?: ReactElement | (() => ReactElement);
40
39
  menu?: MenuProps;
41
40
  /**
42
41
  * @description 下拉根元素的类名称
@@ -1,134 +1,98 @@
1
1
  @import '../../style/index.less';
2
2
  @import '../../Button/style/index.less';
3
-
4
- @Dropdown-menu-minWidth: 140px;
5
-
6
- .ant-dropdown.ant-dropdown {
7
- border: 1px solid #d5d5d5;
8
- border-radius: 2px;
9
- box-shadow: @shadow-L;
10
-
11
- :first-child {
12
- box-shadow: none !important;
13
- }
14
-
15
- .ant-dropdown-menu {
16
- .ant-dropdown-menu-item.ant-dropdown-menu-item-danger {
17
- &:not(.ant-dropdown-menu-item-disabled) {
18
- color: #b82828;
19
-
20
- &:hover {
21
- background-color: #f8f8f8;
22
- color: #b82828;
23
- }
24
- }
25
- }
26
- }
27
- }
28
-
29
- .ant-dropdown-menu > .ant-dropdown-menu {
30
- padding: 0;
3
+ // dropdown Menu 和子menu的 ul样式
4
+ .dropdown-menu-content {
5
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
6
+ border-radius: 0;
31
7
  box-shadow: none;
32
- }
33
-
34
- .ant-dropdown-menu-submenu-title-content {
35
- padding: 6px 24px 6px 8px;
36
- line-height: 20px;
37
- border-radius: 0 !important;
38
-
39
- &:hover {
40
- background-color: #f8f8f8;
41
- }
8
+ padding: 0;
42
9
 
43
- .ant-dropdown-menu-submenu-expand-icon {
44
- right: 8px;
45
- line-height: 20px;
46
- display: flex;
47
- align-items: center;
48
- height: 100%;
49
- top: 0;
10
+ .ant-dropdown-menu-item-divider,
11
+ .ant-dropdown-menu-submenu-title-divider {
12
+ background-color: var(--alias-colors-border-subtle, #f3f4f6);
13
+ margin: 0;
50
14
  }
51
- }
52
-
53
- .ant-dropdown > .ant-dropdown-menu {
54
- min-width: @Dropdown-menu-minWidth;
55
- padding: 4px;
56
- color: @NL0;
57
- box-shadow: @shadow-L;
58
15
 
59
- .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
60
- display: flex;
61
- .ant-dropdown-menu-submenu-title-content();
16
+ .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
17
+ background-color: unset;
62
18
  }
63
- }
64
-
65
- .ant-dropdown-menu-submenu > .ant-dropdown-menu {
66
- padding: 4px;
67
- color: @NL0;
68
- box-shadow: @shadow-L;
69
19
 
70
- .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
20
+ .ant-dropdown-menu-item,
21
+ .ant-dropdown-menu-submenu .ant-dropdown-menu-submenu-title {
71
22
  display: flex;
72
- .ant-dropdown-menu-submenu-title-content();
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ padding: var(--alias-padding-100, 8px) var(--alias-padding-150, 12px);
26
+ border-radius: 0;
27
+ color: var(--alias-colors-text-default, #1f2937);
28
+ font-size: 14px;
29
+ font-style: normal;
30
+ font-weight: 400;
31
+ line-height: 20px;
32
+ min-width: 140px;
33
+ gap: var(--alias-spacing-50, 4px);
73
34
 
74
35
  &:hover {
75
- background-color: #f8f8f8;
36
+ background-color: unset;
76
37
  }
77
38
 
78
- &.ant-dropdown-menu-item-disabled {
79
- color: @NL80;
80
- cursor: default;
39
+ .ant-dropdown-menu-item-icon {
40
+ font-size: 20px;
41
+ margin: 0;
42
+ }
81
43
 
82
- &:hover {
83
- background-color: @BG100;
84
- }
44
+ .ant-dropdown-menu-title-content {
45
+ text-overflow: ellipsis;
46
+ overflow: hidden;
47
+ white-space: nowrap;
85
48
  }
86
- }
87
- }
88
49
 
89
- .ant-menu.ant-menu,
90
- .ant-submenu.ant-submenu {
91
- .ant-dropdown-menu-item-active {
92
- background-color: #f8f8f8;
50
+ svg {
51
+ flex-shrink: 0;
52
+ }
93
53
  }
94
54
 
95
- .ant-dropdown-menu-item {
96
- padding: 8px 12px;
97
- line-height: 20px;
98
- border-radius: 0;
99
- }
100
-
101
- .ant-dropdown-menu-item,
102
- .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
103
- display: flex;
104
- .ant-dropdown-menu-submenu-title-content();
105
-
106
- padding: 8px 24px 8px 8px;
55
+ .ant-dropdown-menu-item.ant-dropdown-menu-item-disabled {
56
+ cursor: default;
57
+ color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
107
58
 
108
59
  &:hover {
109
- background-color: #f8f8f8;
60
+ background-color: var(--alias-colors-bg-transp, rgba(0, 0, 0, 0));
110
61
  }
62
+ }
111
63
 
112
- &.ant-dropdown-menu-item-disabled {
113
- color: @NL80;
114
- cursor: default;
115
-
116
- &:hover {
117
- background-color: @BG100;
118
- }
119
- }
64
+ .ant-dropdown-menu-item:hover,
65
+ .ant-dropdown-menu-submenu:hover,
66
+ .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-active {
67
+ background-color: var(
68
+ --alias-colors-bg-interaction-hover,
69
+ rgba(0, 0, 0, 0.05)
70
+ );
120
71
  }
121
72
  }
122
73
 
123
- .ant-submenu.ant-dropdown-menu-submenu-popup {
124
- padding: 0;
125
- border: none;
126
- box-shadow: @shadow-L;
127
-
128
- ul {
129
- min-width: @Dropdown-menu-minWidth;
130
- margin: 0;
131
- padding: 4px;
132
- border-radius: 2px;
74
+ // 容器样式
75
+ .dropdown-wrap {
76
+ border: 1px solid var(--alias-colors-border-strong, #d1d5db);
77
+ border-radius: var(--alias-radius-75, 6px);
78
+ box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
79
+ overflow: hidden;
80
+ padding: 4px 0;
81
+ background-color: var(--alias-colors-bg-skeleton-subtler, #fff);
82
+ }
83
+ // dropdown的容器
84
+ .ant-dropdown.ant-dropdown {
85
+ .dropdown-wrap();
86
+ // dropdown内的ul
87
+ .ant-dropdown-menu-root.ant-dropdown-menu {
88
+ .dropdown-menu-content();
89
+ }
90
+ }
91
+ // 子级menu菜单
92
+ .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-popup {
93
+ .dropdown-wrap();
94
+ // dropdown 二级菜单中的ul
95
+ .ant-dropdown-menu-sub {
96
+ .dropdown-menu-content();
133
97
  }
134
98
  }
@@ -10,9 +10,9 @@ var Search = function Search() {
10
10
  }, /*#__PURE__*/React.createElement("rect", {
11
11
  width: "240",
12
12
  height: "240",
13
- fill: "url(#pattern0)"
13
+ fill: "url(#patternSearch)"
14
14
  }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("pattern", {
15
- id: "pattern0",
15
+ id: "patternSearch",
16
16
  patternContentUnits: "objectBoundingBox",
17
17
  width: "1",
18
18
  height: "1"
@@ -9,9 +9,9 @@ var SearchSmall = function SearchSmall() {
9
9
  }, /*#__PURE__*/React.createElement("rect", {
10
10
  width: "40",
11
11
  height: "40",
12
- fill: "url(#pattern0)"
12
+ fill: "url(#patternSmall)"
13
13
  }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("pattern", {
14
- id: "pattern0",
14
+ id: "patternSmall",
15
15
  patternContentUnits: "objectBoundingBox",
16
16
  width: "1",
17
17
  height: "1"
@@ -7,6 +7,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
7
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; }
8
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; }
9
9
  import classNames from 'classnames';
10
+ import _ from 'lodash';
10
11
  import * as React from 'react';
11
12
  import DataEmptyImg from "./image/Data";
12
13
  import SearchEmptyImg from "./image/Search";
@@ -52,7 +53,7 @@ var Empty = function Empty(props) {
52
53
  };
53
54
  return /*#__PURE__*/React.createElement("div", _extends({
54
55
  className: classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-").concat(getSize(size)), getSize(size)), className)
55
- }, restProps), /*#__PURE__*/React.createElement("div", {
56
+ }, restProps), !_.isNull(imageNode) && /*#__PURE__*/React.createElement("div", {
56
57
  className: "".concat(prefixCls, "-image-wrap "),
57
58
  style: imageStyle
58
59
  }, imageNode), title && /*#__PURE__*/React.createElement("div", {
@@ -1,12 +1,13 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @ald-prefix: ant;
3
+ @ald-prefix: ald;
4
4
 
5
5
  .ald-empty {
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  align-items: center;
9
9
  justify-content: center;
10
+ height: 100%;
10
11
 
11
12
  .ald-empty-image-wrap {
12
13
  display: flex;
@@ -2,7 +2,7 @@
2
2
 
3
3
  .ant-form {
4
4
  &.ant-form {
5
- font-size: 13px;
5
+ font-size: 14px;
6
6
  }
7
7
 
8
8
  .ant-form-item {
@@ -18,18 +18,31 @@
18
18
 
19
19
  label {
20
20
  overflow: hidden;
21
- color: #575757;
22
- font-size: 13px;
23
- font-style: normal;
21
+ height: 32px;
22
+ color: var(--alias-colors-text-subtle, #4b5563);
24
23
  font-weight: 500;
25
24
  line-height: 20px;
26
- height: 32px;
27
25
 
28
26
  &.ant-form-item-no-colon {
29
27
  &::after {
30
28
  display: none;
31
29
  }
32
30
  }
31
+
32
+ .ant-form-item-tooltip {
33
+ margin-left: var(--alias-spacing-25, 2px);
34
+ }
35
+
36
+ &.ant-form-item-required:not(
37
+ .ant-form-item-required-mark-optional
38
+ )::before {
39
+ width: 8px;
40
+ margin-right: var(--alias-spacing-25, 2px);
41
+ color: var(--alias-colors-text-danger, #b91c1c);
42
+ text-align: right;
43
+ font-size: 14px;
44
+ font-weight: 500;
45
+ }
33
46
  }
34
47
  }
35
48
 
@@ -40,8 +53,16 @@
40
53
  .ant-form-item-control-input {
41
54
  min-height: 20px;
42
55
  }
43
-
56
+ // 表单元素的容器
44
57
  .ant-form-item-control-input-content {
58
+ .ald-select {
59
+ width: 100%;
60
+ }
61
+
62
+ .ald-input-number {
63
+ width: 100%;
64
+ }
65
+
45
66
  .ald-switch {
46
67
  display: block;
47
68
  }
@@ -1,7 +1,7 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import * as React from 'react';
3
3
  interface SVGRProps {
4
- size?: number;
4
+ size?: number | string;
5
5
  title?: string;
6
6
  titleId?: string;
7
7
  desc?: string;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
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
+ 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
+ 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 * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var AlertTriangleLine = function AlertTriangleLine(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "m12 3 9 16H3l9-16Zm7.29 15H4.71L12 5.04 19.29 18Zm-7.79-4V9h1v5h-1Zm1.5 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(AlertTriangleLine);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
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
+ 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
+ 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 * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var ArrowDownFill = function ArrowDownFill(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "M7.833 9.583a.833.833 0 0 0-.589 1.423l4.167 4.167a.833.833 0 0 0 1.178 0l4.167-4.167a.833.833 0 0 0-.59-1.423H7.834Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(ArrowDownFill);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
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
+ 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
+ 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 * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var AttentionCircleFill = function AttentionCircleFill(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm10 1a1 1 0 0 1-1-1V8a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1Zm-1.5 3a1.5 1.5 0 0 1 1.5-1.5h.01a1.5 1.5 0 0 1 1.5 1.5v.01a1.5 1.5 0 0 1-1.5 1.5H12a1.5 1.5 0 0 1-1.5-1.5V16Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(AttentionCircleFill);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;
@@ -0,0 +1,35 @@
1
+ var _excluded = ["title", "titleId", "desc", "descId"];
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
+ 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
+ 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 * as React from 'react';
6
+ import { forwardRef, memo } from 'react';
7
+ var AttentionTriangleFill = function AttentionTriangleFill(_ref, ref) {
8
+ var title = _ref.title,
9
+ titleId = _ref.titleId,
10
+ desc = _ref.desc,
11
+ descId = _ref.descId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: props.width || props.size || 16,
16
+ height: props.height || props.size || 16,
17
+ fill: "none",
18
+ viewBox: "0 0 24 24",
19
+ ref: ref,
20
+ "aria-labelledby": titleId,
21
+ "aria-describedby": descId
22
+ }, props), desc ? /*#__PURE__*/React.createElement("desc", {
23
+ id: descId
24
+ }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
+ id: titleId
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
27
+ fill: props.color || 'currentColor',
28
+ fillRule: "evenodd",
29
+ d: "M13.515 2.119c-.674-1.164-2.355-1.164-3.03 0L1.22 18.123c-.675 1.167.166 2.627 1.515 2.627h18.53c1.349 0 2.19-1.46 1.515-2.627L13.515 2.12ZM12 12.75a.75.75 0 0 1-.75-.75V8a.75.75 0 0 1 1.5 0v4a.75.75 0 0 1-.75.75Zm-.995 3.248c0-.548.445-.993.993-.993h.014c.548 0 .993.445.993.993v.014a.993.993 0 0 1-.993.993h-.014a.993.993 0 0 1-.993-.993v-.014Z",
30
+ clipRule: "evenodd"
31
+ }));
32
+ };
33
+ var ForwardRef = /*#__PURE__*/forwardRef(AttentionTriangleFill);
34
+ var Memo = /*#__PURE__*/memo(ForwardRef);
35
+ export default Memo;
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ import * as React from 'react';
3
+ interface SVGRProps {
4
+ size?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }
10
+ declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>>;
11
+ export default Memo;