@aloudata/aloudata-design 1.10.13 → 2.0.0-beta.1

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 (195) hide show
  1. package/dist/Button/index.d.ts +3 -4
  2. package/dist/Button/index.js +7 -20
  3. package/dist/Button/style/size.less +21 -8
  4. package/dist/Button/style/type.less +61 -33
  5. package/dist/Button/style/variables.less +229 -44
  6. package/dist/Checkbox/style/index.less +111 -114
  7. package/dist/Dropdown/index.d.ts +1 -2
  8. package/dist/Dropdown/style/index.less +70 -107
  9. package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
  10. package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
  11. package/dist/Icon/components/AlertTriangleLine.js +35 -0
  12. package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
  13. package/dist/Icon/components/ArrowDownFill.js +35 -0
  14. package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
  15. package/dist/Icon/components/AttentionCircleFill.js +35 -0
  16. package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
  17. package/dist/Icon/components/AttentionTriangleFill.js +35 -0
  18. package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
  19. package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
  20. package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
  21. package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
  22. package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
  23. package/dist/Icon/components/CheckCircleFill.js +35 -0
  24. package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
  25. package/dist/Icon/components/CheckCircleLightLine.js +38 -0
  26. package/dist/Icon/components/CheckLightLine.d.ts +11 -0
  27. package/dist/Icon/components/CheckLightLine.js +35 -0
  28. package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
  29. package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
  30. package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
  31. package/dist/Icon/components/CircleLightLine.d.ts +11 -0
  32. package/dist/Icon/components/CircleLightLine.js +38 -0
  33. package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
  34. package/dist/Icon/components/CloseCircleFill.js +35 -0
  35. package/dist/Icon/components/CloseLLine.d.ts +1 -1
  36. package/dist/Icon/components/CloseLightLine.d.ts +11 -0
  37. package/dist/Icon/components/CloseLightLine.js +35 -0
  38. package/dist/Icon/components/CloseMLine.d.ts +1 -1
  39. package/dist/Icon/components/DragLine.d.ts +1 -1
  40. package/dist/Icon/components/Ellipsis.d.ts +11 -0
  41. package/dist/Icon/components/Ellipsis.js +35 -0
  42. package/dist/Icon/components/EyeOffLine.d.ts +1 -1
  43. package/dist/Icon/components/EyeOnLine.d.ts +1 -1
  44. package/dist/Icon/components/FoldDownFill.d.ts +1 -1
  45. package/dist/Icon/components/FoldUpFill.d.ts +1 -1
  46. package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
  47. package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
  48. package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
  49. package/dist/Icon/components/InformationCircleFill.js +35 -0
  50. package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
  51. package/dist/Icon/components/InformationCircleLightLine.js +38 -0
  52. package/dist/Icon/components/Loading2Line.d.ts +1 -1
  53. package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
  54. package/dist/Icon/components/LoadingDuotone.js +39 -0
  55. package/dist/Icon/components/LoadingLine.d.ts +1 -1
  56. package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
  57. package/dist/Icon/components/SearchLine.d.ts +1 -1
  58. package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
  59. package/dist/Icon/components/TriangleLightLine.js +35 -0
  60. package/dist/Icon/index.d.ts +16 -3
  61. package/dist/Icon/index.js +16 -2
  62. package/dist/Icon/svg/Loading-duotone.svg +6 -0
  63. package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
  64. package/dist/Icon/svg/alert-triangle-line.svg +5 -0
  65. package/dist/Icon/svg/arrow-down-fill.svg +5 -0
  66. package/dist/Icon/svg/attention-circle-fill.svg +5 -0
  67. package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
  68. package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
  69. package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
  70. package/dist/Icon/svg/check-circle-duotone.svg +6 -2
  71. package/dist/Icon/svg/check-circle-fill.svg +5 -0
  72. package/dist/Icon/svg/check-circle-light-line.svg +8 -0
  73. package/dist/Icon/svg/check-light-line.svg +5 -0
  74. package/dist/Icon/svg/chevron-down-line.svg +6 -4
  75. package/dist/Icon/svg/chevron-left-line.svg +6 -4
  76. package/dist/Icon/svg/chevron-right-line.svg +6 -4
  77. package/dist/Icon/svg/circle-light-line.svg +9 -0
  78. package/dist/Icon/svg/close-L-line.svg +11 -9
  79. package/dist/Icon/svg/close-circle-fill.svg +5 -0
  80. package/dist/Icon/svg/close-light-line.svg +5 -0
  81. package/dist/Icon/svg/close-m-line.svg +6 -4
  82. package/dist/Icon/svg/drag-line.svg +6 -4
  83. package/dist/Icon/svg/ellipsis.svg +5 -0
  84. package/dist/Icon/svg/eye-off-line.svg +6 -4
  85. package/dist/Icon/svg/eye-on-line.svg +14 -8
  86. package/dist/Icon/svg/fold-down-fill.svg +7 -6
  87. package/dist/Icon/svg/fold-up-fill.svg +7 -6
  88. package/dist/Icon/svg/info-circle-duotone.svg +4 -2
  89. package/dist/Icon/svg/info-circle-line.svg +3 -1
  90. package/dist/Icon/svg/information-circle-fill.svg +5 -0
  91. package/dist/Icon/svg/information-circle-light-line.svg +9 -0
  92. package/dist/Icon/svg/loading-2-line.svg +4 -2
  93. package/dist/Icon/svg/loading-line.svg +6 -4
  94. package/dist/Icon/svg/more-vertical-line.svg +6 -4
  95. package/dist/Icon/svg/search-line.svg +6 -4
  96. package/dist/Icon/svg/triangle-light-line.svg +5 -0
  97. package/dist/IconButton/index.d.ts +2 -2
  98. package/dist/IconButton/index.js +8 -19
  99. package/dist/IconButton/style/index.less +49 -25
  100. package/dist/Input/components/Input/index.js +18 -2
  101. package/dist/Input/components/Password/index.d.ts +0 -5
  102. package/dist/Input/components/Password/index.js +10 -10
  103. package/dist/Input/components/TextArea/index.js +15 -2
  104. package/dist/Input/index.d.ts +2 -5
  105. package/dist/Input/index.js +1 -3
  106. package/dist/Input/style/index.less +4 -565
  107. package/dist/Input/style/reset.less +22 -0
  108. package/dist/Input/style/size.less +82 -0
  109. package/dist/Input/style/status.less +105 -0
  110. package/dist/MemberPicker/components/MemberSelection.d.ts +2 -1
  111. package/dist/MemberPicker/components/MemberSelection.js +9 -1
  112. package/dist/MemberPicker/components/MultipleOption.js +1 -1
  113. package/dist/MemberPicker/components/Panel.d.ts +2 -1
  114. package/dist/MemberPicker/components/Panel.js +9 -3
  115. package/dist/MemberPicker/components/PanelWrapper.d.ts +3 -2
  116. package/dist/MemberPicker/components/PanelWrapper.js +5 -2
  117. package/dist/MemberPicker/components/SelectedMemberTags.d.ts +2 -1
  118. package/dist/MemberPicker/components/SelectedMemberTags.js +19 -2
  119. package/dist/MemberPicker/components/UserGroupSelection.d.ts +3 -2
  120. package/dist/MemberPicker/components/UserGroupSelection.js +8 -1
  121. package/dist/MemberPicker/index.js +4 -1
  122. package/dist/MemberPicker/interface.d.ts +1 -0
  123. package/dist/MemberPicker/style/index.less +10 -2
  124. package/dist/Menu/index.js +6 -9
  125. package/dist/Menu/style/index.less +72 -133
  126. package/dist/Modal/index.d.ts +1 -1
  127. package/dist/Modal/index.js +32 -43
  128. package/dist/Modal/style/index.less +3 -191
  129. package/dist/Modal/style/modal.less +132 -0
  130. package/dist/Modal/style/modalConfirm.less +100 -0
  131. package/dist/Pagination/index.js +4 -2
  132. package/dist/Pagination/style/index.less +11 -4
  133. package/dist/Popconfirm/index.js +8 -7
  134. package/dist/Popconfirm/style/index.less +16 -6
  135. package/dist/Popover/style/index.less +29 -29
  136. package/dist/Radio/components/Group/index.js +3 -5
  137. package/dist/Radio/components/Radio/index.js +2 -1
  138. package/dist/Radio/interface/radioGroup.d.ts +1 -1
  139. package/dist/Radio/style/index.less +69 -56
  140. package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
  141. package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
  142. package/dist/Select/components/SingleOption.d.ts +2 -2
  143. package/dist/Select/components/SingleOption.js +3 -1
  144. package/dist/Select/index.d.ts +5 -0
  145. package/dist/Select/index.js +26 -41
  146. package/dist/Select/style/index.less +96 -76
  147. package/dist/Select/style/layout.less +41 -0
  148. package/dist/Select/style/option.less +42 -0
  149. package/dist/Select/style/selectDropdown.less +17 -0
  150. package/dist/Select/style/size.less +95 -82
  151. package/dist/Select/style/status.less +69 -21
  152. package/dist/Select/style/variables.less +9 -16
  153. package/dist/Spin/CustomIcon/index.d.ts +3 -0
  154. package/dist/Spin/CustomIcon/index.js +20 -15
  155. package/dist/Spin/CustomIcon/index.less +32 -105
  156. package/dist/Spin/index.d.ts +2 -0
  157. package/dist/Spin/index.js +8 -2
  158. package/dist/Spin/style/index.less +9 -1
  159. package/dist/Switch/index.d.ts +1 -1
  160. package/dist/Switch/style/index.less +130 -56
  161. package/dist/Table/style/index.less +16 -8
  162. package/dist/Tabs/index.d.ts +2 -2
  163. package/dist/Tabs/index.js +4 -4
  164. package/dist/Tabs/style/index.less +20 -16
  165. package/dist/TextLink/index.d.ts +44 -0
  166. package/dist/TextLink/index.js +25 -0
  167. package/dist/TextLink/style/index.d.ts +2 -0
  168. package/dist/TextLink/style/index.js +2 -0
  169. package/dist/TextLink/style/index.less +9 -0
  170. package/dist/TextLink/style/size.less +37 -0
  171. package/dist/TextLink/style/type.less +44 -0
  172. package/dist/Tree/style/var.less +1 -1
  173. package/dist/ald.min.css +1 -1
  174. package/dist/index.d.ts +2 -1
  175. package/dist/index.js +1 -1
  176. package/dist/index.less +1 -0
  177. package/dist/message/index.js +15 -14
  178. package/dist/message/style/color.less +22 -41
  179. package/dist/message/style/index.less +15 -16
  180. package/dist/notification/demo/index.js +1 -0
  181. package/dist/notification/index.js +18 -18
  182. package/dist/notification/style/index.less +12 -6
  183. package/dist/style/index.less +1 -0
  184. package/dist/style/themes/default/default.less +1 -1
  185. package/dist/style/themes/default/index.less +3 -3
  186. package/dist/style/themes/default/scrollBar.less +1 -1
  187. package/dist/style/var/default.css +1334 -0
  188. package/package.json +4 -3
  189. package/dist/Icon/components/Icon.d.ts +0 -32
  190. package/dist/Icon/components/Icon.js +0 -25
  191. package/dist/Input/components/Group/index.d.ts +0 -18
  192. package/dist/Input/components/Group/index.js +0 -19
  193. package/dist/Menu/style/dropdown.less +0 -61
  194. package/dist/Select/style/multiple.less +0 -55
  195. package/dist/Select/style/single.less +0 -44
