@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.
Files changed (132) 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 +5 -0
  12. package/es/ChatGLM/components/Avatar.js +26 -0
  13. package/es/ChatGLM/components/Color.d.ts +3 -0
  14. package/es/ChatGLM/components/Color.js +51 -0
  15. package/es/ChatGLM/components/Combine.d.ts +7 -0
  16. package/es/ChatGLM/components/Combine.js +25 -0
  17. package/es/ChatGLM/components/Mono.d.ts +3 -0
  18. package/es/ChatGLM/components/Mono.js +31 -0
  19. package/es/ChatGLM/components/Text.d.ts +3 -0
  20. package/es/ChatGLM/components/Text.js +31 -0
  21. package/es/ChatGLM/index.d.ts +16 -0
  22. package/es/ChatGLM/index.js +14 -0
  23. package/es/ChatGLM/style.d.ts +4 -0
  24. package/es/ChatGLM/style.js +4 -0
  25. package/es/Dalle/components/Combine.d.ts +5 -0
  26. package/es/Dalle/components/Combine.js +29 -0
  27. package/es/Dalle/components/Mono.d.ts +3 -0
  28. package/es/Dalle/components/Mono.js +31 -0
  29. package/es/Dalle/components/Text.d.ts +3 -0
  30. package/es/Dalle/components/Text.js +31 -0
  31. package/es/Dalle/index.d.ts +10 -0
  32. package/es/Dalle/index.js +9 -0
  33. package/es/Dalle/style.d.ts +3 -0
  34. package/es/Dalle/style.js +3 -0
  35. package/es/Gemini/components/Avatar.d.ts +5 -0
  36. package/es/Gemini/components/Avatar.js +20 -0
  37. package/es/Gemini/components/BrandColor.d.ts +3 -0
  38. package/es/Gemini/components/BrandColor.js +53 -0
  39. package/es/Gemini/components/BrandMono.d.ts +3 -0
  40. package/es/Gemini/components/BrandMono.js +31 -0
  41. package/es/Gemini/components/Color.d.ts +3 -0
  42. package/es/Gemini/components/Color.js +54 -0
  43. package/es/Gemini/components/Combine.d.ts +7 -0
  44. package/es/Gemini/components/Combine.js +25 -0
  45. package/es/Gemini/components/Mono.d.ts +3 -0
  46. package/es/Gemini/components/Mono.js +31 -0
  47. package/es/Gemini/components/Text.d.ts +3 -0
  48. package/es/Gemini/components/Text.js +31 -0
  49. package/es/Gemini/index.d.ts +20 -0
  50. package/es/Gemini/index.js +18 -0
  51. package/es/Gemini/style.d.ts +4 -0
  52. package/es/Gemini/style.js +4 -0
  53. package/es/IconAvatar/index.d.ts +15 -0
  54. package/es/IconAvatar/index.js +38 -0
  55. package/es/IconCombine/index.d.ts +17 -0
  56. package/es/IconCombine/index.js +49 -0
  57. package/es/OpenAI/components/Avatar.d.ts +7 -0
  58. package/es/OpenAI/components/Avatar.js +38 -0
  59. package/es/OpenAI/components/Combine.d.ts +5 -0
  60. package/es/OpenAI/components/Combine.js +25 -0
  61. package/es/OpenAI/components/Mono.d.ts +3 -0
  62. package/es/OpenAI/components/Mono.js +31 -0
  63. package/es/OpenAI/components/Text.d.ts +3 -0
  64. package/es/OpenAI/components/Text.js +31 -0
  65. package/es/OpenAI/index.d.ts +15 -0
  66. package/es/OpenAI/index.js +13 -0
  67. package/es/OpenAI/style.d.ts +5 -0
  68. package/es/OpenAI/style.js +5 -0
  69. package/es/Tongyi/components/Avatar.d.ts +5 -0
  70. package/es/Tongyi/components/Avatar.js +19 -0
  71. package/es/Tongyi/components/Color.d.ts +3 -0
  72. package/es/Tongyi/components/Color.js +53 -0
  73. package/es/Tongyi/components/Combine.d.ts +7 -0
  74. package/es/Tongyi/components/Combine.js +29 -0
  75. package/es/Tongyi/components/Mono.d.ts +3 -0
  76. package/es/Tongyi/components/Mono.js +31 -0
  77. package/es/Tongyi/components/Text.d.ts +3 -0
  78. package/es/Tongyi/components/Text.js +31 -0
  79. package/es/Tongyi/index.d.ts +16 -0
  80. package/es/Tongyi/index.js +14 -0
  81. package/es/Tongyi/style.d.ts +4 -0
  82. package/es/Tongyi/style.js +4 -0
  83. package/es/Wenxin/components/Avatar.d.ts +5 -0
  84. package/es/Wenxin/components/Avatar.js +19 -0
  85. package/es/Wenxin/components/Color.d.ts +3 -0
  86. package/es/Wenxin/components/Color.js +57 -0
  87. package/es/Wenxin/components/Combine.d.ts +7 -0
  88. package/es/Wenxin/components/Combine.js +25 -0
  89. package/es/Wenxin/components/Mono.d.ts +3 -0
  90. package/es/Wenxin/components/Mono.js +31 -0
  91. package/es/Wenxin/components/Text.d.ts +3 -0
  92. package/es/Wenxin/components/Text.js +31 -0
  93. package/es/Wenxin/index.d.ts +16 -0
  94. package/es/Wenxin/index.js +14 -0
  95. package/es/Wenxin/style.d.ts +4 -0
  96. package/es/Wenxin/style.js +4 -0
  97. package/es/Zhipu/components/Avatar.d.ts +2 -1
  98. package/es/Zhipu/components/Avatar.js +6 -15
  99. package/es/Zhipu/components/Combine.d.ts +2 -3
  100. package/es/Zhipu/components/Combine.js +9 -18
  101. package/es/Zhipu/components/Text.js +2 -1
  102. package/es/Zhipu/index.d.ts +15 -6
  103. package/es/Zhipu/index.js +13 -6
  104. package/es/components/ColorPreview/index.js +40 -0
  105. package/es/{Editor/Preview.d.ts → components/Editor/Color.d.ts} +1 -2
  106. package/es/components/Editor/Color.js +47 -0
  107. package/es/components/Editor/Mono.d.ts +8 -0
  108. package/es/components/Editor/Mono.js +47 -0
  109. package/es/components/Editor/Preview.d.ts +8 -0
  110. package/es/components/Editor/Preview.js +57 -0
  111. package/es/components/Editor/index.js +122 -0
  112. package/es/components/Editor/useSvgo.d.ts +6 -0
  113. package/es/components/Editor/useSvgo.js +51 -0
  114. package/es/components/IconPreview/ColorPreview.d.ts +6 -0
  115. package/es/{IconPreview → components/IconPreview}/ColorPreview.js +1 -2
  116. package/es/hooks/useFillId.d.ts +4 -0
  117. package/es/hooks/useFillId.js +7 -0
  118. package/es/index.d.ts +11 -4
  119. package/es/index.js +10 -5
  120. package/package.json +7 -9
  121. package/es/Editor/Preview.js +0 -93
  122. package/es/Editor/index.js +0 -67
  123. package/es/IconShowcase/index.d.ts +0 -11
  124. package/es/IconShowcase/index.js +0 -91
  125. /package/es/{IconPreview/ColorPreview.d.ts → components/ColorPreview/index.d.ts} +0 -0
  126. /package/es/{Editor → components/Editor}/data.d.ts +0 -0
  127. /package/es/{Editor → components/Editor}/data.js +0 -0
  128. /package/es/{Editor → components/Editor}/index.d.ts +0 -0
  129. /package/es/{Editor → components/Editor}/svgo.d.ts +0 -0
  130. /package/es/{Editor → components/Editor}/svgo.js +0 -0
  131. /package/es/{IconPreview → components/IconPreview}/index.d.ts +0 -0
  132. /package/es/{IconPreview → components/IconPreview}/index.js +0 -0
