@lobehub/icons 1.13.1 → 1.15.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 +3 -46
- package/es/Grok/components/Avatar.d.ts +5 -0
- package/es/Grok/components/Avatar.js +22 -0
- package/es/Grok/components/Combine.d.ts +5 -0
- package/es/Grok/components/Combine.js +27 -0
- package/es/Grok/components/Mono.d.ts +3 -0
- package/es/Grok/components/Mono.js +35 -0
- package/es/Grok/components/Text.d.ts +3 -0
- package/es/Grok/components/Text.js +35 -0
- package/es/Grok/index.d.ts +13 -0
- package/es/Grok/index.js +12 -0
- package/es/Grok/style.d.ts +4 -0
- package/es/Grok/style.js +4 -0
- package/es/IconAvatar/index.d.ts +1 -1
- package/es/IconAvatar/index.js +3 -2
- package/es/IconCombine/index.d.ts +4 -2
- package/es/IconCombine/index.js +11 -8
- package/es/Yi/components/Avatar.d.ts +5 -0
- package/es/Yi/components/Avatar.js +21 -0
- package/es/Yi/components/Color.d.ts +3 -0
- package/es/Yi/components/Color.js +43 -0
- package/es/Yi/components/Combine.d.ts +7 -0
- package/es/Yi/components/Combine.js +26 -0
- package/es/Yi/components/Mono.d.ts +3 -0
- package/es/Yi/components/Mono.js +42 -0
- package/es/Yi/components/Text.d.ts +1 -0
- package/es/Yi/components/Text.js +1 -0
- package/es/Yi/index.d.ts +15 -0
- package/es/Yi/index.js +14 -0
- package/es/Yi/style.d.ts +4 -0
- package/es/Yi/style.js +4 -0
- package/es/ZeroOne/components/Avatar.d.ts +5 -0
- package/es/ZeroOne/components/Avatar.js +21 -0
- package/es/ZeroOne/components/Color.d.ts +3 -0
- package/es/ZeroOne/components/Color.js +43 -0
- package/es/ZeroOne/components/Combine.d.ts +5 -0
- package/es/ZeroOne/components/Combine.js +24 -0
- package/es/ZeroOne/components/Mono.d.ts +3 -0
- package/es/ZeroOne/components/Mono.js +35 -0
- package/es/ZeroOne/components/Text.d.ts +3 -0
- package/es/ZeroOne/components/Text.js +35 -0
- package/es/ZeroOne/index.d.ts +13 -0
- package/es/ZeroOne/index.js +12 -0
- package/es/ZeroOne/style.d.ts +4 -0
- package/es/ZeroOne/style.js +4 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,52 +57,9 @@ Contributions, corrections & requests can be made on GitHub.
|
|
|
57
57
|
|
|
58
58
|
**Supported brands:**
|
|
59
59
|
|
|
60
|
-
<!-- ICON LIST -->
|
|
61
|
-
|
|
62
|
-
- [x] [
|
|
63
|
-
- [x] [Cloudflare (WorkersAI)](https://icons.lobehub.com/components/workers-ai)
|
|
64
|
-
- [x] [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
|
|
65
|
-
- [x] [Tongyi (通义)](https://icons.lobehub.com/components/tongyi)
|
|
66
|
-
- [x] [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
|
|
67
|
-
- [x] [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
|
|
68
|
-
- [x] [Replicate](https://icons.lobehub.com/components/replicate)
|
|
69
|
-
- [x] [Zhipu (智谱清言)](https://icons.lobehub.com/components/qingyan)
|
|
70
|
-
- [x] [Pollinations](https://icons.lobehub.com/components/pollinations)
|
|
71
|
-
- [x] [Perplexity](https://icons.lobehub.com/components/perplexity)
|
|
72
|
-
- [x] [OpenRouter](https://icons.lobehub.com/components/open-router)
|
|
73
|
-
- [x] [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
|
|
74
|
-
- [x] [Ollama](https://icons.lobehub.com/components/ollama)
|
|
75
|
-
- [x] [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
|
|
76
|
-
- [x] [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
|
|
77
|
-
- [x] [Mistral](https://icons.lobehub.com/components/mistral)
|
|
78
|
-
- [x] [Minimax](https://icons.lobehub.com/components/minimax)
|
|
79
|
-
- [x] [Midjourney](https://icons.lobehub.com/components/midjourney)
|
|
80
|
-
- [x] [Meta (Llama)](https://icons.lobehub.com/components/meta)
|
|
81
|
-
- [x] [LLaVA](https://icons.lobehub.com/components/l-la-va)
|
|
82
|
-
- [x] [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
|
|
83
|
-
- [x] [HuggingFace](https://icons.lobehub.com/components/hugging-face)
|
|
84
|
-
- [x] [Groq](https://icons.lobehub.com/components/groq)
|
|
85
|
-
- [x] [Google](https://icons.lobehub.com/components/google)
|
|
86
|
-
- [x] [Github (Copilot)](https://icons.lobehub.com/components/github-copilot)
|
|
87
|
-
- [x] [Github](https://icons.lobehub.com/components/github)
|
|
88
|
-
- [x] [Google (Gemma)](https://icons.lobehub.com/components/gemma)
|
|
89
|
-
- [x] [Google (Gemini)](https://icons.lobehub.com/components/gemini)
|
|
90
|
-
- [x] [Fireworks](https://icons.lobehub.com/components/fireworks)
|
|
91
|
-
- [x] [Google (DeepMind)](https://icons.lobehub.com/components/deep-mind)
|
|
92
|
-
- [x] [OpenAI (DALL·E)](https://icons.lobehub.com/components/dalle)
|
|
93
|
-
- [x] [Microsoft (Copilot)](https://icons.lobehub.com/components/copilot)
|
|
94
|
-
- [x] [Google (Colab)](https://icons.lobehub.com/components/colab)
|
|
95
|
-
- [x] [Cohere (Command)](https://icons.lobehub.com/components/cohere)
|
|
96
|
-
- [x] [Cloudflare](https://icons.lobehub.com/components/cloudflare)
|
|
97
|
-
- [x] [Anthropic (Claude)](https://icons.lobehub.com/components/claude)
|
|
98
|
-
- [x] [Zhipu (ChatGLM)](https://icons.lobehub.com/components/chat-glm)
|
|
99
|
-
- [x] [Microsoft (Bing)](https://icons.lobehub.com/components/bing)
|
|
100
|
-
- [x] [AWS (Bedrock)](https://icons.lobehub.com/components/bedrock)
|
|
101
|
-
- [x] [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
|
|
102
|
-
- [x] [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
|
|
103
|
-
- [x] [AWS](https://icons.lobehub.com/components/aws)
|
|
104
|
-
- [x] [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
|
|
105
|
-
- [x] [Anthropic](https://icons.lobehub.com/components/anthropic)
|
|
60
|
+
<!-- ICON LIST -->
|
|
61
|
+
|
|
62
|
+
- [x] [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)
|
|
106
63
|
|
|
107
64
|
<!-- ICON LIST -->
|
|
108
65
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["background"];
|
|
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
|
+
import { memo } from 'react';
|
|
7
|
+
import IconAvatar from "../../IconAvatar";
|
|
8
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
9
|
+
import Mono from "./Mono";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var background = _ref.background,
|
|
13
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
15
|
+
Icon: Mono,
|
|
16
|
+
"aria-label": TITLE,
|
|
17
|
+
background: background || COLOR_PRIMARY,
|
|
18
|
+
color: '#000',
|
|
19
|
+
iconMultiple: 0.65
|
|
20
|
+
}, rest));
|
|
21
|
+
});
|
|
22
|
+
export default Avatar;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
import { memo } from 'react';
|
|
6
|
+
import IconCombine from "../../IconCombine";
|
|
7
|
+
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
8
|
+
import Avatar from "./Avatar";
|
|
9
|
+
import Text from "./Text";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
13
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
14
|
+
Icon: Avatar,
|
|
15
|
+
Text: Text,
|
|
16
|
+
"aria-label": TITLE,
|
|
17
|
+
iconProps: {
|
|
18
|
+
shape: 'square',
|
|
19
|
+
style: {
|
|
20
|
+
borderRadius: 0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
24
|
+
textMultiple: TEXT_MULTIPLE
|
|
25
|
+
}, rest));
|
|
26
|
+
});
|
|
27
|
+
export default Combine;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1
|
|
23
|
+
}, style),
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
width: size,
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"
|
|
32
|
+
})]
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
export default Icon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1,
|
|
23
|
+
width: 'fit-content'
|
|
24
|
+
}, style),
|
|
25
|
+
viewBox: "0 0 59 24",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M15.57 21.352c-1.254.395-2.415.594-3.483.594-2.01 0-3.78-.419-5.31-1.255-1.53-.837-2.709-1.984-3.536-3.442C2.414 15.792 2 14.155 2 12.337c0-2.123.445-3.963 1.334-5.52.89-1.556 2.09-2.748 3.603-3.576C8.449 2.414 10.103 2 11.9 2c1.085 0 2.108.13 3.07.391.96.261 1.822.608 2.588 1.04l-.855 2.401c-.57-.323-1.285-.607-2.148-.85-.863-.243-1.641-.364-2.335-.364-1.494 0-2.815.306-3.963.918a6.401 6.401 0 00-2.655 2.618c-.623 1.133-.934 2.456-.934 3.967 0 1.404.31 2.655.934 3.752a6.42 6.42 0 002.642 2.55c1.138.603 2.437.905 3.896.905.676 0 1.334-.068 1.975-.203.64-.135 1.174-.328 1.601-.58v-3.86h-3.843v-2.51h6.458v7.881c-.538.43-1.356.828-2.455 1.196l-.306.1zm10.701-9.77a6.158 6.158 0 011.668-1.08c.587-.252 1.103-.387 1.548-.405l-.107 2.51c-.8-.036-1.526.126-2.175.486-.65.36-1.156.86-1.52 1.498a4.045 4.045 0 00-.548 2.038v5.101h-2.482V10.556h2.215l.187 2.645a4.9 4.9 0 011.023-1.44l.191-.18zm5.764 1.444a5.671 5.671 0 012.189-2.146c.934-.522 1.988-.783 3.162-.783s2.22.261 3.136.783a5.559 5.559 0 012.134 2.132c.507.9.761 1.908.761 3.023 0 1.116-.253 2.128-.76 3.037a5.506 5.506 0 01-2.149 2.145c-.925.522-1.984.783-3.176.783-1.191 0-2.197-.247-3.122-.742a5.433 5.433 0 01-2.175-2.092c-.525-.9-.787-1.943-.787-3.13 0-.998.217-1.918.65-2.76l.137-.25zm2.189 4.98a3.589 3.589 0 001.28 1.403 3.31 3.31 0 001.802.513c1.032 0 1.885-.369 2.562-1.107.676-.737 1.014-1.655 1.014-2.753 0-1.097-.338-2.02-1.014-2.766-.676-.747-1.53-1.12-2.562-1.12-.676 0-1.281.175-1.815.526-.533.35-.956.823-1.267 1.417a4.12 4.12 0 00-.467 1.943c0 .614.12 1.187.357 1.718l.11.225zm18.16-3.05l4.082-3.32-1.52-1.35-5.712 4.642V2h-2.481v19.73h2.481v-4.184l1.442-1.187 3.415 5.371H57l-4.617-6.775z"
|
|
32
|
+
})]
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
export default Icon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Avatar from './components/Avatar';
|
|
2
|
+
import Combine from './components/Combine';
|
|
3
|
+
import Mono from './components/Mono';
|
|
4
|
+
import Text from './components/Text';
|
|
5
|
+
export type CompoundedIcon = typeof Mono & {
|
|
6
|
+
Avatar: typeof Avatar;
|
|
7
|
+
Combine: typeof Combine;
|
|
8
|
+
Text: typeof Text;
|
|
9
|
+
colorPrimary: string;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Icons: CompoundedIcon;
|
|
13
|
+
export default Icons;
|
package/es/Grok/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Avatar from "./components/Avatar";
|
|
2
|
+
import Combine from "./components/Combine";
|
|
3
|
+
import Mono from "./components/Mono";
|
|
4
|
+
import Text from "./components/Text";
|
|
5
|
+
import { COLOR_PRIMARY, TITLE } from "./style";
|
|
6
|
+
var Icons = Mono;
|
|
7
|
+
Icons.Text = Text;
|
|
8
|
+
Icons.Combine = Combine;
|
|
9
|
+
Icons.Avatar = Avatar;
|
|
10
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
|
11
|
+
Icons.title = TITLE;
|
|
12
|
+
export default Icons;
|
package/es/Grok/style.js
ADDED
package/es/IconAvatar/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export interface IconAvatarProps extends Omit<FlexboxProps, 'children'> {
|
|
|
11
11
|
shape?: 'circle' | 'square';
|
|
12
12
|
size: number;
|
|
13
13
|
}
|
|
14
|
-
declare const IconAvatar: import("react").
|
|
14
|
+
declare const IconAvatar: import("react").ForwardRefExoticComponent<IconAvatarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export default IconAvatar;
|
package/es/IconAvatar/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import {
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
5
|
import { Flexbox } from 'react-layout-kit';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var IconAvatar = /*#__PURE__*/
|
|
7
|
+
var IconAvatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
8
|
var _ref$shape = _ref.shape,
|
|
9
9
|
shape = _ref$shape === void 0 ? 'circle' : _ref$shape,
|
|
10
10
|
_ref$color = _ref.color,
|
|
@@ -21,6 +21,7 @@ var IconAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
21
21
|
align: 'center',
|
|
22
22
|
flex: 'none',
|
|
23
23
|
justify: 'center',
|
|
24
|
+
ref: ref,
|
|
24
25
|
style: _objectSpread({
|
|
25
26
|
background: background,
|
|
26
27
|
borderRadius: shape === 'circle' ? '50%' : Math.floor(size * 0.1),
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { type FlexboxProps } from 'react-layout-kit';
|
|
3
|
+
import IconAvatar, { IconAvatarProps } from "../IconAvatar";
|
|
3
4
|
import { IconType } from "../types";
|
|
4
5
|
export interface IconCombineProps extends FlexboxProps {
|
|
5
|
-
Icon: IconType;
|
|
6
|
+
Icon: IconType | typeof IconAvatar;
|
|
6
7
|
Text?: IconType;
|
|
7
8
|
color?: string;
|
|
8
9
|
extra?: string;
|
|
9
10
|
extraClassName?: string;
|
|
10
11
|
extraStyle?: CSSProperties;
|
|
12
|
+
iconProps?: Partial<IconAvatarProps>;
|
|
11
13
|
showLogo?: boolean;
|
|
12
14
|
showText?: boolean;
|
|
13
15
|
size?: number;
|
|
14
16
|
spaceMultiple?: number;
|
|
15
17
|
textMultiple?: number;
|
|
16
18
|
}
|
|
17
|
-
declare const IconCombine: import("react").
|
|
19
|
+
declare const IconCombine: import("react").ForwardRefExoticComponent<IconCombineProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
20
|
export default IconCombine;
|
package/es/IconCombine/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["Icon", "style", "Text", "color", "size", "spaceMultiple", "textMultiple", "extra", "extraStyle", "showText", "showLogo", "extraClassName"];
|
|
3
|
+
var _excluded = ["Icon", "style", "Text", "color", "size", "spaceMultiple", "textMultiple", "extra", "extraStyle", "showText", "showLogo", "extraClassName", "iconProps"];
|
|
4
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
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
|
-
import {
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
7
|
import { Flexbox } from 'react-layout-kit';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var IconCombine = /*#__PURE__*/
|
|
10
|
+
var IconCombine = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
11
|
var Icon = _ref.Icon,
|
|
12
12
|
style = _ref.style,
|
|
13
13
|
Text = _ref.Text,
|
|
@@ -25,22 +25,25 @@ var IconCombine = /*#__PURE__*/memo(function (_ref) {
|
|
|
25
25
|
_ref$showLogo = _ref.showLogo,
|
|
26
26
|
showLogo = _ref$showLogo === void 0 ? true : _ref$showLogo,
|
|
27
27
|
extraClassName = _ref.extraClassName,
|
|
28
|
+
iconProps = _ref.iconProps,
|
|
28
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
30
|
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
30
31
|
align: 'center',
|
|
31
32
|
flex: 'none',
|
|
32
33
|
horizontal: true,
|
|
33
34
|
justify: 'flex-start',
|
|
35
|
+
ref: ref,
|
|
34
36
|
style: _objectSpread({
|
|
35
37
|
color: color
|
|
36
38
|
}, style)
|
|
37
39
|
}, rest), {}, {
|
|
38
|
-
children: [showLogo && /*#__PURE__*/_jsx(Icon, {
|
|
39
|
-
size: size
|
|
40
|
-
|
|
40
|
+
children: [showLogo && /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({
|
|
41
|
+
size: size
|
|
42
|
+
}, iconProps), {}, {
|
|
43
|
+
style: _objectSpread({
|
|
41
44
|
marginRight: size * spaceMultiple
|
|
42
|
-
}
|
|
43
|
-
}), showText && Text && /*#__PURE__*/_jsx(Text, {
|
|
45
|
+
}, iconProps === null || iconProps === void 0 ? void 0 : iconProps.style)
|
|
46
|
+
})), showText && Text && /*#__PURE__*/_jsx(Text, {
|
|
44
47
|
size: size * textMultiple
|
|
45
48
|
}), extra && /*#__PURE__*/_jsx("span", {
|
|
46
49
|
className: extraClassName,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["background"];
|
|
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
|
+
import { memo } from 'react';
|
|
7
|
+
import IconAvatar from "../../IconAvatar";
|
|
8
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
9
|
+
import Color from "./Color";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var background = _ref.background,
|
|
13
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
15
|
+
Icon: Color,
|
|
16
|
+
"aria-label": TITLE,
|
|
17
|
+
background: background || COLOR_PRIMARY,
|
|
18
|
+
color: '#fff'
|
|
19
|
+
}, rest));
|
|
20
|
+
});
|
|
21
|
+
export default Avatar;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1
|
|
23
|
+
}, style),
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
width: size,
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsxs("g", {
|
|
31
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
32
|
+
d: "M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128zM16.59 3.052a1.094 1.094 0 011.562-.129c.466.404.522 1.116.126 1.59l-5.938 7.111v9.147c0 .624-.496 1.129-1.108 1.129a1.118 1.118 0 01-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"
|
|
33
|
+
}), /*#__PURE__*/_jsx("ellipse", {
|
|
34
|
+
cx: "20.146",
|
|
35
|
+
cy: "10.692",
|
|
36
|
+
fill: "#00FF25",
|
|
37
|
+
rx: "1.354",
|
|
38
|
+
ry: "1.379"
|
|
39
|
+
})]
|
|
40
|
+
})]
|
|
41
|
+
}));
|
|
42
|
+
});
|
|
43
|
+
export default Icon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type IconCombineProps } from "../../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,26 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["type"];
|
|
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
|
+
import { memo } from 'react';
|
|
7
|
+
import IconCombine from "../../IconCombine";
|
|
8
|
+
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
9
|
+
import Color from "./Color";
|
|
10
|
+
import Mono from "./Mono";
|
|
11
|
+
import Text from "./Text";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
14
|
+
var _ref$type = _ref.type,
|
|
15
|
+
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
16
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
var Icon = type === 'color' ? Color : Mono;
|
|
18
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
19
|
+
Icon: Icon,
|
|
20
|
+
Text: Text,
|
|
21
|
+
"aria-label": TITLE,
|
|
22
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
23
|
+
textMultiple: TEXT_MULTIPLE
|
|
24
|
+
}, rest));
|
|
25
|
+
});
|
|
26
|
+
export default Combine;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1
|
|
23
|
+
}, style),
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
width: size,
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsxs("g", {
|
|
31
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
32
|
+
d: "M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128zM16.59 3.052a1.094 1.094 0 011.562-.129c.466.404.522 1.116.126 1.59l-5.938 7.111v9.147c0 .624-.496 1.129-1.108 1.129a1.118 1.118 0 01-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"
|
|
33
|
+
}), /*#__PURE__*/_jsx("ellipse", {
|
|
34
|
+
cx: "20.146",
|
|
35
|
+
cy: "10.692",
|
|
36
|
+
rx: "1.354",
|
|
37
|
+
ry: "1.379"
|
|
38
|
+
})]
|
|
39
|
+
})]
|
|
40
|
+
}));
|
|
41
|
+
});
|
|
42
|
+
export default Icon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "../../ZeroOne/components/Text";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "../../ZeroOne/components/Text";
|
package/es/Yi/index.d.ts
ADDED
|
@@ -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;
|
package/es/Yi/index.js
ADDED
|
@@ -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;
|
package/es/Yi/style.d.ts
ADDED
package/es/Yi/style.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["background"];
|
|
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
|
+
import { memo } from 'react';
|
|
7
|
+
import IconAvatar from "../../IconAvatar";
|
|
8
|
+
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
9
|
+
import Mono from "./Mono";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var background = _ref.background,
|
|
13
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
15
|
+
Icon: Mono,
|
|
16
|
+
"aria-label": TITLE,
|
|
17
|
+
background: background || COLOR_PRIMARY,
|
|
18
|
+
color: '#fff'
|
|
19
|
+
}, rest));
|
|
20
|
+
});
|
|
21
|
+
export default Avatar;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1
|
|
23
|
+
}, style),
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
width: size,
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsxs("g", {
|
|
31
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
32
|
+
d: "M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128zM16.59 3.052a1.094 1.094 0 011.562-.129c.466.404.522 1.116.126 1.59l-5.938 7.111v9.147c0 .624-.496 1.129-1.108 1.129a1.118 1.118 0 01-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"
|
|
33
|
+
}), /*#__PURE__*/_jsx("ellipse", {
|
|
34
|
+
cx: "20.146",
|
|
35
|
+
cy: "10.692",
|
|
36
|
+
fill: "#00FF25",
|
|
37
|
+
rx: "1.354",
|
|
38
|
+
ry: "1.379"
|
|
39
|
+
})]
|
|
40
|
+
})]
|
|
41
|
+
}));
|
|
42
|
+
});
|
|
43
|
+
export default Icon;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
import { memo } from 'react';
|
|
6
|
+
import IconCombine from "../../IconCombine";
|
|
7
|
+
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
8
|
+
import Avatar from "./Avatar";
|
|
9
|
+
import Text from "./Text";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
13
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
14
|
+
Icon: Avatar,
|
|
15
|
+
Text: Text,
|
|
16
|
+
"aria-label": TITLE,
|
|
17
|
+
iconProps: {
|
|
18
|
+
shape: 'square'
|
|
19
|
+
},
|
|
20
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
21
|
+
textMultiple: TEXT_MULTIPLE
|
|
22
|
+
}, rest));
|
|
23
|
+
});
|
|
24
|
+
export default Combine;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1
|
|
23
|
+
}, style),
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
width: size,
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M5.246 12c0 .837-.086 1.554-.257 2.151-.172.598-.45 1.055-.837 1.373-.386.317-.898.476-1.534.476-.901 0-1.563-.353-1.985-1.059C.211 14.235 0 13.255 0 12c0-.837.086-1.554.257-2.151.172-.598.45-1.055.832-1.373C1.472 8.16 1.981 8 2.618 8c.894 0 1.555.351 1.985 1.053.429.702.643 1.685.643 2.947zm-3.883 0c0 .956.09 1.668.273 2.134.183.467.51.7.982.7.465 0 .792-.23.981-.694.19-.463.285-1.176.285-2.14 0-.956-.095-1.668-.285-2.134-.19-.467-.516-.7-.981-.7-.472 0-.8.233-.982.7-.182.466-.273 1.178-.273 2.134zm8.52 3.771H8.517l.011-6.295-1.823.324V8.571l2.04-.457h1.136v7.657zm2.497-1.6h.543c.3 0 .543.256.543.572v.571a.558.558 0 01-.543.572h-.543a.558.558 0 01-.543-.572v-.571c0-.316.243-.572.543-.572zm10.317-6.057H24v7.772h-1.303V8.114zm-3.692 0l2.606 7.772h-1.303l-.69-2.058h-3.073l-.69 2.058h-1.303l2.606-7.772h1.847zm.191 4.457l-1.115-3.323-1.114 3.323h2.23z"
|
|
32
|
+
})]
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
export default Icon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size", "style"];
|
|
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
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { TITLE } from "../style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var _ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
height: size,
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: _objectSpread({
|
|
21
|
+
flex: 'none',
|
|
22
|
+
lineHeight: 1,
|
|
23
|
+
width: 'fit-content'
|
|
24
|
+
}, style),
|
|
25
|
+
viewBox: "0 0 88 24",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
+
}, rest), {}, {
|
|
28
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
29
|
+
children: TITLE
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M45.502 4.144h4.81l.014.448c.036 2.124-.12 11.282-5.306 15.896l1.409 1.4.186-.12.162-.115c1.146-.85 4.78-4.157 5.792-12.516h7.455l-.01 2.091-.024 1.855c-.03 1.85-.089 3.83-.199 4.663-.245 1.81-2.07 1.78-2.32 1.768l-2.473-.163.449 1.992c1.098.137 2.206.185 3.312.144 3.76-.086 3.72-4.137 3.72-4.137l.212-9.72h-9.975c.085-1.086.125-2.245.115-3.486h11.047V2.71H45.502v1.434zm-2.079 6.658H25.047v1.435h18.376v-1.435zM21.107 2v1.435h-7.501v.714h8.397l.022.227.014.206c.05.861.057 2.86-.713 4.752l-1.79-.323c.168-1.136.23-2.285.188-3.432h-6.118v3.634h-2.394V5.579H5.435a10.913 10.913 0 01-1.453 3.523L2.29 8.427c.5-1.383.833-2.82.993-4.283h7.929v-.71H3.71V2h17.396zM10.442 8.23v.983H5.753v-.984h4.689zm8.493 0v.983h-4.689v-.984h4.69zm-8.493-1.661v.983H5.753V6.57h4.689zm8.493 0v.983h-4.689V6.57h4.69zm-5.65 5.992l.185 1.654h4.08v1.44l-.087.17c-.28.516-1.294 2.13-3.772 3.856.385.332.752.685 1.1 1.056l-1.042 1.056a47.585 47.585 0 00-6-3.915l1.094-1.753.444.289a52.17 52.17 0 012.94 2.087 13.41 13.41 0 002.617-2.844H6.948V14.22h4.62l-.62-1.452 2.337-.207zm1.208-2.523c2.114 1.518 4.955 2.766 8.453 2.27l-.073 1.38-.156.042c-.859.213-5.163 1.043-9.935-2.21h-.617c-5.34 3.639-10.091 2.168-10.091 2.168L2 12.308c3.498.496 6.336-.752 8.454-2.27h4.039zm57.552-8.005v4.985h2.5v1.44h-2.5v3.708a20.898 20.898 0 012.385-1.056l.738 1.497-.942.544c-.557.327-1.32.785-2.18 1.325V22h-2.392v-5.955a46.133 46.133 0 00-2.19 1.598l-1.485-2.019 1.356-.824.51-.302c.54-.318 1.16-.677 1.813-1.043V8.453H68.52l-.11.648c-.189 1.073-.412 2.094-.665 2.84l-1.697-.348.093-.561c.201-1.27.658-4.485.658-7.502l2.329.063-.124 1.216-.098.859c-.05.416-.108.873-.173 1.35h.921V2.033h2.391zm3.422 0l2.334.065-.11 1.056-.094.795c-.037.29-.079.603-.125.93L86 4.878l-.215 12.684-.01.184c-.075.925-.557 3.78-3.707 3.851a20.348 20.348 0 01-2.743-.21l-.422-1.961 1.889.2h.152l.149-.007c.605-.046 1.806-.319 2.002-1.763l.022-.198.025-.31c.073-1.036.117-2.963.144-4.918l.034-3.794.007-2.278h-.682c-.69 10.837-5.617 14.292-6.25 14.693l-.067.04-.913-.963c4.115-3.658 5.065-10.17 5.264-13.77h-.692c-1.052 10.532-6.213 13.45-6.213 13.45l-.914-.964c3.66-3.255 4.814-8.774 5.164-12.486h-.79a20.988 20.988 0 01-.696 2.904l-1.696-.351c.417-2.269.626-4.571.625-6.878z"
|
|
32
|
+
})]
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
export default Icon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Avatar from './components/Avatar';
|
|
2
|
+
import Combine from './components/Combine';
|
|
3
|
+
import Mono from './components/Mono';
|
|
4
|
+
import Text from './components/Text';
|
|
5
|
+
export type CompoundedIcon = typeof Mono & {
|
|
6
|
+
Avatar: typeof Avatar;
|
|
7
|
+
Combine: typeof Combine;
|
|
8
|
+
Text: typeof Text;
|
|
9
|
+
colorPrimary: string;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Icons: CompoundedIcon;
|
|
13
|
+
export default Icons;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Avatar from "./components/Avatar";
|
|
2
|
+
import Combine from "./components/Combine";
|
|
3
|
+
import Mono from "./components/Mono";
|
|
4
|
+
import Text from "./components/Text";
|
|
5
|
+
import { COLOR_PRIMARY, TITLE } from "./style";
|
|
6
|
+
var Icons = Mono;
|
|
7
|
+
Icons.Text = Text;
|
|
8
|
+
Icons.Combine = Combine;
|
|
9
|
+
Icons.Avatar = Avatar;
|
|
10
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
|
11
|
+
Icons.title = TITLE;
|
|
12
|
+
export default Icons;
|
package/es/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { default as Gemma, type CompoundedIcon as GemmaProps } from './Gemma';
|
|
|
19
19
|
export { default as Github, type CompoundedIcon as GithubProps } from './Github';
|
|
20
20
|
export { default as GithubCopilot, type CompoundedIcon as GithubCopilotProps, } from './GithubCopilot';
|
|
21
21
|
export { default as Google, type CompoundedIcon as GoogleProps } from './Google';
|
|
22
|
+
export { default as Grok, type CompoundedIcon as GrokProps } from './Grok';
|
|
22
23
|
export { default as Groq, type CompoundedIcon as GroqProps } from './Groq';
|
|
23
24
|
export { default as HuggingFace, type CompoundedIcon as HuggingFaceProps } from './HuggingFace';
|
|
24
25
|
export { default as Hunyuan, type CompoundedIcon as HunyuanProps } from './Hunyuan';
|
|
@@ -44,4 +45,6 @@ export { default as Tongyi, type CompoundedIcon as TongyiProps } from './Tongyi'
|
|
|
44
45
|
export type { IconType } from './types';
|
|
45
46
|
export { default as Wenxin, type CompoundedIcon as WenxinProps } from './Wenxin';
|
|
46
47
|
export { default as WorkersAI, type CompoundedIcon as WorkersAIProps } from './WorkersAI';
|
|
48
|
+
export { default as Yi, type CompoundedIcon as YiProps } from './Yi';
|
|
49
|
+
export { default as ZeroOne, type CompoundedIcon as ZeroOneProps } from './ZeroOne';
|
|
47
50
|
export { default as Zhipu, type CompoundedIcon as ZhipuProps } from './Zhipu';
|
package/es/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export { default as Gemma } from "./Gemma";
|
|
|
19
19
|
export { default as Github } from "./Github";
|
|
20
20
|
export { default as GithubCopilot } from "./GithubCopilot";
|
|
21
21
|
export { default as Google } from "./Google";
|
|
22
|
+
export { default as Grok } from "./Grok";
|
|
22
23
|
export { default as Groq } from "./Groq";
|
|
23
24
|
export { default as HuggingFace } from "./HuggingFace";
|
|
24
25
|
export { default as Hunyuan } from "./Hunyuan";
|
|
@@ -43,4 +44,6 @@ export { default as Stability } from "./Stability";
|
|
|
43
44
|
export { default as Tongyi } from "./Tongyi";
|
|
44
45
|
export { default as Wenxin } from "./Wenxin";
|
|
45
46
|
export { default as WorkersAI } from "./WorkersAI";
|
|
47
|
+
export { default as Yi } from "./Yi";
|
|
48
|
+
export { default as ZeroOne } from "./ZeroOne";
|
|
46
49
|
export { default as Zhipu } from "./Zhipu";
|