@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
|
@@ -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.160.0",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -40,51 +40,6 @@
|
|
|
40
40
|
"storybook.d.ts",
|
|
41
41
|
"storybook.js"
|
|
42
42
|
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "father build",
|
|
45
|
-
"build:watch": "father dev",
|
|
46
|
-
"ci": "npm run lint:circular && npm run lint && npm run type-check",
|
|
47
|
-
"clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
|
|
48
|
-
"dev": "dumi dev",
|
|
49
|
-
"docs:build": "dumi build",
|
|
50
|
-
"docs:build-analyze": "ANALYZE=1 dumi build",
|
|
51
|
-
"docs:dev": "dumi dev",
|
|
52
|
-
"doctor": "father doctor",
|
|
53
|
-
"lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
54
|
-
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
|
|
55
|
-
"lint:md": "remark . --quiet --frail --output",
|
|
56
|
-
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
57
|
-
"prepare": "husky && npm run setup",
|
|
58
|
-
"prepublishOnly": "clean-publish",
|
|
59
|
-
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
60
|
-
"pull": "git pull",
|
|
61
|
-
"release": "semantic-release",
|
|
62
|
-
"setup": "dumi setup",
|
|
63
|
-
"start": "npm run docs:dev",
|
|
64
|
-
"test": "vitest --passWithNoTests",
|
|
65
|
-
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
66
|
-
"test:update": "vitest -u",
|
|
67
|
-
"type-check": "tsc --noEmit"
|
|
68
|
-
},
|
|
69
|
-
"lint-staged": {
|
|
70
|
-
"*.md": [
|
|
71
|
-
"remark --quiet --output --",
|
|
72
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
73
|
-
],
|
|
74
|
-
"*.json": [
|
|
75
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
76
|
-
],
|
|
77
|
-
"*.{js,jsx}": [
|
|
78
|
-
"prettier --write",
|
|
79
|
-
"stylelint --fix",
|
|
80
|
-
"eslint --fix"
|
|
81
|
-
],
|
|
82
|
-
"*.{ts,tsx}": [
|
|
83
|
-
"prettier --parser=typescript --write",
|
|
84
|
-
"stylelint --fix",
|
|
85
|
-
"eslint --fix"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
43
|
"dependencies": {
|
|
89
44
|
"@babel/runtime": "^7.26.0",
|
|
90
45
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -119,46 +74,6 @@
|
|
|
119
74
|
"shiki": "^1.26.1",
|
|
120
75
|
"unified": "^10.1.2"
|
|
121
76
|
},
|
|
122
|
-
"devDependencies": {
|
|
123
|
-
"@ant-design/icons": "^5.5.2",
|
|
124
|
-
"@commitlint/cli": "^19.6.1",
|
|
125
|
-
"@lobehub/lint": "^1.24.4",
|
|
126
|
-
"@testing-library/react": "^14.3.1",
|
|
127
|
-
"@types/chroma-js": "^2.4.5",
|
|
128
|
-
"@types/lodash-es": "^4.17.12",
|
|
129
|
-
"@types/mdx": "^2.0.13",
|
|
130
|
-
"@types/numeral": "^2.0.5",
|
|
131
|
-
"@types/pangu": "^4.0.2",
|
|
132
|
-
"@types/query-string": "^6.3.0",
|
|
133
|
-
"@types/react": "^19.0.2",
|
|
134
|
-
"@types/react-avatar-editor": "^13.0.3",
|
|
135
|
-
"@types/react-dom": "^19.0.2",
|
|
136
|
-
"@types/unist": "^3.0.3",
|
|
137
|
-
"@types/uuid": "^10.0.0",
|
|
138
|
-
"@vitest/coverage-v8": "~1.2.2",
|
|
139
|
-
"babel-plugin-antd-style": "^1.0.4",
|
|
140
|
-
"clean-publish": "^5.1.0",
|
|
141
|
-
"commitlint": "^19.6.1",
|
|
142
|
-
"concurrently": "^9.1.2",
|
|
143
|
-
"cross-env": "^7.0.3",
|
|
144
|
-
"dpdm": "^3.14.0",
|
|
145
|
-
"dumi": "^2.4.17",
|
|
146
|
-
"dumi-theme-lobehub": "^1.10.10",
|
|
147
|
-
"eslint": "^8.57.1",
|
|
148
|
-
"father": "^4.5.1",
|
|
149
|
-
"husky": "^9.1.7",
|
|
150
|
-
"jsdom": "^25.0.1",
|
|
151
|
-
"lint-staged": "^15.3.0",
|
|
152
|
-
"prettier": "^3.4.2",
|
|
153
|
-
"remark": "^14.0.3",
|
|
154
|
-
"remark-cli": "^11.0.0",
|
|
155
|
-
"semantic-release": "^21.1.2",
|
|
156
|
-
"stylelint": "^15.11.0",
|
|
157
|
-
"typescript": "^5.7.2",
|
|
158
|
-
"unist-util-is": "^6.0.0",
|
|
159
|
-
"unist-util-visit": "^5.0.0",
|
|
160
|
-
"vitest": "~1.2.2"
|
|
161
|
-
},
|
|
162
77
|
"peerDependencies": {
|
|
163
78
|
"@ant-design/cssinjs": "^1.22.0",
|
|
164
79
|
"@babel/runtime": "^7.0.0",
|
|
@@ -183,9 +98,5 @@
|
|
|
183
98
|
"url-join": "^5.0.0",
|
|
184
99
|
"use-merge-value": "^1.2.0",
|
|
185
100
|
"uuid": "^11.0.0"
|
|
186
|
-
},
|
|
187
|
-
"publishConfig": {
|
|
188
|
-
"access": "public",
|
|
189
|
-
"registry": "https://registry.npmjs.org"
|
|
190
101
|
}
|
|
191
102
|
}
|