@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.
Files changed (52) hide show
  1. package/es/Ai21/components/Combine.d.ts +3 -1
  2. package/es/Ai21/components/Combine.js +6 -2
  3. package/es/AiMass/style.d.ts +1 -1
  4. package/es/AiMass/style.js +1 -1
  5. package/es/Azure/components/Avatar.js +1 -2
  6. package/es/Azure/components/Color.js +5 -5
  7. package/es/Azure/components/Mono.js +5 -5
  8. package/es/Baichuan/components/Avatar.js +2 -2
  9. package/es/Baichuan/index.d.ts +1 -0
  10. package/es/Baichuan/index.js +2 -1
  11. package/es/Google/components/Color.js +12 -16
  12. package/es/Google/components/Mono.js +7 -1
  13. package/es/Groq/components/Combine.d.ts +3 -1
  14. package/es/Groq/components/Combine.js +7 -2
  15. package/es/Groq/style.d.ts +1 -1
  16. package/es/Groq/style.js +1 -1
  17. package/es/IconAvatar/index.js +2 -4
  18. package/es/ModelIcon/DefaultAvatar.d.ts +4 -0
  19. package/es/ModelIcon/DefaultAvatar.js +42 -0
  20. package/es/ModelIcon/DefaultIcon.d.ts +9 -0
  21. package/es/ModelIcon/DefaultIcon.js +30 -0
  22. package/es/ModelIcon/const.d.ts +19 -0
  23. package/es/ModelIcon/const.js +157 -0
  24. package/es/ModelIcon/index.d.ts +10 -0
  25. package/es/ModelIcon/index.js +136 -0
  26. package/es/ModelTag/index.d.ts +8 -0
  27. package/es/ModelTag/index.js +28 -0
  28. package/es/Moonshot/components/Combine.d.ts +3 -1
  29. package/es/Moonshot/components/Combine.js +14 -3
  30. package/es/OpenRouter/components/Combine.d.ts +3 -1
  31. package/es/OpenRouter/components/Combine.js +11 -3
  32. package/es/ProviderCombine/const.d.ts +12 -0
  33. package/es/ProviderCombine/const.js +222 -0
  34. package/es/ProviderCombine/index.d.ts +11 -0
  35. package/es/ProviderCombine/index.js +52 -0
  36. package/es/ProviderIcon/DefaultAvatar.d.ts +4 -0
  37. package/es/ProviderIcon/DefaultAvatar.js +42 -0
  38. package/es/ProviderIcon/DefaultIcon.d.ts +9 -0
  39. package/es/ProviderIcon/DefaultIcon.js +30 -0
  40. package/es/ProviderIcon/const.d.ts +46 -0
  41. package/es/ProviderIcon/const.js +124 -0
  42. package/es/ProviderIcon/index.d.ts +11 -0
  43. package/es/ProviderIcon/index.js +136 -0
  44. package/es/Tongyi/components/Avatar.js +2 -2
  45. package/es/Tongyi/components/Combine.js +10 -3
  46. package/es/ZeroOne/components/Combine.d.ts +3 -1
  47. package/es/ZeroOne/components/Combine.js +8 -3
  48. package/es/ZeroOne/style.d.ts +1 -1
  49. package/es/ZeroOne/style.js +1 -1
  50. package/es/index.d.ts +6 -0
  51. package/es/index.js +6 -0
  52. package/package.json +16 -16
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type IconCombineProps } from "../../IconCombine";
3
- export type CombineProps = Omit<IconCombineProps, 'Icon' | 'Text'>;
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,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 = ["iconProps"];
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; }
@@ -14,8 +14,12 @@ import Avatar from "./Avatar";
14
14
  import Text from "./Text";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  var Combine = /*#__PURE__*/memo(function (_ref) {
17
- var iconProps = _ref.iconProps,
17
+ var _ref$type = _ref.type,
18
+ type = _ref$type === void 0 ? 'mono' : _ref$type,
19
+ iconProps = _ref.iconProps,
18
20
  rest = _objectWithoutProperties(_ref, _excluded);
21
+ // @ts-ignore
22
+ if (type === 'mono') return /*#__PURE__*/_jsx(Text, _objectSpread({}, rest));
19
23
  return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
20
24
  Icon: Avatar,
21
25
  Text: Text,
@@ -1,4 +1,4 @@
1
1
  export declare const TITLE = "\u7D2B\u4E1C\u592A\u521D";
2
- export declare const TEXT_MULTIPLE = 0.6;
2
+ export declare const TEXT_MULTIPLE = 0.65;
3
3
  export declare const SPACE_MULTIPLE = 0.2;
4
4
  export declare const COLOR_PRIMARY = "#fff";
@@ -1,4 +1,4 @@
1
1
  export var TITLE = '紫东太初';
2
- export var TEXT_MULTIPLE = 0.6;
2
+ export var TEXT_MULTIPLE = 0.65;
3
3
  export var SPACE_MULTIPLE = 0.2;
4
4
  export var COLOR_PRIMARY = '#fff';
@@ -18,8 +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 || COLOR_PRIMARY,
22
- iconMultiple: 0.6
21
+ background: background || COLOR_PRIMARY
23
22
  }, rest));
