@lobehub/ui 1.153.0 → 1.153.5
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/README.md +25 -13
- package/es/AuroraBackground/index.js +3 -2
- package/es/Hero/index.d.ts +2 -1
- package/es/Hero/index.js +31 -23
- package/es/Hero/style.js +1 -8
- package/es/ThemeProvider/index.d.ts +2 -1
- package/es/ThemeProvider/index.js +10 -5
- package/package.json +13 -11
- package/README.zh-CN.md +0 -224
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
Lobe UI is an open-source UI component library for building _AIGC_ web apps
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
[Documents](https://ui.lobehub.com) · [Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]
|
|
14
14
|
|
|
15
15
|
<!-- SHIELD GROUP -->
|
|
16
16
|
|
|
@@ -41,7 +41,11 @@ English ・ [简体中文](./README.zh-CN.md) ・ [Changelog](./CHANGELOG.md) ·
|
|
|
41
41
|
- [🤯 Usage](#-usage)
|
|
42
42
|
- [⌨️ Local Development](#️-local-development)
|
|
43
43
|
- [🤝 Contributing](#-contributing)
|
|
44
|
-
- [
|
|
44
|
+
- [🩷 Sponsor](#-sponsor)
|
|
45
|
+
- [🔗 Links](#-links)
|
|
46
|
+
- [More Products](#more-products)
|
|
47
|
+
- [Design Resources](#design-resources)
|
|
48
|
+
- [Development Resources](#development-resources)
|
|
45
49
|
|
|
46
50
|
####
|
|
47
51
|
|
|
@@ -155,13 +159,26 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
|
|
|
155
159
|
|
|
156
160
|
</div>
|
|
157
161
|
|
|
158
|
-
## 🔗
|
|
162
|
+
## 🔗 Links
|
|
159
163
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
- **[
|
|
163
|
-
- **[
|
|
164
|
-
- **[
|
|
164
|
+
### More Products
|
|
165
|
+
|
|
166
|
+
- **[🤯 Lobe Chat](https://github.com/lobehub/lobe-chat)** - An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application.
|
|
167
|
+
- **[🅰️ Lobe Theme](https://github.com/lobehub/sd-webui-lobe-theme)** - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
|
|
168
|
+
- **[🧸 Lobe Vidol](https://github.com/lobehub/lobe-vidol)** - Experience the magic of virtual idol creation with Lobe Vidol, enjoy the elegance of our Exquisite UI Design, dance along using MMD Dance Support, and engage in Smooth Conversations.
|
|
169
|
+
|
|
170
|
+
### Design Resources
|
|
171
|
+
|
|
172
|
+
- **[🍭 Lobe UI](https://ui.lobehub.com)** - An open-source UI component library for building AIGC web apps.
|
|
173
|
+
- **[🥨 Lobe Icons](https://lobehub.com/icons)** - Popular AI / LLM Model Brand SVG Logo and Icon Collection.
|
|
174
|
+
- **[📊 Lobe Charts](https://charts.lobehub.com)** - React modern charts components built on recharts
|
|
175
|
+
|
|
176
|
+
### Development Resources
|
|
177
|
+
|
|
178
|
+
- **[🎤 Lobe TTS](https://tts.lobehub.com)** - A high-quality & reliable TTS/STT library for Server and Browser
|
|
179
|
+
- **[🌏 Lobe i18n](https://github.com/lobehub/lobe-cli-toolbox/blob/master/packages/lobe-i18n)** - Automation ai tool for the i18n (internationalization) translation process.
|
|
180
|
+
|
|
181
|
+
[More Resources](https://lobehub.com/resources)
|
|
165
182
|
|
|
166
183
|
<div align="right">
|
|
167
184
|
|
|
@@ -210,11 +227,6 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
210
227
|
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-ui?labelColor=black&style=flat-square
|
|
211
228
|
[github-stars-link]: https://github.com/lobehub/lobe-ui/network/stargazers
|
|
212
229
|
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-ui?color=ffcb47&labelColor=black&style=flat-square
|
|
213
|
-
[lobe-chat]: https://github.com/lobehub/lobe-chat
|
|
214
|
-
[lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
|
|
215
|
-
[lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
|
|
216
|
-
[lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
|
|
217
|
-
[lobe-icons]: https://github.com/lobehub/lobe-icons
|
|
218
230
|
[npm-downloads-link]: https://www.npmjs.com/package/@lobehub/ui
|
|
219
231
|
[npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/ui?labelColor=black&style=flat-square
|
|
220
232
|
[npm-release-link]: https://www.npmjs.com/package/@lobehub/ui
|
|
@@ -12,13 +12,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
var useStyles = createStyles(function (_ref) {
|
|
14
14
|
var isDarkMode = _ref.isDarkMode,
|
|
15
|
-
css = _ref.css
|
|
15
|
+
css = _ref.css,
|
|
16
|
+
responsive = _ref.responsive;
|
|
16
17
|
var aurora = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n background-position: 50% 50%, 50% 50%;\n }\n 100% {\n background-position: 350% 50%, 350% 50%;\n }\n"])));
|
|
17
18
|
var dark = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-image: repeating-linear-gradient(\n 100deg,\n rgb(0, 0, 0) 0%,\n rgb(0, 0, 0) 7%,\n rgba(0, 0, 0, 0%) 10%,\n rgba(0, 0, 0, 0%) 12%,\n rgb(0, 0, 0) 16%\n ),\n repeating-linear-gradient(\n 100deg,\n rgb(59, 130, 246) 10%,\n rgb(165, 180, 252) 15%,\n rgb(147, 197, 253) 20%,\n rgb(221, 214, 254) 25%,\n rgb(96, 165, 250) 30%\n );\n "])));
|
|
18
19
|
var light = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-image: repeating-linear-gradient(\n 100deg,\n rgb(255, 255, 255) 0%,\n rgb(255, 255, 255) 7%,\n rgba(0, 0, 0, 0%) 10%,\n rgba(0, 0, 0, 0%) 12%,\n rgb(255, 255, 255) 16%\n ),\n repeating-linear-gradient(\n 100deg,\n rgb(59, 130, 246) 10%,\n rgb(165, 180, 252) 15%,\n rgb(147, 197, 253) 20%,\n rgb(221, 214, 254) 25%,\n rgb(96, 165, 250) 30%\n );\n "])));
|
|
19
20
|
var background = isDarkMode ? dark : light;
|
|
20
21
|
return {
|
|
21
|
-
bg: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n animation: ", " 100s linear infinite;\n\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: blur(10px) invert(", ");\n\n pointer-events: none;\n\n position: absolute;\n inset: -10px;\n\n mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);\n\n opacity: ", ";\n\n will-change: transform;\n\n max-height: 100vh;\n\n &::after {\n ", ";\n position: absolute;\n\n content: '';\n\n inset: 0;\n\n animation: ", " 100s linear infinite;\n\n mix-blend-mode: difference;\n background-attachment: fixed;\n background-size: 200%, 100%;\n }\n "])), background, aurora, isDarkMode ? 0 : 1, isDarkMode ? 0.3 : 0.6, background, aurora),
|
|
22
|
+
bg: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n animation: ", " 100s linear infinite;\n\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: blur(10px) invert(", ");\n\n pointer-events: none;\n\n position: absolute;\n inset: -10px;\n\n mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);\n\n opacity: ", ";\n\n will-change: transform;\n\n max-height: 100vh;\n\n &::after {\n ", ";\n position: absolute;\n\n content: '';\n\n inset: 0;\n\n animation: ", " 100s linear infinite;\n\n mix-blend-mode: difference;\n background-attachment: fixed;\n background-size: 200%, 100%;\n }\n\n ", " {\n transform: scale(2);\n max-height: 25vh;\n }\n "])), background, aurora, isDarkMode ? 0 : 1, isDarkMode ? 0.3 : 0.6, background, aurora, responsive.mobile),
|
|
22
23
|
wrapper: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 0;\n inset: 0;\n overflow: hidden;\n "])))
|
|
23
24
|
};
|
|
24
25
|
});
|
package/es/Hero/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
2
|
export interface HeroAction {
|
|
3
3
|
/**
|
|
4
4
|
* @description Icon name from LucideIcon package
|
|
@@ -24,6 +24,7 @@ export interface HeroAction {
|
|
|
24
24
|
type?: 'primary' | 'default';
|
|
25
25
|
}
|
|
26
26
|
export interface HeroProps {
|
|
27
|
+
Link?: ElementType;
|
|
27
28
|
/**
|
|
28
29
|
* @description Array of action buttons to be displayed
|
|
29
30
|
* @default []
|
package/es/Hero/index.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { Button, ConfigProvider } from 'antd';
|
|
4
4
|
import { useResponsive } from 'antd-style';
|
|
5
|
-
import
|
|
5
|
+
import { Github } from 'lucide-react';
|
|
6
6
|
import { memo, useCallback } from 'react';
|
|
7
7
|
import { Center, Flexbox } from 'react-layout-kit';
|
|
8
|
+
import A from "../A";
|
|
8
9
|
import AuroraBackground from "../AuroraBackground";
|
|
9
10
|
import GradientButton from "../GradientButton";
|
|
10
11
|
import Icon from "../Icon";
|
|
@@ -15,11 +16,13 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
15
16
|
var Hero = /*#__PURE__*/memo(function (_ref) {
|
|
16
17
|
var title = _ref.title,
|
|
17
18
|
description = _ref.description,
|
|
18
|
-
actions = _ref.actions
|
|
19
|
+
actions = _ref.actions,
|
|
20
|
+
Link = _ref.Link;
|
|
19
21
|
var _useStyles = useStyles(),
|
|
20
22
|
styles = _useStyles.styles;
|
|
21
23
|
var _useResponsive = useResponsive(),
|
|
22
24
|
mobile = _useResponsive.mobile;
|
|
25
|
+
var LinkRender = Link || A;
|
|
23
26
|
var ButtonGroups = useCallback(function () {
|
|
24
27
|
return Boolean(actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/_jsx(Flexbox, {
|
|
25
28
|
className: styles.actions,
|
|
@@ -33,27 +36,28 @@ var Hero = /*#__PURE__*/memo(function (_ref) {
|
|
|
33
36
|
icon = _ref2.icon,
|
|
34
37
|
type = _ref2.type;
|
|
35
38
|
// @ts-ignore
|
|
36
|
-
var ButtonIcon = icon
|
|
37
|
-
|
|
39
|
+
var ButtonIcon = icon === 'Github' ? /*#__PURE__*/_jsx(Icon, {
|
|
40
|
+
icon: Github
|
|
41
|
+
}) : icon;
|
|
42
|
+
var content = type === 'primary' ? /*#__PURE__*/_jsx(GradientButton, {
|
|
43
|
+
block: mobile,
|
|
44
|
+
icon: ButtonIcon,
|
|
45
|
+
size: "large",
|
|
46
|
+
children: text
|
|
47
|
+
}, index) : /*#__PURE__*/_jsx(Button, {
|
|
48
|
+
block: mobile,
|
|
49
|
+
icon: ButtonIcon,
|
|
50
|
+
size: "large",
|
|
51
|
+
type: "primary",
|
|
52
|
+
children: text
|
|
53
|
+
}, index);
|
|
54
|
+
return openExternal ? /*#__PURE__*/_jsx(A, {
|
|
38
55
|
href: link,
|
|
39
|
-
rel: "noreferrer",
|
|
40
56
|
target: openExternal ? '_blank' : undefined,
|
|
41
|
-
children:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
size: "large",
|
|
47
|
-
children: text
|
|
48
|
-
}, index) : /*#__PURE__*/_jsx(Button, {
|
|
49
|
-
block: mobile,
|
|
50
|
-
icon: ButtonIcon && /*#__PURE__*/_jsx(Icon, {
|
|
51
|
-
icon: ButtonIcon
|
|
52
|
-
}),
|
|
53
|
-
size: "large",
|
|
54
|
-
type: "primary",
|
|
55
|
-
children: text
|
|
56
|
-
}, index)
|
|
57
|
+
children: content
|
|
58
|
+
}, text) : /*#__PURE__*/_jsx(LinkRender, {
|
|
59
|
+
to: link,
|
|
60
|
+
children: content
|
|
57
61
|
}, text);
|
|
58
62
|
})
|
|
59
63
|
});
|
|
@@ -75,11 +79,15 @@ var Hero = /*#__PURE__*/memo(function (_ref) {
|
|
|
75
79
|
distribution: 'center',
|
|
76
80
|
horizontal: true,
|
|
77
81
|
children: /*#__PURE__*/_jsxs(Center, {
|
|
78
|
-
children: [title && /*#__PURE__*/_jsx(
|
|
82
|
+
children: [title && /*#__PURE__*/_jsx(Center, {
|
|
83
|
+
as: 'h1',
|
|
79
84
|
className: styles.title,
|
|
80
85
|
dangerouslySetInnerHTML: {
|
|
81
86
|
__html: title
|
|
82
|
-
}
|
|
87
|
+
},
|
|
88
|
+
gap: '0.25em',
|
|
89
|
+
horizontal: true,
|
|
90
|
+
wrap: 'wrap'
|
|
83
91
|
}), description && /*#__PURE__*/_jsx("p", {
|
|
84
92
|
className: styles.desc,
|
|
85
93
|
dangerouslySetInnerHTML: {
|
package/es/Hero/style.js
CHANGED
|
@@ -10,13 +10,6 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
10
10
|
actions: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-block-start: 24px;\n\n button {\n padding-inline: 32px !important;\n font-weight: 500;\n }\n\n ", " {\n flex-direction: column;\n gap: 16px;\n width: 100%;\n margin-block-start: 24px;\n\n button {\n width: 100%;\n }\n }\n "])), responsive.mobile),
|
|
11
11
|
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n text-align: center;\n "]))),
|
|
12
12
|
desc: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-block-start: 0;\n font-size: ", "px;\n color: ", ";\n text-align: center;\n\n ", " {\n margin-block: 24px;\n margin-inline: 16px;\n font-size: ", "px;\n }\n "])), token.fontSizeHeading3, token.colorTextSecondary, responsive.mobile, token.fontSizeHeading5),
|
|
13
|
-
title: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n z-index: 10;\n margin: 0;\n font-size: 100px;\n
|
|
14
|
-
mobile: {
|
|
15
|
-
display: 'flex',
|
|
16
|
-
flexDirection: 'column',
|
|
17
|
-
fontSize: 72,
|
|
18
|
-
lineHeight: 1.2
|
|
19
|
-
}
|
|
20
|
-
}), stylish.gradientAnimation)
|
|
13
|
+
title: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n z-index: 10;\n\n margin: 0;\n\n font-size: min(100px, 10vw);\n line-height: 1.2;\n text-align: center;\n\n b {\n ", "\n position: relative;\n z-index: 5;\n background-clip: text;\n\n -webkit-text-fill-color: transparent;\n\n &::selection {\n -webkit-text-fill-color: #000 !important;\n }\n }\n\n ", " {\n font-size: 64px;\n }\n "])), stylish.gradientAnimation, responsive.mobile)
|
|
21
14
|
};
|
|
22
15
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { StyleProviderProps as AntdStyleProviderProps } from '@ant-design/cssinjs';
|
|
1
2
|
import { ThemeProviderProps as AntdThemeProviderProps, CustomStylishParams, CustomTokenParams } from 'antd-style';
|
|
2
3
|
import { CSSProperties } from 'react';
|
|
3
4
|
import { NeutralColors, PrimaryColors } from "../styles";
|
|
4
|
-
export interface ThemeProviderProps extends AntdThemeProviderProps<any> {
|
|
5
|
+
export interface ThemeProviderProps extends AntdThemeProviderProps<any>, Pick<AntdStyleProviderProps, 'cache' | 'ssrInline'> {
|
|
5
6
|
className?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @description Webfont loader css strings
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["children", "customStylish", "customToken", "enableCustomFonts", "enableGlobalStyle", "customFonts", "customTheme", "className", "style", "theme"];
|
|
5
|
+
var _excluded = ["children", "customStylish", "customToken", "enableCustomFonts", "enableGlobalStyle", "customFonts", "customTheme", "className", "style", "cache", "ssrInline", "theme"];
|
|
6
6
|
import { App } from 'antd';
|
|
7
7
|
import { ThemeProvider as AntdThemeProvider, StyleProvider } from 'antd-style';
|
|
8
8
|
import { merge } from 'lodash-es';
|
|
@@ -28,8 +28,10 @@ var ThemeProvider = /*#__PURE__*/memo(function (_ref) {
|
|
|
28
28
|
customTheme = _ref$customTheme === void 0 ? {} : _ref$customTheme,
|
|
29
29
|
className = _ref.className,
|
|
30
30
|
style = _ref.style,
|
|
31
|
+
cache = _ref.cache,
|
|
32
|
+
ssrInline = _ref.ssrInline,
|
|
31
33
|
antdTheme = _ref.theme,
|
|
32
|
-
|
|
34
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
35
|
var genCdnUrl = useCdnFn();
|
|
34
36
|
var webfontUrls = customFonts || [genCdnUrl({
|
|
35
37
|
path: 'css/index.css',
|
|
@@ -68,12 +70,15 @@ var ThemeProvider = /*#__PURE__*/memo(function (_ref) {
|
|
|
68
70
|
url: webfont
|
|
69
71
|
}, webfont);
|
|
70
72
|
}), /*#__PURE__*/_jsx(StyleProvider, {
|
|
73
|
+
cache: cache,
|
|
74
|
+
prefix: rest === null || rest === void 0 ? void 0 : rest.prefixCls,
|
|
71
75
|
speedy: process.env.NODE_ENV === 'production',
|
|
76
|
+
ssrInline: ssrInline,
|
|
72
77
|
children: /*#__PURE__*/_jsxs(AntdThemeProvider, _objectSpread(_objectSpread({
|
|
73
78
|
customStylish: stylish,
|
|
74
|
-
customToken: token
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
customToken: token,
|
|
80
|
+
theme: theme
|
|
81
|
+
}, rest), {}, {
|
|
77
82
|
children: [enableGlobalStyle && /*#__PURE__*/_jsx(GlobalStyle, {}), /*#__PURE__*/_jsx(App, {
|
|
78
83
|
className: className,
|
|
79
84
|
style: _objectSpread({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.153.
|
|
3
|
+
"version": "1.153.5",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"build:watch": "father dev",
|
|
36
36
|
"ci": "npm run lint:circular && npm run lint && npm run type-check",
|
|
37
37
|
"clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
|
|
38
|
+
"dev": "dumi dev",
|
|
38
39
|
"docs:build": "dumi build",
|
|
39
40
|
"docs:build-analyze": "ANALYZE=1 dumi build",
|
|
40
41
|
"docs:dev": "dumi dev",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
|
|
44
45
|
"lint:md": "remark . --quiet --frail --output",
|
|
45
46
|
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
46
|
-
"prepare": "husky
|
|
47
|
+
"prepare": "husky && npm run setup",
|
|
47
48
|
"prepublishOnly": "father doctor && npm run build",
|
|
48
49
|
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
49
50
|
"pull": "git pull",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|
|
78
79
|
"@babel/runtime": "^7.26.0",
|
|
79
|
-
"@dnd-kit/core": "^6.
|
|
80
|
+
"@dnd-kit/core": "^6.2.0",
|
|
80
81
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
81
82
|
"@dnd-kit/sortable": "^8.0.0",
|
|
82
83
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
"@react-spring/web": "^9.7.5",
|
|
89
90
|
"@shikijs/transformers": "^1.23.1",
|
|
90
91
|
"@splinetool/runtime": "^0.9.526",
|
|
91
|
-
"chroma-js": "^
|
|
92
|
+
"chroma-js": "^3.1.2",
|
|
92
93
|
"dayjs": "^1.11.13",
|
|
93
94
|
"emoji-mart": "^5.6.0",
|
|
94
95
|
"emoji-regex": "^10.4.0",
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"ts-md5": "^1.3.1",
|
|
121
122
|
"url-join": "^5.0.0",
|
|
122
123
|
"use-merge-value": "^1.2.0",
|
|
123
|
-
"uuid": "^
|
|
124
|
+
"uuid": "^11.0.3"
|
|
124
125
|
},
|
|
125
126
|
"devDependencies": {
|
|
126
127
|
"@ant-design/icons": "^5.5.1",
|
|
@@ -141,15 +142,15 @@
|
|
|
141
142
|
"@vitest/coverage-v8": "~1.2.2",
|
|
142
143
|
"babel-plugin-antd-style": "^1.0.4",
|
|
143
144
|
"commitlint": "^19.6.0",
|
|
144
|
-
"concurrently": "^
|
|
145
|
+
"concurrently": "^9.1.0",
|
|
145
146
|
"cross-env": "^7.0.3",
|
|
146
147
|
"dpdm": "^3.14.0",
|
|
147
148
|
"dumi": "^2.4.14",
|
|
148
|
-
"dumi-theme-lobehub": "^1.
|
|
149
|
+
"dumi-theme-lobehub": "^1.10.4",
|
|
149
150
|
"eslint": "^8.57.1",
|
|
150
151
|
"father": "^4.5.1",
|
|
151
|
-
"husky": "9.
|
|
152
|
-
"jsdom": "^
|
|
152
|
+
"husky": "^9.1.7",
|
|
153
|
+
"jsdom": "^25.0.1",
|
|
153
154
|
"lint-staged": "^15.2.10",
|
|
154
155
|
"prettier": "^3.3.3",
|
|
155
156
|
"react": "^18.3.1",
|
|
@@ -158,19 +159,20 @@
|
|
|
158
159
|
"remark-cli": "^11.0.0",
|
|
159
160
|
"semantic-release": "^21.1.2",
|
|
160
161
|
"stylelint": "^15.11.0",
|
|
161
|
-
"typescript": "^5.
|
|
162
|
+
"typescript": "^5.7.2",
|
|
162
163
|
"unist-util-is": "^6.0.0",
|
|
163
164
|
"unist-util-visit": "^5.0.0",
|
|
164
165
|
"vitest": "~1.2.2"
|
|
165
166
|
},
|
|
166
167
|
"peerDependencies": {
|
|
168
|
+
"@ant-design/cssinjs": ">=1",
|
|
167
169
|
"ahooks": ">=3",
|
|
168
170
|
"antd": ">=5.13.0",
|
|
169
171
|
"antd-style": ">=3",
|
|
170
172
|
"lucide-react": ">=0.396.0",
|
|
171
173
|
"react": ">=18",
|
|
172
174
|
"react-dom": ">=18",
|
|
173
|
-
"unified": ">=10
|
|
175
|
+
"unified": ">=10"
|
|
174
176
|
},
|
|
175
177
|
"publishConfig": {
|
|
176
178
|
"access": "public",
|
package/README.zh-CN.md
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
<a name="readme-top"></a>
|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
|
6
|
-
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
|
|
7
|
-
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/lollipop.webp">
|
|
8
|
-
|
|
9
|
-
<h1>Lobe UI</h1>
|
|
10
|
-
|
|
11
|
-
Lobe UI 是一个用于构建 _AIGC_ 网页应用的开源 UI 组件库
|
|
12
|
-
|
|
13
|
-
[English](./README.md) ・ 简体中文 ・ [更新日志](./CHANGELOG.md) · [报告问题][github-issues-link] · [请求功能][github-issues-link]
|
|
14
|
-
|
|
15
|
-
<!-- SHIELD GROUP -->
|
|
16
|
-
|
|
17
|
-
[![][npm-release-shield]][npm-release-link]
|
|
18
|
-
[![][vercel-shield]][vercel-link]
|
|
19
|
-
[![][discord-shield]][discord-link]
|
|
20
|
-
[![][npm-downloads-shield]][npm-downloads-link]
|
|
21
|
-
[![][github-releasedate-shield]][github-releasedate-link]
|
|
22
|
-
[![][github-action-test-shield]][github-action-test-link]
|
|
23
|
-
[![][github-action-release-shield]][github-action-release-link]<br/>
|
|
24
|
-
[![][github-contributors-shield]][github-contributors-link]
|
|
25
|
-
[![][github-forks-shield]][github-forks-link]
|
|
26
|
-
[![][github-stars-shield]][github-stars-link]
|
|
27
|
-
[![][github-issues-shield]][github-issues-link]
|
|
28
|
-
[![][github-license-shield]][github-license-link]
|
|
29
|
-
|
|
30
|
-
[![][banner]][vercel-link]
|
|
31
|
-
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<details>
|
|
35
|
-
<summary><kbd>目录</kbd></summary>
|
|
36
|
-
|
|
37
|
-
#### 目录
|
|
38
|
-
|
|
39
|
-
- [📦 安装](#-安装)
|
|
40
|
-
- [使用 NextJS 编译](#使用-nextjs-编译)
|
|
41
|
-
- [🤯 使用](#-使用)
|
|
42
|
-
- [⌨️ 本地开发](#️-本地开发)
|
|
43
|
-
- [🤝 贡献](#-贡献)
|
|
44
|
-
- [🔗 更多产品](#-更多产品)
|
|
45
|
-
|
|
46
|
-
####
|
|
47
|
-
|
|
48
|
-
</details>
|
|
49
|
-
|
|
50
|
-
## 📦 安装
|
|
51
|
-
|
|
52
|
-
> \[!IMPORTANT]\
|
|
53
|
-
> 该包仅支持 [ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)。
|
|
54
|
-
|
|
55
|
-
要安装 Lobe UI,请运行以下命令:
|
|
56
|
-
|
|
57
|
-
[![][bun-shield]][bun-link]
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
$ bun add @lobehub/ui
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### 使用 NextJS 编译
|
|
64
|
-
|
|
65
|
-
> \[!NOTE]\
|
|
66
|
-
> 为了正确使用 nextjs ssr,请在 `next.config.js` 中添加 `transpilePackages: ['@lobehub/ui']`。例如:
|
|
67
|
-
|
|
68
|
-
```js
|
|
69
|
-
// next.config.js
|
|
70
|
-
const nextConfig = {
|
|
71
|
-
// ...其他配置
|
|
72
|
-
|
|
73
|
-
transpilePackages: ['@lobehub/ui'],
|
|
74
|
-
};
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
<div align="right">
|
|
78
|
-
|
|
79
|
-
[![][back-to-top]](#readme-top)
|
|
80
|
-
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
## 🤯 使用
|
|
84
|
-
|
|
85
|
-
> \[!NOTE]\
|
|
86
|
-
> LobeUI 组件是基于 [Antd](https://ant.design/components/overview/) 开发的,完全兼容 Antd 组件,
|
|
87
|
-
> 推荐使用 [antd-style](https://ant-design.github.io/antd-style/) 作为默认的 css-in-js 样式解决方案。
|
|
88
|
-
|
|
89
|
-
```tsx
|
|
90
|
-
import { ThemeProvider, Button } from '@lobehub/ui'
|
|
91
|
-
import { Button } from 'antd'
|
|
92
|
-
|
|
93
|
-
export default () => (
|
|
94
|
-
<ThemeProvider>
|
|
95
|
-
<Button>Hello AIGC</Button>
|
|
96
|
-
</ThemeProvider>
|
|
97
|
-
)
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
<div align="right">
|
|
101
|
-
|
|
102
|
-
[![][back-to-top]](#readme-top)
|
|
103
|
-
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
## ⌨️ 本地开发
|
|
107
|
-
|
|
108
|
-
您可以使用 Github Codespaces 进行在线开发:
|
|
109
|
-
|
|
110
|
-
[![][codespaces-shield]][codespaces-link]
|
|
111
|
-
|
|
112
|
-
或者克隆到本地进行开发:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
$ git clone https://github.com/lobehub/lobe-ui.git
|
|
116
|
-
$ cd lobe-ui
|
|
117
|
-
$ bun install
|
|
118
|
-
$ bun start
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
<div align="right">
|
|
122
|
-
|
|
123
|
-
[![][back-to-top]](#readme-top)
|
|
124
|
-
|
|
125
|
-
</div>
|
|
126
|
-
|
|
127
|
-
## 🤝 贡献
|
|
128
|
-
|
|
129
|
-
欢迎各种类型的贡献,如果您有兴趣贡献代码,请随时查看我们的 GitHub [问题][github-issues-link],并展示您的才华。
|
|
130
|
-
|
|
131
|
-
[![][pr-welcome-shield]][pr-welcome-link]
|
|
132
|
-
|
|
133
|
-
[![][contributors-contrib]][contributors-link]
|
|
134
|
-
|
|
135
|
-
<div align="right">
|
|
136
|
-
|
|
137
|
-
[![][back-to-top]](#readme-top)
|
|
138
|
-
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
## 🩷 感谢赞助
|
|
142
|
-
|
|
143
|
-
每一分支持都珍贵无比,汇聚成我们支持的璀璨银河!你就像一颗划破夜空的流星,瞬间点亮我们前行的道路。感谢你对我们的信任 —— 你的支持笔就像星辰导航,一次又一次地为项目指明前进的光芒。
|
|
144
|
-
|
|
145
|
-
<a href="https://opencollective.com/lobehub" target="_blank">
|
|
146
|
-
<picture>
|
|
147
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/lobehub/.github/blob/main/static/sponsor-dark.png?raw=true">
|
|
148
|
-
<img src="https://github.com/lobehub/.github/blob/main/static/sponsor-light.png?raw=true">
|
|
149
|
-
</picture>
|
|
150
|
-
</a>
|
|
151
|
-
|
|
152
|
-
<div align="right">
|
|
153
|
-
|
|
154
|
-
[![][back-to-top]](#readme-top)
|
|
155
|
-
|
|
156
|
-
</div>
|
|
157
|
-
|
|
158
|
-
## 🔗 更多产品
|
|
159
|
-
|
|
160
|
-
- **[🤖 Lobe Chat][lobe-chat] :** 一个开源、可扩展(函数调用)、高性能的聊天机器人框架。支持一键免费部署私有 ChatGPT/LLM 网页应用程序。
|
|
161
|
-
- **[🤯 Lobe Theme][lobe-theme] :** 稳定扩散 WebUI 的现代主题,精美的界面设计,高度可定制的 UI 和提高效率的功能。
|
|
162
|
-
- **[🌏 Lobe i18n][lobe-i18n] :** Lobe i18n 是一个由 ChatGPT 提供支持的自动化工具,用于 i18n(国际化)翻译过程。它支持诸如大文件的自动拆分、增量更新和对 OpenAI 模型、API 代理和温度的自定义选项等功能。
|
|
163
|
-
- **[💌 Lobe Commit][lobe-commit] :** Lobe Commit 是一个利用 Langchain/ChatGPT 生成基于 Gitmoji 的提交消息的 CLI 工具。
|
|
164
|
-
|
|
165
|
-
<div align="right">
|
|
166
|
-
|
|
167
|
-
[![][back-to-top]](#readme-top)
|
|
168
|
-
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
<details><summary><h4>📝 License</h4></summary>
|
|
174
|
-
|
|
175
|
-
[![][fossa-license-shield]][fossa-license-link]
|
|
176
|
-
|
|
177
|
-
</details>
|
|
178
|
-
|
|
179
|
-
Copyright © 2023 [LobeHub][profile-link]. <br />
|
|
180
|
-
This project is [MIT](./LICENSE) licensed.
|
|
181
|
-
|
|
182
|
-
<!-- LINK GROUP -->
|
|
183
|
-
|
|
184
|
-
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
185
|
-
[banner]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268452017-960ab8a1-e4b7-4648-beb1-77daf4b6034a.png
|
|
186
|
-
[bun-link]: https://bun.sh
|
|
187
|
-
[bun-shield]: https://img.shields.io/badge/-speedup%20with%20bun-black?logo=bun&style=for-the-badge
|
|
188
|
-
[codespaces-link]: https://codespaces.new/lobehub/lobe-ui
|
|
189
|
-
[codespaces-shield]: https://github.com/codespaces/badge.svg
|
|
190
|
-
[contributors-contrib]: https://contrib.rocks/image?repo=lobehub/lobe-ui
|
|
191
|
-
[contributors-link]: https://github.com/lobehub/lobe-ui/graphs/contributors
|
|
192
|
-
[discord-link]: https://discord.gg/AYFPHvv2jT
|
|
193
|
-
[discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
|
|
194
|
-
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-ui
|
|
195
|
-
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-ui.svg?type=large
|
|
196
|
-
[github-action-release-link]: https://github.com/actions/workflows/lobehub/lobe-ui/release.yml
|
|
197
|
-
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-ui/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
198
|
-
[github-action-test-link]: https://github.com/actions/workflows/lobehub/lobe-ui/test.yml
|
|
199
|
-
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-ui/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
200
|
-
[github-contributors-link]: https://github.com/lobehub/lobe-ui/graphs/contributors
|
|
201
|
-
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-ui?color=c4f042&labelColor=black&style=flat-square
|
|
202
|
-
[github-forks-link]: https://github.com/lobehub/lobe-ui/network/members
|
|
203
|
-
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-ui?color=8ae8ff&labelColor=black&style=flat-square
|
|
204
|
-
[github-issues-link]: https://github.com/lobehub/lobe-ui/issues
|
|
205
|
-
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-ui?color=ff80eb&labelColor=black&style=flat-square
|
|
206
|
-
[github-license-link]: https://github.com/lobehub/lobe-ui/blob/master/LICENSE
|
|
207
|
-
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-ui?color=white&labelColor=black&style=flat-square
|
|
208
|
-
[github-releasedate-link]: https://github.com/lobehub/lobe-ui/releases
|
|
209
|
-
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-ui?labelColor=black&style=flat-square
|
|
210
|
-
[github-stars-link]: https://github.com/lobehub/lobe-ui/network/stargazers
|
|
211
|
-
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-ui?color=ffcb47&labelColor=black&style=flat-square
|
|
212
|
-
[lobe-chat]: https://github.com/lobehub/lobe-chat
|
|
213
|
-
[lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
|
|
214
|
-
[lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
|
|
215
|
-
[lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
|
|
216
|
-
[npm-downloads-link]: https://www.npmjs.com/package/@lobehub/ui
|
|
217
|
-
[npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/ui?labelColor=black&style=flat-square
|
|
218
|
-
[npm-release-link]: https://www.npmjs.com/package/@lobehub/ui
|
|
219
|
-
[npm-release-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
|
|
220
|
-
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
|
|
221
|
-
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
222
|
-
[profile-link]: https://github.com/lobehub
|
|
223
|
-
[vercel-link]: https://ui.lobehub.com
|
|
224
|
-
[vercel-shield]: https://img.shields.io/website?down_message=offline&label=vercel&labelColor=black&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fui.lobehub.com
|