@lobehub/ui 2.12.3 → 2.12.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.
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- var _excluded = ["items", "max", "gap", "variant", "bordered", "shadow", "size", "background", "animation", "draggable", "classNames", "shape", "styles", "onClick", "ref"],
4
+ var _excluded = ["items", "max", "gap", "variant", "bordered", "shadow", "size", "background", "animation", "draggable", "classNames", "shape", "styles", "onClick", "ref", "zIndexReverse"],
5
5
  _excluded2 = ["key", "style", "className"];
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -34,6 +34,7 @@ var AvatarGroup = /*#__PURE__*/memo(function (_ref) {
34
34
  customStyles = _ref.styles,
35
35
  _onClick = _ref.onClick,
36
36
  ref = _ref.ref,
37
+ zIndexReverse = _ref.zIndexReverse,
37
38
  rest = _objectWithoutProperties(_ref, _excluded);
38
39
  var _useStyles = useStyles(),
39
40
  cx = _useStyles.cx,
@@ -74,7 +75,8 @@ var AvatarGroup = /*#__PURE__*/memo(function (_ref) {
74
75
  });
75
76
  },
76
77
  style: _objectSpread(_objectSpread({
77
- marginLeft: index === 0 ? 0 : gapValue
78
+ marginLeft: index === 0 ? 0 : gapValue,
79
+ zIndex: zIndexReverse ? items.length - index : index
78
80
  }, customStyles === null || customStyles === void 0 ? void 0 : customStyles.avatar), avatarStyle)
79
81
  }, avatarProps), restAvatarProps), key);
80
82
  }), max && restAvatars.length > 0 && /*#__PURE__*/_jsx(Avatar, _objectSpread(_objectSpread({}, avatarProps), {}, {
@@ -83,7 +85,8 @@ var AvatarGroup = /*#__PURE__*/memo(function (_ref) {
83
85
  className: cx(styles.avatar, styles.count, classNames === null || classNames === void 0 ? void 0 : classNames.count),
84
86
  sliceText: false,
85
87
  style: _objectSpread({
86
- marginLeft: gapValue
88
+ marginLeft: gapValue,
89
+ zIndex: zIndexReverse ? 0 : avatars.length
87
90
  }, customStyles === null || customStyles === void 0 ? void 0 : customStyles.count)
88
91
  }))]
89
92
  }));
@@ -38,4 +38,5 @@ export interface AvatarGroupProps extends Pick<AvatarProps, 'variant' | 'bordere
38
38
  avatar?: CSSProperties;
39
39
  count?: CSSProperties;
40
40
  };
41
+ zIndexReverse?: boolean;
41
42
  }
@@ -79,6 +79,7 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
79
79
  return /*#__PURE__*/_jsx(Image, {
80
80
  alt: 'mermaid',
81
81
  maxHeight: 480,
82
+ minWidth: 300,
82
83
  objectFit: 'contain',
83
84
  preview: enablePanZoom ? {
84
85
  mask: false,
@@ -94,6 +95,7 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
94
95
  background: variant === 'filled' ? background : undefined,
95
96
  borderRadius: 0,
96
97
  margin: 0,
98
+ minWidth: 300,
97
99
  padding: variant === 'borderless' ? 0 : 16,
98
100
  position: 'relative',
99
101
  width: '100%'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.12.3",
3
+ "version": "2.12.5",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -73,7 +73,7 @@
73
73
  "katex": "^0.16.22",
74
74
  "leva": "^0.10.0",
75
75
  "lodash-es": "^4.17.21",
76
- "lucide-react": "^0.525.0",
76
+ "lucide-react": "^0.543.0",
77
77
  "marked": "^16.2.0",
78
78
  "mermaid": "^11.9.0",
79
79
  "numeral": "^2.0.6",
@@ -102,7 +102,7 @@
102
102
  "remark-math": "^6.0.0",
103
103
  "shiki": "^3.8.1",
104
104
  "swr": "^2.3.4",
105
- "ts-md5": "^1.3.1",
105
+ "ts-md5": "^2.0.0",
106
106
  "unified": "^11.0.5",
107
107
  "url-join": "^5.0.0",
108
108
  "use-merge-value": "^1.2.0",