@lobehub/icons 4.0.0 → 4.0.2
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/components/ColorPreview/index.js +4 -7
- package/es/components/Dashboard/IconItem.js +6 -9
- package/es/components/Dashboard/Text.js +4 -6
- package/es/components/Dashboard/index.js +2 -3
- package/es/components/Editor/Color.js +2 -4
- package/es/components/Editor/Mono.js +2 -4
- package/es/components/Editor/Preview.js +2 -4
- package/es/components/Editor/Text.js +2 -4
- package/es/components/Editor/index.js +4 -6
- package/es/components/IconPreview/ColorPreview.js +4 -7
- package/es/components/IconPreview/index.js +4 -8
- package/es/features/ModelIcon/DefaultAvatar.js +2 -3
- package/es/features/ModelIcon/DefaultIcon.js +2 -3
- package/es/features/ProviderIcon/DefaultAvatar.js +2 -3
- package/es/features/ProviderIcon/DefaultIcon.js +2 -3
- package/package.json +3 -3
|
@@ -3,22 +3,19 @@
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
import { CopyButton, Flexbox, Tooltip } from '@lobehub/ui';
|
|
6
|
-
import {
|
|
6
|
+
import { createStaticStyles, cx } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
var
|
|
9
|
+
var styles = createStaticStyles(function (_ref) {
|
|
10
10
|
var css = _ref.css,
|
|
11
|
-
|
|
12
|
-
cx = _ref.cx;
|
|
11
|
+
cssVar = _ref.cssVar;
|
|
13
12
|
return {
|
|
14
13
|
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\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 border: 1px solid ", ";\n border-radius: ", "
|
|
14
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n width: 98px;\n height: 98px;\n border: 1px solid ", ";\n border-radius: ", ";\n\n background: ", ";\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), cssVar.colorBorder, cssVar.borderRadius, cssVar.colorBgContainer)
|
|
16
15
|
};
|
|
17
16
|
});
|
|
18
17
|
var IconPreview = /*#__PURE__*/memo(function (_ref2) {
|
|
19
18
|
var color = _ref2.color;
|
|
20
|
-
var _useStyles = useStyles(),
|
|
21
|
-
styles = _useStyles.styles;
|
|
22
19
|
return /*#__PURE__*/_jsx(Tooltip, {
|
|
23
20
|
title: color,
|
|
24
21
|
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
import { ActionIcon, Block, Center, CopyButton, Flexbox, Text } from '@lobehub/ui';
|
|
6
|
-
import {
|
|
6
|
+
import { createStaticStyles, cx } from 'antd-style';
|
|
7
7
|
import { Link } from 'dumi';
|
|
8
8
|
import { DownloadIcon, SearchIcon } from 'lucide-react';
|
|
9
9
|
import { readableColor } from 'polished';
|
|
@@ -11,18 +11,17 @@ import { memo, useCallback, useRef } from 'react';
|
|
|
11
11
|
import { customKebabCase } from "./utils";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
token = _ref.token;
|
|
14
|
+
var styles = createStaticStyles(function (_ref) {
|
|
15
|
+
var css = _ref.css,
|
|
16
|
+
cssVar = _ref.cssVar;
|
|
18
17
|
var colorText = cx('color-text', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
19
18
|
var copy = cx('copy', css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n z-index: 1;\n display: none !important;\n "]))));
|
|
20
19
|
return {
|
|
21
20
|
card: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n "]))),
|
|
22
|
-
color: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border-inline-end: 1px solid ", ";\n font-family: ", ";\n\n &:hover {\n .color-text {\n display: none;\n }\n\n .copy {\n display: flex !important;\n }\n }\n "])),
|
|
21
|
+
color: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border-inline-end: 1px solid ", ";\n font-family: ", ";\n\n &:hover {\n .color-text {\n display: none;\n }\n\n .copy {\n display: flex !important;\n }\n }\n "])), cssVar.colorBorderSecondary, cssVar.fontFamilyCode),
|
|
23
22
|
colorText: colorText,
|
|
24
23
|
copy: copy,
|
|
25
|
-
row: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-block-start: 1px solid ", ";\n "])),
|
|
24
|
+
row: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-block-start: 1px solid ", ";\n "])), cssVar.colorFillSecondary),
|
|
26
25
|
title: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 0;\n font-size: 16px;\n font-weight: bold;\n "]))),
|
|
27
26
|
titleRow: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-block-start: -8px;\n\n &:hover {\n .copy {\n display: flex;\n }\n }\n "])))
|
|
28
27
|
};
|
|
@@ -32,8 +31,6 @@ var IconItem = /*#__PURE__*/memo(function (_ref2) {
|
|
|
32
31
|
title = _ref2.title,
|
|
33
32
|
color = _ref2.color,
|
|
34
33
|
id = _ref2.id;
|
|
35
|
-
var _useStyles = useStyles(),
|
|
36
|
-
styles = _useStyles.styles;
|
|
37
34
|
var ref = useRef(null);
|
|
38
35
|
var handleDownload = useCallback(function (iconId) {
|
|
39
36
|
var _ref$current;
|
|
@@ -5,24 +5,22 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
5
5
|
import * as Icons from "../..";
|
|
6
6
|
import { Flexbox } from '@lobehub/ui';
|
|
7
7
|
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
|
|
8
|
-
import {
|
|
8
|
+
import { createStaticStyles } from 'antd-style';
|
|
9
9
|
import { memo } from 'react';
|
|
10
10
|
import IconPreview from "../IconPreview";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var data = Object.values(Icons).filter(function (icon) {
|
|
13
13
|
return icon === null || icon === void 0 ? void 0 : icon.colorPrimary;
|
|
14
14
|
});
|
|
15
|
-
var
|
|
15
|
+
var styles = createStaticStyles(function (_ref) {
|
|
16
16
|
var css = _ref.css,
|
|
17
|
-
|
|
17
|
+
cssVar = _ref.cssVar;
|
|
18
18
|
return {
|
|
19
|
-
item: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 96px;\n padding: 16px;\n border: none;\n background: ", ";\n "])),
|
|
19
|
+
item: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 96px;\n padding: 16px;\n border: none;\n background: ", ";\n "])), cssVar.colorBgContainer)
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
var Dashboard = /*#__PURE__*/memo(function (_ref2) {
|
|
23
23
|
var className = _ref2.className;
|
|
24
|
-
var _useStyles = useStyles(),
|
|
25
|
-
styles = _useStyles.styles;
|
|
26
24
|
var store = useCreateStore();
|
|
27
25
|
var _useControls = useControls({
|
|
28
26
|
color: {
|
|
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
9
9
|
import * as Icons from "../..";
|
|
10
10
|
import { Flexbox, Grid, SearchBar } from '@lobehub/ui';
|
|
11
11
|
import { Empty, Segmented } from 'antd';
|
|
12
|
-
import {
|
|
12
|
+
import { cssVar } from 'antd-style';
|
|
13
13
|
import { memo, useMemo, useState } from 'react';
|
|
14
14
|
import IconItem from "./IconItem";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -20,7 +20,6 @@ var ColorType = /*#__PURE__*/function (ColorType) {
|
|
|
20
20
|
return ColorType;
|
|
21
21
|
}(ColorType || {});
|
|
22
22
|
var Dashboard = /*#__PURE__*/memo(function () {
|
|
23
|
-
var theme = useTheme();
|
|
24
23
|
var _useState = useState(ColorType.Color),
|
|
25
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
25
|
type = _useState2[0],
|
|
@@ -74,7 +73,7 @@ var Dashboard = /*#__PURE__*/memo(function () {
|
|
|
74
73
|
value: ColorType.Mono
|
|
75
74
|
}],
|
|
76
75
|
style: {
|
|
77
|
-
border: "1px solid ".concat(
|
|
76
|
+
border: "1px solid ".concat(cssVar.colorBorder)
|
|
78
77
|
}
|
|
79
78
|
})]
|
|
80
79
|
}), iconsGroup.length > 0 ? /*#__PURE__*/_jsx(Grid, {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
import { Flexbox, Highlighter } from '@lobehub/ui';
|
|
6
|
-
import {
|
|
6
|
+
import { createStaticStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var
|
|
10
|
+
var styles = createStaticStyles(function (_ref) {
|
|
11
11
|
var css = _ref.css;
|
|
12
12
|
return {
|
|
13
13
|
code: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n pre {\n padding: 8px !important;\n }\n\n code {\n font-size: 12px;\n text-wrap: initial;\n }\n "])))
|
|
@@ -18,8 +18,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
18
18
|
title = _ref2.title,
|
|
19
19
|
viewbox = _ref2.viewbox,
|
|
20
20
|
textMode = _ref2.textMode;
|
|
21
|
-
var _useStyles = useStyles(),
|
|
22
|
-
styles = _useStyles.styles;
|
|
23
21
|
var sizeAttributes = textMode ? "height={size}\n style={{ flex: 'none', lineHeight: 1, ...style }}" : "height={size}\n style={{ flex: 'none', lineHeight: 1, ...style }}\n width={size}";
|
|
24
22
|
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
25
23
|
flex: 'none',
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
import { Flexbox, Highlighter } from '@lobehub/ui';
|
|
6
|
-
import {
|
|
6
|
+
import { createStaticStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var
|
|
10
|
+
var styles = createStaticStyles(function (_ref) {
|
|
11
11
|
var css = _ref.css;
|
|
12
12
|
return {
|
|
13
13
|
code: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n pre {\n padding: 8px !important;\n }\n\n code {\n font-size: 12px;\n text-wrap: initial;\n }\n "])))
|
|
@@ -17,8 +17,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
17
17
|
var svg = _ref2.svg,
|
|
18
18
|
title = _ref2.title,
|
|
19
19
|
viewbox = _ref2.viewbox;
|
|
20
|
-
var _useStyles = useStyles(),
|
|
21
|
-
styles = _useStyles.styles;
|
|
22
20
|
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
23
21
|
flex: 'none',
|
|
24
22
|
gap: 16,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import { Flexbox, Highlighter, Tag } from '@lobehub/ui';
|
|
4
|
-
import {
|
|
4
|
+
import { createStaticStyles } from 'antd-style';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import IconPreview from "../IconPreview";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
var
|
|
9
|
+
var styles = createStaticStyles(function (_ref) {
|
|
10
10
|
var css = _ref.css;
|
|
11
11
|
return {
|
|
12
12
|
code: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n height: 96px;\n\n pre {\n padding: 8px !important;\n }\n\n code {\n font-size: 12px;\n text-wrap: initial;\n }\n "])))
|
|
@@ -17,8 +17,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
17
17
|
title = _ref2.title,
|
|
18
18
|
precent = _ref2.precent,
|
|
19
19
|
ref = _ref2.ref;
|
|
20
|
-
var _useStyles = useStyles(),
|
|
21
|
-
styles = _useStyles.styles;
|
|
22
20
|
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
23
21
|
flex: 'none',
|
|
24
22
|
gap: 16,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
import { Flexbox, Highlighter } from '@lobehub/ui';
|
|
6
|
-
import {
|
|
6
|
+
import { createStaticStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var
|
|
10
|
+
var styles = createStaticStyles(function (_ref) {
|
|
11
11
|
var css = _ref.css;
|
|
12
12
|
return {
|
|
13
13
|
code: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n pre {\n padding: 8px !important;\n }\n\n code {\n font-size: 12px;\n text-wrap: initial;\n }\n "])))
|
|
@@ -17,8 +17,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
17
17
|
var svg = _ref2.svg,
|
|
18
18
|
title = _ref2.title,
|
|
19
19
|
viewbox = _ref2.viewbox;
|
|
20
|
-
var _useStyles = useStyles(),
|
|
21
|
-
styles = _useStyles.styles;
|
|
22
20
|
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
23
21
|
flex: 'none',
|
|
24
22
|
gap: 16,
|
|
@@ -14,7 +14,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
import { Flexbox } from '@lobehub/ui';
|
|
16
16
|
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
|
|
17
|
-
import {
|
|
17
|
+
import { createStaticStyles } from 'antd-style';
|
|
18
18
|
import { useEffect, useRef, useState } from 'react';
|
|
19
19
|
import { useSvgo } from "./useSvgo";
|
|
20
20
|
import Color from "./Color";
|
|
@@ -25,11 +25,11 @@ import { svgIcon } from "./data";
|
|
|
25
25
|
import { defaultPlugins } from "./svgo";
|
|
26
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
27
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
-
var
|
|
28
|
+
var styles = createStaticStyles(function (_ref) {
|
|
29
29
|
var css = _ref.css,
|
|
30
|
-
|
|
30
|
+
cssVar = _ref.cssVar;
|
|
31
31
|
return {
|
|
32
|
-
container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", "
|
|
32
|
+
container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n "])), cssVar.colorBorder, cssVar.borderRadius)
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
export default (function () {
|
|
@@ -47,8 +47,6 @@ export default (function () {
|
|
|
47
47
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
48
48
|
monoSvg = _useState6[0],
|
|
49
49
|
setMonoSvg = _useState6[1];
|
|
50
|
-
var _useStyles = useStyles(),
|
|
51
|
-
styles = _useStyles.styles;
|
|
52
50
|
var levaStore = useCreateStore();
|
|
53
51
|
var _useControls = useControls({
|
|
54
52
|
svg: {
|
|
@@ -3,23 +3,20 @@
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
import { CopyButton, Flexbox } from '@lobehub/ui';
|
|
6
|
-
import {
|
|
6
|
+
import { createStaticStyles, cx } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var
|
|
10
|
+
var styles = createStaticStyles(function (_ref) {
|
|
11
11
|
var css = _ref.css,
|
|
12
|
-
|
|
13
|
-
cx = _ref.cx;
|
|
12
|
+
cssVar = _ref.cssVar;
|
|
14
13
|
return {
|
|
15
14
|
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 4px;\n inset-inline-end: 4px;\n opacity: 0;\n "])))),
|
|
16
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n width: 98px;\n height: 98px;\n border: 1px solid ", ";\n border-radius: ", "
|
|
15
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n width: 98px;\n height: 98px;\n border: 1px solid ", ";\n border-radius: ", ";\n\n font-family: ", ";\n line-height: 1;\n\n background: ", ";\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), cssVar.colorBorder, cssVar.borderRadius, cssVar.fontFamilyCode, cssVar.colorBgContainer)
|
|
17
16
|
};
|
|
18
17
|
});
|
|
19
18
|
var IconPreview = /*#__PURE__*/memo(function (_ref2) {
|
|
20
19
|
var color = _ref2.color;
|
|
21
|
-
var _useStyles = useStyles(),
|
|
22
|
-
styles = _useStyles.styles;
|
|
23
20
|
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
24
21
|
align: 'center',
|
|
25
22
|
className: styles.container,
|
|
@@ -10,18 +10,17 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
import { Flexbox } from '@lobehub/ui';
|
|
13
|
-
import {
|
|
13
|
+
import { createStaticStyles, cx } from 'antd-style';
|
|
14
14
|
import { memo, useRef } from 'react';
|
|
15
15
|
import DownloadButton from "../DownloadButton";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var
|
|
18
|
+
var styles = createStaticStyles(function (_ref) {
|
|
19
19
|
var css = _ref.css,
|
|
20
|
-
|
|
21
|
-
cx = _ref.cx;
|
|
20
|
+
cssVar = _ref.cssVar;
|
|
22
21
|
return {
|
|
23
22
|
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n inset-block-start: 4px;\n inset-inline-end: 4px;\n opacity: 0;\n "])))),
|
|
24
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n padding: 12px;\n border: 1px solid ", ";\n border-radius: ", "
|
|
23
|
+
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n padding: 12px;\n border: 1px solid ", ";\n border-radius: ", ";\n\n line-height: 1;\n\n background: ", ";\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), cssVar.colorBorder, cssVar.borderRadius, cssVar.colorBgContainer),
|
|
25
24
|
inner: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: auto;\n min-width: 72px;\n height: 72px;\n\n font-size: 72px;\n line-height: 1;\n "])))
|
|
26
25
|
};
|
|
27
26
|
});
|
|
@@ -29,9 +28,6 @@ var IconPreview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
29
28
|
var className = _ref2.className,
|
|
30
29
|
children = _ref2.children,
|
|
31
30
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
32
|
-
var _useStyles = useStyles(),
|
|
33
|
-
cx = _useStyles.cx,
|
|
34
|
-
styles = _useStyles.styles;
|
|
35
31
|
var ref = useRef(null);
|
|
36
32
|
var isString = typeof children === 'string';
|
|
37
33
|
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { Center } from '@lobehub/ui';
|
|
8
|
-
import {
|
|
8
|
+
import { cssVar } from 'antd-style';
|
|
9
9
|
import { memo } from 'react';
|
|
10
10
|
import DefaultIcon from "./DefaultIcon";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -20,11 +20,10 @@ var DefaultAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
20
20
|
iconMultiple = _ref$iconMultiple === void 0 ? 0.6 : _ref$iconMultiple,
|
|
21
21
|
iconStyle = _ref.iconStyle,
|
|
22
22
|
iconClassName = _ref.iconClassName;
|
|
23
|
-
var theme = useTheme();
|
|
24
23
|
return /*#__PURE__*/_jsx(Center, {
|
|
25
24
|
flex: 'none',
|
|
26
25
|
style: _objectSpread({
|
|
27
|
-
background: background ||
|
|
26
|
+
background: background || cssVar.colorFillSecondary,
|
|
28
27
|
borderRadius: shape === 'circle' ? '50%' : Math.floor(size * 0.1),
|
|
29
28
|
color: color,
|
|
30
29
|
height: size,
|
|
@@ -8,7 +8,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import { Icon } from '@lobehub/ui';
|
|
11
|
-
import {
|
|
11
|
+
import { cssVar } from 'antd-style';
|
|
12
12
|
import { Brain } from 'lucide-react';
|
|
13
13
|
import { memo } from 'react';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -17,9 +17,8 @@ var DefaultAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
17
17
|
_ref$size = _ref.size,
|
|
18
18
|
size = _ref$size === void 0 ? 12 : _ref$size,
|
|
19
19
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
var theme = useTheme();
|
|
21
20
|
return /*#__PURE__*/_jsx(Icon, _objectSpread({
|
|
22
|
-
color: color ||
|
|
21
|
+
color: color || cssVar.colorTextDescription,
|
|
23
22
|
icon: Brain,
|
|
24
23
|
size: size
|
|
25
24
|
}, rest));
|
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { Center } from '@lobehub/ui';
|
|
8
|
-
import {
|
|
8
|
+
import { cssVar } from 'antd-style';
|
|
9
9
|
import { memo } from 'react';
|
|
10
10
|
import DefaultIcon from "./DefaultIcon";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -20,11 +20,10 @@ var DefaultAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
20
20
|
iconMultiple = _ref$iconMultiple === void 0 ? 0.6 : _ref$iconMultiple,
|
|
21
21
|
iconStyle = _ref.iconStyle,
|
|
22
22
|
iconClassName = _ref.iconClassName;
|
|
23
|
-
var theme = useTheme();
|
|
24
23
|
return /*#__PURE__*/_jsx(Center, {
|
|
25
24
|
flex: 'none',
|
|
26
25
|
style: _objectSpread({
|
|
27
|
-
background: background ||
|
|
26
|
+
background: background || cssVar.colorFillSecondary,
|
|
28
27
|
borderRadius: shape === 'circle' ? '50%' : Math.floor(size * 0.1),
|
|
29
28
|
color: color,
|
|
30
29
|
height: size,
|
|
@@ -8,7 +8,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import { Icon } from '@lobehub/ui';
|
|
11
|
-
import {
|
|
11
|
+
import { cssVar } from 'antd-style';
|
|
12
12
|
import { Radar } from 'lucide-react';
|
|
13
13
|
import { memo } from 'react';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -17,9 +17,8 @@ var DefaultIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
17
17
|
_ref$size = _ref.size,
|
|
18
18
|
size = _ref$size === void 0 ? 12 : _ref$size,
|
|
19
19
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
var theme = useTheme();
|
|
21
20
|
return /*#__PURE__*/_jsx(Icon, _objectSpread({
|
|
22
|
-
color: color ||
|
|
21
|
+
color: color || cssVar.colorTextDescription,
|
|
23
22
|
icon: Radar,
|
|
24
23
|
size: size
|
|
25
24
|
}, rest));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/icons",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Popular AI / LLM Model Brand SVG Logo and Icon Collection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"packages/*"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"antd-style": "^4.
|
|
33
|
+
"antd-style": "^4.1.0",
|
|
34
34
|
"lucide-react": "^0.469.0",
|
|
35
35
|
"polished": "^4.3.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@lobehub/ui": "^4.
|
|
38
|
+
"@lobehub/ui": "^4.3.3",
|
|
39
39
|
"antd": "^6.1.1",
|
|
40
40
|
"react": "^19.0.0",
|
|
41
41
|
"react-dom": "^19.0.0"
|