@lobehub/ui 1.159.0 → 1.161.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.d.ts +5 -2
- package/es/ActionIcon/index.js +25 -19
- 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 +6 -3
- 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 +21 -22
|
@@ -3,6 +3,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { Flexbox } from 'react-layout-kit';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
8
|
var useStyles = createStyles(function (_ref) {
|
|
7
9
|
var css = _ref.css,
|
|
8
10
|
token = _ref.token;
|
|
@@ -20,38 +22,47 @@ var MobileNavBarTitle = /*#__PURE__*/memo(function (_ref2) {
|
|
|
20
22
|
tag = _ref2.tag;
|
|
21
23
|
var _useStyles = useStyles(),
|
|
22
24
|
styles = _useStyles.styles;
|
|
23
|
-
if (desc) return /*#__PURE__*/
|
|
25
|
+
if (desc) return /*#__PURE__*/_jsxs(Flexbox, {
|
|
24
26
|
align: 'center',
|
|
25
27
|
flex: 1,
|
|
26
28
|
gap: 4,
|
|
27
|
-
justify: 'center'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
29
|
+
justify: 'center',
|
|
30
|
+
children: [/*#__PURE__*/_jsxs(Flexbox, {
|
|
31
|
+
align: 'center',
|
|
32
|
+
className: styles.titleContainer,
|
|
33
|
+
gap: 4,
|
|
34
|
+
horizontal: true,
|
|
35
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
36
|
+
className: styles.titleWithDesc,
|
|
37
|
+
children: title
|
|
38
|
+
}), tag && /*#__PURE__*/_jsx(Flexbox, {
|
|
39
|
+
className: styles.tag,
|
|
40
|
+
horizontal: true,
|
|
41
|
+
children: tag
|
|
42
|
+
})]
|
|
43
|
+
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
44
|
+
align: 'center',
|
|
45
|
+
horizontal: true,
|
|
46
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
47
|
+
className: styles.desc,
|
|
48
|
+
children: desc
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
45
53
|
align: 'center',
|
|
46
54
|
flex: 1,
|
|
47
55
|
gap: 4,
|
|
48
56
|
horizontal: true,
|
|
49
|
-
justify: 'center'
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
justify: 'center',
|
|
58
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
59
|
+
className: styles.title,
|
|
60
|
+
children: title
|
|
61
|
+
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
62
|
+
className: styles.tag,
|
|
63
|
+
horizontal: true,
|
|
64
|
+
children: tag
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
56
67
|
});
|
|
57
68
|
export default MobileNavBarTitle;
|
|
@@ -6,6 +6,8 @@ import { Flexbox } from 'react-layout-kit';
|
|
|
6
6
|
import ActionIcon from "../../ActionIcon";
|
|
7
7
|
import MobileSafeArea from "../MobileSafeArea";
|
|
8
8
|
import { useStyles } from "./style";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
11
|
var MobileNavBar = /*#__PURE__*/memo(function (_ref) {
|
|
10
12
|
var className = _ref.className,
|
|
11
13
|
_ref$safeArea = _ref.safeArea,
|
|
@@ -22,47 +24,52 @@ var MobileNavBar = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
24
|
var _useStyles = useStyles(),
|
|
23
25
|
styles = _useStyles.styles,
|
|
24
26
|
cx = _useStyles.cx;
|
|
25
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
26
28
|
className: cx(styles.container, className),
|
|
27
|
-
style: style
|
|
28
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
29
|
+
style: style,
|
|
30
|
+
children: [safeArea && /*#__PURE__*/_jsx(MobileSafeArea, {
|
|
31
|
+
position: 'top'
|
|
32
|
+
}), /*#__PURE__*/_jsxs(Flexbox, {
|
|
33
|
+
align: 'center',
|
|
34
|
+
className: styles.inner,
|
|
35
|
+
flex: 1,
|
|
36
|
+
horizontal: true,
|
|
37
|
+
justify: 'space-between',
|
|
38
|
+
children: [/*#__PURE__*/_jsxs(Flexbox, {
|
|
39
|
+
align: 'center',
|
|
40
|
+
className: cx(styles.left, classNames === null || classNames === void 0 ? void 0 : classNames.left),
|
|
41
|
+
flex: 1,
|
|
42
|
+
gap: gap === null || gap === void 0 ? void 0 : gap.left,
|
|
43
|
+
horizontal: true,
|
|
44
|
+
style: contentStyles === null || contentStyles === void 0 ? void 0 : contentStyles.left,
|
|
45
|
+
children: [showBackButton && /*#__PURE__*/_jsx(ActionIcon, {
|
|
46
|
+
icon: ChevronLeft,
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
return onBackClick === null || onBackClick === void 0 ? void 0 : onBackClick();
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
fontSize: 24
|
|
52
|
+
}
|
|
53
|
+
}), left]
|
|
54
|
+
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
55
|
+
align: 'center',
|
|
56
|
+
className: cx(styles.center, classNames === null || classNames === void 0 ? void 0 : classNames.center),
|
|
57
|
+
flex: 1,
|
|
58
|
+
gap: gap === null || gap === void 0 ? void 0 : gap.center,
|
|
59
|
+
horizontal: true,
|
|
60
|
+
justify: 'center',
|
|
61
|
+
style: contentStyles === null || contentStyles === void 0 ? void 0 : contentStyles.center,
|
|
62
|
+
children: center
|
|
63
|
+
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
64
|
+
align: 'center',
|
|
65
|
+
className: cx(styles.right, classNames === null || classNames === void 0 ? void 0 : classNames.right),
|
|
66
|
+
flex: 1,
|
|
67
|
+
gap: gap === null || gap === void 0 ? void 0 : gap.right,
|
|
68
|
+
horizontal: true,
|
|
69
|
+
style: contentStyles === null || contentStyles === void 0 ? void 0 : contentStyles.right,
|
|
70
|
+
children: right
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
67
74
|
});
|
|
68
75
|
export default MobileNavBar;
|
|
@@ -1,10 +1,11 @@
|
|
|
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 = ["position", "className"];
|
|
6
6
|
import React, { memo } from 'react';
|
|
7
7
|
import { useStyles } from "./style";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
var MobileSafeArea = /*#__PURE__*/memo(function (_ref) {
|
|
9
10
|
var position = _ref.position,
|
|
10
11
|
className = _ref.className,
|
|
@@ -12,7 +13,7 @@ var MobileSafeArea = /*#__PURE__*/memo(function (_ref) {
|
|
|
12
13
|
var _useStyles = useStyles(),
|
|
13
14
|
styles = _useStyles.styles,
|
|
14
15
|
cx = _useStyles.cx;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
+
return /*#__PURE__*/_jsx("div", _objectSpread({
|
|
16
17
|
className: cx(styles.container, styles[position], className)
|
|
17
18
|
}, rest));
|
|
18
19
|
});
|
|
@@ -6,6 +6,8 @@ import { Flexbox } from 'react-layout-kit';
|
|
|
6
6
|
import useControlledState from 'use-merge-value';
|
|
7
7
|
import MobileSafeArea from "../MobileSafeArea";
|
|
8
8
|
import { useStyles } from "./style";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
11
|
var MobileTabBar = /*#__PURE__*/memo(function (_ref) {
|
|
10
12
|
var className = _ref.className,
|
|
11
13
|
safeArea = _ref.safeArea,
|
|
@@ -25,36 +27,40 @@ var MobileTabBar = /*#__PURE__*/memo(function (_ref) {
|
|
|
25
27
|
var _useStyles = useStyles(),
|
|
26
28
|
styles = _useStyles.styles,
|
|
27
29
|
cx = _useStyles.cx;
|
|
28
|
-
return /*#__PURE__*/
|
|
30
|
+
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
29
31
|
className: cx(styles.container, className),
|
|
30
|
-
style: style
|
|
31
|
-
|
|
32
|
-
align: 'center',
|
|
33
|
-
className: styles.inner,
|
|
34
|
-
horizontal: true,
|
|
35
|
-
justify: 'space-around'
|
|
36
|
-
}, items.map(function (item) {
|
|
37
|
-
var active = item.key === currentActive;
|
|
38
|
-
return /*#__PURE__*/React.createElement(Flexbox, {
|
|
32
|
+
style: style,
|
|
33
|
+
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
39
34
|
align: 'center',
|
|
40
|
-
className:
|
|
41
|
-
|
|
42
|
-
justify: '
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
className: styles.inner,
|
|
36
|
+
horizontal: true,
|
|
37
|
+
justify: 'space-around',
|
|
38
|
+
children: items.map(function (item) {
|
|
39
|
+
var active = item.key === currentActive;
|
|
40
|
+
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
41
|
+
align: 'center',
|
|
42
|
+
className: cx(styles.tab, active && styles.active),
|
|
43
|
+
gap: 4,
|
|
44
|
+
justify: 'center',
|
|
45
|
+
onClick: function onClick() {
|
|
46
|
+
var _item$onClick;
|
|
47
|
+
setCurrentActive(item.key);
|
|
48
|
+
item === null || item === void 0 || (_item$onClick = item.onClick) === null || _item$onClick === void 0 || _item$onClick.call(item);
|
|
49
|
+
},
|
|
50
|
+
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
51
|
+
align: 'center',
|
|
52
|
+
className: styles.icon,
|
|
53
|
+
justify: 'center',
|
|
54
|
+
children: typeof item.icon === 'function' ? item.icon(active) : item.icon
|
|
55
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
56
|
+
className: styles.title,
|
|
57
|
+
children: typeof item.title === 'function' ? item.title(active) : item.title
|
|
58
|
+
})]
|
|
59
|
+
}, item.key);
|
|
60
|
+
})
|
|
61
|
+
}), safeArea && /*#__PURE__*/_jsx(MobileSafeArea, {
|
|
62
|
+
position: 'bottom'
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
59
65
|
});
|
|
60
66
|
export default MobileTabBar;
|
|
@@ -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 = ["levaStore", "noPadding", "className", "children"];
|
|
6
6
|
import { useResponsive } from 'antd-style';
|
|
@@ -9,6 +9,8 @@ import { memo } from 'react';
|
|
|
9
9
|
import { Flexbox } from 'react-layout-kit';
|
|
10
10
|
import DraggablePanel from "../../DraggablePanel";
|
|
11
11
|
import { useStyles } from "./style";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
export var StoryBook = /*#__PURE__*/memo(function (_ref) {
|
|
13
15
|
var levaStore = _ref.levaStore,
|
|
14
16
|
noPadding = _ref.noPadding,
|
|
@@ -20,28 +22,33 @@ export var StoryBook = /*#__PURE__*/memo(function (_ref) {
|
|
|
20
22
|
var _useStyles = useStyles(Boolean(noPadding)),
|
|
21
23
|
styles = _useStyles.styles,
|
|
22
24
|
cx = _useStyles.cx;
|
|
23
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
24
26
|
align: 'stretch',
|
|
25
27
|
className: cx(styles.editor, className),
|
|
26
28
|
horizontal: !mobile,
|
|
27
29
|
justify: 'stretch'
|
|
28
|
-
}, rest),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
30
|
+
}, rest), {}, {
|
|
31
|
+
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
32
|
+
align: 'center',
|
|
33
|
+
className: styles.left,
|
|
34
|
+
flex: 1,
|
|
35
|
+
justify: 'center',
|
|
36
|
+
children: children
|
|
37
|
+
}), /*#__PURE__*/_jsx(DraggablePanel, {
|
|
38
|
+
className: styles.right,
|
|
39
|
+
minWidth: 280,
|
|
40
|
+
placement: mobile ? 'bottom' : 'right',
|
|
41
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
42
|
+
className: styles.leva,
|
|
43
|
+
children: [/*#__PURE__*/_jsx(LevaPanel, {
|
|
44
|
+
fill: true,
|
|
45
|
+
flat: true,
|
|
46
|
+
store: levaStore,
|
|
47
|
+
titleBar: false
|
|
48
|
+
}), ' ']
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
}));
|
|
45
52
|
});
|
|
46
53
|
export default StoryBook;
|
|
47
54
|
export { useControls, useCreateStore } from 'leva';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.161.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"storybook.js"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@ant-design/cssinjs": "^1.22.0",
|
|
44
45
|
"@babel/runtime": "^7.26.0",
|
|
45
46
|
"@dnd-kit/core": "^6.3.1",
|
|
46
47
|
"@dnd-kit/modifiers": "^8.0.0",
|
|
@@ -50,19 +51,32 @@
|
|
|
50
51
|
"@emoji-mart/react": "^1.1.1",
|
|
51
52
|
"@floating-ui/react": "^0.26.28",
|
|
52
53
|
"@giscus/react": "^3.1.0",
|
|
54
|
+
"@lobehub/fluent-emoji": "^1.0.0",
|
|
53
55
|
"@mdx-js/mdx": "^2.3.0",
|
|
54
56
|
"@mdx-js/react": "^2.3.0",
|
|
55
57
|
"@radix-ui/react-slot": "^1.1.1",
|
|
56
58
|
"@shikijs/transformers": "^1.26.1",
|
|
59
|
+
"@splinetool/runtime": "^0.9.0",
|
|
60
|
+
"ahooks": "^3.8.0",
|
|
61
|
+
"antd-style": "^3.7.0",
|
|
62
|
+
"chroma-js": "^3.0.0",
|
|
63
|
+
"class-variance-authority": "^0.7.0",
|
|
64
|
+
"dayjs": "^1.11.0",
|
|
57
65
|
"emoji-mart": "^5.6.0",
|
|
66
|
+
"fast-deep-equal": "^3.0.0",
|
|
58
67
|
"immer": "^10.1.1",
|
|
59
68
|
"leva": "^0.9.35",
|
|
69
|
+
"lodash-es": "^4.0.0",
|
|
70
|
+
"lucide-react": "^0.469.0",
|
|
60
71
|
"mermaid": "^11.4.1",
|
|
61
72
|
"numeral": "^2.0.6",
|
|
73
|
+
"polished": "^4.0.0",
|
|
74
|
+
"query-string": "^9.0.0",
|
|
62
75
|
"rc-footer": "^0.6.8",
|
|
63
76
|
"re-resizable": "^6.10.3",
|
|
64
77
|
"react-avatar-editor": "^13.0.2",
|
|
65
78
|
"react-error-boundary": "^4.1.2",
|
|
79
|
+
"react-layout-kit": "^1.0.0",
|
|
66
80
|
"react-markdown": "^8.0.7",
|
|
67
81
|
"react-merge-refs": "^2.1.1",
|
|
68
82
|
"react-rnd": "^10.4.14",
|
|
@@ -72,31 +86,16 @@
|
|
|
72
86
|
"remark-gfm": "^3.0.1",
|
|
73
87
|
"remark-math": "^5.1.1",
|
|
74
88
|
"shiki": "^1.26.1",
|
|
75
|
-
"unified": "^10.1.2"
|
|
76
|
-
},
|
|
77
|
-
"peerDependencies": {
|
|
78
|
-
"@ant-design/cssinjs": "^1.22.0",
|
|
79
|
-
"@babel/runtime": "^7.0.0",
|
|
80
|
-
"@lobehub/fluent-emoji": "^1.0.0",
|
|
81
|
-
"@splinetool/runtime": "^0.9.0",
|
|
82
|
-
"ahooks": "^3.8.0",
|
|
83
|
-
"antd": "^5.22.0",
|
|
84
|
-
"antd-style": "^3.7.0",
|
|
85
|
-
"chroma-js": "^3.0.0",
|
|
86
|
-
"class-variance-authority": "^0.7.0",
|
|
87
|
-
"dayjs": "^1.11.0",
|
|
88
|
-
"fast-deep-equal": "^3.0.0",
|
|
89
|
-
"lodash-es": "^4.0.0",
|
|
90
|
-
"lucide-react": "^0.400.0",
|
|
91
|
-
"polished": "^4.0.0",
|
|
92
|
-
"query-string": "^9.0.0",
|
|
93
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
94
|
-
"react-dom": "^18.0.0 || ^19.0.0",
|
|
95
|
-
"react-layout-kit": "^1.0.0",
|
|
96
89
|
"swr": "^2.3.0",
|
|
97
90
|
"ts-md5": "^1.0.0",
|
|
91
|
+
"unified": "^10.1.2",
|
|
98
92
|
"url-join": "^5.0.0",
|
|
99
93
|
"use-merge-value": "^1.2.0",
|
|
100
94
|
"uuid": "^11.0.0"
|
|
95
|
+
},
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"antd": "^5.23.0",
|
|
98
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
99
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
101
100
|
}
|
|
102
101
|
}
|