@lobehub/icons 1.58.1 → 1.59.0
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/README.md +7 -6
- package/es/ModelScope/components/Avatar.d.ts +5 -0
- package/es/ModelScope/components/Avatar.js +26 -0
- package/es/ModelScope/components/Color.d.ts +3 -0
- package/es/ModelScope/components/Color.js +49 -0
- package/es/ModelScope/components/Combine.d.ts +7 -0
- package/es/ModelScope/components/Combine.js +32 -0
- package/es/ModelScope/components/Mono.d.ts +3 -0
- package/es/ModelScope/components/Mono.js +41 -0
- package/es/ModelScope/components/Text.d.ts +3 -0
- package/es/ModelScope/components/Text.js +41 -0
- package/es/ModelScope/index.d.ts +16 -0
- package/es/ModelScope/index.js +16 -0
- package/es/ModelScope/style.d.ts +4 -0
- package/es/ModelScope/style.js +4 -0
- package/es/OpenAI/components/Avatar.d.ts +1 -1
- package/es/OpenAI/components/Avatar.js +1 -0
- package/es/features/modelConfig.js +1 -1
- package/es/features/providerConfig.js +5 -0
- package/es/features/providerEnum.d.ts +1 -0
- package/es/features/providerEnum.js +1 -0
- package/es/icons.d.ts +1 -0
- package/es/icons.js +1 -0
- package/es/toc.js +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -100,12 +100,13 @@ Contributions, corrections & requests can be made on GitHub.
|
|
100
100
|
| <a href="https://lobehub.com/icons/rwkv"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/rwkv-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/rwkv-color.png" /></picture><br/>RWKV | <a href="https://lobehub.com/icons/lobehub"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/lobehub-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/lobehub-color.png" /></picture><br/>LobeHub | <a href="https://lobehub.com/icons/recraft"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/recraft.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/recraft.png" /></picture><br/>Recraft |
|
101
101
|
| <a href="https://lobehub.com/icons/spark"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/spark-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/spark-color.png" /></picture><br/>Spark (讯飞星火) | <a href="https://lobehub.com/icons/meta"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/meta-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/meta-color.png" /></picture><br/>Meta | <a href="https://lobehub.com/icons/replit"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/replit-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/replit-color.png" /></picture><br/>Replit |
|
102
102
|
| <a href="https://lobehub.com/icons/stepfun"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/stepfun-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/stepfun-color.png" /></picture><br/>Stepfun (阶跃星辰) | <a href="https://lobehub.com/icons/azure"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/azure-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/azure-color.png" /></picture><br/>Microsoft (Azure) | <a href="https://lobehub.com/icons/runway"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/runway.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/runway.png" /></picture><br/>Runway |
|
103
|
-
| <a href="https://lobehub.com/icons/wenxin"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/wenxin-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/wenxin-color.png" /></picture><br/>Wenxin (文心) | <a href="https://lobehub.com/icons/
|
104
|
-
| <a href="https://lobehub.com/icons/yi"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/yi-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/yi-color.png" /></picture><br/>Yi (零一万物) | <a href="https://lobehub.com/icons/
|
105
|
-
| | <a href="https://lobehub.com/icons/
|
106
|
-
| | <a href="https://lobehub.com/icons/
|
107
|
-
| | <a href="https://lobehub.com/icons/
|
108
|
-
| | <a href="https://lobehub.com/icons/
|
103
|
+
| <a href="https://lobehub.com/icons/wenxin"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/wenxin-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/wenxin-color.png" /></picture><br/>Wenxin (文心) | <a href="https://lobehub.com/icons/modelscope"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/modelscope-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/modelscope-color.png" /></picture><br/>ModelScope (魔搭) | <a href="https://lobehub.com/icons/suno"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/suno.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/suno.png" /></picture><br/>Suno |
|
104
|
+
| <a href="https://lobehub.com/icons/yi"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/yi-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/yi-color.png" /></picture><br/>Yi (零一万物) | <a href="https://lobehub.com/icons/moonshot"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/moonshot.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/moonshot.png" /></picture><br/>Moonshot (月之暗面) | <a href="https://lobehub.com/icons/tiangong"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/tiangong-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/tiangong-color.png" /></picture><br/>Tiangong (天工) |
|
105
|
+
| | <a href="https://lobehub.com/icons/novita"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/novita-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/novita-color.png" /></picture><br/>Novita | <a href="https://lobehub.com/icons/udio"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/udio-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/udio-color.png" /></picture><br/>Udio |
|
106
|
+
| | <a href="https://lobehub.com/icons/ollama"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/ollama.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/ollama.png" /></picture><br/>Ollama | <a href="https://lobehub.com/icons/v0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/v0.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/v0.png" /></picture><br/>V0 (Vercel) |
|
107
|
+
| | <a href="https://lobehub.com/icons/openai"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/openai.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/openai.png" /></picture><br/>OpenAI (ChatGPT) | <a href="https://lobehub.com/icons/viggle"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/viggle.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/viggle.png" /></picture><br/>Viggle |
|
108
|
+
| | <a href="https://lobehub.com/icons/openrouter"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/openrouter.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/openrouter.png" /></picture><br/>OpenRouter | <a href="https://lobehub.com/icons/zeabur"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/zeabur-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/zeabur-color.png" /></picture><br/>Zeabur |
|
109
|
+
| | <a href="https://lobehub.com/icons/perplexity"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/perplexity-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/perplexity-color.png" /></picture><br/>Perplexity | |
|
109
110
|
| | <a href="https://lobehub.com/icons/replicate"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/replicate.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/replicate.png" /></picture><br/>Replicate | |
|
110
111
|
| | <a href="https://lobehub.com/icons/sensenova"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/sensenova-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/sensenova-color.png" /></picture><br/>SenseNova | |
|
111
112
|
| | <a href="https://lobehub.com/icons/siliconcloud"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/dark/siliconcloud-color.png" /><img height="56px" width="56px" src="https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-png/light/siliconcloud-color.png" /></picture><br/>SiliconCloud (SiliconFlow) | |
|
@@ -0,0 +1,26 @@
|
|
1
|
+
'use client';
|
2
|
+
|
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 = ["background"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
9
|
+
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); }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
import { memo } from 'react';
|
13
|
+
import IconAvatar from "../../features/IconAvatar";
|
14
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
15
|
+
import Mono from "./Mono";
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
18
|
+
var background = _ref.background,
|
19
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
20
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
21
|
+
Icon: Mono,
|
22
|
+
"aria-label": TITLE,
|
23
|
+
background: COLOR_PRIMARY || background
|
24
|
+
}, rest));
|
25
|
+
});
|
26
|
+
export default Avatar;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
'use client';
|
2
|
+
|
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 = ["size", "style"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
9
|
+
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); }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
import { forwardRef } from 'react';
|
13
|
+
import { TITLE } from "../style";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
17
|
+
var _ref$size = _ref.size,
|
18
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
19
|
+
style = _ref.style,
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
21
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
22
|
+
height: size,
|
23
|
+
ref: ref,
|
24
|
+
style: _objectSpread({
|
25
|
+
flex: 'none',
|
26
|
+
lineHeight: 1
|
27
|
+
}, style),
|
28
|
+
viewBox: "0 0 24 24",
|
29
|
+
width: size,
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
31
|
+
}, rest), {}, {
|
32
|
+
children: [/*#__PURE__*/_jsx("title", {
|
33
|
+
children: TITLE
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
35
|
+
d: "M0 7.967h2.667v2.667H0zM8 10.633h2.667V13.3H8z",
|
36
|
+
fill: "#36CED0"
|
37
|
+
}), /*#__PURE__*/_jsx("path", {
|
38
|
+
d: "M0 10.633h2.667V13.3H0zM2.667 13.3h2.666v2.667H8v2.666H2.667V13.3zM2.667 5.3H8v2.667H5.333v2.666H2.667V5.3zM10.667 13.3h2.667v2.667h-2.667z",
|
39
|
+
fill: "#624AFF"
|
40
|
+
}), /*#__PURE__*/_jsx("path", {
|
41
|
+
d: "M24 7.967h-2.667v2.667H24zM16 10.633h-2.667V13.3H16z",
|
42
|
+
fill: "#36CED0"
|
43
|
+
}), /*#__PURE__*/_jsx("path", {
|
44
|
+
d: "M24 10.633h-2.667V13.3H24zM21.333 13.3h-2.666v2.667H16v2.666h5.333V13.3zM21.333 5.3H16v2.667h2.667v2.666h2.666V5.3z",
|
45
|
+
fill: "#624AFF"
|
46
|
+
})]
|
47
|
+
}));
|
48
|
+
});
|
49
|
+
export default Icon;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { type IconCombineProps } from "../../features/IconCombine";
|
3
|
+
export interface CombineProps extends Omit<IconCombineProps, 'Icon' | 'Text'> {
|
4
|
+
type?: 'color' | 'mono';
|
5
|
+
}
|
6
|
+
declare const Combine: import("react").NamedExoticComponent<CombineProps>;
|
7
|
+
export default Combine;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
'use client';
|
2
|
+
|
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 = ["type"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
9
|
+
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); }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
import { memo } from 'react';
|
13
|
+
import IconCombine from "../../features/IconCombine";
|
14
|
+
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
15
|
+
import Color from "./Color";
|
16
|
+
import Mono from "./Mono";
|
17
|
+
import Text from "./Text";
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
19
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
20
|
+
var _ref$type = _ref.type,
|
21
|
+
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
22
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
23
|
+
var Icon = type === 'color' ? Color : Mono;
|
24
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
25
|
+
Icon: Icon,
|
26
|
+
Text: Text,
|
27
|
+
"aria-label": TITLE,
|
28
|
+
spaceMultiple: SPACE_MULTIPLE,
|
29
|
+
textMultiple: TEXT_MULTIPLE
|
30
|
+
}, rest));
|
31
|
+
});
|
32
|
+
export default Combine;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use client';
|
2
|
+
|
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 = ["size", "style"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
9
|
+
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); }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
import { forwardRef } from 'react';
|
13
|
+
import { TITLE } from "../style";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
17
|
+
var _ref$size = _ref.size,
|
18
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
19
|
+
style = _ref.style,
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
21
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
22
|
+
fill: "currentColor",
|
23
|
+
fillRule: "evenodd",
|
24
|
+
height: size,
|
25
|
+
ref: ref,
|
26
|
+
style: _objectSpread({
|
27
|
+
flex: 'none',
|
28
|
+
lineHeight: 1
|
29
|
+
}, style),
|
30
|
+
viewBox: "0 0 24 24",
|
31
|
+
width: size,
|
32
|
+
xmlns: "http://www.w3.org/2000/svg"
|
33
|
+
}, rest), {}, {
|
34
|
+
children: [/*#__PURE__*/_jsx("title", {
|
35
|
+
children: TITLE
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
37
|
+
d: "M8 5.3H2.667v2.667H0V13.3h2.667v5.333H8v-2.666H5.333V13.3H2.667v-2.667h2.666V7.967H8V5.3zM8 10.633h2.667V13.3H8v-2.667zM13.333 13.3v2.667h-2.666V13.3h2.666zM13.333 13.3v-2.667H16V13.3h-2.667zM21.333 7.967H24V13.3h-2.667v-2.667h-2.666V7.967H16V5.3h5.333v2.667zM21.333 13.3v5.333H16v-2.666h2.667V13.3h2.666z"
|
38
|
+
})]
|
39
|
+
}));
|
40
|
+
});
|
41
|
+
export default Icon;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use client';
|
2
|
+
|
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 = ["size", "style"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
9
|
+
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); }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
import { forwardRef } from 'react';
|
13
|
+
import { TITLE } from "../style";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
17
|
+
var _ref$size = _ref.size,
|
18
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
19
|
+
style = _ref.style,
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
21
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
22
|
+
fill: "currentColor",
|
23
|
+
fillRule: "evenodd",
|
24
|
+
height: size,
|
25
|
+
ref: ref,
|
26
|
+
style: _objectSpread({
|
27
|
+
flex: 'none',
|
28
|
+
lineHeight: 1
|
29
|
+
}, style),
|
30
|
+
viewBox: "0 0 146 24",
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
32
|
+
}, rest), {}, {
|
33
|
+
children: [/*#__PURE__*/_jsx("title", {
|
34
|
+
children: TITLE
|
35
|
+
}), /*#__PURE__*/_jsx("path", {
|
36
|
+
clipRule: "evenodd",
|
37
|
+
d: "M28.069 6.654v12.692h11V6.654h-11zm3.808 9.942h3.385V9.404h-3.385v7.192zm60.041-9.942v12.692h10.155v-2.75h-6.345V9.404h6.345v-2.75H91.918zm12.792 0v12.692h11.001V6.654H104.71zm3.808 9.942h3.385V9.404h-3.385v7.192zm10.185-9.942V24h3.808v-4.654h7.193V6.654h-11.001zm3.808 9.942h3.385V9.404h-3.385v7.192zM49.445 6.654h-7.193v12.692h11.001V2h-3.808v4.654zm-3.385 9.942h3.385V9.404H46.06v7.192zm24.913 2.75h3.808V2h-3.808v17.346zM56.531 6.654v12.798h11v-2.856H60.34v-2.115h7.193V6.654H56.53zm3.808 5.077h3.384V9.404H60.34v2.327zm76.313.053h3.385v-2.38h-3.385v2.38zm-3.808-5.13v12.692h11.001v-2.75h-7.193v-2.062h7.193v-7.88h-11.001zM78.047 3.89v8.818h7.194v3.888h-7.194v2.75h11.002V9.958h-7.195V6.64h7.195V3.89H78.047zm-72.239.226v7.615H2v3.808h3.808v3.807h3.808V15.54H5.808V11.73h3.808V7.923h3.805V4.116H5.808zm7.615 11.422h3.808V7.923h-3.808v7.615zm3.81-11.422v3.807h3.808v11.423h3.809V4.116h-7.617z"
|
38
|
+
})]
|
39
|
+
}));
|
40
|
+
});
|
41
|
+
export default Icon;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Avatar from './components/Avatar';
|
2
|
+
import Color from './components/Color';
|
3
|
+
import Combine from './components/Combine';
|
4
|
+
import Mono from './components/Mono';
|
5
|
+
import Text from './components/Text';
|
6
|
+
export type CompoundedIcon = typeof Mono & {
|
7
|
+
Avatar: typeof Avatar;
|
8
|
+
Color: typeof Color;
|
9
|
+
Combine: typeof Combine;
|
10
|
+
Text: typeof Text;
|
11
|
+
colorGradient: string;
|
12
|
+
colorPrimary: string;
|
13
|
+
title: string;
|
14
|
+
};
|
15
|
+
declare const Icons: CompoundedIcon;
|
16
|
+
export default Icons;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
import Avatar from "./components/Avatar";
|
4
|
+
import Color from "./components/Color";
|
5
|
+
import Combine from "./components/Combine";
|
6
|
+
import Mono from "./components/Mono";
|
7
|
+
import Text from "./components/Text";
|
8
|
+
import { COLOR_PRIMARY, TITLE } from "./style";
|
9
|
+
var Icons = Mono;
|
10
|
+
Icons.Color = Color;
|
11
|
+
Icons.Text = Text;
|
12
|
+
Icons.Combine = Combine;
|
13
|
+
Icons.Avatar = Avatar;
|
14
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
15
|
+
Icons.title = TITLE;
|
16
|
+
export default Icons;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { type IconAvatarProps } from "../../features/IconAvatar";
|
3
3
|
export interface AvatarProps extends Omit<IconAvatarProps, 'Icon'> {
|
4
|
-
type?: 'normal' | 'gpt3' | 'gpt4' | 'o1';
|
4
|
+
type?: 'normal' | 'gpt3' | 'gpt4' | 'o1' | 'o3';
|
5
5
|
}
|
6
6
|
declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
|
7
7
|
export default Avatar;
|
@@ -40,6 +40,7 @@ import LmStudio from "../LmStudio";
|
|
40
40
|
import LobeHub from "../LobeHub";
|
41
41
|
import Minimax from "../Minimax";
|
42
42
|
import Mistral from "../Mistral";
|
43
|
+
import ModelScope from "../ModelScope";
|
43
44
|
import Moonshot from "../Moonshot";
|
44
45
|
import Novita from "../Novita";
|
45
46
|
import Ollama from "../Ollama";
|
@@ -317,4 +318,8 @@ export var providerMappings = [{
|
|
317
318
|
Icon: GiteeAI,
|
318
319
|
combineMultiple: 0.95,
|
319
320
|
keywords: [ModelProvider.GiteeAI]
|
321
|
+
}, {
|
322
|
+
Icon: ModelScope,
|
323
|
+
combineMultiple: 0.95,
|
324
|
+
keywords: [ModelProvider.ModelScope]
|
320
325
|
}];
|
@@ -21,6 +21,7 @@ export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
|
|
21
21
|
ModelProvider["LobeHub"] = "lobehub";
|
22
22
|
ModelProvider["Minimax"] = "minimax";
|
23
23
|
ModelProvider["Mistral"] = "mistral";
|
24
|
+
ModelProvider["ModelScope"] = "modelscope";
|
24
25
|
ModelProvider["Moonshot"] = "moonshot";
|
25
26
|
ModelProvider["Novita"] = "novita";
|
26
27
|
ModelProvider["Ollama"] = "ollama";
|
package/es/icons.d.ts
CHANGED
@@ -68,6 +68,7 @@ export { default as Meta, type CompoundedIcon as MetaProps } from './Meta';
|
|
68
68
|
export { default as Midjourney, type CompoundedIcon as MidjourneyProps } from './Midjourney';
|
69
69
|
export { default as Minimax, type CompoundedIcon as MinimaxProps } from './Minimax';
|
70
70
|
export { default as Mistral, type CompoundedIcon as MistralProps } from './Mistral';
|
71
|
+
export { default as ModelScope, type CompoundedIcon as ModelScopeProps } from './ModelScope';
|
71
72
|
export { default as Moonshot, type CompoundedIcon as MoonshotProps } from './Moonshot';
|
72
73
|
export { default as MyShell, type CompoundedIcon as MyShellProps } from './MyShell';
|
73
74
|
export { default as Notion, type CompoundedIcon as NotionProps } from './Notion';
|
package/es/icons.js
CHANGED
@@ -68,6 +68,7 @@ export { default as Meta } from "./Meta";
|
|
68
68
|
export { default as Midjourney } from "./Midjourney";
|
69
69
|
export { default as Minimax } from "./Minimax";
|
70
70
|
export { default as Mistral } from "./Mistral";
|
71
|
+
export { default as ModelScope } from "./ModelScope";
|
71
72
|
export { default as Moonshot } from "./Moonshot";
|
72
73
|
export { default as MyShell } from "./MyShell";
|
73
74
|
export { default as Notion } from "./Notion";
|
package/es/toc.js
CHANGED
@@ -1279,6 +1279,24 @@ var toc = [{
|
|
1279
1279
|
"hasTextColor": false
|
1280
1280
|
},
|
1281
1281
|
"title": "Mistral"
|
1282
|
+
}, {
|
1283
|
+
"color": "#624AFF",
|
1284
|
+
"desc": "https://modelscope.cn",
|
1285
|
+
"docsUrl": "model-scope",
|
1286
|
+
"fullTitle": "ModelScope (魔搭)",
|
1287
|
+
"group": "provider",
|
1288
|
+
"id": "ModelScope",
|
1289
|
+
"param": {
|
1290
|
+
"hasAvatar": true,
|
1291
|
+
"hasBrand": false,
|
1292
|
+
"hasBrandColor": false,
|
1293
|
+
"hasColor": true,
|
1294
|
+
"hasCombine": true,
|
1295
|
+
"hasText": true,
|
1296
|
+
"hasTextCn": false,
|
1297
|
+
"hasTextColor": false
|
1298
|
+
},
|
1299
|
+
"title": "ModelScope"
|
1282
1300
|
}, {
|
1283
1301
|
"color": "#16191E",
|
1284
1302
|
"desc": "https://moonshot.cn",
|