@lobehub/ui 1.158.1 → 1.160.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/es/A/index.js +2 -2
- package/es/ActionIcon/index.js +15 -11
- package/es/ActionIconGroup/index.js +47 -45
- package/es/Alert/index.js +50 -43
- package/es/Avatar/index.js +12 -10
- package/es/Burger/index.js +35 -30
- package/es/CodeEditor/index.js +43 -38
- package/es/Collapse/index.js +3 -3
- package/es/ColorScales/ScaleRow.js +43 -39
- package/es/ColorScales/index.js +59 -57
- package/es/ConfigProvider/index.js +5 -3
- package/es/ContextMenu/index.js +3 -2
- package/es/CopyButton/index.js +4 -3
- package/es/DraggablePanel/components/DraggablePanelBody.js +3 -2
- package/es/DraggablePanel/components/DraggablePanelContainer.js +3 -2
- package/es/DraggablePanel/components/DraggablePanelFooter.js +3 -2
- package/es/DraggablePanel/components/DraggablePanelHeader.js +9 -5
- package/es/DraggablePanel/index.js +32 -25
- package/es/EditableText/index.js +16 -13
- package/es/EmojiPicker/AvatarUploader.js +71 -60
- package/es/EmojiPicker/index.js +110 -101
- package/es/EmptyCard/index.js +31 -23
- package/es/FileTypeIcon/index.js +55 -44
- package/es/FluentEmoji/index.js +6 -4
- package/es/Footer/index.js +10 -8
- package/es/Form/components/FormDivider.js +2 -2
- package/es/Form/components/FormFlatGroup.js +9 -4
- package/es/Form/components/FormFooter.js +6 -3
- package/es/Form/components/FormGroup.js +21 -15
- package/es/Form/components/FormItem.js +17 -10
- package/es/Form/components/FormTitle.js +23 -15
- package/es/Form/index.js +30 -26
- package/es/FormModal/index.js +34 -30
- package/es/Grid/index.js +6 -3
- package/es/Header/index.js +65 -49
- package/es/Highlighter/FullFeatured.js +51 -41
- package/es/Highlighter/SyntaxHighlighter/index.js +30 -19
- package/es/Highlighter/index.js +29 -19
- package/es/Icon/icons/DiscordIcon.js +3 -2
- package/es/Icon/index.js +16 -13
- package/es/Image/ImageGallery.js +5 -3
- package/es/Image/Preview.js +5 -3
- package/es/Image/index.js +38 -34
- package/es/Image/usePreview.js +37 -33
- package/es/Img/index.js +2 -2
- package/es/Input/index.js +3 -3
- package/es/Layout/index.js +63 -35
- package/es/List/ListItem/index.js +67 -53
- package/es/Markdown/CodeBlock.js +16 -10
- package/es/Markdown/Typography.js +6 -3
- package/es/Markdown/index.js +22 -18
- package/es/MaterialFileTypeIcon/index.js +20 -17
- package/es/MaterialFileTypeIcon/utils.d.ts +2 -2
- package/es/Mermaid/FullFeatured.js +45 -35
- package/es/Mermaid/index.js +26 -17
- package/es/Mermaid/useMermaid.d.ts +1 -2
- package/es/Mermaid/useMermaid.js +5 -3
- package/es/Modal/index.js +60 -48
- package/es/SearchBar/index.js +51 -47
- package/es/SelectWithImg/index.js +40 -34
- package/es/SideNav/index.js +22 -15
- package/es/SliderWithInput/index.js +38 -35
- package/es/Snippet/index.js +15 -10
- package/es/SortableList/DragHandle.js +3 -3
- package/es/SortableList/SortableItem.js +19 -16
- package/es/SortableList/SortableOverlay.js +5 -3
- package/es/SortableList/index.js +23 -15
- package/es/Swatches/index.js +20 -18
- package/es/TabsNav/index.js +3 -2
- package/es/Tag/index.js +12 -7
- package/es/ThemeProvider/Meta.js +58 -53
- package/es/ThemeProvider/index.js +23 -17
- package/es/ThemeSwitch/index.js +19 -15
- package/es/Toc/TocMobile.js +52 -47
- package/es/Toc/index.js +13 -8
- package/es/Tooltip/index.js +3 -2
- package/es/Video/index.js +47 -41
- package/es/awesome/AuroraBackground/index.js +18 -11
- package/es/awesome/Features/Item.js +45 -37
- package/es/awesome/Features/index.js +4 -5
- package/es/awesome/GaussianBackground/index.js +13 -8
- package/es/awesome/Giscus/index.js +15 -13
- package/es/awesome/GradientButton/index.js +9 -5
- package/es/awesome/GridBackground/Grid.js +61 -49
- package/es/awesome/GridBackground/GridShowcase.js +28 -24
- package/es/awesome/GridBackground/index.js +33 -27
- package/es/awesome/Hero/index.js +74 -63
- package/es/awesome/Spline/ParentSize.js +8 -7
- package/es/awesome/Spline/index.js +13 -10
- package/es/awesome/Spotlight/index.js +3 -2
- package/es/awesome/SpotlightCard/SpotlightCardItem.js +8 -5
- package/es/awesome/SpotlightCard/index.js +12 -9
- package/es/brand/BrandLoading/index.js +3 -2
- package/es/brand/LobeChat/index.js +38 -29
- package/es/brand/LobeChatText/index.js +13 -8
- package/es/brand/LobeHub/index.js +38 -29
- package/es/brand/LobeHubText/index.js +9 -4
- package/es/brand/Logo3d/index.js +3 -2
- package/es/brand/LogoFlat/index.js +49 -44
- package/es/brand/LogoMono/index.js +53 -48
- package/es/brand/LogoThree/Loading.js +11 -9
- package/es/brand/LogoThree/LogoSpline.js +12 -10
- package/es/brand/LogoThree/index.js +25 -23
- package/es/brand/components/Divider.js +6 -4
- package/es/chat/BackBottom/index.js +6 -4
- package/es/chat/ChatHeader/ChatHeaderTitle.js +31 -22
- package/es/chat/ChatHeader/index.js +42 -35
- package/es/chat/ChatInputArea/ChatInputActionBar.js +21 -16
- package/es/chat/ChatInputArea/ChatInputArea.js +23 -19
- package/es/chat/ChatInputArea/ChatInputAreaInner.js +3 -2
- package/es/chat/ChatInputArea/SendButton.js +51 -36
- package/es/chat/ChatItem/components/Actions.js +5 -3
- package/es/chat/ChatItem/components/Avatar.js +21 -17
- package/es/chat/ChatItem/components/BorderSpacing.js +2 -1
- package/es/chat/ChatItem/components/ErrorContent.js +11 -9
- package/es/chat/ChatItem/components/Loading.js +12 -10
- package/es/chat/ChatItem/components/MessageContent.js +10 -6
- package/es/chat/ChatItem/components/Title.js +8 -3
- package/es/chat/ChatItem/index.js +53 -47
- package/es/chat/ChatList/ActionsBar.js +3 -2
- package/es/chat/ChatList/HistoryDivider.js +11 -6
- package/es/chat/ChatList/Item.js +12 -14
- package/es/chat/ChatList/index.js +29 -25
- package/es/chat/EditableMessage/index.js +32 -26
- package/es/chat/EditableMessageList/index.js +76 -72
- package/es/chat/MessageInput/index.js +43 -35
- package/es/chat/MessageModal/index.js +51 -41
- package/es/chat/TokenTag/index.js +11 -7
- package/es/components/ControlInput.js +22 -18
- package/es/hooks/useHighlight.d.ts +1 -1
- package/es/mdx/Callout/index.js +19 -13
- package/es/mdx/Cards/Card.js +59 -46
- package/es/mdx/Cards/index.js +6 -3
- package/es/mdx/FileTree/File.js +11 -5
- package/es/mdx/FileTree/Folder.js +22 -13
- package/es/mdx/FileTree/index.js +6 -3
- package/es/mdx/Mdx/index.js +9 -7
- package/es/mdx/Steps/index.js +6 -3
- package/es/mdx/Tabs/Tab.js +8 -3
- package/es/mdx/Tabs/index.js +21 -17
- package/es/mdx/mdxComponents/CodeBlock.js +14 -9
- package/es/mdx/mdxComponents/Image.js +2 -2
- package/es/mdx/mdxComponents/Link.js +3 -2
- package/es/mdx/mdxComponents/Pre.js +14 -7
- package/es/mdx/mdxComponents/Video.js +2 -2
- package/es/mobile/MobileChatInputArea/SendButton.js +4 -3
- package/es/mobile/MobileChatInputArea/index.js +79 -69
- package/es/mobile/MobileNavBar/MobileNavBarTitle.js +37 -26
- package/es/mobile/MobileNavBar/index.js +48 -41
- package/es/mobile/MobileSafeArea/index.js +3 -2
- package/es/mobile/MobileTabBar/index.js +35 -29
- package/es/storybook/StoryBook/index.js +26 -19
- package/package.json +1 -90
package/es/awesome/Hero/index.js
CHANGED
|
@@ -10,6 +10,9 @@ import Icon from "../../Icon";
|
|
|
10
10
|
import AuroraBackground from "../AuroraBackground";
|
|
11
11
|
import GradientButton from "../GradientButton";
|
|
12
12
|
import { useStyles } from "./style";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
16
|
var Hero = /*#__PURE__*/memo(function (_ref) {
|
|
14
17
|
var title = _ref.title,
|
|
15
18
|
description = _ref.description,
|
|
@@ -21,72 +24,80 @@ var Hero = /*#__PURE__*/memo(function (_ref) {
|
|
|
21
24
|
mobile = _useResponsive.mobile;
|
|
22
25
|
var LinkRender = Link || A;
|
|
23
26
|
var ButtonGroups = useCallback(function () {
|
|
24
|
-
return Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/
|
|
27
|
+
return Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/_jsx(Flexbox, {
|
|
25
28
|
className: styles.actions,
|
|
26
29
|
gap: 16,
|
|
27
30
|
horizontal: true,
|
|
28
|
-
justify: 'center'
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
31
|
+
justify: 'center',
|
|
32
|
+
children: actions.map(function (_ref2, index) {
|
|
33
|
+
var text = _ref2.text,
|
|
34
|
+
link = _ref2.link,
|
|
35
|
+
openExternal = _ref2.openExternal,
|
|
36
|
+
icon = _ref2.icon,
|
|
37
|
+
type = _ref2.type;
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
var ButtonIcon = icon === 'Github' ? /*#__PURE__*/_jsx(Icon, {
|
|
40
|
+
icon: Github
|
|
41
|
+
}) : icon;
|
|
42
|
+
var content = type === 'primary' ? /*#__PURE__*/_jsx(GradientButton, {
|
|
43
|
+
block: mobile,
|
|
44
|
+
icon: ButtonIcon,
|
|
45
|
+
size: "large",
|
|
46
|
+
children: text
|
|
47
|
+
}, index) : /*#__PURE__*/_jsx(Button, {
|
|
48
|
+
block: mobile,
|
|
49
|
+
icon: ButtonIcon,
|
|
50
|
+
size: "large",
|
|
51
|
+
type: "primary",
|
|
52
|
+
children: text
|
|
53
|
+
}, index);
|
|
54
|
+
return openExternal ? /*#__PURE__*/_jsx(A, {
|
|
55
|
+
href: link,
|
|
56
|
+
target: openExternal ? '_blank' : undefined,
|
|
57
|
+
children: content
|
|
58
|
+
}, text) : /*#__PURE__*/_jsx(LinkRender, {
|
|
59
|
+
to: link,
|
|
60
|
+
children: content
|
|
61
|
+
}, text);
|
|
62
|
+
})
|
|
63
|
+
});
|
|
60
64
|
}, [actions]);
|
|
61
|
-
return /*#__PURE__*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
65
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
66
|
+
children: [/*#__PURE__*/_jsx(AuroraBackground, {}), /*#__PURE__*/_jsx(ConfigProvider, {
|
|
67
|
+
theme: {
|
|
68
|
+
token: {
|
|
69
|
+
fontSize: 16
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
73
|
+
align: 'center',
|
|
74
|
+
style: {
|
|
75
|
+
zIndex: 1
|
|
76
|
+
},
|
|
77
|
+
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
78
|
+
className: styles.container,
|
|
79
|
+
distribution: 'center',
|
|
80
|
+
horizontal: true,
|
|
81
|
+
children: /*#__PURE__*/_jsxs(Center, {
|
|
82
|
+
children: [title && /*#__PURE__*/_jsx(Center, {
|
|
83
|
+
as: 'h1',
|
|
84
|
+
className: styles.title,
|
|
85
|
+
dangerouslySetInnerHTML: {
|
|
86
|
+
__html: title
|
|
87
|
+
},
|
|
88
|
+
gap: '0.25em',
|
|
89
|
+
horizontal: true,
|
|
90
|
+
wrap: 'wrap'
|
|
91
|
+
}), description && /*#__PURE__*/_jsx("p", {
|
|
92
|
+
className: styles.desc,
|
|
93
|
+
dangerouslySetInnerHTML: {
|
|
94
|
+
__html: description
|
|
95
|
+
}
|
|
96
|
+
}), /*#__PURE__*/_jsx(ButtonGroups, {})]
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
});
|
|
91
102
|
});
|
|
92
103
|
export default Hero;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
2
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
@@ -9,7 +8,7 @@ import { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
9
8
|
import { mergeRefs } from 'react-merge-refs';
|
|
10
9
|
|
|
11
10
|
// @TODO remove when upgraded to TS 4 which has its own declaration
|
|
12
|
-
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
var defaultIgnoreDimensions = [];
|
|
14
13
|
var defaultParentSizeStyles = {
|
|
15
14
|
height: '100%',
|
|
@@ -94,12 +93,14 @@ export default /*#__PURE__*/forwardRef(function ParentSize(_ref, ref) {
|
|
|
94
93
|
resize.cancel();
|
|
95
94
|
};
|
|
96
95
|
}, [resize, resizeObserverPolyfill]);
|
|
97
|
-
return /*#__PURE__*/
|
|
96
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
98
97
|
className: className,
|
|
99
98
|
ref: mergeRefs([ref, target]),
|
|
100
99
|
style: _objectSpread(_objectSpread({}, defaultParentSizeStyles), parentSizeStyles)
|
|
101
|
-
}, restProps),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
}, restProps), {}, {
|
|
101
|
+
children: children(_objectSpread(_objectSpread({}, state), {}, {
|
|
102
|
+
ref: target.current,
|
|
103
|
+
resize: resize
|
|
104
|
+
}))
|
|
105
|
+
}));
|
|
105
106
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
3
3
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
@@ -8,6 +8,7 @@ var _excluded = ["scene", "style", "onMouseDown", "onMouseUp", "onMouseHover", "
|
|
|
8
8
|
import { Application } from '@splinetool/runtime';
|
|
9
9
|
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
10
10
|
import ParentSize from "./ParentSize";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
var Spline = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12
13
|
var scene = _ref.scene,
|
|
13
14
|
style = _ref.style,
|
|
@@ -113,17 +114,19 @@ var Spline = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
113
114
|
};
|
|
114
115
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
116
|
}, [scene]);
|
|
116
|
-
return /*#__PURE__*/
|
|
117
|
+
return /*#__PURE__*/_jsx(ParentSize, _objectSpread(_objectSpread({
|
|
117
118
|
debounceTime: 50,
|
|
118
119
|
parentSizeStyles: style,
|
|
119
120
|
ref: ref
|
|
120
|
-
}, props),
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
}, props), {}, {
|
|
122
|
+
children: function children() {
|
|
123
|
+
return /*#__PURE__*/_jsx("canvas", {
|
|
124
|
+
ref: canvasRef,
|
|
125
|
+
style: {
|
|
126
|
+
display: isLoading ? 'none' : 'block'
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
128
131
|
});
|
|
129
132
|
export default Spline;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
6
|
var _excluded = ["className", "size"];
|
|
7
7
|
import { memo, useEffect, useRef, useState } from 'react';
|
|
8
8
|
import { useStyles } from "./style";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
var useMouseOffset = function useMouseOffset() {
|
|
10
11
|
var _useState = useState(),
|
|
11
12
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -59,7 +60,7 @@ var Spotlight = /*#__PURE__*/memo(function (_ref) {
|
|
|
59
60
|
}),
|
|
60
61
|
styles = _useStyles.styles,
|
|
61
62
|
cx = _useStyles.cx;
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/_jsx("div", _objectSpread({
|
|
63
64
|
className: cx(styles, className),
|
|
64
65
|
ref: reference
|
|
65
66
|
}, properties));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
var _excluded = ["children", "className", "style", "borderRadius", "size"];
|
|
5
4
|
import { memo } from 'react';
|
|
6
5
|
import { Flexbox } from 'react-layout-kit';
|
|
7
6
|
import { useStyles } from "./style";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var SpotlightCardItem = /*#__PURE__*/memo(function (_ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
className = _ref.className,
|
|
@@ -18,13 +18,16 @@ var SpotlightCardItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
18
18
|
}),
|
|
19
19
|
styles = _useStyles.styles,
|
|
20
20
|
cx = _useStyles.cx;
|
|
21
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/_jsx(Flexbox, _objectSpread(_objectSpread({
|
|
22
22
|
className: cx(styles.itemContainer, className),
|
|
23
23
|
style: _objectSpread({
|
|
24
24
|
borderRadius: borderRadius
|
|
25
25
|
}, style)
|
|
26
|
-
}, rest),
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
}, rest), {}, {
|
|
27
|
+
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
28
|
+
className: styles.content,
|
|
29
|
+
children: children
|
|
30
|
+
})
|
|
31
|
+
}));
|
|
29
32
|
});
|
|
30
33
|
export default SpotlightCardItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
6
|
var _excluded = ["items", "renderItem", "maxItemWidth", "className", "columns", "gap", "style", "size", "borderRadius", "spotlight"];
|
|
@@ -8,6 +8,7 @@ import { memo, useEffect, useRef } from 'react';
|
|
|
8
8
|
import Grid from "../../Grid";
|
|
9
9
|
import SpotlightCardItem from "./SpotlightCardItem";
|
|
10
10
|
import { CHILDREN_CLASSNAME, useStyles } from "./style";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
var SpotlightCard = /*#__PURE__*/memo(function (_ref) {
|
|
12
13
|
var items = _ref.items,
|
|
13
14
|
Content = _ref.renderItem,
|
|
@@ -59,20 +60,22 @@ var SpotlightCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
59
60
|
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.removeEventListener('mousemove', fn);
|
|
60
61
|
};
|
|
61
62
|
}, []);
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/_jsx(Grid, _objectSpread(_objectSpread({
|
|
63
64
|
className: cx(styles.container, styles.grid, className),
|
|
64
65
|
gap: gap,
|
|
65
66
|
maxItemWidth: maxItemWidth,
|
|
66
67
|
ref: ref,
|
|
67
68
|
rows: columns,
|
|
68
69
|
style: style
|
|
69
|
-
}, rest),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
}, rest), {}, {
|
|
71
|
+
children: items.map(function (item, index) {
|
|
72
|
+
return /*#__PURE__*/_jsx(SpotlightCardItem, {
|
|
73
|
+
borderRadius: borderRadius,
|
|
74
|
+
className: CHILDREN_CLASSNAME,
|
|
75
|
+
size: size,
|
|
76
|
+
children: /*#__PURE__*/_jsx(Content, _objectSpread({}, item))
|
|
77
|
+
}, index);
|
|
78
|
+
})
|
|
76
79
|
}));
|
|
77
80
|
});
|
|
78
81
|
export default SpotlightCard;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["size", "text"];
|
|
4
4
|
import "./style.css";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
var BrandLoading = function BrandLoading(_ref) {
|
|
6
7
|
var size = _ref.size,
|
|
7
8
|
text = _ref.text,
|
|
8
9
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
9
10
|
var RenderText = text;
|
|
10
|
-
return /*#__PURE__*/
|
|
11
|
+
return /*#__PURE__*/_jsx(RenderText, _objectSpread({
|
|
11
12
|
className: 'lobe-brand-loading',
|
|
12
13
|
size: size
|
|
13
14
|
}, rest));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["type", "size", "style", "extra", "className"];
|
|
6
6
|
import { useTheme } from 'antd-style';
|
|
@@ -12,6 +12,9 @@ import Logo3d from "../Logo3d";
|
|
|
12
12
|
import LogoFlat from "../LogoFlat";
|
|
13
13
|
import LogoMono from "../LogoMono";
|
|
14
14
|
import Divider from "../components/Divider";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
18
|
var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
16
19
|
var _ref$type = _ref.type,
|
|
17
20
|
type = _ref$type === void 0 ? '3d' : _ref$type,
|
|
@@ -28,7 +31,7 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
28
31
|
switch (type) {
|
|
29
32
|
case '3d':
|
|
30
33
|
{
|
|
31
|
-
logoComponent = /*#__PURE__*/
|
|
34
|
+
logoComponent = /*#__PURE__*/_jsx(Logo3d, _objectSpread({
|
|
32
35
|
alt: 'LobeChat',
|
|
33
36
|
size: size
|
|
34
37
|
}, rest));
|
|
@@ -36,7 +39,7 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
36
39
|
}
|
|
37
40
|
case 'flat':
|
|
38
41
|
{
|
|
39
|
-
logoComponent = /*#__PURE__*/
|
|
42
|
+
logoComponent = /*#__PURE__*/_jsx(LogoFlat, {
|
|
40
43
|
size: size,
|
|
41
44
|
style: style
|
|
42
45
|
});
|
|
@@ -44,7 +47,7 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
44
47
|
}
|
|
45
48
|
case 'mono':
|
|
46
49
|
{
|
|
47
|
-
logoComponent = /*#__PURE__*/
|
|
50
|
+
logoComponent = /*#__PURE__*/_jsx(LogoMono, {
|
|
48
51
|
size: size,
|
|
49
52
|
style: style
|
|
50
53
|
});
|
|
@@ -52,7 +55,7 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
52
55
|
}
|
|
53
56
|
case 'text':
|
|
54
57
|
{
|
|
55
|
-
logoComponent = /*#__PURE__*/
|
|
58
|
+
logoComponent = /*#__PURE__*/_jsx(LogoText, _objectSpread({
|
|
56
59
|
className: className,
|
|
57
60
|
size: size,
|
|
58
61
|
style: style
|
|
@@ -61,43 +64,49 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
61
64
|
}
|
|
62
65
|
case 'combine':
|
|
63
66
|
{
|
|
64
|
-
logoComponent = /*#__PURE__*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
logoComponent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
68
|
+
children: [/*#__PURE__*/_jsx(Logo3d, {
|
|
69
|
+
alt: "LobeChat",
|
|
70
|
+
size: size
|
|
71
|
+
}), /*#__PURE__*/_jsx(LogoText, {
|
|
72
|
+
size: size,
|
|
73
|
+
style: {
|
|
74
|
+
marginLeft: Math.round(size / 4)
|
|
75
|
+
}
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
if (!extra) logoComponent = /*#__PURE__*/_jsx(Flexbox, {
|
|
74
79
|
align: 'center',
|
|
75
80
|
className: className,
|
|
76
81
|
flex: 'none',
|
|
77
82
|
horizontal: true,
|
|
78
|
-
style: style
|
|
79
|
-
|
|
83
|
+
style: style,
|
|
84
|
+
children: logoComponent
|
|
85
|
+
});
|
|
80
86
|
break;
|
|
81
87
|
}
|
|
82
88
|
}
|
|
83
89
|
if (!extra) return logoComponent;
|
|
84
90
|
var extraSize = Math.round(size / 3 * 1.9);
|
|
85
|
-
return /*#__PURE__*/
|
|
91
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
86
92
|
align: 'center',
|
|
87
93
|
className: className,
|
|
88
94
|
flex: 'none',
|
|
89
95
|
horizontal: true,
|
|
90
96
|
style: style
|
|
91
|
-
}, rest),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
}, rest), {}, {
|
|
98
|
+
children: [logoComponent, /*#__PURE__*/_jsx(Divider, {
|
|
99
|
+
size: extraSize,
|
|
100
|
+
style: {
|
|
101
|
+
color: theme.colorFill
|
|
102
|
+
}
|
|
103
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
104
|
+
className: styles.extraTitle,
|
|
105
|
+
style: {
|
|
106
|
+
fontSize: extraSize
|
|
107
|
+
},
|
|
108
|
+
children: extra
|
|
109
|
+
})]
|
|
110
|
+
}));
|
|
102
111
|
});
|
|
103
112
|
export default LobeChat;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
var _excluded = ["size", "style"];
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
6
|
var LobeChatText = function LobeChatText(_ref) {
|
|
6
7
|
var _ref$size = _ref.size,
|
|
7
8
|
size = _ref$size === void 0 ? '1em' : _ref$size,
|
|
8
9
|
style = _ref.style,
|
|
9
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
-
return /*#__PURE__*/
|
|
11
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
11
12
|
fill: "currentColor",
|
|
12
13
|
fillRule: "evenodd",
|
|
13
14
|
height: size,
|
|
@@ -17,12 +18,16 @@ var LobeChatText = function LobeChatText(_ref) {
|
|
|
17
18
|
}, style),
|
|
18
19
|
viewBox: "0 0 980 320",
|
|
19
20
|
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
-
}, rest),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
}, rest), {}, {
|
|
22
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
23
|
+
children: "LobeChat"
|
|
24
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
25
|
+
d: "M696.999 135.08c-.455.472-.895.949-1.32 1.434V77h-34.98v162.8h35.42v-69.52c0-2.933.514-5.573 1.54-7.92a18.279 18.279 0 014.4-6.16c2.054-1.907 4.4-3.3 7.04-4.18 2.64-1.027 5.5-1.54 8.58-1.54 3.96-.147 7.26.513 9.9 1.98 2.64 1.467 4.62 3.74 5.94 6.82 1.32 3.08 1.98 6.967 1.98 11.66v68.86h35.42v-71.5c0-10.413-1.54-19.14-4.62-26.18-2.933-7.187-7.406-12.54-13.42-16.06-6.013-3.667-13.42-5.5-22.22-5.5-6.453 0-12.613 1.32-18.48 3.96-5.866 2.64-10.926 6.16-15.18 10.56zM15 240.035V87.172h39.24V205.75h66.192v34.285H15z"
|
|
26
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
27
|
+
d: "M183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zM422.841 191.337l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zM846.763 155.12c3.373 2.786 5.06 7.186 5.06 13.2v2.64h-17.38c-8.654 0-16.28.806-22.88 2.42-6.454 1.466-11.88 3.74-16.28 6.82-4.254 2.933-7.48 6.673-9.68 11.22-2.2 4.546-3.3 9.826-3.3 15.84 0 7.04 1.686 13.2 5.06 18.48 3.52 5.133 8.213 9.166 14.08 12.1 6.013 2.933 12.686 4.4 20.02 4.4 5.573 0 10.853-1.1 15.84-3.3 5.133-2.2 9.826-5.207 14.08-9.02l.44-.385v10.505h34.1V161.5c0-9.24-1.98-16.867-5.94-22.88-3.96-6.014-9.534-10.487-16.72-13.42-7.187-2.934-15.694-4.4-25.52-4.4-10.707 0-20.607 2.053-29.7 6.16-9.094 4.106-17.16 9.753-24.2 16.94l21.12 20.46c4.106-4.84 8.36-8.287 12.76-10.34 4.546-2.2 9.68-3.3 15.4-3.3 5.866 0 10.413 1.466 13.64 4.4zm5.06 52.071V193.18h-16.5c-3.08 0-5.794.293-8.14.88-2.347.44-4.327 1.246-5.94 2.42-1.614 1.026-2.86 2.273-3.74 3.74-.734 1.466-1.1 3.226-1.1 5.28 0 2.2.586 4.106 1.76 5.72 1.173 1.613 2.713 2.86 4.62 3.74 2.053.88 4.4 1.32 7.04 1.32 3.813 0 7.406-.587 10.78-1.76 3.52-1.32 6.6-3.154 9.24-5.5a29.32 29.32 0 001.98-1.829z"
|
|
28
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
29
|
+
d: "M592.64 242c-11.587 0-22.293-1.907-32.12-5.72-9.68-3.96-18.113-9.46-25.3-16.5-7.04-7.187-12.54-15.62-16.5-25.3-3.813-9.827-5.72-20.534-5.72-32.12 0-11.44 1.98-22 5.94-31.68 4.107-9.68 9.827-18.114 17.16-25.3 7.333-7.187 15.913-12.76 25.74-16.72 9.973-3.96 20.753-5.94 32.34-5.94 7.333 0 14.52.953 21.56 2.86 7.04 1.906 13.567 4.766 19.58 8.58 6.16 3.666 11.44 8.14 15.84 13.42l-23.1 26.18c-4.547-4.987-9.68-8.874-15.4-11.66-5.573-2.787-11.807-4.18-18.7-4.18-5.867 0-11.44 1.026-16.72 3.08-5.133 2.053-9.607 5.06-13.42 9.02-3.813 3.96-6.82 8.653-9.02 14.08-2.2 5.426-3.3 11.586-3.3 18.48 0 6.746 1.027 12.906 3.08 18.48 2.2 5.426 5.28 10.12 9.24 14.08 4.107 3.813 8.947 6.746 14.52 8.8 5.72 2.053 12.027 3.08 18.92 3.08 4.547 0 8.873-.587 12.98-1.76a48.746 48.746 0 0011.88-5.5c3.667-2.347 6.82-4.987 9.46-7.92l18.26 29.04c-3.52 3.96-8.36 7.553-14.52 10.78-6.013 3.226-12.76 5.793-20.24 7.7a95.814 95.814 0 01-22.44 2.64zM942.281 202.6v-48.59h27.14V123.4h-27.14V92.8h-33.58v30.6h-16.79v30.61h16.79v48.36c0 26.526 13.263 39.79 39.79 39.79 9.66 0 17.327-1.227 23-3.68v-27.83c-4.753 3.066-10.197 4.6-16.33 4.6-3.833 0-6.977-1.074-9.43-3.22-2.3-2.147-3.45-5.29-3.45-9.43z"
|
|
30
|
+
})]
|
|
26
31
|
}));
|
|
27
32
|
};
|
|
28
33
|
export default LobeChatText;
|