@lobehub/ui 3.3.2 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/A/index.d.ts +3 -3
- package/es/A/index.js +2 -2
- package/es/ActionIconGroup/ActionIconGroup.d.ts +2 -2
- package/es/ActionIconGroup/ActionIconGroup.js +3 -3
- package/es/Avatar/Avatar.js +6 -11
- package/es/Block/Block.d.ts +2 -2
- package/es/Block/Block.js +3 -3
- package/es/Button/Button.d.ts +2 -2
- package/es/Button/Button.js +3 -3
- package/es/ColorSwatches/ColorSwatches.d.ts +2 -2
- package/es/ColorSwatches/ColorSwatches.js +3 -3
- package/es/Empty/Empty.d.ts +2 -2
- package/es/Empty/Empty.js +2 -3
- package/es/FileTypeIcon/FileTypeIcon.d.ts +2 -2
- package/es/FileTypeIcon/FileTypeIcon.js +3 -3
- package/es/FileTypeIcon/components/FileIcon.d.ts +2 -2
- package/es/FileTypeIcon/components/FileIcon.js +2 -3
- package/es/FileTypeIcon/components/FolderIcon.d.ts +2 -2
- package/es/FileTypeIcon/components/FolderIcon.js +2 -3
- package/es/FluentEmoji/FluentEmoji.d.ts +2 -2
- package/es/FluentEmoji/FluentEmoji.js +3 -3
- package/es/Form/components/FormDivider.d.ts +2 -2
- package/es/Form/components/FormDivider.js +2 -3
- package/es/Form/components/FormFooter.d.ts +3 -2
- package/es/Form/components/FormFooter.js +2 -3
- package/es/Form/components/FormTitle.d.ts +2 -2
- package/es/Form/components/FormTitle.js +2 -3
- package/es/Grid/Grid.d.ts +2 -2
- package/es/Grid/Grid.js +2 -3
- package/es/GroupAvatar/GroupAvatar.d.ts +2 -2
- package/es/GroupAvatar/GroupAvatar.js +3 -3
- package/es/Img/index.d.ts +2 -2
- package/es/Img/index.js +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.ts +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +3 -3
- package/es/ScrollShadow/ScrollShadow.d.ts +2 -2
- package/es/ScrollShadow/ScrollShadow.js +3 -3
- package/es/Skeleton/Skeleton.d.ts +2 -2
- package/es/Skeleton/Skeleton.js +2 -3
- package/es/Skeleton/SkeletonAvatar.d.ts +2 -2
- package/es/Skeleton/SkeletonAvatar.js +3 -4
- package/es/Skeleton/SkeletonBlock.d.ts +2 -2
- package/es/Skeleton/SkeletonBlock.js +2 -3
- package/es/Skeleton/SkeletonButton.d.ts +2 -2
- package/es/Skeleton/SkeletonButton.js +2 -3
- package/es/Skeleton/SkeletonParagraph.d.ts +2 -2
- package/es/Skeleton/SkeletonParagraph.js +2 -3
- package/es/Skeleton/SkeletonTags.d.ts +2 -2
- package/es/Skeleton/SkeletonTags.js +2 -3
- package/es/Skeleton/SkeletonTitle.d.ts +2 -2
- package/es/Skeleton/SkeletonTitle.js +2 -3
- package/es/Snippet/Snippet.d.ts +2 -2
- package/es/Snippet/Snippet.js +3 -3
- package/es/Tabs/Tabs.d.ts +2 -2
- package/es/Tabs/Tabs.js +3 -3
- package/es/Tag/Tag.d.ts +2 -2
- package/es/Tag/Tag.js +3 -3
- package/es/Text/Text.d.ts +2 -2
- package/es/Text/Text.js +3 -3
- package/es/ThemeProvider/Meta.d.ts +2 -2
- package/es/ThemeProvider/Meta.js +3 -3
- package/es/ThemeSwitch/ThemeSwitch.d.ts +2 -2
- package/es/ThemeSwitch/ThemeSwitch.js +3 -3
- package/es/brand/Logo3d/index.d.ts +2 -2
- package/es/brand/Logo3d/index.js +2 -3
- package/es/brand/LogoThree/Loading.d.ts +3 -3
- package/es/brand/LogoThree/Loading.js +2 -3
- package/es/brand/components/Divider.d.ts +3 -3
- package/es/brand/components/Divider.js +3 -4
- package/es/chat/ChatHeader/ChatHeaderTitle.d.ts +2 -2
- package/es/chat/ChatHeader/ChatHeaderTitle.js +2 -3
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.ts +2 -2
- package/es/chat/ChatInputArea/components/ChatInputActionBar.js +2 -3
- package/es/chat/ChatInputArea/components/ChatSendButton.d.ts +2 -2
- package/es/chat/ChatInputArea/components/ChatSendButton.js +2 -3
- package/es/chat/ChatItem/components/Actions.d.ts +2 -2
- package/es/chat/ChatItem/components/Actions.js +2 -3
- package/es/chat/ChatItem/components/Avatar.d.ts +2 -2
- package/es/chat/ChatItem/components/Avatar.js +2 -3
- package/es/chat/ChatItem/components/BorderSpacing.d.ts +2 -2
- package/es/chat/ChatItem/components/BorderSpacing.js +2 -3
- package/es/chat/ChatItem/components/ErrorContent.d.ts +2 -2
- package/es/chat/ChatItem/components/ErrorContent.js +2 -3
- package/es/chat/ChatItem/components/Loading.d.ts +2 -2
- package/es/chat/ChatItem/components/Loading.js +2 -3
- package/es/chat/ChatItem/components/Title.d.ts +2 -2
- package/es/chat/ChatItem/components/Title.js +2 -3
- package/es/chat/ChatList/components/ChatActionsBar.d.ts +2 -2
- package/es/chat/ChatList/components/ChatActionsBar.js +2 -3
- package/es/chat/ChatList/components/HistoryDivider.d.ts +2 -2
- package/es/chat/ChatList/components/HistoryDivider.js +2 -3
- package/es/chat/LoadingDots/LoadingDots.d.ts +2 -2
- package/es/chat/LoadingDots/LoadingDots.js +2 -3
- package/es/chat/TokenTag/TokenTag.d.ts +2 -2
- package/es/chat/TokenTag/TokenTag.js +3 -3
- package/es/icons/Auth0/components/Avatar.d.ts +2 -2
- package/es/icons/Auth0/components/Avatar.js +2 -3
- package/es/icons/Authelia/components/Avatar.d.ts +2 -2
- package/es/icons/Authelia/components/Avatar.js +2 -3
- package/es/icons/Authentik/components/Avatar.d.ts +2 -2
- package/es/icons/Authentik/components/Avatar.js +2 -3
- package/es/icons/Casdoor/components/Avatar.d.ts +2 -2
- package/es/icons/Casdoor/components/Avatar.js +2 -3
- package/es/icons/Clerk/components/Avatar.d.ts +2 -2
- package/es/icons/Clerk/components/Avatar.js +2 -3
- package/es/icons/Logto/components/Avatar.d.ts +2 -2
- package/es/icons/Logto/components/Avatar.js +2 -3
- package/es/icons/MicrosoftEntra/components/Avatar.d.ts +2 -2
- package/es/icons/MicrosoftEntra/components/Avatar.js +2 -3
- package/es/icons/NextAuth/components/Avatar.d.ts +2 -2
- package/es/icons/NextAuth/components/Avatar.js +2 -3
- package/es/icons/Zitadel/components/Avatar.d.ts +2 -2
- package/es/icons/Zitadel/components/Avatar.js +2 -3
- package/es/mobile/SafeArea/SafeArea.d.ts +2 -2
- package/es/mobile/SafeArea/SafeArea.js +2 -3
- package/package.json +1 -1
|
@@ -9,13 +9,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import { useTheme } from 'antd-style';
|
|
11
11
|
import { ArrowBigUp, CornerDownLeft, Loader2 } from 'lucide-react';
|
|
12
|
-
import { memo } from 'react';
|
|
13
12
|
import Button from "../../../Button";
|
|
14
13
|
import { Flexbox } from "../../../Flex";
|
|
15
14
|
import Icon from "../../../Icon";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var ChatSendButton =
|
|
17
|
+
var ChatSendButton = function ChatSendButton(_ref) {
|
|
19
18
|
var ref = _ref.ref,
|
|
20
19
|
leftAddons = _ref.leftAddons,
|
|
21
20
|
rightAddons = _ref.rightAddons,
|
|
@@ -78,6 +77,6 @@ var ChatSendButton = /*#__PURE__*/memo(function (_ref) {
|
|
|
78
77
|
})]
|
|
79
78
|
})]
|
|
80
79
|
}));
|
|
81
|
-
}
|
|
80
|
+
};
|
|
82
81
|
ChatSendButton.displayName = 'ChatSendButton';
|
|
83
82
|
export default ChatSendButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Ref } from 'react';
|
|
1
|
+
import { type FC, type Ref } from 'react';
|
|
2
2
|
import { ChatItemProps } from "..";
|
|
3
3
|
export interface ActionsProps {
|
|
4
4
|
actions: ChatItemProps['actions'];
|
|
@@ -7,5 +7,5 @@ export interface ActionsProps {
|
|
|
7
7
|
ref?: Ref<HTMLDivElement>;
|
|
8
8
|
variant?: ChatItemProps['variant'];
|
|
9
9
|
}
|
|
10
|
-
declare const Actions:
|
|
10
|
+
declare const Actions: FC<ActionsProps>;
|
|
11
11
|
export default Actions;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
1
|
import { Flexbox } from "../../../Flex";
|
|
3
2
|
import { useStyles } from "../style";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
var Actions =
|
|
4
|
+
var Actions = function Actions(_ref) {
|
|
6
5
|
var actions = _ref.actions,
|
|
7
6
|
placement = _ref.placement,
|
|
8
7
|
variant = _ref.variant,
|
|
@@ -21,5 +20,5 @@ var Actions = /*#__PURE__*/memo(function (_ref) {
|
|
|
21
20
|
role: "menubar",
|
|
22
21
|
children: actions
|
|
23
22
|
});
|
|
24
|
-
}
|
|
23
|
+
};
|
|
25
24
|
export default Actions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import { type CSSProperties, type FC } from 'react';
|
|
2
2
|
import type { ChatItemProps } from '../type';
|
|
3
3
|
export interface AvatarProps {
|
|
4
4
|
addon?: ChatItemProps['avatarAddon'];
|
|
@@ -11,5 +11,5 @@ export interface AvatarProps {
|
|
|
11
11
|
style?: CSSProperties;
|
|
12
12
|
unoptimized?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const Avatar:
|
|
14
|
+
declare const Avatar: FC<AvatarProps>;
|
|
15
15
|
export default Avatar;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
1
|
import A from "../../../Avatar";
|
|
3
2
|
import { Flexbox } from "../../../Flex";
|
|
4
3
|
import { useStyles } from "../style";
|
|
5
4
|
import Loading from "./Loading";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
var Avatar =
|
|
7
|
+
var Avatar = function Avatar(_ref) {
|
|
9
8
|
var loading = _ref.loading,
|
|
10
9
|
avatar = _ref.avatar,
|
|
11
10
|
placement = _ref.placement,
|
|
@@ -44,5 +43,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
44
43
|
gap: 8,
|
|
45
44
|
children: [avatarContent, addon]
|
|
46
45
|
});
|
|
47
|
-
}
|
|
46
|
+
};
|
|
48
47
|
export default Avatar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
export interface BorderSpacingProps {
|
|
3
3
|
borderSpacing?: number;
|
|
4
4
|
}
|
|
5
|
-
declare const BorderSpacing:
|
|
5
|
+
declare const BorderSpacing: FC<BorderSpacingProps>;
|
|
6
6
|
export default BorderSpacing;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
var BorderSpacing =
|
|
2
|
+
var BorderSpacing = function BorderSpacing(_ref) {
|
|
4
3
|
var borderSpacing = _ref.borderSpacing;
|
|
5
4
|
if (!borderSpacing) return null;
|
|
6
5
|
return /*#__PURE__*/_jsx("div", {
|
|
@@ -9,5 +8,5 @@ var BorderSpacing = /*#__PURE__*/memo(function (_ref) {
|
|
|
9
8
|
width: borderSpacing
|
|
10
9
|
}
|
|
11
10
|
});
|
|
12
|
-
}
|
|
11
|
+
};
|
|
13
12
|
export default BorderSpacing;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { ChatItemProps } from "..";
|
|
3
3
|
export interface ErrorContentProps {
|
|
4
4
|
error?: ChatItemProps['error'];
|
|
5
5
|
message?: ChatItemProps['errorMessage'];
|
|
6
6
|
placement?: ChatItemProps['placement'];
|
|
7
7
|
}
|
|
8
|
-
declare const ErrorContent:
|
|
8
|
+
declare const ErrorContent: FC<ErrorContentProps>;
|
|
9
9
|
export default ErrorContent;
|
|
@@ -4,12 +4,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { memo } from 'react';
|
|
8
7
|
import Alert from "../../../Alert";
|
|
9
8
|
import { Flexbox } from "../../../Flex";
|
|
10
9
|
import { useStyles } from "../style";
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
var ErrorContent =
|
|
11
|
+
var ErrorContent = function ErrorContent(_ref) {
|
|
13
12
|
var message = _ref.message,
|
|
14
13
|
error = _ref.error,
|
|
15
14
|
placement = _ref.placement;
|
|
@@ -26,5 +25,5 @@ var ErrorContent = /*#__PURE__*/memo(function (_ref) {
|
|
|
26
25
|
type: 'error'
|
|
27
26
|
}, error))
|
|
28
27
|
});
|
|
29
|
-
}
|
|
28
|
+
};
|
|
30
29
|
export default ErrorContent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { ChatItemProps } from "..";
|
|
3
3
|
export interface LoadingProps {
|
|
4
4
|
loading?: ChatItemProps['loading'];
|
|
5
5
|
placement?: ChatItemProps['placement'];
|
|
6
6
|
}
|
|
7
|
-
declare const Loading:
|
|
7
|
+
declare const Loading: FC<LoadingProps>;
|
|
8
8
|
export default Loading;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Loader2 } from 'lucide-react';
|
|
2
|
-
import { memo } from 'react';
|
|
3
2
|
import { Flexbox } from "../../../Flex";
|
|
4
3
|
import Icon from "../../../Icon";
|
|
5
4
|
import { useStyles } from "../style";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var Loading =
|
|
6
|
+
var Loading = function Loading(_ref) {
|
|
8
7
|
var loading = _ref.loading,
|
|
9
8
|
placement = _ref.placement;
|
|
10
9
|
var _useStyles = useStyles({
|
|
@@ -25,5 +24,5 @@ var Loading = /*#__PURE__*/memo(function (_ref) {
|
|
|
25
24
|
spin: true
|
|
26
25
|
})
|
|
27
26
|
});
|
|
28
|
-
}
|
|
27
|
+
};
|
|
29
28
|
export default Loading;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { ChatItemProps } from "..";
|
|
3
3
|
export interface TitleProps {
|
|
4
4
|
avatar: ChatItemProps['avatar'];
|
|
@@ -7,5 +7,5 @@ export interface TitleProps {
|
|
|
7
7
|
time?: ChatItemProps['time'];
|
|
8
8
|
titleAddon?: ChatItemProps['titleAddon'];
|
|
9
9
|
}
|
|
10
|
-
declare const Title:
|
|
10
|
+
declare const Title: FC<TitleProps>;
|
|
11
11
|
export default Title;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
1
|
import { Flexbox } from "../../../Flex";
|
|
3
2
|
import { formatTime } from "../../../utils/formatTime";
|
|
4
3
|
import { useStyles } from "../style";
|
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
var Title =
|
|
6
|
+
var Title = function Title(_ref) {
|
|
8
7
|
var showTitle = _ref.showTitle,
|
|
9
8
|
placement = _ref.placement,
|
|
10
9
|
time = _ref.time,
|
|
@@ -25,5 +24,5 @@ var Title = /*#__PURE__*/memo(function (_ref) {
|
|
|
25
24
|
children: formatTime(time)
|
|
26
25
|
})]
|
|
27
26
|
});
|
|
28
|
-
}
|
|
27
|
+
};
|
|
29
28
|
export default Title;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { ChatActionsBarProps } from '../type';
|
|
3
|
-
declare const ChatActionsBar:
|
|
3
|
+
declare const ChatActionsBar: FC<ChatActionsBarProps>;
|
|
4
4
|
export default ChatActionsBar;
|
|
@@ -7,11 +7,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
import { memo } from 'react';
|
|
11
10
|
import ActionIconGroup from "../../../ActionIconGroup";
|
|
12
11
|
import { useChatListActionsBar } from "./useChatListActionsBar";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
var ChatActionsBar =
|
|
13
|
+
var ChatActionsBar = function ChatActionsBar(_ref) {
|
|
15
14
|
var text = _ref.text,
|
|
16
15
|
ref = _ref.ref,
|
|
17
16
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -28,5 +27,5 @@ var ChatActionsBar = /*#__PURE__*/memo(function (_ref) {
|
|
|
28
27
|
},
|
|
29
28
|
ref: ref
|
|
30
29
|
}, rest));
|
|
31
|
-
}
|
|
30
|
+
};
|
|
32
31
|
export default ChatActionsBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
interface HistoryDividerProps {
|
|
3
3
|
enable?: boolean;
|
|
4
4
|
text?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const HistoryDivider:
|
|
6
|
+
declare const HistoryDivider: FC<HistoryDividerProps>;
|
|
7
7
|
export default HistoryDivider;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Divider } from 'antd';
|
|
2
2
|
import { Timer } from 'lucide-react';
|
|
3
|
-
import { memo } from 'react';
|
|
4
3
|
import Icon from "../../../Icon";
|
|
5
4
|
import Tag from "../../../Tag";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var HistoryDivider =
|
|
6
|
+
var HistoryDivider = function HistoryDivider(_ref) {
|
|
8
7
|
var enable = _ref.enable,
|
|
9
8
|
text = _ref.text;
|
|
10
9
|
if (!enable) return null;
|
|
@@ -21,5 +20,5 @@ var HistoryDivider = /*#__PURE__*/memo(function (_ref) {
|
|
|
21
20
|
})
|
|
22
21
|
})
|
|
23
22
|
});
|
|
24
|
-
}
|
|
23
|
+
};
|
|
25
24
|
export default HistoryDivider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { LoadingDotsProps } from './type';
|
|
3
|
-
declare const LoadingDots:
|
|
3
|
+
declare const LoadingDots: FC<LoadingDotsProps>;
|
|
4
4
|
export default LoadingDots;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { memo } from 'react';
|
|
4
3
|
import { useStyles } from "./style";
|
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
5
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
var LoadingDots =
|
|
7
|
+
var LoadingDots = function LoadingDots(_ref) {
|
|
9
8
|
var _ref$size = _ref.size,
|
|
10
9
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
11
10
|
color = _ref.color,
|
|
@@ -120,6 +119,6 @@ var LoadingDots = /*#__PURE__*/memo(function (_ref) {
|
|
|
120
119
|
className: cx(variant === 'orbit' ? styles.orbitWrapper : styles.container, className),
|
|
121
120
|
children: renderDots()
|
|
122
121
|
});
|
|
123
|
-
}
|
|
122
|
+
};
|
|
124
123
|
LoadingDots.displayName = 'LoadingDots';
|
|
125
124
|
export default LoadingDots;
|
|
@@ -12,7 +12,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
12
|
import { useResponsive } from 'antd-style';
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
14
14
|
import numeral from 'numeral';
|
|
15
|
-
import {
|
|
15
|
+
import { useMemo } from 'react';
|
|
16
16
|
import Button from "../../Button";
|
|
17
17
|
import FluentEmoji from "../../FluentEmoji";
|
|
18
18
|
import { useStyles } from "./style";
|
|
@@ -21,7 +21,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
var format = function format(number) {
|
|
22
22
|
return numeral(number).format('0,0');
|
|
23
23
|
};
|
|
24
|
-
var TokenTag =
|
|
24
|
+
var TokenTag = function TokenTag(_ref) {
|
|
25
25
|
var className = _ref.className,
|
|
26
26
|
_ref$shape = _ref.shape,
|
|
27
27
|
shape = _ref$shape === void 0 ? 'round' : _ref$shape,
|
|
@@ -90,6 +90,6 @@ var TokenTag = /*#__PURE__*/memo(function (_ref) {
|
|
|
90
90
|
unoptimized: unoptimized
|
|
91
91
|
}), valueLeft > 0 ? [showText ? mode === 'remained' ? (text === null || text === void 0 ? void 0 : text.remained) || 'Remained' : (text === null || text === void 0 ? void 0 : text.used) || 'Used' : '', mode === 'remained' ? format(valueLeft) : format(value)].join(' ') : (text === null || text === void 0 ? void 0 : text.overload) || 'Overload']
|
|
92
92
|
}));
|
|
93
|
-
}
|
|
93
|
+
};
|
|
94
94
|
TokenTag.displayName = 'TokenTag';
|
|
95
95
|
export default TokenTag;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#000'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#000'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#fff'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#fff'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#fff'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#fff'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Color from "./Color";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -22,5 +21,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
21
|
"aria-label": TITLE,
|
|
23
22
|
background: background || COLOR_PRIMARY
|
|
24
23
|
}, rest));
|
|
25
|
-
}
|
|
24
|
+
};
|
|
26
25
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Color from "./Color";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
iconMultiple: 0.7
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconAvatarProps } from '@lobehub/icons';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
4
|
-
declare const Avatar:
|
|
4
|
+
declare const Avatar: FC<AvatarProps>;
|
|
5
5
|
export default Avatar;
|
|
@@ -10,11 +10,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { IconAvatar } from '@lobehub/icons';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { COLOR_PRIMARY, TITLE } from "../style";
|
|
15
14
|
import Mono from "./Mono";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Avatar =
|
|
16
|
+
var Avatar = function Avatar(_ref) {
|
|
18
17
|
var background = _ref.background,
|
|
19
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
return /*#__PURE__*/_jsx(IconAvatar, _objectSpread({
|
|
@@ -23,5 +22,5 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
23
22
|
background: background || COLOR_PRIMARY,
|
|
24
23
|
color: '#fff'
|
|
25
24
|
}, rest));
|
|
26
|
-
}
|
|
25
|
+
};
|
|
27
26
|
export default Avatar;
|