24
23
  });
25
24
  export default Avatar;
@@ -23,23 +23,23 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
23
  flex: 'none',
24
24
  lineHeight: 1
25
25
  }, style),
26
- viewBox: "0 0 26 25",
26
+ viewBox: "0 0 24 24",
27
27
  width: size,
28
28
  xmlns: "http://www.w3.org/2000/svg"
29
29
  }, rest), {}, {
30
30
  children: [/*#__PURE__*/_jsx("title", {
31
31
  children: TITLE
32
32
  }), /*#__PURE__*/_jsx("path", {
33
- d: "M12.57.982H.908v11.386h11.664V.982z",
33
+ d: "M11.49 2H2v9.492h9.492V2h-.002z",
34
34
  fill: "#F25022"
35
35
  }), /*#__PURE__*/_jsx("path", {
36
- d: "M25.462.982H13.8v11.386h11.663V.982z",
36
+ d: "M22 2h-9.492v9.492H22V2z",
37
37
  fill: "#7FBA00"
38
38
  }), /*#__PURE__*/_jsx("path", {
39
- d: "M12.57 13.565H.908V24.95h11.664V13.565z",
39
+ d: "M11.49 12.508H2V22h9.492v-9.492h-.002z",
40
40
  fill: "#00A4EF"
41
41
  }), /*#__PURE__*/_jsx("path", {
42
- d: "M25.463 13.565H13.8V24.95h11.663V13.565z",
42
+ d: "M22 12.508h-9.492V22H22v-9.492z",
43
43
  fill: "#FFB900"
44
44
  })]
45
45
  }));
@@ -25,20 +25,20 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
25
25
  flex: 'none',
26
26
  lineHeight: 1
27
27
  }, style),
28
- viewBox: "0 0 26 25",
28
+ viewBox: "0 0 24 24",
29
29
  width: size,
30
30
  xmlns: "http://www.w3.org/2000/svg"
31
31
  }, rest), {}, {
32
32
  children: [/*#__PURE__*/_jsx("title", {
33
33
  children: TITLE
34
34
  }), /*#__PURE__*/_jsx("path", {
35
- d: "M12.57.982H.908v11.386h11.664V.982z"
35
+ d: "M11.49 2H2v9.492h9.492V2h-.002z"
36
36
  }), /*#__PURE__*/_jsx("path", {
37
- d: "M25.462.982H13.8v11.386h11.663V.982z"
37
+ d: "M22 2h-9.492v9.492H22V2z"
38
38
  }), /*#__PURE__*/_jsx("path", {
39
- d: "M12.57 13.565H.908V24.95h11.664V13.565z"
39
+ d: "M11.49 12.508H2V22h9.492v-9.492h-.002z"
40
40
  }), /*#__PURE__*/_jsx("path", {
41
- d: "M25.463 13.565H13.8V24.95h11.663V13.565z"
41
+ d: "M22 12.508h-9.492V22H22v-9.492z"
42
42
  })]
43
43
  }));
44
44
  });
@@ -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_GRADIENT, TITLE } from "../style";
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 || COLOR_GRADIENT
21
+ background: background || COLOR_PRIMARY
22
22
  }, rest));
