@lobehub/icons 1.28.0 → 1.29.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/Ai21/components/Combine.d.ts +3 -1
- package/es/Ai21/components/Combine.js +6 -2
- package/es/AiMass/style.d.ts +1 -1
- package/es/AiMass/style.js +1 -1
- package/es/Azure/components/Avatar.js +1 -2
- package/es/Azure/components/Color.js +5 -5
- package/es/Azure/components/Mono.js +5 -5
- package/es/Baichuan/components/Avatar.js +2 -2
- package/es/Baichuan/index.d.ts +1 -0
- package/es/Baichuan/index.js +2 -1
- package/es/Google/components/Color.js +12 -16
- package/es/Google/components/Mono.js +7 -1
- package/es/Groq/components/Combine.d.ts +3 -1
- package/es/Groq/components/Combine.js +7 -2
- package/es/Groq/style.d.ts +1 -1
- package/es/Groq/style.js +1 -1
- package/es/IconAvatar/index.js +2 -4
- package/es/ModelIcon/DefaultAvatar.d.ts +4 -0
- package/es/ModelIcon/DefaultAvatar.js +42 -0
- package/es/ModelIcon/DefaultIcon.d.ts +9 -0
- package/es/ModelIcon/DefaultIcon.js +30 -0
- package/es/ModelIcon/const.d.ts +19 -0
- package/es/ModelIcon/const.js +157 -0
- package/es/ModelIcon/index.d.ts +10 -0
- package/es/ModelIcon/index.js +136 -0
- package/es/ModelTag/index.d.ts +8 -0
- package/es/ModelTag/index.js +28 -0
- package/es/Moonshot/components/Combine.d.ts +3 -1
- package/es/Moonshot/components/Combine.js +14 -3
- package/es/OpenRouter/components/Combine.d.ts +3 -1
- package/es/OpenRouter/components/Combine.js +11 -3
- package/es/ProviderCombine/const.d.ts +12 -0
- package/es/ProviderCombine/const.js +222 -0
- package/es/ProviderCombine/index.d.ts +11 -0
- package/es/ProviderCombine/index.js +52 -0
- package/es/ProviderIcon/DefaultAvatar.d.ts +4 -0
- package/es/ProviderIcon/DefaultAvatar.js +42 -0
- package/es/ProviderIcon/DefaultIcon.d.ts +9 -0
- package/es/ProviderIcon/DefaultIcon.js +30 -0
- package/es/ProviderIcon/const.d.ts +46 -0
- package/es/ProviderIcon/const.js +124 -0
- package/es/ProviderIcon/index.d.ts +11 -0
- package/es/ProviderIcon/index.js +136 -0
- package/es/Tongyi/components/Avatar.js +2 -2
- package/es/Tongyi/components/Combine.js +10 -3
- package/es/ZeroOne/components/Combine.d.ts +3 -1
- package/es/ZeroOne/components/Combine.js +8 -3
- package/es/ZeroOne/style.d.ts +1 -1
- package/es/ZeroOne/style.js +1 -1
- package/es/index.d.ts +6 -0
- package/es/index.js +6 -0
- package/package.json +16 -16
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["color", "size"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
import { Icon } from '@lobehub/ui';
|
|
11
|
+
import { useTheme } from 'antd-style';
|
|
12
|
+
import { BrainCircuitIcon } from 'lucide-react';
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var DefaultIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16
|
+
var color = _ref.color,
|
|
17
|
+
_ref$size = _ref.size,
|
|
18
|
+
size = _ref$size === void 0 ? 12 : _ref$size,
|
|
19
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
var theme = useTheme();
|
|
21
|
+
return /*#__PURE__*/_jsx(Icon, _objectSpread({
|
|
22
|
+
color: color || theme.colorTextDescription,
|
|
23
|
+
icon: BrainCircuitIcon,
|
|
24
|
+
ref: ref,
|
|
25
|
+
size: {
|
|
26
|
+
fontSize: size
|
|
27
|
+
}
|
|
28
|
+
}, rest));
|
|
29
|
+
});
|
|
30
|
+
export default DefaultIcon;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import type { IconAvatarProps } from "../IconAvatar";
|
|
3
|
+
import type { IconCombineProps } from "../IconCombine";
|
|
4
|
+
import type { IconType } from "../types";
|
|
5
|
+
type ProviderIconType = FC<IconType & any> & {
|
|
6
|
+
Avatar: FC<Omit<IconAvatarProps, 'Icon'> & any>;
|
|
7
|
+
Brand?: FC<IconType & any>;
|
|
8
|
+
BrandColor?: FC<IconType & any>;
|
|
9
|
+
Color?: FC<IconType & any>;
|
|
10
|
+
Combine?: FC<Omit<IconCombineProps, 'Icon' | 'Text'> & any>;
|
|
11
|
+
Text?: FC<IconType & any>;
|
|
12
|
+
};
|
|
13
|
+
export interface ProviderMapping {
|
|
14
|
+
Icon: ProviderIconType;
|
|
15
|
+
keywords: string[];
|
|
16
|
+
props?: any;
|
|
17
|
+
}
|
|
18
|
+
export declare enum ModelProvider {
|
|
19
|
+
Ai360 = "ai360",
|
|
20
|
+
Anthropic = "anthropic",
|
|
21
|
+
Azure = "azure",
|
|
22
|
+
Baichuan = "baichuan",
|
|
23
|
+
Bedrock = "bedrock",
|
|
24
|
+
DeepSeek = "deepseek",
|
|
25
|
+
Google = "google",
|
|
26
|
+
Groq = "groq",
|
|
27
|
+
LobeHub = "lobehub",
|
|
28
|
+
Minimax = "minimax",
|
|
29
|
+
Mistral = "mistral",
|
|
30
|
+
Moonshot = "moonshot",
|
|
31
|
+
Novita = "novita",
|
|
32
|
+
Ollama = "ollama",
|
|
33
|
+
OpenAI = "openai",
|
|
34
|
+
OpenRouter = "openrouter",
|
|
35
|
+
Perplexity = "perplexity",
|
|
36
|
+
Qwen = "qwen",
|
|
37
|
+
SiliconCloud = "siliconcloud",
|
|
38
|
+
Stepfun = "stepfun",
|
|
39
|
+
Taichu = "taichu",
|
|
40
|
+
TogetherAI = "togetherai",
|
|
41
|
+
ZeroOne = "zeroone",
|
|
42
|
+
ZhiPu = "zhipu"
|
|
43
|
+
}
|
|
44
|
+
export type ModelProviderKey = Lowercase<keyof typeof ModelProvider>;
|
|
45
|
+
export declare const providerMappings: ProviderMapping[];
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import Ai360 from "../Ai360";
|
|
2
|
+
import AiMass from "../AiMass";
|
|
3
|
+
import Anthropic from "../Anthropic";
|
|
4
|
+
import Azure from "../Azure";
|
|
5
|
+
import Baichuan from "../Baichuan";
|
|
6
|
+
import Bedrock from "../Bedrock";
|
|
7
|
+
import DeepSeek from "../DeepSeek";
|
|
8
|
+
import Google from "../Google";
|
|
9
|
+
import Groq from "../Groq";
|
|
10
|
+
import LobeHub from "../LobeHub";
|
|
11
|
+
import Minimax from "../Minimax";
|
|
12
|
+
import Mistral from "../Mistral";
|
|
13
|
+
import Moonshot from "../Moonshot";
|
|
14
|
+
import Novita from "../Novita";
|
|
15
|
+
import Ollama from "../Ollama";
|
|
16
|
+
import OpenAI from "../OpenAI";
|
|
17
|
+
import OpenRouter from "../OpenRouter";
|
|
18
|
+
import Perplexity from "../Perplexity";
|
|
19
|
+
import SiliconCloud from "../SiliconCloud";
|
|
20
|
+
import Stepfun from "../Stepfun";
|
|
21
|
+
import Together from "../Together";
|
|
22
|
+
import Tongyi from "../Tongyi";
|
|
23
|
+
import ZeroOne from "../ZeroOne";
|
|
24
|
+
import Zhipu from "../Zhipu";
|
|
25
|
+
export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
|
|
26
|
+
ModelProvider["Ai360"] = "ai360";
|
|
27
|
+
ModelProvider["Anthropic"] = "anthropic";
|
|
28
|
+
ModelProvider["Azure"] = "azure";
|
|
29
|
+
ModelProvider["Baichuan"] = "baichuan";
|
|
30
|
+
ModelProvider["Bedrock"] = "bedrock";
|
|
31
|
+
ModelProvider["DeepSeek"] = "deepseek";
|
|
32
|
+
ModelProvider["Google"] = "google";
|
|
33
|
+
ModelProvider["Groq"] = "groq";
|
|
34
|
+
ModelProvider["LobeHub"] = "lobehub";
|
|
35
|
+
ModelProvider["Minimax"] = "minimax";
|
|
36
|
+
ModelProvider["Mistral"] = "mistral";
|
|
37
|
+
ModelProvider["Moonshot"] = "moonshot";
|
|
38
|
+
ModelProvider["Novita"] = "novita";
|
|
39
|
+
ModelProvider["Ollama"] = "ollama";
|
|
40
|
+
ModelProvider["OpenAI"] = "openai";
|
|
41
|
+
ModelProvider["OpenRouter"] = "openrouter";
|
|
42
|
+
ModelProvider["Perplexity"] = "perplexity";
|
|
43
|
+
ModelProvider["Qwen"] = "qwen";
|
|
44
|
+
ModelProvider["SiliconCloud"] = "siliconcloud";
|
|
45
|
+
ModelProvider["Stepfun"] = "stepfun";
|
|
46
|
+
ModelProvider["Taichu"] = "taichu";
|
|
47
|
+
ModelProvider["TogetherAI"] = "togetherai";
|
|
48
|
+
ModelProvider["ZeroOne"] = "zeroone";
|
|
49
|
+
ModelProvider["ZhiPu"] = "zhipu";
|
|
50
|
+
return ModelProvider;
|
|
51
|
+
}({});
|
|
52
|
+
export var providerMappings = [{
|
|
53
|
+
Icon: LobeHub,
|
|
54
|
+
keywords: [ModelProvider.LobeHub]
|
|
55
|
+
}, {
|
|
56
|
+
Icon: Zhipu,
|
|
57
|
+
keywords: [ModelProvider.ZhiPu]
|
|
58
|
+
}, {
|
|
59
|
+
Icon: Bedrock,
|
|
60
|
+
keywords: [ModelProvider.Bedrock]
|
|
61
|
+
}, {
|
|
62
|
+
Icon: DeepSeek,
|
|
63
|
+
keywords: [ModelProvider.DeepSeek]
|
|
64
|
+
}, {
|
|
65
|
+
Icon: Google,
|
|
66
|
+
keywords: [ModelProvider.Google]
|
|
67
|
+
}, {
|
|
68
|
+
Icon: Azure,
|
|
69
|
+
keywords: [ModelProvider.Azure]
|
|
70
|
+
}, {
|
|
71
|
+
Icon: Moonshot,
|
|
72
|
+
keywords: [ModelProvider.Moonshot]
|
|
73
|
+
}, {
|
|
74
|
+
Icon: Novita,
|
|
75
|
+
keywords: [ModelProvider.Novita]
|
|
76
|
+
}, {
|
|
77
|
+
Icon: OpenAI,
|
|
78
|
+
keywords: [ModelProvider.OpenAI]
|
|
79
|
+
}, {
|
|
80
|
+
Icon: Ollama,
|
|
81
|
+
keywords: [ModelProvider.Ollama]
|
|
82
|
+
}, {
|
|
83
|
+
Icon: Perplexity,
|
|
84
|
+
keywords: [ModelProvider.Perplexity]
|
|
85
|
+
}, {
|
|
86
|
+
Icon: Minimax,
|
|
87
|
+
keywords: [ModelProvider.Minimax]
|
|
88
|
+
}, {
|
|
89
|
+
Icon: Mistral,
|
|
90
|
+
keywords: [ModelProvider.Mistral]
|
|
91
|
+
}, {
|
|
92
|
+
Icon: Anthropic,
|
|
93
|
+
keywords: [ModelProvider.Anthropic]
|
|
94
|
+
}, {
|
|
95
|
+
Icon: Groq,
|
|
96
|
+
keywords: [ModelProvider.Groq]
|
|
97
|
+
}, {
|
|
98
|
+
Icon: OpenRouter,
|
|
99
|
+
keywords: [ModelProvider.OpenRouter]
|
|
100
|
+
}, {
|
|
101
|
+
Icon: ZeroOne,
|
|
102
|
+
keywords: [ModelProvider.ZeroOne]
|
|
103
|
+
}, {
|
|
104
|
+
Icon: Together,
|
|
105
|
+
keywords: [ModelProvider.TogetherAI]
|
|
106
|
+
}, {
|
|
107
|
+
Icon: Tongyi,
|
|
108
|
+
keywords: [ModelProvider.Qwen]
|
|
109
|
+
}, {
|
|
110
|
+
Icon: Stepfun,
|
|
111
|
+
keywords: [ModelProvider.Stepfun]
|
|
112
|
+
}, {
|
|
113
|
+
Icon: Baichuan,
|
|
114
|
+
keywords: [ModelProvider.Baichuan]
|
|
115
|
+
}, {
|
|
116
|
+
Icon: AiMass,
|
|
117
|
+
keywords: [ModelProvider.Taichu]
|
|
118
|
+
}, {
|
|
119
|
+
Icon: Ai360,
|
|
120
|
+
keywords: [ModelProvider.Ai360]
|
|
121
|
+
}, {
|
|
122
|
+
Icon: SiliconCloud,
|
|
123
|
+
keywords: [ModelProvider.SiliconCloud]
|
|
124
|
+
}];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ModelProviderKey } from './const';
|
|
3
|
+
export interface ProviderIconProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
provider?: ModelProviderKey | string;
|
|
6
|
+
size?: number;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
type?: 'avatar' | 'mono' | 'color' | 'combine' | 'combine-color';
|
|
9
|
+
}
|
|
10
|
+
declare const ProviderIcon: import("react").ForwardRefExoticComponent<ProviderIconProps & import("react").RefAttributes<any>>;
|
|
11
|
+
export default ProviderIcon;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["provider", "size", "type"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
|
+
import { forwardRef, useMemo } from 'react';
|
|
14
|
+
import DefaultAvatar from "./DefaultAvatar";
|
|
15
|
+
import DefaultIcon from "./DefaultIcon";
|
|
16
|
+
import { providerMappings } from "./const";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
var ProviderIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19
|
+
var originProvider = _ref.provider,
|
|
20
|
+
_ref$size = _ref.size,
|
|
21
|
+
size = _ref$size === void 0 ? 12 : _ref$size,
|
|
22
|
+
_ref$type = _ref.type,
|
|
23
|
+
type = _ref$type === void 0 ? 'avatar' : _ref$type,
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
var Render = useMemo(function () {
|
|
26
|
+
if (!originProvider) return;
|
|
27
|
+
var provider = originProvider.toLowerCase();
|
|
28
|
+
var _iterator = _createForOfIteratorHelper(providerMappings),
|
|
29
|
+
_step;
|
|
30
|
+
try {
|
|
31
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
32
|
+
var item = _step.value;
|
|
33
|
+
if (item.keywords.some(function (keyword) {
|
|
34
|
+
return new RegExp(keyword, 'i').test(provider);
|
|
35
|
+
})) {
|
|
36
|
+
return item;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
} catch (err) {
|
|
40
|
+
_iterator.e(err);
|
|
41
|
+
} finally {
|
|
42
|
+
_iterator.f();
|
|
43
|
+
}
|
|
44
|
+
}, [originProvider]);
|
|
45
|
+
switch (type) {
|
|
46
|
+
case 'avatar':
|
|
47
|
+
{
|
|
48
|
+
if (!(Render !== null && Render !== void 0 && Render.Icon)) return /*#__PURE__*/_jsx(DefaultAvatar, _objectSpread({
|
|
49
|
+
ref: ref,
|
|
50
|
+
size: size
|
|
51
|
+
}, rest));
|
|
52
|
+
return /*#__PURE__*/_jsx(Render.Icon.Avatar, _objectSpread(_objectSpread({
|
|
53
|
+
ref: ref,
|
|
54
|
+
size: size
|
|
55
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest));
|
|
56
|
+
}
|
|
57
|
+
case 'mono':
|
|
58
|
+
{
|
|
59
|
+
if (!(Render !== null && Render !== void 0 && Render.Icon)) return /*#__PURE__*/_jsx(DefaultIcon, _objectSpread({
|
|
60
|
+
ref: ref,
|
|
61
|
+
size: size
|
|
62
|
+
}, rest));
|
|
63
|
+
return /*#__PURE__*/_jsx(Render.Icon, _objectSpread(_objectSpread({
|
|
64
|
+
ref: ref,
|
|
65
|
+
size: size
|
|
66
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest));
|
|
67
|
+
}
|
|
68
|
+
case 'color':
|
|
69
|
+
{
|
|
70
|
+
var _Render$Icon;
|
|
71
|
+
if (!(Render !== null && Render !== void 0 && Render.Icon)) return /*#__PURE__*/_jsx(DefaultIcon, _objectSpread({
|
|
72
|
+
ref: ref,
|
|
73
|
+
size: size
|
|
74
|
+
}, rest));
|
|
75
|
+
return (_Render$Icon = Render.Icon) !== null && _Render$Icon !== void 0 && _Render$Icon.Color ? /*#__PURE__*/_jsx(Render.Icon.Color, _objectSpread(_objectSpread({
|
|
76
|
+
ref: ref,
|
|
77
|
+
size: size
|
|
78
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : /*#__PURE__*/_jsx(Render.Icon, _objectSpread(_objectSpread({
|
|
79
|
+
ref: ref,
|
|
80
|
+
size: size
|
|
81
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest));
|
|
82
|
+
}
|
|
83
|
+
case 'combine':
|
|
84
|
+
{
|
|
85
|
+
var _Render$Icon2, _Render$Icon3, _Render$Icon4;
|
|
86
|
+
if (!(Render !== null && Render !== void 0 && Render.Icon)) return /*#__PURE__*/_jsx(DefaultIcon, _objectSpread({
|
|
87
|
+
ref: ref,
|
|
88
|
+
size: size
|
|
89
|
+
}, rest));
|
|
90
|
+
return (_Render$Icon2 = Render.Icon) !== null && _Render$Icon2 !== void 0 && _Render$Icon2.Combine ? /*#__PURE__*/_jsx(Render.Icon.Combine, _objectSpread(_objectSpread({
|
|
91
|
+
ref: ref,
|
|
92
|
+
size: size
|
|
93
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : (_Render$Icon3 = Render.Icon) !== null && _Render$Icon3 !== void 0 && _Render$Icon3.Brand ? /*#__PURE__*/_jsx(Render.Icon.Brand, _objectSpread(_objectSpread({
|
|
94
|
+
ref: ref,
|
|
95
|
+
size: size
|
|
96
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : (_Render$Icon4 = Render.Icon) !== null && _Render$Icon4 !== void 0 && _Render$Icon4.Text ? /*#__PURE__*/_jsx(Render.Icon.Text, _objectSpread(_objectSpread({
|
|
97
|
+
ref: ref,
|
|
98
|
+
size: size
|
|
99
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : /*#__PURE__*/_jsx(Render.Icon, _objectSpread(_objectSpread({
|
|
100
|
+
ref: ref,
|
|
101
|
+
size: size
|
|
102
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest));
|
|
103
|
+
}
|
|
104
|
+
case 'combine-color':
|
|
105
|
+
{
|
|
106
|
+
var _Render$Icon5, _Render$Icon6, _Render$Icon7;
|
|
107
|
+
if (!(Render !== null && Render !== void 0 && Render.Icon)) return /*#__PURE__*/_jsx(DefaultIcon, _objectSpread({
|
|
108
|
+
ref: ref,
|
|
109
|
+
size: size
|
|
110
|
+
}, rest));
|
|
111
|
+
return (_Render$Icon5 = Render.Icon) !== null && _Render$Icon5 !== void 0 && _Render$Icon5.Combine ? /*#__PURE__*/_jsx(Render.Icon.Combine, _objectSpread(_objectSpread({
|
|
112
|
+
ref: ref,
|
|
113
|
+
size: size,
|
|
114
|
+
type: 'color'
|
|
115
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : (_Render$Icon6 = Render.Icon) !== null && _Render$Icon6 !== void 0 && _Render$Icon6.BrandColor ? /*#__PURE__*/_jsx(Render.Icon.BrandColor, _objectSpread(_objectSpread({
|
|
116
|
+
ref: ref,
|
|
117
|
+
size: size,
|
|
118
|
+
type: 'color'
|
|
119
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : (_Render$Icon7 = Render.Icon) !== null && _Render$Icon7 !== void 0 && _Render$Icon7.Text ? /*#__PURE__*/_jsx(Render.Icon.Text, _objectSpread(_objectSpread({
|
|
120
|
+
ref: ref,
|
|
121
|
+
size: size
|
|
122
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest)) : /*#__PURE__*/_jsx(Render.Icon, _objectSpread(_objectSpread({
|
|
123
|
+
ref: ref,
|
|
124
|
+
size: size
|
|
125
|
+
}, (Render === null || Render === void 0 ? void 0 : Render.props) || {}), rest));
|
|
126
|
+
}
|
|
127
|
+
default:
|
|
128
|
+
{
|
|
129
|
+
return /*#__PURE__*/_jsx(DefaultIcon, _objectSpread({
|
|
130
|
+
ref: ref,
|
|
131
|
+
size: size
|
|
132
|
+
}, rest));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
export default ProviderIcon;
|
|
@@ -9,7 +9,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9
9
|
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; }
|
|
10
10
|
import { memo } from 'react';
|
|
11
11
|
import IconAvatar from "../../IconAvatar";
|
|
12
|
-
import {
|
|
12
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
13
13
|
import Mono from "./Mono";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -18,7 +18,7 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
18
18
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
19
19
|
Icon: Mono,
|
|
20
20
|
"aria-label": TITLE,
|
|
21
|
-
background: background ||
|
|
21
|
+
background: background || COLOR_PRIMARY
|
|
22
22
|
}, rest));
|
|
23
23
|
});
|
|
24
24
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
var _excluded = ["type", "extraStyle"];
|
|
2
|
+
var _excluded = ["type", "extraStyle", "iconProps"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -7,9 +7,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
|
+
import { useThemeMode } from 'antd-style';
|
|
10
11
|
import { memo } from 'react';
|
|
11
12
|
import IconCombine from "../../IconCombine";
|
|
12
|
-
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
13
|
+
import { COLOR_PRIMARY, SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
13
14
|
import Color from "./Color";
|
|
14
15
|
import Mono from "./Mono";
|
|
15
16
|
import Text from "./Text";
|
|
@@ -18,8 +19,11 @@ var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
|
18
19
|
var _ref$type = _ref.type,
|
|
19
20
|
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
20
21
|
extraStyle = _ref.extraStyle,
|
|
22
|
+
iconProps = _ref.iconProps,
|
|
21
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
var
|
|
24
|
+
var _useThemeMode = useThemeMode(),
|
|
25
|
+
isDarkMode = _useThemeMode.isDarkMode;
|
|
26
|
+
var Icon = type === 'color' && !isDarkMode ? Color : Mono;
|
|
23
27
|
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
24
28
|
Icon: Icon,
|
|
25
29
|
Text: Text,
|
|
@@ -27,6 +31,9 @@ var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
|
27
31
|
extraStyle: _objectSpread({
|
|
28
32
|
fontWeight: 500
|
|
29
33
|
}, extraStyle),
|
|
34
|
+
iconProps: _objectSpread({
|
|
35
|
+
color: type === 'color' && isDarkMode ? COLOR_PRIMARY : undefined
|
|
36
|
+
}, iconProps),
|
|
30
37
|
spaceMultiple: SPACE_MULTIPLE,
|
|
31
38
|
textMultiple: TEXT_MULTIPLE
|
|
32
39
|
}, rest));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type IconCombineProps } from "../../IconCombine";
|
|
3
|
-
export
|
|
3
|
+
export interface CombineProps extends Omit<IconCombineProps, 'Icon' | 'Text'> {
|
|
4
|
+
type?: 'mono' | 'color';
|
|
5
|
+
}
|
|
4
6
|
declare const Combine: import("react").NamedExoticComponent<CombineProps>;
|
|
5
7
|
export default Combine;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
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); }
|
|
2
|
+
var _excluded = ["type"];
|
|
2
3
|
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; }
|
|
3
4
|
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; }
|
|
4
5
|
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
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
8
10
|
import { memo } from 'react';
|
|
9
11
|
import IconCombine from "../../IconCombine";
|
|
10
12
|
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
11
13
|
import Avatar from "./Avatar";
|
|
14
|
+
import Mono from "./Mono";
|
|
12
15
|
import Text from "./Text";
|
|
13
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
17
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
15
|
-
var
|
|
18
|
+
var _ref$type = _ref.type,
|
|
19
|
+
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
21
|
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
17
|
-
Icon: Avatar,
|
|
22
|
+
Icon: type === 'mono' ? Mono : Avatar,
|
|
18
23
|
Text: Text,
|
|
19
24
|
"aria-label": TITLE,
|
|
20
25
|
iconProps: {
|
package/es/ZeroOne/style.d.ts
CHANGED
package/es/ZeroOne/style.js
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ export { default as Meta, type CompoundedIcon as MetaProps } from './Meta';
|
|
|
48
48
|
export { default as Midjourney, type CompoundedIcon as MidjourneyProps } from './Midjourney';
|
|
49
49
|
export { default as Minimax, type CompoundedIcon as MinimaxProps } from './Minimax';
|
|
50
50
|
export { default as Mistral, type CompoundedIcon as MistralProps } from './Mistral';
|
|
51
|
+
export { default as ModelIcon, type ModelIconProps } from './ModelIcon';
|
|
52
|
+
export { modelMappings } from './ModelIcon/const';
|
|
53
|
+
export { default as ModelTag, type ModelTagProps } from './ModelTag';
|
|
51
54
|
export { default as Moonshot, type CompoundedIcon as MoonshotProps } from './Moonshot';
|
|
52
55
|
export { default as Novita, type CompoundedIcon as NovitaProps } from './Novita';
|
|
53
56
|
export { default as Nvidia, type CompoundedIcon as NvidiaProps } from './Nvidia';
|
|
@@ -57,6 +60,9 @@ export { default as OpenChat, type CompoundedIcon as OpenChatProps } from './Ope
|
|
|
57
60
|
export { default as OpenRouter, type CompoundedIcon as OpenRouterProps } from './OpenRouter';
|
|
58
61
|
export { default as Perplexity, type CompoundedIcon as PerplexityProps } from './Perplexity';
|
|
59
62
|
export { default as Pollinations, type CompoundedIcon as PollinationsProps } from './Pollinations';
|
|
63
|
+
export { default as ProviderCombine, type ProviderCombineProps } from './ProviderCombine';
|
|
64
|
+
export { default as ProviderIcon, type ProviderIconProps } from './ProviderIcon';
|
|
65
|
+
export { ModelProvider, type ModelProviderKey, providerMappings } from './ProviderIcon/const';
|
|
60
66
|
export { default as Qingyan, type CompoundedIcon as QingyanProps } from './Qingyan';
|
|
61
67
|
export { default as Replicate, type CompoundedIcon as ReplicateProps } from './Replicate';
|
|
62
68
|
export { default as Rwkv, type CompoundedIcon as RwkvProps } from './Rwkv';
|
package/es/index.js
CHANGED
|
@@ -48,6 +48,9 @@ export { default as Meta } from "./Meta";
|
|
|
48
48
|
export { default as Midjourney } from "./Midjourney";
|
|
49
49
|
export { default as Minimax } from "./Minimax";
|
|
50
50
|
export { default as Mistral } from "./Mistral";
|
|
51
|
+
export { default as ModelIcon } from "./ModelIcon";
|
|
52
|
+
export { modelMappings } from "./ModelIcon/const";
|
|
53
|
+
export { default as ModelTag } from "./ModelTag";
|
|
51
54
|
export { default as Moonshot } from "./Moonshot";
|
|
52
55
|
export { default as Novita } from "./Novita";
|
|
53
56
|
export { default as Nvidia } from "./Nvidia";
|
|
@@ -57,6 +60,9 @@ export { default as OpenChat } from "./OpenChat";
|
|
|
57
60
|
export { default as OpenRouter } from "./OpenRouter";
|
|
58
61
|
export { default as Perplexity } from "./Perplexity";
|
|
59
62
|
export { default as Pollinations } from "./Pollinations";
|
|
63
|
+
export { default as ProviderCombine } from "./ProviderCombine";
|
|
64
|
+
export { default as ProviderIcon } from "./ProviderIcon";
|
|
65
|
+
export { ModelProvider, providerMappings } from "./ProviderIcon/const";
|
|
60
66
|
export { default as Qingyan } from "./Qingyan";
|
|
61
67
|
export { default as Replicate } from "./Replicate";
|
|
62
68
|
export { default as Rwkv } from "./Rwkv";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/icons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.1",
|
|
4
4
|
"description": "Popular AI / LLM Model Brand SVG Logo and Icon Collection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -71,33 +71,30 @@
|
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
+
"@babel/runtime": "^7.25.4",
|
|
74
75
|
"@commitlint/cli": "^18.6.1",
|
|
75
|
-
"@lobehub/lint": "
|
|
76
|
-
"@lobehub/ui": "^1.146.9",
|
|
76
|
+
"@lobehub/lint": "^1.24.4",
|
|
77
77
|
"@testing-library/react": "^14.3.1",
|
|
78
78
|
"@types/lodash-es": "^4.17.12",
|
|
79
79
|
"@types/pangu": "^4.0.2",
|
|
80
80
|
"@types/query-string": "^6.3.0",
|
|
81
|
-
"@types/react": "^18.3.
|
|
81
|
+
"@types/react": "^18.3.4",
|
|
82
82
|
"@types/react-dom": "^18.3.0",
|
|
83
|
-
"@vitest/coverage-v8": "
|
|
84
|
-
"antd": "^
|
|
85
|
-
"antd-style": "^3.6.2",
|
|
86
|
-
"babel-plugin-antd-style": "latest",
|
|
83
|
+
"@vitest/coverage-v8": "~1.2.2",
|
|
84
|
+
"babel-plugin-antd-style": "^1.0.4",
|
|
87
85
|
"commitlint": "^18.6.1",
|
|
88
86
|
"concurrently": "^8.2.2",
|
|
89
87
|
"cross-env": "^7.0.3",
|
|
90
88
|
"dumi": "2.2.17",
|
|
91
|
-
"dumi-theme-lobehub": "
|
|
89
|
+
"dumi-theme-lobehub": "^1.8.1",
|
|
92
90
|
"eslint": "^8.57.0",
|
|
93
|
-
"father": "^4.
|
|
91
|
+
"father": "^4.5.0",
|
|
94
92
|
"glob": "^11.0.0",
|
|
95
93
|
"gray-matter": "^4.0.3",
|
|
96
94
|
"husky": "^8.0.3",
|
|
97
95
|
"jsdom": "^23.2.0",
|
|
98
|
-
"lint-staged": "^15.2.
|
|
96
|
+
"lint-staged": "^15.2.9",
|
|
99
97
|
"lodash-es": "^4.17.21",
|
|
100
|
-
"lucide-react": "latest",
|
|
101
98
|
"markdown-table": "^3.0.3",
|
|
102
99
|
"prettier": "^3.3.3",
|
|
103
100
|
"react": "^18.3.1",
|
|
@@ -107,12 +104,15 @@
|
|
|
107
104
|
"semantic-release": "^21.1.2",
|
|
108
105
|
"stylelint": "^15.11.0",
|
|
109
106
|
"svgo-browser": "^1.3.8",
|
|
110
|
-
"tsx": "^4.
|
|
111
|
-
"typescript": "^5.5.
|
|
112
|
-
"vitest": "
|
|
107
|
+
"tsx": "^4.18.0",
|
|
108
|
+
"typescript": "^5.5.4",
|
|
109
|
+
"vitest": "~1.2.2"
|
|
113
110
|
},
|
|
114
111
|
"peerDependencies": {
|
|
115
|
-
"@
|
|
112
|
+
"@lobehub/ui": ">=1",
|
|
113
|
+
"antd": ">=5",
|
|
114
|
+
"antd-style": ">=3",
|
|
115
|
+
"lucide-react": ">=0.396.0",
|
|
116
116
|
"react": ">=18",
|
|
117
117
|
"react-dom": ">=18",
|
|
118
118
|
"react-layout-kit": ">=1"
|