@lobehub/icons 5.0.1 → 5.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 +112 -110
- package/es/AgentVoice/components/Avatar.d.ts +5 -0
- package/es/AgentVoice/components/Avatar.js +25 -0
- package/es/AgentVoice/components/Color.js +39 -0
- package/es/AgentVoice/components/Combine.d.ts +7 -0
- package/es/AgentVoice/components/Combine.js +32 -0
- package/es/AgentVoice/components/Mono.js +40 -0
- package/es/AgentVoice/components/Text.d.ts +3 -0
- package/es/AgentVoice/components/Text.js +40 -0
- package/es/AgentVoice/index.d.ts +15 -0
- package/es/AgentVoice/index.js +14 -0
- package/es/AgentVoice/style.d.ts +7 -0
- package/es/AgentVoice/style.js +9 -0
- package/es/Apertis/components/Avatar.d.ts +5 -0
- package/es/Apertis/components/Avatar.js +25 -0
- package/es/Apertis/components/Color.d.ts +3 -0
- package/es/Apertis/components/Color.js +136 -0
- package/es/Apertis/components/Combine.d.ts +7 -0
- package/es/Apertis/components/Combine.js +32 -0
- package/es/Apertis/components/Mono.d.ts +3 -0
- package/es/Apertis/components/Mono.js +49 -0
- package/es/Apertis/components/Text.d.ts +3 -0
- package/es/Apertis/components/Text.js +39 -0
- package/es/Apertis/index.d.ts +15 -0
- package/es/Apertis/index.js +14 -0
- package/es/Apertis/style.d.ts +7 -0
- package/es/Apertis/style.js +9 -0
- package/es/AskVerdict/components/Avatar.d.ts +5 -0
- package/es/AskVerdict/components/Avatar.js +25 -0
- package/es/AskVerdict/components/Color.d.ts +3 -0
- package/es/AskVerdict/components/Color.js +77 -0
- package/es/AskVerdict/components/Combine.d.ts +7 -0
- package/es/AskVerdict/components/Combine.js +32 -0
- package/es/AskVerdict/components/Mono.d.ts +3 -0
- package/es/AskVerdict/components/Mono.js +52 -0
- package/es/AskVerdict/components/Text.d.ts +3 -0
- package/es/AskVerdict/components/Text.js +39 -0
- package/es/AskVerdict/index.d.ts +15 -0
- package/es/AskVerdict/index.js +14 -0
- package/es/AskVerdict/style.d.ts +7 -0
- package/es/AskVerdict/style.js +9 -0
- package/es/BriaAI/components/Avatar.d.ts +5 -0
- package/es/BriaAI/components/Avatar.js +25 -0
- package/es/BriaAI/components/Color.d.ts +3 -0
- package/es/BriaAI/components/Color.js +57 -0
- package/es/BriaAI/components/Combine.d.ts +7 -0
- package/es/BriaAI/components/Combine.js +32 -0
- package/es/BriaAI/components/Mono.d.ts +3 -0
- package/es/BriaAI/components/Mono.js +52 -0
- package/es/BriaAI/components/Text.d.ts +3 -0
- package/es/BriaAI/components/Text.js +42 -0
- package/es/BriaAI/index.d.ts +15 -0
- package/es/BriaAI/index.js +14 -0
- package/es/BriaAI/style.d.ts +7 -0
- package/es/BriaAI/style.js +9 -0
- package/es/GeminiCLI/components/Avatar.d.ts +5 -0
- package/es/GeminiCLI/components/Avatar.js +25 -0
- package/es/GeminiCLI/components/Color.d.ts +3 -0
- package/es/GeminiCLI/components/Color.js +66 -0
- package/es/GeminiCLI/components/Combine.d.ts +7 -0
- package/es/GeminiCLI/components/Combine.js +32 -0
- package/es/GeminiCLI/components/Mono.d.ts +3 -0
- package/es/GeminiCLI/components/Mono.js +43 -0
- package/es/GeminiCLI/components/Text.d.ts +3 -0
- package/es/GeminiCLI/components/Text.js +39 -0
- package/es/GeminiCLI/index.d.ts +16 -0
- package/es/GeminiCLI/index.js +14 -0
- package/es/GeminiCLI/style.d.ts +7 -0
- package/es/GeminiCLI/style.js +9 -0
- package/es/LangChain/components/Color.js +2 -7
- package/es/LangChain/components/Mono.js +1 -4
- package/es/LangChain/components/Text.js +2 -10
- package/es/LangChain/style.d.ts +5 -5
- package/es/LangChain/style.js +5 -5
- package/es/LlmApi/components/Avatar.d.ts +5 -0
- package/es/LlmApi/components/Avatar.js +25 -0
- package/es/LlmApi/components/Color.d.ts +3 -0
- package/es/LlmApi/components/Color.js +58 -0
- package/es/LlmApi/components/Combine.d.ts +7 -0
- package/es/LlmApi/components/Combine.js +32 -0
- package/es/LlmApi/components/Mono.d.ts +3 -0
- package/es/LlmApi/components/Mono.js +43 -0
- package/es/LlmApi/components/Text.d.ts +3 -0
- package/es/LlmApi/components/Text.js +40 -0
- package/es/LlmApi/index.d.ts +15 -0
- package/es/LlmApi/index.js +14 -0
- package/es/LlmApi/style.d.ts +7 -0
- package/es/LlmApi/style.js +7 -0
- package/es/Obsidian/components/Avatar.d.ts +5 -0
- package/es/Obsidian/components/Avatar.js +25 -0
- package/es/Obsidian/components/Color.d.ts +3 -0
- package/es/Obsidian/components/Color.js +45 -0
- package/es/Obsidian/components/Combine.d.ts +7 -0
- package/es/Obsidian/components/Combine.js +32 -0
- package/es/Obsidian/components/Mono.d.ts +3 -0
- package/es/Obsidian/components/Mono.js +44 -0
- package/es/Obsidian/components/Text.d.ts +3 -0
- package/es/Obsidian/components/Text.js +39 -0
- package/es/Obsidian/index.d.ts +16 -0
- package/es/Obsidian/index.js +14 -0
- package/es/Obsidian/style.d.ts +7 -0
- package/es/Obsidian/style.js +9 -0
- package/es/PrunaAI/components/Avatar.d.ts +5 -0
- package/es/PrunaAI/components/Avatar.js +25 -0
- package/es/PrunaAI/components/Color.d.ts +3 -0
- package/es/PrunaAI/components/Color.js +153 -0
- package/es/PrunaAI/components/Combine.d.ts +7 -0
- package/es/PrunaAI/components/Combine.js +32 -0
- package/es/PrunaAI/components/Mono.d.ts +3 -0
- package/es/PrunaAI/components/Mono.js +54 -0
- package/es/PrunaAI/components/Text.d.ts +3 -0
- package/es/PrunaAI/components/Text.js +39 -0
- package/es/PrunaAI/index.d.ts +15 -0
- package/es/PrunaAI/index.js +14 -0
- package/es/PrunaAI/style.d.ts +7 -0
- package/es/PrunaAI/style.js +9 -0
- package/es/Qoder/components/Avatar.d.ts +5 -0
- package/es/Qoder/components/Avatar.js +25 -0
- package/es/Qoder/components/Color.d.ts +3 -0
- package/es/Qoder/components/Color.js +42 -0
- package/es/Qoder/components/Combine.d.ts +7 -0
- package/es/Qoder/components/Combine.js +32 -0
- package/es/Qoder/components/Mono.d.ts +3 -0
- package/es/Qoder/components/Mono.js +43 -0
- package/es/Qoder/components/Text.d.ts +3 -0
- package/es/Qoder/components/Text.js +39 -0
- package/es/Qoder/index.d.ts +15 -0
- package/es/Qoder/index.js +14 -0
- package/es/Qoder/style.d.ts +7 -0
- package/es/Qoder/style.js +7 -0
- package/es/Reve/components/Avatar.d.ts +5 -0
- package/es/Reve/components/Avatar.js +25 -0
- package/es/Reve/components/Combine.d.ts +5 -0
- package/es/Reve/components/Combine.js +26 -0
- package/es/Reve/components/Mono.d.ts +3 -0
- package/es/Reve/components/Mono.js +40 -0
- package/es/Reve/components/Text.d.ts +3 -0
- package/es/Reve/components/Text.js +41 -0
- package/es/Reve/index.d.ts +13 -0
- package/es/Reve/index.js +12 -0
- package/es/Reve/style.d.ts +7 -0
- package/es/Reve/style.js +9 -0
- package/es/Together/components/Avatar.js +2 -2
- package/es/Together/components/Color.js +8 -9
- package/es/Together/components/Mono.js +5 -6
- package/es/Together/components/Text.js +14 -5
- package/es/Together/index.d.ts +0 -4
- package/es/Together/index.js +0 -4
- package/es/Together/style.d.ts +3 -3
- package/es/Together/style.js +2 -2
- package/es/Xpay/components/Avatar.d.ts +5 -0
- package/es/Xpay/components/Avatar.js +25 -0
- package/es/Xpay/components/Color.d.ts +3 -0
- package/es/Xpay/components/Color.js +45 -0
- package/es/Xpay/components/Combine.d.ts +7 -0
- package/es/Xpay/components/Combine.js +32 -0
- package/es/Xpay/components/Mono.d.ts +3 -0
- package/es/Xpay/components/Mono.js +44 -0
- package/es/Xpay/components/Text.d.ts +3 -0
- package/es/Xpay/components/Text.js +39 -0
- package/es/Xpay/index.d.ts +15 -0
- package/es/Xpay/index.js +14 -0
- package/es/Xpay/style.d.ts +7 -0
- package/es/Xpay/style.js +9 -0
- package/es/features/agentConfig.js +44 -12
- package/es/features/providerConfig.js +14 -5
- package/es/features/providerEnum.d.ts +7 -0
- package/es/features/providerEnum.js +7 -0
- package/es/icons.d.ts +11 -0
- package/es/icons.js +11 -0
- package/es/toc.js +202 -4
- package/package.json +1 -1
- package/es/Together/components/BrandColor.js +0 -42
- package/es/Together/components/BrandMono.js +0 -41
- /package/es/{Together/components/BrandColor.d.ts → AgentVoice/components/Color.d.ts} +0 -0
- /package/es/{Together/components/BrandMono.d.ts → AgentVoice/components/Mono.d.ts} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
height: size,
|
|
23
|
+
style: _objectSpread({
|
|
24
|
+
flex: 'none',
|
|
25
|
+
lineHeight: 1
|
|
26
|
+
}, style),
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
width: size,
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
30
|
+
}, rest), {}, {
|
|
31
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
32
|
+
children: TITLE
|
|
33
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
34
|
+
d: "M11.938 20.811l-.15.087-4.096 2.36-.449.26v-6.756l.15-.086 4.095-2.36.45-.26v6.755zM21.576 20.811l-.15.087-4.096 2.36-.45.26v-6.756l.151-.086 4.096-2.36.45-.26v6.755z",
|
|
35
|
+
fill: "#fff"
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "M17.146 11.432l4.357 2.51-4.535 2.615-.15.087-.15-.087L12 13.863l-.677.392-3.992 2.302-.15.087-.149-.087-4.534-2.615 4.191-2.416.21-.12.162.178a6.506 6.506 0 004.144 2.112l.769.08.77-.103a6.517 6.517 0 004.028-2.179l.163-.185.212.123zM21.576 13.83l-.449-.26-4.173-2.404 4.173-2.404.45-.26v5.328z",
|
|
38
|
+
fill: "#fff"
|
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
+
clipRule: "evenodd",
|
|
41
|
+
d: "M12.207.447c3.412.177 6.116 3.055 6.116 6.569l-.008.338c-.166 3.358-2.806 6.06-6.108 6.23l-.332.009c-3.455 0-6.267-2.77-6.44-6.24l-.007-.337c0-3.627 2.88-6.577 6.447-6.578l.332.01z",
|
|
42
|
+
fill: "#fff",
|
|
43
|
+
fillRule: "evenodd"
|
|
44
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
45
|
+
d: "M21.503 8.389l-4.081 2.351.396-.857c.386-.834.61-1.762.627-2.742l.01-.51 3.048 1.758zM5.31 7.275c.032.86.222 1.677.54 2.423l.353.827L2.497 8.39 4.86 7.026l.431-.249.019.498z",
|
|
46
|
+
fill: "#fff"
|
|
47
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
48
|
+
d: "M10.248 9.452h-.813V7.625h-.977v1.827h-.814V6.794h2.604v2.658zM16.107 9.452h-.814V7.625h-.976v1.827h-.814V6.794h2.604v2.658z",
|
|
49
|
+
fill: "#000"
|
|
50
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
d: "M11.875 0c3.551 0 6.472 2.75 6.834 6.277l3.107 1.79A.375.375 0 0122 8.39v12.465a.372.372 0 01-.184.321l-4.82 2.778a.352.352 0 01-.16.046l-.017.001h-.017a.351.351 0 01-.076-.012l-.009-.003a.35.35 0 01-.076-.032L12 21.277l-4.641 2.676a.352.352 0 01-.161.046L7.18 24h-.018l-.03-.003c-.005 0-.01-.002-.014-.003l-.03-.006-.014-.005a.35.35 0 01-.072-.03l-4.82-2.778A.371.371 0 012 20.854V8.389a.378.378 0 01.184-.321l2.844-1.64C5.321 2.828 8.274 0 11.875 0zM7.543 16.935v6.063l4.095-2.36v-6.063l-4.095 2.36zm9.638 0v6.063l4.096-2.36v-6.063l-4.096 2.36zM3.097 13.943l4.083 2.353 3.993-2.301a6.804 6.804 0 01-4.335-2.209l-3.74 2.157zm13.9-2.251a6.814 6.814 0 01-4.214 2.278l4.035 2.326 4.084-2.353-3.905-2.251zm.558-.526l3.722 2.144V9.022l-3.722 2.144zM11.875.738c-3.395 0-6.147 2.81-6.147 6.277s2.752 6.278 6.147 6.278c3.396 0 6.148-2.81 6.148-6.278 0-3.466-2.752-6.277-6.148-6.277zm6.87 6.408a7.104 7.104 0 01-.654 2.863l2.811-1.62-2.157-1.243zM3.097 8.389l2.478 1.428a7.104 7.104 0 01-.566-2.531L3.097 8.389z",
|
|
53
|
+
fill: "#000",
|
|
54
|
+
fillRule: "evenodd"
|
|
55
|
+
})]
|
|
56
|
+
}));
|
|
57
|
+
});
|
|
58
|
+
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,43 @@
|
|
|
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__*/_jsx("path", {
|
|
36
|
+
d: "M10.248 9.452h-.813V7.625h-.977v1.827h-.814V6.794h2.604v2.658zM16.107 9.452h-.814V7.625h-.976v1.827h-.814V6.794h2.604v2.658z"
|
|
37
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
38
|
+
clipRule: "evenodd",
|
|
39
|
+
d: "M11.875 0c3.551 0 6.472 2.75 6.834 6.277l3.107 1.79A.375.375 0 0122 8.39v12.465a.372.372 0 01-.184.321l-4.82 2.778a.352.352 0 01-.16.046l-.017.001h-.017a.351.351 0 01-.076-.012l-.009-.003a.35.35 0 01-.076-.032L12 21.277l-4.641 2.676a.352.352 0 01-.161.046L7.18 24h-.018l-.03-.003c-.005 0-.01-.002-.014-.003l-.03-.006-.014-.005a.35.35 0 01-.072-.03l-4.82-2.778A.371.371 0 012 20.854V8.389a.378.378 0 01.184-.321l2.844-1.64C5.321 2.828 8.274 0 11.875 0zM7.543 16.935v6.063l4.095-2.36v-6.063l-4.095 2.36zm9.638 0v6.063l4.096-2.36v-6.063l-4.096 2.36zM3.097 13.943l4.083 2.353 3.993-2.301a6.804 6.804 0 01-4.335-2.209l-3.74 2.157zm13.9-2.251a6.814 6.814 0 01-4.214 2.278l4.035 2.326 4.084-2.353-3.905-2.251zm.558-.526l3.722 2.144V9.022l-3.722 2.144zM11.875.738c-3.395 0-6.147 2.81-6.147 6.277s2.752 6.278 6.147 6.278c3.396 0 6.148-2.81 6.148-6.278 0-3.466-2.752-6.277-6.148-6.277zm6.87 6.408a7.104 7.104 0 01-.654 2.863l2.811-1.62-2.157-1.243zM3.097 8.389l2.478 1.428a7.104 7.104 0 01-.566-2.531L3.097 8.389z"
|
|
40
|
+
})]
|
|
41
|
+
}));
|
|
42
|
+
});
|
|
43
|
+
export default Icon;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 98 24",
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
31
|
+
}, rest), {}, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
33
|
+
children: TITLE
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
clipRule: "evenodd",
|
|
36
|
+
d: "M93 22V2h3v20h-3zM77 22V2h7.07c1.377 0 2.584.229 3.62.686 1.038.438 1.848 1.095 2.433 1.971.584.876.877 1.953.877 3.229s-.302 2.362-.905 3.257c-.585.876-1.395 1.543-2.432 2-1.037.438-2.235.657-3.593.657h-3.846V22H77zm3.224-10.971h3.762c1.376 0 2.338-.277 2.885-.829.566-.571.848-1.343.848-2.314 0-.953-.282-1.715-.848-2.286-.547-.571-1.509-.857-2.885-.857h-3.762v6.286zM57 22l7.222-20h3.555L75 22h-3.385l-1.637-4.743h-7.984L60.329 22H57zm5.925-7.343h6.15L65.972 5.8l-3.047 8.857zM30 22V2h3.867l6.176 13.229L46.103 2H50v20h-3.29V7.8l-5.426 11.543h-2.568L33.29 7.8V22H30zM16 22V2h3.226v17.286H28V22H16zM2 22V2h3.226v17.286H14V22H2z"
|
|
37
|
+
})]
|
|
38
|
+
}));
|
|
39
|
+
});
|
|
40
|
+
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 = "LLM API";
|
|
2
|
+
export declare const COMBINE_TEXT_MULTIPLE = 0.6;
|
|
3
|
+
export declare const COMBINE_SPACE_MULTIPLE = 0.2;
|
|
4
|
+
export declare const COLOR_PRIMARY = "#3F35FF";
|
|
5
|
+
export declare const AVATAR_BACKGROUND = "#3F35FF";
|
|
6
|
+
export declare const AVATAR_COLOR = "#fff";
|
|
7
|
+
export declare const AVATAR_ICON_MULTIPLE = 0.75;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var TITLE = 'LLM API';
|
|
2
|
+
export var COMBINE_TEXT_MULTIPLE = 0.6;
|
|
3
|
+
export var COMBINE_SPACE_MULTIPLE = 0.2;
|
|
4
|
+
export var COLOR_PRIMARY = '#3F35FF';
|
|
5
|
+
export var AVATAR_BACKGROUND = COLOR_PRIMARY;
|
|
6
|
+
export var AVATAR_COLOR = '#fff';
|
|
7
|
+
export var AVATAR_ICON_MULTIPLE = 0.75;
|
|
@@ -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 Mono from "./Mono";
|
|
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: Mono,
|
|
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,45 @@
|
|
|
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
|
+
height: size,
|
|
23
|
+
style: _objectSpread({
|
|
24
|
+
flex: 'none',
|
|
25
|
+
lineHeight: 1
|
|
26
|
+
}, style),
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
width: size,
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
30
|
+
}, rest), {}, {
|
|
31
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
32
|
+
children: TITLE
|
|
33
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
34
|
+
d: "M9.643 14.012c.615-.183 1.605-.465 2.745-.534-.684-1.725-.849-3.235-.716-4.579.153-1.552.7-2.847 1.234-3.95.114-.235.223-.454.328-.664.149-.297.289-.577.42-.86.217-.47.378-.885.46-1.27.08-.38.08-.719-.014-1.044-.095-.325-.297-.675-.681-1.06a1.6 1.6 0 00-1.475.36l-4.95 4.453a1.602 1.602 0 00-.512.952l-.427 2.83c.67.592 2.327 2.317 3.335 4.71.09.213.174.432.253.656zM5.855 9.937c-.024.1-.057.197-.099.29L3.14 16.058a1.602 1.602 0 00.313 1.772l4.117 4.24c2.102-3.102 1.795-6.02.835-8.3-.728-1.73-1.832-3.083-2.55-3.833z",
|
|
35
|
+
fill: "#A88BFA"
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "M8.52 22.57c.073.01.146.018.22.02.781.023 2.095.091 3.16.288.87.16 2.593.642 4.011 1.056 1.082.316 2.197-.548 2.354-1.664.115-.814.33-1.735.725-2.58l-.009.004c-.67-1.87-1.523-3.077-2.417-3.847a5.294 5.294 0 00-2.777-1.258c-1.541-.216-2.952.189-3.841.45.532 2.218.368 4.828-1.425 7.53z",
|
|
38
|
+
fill: "#A88BFA"
|
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
+
d: "M19.676 18.538a69.072 69.072 0 001.858-2.952.811.811 0 00-.061-.901c-.516-.684-1.504-2.075-2.042-3.362-.554-1.323-.636-3.378-.64-4.378a1.708 1.708 0 00-.359-1.051L15.235 1.83a3.757 3.757 0 01-.076.545c-.107.503-.307 1.004-.536 1.498-.135.29-.29.601-.446.915-.105.21-.21.42-.31.626-.517 1.068-.998 2.227-1.132 3.59-.125 1.262.046 2.73.814 4.484.128.01.257.025.386.043a6.364 6.364 0 013.327 1.506c.916.79 1.743 1.921 2.414 3.5z",
|
|
41
|
+
fill: "#A88BFA"
|
|
42
|
+
})]
|
|
43
|
+
}));
|
|
44
|
+
});
|
|
45
|
+
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,44 @@
|
|
|
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__*/_jsx("path", {
|
|
36
|
+
d: "M9.643 14.012c.615-.183 1.605-.465 2.745-.534-.684-1.725-.849-3.235-.716-4.579.153-1.552.7-2.847 1.234-3.95.114-.235.223-.454.328-.664.149-.297.289-.577.42-.86.217-.47.378-.885.46-1.27.08-.38.08-.719-.014-1.044-.095-.325-.297-.675-.681-1.06a1.6 1.6 0 00-1.475.36l-4.95 4.453a1.602 1.602 0 00-.512.952l-.427 2.83c.67.592 2.327 2.317 3.335 4.71.09.213.174.432.253.656zM5.855 9.937c-.024.1-.057.197-.099.29L3.14 16.058a1.602 1.602 0 00.313 1.772l4.117 4.24c2.102-3.102 1.795-6.02.835-8.3-.728-1.73-1.832-3.083-2.55-3.833z"
|
|
37
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
38
|
+
d: "M8.52 22.57c.073.01.146.018.22.02.781.023 2.095.091 3.16.288.87.16 2.593.642 4.011 1.056 1.082.316 2.197-.548 2.354-1.664.115-.814.33-1.735.725-2.58l-.009.004c-.67-1.87-1.523-3.077-2.417-3.847a5.294 5.294 0 00-2.777-1.258c-1.541-.216-2.952.189-3.841.45.532 2.218.368 4.828-1.425 7.53z"
|
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
+
d: "M19.676 18.538a69.072 69.072 0 001.858-2.952.811.811 0 00-.061-.901c-.516-.684-1.504-2.075-2.042-3.362-.554-1.323-.636-3.378-.64-4.378a1.708 1.708 0 00-.359-1.051L15.235 1.83a3.757 3.757 0 01-.076.545c-.107.503-.307 1.004-.536 1.498-.135.29-.29.601-.446.915-.105.21-.21.42-.31.626-.517 1.068-.998 2.227-1.132 3.59-.125 1.262.046 2.73.814 4.484.128.01.257.025.386.043a6.364 6.364 0 013.327 1.506c.916.79 1.743 1.921 2.414 3.5z"
|
|
41
|
+
})]
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
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: "evenodd",
|
|
24
|
+
height: size,
|
|
25
|
+
style: _objectSpread({
|
|
26
|
+
flex: 'none',
|
|
27
|
+
lineHeight: 1
|
|
28
|
+
}, style),
|
|
29
|
+
viewBox: "0 0 144 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: "M14.694 1C7.322 1 2 5.638 2 12s5.322 11 12.694 11c7.344 0 12.665-4.638 12.665-11S22.038 1 14.694 1zm0 4.31c4.43 0 7.611 2.647 7.611 6.69 0 4.043-3.18 6.69-7.61 6.69-4.46 0-7.641-2.647-7.641-6.69 0-4.043 3.181-6.69 7.64-6.69zM34.183 20.89c1.07 1.159 3.062 2.11 5.678 2.11 5.352 0 8.473-3.686 8.473-8.146 0-4.49-3.121-8.176-8.473-8.176-2.616 0-4.608.982-5.678 2.111V1.327h-4.757v21.346h4.757v-1.784zm-.149-6.125c0-2.468 2.111-4.251 4.846-4.251 2.616 0 4.816 1.546 4.816 4.34 0 2.795-2.2 4.31-4.816 4.31-2.735 0-4.846-1.753-4.846-4.22v-.18zM48.841 20.086C50.655 21.93 54.133 23 57.761 23c4.905 0 8.591-1.784 8.591-5.44 0-3.568-3.508-4.252-7.521-4.728-3.39-.386-4.43-.475-4.43-1.338 0-.802 1.07-1.308 3.092-1.308 2.438 0 4.548.744 5.975 2.052l2.468-2.854c-1.576-1.517-4.519-2.706-8.205-2.706-4.965 0-8.027 2.14-8.027 5.352 0 3.359 3.121 4.102 6.867 4.578 3.508.416 4.995.416 4.995 1.457 0 .98-1.308 1.397-3.449 1.397-2.676 0-5.143-.832-7.016-2.557l-2.26 3.181zM68.068 5.4h4.846V1.327h-4.846V5.4zm4.787 1.605h-4.757v15.668h4.757V7.006zM89.11 20.89v1.783h4.757V1.327H89.11V8.79c-1.07-1.13-3.062-2.11-5.678-2.11-5.351 0-8.473 3.686-8.473 8.175 0 4.46 3.122 8.146 8.473 8.146 2.616 0 4.608-.951 5.678-2.11zm.149-6.125v.178c0 2.468-2.11 4.222-4.846 4.222-2.616 0-4.816-1.516-4.816-4.31 0-2.796 2.2-4.341 4.816-4.341 2.735 0 4.846 1.783 4.846 4.25zM96.753 5.4h4.846V1.327h-4.846V5.4zm4.786 1.605h-4.756v15.668h4.756V7.006zM110.214 23c2.765 0 5.024-.803 6.451-2.052.803 1.487 2.706 2.379 6.184 1.725v-3.508c-1.665.356-2.021-.03-2.021-.863v-5.708c0-3.924-2.944-5.916-7.938-5.916-4.311 0-7.76 1.873-8.741 4.698l4.281 1.159c.476-1.219 2.111-2.11 4.252-2.11 2.527 0 3.537.95 3.537 2.14v.089l-6.243.565c-3.686.357-6.392 1.873-6.392 4.935 0 3.092 2.765 4.846 6.63 4.846zm6.005-6.333c0 1.814-2.705 2.854-5.143 2.854-1.843 0-2.884-.535-2.884-1.546 0-1.04.833-1.427 2.468-1.575l5.559-.565v.832zM124.479 22.673h4.757V15.18c0-2.705 1.487-4.281 4.073-4.281 2.438 0 3.716 1.605 3.716 4.251v7.522h4.757v-8.92c0-4.34-2.765-7.075-6.838-7.075-2.527 0-4.489.952-5.708 2.23V7.005h-4.757v15.668z"
|
|
36
|
+
})]
|
|
37
|
+
}));
|
|
38
|
+
});
|
|
39
|
+
export default Icon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Avatar from './components/Avatar';
|
|
2
|
+
import Color from './components/Color';
|
|
3
|
+
import Combine from './components/Combine';
|
|
4
|
+
import Mono from './components/Mono';
|
|
5
|
+
import Text from './components/Text';
|
|
6
|
+
export type CompoundedIcon = typeof Mono & {
|
|
7
|
+
Avatar: typeof Avatar;
|
|
8
|
+
Color: typeof Color;
|
|
9
|
+
Combine: typeof Combine;
|
|
10
|
+
Text: typeof Text;
|
|
11
|
+
colorGradient: string;
|
|
12
|
+
colorPrimary: string;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
declare const Icons: CompoundedIcon;
|
|
16
|
+
export default Icons;
|
|
@@ -0,0 +1,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 = "Obsidian";
|
|
2
|
+
export declare const COMBINE_TEXT_MULTIPLE = 0.8;
|
|
3
|
+
export declare const COMBINE_SPACE_MULTIPLE = 0.2;
|
|
4
|
+
export declare const COLOR_PRIMARY = "#A88BFA";
|
|
5
|
+
export declare const AVATAR_BACKGROUND = "#000";
|
|
6
|
+
export declare const AVATAR_COLOR = "#A88BFA";
|
|
7
|
+
export declare const AVATAR_ICON_MULTIPLE = 0.7;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var TITLE = 'Obsidian';
|
|
2
|
+
export var COMBINE_TEXT_MULTIPLE = 0.8;
|
|
3
|
+
export var COMBINE_SPACE_MULTIPLE = 0.2;
|
|
4
|
+
export var COLOR_PRIMARY = '#A88BFA';
|
|
5
|
+
|
|
6
|
+
// Avatar constants
|
|
7
|
+
export var AVATAR_BACKGROUND = '#000';
|
|
8
|
+
export var AVATAR_COLOR = COLOR_PRIMARY;
|
|
9
|
+
export var AVATAR_ICON_MULTIPLE = 0.7;
|
|
@@ -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;
|