@lobehub/icons 2.29.2 → 2.31.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 +92 -90
- package/es/AkashChat/components/Avatar.d.ts +5 -0
- package/es/AkashChat/components/Avatar.js +25 -0
- package/es/AkashChat/components/Color.d.ts +3 -0
- package/es/AkashChat/components/Color.js +65 -0
- package/es/AkashChat/components/Combine.d.ts +7 -0
- package/es/AkashChat/components/Combine.js +32 -0
- package/es/AkashChat/components/Mono.d.ts +3 -0
- package/es/AkashChat/components/Mono.js +47 -0
- package/es/AkashChat/components/Text.d.ts +3 -0
- package/es/AkashChat/components/Text.js +43 -0
- package/es/AkashChat/index.d.ts +15 -0
- package/es/AkashChat/index.js +14 -0
- package/es/AkashChat/style.d.ts +7 -0
- package/es/AkashChat/style.js +9 -0
- package/es/Bailian/components/Avatar.d.ts +5 -0
- package/es/Bailian/components/Avatar.js +25 -0
- package/es/Bailian/components/Color.d.ts +3 -0
- package/es/Bailian/components/Color.js +57 -0
- package/es/Bailian/components/Combine.d.ts +7 -0
- package/es/Bailian/components/Combine.js +32 -0
- package/es/Bailian/components/Mono.d.ts +3 -0
- package/es/Bailian/components/Mono.js +57 -0
- package/es/Bailian/components/Text.d.ts +3 -0
- package/es/Bailian/components/Text.js +39 -0
- package/es/Bailian/index.d.ts +15 -0
- package/es/Bailian/index.js +14 -0
- package/es/Bailian/style.d.ts +7 -0
- package/es/Bailian/style.js +9 -0
- package/es/CometAPI/components/Avatar.d.ts +5 -0
- package/es/CometAPI/components/Avatar.js +25 -0
- package/es/CometAPI/components/Color.d.ts +3 -0
- package/es/CometAPI/components/Color.js +48 -0
- package/es/CometAPI/components/Combine.d.ts +7 -0
- package/es/CometAPI/components/Combine.js +32 -0
- package/es/CometAPI/components/Mono.d.ts +3 -0
- package/es/CometAPI/components/Mono.js +42 -0
- package/es/CometAPI/components/Text.d.ts +3 -0
- package/es/CometAPI/components/Text.js +39 -0
- package/es/CometAPI/index.d.ts +15 -0
- package/es/CometAPI/index.js +14 -0
- package/es/CometAPI/style.d.ts +7 -0
- package/es/CometAPI/style.js +9 -0
- package/es/NewAPI/components/Avatar.d.ts +5 -0
- package/es/NewAPI/components/Avatar.js +25 -0
- package/es/NewAPI/components/Color.d.ts +3 -0
- package/es/NewAPI/components/Color.js +100 -0
- package/es/NewAPI/components/Combine.d.ts +7 -0
- package/es/NewAPI/components/Combine.js +32 -0
- package/es/NewAPI/components/Mono.d.ts +3 -0
- package/es/NewAPI/components/Mono.js +44 -0
- package/es/NewAPI/components/Text.d.ts +3 -0
- package/es/NewAPI/components/Text.js +39 -0
- package/es/NewAPI/index.d.ts +15 -0
- package/es/NewAPI/index.js +14 -0
- package/es/NewAPI/style.d.ts +7 -0
- package/es/NewAPI/style.js +9 -0
- package/es/SophNet/components/Avatar.d.ts +5 -0
- package/es/SophNet/components/Avatar.js +25 -0
- package/es/SophNet/components/Color.d.ts +3 -0
- package/es/SophNet/components/Color.js +48 -0
- package/es/SophNet/components/Combine.d.ts +7 -0
- package/es/SophNet/components/Combine.js +32 -0
- package/es/SophNet/components/Mono.d.ts +3 -0
- package/es/SophNet/components/Mono.js +46 -0
- package/es/SophNet/components/Text.d.ts +3 -0
- package/es/SophNet/components/Text.js +39 -0
- package/es/SophNet/index.d.ts +15 -0
- package/es/SophNet/index.js +14 -0
- package/es/SophNet/style.d.ts +7 -0
- package/es/SophNet/style.js +9 -0
- package/es/TuriX/components/Avatar.d.ts +5 -0
- package/es/TuriX/components/Avatar.js +25 -0
- package/es/TuriX/components/Combine.d.ts +4 -0
- package/es/TuriX/components/Combine.js +26 -0
- package/es/TuriX/components/Mono.d.ts +3 -0
- package/es/TuriX/components/Mono.js +40 -0
- package/es/TuriX/components/Text.d.ts +3 -0
- package/es/TuriX/components/Text.js +40 -0
- package/es/TuriX/index.d.ts +14 -0
- package/es/TuriX/index.js +13 -0
- package/es/TuriX/style.d.ts +8 -0
- package/es/TuriX/style.js +10 -0
- package/es/features/providerConfig.js +20 -1
- package/es/features/providerEnum.d.ts +4 -0
- package/es/features/providerEnum.js +4 -0
- package/es/hooks/useFillId.js +3 -2
- package/es/icons.d.ts +6 -0
- package/es/icons.js +6 -0
- package/es/toc.js +109 -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,65 @@
|
|
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 { useFillId } from "../../hooks/useFillId";
|
14
|
+
import { TITLE } from "../style";
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
17
|
+
var Icon = /*#__PURE__*/memo(function (_ref) {
|
18
|
+
var _ref$size = _ref.size,
|
19
|
+
size = _ref$size === void 0 ? '1em' : _ref$size,
|
20
|
+
style = _ref.style,
|
21
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
22
|
+
var _useFillId = useFillId(TITLE),
|
23
|
+
id = _useFillId.id,
|
24
|
+
fill = _useFillId.fill;
|
25
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
26
|
+
height: size,
|
27
|
+
style: _objectSpread({
|
28
|
+
flex: 'none',
|
29
|
+
lineHeight: 1
|
30
|
+
}, style),
|
31
|
+
viewBox: "0 0 24 24",
|
32
|
+
width: size,
|
33
|
+
xmlns: "http://www.w3.org/2000/svg"
|
34
|
+
}, rest), {}, {
|
35
|
+
children: [/*#__PURE__*/_jsx("title", {
|
36
|
+
children: TITLE
|
37
|
+
}), /*#__PURE__*/_jsx("path", {
|
38
|
+
d: "M15.902 14.836l3.93 6.914h-7.934L7.93 14.836h7.972z",
|
39
|
+
fill: fill
|
40
|
+
}), /*#__PURE__*/_jsx("path", {
|
41
|
+
d: "M19.828 21.754l3.96-6.918L15.86 1H7.93l11.898 20.754z",
|
42
|
+
fill: "#FF414C"
|
43
|
+
}), /*#__PURE__*/_jsx("path", {
|
44
|
+
d: "M3.965 7.914h7.93L3.969 21.75 0 14.836l3.965-6.922z",
|
45
|
+
fill: "#FF414C"
|
46
|
+
}), /*#__PURE__*/_jsx("defs", {
|
47
|
+
children: /*#__PURE__*/_jsxs("linearGradient", {
|
48
|
+
gradientUnits: "userSpaceOnUse",
|
49
|
+
id: id,
|
50
|
+
x1: "13.877",
|
51
|
+
x2: "18.518",
|
52
|
+
y1: "19.997",
|
53
|
+
y2: "14.799",
|
54
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
55
|
+
stopColor: "#FF414C"
|
56
|
+
}), /*#__PURE__*/_jsx("stop", {
|
57
|
+
offset: "1",
|
58
|
+
stopColor: "#FF414C",
|
59
|
+
stopOpacity: "0"
|
60
|
+
})]
|
61
|
+
})
|
62
|
+
})]
|
63
|
+
}));
|
64
|
+
});
|
65
|
+
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,32 @@
|
|
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"];
|
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
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
23
|
+
var Icon = type === 'color' ? Color : Mono;
|
24
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
25
|
+
Icon: Icon,
|
26
|
+
Text: Text,
|
27
|
+
"aria-label": TITLE,
|
28
|
+
spaceMultiple: COMBINE_SPACE_MULTIPLE,
|
29
|
+
textMultiple: COMBINE_TEXT_MULTIPLE
|
30
|
+
}, rest));
|
31
|
+
});
|
32
|
+
export default Combine;
|
@@ -0,0 +1,47 @@
|
|
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: "M15.902 14.836l3.93 6.914h-7.934L7.93 14.836h7.972z"
|
38
|
+
}), /*#__PURE__*/_jsx("path", {
|
39
|
+
clipRule: "evenodd",
|
40
|
+
d: "M19.828 21.754l3.96-6.918L15.86 1H7.93l11.898 20.754z"
|
41
|
+
}), /*#__PURE__*/_jsx("path", {
|
42
|
+
clipRule: "evenodd",
|
43
|
+
d: "M3.965 7.914h7.93L3.969 21.75 0 14.836l3.965-6.922z"
|
44
|
+
})]
|
45
|
+
}));
|
46
|
+
});
|
47
|
+
export default Icon;
|
@@ -0,0 +1,43 @@
|
|
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 141 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: "M8.95 7.363c2.216 0 4.283.959 5.182 2.726l.21-2.277h3.325V22.61h-3.415l-.24-2.306C13.085 21.83 11.317 23 8.92 23 4.517 23 2 19.645 2 15.032c0-4.643 2.786-7.669 6.95-7.669zm31.81 0c2.216 0 4.284.959 5.182 2.726l.21-2.277h3.325V22.61h-3.414l-.24-2.305C44.892 21.832 43.125 23 40.73 23c-4.403 0-6.92-3.355-6.92-7.968 0-4.643 2.786-7.669 6.95-7.669zm16.786 0c3.325 0 5.571 1.918 5.602 4.793h-3.475c-.03-1.258-.869-2.067-2.276-2.067-1.438 0-2.278.66-2.278 1.767 0 .84.66 1.379 1.917 1.678l2.667.63c2.486.568 3.744 1.707 3.744 3.984 0 2.995-2.546 4.852-6.2 4.852-3.685 0-6.021-1.977-6.021-4.883H54.7c.03 1.288.989 2.097 2.666 2.097 1.708 0 2.636-.688 2.636-1.767 0-.749-.39-1.288-1.707-1.588l-2.666-.629c-2.666-.599-3.954-1.857-3.954-4.223 0-2.906 2.456-4.644 5.87-4.644zm-33.595 6.65l5.751-6.2h4.584l-5.632 5.87 5.512 8.927h-4.193l-3.865-6.23-2.157 2.246v3.984h-3.625V1.047h3.625v12.967zM69.315 9.73c.93-1.437 2.666-2.366 4.792-2.366 3.655 0 5.573 2.307 5.573 6.14v9.107h-3.655v-8.237c0-2.486-1.228-3.684-3.086-3.684-2.306 0-3.654 1.617-3.654 3.834v8.087h-3.654V1.047h3.684v8.682zm-59.527.96c-2.546 0-4.134 1.887-4.134 4.523 0 2.636 1.559 4.493 4.105 4.493 2.546 0 4.193-1.827 4.193-4.493 0-2.666-1.618-4.524-4.164-4.524zm31.81 0c-2.545 0-4.133 1.887-4.133 4.523 0 2.636 1.558 4.493 4.104 4.493 2.546 0 4.194-1.827 4.194-4.493 0-2.666-1.618-4.524-4.164-4.524z"
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
37
|
+
clipRule: "evenodd",
|
38
|
+
d: "M135.895 22.626h-2.084V9.566h-2.973V7.788h2.973V3.097h2.084v4.69h2.975v1.779h-2.975v13.06zm-9.071-14.839h1.87v14.838h-1.931l-.216-3.035c-1.072 2.238-3.096 3.403-5.609 3.403-4.385 0-6.868-3.372-6.868-7.848s2.667-7.756 6.959-7.756c2.392 0 4.569 1.042 5.611 3.495l.184-3.097zm-.368 7.42c0-3.434-1.84-5.887-5.089-5.887-3.25 0-5.151 2.453-5.151 5.886 0 3.434 1.87 5.887 5.09 5.887 3.249 0 5.15-2.453 5.15-5.887zm-25.83 7.388h-2.115V1h2.115v9.363c.951-1.779 2.759-2.974 5.243-2.974 3.893 0 5.641 2.422 5.641 6.162v9.074h-2.116v-8.614c0-3.464-1.625-4.69-3.924-4.69-3.188 0-4.844 2.36-4.844 5.211v8.063zm-18.472-7.358c0-4.66 2.851-7.848 7.174-7.848 3.433 0 5.947 1.993 6.53 5.058h-2.115c-.552-2.054-2.33-3.188-4.384-3.188-3.005 0-5.12 2.3-5.12 5.947 0 3.526 1.962 5.887 4.966 5.887 2.208 0 3.986-1.227 4.568-3.128h2.146c-.705 3.036-3.341 5.028-6.714 5.028-4.2 0-7.05-3.096-7.05-7.756z",
|
39
|
+
fillOpacity: ".5"
|
40
|
+
})]
|
41
|
+
}));
|
42
|
+
});
|
43
|
+
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 = "AkashChat";
|
2
|
+
export declare const COMBINE_TEXT_MULTIPLE = 0.9;
|
3
|
+
export declare const COMBINE_SPACE_MULTIPLE = 0.1;
|
4
|
+
export declare const COLOR_PRIMARY = "#000";
|
5
|
+
export declare const AVATAR_BACKGROUND = "#000";
|
6
|
+
export declare const AVATAR_COLOR = "#fff";
|
7
|
+
export declare const AVATAR_ICON_MULTIPLE = 0.75;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export var TITLE = 'AkashChat';
|
2
|
+
export var COMBINE_TEXT_MULTIPLE = 0.9;
|
3
|
+
export var COMBINE_SPACE_MULTIPLE = 0.1;
|
4
|
+
export var COLOR_PRIMARY = '#000';
|
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;
|
@@ -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,57 @@
|
|
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
|
+
height: size,
|
23
|
+
style: _objectSpread({
|
24
|
+
flex: 'none',
|
25
|
+
lineHeight: 1
|
26
|
+
}, style),
|
27
|
+
viewBox: "0 0 24 24",
|
28
|
+
width: size,
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
30
|
+
}, rest), {}, {
|
31
|
+
children: [/*#__PURE__*/_jsx("title", {
|
32
|
+
children: TITLE
|
33
|
+
}), /*#__PURE__*/_jsx("path", {
|
34
|
+
d: "M6.336 8.919v6.162l5.335-3.083L6.337 8.92z",
|
35
|
+
fill: "#1C54E3"
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
37
|
+
d: "M21.394 5.288s-.006-.006-.01-.006L17.01 2.754 6.336 8.92l5.335 3.082 9.701-5.6.016-.01a.635.635 0 00.006-1.1v-.003z",
|
38
|
+
fill: "#AA9AFF"
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
40
|
+
d: "M21.71 12.465a.62.62 0 00-.316.085s-.006 0-.009.003l-4.375 2.528 5.05 2.915h.006a2.06 2.06 0 00.28-1.04v-3.855a.637.637 0 00-.636-.636z",
|
41
|
+
fill: "#00EAD1"
|
42
|
+
}), /*#__PURE__*/_jsx("path", {
|
43
|
+
d: "M22.06 17.996l-5.05-2.915L6.34 21.242l4.27 2.465s.016.006.022.012a2.102 2.102 0 002.093 0c.006-.003.016-.006.022-.012l8.538-4.93c.003 0 .006-.003.01-.006.321-.183.589-.45.775-.772h-.006l-.004-.003z",
|
44
|
+
fill: "#00CEC9"
|
45
|
+
}), /*#__PURE__*/_jsx("path", {
|
46
|
+
d: "M11.672 11.998l-5.336 3.083-1.444.832-3.605 2.083H1.28c.173.303.416.555.709.738l.078.044.016.01.02.012 4.232 2.442 10.671-6.161-5.335-3.082z",
|
47
|
+
fill: "#00EAD1"
|
48
|
+
}), /*#__PURE__*/_jsx("path", {
|
49
|
+
d: "M12.74.29c-.1-.06-.208-.107-.315-.148-.02-.006-.038-.016-.057-.022a2.121 2.121 0 00-.7-.12c-.233 0-.457.038-.668.11l-.031.01a2.196 2.196 0 00-.372.17L2.068 5.222s-.003 0-.006.003c-.324.183-.592.451-.781.773h.006l5.049 2.918L17.01 2.758 12.74.29z",
|
50
|
+
fill: "#7347FF"
|
51
|
+
}), /*#__PURE__*/_jsx("path", {
|
52
|
+
d: "M1.287 6.001H1.28A2.06 2.06 0 001 7.041v9.915c0 .378.1.735.28 1.043h.007l5.049-2.918V8.919l-5.05-2.918z",
|
53
|
+
fill: "#0423DA"
|
54
|
+
})]
|
55
|
+
}));
|
56
|
+
});
|
57
|
+
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,32 @@
|
|
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"];
|
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
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
23
|
+
var Icon = type === 'color' ? Color : Mono;
|
24
|
+
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
25
|
+
Icon: Icon,
|
26
|
+
Text: Text,
|
27
|
+
"aria-label": TITLE,
|
28
|
+
spaceMultiple: COMBINE_SPACE_MULTIPLE,
|
29
|
+
textMultiple: COMBINE_TEXT_MULTIPLE
|
30
|
+
}, rest));
|
31
|
+
});
|
32
|
+
export default Combine;
|
@@ -0,0 +1,57 @@
|
|
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
|
+
d: "M6.336 8.919v6.162l5.335-3.083L6.337 8.92z",
|
37
|
+
fillOpacity: ".4"
|
38
|
+
}), /*#__PURE__*/_jsx("path", {
|
39
|
+
d: "M21.394 5.288s-.006-.006-.01-.006L17.01 2.754 6.336 8.92l5.335 3.082 9.701-5.6.016-.01a.635.635 0 00.006-1.1v-.003z",
|
40
|
+
fillOpacity: ".8"
|
41
|
+
}), /*#__PURE__*/_jsx("path", {
|
42
|
+
d: "M21.71 12.465a.62.62 0 00-.316.085s-.006 0-.009.003l-4.375 2.528 5.05 2.915h.006a2.06 2.06 0 00.28-1.04v-3.855a.637.637 0 00-.636-.636z"
|
43
|
+
}), /*#__PURE__*/_jsx("path", {
|
44
|
+
d: "M22.06 17.996l-5.05-2.915L6.34 21.242l4.27 2.465s.016.006.022.012a2.102 2.102 0 002.093 0c.006-.003.016-.006.022-.012l8.538-4.93c.003 0 .006-.003.01-.006.321-.183.589-.45.775-.772h-.006l-.004-.003z",
|
45
|
+
fillOpacity: ".8"
|
46
|
+
}), /*#__PURE__*/_jsx("path", {
|
47
|
+
d: "M11.672 11.998l-5.336 3.083-1.444.832-3.605 2.083H1.28c.173.303.416.555.709.738l.078.044.016.01.02.012 4.232 2.442 10.671-6.161-5.335-3.082z"
|
48
|
+
}), /*#__PURE__*/_jsx("path", {
|
49
|
+
d: "M12.74.29c-.1-.06-.208-.107-.315-.148-.02-.006-.038-.016-.057-.022a2.121 2.121 0 00-.7-.12c-.233 0-.457.038-.668.11l-.031.01a2.196 2.196 0 00-.372.17L2.068 5.222s-.003 0-.006.003c-.324.183-.592.451-.781.773h.006l5.049 2.918L17.01 2.758 12.74.29z",
|
50
|
+
fillOpacity: ".6"
|
51
|
+
}), /*#__PURE__*/_jsx("path", {
|
52
|
+
d: "M1.287 6.001H1.28A2.06 2.06 0 001 7.041v9.915c0 .378.1.735.28 1.043h.007l5.049-2.918V8.919l-5.05-2.918z",
|
53
|
+
fillOpacity: ".3"
|
54
|
+
})]
|
55
|
+
}));
|
56
|
+
});
|
57
|
+
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: "evenodd",
|
24
|
+
height: size,
|
25
|
+
style: _objectSpread({
|
26
|
+
flex: 'none',
|
27
|
+
lineHeight: 1
|
28
|
+
}, style),
|
29
|
+
viewBox: "0 0 114 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: "M3.004 22V2.782h6.807v1.825c-.115 2.203-.612 4.028-1.483 5.477 1.047 1.277 1.569 2.784 1.569 4.523.057 2.956-1.253 4.405-3.927 4.348v-2.088c1.282 0 1.918-.84 1.918-2.522.058-1.563-.493-2.926-1.66-4.085C7.1 8.578 7.54 6.695 7.54 4.607H5.358V22H3h.004zM10.6 4.955V3.13h12.044v1.825h-1.396v14.261c.057 1.683-.871 2.522-2.794 2.522h-2.008v-1.826h1.133c.814.058 1.192-.262 1.134-.957v-14h-8.117.004zm.35 12.784V6.867h6.284v8.174c.058 1.855-.842 2.755-2.707 2.698H10.95zm2.09-1.74h.962c.756 0 1.133-.376 1.133-1.13V8.607H13.04v7.392zm13.178-2.87V2.783h16.928v7.216c0 2.145-.99 3.19-2.966 3.132h-4.013v2.001h7.419v1.912h-7.419v2.35h8.553v1.653H24.648v-1.653H33.2v-2.35h-7.418v-1.912H33.2V13.13h-6.983zm2.621-1.825H33.2V8.87h-4.362v2.435zm10.384 0c.871 0 1.31-.434 1.31-1.306v-1.13H36.17v2.436h3.056-.004zM28.838 4.607v2.436H33.2V4.607h-4.362zm11.69 0h-4.362v2.436h4.363V4.607zm6.458 6.525V9.221h20.07v1.911h-10.56c-1.282 2.841-2.995 5.22-5.147 7.13 4.362 0 8.026-.171 10.996-.52a31.512 31.512 0 00-1.483-3.216h2.444c1.22 1.973 2.182 4.203 2.88 6.696h-2.707c0-.114-.029-.262-.086-.434a9.095 9.095 0 01-.35-1.13c-4.596.463-8.901.697-12.914.697h-1.66v-2.088c2.095-2.26 3.607-4.638 4.54-7.13h-6.023v-.005zm1.836-6.09V3.04H65.23V5.04H48.822zm20.593-.087V3.044h19.898v1.911h-8.639c-.058.868-.234 1.654-.522 2.35h7.419v10.958c.058 2.03-1.019 3.012-3.229 2.955H71.251V7.305h5.845c.115-.348.263-.9.436-1.654 0-.29.028-.52.086-.696h-8.203zm4.453 14.524h9.772c.87.057 1.31-.406 1.31-1.392v-2.87H73.868v4.261zm0-10.262v4.085H84.95V9.217H73.868zm25.217-3.914v-1.74h3.143c.057-.175.115-.433.172-.781.115-.348.173-.61.173-.782h2.707c-.115.52-.263 1.044-.436 1.564h6.634v1.74h-7.155a11.442 11.442 0 01-.699 2h3.315v3.914h4.363v1.826h-4.363v5.915c.058 1.911-.903 2.84-2.879 2.783h-2.009v-1.826h1.047c.871.058 1.282-.29 1.22-1.043v-5.825h-4.974v-1.826c.115-.233.263-.552.435-.958.292-.52.493-.929.612-1.215h-1.396V7.833c-.699.172-1.397.29-2.095.348.057 3.885.813 6.84 2.267 8.87v1.478c.933-1.101 1.541-2.636 1.832-4.61h2.268c-.292 3.304-1.832 5.596-4.626 6.87v-1.654l.087-.172c-1.282-1.044-2.239-2.288-2.88-3.742-.756 2.665-2.21 4.872-4.362 6.611v-2.087c1.162-1.797 1.947-3.537 2.358-5.22.406-1.74.612-4.117.612-7.13V2.09H96.9v4.175c.583-.057 1.281-.233 2.095-.52V7.31h2.095c.115-.233.234-.581.349-1.044.172-.405.292-.724.349-.958h-2.707l.004-.004zM112 20.784c-2.617-1.334-4.071-3.622-4.362-6.868h2.181c.234 2.145.961 3.884 2.181 5.219v1.653-.004zm-19.808-9.566c-.349-1.797-.583-3.77-.698-5.915h1.746c.057 2.145.349 4.118.87 5.915h-1.918zm10.648-2.173a3.826 3.826 0 00-.35.695c-.172.291-.464.782-.87 1.478h2.707V9.045h-1.487z"
|
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 = "BaiLian";
|
2
|
+
export declare const COMBINE_TEXT_MULTIPLE = 0.8;
|
3
|
+
export declare const COMBINE_SPACE_MULTIPLE = 0.2;
|
4
|
+
export declare const COLOR_PRIMARY = "#615ced";
|
5
|
+
export declare const AVATAR_BACKGROUND = "#fff";
|
6
|
+
export declare const AVATAR_COLOR = "#fff";
|
7
|
+
export declare const AVATAR_ICON_MULTIPLE = 0.75;
|