@lobehub/icons 1.33.1 → 1.33.3

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.
@@ -7,6 +7,7 @@ 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 { useTheme } from 'antd-style';
10
11
  import { memo } from 'react';
11
12
  import IconCombine from "../../IconCombine";
12
13
  import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
@@ -18,13 +19,14 @@ var Combine = /*#__PURE__*/memo(function (_ref) {
18
19
  type = _ref$type === void 0 ? 'mono' : _ref$type,
19
20
  iconProps = _ref.iconProps,
20
21
  rest = _objectWithoutProperties(_ref, _excluded);
21
- // @ts-ignore
22
- if (type === 'mono') return /*#__PURE__*/_jsx(Text, _objectSpread({}, rest));
22
+ var theme = useTheme();
23
23
  return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
24
24
  Icon: Avatar,
25
25
  Text: Text,
26
26
  "aria-label": TITLE,
27
27
  iconProps: _objectSpread({
28
+ background: type === 'mono' ? theme.colorText : undefined,
29
+ color: type === 'mono' ? theme.colorBgLayout : undefined,
28
30
  shape: 'square'
29
31
  }, iconProps),
30
32
  spaceMultiple: SPACE_MULTIPLE,
@@ -1,5 +1,5 @@
1
1
  export declare const TITLE = "AI21";
2
- export declare const TEXT_MULTIPLE = 0.7;
2
+ export declare const TEXT_MULTIPLE = 0.75;
3
3
  export declare const SPACE_MULTIPLE = 0.2;
4
4
  export declare const COLOR_PRIMARY = "#E91E63";
5
5
  export declare const COLOR_GRADIENT = "linear-gradient(-45deg, #F68CB2, #E91E63)";
package/es/Ai21/style.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export var TITLE = 'AI21';
2
- export var TEXT_MULTIPLE = 0.7;
2
+ export var TEXT_MULTIPLE = 0.75;
3
3
  export var SPACE_MULTIPLE = 0.2;
4
4
  export var COLOR_PRIMARY = '#E91E63';
5
5
  export var COLOR_GRADIENT = 'linear-gradient(-45deg, #F68CB2, #E91E63)';
@@ -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"];
2
+ var _excluded = ["type", "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,6 +7,7 @@ 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 { useTheme } from 'antd-style';
10
11
  import { memo } from 'react';
11
12
  import IconCombine from "../../IconCombine";
12
13
  import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
@@ -16,12 +17,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
16
17
  var Combine = /*#__PURE__*/memo(function (_ref) {
17
18
  var _ref$type = _ref.type,
18
19
  type = _ref$type === void 0 ? 'mono' : _ref$type,
20
+ iconProps = _ref.iconProps,
19
21
  rest = _objectWithoutProperties(_ref, _excluded);
22
+ var theme = useTheme();
20
23
  return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
21
24
  Icon: Avatar,
22
25
  Text: Text,
23
26
  "aria-label": TITLE,
24
- showLogo: type === 'color',
27
+ iconProps: _objectSpread({
28
+ background: type === 'mono' ? theme.colorText : undefined,
29
+ color: type === 'mono' ? theme.colorBgLayout : undefined,
30
+ shape: 'circle'
31
+ }, iconProps),
25
32
  spaceMultiple: SPACE_MULTIPLE,
26
33
  textMultiple: TEXT_MULTIPLE
27
34
  }, rest));
@@ -174,7 +174,7 @@ export var modelMappings = [{
174
174
  keywords: ['firefly']
175
175
  }, {
176
176
  Icon: Ai21,
177
- keywords: ['jamba', '^j2-']
177
+ keywords: ['jamba', '^j2-', 'ai21']
178
178
  }, {
179
179
  Icon: InternLM,
180
180
  keywords: ['internlm']
@@ -14,6 +14,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
14
14
  import { Divider } from 'antd';
15
15
  import { memo } from 'react';
16
16
  import { Flexbox } from 'react-layout-kit';
17
+ import Ai21 from "../Ai21";
17
18
  import Ai360 from "../Ai360";
18
19
  import AiMass from "../AiMass";
19
20
  import Anthropic from "../Anthropic";
@@ -25,6 +26,7 @@ import Claude from "../Claude";
25
26
  import DeepSeek from "../DeepSeek";
26
27
  import Fireworks from "../Fireworks";
27
28
  import Gemini from "../Gemini";
29
+ import Github from "../Github";
28
30
  import Google from "../Google";
29
31
  import Groq from "../Groq";
30
32
  import LobeHub from "../LobeHub";
@@ -237,4 +239,12 @@ export var providerMappings = [{
237
239
  Icon: Upstage.Combine,
238
240
  keywords: [ModelProvider.Upstage],
239
241
  multiple: 0.9
242
+ }, {
243
+ Icon: Ai21.Combine,
244
+ keywords: [ModelProvider.Ai21],
245
+ multiple: 0.9
246
+ }, {
247
+ Icon: Github.Combine,
248
+ keywords: [ModelProvider.Github],
249
+ multiple: 0.95
240
250
  }];
@@ -16,6 +16,7 @@ export interface ProviderMapping {
16
16
  props?: any;
17
17
  }
18
18
  export declare enum ModelProvider {
19
+ Ai21 = "ai21",
19
20
  Ai360 = "ai360",
20
21
  Anthropic = "anthropic",
21
22
  Azure = "azure",
@@ -23,6 +24,7 @@ export declare enum ModelProvider {
23
24
  Bedrock = "bedrock",
24
25
  DeepSeek = "deepseek",
25
26
  FireworksAI = "fireworksai",
27
+ Github = "github",
26
28
  Google = "google",
27
29
  Groq = "groq",
28
30
  LobeHub = "lobehub",
@@ -1,3 +1,4 @@
1
+ import Ai21 from "../Ai21";
1
2
  import Ai360 from "../Ai360";
2
3
  import AiMass from "../AiMass";
3
4
  import Anthropic from "../Anthropic";
@@ -6,6 +7,7 @@ import Baichuan from "../Baichuan";
6
7
  import Bedrock from "../Bedrock";
7
8
  import DeepSeek from "../DeepSeek";
8
9
  import Fireworks from "../Fireworks";
10
+ import Github from "../Github";
9
11
  import Google from "../Google";
10
12
  import Groq from "../Groq";
11
13
  import LobeHub from "../LobeHub";
@@ -26,6 +28,7 @@ import Upstage from "../Upstage";
26
28
  import ZeroOne from "../ZeroOne";
27
29
  import Zhipu from "../Zhipu";
28
30
  export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
31
+ ModelProvider["Ai21"] = "ai21";
29
32
  ModelProvider["Ai360"] = "ai360";
30
33
  ModelProvider["Anthropic"] = "anthropic";
31
34
  ModelProvider["Azure"] = "azure";
@@ -33,6 +36,7 @@ export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
33
36
  ModelProvider["Bedrock"] = "bedrock";
34
37
  ModelProvider["DeepSeek"] = "deepseek";
35
38
  ModelProvider["FireworksAI"] = "fireworksai";
39
+ ModelProvider["Github"] = "github";
36
40
  ModelProvider["Google"] = "google";
37
41
  ModelProvider["Groq"] = "groq";
38
42
  ModelProvider["LobeHub"] = "lobehub";
@@ -136,4 +140,10 @@ export var providerMappings = [{
136
140
  }, {
137
141
  Icon: Upstage,
138
142
  keywords: [ModelProvider.Upstage]
143
+ }, {
144
+ Icon: Ai21,
145
+ keywords: [ModelProvider.Ai21]
146
+ }, {
147
+ Icon: Github,
148
+ keywords: [ModelProvider.Github]
139
149
  }];
@@ -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"];
2
+ var _excluded = ["type", "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,24 +7,28 @@ 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 { useTheme } from 'antd-style';
10
11
  import { memo } from 'react';
11
12
  import IconCombine from "../../IconCombine";
12
13
  import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
13
14
  import Avatar from "./Avatar";
14
- import Mono from "./Mono";
15
15
  import Text from "./Text";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  var Combine = /*#__PURE__*/memo(function (_ref) {
18
18
  var _ref$type = _ref.type,
19
19
  type = _ref$type === void 0 ? 'mono' : _ref$type,
20
+ iconProps = _ref.iconProps,
20
21
  rest = _objectWithoutProperties(_ref, _excluded);
22
+ var theme = useTheme();
21
23
  return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
22
- Icon: type === 'mono' ? Mono : Avatar,
24
+ Icon: Avatar,
23
25
  Text: Text,
24
26
  "aria-label": TITLE,
25
- iconProps: {
27
+ iconProps: _objectSpread({
28
+ background: type === 'mono' ? theme.colorText : undefined,
29
+ color: type === 'mono' ? theme.colorBgLayout : undefined,
26
30
  shape: 'square'
27
- },
31
+ }, iconProps),
28
32
  spaceMultiple: SPACE_MULTIPLE,
29
33
  textMultiple: TEXT_MULTIPLE
30
34
  }, rest));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/icons",
3
- "version": "1.33.1",
3
+ "version": "1.33.3",
4
4
  "description": "Popular AI / LLM Model Brand SVG Logo and Icon Collection",
5
5
  "keywords": [
6
6
  "lobehub",