@@ -1,165 +1,104 @@
1
1
  @import '../../style/index.less';
2
- @import '../../Icon/index.less';
3
- @import './dropdown.less';
4
2
 
5
- .ant-menu-light.ald-menu.ant-menu {
6
- &.ant-menu-root.ant-menu-vertical {
7
- border: none;
8
- }
3
+ // Menu 和子menu ul样式
4
+ .menu-content {
5
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
6
+ border-radius: 0;
7
+ box-shadow: none;
8
+ padding: 0;
9
9
 
10
- .ant-menu-item,
11
- .ant-menu-submenu,
12
- .ant-menu-item-selected {
10
+ .ant-menu-item-divider,
11
+ .ant-menu-submenu-title-divider {
12
+ background-color: var(--alias-colors-border-subtle, #f3f4f6);
13
13
  margin: 0;
14
- height: initial;
15
- padding: 6px 8px;
16
- line-height: 20px;
17
- font-size: 13px;
18
- width: 100%;
19
- border-radius: 0;
20
- border: none;
21
- background-color: @BG100;
22
- color: @NL0;
23
- transition: none;
24
- cursor: pointer;
25
-
26
- &:hover {
27
- background-color: @BG90;
28
- }
29
-
30
- &:active {
31
- background-color: none;
32
- }
33
-
34
- &:not(.ant-menu-item-selected):active {
35
- background-color: @BG90;
36
- }
37
-
38
- &.ant-menu-item-disabled {
39
- color: @NL50 !important;
40
- transition: none;
41
- background-color: @BG100 !important;
42
- cursor: default;
43
- }
44
-
45
- .ant-menu-submenu-title {
46
- line-height: 20px;
47
- font-size: 13px;
48
- width: 100%;
49
- padding: 0;
50
- height: initial;
51
- margin: 0;
52
-
53
- &:hover {
54
- background: none;
55
- }
56
-
57
- .ant-menu-submenu-expand-icon {
58
- width: initial;
59
- right: 8px;
60
- }
61
- }
62
14
  }
63
15
 
64
- .ant-menu-submenu {
65
- padding: 6px 0;
66
-
67
- .ant-menu-submenu-title {
68
- padding: 0 8px;
69
- }
70
- }
71
-
72
- .ant-menu-title-content {
73
- line-height: 20px;
74
- font-size: 13px;
75
- width: 100%;
76
- padding: 0;
77
- height: initial;
78
- margin: 0;
79
-
80
- &:hover {
81
- background: none;
82
- }
83
- }
84
- }
85
-
86
- .ant-menu-submenu.ant-menu-submenu.ant-menu-submenu-popup.ant-menu {
87
- .ant-menu-vertical {
88
- border: 1px solid @BG70;
89
- border-radius: 2px;
90
- box-shadow: @shadow-L;
16
+ .ant-menu-item-selected {
17
+ background-color: unset;
91
18
  }
92
19
 
20
+ // menu项样式
93
21
  .ant-menu-item,
94
- .ant-menu-submenu,
95
- .ant-menu-item-selected {
96
- margin: 0;
97
- height: initial;
98
- padding: 6px 8px;
22
+ .ant-menu-submenu .ant-menu-submenu-title {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ padding: var(--alias-padding-100, 8px) var(--alias-padding-150, 12px);
27
+ color: var(--alias-colors-text-default, #1f2937);
28
+ font-size: 14px;
29
+ font-style: normal;
30
+ font-weight: 400;
99
31
  line-height: 20px;
100
- font-size: 13px;
101
- width: 100%;
32
+ height: auto;
33
+ margin: 0;
34
+ width: auto;
35
+ gap: var(--alias-spacing-50, 4px);
102
36
  border-radius: 0;
103
- border: none;
104
- background-color: @BG100;
105
- color: @NL0;
106
- transition: none;
107
37
 
108
38
  &:hover {
109
- background-color: @BG90 !important;
110
- }
111
-
112
- &:active {
113
- background-color: none;
39
+ background-color: unset;
114
40
  }
115
41
 
116
- &:not(.ant-menu-item-selected):active {
117
- background-color: @BG90;
42
+ .ant-dropdown-menu-item-icon {
43
+ font-size: 20px;
44
+ margin: 0;
118
45
  }
119
46
 
120
- &.ant-menu-item-disabled {
121
- color: @NL50 !important;
122
- transition: none;
123
- background-color: @BG100 !important;
124
- cursor: default;
47
+ .ant-menu-title-content.ant-menu-title-content {
48
+ text-overflow: ellipsis;
49
+ overflow: hidden;
50
+ white-space: nowrap;
51
+ margin-left: 0;
52
+ flex: 1;
125
53
  }
126
54
 
127
- .ant-menu-submenu-title {
128
- line-height: 20px;
129
- font-size: 13px;
130
- width: 100%;
131
- padding: 0;
132
- height: initial;
133
- margin: 0;
134
-
135
- &:hover {
136
- background: none;
137
- }
55
+ svg {
56
+ flex-shrink: 0;
138
57
  }
139
58
  }
140
59
 
141
60
  .ant-menu-submenu {
142
- padding: 6px 0;
61
+ border-radius: 0;
62
+ }
63
+
64
+ .ant-menu-item.ant-menu-item-disabled {
65
+ cursor: default;
66
+ color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
143
67
 
144
- .ant-menu-submenu-title {
145
- padding: 0 8px;
68
+ &:hover {
69
+ background-color: var(--alias-colors-bg-transp, rgba(0, 0, 0, 0));
146
70
  }
147
71
  }
148
72
 
149
- .ant-menu.ant-menu-sub {
150
- padding: 0;
73
+ .ant-menu-item:hover,
74
+ .ant-menu-submenu:hover,
75
+ .ant-menu-submenu.ant-menu-submenu-active {
76
+ background-color: var(
77
+ --alias-colors-bg-interaction-hover,
78
+ rgba(0, 0, 0, 0.05)
79
+ );
151
80
  }
81
+ }
152
82
 
153
- .ant-menu-title-content {
154
- line-height: 20px;
155
- font-size: 13px;
156
- width: 100%;
157
- padding: 0;
158
- height: initial;
159
- margin: 0;
83
+ // 容器样式
84
+ .menu-wrap {
85
+ border: 1px solid var(--alias-colors-border-strong, #d1d5db);
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);
89
+ overflow: hidden;
90
+ }
160
91
 
161
- &:hover {
162
- background: none;
163
- }
92
+ // menu菜单
93
+ .ant-menu-root.ant-menu {
94
+ border: none;
95
+ .menu-content();
96
+ }
97
+
98
+ .ant-menu-submenu.ant-menu-submenu-popup {
99
+ .menu-wrap();
100
+ // 二级菜单中的ul
101
+ .ant-menu-sub {
102
+ .menu-content();
164
103
  }
165
104
  }
@@ -18,7 +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
+ hideHeaderBottomBorder?: boolean;
22
22
  }
23
23
  export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType' | 'icon'> {
24
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", "hasHeaderBottomBorder"],
3
+ _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "hideHeaderBottomBorder", "virtualScrollBar"],
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"],
@@ -20,7 +20,7 @@ import useModal from 'antd/lib/modal/useModal/index';
20
20
  import classNames from 'classnames';
21
21
  import React from 'react';
22
22
  import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
23
- import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseLLine, InfoCircleDuotone } from "../Icon";
23
+ import { AttentionTriangleLightLine, CheckCircleLightLine, CloseLLine, InformationCircleLightLine } from "../Icon";
24
24
  import IconButton from "../IconButton";
25
25
  import ScrollArea from "../ScrollArea";
26
26
 
@@ -49,18 +49,20 @@ function getButtonProps(buttonProps, defaultBtnType, okType) {
49
49
  shape: getShape(shape)
50
50
  });
51
51
  }
52
- var ModalTitle = function ModalTitle(_ref) {
52
+ var ModalTitle = function ModalTitle(_ref, type) {
53
53
  var icon = _ref.icon,
54
54
  title = _ref.title,
55
55
  subTitle = _ref.subTitle;
56
56
  return /*#__PURE__*/React.createElement("div", {
57
57
  className: 'ald-modal-title-container'
58
- }, icon, /*#__PURE__*/React.createElement("div", {
58
+ }, /*#__PURE__*/React.createElement("div", {
59
+ className: classNames('ald-modal-icon-container', _defineProperty({}, "ald-modal-cion-".concat(type, "-container"), type))
60
+ }, icon), /*#__PURE__*/React.createElement("div", {
59
61
  className: 'ald-modal-text-container'
60
62
  }, title && /*#__PURE__*/React.createElement("div", {
61
- className: 'title'
63
+ className: 'ald-modal-text-title'
62
64
  }, title), subTitle && /*#__PURE__*/React.createElement("div", {
63
- className: 'subTitle'
65
+ className: 'ald-modal-text-sub-title'
64
66
  }, subTitle)));
65
67
  };
66
68
  var OriginModal = function OriginModal(props) {
@@ -81,30 +83,19 @@ var OriginModal = function OriginModal(props) {
81
83
  icon = props.icon,
82
84
  title = props.title,
83
85
  paddingLess = props.paddingLess,
86
+ hideHeaderBottomBorder = props.hideHeaderBottomBorder,
84
87
  virtualScrollBar = props.virtualScrollBar,
85
- _props$hasHeaderBotto = props.hasHeaderBottomBorder,
86
- hasHeaderBottomBorder = _props$hasHeaderBotto === void 0 ? false : _props$hasHeaderBotto,
87
88
  restProps = _objectWithoutProperties(props, _excluded2);
88
89
  return /*#__PURE__*/React.createElement(AntdModal, _extends({}, restProps, {
89
90
  title: ModalTitle({
90
91
  icon: icon,
91
92
  title: title,
92
93
  subTitle: subTitle
93
- })
94
- // title={
95
- // <div className={'ald-modal-title-container'}>
96
- // {icon}
97
- // <div className={'ald-modal-text-container'}>
98
- // {title && <div className={'title'}>{title}</div>}
99
- // {subTitle && <div className={'subTitle'}>{subTitle}</div>}
100
- // </div>
101
- // </div>
102
- // }
103
- ,
94
+ }),
104
95
  className: classNames('ald-modal', className, {
105
96
  'ald-modal-padding-less': paddingLess,
106
97
  'ald-modal-virtual-scroll-bar': virtualScrollBar,
107
- 'ald-modal-header-bottom-border': hasHeaderBottomBorder
98
+ 'ald-modal-show-header-bottom-border': hideHeaderBottomBorder
108
99
  }),
109
100
  okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
110
101
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
@@ -113,10 +104,9 @@ var OriginModal = function OriginModal(props) {
113
104
  width: width || DEFAULT_WIDTH,
114
105
  closeIcon: closeIcon || /*#__PURE__*/React.createElement(IconButton, {
115
106
  icon: /*#__PURE__*/React.createElement(CloseLLine, {
116
- color: "#171717",
117
107
  size: 20
118
108
  }),
119
- size: 'middle'
109
+ size: "middle"
120
110
  })
121
111
  }), virtualScrollBar ? /*#__PURE__*/React.createElement(ScrollArea, {
122
112
  className: 'ald-modal-body-wrap',
@@ -146,14 +136,13 @@ Modal.info = function infoFn(props) {
146
136
  width: width || DEFAULT_WIDTH,
147
137
  className: classNames('ald-modal', className),
148
138
  title: ModalTitle({
149
- icon: /*#__PURE__*/React.createElement(InfoCircleDuotone, {
150
- size: 32,
151
- color: '#3271C9',
152
- className: "ald-modal-close"
139
+ icon: /*#__PURE__*/React.createElement(InformationCircleLightLine, {
140
+ size: 24,
141
+ color: '#2986F4'
153
142
  }),
154
143
  title: title,
155
144
  subTitle: subTitle
156
- }),
145
+ }, 'info'),
157
146
  okText: okText,
158
147
  cancelText: cancelText
159
148
  }, restProps));
@@ -179,14 +168,14 @@ Modal.success = function successFn(props) {
179
168
  width: width || DEFAULT_WIDTH,
180
169
  className: classNames('ald-modal', className),
181
170
  title: ModalTitle({
182
- icon: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
171
+ icon: /*#__PURE__*/React.createElement(CheckCircleLightLine, {
183
172
  fill: "#fff",
184
- color: "#16B667",
185
- size: 32
173
+ color: "#22C55E",
174
+ size: 24
186
175
  }),
187
176
  title: title,
188
177
  subTitle: subTitle
189
- }),
178
+ }, 'success'),
190
179
  okText: okText,
191
180
  cancelText: cancelText
192
181
  }, restProps));
@@ -212,14 +201,14 @@ Modal.error = function errorFn(props) {
212
201
  width: width || DEFAULT_WIDTH,
213
202
  className: classNames('ald-modal', className),
214
203
  title: ModalTitle({
215
- icon: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
216
- color: "#D64343",
204
+ icon: /*#__PURE__*/React.createElement(AttentionTriangleLightLine, {
205
+ color: "#EF4444",
217
206
  fill: '#fff',
218
- size: 32
207
+ size: 24
219
208
  }),
220
209
  title: title,
221
210
  subTitle: subTitle
222
- }),
211
+ }, 'error'),
223
212
  okText: okText,
224
213
  cancelText: cancelText
225
214
  }, restProps));
@@ -246,13 +235,13 @@ Modal.warning = function modalWarn(props) {
246
235
  // className: classNames('ald-modal-warning', className),
247
236
  className: classNames('ald-modal ald-modal-warning', className),
248
237
  title: ModalTitle({
249
- icon: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
250
- color: "#FFB01F",
251
- size: 32
238
+ icon: /*#__PURE__*/React.createElement(AttentionTriangleLightLine, {
239
+ color: "#EAB308",
240
+ size: 24
252
241
  }),
253
242
  title: title,
254
243
  subTitle: subTitle
255
- }),
244
+ }, 'warning'),
256
245
  okText: okText,
257
246
  cancelText: cancelText
258
247
  }, restProps));
