@lobehub/icons 1.1.0 → 1.2.1

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.
Files changed (94) hide show
  1. package/es/Anthropic/components/Avatar.d.ts +5 -0
  2. package/es/Anthropic/components/Avatar.js +20 -0
  3. package/es/Anthropic/components/Mono.d.ts +3 -0
  4. package/es/Anthropic/components/Mono.js +31 -0
  5. package/es/Anthropic/components/Text.d.ts +3 -0
  6. package/es/Anthropic/components/Text.js +31 -0
  7. package/es/Anthropic/index.d.ts +11 -0
  8. package/es/Anthropic/index.js +9 -0
  9. package/es/Anthropic/style.d.ts +3 -0
  10. package/es/Anthropic/style.js +3 -0
  11. package/es/ChatGLM/components/Avatar.d.ts +2 -1
  12. package/es/ChatGLM/components/Avatar.js +11 -18
  13. package/es/ChatGLM/components/Color.js +6 -2
  14. package/es/ChatGLM/components/Combine.d.ts +2 -3
  15. package/es/ChatGLM/components/Combine.js +8 -17
  16. package/es/ChatGLM/index.d.ts +3 -2
  17. package/es/ChatGLM/index.js +2 -1
  18. package/es/ChatGLM/style.d.ts +1 -0
  19. package/es/ChatGLM/style.js +2 -1
  20. package/es/Dalle/components/Combine.d.ts +5 -0
  21. package/es/Dalle/components/Combine.js +29 -0
  22. package/es/Dalle/components/Mono.d.ts +3 -0
  23. package/es/Dalle/components/Mono.js +31 -0
  24. package/es/Dalle/components/Text.d.ts +3 -0
  25. package/es/Dalle/components/Text.js +31 -0
  26. package/es/Dalle/index.d.ts +10 -0
  27. package/es/Dalle/index.js +9 -0
  28. package/es/Dalle/style.d.ts +3 -0
  29. package/es/Dalle/style.js +3 -0
  30. package/es/Gemini/components/Avatar.d.ts +5 -0
  31. package/es/Gemini/components/Avatar.js +20 -0
  32. package/es/Gemini/components/BrandColor.d.ts +3 -0
  33. package/es/Gemini/components/BrandColor.js +53 -0
  34. package/es/Gemini/components/BrandMono.d.ts +3 -0
  35. package/es/Gemini/components/BrandMono.js +31 -0
  36. package/es/Gemini/components/Color.d.ts +3 -0
  37. package/es/Gemini/components/Color.js +54 -0
  38. package/es/Gemini/components/Combine.d.ts +7 -0
  39. package/es/Gemini/components/Combine.js +25 -0
  40. package/es/Gemini/components/Mono.d.ts +3 -0
  41. package/es/Gemini/components/Mono.js +31 -0
  42. package/es/Gemini/components/Text.d.ts +3 -0
  43. package/es/Gemini/components/Text.js +31 -0
  44. package/es/Gemini/index.d.ts +20 -0
  45. package/es/Gemini/index.js +18 -0
  46. package/es/Gemini/style.d.ts +4 -0
  47. package/es/Gemini/style.js +4 -0
  48. package/es/IconAvatar/index.d.ts +9 -3
  49. package/es/IconAvatar/index.js +13 -2
  50. package/es/IconCombine/index.d.ts +17 -0
  51. package/es/IconCombine/index.js +49 -0
  52. package/es/OpenAI/components/Avatar.d.ts +7 -0
  53. package/es/OpenAI/components/Avatar.js +38 -0
  54. package/es/OpenAI/components/Combine.d.ts +5 -0
  55. package/es/OpenAI/components/Combine.js +25 -0
  56. package/es/OpenAI/components/Mono.d.ts +3 -0
  57. package/es/OpenAI/components/Mono.js +31 -0
  58. package/es/OpenAI/components/Text.d.ts +3 -0
  59. package/es/OpenAI/components/Text.js +31 -0
  60. package/es/OpenAI/index.d.ts +15 -0
  61. package/es/OpenAI/index.js +13 -0
  62. package/es/OpenAI/style.d.ts +5 -0
  63. package/es/OpenAI/style.js +5 -0
  64. package/es/Tongyi/components/Avatar.d.ts +2 -1
  65. package/es/Tongyi/components/Avatar.js +7 -18
  66. package/es/Tongyi/components/Color.js +6 -2
  67. package/es/Tongyi/components/Combine.d.ts +2 -3
  68. package/es/Tongyi/components/Combine.js +12 -17
  69. package/es/Tongyi/components/Text.js +1 -1
  70. package/es/Tongyi/index.d.ts +3 -2
  71. package/es/Tongyi/index.js +2 -1
  72. package/es/Tongyi/style.d.ts +1 -0
  73. package/es/Tongyi/style.js +2 -1
  74. package/es/Wenxin/components/Avatar.d.ts +2 -1
  75. package/es/Wenxin/components/Avatar.js +7 -18
  76. package/es/Wenxin/components/Color.js +6 -2
  77. package/es/Wenxin/components/Combine.d.ts +2 -3
  78. package/es/Wenxin/components/Combine.js +8 -17
  79. package/es/Wenxin/components/Mono.js +3 -19
  80. package/es/Wenxin/index.d.ts +3 -2
  81. package/es/Wenxin/index.js +2 -1
  82. package/es/Wenxin/style.d.ts +1 -0
  83. package/es/Wenxin/style.js +2 -1
  84. package/es/Zhipu/components/Avatar.d.ts +2 -1
  85. package/es/Zhipu/components/Avatar.js +6 -17
  86. package/es/Zhipu/components/Combine.d.ts +2 -3
  87. package/es/Zhipu/components/Combine.js +8 -17
  88. package/es/Zhipu/index.d.ts +2 -2
  89. package/es/components/ColorPreview/index.js +1 -1
  90. package/es/hooks/useFillId.d.ts +4 -0
  91. package/es/hooks/useFillId.js +7 -0
  92. package/es/index.d.ts +10 -4
  93. package/es/index.js +6 -0
  94. package/package.json +1 -1