23
23
  });
24
24
  export default Avatar;
@@ -8,6 +8,7 @@ export type CompoundedIcon = typeof Mono & {
8
8
  Color: typeof Color;
9
9
  Combine: typeof Combine;
10
10
  Text: typeof Text;
11
+ colorGradient: string;
11
12
  colorPrimary: string;
12
13
  title: string;
13
14
  };
@@ -3,12 +3,13 @@ import Color from "./components/Color";
3
3
  import Combine from "./components/Combine";
4
4
  import Mono from "./components/Mono";
5
5
  import Text from "./components/Text";
6
- import { COLOR_PRIMARY, TITLE } from "./style";
6
+ import { COLOR_GRADIENT, COLOR_PRIMARY, TITLE } from "./style";
7
7
  var Icons = Mono;
8
8
  Icons.Color = Color;
9
9
  Icons.Text = Text;
10
10
  Icons.Combine = Combine;
11
11
  Icons.Avatar = Avatar;
12
12
  Icons.colorPrimary = COLOR_PRIMARY;
13
+ Icons.colorGradient = COLOR_GRADIENT;
13
14
  Icons.title = TITLE;
14
15
  export default Icons;
@@ -29,22 +29,18 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
29
29
  }, rest), {}, {
30
30
  children: [/*#__PURE__*/_jsx("title", {
31
31
  children: TITLE
32
- }), /*#__PURE__*/_jsxs("g", {
33
- fill: "none",
34
- fillRule: "nonzero",
35
- children: [/*#__PURE__*/_jsx("path", {
36
- d: "M24 12.267c0-.987-.082-1.707-.258-2.454H12.245v4.454h6.748c-.136 1.106-.87 2.773-2.503 3.893l-.023.149 3.635 2.76.252.024C22.667 19 24 15.92 24 12.267",
37
- fill: "#4285F4"
38
- }), /*#__PURE__*/_jsx("path", {
39
- d: "M12.245 24c3.306 0 6.081-1.067 8.109-2.907L16.49 18.16c-1.034.707-2.422 1.2-4.245 1.2a7.358 7.358 0 01-6.966-4.987l-.144.012-3.78 2.867-.049.135C3.32 21.307 7.456 24 12.245 24",
40
- fill: "#34A853"
41
- }), /*#__PURE__*/_jsx("path", {
42
- d: "M5.279 14.373A7.254 7.254 0 014.87 12c0-.827.15-1.627.394-2.373l-.007-.16-3.827-2.912-.125.058A11.816 11.816 0 000 12c0 1.933.476 3.76 1.306 5.387l3.973-3.014",
43
- fill: "#FBBC05"
44
- }), /*#__PURE__*/_jsx("path", {
45
- d: "M12.245 4.64c2.3 0 3.85.973 4.735 1.787l3.455-3.307C18.313 1.187 15.551 0 12.245 0 7.455 0 3.32 2.693 1.306 6.613l3.96 3.014c.993-2.894 3.74-4.987 6.979-4.987",
46
- fill: "#EB4335"
47
- })]
32
+ }), /*#__PURE__*/_jsx("path", {
33
+ d: "M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z",
34
+ fill: "#4285F4"
35
+ }), /*#__PURE__*/_jsx("path", {
36
+ d: "M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z",
37
+ fill: "#34A853"
38
+ }), /*#__PURE__*/_jsx("path", {
39
+ d: "M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z",
40
+ fill: "#FBBC05"
41
+ }), /*#__PURE__*/_jsx("path", {
42
+ d: "M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z",
43
+ fill: "#EB4335"
48
44
  })]
49
45
  }));
50
46
  });
