@aloudata/aloudata-design 2.18.4 → 2.19.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/AldSelect/BaseSelect.d.ts +1 -1
- package/dist/AldSelect/BaseSelect.js +2 -2
- package/dist/AldSelect/interface.d.ts +1 -2
- package/dist/AldSelect/style/color.less +25 -16
- package/dist/AldSelect/style/index.less +2 -2
- package/dist/Avatar/component/Avatar/index.js +8 -19
- package/dist/Avatar/component/Avatar/type.js +3 -3
- package/dist/Avatar/style/index.less +10 -3
- package/dist/Badge/index.js +1 -27
- package/dist/Badge/style/index.less +27 -1
- package/dist/Button/style/index.less +1 -0
- package/dist/Button/style/type.less +5 -5
- package/dist/Button/style/variables.less +70 -203
- package/dist/Checkbox/style/index.less +20 -37
- package/dist/Collapse/index.js +2 -2
- package/dist/Collapse/style/index.less +7 -7
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js +0 -3
- package/dist/ColorPicker/index.js +3 -3
- package/dist/ColorPicker/style/complex.less +8 -9
- package/dist/ColorPicker/style/index.less +7 -8
- package/dist/DataPreviewTable/components/Body/Cell.js +1 -1
- package/dist/DataPreviewTable/style/index.less +9 -9
- package/dist/DatePicker/style/index.less +3 -3
- package/dist/Divider/style/index.less +1 -1
- package/dist/DoubleCircleIcon/style/index.less +12 -12
- package/dist/Empty/style/index.less +3 -3
- package/dist/Form/style/index.less +4 -4
- package/dist/HighlightText/style/index.less +1 -1
- package/dist/Icon/components/CancelledCircleFill.d.ts +1 -2
- package/dist/Icon/components/CancelledCircleFill.js +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +1 -2
- package/dist/Icon/components/Ellipsis.js +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +1 -2
- package/dist/Icon/components/LoadingDuotone.js +1 -1
- package/dist/Icon/components/SortAscendingOrderColor.d.ts +1 -2
- package/dist/Icon/components/SortAscendingOrderColor.js +1 -1
- package/dist/Icon/components/SortColor.d.ts +1 -2
- package/dist/Icon/components/SortColor.js +1 -1
- package/dist/Icon/components/SortDescendingOrderColor.d.ts +1 -2
- package/dist/Icon/components/SortDescendingOrderColor.js +1 -1
- package/dist/Icon/svg/Cancelled-Circle-fill.svg +2 -1
- package/dist/Icon/svg/Loading-duotone.svg +3 -2
- package/dist/Icon/svg/Sort-Ascending-order-Color.svg +2 -1
- package/dist/Icon/svg/Sort-Color.svg +3 -2
- package/dist/Icon/svg/Sort-Descending-order-Color.svg +2 -1
- package/dist/Icon/svg/ellipsis.svg +2 -1
- package/dist/IconButton/style/index.less +17 -17
- package/dist/Input/components/Input/index.js +1 -1
- package/dist/Input/components/TextArea/index.js +1 -1
- package/dist/Input/style/index.less +1 -1
- package/dist/Input/style/size.less +11 -11
- package/dist/Input/style/status.less +21 -36
- package/dist/InputNumber/style/index.less +22 -25
- package/dist/InputSearch/style/index.less +8 -8
- package/dist/List/style/index.less +11 -11
- package/dist/LogicTree/style/DisplayLogicItem.less +3 -3
- package/dist/LogicTree/style/LoginItem.less +13 -13
- package/dist/MemberPicker/style/index.less +27 -30
- package/dist/Menu/style/index.less +22 -21
- package/dist/Modal/index.js +12 -12
- package/dist/Modal/style/modal.less +17 -18
- package/dist/Modal/style/modalConfirm.less +11 -26
- package/dist/Modal/style/polyfill/index.less +3 -3
- package/dist/Pagination/style/index.less +3 -4
- package/dist/Popconfirm/index.js +2 -2
- package/dist/Popconfirm/style/index.less +6 -6
- package/dist/Popover/style/index.less +8 -8
- package/dist/Progress/style/index.less +2 -5
- package/dist/Radio/style/index.less +39 -49
- package/dist/RenameInput/style/index.less +3 -3
- package/dist/Result/index.js +8 -7
- package/dist/Result/style/index.less +4 -4
- package/dist/ScrollArea/style/index.less +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/style/emptyShowAll.less +1 -1
- package/dist/Select/style/index.less +5 -5
- package/dist/Select/style/layout.less +1 -1
- package/dist/Select/style/option.less +7 -10
- package/dist/Select/style/selectDropdown.less +4 -4
- package/dist/Select/style/status.less +21 -24
- package/dist/Select/style/variables.less +3 -3
- package/dist/Skeleton/style/index.less +15 -15
- package/dist/Slider/style/index.less +56 -3
- package/dist/Spin/style/customIcon.less +2 -2
- package/dist/StatusLight/index.js +9 -24
- package/dist/StatusLight/style/index.less +58 -6
- package/dist/Steps/components/Step/index.js +4 -4
- package/dist/Steps/style/index.less +26 -22
- package/dist/Switch/style/index.less +1 -1
- package/dist/Switch/style/status.less +3 -3
- package/dist/Table/components/Header.js +6 -3
- package/dist/Table/helper.d.ts +1 -1
- package/dist/Table/style/index.less +18 -18
- package/dist/Tabs/style/index.less +9 -9
- package/dist/Tag/index.js +81 -21
- package/dist/Tag/style/index.less +3 -2
- package/dist/TextLink/style/type.less +16 -16
- package/dist/Tooltip/style/index.less +5 -5
- package/dist/Tree/Tree.js +2 -2
- package/dist/Tree/demo/basic/index.js +1 -1
- package/dist/Tree/style/checkbox.less +17 -27
- package/dist/Tree/style/index.less +4 -4
- package/dist/Tree/style/mixin.less +3 -3
- package/dist/Tree/style/reset.less +1 -1
- package/dist/Tree/style/var.less +19 -19
- package/dist/Tree/utils/iconUtil.js +1 -1
- package/dist/User/style/index.less +3 -3
- package/dist/ald.min.css +5 -1
- package/dist/message/index.js +4 -4
- package/dist/message/style/index.less +11 -14
- package/dist/notification/index.js +5 -5
- package/dist/notification/style/index.less +6 -7
- package/dist/style/components/toastify.css +27 -27
- package/dist/style/index.less +2 -2
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +1 -1
- package/dist/style/themes/default/scrollBar.less +8 -4
- package/dist/style/themes/default/themeColor.module.less +177 -183
- package/dist/style/var/default.css +1156 -256
- package/package.json +2 -3
- package/dist/Avatar/component/Avatar/avatar.d.ts +0 -3
- package/dist/Avatar/component/Avatar/avatar.js +0 -23
package/dist/Tag/index.js
CHANGED
|
@@ -22,8 +22,40 @@ export default function Tag(props) {
|
|
|
22
22
|
maxWidth = props.maxWidth,
|
|
23
23
|
className = props.className,
|
|
24
24
|
title = props.title;
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var tokens = getStatusTokens(status);
|
|
26
|
+
var providedIsHex = isHexColor(color);
|
|
27
|
+
var providedColor = color;
|
|
28
|
+
|
|
29
|
+
// background color
|
|
30
|
+
var bgColor = function () {
|
|
31
|
+
if (mode === 'border') {
|
|
32
|
+
return 'var(--background-default)';
|
|
33
|
+
}
|
|
34
|
+
if (providedColor) {
|
|
35
|
+
if (providedIsHex) return convertHexToRGBA(providedColor, mode === 'fill' ? 0.16 : 0.06);
|
|
36
|
+
// CSS var or named color -> mix to achieve subtle transparency
|
|
37
|
+
return "color-mix(in srgb, ".concat(providedColor, " ").concat(mode === 'fill' ? 16 : 6, "%, transparent)");
|
|
38
|
+
}
|
|
39
|
+
// use status tokens
|
|
40
|
+
return mode === 'fill' ? tokens.bgSubtle : tokens.bgOnSubtle;
|
|
41
|
+
}();
|
|
42
|
+
// text color
|
|
43
|
+
var textColor = function () {
|
|
44
|
+
if (providedColor) {
|
|
45
|
+
if (providedIsHex) return convertHexToRGBA(providedColor, 1);
|
|
46
|
+
return providedColor;
|
|
47
|
+
}
|
|
48
|
+
return tokens.text;
|
|
49
|
+
}();
|
|
50
|
+
// border color
|
|
51
|
+
var borderColor = function () {
|
|
52
|
+
if (mode === 'fill') return 'transparent';
|
|
53
|
+
if (providedColor) {
|
|
54
|
+
if (providedIsHex) return convertHexToRGBA(providedColor, 0.32);
|
|
55
|
+
return "color-mix(in srgb, ".concat(providedColor, " 32%, transparent)");
|
|
56
|
+
}
|
|
57
|
+
return tokens.borderSubtle;
|
|
58
|
+
}();
|
|
27
59
|
var onTagClick = useCallback(function (e) {
|
|
28
60
|
if (disabled) {
|
|
29
61
|
return;
|
|
@@ -42,8 +74,8 @@ export default function Tag(props) {
|
|
|
42
74
|
className: classNames(prefixCls('container'), (_classNames = {}, _defineProperty(_classNames, prefixCls('small'), size === 'small'), _defineProperty(_classNames, prefixCls('large'), size === 'large'), _defineProperty(_classNames, prefixCls('disabled'), disabled), _classNames), className || ''),
|
|
43
75
|
style: {
|
|
44
76
|
backgroundColor: bgColor,
|
|
45
|
-
color:
|
|
46
|
-
borderColor:
|
|
77
|
+
color: textColor,
|
|
78
|
+
borderColor: borderColor,
|
|
47
79
|
maxWidth: maxWidth || DEFAULT_MAX_WIDTH
|
|
48
80
|
},
|
|
49
81
|
onClick: onTagClick
|
|
@@ -58,26 +90,10 @@ export default function Tag(props) {
|
|
|
58
90
|
className: prefixCls('close-btn'),
|
|
59
91
|
onClick: onCloseBtnClick
|
|
60
92
|
}, /*#__PURE__*/React.createElement(CloseLightLine, {
|
|
61
|
-
color:
|
|
93
|
+
color: textColor,
|
|
62
94
|
size: 16
|
|
63
95
|
})) : null);
|
|
64
96
|
}
|
|
65
|
-
function getColor(color, status) {
|
|
66
|
-
if (color) {
|
|
67
|
-
return color;
|
|
68
|
-
}
|
|
69
|
-
var status2ColorMap = {
|
|
70
|
-
success: '#15803D',
|
|
71
|
-
info: '#126FDD',
|
|
72
|
-
warning: '#A16207',
|
|
73
|
-
error: '#B91C1C',
|
|
74
|
-
default: '#374151'
|
|
75
|
-
};
|
|
76
|
-
if (status) {
|
|
77
|
-
return status2ColorMap[status];
|
|
78
|
-
}
|
|
79
|
-
return status2ColorMap['info'];
|
|
80
|
-
}
|
|
81
97
|
var ALD_PREFIX = 'ald-tag';
|
|
82
98
|
export function prefixCls(className) {
|
|
83
99
|
return "".concat(ALD_PREFIX, "-").concat(className);
|
|
@@ -88,4 +104,48 @@ function convertHexToRGBA(hex, opacity) {
|
|
|
88
104
|
var g = parseInt(tempHex.substring(2, 4), 16);
|
|
89
105
|
var b = parseInt(tempHex.substring(4, 6), 16);
|
|
90
106
|
return "rgba(".concat(r, ",").concat(g, ",").concat(b, ",").concat(opacity, ")");
|
|
107
|
+
}
|
|
108
|
+
function isHexColor(value) {
|
|
109
|
+
return !!value && /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(value);
|
|
110
|
+
}
|
|
111
|
+
function getStatusTokens(status) {
|
|
112
|
+
// Map status to CSS variables defined in default.css
|
|
113
|
+
switch (status) {
|
|
114
|
+
case 'success':
|
|
115
|
+
return {
|
|
116
|
+
text: 'var(--alias-colors-text-success)',
|
|
117
|
+
bgSubtle: 'var(--background-positive-subtle)',
|
|
118
|
+
bgOnSubtle: 'var(--background-positive-on-subtle)',
|
|
119
|
+
borderSubtle: 'var(--border-positive-subtle)'
|
|
120
|
+
};
|
|
121
|
+
case 'warning':
|
|
122
|
+
return {
|
|
123
|
+
text: 'var(--alias-colors-text-warning)',
|
|
124
|
+
bgSubtle: 'var(--background-warning-subtle)',
|
|
125
|
+
bgOnSubtle: 'var(--background-warning-on-subtle)',
|
|
126
|
+
borderSubtle: 'var(--border-warning-subtle)'
|
|
127
|
+
};
|
|
128
|
+
case 'error':
|
|
129
|
+
return {
|
|
130
|
+
text: 'var(--alias-colors-text-danger)',
|
|
131
|
+
bgSubtle: 'var(--background-negative-subtle)',
|
|
132
|
+
bgOnSubtle: 'var(--background-negative-on-subtle)',
|
|
133
|
+
borderSubtle: 'var(--border-negative-subtle)'
|
|
134
|
+
};
|
|
135
|
+
case 'default':
|
|
136
|
+
return {
|
|
137
|
+
text: 'var(--alias-colors-text-default)',
|
|
138
|
+
bgSubtle: 'var(--background-neutral-subtle)',
|
|
139
|
+
bgOnSubtle: 'var(--background-neutral-on-subtle)',
|
|
140
|
+
borderSubtle: 'var(--border-neutral-subtle)'
|
|
141
|
+
};
|
|
142
|
+
case 'info':
|
|
143
|
+
default:
|
|
144
|
+
return {
|
|
145
|
+
text: 'var(--alias-colors-text-information)',
|
|
146
|
+
bgSubtle: 'var(--background-informative-subtle)',
|
|
147
|
+
bgOnSubtle: 'var(--background-informative-on-subtle)',
|
|
148
|
+
borderSubtle: 'var(--border-informative-subtle)'
|
|
149
|
+
};
|
|
150
|
+
}
|
|
91
151
|
}
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
padding: 1px 5px;
|
|
6
6
|
align-items: center;
|
|
7
|
-
column-gap: var(--alias-spacing-50
|
|
7
|
+
column-gap: var(--alias-spacing-50);
|
|
8
8
|
border-width: 1px;
|
|
9
9
|
border-style: solid;
|
|
10
|
-
border-radius: var(--alias-radius-50
|
|
10
|
+
border-radius: var(--alias-radius-50);
|
|
11
11
|
font-size: 14px;
|
|
12
12
|
line-height: 20px;
|
|
13
13
|
overflow: hidden;
|
|
14
|
+
cursor: default;
|
|
14
15
|
|
|
15
16
|
/** 尺寸 **/
|
|
16
17
|
&.ald-tag-small {
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
.ald-text-link-primary {
|
|
2
|
-
color: var(--alias-colors-link-default
|
|
2
|
+
color: var(--alias-colors-link-default);
|
|
3
3
|
|
|
4
4
|
.ald-icon {
|
|
5
|
-
color:
|
|
5
|
+
color: var(--interaction-default-hover);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&:hover {
|
|
9
|
-
color: var(--alias-colors-link-hover
|
|
9
|
+
color: var(--alias-colors-link-hover);
|
|
10
10
|
|
|
11
11
|
.ald-icon {
|
|
12
|
-
color:
|
|
12
|
+
color: var(--interaction-default-selected);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&:active {
|
|
17
|
-
color: var(--alias-colors-link-hover
|
|
17
|
+
color: var(--alias-colors-link-hover);
|
|
18
18
|
|
|
19
19
|
.ald-icon {
|
|
20
|
-
color:
|
|
20
|
+
color: var(--interaction-default-selected);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.ald-text-link-disabled {
|
|
25
|
-
color: var(--alias-colors-text-disabled
|
|
25
|
+
color: var(--alias-colors-text-disabled);
|
|
26
26
|
|
|
27
27
|
.ald-icon {
|
|
28
|
-
color:
|
|
28
|
+
color: var(--alias-colors-icon-disabled);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.ald-text-link-secondary {
|
|
34
|
-
color: var(--alias-colors-text-default
|
|
34
|
+
color: var(--alias-colors-text-default);
|
|
35
35
|
|
|
36
36
|
.ald-icon {
|
|
37
|
-
color:
|
|
37
|
+
color: var(--alias-colors-icon-subtle);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
|
-
color: var(--alias-colors-text-selected
|
|
41
|
+
color: var(--alias-colors-text-selected);
|
|
42
42
|
|
|
43
43
|
.ald-icon {
|
|
44
|
-
color:
|
|
44
|
+
color: var(--interaction-default-hover);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&:active {
|
|
49
|
-
color: var(--alias-colors-text-selected
|
|
49
|
+
color: var(--alias-colors-text-selected);
|
|
50
50
|
|
|
51
51
|
.ald-icon {
|
|
52
|
-
color:
|
|
52
|
+
color: var(--interaction-default-selected);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&.ald-text-link-disabled {
|
|
57
|
-
color: var(--alias-colors-text-disabled
|
|
57
|
+
color: var(--alias-colors-text-disabled);
|
|
58
58
|
|
|
59
59
|
.ald-icon {
|
|
60
|
-
color:
|
|
60
|
+
color: var(--alias-colors-icon-disabled);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
.ant-tooltip-inner {
|
|
5
5
|
padding: 6px 8px;
|
|
6
6
|
line-height: 16px;
|
|
7
|
-
background: var(--alias-colors-bg-skeleton-inverse-subtler
|
|
8
|
-
border-radius: var(--alias-radius-50
|
|
7
|
+
background: var(--alias-colors-bg-skeleton-inverse-subtler);
|
|
8
|
+
border-radius: var(--alias-radius-50);
|
|
9
9
|
box-shadow: none;
|
|
10
10
|
font-weight: 400;
|
|
11
11
|
font-size: 12px;
|
|
12
12
|
min-height: 28px;
|
|
13
|
-
color: var(--alias-colors-text-inverse-strong
|
|
13
|
+
color: var(--alias-colors-text-inverse-strong);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ant-tooltip-arrow {
|
|
17
17
|
&::before {
|
|
18
|
-
background: var(--alias-colors-bg-skeleton-inverse-subtler
|
|
18
|
+
background: var(--alias-colors-bg-skeleton-inverse-subtler);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.ant-tooltip-arrow-content {
|
|
23
|
-
background: var(--alias-colors-bg-skeleton-inverse-subtler
|
|
23
|
+
background: var(--alias-colors-bg-skeleton-inverse-subtler);
|
|
24
24
|
}
|
|
25
25
|
}
|
package/dist/Tree/Tree.js
CHANGED
|
@@ -84,7 +84,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
84
84
|
}
|
|
85
85
|
var newIcon = /*#__PURE__*/React.createElement(DragLine, {
|
|
86
86
|
size: TREE_SWITCH_CION_SIZE,
|
|
87
|
-
color:
|
|
87
|
+
color: 'var(--alias-colors-icon-subtle)'
|
|
88
88
|
});
|
|
89
89
|
var mergedDraggable = {
|
|
90
90
|
icon: newIcon
|
|
@@ -196,7 +196,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
196
196
|
switcherIcon: function switcherIcon(nodeProps) {
|
|
197
197
|
return /*#__PURE__*/React.createElement(React.Fragment, null, renderIndent(nodeProps), renderSwitcherIcon(prefixCls, /*#__PURE__*/React.createElement(ArrowRightLightLine, {
|
|
198
198
|
size: TREE_SWITCH_CION_SIZE,
|
|
199
|
-
color: '
|
|
199
|
+
color: 'var(--alias-colors-icon-subtle)'
|
|
200
200
|
}, t.Tree.expand), showLine, nodeProps, TREE_SWITCH_CION_SIZE));
|
|
201
201
|
},
|
|
202
202
|
draggable: draggableConfig
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
animation: ald-checkbox-effect 0.36s ease-in-out;
|
|
22
22
|
animation-fill-mode: backwards;
|
|
23
23
|
content: '';
|
|
24
|
-
border-color: var(--alias-colors-bg-selected-strong-default
|
|
24
|
+
border-color: var(--alias-colors-bg-selected-strong-default);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&-inner {
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
height: @checkbox-size;
|
|
34
34
|
direction: ltr;
|
|
35
35
|
background-color: @checkbox-check-bg;
|
|
36
|
-
border: 1px solid
|
|
37
|
-
var(--alias-colors-border-accent-gray-subtle-default, #d1d5db);
|
|
36
|
+
border: 1px solid var(--interaction-border-neutral-normal);
|
|
38
37
|
border-radius: @checkbox-border-radius;
|
|
39
38
|
border-collapse: separate;
|
|
40
39
|
transition: all 0.3s;
|
|
@@ -60,18 +59,12 @@
|
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
&:hover {
|
|
63
|
-
border-color: var(
|
|
64
|
-
--alias-colors-border-accent-gray-subtle-hover,
|
|
65
|
-
#9ca3af
|
|
66
|
-
);
|
|
62
|
+
border-color: var(--interaction-border-hover);
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
&:active {
|
|
70
|
-
border-color: var(
|
|
71
|
-
|
|
72
|
-
#d1d5db
|
|
73
|
-
);
|
|
74
|
-
background-color: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
|
|
66
|
+
border-color: var(--interaction-border-neutral-normal);
|
|
67
|
+
background-color: var(--alias-colors-bg-skeleton-strong);
|
|
75
68
|
}
|
|
76
69
|
}
|
|
77
70
|
|
|
@@ -90,7 +83,7 @@
|
|
|
90
83
|
.ald-tree-checkbox-checked .ald-tree-checkbox-inner::after {
|
|
91
84
|
position: absolute;
|
|
92
85
|
display: table;
|
|
93
|
-
border: 2px solid var(--alias-colors-icon-inverse-default
|
|
86
|
+
border: 2px solid var(--alias-colors-icon-inverse-default);
|
|
94
87
|
border-top: 0;
|
|
95
88
|
border-left: 0;
|
|
96
89
|
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
@@ -101,8 +94,8 @@
|
|
|
101
94
|
|
|
102
95
|
.ald-tree-checkbox-checked {
|
|
103
96
|
.ald-tree-checkbox-inner {
|
|
104
|
-
background-color: var(--alias-colors-bg-selected-strong-default
|
|
105
|
-
border-color: var(--alias-colors-bg-selected-strong-default
|
|
97
|
+
background-color: var(--alias-colors-bg-selected-strong-default);
|
|
98
|
+
border-color: var(--alias-colors-bg-selected-strong-default);
|
|
106
99
|
}
|
|
107
100
|
}
|
|
108
101
|
|
|
@@ -111,7 +104,7 @@
|
|
|
111
104
|
|
|
112
105
|
&.ald-tree-checkbox-checked {
|
|
113
106
|
.ald-tree-checkbox-inner::after {
|
|
114
|
-
border-color: var(--alias-colors-icon-disabled
|
|
107
|
+
border-color: var(--alias-colors-icon-disabled);
|
|
115
108
|
animation-name: none;
|
|
116
109
|
}
|
|
117
110
|
}
|
|
@@ -122,8 +115,8 @@
|
|
|
122
115
|
}
|
|
123
116
|
|
|
124
117
|
.ald-tree-checkbox-inner {
|
|
125
|
-
background-color: var(--alias-colors-bg-disabled
|
|
126
|
-
border-color: var(--alias-colors-border-disabled
|
|
118
|
+
background-color: var(--alias-colors-bg-disabled);
|
|
119
|
+
border-color: var(--alias-colors-border-disabled);
|
|
127
120
|
|
|
128
121
|
&::after {
|
|
129
122
|
border-color: @input-disabled-bg;
|
|
@@ -201,8 +194,8 @@
|
|
|
201
194
|
// 半选状态
|
|
202
195
|
.ald-tree-checkbox-indeterminate {
|
|
203
196
|
.ald-tree-checkbox-inner {
|
|
204
|
-
background-color: var(--alias-colors-bg-selected-strong-default
|
|
205
|
-
border-color: var(--alias-colors-bg-selected-strong-default
|
|
197
|
+
background-color: var(--alias-colors-bg-selected-strong-default);
|
|
198
|
+
border-color: var(--alias-colors-bg-selected-strong-default);
|
|
206
199
|
}
|
|
207
200
|
|
|
208
201
|
.ald-tree-checkbox-inner::after {
|
|
@@ -213,7 +206,7 @@
|
|
|
213
206
|
left: 50%;
|
|
214
207
|
width: @indeterminate-width;
|
|
215
208
|
height: @indeterminate-height;
|
|
216
|
-
background-color: var(--alias-colors-icon-inverse-default
|
|
209
|
+
background-color: var(--alias-colors-icon-inverse-default);
|
|
217
210
|
border: 0;
|
|
218
211
|
transform: translate(-50%, -50%) scale(1);
|
|
219
212
|
opacity: 1;
|
|
@@ -221,14 +214,11 @@
|
|
|
221
214
|
}
|
|
222
215
|
|
|
223
216
|
&.ald-tree-checkbox-disabled .ald-tree-checkbox-inner {
|
|
224
|
-
background-color: var(--alias-colors-bg-disabled
|
|
225
|
-
border-color: var(--alias-colors-bg-disabled
|
|
217
|
+
background-color: var(--alias-colors-bg-disabled);
|
|
218
|
+
border-color: var(--alias-colors-bg-disabled);
|
|
226
219
|
|
|
227
220
|
&::after {
|
|
228
|
-
background-color: var(
|
|
229
|
-
--alias-colors-icon-disabled,
|
|
230
|
-
rgba(0, 0, 0, 0.25)
|
|
231
|
-
);
|
|
221
|
+
background-color: var(--alias-colors-icon-disabled);
|
|
232
222
|
}
|
|
233
223
|
}
|
|
234
224
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
font-size: @tree-font-size-default;
|
|
55
55
|
font-weight: 400;
|
|
56
|
-
color: var(--alias-colors-text-default
|
|
56
|
+
color: var(--alias-colors-text-default);
|
|
57
57
|
|
|
58
58
|
&.ald-tree-node-disabled {
|
|
59
59
|
display: none;
|
|
@@ -117,11 +117,11 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&:hover {
|
|
120
|
-
background: var(--alias-colors-bg-interaction-hover
|
|
120
|
+
background: var(--alias-colors-bg-interaction-hover);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&.ald-tree-node-selected {
|
|
124
|
-
background: var(--alias-colors-bg-selected-default
|
|
124
|
+
background: var(--alias-colors-bg-selected-default);
|
|
125
125
|
font-size: 12px;
|
|
126
126
|
font-weight: 400;
|
|
127
127
|
line-height: 16px;
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
|
|
149
149
|
.ald-tree-node-content-wrapper {
|
|
150
150
|
padding: @tree-padding-large;
|
|
151
|
-
border-radius: var(--alias-radius-75
|
|
151
|
+
border-radius: var(--alias-radius-75);
|
|
152
152
|
|
|
153
153
|
.ald-tree-title {
|
|
154
154
|
line-height: @tree-line-height-large;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// it should displayed over the following node
|
|
25
25
|
z-index: 1;
|
|
26
26
|
height: 2px;
|
|
27
|
-
background-color: var(--alias-colors-border-selected
|
|
27
|
+
background-color: var(--alias-colors-border-selected);
|
|
28
28
|
border-radius: 1px;
|
|
29
29
|
pointer-events: none;
|
|
30
30
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
height: 0;
|
|
38
38
|
border-top: 6px solid transparent;
|
|
39
39
|
border-bottom: 6px solid transparent;
|
|
40
|
-
border-left: 10px solid var(--alias-colors-border-selected
|
|
40
|
+
border-left: 10px solid var(--alias-colors-border-selected); /* 高度 */
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
&-disabled {
|
|
98
98
|
// >>> Title
|
|
99
99
|
.@{custom-tree-prefix-cls}-node-content-wrapper {
|
|
100
|
-
color: var(--alias-colors-text-default
|
|
100
|
+
color: var(--alias-colors-text-default);
|
|
101
101
|
cursor: default;
|
|
102
102
|
font-size: 14px;
|
|
103
103
|
font-style: normal;
|
package/dist/Tree/style/var.less
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
@import '../../style/color/colorPalette.less';
|
|
2
2
|
@padding-xs: 4px; // small items
|
|
3
|
-
@item-hover-bg:
|
|
4
|
-
@tree-directory-selected-color:
|
|
5
|
-
@tree-directory-selected-bg:
|
|
3
|
+
@item-hover-bg: var(--action-ghost-hover);
|
|
4
|
+
@tree-directory-selected-color: var(--content-inverted-primary);
|
|
5
|
+
@tree-directory-selected-bg: var(--background-neutral-strong);
|
|
6
6
|
@tree-title-height: 16px;
|
|
7
|
-
@border-color-base:
|
|
7
|
+
@border-color-base: var(
|
|
8
|
+
--border-neutral-strong
|
|
9
|
+
); // base border outline a component
|
|
8
10
|
|
|
9
11
|
@checkbox-size: 16px;
|
|
10
|
-
@text-color:
|
|
12
|
+
@text-color: var(--content-primary);
|
|
11
13
|
@font-size-base: 12px;
|
|
12
|
-
@primary-color:
|
|
13
|
-
@component-background:
|
|
14
|
+
@primary-color: var(--action-primary-normal);
|
|
15
|
+
@component-background: var(--background-inverted);
|
|
14
16
|
@border-radius-sm: 2px;
|
|
15
17
|
@border-width-base: 1px;
|
|
16
18
|
@border-style-base: solid;
|
|
17
|
-
@primary-1:
|
|
18
|
-
|
|
19
|
-
@component-background,
|
|
20
|
-
15%
|
|
21
|
-
);
|
|
22
|
-
@primary-2: color(~`colorPalette('@{primary-color}', 2) `);
|
|
19
|
+
@primary-1: var(--background-informative-subtle);
|
|
20
|
+
@primary-2: var(--background-informative-on-subtle);
|
|
23
21
|
@font-variant-base: tabular-nums;
|
|
24
22
|
@line-height-base: 1.6667;
|
|
25
23
|
@font-feature-settings-base: 'tnum';
|
|
26
|
-
@disabled-color:
|
|
27
|
-
@tree-node-hover-bg:
|
|
24
|
+
@disabled-color: var(--content-inverted-disabled);
|
|
25
|
+
@tree-node-hover-bg: var(--action-ghost-hover);
|
|
28
26
|
@animation-duration-slow: 0.3s; // Modal
|
|
29
|
-
@normal-color:
|
|
27
|
+
@normal-color: var(--border-default);
|
|
30
28
|
@border-radius-base: 2px;
|
|
31
29
|
@tree-node-selected-bg: @primary-2;
|
|
32
|
-
@checkbox-color: var(--
|
|
30
|
+
@checkbox-color: var(--border-default);
|
|
33
31
|
@checkbox-border-radius: @border-radius-sm;
|
|
34
32
|
@checkbox-check-bg: transparent;
|
|
35
33
|
@checkbox-border-width: @border-width-base;
|
|
36
|
-
@checkbox-check-color:
|
|
34
|
+
@checkbox-check-color: var(--content-inverted-primary);
|
|
37
35
|
@ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
|
|
38
36
|
@ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
|
|
39
37
|
@input-disabled-bg: @disabled-bg;
|
|
40
38
|
@checkbox-group-item-margin-right: 6px;
|
|
41
|
-
@background-color-base:
|
|
39
|
+
@background-color-base: var(
|
|
40
|
+
--background-neutral-subtle
|
|
41
|
+
); // Default grey background color
|
|
42
42
|
@disabled-bg: @background-color-base;
|
|
@@ -13,7 +13,7 @@ export default function renderSwitcherIcon(prefixCls, switcherIcon, showLine, tr
|
|
|
13
13
|
loading = treeNodeProps.loading;
|
|
14
14
|
if (loading) {
|
|
15
15
|
return /*#__PURE__*/React.createElement(Loading2Line, {
|
|
16
|
-
color: '
|
|
16
|
+
color: 'var(--content-informative-primary)',
|
|
17
17
|
size: iconSize,
|
|
18
18
|
className: "".concat(prefixCls, "-switcher-loading-icon ")
|
|
19
19
|
});
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
gap: 4px;
|
|
9
9
|
|
|
10
10
|
.ald-user-text {
|
|
11
|
-
color: var(--alias-colors-text-default
|
|
11
|
+
color: var(--alias-colors-text-default);
|
|
12
12
|
font-size: 12px;
|
|
13
13
|
line-height: 16px;
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
gap: 6px;
|
|
19
19
|
|
|
20
20
|
.ald-user-text {
|
|
21
|
-
color: var(--alias-colors-text-default
|
|
21
|
+
color: var(--alias-colors-text-default);
|
|
22
22
|
font-size: 14px;
|
|
23
23
|
line-height: 20px; /* 142.857% */
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
gap: 8px;
|
|
29
29
|
|
|
30
30
|
.ald-user-text {
|
|
31
|
-
color: var(--alias-colors-text-default
|
|
31
|
+
color: var(--alias-colors-text-default);
|
|
32
32
|
font-size: 14px;
|
|
33
33
|
font-weight: 500;
|
|
34
34
|
line-height: 20px; /* 142.857% */
|