@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
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export type { CollapsePanelProps, CollapseProps } from './Collapse';
22
22
  export { default as ColorPicker } from './ColorPicker';
23
23
  export type { IColorPickerProps } from './ColorPicker';
24
24
  export { default as ConfigProvider } from './ConfigProvider';
25
+ export type { SizeType } from './ConfigProvider/sizeContext';
25
26
  export { default as DataPreviewTable } from './DataPreviewTable';
26
27
  export type { ITableProps as DataPreviewTableProps, DataPreviewTableRef, PreviewColumn, } from './DataPreviewTable/interface';
27
28
  export { default as DatePicker } from './DatePicker';
@@ -36,7 +37,6 @@ export { default as Empty } from './Empty';
36
37
  export type { IEmptyProps as EmptyProps } from './Empty';
37
38
  export { default as Form } from './Form';
38
39
  export type { FormInstance, FormItemProps, FormProps } from './Form';
39
- export { default as Icon } from './Icon';
40
40
  export { default as IconButton } from './IconButton';
41
41
  export { default as Input } from './Input';
42
42
  export type { IInputProps as InputProps, InputRef, TSize, TextAreaRef, } from './Input';
@@ -83,6 +83,7 @@ export { default as Tabs } from './Tabs';
83
83
  export type { ITabsProps as TabsProps, TabsSize } from './Tabs';
84
84
  export { default as Tag } from './Tag';
85
85
  export type { TagProps, TagType } from './Tag';
86
+ export { default as TextLink } from './TextLink';
86
87
  export { default as Tooltip } from './Tooltip';
87
88
  export type { ActionType as TooltipActionType, ITooltipProps as TooltipProps, } from './Tooltip';
88
89
  export { default as Tree } from './Tree';
package/dist/index.js CHANGED
@@ -20,7 +20,6 @@ export { default as Drawer } from "./Drawer";
20
20
  export { default as Dropdown } from "./Dropdown";
21
21
  export { default as Empty } from "./Empty";
22
22
  export { default as Form } from "./Form";
23
- export { default as Icon } from "./Icon";
24
23
  export { default as IconButton } from "./IconButton";
25
24
  export { default as Input } from "./Input";
26
25
  export { default as InputNumber } from "./InputNumber";
@@ -46,6 +45,7 @@ export { default as Switch } from "./Switch";
46
45
  export { default as Table } from "./Table";
47
46
  export { default as Tabs } from "./Tabs";
48
47
  export { default as Tag } from "./Tag";
48
+ export { default as TextLink } from "./TextLink";
49
49
  export { default as Tooltip } from "./Tooltip";
50
50
  export { default as Tree } from "./Tree";
51
51
  export { default as Typography } from "./Typography";
package/dist/index.less CHANGED
@@ -47,3 +47,4 @@
47
47
  @import './Tree/style/index.less';
48
48
  @import './Upload/style/index.less';
49
49
  @import './Typography/style/index.less';
50
+ @import './TextLink/style/index.less';
@@ -6,8 +6,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
6
6
  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); }
7
7
  import { message as AntdMessage } from 'antd';
8
8
  import React from 'react';
9
- import { AlertTriangleDuotone, CheckCircleDuotone, InfoCircleLine, LoadingLine } from "../Icon";
10
- import styles from "../style/themes/default/themeColor.module.less";
9
+ import { AttentionTriangleFill, CheckCircleFill, CloseCircleFill, InformationCircleFill, LoadingLine } from "../Icon";
11
10
  function isReactNode(value) {
12
11
  return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' || _typeof(value) === 'symbol' || value === null || value === undefined || /*#__PURE__*/React.isValidElement(value);
13
12
  }
