@lobehub/icons 1.25.1 → 1.26.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/README.md +3 -3
- package/es/Ai360/components/Avatar.d.ts +5 -0
- package/es/Ai360/components/Avatar.js +25 -0
- package/es/Ai360/components/Color.d.ts +3 -0
- package/es/Ai360/components/Color.js +135 -0
- package/es/Ai360/components/Combine.d.ts +7 -0
- package/es/Ai360/components/Combine.js +30 -0
- package/es/Ai360/components/Mono.d.ts +3 -0
- package/es/Ai360/components/Mono.js +48 -0
- package/es/Ai360/components/Text.d.ts +3 -0
- package/es/Ai360/components/Text.js +42 -0
- package/es/Ai360/index.d.ts +16 -0
- package/es/Ai360/index.js +15 -0
- package/es/Ai360/style.d.ts +5 -0
- package/es/Ai360/style.js +5 -0
- package/es/AiMass/components/Avatar.d.ts +5 -0
- package/es/AiMass/components/Avatar.js +24 -0
- package/es/AiMass/components/Color.d.ts +3 -0
- package/es/AiMass/components/Color.js +41 -0
- package/es/AiMass/components/Combine.d.ts +7 -0
- package/es/AiMass/components/Combine.js +30 -0
- package/es/AiMass/components/Mono.d.ts +3 -0
- package/es/AiMass/components/Mono.js +41 -0
- package/es/AiMass/components/Text.d.ts +3 -0
- package/es/AiMass/components/Text.js +50 -0
- package/es/AiMass/index.d.ts +15 -0
- package/es/AiMass/index.js +14 -0
- package/es/AiMass/style.d.ts +4 -0
- package/es/AiMass/style.js +4 -0
- package/es/Novita/components/Avatar.d.ts +5 -0
- package/es/Novita/components/Avatar.js +26 -0
- package/es/Novita/components/Color.d.ts +3 -0
- package/es/Novita/components/Color.js +59 -0
- package/es/Novita/components/Combine.d.ts +7 -0
- package/es/Novita/components/Combine.js +30 -0
- package/es/Novita/components/Mono.d.ts +3 -0
- package/es/Novita/components/Mono.js +40 -0
- package/es/Novita/components/Text.d.ts +3 -0
- package/es/Novita/components/Text.js +54 -0
- package/es/Novita/index.d.ts +16 -0
- package/es/Novita/index.js +15 -0
- package/es/Novita/style.d.ts +5 -0
- package/es/Novita/style.js +5 -0
- 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/IconPreview/ColorPreview.js +1 -1
- package/es/components/IconPreview/index.js +1 -1
- package/es/hooks/useFillId.js +17 -12
- package/es/index.d.ts +3 -0
- package/es/index.js +3 -0
- package/package.json +6 -6
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["size", "style"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { forwardRef } from 'react';
|
|
11
|
+
import { TITLE } from "../style";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
+
var _ref$size = _ref.size,
|
|
16
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
17
|
+
style = _ref.style,
|
|
18
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
height: size,
|
|
23
|
+
ref: ref,
|
|
24
|
+
style: _objectSpread({
|
|
25
|
+
flex: 'none',
|
|
26
|
+
lineHeight: 1
|
|
27
|
+
}, style),
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
width: size,
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
31
|
+
}, rest), {}, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
33
|
+
children: TITLE
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
d: "M8.858 17.115c.156-.414.065-.273.495.098 2.073 1.792 10.334-1.855 9.035-3.987-1.605-2.223-7.924-.72-11.499-.048.57-.259 2.835-.998 3.686-1.213 1.169-.296 1.65-.392 2.738-.651-2.45.25-6.216 1.493-9.687 2.797 1.692-1.346 5.077-2.538 5.854-2.901-1.606.363-4.596 1.708-6.845 2.845C1.358 14.7.932 14.94 0 15.458c.696-.595 1.53-1.383 2.951-2.216 1.714-1.003 1.815-1.048 2.333-1.359-1.244.518-2.383 1.037-3.16 1.296.773-.534 2.227-1.347 2.797-1.606-.173.015-.518.155-.725.207 1.036-.57 1.799-.83 2.234-.97 7.42-2.442 15.999-2.182 17.32.528 1.322 2.71-2.766 6.486-8.347 7.709-.966.212-1.821.328-2.626.358-.836.031-1.448-.005-2.037-.12-1.563-.305-2.237-1.232-1.882-2.17z"
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "M11.5 6.185c.673.104.984.156 1.347.156-.57-.363-.702-.405-2.02-1.14 1.294-.103 1.906-.024 3.366-.052-.621-.362-.932-.362-1.605-.673a33.982 33.982 0 012.797-.104 1.3 1.3 0 00-.415-.362c1.45-.052 3.51.096 4.685.62 2.292 1.027 1.995 2.619-.57 3.063-.471.081-1.315.148-1.874.15a12.536 12.536 0 01-2.138-.212c-1.871-.358-3.314-.98-3.573-1.446z"
|
|
38
|
+
})]
|
|
39
|
+
}));
|
|
40
|
+
});
|
|
41
|
+
export default Icon;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["size", "style"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { forwardRef } from 'react';
|
|
11
|
+
import { TITLE } from "../style";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
+
var _ref$size = _ref.size,
|
|
16
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
17
|
+
style = _ref.style,
|
|
18
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
height: size,
|
|
23
|
+
ref: ref,
|
|
24
|
+
style: _objectSpread({
|
|
25
|
+
flex: 'none',
|
|
26
|
+
lineHeight: 1,
|
|
27
|
+
width: 'fit-content'
|
|
28
|
+
}, style),
|
|
29
|
+
viewBox: "0 0 85 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: "M22.843 4.53h5.492c.462-.837.88-1.68 1.255-2.53l3.293.361a33.006 33.006 0 01-1.094 2.17H42.08v2.63H30.233a63.053 63.053 0 01-2.65 3.875h4.276V8.145h3.033v2.891h6.526v2.63h-6.526v4.64c0 .99-.218 1.756-.653 2.298-.435.543-1.04.867-1.817.974-.777.107-2.035.161-3.775.161a59.253 59.253 0 00-.683-3.012c1.09.107 2.001.16 2.73.16.777 0 1.165-.408 1.165-1.224v-3.996h-7.81v-2.771a46.257 46.257 0 002.72-3.735h-3.926V4.53z"
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "M27.06 14.129c1.513 1.204 2.303 1.813 2.37 1.827a68.168 68.168 0 01-5.04 5 26.022 26.022 0 00-2.089-2.129 74.242 74.242 0 004.76-4.699zM37.763 14.49l4.9 3.896-2.048 2.269a83.452 83.452 0 00-4.7-4.177l1.848-1.988zM69.892 4.912c-.884-1.165-1.68-2.136-2.39-2.912l-2.169 1.386c.79.977 1.453 1.854 1.988 2.63h-3.453v2.59h3.875c-1.138 2.196-2.497 3.936-4.076 5.221.294.964.562 1.968.803 3.012a29.13 29.13 0 001.827-1.917V22h2.53v-7.41a63.278 63.278 0 012.129 1.948l1.446-1.747a58.297 58.297 0 00-1.386-1.144c.716-.864 1.372-1.7 1.968-2.51l-1.847-1.165a30.83 30.83 0 01-1.637 2.51 34.808 34.808 0 00-.673-.512v-.362a34.102 34.102 0 001.908-3.243V6.016h-2.5l1.657-1.104z"
|
|
38
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
39
|
+
d: "M75.253 18.406c.294 1.11.529 2.128.703 3.052 1.606-.034 2.834-.087 3.685-.16.856-.074 1.519-.416 1.987-1.025.476-.609.713-1.486.713-2.63l.1-2.701.242-11.617H71.357v2.53h2.35c-.06 3.414-.184 5.757-.372 7.028a12.246 12.246 0 01-1.184 3.745c-.61 1.225-1.476 2.32-2.6 3.284.95.776 1.72 1.466 2.308 2.068 1.346-1.312 2.363-2.795 3.053-4.448.696-1.653 1.114-3.19 1.255-4.608.14-1.42.26-3.775.361-7.069h3.263c-.08 6.466-.157 10.198-.23 11.195-.074.997-.586 1.496-1.537 1.496-.877 0-1.8-.047-2.771-.14zM51.377 6.719h-7.891V9.49h7.51c-.63 3.842-3.273 7.115-7.932 9.82.59.588 1.366 1.485 2.33 2.69 4.23-3.333 6.834-6.707 7.81-10.12 1.507 4.457 4.044 7.79 7.611 10a63.48 63.48 0 012.39-2.952c-4.19-1.707-6.981-4.853-8.374-9.438h7.892V6.719H54.47c.1-1.553.16-3.052.18-4.498h-3.092a45.95 45.95 0 01-.18 4.498z"
|
|
40
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
41
|
+
d: "M52.361 16.317l-1.887 1.567a85.846 85.846 0 012.69 3.413l2.21-1.807a139.506 139.506 0 01-3.013-3.173z"
|
|
42
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
43
|
+
clipRule: "evenodd",
|
|
44
|
+
d: "M15.795 6.84a47.97 47.97 0 005.02-2.39L19.35 2.602A29.062 29.062 0 0115.795 4.5V2.08h-2.45v5.462c0 1.72.707 2.66 2.119 2.822-.81.475-1.71.95-2.7 1.425l-4.298.15c1.593-.521 2.965-.997 4.116-1.425L10.906 9.37l1.496-.2c.013-.844.053-1.613.12-2.31l-2.61.342V5.755h2.63V3.606h-2.63V2.141h-2.41v5.361l-1.566.19V3.186h-2.41v4.799L2 8.164l.402 2.43 7.55-1.084c-1.593.944-3.427 1.7-5.502 2.27l.642 1.967a76.252 76.252 0 013.886-.291 40.34 40.34 0 01-5.552 1.797l.783 2.27a90.76 90.76 0 012.871-.242 26.332 26.332 0 01-4.88 2.43c.63.91 1.072 1.593 1.326 2.048a36.647 36.647 0 004.327-2.249 17 17 0 01.492 2.35c1.111 0 2.082-.024 2.912-.07.83-.041 1.426-.245 1.787-.613.362-.368.542-.877.542-1.526V16.94l4.649-.17c.415.36.806.712 1.175 1.053l1.747-1.626a87.341 87.341 0 00-4.74-3.514l-1.525 1.285 1.335 1.084-7.982.402c2.838-.977 6.064-2.196 9.679-3.655l-1.607-1.405h2.35c.756 0 1.372-.144 1.847-.432.475-.288.793-.706.954-1.255.167-.556.331-1.386.492-2.49-.562-.188-1.346-.502-2.35-.944-.073 1.42-.214 2.27-.421 2.55-.201.281-.583.422-1.145.422H16.86c-.71 0-1.064-.361-1.064-1.084v-.322zM7.954 17.22l3.002-.16v1.506c0 .348-.084.593-.251.733-.168.14-.492.211-.974.211-.536 0-1.115-.027-1.737-.08.408-.248.82-.509 1.235-.783L7.954 17.22z"
|
|
45
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
46
|
+
d: "M21.598 19.751A68.556 68.556 0 0015.916 17l-1.265 1.888a63.801 63.801 0 015.642 2.891l1.305-2.028z"
|
|
47
|
+
})]
|
|
48
|
+
}));
|
|
49
|
+
});
|
|
50
|
+
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,26 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["background"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { memo } from 'react';
|
|
11
|
+
import IconAvatar from "../../IconAvatar";
|
|
12
|
+
import { COLOR_GRADIENT, TITLE } from "../style";
|
|
13
|
+
import Mono from "./Mono";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
16
|
+
var background = _ref.background,
|
|
17
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
19
|
+
Icon: Mono,
|
|
20
|
+
"aria-label": TITLE,
|
|
21
|
+
background: background || COLOR_GRADIENT,
|
|
22
|
+
color: '#fff',
|
|
23
|
+
iconMultiple: 0.6
|
|
24
|
+
}, rest));
|
|
25
|
+
});
|
|
26
|
+
export default Avatar;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["size", "style"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { forwardRef } from 'react';
|
|
11
|
+
import { useFillId } from "../../hooks/useFillId";
|
|
12
|
+
import { TITLE } from "../style";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16
|
+
var _ref$size = _ref.size,
|
|
17
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
18
|
+
style = _ref.style,
|
|
19
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
var _useFillId = useFillId(TITLE),
|
|
21
|
+
fill = _useFillId.fill,
|
|
22
|
+
id = _useFillId.id;
|
|
23
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
24
|
+
height: size,
|
|
25
|
+
ref: ref,
|
|
26
|
+
style: _objectSpread({
|
|
27
|
+
flex: 'none',
|
|
28
|
+
lineHeight: 1
|
|
29
|
+
}, style),
|
|
30
|
+
viewBox: "0 0 24 24",
|
|
31
|
+
width: size,
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
33
|
+
}, rest), {}, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
35
|
+
children: TITLE
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
clipRule: "evenodd",
|
|
38
|
+
d: "M2.371 0C1.614 0 1 .614 1 1.371v18.522c0 .758.614 1.372 1.371 1.372h2.397l7.21 2.691a.686.686 0 00.926-.642V7.756c0-.572-.355-1.084-.891-1.284L4.768 3.765h13.72v17.5h2.398c.757 0 1.371-.614 1.371-1.372V1.371C22.257.614 21.643 0 20.886 0H2.37zm8.612 16.183c.31.15.562-.037.562-.42 0-.385-.251-.818-.562-.968-.31-.152-.561.037-.561.42s.251.816.561.968z",
|
|
39
|
+
fill: fill,
|
|
40
|
+
fillRule: "evenodd"
|
|
41
|
+
}), /*#__PURE__*/_jsx("defs", {
|
|
42
|
+
children: /*#__PURE__*/_jsxs("linearGradient", {
|
|
43
|
+
gradientUnits: "userSpaceOnUse",
|
|
44
|
+
id: id,
|
|
45
|
+
x1: "0",
|
|
46
|
+
x2: "24.5",
|
|
47
|
+
y1: "0",
|
|
48
|
+
y2: "24",
|
|
49
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
|
50
|
+
stopColor: "#2622FF"
|
|
51
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
52
|
+
offset: "1",
|
|
53
|
+
stopColor: "#A717FF"
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
59
|
+
export default Icon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type IconCombineProps } from "../../IconCombine";
|
|
3
|
+
export interface CombineProps extends Omit<IconCombineProps, 'Icon' | 'Text'> {
|
|
4
|
+
type?: 'color' | 'mono';
|
|
5
|
+
}
|
|
6
|
+
declare const Combine: import("react").NamedExoticComponent<CombineProps>;
|
|
7
|
+
export default Combine;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["type"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { memo } from 'react';
|
|
11
|
+
import IconCombine from "../../IconCombine";
|
|
12
|
+
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from "../style";
|
|
13
|
+
import Color from "./Color";
|
|
14
|
+
import Mono from "./Mono";
|
|
15
|
+
import Text from "./Text";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
18
|
+
var _ref$type = _ref.type,
|
|
19
|
+
type = _ref$type === void 0 ? 'mono' : _ref$type,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
var Icon = type === 'color' ? Color : Mono;
|
|
22
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
23
|
+
Icon: Icon,
|
|
24
|
+
Text: Text,
|
|
25
|
+
"aria-label": TITLE,
|
|
26
|
+
spaceMultiple: SPACE_MULTIPLE,
|
|
27
|
+
textMultiple: TEXT_MULTIPLE
|
|
28
|
+
}, rest));
|
|
29
|
+
});
|
|
30
|
+
export default Combine;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["size", "style"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { forwardRef } from 'react';
|
|
11
|
+
import { TITLE } from "../style";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
+
var _ref$size = _ref.size,
|
|
16
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
17
|
+
style = _ref.style,
|
|
18
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
height: size,
|
|
23
|
+
ref: ref,
|
|
24
|
+
style: _objectSpread({
|
|
25
|
+
flex: 'none',
|
|
26
|
+
lineHeight: 1
|
|
27
|
+
}, style),
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
width: size,
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
31
|
+
}, rest), {}, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
33
|
+
children: TITLE
|
|
34
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
35
|
+
clipRule: "evenodd",
|
|
36
|
+
d: "M2.371 0C1.614 0 1 .614 1 1.371v18.522c0 .758.614 1.372 1.371 1.372h2.397l7.21 2.691a.686.686 0 00.926-.642V7.756c0-.572-.355-1.084-.891-1.284L4.768 3.765h13.72v17.5h2.398c.757 0 1.371-.614 1.371-1.372V1.371C22.257.614 21.643 0 20.886 0H2.37zm8.612 16.183c.31.15.562-.037.562-.42 0-.385-.251-.818-.562-.968-.31-.152-.561.037-.561.42s.251.816.561.968z"
|
|
37
|
+
})]
|
|
38
|
+
}));
|
|
39
|
+
});
|
|
40
|
+
export default Icon;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["size", "style"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
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
|
+
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 { forwardRef } from 'react';
|
|
11
|
+
import { TITLE } from "../style";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
|
+
var _ref$size = _ref.size,
|
|
16
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
17
|
+
style = _ref.style,
|
|
18
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
height: size,
|
|
23
|
+
ref: ref,
|
|
24
|
+
style: _objectSpread({
|
|
25
|
+
flex: 'none',
|
|
26
|
+
lineHeight: 1,
|
|
27
|
+
width: 'fit-content'
|
|
28
|
+
}, style),
|
|
29
|
+
viewBox: "0 0 126 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: "M59.34 2.062a2.05 2.05 0 01-2.072 2.061c-1.18 0-2.1-.903-2.1-2.061S56.088 0 57.268 0a2.05 2.05 0 012.071 2.062zM58.878 21.746h-3.28V6.185h3.28v15.56zM13.249 21.746h3.25v-9.179c0-4.349-2.79-6.636-6.501-6.636-1.899 0-3.654.762-4.718 2.033v-1.78H2v15.562h3.28v-8.699c0-2.852 1.582-4.32 3.999-4.32 2.387 0 3.97 1.468 3.97 4.32v8.699z"
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
clipRule: "evenodd",
|
|
38
|
+
d: "M27.693 5.93c4.516 0 8.084 3.136 8.084 8.021 0 4.886-3.683 8.049-8.228 8.049-4.517 0-7.94-3.163-7.94-8.049 0-4.885 3.567-8.02 8.084-8.02zm-.057 2.797c-2.474 0-4.689 1.694-4.689 5.224 0 3.53 2.129 5.253 4.603 5.253 2.445 0 4.862-1.723 4.862-5.253 0-3.53-2.33-5.224-4.776-5.224z"
|
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
40
|
+
d: "M43.169 21.746L37.156 6.185h3.51l4.488 12.68 4.488-12.68h3.48l-6.04 15.56h-3.913zM68.286 21.746c-2.82 0-4.575-1.158-4.575-4.321V8.81h-1.87V6.185h1.87v-3.87h3.309v3.87h3.855V8.81H67.02v8.614c0 1.158.46 1.638 1.84 1.638h2.015v2.683h-2.589z"
|
|
41
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
42
|
+
clipRule: "evenodd",
|
|
43
|
+
d: "M80.224 22c-4.114 0-7.423-3.304-7.423-8.105s3.309-7.964 7.48-7.964c2.676 0 4.517 1.242 5.495 2.513v-2.26h3.309v15.562h-3.309V19.43C84.77 20.757 82.87 22 80.224 22zm.747-2.796c2.474 0 4.804-1.892 4.804-5.253 0-3.332-2.33-5.224-4.804-5.224-2.445 0-4.804 1.807-4.804 5.168 0 3.36 2.36 5.31 4.804 5.31z"
|
|
44
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
45
|
+
d: "M94.725 17.82a2.05 2.05 0 012.071 2.062 2.05 2.05 0 01-2.071 2.062c-1.18 0-2.1-.904-2.1-2.062s.92-2.062 2.1-2.062z"
|
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
47
|
+
clipRule: "evenodd",
|
|
48
|
+
d: "M106.662 22c-4.114 0-7.422-3.304-7.422-8.105s3.308-7.964 7.479-7.964c2.676 0 4.517 1.242 5.495 2.513v-2.26h3.309v15.562h-3.309V19.43c-1.007 1.327-2.905 2.57-5.552 2.57zm.747-2.796c2.474 0 4.804-1.892 4.804-5.253 0-3.332-2.33-5.224-4.804-5.224-2.445 0-4.804 1.807-4.804 5.168 0 3.36 2.359 5.31 4.804 5.31z"
|
|
49
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
50
|
+
d: "M121.508 4.123a2.05 2.05 0 002.071-2.061A2.05 2.05 0 00121.508 0c-1.18 0-2.1.904-2.1 2.062s.92 2.061 2.1 2.061zM119.839 21.746h3.279V6.185h-3.279v15.56z"
|
|
51
|
+
})]
|
|
52
|
+
}));
|
|
53
|
+
});
|
|
54
|
+
export default Icon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Avatar from './components/Avatar';
|
|
2
|
+
import Color from './components/Color';
|
|
3
|
+
import Combine from './components/Combine';
|
|
4
|
+
import Mono from './components/Mono';
|
|
5
|
+
import Text from './components/Text';
|
|
6
|
+
export type CompoundedIcon = typeof Mono & {
|
|
7
|
+
Avatar: typeof Avatar;
|
|
8
|
+
Color: typeof Color;
|
|
9
|
+
Combine: typeof Combine;
|
|
10
|
+
Text: typeof Text;
|
|
11
|
+
colorGradient: string;
|
|
12
|
+
colorPrimary: string;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
declare const Icons: CompoundedIcon;
|
|
16
|
+
export default Icons;
|
|
@@ -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
|
+
import { COLOR_GRADIENT, 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.colorGradient = COLOR_GRADIENT;
|
|
14
|
+
Icons.title = TITLE;
|
|
15
|
+
export default Icons;
|
|
@@ -29,7 +29,7 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
29
29
|
align: 'center',
|
|
30
30
|
gap: 8,
|
|
31
31
|
horizontal: true,
|
|
32
|
-
children: /*#__PURE__*/_jsx("
|
|
32
|
+
children: /*#__PURE__*/_jsx("h3", {
|
|
33
33
|
style: {
|
|
34
34
|
lineHeight: 1,
|
|
35
35
|
margin: 0
|
|
@@ -39,7 +39,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
39
39
|
}), /*#__PURE__*/_jsx(Highlighter, {
|
|
40
40
|
className: styles.code,
|
|
41
41
|
language: 'tsx',
|
|
42
|
-
type: 'ghost',
|
|
43
42
|
children: "import { forwardRef } from 'react';\nimport type { IconType } from '@/types';\n\nimport { TITLE } from '../style';\n\nconst Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {\n return (\n <svg\n height={size}\n ref={ref}\n style={{ flex: 'none', lineHeight: 1, ...style }}\n viewBox=\"".concat(viewbox, "\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...rest}\n >\n <title>{TITLE}</title>\n ").concat(svg, "\n </svg>\n );\n});\n\nexport default Icon;\n")
|
|
44
43
|
})]
|
|
45
44
|
});
|
|
@@ -29,7 +29,7 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
29
29
|
align: 'center',
|
|
30
30
|
gap: 8,
|
|
31
31
|
horizontal: true,
|
|
32
|
-
children: /*#__PURE__*/_jsx("
|
|
32
|
+
children: /*#__PURE__*/_jsx("h3", {
|
|
33
33
|
style: {
|
|
34
34
|
lineHeight: 1,
|
|
35
35
|
margin: 0
|
|
@@ -39,7 +39,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
39
39
|
}), /*#__PURE__*/_jsx(Highlighter, {
|
|
40
40
|
className: styles.code,
|
|
41
41
|
language: 'tsx',
|
|
42
|
-
type: 'ghost',
|
|
43
42
|
children: "import { forwardRef } from 'react';\nimport type { IconType } from '@/types';\n\nimport { TITLE } from '../style';\n\nconst Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {\n return (\n <svg\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n height={size}\n ref={ref}\n style={{ flex: 'none', lineHeight: 1, ...style }}\n viewBox=\"".concat(viewbox, "\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...rest}\n >\n <title>{TITLE}</title>\n ").concat(svg, "\n </svg>\n );\n});\n\nexport default Icon;\n")
|
|
44
43
|
})]
|
|
45
44
|
});
|
|
@@ -30,7 +30,7 @@ var Preview = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
30
30
|
align: 'center',
|
|
31
31
|
gap: 8,
|
|
32
32
|
horizontal: true,
|
|
33
|
-
children: [/*#__PURE__*/_jsx("
|
|
33
|
+
children: [/*#__PURE__*/_jsx("h3", {
|
|
34
34
|
style: {
|
|
35
35
|
lineHeight: 1,
|
|
36
36
|
margin: 0
|
|
@@ -48,7 +48,6 @@ var Preview = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
48
48
|
}), /*#__PURE__*/_jsx(Highlighter, {
|
|
49
49
|
className: styles.code,
|
|
50
50
|
language: 'tsx',
|
|
51
|
-
type: 'ghost',
|
|
52
51
|
children: svg
|
|
53
52
|
})]
|
|
54
53
|
})]
|
|
@@ -29,7 +29,7 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
29
29
|
align: 'center',
|
|
30
30
|
gap: 8,
|
|
31
31
|
horizontal: true,
|
|
32
|
-
children: /*#__PURE__*/_jsx("
|
|
32
|
+
children: /*#__PURE__*/_jsx("h3", {
|
|
33
33
|
style: {
|
|
34
34
|
lineHeight: 1,
|
|
35
35
|
margin: 0
|
|
@@ -39,7 +39,6 @@ var Preview = /*#__PURE__*/memo(function (_ref2) {
|
|
|
39
39
|
}), /*#__PURE__*/_jsx(Highlighter, {
|
|
40
40
|
className: styles.code,
|
|
41
41
|
language: 'tsx',
|
|
42
|
-
type: 'ghost',
|
|
43
42
|
children: "import { forwardRef } from 'react';\nimport type { IconType } from '@/types';\n\nimport { TITLE } from '../style';\n\nconst Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {\n return (\n <svg\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n height={size}\n ref={ref}\n style={{ flex: 'none', lineHeight: 1, width: 'fit-content', ...style }}\n viewBox=\"".concat(viewbox, "\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...rest}\n >\n <title>{TITLE}</title>\n ").concat(svg, "\n </svg>\n );\n});\n\nexport default Icon;\n")
|
|
44
43
|
})]
|
|
45
44
|
});
|
|
@@ -11,7 +11,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
11
11
|
token = _ref.token,
|
|
12
12
|
cx = _ref.cx;
|
|
13
13
|
return {
|
|
14
|
-
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n
|
|
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 "])))),
|
|
15
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)
|
|
16
16
|
};
|
|
17
17
|
});
|
|
@@ -20,7 +20,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
20
20
|
token = _ref.token,
|
|
21
21
|
cx = _ref.cx;
|
|
22
22
|
return {
|
|
23
|
-
btn: cx('copy-button', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n
|
|
23
|
+
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
24
|
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n\n flex: none;\n\n padding: 12px;\n\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.colorBgContainer, token.colorBorder, token.borderRadius),
|
|
25
25
|
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
26
|
};
|
package/es/hooks/useFillId.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
1
2
|
export var useFillId = function useFillId(namespace) {
|
|
2
3
|
var id = "lobe-icons-".concat(namespace.toLowerCase(), "-fill");
|
|
3
|
-
return {
|
|
4
|
-
fill: "url(#".concat(id, ")"),
|
|
5
|
-
id: id
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export var useFillIds = function useFillIds(namespace, length) {
|
|
9
|
-
var ids = Array.from({
|
|
10
|
-
length: length
|
|
11
|
-
}, function (_, i) {
|
|
12
|
-
var id = "lobe-icons-".concat(namespace.toLowerCase(), "-fill-").concat(i);
|
|
4
|
+
return useMemo(function () {
|
|
13
5
|
return {
|
|
14
6
|
fill: "url(#".concat(id, ")"),
|
|
15
7
|
id: id
|
|
16
8
|
};
|
|
17
|
-
});
|
|
18
|
-
|
|
9
|
+
}, [namespace]);
|
|
10
|
+
};
|
|
11
|
+
export var useFillIds = function useFillIds(namespace, length) {
|
|
12
|
+
return useMemo(function () {
|
|
13
|
+
var ids = Array.from({
|
|
14
|
+
length: length
|
|
15
|
+
}, function (_, i) {
|
|
16
|
+
var id = "lobe-icons-".concat(namespace.toLowerCase(), "-fill-").concat(i);
|
|
17
|
+
return {
|
|
18
|
+
fill: "url(#".concat(id, ")"),
|
|
19
|
+
id: id
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
return ids;
|
|
23
|
+
}, [namespace]);
|
|
19
24
|
};
|
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as Adobe, type CompoundedIcon as AdobeProps } from './Adobe';
|
|
2
2
|
export { default as AdobeFirefly, type CompoundedIcon as AdobeFireflyProps } from './AdobeFirefly';
|
|
3
3
|
export { default as Ai21, type CompoundedIcon as Ai21Props } from './Ai21';
|
|
4
|
+
export { default as Ai360, type CompoundedIcon as Ai360Props } from './Ai360';
|
|
5
|
+
export { default as AiMass, type CompoundedIcon as AiMassProps } from './AiMass';
|
|
4
6
|
export { default as Alibaba, type CompoundedIcon as AlibabaProps } from './Alibaba';
|
|
5
7
|
export { default as AntGroup, type CompoundedIcon as AntGroupProps } from './AntGroup';
|
|
6
8
|
export { default as Anthropic, type CompoundedIcon as AnthropicProps } from './Anthropic';
|
|
@@ -45,6 +47,7 @@ export { default as Midjourney, type CompoundedIcon as MidjourneyProps } from '.
|
|
|
45
47
|
export { default as Minimax, type CompoundedIcon as MinimaxProps } from './Minimax';
|
|
46
48
|
export { default as Mistral, type CompoundedIcon as MistralProps } from './Mistral';
|
|
47
49
|
export { default as Moonshot, type CompoundedIcon as MoonshotProps } from './Moonshot';
|
|
50
|
+
export { default as Novita, type CompoundedIcon as NovitaProps } from './Novita';
|
|
48
51
|
export { default as Nvidia, type CompoundedIcon as NvidiaProps } from './Nvidia';
|
|
49
52
|
export { default as Ollama, type CompoundedIcon as OllamaProps } from './Ollama';
|
|
50
53
|
export { default as OpenAI, type CompoundedIcon as OpenAIProps } from './OpenAI';
|