@@ -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,3 @@
1
+ import type { IconType } from "../../types";
2
+ declare const Icon: IconType;
3
+ 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
+ }, 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,3 @@
1
+ import type { IconType } from "../../types";
2
+ declare const Icon: IconType;
3
+ 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,4 @@
1
+ export declare const TEXT_MULTIPLE = 0.8;
2
+ export declare const SPACE_MULTIPLE = 0.2;
3
+ export declare const COLOR_PRIMARY = "#1C69FF";
4
+ export declare const COLOR_GRADIENT = "linear-gradient(45deg, #1C69FF 40%, #F0DCD6 100%)";
@@ -0,0 +1,4 @@
1
+ export var TEXT_MULTIPLE = 0.8;
2
+ export var SPACE_MULTIPLE = 0.2;
3
+ export var COLOR_PRIMARY = '#1C69FF';
4
+ export var COLOR_GRADIENT = 'linear-gradient(45deg, #1C69FF 40%, #F0DCD6 100%)';
@@ -1,7 +1,13 @@
1
- /// <reference types="react" />
1
+ import { CSSProperties } from 'react';
2
2
  import { type FlexboxProps } from 'react-layout-kit';
3
- export interface IconAvatarProps extends FlexboxProps {
4
- background: string;
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;
5
11
  shape?: 'circle' | 'square';
6
12
  size: number;
7
13
  }