@@ -15,35 +14,36 @@ var iconMap = {
15
14
  info: {
16
15
  icon: /*#__PURE__*/React.createElement("div", {
17
16
  className: "ald-message-icon-wrap"
18
- }, /*#__PURE__*/React.createElement(InfoCircleLine, {
19
- fill: styles.B40
17
+ }, /*#__PURE__*/React.createElement(InformationCircleFill, {
18
+ color: 'var(--alias-colors-icon-information)',
19
+ size: 20
20
20
  })),
21
21
  type: 'info'
22
22
  },
23
23
  success: {
24
24
  icon: /*#__PURE__*/React.createElement("div", {
25
25
  className: "ald-message-icon-wrap"
26
- }, /*#__PURE__*/React.createElement(CheckCircleDuotone, {
27
- color: styles.ND0,
28
- fill: styles.SA40
26
+ }, /*#__PURE__*/React.createElement(CheckCircleFill, {
27
+ color: 'var(--alias-colors-icon-success)',
28
+ size: 20
29
29
  })),
30
30
  type: 'success'
31
31
  },
32
32
  error: {
33
33
  icon: /*#__PURE__*/React.createElement("div", {
34
34
  className: "ald-message-icon-wrap"
35
- }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
36
- color: styles.ND0,
37
- fill: styles.SC40
35
+ }, /*#__PURE__*/React.createElement(CloseCircleFill, {
36
+ color: 'var(--alias-colors-icon-danger)',
37
+ size: 20
38
38
  })),
39
39
  type: 'error'
40
40
  },
41
41
  warning: {
42
42
  icon: /*#__PURE__*/React.createElement("div", {
43
43
  className: "ald-message-icon-wrap"
44
- }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
45
- color: styles.ND0,
46
- fill: styles.SB40
44
+ }, /*#__PURE__*/React.createElement(AttentionTriangleFill, {
45
+ color: 'var(--alias-colors-icon-warning)',
46
+ size: 20
47
47
  })),
48
48
  type: 'warning'
49
49
  },
@@ -51,7 +51,8 @@ var iconMap = {
51
51
  icon: /*#__PURE__*/React.createElement("div", {
52
52
  className: "ald-message-icon-wrap"
53
53
  }, /*#__PURE__*/React.createElement(LoadingLine, {
54
- className: "ald-loading-spin"
54
+ className: "ald-loading-spin",
55
+ size: 20
55
56
  })),
56
57
  type: 'loading'
57
58
  }
@@ -1,55 +1,36 @@
1
1
  // info
2
- .ant-message-notice-info{
3
- .ant-message-custom-content{
4
- background-color: @BG100;
5
- color:@NL0;
6
-
7
- .ald-message-icon-wrap{
8
- background-color: @B95;
9
- }
2
+ .ant-message-notice-info {
3
+ .ant-message-custom-content {
4
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
5
+ color: var(--colors-gray-900, #171717);
6
+ border-radius: var(--alias-radius-75, 6px);
10
7
  }
11
8
  }
12
9
  // success
13
- .ant-message-notice-success{
14
- .ant-message-custom-content{
15
- background-color: @SA10;
16
- color:@ND0;
17
-
18
- .ald-message-icon-wrap{
19
- background-color: @SA40;
20
- }
10
+ .ant-message-notice-success {
11
+ .ant-message-custom-content {
12
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
13
+ color: var(--global-colors-base-white-950a, #fff);
21
14
  }
22
15
  }
23
16
  // error
24
- .ant-message-notice-error{
25
- .ant-message-custom-content{
26
- background-color: @SC10;
27
- color:@ND0;
28
-
29
- .ald-message-icon-wrap{
30
- background-color: @SC40;
31
- }
17
+ .ant-message-notice-error {
18
+ .ant-message-custom-content {
19
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
20
+ color: var(--global-colors-base-white-950a, #fff);
32
21
  }
33
22
  }
34
23
  // warning
35
- .ant-message-notice-warning{
36
- .ant-message-custom-content{
37
- background-color: @SB20;
38
- color:@ND0;
39
-
40
- .ald-message-icon-wrap{
41
- background-color: @SB40;
42
- }
24
+ .ant-message-notice-warning {
25
+ .ant-message-custom-content {
26
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
27
+ color: var(--global-colors-base-white-950a, #fff);
43
28
  }
44
29
  }
45
30
  // loading
46
- .ant-message-notice-loading{
47
- .ant-message-custom-content{
48
- background-color: @BG100;
49
- color:@NL0;
50
-
51
- .ald-message-icon-wrap{
52
- background-color: @B95;
53
- }
31
+ .ant-message-notice-loading {
32
+ .ant-message-custom-content {
33
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
34
+ color: var(--colors-gray-900, #171717);
54
35
  }
55
- }
36
+ }
@@ -1,32 +1,31 @@
1
1
  @import '../../style/index.less';
2
- @import './color.less';
3
2
 
4
3
  .ant-message .ant-message-notice {
5
4
  .ant-message-notice-content {
6
5
  padding: 0;
7
- box-shadow: 0 12px 16px -4px rgb(16 24 40 / 0.08),
8
- 0 4px 6px -2px rgb(16 24 40 / 0.03);
6
+ border-radius: var(--alias-radius-75, 6px);
7
+ border: 1px solid var(--alias-colors-border-strong, #d1d5db);
8
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
9
+ box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.04),
10
+ 0 20px 25px -5px rgba(0, 0, 0, 0.1);
9
11
 
10
12
  .ant-message-custom-content {
11
- padding: 0;
12
13
  display: flex;
14
+ overflow: hidden;
15
+ padding: var(--alias-padding-150-minus-1, 12px)
16
+ var(--alias-padding-200-minus-1, 16px);
13
17
  align-items: center;
14
- border-radius: 4px;
15
- padding-right: 16px;
16
- font-size: 13px;
18
+ color: var(--alias-colors-text-default, #1f2937);
19
+ font-size: 14px;
20
+ font-weight: 500;
17
21
  line-height: 20px;
18
- overflow: hidden;
19
- font-weight: 600;
20
22
 
21
23
  .ald-message-icon-wrap {
24
+ display: grid;
25
+ place-items: center;
22
26
  flex-shrink: 0;
23
- width: 40px;
24
- height: 40px;
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- font-size: 16px;
29
- margin-right: 16px;
27
+ font-size: 20px;
28
+ margin-right: 6px;
30
29
  }
31
30
  }
32
31
  }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import { App, Button, notification, Space, TextLink } from "../..";
2
+ import React from 'react';
3
+ export default (function () {
4
+ var notices = function notices(type) {
5
+ notification[type]({
6
+ message: 'Notification Message',
7
+ description: 'description,description,description,description,description,description,description,description',
8
+ style: {
9
+ width: 360,
10
+ maxHeight: 500,
11
+ overflow: 'auto'
12
+ },
13
+ footer: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
14
+ type: "text",
15
+ onClick: function onClick() {
16
+ return console.log('Dismiss');
17
+ }
18
+ }, "Dismiss"), /*#__PURE__*/React.createElement(TextLink, {
19
+ onClick: function onClick() {
20
+ return console.log('Confirm');
21
+ }
22
+ }, "Confirm"))
23
+ });
24
+ };
25
+ return /*#__PURE__*/React.createElement(App, null, /*#__PURE__*/React.createElement(Space, {
26
+ direction: "vertical"
27
+ }, /*#__PURE__*/React.createElement(Button, {
28
+ onClick: function onClick() {
29
+ return notices('success');
30
+ }
31
+ }, "Notification success with message\u3001description"), /*#__PURE__*/React.createElement(Button, {
32
+ onClick: function onClick() {
33
+ return notices('error');
34
+ }
35
+ }, "Notification error with message\u3001description"), /*#__PURE__*/React.createElement(Button, {
36
+ onClick: function onClick() {
37
+ return notices('warning');
38
+ }
39
+ }, "Notification warning with message\u3001description"), /*#__PURE__*/React.createElement(Button, {
40
+ onClick: function onClick() {
41
+ return notices('info');
42
+ }
43
+ }, "Notification info with message\u3001description")));
44
+ });
@@ -6,6 +6,7 @@ export default (function () {
6
6
  message: 'Notification Message',
7
7
  description: 'description,description,description,description,description,description,description,description',
8
8
  style: {
9
+ width: 360,
9
10
  maxHeight: 500,
10
11
  overflow: 'auto'
11
12
  }
@@ -1,65 +1,58 @@
1
- var _excluded = ["icon", "closeIcon"],
2
- _excluded2 = ["icon", "closeIcon"],
3
- _excluded3 = ["icon", "closeIcon"],
4
- _excluded4 = ["icon", "closeIcon"];
5
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); }
6
- 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; }
7
- 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; }
2
+ var _excluded = ["icon", "closeIcon", "description", "footer"],
3
+ _excluded2 = ["icon", "closeIcon", "description", "footer"],
4
+ _excluded3 = ["icon", "closeIcon", "description", "footer"],
5
+ _excluded4 = ["icon", "closeIcon", "description", "footer"];
8
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
10
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
+ 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; }
12
+ 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; }
13
13
  import { notification as AntdNotification } from 'antd';
14
14
  import classnames from 'classnames';
15
15
  import React from 'react';
16
- import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseMLine, InfoCircleLine } from "../Icon";
16
+ import { AttentionTriangleLightLine, CheckCircleLightLine, CloseCircleLightLine, CloseLLine, InformationCircleLightLine } from "../Icon";
17
17
  import theme from "../style/themes/default/themeColor.module.less";
18
18
  var iconMap = {
19
- info: /*#__PURE__*/React.createElement(InfoCircleLine, {
20
- fill: theme.B40,
21
- size: 20
22
- }),
23
- success: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
24
- color: "#16B667",
25
- fill: "#FFFFFF",
26
- size: 20
27
- }),
28
- error: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
29
- color: "#D64343",
30
- fill: "#FFFFFF",
31
- size: 20
32
- }),
33
- warning: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
19
+ info: /*#__PURE__*/React.createElement("div", {
20
+ className: "ald-notification-notice-icon-success"
21
+ }, /*#__PURE__*/React.createElement(InformationCircleLightLine, {
22
+ color: "#22C55E",
23
+ size: 24
24
+ })),
25
+ success: /*#__PURE__*/React.createElement("div", {
26
+ className: "ald-notification-notice-icon-success"
27
+ }, /*#__PURE__*/React.createElement(CheckCircleLightLine, {
28
+ color: 'var(--global-colors-green-600)',
29
+ size: 24
30
+ })),
31
+ error: /*#__PURE__*/React.createElement("div", {
32
+ className: "ald-notification-notice-icon-error"
33
+ }, /*#__PURE__*/React.createElement(CloseCircleLightLine, {
34
+ color: "#EF4444",
35
+ size: 24
36
+ })),
37
+ warning: /*#__PURE__*/React.createElement("div", {
38
+ className: "ald-notification-notice-icon-warning"
39
+ }, /*#__PURE__*/React.createElement(AttentionTriangleLightLine, {
34
40
  color: "#FFB01F",
35
- fill: "#FFFFFF",
36
- size: 20
37
- })
41
+ size: 24
42
+ }))
38
43
  };
39
- var closeX = /*#__PURE__*/React.createElement(CloseMLine, {
44
+ var closeX = /*#__PURE__*/React.createElement(CloseLLine, {
40
45
  size: 20,
41
- color: theme.NL40
46
+ color: "#171717"
42
47
  });
43
- var getSDefaultStyle = function getSDefaultStyle(type) {
44
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
45
- padding: '16px 24px',
46
- background: theme.SC95,
47
- border: '1px solid',
48
- borderRadius: '4px',
49
- boxShadow: theme.SHADOW_LG
50
- }, type === 'error' && {
51
- background: theme.SC95,
52
- borderColor: theme.SC60
53
- }), type === 'success' && {
54
- background: theme.SA95,
55
- borderColor: theme.SA60
56
- }), type === 'warning' && {
57
- background: theme.SB95,
58
- borderColor: theme.SB60
59
- }), type === 'info' && {
60
- background: theme.B95,
61
- borderColor: theme.B60
62
- });
48
+ var getSDefaultStyle = function getSDefaultStyle() {
49
+ return {
50
+ padding: '24px',
51
+ border: '1px solid #D1D5DB',
52
+ borderRadius: '2px',
53
+ boxShadow: theme.SHADOW_LG,
54
+ background: '#FFF'
55
+ };
63
56
  };
64
57
  var notification = {
65
58
  open: function open(config) {
@@ -70,12 +63,21 @@ var notification = {
70
63
  icon = _config$icon === void 0 ? iconMap.success : _config$icon,
71
64
  _config$closeIcon = config.closeIcon,
72
65
  closeIcon = _config$closeIcon === void 0 ? closeX : _config$closeIcon,
66
+ description = config.description,
67
+ footer = config.footer,
73
68
  rest = _objectWithoutProperties(config, _excluded);
74
69
  return AntdNotification.success(_objectSpread(_objectSpread({}, rest), {}, {
75
- style: Object.assign({}, getSDefaultStyle('success'), config.style),
70
+ style: Object.assign({}, getSDefaultStyle(), config.style),
76
71
  className: classnames('ald-notification-notice', config.className),
77
72
  icon: icon,
78
- closeIcon: closeIcon
73
+ closeIcon: closeIcon,
74
+ description: /*#__PURE__*/React.createElement("div", {
75
+ className: "ald-notification-content"
76
+ }, /*#__PURE__*/React.createElement("div", {
77
+ className: 'ald-notification-desc'
78
+ }, description), footer && /*#__PURE__*/React.createElement("div", {
79
+ className: 'ald-notification-footer'
80
+ }, footer))
79
81
  }));
80
82
  },
81
83
  error: function error(config) {
@@ -83,12 +85,21 @@ var notification = {
83
85
  icon = _config$icon2 === void 0 ? iconMap.error : _config$icon2,
84
86
  _config$closeIcon2 = config.closeIcon,
85
87
  closeIcon = _config$closeIcon2 === void 0 ? closeX : _config$closeIcon2,
88
+ description = config.description,
89
+ footer = config.footer,
86
90
  rest = _objectWithoutProperties(config, _excluded2);
87
91
  return AntdNotification.error(_objectSpread(_objectSpread({}, rest), {}, {
88
92
  className: classnames('ald-notification-notice', config.className),
89
- style: Object.assign(getSDefaultStyle('error'), config.style),
93
+ style: Object.assign(getSDefaultStyle(), config.style),
90
94
  icon: icon,
91
- closeIcon: closeIcon
95
+ closeIcon: closeIcon,
96
+ description: /*#__PURE__*/React.createElement("div", {
97
+ className: "ald-notification-content"
98
+ }, /*#__PURE__*/React.createElement("div", {
99
+ className: 'ald-notification-desc'
100
+ }, description), footer && /*#__PURE__*/React.createElement("div", {
101
+ className: 'ald-notification-footer'
102
+ }, footer))
92
103
  }));
93
104
  },
94
105
  warning: function warning(config) {
@@ -96,12 +107,21 @@ var notification = {
96
107
  icon = _config$icon3 === void 0 ? iconMap.warning : _config$icon3,
97
108
  _config$closeIcon3 = config.closeIcon,
98
109
  closeIcon = _config$closeIcon3 === void 0 ? closeX : _config$closeIcon3,
110
+ description = config.description,
111
+ footer = config.footer,
99
112
  rest = _objectWithoutProperties(config, _excluded3);
100
113
  return AntdNotification.warning(_objectSpread(_objectSpread({}, rest), {}, {
101
114
  className: classnames('ald-notification-notice', config.className),
102
- style: Object.assign(getSDefaultStyle('warning'), config.style),
115
+ style: Object.assign(getSDefaultStyle(), config.style),
103
116
  icon: icon,
104
- closeIcon: closeIcon
117
+ closeIcon: closeIcon,
118
+ description: /*#__PURE__*/React.createElement("div", {
119
+ className: "ald-notification-content"
120
+ }, /*#__PURE__*/React.createElement("div", {
121
+ className: 'ald-notification-desc'
122
+ }, description), footer && /*#__PURE__*/React.createElement("div", {
123
+ className: 'ald-notification-footer'
124
+ }, footer))
105
125
  }));
106
126
  },
107
127
  info: function info(config) {
@@ -109,12 +129,21 @@ var notification = {
109
129
  icon = _config$icon4 === void 0 ? iconMap.info : _config$icon4,
110
130
  _config$closeIcon4 = config.closeIcon,
111
131
  closeIcon = _config$closeIcon4 === void 0 ? closeX : _config$closeIcon4,
132
+ description = config.description,
133
+ footer = config.footer,
112
134
  rest = _objectWithoutProperties(config, _excluded4);
113
135
  return AntdNotification.info(_objectSpread(_objectSpread({}, rest), {}, {
114
136
  className: classnames('ald-notification-notice', config.className),
115
- style: Object.assign(getSDefaultStyle('info'), config.style),
137
+ style: Object.assign(getSDefaultStyle(), config.style),
116
138
  icon: icon,
117
- closeIcon: closeIcon
139
+ closeIcon: closeIcon,
140
+ description: /*#__PURE__*/React.createElement("div", {
141
+ className: "ald-notification-content"
142
+ }, /*#__PURE__*/React.createElement("div", {
143
+ className: 'ald-notification-desc'
144
+ }, description), footer && /*#__PURE__*/React.createElement("div", {
145
+ className: 'ald-notification-footer'
146
+ }, footer))
118
147
  }));
119
148
  },
120
149
  destroy: function destroy(key) {
@@ -2,28 +2,72 @@
2
2
 
3
3
  .ald-notification-notice.ant-notification-notice {
4
4
  .ant-notification-notice-icon {
5
- top: 18px;
5
+ top: 24px;
6
6
  }
7
7
 
8
8
  .ant-notification-notice-message {
9
9
  margin-inline-start: 28px;
10
10
  padding-inline-end: 28px;
11
- margin-bottom: 4px;
11
+ margin-bottom: 8px !important;
12
+ margin-left: 56px !important;
13
+ color: var(--alias-colors-text-strong, #111827);
14
+ font-size: 18px;
15
+ font-weight: 600;
16
+ line-height: 28px; /* 155.556% */
12
17
  }
13
18
 
14
19
  .ant-notification-notice-description {
15
20
  margin-inline-start: 28px;
16
- font-weight: 400;
17
- font-size: 13px;
18
- line-height: 20px;
19
- color: @NL40;
21
+ padding-inline-end: 28px;
22
+ margin-bottom: 8px !important;
23
+ margin-left: 56px !important;
24
+ display: flex;
25
+ flex-direction: column;
26
+ gap: 16px;
27
+
28
+ .ald-notification-desc {
29
+ color: var(--alias-colors-text-subtle, #4b5563);
30
+ font-size: 14px;
31
+ font-weight: 400;
32
+ line-height: 20px; /* 142.857% */
33
+ }
20
34
  }
21
35
 
22
36
  .ant-notification-notice-close {
23
- top: 17px;
37
+ top: 24px;
38
+ right: 24px;
39
+ width: fit-content;
40
+ height: fit-content;
24
41
 
25
- &:hover{
26
- background:none;
42
+ &:hover {
43
+ background: none;
27
44
  }
28
45
  }
29
46
  }
47
+
48
+ .ald-notification-notice-icon-success,
49
+ .ald-notification-notice-icon-error,
50
+ .ald-notification-notice-icon-warning,
51
+ .ald-notification-notice-icon-info {
52
+ display: grid;
53
+ place-items: center;
54
+ width: 40px;
55
+ height: 40px;
56
+ border-radius: 20px;
57
+ }
58
+
59
+ .ald-notification-notice-icon-success {
60
+ background: var(--alias-colors-bg-accent-green-subtle-default, #dcfce7);
61
+ }
62
+
63
+ .ald-notification-notice-icon-error {
64
+ background: var(--alias-colors-bg-accent-red-subtle-default, #fee2e2);
65
+ }
66
+
67
+ .ald-notification-notice-icon-warning {
68
+ background: var(--alias-colors-bg-accent-yellow-subtle-default, #fef9c3);
69
+ }
70
+
71
+ .ald-notification-notice-icon-info {
72
+ background: var(--alias-colors-bg-accent-blue-subtle-default, #d4e7fd);
73
+ }
@@ -1,4 +1,5 @@
1
1
  @root-entry-name: default;
2
+ @import './var/default.css';
2
3
  @import './mixins/index.less';
3
4
  @import './core/index.less';
4
5
  @import './themes/default/scrollBar.less';
@@ -1,4 +1,4 @@
1
- @primary-color: @B40;
1
+ @primary-color: #126fdd;
2
2
 
3
3
  // Animation
4
4
  @ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
@@ -2,7 +2,7 @@
2
2
  @import './default.less';
3
3
  /* stylelint-disable-next-line at-rule-no-unknown */
4
4
  @font-family:inter, -apple-system, PingFang SC, BlinkMacSystemFont,"Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
5
- @ald-prefix: ant;
5
+ @ald-prefix: ald;
6
6
  @error-color: #d64343;
7
7
  // large
8
8
  @font-size-large: 16px;
@@ -11,7 +11,7 @@
11
11
  @padding-bottom-large: 6px;
12
12
  @padding-left-large: 12px;
13
13
  @padding-right-large: 12px;
14
- @border-radius-large: 4px;
14
+ @border-radius-large: 8px;
15
15
 
16
16
  // middle
17
17
  @font-size-middle: 13px;
@@ -20,7 +20,7 @@
20
20
  @padding-bottom-middle: 6px;
21
21
  @padding-left-middle: 12px;
22
22
  @padding-right-middle: 12px;
23
- @border-radius-middle: 2px;
23
+ @border-radius-middle: 8px;
24
24
 
25
25
  // small
26
26
  @font-size-small: 12px;
@@ -29,4 +29,4 @@
29
29
  @padding-bottom-small: 6px;
30
30
  @padding-left-small: 8px;
31
31
  @padding-right-small: 8px;
32
- @border-radius-small: 2px;
32
+ @border-radius-small: 8px;
@@ -1,7 +1,7 @@
1
1
  &::-webkit-scrollbar {
2
2
  width: 12px !important;
3
3
  height: 12px !important;
4
- background: var(--colors-neutral-white, #fff);
4
+ background: var(--global-colors-base-white-950a, #fff);
5
5
  opacity: 0.5;
6
6
  }
7
7