@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
|
@@ -10,13 +10,13 @@ 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 { cva } from 'class-variance-authority';
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo, useRef } from 'react';
|
|
14
14
|
import { mergeRefs } from 'react-merge-refs';
|
|
15
15
|
import { Flexbox } from "../Flex";
|
|
16
16
|
import { useStyles } from "./style";
|
|
17
17
|
import { useScrollOverflow } from "./useScrollOverflow";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
var ScrollShadow =
|
|
19
|
+
var ScrollShadow = function ScrollShadow(_ref) {
|
|
20
20
|
var className = _ref.className,
|
|
21
21
|
children = _ref.children,
|
|
22
22
|
_ref$orientation = _ref.orientation,
|
|
@@ -150,6 +150,6 @@ var ScrollShadow = /*#__PURE__*/memo(function (_ref) {
|
|
|
150
150
|
}, dataAttributes), rest), {}, {
|
|
151
151
|
children: children
|
|
152
152
|
}));
|
|
153
|
-
}
|
|
153
|
+
};
|
|
154
154
|
ScrollShadow.displayName = 'ScrollShadow';
|
|
155
155
|
export default ScrollShadow;
|
package/es/Skeleton/Skeleton.js
CHANGED
|
@@ -9,7 +9,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
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); }
|
|
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
|
-
import { memo } from 'react';
|
|
13
12
|
import { Flexbox } from "../Flex";
|
|
14
13
|
import SkeletonAvatar from "./SkeletonAvatar";
|
|
15
14
|
import SkeletonParagraph from "./SkeletonParagraph";
|
|
@@ -17,7 +16,7 @@ import SkeletonTitle from "./SkeletonTitle";
|
|
|
17
16
|
import { useStyles } from "./style";
|
|
18
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
var Skeleton =
|
|
19
|
+
var Skeleton = function Skeleton(_ref) {
|
|
21
20
|
var _avatarProps$active, _titleProps$active, _paragraphProps$activ;
|
|
22
21
|
var active = _ref.active,
|
|
23
22
|
_ref$avatar = _ref.avatar,
|
|
@@ -78,6 +77,6 @@ var Skeleton = /*#__PURE__*/memo(function (_ref) {
|
|
|
78
77
|
}))]
|
|
79
78
|
})]
|
|
80
79
|
}));
|
|
81
|
-
}
|
|
80
|
+
};
|
|
82
81
|
Skeleton.displayName = 'Skeleton';
|
|
83
82
|
export default Skeleton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { SkeletonAvatarProps } from './type';
|
|
3
|
-
declare const SkeletonAvatar:
|
|
3
|
+
declare const SkeletonAvatar: FC<SkeletonAvatarProps>;
|
|
4
4
|
export default SkeletonAvatar;
|
|
@@ -9,15 +9,14 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
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
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
|
-
import { memo } from 'react';
|
|
13
12
|
import SkeletonBlock from "./SkeletonBlock";
|
|
14
13
|
import { useStyles } from "./style";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
15
|
var DEFAULT_SIZE = 40;
|
|
17
|
-
var SkeletonAvatar =
|
|
16
|
+
var SkeletonAvatar = function SkeletonAvatar(_ref) {
|
|
18
17
|
var active = _ref.active,
|
|
19
18
|
_ref$shape = _ref.shape,
|
|
20
|
-
shape = _ref$shape === void 0 ? '
|
|
19
|
+
shape = _ref$shape === void 0 ? 'square' : _ref$shape,
|
|
21
20
|
size = _ref.size,
|
|
22
21
|
width = _ref.width,
|
|
23
22
|
height = _ref.height,
|
|
@@ -41,6 +40,6 @@ var SkeletonAvatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
41
40
|
}, style),
|
|
42
41
|
width: finalWidth
|
|
43
42
|
}, rest));
|
|
44
|
-
}
|
|
43
|
+
};
|
|
45
44
|
SkeletonAvatar.displayName = 'SkeletonAvatar';
|
|
46
45
|
export default SkeletonAvatar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { SkeletonBlockProps } from "./type";
|
|
3
|
-
declare const SkeletonBlock:
|
|
3
|
+
declare const SkeletonBlock: FC<SkeletonBlockProps>;
|
|
4
4
|
export default SkeletonBlock;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { memo } from 'react';
|
|
4
3
|
import Block from "../Block";
|
|
5
4
|
import { useStyles } from "./style";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var SkeletonBlock =
|
|
6
|
+
var SkeletonBlock = function SkeletonBlock(_ref) {
|
|
8
7
|
var _ref$width = _ref.width,
|
|
9
8
|
width = _ref$width === void 0 ? '100%' : _ref$width,
|
|
10
9
|
_ref$height = _ref.height,
|
|
@@ -22,6 +21,6 @@ var SkeletonBlock = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
21
|
variant: 'filled',
|
|
23
22
|
width: width
|
|
24
23
|
});
|
|
25
|
-
}
|
|
24
|
+
};
|
|
26
25
|
SkeletonBlock.displayName = 'SkeletonBlock';
|
|
27
26
|
export default SkeletonBlock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { SkeletonButtonProps } from './type';
|
|
3
|
-
declare const SkeletonButton:
|
|
3
|
+
declare const SkeletonButton: FC<SkeletonButtonProps>;
|
|
4
4
|
export default SkeletonButton;
|
|
@@ -9,7 +9,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
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
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
|
-
import { memo } from 'react';
|
|
13
12
|
import SkeletonBlock from "./SkeletonBlock";
|
|
14
13
|
import { useStyles } from "./style";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -18,7 +17,7 @@ var HEIGHT_MAP = {
|
|
|
18
17
|
large: 46,
|
|
19
18
|
small: 28
|
|
20
19
|
};
|
|
21
|
-
var SkeletonButton =
|
|
20
|
+
var SkeletonButton = function SkeletonButton(_ref) {
|
|
22
21
|
var active = _ref.active,
|
|
23
22
|
_ref$block = _ref.block,
|
|
24
23
|
block = _ref$block === void 0 ? false : _ref$block,
|
|
@@ -52,6 +51,6 @@ var SkeletonButton = /*#__PURE__*/memo(function (_ref) {
|
|
|
52
51
|
}, style),
|
|
53
52
|
width: finalWidth
|
|
54
53
|
}, rest));
|
|
55
|
-
}
|
|
54
|
+
};
|
|
56
55
|
SkeletonButton.displayName = 'SkeletonButton';
|
|
57
56
|
export default SkeletonButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { SkeletonParagraphProps } from './type';
|
|
3
|
-
declare const SkeletonParagraph:
|
|
3
|
+
declare const SkeletonParagraph: FC<SkeletonParagraphProps>;
|
|
4
4
|
export default SkeletonParagraph;
|
|
@@ -9,12 +9,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
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
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
|
-
import { memo } from 'react';
|
|
13
12
|
import { Flexbox } from "../Flex";
|
|
14
13
|
import SkeletonBlock from "./SkeletonBlock";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
15
|
var DEFAULT_ROWS = 3;
|
|
17
|
-
var SkeletonParagraph =
|
|
16
|
+
var SkeletonParagraph = function SkeletonParagraph(_ref) {
|
|
18
17
|
var active = _ref.active,
|
|
19
18
|
_ref$rows = _ref.rows,
|
|
20
19
|
rows = _ref$rows === void 0 ? DEFAULT_ROWS : _ref$rows,
|
|
@@ -59,6 +58,6 @@ var SkeletonParagraph = /*#__PURE__*/memo(function (_ref) {
|
|
|
59
58
|
}, index);
|
|
60
59
|
})
|
|
61
60
|
}));
|
|
62
|
-
}
|
|
61
|
+
};
|
|
63
62
|
SkeletonParagraph.displayName = 'SkeletonParagraph';
|
|
64
63
|
export default SkeletonParagraph;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { SkeletonTagsProps } from './type';
|
|
3
|
-
declare const SkeletonTags:
|
|
3
|
+
declare const SkeletonTags: FC<SkeletonTagsProps>;
|
|
4
4
|
export default SkeletonTags;
|
|
@@ -9,7 +9,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
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
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
|
-
import { memo } from 'react';
|
|
13
12
|
import { Flexbox } from "../Flex";
|
|
14
13
|
import SkeletonBlock from "./SkeletonBlock";
|
|
15
14
|
import { useStyles } from "./style";
|
|
@@ -25,7 +24,7 @@ var DEFAULT_WIDTH_MAP = {
|
|
|
25
24
|
middle: 48,
|
|
26
25
|
small: 36
|
|
27
26
|
};
|
|
28
|
-
var SkeletonTags =
|
|
27
|
+
var SkeletonTags = function SkeletonTags(_ref) {
|
|
29
28
|
var _ref2;
|
|
30
29
|
var active = _ref.active,
|
|
31
30
|
className = _ref.className,
|
|
@@ -76,6 +75,6 @@ var SkeletonTags = /*#__PURE__*/memo(function (_ref) {
|
|
|
76
75
|
}, index);
|
|
77
76
|
})
|
|
78
77
|
}));
|
|
79
|
-
}
|
|
78
|
+
};
|
|
80
79
|
SkeletonTags.displayName = 'SkeletonTags';
|
|
81
80
|
export default SkeletonTags;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { SkeletonTitleProps } from './type';
|
|
3
|
-
declare const SkeletonTitle:
|
|
3
|
+
declare const SkeletonTitle: FC<SkeletonTitleProps>;
|
|
4
4
|
export default SkeletonTitle;
|
|
@@ -9,12 +9,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
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
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
|
-
import { memo } from 'react';
|
|
13
12
|
import SkeletonBlock from "./SkeletonBlock";
|
|
14
13
|
import { useStyles } from "./style";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
15
|
var DEFAULT_FONT_SIZE = 18;
|
|
17
|
-
var SkeletonTitle =
|
|
16
|
+
var SkeletonTitle = function SkeletonTitle(_ref) {
|
|
18
17
|
var _ref2;
|
|
19
18
|
var active = _ref.active,
|
|
20
19
|
fontSize = _ref.fontSize,
|
|
@@ -40,6 +39,6 @@ var SkeletonTitle = /*#__PURE__*/memo(function (_ref) {
|
|
|
40
39
|
}, style),
|
|
41
40
|
width: width
|
|
42
41
|
}, rest));
|
|
43
|
-
}
|
|
42
|
+
};
|
|
44
43
|
SkeletonTitle.displayName = 'SkeletonTitle';
|
|
45
44
|
export default SkeletonTitle;
|
package/es/Snippet/Snippet.d.ts
CHANGED
package/es/Snippet/Snippet.js
CHANGED
|
@@ -10,7 +10,7 @@ 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 { cva } from 'class-variance-authority';
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
14
|
import CopyButton from "../CopyButton";
|
|
15
15
|
import { Flexbox } from "../Flex";
|
|
16
16
|
import SyntaxHighlighter from "../Highlighter/SyntaxHighlighter";
|
|
@@ -18,7 +18,7 @@ import Spotlight from "../awesome/Spotlight";
|
|
|
18
18
|
import { useStyles } from "./style";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
var Snippet =
|
|
21
|
+
var Snippet = function Snippet(_ref) {
|
|
22
22
|
var ref = _ref.ref,
|
|
23
23
|
prefix = _ref.prefix,
|
|
24
24
|
_ref$language = _ref.language,
|
|
@@ -77,6 +77,6 @@ var Snippet = /*#__PURE__*/memo(function (_ref) {
|
|
|
77
77
|
size: 'small'
|
|
78
78
|
})]
|
|
79
79
|
}));
|
|
80
|
-
}
|
|
80
|
+
};
|
|
81
81
|
Snippet.displayName = 'Snippet';
|
|
82
82
|
export default Snippet;
|
package/es/Tabs/Tabs.d.ts
CHANGED
package/es/Tabs/Tabs.js
CHANGED
|
@@ -12,11 +12,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
12
|
import { Tabs as AntdTabs } from 'antd';
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
14
14
|
import { MoreHorizontalIcon } from 'lucide-react';
|
|
15
|
-
import {
|
|
15
|
+
import { useMemo } from 'react';
|
|
16
16
|
import ActionIcon from "../ActionIcon";
|
|
17
17
|
import { useStyles } from "./style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
var Tabs =
|
|
19
|
+
var Tabs = function Tabs(_ref) {
|
|
20
20
|
var _rest$classNames;
|
|
21
21
|
var className = _ref.className,
|
|
22
22
|
compact = _ref.compact,
|
|
@@ -75,6 +75,6 @@ var Tabs = /*#__PURE__*/memo(function (_ref) {
|
|
|
75
75
|
})
|
|
76
76
|
}, rest === null || rest === void 0 ? void 0 : rest.more)
|
|
77
77
|
}));
|
|
78
|
-
}
|
|
78
|
+
};
|
|
79
79
|
Tabs.displayName = 'Tabs';
|
|
80
80
|
export default Tabs;
|
package/es/Tag/Tag.d.ts
CHANGED
package/es/Tag/Tag.js
CHANGED
|
@@ -11,11 +11,11 @@ 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 { Tag as AntTag } from 'antd';
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
14
|
-
import {
|
|
14
|
+
import { useMemo } from 'react';
|
|
15
15
|
import { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors } from "./utils";
|
|
16
16
|
import { useStyles } from "./styles";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
var Tag =
|
|
18
|
+
var Tag = function Tag(_ref) {
|
|
19
19
|
var className = _ref.className,
|
|
20
20
|
ref = _ref.ref,
|
|
21
21
|
_ref$size = _ref.size,
|
|
@@ -100,6 +100,6 @@ var Tag = /*#__PURE__*/memo(function (_ref) {
|
|
|
100
100
|
}, rest), {}, {
|
|
101
101
|
children: children
|
|
102
102
|
}));
|
|
103
|
-
}
|
|
103
|
+
};
|
|
104
104
|
Tag.displayName = 'Tag';
|
|
105
105
|
export default Tag;
|
package/es/Text/Text.d.ts
CHANGED
package/es/Text/Text.js
CHANGED
|
@@ -10,11 +10,11 @@ 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 { cva } from 'class-variance-authority';
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
14
|
import Tooltip from "../Tooltip";
|
|
15
15
|
import { useStyles } from "./styles";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Text =
|
|
17
|
+
var Text = function Text(_ref) {
|
|
18
18
|
var _ref$as = _ref.as,
|
|
19
19
|
Container = _ref$as === void 0 ? 'div' : _ref$as,
|
|
20
20
|
align = _ref.align,
|
|
@@ -127,6 +127,6 @@ var Text = /*#__PURE__*/memo(function (_ref) {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
return content;
|
|
130
|
-
}
|
|
130
|
+
};
|
|
131
131
|
Text.displayName = 'Text';
|
|
132
132
|
export default Text;
|
package/es/ThemeProvider/Meta.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
4
|
import { useCdnFn } from "../ConfigProvider";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
var Meta =
|
|
8
|
+
var Meta = function Meta(_ref) {
|
|
9
9
|
var _ref$title = _ref.title,
|
|
10
10
|
title = _ref$title === void 0 ? 'LobeHub' : _ref$title,
|
|
11
11
|
_ref$description = _ref.description,
|
|
@@ -74,5 +74,5 @@ var Meta = /*#__PURE__*/memo(function (_ref) {
|
|
|
74
74
|
rel: "manifest"
|
|
75
75
|
})]
|
|
76
76
|
});
|
|
77
|
-
}
|
|
77
|
+
};
|
|
78
78
|
export default Meta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { ThemeSwitchProps } from './type';
|
|
3
|
-
declare const ThemeSwitch:
|
|
3
|
+
declare const ThemeSwitch: FC<ThemeSwitchProps>;
|
|
4
4
|
export default ThemeSwitch;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Select } from 'antd';
|
|
4
4
|
import { Monitor, Moon, Sun } from 'lucide-react';
|
|
5
|
-
import {
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
6
|
import ActionIcon from "../ActionIcon";
|
|
7
7
|
import Dropdown from "../Dropdown";
|
|
8
8
|
import { Flexbox } from "../Flex";
|
|
@@ -14,7 +14,7 @@ var DEFAULT_ICON_SET = {
|
|
|
14
14
|
dark: Moon,
|
|
15
15
|
light: Sun
|
|
16
16
|
};
|
|
17
|
-
var ThemeSwitch =
|
|
17
|
+
var ThemeSwitch = function ThemeSwitch(_ref) {
|
|
18
18
|
var _ref$size = _ref.size,
|
|
19
19
|
size = _ref$size === void 0 ? 'middle' : _ref$size,
|
|
20
20
|
themeMode = _ref.themeMode,
|
|
@@ -80,6 +80,6 @@ var ThemeSwitch = /*#__PURE__*/memo(function (_ref) {
|
|
|
80
80
|
variant: variant
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
|
-
}
|
|
83
|
+
};
|
|
84
84
|
ThemeSwitch.displayName = 'ThemeSwitch';
|
|
85
85
|
export default ThemeSwitch;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ImageProps } from 'antd';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
import { ImgProps } from "../../types";
|
|
4
4
|
type Logo3dProps = Omit<ImgProps & ImageProps, 'width' | 'height' | 'src'> & {
|
|
5
5
|
size?: number | string;
|
|
6
6
|
};
|
|
7
|
-
declare const Logo3d:
|
|
7
|
+
declare const Logo3d: FC<Logo3dProps>;
|
|
8
8
|
export default Logo3d;
|
package/es/brand/Logo3d/index.js
CHANGED
|
@@ -9,12 +9,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
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
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
|
-
import { memo } from 'react';
|
|
13
12
|
import { useCdnFn } from "../../ConfigProvider";
|
|
14
13
|
import Img from "../../Img";
|
|
15
14
|
import { LOGO_3D } from "../LobeHub/style";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Logo3d =
|
|
16
|
+
var Logo3d = function Logo3d(_ref) {
|
|
18
17
|
var _ref$size = _ref.size,
|
|
19
18
|
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
20
19
|
style = _ref.style,
|
|
@@ -29,6 +28,6 @@ var Logo3d = /*#__PURE__*/memo(function (_ref) {
|
|
|
29
28
|
style: style,
|
|
30
29
|
width: size
|
|
31
30
|
}, rest));
|
|
32
|
-
}
|
|
31
|
+
};
|
|
33
32
|
Logo3d.displayName = 'LobeHubLogo3d';
|
|
34
33
|
export default Logo3d;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Loader2 } from 'lucide-react';
|
|
2
|
-
import { memo } from 'react';
|
|
3
2
|
import { Center } from "../../Flex";
|
|
4
3
|
import Icon from "../../Icon";
|
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
var Loading =
|
|
5
|
+
var Loading = function Loading(_ref) {
|
|
7
6
|
var _ref$size = _ref.size,
|
|
8
7
|
size = _ref$size === void 0 ? 32 : _ref$size;
|
|
9
8
|
return /*#__PURE__*/_jsx(Center, {
|
|
@@ -19,5 +18,5 @@ var Loading = /*#__PURE__*/memo(function (_ref) {
|
|
|
19
18
|
spin: true
|
|
20
19
|
})
|
|
21
20
|
});
|
|
22
|
-
}
|
|
21
|
+
};
|
|
23
22
|
export default Loading;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { DivProps, SvgProps } from "../../types";
|
|
3
|
-
declare const Divider:
|
|
4
|
-
size?: number
|
|
3
|
+
declare const Divider: FC<SvgProps & DivProps & {
|
|
4
|
+
size?: number;
|
|
5
5
|
}>;
|
|
6
6
|
export default Divider;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["size", "style"];
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
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; }
|
|
4
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; }
|
|
5
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,9 +8,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
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); }
|
|
8
9
|
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
10
|
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
|
-
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
var Divider = /*#__PURE__*/memo(function (_ref) {
|
|
11
|
+
var Divider = function Divider(_ref) {
|
|
13
12
|
var _ref$size = _ref.size,
|
|
14
13
|
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
15
14
|
style = _ref.style,
|
|
@@ -32,5 +31,5 @@ var Divider = /*#__PURE__*/memo(function (_ref) {
|
|
|
32
31
|
d: "M16.88 3.549L7.12 20.451"
|
|
33
32
|
})
|
|
34
33
|
}));
|
|
35
|
-
}
|
|
34
|
+
};
|
|
36
35
|
export default Divider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import type { ChatHeaderTitleProps } from './type';
|
|
3
|
-
declare const ChatHeaderTitle:
|
|
3
|
+
declare const ChatHeaderTitle: FC<ChatHeaderTitleProps>;
|
|
4
4
|
export default ChatHeaderTitle;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
1
|
import { Flexbox } from "../../Flex";
|
|
3
2
|
import { useTitleStyles as useStyles } from "./style";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
var ChatHeaderTitle =
|
|
5
|
+
var ChatHeaderTitle = function ChatHeaderTitle(_ref) {
|
|
7
6
|
var title = _ref.title,
|
|
8
7
|
desc = _ref.desc,
|
|
9
8
|
tag = _ref.tag;
|
|
@@ -44,5 +43,5 @@ var ChatHeaderTitle = /*#__PURE__*/memo(function (_ref) {
|
|
|
44
43
|
children: title
|
|
45
44
|
}), tagContent]
|
|
46
45
|
});
|
|
47
|
-
}
|
|
46
|
+
};
|
|
48
47
|
export default ChatHeaderTitle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { ChatInputActionBarProps } from '../type';
|
|
3
|
-
declare const ChatInputActionBar:
|
|
3
|
+
declare const ChatInputActionBar: FC<ChatInputActionBarProps>;
|
|
4
4
|
export default ChatInputActionBar;
|
|
@@ -10,12 +10,11 @@ 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 { useResponsive } from 'antd-style';
|
|
13
|
-
import { memo } from 'react';
|
|
14
13
|
import { Flexbox } from "../../../Flex";
|
|
15
14
|
import { useActionBarStyles as useStyles } from "../style";
|
|
16
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var ChatInputActionBar =
|
|
17
|
+
var ChatInputActionBar = function ChatInputActionBar(_ref) {
|
|
19
18
|
var ref = _ref.ref,
|
|
20
19
|
_ref$padding = _ref.padding,
|
|
21
20
|
padding = _ref$padding === void 0 ? '0 16px' : _ref$padding,
|
|
@@ -52,6 +51,6 @@ var ChatInputActionBar = /*#__PURE__*/memo(function (_ref) {
|
|
|
52
51
|
children: rightAddons
|
|
53
52
|
})]
|
|
54
53
|
}));
|
|
55
|
-
}
|
|
54
|
+
};
|
|
56
55
|
ChatInputActionBar.displayName = 'ChatInputActionBar';
|
|
57
56
|
export default ChatInputActionBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { ChatSendButtonProps } from '../type';
|
|
3
|
-
declare const ChatSendButton:
|
|
3
|
+
declare const ChatSendButton: FC<ChatSendButtonProps>;
|
|
4
4
|
export default ChatSendButton;
|