@lobehub/icons 5.7.0 → 5.8.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.
|
@@ -10,12 +10,12 @@ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("
|
|
|
10
10
|
import { memo } from 'react';
|
|
11
11
|
import IconAvatar from "../../features/IconAvatar";
|
|
12
12
|
import { AVATAR_BACKGROUND, AVATAR_COLOR, AVATAR_ICON_MULTIPLE, TITLE } from "../style";
|
|
13
|
-
import
|
|
13
|
+
import Color from "./Color";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
16
16
|
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
17
17
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
18
|
-
Icon:
|
|
18
|
+
Icon: Color,
|
|
19
19
|
"aria-label": TITLE,
|
|
20
20
|
background: AVATAR_BACKGROUND,
|
|
21
21
|
color: AVATAR_COLOR,
|
|
@@ -11,7 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { memo } from 'react';
|
|
13
13
|
import IconCombine from "../../features/IconCombine";
|
|
14
|
-
import { COMBINE_SPACE_MULTIPLE, COMBINE_TEXT_MULTIPLE, TITLE } from "../style";
|
|
14
|
+
import { COLOR_PRIMARY, COMBINE_SPACE_MULTIPLE, COMBINE_TEXT_MULTIPLE, TITLE } from "../style";
|
|
15
15
|
import Text from "./Text";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -21,7 +21,7 @@ var Combine = /*#__PURE__*/memo(function (_ref) {
|
|
|
21
21
|
return /*#__PURE__*/_jsx(IconCombine, _objectSpread({
|
|
22
22
|
Text: Text,
|
|
23
23
|
"aria-label": TITLE,
|
|
24
|
-
color: type === 'color' ?
|
|
24
|
+
color: type === 'color' ? COLOR_PRIMARY : undefined,
|
|
25
25
|
spaceMultiple: COMBINE_SPACE_MULTIPLE,
|
|
26
26
|
textMultiple: COMBINE_TEXT_MULTIPLE
|
|
27
27
|
}, rest));
|
|
@@ -33,7 +33,10 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
|
|
|
33
33
|
children: [/*#__PURE__*/_jsx("title", {
|
|
34
34
|
children: TITLE
|
|
35
35
|
}), /*#__PURE__*/_jsx("path", {
|
|
36
|
-
|
|
36
|
+
clipRule: "evenodd",
|
|
37
|
+
d: "M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128h.001zM16.59 3.052a1.095 1.095 0 011.562-.13c.466.405.522 1.117.126 1.59l-5.938 7.112v9.147c0 .624-.496 1.129-1.108 1.129a1.119 1.119 0 01-1.108-1.13v-9.476l.003-.088.01-.087a1.14 1.14 0 01.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"
|
|
38
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
39
|
+
d: "M20.146 12.071c.748 0 1.354-.617 1.354-1.379s-.606-1.379-1.354-1.379c-.748 0-1.354.617-1.354 1.379s.606 1.379 1.354 1.379z"
|
|
37
40
|
})]
|
|
38
41
|
}));
|
|
39
42
|
});
|
package/es/ZeroOne/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Avatar from './components/Avatar';
|
|
2
|
+
import Color from './components/Color';
|
|
2
3
|
import Combine from './components/Combine';
|
|
3
4
|
import Mono from './components/Mono';
|
|
4
5
|
import Text from './components/Text';
|
|
5
6
|
export type CompoundedIcon = typeof Mono & {
|
|
6
7
|
Avatar: typeof Avatar;
|
|
8
|
+
Color: typeof Color;
|
|
7
9
|
Combine: typeof Combine;
|
|
8
10
|
Text: typeof Text;
|
|
9
11
|
colorPrimary: string;
|
package/es/ZeroOne/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import Avatar from "./components/Avatar";
|
|
2
|
+
import Color from "./components/Color";
|
|
2
3
|
import Combine from "./components/Combine";
|
|
3
4
|
import Mono from "./components/Mono";
|
|
4
5
|
import Text from "./components/Text";
|
|
5
6
|
import { COLOR_PRIMARY, TITLE } from "./style";
|
|
6
7
|
var Icons = Mono;
|
|
7
8
|
Icons.Text = Text;
|
|
9
|
+
Icons.Color = Color;
|
|
8
10
|
Icons.Combine = Combine;
|
|
9
11
|
Icons.Avatar = Avatar;
|
|
10
12
|
Icons.colorPrimary = COLOR_PRIMARY;
|