@@ -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';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type IconAvatarProps } from "../../IconAvatar";
3
+ export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
+ declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
5
+ export default Avatar;
@@ -0,0 +1,19 @@
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_GRADIENT } 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
+ background: background || COLOR_GRADIENT
17
+ }, rest));
18
+ });
19
+ export default Avatar;
@@ -0,0 +1,3 @@
1
+ import type { IconType } from "../../types";
2
+ declare const Icon: IconType;
3
+ export default Icon;
@@ -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('tongyi'),
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: "100%",
34
+ y1: "0%",
35
+ y2: "0%",
36
+ children: [/*#__PURE__*/_jsx("stop", {
37
+ offset: "0%",
38
+ stopColor: "#00055F",
39
+ stopOpacity: ".84"
40
+ }), /*#__PURE__*/_jsx("stop", {
41
+ offset: "100%",
42
+ stopColor: "#6F69F7",
43
+ stopOpacity: ".84"
44
+ })]
45
+ })
46
+ }), /*#__PURE__*/_jsx("path", {
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",
48
+ fill: fill,
49
+ fillRule: "nonzero"
50
+ })]
51
+ }));
52
+ });
53
+ 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,29 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["type", "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 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
+ extraStyle = _ref.extraStyle,
17
+ rest = _objectWithoutProperties(_ref, _excluded);
18
+ var Icon = type === 'color' ? Color : Mono;
19
+ return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
20
+ Icon: Icon,
21
+ Text: Text,
22
+ extraStyle: _objectSpread({
23
+ fontWeight: 500
24
+ }, extraStyle),
25
+ spaceMultiple: SPACE_MULTIPLE,
26
+ textMultiple: TEXT_MULTIPLE
27
+ }, rest));
28
+ });
29
+ 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.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"
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 50 24",
24
+ xmlns: "http://www.w3.org/2000/svg"
25
+ }, rest), {}, {
26
+ children: /*#__PURE__*/_jsx("path", {
27
+ d: "M6.367 8.85c.577 0 1.047.472 1.047 1.052v7.276c.416.666.855 1.161 1.302 1.486.454.325.978.55 1.586.681.534.117 1.25.197 2.139.246l.34.017c.81.031 2.019.047 3.628.047 2.688 0 5.245-.078 7.663-.225l-.508 2.16c-2.742.155-5.183.224-7.324.224-.786 0-1.578-.01-2.377-.03l-1.204-.04c-1.148-.03-2.072-.108-2.78-.224a6.023 6.023 0 01-1.934-.666c-.577-.325-1.147-.812-1.694-1.462-.416.363-.847.774-1.278 1.223-.432.456-.863.913-1.279 1.385L2 20.026l2.973-2.817v-5.906H2.847V8.85h3.52zM21.36 2.534c.611 0 1.115.465 1.18 1.062l.006.13c0 .457-.254.875-.662 1.068l-.367.184c-.785.404-1.886 1.025-3.299 1.867l-.431.248h3.642c.578 0 1.048.472 1.048 1.053v8.575c0 .558-.077.991-.231 1.285-.154.294-.408.519-.763.674-.354.154-.87.263-1.548.34l-.862.062-.6-2.314.592-.016c.4-.046.662-.124.77-.24.116-.116.17-.34.17-.688v-.163h-3.073v3.111h-2.295v-3.111h-2.904v3.111h-2.34V7.101h4.543l-2.68-1.773.655-.774H9.617v-2.02H21.36zm-6.715 9.9h-2.904v1.222h2.904v-1.223zm5.367 0h-3.072v1.222h3.072v-1.223zm-5.367-3.29h-2.904v1.293h2.904V9.144zm5.367 0h-3.072v1.293h3.072V9.144zM5.127 2c.381.308.814.702 1.306 1.187L7.85 4.614c.118.12.225.232.311.327l-.94 2.802c-.361-.534-1.155-1.4-1.91-2.23-.361-.394-.7-.742-1.016-1.052L5.127 2zm13.261 2.554H13.46l2.171 1.34.568-.31c.994-.535 1.727-.88 2.19-1.03zM31.681 3.2c.77 2.035 1.586 3.808 2.449 5.31.94 1.648 2.033 3.088 3.273 4.318 1.21-1.261 2.226-2.74 3.057-4.443.717-1.47 1.34-3.204 1.872-5.185h3.011c-.724 2.654-1.54 4.9-2.441 6.733-.901 1.835-1.995 3.437-3.289 4.8 1.094.796 2.326 1.532 3.69 2.213A47.716 47.716 0 0048 18.958l-1.425 2.856c-1.933-.851-3.635-1.695-5.113-2.53-1.48-.837-2.796-1.711-3.951-2.64-1.163.913-2.495 1.78-4.013 2.6-1.517.821-3.311 1.665-5.39 2.555l-1.595-2.701c1.918-.72 3.59-1.432 5.006-2.137a24.71 24.71 0 003.774-2.29 22.867 22.867 0 01-3.55-4.714c-1.017-1.765-2.11-4.288-3.027-6.757h2.965zm2.588-1.192h3.196l.647 1.021.455.756c.461.776.929 1.592 1.293 2.224h-3.135l-.508-.887-.362-.614c-.64-1.076-1.163-1.912-1.586-2.5z"
28
+ })
29
+ }));
30
+ });
31
+ export default Icon;
@@ -0,0 +1,16 @@
1
+ import Avatar from './components/Avatar';
2
+ import Color from './components/Color';
3
+ import Combine from './components/Combine';
4
+ import Mono from './components/Mono';
5
+ import Text from './components/Text';
6
+ export type CompoundedIcon = typeof Mono & {
7
+ Avatar: typeof Avatar;
8
+ Color: typeof Color;
9
+ Combine: typeof Combine;
10
+ Mono: typeof Mono;
11
+ Text: typeof Text;
12
+ colorGradient: string;
13
+ colorPrimary: string;
14
+ };
15
+ declare const Icons: CompoundedIcon;
16
+ export default Icons;
@@ -0,0 +1,14 @@
1
+ import Avatar from "./components/Avatar";
2
+ import Color from "./components/Color";
3
+ import Combine from "./components/Combine";
4
+ import Mono from "./components/Mono";
5
+ import Text from "./components/Text";
6
+ import { COLOR_GRADIENT, COLOR_PRIMARY } 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.colorGradient = COLOR_GRADIENT;
14
+ export default Icons;
@@ -0,0 +1,4 @@
1
+ export declare const TEXT_MULTIPLE = 0.75;
2
+ export declare const SPACE_MULTIPLE = 0.2;
3
+ export declare const COLOR_PRIMARY = "#615ced";
4
+ export declare const COLOR_GRADIENT = "linear-gradient(to right, #00055F, #6F69F7)";
@@ -0,0 +1,4 @@
1
+ export var TEXT_MULTIPLE = 0.75;
2
+ export var SPACE_MULTIPLE = 0.2;
3
+ export var COLOR_PRIMARY = '#615ced';
4
+ export var COLOR_GRADIENT = 'linear-gradient(to right, #00055F, #6F69F7)';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type IconAvatarProps } from "../../IconAvatar";
3
+ export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
4
+ declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
5
+ export default Avatar;
@@ -0,0 +1,19 @@
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_GRADIENT } 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
+ background: background || COLOR_GRADIENT
17
+ }, rest));
18
+ });
19
+ export default Avatar;
@@ -0,0 +1,3 @@
1
+ import type { IconType } from "../../types";
2
+ declare const Icon: IconType;
3
+ export default Icon;
@@ -0,0 +1,57 @@
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('wenxin'),
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: "9.155%",
33
+ x2: "90.531%",
34
+ y1: "75.177%",
35
+ y2: "25.028%",
36
+ children: [/*#__PURE__*/_jsx("stop", {
37
+ offset: "0%",
38
+ stopColor: "#0A51C3"
39
+ }), /*#__PURE__*/_jsx("stop", {
40
+ offset: "100%",
41
+ stopColor: "#23A4FB"
42
+ })]
43
+ })
44
+ }), /*#__PURE__*/_jsxs("g", {
45
+ fill: "none",
46
+ fillRule: "nonzero",
47
+ children: [/*#__PURE__*/_jsx("path", {
48
+ d: "M11.32 1.176a1.4 1.4 0 011.36 0l8.64 4.843c.421.234.68.67.68 1.141v9.68c0 .472-.259.908-.68 1.143l-8.64 4.84a1.4 1.4 0 01-1.36 0l-8.64-4.84A1.31 1.31 0 012 16.84V7.159c0-.471.259-.907.68-1.142l8.64-4.84zm7.42 13.839V8.227L12.002 12 12 19.551l6.059-3.394a1.31 1.31 0 00.68-1.142zM12.68 4.833a1.393 1.393 0 00-1.36 0L5.944 7.846c-.421.235-.68.67-.68 1.142v6.027c0 .47.259.905.68 1.142l2.795 1.566V11.09a1.546 1.546 0 00.221.79 1.527 1.527 0 01-.216-.834l.004-.094.02-.15.018-.084.017-.062.039-.117.062-.142.035-.065.081-.13.094-.122.084-.091.08-.075.125-.1.071-.048.134-.076 5.87-3.29-2.796-1.566z",
49
+ fill: fill
50
+ }), /*#__PURE__*/_jsx("path", {
51
+ d: "M12 11.088c0-.875-.73-1.584-1.631-1.584a1.66 1.66 0 00-.855.237c-.027.016-.055.033-.08.05a2.361 2.361 0 00-.123.093c-.022.02-.045.038-.066.059l-.048.045-.063.067c-.014.016-.028.031-.04.048a2.303 2.303 0 00-.094.125l-.042.069a1.7 1.7 0 00-.07.13l-.036.081a.764.764 0 00-.022.06c-.01.03-.02.058-.028.087l-.017.062a.883.883 0 00-.03.16c-.002.025-.007.05-.008.074a1.527 1.527 0 00.213.929c.302.508.85.792 1.414.792.277 0 .558-.068.814-.212l.815-.457v-.914L12 11.088z",
52
+ fill: "#012F8D"
53
+ })]
54
+ })]
55
+ }));
56
+ });
57
+ 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: "M11.32 1.176a1.4 1.4 0 011.36 0l8.64 4.843c.421.234.68.67.68 1.141v9.68c0 .472-.259.908-.68 1.143l-8.64 4.84a1.4 1.4 0 01-1.36 0l-8.64-4.84A1.31 1.31 0 012 16.84V7.159c0-.471.259-.907.68-1.142l8.64-4.84zm7.42 13.839V8.227L12.002 12 12 19.551l6.059-3.394a1.31 1.31 0 00.68-1.142zM12.68 4.833a1.393 1.393 0 00-1.36 0L5.944 7.846c-.421.235-.68.67-.68 1.142v6.027c0 .47.259.905.68 1.142l2.795 1.566V11.09a1.546 1.546 0 00.221.79 1.527 1.527 0 01-.216-.834l.004-.094.02-.15.018-.084.017-.062.039-.117.062-.142.035-.065.081-.13.094-.122.084-.091.08-.075.125-.1.071-.048.134-.076 5.87-3.29-2.796-1.566z"
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 47 24",
24
+ xmlns: "http://www.w3.org/2000/svg"
25
+ }, rest), {}, {
26
+ children: /*#__PURE__*/_jsx("path", {
27
+ d: "M14.205 2.235H10.59v1.878H2.149v2.28H4.75c1.415 4.332 3.262 7.642 5.478 10.077C8.038 17.998 5.307 19.063 2 19.635V22c3.878-.142 7.345-1.256 10.293-3.594 2.949 2.34 6.417 3.452 10.294 3.594v-2.365c-3.307-.572-6.038-1.637-8.229-3.165 2.217-2.435 4.064-5.745 5.478-10.076h2.75v-2.28h-8.382V2.234h.001zm-1.91 12.499c-2.137-2.165-3.541-4.958-4.26-8.339h8.522c-.718 3.38-2.123 6.174-4.26 8.339h-.002zm12.812-4.09c0 3.295-.491 7.58-.692 9.186h2.892c.227-1.867.67-5.916.67-9.186V6.173h-2.872v4.47h.002zm7.64-7.254v14.507c0 .804.436 1.377 1.396 1.377h1.244l6.023-.001v2.4h-7.202v-.026c-.338-.004-.74-.006-1.216-.006-2.554 0-3.313-.886-3.313-3.744V3.39h3.067zM43.89 6.06C44.453 9.666 45 14.418 45 19.275h-2.872c0-4.84-.582-9.655-1.153-13.213zM37.993 2c.36 2.315.733 5.556.733 9.034V16h-2.87v-4.967c0-3.5-.41-6.803-.774-9.034h2.911z"
28
+ })
29
+ }));
30
+ });
31
+ export default Icon;
@@ -0,0 +1,16 @@
1
+ import Avatar from './components/Avatar';
2
+ import Color from './components/Color';
3
+ import Combine from './components/Combine';
4
+ import Mono from './components/Mono';
5
+ import Text from './components/Text';
6
+ export type CompoundedIcon = typeof Mono & {
7
+ Avatar: typeof Avatar;
8
+ Color: typeof Color;
9
+ Combine: typeof Combine;
10
+ Mono: typeof Mono;
11
+ Text: typeof Text;
12
+ colorGradient: string;
13
+ colorPrimary: string;
14
+ };
15
+ declare const Icons: CompoundedIcon;
16
+ export default Icons;
@@ -0,0 +1,14 @@
1
+ import Avatar from "./components/Avatar";
2
+ import Color from "./components/Color";
3
+ import Combine from "./components/Combine";
4
+ import Mono from "./components/Mono";
5
+ import Text from "./components/Text";
6
+ import { COLOR_GRADIENT, COLOR_PRIMARY } 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.colorGradient = COLOR_GRADIENT;
14
+ export default Icons;
@@ -0,0 +1,4 @@
1
+ export declare const TEXT_MULTIPLE = 0.75;
2
+ export declare const SPACE_MULTIPLE = 0.2;
3
+ export declare const COLOR_PRIMARY = "#167ADF";
4
+ export declare const COLOR_GRADIENT = "linear-gradient(to right, #0A51C3, #23A4FB)";
@@ -0,0 +1,4 @@
1
+ export var TEXT_MULTIPLE = 0.75;
2
+ export var SPACE_MULTIPLE = 0.2;
3
+ export var COLOR_PRIMARY = '#167ADF';
4
+ export var COLOR_GRADIENT = 'linear-gradient(to right, #0A51C3, #23A4FB)';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type AvatarProps } from '@lobehub/ui';
2
+ import { type IconAvatarProps } from "../../IconAvatar";
3
+ export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
3
4
  declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
