@lobehub/icons 1.33.4 → 1.33.6
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/IconAvatar/index.js +2 -1
- package/es/IconAvatar/util.d.ts +1 -0
- package/es/IconAvatar/util.js +8 -0
- package/es/ModelIcon/const.js +9 -3
- package/es/OpenAI/components/Avatar.d.ts +1 -1
- package/es/OpenAI/components/Avatar.js +6 -1
- package/es/OpenAI/index.d.ts +1 -0
- package/es/OpenAI/index.js +2 -1
- package/es/OpenAI/style.d.ts +1 -0
- package/es/OpenAI/style.js +2 -1
- package/es/ProviderIcon/const.d.ts +1 -0
- package/es/ProviderIcon/const.js +5 -0
- package/package.json +1 -1
package/es/IconAvatar/index.js
CHANGED
@@ -6,6 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
6
6
|
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
7
|
import { forwardRef } from 'react';
|
8
8
|
import { Center } from 'react-layout-kit';
|
9
|
+
import { roundToEven } from "./util";
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
10
11
|
var IconAvatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
11
12
|
var _ref$shape = _ref.shape,
|
@@ -32,7 +33,7 @@ var IconAvatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
32
33
|
}, style),
|
33
34
|
children: Icon && /*#__PURE__*/_jsx(Icon, {
|
34
35
|
className: iconClassName,
|
35
|
-
size: size * iconMultiple,
|
36
|
+
size: roundToEven(size * iconMultiple),
|
36
37
|
style: iconStyle
|
37
38
|
})
|
38
39
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const roundToEven: (number: number) => number;
|
package/es/ModelIcon/const.js
CHANGED
@@ -58,6 +58,12 @@ export var modelMappings = [{
|
|
58
58
|
props: {
|
59
59
|
type: 'gpt4'
|
60
60
|
}
|
61
|
+
}, {
|
62
|
+
Icon: OpenAI,
|
63
|
+
keywords: ['o1-'],
|
64
|
+
props: {
|
65
|
+
type: 'o1'
|
66
|
+
}
|
61
67
|
}, {
|
62
68
|
Icon: Dalle,
|
63
69
|
keywords: ['dalle']
|
@@ -111,7 +117,7 @@ export var modelMappings = [{
|
|
111
117
|
keywords: ['pplx', 'sonar']
|
112
118
|
}, {
|
113
119
|
Icon: Yi,
|
114
|
-
keywords: ['^yi-', '/yi-']
|
120
|
+
keywords: ['^yi-', '/yi-', '-yi-']
|
115
121
|
}, {
|
116
122
|
Icon: OpenRouter,
|
117
123
|
keywords: ['^openrouter']
|
@@ -147,7 +153,7 @@ export var modelMappings = [{
|
|
147
153
|
keywords: ['ernie']
|
148
154
|
}, {
|
149
155
|
Icon: Doubao,
|
150
|
-
keywords: ['^
|
156
|
+
keywords: ['^ep-']
|
151
157
|
}, {
|
152
158
|
Icon: Hunyuan,
|
153
159
|
keywords: ['hunyuan']
|
@@ -180,7 +186,7 @@ export var modelMappings = [{
|
|
180
186
|
keywords: ['internlm']
|
181
187
|
}, {
|
182
188
|
Icon: Upstage,
|
183
|
-
keywords: ['^solar-']
|
189
|
+
keywords: ['^solar-', '/solar']
|
184
190
|
}, {
|
185
191
|
Icon: PaLM,
|
186
192
|
keywords: ['palm']
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { type IconAvatarProps } from "../../IconAvatar";
|
3
3
|
export interface AvatarProps extends Omit<IconAvatarProps, 'Icon'> {
|
4
|
-
type?: 'normal' | 'gpt3' | 'gpt4';
|
4
|
+
type?: 'normal' | 'gpt3' | 'gpt4' | 'o1';
|
5
5
|
}
|
6
6
|
declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
|
7
7
|
export default Avatar;
|
@@ -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 { COLOR_GPT_3, COLOR_GPT_4, COLOR_PRIMARY, TITLE } from "../style";
|
12
|
+
import { COLOR_GPT_3, COLOR_GPT_4, COLOR_O_1, 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) {
|
@@ -29,6 +29,11 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
29
29
|
bg = COLOR_GPT_4;
|
30
30
|
break;
|
31
31
|
}
|
32
|
+
case 'o1':
|
33
|
+
{
|
34
|
+
bg = COLOR_O_1;
|
35
|
+
break;
|
36
|
+
}
|
32
37
|
default:
|
33
38
|
{
|
34
39
|
bg = background || COLOR_PRIMARY;
|
package/es/OpenAI/index.d.ts
CHANGED
package/es/OpenAI/index.js
CHANGED
@@ -2,7 +2,7 @@ import Avatar from "./components/Avatar";
|
|
2
2
|
import Combine from "./components/Combine";
|
3
3
|
import Mono from "./components/Mono";
|
4
4
|
import Text from "./components/Text";
|
5
|
-
import { COLOR_GPT_3, COLOR_GPT_4, COLOR_PRIMARY, TITLE } from "./style";
|
5
|
+
import { COLOR_GPT_3, COLOR_GPT_4, COLOR_O_1, COLOR_PRIMARY, TITLE } from "./style";
|
6
6
|
var Icons = Mono;
|
7
7
|
Icons.Text = Text;
|
8
8
|
Icons.Combine = Combine;
|
@@ -10,5 +10,6 @@ Icons.Avatar = Avatar;
|
|
10
10
|
Icons.colorPrimary = COLOR_PRIMARY;
|
11
11
|
Icons.colorGpt3 = COLOR_GPT_3;
|
12
12
|
Icons.colorGpt4 = COLOR_GPT_4;
|
13
|
+
Icons.colorO1 = COLOR_O_1;
|
13
14
|
Icons.title = TITLE;
|
14
15
|
export default Icons;
|
package/es/OpenAI/style.d.ts
CHANGED
package/es/OpenAI/style.js
CHANGED
package/es/ProviderIcon/const.js
CHANGED
@@ -6,6 +6,7 @@ import Azure from "../Azure";
|
|
6
6
|
import Baichuan from "../Baichuan";
|
7
7
|
import Bedrock from "../Bedrock";
|
8
8
|
import DeepSeek from "../DeepSeek";
|
9
|
+
import Doubao from "../Doubao";
|
9
10
|
import Fireworks from "../Fireworks";
|
10
11
|
import Github from "../Github";
|
11
12
|
import Google from "../Google";
|
@@ -35,6 +36,7 @@ export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
|
|
35
36
|
ModelProvider["Baichuan"] = "baichuan";
|
36
37
|
ModelProvider["Bedrock"] = "bedrock";
|
37
38
|
ModelProvider["DeepSeek"] = "deepseek";
|
39
|
+
ModelProvider["Doubao"] = "Doubao";
|
38
40
|
ModelProvider["FireworksAI"] = "fireworksai";
|
39
41
|
ModelProvider["Github"] = "github";
|
40
42
|
ModelProvider["Google"] = "google";
|
@@ -146,4 +148,7 @@ export var providerMappings = [{
|
|
146
148
|
}, {
|
147
149
|
Icon: Github,
|
148
150
|
keywords: [ModelProvider.Github]
|
151
|
+
}, {
|
152
|
+
Icon: Doubao,
|
153
|
+
keywords: [ModelProvider.Doubao]
|
149
154
|
}];
|