@lobehub/ui 1.107.1 → 1.107.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.
|
@@ -37,7 +37,7 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
37
37
|
cx = _useStyles.cx;
|
|
38
38
|
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
39
39
|
align: 'flex-start',
|
|
40
|
-
className: cx(styles.container, active && styles.active,
|
|
40
|
+
className: cx(styles.container, active && styles.active, className),
|
|
41
41
|
distribution: 'space-between',
|
|
42
42
|
gap: 8,
|
|
43
43
|
horizontal: true,
|
|
@@ -52,7 +52,20 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
52
52
|
ref: ref,
|
|
53
53
|
style: style
|
|
54
54
|
}, props), {}, {
|
|
55
|
-
children: [
|
|
55
|
+
children: [pin && /*#__PURE__*/_jsx("div", {
|
|
56
|
+
className: styles.pin,
|
|
57
|
+
children: /*#__PURE__*/_jsx("svg", {
|
|
58
|
+
height: "12",
|
|
59
|
+
viewBox: "0 0 200 200",
|
|
60
|
+
width: "12",
|
|
61
|
+
children: /*#__PURE__*/_jsx("polygon", {
|
|
62
|
+
className: styles.triangle,
|
|
63
|
+
points: "0,0 200,0 200,200",
|
|
64
|
+
strokeLinecap: "round",
|
|
65
|
+
strokeLinejoin: "round"
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}), avatar !== null && avatar !== void 0 ? avatar : /*#__PURE__*/_jsx(MessageOutlined, {
|
|
56
69
|
style: {
|
|
57
70
|
marginTop: 4
|
|
58
71
|
}
|
|
@@ -7,4 +7,5 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
|
|
|
7
7
|
pin: import("antd-style").SerializedStyles;
|
|
8
8
|
time: import("antd-style").SerializedStyles;
|
|
9
9
|
title: import("antd-style").SerializedStyles;
|
|
10
|
+
triangle: import("antd-style").SerializedStyles;
|
|
10
11
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
export var useStyles = createStyles(function (_ref) {
|
|
5
5
|
var css = _ref.css,
|
|
@@ -10,8 +10,9 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
10
10
|
container: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n color: ", ";\n background: transparent;\n transition: background-color 200ms ", ";\n\n &:active {\n background-color: ", ";\n }\n\n &:hover {\n background-color: ", ";\n }\n "])), token.colorTextTertiary, token.motionEaseOut, token.colorFillSecondary, token.colorFillTertiary),
|
|
11
11
|
content: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n flex: 1;\n align-self: center;\n "]))),
|
|
12
12
|
desc: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n\n width: 100%;\n\n font-size: 12px;\n line-height: 1;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n "])), token.colorTextDescription),
|
|
13
|
-
pin: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n
|
|
13
|
+
pin: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: absolute;\n top: 4px;\n right: 6px;\n "]))),
|
|
14
14
|
time: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-size: 12px;\n color: ", ";\n "])), token.colorTextPlaceholder),
|
|
15
|
-
title: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n overflow: hidden;\n\n width: 100%;\n\n font-size: 16px;\n line-height: 1;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n "])), token.colorText)
|
|
15
|
+
title: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n overflow: hidden;\n\n width: 100%;\n\n font-size: 16px;\n line-height: 1;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n "])), token.colorText),
|
|
16
|
+
triangle: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border-radius: 2px;\n fill: ", ";\n stroke: ", ";\n "])), token.colorPrimaryBorder, token.colorPrimaryBorder)
|
|
16
17
|
};
|
|
17
18
|
});
|