@lobehub/icons 3.0.0 → 3.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 +2 -3
- package/es/components/Dashboard/IconItem.js +1 -2
- package/es/components/Dashboard/Text.js +1 -1
- package/es/components/Dashboard/index.js +1 -2
- package/es/components/Editor/Color.js +1 -2
- package/es/components/Editor/Mono.js +1 -2
- package/es/components/Editor/Preview.js +1 -2
- package/es/components/Editor/Text.js +1 -2
- package/es/components/Editor/index.js +1 -1
- package/es/components/IconPreview/ColorPreview.js +2 -3
- package/es/components/IconPreview/index.d.ts +1 -1
- package/es/components/IconPreview/index.js +1 -1
- package/es/features/IconAvatar/index.d.ts +1 -1
- package/es/features/IconAvatar/index.js +1 -1
- package/es/features/IconCombine/index.d.ts +1 -1
- package/es/features/IconCombine/index.js +1 -1
- package/es/features/ModelIcon/DefaultAvatar.js +1 -1
- package/es/features/ProviderCombine/Combine.js +1 -1
- package/es/features/ProviderCombine/index.d.ts +1 -1
- package/es/features/ProviderCombine/index.js +1 -1
- package/es/features/ProviderIcon/DefaultAvatar.js +1 -1
- package/es/features/modelConfig.js +2 -2
- package/package.json +3 -4
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
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
|
-
import { CopyButton, Tooltip } from '@lobehub/ui';
|
|
5
|
+
import { CopyButton, Flexbox, Tooltip } from '@lobehub/ui';
|
|
6
6
|
import { createStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
|
-
import { Flexbox } from 'react-layout-kit';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
var useStyles = createStyles(function (_ref) {
|
|
11
10
|
var css = _ref.css,
|
|
@@ -13,7 +12,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
13
12
|
cx = _ref.cx;
|
|
14
13
|
return {
|
|
15
14
|
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\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
|
|
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: ", "px;\n\n background: ", ";\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), token.colorBorder, token.borderRadius, token.colorBgContainer)
|
|
17
16
|
};
|
|
18
17
|
});
|
|
19
18
|
var IconPreview = /*#__PURE__*/memo(function (_ref2) {
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
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
|
-
import { ActionIcon, Block, CopyButton, Text } from '@lobehub/ui';
|
|
5
|
+
import { ActionIcon, Block, Center, CopyButton, Flexbox, Text } from '@lobehub/ui';
|
|
6
6
|
import { createStyles } from 'antd-style';
|
|
7
7
|
import { Link } from 'dumi';
|
|
8
8
|
import { DownloadIcon, SearchIcon } from 'lucide-react';
|
|
9
9
|
import { readableColor } from 'polished';
|
|
10
10
|
import { memo, useCallback, useRef } from 'react';
|
|
11
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
12
11
|
import { customKebabCase } from "./utils";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -3,10 +3,10 @@
|
|
|
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 * as Icons from "../..";
|
|
6
|
+
import { Flexbox } from '@lobehub/ui';
|
|
6
7
|
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
|
|
7
8
|
import { createStyles } from 'antd-style';
|
|
8
9
|
import { memo } from 'react';
|
|
9
|
-
import { Flexbox } from 'react-layout-kit';
|
|
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) {
|
|
@@ -7,11 +7,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7
7
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
8
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
9
|
import * as Icons from "../..";
|
|
10
|
-
import { Grid, SearchBar } from '@lobehub/ui';
|
|
10
|
+
import { Flexbox, Grid, SearchBar } from '@lobehub/ui';
|
|
11
11
|
import { Empty, Segmented } from 'antd';
|
|
12
12
|
import { useTheme } from 'antd-style';
|
|
13
13
|
import { memo, useMemo, useState } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
15
14
|
import IconItem from "./IconItem";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
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
|
-
import { Highlighter } from '@lobehub/ui';
|
|
5
|
+
import { Flexbox, Highlighter } from '@lobehub/ui';
|
|
6
6
|
import { createStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
|
-
import { Flexbox } from 'react-layout-kit';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
var useStyles = createStyles(function (_ref) {
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
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
|
-
import { Highlighter } from '@lobehub/ui';
|
|
5
|
+
import { Flexbox, Highlighter } from '@lobehub/ui';
|
|
6
6
|
import { createStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
|
-
import { Flexbox } from 'react-layout-kit';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
var useStyles = createStyles(function (_ref) {
|
|
@@ -1,9 +1,8 @@
|
|
|
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
|
-
import { Highlighter, Tag } from '@lobehub/ui';
|
|
3
|
+
import { Flexbox, Highlighter, Tag } from '@lobehub/ui';
|
|
4
4
|
import { createStyles } from 'antd-style';
|
|
5
5
|
import { memo } from 'react';
|
|
6
|
-
import { Flexbox } from 'react-layout-kit';
|
|
7
6
|
import IconPreview from "../IconPreview";
|
|
8
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
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
|
-
import { Highlighter } from '@lobehub/ui';
|
|
5
|
+
import { Flexbox, Highlighter } from '@lobehub/ui';
|
|
6
6
|
import { createStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
|
-
import { Flexbox } from 'react-layout-kit';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
var useStyles = createStyles(function (_ref) {
|
|
@@ -12,10 +12,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
12
12
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
13
|
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
|
+
import { Flexbox } from '@lobehub/ui';
|
|
15
16
|
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
|
|
16
17
|
import { createStyles } from 'antd-style';
|
|
17
18
|
import { useEffect, useRef, useState } from 'react';
|
|
18
|
-
import { Flexbox } from 'react-layout-kit';
|
|
19
19
|
import { useSvgo } from "./useSvgo";
|
|
20
20
|
import Color from "./Color";
|
|
21
21
|
import Mono from "./Mono";
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
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
|
-
import { CopyButton } from '@lobehub/ui';
|
|
5
|
+
import { CopyButton, Flexbox } from '@lobehub/ui';
|
|
6
6
|
import { createStyles } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
|
-
import { Flexbox } from 'react-layout-kit';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
var useStyles = createStyles(function (_ref) {
|
|
@@ -14,7 +13,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
14
13
|
cx = _ref.cx;
|
|
15
14
|
return {
|
|
16
15
|
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 "])))),
|
|
17
|
-
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n width: 98px;\n height: 98px;\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: ", "px;\n\n font-family: ", ";\n line-height: 1;\n\n background: ", ";\n\n &:hover {\n .copy-button {\n opacity: 1;\n }\n }\n "])), token.colorBorder, token.borderRadius, token.fontFamilyCode, token.colorBgContainer)
|
|
18
17
|
};
|
|
19
18
|
});
|
|
20
19
|
var IconPreview = /*#__PURE__*/memo(function (_ref2) {
|
|
@@ -9,9 +9,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
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; }
|
|
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
|
+
import { Flexbox } from '@lobehub/ui';
|
|
12
13
|
import { createStyles } from 'antd-style';
|
|
13
14
|
import { memo, useRef } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type CenterProps } from '@lobehub/ui';
|
|
1
2
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { type CenterProps } from 'react-layout-kit';
|
|
3
3
|
import { IconType } from "../../types";
|
|
4
4
|
export interface IconAvatarProps extends Omit<CenterProps, 'children'> {
|
|
5
5
|
Icon?: IconType;
|
|
@@ -9,9 +9,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
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); }
|
|
10
10
|
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; }
|
|
11
11
|
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; }
|
|
12
|
+
import { Center } from '@lobehub/ui';
|
|
12
13
|
import { useThemeMode } from 'antd-style';
|
|
13
14
|
import { memo } from 'react';
|
|
14
|
-
import { Center } from 'react-layout-kit';
|
|
15
15
|
import { getAvatarShadow } from "./util";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
var IconAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type FlexboxProps } from '@lobehub/ui';
|
|
1
2
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { type FlexboxProps } from 'react-layout-kit';
|
|
3
3
|
import IconAvatar, { IconAvatarProps } from "../IconAvatar";
|
|
4
4
|
import { IconType } from "../../types";
|
|
5
5
|
export interface IconCombineProps extends FlexboxProps {
|
|
@@ -9,8 +9,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
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); }
|
|
10
10
|
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; }
|
|
11
11
|
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; }
|
|
12
|
+
import { Flexbox } from '@lobehub/ui';
|
|
12
13
|
import { memo } from 'react';
|
|
13
|
-
import { Flexbox } from 'react-layout-kit';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -4,9 +4,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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
|
+
import { Center } from '@lobehub/ui';
|
|
7
8
|
import { useTheme } from 'antd-style';
|
|
8
9
|
import { memo } from 'react';
|
|
9
|
-
import { Center } from 'react-layout-kit';
|
|
10
10
|
import DefaultIcon from "./DefaultIcon";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var DefaultAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -7,9 +7,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
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); }
|
|
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
|
+
import { Flexbox } from '@lobehub/ui';
|
|
10
11
|
import { Divider } from 'antd';
|
|
11
12
|
import { memo } from 'react';
|
|
12
|
-
import { Flexbox } from 'react-layout-kit';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FlexboxProps } from '
|
|
2
|
+
import { FlexboxProps } from '@lobehub/ui';
|
|
3
3
|
import { ModelProviderKey } from '../providerEnum';
|
|
4
4
|
export interface ProviderCombineProps extends Omit<FlexboxProps, 'children' | 'horizontal' | 'height' | 'width' | 'align' | 'justify'> {
|
|
5
5
|
provider?: ModelProviderKey | string;
|
|
@@ -12,8 +12,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
12
12
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
13
|
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; }
|
|
14
14
|
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; }
|
|
15
|
+
import { Flexbox } from '@lobehub/ui';
|
|
15
16
|
import { memo, useMemo } from 'react';
|
|
16
|
-
import { Flexbox } from 'react-layout-kit';
|
|
17
17
|
import DefaultIcon from "../ProviderIcon/DefaultIcon";
|
|
18
18
|
import { providerMappings } from "../providerConfig";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -4,9 +4,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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
|
+
import { Center } from '@lobehub/ui';
|
|
7
8
|
import { useTheme } from 'antd-style';
|
|
8
9
|
import { memo } from 'react';
|
|
9
|
-
import { Center } from 'react-layout-kit';
|
|
10
10
|
import DefaultIcon from "./DefaultIcon";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
var DefaultAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -219,7 +219,7 @@ export var modelMappings = [{
|
|
|
219
219
|
keywords: ['^rnj-', '/rnj-']
|
|
220
220
|
}, {
|
|
221
221
|
Icon: DeepCogito,
|
|
222
|
-
keywords: ['^deepcogito-', '/deepcogito-']
|
|
222
|
+
keywords: ['^deepcogito-', '/deepcogito-', '^cogito-', '/cogito-']
|
|
223
223
|
}, {
|
|
224
224
|
Icon: Morph,
|
|
225
225
|
keywords: ['^morph-', '/morph-']
|
|
@@ -228,7 +228,7 @@ export var modelMappings = [{
|
|
|
228
228
|
keywords: ['^olmo-', '/olmo-']
|
|
229
229
|
}, {
|
|
230
230
|
Icon: Inception,
|
|
231
|
-
keywords: ['^mercury
|
|
231
|
+
keywords: ['^mercury', '/mercury']
|
|
232
232
|
}, {
|
|
233
233
|
Icon: OpenChat,
|
|
234
234
|
keywords: ['^openchat']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/icons",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Popular AI / LLM Model Brand SVG Logo and Icon Collection",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -30,13 +30,12 @@
|
|
|
30
30
|
"packages/*"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lobehub/ui": "^3.1.0",
|
|
34
33
|
"antd-style": "^3.7.1",
|
|
35
34
|
"lucide-react": "^0.469.0",
|
|
36
|
-
"polished": "^4.3.1"
|
|
37
|
-
"react-layout-kit": "^2.0.1"
|
|
35
|
+
"polished": "^4.3.1"
|
|
38
36
|
},
|
|
39
37
|
"peerDependencies": {
|
|
38
|
+
"@lobehub/ui": "^3.4.5",
|
|
40
39
|
"antd": "^6.1.1",
|
|
41
40
|
"react": "^19.0.0",
|
|
42
41
|
"react-dom": "^19.0.0"
|