4
5
  export default Avatar;
@@ -1,28 +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"];
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
- import { Avatar as A } from '@lobehub/ui';
7
- import { readableColor } from 'polished';
8
6
  import { memo } from 'react';
7
+ import IconAvatar from "../../IconAvatar";
9
8
  import { COLOR_PRIMARY } from "../style";
10
9
  import Mono from "./Mono";
11
10
  import { jsx as _jsx } from "react/jsx-runtime";
12
11
  var Avatar = /*#__PURE__*/memo(function (_ref) {
13
- var _ref$size = _ref.size,
14
- size = _ref$size === void 0 ? 64 : _ref$size,
15
- style = _ref.style,
12
+ var background = _ref.background,
16
13
  rest = _objectWithoutProperties(_ref, _excluded);
17
- return /*#__PURE__*/_jsx(A, _objectSpread({
18
- avatar: /*#__PURE__*/_jsx(Mono, {
19
- size: size * 0.75
20
- }),
21
- background: COLOR_PRIMARY,
22
- size: size,
23
- style: _objectSpread({
24
- color: readableColor(COLOR_PRIMARY)
25
- }, style)
14
+ return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
15
+ Icon: Mono,
16
+ background: background || COLOR_PRIMARY
26
17
  }, rest));
27
18
  });
28
19
  export default Avatar;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { type FlexboxProps } from 'react-layout-kit';
3
- export interface CombineProps extends FlexboxProps {
4
- size?: number;
2
+ import { type IconCombineProps } from "../../IconCombine";
3
+ export interface CombineProps extends Omit<IconCombineProps, 'Icon' | 'Text'> {
5
4
  type?: 'color' | 'mono';
6
5
  }
7
6
  declare const Combine: import("react").NamedExoticComponent<CombineProps>;