@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.2
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.
- package/dist/Button/index.d.ts +3 -4
- package/dist/Button/index.js +7 -20
- package/dist/Button/style/size.less +21 -8
- package/dist/Button/style/type.less +61 -33
- package/dist/Button/style/variables.less +229 -44
- package/dist/Checkbox/style/index.less +111 -114
- package/dist/Dropdown/index.d.ts +1 -2
- package/dist/Dropdown/style/index.less +70 -107
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
- package/dist/Icon/components/AlertTriangleLine.js +35 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
- package/dist/Icon/components/ArrowDownFill.js +35 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionCircleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
- package/dist/Icon/components/CheckCircleFill.js +35 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckCircleLightLine.js +38 -0
- package/dist/Icon/components/CheckLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckLightLine.js +35 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CircleLightLine.js +38 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
- package/dist/Icon/components/CloseCircleFill.js +35 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseLightLine.js +35 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +11 -0
- package/dist/Icon/components/Ellipsis.js +35 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
- package/dist/Icon/components/InformationCircleFill.js +35 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/InformationCircleLightLine.js +38 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
- package/dist/Icon/components/LoadingDuotone.js +39 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/TriangleLightLine.js +35 -0
- package/dist/Icon/index.d.ts +16 -3
- package/dist/Icon/index.js +16 -2
- package/dist/Icon/svg/Loading-duotone.svg +6 -0
- package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
- package/dist/Icon/svg/alert-triangle-line.svg +5 -0
- package/dist/Icon/svg/arrow-down-fill.svg +5 -0
- package/dist/Icon/svg/attention-circle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
- package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
- package/dist/Icon/svg/check-circle-duotone.svg +6 -2
- package/dist/Icon/svg/check-circle-fill.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +8 -0
- package/dist/Icon/svg/check-light-line.svg +5 -0
- package/dist/Icon/svg/chevron-down-line.svg +6 -4
- package/dist/Icon/svg/chevron-left-line.svg +6 -4
- package/dist/Icon/svg/chevron-right-line.svg +6 -4
- package/dist/Icon/svg/circle-light-line.svg +9 -0
- package/dist/Icon/svg/close-L-line.svg +11 -9
- package/dist/Icon/svg/close-circle-fill.svg +5 -0
- package/dist/Icon/svg/close-light-line.svg +5 -0
- package/dist/Icon/svg/close-m-line.svg +6 -4
- package/dist/Icon/svg/drag-line.svg +6 -4
- package/dist/Icon/svg/ellipsis.svg +5 -0
- package/dist/Icon/svg/eye-off-line.svg +6 -4
- package/dist/Icon/svg/eye-on-line.svg +14 -8
- package/dist/Icon/svg/fold-down-fill.svg +7 -6
- package/dist/Icon/svg/fold-up-fill.svg +7 -6
- package/dist/Icon/svg/info-circle-duotone.svg +4 -2
- package/dist/Icon/svg/info-circle-line.svg +3 -1
- package/dist/Icon/svg/information-circle-fill.svg +5 -0
- package/dist/Icon/svg/information-circle-light-line.svg +9 -0
- package/dist/Icon/svg/loading-2-line.svg +4 -2
- package/dist/Icon/svg/loading-line.svg +6 -4
- package/dist/Icon/svg/more-vertical-line.svg +6 -4
- package/dist/Icon/svg/search-line.svg +6 -4
- package/dist/Icon/svg/triangle-light-line.svg +5 -0
- package/dist/IconButton/index.d.ts +2 -2
- package/dist/IconButton/index.js +8 -19
- package/dist/IconButton/style/index.less +49 -25
- package/dist/Input/components/Input/index.js +18 -2
- package/dist/Input/components/Password/index.d.ts +0 -5
- package/dist/Input/components/Password/index.js +10 -10
- package/dist/Input/components/TextArea/index.js +15 -2
- package/dist/Input/index.d.ts +2 -5
- package/dist/Input/index.js +1 -3
- package/dist/Input/style/index.less +4 -565
- package/dist/Input/style/reset.less +22 -0
- package/dist/Input/style/size.less +82 -0
- package/dist/Input/style/status.less +105 -0
- package/dist/MemberPicker/style/index.less +2 -2
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/style/index.less +72 -133
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +32 -43
- package/dist/Modal/style/index.less +3 -191
- package/dist/Modal/style/modal.less +132 -0
- package/dist/Modal/style/modalConfirm.less +100 -0
- package/dist/Pagination/index.js +4 -2
- package/dist/Pagination/style/index.less +11 -4
- package/dist/Popconfirm/index.js +8 -7
- package/dist/Popconfirm/style/index.less +16 -6
- package/dist/Popover/style/index.less +29 -29
- package/dist/Radio/components/Group/index.js +3 -5
- package/dist/Radio/components/Radio/index.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/style/index.less +69 -56
- package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
- package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
- package/dist/Select/components/SingleOption.d.ts +2 -2
- package/dist/Select/components/SingleOption.js +3 -1
- package/dist/Select/index.d.ts +5 -0
- package/dist/Select/index.js +26 -40
- package/dist/Select/style/index.less +96 -76
- package/dist/Select/style/layout.less +41 -0
- package/dist/Select/style/option.less +42 -3
- package/dist/Select/style/selectDropdown.less +17 -0
- package/dist/Select/style/size.less +95 -82
- package/dist/Select/style/status.less +69 -21
- package/dist/Select/style/variables.less +8 -15
- package/dist/Skeleton/style/index.less +84 -4
- package/dist/Spin/CustomIcon/index.d.ts +3 -0
- package/dist/Spin/CustomIcon/index.js +20 -15
- package/dist/Spin/CustomIcon/index.less +32 -105
- package/dist/Spin/index.d.ts +2 -0
- package/dist/Spin/index.js +8 -2
- package/dist/Spin/style/index.less +9 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/style/index.less +130 -56
- package/dist/Table/style/index.less +16 -8
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +4 -4
- package/dist/Tabs/style/index.less +20 -16
- package/dist/TextLink/index.d.ts +44 -0
- package/dist/TextLink/index.js +25 -0
- package/dist/TextLink/style/index.d.ts +2 -0
- package/dist/TextLink/style/index.js +2 -0
- package/dist/TextLink/style/index.less +9 -0
- package/dist/TextLink/style/size.less +37 -0
- package/dist/TextLink/style/type.less +44 -0
- package/dist/Tree/style/var.less +1 -1
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.less +1 -0
- package/dist/message/index.js +15 -14
- package/dist/message/style/color.less +22 -41
- package/dist/message/style/index.less +15 -16
- package/dist/notification/demo/index.js +1 -0
- package/dist/notification/index.js +18 -18
- package/dist/notification/style/index.less +12 -6
- package/dist/style/index.less +1 -0
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +3 -3
- package/dist/style/themes/default/scrollBar.less +1 -1
- package/dist/style/var/default.css +1334 -0
- package/package.json +4 -3
- package/dist/Icon/components/Icon.d.ts +0 -32
- package/dist/Icon/components/Icon.js +0 -25
- package/dist/Input/components/Group/index.d.ts +0 -18
- package/dist/Input/components/Group/index.js +0 -19
- package/dist/Menu/style/dropdown.less +0 -61
- package/dist/Select/style/multiple.less +0 -55
- 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
package/dist/message/index.js
CHANGED
|
@@ -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 {
|
|
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(
|
|
19
|
-
|
|
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(
|
|
27
|
-
color:
|
|
28
|
-
|
|
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(
|
|
36
|
-
color:
|
|
37
|
-
|
|
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(
|
|
45
|
-
color:
|
|
46
|
-
|
|
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
|
|
5
|
-
color
|
|
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
|
|
16
|
-
color
|
|
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
|
|
27
|
-
color
|
|
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
|
|
38
|
-
color
|
|
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
|
|
49
|
-
color
|
|
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
|
-
|
|
8
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
font-
|
|
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
|
-
|
|
24
|
-
|
|
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
|
}
|
|
@@ -13,7 +13,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
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,
|
|
16
|
+
import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseLLine, InfoCircleLine } from "../Icon";
|
|
17
17
|
import theme from "../style/themes/default/themeColor.module.less";
|
|
18
18
|
var iconMap = {
|
|
19
19
|
info: /*#__PURE__*/React.createElement(InfoCircleLine, {
|
|
@@ -21,44 +21,44 @@ var iconMap = {
|
|
|
21
21
|
size: 20
|
|
22
22
|
}),
|
|
23
23
|
success: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
size:
|
|
24
|
+
fill: 'var(--global-colors-base-white-950a)',
|
|
25
|
+
color: 'var(--global-colors-green-600)',
|
|
26
|
+
size: 24
|
|
27
27
|
}),
|
|
28
28
|
error: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
|
|
29
29
|
color: "#D64343",
|
|
30
30
|
fill: "#FFFFFF",
|
|
31
|
-
size:
|
|
31
|
+
size: 24
|
|
32
32
|
}),
|
|
33
33
|
warning: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
|
|
34
34
|
color: "#FFB01F",
|
|
35
35
|
fill: "#FFFFFF",
|
|
36
|
-
size:
|
|
36
|
+
size: 24
|
|
37
37
|
})
|
|
38
38
|
};
|
|
39
|
-
var closeX = /*#__PURE__*/React.createElement(
|
|
39
|
+
var closeX = /*#__PURE__*/React.createElement(CloseLLine, {
|
|
40
40
|
size: 20,
|
|
41
|
-
color:
|
|
41
|
+
color: "#171717"
|
|
42
42
|
});
|
|
43
43
|
var getSDefaultStyle = function getSDefaultStyle(type) {
|
|
44
44
|
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
45
|
-
padding: '16px
|
|
45
|
+
padding: '12px 16px',
|
|
46
46
|
background: theme.SC95,
|
|
47
47
|
border: '1px solid',
|
|
48
|
-
borderRadius: '
|
|
48
|
+
borderRadius: '2px',
|
|
49
49
|
boxShadow: theme.SHADOW_LG
|
|
50
50
|
}, type === 'error' && {
|
|
51
|
-
background:
|
|
52
|
-
borderColor:
|
|
51
|
+
background: '#FBECEC',
|
|
52
|
+
borderColor: '#E98B8B'
|
|
53
53
|
}), type === 'success' && {
|
|
54
|
-
background:
|
|
55
|
-
borderColor:
|
|
54
|
+
background: '#E8F9F0',
|
|
55
|
+
borderColor: '#73D8A6'
|
|
56
56
|
}), type === 'warning' && {
|
|
57
|
-
background:
|
|
58
|
-
borderColor:
|
|
57
|
+
background: '#FFFAF0',
|
|
58
|
+
borderColor: '#FFD180'
|
|
59
59
|
}), type === 'info' && {
|
|
60
|
-
background:
|
|
61
|
-
borderColor:
|
|
60
|
+
background: '#F0F6FF',
|
|
61
|
+
borderColor: '#84AADF'
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
var notification = {
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
.ald-notification-notice.ant-notification-notice {
|
|
4
4
|
.ant-notification-notice-icon {
|
|
5
|
-
top:
|
|
5
|
+
top: 10px;
|
|
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: 4px !important;
|
|
12
|
+
margin-left: 32px !important;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
color: var(--colors-gray-900, #171717);
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
.ant-notification-notice-description {
|
|
@@ -16,14 +19,17 @@
|
|
|
16
19
|
font-weight: 400;
|
|
17
20
|
font-size: 13px;
|
|
18
21
|
line-height: 20px;
|
|
19
|
-
color:
|
|
22
|
+
color: var(--colors-gray-800, #575757);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
.ant-notification-notice-close {
|
|
23
|
-
top:
|
|
26
|
+
top: 12px;
|
|
27
|
+
right: 16px;
|
|
28
|
+
width: fit-content;
|
|
29
|
+
height: fit-content;
|
|
24
30
|
|
|
25
|
-
&:hover{
|
|
26
|
-
background:none;
|
|
31
|
+
&:hover {
|
|
32
|
+
background: none;
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
package/dist/style/index.less
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
32
|
+
@border-radius-small: 8px;
|