@lobehub/icons 4.1.0 → 4.2.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 +82 -81
- package/es/AtlasCloud/components/Avatar.d.ts +5 -0
- package/es/AtlasCloud/components/Avatar.js +25 -0
- package/es/AtlasCloud/components/Combine.d.ts +4 -0
- package/es/AtlasCloud/components/Combine.js +24 -0
- package/es/AtlasCloud/components/Mono.d.ts +3 -0
- package/es/AtlasCloud/components/Mono.js +40 -0
- package/es/AtlasCloud/components/Text.d.ts +3 -0
- package/es/AtlasCloud/components/Text.js +40 -0
- package/es/AtlasCloud/index.d.ts +13 -0
- package/es/AtlasCloud/index.js +12 -0
- package/es/AtlasCloud/style.d.ts +7 -0
- package/es/AtlasCloud/style.js +7 -0
- package/es/Kimi/components/Color.js +4 -5
- package/es/Kimi/components/Mono.js +2 -2
- package/es/Kimi/components/Text.js +2 -3
- package/es/Lovart/components/Avatar.d.ts +5 -0
- package/es/Lovart/components/Avatar.js +25 -0
- package/es/Lovart/components/Combine.d.ts +5 -0
- package/es/Lovart/components/Combine.js +26 -0
- package/es/Lovart/components/Inner.d.ts +3 -0
- package/es/Lovart/components/Inner.js +45 -0
- package/es/Lovart/components/Mono.d.ts +3 -0
- package/es/Lovart/components/Mono.js +40 -0
- package/es/Lovart/components/Text.d.ts +3 -0
- package/es/Lovart/components/Text.js +39 -0
- package/es/Lovart/index.d.ts +13 -0
- package/es/Lovart/index.js +12 -0
- package/es/Lovart/style.d.ts +7 -0
- package/es/Lovart/style.js +9 -0
- package/es/OpenAI/components/Mono.js +1 -1
- package/es/OpenAI/components/Text.js +2 -2
- package/es/OpenClaw/components/Avatar.d.ts +5 -0
- package/es/OpenClaw/components/Avatar.js +25 -0
- package/es/OpenClaw/components/Color.d.ts +3 -0
- package/es/OpenClaw/components/Color.js +107 -0
- package/es/OpenClaw/components/Combine.d.ts +7 -0
- package/es/OpenClaw/components/Combine.js +32 -0
- package/es/OpenClaw/components/Mono.d.ts +3 -0
- package/es/OpenClaw/components/Mono.js +124 -0
- package/es/OpenClaw/components/Text.d.ts +3 -0
- package/es/OpenClaw/components/Text.js +39 -0
- package/es/OpenClaw/index.d.ts +15 -0
- package/es/OpenClaw/index.js +14 -0
- package/es/OpenClaw/style.d.ts +7 -0
- package/es/OpenClaw/style.js +9 -0
- package/es/Yuanbao/components/Color.js +8 -93
- package/es/Yuanbao/components/Mono.js +3 -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 +3 -0
- package/es/icons.js +3 -0
- package/es/toc.js +54 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
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); }
|
|
9
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
10
|
+
import { memo } from 'react';
|
|
11
|
+
import IconAvatar from "../../features/IconAvatar";
|
|
12
|
+
import { AVATAR_BACKGROUND, AVATAR_COLOR, AVATAR_ICON_MULTIPLE, TITLE } from "../style";
|
|
13
|
+
import Color from "./Color";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
16
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
17
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
18
|
+
Icon: Color,
|
|
19
|
+
"aria-label": TITLE,
|
|
20
|
+
background: AVATAR_BACKGROUND,
|
|
21
|
+
color: AVATAR_COLOR,
|
|
22
|
+
iconMultiple: AVATAR_ICON_MULTIPLE
|
|
23
|
+
}, rest));
|
|
24
|
+
});
|
|
25
|
+
export default Avatar;
|
|
@@ -0,0 +1,107 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
import { memo } from 'react';
|
|
19
|
+
import { useFillIds } from "../../hooks/useFillId";
|
|
20
|
+
import { TITLE } from "../style";
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
var Icon = /*#__PURE__*/memo(function (_ref) {
|
|
24
|
+
var _ref$size = _ref.size,
|
|
25
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
26
|
+
style = _ref.style,
|
|
27
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
var _useFillIds = useFillIds(TITLE, 3),
|
|
29
|
+
_useFillIds2 = _slicedToArray(_useFillIds, 3),
|
|
30
|
+
a = _useFillIds2[0],
|
|
31
|
+
b = _useFillIds2[1],
|
|
32
|
+
c = _useFillIds2[2];
|
|
33
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
34
|
+
height: size,
|
|
35
|
+
style: _objectSpread({
|
|
36
|
+
flex: 'none',
|
|
37
|
+
lineHeight: 1
|
|
38
|
+
}, style),
|
|
39
|
+
viewBox: "0 0 24 24",
|
|
40
|
+
width: size,
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
42
|
+
}, rest), {}, {
|
|
43
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
44
|
+
children: TITLE
|
|
45
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
46
|
+
d: "M12 2.568c-6.33 0-9.495 5.275-9.495 9.495 0 4.22 3.165 8.44 6.33 9.494v2.11h2.11v-2.11s1.055.422 2.11 0v2.11h2.11v-2.11c3.165-1.055 6.33-5.274 6.33-9.494S18.33 2.568 12 2.568z",
|
|
47
|
+
fill: a.fill
|
|
48
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
49
|
+
d: "M3.56 9.953C.396 8.898-.66 11.008.396 13.118c1.055 2.11 3.164 1.055 4.22-1.055.632-1.477 0-2.11-1.056-2.11z",
|
|
50
|
+
fill: b.fill
|
|
51
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
52
|
+
d: "M20.44 9.953c3.164-1.055 4.22 1.055 3.164 3.165-1.055 2.11-3.164 1.055-4.22-1.055-.632-1.477 0-2.11 1.056-2.11z",
|
|
53
|
+
fill: c.fill
|
|
54
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
+
d: "M5.507 1.875c.476-.285 1.036-.233 1.615.037.577.27 1.223.774 1.937 1.488a.316.316 0 01-.447.447c-.693-.693-1.279-1.138-1.757-1.361-.475-.222-.795-.205-1.022-.069a.317.317 0 01-.326-.542zM16.877 1.913c.58-.27 1.14-.323 1.616-.038a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.069-.478.223-1.064.668-1.756 1.361a.316.316 0 11-.448-.447c.714-.714 1.36-1.218 1.936-1.487z",
|
|
56
|
+
fill: "#FF4D4D"
|
|
57
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
58
|
+
d: "M8.835 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532zM15.165 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532z",
|
|
59
|
+
fill: "#050810"
|
|
60
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
61
|
+
d: "M9.046 8.16a.527.527 0 100-1.056.527.527 0 000 1.055zM15.376 8.16a.527.527 0 100-1.055.527.527 0 000 1.054z",
|
|
62
|
+
fill: "#00E5CC"
|
|
63
|
+
}), /*#__PURE__*/_jsxs("defs", {
|
|
64
|
+
children: [/*#__PURE__*/_jsxs("linearGradient", {
|
|
65
|
+
gradientUnits: "userSpaceOnUse",
|
|
66
|
+
id: a.id,
|
|
67
|
+
x1: "-.659",
|
|
68
|
+
x2: "27.023",
|
|
69
|
+
y1: ".458",
|
|
70
|
+
y2: "22.855",
|
|
71
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
72
|
+
stopColor: "#FF4D4D"
|
|
73
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
74
|
+
offset: "1",
|
|
75
|
+
stopColor: "#991B1B"
|
|
76
|
+
})]
|
|
77
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
78
|
+
gradientUnits: "userSpaceOnUse",
|
|
79
|
+
id: b.id,
|
|
80
|
+
x1: "0",
|
|
81
|
+
x2: "4.311",
|
|
82
|
+
y1: "9.672",
|
|
83
|
+
y2: "14.949",
|
|
84
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
85
|
+
stopColor: "#FF4D4D"
|
|
86
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
87
|
+
offset: "1",
|
|
88
|
+
stopColor: "#991B1B"
|
|
89
|
+
})]
|
|
90
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
91
|
+
gradientUnits: "userSpaceOnUse",
|
|
92
|
+
id: c.id,
|
|
93
|
+
x1: "19.385",
|
|
94
|
+
x2: "24.399",
|
|
95
|
+
y1: "9.953",
|
|
96
|
+
y2: "14.462",
|
|
97
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
98
|
+
stopColor: "#FF4D4D"
|
|
99
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
100
|
+
offset: "1",
|
|
101
|
+
stopColor: "#991B1B"
|
|
102
|
+
})]
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
105
|
+
}));
|
|
106
|
+
});
|
|
107
|
+
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 { COMBINE_SPACE_MULTIPLE, COMBINE_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: COMBINE_SPACE_MULTIPLE,
|
|
29
|
+
textMultiple: COMBINE_TEXT_MULTIPLE
|
|
30
|
+
}, rest));
|
|
31
|
+
});
|
|
32
|
+
export default Combine;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { memo } 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__*/memo(function (_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
|
+
style: _objectSpread({
|
|
26
|
+
flex: 'none',
|
|
27
|
+
lineHeight: 1
|
|
28
|
+
}, style),
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
width: size,
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
32
|
+
}, rest), {}, {
|
|
33
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
34
|
+
children: TITLE
|
|
35
|
+
}), /*#__PURE__*/_jsxs("g", {
|
|
36
|
+
clipPath: "url(#a)",
|
|
37
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
38
|
+
d: "M9.046 7.104a.527.527 0 110 1.055.527.527 0 010-1.055z"
|
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
+
d: "M15.376 7.104a.528.528 0 110 1.056.528.528 0 010-1.056z"
|
|
41
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
42
|
+
clipRule: "evenodd",
|
|
43
|
+
d: "M16.877 1.912c.58-.27 1.14-.323 1.616-.037a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.068-.352.165-.765.45-1.234.866 2.683 1.17 4.4 3.5 5.148 5.921a6.421 6.421 0 00-.704.184c-.578.016-1.174.204-1.502.735-.338.55-.268 1.276.072 2.069l.005.012.007.014c.523 1.045 1.318 1.91 2.2 2.284-.912 3.274-3.44 6.144-5.972 6.988v2.109h-2.11v-2.11c-1.043.417-2.086.01-2.11 0v2.11h-2.11v-2.11c-2.531-.843-5.061-3.713-5.973-6.987.882-.373 1.678-1.238 2.2-2.284l.007-.014.006-.012c.34-.793.41-1.518.071-2.069-.327-.531-.923-.719-1.503-.735a6.409 6.409 0 00-.704-.183c.749-2.421 2.466-4.751 5.149-5.922-.47-.416-.88-.701-1.234-.866-.474-.221-.794-.204-1.021-.068a.318.318 0 01-.435-.109.317.317 0 01.109-.433c.476-.286 1.036-.233 1.615.037.49.229 1.031.628 1.621 1.182A9.924 9.924 0 0112 2.568c1.199 0 2.284.19 3.256.526.59-.554 1.13-.953 1.62-1.182zM8.835 6.577a1.266 1.266 0 100 2.532 1.266 1.266 0 000-2.532zm6.33 0a1.267 1.267 0 100 2.533 1.267 1.267 0 000-2.533z"
|
|
44
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
45
|
+
d: "M.395 13.118c-.966-1.932-.163-3.863 2.41-3.365v-.001l.05.01c.084.018.17.038.26.06.033.009.067.017.1.027.084.022.168.048.255.076l.09.027c.528 0 .95.158 1.16.501.212.343.212.87-.105 1.61-.085.17-.178.333-.276.489l-.01.017a4.967 4.967 0 01-.62.791l-.019.02c-1.092 1.117-2.496 1.336-3.295-.262z"
|
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
+
d: "M21.193 9.753c2.574-.5 3.378 1.433 2.411 3.365-.58 1.159-1.476 1.361-2.342.96l-.011-.005a2.419 2.419 0 01-.114-.056l-.019-.01a2.751 2.751 0 01-.115-.067l-.023-.014c-.035-.022-.071-.044-.106-.068l-.05-.035c-.55-.388-1.062-1.007-1.44-1.76-.276-.647-.311-1.132-.174-1.472.176-.439.636-.639 1.23-.639.032-.011.066-.02.099-.03.08-.026.16-.05.238-.072l.117-.03a5.502 5.502 0 01.3-.067z"
|
|
48
|
+
})]
|
|
49
|
+
}), /*#__PURE__*/_jsxs("defs", {
|
|
50
|
+
children: [/*#__PURE__*/_jsxs("linearGradient", {
|
|
51
|
+
gradientUnits: "userSpaceOnUse",
|
|
52
|
+
id: "b",
|
|
53
|
+
x1: "-.659",
|
|
54
|
+
x2: "27.023",
|
|
55
|
+
y1: ".458",
|
|
56
|
+
y2: "22.855",
|
|
57
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
58
|
+
stopColor: "#FF4D4D"
|
|
59
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
60
|
+
offset: "1",
|
|
61
|
+
stopColor: "#991B1B"
|
|
62
|
+
})]
|
|
63
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
64
|
+
gradientUnits: "userSpaceOnUse",
|
|
65
|
+
id: "c",
|
|
66
|
+
x1: "-.659",
|
|
67
|
+
x2: "27.023",
|
|
68
|
+
y1: ".458",
|
|
69
|
+
y2: "22.855",
|
|
70
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
71
|
+
stopColor: "#FF4D4D"
|
|
72
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
73
|
+
offset: "1",
|
|
74
|
+
stopColor: "#991B1B"
|
|
75
|
+
})]
|
|
76
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
77
|
+
gradientUnits: "userSpaceOnUse",
|
|
78
|
+
id: "d",
|
|
79
|
+
x1: "-.659",
|
|
80
|
+
x2: "27.023",
|
|
81
|
+
y1: ".458",
|
|
82
|
+
y2: "22.855",
|
|
83
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
84
|
+
stopColor: "#FF4D4D"
|
|
85
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
86
|
+
offset: "1",
|
|
87
|
+
stopColor: "#991B1B"
|
|
88
|
+
})]
|
|
89
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
90
|
+
gradientUnits: "userSpaceOnUse",
|
|
91
|
+
id: "e",
|
|
92
|
+
x1: "-.659",
|
|
93
|
+
x2: "27.023",
|
|
94
|
+
y1: ".458",
|
|
95
|
+
y2: "22.855",
|
|
96
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
97
|
+
stopColor: "#FF4D4D"
|
|
98
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
99
|
+
offset: "1",
|
|
100
|
+
stopColor: "#991B1B"
|
|
101
|
+
})]
|
|
102
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
103
|
+
gradientUnits: "userSpaceOnUse",
|
|
104
|
+
id: "f",
|
|
105
|
+
x1: "-.659",
|
|
106
|
+
x2: "27.023",
|
|
107
|
+
y1: ".458",
|
|
108
|
+
y2: "22.855",
|
|
109
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
110
|
+
stopColor: "#FF4D4D"
|
|
111
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
112
|
+
offset: "1",
|
|
113
|
+
stopColor: "#991B1B"
|
|
114
|
+
})]
|
|
115
|
+
}), /*#__PURE__*/_jsx("clipPath", {
|
|
116
|
+
id: "a",
|
|
117
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
118
|
+
d: "M0 0h24v24H0z"
|
|
119
|
+
})
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
}));
|
|
123
|
+
});
|
|
124
|
+
export default Icon;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { memo } 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__*/memo(function (_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: "nonzero",
|
|
24
|
+
height: size,
|
|
25
|
+
style: _objectSpread({
|
|
26
|
+
flex: 'none',
|
|
27
|
+
lineHeight: 1
|
|
28
|
+
}, style),
|
|
29
|
+
viewBox: "0 0 140 24",
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
31
|
+
}, rest), {}, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
33
|
+
children: TITLE
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
d: "M122.59 19.6h-6.082l-3.287-13.044h5.047l.932 4.71.492 4.659h.336l1.087-5.177 1.294-4.192h6.264l1.294 4.192 1.087 5.177h.336l.518-4.659.906-4.71h4.969L134.341 19.6h-6.082l-1.683-5.228-.957-3.908h-.337l-.983 3.908-1.709 5.228zM112.685 19.6h-4.555v-2.899h-.259v-4.633c0-.655-.173-1.07-.518-1.242-.328-.19-.923-.285-1.786-.285-.793 0-1.345.095-1.656.285-.293.19-.44.561-.44 1.113v.104h-4.866v-.052c0-1.156.302-2.157.906-3.002.604-.863 1.458-1.527 2.562-1.993 1.105-.466 2.39-.7 3.857-.7 1.518 0 2.778.242 3.779.726 1 .465 1.742 1.138 2.225 2.018.501.863.751 1.907.751 3.132V19.6zm-9.732.259c-1.466 0-2.605-.32-3.416-.958-.794-.638-1.19-1.51-1.19-2.614 0-.62.146-1.173.44-1.656.293-.483.75-.872 1.371-1.165.621-.31 1.424-.518 2.407-.621l5.565-.543v2.691l-4.271.492c-.224.017-.388.069-.491.155a.453.453 0 00-.13.337c0 .207.095.345.285.414.207.052.5.078.88.078.863 0 1.544-.044 2.044-.13.501-.104.863-.285 1.087-.543.225-.26.337-.63.337-1.113l.362-.104v2.278h-.362c-.242.914-.768 1.648-1.579 2.2-.811.535-1.924.802-3.339.802zM97.18 19.6h-4.865V2.26h4.865V19.6zM81.715 19.858c-2.001 0-3.718-.362-5.15-1.087-1.432-.742-2.528-1.777-3.287-3.105-.76-1.346-1.14-2.925-1.14-4.737 0-1.811.38-3.382 1.14-4.71.759-1.346 1.855-2.381 3.287-3.106C77.997 2.37 79.714 2 81.715 2c1.95 0 3.615.293 4.995.88 1.398.587 2.468 1.432 3.21 2.536.742 1.105 1.113 2.433 1.113 3.986v.44h-5.436v-.44c0-.983-.276-1.682-.828-2.096-.552-.432-1.544-.647-2.976-.647-1.174 0-2.088.12-2.744.362a2.179 2.179 0 00-1.346 1.268c-.258.604-.388 1.484-.388 2.64 0 1.139.13 2.019.389 2.64a2.266 2.266 0 001.345 1.294c.656.225 1.57.337 2.744.337 1.432 0 2.424-.207 2.976-.621.552-.432.828-1.14.828-2.123v-.44h5.436v.44c0 1.536-.371 2.864-1.113 3.986-.742 1.104-1.812 1.95-3.21 2.537-1.38.586-3.045.88-4.995.88zM70.96 19.6h-4.866v-6.574c0-.914-.199-1.535-.596-1.863-.397-.345-1.13-.518-2.2-.518-1.07 0-1.786.164-2.148.492-.345.31-.518.888-.518 1.734h-.491l-.414-2.355h.854a5.758 5.758 0 01.698-2.045c.38-.638.932-1.156 1.657-1.553.742-.414 1.69-.621 2.847-.621 1.173 0 2.14.216 2.899.647.776.431 1.346 1.018 1.708 1.76.38.742.57 1.587.57 2.536v8.36zm-10.328 0h-4.865V6.556h4.555v4.011l.31.13V19.6zM47.192 19.859c-1.467 0-2.77-.224-3.908-.673-1.14-.449-2.028-1.173-2.666-2.174-.639-1-.958-2.312-.958-3.934 0-1.415.32-2.623.958-3.624a6.219 6.219 0 012.614-2.329c1.121-.552 2.407-.828 3.856-.828 1.501 0 2.804.25 3.908.75 1.105.484 1.959 1.208 2.563 2.175.604.949.906 2.122.906 3.52 0 .224-.009.43-.026.62 0 .173-.017.38-.052.622H42.844v-2.459h8.023l-1.061 1.527v-.906c0-.794-.207-1.346-.621-1.656-.397-.31-1.13-.466-2.2-.466-1.105 0-1.855.172-2.252.518-.38.345-.57.966-.57 1.863v1.242c0 .915.199 1.536.596 1.864.397.328 1.147.492 2.252.492.983 0 1.639-.087 1.967-.26.345-.189.517-.474.517-.853v-.285h4.866v.31c0 .967-.293 1.82-.88 2.563-.587.742-1.415 1.328-2.485 1.76-1.07.414-2.338.621-3.804.621zM32.648 19.859c-1.536 0-2.692-.328-3.469-.984-.776-.672-1.26-1.552-1.449-2.64h-.75v-3.002h.491c0 .604.112 1.07.337 1.398.241.31.595.526 1.06.647.484.103 1.088.155 1.813.155.759 0 1.354-.078 1.785-.233.449-.155.768-.405.958-.75.19-.345.285-.803.285-1.372 0-.587-.095-1.044-.285-1.372-.19-.345-.509-.586-.958-.724-.431-.156-1.026-.233-1.786-.233-1.087 0-1.898.146-2.432.44-.518.293-.777.914-.777 1.863h-.492l-.362-2.976h.802c.207-1.294.716-2.243 1.527-2.847.811-.622 1.976-.932 3.494-.932 1.33 0 2.45.276 3.365.828.932.535 1.63 1.311 2.096 2.33.484 1 .725 2.208.725 3.623s-.233 2.631-.699 3.65c-.465 1-1.147 1.776-2.044 2.329-.88.535-1.959.802-3.236.802zM27.47 24h-4.866V6.556h4.556v3.675l.31.336V24zM11.602 19.858c-2.001 0-3.727-.362-5.176-1.087-1.432-.742-2.528-1.777-3.287-3.105C2.379 14.32 2 12.74 2 10.929c0-1.811.38-3.382 1.139-4.71.759-1.346 1.855-2.381 3.287-3.106C7.876 2.37 9.6 2 11.602 2c2.07 0 3.822.371 5.254 1.113 1.45.725 2.554 1.76 3.313 3.106.76 1.328 1.139 2.899 1.139 4.71 0 1.812-.38 3.39-1.139 4.737-.76 1.328-1.863 2.363-3.313 3.105-1.432.725-3.183 1.087-5.254 1.087zm0-4.658c1.173 0 2.088-.112 2.744-.337.655-.241 1.113-.673 1.371-1.294.276-.621.414-1.501.414-2.64 0-1.156-.138-2.036-.414-2.64-.258-.62-.716-1.044-1.371-1.268-.656-.241-1.57-.362-2.744-.362-1.173 0-2.079.12-2.717.362A2.179 2.179 0 007.539 8.29c-.242.604-.363 1.484-.363 2.64 0 1.139.121 2.019.363 2.64a2.266 2.266 0 001.346 1.294c.638.225 1.544.337 2.717.337z"
|
|
36
|
+
})]
|
|
37
|
+
}));
|
|
38
|
+
});
|
|
39
|
+
export default Icon;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
colorPrimary: string;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
declare const Icons: CompoundedIcon;
|
|
15
|
+
export default Icons;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
import { COLOR_PRIMARY, TITLE } from "./style";
|
|
7
|
+
var Icons = Mono;
|
|
8
|
+
Icons.Color = Color;
|
|
9
|
+
Icons.Text = Text;
|
|
10
|
+
Icons.Combine = Combine;
|
|
11
|
+
Icons.Avatar = Avatar;
|
|
12
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
|
13
|
+
Icons.title = TITLE;
|
|
14
|
+
export default Icons;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const TITLE = "OpenClaw";
|
|
2
|
+
export declare const COMBINE_TEXT_MULTIPLE = 0.75;
|
|
3
|
+
export declare const COMBINE_SPACE_MULTIPLE = 0.2;
|
|
4
|
+
export declare const COLOR_PRIMARY = "#ff4d4d";
|
|
5
|
+
export declare const AVATAR_BACKGROUND = "#000";
|
|
6
|
+
export declare const AVATAR_COLOR = "#fff";
|
|
7
|
+
export declare const AVATAR_ICON_MULTIPLE = 0.75;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var TITLE = 'OpenClaw';
|
|
2
|
+
export var COMBINE_TEXT_MULTIPLE = 0.75;
|
|
3
|
+
export var COMBINE_SPACE_MULTIPLE = 0.2;
|
|
4
|
+
export var COLOR_PRIMARY = '#ff4d4d';
|
|
5
|
+
|
|
6
|
+
// Avatar constants
|
|
7
|
+
export var AVATAR_BACKGROUND = '#000';
|
|
8
|
+
export var AVATAR_COLOR = '#fff';
|
|
9
|
+
export var AVATAR_ICON_MULTIPLE = 0.75;
|
|
@@ -7,16 +7,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
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
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
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; }
|
|
17
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; }
|
|
18
12
|
import { memo } from 'react';
|
|
19
|
-
import { useFillIds } from "../../hooks/useFillId";
|
|
20
13
|
import { TITLE } from "../style";
|
|
21
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -25,12 +18,6 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
|
|
|
25
18
|
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
26
19
|
style = _ref.style,
|
|
27
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
var _useFillIds = useFillIds(TITLE, 4),
|
|
29
|
-
_useFillIds2 = _slicedToArray(_useFillIds, 4),
|
|
30
|
-
a = _useFillIds2[0],
|
|
31
|
-
b = _useFillIds2[1],
|
|
32
|
-
c = _useFillIds2[2],
|
|
33
|
-
d = _useFillIds2[3];
|
|
34
21
|
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
35
22
|
height: size,
|
|
36
23
|
style: _objectSpread({
|
|
@@ -44,89 +31,17 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
|
|
|
44
31
|
children: [/*#__PURE__*/_jsx("title", {
|
|
45
32
|
children: TITLE
|
|
46
33
|
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
-
d: "
|
|
48
|
-
fill:
|
|
34
|
+
d: "M11.988 23.968c6.612 0 11.972-5.361 11.972-11.974S18.6.021 11.988.021C5.376.02.016 5.38.016 11.994s5.36 11.974 11.972 11.974z",
|
|
35
|
+
fill: "#E5FFE7"
|
|
49
36
|
}), /*#__PURE__*/_jsx("path", {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
fill: b.fill,
|
|
53
|
-
fillRule: "evenodd"
|
|
37
|
+
d: "M17.281 14.715s-3.273 9.93-15.24 3.982c0 0 3.26 5.434 10.249 5.275l9.48-8.489-4.489-.77v.002z",
|
|
38
|
+
fill: "#8FF793"
|
|
54
39
|
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
fill: c.fill,
|
|
58
|
-
fillRule: "evenodd"
|
|
40
|
+
d: "M21.64 4.9c-1.93-2.377-5.41-2.94-8.006-1.208a5.991 5.991 0 00-1.65 8.311 5.995 5.995 0 01-2.785 8.909 5.93 5.93 0 01-6.457-1.356 6.123 6.123 0 01-.886-1.152C-1.606 12.932-.097 5.663 5.32 2.044a11.936 11.936 0 0116.318 2.855h.003z",
|
|
41
|
+
fill: "#38CF6F"
|
|
59
42
|
}), /*#__PURE__*/_jsx("path", {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
fill: d.fill,
|
|
63
|
-
fillRule: "evenodd"
|
|
64
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
65
|
-
clipRule: "evenodd",
|
|
66
|
-
d: "M13.528.096A6.187 6.187 0 0112 12.281a5.752 5.752 0 00-1.71.255c.147-.905.595-1.784 1.321-2.501.858-.848 3.108-1.223 4.045-2.441 1.27-1.651 2.14-6.104-2.676-7.554.184.014.367.033.548.056z",
|
|
67
|
-
fill: "#ECECEE",
|
|
68
|
-
fillRule: "evenodd"
|
|
69
|
-
}), /*#__PURE__*/_jsxs("defs", {
|
|
70
|
-
children: [/*#__PURE__*/_jsxs("linearGradient", {
|
|
71
|
-
gradientUnits: "userSpaceOnUse",
|
|
72
|
-
id: a.id,
|
|
73
|
-
x1: "12",
|
|
74
|
-
x2: "12",
|
|
75
|
-
y1: "0",
|
|
76
|
-
y2: "24",
|
|
77
|
-
children: [/*#__PURE__*/_jsx("stop", {
|
|
78
|
-
stopColor: "#02B2FC"
|
|
79
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
80
|
-
offset: ".5",
|
|
81
|
-
stopColor: "#20CBB6"
|
|
82
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
83
|
-
offset: "1",
|
|
84
|
-
stopColor: "#13D363"
|
|
85
|
-
})]
|
|
86
|
-
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
87
|
-
gradientUnits: "userSpaceOnUse",
|
|
88
|
-
id: b.id,
|
|
89
|
-
x1: "9.095",
|
|
90
|
-
x2: "9.095",
|
|
91
|
-
y1: "0",
|
|
92
|
-
y2: "23.537",
|
|
93
|
-
children: [/*#__PURE__*/_jsx("stop", {
|
|
94
|
-
stopColor: "#C3EBEF"
|
|
95
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
96
|
-
offset: "1",
|
|
97
|
-
stopColor: "#D3F4DD"
|
|
98
|
-
})]
|
|
99
|
-
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
100
|
-
gradientUnits: "userSpaceOnUse",
|
|
101
|
-
id: c.id,
|
|
102
|
-
x1: "4.308",
|
|
103
|
-
x2: "4.308",
|
|
104
|
-
y1: "4.593",
|
|
105
|
-
y2: "23.516",
|
|
106
|
-
children: [/*#__PURE__*/_jsx("stop", {
|
|
107
|
-
stopColor: "#14D368"
|
|
108
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
109
|
-
offset: ".5",
|
|
110
|
-
stopColor: "#24CEAD"
|
|
111
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
112
|
-
offset: "1",
|
|
113
|
-
stopColor: "#03B4F8"
|
|
114
|
-
})]
|
|
115
|
-
}), /*#__PURE__*/_jsxs("linearGradient", {
|
|
116
|
-
gradientUnits: "userSpaceOnUse",
|
|
117
|
-
id: d.id,
|
|
118
|
-
x1: "15.685",
|
|
119
|
-
x2: "15.685",
|
|
120
|
-
y1: ".039",
|
|
121
|
-
y2: "17.249",
|
|
122
|
-
children: [/*#__PURE__*/_jsx("stop", {
|
|
123
|
-
stopColor: "#61CFFA",
|
|
124
|
-
stopOpacity: ".996"
|
|
125
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
126
|
-
offset: "1",
|
|
127
|
-
stopColor: "#79E3C0"
|
|
128
|
-
})]
|
|
129
|
-
})]
|
|
43
|
+
d: "M23.75 9.66a12.77 12.77 0 00-.733-2.356c-.77-1.64-2.841-2.378-4.57-1.452-1.156.622-1.847 1.884-1.691 3.187.017.127.045.274.072.394.25.732.43 1.51.525 2.328a10.718 10.718 0 01-5.548 10.658c-.998.538-2.025.91-3.055 1.121 3.19.898 6.76.538 9.92-1.586 4.013-2.698 6.072-7.563 5.086-12.296h-.003l-.002.003z",
|
|
44
|
+
fill: "#38CF6F"
|
|
130
45
|
})]
|
|
131
46
|
}));
|
|
132
47
|
});
|
|
@@ -33,7 +33,9 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
|
|
|
33
33
|
children: [/*#__PURE__*/_jsx("title", {
|
|
34
34
|
children: TITLE
|
|
35
35
|
}), /*#__PURE__*/_jsx("path", {
|
|
36
|
-
d: "
|
|
36
|
+
d: "M21.64 4.9c-1.93-2.377-5.41-2.94-8.006-1.208a5.991 5.991 0 00-1.65 8.311 5.995 5.995 0 01-2.785 8.909 5.93 5.93 0 01-6.457-1.356 6.123 6.123 0 01-.886-1.152C-1.606 12.932-.097 5.663 5.32 2.044a11.936 11.936 0 0116.318 2.855h.003z"
|
|
37
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
38
|
+
d: "M23.75 9.66a12.77 12.77 0 00-.733-2.356c-.77-1.64-2.841-2.378-4.57-1.452-1.156.622-1.847 1.884-1.691 3.187.017.127.045.274.072.394.25.732.43 1.51.525 2.328a10.718 10.718 0 01-5.548 10.658c-.998.538-2.025.91-3.055 1.121 3.19.898 6.76.538 9.92-1.586 4.013-2.698 6.072-7.563 5.086-12.296h-.003l-.002.003z"
|
|
37
39
|
})]
|
|
38
40
|
}));
|
|
39
41
|
});
|
|
@@ -30,6 +30,7 @@ import AntGroup from "../AntGroup";
|
|
|
30
30
|
import Anthropic from "../Anthropic";
|
|
31
31
|
import Anyscale from "../Anyscale";
|
|
32
32
|
import Apple from "../Apple";
|
|
33
|
+
import AtlasCloud from "../AtlasCloud";
|
|
33
34
|
import Aws from "../Aws";
|
|
34
35
|
import Azure from "../Azure";
|
|
35
36
|
import AzureAI from "../AzureAI";
|
|
@@ -696,6 +697,10 @@ export var providerMappings = [{
|
|
|
696
697
|
Icon: AkashChat,
|
|
697
698
|
combineMultiple: 0.8,
|
|
698
699
|
keywords: [ModelProvider.AkashChat]
|
|
700
|
+
}, {
|
|
701
|
+
Icon: AtlasCloud,
|
|
702
|
+
combineMultiple: 0.8,
|
|
703
|
+
keywords: [ModelProvider.AtlasCloud]
|
|
699
704
|
}, {
|
|
700
705
|
Icon: SophNet,
|
|
701
706
|
combineMultiple: 0.85,
|
|
@@ -13,6 +13,7 @@ export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
|
|
|
13
13
|
ModelProvider["Anthropic"] = "anthropic";
|
|
14
14
|
ModelProvider["Anyscale"] = "anyscale";
|
|
15
15
|
ModelProvider["Apple"] = "apple";
|
|
16
|
+
ModelProvider["AtlasCloud"] = "atlascloud";
|
|
16
17
|
ModelProvider["Aws"] = "aws";
|
|
17
18
|
ModelProvider["Azure"] = "azure";
|
|
18
19
|
ModelProvider["AzureAI"] = "azureai";
|