@@ -7,10 +7,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  var IconAvatar = /*#__PURE__*/memo(function (_ref) {
8
8
  var _ref$shape = _ref.shape,
9
9
  shape = _ref$shape === void 0 ? 'circle' : _ref$shape,
10
+ _ref$color = _ref.color,
11
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
10
12
  background = _ref.background,
11
13
  size = _ref.size,
12
14
  style = _ref.style,
13
- children = _ref.children;
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;
14
20
  return /*#__PURE__*/_jsx(Flexbox, {
15
21
  align: 'center',
16
22
  flex: 'none',
@@ -18,10 +24,15 @@ var IconAvatar = /*#__PURE__*/memo(function (_ref) {
18
24
  style: _objectSpread({
19
25
  background: background,
20
26
  borderRadius: shape === 'circle' ? '50%' : Math.floor(size * 0.1),
27
+ color: color,
21
28
  height: size,
22
29
  width: size
23
30
  }, style),
24
- children: children
31
+ children: /*#__PURE__*/_jsx(Icon, {
32
+ className: iconClassName,
33
+ size: size * iconMultiple,
34
+ style: iconStyle
35
+ })
25
36
  });
26
37
  });
27
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,5 @@
1
+ /// <reference types="react" />
2
+ import { type IconCombineProps } from "../../IconCombine";
3
+ export type CombineProps = Omit<IconCombineProps, 'Icon' | 'Text'>;
4
+ declare const Combine: import("react").NamedExoticComponent<CombineProps>;
5
+ 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 = ["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,3 @@
1
+ import type { IconType } from "../../types";
2
+ declare const Icon: IconType;
3
+ 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
+ }, 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,3 @@
1
+ import type { IconType } from "../../types";
2
+ declare const Icon: IconType;
3
+ 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;
@@ -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
+ import { COLOR_GPT_3, COLOR_GPT_4, COLOR_PRIMARY } 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.colorGpt3 = COLOR_GPT_3;
12
+ Icons.colorGpt4 = COLOR_GPT_4;
13
+ export default Icons;
@@ -0,0 +1,5 @@
1
+ export declare const TEXT_MULTIPLE = 0.75;
2
+ export declare const SPACE_MULTIPLE = 0.1;
3
+ export declare const COLOR_PRIMARY = "#000";
4
+ export declare const COLOR_GPT_3 = "#19C37D";
5
+ export declare const COLOR_GPT_4 = "#AB68FF";
@@ -0,0 +1,5 @@
1
+ export var TEXT_MULTIPLE = 0.75;
2
+ export var SPACE_MULTIPLE = 0.1;
3
+ export var COLOR_PRIMARY = '#000';
4
+ export var COLOR_GPT_3 = '#19C37D';
5
+ export var COLOR_GPT_4 = '#AB68FF';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { type IconAvatarProps } from "../../IconAvatar";
3
- declare const Avatar: import("react").NamedExoticComponent<IconAvatarProps>;
3
+ export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
+ declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
5
  export default Avatar;
@@ -1,30 +1,19 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["size", "style", "background"];
3
+ var _excluded = ["background"];
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
6
  import { memo } from 'react';
7
7
  import IconAvatar from "../../IconAvatar";
8
- import { COLOR_PRIMARY } from "../style";
8
+ import { COLOR_GRADIENT } from "../style";
9
9
  import Mono from "./Mono";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  var Avatar = /*#__PURE__*/memo(function (_ref) {
12
- var _ref$size = _ref.size,
13
- size = _ref$size === void 0 ? 24 : _ref$size,
14
- style = _ref.style,
15
- background = _ref.background,
12
+ var background = _ref.background,
16
13
  rest = _objectWithoutProperties(_ref, _excluded);
17
- var bg = background || COLOR_PRIMARY;
18
- return /*#__PURE__*/_jsx(IconAvatar, _objectSpread(_objectSpread({
19
- background: bg,
20
- size: size,
21
- style: _objectSpread({
22
- color: '#fff'
23
- }, style)
24
- }, rest), {}, {
25
- children: /*#__PURE__*/_jsx(Mono, {
26
- size: size * 0.75
27
- })
28
- }));
14
+ return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
15
+ Icon: Mono,
16
+ background: background || COLOR_GRADIENT
17
+ }, rest));
29
18
  });
30
19
  export default Avatar;
@@ -4,6 +4,7 @@ var _excluded = ["size", "style"];
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
6
  import { forwardRef } from 'react';
7
+ import { useFillId } from "../../hooks/useFillId";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
10
  var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -11,6 +12,9 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
12
  size = _ref$size === void 0 ? '1em' : _ref$size,
12
13
  style = _ref.style,
13
14
  rest = _objectWithoutProperties(_ref, _excluded);
15
+ var _useFillId = useFillId('tongyi'),
16
+ id = _useFillId.id,
17
+ fill = _useFillId.fill;
14
18
  return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
15
19
  height: size,
16
20
  ref: ref,
@@ -24,7 +28,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
24
28
  }, rest), {}, {
25
29
  children: [/*#__PURE__*/_jsx("defs", {
26
30
  children: /*#__PURE__*/_jsxs("linearGradient", {
27
- id: "a",
31
+ id: id,
28
32
  x1: "0%",
29
33
  x2: "100%",
30
34
  y1: "0%",
@@ -41,7 +45,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
41
45
  })
42
46
  }), /*#__PURE__*/_jsx("path", {
43
47
  d: "M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z",
44
- fill: "url(#a)",
48
+ fill: fill,
45
49
  fillRule: "nonzero"
46
50
  })]
47
51
  }));