@@ -32,7 +32,13 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
32
32
  children: [/*#__PURE__*/_jsx("title", {
33
33
  children: TITLE
34
34
  }), /*#__PURE__*/_jsx("path", {
35
- d: "M0 12c0-1.933.476-3.76 1.306-5.387l.144-.271C3.512 2.569 7.567 0 12.245 0c3.306 0 6.068 1.187 8.19 3.12L16.98 6.427c-.885-.814-2.436-1.787-4.735-1.787-3.238 0-5.986 2.093-6.98 4.987A7.622 7.622 0 004.871 12c0 .709.11 1.398.304 2.05l.104.323a7.358 7.358 0 006.966 4.987c1.823 0 3.21-.493 4.245-1.2l.238-.172c1.466-1.113 2.136-2.67 2.265-3.721h-6.748V9.813h11.497c.176.747.258 1.467.258 2.454 0 3.653-1.333 6.733-3.646 8.826C18.326 22.933 15.55 24 12.244 24c-4.788 0-8.924-2.693-10.938-6.613A11.816 11.816 0 010 12z"
35
+ d: "M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z"
36
+ }), /*#__PURE__*/_jsx("path", {
37
+ d: "M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z"
38
+ }), /*#__PURE__*/_jsx("path", {
39
+ d: "M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z"
40
+ }), /*#__PURE__*/_jsx("path", {
41
+ d: "M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z"
36
42
  })]
37
43
  }));
38
44
  });
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type IconCombineProps } from "../../IconCombine";
3
- export type CombineProps = Omit<IconCombineProps, 'Icon' | 'Text'>;
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,10 +1,12 @@
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 _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
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";
@@ -12,11 +14,14 @@ import Avatar from "./Avatar";
12
14
  import Text from "./Text";
13
15
  import { jsx as _jsx } from "react/jsx-runtime";
14
16
  var Combine = /*#__PURE__*/memo(function (_ref) {
15
- var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
17
+ var _ref$type = _ref.type,
18
+ type = _ref$type === void 0 ? 'mono' : _ref$type,
19
+ rest = _objectWithoutProperties(_ref, _excluded);
16
20
  return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
17
21
  Icon: Avatar,
18
22
  Text: Text,
19
23
  "aria-label": TITLE,
24
+ showLogo: type === 'color',
20
25
  spaceMultiple: SPACE_MULTIPLE,
21
26
  textMultiple: TEXT_MULTIPLE
22
27
  }, rest));
@@ -1,4 +1,4 @@
1
1
  export declare const TITLE = "Groq";
2
2
  export declare const TEXT_MULTIPLE = 0.75;
3
- export declare const SPACE_MULTIPLE = 0.1;
3
+ export declare const SPACE_MULTIPLE = 0.2;
4
4
  export declare const COLOR_PRIMARY = "#F55036";
package/es/Groq/style.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export var TITLE = 'Groq';
2
2
  export var TEXT_MULTIPLE = 0.75;
3
- export var SPACE_MULTIPLE = 0.1;
3
+ export var SPACE_MULTIPLE = 0.2;
4
4
  export var COLOR_PRIMARY = '#F55036';
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
- import { Flexbox } from 'react-layout-kit';
8
+ import { Center } from 'react-layout-kit';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  var IconAvatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
11
  var _ref$shape = _ref.shape,
@@ -20,10 +20,8 @@ var IconAvatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
20
20
  Icon = _ref.Icon,
21
21
  iconStyle = _ref.iconStyle,
22
22
  iconClassName = _ref.iconClassName;