@@ -278,14 +267,14 @@ Modal.confirm = function confirmFn(props) {
278
267
  width: width || DEFAULT_WIDTH,
279
268
  className: classNames('ald-modal', className),
280
269
  title: ModalTitle({
281
- icon: /*#__PURE__*/React.createElement(InfoCircleDuotone, {
282
- size: 32,
283
- color: '#3271C9',
270
+ icon: /*#__PURE__*/React.createElement(InformationCircleLightLine, {
271
+ size: 24,
272
+ color: '#2986F4',
284
273
  className: "ald-modal-close"
285
274
  }),
286
275
  title: title,
287
276
  subTitle: subTitle
288
- }),
277
+ }, 'confirm'),
289
278
  okText: okText,
290
279
  cancelText: cancelText
291
280
  }, restProps));
@@ -1,195 +1,7 @@
1
- @import '../../IconButton/style/index.less';
2
1
  @import '../../style/index.less';
2
+ @import '../../IconButton/style/index.less';
3
3
  @import '../../ScrollArea/style/index.less';
4
4
  @import '../../Button/style/index.less';
5
5
  @import './polyfill/index.less';
6
-
7
- .ald-modal.ald-modal {
8
- animation-duration: 10ms !important;
9
- // 移除缩放效果
10
- &.ant-zoom-enter,
11
- &.ant-zoom-leave {
12
- animation-duration: 10ms !important;
13
- }
14
-
15
- .ant-modal-content {
16
- padding: 0;
17
- box-shadow: none;
18
- border-radius: 4px;
19
- border: 1px solid @BG60;
20
- overflow: hidden;
21
-
22
- .ant-modal-body {
23
- min-height: 130px;
24
- max-height: 68vh;
25
- line-height: 20px;
26
- font-size: 13px;
27
- overflow-y: auto;
28
- padding: 16px 20px;
29
- }
30
- }
31
-
32
- .ald-modal-close {
33
- position: relative;
34
- // top: 5px;
35
- // left: -4px;
36
- }
37
-
38
- .ald-modal-title-container {
39
- display: flex;
40
- align-items: center;
41
- gap: 8px;
42
-
43
- .ald-modal-text-container {
44
- // margin-left: 12px;
45
- flex: 1;
46
- }
47
-
48
- .title {
49
- color: @NL0;
50
- font-weight: 600;
51
- font-size: 16px;
52
- line-height: 24px;
53
- }
54
-
55
- .subTitle {
56
- margin-top: 4px;
57
- color: @NL40;
58
- font-weight: 400;
59
- font-size: 12px;
60
- line-height: 16px;
61
- }
62
- }
63
-
64
- .ant-modal-header {
65
- padding: 16px 20px;
66
- margin-bottom: 0;
67
-
68
- .ant-modal-title {
69
- width: 95%;
70
- color: @NL0;
71
- font-weight: 600;
72
- font-size: 16px;
73
- font-family: 'PingFang SC', sans-serif;
74
- font-style: normal;
75
- line-height: 24px;
76
- }
77
- }
78
-
79
- &.ald-modal-virtual-scroll-bar {
80
- .ant-modal-body {
81
- overflow: hidden;
82
- padding: 0;
83
- }
84
-
85
- .ald-modal-body-wrap {
86
- .ald-modal-body-wrap-inner {
87
- max-height: 68vh;
88
- padding: 0 23px;
89
- }
90
- }
91
- }
92
-
93
- &.ald-modal-padding-less {
94
- .ant-modal-body {
95
- padding: 0;
96
- }
97
- }
98
-
99
- .ant-modal-footer {
100
- position: relative;
101
- margin-top: 0;
102
- padding: 12px 20px;
103
- background: #f4f4f4;
104
-
105
- .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
106
- margin-bottom: 0;
107
- margin-left: 12px;
108
- }
109
-
110
- &::before {
111
- content: '';
112
- position: absolute;
113
- top: 0;
114
- left: 0;
115
- width: 100%;
116
- height: 1px;
117
- background-color: var(--colors-gray-300, #e8e8e8);
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
- }
131
- }
132
-
133
- .ald-modal-padding-less {
134
- .ant-modal-content {
135
- .ant-modal-body {
136
- .ald-modal-body-wrap {
137
- .ald-modal-body-wrap-inner {
138
- padding: 0;
139
- }
140
- }
141
- }
142
- }
143
- }
144
-
145
- .ald-modal.ant-modal-confirm {
146
- .ant-modal-body {
147
- padding-bottom: 12px !important;
148
- }
149
-
150
- .ant-modal-confirm-body > .i-icon {
151
- & + .ant-modal-confirm-title {
152
- flex: 1;
153
- overflow: initial;
154
- margin-inline-start: 12px;
155
-
156
- & + .ant-modal-confirm-content {
157
- margin-block-start: 16px;
158
- margin-left: 28px;
159
- }
160
- }
161
- }
162
-
163
- .ant-modal-confirm-body {
164
- display: block;
165
-
166
- > span.anticon {
167
- display: none;
168
-
169
- + .ant-modal-confirm-title + .ant-modal-confirm-content {
170
- margin-left: 40px;
171
- margin-top: 4px;
172
- }
173
- }
174
- }
175
-
176
- .ant-modal-confirm-btns {
177
- margin-block-start: 16px;
178
- }
179
- }
180
-
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
- // }
6
+ @import './modal.less';
7
+ @import './modalConfirm.less';