@lobehub/ui 3.3.0 → 3.3.2
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/Accordion/AccordionItem.js +1 -1
- package/es/ActionIcon/ActionIcon.js +1 -1
- package/es/ActionIcon/type.d.ts +1 -1
- package/es/ActionIconGroup/ActionIconGroup.js +1 -1
- package/es/ActionIconGroup/type.d.ts +1 -1
- package/es/Alert/Alert.js +1 -1
- package/es/Avatar/Avatar.js +3 -4
- package/es/Avatar/AvatarGroup/index.js +1 -1
- package/es/Avatar/type.d.ts +1 -1
- package/es/Block/Block.js +1 -1
- package/es/Block/type.d.ts +1 -1
- package/es/Burger/Burger.js +1 -1
- package/es/CodeEditor/CodeEditor.js +1 -1
- package/es/CodeEditor/type.d.ts +1 -1
- package/es/Collapse/Collapse.js +1 -1
- package/es/ColorSwatches/ColorSwatches.js +1 -1
- package/es/ColorSwatches/type.d.ts +1 -1
- package/es/DraggablePanel/DraggablePanel.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelBody.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelContainer.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelFooter.js +1 -1
- package/es/DraggablePanel/components/DraggablePanelHeader.js +1 -1
- package/es/DraggableSideNav/DraggableSideNav.js +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/EditableText/ControlInput.js +1 -1
- package/es/EditableText/EditableText.js +1 -1
- package/es/EditableText/type.d.ts +1 -1
- package/es/EmojiPicker/AvatarUploader.js +1 -1
- package/es/EmojiPicker/EmojiPicker.js +1 -1
- package/es/Empty/Empty.js +1 -1
- package/es/Empty/type.d.ts +1 -1
- package/es/FileTypeIcon/FileTypeIcon.js +1 -1
- package/es/Flex/style.css +29 -13
- package/es/FluentEmoji/FluentEmoji.js +1 -1
- package/es/Footer/Footer.js +1 -1
- package/es/Footer/type.d.ts +1 -1
- package/es/Form/components/FormFlatGroup.js +1 -1
- package/es/Form/components/FormFooter.js +1 -1
- package/es/Form/components/FormGroup.js +1 -1
- package/es/Form/components/FormSubmitFooter.js +1 -1
- package/es/Form/components/FormTitle.js +1 -1
- package/es/Form/type.d.ts +1 -1
- package/es/FormModal/FormModal.js +1 -1
- package/es/Grid/Grid.js +1 -1
- package/es/Grid/type.d.ts +1 -1
- package/es/GroupAvatar/GroupAvatar.js +2 -2
- package/es/GuideCard/GuideCard.js +1 -1
- package/es/GuideCard/type.d.ts +1 -1
- package/es/Header/Header.js +1 -1
- package/es/Header/type.d.ts +1 -1
- package/es/Highlighter/FullFeatured.js +46 -32
- package/es/Highlighter/Highlighter.js +15 -4
- package/es/Highlighter/LangSelect.js +9 -5
- package/es/Highlighter/style.d.ts +0 -1
- package/es/Highlighter/style.js +8 -9
- package/es/Highlighter/type.d.ts +12 -2
- package/es/Hotkey/Hotkey.js +1 -1
- package/es/Hotkey/type.d.ts +1 -1
- package/es/Hotkey/utils.d.ts +1 -1
- package/es/HotkeyInput/HotkeyInput.js +1 -1
- package/es/Image/Image.js +1 -1
- package/es/Image/components/Toolbar.js +1 -7
- package/es/Image/components/usePreview.js +1 -3
- package/es/Image/style.js +5 -4
- package/es/ImageSelect/ImageSelect.js +1 -1
- package/es/ImageSelect/type.d.ts +1 -1
- package/es/List/List.js +1 -1
- package/es/List/ListItem/index.js +1 -1
- package/es/List/type.d.ts +1 -1
- package/es/Markdown/components/Footnotes.js +1 -1
- package/es/Markdown/components/SearchResultCards/SearchResultCard.js +1 -1
- package/es/Markdown/components/SearchResultCards/index.d.ts +1 -1
- package/es/MaskShadow/MaskShadow.js +1 -1
- package/es/MaskShadow/type.d.ts +1 -1
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.js +1 -1
- package/es/Mermaid/FullFeatured.js +30 -14
- package/es/Mermaid/Mermaid.js +13 -4
- package/es/Mermaid/SyntaxMermaid/index.js +11 -6
- package/es/Mermaid/type.d.ts +13 -1
- package/es/ScrollShadow/ScrollShadow.js +1 -1
- package/es/ScrollShadow/type.d.ts +1 -1
- package/es/SideNav/SideNav.js +1 -1
- package/es/SideNav/type.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +1 -1
- package/es/Skeleton/SkeletonParagraph.js +1 -1
- package/es/Skeleton/SkeletonTags.js +1 -1
- package/es/SliderWithInput/SliderWithInput.js +1 -1
- package/es/SliderWithInput/type.d.ts +1 -1
- package/es/Snippet/Snippet.js +1 -1
- package/es/Snippet/type.d.ts +1 -1
- package/es/SortableList/SortableList.js +1 -1
- package/es/SortableList/components/SortableItem.d.ts +1 -1
- package/es/SortableList/components/SortableItem.js +1 -1
- package/es/SortableList/type.d.ts +1 -1
- package/es/ThemeSwitch/ThemeSwitch.js +1 -1
- package/es/Tooltip/TooltipFloating.js +1 -1
- package/es/Video/index.d.ts +1 -1
- package/es/Video/index.js +1 -1
- package/es/awesome/AuroraBackground/AuroraBackground.js +1 -1
- package/es/awesome/AuroraBackground/type.d.ts +1 -1
- package/es/awesome/Features/FeatureItem.js +1 -1
- package/es/awesome/GridBackground/GridShowcase.js +1 -1
- package/es/awesome/GridBackground/type.d.ts +1 -1
- package/es/awesome/Hero/Hero.js +1 -1
- package/es/awesome/SpotlightCard/SpotlightCardItem.js +1 -1
- package/es/brand/LobeChat/index.js +1 -1
- package/es/brand/LobeHub/index.js +1 -1
- package/es/brand/LogoThree/Loading.js +1 -1
- package/es/brand/LogoThree/index.js +1 -1
- package/es/chat/Bubble/Bubble.js +1 -1
- package/es/chat/Bubble/type.d.ts +1 -1
- package/es/chat/ChatHeader/ChatHeader.js +1 -1
- package/es/chat/ChatHeader/ChatHeaderTitle.js +1 -1
- package/es/chat/ChatHeader/type.d.ts +1 -1
- package/es/chat/ChatInputArea/components/ChatInputActionBar.js +1 -1
- package/es/chat/ChatInputArea/components/ChatSendButton.js +1 -1
- package/es/chat/ChatInputArea/type.d.ts +1 -1
- package/es/chat/ChatItem/ChatItem.js +1 -1
- package/es/chat/ChatItem/components/Actions.js +1 -1
- package/es/chat/ChatItem/components/Avatar.js +1 -1
- package/es/chat/ChatItem/components/ErrorContent.js +1 -1
- package/es/chat/ChatItem/components/Loading.js +1 -1
- package/es/chat/ChatItem/components/MessageContent.js +1 -1
- package/es/chat/ChatItem/components/Title.js +1 -1
- package/es/chat/ChatItem/type.d.ts +1 -1
- package/es/chat/EditableMessageList/EditableMessageList.js +1 -1
- package/es/chat/MessageInput/MessageInput.js +1 -1
- package/es/chat/MessageInput/type.d.ts +1 -1
- package/es/chat/MessageModal/MessageModal.js +1 -1
- package/es/color/ColorScales/ScaleRow.js +1 -1
- package/es/color/ColorScales/index.js +1 -1
- package/es/mdx/Callout/index.d.ts +1 -1
- package/es/mdx/Callout/index.js +1 -1
- package/es/mdx/Cards/Card.js +1 -1
- package/es/mdx/FileTree/File.d.ts +1 -1
- package/es/mdx/FileTree/File.js +1 -1
- package/es/mdx/FileTree/Folder.d.ts +1 -1
- package/es/mdx/FileTree/Folder.js +1 -1
- package/es/mdx/Tabs/index.d.ts +1 -1
- package/es/mdx/Tabs/index.js +1 -1
- package/es/mdx/mdxComponents/Citation/PopoverPanel.js +1 -1
- package/es/mobile/ChatHeader/ChatHeader.js +1 -1
- package/es/mobile/ChatHeader/ChatHeaderTitle.js +1 -1
- package/es/mobile/ChatHeader/type.d.ts +1 -1
- package/es/mobile/ChatInputArea/ChatInputArea.js +1 -1
- package/es/mobile/TabBar/TabBar.js +1 -1
- package/es/mobile/TabBar/type.d.ts +1 -1
- package/es/storybook/StoryBook/index.d.ts +1 -1
- package/es/storybook/StoryBook/index.js +1 -1
- package/package.json +1 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
|
-
var _excluded = ["showLanguage", "content", "children", "className", "copyable", "actionsRender", "style", "variant", "shadow", "language", "fileName", "defaultExpand"];
|
|
4
|
+
var _excluded = ["showLanguage", "styles", "classNames", "content", "children", "className", "copyable", "actionsRender", "style", "variant", "shadow", "language", "fileName", "defaultExpand"];
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
@@ -18,9 +18,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
18
18
|
import { cva } from 'class-variance-authority';
|
|
19
19
|
import { ChevronDown, ChevronRight } from 'lucide-react';
|
|
20
20
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
21
|
-
import { Flexbox } from 'react-layout-kit';
|
|
22
21
|
import ActionIcon from "../ActionIcon";
|
|
23
22
|
import CopyButton from "../CopyButton";
|
|
23
|
+
import { Flexbox } from "../Flex";
|
|
24
24
|
import { useStyles } from "../Highlighter/style";
|
|
25
25
|
import MaterialFileTypeIcon from "../MaterialFileTypeIcon";
|
|
26
26
|
import Text from "../Text";
|
|
@@ -37,7 +37,8 @@ var MermaidHeaderLanguage = /*#__PURE__*/memo(function (_ref) {
|
|
|
37
37
|
flex: 1,
|
|
38
38
|
gap: 4,
|
|
39
39
|
horizontal: true,
|
|
40
|
-
justify: '
|
|
40
|
+
justify: 'flex-start',
|
|
41
|
+
paddingInline: 8,
|
|
41
42
|
children: [/*#__PURE__*/_jsx(MaterialFileTypeIcon, {
|
|
42
43
|
fallbackUnknownType: false,
|
|
43
44
|
filename: fileName || language,
|
|
@@ -55,6 +56,8 @@ var MermaidHeaderLanguage = /*#__PURE__*/memo(function (_ref) {
|
|
|
55
56
|
});
|
|
56
57
|
export var MermaidFullFeatured = /*#__PURE__*/memo(function (_ref2) {
|
|
57
58
|
var showLanguage = _ref2.showLanguage,
|
|
59
|
+
customStyles = _ref2.styles,
|
|
60
|
+
classNames = _ref2.classNames,
|
|
58
61
|
content = _ref2.content,
|
|
59
62
|
children = _ref2.children,
|
|
60
63
|
className = _ref2.className,
|
|
@@ -164,30 +167,43 @@ export var MermaidFullFeatured = /*#__PURE__*/memo(function (_ref2) {
|
|
|
164
167
|
}, rest), {}, {
|
|
165
168
|
children: [/*#__PURE__*/_jsxs(Flexbox, {
|
|
166
169
|
align: 'center',
|
|
167
|
-
className: headerVariants({
|
|
170
|
+
className: cx(headerVariants({
|
|
168
171
|
variant: variant
|
|
169
|
-
}),
|
|
172
|
+
}), classNames === null || classNames === void 0 ? void 0 : classNames.header),
|
|
170
173
|
horizontal: true,
|
|
171
174
|
justify: 'space-between',
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
size: 'small'
|
|
176
|
-
}), /*#__PURE__*/_jsx(MermaidHeaderLanguage, {
|
|
175
|
+
onClick: handleToggleExpand,
|
|
176
|
+
style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.header,
|
|
177
|
+
children: [/*#__PURE__*/_jsx(MermaidHeaderLanguage, {
|
|
177
178
|
fileName: fileName,
|
|
178
179
|
language: language,
|
|
179
180
|
showLanguage: showLanguage
|
|
180
|
-
}), /*#__PURE__*/
|
|
181
|
+
}), /*#__PURE__*/_jsxs(Flexbox, {
|
|
181
182
|
align: 'center',
|
|
182
183
|
flex: 'none',
|
|
183
184
|
gap: 4,
|
|
184
185
|
horizontal: true,
|
|
185
|
-
|
|
186
|
+
onClick: function onClick(e) {
|
|
187
|
+
return e.stopPropagation();
|
|
188
|
+
},
|
|
189
|
+
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
190
|
+
align: 'center',
|
|
191
|
+
className: 'panel-actions',
|
|
192
|
+
flex: 'none',
|
|
193
|
+
gap: 4,
|
|
194
|
+
horizontal: true,
|
|
195
|
+
children: actions
|
|
196
|
+
}), /*#__PURE__*/_jsx(ActionIcon, {
|
|
197
|
+
icon: expand ? ChevronDown : ChevronRight,
|
|
198
|
+
onClick: handleToggleExpand,
|
|
199
|
+
size: 'small'
|
|
200
|
+
})]
|
|
186
201
|
})]
|
|
187
202
|
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
188
|
-
className: bodyVariants({
|
|
203
|
+
className: cx(bodyVariants({
|
|
189
204
|
expand: expand
|
|
190
|
-
}),
|
|
205
|
+
}), classNames === null || classNames === void 0 ? void 0 : classNames.body),
|
|
206
|
+
style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.body,
|
|
191
207
|
children: children
|
|
192
208
|
})]
|
|
193
209
|
}));
|
package/es/Mermaid/Mermaid.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
|
-
var _excluded = ["children", "actionIconSize", "fullFeatured", "copyable", "showLanguage", "language", "style", "variant", "shadow", "enablePanZoom", "defaultExpand", "className", "bodyRender", "fileName", "actionsRender", "theme"];
|
|
4
|
+
var _excluded = ["children", "actionIconSize", "fullFeatured", "copyable", "showLanguage", "language", "style", "styles", "classNames", "variant", "shadow", "enablePanZoom", "defaultExpand", "className", "bodyRender", "fileName", "actionsRender", "theme"];
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
@@ -11,8 +11,8 @@ 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 { cva } from 'class-variance-authority';
|
|
13
13
|
import { memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
15
14
|
import CopyButton from "../CopyButton";
|
|
15
|
+
import { Flexbox } from "../Flex";
|
|
16
16
|
import { useStyles } from "../Highlighter/style";
|
|
17
17
|
import Tag from "../Tag";
|
|
18
18
|
import FullFeatured from "./FullFeatured";
|
|
@@ -30,6 +30,8 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
30
30
|
_ref$language = _ref.language,
|
|
31
31
|
language = _ref$language === void 0 ? 'mermaid' : _ref$language,
|
|
32
32
|
style = _ref.style,
|
|
33
|
+
customStyles = _ref.styles,
|
|
34
|
+
classNames = _ref.classNames,
|
|
33
35
|
_ref$variant = _ref.variant,
|
|
34
36
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
35
37
|
shadow = _ref.shadow,
|
|
@@ -84,7 +86,10 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
84
86
|
if (!copyable) return null;
|
|
85
87
|
return /*#__PURE__*/_jsx(CopyButton, {
|
|
86
88
|
content: getCopyContent,
|
|
87
|
-
size: actionIconSize
|
|
89
|
+
size: actionIconSize || {
|
|
90
|
+
blockSize: 28,
|
|
91
|
+
size: 16
|
|
92
|
+
}
|
|
88
93
|
});
|
|
89
94
|
}, [actionIconSize, copyable, getCopyContent]);
|
|
90
95
|
var actions = useMemo(function () {
|
|
@@ -98,12 +103,14 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
98
103
|
}, [actionIconSize, actionsRender, getCopyContent, originalActions, tirmedChildren]);
|
|
99
104
|
var defaultBody = useMemo(function () {
|
|
100
105
|
return /*#__PURE__*/_jsx(SyntaxMermaid, {
|
|
106
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.content,
|
|
101
107
|
enablePanZoom: enablePanZoom,
|
|
108
|
+
style: customStyles === null || customStyles === void 0 ? void 0 : customStyles.content,
|
|
102
109
|
theme: theme,
|
|
103
110
|
variant: variant,
|
|
104
111
|
children: tirmedChildren
|
|
105
112
|
});
|
|
106
|
-
}, [enablePanZoom, theme, tirmedChildren, variant]);
|
|
113
|
+
}, [enablePanZoom, theme, tirmedChildren, variant, classNames === null || classNames === void 0 ? void 0 : classNames.content, customStyles === null || customStyles === void 0 ? void 0 : customStyles.content]);
|
|
107
114
|
var body = useMemo(function () {
|
|
108
115
|
if (!bodyRender) return defaultBody;
|
|
109
116
|
return bodyRender({
|
|
@@ -114,6 +121,7 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
114
121
|
if (fullFeatured) return /*#__PURE__*/_jsx(FullFeatured, _objectSpread(_objectSpread({
|
|
115
122
|
actionsRender: actionsRender,
|
|
116
123
|
className: className,
|
|
124
|
+
classNames: classNames,
|
|
117
125
|
content: tirmedChildren,
|
|
118
126
|
copyable: copyable,
|
|
119
127
|
defaultExpand: defaultExpand,
|
|
@@ -122,6 +130,7 @@ var Mermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
122
130
|
shadow: shadow,
|
|
123
131
|
showLanguage: showLanguage,
|
|
124
132
|
style: style,
|
|
133
|
+
styles: customStyles,
|
|
125
134
|
variant: variant
|
|
126
135
|
}, rest), {}, {
|
|
127
136
|
children: body
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
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); }
|
|
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; }
|
|
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; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
3
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
10
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
11
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -17,7 +23,8 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
17
23
|
children = _ref.children,
|
|
18
24
|
customTheme = _ref.theme,
|
|
19
25
|
variant = _ref.variant,
|
|
20
|
-
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
style = _ref.style;
|
|
21
28
|
var isDefaultTheme = customTheme === 'lobe-theme' || !customTheme;
|
|
22
29
|
var background = useMemo(function () {
|
|
23
30
|
var _mermaidThemes$find;
|
|
@@ -76,15 +83,13 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
76
83
|
if (!blobUrl) return null;
|
|
77
84
|
return /*#__PURE__*/_jsx(Image, {
|
|
78
85
|
alt: 'mermaid',
|
|
86
|
+
className: className,
|
|
79
87
|
maxHeight: 480,
|
|
80
88
|
minWidth: 300,
|
|
81
89
|
objectFit: 'contain',
|
|
82
|
-
preview: enablePanZoom ? {
|
|
83
|
-
mask: false
|
|
84
|
-
} : false,
|
|
85
90
|
ref: ref,
|
|
86
91
|
src: blobUrl,
|
|
87
|
-
style: {
|
|
92
|
+
style: _objectSpread({
|
|
88
93
|
background: variant === 'filled' ? background : undefined,
|
|
89
94
|
borderRadius: 0,
|
|
90
95
|
margin: 0,
|
|
@@ -92,7 +97,7 @@ var SyntaxMermaid = /*#__PURE__*/memo(function (_ref) {
|
|
|
92
97
|
padding: variant === 'borderless' ? 0 : 16,
|
|
93
98
|
position: 'relative',
|
|
94
99
|
width: '100%'
|
|
95
|
-
},
|
|
100
|
+
}, style),
|
|
96
101
|
variant: 'borderless',
|
|
97
102
|
width: '100%'
|
|
98
103
|
});
|
package/es/Mermaid/type.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { MermaidConfig } from 'mermaid/dist/config.type';
|
|
2
|
-
import
|
|
2
|
+
import { CSSProperties, ReactNode, Ref } from 'react';
|
|
3
3
|
import type { ActionIconProps } from "../ActionIcon";
|
|
4
4
|
import type { DivProps } from "../types";
|
|
5
5
|
export interface SyntaxMermaidProps {
|
|
6
6
|
children: string;
|
|
7
|
+
className?: string;
|
|
7
8
|
enablePanZoom?: MermaidProps['enablePanZoom'];
|
|
8
9
|
ref?: Ref<HTMLDivElement>;
|
|
10
|
+
style?: CSSProperties;
|
|
9
11
|
theme?: MermaidProps['theme'];
|
|
10
12
|
variant?: MermaidProps['variant'];
|
|
11
13
|
}
|
|
@@ -22,6 +24,11 @@ export interface MermaidProps extends DivProps {
|
|
|
22
24
|
originalNode: ReactNode;
|
|
23
25
|
}) => ReactNode;
|
|
24
26
|
children: string;
|
|
27
|
+
classNames?: {
|
|
28
|
+
body?: string;
|
|
29
|
+
content?: string;
|
|
30
|
+
header?: string;
|
|
31
|
+
};
|
|
25
32
|
copyable?: boolean;
|
|
26
33
|
defaultExpand?: boolean;
|
|
27
34
|
enablePanZoom?: boolean;
|
|
@@ -30,6 +37,11 @@ export interface MermaidProps extends DivProps {
|
|
|
30
37
|
language?: string;
|
|
31
38
|
shadow?: boolean;
|
|
32
39
|
showLanguage?: boolean;
|
|
40
|
+
styles?: {
|
|
41
|
+
body?: CSSProperties;
|
|
42
|
+
content?: CSSProperties;
|
|
43
|
+
header?: CSSProperties;
|
|
44
|
+
};
|
|
33
45
|
theme?: 'lobe-theme' | MermaidConfig['theme'];
|
|
34
46
|
variant?: 'filled' | 'outlined' | 'borderless';
|
|
35
47
|
}
|
|
@@ -11,8 +11,8 @@ 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 { cva } from 'class-variance-authority';
|
|
13
13
|
import { memo, useMemo, useRef } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
15
14
|
import { mergeRefs } from 'react-merge-refs';
|
|
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";
|
package/es/SideNav/SideNav.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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../Flex";
|
|
14
14
|
import { useStyles } from "./style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
package/es/SideNav/type.d.ts
CHANGED
package/es/Skeleton/Skeleton.js
CHANGED
|
@@ -10,7 +10,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../Flex";
|
|
14
14
|
import SkeletonAvatar from "./SkeletonAvatar";
|
|
15
15
|
import SkeletonParagraph from "./SkeletonParagraph";
|
|
16
16
|
import SkeletonTitle from "./SkeletonTitle";
|
|
@@ -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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../Flex";
|
|
14
14
|
import SkeletonBlock from "./SkeletonBlock";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
var DEFAULT_ROWS = 3;
|
|
@@ -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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../Flex";
|
|
14
14
|
import SkeletonBlock from "./SkeletonBlock";
|
|
15
15
|
import { useStyles } from "./style";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
14
14
|
import { Slider } from 'antd';
|
|
15
15
|
import { isNull } from 'lodash-es';
|
|
16
16
|
import { memo } from 'react';
|
|
17
|
-
import { Flexbox } from
|
|
17
|
+
import { Flexbox } from "../Flex";
|
|
18
18
|
import InputNumber from "../Input/InputNumber";
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SliderSingleProps } from 'antd';
|
|
2
2
|
import type { CSSProperties } from 'react';
|
|
3
|
-
import type { FlexboxProps } from
|
|
3
|
+
import type { FlexboxProps } from "../Flex";
|
|
4
4
|
import type { InputNumberProps } from "../Input";
|
|
5
5
|
export interface SliderWithInputProps extends Omit<SliderSingleProps, 'classNames' | 'styles'> {
|
|
6
6
|
changeOnWheel?: boolean;
|
package/es/Snippet/Snippet.js
CHANGED
|
@@ -11,8 +11,8 @@ 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 { cva } from 'class-variance-authority';
|
|
13
13
|
import { memo, useMemo } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
15
14
|
import CopyButton from "../CopyButton";
|
|
15
|
+
import { Flexbox } from "../Flex";
|
|
16
16
|
import SyntaxHighlighter from "../Highlighter/SyntaxHighlighter";
|
|
17
17
|
import Spotlight from "../awesome/Spotlight";
|
|
18
18
|
import { useStyles } from "./style";
|
package/es/Snippet/type.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors } from
|
|
|
19
19
|
import { restrictToVerticalAxis, restrictToWindowEdges } from '@dnd-kit/modifiers';
|
|
20
20
|
import { SortableContext, arrayMove, sortableKeyboardCoordinates, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
21
21
|
import { Fragment, memo, useMemo, useState } from 'react';
|
|
22
|
-
import { Flexbox } from
|
|
22
|
+
import { Flexbox } from "../Flex";
|
|
23
23
|
import DragHandle from "./components/DragHandle";
|
|
24
24
|
import SortableItem from "./components/SortableItem";
|
|
25
25
|
import SortableOverlay from "./components/SortableOverlay";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
3
|
-
import { type FlexboxProps } from
|
|
3
|
+
import { type FlexboxProps } from "../../Flex";
|
|
4
4
|
interface Context {
|
|
5
5
|
attributes: Record<string, any>;
|
|
6
6
|
listeners: DraggableSyntheticListeners;
|
|
@@ -13,7 +13,7 @@ import { useSortable } from '@dnd-kit/sortable';
|
|
|
13
13
|
import { CSS } from '@dnd-kit/utilities';
|
|
14
14
|
import { cva } from 'class-variance-authority';
|
|
15
15
|
import { createContext, memo, useMemo } from 'react';
|
|
16
|
-
import { Flexbox } from
|
|
16
|
+
import { Flexbox } from "../../Flex";
|
|
17
17
|
import { useStyles } from "../style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
export var SortableItemContext = /*#__PURE__*/createContext({
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { Select } from 'antd';
|
|
4
4
|
import { Monitor, Moon, Sun } from 'lucide-react';
|
|
5
5
|
import { memo, useMemo } from 'react';
|
|
6
|
-
import { Flexbox } from 'react-layout-kit';
|
|
7
6
|
import ActionIcon from "../ActionIcon";
|
|
8
7
|
import Dropdown from "../Dropdown";
|
|
8
|
+
import { Flexbox } from "../Flex";
|
|
9
9
|
import Icon from "../Icon";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
import { FloatingArrow } from '@floating-ui/react';
|
|
16
16
|
import React, { useLayoutEffect, useMemo, useState } from 'react';
|
|
17
|
-
import { Flexbox } from
|
|
17
|
+
import { Flexbox } from "../Flex";
|
|
18
18
|
import Hotkey from "../Hotkey";
|
|
19
19
|
import { AnimatePresence, LazyMotion, m } from "../motion";
|
|
20
20
|
import { useStyles } from "./style";
|
package/es/Video/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type Ref } from 'react';
|
|
2
|
-
import { FlexboxProps } from
|
|
2
|
+
import { FlexboxProps } from "../Flex";
|
|
3
3
|
import type { VideoProps as VProps } from "../types";
|
|
4
4
|
export interface VideoProps extends VProps, Pick<FlexboxProps, 'width' | 'height'> {
|
|
5
5
|
autoPlay?: boolean;
|
package/es/Video/index.js
CHANGED
|
@@ -19,8 +19,8 @@ import { Skeleton } from 'antd';
|
|
|
19
19
|
import { cva } from 'class-variance-authority';
|
|
20
20
|
import { PlayIcon } from 'lucide-react';
|
|
21
21
|
import { memo, useMemo, useState } from 'react';
|
|
22
|
-
import { Flexbox } from 'react-layout-kit';
|
|
23
22
|
import ActionIcon from "../ActionIcon";
|
|
23
|
+
import { Flexbox } from "../Flex";
|
|
24
24
|
import { useStyles } from "./style";
|
|
25
25
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
26
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../../Flex";
|
|
14
14
|
import { useStyles } from "./style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -10,8 +10,8 @@ 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 { memo } from 'react';
|
|
13
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
14
13
|
import A from "../../A";
|
|
14
|
+
import { Center, Flexbox } from "../../Flex";
|
|
15
15
|
import Icon from "../../Icon";
|
|
16
16
|
import Img from "../../Img";
|
|
17
17
|
import Text from "../../Text";
|
|
@@ -12,7 +12,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
12
|
import { useTheme } from 'antd-style';
|
|
13
13
|
import { rgba } from 'polished';
|
|
14
14
|
import { memo } from 'react';
|
|
15
|
-
import { Flexbox } from
|
|
15
|
+
import { Flexbox } from "../../Flex";
|
|
16
16
|
import GridBackground from "./GridBackground";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
package/es/awesome/Hero/Hero.js
CHANGED
|
@@ -4,9 +4,9 @@ import { ConfigProvider } from 'antd';
|
|
|
4
4
|
import { useResponsive } from 'antd-style';
|
|
5
5
|
import { Github } from 'lucide-react';
|
|
6
6
|
import { memo, useCallback } from 'react';
|
|
7
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
8
7
|
import A from "../../A";
|
|
9
8
|
import Button from "../../Button";
|
|
9
|
+
import { Center, Flexbox } from "../../Flex";
|
|
10
10
|
import AuroraBackground from "../AuroraBackground";
|
|
11
11
|
import GradientButton from "../GradientButton";
|
|
12
12
|
import { useStyles } from "./style";
|
|
@@ -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 { memo } from 'react';
|
|
13
|
-
import { Flexbox } from
|
|
13
|
+
import { Flexbox } from "../../Flex";
|
|
14
14
|
import { useStyles } from "./style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
var SpotlightCardItem = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -11,7 +11,7 @@ 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 { useTheme } from 'antd-style';
|
|
13
13
|
import { memo } from 'react';
|
|
14
|
-
import { Flexbox } from
|
|
14
|
+
import { Flexbox } from "../../Flex";
|
|
15
15
|
import LogoText from "../LobeChatText";
|
|
16
16
|
import { useStyles } from "../LobeHub/style";
|
|
17
17
|
import Logo3d from "../Logo3d";
|
|
@@ -11,7 +11,7 @@ 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 { useTheme } from 'antd-style';
|
|
13
13
|
import { memo } from 'react';
|
|
14
|
-
import { Flexbox } from
|
|
14
|
+
import { Flexbox } from "../../Flex";
|
|
15
15
|
import LogoText from "../LobeHubText";
|
|
16
16
|
import Logo3d from "../Logo3d";
|
|
17
17
|
import LogoFlat from "../LogoFlat";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Loader2 } from 'lucide-react';
|
|
2
2
|
import { memo } from 'react';
|
|
3
|
-
import { Center } from
|
|
3
|
+
import { Center } from "../../Flex";
|
|
4
4
|
import Icon from "../../Icon";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
var Loading = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -16,8 +16,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
16
16
|
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; }
|
|
17
17
|
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; }
|
|
18
18
|
import { memo, useState } from 'react';
|
|
19
|
-
import { Flexbox } from 'react-layout-kit';
|
|
20
19
|
import { useCdnFn } from "../../ConfigProvider";
|
|
20
|
+
import { Flexbox } from "../../Flex";
|
|
21
21
|
import Img from "../../Img";
|
|
22
22
|
import Spline from "../../awesome/Spline";
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/chat/Bubble/Bubble.js
CHANGED
|
@@ -11,7 +11,7 @@ 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 { cva } from 'class-variance-authority';
|
|
13
13
|
import { memo, useMemo } from 'react';
|
|
14
|
-
import { Flexbox } from
|
|
14
|
+
import { Flexbox } from "../../Flex";
|
|
15
15
|
import { useStyles } from "./style";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
var Bubble = /*#__PURE__*/memo(function (_ref) {
|
package/es/chat/Bubble/type.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ 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 { ChevronLeft } from 'lucide-react';
|
|
13
13
|
import { memo } from 'react';
|
|
14
|
-
import { Flexbox } from 'react-layout-kit';
|
|
15
14
|
import ActionIcon from "../../ActionIcon";
|
|
15
|
+
import { Flexbox } from "../../Flex";
|
|
16
16
|
import { useStyles } from "./style";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
|
-
import { Flexbox } from
|
|
2
|
+
import { Flexbox } from "../../Flex";
|
|
3
3
|
import { useTitleStyles as useStyles } from "./style";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -11,7 +11,7 @@ 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 { useResponsive } from 'antd-style';
|
|
13
13
|
import { memo } from 'react';
|
|
14
|
-
import { Flexbox } from
|
|
14
|
+
import { Flexbox } from "../../../Flex";
|
|
15
15
|
import { useActionBarStyles as useStyles } from "../style";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|