23
- return /*#__PURE__*/_jsx(Flexbox, {
24
- align: 'center',
23
+ return /*#__PURE__*/_jsx(Center, {
25
24
  flex: 'none',
26
- justify: 'center',
27
25
  ref: ref,
28
26
  style: _objectSpread({
29
27
  background: background,
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconAvatarProps } from "../IconAvatar";
3
+ declare const DefaultAvatar: import("react").ForwardRefExoticComponent<Omit<IconAvatarProps, "Icon"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export default DefaultAvatar;
@@ -0,0 +1,42 @@
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
+ 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
+ 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
+ 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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
+ import { useTheme } from 'antd-style';
8
+ import { forwardRef } from 'react';
9
+ import { Center } from 'react-layout-kit';
10
+ import DefaultIcon from "./DefaultIcon";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ var DefaultAvatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
13
+ var _ref$shape = _ref.shape,
14
+ shape = _ref$shape === void 0 ? 'circle' : _ref$shape,
15
+ color = _ref.color,
16
+ background = _ref.background,
17
+ size = _ref.size,
18
+ style = _ref.style,
19
+ _ref$iconMultiple = _ref.iconMultiple,
20
+ iconMultiple = _ref$iconMultiple === void 0 ? 0.6 : _ref$iconMultiple,
21
+ iconStyle = _ref.iconStyle,
22
+ iconClassName = _ref.iconClassName;
23
+ var theme = useTheme();
24
+ return /*#__PURE__*/_jsx(Center, {
25
+ flex: 'none',
26
+ ref: ref,
27
+ style: _objectSpread({
28
+ background: background || theme.colorFillSecondary,
29
+ borderRadius: shape === 'circle' ? '50%' : Math.floor(size * 0.1),
30
+ color: color,
31
+ height: size,
32
+ width: size
33
+ }, style),
34
+ children: /*#__PURE__*/_jsx(DefaultIcon, {
35
+ className: iconClassName,
36
+ color: color,
37
+ size: size * iconMultiple,
38
+ style: iconStyle
39
+ })
40
+ });
41
+ });
42
+ export default DefaultAvatar;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'react';
2
+ interface DefaultIconProps {
3
+ className?: string;
4
+ color?: string;
5
+ size?: number;
6
+ style?: CSSProperties;
7
+ }
8
+ declare const DefaultAvatar: import("react").ForwardRefExoticComponent<DefaultIconProps & import("react").RefAttributes<any>>;
9
+ export default DefaultAvatar;
@@ -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 { Brain } from 'lucide-react';
13
+ import { forwardRef } from 'react';
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ var DefaultAvatar = /*#__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: Brain,
24
+ ref: ref,
25
+ size: {
26
+ fontSize: size
27
+ }
28
+ }, rest));
29
+ });
30
+ export default DefaultAvatar;
@@ -0,0 +1,19 @@
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 ModelIconType = 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 ModelMapping {
14
+ Icon: ModelIconType;
15
+ keywords: string[];
16
+ props?: any;
17
+ }
18
+ export declare const modelMappings: ModelMapping[];
19
+ export {};
@@ -0,0 +1,157 @@
1
+ import Adobe from "../Adobe";
2
+ import Ai21 from "../Ai21";
3
+ import Ai360 from "../Ai360";
4
+ import AiMass from "../AiMass";
5
+ import Aws from "../Aws";
6
+ import Aya from "../Aya";
7
+ import Azure from "../Azure";
8
+ import Baichuan from "../Baichuan";
9
+ import ByteDance from "../ByteDance";
10
+ import ChatGLM from "../ChatGLM";
11
+ import Claude from "../Claude";
12
+ import CodeGeeX from "../CodeGeeX";
13
+ import Cohere from "../Cohere";
14
+ import Dbrx from "../Dbrx";
15
+ import DeepSeek from "../DeepSeek";
16
+ import FishAudio from "../FishAudio";
17
+ import Gemini from "../Gemini";
18
+ import Gemma from "../Gemma";
19
+ import Hunyuan from "../Hunyuan";
20
+ import LLaVA from "../LLaVA";
21
+ import Meta from "../Meta";
22
+ import Minimax from "../Minimax";
23
+ import Mistral from "../Mistral";
24
+ import Moonshot from "../Moonshot";
25
+ import OpenAI from "../OpenAI";
26
+ import OpenChat from "../OpenChat";
27
+ import OpenRouter from "../OpenRouter";
28
+ import Perplexity from "../Perplexity";
29
+ import Rwkv from "../Rwkv";
30
+ import Spark from "../Spark";
31
+ import Stability from "../Stability";
32
+ import Stepfun from "../Stepfun";
33
+ import Tongyi from "../Tongyi";
34
+ import Wenxin from "../Wenxin";
35
+ import Yi from "../Yi";
36
+
37
+ // Define a type for our model mapping
38
+
39
+ // Create a mapping of model keywords to their respective Icon functions
40
+ export var modelMappings = [{
41
+ Icon: OpenAI,
42
+ keywords: ['gpt-3'],
43
+ props: {
44
+ type: 'gpt3'
45
+ }
46
+ }, {
47
+ Icon: OpenAI,
48
+ keywords: ['gpt-4'],
49
+ props: {
50
+ type: 'gpt4'
51
+ }
52
+ }, {
53
+ Icon: OpenAI,
54
+ keywords: ['gpt', 'openai', 'dalle', 'text-embedding-']
55
+ }, {
56
+ Icon: ChatGLM,
57
+ keywords: ['glm-', 'chatglm']
58
+ }, {
59
+ Icon: CodeGeeX,
60
+ keywords: ['^codegeex']
61
+ }, {
62
+ Icon: DeepSeek,
63
+ keywords: ['deepseek']
64
+ }, {
65
+ Icon: Claude,
66
+ keywords: ['claude']
67
+ }, {
68
+ Icon: Aws,
69
+ keywords: ['titan']
70
+ }, {
71
+ Icon: Meta,
72
+ keywords: ['llama']
73
+ }, {
74
+ Icon: LLaVA,
75
+ keywords: ['llava']
76
+ }, {
77
+ Icon: Gemini,
78
+ keywords: ['gemini']
79
+ }, {
80
+ Icon: Gemma,
81
+ keywords: ['gemma']
82
+ }, {
83
+ Icon: Moonshot,
84
+ keywords: ['moonshot']
85
+ }, {
86
+ Icon: Tongyi,
87
+ keywords: ['qwen']
88
+ }, {
89
+ Icon: Minimax,
90
+ keywords: ['minmax', 'abab']
91
+ }, {
92
+ Icon: Mistral,
93
+ keywords: ['mistral', 'mixtral', 'codestral', 'mathstral']
94
+ }, {
95
+ Icon: Perplexity,
96
+ keywords: ['pplx', 'sonar']
97
+ }, {
98
+ Icon: Yi,
99
+ keywords: ['^yi-']
100
+ }, {
101
+ Icon: OpenRouter,
102
+ keywords: ['^openrouter']
103
+ }, {
104
+ Icon: OpenChat,
105
+ keywords: ['^openchat']
106
+ }, {
107
+ Icon: Aya,
108
+ keywords: ['aya']
109
+ }, {
110
+ Icon: Cohere,
111
+ keywords: ['command']
112
+ }, {
113
+ Icon: Dbrx,
114
+ keywords: ['dbrx']
115
+ }, {
116
+ Icon: Stepfun,
117
+ keywords: ['step']
118
+ }, {
119
+ Icon: AiMass,
120
+ keywords: ['taichu']
121
+ }, {
122
+ Icon: Ai360,
123
+ keywords: ['360gpt']
124
+ }, {
125
+ Icon: Baichuan,
126
+ keywords: ['baichuan']
127
+ }, {
128
+ Icon: Rwkv,
129
+ keywords: ['rwkv']
130
+ }, {
131
+ Icon: Wenxin,
132
+ keywords: ['ernie']
133
+ }, {
134
+ Icon: Spark,
135
+ keywords: ['spark']
136
+ }, {
137
+ Icon: Hunyuan,
138
+ keywords: ['hunyuan']
139
+ }, {
140
+ Icon: FishAudio,
141
+ keywords: ['^d_', '^g_', '^wd_']
142
+ }, {
143
+ Icon: ByteDance,
144
+ keywords: ['skylark']
145
+ }, {
146
+ Icon: Stability,
147
+ keywords: ['stable-diffusion', 'stable-video', 'stable-cascade', 'sdxl', 'stablelm', '^stable-', '^sd3', '^sd2', '^sd1']
148
+ }, {
149
+ Icon: Azure,
150
+ keywords: ['wizardlm', 'phi3', 'phi-3']
151
+ }, {
152
+ Icon: Adobe,
153
+ keywords: ['firefly']
154
+ }, {
155
+ Icon: Ai21,
156
+ keywords: ['jamba', '^j2-']
157
+ }];
@@ -0,0 +1,10 @@
1
+ import { CSSProperties } from 'react';
2
+ export interface ModelIconProps {
3
+ className?: string;
4
+ model?: string;
5
+ size?: number;
6
+ style?: CSSProperties;
7
+ type?: 'avatar' | 'mono' | 'color' | 'combine' | 'combine-color';
8
+ }
9
+ declare const ModelIcon: import("react").ForwardRefExoticComponent<ModelIconProps & import("react").RefAttributes<any>>;
10
+ export default ModelIcon;