@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.
- 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 +2 -1
- package/es/ChatGLM/components/Avatar.js +11 -18
- package/es/ChatGLM/components/Color.js +6 -2
- package/es/ChatGLM/components/Combine.d.ts +2 -3
- package/es/ChatGLM/components/Combine.js +8 -17
- package/es/ChatGLM/index.d.ts +3 -2
- package/es/ChatGLM/index.js +2 -1
- package/es/ChatGLM/style.d.ts +1 -0
- package/es/ChatGLM/style.js +2 -1
- 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 +9 -3
- package/es/IconAvatar/index.js +13 -2
- 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 +2 -1
- package/es/Tongyi/components/Avatar.js +7 -18
- package/es/Tongyi/components/Color.js +6 -2
- package/es/Tongyi/components/Combine.d.ts +2 -3
- package/es/Tongyi/components/Combine.js +12 -17
- package/es/Tongyi/components/Text.js +1 -1
- package/es/Tongyi/index.d.ts +3 -2
- package/es/Tongyi/index.js +2 -1
- package/es/Tongyi/style.d.ts +1 -0
- package/es/Tongyi/style.js +2 -1
- package/es/Wenxin/components/Avatar.d.ts +2 -1
- package/es/Wenxin/components/Avatar.js +7 -18
- package/es/Wenxin/components/Color.js +6 -2
- package/es/Wenxin/components/Combine.d.ts +2 -3
- package/es/Wenxin/components/Combine.js +8 -17
- package/es/Wenxin/components/Mono.js +3 -19
- package/es/Wenxin/index.d.ts +3 -2
- package/es/Wenxin/index.js +2 -1
- package/es/Wenxin/style.d.ts +1 -0
- package/es/Wenxin/style.js +2 -1
- package/es/Zhipu/components/Avatar.d.ts +2 -1
- package/es/Zhipu/components/Avatar.js +6 -17
- package/es/Zhipu/components/Combine.d.ts +2 -3
- package/es/Zhipu/components/Combine.js +8 -17
- package/es/Zhipu/index.d.ts +2 -2
- package/es/components/ColorPreview/index.js +1 -1
- package/es/hooks/useFillId.d.ts +4 -0
- package/es/hooks/useFillId.js +7 -0
- package/es/index.d.ts +10 -4
- package/es/index.js +6 -0
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
export interface CombineProps extends
|
|
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>;
|
|
@@ -1,34 +1,29 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["type", "
|
|
3
|
+
var _excluded = ["type", "extraStyle"];
|
|
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
|
-
import
|
|
7
|
+
import IconCombine from "../../IconCombine";
|
|
8
8
|
import { SPACE_MULTIPLE, TEXT_MULTIPLE } from "../style";
|
|
9
9
|
import Color from "./Color";
|
|
10
10
|
import Mono from "./Mono";
|
|
11
11
|
import Text from "./Text";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
15
14
|
var _ref$type = _ref.type,
|
|
16
15
|
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
17
|
-
|
|
18
|
-
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
16
|
+
extraStyle = _ref.extraStyle,
|
|
19
17
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
18
|
var Icon = type === 'color' ? Color : Mono;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
size: size * TEXT_MULTIPLE
|
|
31
|
-
})]
|
|
32
|
-
}));
|
|
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));
|
|
33
28
|
});
|
|
34
29
|
export default Combine;
|
|
@@ -20,7 +20,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20
20
|
lineHeight: 1,
|
|
21
21
|
width: 'fit-content'
|
|
22
22
|
}, style),
|
|
23
|
-
viewBox: "0 0
|
|
23
|
+
viewBox: "0 0 50 24",
|
|
24
24
|
xmlns: "http://www.w3.org/2000/svg"
|
|
25
25
|
}, rest), {}, {
|
|
26
26
|
children: /*#__PURE__*/_jsx("path", {
|
package/es/Tongyi/index.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ import Color from './components/Color';
|
|
|
3
3
|
import Combine from './components/Combine';
|
|
4
4
|
import Mono from './components/Mono';
|
|
5
5
|
import Text from './components/Text';
|
|
6
|
-
type
|
|
6
|
+
export type CompoundedIcon = typeof Mono & {
|
|
7
7
|
Avatar: typeof Avatar;
|
|
8
8
|
Color: typeof Color;
|
|
9
9
|
Combine: typeof Combine;
|
|
10
10
|
Mono: typeof Mono;
|
|
11
11
|
Text: typeof Text;
|
|
12
|
+
colorGradient: string;
|
|
12
13
|
colorPrimary: string;
|
|
13
14
|
};
|
|
14
|
-
declare const Icons:
|
|
15
|
+
declare const Icons: CompoundedIcon;
|
|
15
16
|
export default Icons;
|
package/es/Tongyi/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import Color from "./components/Color";
|
|
|
3
3
|
import Combine from "./components/Combine";
|
|
4
4
|
import Mono from "./components/Mono";
|
|
5
5
|
import Text from "./components/Text";
|
|
6
|
-
import { COLOR_PRIMARY } from "./style";
|
|
6
|
+
import { COLOR_GRADIENT, COLOR_PRIMARY } from "./style";
|
|
7
7
|
var Icons = Mono;
|
|
8
8
|
Icons.Color = Color;
|
|
9
9
|
Icons.Text = Text;
|
|
10
10
|
Icons.Combine = Combine;
|
|
11
11
|
Icons.Avatar = Avatar;
|
|
12
12
|
Icons.colorPrimary = COLOR_PRIMARY;
|
|
13
|
+
Icons.colorGradient = COLOR_GRADIENT;
|
|
13
14
|
export default Icons;
|
package/es/Tongyi/style.d.ts
CHANGED
package/es/Tongyi/style.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type IconAvatarProps } from "../../IconAvatar";
|
|
3
|
-
|
|
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 = ["
|
|
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 {
|
|
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
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
background:
|
|
20
|
-
|
|
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('wenxin'),
|
|
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:
|
|
31
|
+
id: id,
|
|
28
32
|
x1: "9.155%",
|
|
29
33
|
x2: "90.531%",
|
|
30
34
|
y1: "75.177%",
|
|
@@ -42,7 +46,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
42
46
|
fillRule: "nonzero",
|
|
43
47
|
children: [/*#__PURE__*/_jsx("path", {
|
|
44
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",
|
|
45
|
-
fill:
|
|
49
|
+
fill: fill
|
|
46
50
|
}), /*#__PURE__*/_jsx("path", {
|
|
47
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",
|
|
48
52
|
fill: "#012F8D"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
export interface CombineProps extends
|
|
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>;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["type"
|
|
3
|
+
var _excluded = ["type"];
|
|
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
|
-
import
|
|
7
|
+
import IconCombine from "../../IconCombine";
|
|
8
8
|
import { SPACE_MULTIPLE, TEXT_MULTIPLE } from "../style";
|
|
9
9
|
import Color from "./Color";
|
|
10
10
|
import Mono from "./Mono";
|
|
11
11
|
import Text from "./Text";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
15
14
|
var _ref$type = _ref.type,
|
|
16
15
|
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
17
|
-
_ref$size = _ref.size,
|
|
18
|
-
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
19
16
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
17
|
var Icon = type === 'color' ? Color : Mono;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, rest)
|
|
27
|
-
children: [/*#__PURE__*/_jsx(Icon, {
|
|
28
|
-
size: size
|
|
29
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
30
|
-
size: size * TEXT_MULTIPLE
|
|
31
|
-
})]
|
|
32
|
-
}));
|
|
18
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
19
|
+
Icon: Icon,
|
|
20
|
+
Text: Text,
|
|
21
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
22
|
+
textMultiple: TEXT_MULTIPLE
|
|
23
|
+
}, rest));
|
|
33
24
|
});
|
|
34
25
|
export default Combine;
|
|
@@ -5,13 +5,12 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
9
|
var _ref$size = _ref.size,
|
|
11
10
|
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
12
11
|
style = _ref.style,
|
|
13
12
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
return /*#__PURE__*/
|
|
13
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
15
14
|
fill: "currentColor",
|
|
16
15
|
fillRule: "evenodd",
|
|
17
16
|
height: size,
|
|
@@ -24,24 +23,9 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
24
23
|
width: size,
|
|
25
24
|
xmlns: "http://www.w3.org/2000/svg"
|
|
26
25
|
}, rest), {}, {
|
|
27
|
-
children:
|
|
28
|
-
children: /*#__PURE__*/_jsxs("linearGradient", {
|
|
29
|
-
id: "a",
|
|
30
|
-
x1: "9.155%",
|
|
31
|
-
x2: "90.531%",
|
|
32
|
-
y1: "75.177%",
|
|
33
|
-
y2: "25.028%",
|
|
34
|
-
children: [/*#__PURE__*/_jsx("stop", {
|
|
35
|
-
offset: "0%",
|
|
36
|
-
stopColor: "#0A51C3"
|
|
37
|
-
}), /*#__PURE__*/_jsx("stop", {
|
|
38
|
-
offset: "100%",
|
|
39
|
-
stopColor: "#23A4FB"
|
|
40
|
-
})]
|
|
41
|
-
})
|
|
42
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
26
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
43
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"
|
|
44
|
-
})
|
|
28
|
+
})
|
|
45
29
|
}));
|
|
46
30
|
});
|
|
47
31
|
export default Icon;
|
package/es/Wenxin/index.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ import Color from './components/Color';
|
|
|
3
3
|
import Combine from './components/Combine';
|
|
4
4
|
import Mono from './components/Mono';
|
|
5
5
|
import Text from './components/Text';
|
|
6
|
-
type
|
|
6
|
+
export type CompoundedIcon = typeof Mono & {
|
|
7
7
|
Avatar: typeof Avatar;
|
|
8
8
|
Color: typeof Color;
|
|
9
9
|
Combine: typeof Combine;
|
|
10
10
|
Mono: typeof Mono;
|
|
11
11
|
Text: typeof Text;
|
|
12
|
+
colorGradient: string;
|
|
12
13
|
colorPrimary: string;
|
|
13
14
|
};
|
|
14
|
-
declare const Icons:
|
|
15
|
+
declare const Icons: CompoundedIcon;
|
|
15
16
|
export default Icons;
|
package/es/Wenxin/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import Color from "./components/Color";
|
|
|
3
3
|
import Combine from "./components/Combine";
|
|
4
4
|
import Mono from "./components/Mono";
|
|
5
5
|
import Text from "./components/Text";
|
|
6
|
-
import { COLOR_PRIMARY } from "./style";
|
|
6
|
+
import { COLOR_GRADIENT, COLOR_PRIMARY } from "./style";
|
|
7
7
|
var Icons = Mono;
|
|
8
8
|
Icons.Color = Color;
|
|
9
9
|
Icons.Text = Text;
|
|
10
10
|
Icons.Combine = Combine;
|
|
11
11
|
Icons.Avatar = Avatar;
|
|
12
12
|
Icons.colorPrimary = COLOR_PRIMARY;
|
|
13
|
+
Icons.colorGradient = COLOR_GRADIENT;
|
|
13
14
|
export default Icons;
|
package/es/Wenxin/style.d.ts
CHANGED
package/es/Wenxin/style.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type IconAvatarProps } from "../../IconAvatar";
|
|
3
|
-
|
|
3
|
+
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
+
declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
|
|
4
5
|
export default Avatar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
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';
|
|
@@ -9,22 +9,11 @@ import { COLOR_PRIMARY } 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
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
background:
|
|
20
|
-
|
|
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_PRIMARY
|
|
17
|
+
}, rest));
|
|
29
18
|
});
|
|
30
19
|
export default Avatar;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
export interface CombineProps extends
|
|
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>;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["type"
|
|
3
|
+
var _excluded = ["type"];
|
|
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
|
-
import
|
|
7
|
+
import IconCombine from "../../IconCombine";
|
|
8
8
|
import { SPACE_MULTIPLE, TEXT_MULTIPLE } from "../style";
|
|
9
9
|
import Color from "./Color";
|
|
10
10
|
import Mono from "./Mono";
|
|
11
11
|
import Text from "./Text";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
15
14
|
var _ref$type = _ref.type,
|
|
16
15
|
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
17
|
-
_ref$size = _ref.size,
|
|
18
|
-
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
19
16
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
17
|
var Icon = type === 'color' ? Color : Mono;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, rest)
|
|
27
|
-
children: [/*#__PURE__*/_jsx(Icon, {
|
|
28
|
-
size: size
|
|
29
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
30
|
-
size: size * TEXT_MULTIPLE
|
|
31
|
-
})]
|
|
32
|
-
}));
|
|
18
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
19
|
+
Icon: Icon,
|
|
20
|
+
Text: Text,
|
|
21
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
22
|
+
textMultiple: TEXT_MULTIPLE
|
|
23
|
+
}, rest));
|
|
33
24
|
});
|
|
34
25
|
export default Combine;
|
package/es/Zhipu/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import Color from './components/Color';
|
|
|
3
3
|
import Combine from './components/Combine';
|
|
4
4
|
import Mono from './components/Mono';
|
|
5
5
|
import Text from './components/Text';
|
|
6
|
-
type
|
|
6
|
+
export type CompoundedIcon = typeof Mono & {
|
|
7
7
|
Avatar: typeof Avatar;
|
|
8
8
|
Color: typeof Color;
|
|
9
9
|
Combine: typeof Combine;
|
|
@@ -11,5 +11,5 @@ type CompoundedComponent = typeof Mono & {
|
|
|
11
11
|
Text: typeof Text;
|
|
12
12
|
colorPrimary: string;
|
|
13
13
|
};
|
|
14
|
-
declare const Icons:
|
|
14
|
+
declare const Icons: CompoundedIcon;
|
|
15
15
|
export default Icons;
|
|
@@ -12,7 +12,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
12
12
|
cx = _ref.cx;
|
|
13
13
|
return {
|
|
14
14
|
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: 4px;\n right: 4px;\n opacity: 0;\n "])))),
|
|
15
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n width: 98px;\n height: 98px;\n\n font-family: ", ";\n line-height: 1;\n\n background: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), token.fontFamilyCode, token.colorBgContainer, token.colorBorder, token.borderRadius)
|
|
15
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n min-width: 98px;\n height: 98px;\n padding-inline: 16px;\n\n font-family: ", ";\n line-height: 1;\n\n background: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), token.fontFamilyCode, token.colorBgContainer, token.colorBorder, token.borderRadius)
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
18
|
var IconPreview = /*#__PURE__*/memo(function (_ref2) {
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
1
|
+
export { default as Anthropic, type CompoundedIcon as AnthropicProps } from './Anthropic';
|
|
2
|
+
export { default as ChatGLM, type CompoundedIcon as ChatGLMProps } from './ChatGLM';
|
|
3
|
+
export { default as Dalle, type CompoundedIcon as DalleProps } from './Dalle';
|
|
4
|
+
export { default as Gemini, type CompoundedIcon as GeminiProps } from './Gemini';
|
|
5
|
+
export { default as IconAvatar, type IconAvatarProps } from './IconAvatar';
|
|
6
|
+
export { default as IconCombine, type IconCombineProps } from './IconCombine';
|
|
7
|
+
export { default as OpenAI, type CompoundedIcon as OpenAIProps } from './OpenAI';
|
|
8
|
+
export { default as Tongyi, type CompoundedIcon as TongyiProps } from './Tongyi';
|
|
3
9
|
export type { IconType } from './types';
|
|
4
|
-
export { default as Wenxin } from './Wenxin';
|
|
5
|
-
export { default as Zhipu } from './Zhipu';
|
|
10
|
+
export { default as Wenxin, type CompoundedIcon as WenxinProps } from './Wenxin';
|
|
11
|
+
export { default as Zhipu, type CompoundedIcon as ZhipuProps } from './Zhipu';
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
export { default as Anthropic } from "./Anthropic";
|
|
1
2
|
export { default as ChatGLM } from "./ChatGLM";
|
|
3
|
+
export { default as Dalle } from "./Dalle";
|
|
4
|
+
export { default as Gemini } from "./Gemini";
|
|
5
|
+
export { default as IconAvatar } from "./IconAvatar";
|
|
6
|
+
export { default as IconCombine } from "./IconCombine";
|
|
7
|
+
export { default as OpenAI } from "./OpenAI";
|
|
2
8
|
export { default as Tongyi } from "./Tongyi";
|
|
3
9
|
export { default as Wenxin } from "./Wenxin";
|
|
4
10
|
export { default as Zhipu } from "./Zhipu";
|