@lobehub/icons 1.70.0 → 1.72.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 +23 -21
- package/es/AzureAI/components/Avatar.d.ts +5 -0
- package/es/AzureAI/components/Avatar.js +27 -0
- package/es/AzureAI/components/Color.d.ts +3 -0
- package/es/AzureAI/components/Color.js +178 -0
- package/es/AzureAI/components/Combine.d.ts +7 -0
- package/es/AzureAI/components/Combine.js +32 -0
- package/es/AzureAI/components/Mono.d.ts +3 -0
- package/es/AzureAI/components/Mono.js +48 -0
- package/es/AzureAI/components/Text.d.ts +3 -0
- package/es/AzureAI/components/Text.js +40 -0
- package/es/AzureAI/index.d.ts +15 -0
- package/es/AzureAI/index.js +16 -0
- package/es/AzureAI/style.d.ts +4 -0
- package/es/AzureAI/style.js +4 -0
- package/es/Fireworks/components/Avatar.js +3 -3
- package/es/Fireworks/components/Color.d.ts +3 -0
- package/es/Fireworks/components/Color.js +42 -0
- package/es/Fireworks/components/Combine.d.ts +3 -1
- package/es/Fireworks/components/Combine.js +9 -3
- package/es/Fireworks/components/Mono.js +2 -1
- package/es/Fireworks/components/Text.js +2 -2
- package/es/Fireworks/index.d.ts +2 -1
- package/es/Fireworks/index.js +3 -2
- package/es/Fireworks/style.d.ts +2 -3
- package/es/Fireworks/style.js +2 -3
- package/es/Jina/components/Avatar.d.ts +5 -0
- package/es/Jina/components/Avatar.js +27 -0
- package/es/Jina/components/Mono.d.ts +3 -0
- package/es/Jina/components/Mono.js +41 -0
- package/es/Jina/components/Text.d.ts +3 -0
- package/es/Jina/components/Text.js +44 -0
- package/es/Jina/index.d.ts +11 -0
- package/es/Jina/index.js +12 -0
- package/es/Jina/style.d.ts +4 -0
- package/es/Jina/style.js +4 -0
- package/es/PPIO/components/Avatar.d.ts +5 -0
- package/es/PPIO/components/Avatar.js +27 -0
- package/es/PPIO/components/Color.d.ts +3 -0
- package/es/PPIO/components/Color.js +42 -0
- package/es/PPIO/components/Combine.d.ts +7 -0
- package/es/PPIO/components/Combine.js +32 -0
- package/es/PPIO/components/Mono.d.ts +3 -0
- package/es/PPIO/components/Mono.js +42 -0
- package/es/PPIO/components/Text.d.ts +3 -0
- package/es/PPIO/components/Text.js +41 -0
- package/es/PPIO/components/TextCn.d.ts +3 -0
- package/es/PPIO/components/TextCn.js +41 -0
- package/es/PPIO/index.d.ts +17 -0
- package/es/PPIO/index.js +18 -0
- package/es/PPIO/style.d.ts +4 -0
- package/es/PPIO/style.js +4 -0
- package/es/Vllm/style.d.ts +1 -1
- package/es/Vllm/style.js +1 -1
- package/es/Volcengine/components/Avatar.d.ts +5 -0
- package/es/Volcengine/components/Avatar.js +26 -0
- package/es/Volcengine/components/Color.d.ts +3 -0
- package/es/Volcengine/components/Color.js +49 -0
- package/es/Volcengine/components/Combine.d.ts +7 -0
- package/es/Volcengine/components/Combine.js +32 -0
- package/es/Volcengine/components/Mono.d.ts +3 -0
- package/es/Volcengine/components/Mono.js +53 -0
- package/es/Volcengine/components/Text.d.ts +3 -0
- package/es/Volcengine/components/Text.js +48 -0
- package/es/Volcengine/index.d.ts +15 -0
- package/es/Volcengine/index.js +16 -0
- package/es/Volcengine/style.d.ts +4 -0
- package/es/Volcengine/style.js +4 -0
- package/es/features/ProviderCombine/index.js +4 -6
- package/es/features/providerConfig.js +27 -5
- package/es/features/providerEnum.d.ts +5 -0
- package/es/features/providerEnum.js +5 -0
- package/es/icons.d.ts +4 -0
- package/es/icons.js +4 -0
- package/es/toc.js +77 -6
- package/package.json +1 -1
@@ -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 { forwardRef } 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__*/forwardRef(function (_ref, 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
|
+
ref: ref,
|
26
|
+
style: _objectSpread({
|
27
|
+
flex: 'none',
|
28
|
+
lineHeight: 1
|
29
|
+
}, style),
|
30
|
+
viewBox: "0 0 105 24",
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
32
|
+
}, rest), {}, {
|
33
|
+
children: [/*#__PURE__*/_jsx("title", {
|
34
|
+
children: TITLE
|
35
|
+
}), /*#__PURE__*/_jsx("path", {
|
36
|
+
d: "M103.235 21.67h-2.305V2h2.305v19.67zM98.022 21.67H95.47l-2.085-5.514h-8.34l-1.961 5.515h-2.566L88.064 2h2.387l7.572 19.67zm-5.391-7.585l-3.086-8.381c-.101-.275-.202-.714-.302-1.317h-.055c-.091.558-.197.997-.316 1.317l-3.059 8.381h6.818zM70.546 21.67h-2.25v-2.194h-.055C67.263 21.159 65.823 22 63.921 22c-1.4 0-2.497-.37-3.293-1.111-.786-.74-1.18-1.724-1.18-2.95 0-2.624 1.546-4.151 4.637-4.581l4.211-.59c0-2.387-.965-3.58-2.894-3.58-1.692 0-3.22.576-4.582 1.728V8.612c1.381-.878 2.972-1.317 4.774-1.317 3.301 0 4.952 1.747 4.952 5.24v9.136zm-2.25-7.105l-3.388.466c-1.042.147-1.829.407-2.36.782-.53.366-.795 1.02-.795 1.962 0 .686.242 1.248.727 1.687.494.43 1.148.645 1.962.645 1.115 0 2.034-.389 2.757-1.166.731-.787 1.097-1.779 1.097-2.977v-1.399zM58.05 9.901c-.394-.302-.96-.452-1.702-.452-.96 0-1.764.452-2.414 1.358-.64.905-.96 2.14-.96 3.703v7.16h-2.25V7.625h2.25v2.894h.055c.32-.987.81-1.755 1.468-2.304.658-.558 1.394-.837 2.208-.837.585 0 1.034.064 1.344.192v2.332zM46.17 21.67h-2.25v-2.222h-.054C42.933 21.15 41.488 22 39.53 22c-3.347 0-5.02-1.994-5.02-5.98V7.623h2.235v8.038c0 2.963 1.134 4.445 3.402 4.445 1.098 0 1.998-.402 2.702-1.207.714-.814 1.07-1.875 1.07-3.183V7.624h2.25v14.047zM31.904 8.269L23.591 19.75h8.23v1.92H20.286v-.699l8.313-11.427h-7.53v-1.92h10.836v.645zM19.503 21.67h-2.551l-2.085-5.514h-8.34l-1.962 5.515H2L9.545 2h2.386l7.572 19.67zm-5.39-7.585l-3.087-8.381c-.1-.275-.201-.714-.302-1.317h-.055c-.091.558-.196.997-.315 1.317l-3.06 8.381h6.819z"
|
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,16 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
import Avatar from "./components/Avatar";
|
4
|
+
import Color from "./components/Color";
|
5
|
+
import Combine from "./components/Combine";
|
6
|
+
import Mono from "./components/Mono";
|
7
|
+
import Text from "./components/Text";
|
8
|
+
import { COLOR_PRIMARY, TITLE } from "./style";
|
9
|
+
var Icons = Mono;
|
10
|
+
Icons.Color = Color;
|
11
|
+
Icons.Text = Text;
|
12
|
+
Icons.Combine = Combine;
|
13
|
+
Icons.Avatar = Avatar;
|
14
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
15
|
+
Icons.title = TITLE;
|
16
|
+
export default Icons;
|
@@ -11,7 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
11
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
12
|
import { memo } from 'react';
|
13
13
|
import IconAvatar from "../../features/IconAvatar";
|
14
|
-
import {
|
14
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
15
15
|
import Mono from "./Mono";
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
17
17
|
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
@@ -20,8 +20,8 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
20
20
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
21
21
|
Icon: Mono,
|
22
22
|
"aria-label": TITLE,
|
23
|
-
background: background ||
|
24
|
-
color: '#
|
23
|
+
background: background || COLOR_PRIMARY,
|
24
|
+
color: '#000'
|
25
25
|
}, rest));
|
26
26
|
});
|
27
27
|
export default Avatar;
|
@@ -0,0 +1,42 @@
|
|
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 { forwardRef } 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__*/forwardRef(function (_ref, 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
|
+
ref: ref,
|
24
|
+
style: _objectSpread({
|
25
|
+
flex: 'none',
|
26
|
+
lineHeight: 1
|
27
|
+
}, style),
|
28
|
+
viewBox: "0 0 24 24",
|
29
|
+
width: size,
|
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: "M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z",
|
37
|
+
fill: "#5019C5",
|
38
|
+
fillRule: "evenodd"
|
39
|
+
})]
|
40
|
+
}));
|
41
|
+
});
|
42
|
+
export default Icon;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { type IconCombineProps } from "../../features/IconCombine";
|
3
|
-
export
|
3
|
+
export interface CombineProps extends Omit<IconCombineProps, 'Icon' | 'Text'> {
|
4
|
+
type?: 'color' | 'mono';
|
5
|
+
}
|
4
6
|
declare const Combine: import("react").NamedExoticComponent<CombineProps>;
|
5
7
|
export default Combine;
|
@@ -1,22 +1,28 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
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"];
|
4
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; }
|
5
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; }
|
6
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; }
|
7
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
8
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); }
|
9
|
-
function
|
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; }
|
10
12
|
import { memo } from 'react';
|
11
13
|
import IconCombine from "../../features/IconCombine";
|
12
14
|
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
15
|
+
import Color from "./Color";
|
13
16
|
import Mono from "./Mono";
|
14
17
|
import Text from "./Text";
|
15
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
16
19
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
17
|
-
var
|
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;
|
18
24
|
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
19
|
-
Icon:
|
25
|
+
Icon: Icon,
|
20
26
|
Text: Text,
|
21
27
|
"aria-label": TITLE,
|
22
28
|
spaceMultiple: SPACE_MULTIPLE,
|
@@ -34,7 +34,8 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
34
34
|
children: [/*#__PURE__*/_jsx("title", {
|
35
35
|
children: TITLE
|
36
36
|
}), /*#__PURE__*/_jsx("path", {
|
37
|
-
|
37
|
+
clipRule: "evenodd",
|
38
|
+
d: "M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z"
|
38
39
|
})]
|
39
40
|
}));
|
40
41
|
});
|
@@ -27,13 +27,13 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
27
27
|
flex: 'none',
|
28
28
|
lineHeight: 1
|
29
29
|
}, style),
|
30
|
-
viewBox: "0 0
|
30
|
+
viewBox: "0 0 155 24",
|
31
31
|
xmlns: "http://www.w3.org/2000/svg"
|
32
32
|
}, rest), {}, {
|
33
33
|
children: [/*#__PURE__*/_jsx("title", {
|
34
34
|
children: TITLE
|
35
35
|
}), /*#__PURE__*/_jsx("path", {
|
36
|
-
d: "
|
36
|
+
d: "M2 21.59l.002.002h2.623V12.56h8.47v-2.342h-8.47V4.342h9.317V2H2v19.59zM19.122 7.44h-2.46v14.15h2.46V7.44zM25.359 9.316h.002c-.055.135-.107.218-.273.218-.137 0-.19-.053-.19-.188V7.44h-2.46v14.15h2.455v-8.03c0-2.719 1.26-3.78 3.637-3.78h1.968V7.385h-1.585c-1.939 0-2.923.571-3.554 1.931zM38.679 19.881c-2.638 0-4.606-1.498-4.772-4.679h11.494V13.84c0-3.945-2.404-6.803-6.78-6.803s-7.163 2.858-7.163 7.481c0 4.624 2.705 7.482 7.216 7.482 4.51 0 6.364-2.745 6.78-4.894h-2.565c-.398 1.608-1.573 2.775-4.21 2.775zM38.62 9.153c2.6 0 4.208 1.39 4.32 4.003h-8.966c.408-2.67 2.294-4.003 4.646-4.003zM62.857 18.95c-.06.245-.136.328-.33.328-.196 0-.279-.083-.332-.328L59.46 7.44h-4.238l-2.735 11.51c-.06.245-.135.328-.33.328-.196 0-.278-.083-.331-.328L49.091 7.44h-2.405v.546h.015l3.337 13.604h4.223l2.817-11.865c.053-.193.105-.246.27-.246.136 0 .219.058.271.246l2.818 11.865h4.223l3.336-13.604V7.44h-2.404l-2.735 11.51zM76.572 7.034c-4.13 0-7.409 2.583-7.409 7.482 0 4.9 3.277 7.481 7.41 7.481 4.132 0 7.41-2.582 7.41-7.481 0-4.9-3.28-7.482-7.41-7.482zm.005 12.787c-2.87 0-4.921-1.901-4.921-5.305s2.051-5.305 4.921-5.305 4.922 1.906 4.922 5.305-2.051 5.305-4.922 5.305zM89.504 9.316c-.052.135-.105.218-.27.218-.138 0-.19-.053-.19-.188V7.44h-2.46v14.147h2.454v-8.028c0-2.717 1.26-3.78 3.637-3.78h1.97V7.386h-1.587c-1.938 0-2.923.571-3.554 1.931zM99 14.025V2h-2.46v19.602H99v-4.519l2.667-2.274 5.305 6.788h2.69v-.546l-6.179-7.797 6.179-5.268V7.44h-3.161L99 14.025zM118.186 13.492l-2.022-.381c-1.938-.368-2.787-.774-2.787-1.946s.959-2.042 3.253-2.042 3.607.875 3.797 2.806h2.505c-.278-3.45-2.956-4.89-6.312-4.89-3.356 0-5.713 1.443-5.713 4.16 0 2.719 1.929 3.66 4.704 4.176l2.021.38c1.969.37 2.953.792 2.953 2.015 0 1.222-.987 2.134-3.361 2.134-2.375 0-3.95-.98-4.141-2.858h-2.502c.233 3.374 2.981 4.952 6.645 4.952 3.665 0 5.824-1.563 5.824-4.369 0-2.805-2.27-3.649-4.864-4.137zM153.114 2h-2.758v19.602h2.758V2zM136.981 2.19l-7.645 19.054v.358h2.731l1.936-5.117h9.202l1.936 5.117h2.813v-.353L140.254 2h-3.273v.19zm-2.069 11.925l3.286-8.608h-.002a.378.378 0 01.355-.246h.135a.38.38 0 01.356.246l3.261 8.608h-7.391zM19.122 2h-2.46v2.885h2.46V2z"
|
37
37
|
})]
|
38
38
|
}));
|
39
39
|
});
|
package/es/Fireworks/index.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import Avatar from './components/Avatar';
|
2
|
+
import Color from './components/Color';
|
2
3
|
import Combine from './components/Combine';
|
3
4
|
import Mono from './components/Mono';
|
4
5
|
import Text from './components/Text';
|
5
6
|
export type CompoundedIcon = typeof Mono & {
|
6
7
|
Avatar: typeof Avatar;
|
8
|
+
Color: typeof Color;
|
7
9
|
Combine: typeof Combine;
|
8
10
|
Text: typeof Text;
|
9
|
-
colorGradient: string;
|
10
11
|
colorPrimary: string;
|
11
12
|
title: string;
|
12
13
|
};
|
package/es/Fireworks/index.js
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
3
|
import Avatar from "./components/Avatar";
|
4
|
+
import Color from "./components/Color";
|
4
5
|
import Combine from "./components/Combine";
|
5
6
|
import Mono from "./components/Mono";
|
6
7
|
import Text from "./components/Text";
|
7
|
-
import {
|
8
|
+
import { COLOR_PRIMARY, TITLE } from "./style";
|
8
9
|
var Icons = Mono;
|
10
|
+
Icons.Color = Color;
|
9
11
|
Icons.Text = Text;
|
10
12
|
Icons.Combine = Combine;
|
11
13
|
Icons.Avatar = Avatar;
|
12
14
|
Icons.colorPrimary = COLOR_PRIMARY;
|
13
|
-
Icons.colorGradient = COLOR_GRADIENT;
|
14
15
|
Icons.title = TITLE;
|
15
16
|
export default Icons;
|
package/es/Fireworks/style.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
export declare const TITLE = "Fireworks";
|
2
2
|
export declare const TEXT_MULTIPLE = 0.6;
|
3
|
-
export declare const SPACE_MULTIPLE = 0.
|
4
|
-
export declare const COLOR_PRIMARY = "#
|
5
|
-
export declare const COLOR_GRADIENT = "linear-gradient(to bottom, #952C78, #050003)";
|
3
|
+
export declare const SPACE_MULTIPLE = 0.2;
|
4
|
+
export declare const COLOR_PRIMARY = "#5019C5";
|
package/es/Fireworks/style.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
export var TITLE = 'Fireworks';
|
2
2
|
export var TEXT_MULTIPLE = 0.6;
|
3
|
-
export var SPACE_MULTIPLE = 0.
|
4
|
-
export var COLOR_PRIMARY = '#
|
5
|
-
export var COLOR_GRADIENT = 'linear-gradient(to bottom, #952C78, #050003)';
|
3
|
+
export var SPACE_MULTIPLE = 0.2;
|
4
|
+
export var COLOR_PRIMARY = '#5019C5';
|
@@ -0,0 +1,27 @@
|
|
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 = ["background"];
|
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 IconAvatar from "../../features/IconAvatar";
|
14
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
15
|
+
import Mono from "./Mono";
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
18
|
+
var background = _ref.background,
|
19
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
20
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
21
|
+
Icon: Mono,
|
22
|
+
"aria-label": TITLE,
|
23
|
+
background: background || COLOR_PRIMARY,
|
24
|
+
iconMultiple: 0.65
|
25
|
+
}, rest));
|
26
|
+
});
|
27
|
+
export default Avatar;
|
@@ -0,0 +1,41 @@
|
|
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 { forwardRef } 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__*/forwardRef(function (_ref, 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
|
+
ref: ref,
|
26
|
+
style: _objectSpread({
|
27
|
+
flex: 'none',
|
28
|
+
lineHeight: 1
|
29
|
+
}, style),
|
30
|
+
viewBox: "0 0 24 24",
|
31
|
+
width: size,
|
32
|
+
xmlns: "http://www.w3.org/2000/svg"
|
33
|
+
}, rest), {}, {
|
34
|
+
children: [/*#__PURE__*/_jsx("title", {
|
35
|
+
children: TITLE
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
37
|
+
d: "M5.53 23.3a5.53 5.53 0 100-11.06 5.53 5.53 0 000 11.06zM22.673.018C23.41.018 24 .608 24 1.346v10.802c0 6.156-4.977 11.17-11.06 11.244V12.166l-.037-10.839C12.903.59 13.493 0 14.23 0h8.59l-.147.018z"
|
38
|
+
})]
|
39
|
+
}));
|
40
|
+
});
|
41
|
+
export default Icon;
|
@@ -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 { forwardRef } 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 Text = /*#__PURE__*/forwardRef(function (_ref, 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
|
+
ref: ref,
|
26
|
+
style: _objectSpread({
|
27
|
+
flex: 'none',
|
28
|
+
lineHeight: 1
|
29
|
+
}, style),
|
30
|
+
viewBox: "0 0 56 24",
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
32
|
+
}, rest), {}, {
|
33
|
+
children: [/*#__PURE__*/_jsx("title", {
|
34
|
+
children: TITLE
|
35
|
+
}), /*#__PURE__*/_jsx("path", {
|
36
|
+
d: "M3.67936 23.9993C5.71141 23.9993 7.35872 22.352 7.35872 20.32C7.35872 18.2879 5.71141 16.6406 3.67936 16.6406C1.64731 16.6406 0 18.2879 0 20.32C0 22.352 1.64731 23.9993 3.67936 23.9993Z"
|
37
|
+
}), /*#__PURE__*/_jsx("path", {
|
38
|
+
d: "M15.2706 8.73059C15.7515 8.73059 16.1363 9.11536 16.1363 9.59632L16.0882 16.6424C16.0882 20.6584 12.8658 23.929 8.84973 24.0011H8.72949V16.6665H8.75354L8.77759 9.62037C8.77759 9.13941 9.16236 8.75464 9.64332 8.75464H15.2706V8.73059ZM26.5732 8.73059C27.0541 8.73059 27.4389 9.11536 27.4389 9.59632V19.456C27.4389 19.937 27.0541 20.3218 26.5732 20.3218H20.9459C20.465 20.3218 20.0802 19.937 20.0802 19.456V9.59632C20.0802 9.11536 20.465 8.73059 20.9459 8.73059H26.5732ZM35.4229 8.70654H35.5431C39.1503 8.75464 42.0842 11.6645 42.1804 15.2717V19.432C42.1804 19.913 41.7956 20.2977 41.3147 20.2977H32.2245C31.7435 20.2977 31.3588 19.913 31.3588 19.432V9.57228C31.3588 9.09131 31.7435 8.70654 32.2245 8.70654H35.4229ZM50.3086 20.2015C47.2786 20.0091 44.8497 17.4841 44.8497 14.4059C44.8497 11.2075 47.4469 8.61035 50.6453 8.61035C53.7235 8.61035 56.2485 11.0152 56.4409 14.0693V19.3358C56.4409 19.8168 56.0561 20.2015 55.5752 20.2015H50.3086Z"
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
40
|
+
d: "M23.7477 7.35872C25.7798 7.35872 27.4271 5.71141 27.4271 3.67936C27.4271 1.64731 25.7798 0 23.7477 0C21.7157 0 20.0684 1.64731 20.0684 3.67936C20.0684 5.71141 21.7157 7.35872 23.7477 7.35872Z"
|
41
|
+
})]
|
42
|
+
}));
|
43
|
+
});
|
44
|
+
export default Text;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import Avatar from './components/Avatar';
|
2
|
+
import Mono from './components/Mono';
|
3
|
+
import Text from './components/Text';
|
4
|
+
export type CompoundedIcon = typeof Mono & {
|
5
|
+
Avatar: typeof Avatar;
|
6
|
+
Text: typeof Text;
|
7
|
+
colorPrimary: string;
|
8
|
+
title: string;
|
9
|
+
};
|
10
|
+
declare const Icons: CompoundedIcon;
|
11
|
+
export default Icons;
|
package/es/Jina/index.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
import Avatar from "./components/Avatar";
|
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.Text = Text;
|
9
|
+
Icons.Avatar = Avatar;
|
10
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
11
|
+
Icons.title = TITLE;
|
12
|
+
export default Icons;
|
package/es/Jina/style.js
ADDED
@@ -0,0 +1,27 @@
|
|
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 = ["background"];
|
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 IconAvatar from "../../features/IconAvatar";
|
14
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
15
|
+
import Mono from "./Mono";
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
18
|
+
var background = _ref.background,
|
19
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
20
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
21
|
+
Icon: Mono,
|
22
|
+
"aria-label": TITLE,
|
23
|
+
background: background || COLOR_PRIMARY,
|
24
|
+
color: '#fff'
|
25
|
+
}, rest));
|
26
|
+
});
|
27
|
+
export default Avatar;
|
@@ -0,0 +1,42 @@
|
|
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 { forwardRef } 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__*/forwardRef(function (_ref, 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
|
+
ref: ref,
|
24
|
+
style: _objectSpread({
|
25
|
+
flex: 'none',
|
26
|
+
lineHeight: 1
|
27
|
+
}, style),
|
28
|
+
viewBox: "0 0 24 24",
|
29
|
+
width: size,
|
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: "M12.002 0C5.377 0 0 5.37 0 11.994c0 3.266 1.309 6.232 3.43 8.395v-8.383c0-2.288.893-4.447 2.51-6.063a8.513 8.513 0 016.066-2.509h.07l-.074.008c4.735 0 8.575 3.84 8.575 8.571 0 .413-.03.818-.087 1.219l-4.844-4.86A5.12 5.12 0 0012.01 6.87a5.126 5.126 0 00-3.637 1.503 5.107 5.107 0 00-1.507 3.641c0 1.376.536 2.666 1.507 3.64a5.12 5.12 0 003.637 1.504 5.126 5.126 0 003.637-1.503 5.114 5.114 0 001.496-3.348l2.842 2.853c-1.256 3.18-4.353 5.433-7.978 5.433-1.879 0-3.671-.6-5.145-1.714v3.967c1.56.742 3.3 1.155 5.137 1.155C18.623 24 24 18.63 24 12.006 24.008 5.373 18.635.004 12.006.004L12.002 0z",
|
37
|
+
fill: "#2874FF",
|
38
|
+
fillRule: "evenodd"
|
39
|
+
})]
|
40
|
+
}));
|
41
|
+
});
|
42
|
+
export default Icon;
|