@lobehub/icons 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Anthropic/components/Avatar.d.ts +5 -0
- package/es/Anthropic/components/Avatar.js +20 -0
- package/es/Anthropic/components/Mono.d.ts +3 -0
- package/es/Anthropic/components/Mono.js +31 -0
- package/es/Anthropic/components/Text.d.ts +3 -0
- package/es/Anthropic/components/Text.js +31 -0
- package/es/Anthropic/index.d.ts +11 -0
- package/es/Anthropic/index.js +9 -0
- package/es/Anthropic/style.d.ts +3 -0
- package/es/Anthropic/style.js +3 -0
- package/es/ChatGLM/components/Avatar.d.ts +5 -0
- package/es/ChatGLM/components/Avatar.js +26 -0
- package/es/ChatGLM/components/Color.d.ts +3 -0
- package/es/ChatGLM/components/Color.js +51 -0
- package/es/ChatGLM/components/Combine.d.ts +7 -0
- package/es/ChatGLM/components/Combine.js +25 -0
- package/es/ChatGLM/components/Mono.d.ts +3 -0
- package/es/ChatGLM/components/Mono.js +31 -0
- package/es/ChatGLM/components/Text.d.ts +3 -0
- package/es/ChatGLM/components/Text.js +31 -0
- package/es/ChatGLM/index.d.ts +16 -0
- package/es/ChatGLM/index.js +14 -0
- package/es/ChatGLM/style.d.ts +4 -0
- package/es/ChatGLM/style.js +4 -0
- package/es/Dalle/components/Combine.d.ts +5 -0
- package/es/Dalle/components/Combine.js +29 -0
- package/es/Dalle/components/Mono.d.ts +3 -0
- package/es/Dalle/components/Mono.js +31 -0
- package/es/Dalle/components/Text.d.ts +3 -0
- package/es/Dalle/components/Text.js +31 -0
- package/es/Dalle/index.d.ts +10 -0
- package/es/Dalle/index.js +9 -0
- package/es/Dalle/style.d.ts +3 -0
- package/es/Dalle/style.js +3 -0
- package/es/Gemini/components/Avatar.d.ts +5 -0
- package/es/Gemini/components/Avatar.js +20 -0
- package/es/Gemini/components/BrandColor.d.ts +3 -0
- package/es/Gemini/components/BrandColor.js +53 -0
- package/es/Gemini/components/BrandMono.d.ts +3 -0
- package/es/Gemini/components/BrandMono.js +31 -0
- package/es/Gemini/components/Color.d.ts +3 -0
- package/es/Gemini/components/Color.js +54 -0
- package/es/Gemini/components/Combine.d.ts +7 -0
- package/es/Gemini/components/Combine.js +25 -0
- package/es/Gemini/components/Mono.d.ts +3 -0
- package/es/Gemini/components/Mono.js +31 -0
- package/es/Gemini/components/Text.d.ts +3 -0
- package/es/Gemini/components/Text.js +31 -0
- package/es/Gemini/index.d.ts +20 -0
- package/es/Gemini/index.js +18 -0
- package/es/Gemini/style.d.ts +4 -0
- package/es/Gemini/style.js +4 -0
- package/es/IconAvatar/index.d.ts +15 -0
- package/es/IconAvatar/index.js +38 -0
- package/es/IconCombine/index.d.ts +17 -0
- package/es/IconCombine/index.js +49 -0
- package/es/OpenAI/components/Avatar.d.ts +7 -0
- package/es/OpenAI/components/Avatar.js +38 -0
- package/es/OpenAI/components/Combine.d.ts +5 -0
- package/es/OpenAI/components/Combine.js +25 -0
- package/es/OpenAI/components/Mono.d.ts +3 -0
- package/es/OpenAI/components/Mono.js +31 -0
- package/es/OpenAI/components/Text.d.ts +3 -0
- package/es/OpenAI/components/Text.js +31 -0
- package/es/OpenAI/index.d.ts +15 -0
- package/es/OpenAI/index.js +13 -0
- package/es/OpenAI/style.d.ts +5 -0
- package/es/OpenAI/style.js +5 -0
- package/es/Tongyi/components/Avatar.d.ts +5 -0
- package/es/Tongyi/components/Avatar.js +19 -0
- package/es/Tongyi/components/Color.d.ts +3 -0
- package/es/Tongyi/components/Color.js +53 -0
- package/es/Tongyi/components/Combine.d.ts +7 -0
- package/es/Tongyi/components/Combine.js +29 -0
- package/es/Tongyi/components/Mono.d.ts +3 -0
- package/es/Tongyi/components/Mono.js +31 -0
- package/es/Tongyi/components/Text.d.ts +3 -0
- package/es/Tongyi/components/Text.js +31 -0
- package/es/Tongyi/index.d.ts +16 -0
- package/es/Tongyi/index.js +14 -0
- package/es/Tongyi/style.d.ts +4 -0
- package/es/Tongyi/style.js +4 -0
- package/es/Wenxin/components/Avatar.d.ts +5 -0
- package/es/Wenxin/components/Avatar.js +19 -0
- package/es/Wenxin/components/Color.d.ts +3 -0
- package/es/Wenxin/components/Color.js +57 -0
- package/es/Wenxin/components/Combine.d.ts +7 -0
- package/es/Wenxin/components/Combine.js +25 -0
- package/es/Wenxin/components/Mono.d.ts +3 -0
- package/es/Wenxin/components/Mono.js +31 -0
- package/es/Wenxin/components/Text.d.ts +3 -0
- package/es/Wenxin/components/Text.js +31 -0
- package/es/Wenxin/index.d.ts +16 -0
- package/es/Wenxin/index.js +14 -0
- package/es/Wenxin/style.d.ts +4 -0
- package/es/Wenxin/style.js +4 -0
- package/es/Zhipu/components/Avatar.d.ts +2 -1
- package/es/Zhipu/components/Avatar.js +6 -15
- package/es/Zhipu/components/Combine.d.ts +2 -3
- package/es/Zhipu/components/Combine.js +9 -18
- package/es/Zhipu/components/Text.js +2 -1
- package/es/Zhipu/index.d.ts +15 -6
- package/es/Zhipu/index.js +13 -6
- package/es/components/ColorPreview/index.js +40 -0
- package/es/{Editor/Preview.d.ts → components/Editor/Color.d.ts} +1 -2
- package/es/components/Editor/Color.js +47 -0
- package/es/components/Editor/Mono.d.ts +8 -0
- package/es/components/Editor/Mono.js +47 -0
- package/es/components/Editor/Preview.d.ts +8 -0
- package/es/components/Editor/Preview.js +57 -0
- package/es/components/Editor/index.js +122 -0
- package/es/components/Editor/useSvgo.d.ts +6 -0
- package/es/components/Editor/useSvgo.js +51 -0
- package/es/components/IconPreview/ColorPreview.d.ts +6 -0
- package/es/{IconPreview → components/IconPreview}/ColorPreview.js +1 -2
- package/es/hooks/useFillId.d.ts +4 -0
- package/es/hooks/useFillId.js +7 -0
- package/es/index.d.ts +11 -4
- package/es/index.js +10 -5
- package/package.json +7 -9
- package/es/Editor/Preview.js +0 -93
- package/es/Editor/index.js +0 -67
- package/es/IconShowcase/index.d.ts +0 -11
- package/es/IconShowcase/index.js +0 -91
- /package/es/{IconPreview/ColorPreview.d.ts → components/ColorPreview/index.d.ts} +0 -0
- /package/es/{Editor → components/Editor}/data.d.ts +0 -0
- /package/es/{Editor → components/Editor}/data.js +0 -0
- /package/es/{Editor → components/Editor}/index.d.ts +0 -0
- /package/es/{Editor → components/Editor}/svgo.d.ts +0 -0
- /package/es/{Editor → components/Editor}/svgo.js +0 -0
- /package/es/{IconPreview → components/IconPreview}/index.d.ts +0 -0
- /package/es/{IconPreview → components/IconPreview}/index.js +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
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 { useFillId } from "../../hooks/useFillId";
|
|
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
|
+
var _useFillId = useFillId('gemini-brand'),
|
|
16
|
+
id = _useFillId.id,
|
|
17
|
+
fill = _useFillId.fill;
|
|
18
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
19
|
+
height: size,
|
|
20
|
+
ref: ref,
|
|
21
|
+
style: _objectSpread({
|
|
22
|
+
flex: 'none',
|
|
23
|
+
lineHeight: 1,
|
|
24
|
+
width: 'fit-content'
|
|
25
|
+
}, style),
|
|
26
|
+
viewBox: "0 0 64 24",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
28
|
+
}, rest), {}, {
|
|
29
|
+
children: [/*#__PURE__*/_jsx("defs", {
|
|
30
|
+
children: /*#__PURE__*/_jsxs("radialGradient", {
|
|
31
|
+
cx: "67.977%",
|
|
32
|
+
cy: "18.976%",
|
|
33
|
+
fx: "67.977%",
|
|
34
|
+
fy: "18.976%",
|
|
35
|
+
gradientTransform: "scale(-.3667 -1) rotate(-20.122 -1.657 7.14)",
|
|
36
|
+
id: id,
|
|
37
|
+
r: "192.358%",
|
|
38
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
39
|
+
offset: "0%",
|
|
40
|
+
stopColor: "#1C69FF"
|
|
41
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
42
|
+
offset: "100%",
|
|
43
|
+
stopColor: "#94BCFE"
|
|
44
|
+
})]
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
+
d: "M16.759 14.825c0 2.037-.605 3.66-1.815 4.868-1.359 1.439-3.146 2.158-5.36 2.158-2.12 0-3.915-.733-5.383-2.2C2.734 18.187 2 16.38 2 14.236c0-2.145.734-3.95 2.201-5.417C5.67 7.352 7.463 6.62 9.583 6.62c1.074 0 2.086.19 3.037.57.952.38 1.733.917 2.345 1.609l-1.346 1.344c-.448-.543-1.03-.967-1.743-1.273a5.763 5.763 0 00-2.293-.458c-1.59 0-2.935.55-4.036 1.65-1.087 1.113-1.63 2.504-1.63 4.174 0 1.67.543 3.061 1.63 4.175 1.1 1.1 2.446 1.65 4.036 1.65 1.454 0 2.664-.408 3.629-1.223.964-.814 1.522-1.934 1.671-3.36h-5.3v-1.751h7.074c.068.38.102.747.102 1.1m5.886-3.563c1.496 0 2.687.483 3.572 1.45.886.967 1.329 2.32 1.329 4.062l-.021.206h-7.928c.028.987.357 1.783.989 2.386a3.164 3.164 0 002.265.905c1.208 0 2.155-.603 2.841-1.81l1.689.823a5.03 5.03 0 01-1.884 1.995c-.803.48-1.713.72-2.729.72-1.482 0-2.704-.507-3.665-1.522-.96-1.015-1.441-2.297-1.441-3.847 0-1.536.467-2.814 1.4-3.836.934-1.022 2.128-1.532 3.583-1.532m-.041 1.727c-.714 0-1.328.22-1.843.659-.515.438-.855 1.028-1.02 1.769h5.787a2.508 2.508 0 00-.855-1.738c-.515-.46-1.204-.69-2.07-.69m8.049 8.65h-1.89V11.59h1.807v1.395h.083c.287-.492.728-.902 1.324-1.23.595-.328 1.187-.492 1.775-.492.74 0 1.39.17 1.95.512.562.342.972.814 1.232 1.415.835-1.285 1.991-1.927 3.47-1.927 1.163 0 2.06.355 2.689 1.066.63.71.944 1.723.944 3.035v6.275h-1.889v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.334.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557h-1.888v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.335.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557zM46.749 6.767c.37 0 .685.13.946.39.26.26.39.575.39.945s-.13.685-.39.945c-.26.26-.576.39-.946.39s-.685-.13-.946-.39c-.26-.26-.39-.575-.39-.945s.13-.685.39-.945c.26-.26.576-.39.946-.39zM42.825 0a5.08 5.08 0 004.263 4.259 5.08 5.08 0 00-4.263 4.259 5.08 5.08 0 00-4.263-4.26A5.08 5.08 0 0042.825 0zm5.176 11.574V21.64h-2.198V11.574h2.198zM62 8.103c0 .37-.13.685-.39.945-.261.26-.576.39-.946.39s-.686-.13-.946-.39c-.26-.26-.391-.575-.391-.945s.13-.685.39-.945c.261-.26.576-.39.946-.39s.686.13.946.39c.26.26.391.575.391.945m-.085 3.471V21.64h-2.197V11.574h2.197zm-12.57.017h1.806v1.394h.082c.287-.492.729-.902 1.324-1.23a3.797 3.797 0 011.858-.492c1.231 0 2.179.352 2.843 1.056.664.704.995 1.705.995 3.004v6.316h-1.888v-6.193c-.041-1.64-.87-2.46-2.484-2.46-.753 0-1.382.303-1.889.912-.506.608-.76 1.336-.76 2.184v5.557h-1.888V11.591z",
|
|
48
|
+
fill: fill,
|
|
49
|
+
fillRule: "nonzero"
|
|
50
|
+
})]
|
|
51
|
+
}));
|
|
52
|
+
});
|
|
53
|
+
export default Icon;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var _ref$size = _ref.size,
|
|
10
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
height: size,
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
flex: 'none',
|
|
20
|
+
lineHeight: 1,
|
|
21
|
+
width: 'fit-content'
|
|
22
|
+
}, style),
|
|
23
|
+
viewBox: "0 0 64 24",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25
|
+
}, rest), {}, {
|
|
26
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M16.759 14.825c0 2.037-.605 3.66-1.815 4.868-1.359 1.439-3.146 2.158-5.36 2.158-2.12 0-3.915-.733-5.383-2.2C2.734 18.187 2 16.38 2 14.236c0-2.145.734-3.95 2.201-5.417C5.67 7.352 7.463 6.62 9.583 6.62c1.074 0 2.086.19 3.037.57.952.38 1.733.917 2.345 1.609l-1.346 1.344c-.448-.543-1.03-.967-1.743-1.273a5.763 5.763 0 00-2.293-.458c-1.59 0-2.935.55-4.036 1.65-1.087 1.113-1.63 2.504-1.63 4.174 0 1.67.543 3.061 1.63 4.175 1.1 1.1 2.446 1.65 4.036 1.65 1.454 0 2.664-.408 3.629-1.223.964-.814 1.522-1.934 1.671-3.36h-5.3v-1.751h7.074c.068.38.102.747.102 1.1m5.886-3.563c1.496 0 2.687.483 3.572 1.45.886.967 1.329 2.32 1.329 4.062l-.021.206h-7.928c.028.987.357 1.783.989 2.386a3.164 3.164 0 002.265.905c1.208 0 2.155-.603 2.841-1.81l1.689.823a5.03 5.03 0 01-1.884 1.995c-.803.48-1.713.72-2.729.72-1.482 0-2.704-.507-3.665-1.522-.96-1.015-1.441-2.297-1.441-3.847 0-1.536.467-2.814 1.4-3.836.934-1.022 2.128-1.532 3.583-1.532m-.041 1.727c-.714 0-1.328.22-1.843.659-.515.438-.855 1.028-1.02 1.769h5.787a2.508 2.508 0 00-.855-1.738c-.515-.46-1.204-.69-2.07-.69m8.049 8.65h-1.89V11.59h1.807v1.395h.083c.287-.492.728-.902 1.324-1.23.595-.328 1.187-.492 1.775-.492.74 0 1.39.17 1.95.512.562.342.972.814 1.232 1.415.835-1.285 1.991-1.927 3.47-1.927 1.163 0 2.06.355 2.689 1.066.63.71.944 1.723.944 3.035v6.275h-1.889v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.334.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557h-1.888v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.335.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557zM46.749 6.767c.37 0 .685.13.946.39.26.26.39.575.39.945s-.13.685-.39.945c-.26.26-.576.39-.946.39s-.685-.13-.946-.39c-.26-.26-.39-.575-.39-.945s.13-.685.39-.945c.26-.26.576-.39.946-.39zM42.825 0a5.08 5.08 0 004.263 4.259 5.08 5.08 0 00-4.263 4.259 5.08 5.08 0 00-4.263-4.26A5.08 5.08 0 0042.825 0zm5.176 11.574V21.64h-2.198V11.574h2.198zM62 8.103c0 .37-.13.685-.39.945-.261.26-.576.39-.946.39s-.686-.13-.946-.39c-.26-.26-.391-.575-.391-.945s.13-.685.39-.945c.261-.26.576-.39.946-.39s.686.13.946.39c.26.26.391.575.391.945m-.085 3.471V21.64h-2.197V11.574h2.197zm-12.57.017h1.806v1.394h.082c.287-.492.729-.902 1.324-1.23a3.797 3.797 0 011.858-.492c1.231 0 2.179.352 2.843 1.056.664.704.995 1.705.995 3.004v6.316h-1.888v-6.193c-.041-1.64-.87-2.46-2.484-2.46-.753 0-1.382.303-1.889.912-.506.608-.76 1.336-.76 2.184v5.557h-1.888V11.591z"
|
|
28
|
+
})
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
export default Icon;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { useFillId } from "../../hooks/useFillId";
|
|
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
|
+
var _useFillId = useFillId('gemini'),
|
|
16
|
+
id = _useFillId.id,
|
|
17
|
+
fill = _useFillId.fill;
|
|
18
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
19
|
+
height: size,
|
|
20
|
+
ref: ref,
|
|
21
|
+
style: _objectSpread({
|
|
22
|
+
flex: 'none',
|
|
23
|
+
lineHeight: 1
|
|
24
|
+
}, style),
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
width: size,
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
28
|
+
}, rest), {}, {
|
|
29
|
+
children: [/*#__PURE__*/_jsx("defs", {
|
|
30
|
+
children: /*#__PURE__*/_jsxs("linearGradient", {
|
|
31
|
+
id: id,
|
|
32
|
+
x1: "0%",
|
|
33
|
+
x2: "68.73%",
|
|
34
|
+
y1: "100%",
|
|
35
|
+
y2: "30.395%",
|
|
36
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
37
|
+
offset: "0%",
|
|
38
|
+
stopColor: "#1C7DFF"
|
|
39
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
40
|
+
offset: "52.021%",
|
|
41
|
+
stopColor: "#1C69FF"
|
|
42
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
43
|
+
offset: "100%",
|
|
44
|
+
stopColor: "#F0DCD6"
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
48
|
+
d: "M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12",
|
|
49
|
+
fill: fill,
|
|
50
|
+
fillRule: "nonzero"
|
|
51
|
+
})]
|
|
52
|
+
}));
|
|
53
|
+
});
|
|
54
|
+
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,25 @@
|
|
|
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 } 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
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
22
|
+
textMultiple: TEXT_MULTIPLE
|
|
23
|
+
}, rest));
|
|
24
|
+
});
|
|
25
|
+
export default Combine;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var _ref$size = _ref.size,
|
|
10
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
height: size,
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
flex: 'none',
|
|
20
|
+
lineHeight: 1
|
|
21
|
+
}, style),
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
width: size,
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25
|
+
}, rest), {}, {
|
|
26
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12"
|
|
28
|
+
})
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
export default Icon;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var _ref$size = _ref.size,
|
|
10
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
height: size,
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
flex: 'none',
|
|
20
|
+
lineHeight: 1,
|
|
21
|
+
width: 'fit-content'
|
|
22
|
+
}, style),
|
|
23
|
+
viewBox: "0 0 98 24",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25
|
+
}, rest), {}, {
|
|
26
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M21.186 12.67c0 2.649-.786 4.759-2.359 6.33-1.766 1.87-4.09 2.806-6.969 2.806-2.756 0-5.088-.953-6.996-2.86C2.954 17.04 2 14.693 2 11.904c0-2.789.954-5.137 2.862-7.043C6.77 2.953 9.102 2 11.858 2c1.396 0 2.712.247 3.949.741 1.236.495 2.252 1.192 3.047 2.092l-1.749 1.748c-.583-.706-1.338-1.258-2.266-1.655a7.49 7.49 0 00-2.981-.596c-2.067 0-3.816.715-5.247 2.145-1.413 1.448-2.12 3.257-2.12 5.428s.707 3.98 2.12 5.428c1.431 1.43 3.18 2.145 5.247 2.145 1.89 0 3.463-.53 4.717-1.588 1.254-1.06 1.979-2.516 2.173-4.37h-6.89v-2.277h9.196c.088.495.132.971.132 1.43m7.652-4.633c1.946 0 3.494.629 4.645 1.886 1.15 1.257 1.726 3.018 1.726 5.282l-.027.268H24.877c.036 1.284.464 2.318 1.285 3.102.82.785 1.802 1.177 2.944 1.177 1.57 0 2.802-.784 3.694-2.354l2.195 1.07a6.54 6.54 0 01-2.45 2.595C31.503 21.688 30.32 22 29 22c-1.927 0-3.516-.66-4.765-1.98-1.249-1.319-1.873-2.986-1.873-5.001 0-1.997.606-3.66 1.82-4.988 1.213-1.329 2.766-1.993 4.657-1.993m-.053 2.247c-.928 0-1.727.285-2.396.856-.67.57-1.11 1.337-1.325 2.3h7.522c-.071-.91-.442-1.663-1.111-2.26-.67-.598-1.566-.896-2.69-.896M39.247 21.53h-2.455V8.465h2.348v1.813h.107c.374-.64.947-1.173 1.721-1.6.774-.427 1.544-.64 2.309-.64.96 0 1.806.222 2.535.667a3.931 3.931 0 011.601 1.84c1.085-1.671 2.589-2.507 4.51-2.507 1.513 0 2.678.462 3.496 1.387.819.924 1.228 2.24 1.228 3.946v8.16h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.192-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.191-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227zM61.911 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zM80 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zm-16.343.022h2.349v1.813h.107c.373-.64.947-1.173 1.721-1.6a4.935 4.935 0 012.415-.64c1.601 0 2.833.458 3.696 1.373.863.916 1.294 2.218 1.294 3.907v8.213h-2.455v-8.053c-.053-2.133-1.13-3.2-3.229-3.2-.978 0-1.797.395-2.455 1.187-.658.79-.987 1.737-.987 2.84v7.226h-2.456V8.465z"
|
|
28
|
+
})
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
export default Icon;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Avatar from './components/Avatar';
|
|
2
|
+
import BrandColor from './components/BrandColor';
|
|
3
|
+
import BrandMono from './components/BrandMono';
|
|
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
|
+
export type CompoundedIcon = typeof Mono & {
|
|
9
|
+
Avatar: typeof Avatar;
|
|
10
|
+
Brand: typeof BrandMono;
|
|
11
|
+
BrandColor: typeof BrandColor;
|
|
12
|
+
Color: typeof Color;
|
|
13
|
+
Combine: typeof Combine;
|
|
14
|
+
Mono: typeof Mono;
|
|
15
|
+
Text: typeof Text;
|
|
16
|
+
colorGradient: string;
|
|
17
|
+
colorPrimary: string;
|
|
18
|
+
};
|
|
19
|
+
declare const Icons: CompoundedIcon;
|
|
20
|
+
export default Icons;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Avatar from "./components/Avatar";
|
|
2
|
+
import BrandColor from "./components/BrandColor";
|
|
3
|
+
import BrandMono from "./components/BrandMono";
|
|
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_GRADIENT, COLOR_PRIMARY } from "./style";
|
|
9
|
+
var Icons = Mono;
|
|
10
|
+
Icons.Color = Color;
|
|
11
|
+
Icons.Text = Text;
|
|
12
|
+
Icons.Combine = Combine;
|
|
13
|
+
Icons.Avatar = Avatar;
|
|
14
|
+
Icons.Brand = BrandMono;
|
|
15
|
+
Icons.BrandColor = BrandColor;
|
|
16
|
+
Icons.colorPrimary = COLOR_PRIMARY;
|
|
17
|
+
Icons.colorGradient = COLOR_GRADIENT;
|
|
18
|
+
export default Icons;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { type FlexboxProps } from 'react-layout-kit';
|
|
3
|
+
import { IconType } from "../types";
|
|
4
|
+
export interface IconAvatarProps extends Omit<FlexboxProps, 'children'> {
|
|
5
|
+
Icon: IconType;
|
|
6
|
+
background: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
iconClassName?: string;
|
|
9
|
+
iconMultiple?: number;
|
|
10
|
+
iconStyle?: CSSProperties;
|
|
11
|
+
shape?: 'circle' | 'square';
|
|
12
|
+
size: number;
|
|
13
|
+
}
|
|
14
|
+
declare const IconAvatar: import("react").NamedExoticComponent<IconAvatarProps>;
|
|
15
|
+
export default IconAvatar;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import { memo } from 'react';
|
|
5
|
+
import { Flexbox } from 'react-layout-kit';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
var IconAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
8
|
+
var _ref$shape = _ref.shape,
|
|
9
|
+
shape = _ref$shape === void 0 ? 'circle' : _ref$shape,
|
|
10
|
+
_ref$color = _ref.color,
|
|
11
|
+
color = _ref$color === void 0 ? '#fff' : _ref$color,
|
|
12
|
+
background = _ref.background,
|
|
13
|
+
size = _ref.size,
|
|
14
|
+
style = _ref.style,
|
|
15
|
+
_ref$iconMultiple = _ref.iconMultiple,
|
|
16
|
+
iconMultiple = _ref$iconMultiple === void 0 ? 0.75 : _ref$iconMultiple,
|
|
17
|
+
Icon = _ref.Icon,
|
|
18
|
+
iconStyle = _ref.iconStyle,
|
|
19
|
+
iconClassName = _ref.iconClassName;
|
|
20
|
+
return /*#__PURE__*/_jsx(Flexbox, {
|
|
21
|
+
align: 'center',
|
|
22
|
+
flex: 'none',
|
|
23
|
+
justify: 'center',
|
|
24
|
+
style: _objectSpread({
|
|
25
|
+
background: background,
|
|
26
|
+
borderRadius: shape === 'circle' ? '50%' : Math.floor(size * 0.1),
|
|
27
|
+
color: color,
|
|
28
|
+
height: size,
|
|
29
|
+
width: size
|
|
30
|
+
}, style),
|
|
31
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
32
|
+
className: iconClassName,
|
|
33
|
+
size: size * iconMultiple,
|
|
34
|
+
style: iconStyle
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
export default IconAvatar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { type FlexboxProps } from 'react-layout-kit';
|
|
3
|
+
import { IconType } from "../types";
|
|
4
|
+
export interface IconCombineProps extends FlexboxProps {
|
|
5
|
+
Icon: IconType;
|
|
6
|
+
Text: IconType;
|
|
7
|
+
extra?: string;
|
|
8
|
+
extraClassName?: string;
|
|
9
|
+
extraStyle?: CSSProperties;
|
|
10
|
+
showLogo?: boolean;
|
|
11
|
+
showText?: boolean;
|
|
12
|
+
size?: number;
|
|
13
|
+
spaceMultiple?: number;
|
|
14
|
+
textMultiple?: number;
|
|
15
|
+
}
|
|
16
|
+
declare const IconCombine: import("react").NamedExoticComponent<IconCombineProps>;
|
|
17
|
+
export default IconCombine;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["Icon", "Text", "size", "spaceMultiple", "textMultiple", "extra", "extraStyle", "showText", "showLogo", "extraClassName"];
|
|
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 { Flexbox } from 'react-layout-kit';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var IconCombine = /*#__PURE__*/memo(function (_ref) {
|
|
11
|
+
var Icon = _ref.Icon,
|
|
12
|
+
Text = _ref.Text,
|
|
13
|
+
_ref$size = _ref.size,
|
|
14
|
+
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
15
|
+
_ref$spaceMultiple = _ref.spaceMultiple,
|
|
16
|
+
spaceMultiple = _ref$spaceMultiple === void 0 ? 1 : _ref$spaceMultiple,
|
|
17
|
+
_ref$textMultiple = _ref.textMultiple,
|
|
18
|
+
textMultiple = _ref$textMultiple === void 0 ? 1 : _ref$textMultiple,
|
|
19
|
+
extra = _ref.extra,
|
|
20
|
+
extraStyle = _ref.extraStyle,
|
|
21
|
+
_ref$showText = _ref.showText,
|
|
22
|
+
showText = _ref$showText === void 0 ? true : _ref$showText,
|
|
23
|
+
_ref$showLogo = _ref.showLogo,
|
|
24
|
+
showLogo = _ref$showLogo === void 0 ? true : _ref$showLogo,
|
|
25
|
+
extraClassName = _ref.extraClassName,
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
28
|
+
align: 'center',
|
|
29
|
+
flex: 'none',
|
|
30
|
+
horizontal: true
|
|
31
|
+
}, rest), {}, {
|
|
32
|
+
children: [showLogo && /*#__PURE__*/_jsx(Icon, {
|
|
33
|
+
size: size,
|
|
34
|
+
style: {
|
|
35
|
+
marginRight: size * spaceMultiple
|
|
36
|
+
}
|
|
37
|
+
}), showText && /*#__PURE__*/_jsx(Text, {
|
|
38
|
+
size: size * textMultiple
|
|
39
|
+
}), extra && /*#__PURE__*/_jsx("span", {
|
|
40
|
+
className: extraClassName,
|
|
41
|
+
style: _objectSpread({
|
|
42
|
+
fontSize: size * textMultiple * 0.95,
|
|
43
|
+
lineHeight: 1
|
|
44
|
+
}, extraStyle),
|
|
45
|
+
children: extra
|
|
46
|
+
})]
|
|
47
|
+
}));
|
|
48
|
+
});
|
|
49
|
+
export default IconCombine;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type IconAvatarProps } from "../../IconAvatar";
|
|
3
|
+
export interface AvatarProps extends Omit<IconAvatarProps, 'Icon'> {
|
|
4
|
+
type?: 'normal' | 'gpt3' | 'gpt4';
|
|
5
|
+
}
|
|
6
|
+
declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
|
|
7
|
+
export default Avatar;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["background", "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 IconAvatar from "../../IconAvatar";
|
|
8
|
+
import { COLOR_GPT_3, COLOR_GPT_4, COLOR_PRIMARY } 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
|
+
_ref$type = _ref.type,
|
|
14
|
+
type = _ref$type === void 0 ? 'normal' : _ref$type,
|
|
15
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
var bg;
|
|
17
|
+
switch (type) {
|
|
18
|
+
case 'gpt3':
|
|
19
|
+
{
|
|
20
|
+
bg = COLOR_GPT_3;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
case 'gpt4':
|
|
24
|
+
{
|
|
25
|
+
bg = COLOR_GPT_4;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
default:
|
|
29
|
+
{
|
|
30
|
+
bg = background || COLOR_PRIMARY;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
34
|
+
Icon: Mono,
|
|
35
|
+
background: bg
|
|
36
|
+
}, rest));
|
|
37
|
+
});
|
|
38
|
+
export default Avatar;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["extraStyle"];
|
|
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 } from "../style";
|
|
9
|
+
import Mono from "./Mono";
|
|
10
|
+
import Text from "./Text";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
13
|
+
var extraStyle = _ref.extraStyle,
|
|
14
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
16
|
+
Icon: Mono,
|
|
17
|
+
Text: Text,
|
|
18
|
+
extraStyle: _objectSpread({
|
|
19
|
+
fontWeight: 600
|
|
20
|
+
}, extraStyle),
|
|
21
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
22
|
+
textMultiple: TEXT_MULTIPLE
|
|
23
|
+
}, rest));
|
|
24
|
+
});
|
|
25
|
+
export default Combine;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var _ref$size = _ref.size,
|
|
10
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
height: size,
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
flex: 'none',
|
|
20
|
+
lineHeight: 1
|
|
21
|
+
}, style),
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
width: size,
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25
|
+
}, rest), {}, {
|
|
26
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"
|
|
28
|
+
})
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
export default Icon;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
|
+
var _ref$size = _ref.size,
|
|
10
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
14
|
+
fill: "currentColor",
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
height: size,
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: _objectSpread({
|
|
19
|
+
flex: 'none',
|
|
20
|
+
lineHeight: 1,
|
|
21
|
+
width: 'fit-content'
|
|
22
|
+
}, style),
|
|
23
|
+
viewBox: "0 0 84 24",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
25
|
+
}, rest), {}, {
|
|
26
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M2 10.955c0 5.276 3.376 8.955 8.054 8.955 4.678 0 8.054-3.679 8.054-8.955S14.732 2 10.054 2C5.423 2 2.068 5.606 2 10.797L2 10.955zm13.021 0c0 3.775-2.05 6.22-4.967 6.22-2.918 0-4.968-2.445-4.968-6.22 0-3.776 2.05-6.22 4.968-6.22 2.917 0 4.967 2.444 4.967 6.22zm11.778 8.955c3.545 0 5.57-3.001 5.57-6.607 0-3.607-2.025-6.608-5.57-6.608-1.64 0-2.845.654-3.64 1.598V6.937h-2.894V24h2.893v-5.688c.796.944 2.002 1.598 3.641 1.598zm-3.713-6.97c0-2.397 1.35-3.703 3.135-3.703 2.097 0 3.23 1.645 3.23 4.066 0 2.42-1.133 4.066-3.23 4.066-1.785 0-3.135-1.332-3.135-3.68v-.75zM40.2 19.91c2.532 0 4.533-1.331 5.425-3.558l-2.483-.944c-.386 1.307-1.52 2.033-2.942 2.033-1.857 0-3.159-1.331-3.376-3.51h8.874v-.967c0-3.485-1.953-6.269-5.619-6.269-3.665 0-6.028 2.88-6.028 6.608 0 3.92 2.532 6.607 6.15 6.607zm-.145-10.77c1.833 0 2.701 1.21 2.725 2.614H36.97c.434-1.719 1.591-2.614 3.086-2.614zm7.814 10.504h2.894v-7.455c0-1.815 1.326-2.783 2.628-2.783 1.591 0 2.218 1.137 2.218 2.71v7.528h2.894V11.27c0-2.735-1.592-4.575-4.244-4.575-1.64 0-2.773.75-3.496 1.598V6.937h-2.894v12.707zM66.978 2.266l-6.56 17.378h3.063l1.471-3.97h7.475l1.495 3.97h3.11L70.475 2.266h-3.496zm1.687 3.437l2.75 7.26h-5.45l2.7-7.26zM82 2.317h-3.086v17.377H82V2.317z"
|
|
28
|
+
})
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
export default Icon;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Mono: typeof Mono;
|
|
9
|
+
Text: typeof Text;
|
|
10
|
+
colorGpt3: string;
|
|
11
|
+
colorGpt4: string;
|
|
12
|
+
colorPrimary: string;
|
|
13
|
+
};
|
|
14
|
+
declare const Icons: CompoundedIcon;
|
|
15
|
+
export default Icons;
|