@lobehub/ui 1.72.4 → 1.72.5

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.
@@ -35,66 +35,64 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
35
35
  var _useStyles = useStyles(),
36
36
  styles = _useStyles.styles,
37
37
  cx = _useStyles.cx;
38
- return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
38
+ return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
39
+ align: 'flex-start',
39
40
  className: cx(styles.container, active && styles.active, pin && styles.pin, className),
41
+ distribution: 'space-between',
42
+ gap: 8,
43
+ horizontal: true,
40
44
  onMouseEnter: function onMouseEnter() {
41
45
  onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(true);
42
46
  },
43
47
  onMouseLeave: function onMouseLeave() {
44
48
  onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(false);
45
49
  },
50
+ paddingBlock: 12,
51
+ paddingInline: 16,
46
52
  ref: ref,
47
53
  style: style
48
54
  }, props), {}, {
49
- children: /*#__PURE__*/_jsxs(Flexbox, {
50
- align: 'flex-start',
51
- distribution: 'space-between',
55
+ children: [avatar !== null && avatar !== void 0 ? avatar : /*#__PURE__*/_jsx(MessageOutlined, {
56
+ style: {
57
+ marginTop: 4
58
+ }
59
+ }), /*#__PURE__*/_jsxs(Flexbox, {
60
+ className: styles.content,
52
61
  gap: 8,
53
- horizontal: true,
54
- paddingBlock: 12,
55
- paddingInline: 16,
56
- children: [avatar !== null && avatar !== void 0 ? avatar : /*#__PURE__*/_jsx(MessageOutlined, {
62
+ children: [/*#__PURE__*/_jsx(Flexbox, {
63
+ distribution: 'space-between',
64
+ horizontal: true,
65
+ children: /*#__PURE__*/_jsx("div", {
66
+ className: styles.title,
67
+ children: title
68
+ })
69
+ }), description && /*#__PURE__*/_jsx("div", {
70
+ className: styles.desc,
71
+ children: description
72
+ }), addon]
73
+ }), loading ? /*#__PURE__*/_jsx(LoadingOutlined, {
74
+ spin: true
75
+ }) : /*#__PURE__*/_jsxs(_Fragment, {
76
+ children: [showAction && /*#__PURE__*/_jsx(Flexbox, {
77
+ className: styles.actions,
78
+ gap: 4,
79
+ horizontal: true,
80
+ onClick: function onClick(e) {
81
+ e.preventDefault();
82
+ e.stopPropagation();
83
+ },
57
84
  style: {
58
- marginTop: 4
59
- }
60
- }), /*#__PURE__*/_jsxs(Flexbox, {
61
- className: styles.content,
62
- gap: 8,
63
- children: [/*#__PURE__*/_jsx(Flexbox, {
64
- distribution: 'space-between',
65
- horizontal: true,
66
- children: /*#__PURE__*/_jsx("div", {
67
- className: styles.title,
68
- children: title
69
- })
70
- }), description && /*#__PURE__*/_jsx("div", {
71
- className: styles.desc,
72
- children: description
73
- }), addon]
74
- }), loading ? /*#__PURE__*/_jsx(LoadingOutlined, {
75
- spin: true
76
- }) : /*#__PURE__*/_jsxs(_Fragment, {
77
- children: [showAction && /*#__PURE__*/_jsx(Flexbox, {
78
- className: styles.actions,
79
- gap: 4,
80
- horizontal: true,
81
- onClick: function onClick(e) {
82
- e.preventDefault();
83
- e.stopPropagation();
84
- },
85
- style: {
86
- display: showAction ? undefined : 'none'
87
- },
88
- children: actions
89
- }), date && /*#__PURE__*/_jsx("div", {
90
- className: cx(styles.time, classNames === null || classNames === void 0 ? void 0 : classNames.time),
91
- style: showAction ? {
92
- opacity: 0
93
- } : {},
94
- children: getChatItemTime(date)
95
- })]
96
- }), children]
97
- })
85
+ display: showAction ? undefined : 'none'
86
+ },
87
+ children: actions
88
+ }), date && /*#__PURE__*/_jsx("div", {
89
+ className: cx(styles.time, classNames === null || classNames === void 0 ? void 0 : classNames.time),
90
+ style: showAction ? {
91
+ opacity: 0
92
+ } : {},
93
+ children: getChatItemTime(date)
94
+ })]
95
+ }), children]
98
96
  }));
99
97
  });
100
98
  export default ListItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.72.4",
3
+ "version": "1.72.5",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -32,6 +32,7 @@
32
32
  "clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
33
33
  "dev": "father dev",
34
34
  "docs:build": "dumi build",
35
+ "docs:build-analyze": "ANALYZE=1 dumi build",
35
36
  "docs:dev": "dumi dev",
36
37
  "doctor": "father doctor",
37
38
  "lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
@@ -94,7 +95,7 @@
94
95
  "prism-react-renderer": "^2",
95
96
  "rc-footer": "^0",
96
97
  "re-resizable": "^6",
97
- "react-layout-kit": "^1",
98
+ "react-layout-kit": "^1.7.1",
98
99
  "react-markdown": "^8",
99
100
  "react-rnd": "^10",
100
101
  "react-simple-code-editor": "^0",