@lobehub/icons 2.32.2 → 2.33.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.
- package/es/SubModel/components/Avatar.d.ts +5 -0
- package/es/SubModel/components/Avatar.js +25 -0
- package/es/SubModel/components/Color.d.ts +3 -0
- package/es/SubModel/components/Color.js +100 -0
- package/es/SubModel/components/Combine.d.ts +7 -0
- package/es/SubModel/components/Combine.js +36 -0
- package/es/SubModel/components/Mono.d.ts +3 -0
- package/es/SubModel/components/Mono.js +41 -0
- package/es/SubModel/components/Text.d.ts +3 -0
- package/es/SubModel/components/Text.js +39 -0
- package/es/SubModel/index.d.ts +15 -0
- package/es/SubModel/index.js +14 -0
- package/es/SubModel/style.d.ts +7 -0
- package/es/SubModel/style.js +9 -0
- package/es/features/providerConfig.js +4 -0
- package/es/features/providerEnum.d.ts +1 -0
- package/es/features/providerEnum.js +1 -0
- package/es/icons.d.ts +1 -0
- package/es/icons.js +1 -0
- package/es/toc.js +18 -0
- package/package.json +1 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
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
|
+
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; }
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
8
|
+
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); }
|
9
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
10
|
+
import { memo } from 'react';
|
11
|
+
import IconAvatar from "../../features/IconAvatar";
|
12
|
+
import { AVATAR_BACKGROUND, AVATAR_COLOR, AVATAR_ICON_MULTIPLE, TITLE } from "../style";
|
13
|
+
import Color from "./Color";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
16
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
17
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
18
|
+
Icon: Color,
|
19
|
+
"aria-label": TITLE,
|
20
|
+
background: AVATAR_BACKGROUND,
|
21
|
+
color: AVATAR_COLOR,
|
22
|
+
iconMultiple: AVATAR_ICON_MULTIPLE
|
23
|
+
}, rest));
|
24
|
+
});
|
25
|
+
export default Avatar;
|
@@ -0,0 +1,100 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
var _excluded = ["size", "style"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
13
|
+
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; }
|
14
|
+
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; } }
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
16
|
+
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; }
|
17
|
+
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; }
|
18
|
+
import { memo } from 'react';
|
19
|
+
import { useFillIds } from "../../hooks/useFillId";
|
20
|
+
import { TITLE } from "../style";
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
22
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
23
|
+
var Icon = /*#__PURE__*/memo(function (_ref) {
|
24
|
+
var _ref$size = _ref.size,
|
25
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
26
|
+
style = _ref.style,
|
27
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
28
|
+
var _useFillIds = useFillIds(TITLE, 3),
|
29
|
+
_useFillIds2 = _slicedToArray(_useFillIds, 3),
|
30
|
+
a = _useFillIds2[0],
|
31
|
+
b = _useFillIds2[1],
|
32
|
+
c = _useFillIds2[2];
|
33
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
34
|
+
height: size,
|
35
|
+
style: _objectSpread({
|
36
|
+
flex: 'none',
|
37
|
+
lineHeight: 1
|
38
|
+
}, style),
|
39
|
+
viewBox: "0 0 24 24",
|
40
|
+
width: size,
|
41
|
+
xmlns: "http://www.w3.org/2000/svg"
|
42
|
+
}, rest), {}, {
|
43
|
+
children: [/*#__PURE__*/_jsx("title", {
|
44
|
+
children: TITLE
|
45
|
+
}), /*#__PURE__*/_jsx("path", {
|
46
|
+
d: "M23.314 7.947c.206.504.491 1.709.602 2.538.134 1 .06 3-.143 3.938a12.13 12.13 0 01-3.278 6.053c-1.635 1.645-3.678 2.762-6.027 3.294-.712.16-3.534.264-4.062.149-.878-.192-1.255-.82-.897-1.494.074-.139 1.31-1.425 2.746-2.858l2.611-2.603.793-.025c.53-.017.895-.08 1.097-.187.423-.225.895-.718 1.104-1.152.2-.415.292-1.377.163-1.716-.078-.21-.025-.266.725-.768 1.657-1.108 3.122-2.773 4.002-4.545l.45-.905.114.281z",
|
47
|
+
fill: a.fill
|
48
|
+
}), /*#__PURE__*/_jsx("path", {
|
49
|
+
d: "M.833 7.787c.031.004.239.382.459.84.748 1.554 2.214 3.267 3.682 4.303 2.034 1.437 4.303 2.194 6.964 2.322l1.203.06-2.937 2.939c-3.255 3.258-3.448 3.407-4.433 3.403-.362-.002-.716-.07-.978-.188-.505-.23-1.726-1.402-2.422-2.326-.955-1.267-1.74-3.002-2.15-4.75-.266-1.143-.243-3.813.044-4.968.23-.928.478-1.642.568-1.635z",
|
50
|
+
fill: b.fill
|
51
|
+
}), /*#__PURE__*/_jsx("path", {
|
52
|
+
clipRule: "evenodd",
|
53
|
+
d: "M11.484.028c2.054-.088 2.932.167 3.08.895.1.501-.269.957-2.883 3.57L9.105 7.064l-.731.01c-.555.008-.824.058-1.108.21-1.114.593-1.62 1.858-1.216 3.041.328.964 1.3 1.636 2.34 1.62.215-.005.476-.039.678-.087l-.023.009.089-.03c.924-.268 1.66-1.31 1.665-2.357.002-.344.063-.625.176-.808.095-.156 1.45-1.556 3.012-3.113 3.134-3.122 3.251-3.21 4.287-3.213.823-.003 1.257.225 2.194 1.16a11.968 11.968 0 012.73 4.162l-.447.903c-.88 1.772-2.347 3.437-4.003 4.545-.75.502-.803.559-.725.768.044.114.063.299.06.51a2.444 2.444 0 00-.629-1.478c-1.163-1.287-3.25-1.005-4.008.542-.2.41-.248.64-.244 1.151l.007.639-.067.063-1.204-.06c-1.644-.079-3.139-.398-4.521-.97h-.001a12.485 12.485 0 01-2.442-1.351C3.6 11.96 2.23 10.4 1.446 8.931l-.154-.305c-.22-.459-.428-.836-.459-.84-.032-.003-.082.084-.145.237.015-.062.035-.128.06-.196 1.04-2.842 3.136-5.177 5.88-6.553C8.253.461 9.62.11 11.484.028z",
|
54
|
+
fill: c.fill,
|
55
|
+
fillRule: "evenodd"
|
56
|
+
}), /*#__PURE__*/_jsxs("defs", {
|
57
|
+
children: [/*#__PURE__*/_jsxs("linearGradient", {
|
58
|
+
gradientUnits: "userSpaceOnUse",
|
59
|
+
id: a.id,
|
60
|
+
x1: "0",
|
61
|
+
x2: "24",
|
62
|
+
y1: "14.5",
|
63
|
+
y2: "14.5",
|
64
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
65
|
+
stopColor: "#E560FC"
|
66
|
+
}), /*#__PURE__*/_jsx("stop", {
|
67
|
+
offset: "1",
|
68
|
+
stopColor: "#673CFF"
|
69
|
+
})]
|
70
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
71
|
+
gradientUnits: "userSpaceOnUse",
|
72
|
+
id: b.id,
|
73
|
+
x1: "0",
|
74
|
+
x2: "24",
|
75
|
+
y1: "14.5",
|
76
|
+
y2: "14.5",
|
77
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
78
|
+
stopColor: "#E560FC"
|
79
|
+
}), /*#__PURE__*/_jsx("stop", {
|
80
|
+
offset: "1",
|
81
|
+
stopColor: "#673CFF"
|
82
|
+
})]
|
83
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
84
|
+
gradientUnits: "userSpaceOnUse",
|
85
|
+
id: c.id,
|
86
|
+
x1: ".5",
|
87
|
+
x2: "23",
|
88
|
+
y1: "8",
|
89
|
+
y2: "7.5",
|
90
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
91
|
+
stopColor: "#0ED1FC"
|
92
|
+
}), /*#__PURE__*/_jsx("stop", {
|
93
|
+
offset: "1",
|
94
|
+
stopColor: "#3171F5"
|
95
|
+
})]
|
96
|
+
})]
|
97
|
+
})]
|
98
|
+
}));
|
99
|
+
});
|
100
|
+
export default Icon;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { type IconCombineProps } from "../../features/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,36 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
var _excluded = ["type", "extraStyle"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
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
|
+
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
|
+
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 { memo } from 'react';
|
13
|
+
import IconCombine from "../../features/IconCombine";
|
14
|
+
import { COMBINE_SPACE_MULTIPLE, COMBINE_TEXT_MULTIPLE, TITLE } from "../style";
|
15
|
+
import Color from "./Color";
|
16
|
+
import Mono from "./Mono";
|
17
|
+
import Text from "./Text";
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
19
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
20
|
+
var _ref$type = _ref.type,
|
21
|
+
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
22
|
+
extraStyle = _ref.extraStyle,
|
23
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
24
|
+
var Icon = type === 'color' ? Color : Mono;
|
25
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
26
|
+
Icon: Icon,
|
27
|
+
Text: Text,
|
28
|
+
"aria-label": TITLE,
|
29
|
+
extraStyle: _objectSpread({
|
30
|
+
fontWeight: 500
|
31
|
+
}, extraStyle),
|
32
|
+
spaceMultiple: COMBINE_SPACE_MULTIPLE,
|
33
|
+
textMultiple: COMBINE_TEXT_MULTIPLE
|
34
|
+
}, rest));
|
35
|
+
});
|
36
|
+
export default Combine;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
var _excluded = ["size", "style"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
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
|
+
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
|
+
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 { memo } from 'react';
|
13
|
+
import { TITLE } from "../style";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var Icon = /*#__PURE__*/memo(function (_ref) {
|
17
|
+
var _ref$size = _ref.size,
|
18
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
19
|
+
style = _ref.style,
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
21
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
22
|
+
fill: "currentColor",
|
23
|
+
fillRule: "evenodd",
|
24
|
+
height: size,
|
25
|
+
style: _objectSpread({
|
26
|
+
flex: 'none',
|
27
|
+
lineHeight: 1
|
28
|
+
}, style),
|
29
|
+
viewBox: "0 0 24 24",
|
30
|
+
width: size,
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
32
|
+
}, rest), {}, {
|
33
|
+
children: [/*#__PURE__*/_jsx("title", {
|
34
|
+
children: TITLE
|
35
|
+
}), /*#__PURE__*/_jsx("path", {
|
36
|
+
clipRule: "evenodd",
|
37
|
+
d: "M11.484.028c2.054-.088 2.932.167 3.08.895.1.501-.268.957-2.883 3.57L9.106 7.064l-.732.01c-.555.008-.824.058-1.108.21-1.114.593-1.62 1.858-1.216 3.041.328.964 1.3 1.636 2.34 1.62.215-.005.476-.039.678-.087l-.027.01.093-.03c.924-.27 1.66-1.312 1.665-2.358.002-.344.063-.625.176-.808.095-.156 1.45-1.556 3.012-3.113 3.134-3.122 3.25-3.21 4.287-3.213.823-.003 1.257.225 2.194 1.16a11.968 11.968 0 012.73 4.162l.001-.002.115.281c.206.504.491 1.709.602 2.538.134 1 .06 3-.143 3.938a12.129 12.129 0 01-3.278 6.052c-1.635 1.646-3.678 2.763-6.027 3.294-.712.162-3.534.265-4.062.15-.878-.192-1.255-.82-.897-1.494.074-.14 1.31-1.425 2.746-2.858l2.611-2.603.793-.026c.53-.016.895-.078 1.097-.186.423-.225.895-.718 1.104-1.152.135-.28.218-.81.22-1.229a2.443 2.443 0 00-.626-1.455c-1.163-1.287-3.25-1.005-4.008.542-.2.41-.249.64-.244 1.151l.006.639-.067.063-2.937 2.94c-3.255 3.258-3.448 3.407-4.434 3.403-.361-.002-.715-.07-.976-.188-.504-.23-1.726-1.402-2.423-2.326-.895-1.188-1.64-2.787-2.067-4.422l-.081-.328-.055-.255a6.168 6.168 0 01-.094-.866c.023.318.055.61.097.859-.21-1.249-.173-3.632.094-4.706a4.787 4.787 0 00-.052.235c.103-.564.27-1.105.535-1.829 1.04-2.842 3.136-5.177 5.88-6.553C8.253.461 9.62.11 11.484.028z"
|
38
|
+
})]
|
39
|
+
}));
|
40
|
+
});
|
41
|
+
export default Icon;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
var _excluded = ["size", "style"];
|
5
|
+
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; }
|
6
|
+
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; }
|
7
|
+
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; }
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
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
|
+
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
|
+
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 { memo } from 'react';
|
13
|
+
import { TITLE } from "../style";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var Icon = /*#__PURE__*/memo(function (_ref) {
|
17
|
+
var _ref$size = _ref.size,
|
18
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
19
|
+
style = _ref.style,
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
21
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
22
|
+
fill: "currentColor",
|
23
|
+
fillRule: "nonzero",
|
24
|
+
height: size,
|
25
|
+
style: _objectSpread({
|
26
|
+
flex: 'none',
|
27
|
+
lineHeight: 1
|
28
|
+
}, style),
|
29
|
+
viewBox: "0 0 132 24",
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
31
|
+
}, rest), {}, {
|
32
|
+
children: [/*#__PURE__*/_jsx("title", {
|
33
|
+
children: TITLE
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
35
|
+
d: "M129.613 2.266v19.44h-3.436V2.266h3.436zM116.786 21.99c-1.461 0-2.724-.303-3.787-.91-1.057-.615-1.87-1.482-2.44-2.602-.569-1.126-.854-2.452-.854-3.977 0-1.5.285-2.816.854-3.949.576-1.139 1.38-2.025 2.412-2.657 1.031-.64 2.243-.96 3.635-.96.899 0 1.747.146 2.544.437a5.747 5.747 0 012.126 1.33c.62.6 1.108 1.366 1.462 2.296.354.924.532 2.025.532 3.304v1.053h-11.951V13.04h8.657c-.007-.658-.149-1.243-.427-1.756a3.11 3.11 0 00-1.168-1.224c-.494-.298-1.069-.446-1.728-.446-.702 0-1.319.17-1.851.512a3.53 3.53 0 00-1.243 1.33 3.821 3.821 0 00-.446 1.793v2.022c0 .848.155 1.576.465 2.183.31.601.744 1.063 1.3 1.386.557.316 1.209.475 1.956.475.5 0 .952-.07 1.357-.21a3.02 3.02 0 001.054-.635c.297-.279.522-.623.674-1.035l3.208.36a4.992 4.992 0 01-1.158 2.222c-.563.627-1.285 1.114-2.164 1.462-.88.341-1.886.512-3.019.512zM98.906 21.962c-1.146 0-2.171-.294-3.076-.883-.905-.588-1.62-1.443-2.145-2.563-.525-1.12-.788-2.48-.788-4.081 0-1.62.266-2.987.797-4.101.538-1.12 1.263-1.965 2.174-2.534.911-.576 1.927-.864 3.047-.864.854 0 1.557.145 2.107.436.551.285.988.63 1.31 1.035a6.3 6.3 0 01.75 1.13h.143V2.266h3.445v19.44h-3.379v-2.297h-.209c-.177.354-.433.73-.769 1.13-.335.391-.778.727-1.329 1.005-.55.279-1.243.418-2.078.418zm.958-2.82c.728 0 1.348-.195 1.861-.588.512-.398.902-.952 1.167-1.66.266-.71.399-1.535.399-2.478 0-.943-.133-1.763-.399-2.459-.259-.696-.645-1.237-1.158-1.623-.506-.386-1.129-.58-1.87-.58-.765 0-1.404.2-1.917.599-.513.399-.899.95-1.158 1.652-.26.702-.39 1.506-.39 2.41 0 .912.13 1.725.39 2.44.266.709.655 1.269 1.167 1.68.52.405 1.155.608 1.908.608zM83.592 21.99c-1.424 0-2.658-.313-3.702-.94-1.044-.626-1.854-1.502-2.43-2.629-.57-1.126-.854-2.442-.854-3.948 0-1.507.285-2.826.854-3.959.576-1.132 1.386-2.012 2.43-2.638 1.044-.627 2.278-.94 3.702-.94s2.658.313 3.702.94c1.044.626 1.851 1.506 2.42 2.638.577 1.133.865 2.453.865 3.959 0 1.506-.288 2.822-.864 3.948-.57 1.127-1.377 2.003-2.42 2.63-1.045.626-2.279.94-3.703.94zm.02-2.752c.771 0 1.417-.212 1.936-.636.519-.43.905-1.006 1.158-1.728.26-.721.389-1.525.389-2.41 0-.893-.13-1.7-.39-2.421-.252-.728-.638-1.307-1.157-1.737-.52-.43-1.165-.646-1.937-.646-.79 0-1.449.215-1.974.646-.519.43-.908 1.009-1.168 1.737-.253.721-.38 1.528-.38 2.42 0 .886.127 1.69.38 2.411.26.722.649 1.297 1.168 1.728.525.424 1.183.636 1.974.636zM53.16 2.266h4.31l5.771 14.086h.228L69.24 2.266h4.31v19.44h-3.38V8.35h-.18L64.617 21.65h-2.525L56.72 8.322h-.18v13.384h-3.38V2.266zM36.324 21.706V2.266h3.436v7.27h.142a6.32 6.32 0 01.75-1.129c.323-.405.76-.75 1.31-1.035.55-.29 1.253-.436 2.107-.436 1.127 0 2.142.288 3.047.864.912.57 1.633 1.414 2.164 2.534.538 1.114.807 2.48.807 4.1 0 1.602-.262 2.962-.788 4.082-.525 1.12-1.24 1.975-2.145 2.563-.905.589-1.93.883-3.075.883-.836 0-1.529-.14-2.08-.418-.55-.278-.993-.614-1.328-1.006a6.517 6.517 0 01-.769-1.13h-.2v2.298h-3.378zm3.37-7.29c0 .942.132 1.768.398 2.477.272.709.661 1.262 1.168 1.661.512.393 1.132.589 1.86.589.76 0 1.395-.203 1.908-.608.513-.411.898-.971 1.158-1.68.266-.715.399-1.528.399-2.44 0-.904-.13-1.708-.39-2.41-.259-.703-.645-1.253-1.158-1.652-.512-.399-1.151-.598-1.917-.598-.734 0-1.357.193-1.87.579-.513.386-.902.927-1.167 1.623-.26.696-.39 1.516-.39 2.459zM29.202 15.574V7.126h3.436v14.58h-3.331v-2.591h-.152a4.384 4.384 0 01-1.623 2.002c-.747.52-1.668.779-2.763.779-.955 0-1.8-.212-2.534-.636-.728-.43-1.297-1.054-1.709-1.87-.411-.823-.617-1.816-.617-2.98V7.125h3.437v8.752c0 .924.253 1.658.759 2.202s1.17.816 1.993.816c.506 0 .997-.123 1.472-.37a2.992 2.992 0 001.167-1.101c.31-.494.465-1.11.465-1.851zM13.267 7.61c-.088-.83-.462-1.475-1.12-1.937-.652-.461-1.5-.692-2.544-.692-.734 0-1.363.11-1.889.332-.525.221-.927.522-1.205.902-.279.38-.421.813-.427 1.3 0 .405.091.756.275 1.054.19.297.446.55.769.759.323.202.68.373 1.072.513.393.139.788.256 1.187.35l1.822.456c.734.171 1.44.402 2.117.693a7.457 7.457 0 011.832 1.101c.544.443.975.978 1.291 1.605.317.626.475 1.36.475 2.202 0 1.139-.291 2.142-.874 3.009-.582.86-1.423 1.534-2.524 2.022-1.095.48-2.421.721-3.978.721-1.512 0-2.825-.234-3.939-.702-1.107-.469-1.974-1.152-2.6-2.05-.621-.9-.956-1.994-1.007-3.285h3.465c.05.677.26 1.24.626 1.69.367.449.845.784 1.433 1.006.595.221 1.26.332 1.994.332.765 0 1.436-.114 2.012-.342.582-.234 1.038-.557 1.367-.968.33-.418.497-.905.503-1.462-.006-.506-.155-.924-.446-1.253-.291-.335-.7-.614-1.225-.835a11.802 11.802 0 00-1.822-.607l-2.212-.57c-1.6-.411-2.866-1.035-3.797-1.87-.923-.842-1.385-1.959-1.385-3.35 0-1.146.31-2.15.93-3.01.626-.86 1.477-1.528 2.553-2.003C7.072 2.241 8.29 2 9.651 2c1.38 0 2.588.24 3.626.721 1.044.475 1.863 1.136 2.458 1.984.595.842.902 1.81.92 2.905h-3.388z"
|
36
|
+
})]
|
37
|
+
}));
|
38
|
+
});
|
39
|
+
export default Icon;
|
@@ -0,0 +1,15 @@
|
|
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
|
+
Text: typeof Text;
|
11
|
+
colorPrimary: string;
|
12
|
+
title: string;
|
13
|
+
};
|
14
|
+
declare const Icons: CompoundedIcon;
|
15
|
+
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_PRIMARY, TITLE } 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.title = TITLE;
|
14
|
+
export default Icons;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const TITLE = "SubModel";
|
2
|
+
export declare const COMBINE_TEXT_MULTIPLE = 0.8;
|
3
|
+
export declare const COMBINE_SPACE_MULTIPLE = 0.2;
|
4
|
+
export declare const COLOR_PRIMARY = "#fff";
|
5
|
+
export declare const AVATAR_BACKGROUND = "#fff";
|
6
|
+
export declare const AVATAR_COLOR = "#fff";
|
7
|
+
export declare const AVATAR_ICON_MULTIPLE = 0.75;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export var TITLE = 'SubModel';
|
2
|
+
export var COMBINE_TEXT_MULTIPLE = 0.8;
|
3
|
+
export var COMBINE_SPACE_MULTIPLE = 0.2;
|
4
|
+
export var COLOR_PRIMARY = '#fff';
|
5
|
+
|
6
|
+
// Avatar constants
|
7
|
+
export var AVATAR_BACKGROUND = COLOR_PRIMARY;
|
8
|
+
export var AVATAR_COLOR = '#fff';
|
9
|
+
export var AVATAR_ICON_MULTIPLE = 0.75;
|
@@ -60,6 +60,7 @@ export var ModelProvider = /*#__PURE__*/function (ModelProvider) {
|
|
60
60
|
ModelProvider["Upstage"] = "upstage";
|
61
61
|
ModelProvider["V0"] = "v0";
|
62
62
|
ModelProvider["VLLM"] = "vllm";
|
63
|
+
ModelProvider["Vercel"] = "vercelaigateway";
|
63
64
|
ModelProvider["VertexAI"] = "vertexai";
|
64
65
|
ModelProvider["Volcengine"] = "volcengine";
|
65
66
|
ModelProvider["Wenxin"] = "wenxin";
|
package/es/icons.d.ts
CHANGED
@@ -203,6 +203,7 @@ export { default as Spark, type CompoundedIcon as SparkProps } from './Spark';
|
|
203
203
|
export { default as Stability, type CompoundedIcon as StabilityProps } from './Stability';
|
204
204
|
export { default as StateCloud, type CompoundedIcon as StateCloudProps } from './StateCloud';
|
205
205
|
export { default as Stepfun, type CompoundedIcon as StepfunProps } from './Stepfun';
|
206
|
+
export { default as SubModel, type CompoundedIcon as SubModelProps } from './SubModel';
|
206
207
|
export { default as Suno, type CompoundedIcon as SunoProps } from './Suno';
|
207
208
|
export { default as Sync, type CompoundedIcon as SyncProps } from './Sync';
|
208
209
|
export { default as Targon, type CompoundedIcon as TargonProps } from './Targon';
|
package/es/icons.js
CHANGED
@@ -203,6 +203,7 @@ export { default as Spark } from "./Spark";
|
|
203
203
|
export { default as Stability } from "./Stability";
|
204
204
|
export { default as StateCloud } from "./StateCloud";
|
205
205
|
export { default as Stepfun } from "./Stepfun";
|
206
|
+
export { default as SubModel } from "./SubModel";
|
206
207
|
export { default as Suno } from "./Suno";
|
207
208
|
export { default as Sync } from "./Sync";
|
208
209
|
export { default as Targon } from "./Targon";
|
package/es/toc.js
CHANGED
@@ -3713,6 +3713,24 @@ var toc = [{
|
|
3713
3713
|
"hasTextColor": false
|
3714
3714
|
},
|
3715
3715
|
"title": "Stepfun"
|
3716
|
+
}, {
|
3717
|
+
"color": "#fff",
|
3718
|
+
"desc": "https://submodel.ai",
|
3719
|
+
"docsUrl": "sub-model",
|
3720
|
+
"fullTitle": "SubModel",
|
3721
|
+
"group": "provider",
|
3722
|
+
"id": "SubModel",
|
3723
|
+
"param": {
|
3724
|
+
"hasAvatar": true,
|
3725
|
+
"hasBrand": false,
|
3726
|
+
"hasBrandColor": false,
|
3727
|
+
"hasColor": true,
|
3728
|
+
"hasCombine": true,
|
3729
|
+
"hasText": true,
|
3730
|
+
"hasTextCn": false,
|
3731
|
+
"hasTextColor": false
|
3732
|
+
},
|
3733
|
+
"title": "SubModel"
|
3716
3734
|
}, {
|
3717
3735
|
"color": "#000",
|
3718
3736
|
"desc": "https://app.suno.ai",
|