@lobehub/ui 2.22.0 → 2.23.1
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/es/Alert/Alert.js +4 -1
- package/es/Alert/type.d.ts +2 -1
- package/es/icons/lucideExtra/McpIcon.d.ts +3 -0
- package/es/icons/lucideExtra/McpIcon.js +10 -0
- package/es/icons/lucideExtra/ProviderIcon.d.ts +3 -0
- package/es/icons/lucideExtra/ProviderIcon.js +16 -0
- package/es/icons/lucideExtra/index.d.ts +2 -0
- package/es/icons/lucideExtra/index.js +2 -0
- package/package.json +2 -2
package/es/Alert/Alert.js
CHANGED
|
@@ -29,6 +29,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
29
29
|
var typeIcons = {
|
|
30
30
|
error: XCircle,
|
|
31
31
|
info: Info,
|
|
32
|
+
secondary: AlertTriangle,
|
|
32
33
|
success: CheckCircle,
|
|
33
34
|
warning: AlertTriangle
|
|
34
35
|
};
|
|
@@ -37,6 +38,7 @@ var colors = function colors(theme) {
|
|
|
37
38
|
for (var _len = arguments.length, keys = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
38
39
|
keys[_key - 2] = arguments[_key];
|
|
39
40
|
}
|
|
41
|
+
if (type === 'secondary') return theme[camelCase(['color'].concat(keys).join('-'))];
|
|
40
42
|
return theme[camelCase(['color', type].concat(keys).join('-'))];
|
|
41
43
|
};
|
|
42
44
|
var Alert = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -176,6 +178,7 @@ var Alert = /*#__PURE__*/memo(function (_ref) {
|
|
|
176
178
|
}),
|
|
177
179
|
description: description,
|
|
178
180
|
icon: /*#__PURE__*/_jsx(Icon, _objectSpread({
|
|
181
|
+
color: type === 'secondary' ? theme.colorTextSecondary : undefined,
|
|
179
182
|
icon: typeIcons[type] || icon,
|
|
180
183
|
size: description ? 24 : 18
|
|
181
184
|
}, iconProps)),
|
|
@@ -186,7 +189,7 @@ var Alert = /*#__PURE__*/memo(function (_ref) {
|
|
|
186
189
|
borderColor: colors(theme, type, 'fillSecondary'),
|
|
187
190
|
color: colorfulText ? colors(theme, type) : undefined
|
|
188
191
|
}, style),
|
|
189
|
-
type: type
|
|
192
|
+
type: type === 'secondary' ? 'info' : type
|
|
190
193
|
}, rest));
|
|
191
194
|
if (!extra) return alert;
|
|
192
195
|
if (extraIsolate) return /*#__PURE__*/_jsxs(Flexbox, {
|
package/es/Alert/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { AlertProps as AntAlertProps } from 'antd';
|
|
|
2
2
|
import type { AlertRef } from 'antd/lib/alert/Alert';
|
|
3
3
|
import type { ReactNode, Ref } from 'react';
|
|
4
4
|
import type { IconProps } from "../Icon";
|
|
5
|
-
export interface AlertProps extends Omit<AntAlertProps, 'icon'> {
|
|
5
|
+
export interface AlertProps extends Omit<AntAlertProps, 'icon' | 'type'> {
|
|
6
6
|
classNames?: {
|
|
7
7
|
alert?: string;
|
|
8
8
|
container?: string;
|
|
@@ -18,5 +18,6 @@ export interface AlertProps extends Omit<AntAlertProps, 'icon'> {
|
|
|
18
18
|
text?: {
|
|
19
19
|
detail?: string;
|
|
20
20
|
};
|
|
21
|
+
type?: 'success' | 'info' | 'warning' | 'error' | 'secondary';
|
|
21
22
|
variant?: 'filled' | 'outlined' | 'borderless';
|
|
22
23
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createLucideIcon } from 'lucide-react';
|
|
2
|
+
var McpIcon = createLucideIcon('MCP', [['path', {
|
|
3
|
+
d: 'M2.81064 11.7298L11.6451 2.89563C12.8391 1.70149 14.7754 1.70149 15.9694 2.89563C17.1635 4.08977 17.1635 6.02586 15.9694 7.22M15.9694 7.22L9.29719 13.892M15.9694 7.22C17.1635 6.02586 19.0997 6.02586 20.2938 7.22C21.4879 8.41414 21.4879 10.3502 20.2938 11.5443L12.7645 19.0736C12.3424 19.4958 12.3424 20.1803 12.7645 20.6025L14.1621 22',
|
|
4
|
+
key: '1'
|
|
5
|
+
}], ['path', {
|
|
6
|
+
d: 'M17.9459 9.56668L11.2737 16.239C10.0796 17.433 8.14343 17.433 6.94936 16.239C5.7553 15.0448 5.7553 13.1087 6.94936 11.9146L13.6215 5.24251',
|
|
7
|
+
key: '2'
|
|
8
|
+
}]]);
|
|
9
|
+
McpIcon.displayName = 'McpIcon';
|
|
10
|
+
export default McpIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createLucideIcon } from 'lucide-react';
|
|
2
|
+
var ProviderIcon = createLucideIcon('Provider', [['path', {
|
|
3
|
+
d: 'M15.4 17.4L18.6 14.6C18.7904 14.4162 19.0152 14.2716 19.2615 14.1746C19.5077 14.0776 19.7707 14.0301 20.0354 14.0347C20.3 14.0394 20.5611 14.0961 20.8039 14.2017C21.0466 14.3072 21.2662 14.4596 21.45 14.65C21.6339 14.8404 21.7784 15.0652 21.8754 15.3115C21.9724 15.5577 22.0199 15.8207 22.0153 16.0854C22.0106 16.35 21.9539 16.6111 21.8483 16.8539C21.7428 17.0966 21.5904 17.3162 21.4 17.5L17.8 20.8C17.1 21.6 16.1 22 15 22H11C9.9 22 8.9 21.6 8.2 20.8L6.898 19.336C6.80426 19.2304 6.68923 19.1459 6.56048 19.088C6.43173 19.0301 6.29218 19.0001 6.151 19H5',
|
|
4
|
+
key: '1'
|
|
5
|
+
}], ['path', {
|
|
6
|
+
d: 'M2 14H14C14.5304 14 15.0391 14.2107 15.4142 14.5858C15.7893 14.9609 16 15.4696 16 16C16 16.5304 15.7893 17.0391 15.4142 17.4142C15.0391 17.7893 14.5304 18 14 18H12',
|
|
7
|
+
key: '2'
|
|
8
|
+
}], ['path', {
|
|
9
|
+
d: 'M5 14V20C5 20.265 4.895 20.52 4.707 20.707 4.52 20.895 4.265 21 4 21H2M17.598 6.5C17.828 6.101 17.964 5.655 17.994 5.196 18.024 4.737 17.948 4.277 17.772 3.852 17.596 3.427 17.324 3.048 16.978 2.744 16.632 2.441 16.221 2.221 15.777 2.102 15.332 1.983 14.866 1.968 14.415 2.058 13.963 2.147 13.539 2.34 13.174 2.62 12.809 2.9 12.513 3.26 12.309 3.673 12.106 4.086 12 4.54 12 5 12 4.54 11.894 4.086 11.691 3.673 11.487 3.26 11.191 2.9 10.826 2.62 10.461 2.34 10.037 2.147 9.585 2.058 9.134 1.968 8.668 1.983 8.224 2.102 7.779 2.221 7.368 2.441 7.022 2.744 6.676 3.048 6.404 3.427 6.228 3.852 6.052 4.277 5.976 4.737 6.006 5.196 6.037 5.655 6.172 6.101 6.402 6.5',
|
|
10
|
+
key: '3'
|
|
11
|
+
}], ['path', {
|
|
12
|
+
d: 'M17.997 5.125C18.585 5.276 19.131 5.559 19.593 5.952 20.055 6.346 20.422 6.839 20.665 7.395 20.909 7.951 21.022 8.555 20.998 9.161 20.973 9.768 20.811 10.361 20.523 10.895M6.003 5.125C5.415 5.276 4.869 5.559 4.407 5.952 3.945 6.346 3.578 6.839 3.335 7.395 3.091 7.951 2.978 8.555 3.002 9.161 3.027 9.768 3.189 10.361 3.477 10.895M15 11C14.135 10.747 13.375 10.221 12.834 9.5 12.293 8.778 12.001 7.901 12 7 12 7.901 11.707 8.778 11.166 9.5 10.625 10.221 9.865 10.747 9 11M12 8V5',
|
|
13
|
+
key: '4'
|
|
14
|
+
}]]);
|
|
15
|
+
ProviderIcon.displayName = 'ProviderIcon';
|
|
16
|
+
export default ProviderIcon;
|
|
@@ -6,6 +6,8 @@ export { default as GroupBotIcon } from './GroupBotIcon';
|
|
|
6
6
|
export { default as GroupBotSquareIcon } from './GroupBotSquareIcon';
|
|
7
7
|
export { default as LeftClickIcon } from './LeftClickIcon';
|
|
8
8
|
export { default as LeftDoubleClickIcon } from './LeftDoubleClickIcon';
|
|
9
|
+
export { default as McpIcon } from './McpIcon';
|
|
10
|
+
export { default as ProviderIcon } from './ProviderIcon';
|
|
9
11
|
export { default as RightClickIcon } from './RightClickIcon';
|
|
10
12
|
export { default as RightDoubleClickIcon } from './RightDoubleClickIcon';
|
|
11
13
|
export { default as ShapesUploadIcon } from './ShapesUploadIcon';
|
|
@@ -6,6 +6,8 @@ export { default as GroupBotIcon } from "./GroupBotIcon";
|
|
|
6
6
|
export { default as GroupBotSquareIcon } from "./GroupBotSquareIcon";
|
|
7
7
|
export { default as LeftClickIcon } from "./LeftClickIcon";
|
|
8
8
|
export { default as LeftDoubleClickIcon } from "./LeftDoubleClickIcon";
|
|
9
|
+
export { default as McpIcon } from "./McpIcon";
|
|
10
|
+
export { default as ProviderIcon } from "./ProviderIcon";
|
|
9
11
|
export { default as RightClickIcon } from "./RightClickIcon";
|
|
10
12
|
export { default as RightDoubleClickIcon } from "./RightDoubleClickIcon";
|
|
11
13
|
export { default as ShapesUploadIcon } from "./ShapesUploadIcon";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.1",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/lobehub/lobe-ui.git"
|
|
18
|
+
"url": "git+https://github.com/lobehub/lobe-ui.git"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"author": "LobeHub <i@lobehub.com>",
|