@lobehub/ui 1.143.2 → 1.143.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Markdown/style.js
CHANGED
|
@@ -15,6 +15,6 @@ export var useStyles = createStyles(function (_ref, _ref2) {
|
|
|
15
15
|
lineHeight = _ref2$lineHeight === void 0 ? 1.6 : _ref2$lineHeight;
|
|
16
16
|
var cyanColor = isDarkMode ? token.cyan9A : token.cyan11A;
|
|
17
17
|
return {
|
|
18
|
-
chat: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n --lobe-markdown-font-size: ", "px;\n --lobe-markdown-header-multiple: ", ";\n --lobe-markdown-margin-multiple: ", ";\n --lobe-markdown-line-height: ", ";\n --lobe-markdown-border-radius: ", ";\n\n margin-block: ", "em;\n\n ol,\n ul {\n li {\n &::marker {\n color: ", ";\n }\n\n li {\n &::marker {\n color: ", ";\n }\n }\n }\n }\n\n ul {\n list-style: unset;\n\n li {\n &::before {\n content: unset;\n display: unset;\n }\n }\n }\n "])), fontSize, headerMultiple, marginMultiple, lineHeight, token.borderRadius, marginMultiple * -0.75, cyanColor, token.colorTextSecondary)
|
|
18
|
+
chat: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n --lobe-markdown-font-size: ", "px;\n --lobe-markdown-header-multiple: ", ";\n --lobe-markdown-margin-multiple: ", ";\n --lobe-markdown-line-height: ", ";\n --lobe-markdown-border-radius: ", ";\n\n margin-block: ", "em;\n\n /* \u89E3\u51B3\u53EA\u6709\u4E00\u4E2A\u5B50\u8282\u70B9\u65F6\u9AD8\u5EA6\u574D\u7F29\u7684\u95EE\u9898 */\n :only-child {\n margin-block: 0;\n }\n\n ol,\n ul {\n li {\n &::marker {\n color: ", ";\n }\n\n li {\n &::marker {\n color: ", ";\n }\n }\n }\n }\n\n ul {\n list-style: unset;\n\n li {\n &::before {\n content: unset;\n display: unset;\n }\n }\n }\n "])), fontSize, headerMultiple, marginMultiple, lineHeight, token.borderRadius, marginMultiple * -0.75, cyanColor, token.colorTextSecondary)
|
|
19
19
|
};
|
|
20
20
|
});
|
package/es/brand/LobeChat.js
CHANGED
|
@@ -6,14 +6,12 @@ var _excluded = ["type", "size", "style", "extra", "className"];
|
|
|
6
6
|
import { useTheme } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { Flexbox } from 'react-layout-kit';
|
|
9
|
-
import { useCdnFn } from "../ConfigProvider";
|
|
10
|
-
import Img from "../Img";
|
|
11
9
|
import Divider from "./components/Divider";
|
|
12
10
|
import LogoText from "./components/LobeChatText";
|
|
13
11
|
import Logo3d from "./components/Logo3d";
|
|
14
12
|
import LogoFlat from "./components/LogoFlat";
|
|
15
13
|
import LogoMono from "./components/LogoMono";
|
|
16
|
-
import {
|
|
14
|
+
import { useStyles } from "./style";
|
|
17
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
16
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -26,7 +24,6 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
26
24
|
extra = _ref.extra,
|
|
27
25
|
className = _ref.className,
|
|
28
26
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
-
var genCdnUrl = useCdnFn();
|
|
30
27
|
var theme = useTheme();
|
|
31
28
|
var _useStyles = useStyles(),
|
|
32
29
|
styles = _useStyles.styles;
|
|
@@ -68,11 +65,9 @@ var LobeChat = /*#__PURE__*/memo(function (_ref) {
|
|
|
68
65
|
case 'combine':
|
|
69
66
|
{
|
|
70
67
|
logoComponent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
71
|
-
children: [/*#__PURE__*/_jsx(
|
|
68
|
+
children: [/*#__PURE__*/_jsx(Logo3d, {
|
|
72
69
|
alt: "LobeChat",
|
|
73
|
-
|
|
74
|
-
src: genCdnUrl(LOGO_3D),
|
|
75
|
-
width: size
|
|
70
|
+
size: size
|
|
76
71
|
}), /*#__PURE__*/_jsx(LogoText, {
|
|
77
72
|
size: size,
|
|
78
73
|
style: {
|
package/es/brand/LobeHub.js
CHANGED
|
@@ -6,7 +6,6 @@ var _excluded = ["type", "size", "style", "extra", "className"];
|
|
|
6
6
|
import { useTheme } from 'antd-style';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { Flexbox } from 'react-layout-kit';
|
|
9
|
-
import Img from "../Img";
|
|
10
9
|
import Divider from "./components/Divider";
|
|
11
10
|
import LogoText from "./components/LobeHubText";
|
|
12
11
|
import Logo3d from "./components/Logo3d";
|
|
@@ -65,11 +64,9 @@ var LobeHub = /*#__PURE__*/memo(function (_ref) {
|
|
|
65
64
|
case 'combine':
|
|
66
65
|
{
|
|
67
66
|
logoComponent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
68
|
-
children: [/*#__PURE__*/_jsx(
|
|
69
|
-
alt: "
|
|
70
|
-
|
|
71
|
-
src: 'https://hub-apac-1.lobeobjects.space/logo-3d.webp',
|
|
72
|
-
width: size
|
|
67
|
+
children: [/*#__PURE__*/_jsx(Logo3d, {
|
|
68
|
+
alt: "LobeChat",
|
|
69
|
+
size: size
|
|
73
70
|
}), /*#__PURE__*/_jsx(LogoText, {
|
|
74
71
|
size: size,
|
|
75
72
|
style: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ImageProps } from 'antd';
|
|
3
3
|
import { ImgProps } from "../../types";
|
|
4
|
-
declare const Logo3d: import("react").NamedExoticComponent<ImgProps & ImageProps & {
|
|
4
|
+
declare const Logo3d: import("react").NamedExoticComponent<Omit<ImgProps & ImageProps, "height" | "width" | "src"> & {
|
|
5
5
|
size?: string | number | undefined;
|
|
6
6
|
}>;
|
|
7
7
|
export default Logo3d;
|