@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
|
@@ -49,7 +49,7 @@ export interface BaseSelectProps extends BaseSelectPrivateProps, ISelectProps, R
|
|
|
49
49
|
suffixIcon?: React.ReactNode;
|
|
50
50
|
dropdownAlign?: AlignType;
|
|
51
51
|
placement?: PlacementType;
|
|
52
|
-
getPopupContainer?:
|
|
52
|
+
getPopupContainer?: () => HTMLElement;
|
|
53
53
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
54
54
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
55
55
|
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
@@ -212,7 +212,7 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
212
212
|
ref: selectRef,
|
|
213
213
|
id: id,
|
|
214
214
|
onClick: onSelectClick
|
|
215
|
-
}, /*#__PURE__*/React.createElement(SelectTrigger, {
|
|
215
|
+
}, /*#__PURE__*/React.createElement(SelectTrigger, _extends({}, restProps, {
|
|
216
216
|
open: !!mergedOpen,
|
|
217
217
|
notFoundContent: notFoundContent,
|
|
218
218
|
menu: showMenu,
|
|
@@ -238,7 +238,7 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
238
238
|
onToggleOpen(open);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
241
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
242
242
|
className: setClassNames('trigger')
|
|
243
243
|
}, prefix && /*#__PURE__*/React.createElement("div", {
|
|
244
244
|
className: setClassNames('prefix')
|
|
@@ -36,7 +36,7 @@ export interface ISelectProps<ValueType = any, OptionType extends BaseOptionType
|
|
|
36
36
|
style?: React.CSSProperties;
|
|
37
37
|
open?: boolean;
|
|
38
38
|
onOpenChange?: (open: boolean) => void;
|
|
39
|
-
getPopupContainer?: (
|
|
39
|
+
getPopupContainer?: () => HTMLElement;
|
|
40
40
|
onInputKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
41
41
|
popupMatchSelectWidth?: boolean | number;
|
|
42
42
|
onSelect?: SelectHandler<ArrayElementType<ValueType>, OptionType>;
|
|
@@ -84,7 +84,6 @@ export interface LabelInValueType {
|
|
|
84
84
|
disabled?: boolean;
|
|
85
85
|
}
|
|
86
86
|
export type DraftValueType = RawValueType | LabelInValueType | DisplayValueType | (RawValueType | LabelInValueType | DisplayValueType)[];
|
|
87
|
-
export type RenderDOMFunc = (triggerNode: HTMLElement) => HTMLElement;
|
|
88
87
|
export type DisplayInfoType = 'add' | 'remove' | 'clear';
|
|
89
88
|
export interface DefaultOptionType extends BaseOptionType {
|
|
90
89
|
label?: React.ReactNode;
|
|
@@ -1,40 +1,49 @@
|
|
|
1
1
|
.beta-ald-select {
|
|
2
|
-
border-color:
|
|
3
|
-
color:
|
|
4
|
-
background-color:
|
|
2
|
+
border-color: var(--interaction-border-neutral-normal);
|
|
3
|
+
color: var(--content-primary);
|
|
4
|
+
background-color: var(--interaction-background-form-field);
|
|
5
|
+
|
|
6
|
+
&:hover {
|
|
7
|
+
border-color: var(--interaction-border-normal);
|
|
8
|
+
}
|
|
5
9
|
|
|
6
10
|
&-active {
|
|
7
|
-
border-color:
|
|
11
|
+
border-color: var(--global-transparent-transparent);
|
|
12
|
+
box-shadow: var(--focus-default-focus);
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
border-color: var(--global-transparent-transparent);
|
|
16
|
+
}
|
|
8
17
|
}
|
|
9
18
|
|
|
10
19
|
&-error {
|
|
11
|
-
border-color:
|
|
20
|
+
border-color: var(--interaction-border-alert);
|
|
12
21
|
}
|
|
13
22
|
|
|
14
23
|
&-validating,
|
|
15
24
|
&-passed {
|
|
16
|
-
border-color:
|
|
25
|
+
border-color: var(--border-positive-strong);
|
|
17
26
|
}
|
|
18
27
|
|
|
19
28
|
&-borderless {
|
|
20
29
|
border-color: transparent;
|
|
21
30
|
background-color: transparent;
|
|
22
|
-
color:
|
|
31
|
+
color: var(--content-primary);
|
|
23
32
|
|
|
24
33
|
&:hover {
|
|
25
|
-
background-color:
|
|
26
|
-
border-color:
|
|
34
|
+
background-color: var(--background-neutral-muted);
|
|
35
|
+
border-color: var(--background-neutral-muted);
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
&.beta-ald-select-active {
|
|
30
|
-
background-color:
|
|
31
|
-
border-color:
|
|
39
|
+
background-color: var(--background-default);
|
|
40
|
+
border-color: var(--background-default);
|
|
32
41
|
}
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
&-disabled {
|
|
36
|
-
border: 1px solid
|
|
37
|
-
background:
|
|
45
|
+
border: 1px solid var(--border-default);
|
|
46
|
+
background: var(--background-neutral-muted);
|
|
38
47
|
|
|
39
48
|
&.beta-ald-select-borderless {
|
|
40
49
|
border-color: transparent;
|
|
@@ -43,14 +52,14 @@
|
|
|
43
52
|
}
|
|
44
53
|
|
|
45
54
|
.beta-ald-select-placeholder {
|
|
46
|
-
color:
|
|
55
|
+
color: var(--content-tertiary);
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
58
|
|
|
50
59
|
.beta-ald-select-prefix {
|
|
51
|
-
color:
|
|
60
|
+
color: var(--content-secondary);
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
.beta-ald-select-selector-multiple-responsive-selected-section {
|
|
55
|
-
border-color:
|
|
64
|
+
border-color: var(--interaction-border-selected);
|
|
56
65
|
}
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
left: -1px;
|
|
122
122
|
border-width: 1px;
|
|
123
123
|
border-style: solid;
|
|
124
|
-
background-color:
|
|
124
|
+
background-color: var(--background-default);
|
|
125
125
|
z-index: 1;
|
|
126
126
|
|
|
127
127
|
.beta-ald-select-selector-multiple-responsive-selected-section-tags {
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
width: 100%;
|
|
163
163
|
|
|
164
164
|
.beta-ald-select-search-box {
|
|
165
|
-
border-bottom: 1px solid
|
|
165
|
+
border-bottom: 1px solid var(--border-default);
|
|
166
166
|
border-radius: 0 !important;
|
|
167
167
|
|
|
168
168
|
.ald-input {
|
|
@@ -1,5 +1,9 @@
|
|
|
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
|
+
var _excluded = ["size", "children", "src", "icon"];
|
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
3
7
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
8
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
9
|
import InternalAvatar from 'antd/lib/avatar/avatar';
|
|
@@ -7,7 +11,7 @@ import * as React from 'react';
|
|
|
7
11
|
import { User } from "../../../Icon";
|
|
8
12
|
import _ from 'lodash';
|
|
9
13
|
import { useCallback, useMemo } from 'react';
|
|
10
|
-
import { AVATAR_SIZE_MAP
|
|
14
|
+
import { AVATAR_SIZE_MAP } from "./type";
|
|
11
15
|
import { getFontSize } from "./helper";
|
|
12
16
|
import classNames from 'classnames';
|
|
13
17
|
var ZERO = 0;
|
|
@@ -17,7 +21,6 @@ var Avatar = function Avatar(props) {
|
|
|
17
21
|
children = props.children,
|
|
18
22
|
src = props.src,
|
|
19
23
|
icon = props.icon,
|
|
20
|
-
type = props.type,
|
|
21
24
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
22
25
|
var getSize = useCallback(function () {
|
|
23
26
|
if (typeof size === 'number') {
|
|
@@ -34,18 +37,6 @@ var Avatar = function Avatar(props) {
|
|
|
34
37
|
}
|
|
35
38
|
return children;
|
|
36
39
|
}, [children]);
|
|
37
|
-
var bgColor = useMemo(function () {
|
|
38
|
-
if (type) {
|
|
39
|
-
return AVATAR_TYPE_TO_BG_COLOR[type];
|
|
40
|
-
}
|
|
41
|
-
return AVATAR_TYPE_TO_BG_COLOR.user;
|
|
42
|
-
}, [type]);
|
|
43
|
-
var fontColor = useMemo(function () {
|
|
44
|
-
if (type === 'count') {
|
|
45
|
-
return '#1F2937';
|
|
46
|
-
}
|
|
47
|
-
return '#fff';
|
|
48
|
-
}, [type]);
|
|
49
40
|
var innerIcon = useMemo(function () {
|
|
50
41
|
if (icon) {
|
|
51
42
|
return icon;
|
|
@@ -53,8 +44,6 @@ var Avatar = function Avatar(props) {
|
|
|
53
44
|
if (!_.isEmpty(children)) {
|
|
54
45
|
return /*#__PURE__*/React.createElement("div", {
|
|
55
46
|
style: {
|
|
56
|
-
backgroundColor: bgColor,
|
|
57
|
-
color: fontColor,
|
|
58
47
|
height: '100%',
|
|
59
48
|
width: '100%',
|
|
60
49
|
display: 'flex',
|
|
@@ -68,10 +57,10 @@ var Avatar = function Avatar(props) {
|
|
|
68
57
|
return /*#__PURE__*/React.createElement(User, {
|
|
69
58
|
size: getSize()
|
|
70
59
|
});
|
|
71
|
-
}, [icon, getSize, children, getChildren
|
|
60
|
+
}, [icon, getSize, children, getChildren]);
|
|
72
61
|
return /*#__PURE__*/React.createElement(InternalAvatar, _extends({}, restProps, {
|
|
73
62
|
size: getSize(),
|
|
74
|
-
className: classNames(restProps.className, 'ald-avatar'),
|
|
63
|
+
className: classNames(restProps.className, 'ald-avatar', _defineProperty({}, "ald-avatar-default", !icon && _.isEmpty(children))),
|
|
75
64
|
icon: innerIcon,
|
|
76
65
|
src: src
|
|
77
66
|
}));
|
|
@@ -10,7 +10,7 @@ export var AVATAR_SIZE_MAP = {
|
|
|
10
10
|
};
|
|
11
11
|
export var AVATAR_SIZE_TO_FONT_SIZE = (_AVATAR_SIZE_TO_FONT_ = {}, _defineProperty(_AVATAR_SIZE_TO_FONT_, 16, 8), _defineProperty(_AVATAR_SIZE_TO_FONT_, 20, 10), _defineProperty(_AVATAR_SIZE_TO_FONT_, 24, 10), _defineProperty(_AVATAR_SIZE_TO_FONT_, 28, 12), _defineProperty(_AVATAR_SIZE_TO_FONT_, 32, 12), _defineProperty(_AVATAR_SIZE_TO_FONT_, 40, 14), _defineProperty(_AVATAR_SIZE_TO_FONT_, 48, 16), _defineProperty(_AVATAR_SIZE_TO_FONT_, 64, 24), _AVATAR_SIZE_TO_FONT_);
|
|
12
12
|
export var AVATAR_TYPE_TO_BG_COLOR = {
|
|
13
|
-
user: '
|
|
14
|
-
userGroup: '
|
|
15
|
-
count: '
|
|
13
|
+
user: 'var(--non-semantic-background-blue-muted)',
|
|
14
|
+
userGroup: 'var(--non-semantic-background-blue-muted)',
|
|
15
|
+
count: 'var(--non-semantic-background-grey-muted)'
|
|
16
16
|
};
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
3
|
.ald-avatar.ald-avatar {
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
color: #1f2937;
|
|
6
4
|
border: 0;
|
|
7
5
|
display: inline-flex;
|
|
8
6
|
align-items: center;
|
|
9
7
|
justify-content: center;
|
|
8
|
+
background-color: var(--non-semantic-background-blue-muted);
|
|
9
|
+
color: var(--non-semantic-content-blue-primary);
|
|
10
|
+
|
|
11
|
+
&.ald-avatar-default {
|
|
12
|
+
background-color: white;
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
.ant-avatar-group {
|
|
13
17
|
.ald-avatar.ald-avatar {
|
|
14
|
-
|
|
18
|
+
&.ald-avatar-default {
|
|
19
|
+
background-color: var(--non-semantic-background-blue-muted);
|
|
20
|
+
color: var(--non-semantic-content-blue-primary);
|
|
21
|
+
}
|
|
15
22
|
}
|
|
16
23
|
}
|
package/dist/Badge/index.js
CHANGED
|
@@ -17,34 +17,8 @@ export default function Badge(props) {
|
|
|
17
17
|
className = props.className,
|
|
18
18
|
onClick = props.onClick,
|
|
19
19
|
rest = _objectWithoutProperties(props, _excluded);
|
|
20
|
-
var status2ColorMap = {
|
|
21
|
-
success: {
|
|
22
|
-
color: '#15803D',
|
|
23
|
-
backgroundColor: '#BBF7D0'
|
|
24
|
-
},
|
|
25
|
-
error: {
|
|
26
|
-
color: '#B91C1C',
|
|
27
|
-
backgroundColor: '#FECACA'
|
|
28
|
-
},
|
|
29
|
-
default: {
|
|
30
|
-
color: '#374151',
|
|
31
|
-
backgroundColor: '#E5E7EB'
|
|
32
|
-
},
|
|
33
|
-
info: {
|
|
34
|
-
color: '#0F59B1',
|
|
35
|
-
backgroundColor: '#A9CFFB'
|
|
36
|
-
},
|
|
37
|
-
warning: {
|
|
38
|
-
color: '#A16207',
|
|
39
|
-
backgroundColor: '#FEF08A'
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
20
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
43
|
-
className: classNames('ald-badge', (_classNames = {}, _defineProperty(_classNames, 'ald-badge-large', size === 'large'), _defineProperty(_classNames, 'ald-badge-clickable', typeof onClick === 'function'), _classNames), className),
|
|
44
|
-
style: {
|
|
45
|
-
color: status2ColorMap[status].color,
|
|
46
|
-
backgroundColor: status2ColorMap[status].backgroundColor
|
|
47
|
-
},
|
|
21
|
+
className: classNames('ald-badge', (_classNames = {}, _defineProperty(_classNames, 'ald-badge-large', size === 'large'), _defineProperty(_classNames, 'ald-badge-clickable', typeof onClick === 'function'), _defineProperty(_classNames, "ald-badge-".concat(status), status), _classNames), className),
|
|
48
22
|
onClick: onClick
|
|
49
23
|
}), count);
|
|
50
24
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.ald-badge {
|
|
4
4
|
display: inline-flex;
|
|
5
|
-
padding: var(--alias-padding-25
|
|
5
|
+
padding: var(--alias-padding-25) var(--alias-padding-75);
|
|
6
6
|
align-items: center;
|
|
7
7
|
min-width: 20px;
|
|
8
8
|
height: 20px;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
font-size: 12px;
|
|
11
11
|
line-height: 16px;
|
|
12
12
|
font-weight: 500;
|
|
13
|
+
cursor: default;
|
|
13
14
|
|
|
14
15
|
&.ald-badge-large {
|
|
15
16
|
font-size: 14px;
|
|
@@ -21,4 +22,29 @@
|
|
|
21
22
|
&.ald-badge-clickable {
|
|
22
23
|
cursor: pointer;
|
|
23
24
|
}
|
|
25
|
+
|
|
26
|
+
&.ald-badge-success {
|
|
27
|
+
color: var(--content-inverted-primary);
|
|
28
|
+
background-color: var(--background-positive-strong);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.ald-badge-error {
|
|
32
|
+
color: var(--content-inverted-primary);
|
|
33
|
+
background-color: var(--background-negative-strong);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.ald-badge-default {
|
|
37
|
+
color: var(--content-inverted-primary);
|
|
38
|
+
background-color: var(--background-neutral-strong);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.ald-badge-info {
|
|
42
|
+
color: var(--content-inverted-primary);
|
|
43
|
+
background-color: var(--background-informative-strong);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.ald-badge-warning {
|
|
47
|
+
color: var(--content-primary);
|
|
48
|
+
background-color: var(--background-warning-strong);
|
|
49
|
+
}
|
|
24
50
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
text-decoration: none;
|
|
19
19
|
|
|
20
20
|
.ald-icon {
|
|
21
|
-
color:
|
|
21
|
+
color: var(--alias-colors-text-inverse-strong);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
box-shadow: none;
|
|
134
134
|
|
|
135
135
|
.ald-icon {
|
|
136
|
-
color:
|
|
136
|
+
color: var(--alias-colors-icon-subtle);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&:focus {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
box-shadow: none;
|
|
183
183
|
|
|
184
184
|
.ald-icon {
|
|
185
|
-
color:
|
|
185
|
+
color: var(--content-secondary);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
&:focus {
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
border-color: @button-text-border-color-hover;
|
|
199
199
|
|
|
200
200
|
.ald-icon {
|
|
201
|
-
color:
|
|
201
|
+
color: var(--alias-colors-text-brand);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
box-shadow: none;
|
|
210
210
|
|
|
211
211
|
.ald-icon {
|
|
212
|
-
color:
|
|
212
|
+
color: var(--alias-colors-text-brand);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|