Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

♻️ refactor: migrate to @lobehub/ui 6 and drop antd (#20503)

Inneibb0814551d64
diff --git a/.agents/acceptance/references/common-mistakes-field-notes.md b/.agents/acceptance/references/common-mistakes-field-notes.md
index 81cb9788ce6..b4ec4ac7075 100644
--- a/.agents/acceptance/references/common-mistakes-field-notes.md
+++ b/.agents/acceptance/references/common-mistakes-field-notes.md
@@ -402,7 +402,7 @@ list, not just that the dialog opened.
#### L-D13 — Picking `cssVar` color-scale steps by antd-palette intuition
-**Wrong approach:** choose antd-style palette steps (`cssVar.blue1` for a tint,
+**Wrong approach:** choose palette steps (`cssVar.blue1` for a tint,
`cssVar.blue6` for the primary line) from the standard antd 10-step palette in
your head, and judge the result from the code alone.
diff --git a/.agents/acceptance/references/probe-field-notes.md b/.agents/acceptance/references/probe-field-notes.md
index ff09c205b18..29fdc28a52c 100644
--- a/.agents/acceptance/references/probe-field-notes.md
+++ b/.agents/acceptance/references/probe-field-notes.md
@@ -1183,7 +1183,7 @@ permissions`, which raw member rows never create. And even after RBAC, a raw
the cause; clearing `node_modules/.vite` does NOT fix it.
- **Doesn't work:** clearing the Vite deps cache, restarting the dev server,
`pnpm dedupe @lobehub/ui` (peer sets differ, instances survive).
-- **Works:** temporarily add `resolve: { dedupe: ['@lobehub/ui', 'antd-style',
+- **Works:** temporarily add `resolve: { dedupe: ['@lobehub/ui',
'motion', 'react', 'react-dom'] }` to the cloud root `vite.config.ts` +
`rm -rf node_modules/.vite`, and REVERT the config after capturing evidence
(snapshot the file first — it may carry uncommitted edits).
diff --git a/.agents/skills/builtin-tool/references/tool-design.md b/.agents/skills/builtin-tool/references/tool-design.md
index 86ae43b9d31..a50a7a8af8b 100644
--- a/.agents/skills/builtin-tool/references/tool-design.md
+++ b/.agents/skills/builtin-tool/references/tool-design.md
@@ -446,9 +446,7 @@ This entry is what `packages/builtin-tools/src/index.ts` and `identifiers.ts` im
"main": "./src/index.ts",
"name": "@lobechat/builtin-tool-<name>",
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/.agents/skills/builtin-tool/references/ui/inspector.md b/.agents/skills/builtin-tool/references/ui/inspector.md
index 81881c09d42..093dacc6b01 100644
--- a/.agents/skills/builtin-tool/references/ui/inspector.md
+++ b/.agents/skills/builtin-tool/references/ui/inspector.md
@@ -36,8 +36,7 @@ interface BuiltinInspectorProps<Arguments = any, State = any> {
'use client';
import type { BuiltinInspectorProps, SearchQuery, UniformSearchResponse } from '@lobechat/types';
-import { Text } from '@lobehub/ui';
-import { cssVar, cx } from 'antd-style';
+import { cssVar, cx, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/.agents/skills/builtin-tool/references/ui/placeholder.md b/.agents/skills/builtin-tool/references/ui/placeholder.md
index fd0b68a11f1..b95bed65f5f 100644
--- a/.agents/skills/builtin-tool/references/ui/placeholder.md
+++ b/.agents/skills/builtin-tool/references/ui/placeholder.md
@@ -22,8 +22,7 @@ No `pluginState` — Placeholder lives entirely in the "executing" gap.
```tsx
import type { BuiltinPlaceholderProps, SearchQuery } from '@lobechat/types';
-import { Flexbox, Icon, Skeleton } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon, Skeleton } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/.agents/skills/builtin-tool/references/ui/shared-rules.md b/.agents/skills/builtin-tool/references/ui/shared-rules.md
index bf24609447e..b89855a46f8 100644
--- a/.agents/skills/builtin-tool/references/ui/shared-rules.md
+++ b/.agents/skills/builtin-tool/references/ui/shared-rules.md
@@ -39,7 +39,7 @@ export default SearchInspector;
Zero-runtime CSS-in-JS — styles compile once and read CSS variables at runtime:
```tsx
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
const styles = createStaticStyles(({ css, cssVar }) => ({
chip: css`
diff --git a/.agents/skills/deep-review/references/dimensions/code-style.md b/.agents/skills/deep-review/references/dimensions/code-style.md
index 5300bb9e48c..27bbba2da17 100644
--- a/.agents/skills/deep-review/references/dimensions/code-style.md
+++ b/.agents/skills/deep-review/references/dimensions/code-style.md
@@ -13,8 +13,8 @@ Fragment-level readability and convention adherence. Look at each changed hunk i
- Leftover `console.log` / `console.debug` — use the `debug` package or remove
- Missing `return await` inside try/catch (the rejection escapes the catch) — <https://typescript-eslint.io/rules/return-await/>
- Hardcoded user-facing strings — must go through i18n keys (`packages/locales/src/default/<namespace>.ts`, named `{feature}.{context}.{action|status}`)
-- `antd` imports where `@lobehub/ui` (or `@lobehub/ui/base-ui`) wraps the same component — base-ui first, then `@lobehub/ui`, antd last
-- Hardcoded colors / raw CSS values — use `antd-style` tokens; prefer `createStaticStyles` + `cssVar.*` over `createStyles` + `token` unless styles need runtime computation
+- `antd` / `antd-style` imports — both are gone; use the `@lobehub/ui` component and its `createStaticStyles` / `cssVar` / `cx`
+- Hardcoded colors / raw CSS values — use `cssVar.*` tokens with `createStaticStyles` from `@lobehub/ui`
- Dead code, commented-out blocks, unused exports introduced by this diff
- Comments: missing on hacky/non-obvious logic; stale after a signature change; or merely restating the code
- Nesting ≥ 3 levels that early returns / lookup tables would flatten
diff --git a/.agents/skills/design-prototype/SKILL.md b/.agents/skills/design-prototype/SKILL.md
index 5b70115f78d..15246a3b4aa 100644
--- a/.agents/skills/design-prototype/SKILL.md
+++ b/.agents/skills/design-prototype/SKILL.md
@@ -6,10 +6,10 @@ description: 'Use for interactive HTML prototypes (交互原型) with the real L
# Design Prototype
One HTML file, double-click to open, fully interactive, rendered by the **actual
-design system** (`@lobehub/ui` 5.x + antd 6 + antd-style tokens, exact versions from
-this repo's `node_modules`) — while the source stays **production-style React**
-(`import { Block } from '@lobehub/ui'`, `createStyles(({ css, token }) => …)`, hooks,
-`memo`). Promotion to production is mostly "split into files", not "rewrite".
+design system** (`@lobehub/ui` 6.x components, compiled `style.css`, `--lobe-*` theme tokens — exact
+versions from this repo's `node_modules`) — while the source stays **production-style
+React** (`import { Block } from '@lobehub/ui'`, `createStaticStyles(({ css, cssVar }) => …)`,
+hooks, `memo`). Promotion to production is mostly "split into files", not "rewrite".
Prototype code may be quick-and-dirty (one file, no i18n, inline data) — but the
**interaction must be complete**: states, transitions, and affordances are the point
@@ -19,23 +19,33 @@ of a prototype, not its code style.
```
one-time (~2s, cached): scripts/build-runtime.sh → lobe-prototype-runtime.js (IIFE global)
+ + lobe-prototype-runtime.css
+ vendored babel.min.js
-per prototype (no build): single HTML = <script runtime> + babel-standalone
+per prototype (no build): single HTML = <link css> + <script runtime> + babel-standalone
+ <script type="text/babel"> with production-style React
```
-- The runtime bundles `react`, `react-dom/client`, `@lobehub/ui`, `@lobehub/ui/base-ui`,
- `antd` (curated subset), `antd-style`, `lucide-react` from the repo's own
- `node_modules` — so tokens/components/versions match production, and react/emotion/
- theme-context are singletons by construction.
+- The runtime bundles `react`, `react-dom/client`, the full `@lobehub/ui` namespace,
+ `lucide-react` and `motion` from the repo's own `node_modules` — so tokens/components/
+ versions match production, and react/emotion/theme-scope are singletons by
+ construction.
+- `entry.mjs` also imports `@lobehub/ui/theme.css` + `global.css` + `style.css` (the same
+ three the app loads in `src/layout/GlobalProvider/AppTheme.tsx`); esbuild emits them
+ as `lobe-prototype-runtime.css`, linked from the template's `<head>`.
- A 3-line `window.require` shim + babel's `transform-modules-commonjs` lets the
prototype keep real `import` statements.
-- `ThemeProvider themeMode="auto"` → light/dark follow the OS.
+- Theming is CSS attributes, not a provider: the template's head script calls
+ `setLobeTheme({ appearance })` from `prefers-color-scheme` (and on change), so
+ light/dark follow the OS before first paint. Force a theme with
+ `setLobeTheme({ appearance: 'dark' })`, or `<ThemeScope appearance="dark">` for an
+ island. The React tree is wrapped in `<ConfigProvider motion={motion}>` like the app's
+ `AppTheme` (motion for `Button`, `Drawer`, `Modal`, …, plus fonts, focus ring and the
+ popup portal host) and `<ToastHost />` for `toast`.
> ⚠️ Don't re-attempt the pure-CDN route (esm.sh import maps). It was tried and
-> rejected: esm.sh's CJS named-export analysis fails serially across antd's dep chain
-> (`@ant-design/fast-color` → `@ant-design/colors` → `@rc-component/qrcode` → …), and
-> `?bundle` leaks an unversioned `react-is` 404. Whack-a-mole, not a foundation.
+> rejected: esm.sh's CJS named-export analysis failed serially across the dep chain and
+> `?bundle` leaked an unversioned `react-is` 404. Bundling from the repo's own
+> `node_modules` is the only way to match production versions exactly.
## Quickstart
@@ -45,8 +55,9 @@ per prototype (no build): single HTML = <script runtime> + babel-standalone
bash .agents/skills/design-prototype/scripts/build-runtime.sh /tmp/my-proto
```
- Skip if `lobe-prototype-runtime.js` + `babel.min.js` are already there and the
- design-system versions haven't bumped.
+ Skip if `lobe-prototype-runtime.{js,css}` + `babel.min.js` are already there and the
+ design-system versions haven't bumped. The first run downloads `babel.min.js` from
+ unpkg (pinned); later runs reuse it.
2. **Copy [`references/template.html`](references/template.html)** into the same dir,
rename, and replace the sample `App` with the real surface. Keep the runtime shim
@@ -80,30 +91,44 @@ viewport if the surface has a mobile story.
See [`assets/entry.mjs`](assets/entry.mjs) — the single source of truth. Currently:
+- `@lobehub/ui`: full namespace — every component (`Button`, `Input`, `Modal`,
+ `createModal`, `confirmModal`, `Table`, `Switch`, `Checkbox`, `Radio`, `Badge`,
+ `Progress`, `Slider`, `Steps`, `Divider`, `DropdownMenu`, `Accordion`, `Collapsible`,
+ `Spin`, `Skeleton`, `DraggablePanel`, `FloatingSheet`, …) plus `toast` / `ToastHost`,
+ `MotionProvider`, `setLobeTheme`, `ThemeScope`, `useThemeMode`, `useTheme`, and the
+ styling API `createStaticStyles`, `cssVar`, `cx`, `css`, `keyframes`, `responsive`,
+ `useResponsive`
- `@lobehub/icons`: Amp, ClaudeCode, Codex, HermesAgent, OpenClaw, OpenCode
-- `@lobehub/ui`: ActionIcon, Alert, Avatar, Block, Button, Center, Collapse,
- ConfigProvider, DraggablePanel, Drawer, DropdownMenu, Empty, Flexbox, Highlighter, Hotkey, Icon,
- Image, Input, InputNumber, Markdown, Modal, MotionProvider, Popover, ScrollShadow,
- SearchBar, Segmented, Select, Skeleton, SortableList, Tabs, Tag, Text, TextArea,
- ThemeProvider, Tooltip
-- `@lobehub/ui/base-ui`: full namespace (Select, Modal, DropdownMenu, Switch, Toast,
- FloatingSheet, …)
-- `antd`: App, Badge, Checkbox, Divider, Dropdown, Progress, Radio, Slider, Space,
- Steps, Table
-- `antd-style`, `lucide-react`, `motion/react`, `motion/react-m`, `react`,
- `react/jsx-runtime`, `react-dom`, `react-dom/client`: full namespaces
-
-Missing a component → add to `entry.mjs`, rerun the build script (\~2s). Sizes:
-curated ≈ 16MB (fine from disk); a full `export * from '@lobehub/ui'` works too
-(≈ 27MB) if you'd rather never curate.
+- `lucide-react`, `motion/react`, `motion/react-m`, `react`, `react/jsx-runtime`,
+ `react-dom`, `react-dom/client`: full namespaces
+
+Not included: `@lobehub/ui/form`, `@lobehub/ui/pro-table`, `@lobehub/ui/chat` and the
+other subpaths — add `import * as x from '@lobehub/ui/<sub>'` + a `'@lobehub/ui/<sub>': x`
+entry and rebuild (\~2s). Size ≈ 17MB JS + 0.3MB CSS (fine from disk).
+
+### Picking the v6 equivalent
+
+- Feedback: `toast.success(…)` + `<ToastHost />`; dialogs: `Modal`, `createModal`,
+ `confirmModal`.
+- Menus: `DropdownMenu items={…}` (opens on click); context menus: `ContextMenuTrigger`.
+- Layout: `Flexbox horizontal gap={…}` / `Center` / `Grid` — there is no `Space`.
+- Disclosure: `Accordion` for several sections, `Collapsible` for one region.
+- `Badge`, `Checkbox`, `Divider`, `Progress`, `Radio`, `Slider`, `Steps`, `Switch`,
+ `Table` (`columns` / `dataSource` / `rowSelection`) are root exports.
+- Unsure about a name → check `node_modules/@lobehub/ui/es/index.d.mts` rather than
+ guessing; an unknown import is `undefined` at runtime, not a build error.
## Pitfalls
-- **`Switch` lives in `@lobehub/ui/base-ui`**, not the root package (as do the other
- base-ui primitives). Importing it from the root fails the runtime build.
-- **Use `createStyles` (runtime), not `createStaticStyles`** — static extraction
- needs a build step. This is the one sanctioned deviation from production style;
- note it when handing the prototype to an implementer.
+- **Style with `createStaticStyles` + `cssVar.*`** exactly as production does — it is
+ emotion-backed and inserts at call time, so it needs no build step. Tokens resolve
+ to `var(--lobe-*)` and flip with the theme; never hardcode light/dark colors.
+- **Component styles live in cascade layers** (`lobe-base`, `lobe-popup`, `lobe-ui`), so
+ any unlayered CSS in the prototype's `<style>` beats them. Override through
+ `className` / `style` / `classNames` / `styles` slot props, not global selectors
+ like `button { … }`.
+- **Keep the `<link>` to `lobe-prototype-runtime.css`** — without it components render
+ unstyled and `--lobe-*` tokens are undefined.
- **babel must stay the raw UMD file** (unpkg/jsdelivr). esm.sh rewrites it to ESM
and a classic `<script src>` chokes on `export`.
- The require shim throws with the module name when an import isn't in the runtime —
@@ -121,7 +146,7 @@ _demonstrates_:
prototype under-specifies the design and silently blesses missing states.
- Reuse the app's **surface contracts**: side panels are `DraggablePanel`
(collapse + drag-resize come free), loading follows the ux skill's feedback §4.1
- scenario table (skeleton / base-ui `Spin`, `variant="network"` only for AI work), modals via `createModal`-style flows.
+ scenario table (`Skeleton` / `Spin`, `variant="network"` only for AI work), modals via `createModal`-style flows.
- Don't paint affordances you don't wire (`cursor: zoom-in` with no zoom, keycap
chips with no keys) — in an _interactive_ prototype a dead affordance is a spec bug.
- Walk the ux Quick review against the prototype before delivering; annotate
diff --git a/.agents/skills/design-prototype/assets/.gitignore b/.agents/skills/design-prototype/assets/.gitignore
index 7c54a67c5ff..8f0b6e58440 100644
--- a/.agents/skills/design-prototype/assets/.gitignore
+++ b/.agents/skills/design-prototype/assets/.gitignore
@@ -1,2 +1,3 @@
lobe-prototype-runtime.js
+lobe-prototype-runtime.css
babel.min.js
diff --git a/.agents/skills/design-prototype/assets/entry.mjs b/.agents/skills/design-prototype/assets/entry.mjs
index ee900dd2142..8043effd89c 100644
--- a/.agents/skills/design-prototype/assets/entry.mjs
+++ b/.agents/skills/design-prototype/assets/entry.mjs
@@ -1,62 +1,9 @@
-/* eslint-disable no-restricted-imports */
-// Entry list for the design-prototype runtime bundle.
-// Everything a prototype can import lives here, re-exported as namespaces on a
-// single IIFE global. Bundled from THIS repo's node_modules, so versions match
-// production exactly. Missing a component? Add it below and rebuild (~2s):
-// bash .agents/skills/design-prototype/scripts/build-runtime.sh
+import '@lobehub/ui/theme.css';
+import '@lobehub/ui/global.css';
+import '@lobehub/ui/style.css';
+
import { Amp, ClaudeCode, Codex, HermesAgent, OpenClaw, OpenCode } from '@lobehub/icons';
-import {
- ActionIcon,
- Alert,
- Avatar,
- Block,
- Button,
- Center,
- Collapse,
- ConfigProvider,
- DraggablePanel,
- Drawer,
- DropdownMenu,
- Empty,
- Flexbox,
- Highlighter,
- Hotkey,
- Icon,
- Image,
- Input,
- InputNumber,
- Markdown,
- Modal,
- MotionProvider,
- Popover,
- ScrollShadow,
- SearchBar,
- Segmented,
- Select,
- Skeleton,
- SortableList,
- Tabs,
- Tag,
- Text,
- TextArea,
- ThemeProvider,
- Tooltip,
-} from '@lobehub/ui';
-import * as baseUI from '@lobehub/ui/base-ui';
-import {
- App,
- Badge,
- Checkbox,
- Divider,
- Dropdown,
- Progress,
- Radio,
- Slider,
- Space,
- Steps,
- Table,
-} from 'antd';
-import * as antdStyle from 'antd-style';
+import * as ui from '@lobehub/ui';
import * as lucide from 'lucide-react';
import * as motionReact from 'motion/react';
import * as motionReactM from 'motion/react-m';
@@ -66,47 +13,8 @@ import * as reactDom from 'react-dom';
import * as reactDomClient from 'react-dom/client';
export default {
- '@lobehub/ui': {
- ActionIcon,
- Alert,
- Avatar,
- Block,
- Button,
- Center,
- Collapse,
- ConfigProvider,
- DraggablePanel,
- Drawer,
- DropdownMenu,
- Empty,
- Flexbox,
- Highlighter,
- Hotkey,
- Icon,
- Image,
- Input,
- InputNumber,
- Markdown,
- Modal,
- Popover,
- ScrollShadow,
- SearchBar,
- Segmented,
- Select,
- Skeleton,
- SortableList,
- Tabs,
- Tag,
- Text,
- TextArea,
- MotionProvider,
- ThemeProvider,
- Tooltip,
- },
'@lobehub/icons': { Amp, ClaudeCode, Codex, HermesAgent, OpenClaw, OpenCode },
- '@lobehub/ui/base-ui': baseUI,
- 'antd': { App, Badge, Checkbox, Divider, Dropdown, Progress, Radio, Slider, Space, Steps, Table },
- 'antd-style': antdStyle,
+ '@lobehub/ui': ui,
'lucide-react': lucide,
'motion/react': motionReact,
'motion/react-m': motionReactM,
diff --git a/.agents/skills/design-prototype/references/template.html b/.agents/skills/design-prototype/references/template.html
index 1f508dfdb80..c0ad2077cdc 100644
--- a/.agents/skills/design-prototype/references/template.html
+++ b/.agents/skills/design-prototype/references/template.html
@@ -17,14 +17,13 @@
}
</style>
- <!-- The prototype runtime: react + @lobehub/ui(+base-ui) + antd + antd-style +
- lucide-react, bundled once from this repo's node_modules (production versions).
- Build both files next to this HTML:
+ <!-- The prototype runtime: react + @lobehub/ui 6 (+ its theme/global/style CSS) +
+ lucide-react + motion, bundled once from this repo's node_modules (production versions).
+ Build all three files next to this HTML:
bash .agents/skills/design-prototype/scripts/build-runtime.sh <this-dir> -->
+ <link rel="stylesheet" href="./lobe-prototype-runtime.css" />
<script src="./lobe-prototype-runtime.js"></script>
<script>
- // Map bare module specifiers onto the bundled namespaces, so the code below
- // keeps production-style `import { X } from '@lobehub/ui'`.
window.require = (name) => {
const m = __PROTO_DEPS_NS__.default[name];
if (!m)
@@ -35,6 +34,14 @@
};
window.exports = {};
window.module = { exports: window.exports };
+
+ (() => {
+ const { setLobeTheme } = window.require('@lobehub/ui');
+ const media = matchMedia('(prefers-color-scheme: dark)');
+ const sync = () => setLobeTheme({ appearance: media.matches ? 'dark' : 'light' });
+ sync();
+ media.addEventListener('change', sync);
+ })();
</script>
<script src="./babel.min.js"></script>
</head>
@@ -43,23 +50,28 @@
<div id="root"></div>
<script type="text/babel" data-presets="react" data-plugins="transform-modules-commonjs">
- // Production-style React from here on. Real tokens, real components.
- import { Button, Center, Empty, Flexbox, Text, ThemeProvider } from '@lobehub/ui';
- import { createStyles } from 'antd-style';
+ import {
+ Button,
+ Center,
+ ConfigProvider,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Text,
+ ToastHost,
+ } from '@lobehub/ui';
+ import { motion } from 'motion/react';
import React, { memo, useState } from 'react';
import { createRoot } from 'react-dom/client';
- const useStyles = createStyles(({ css, token }) => ({
+ const styles = createStaticStyles(({ css, cssVar }) => ({
page: css`
min-height: 100dvh;
- background: ${token.colorBgLayout};
+ background: ${cssVar.colorBgLayout};
`,
}));
const App = memo(() => {
- const { styles } = useStyles();
- // Prototypes must demo at least one non-happy-path state (ux skill ground
- // rule) — wire a state toggle like this instead of hardcoding the happy path.
const [state, setState] = useState('data');
return (
@@ -79,9 +91,7 @@
<Center flex={1}>
{state === 'data' && <Text>Replace me with the real surface.</Text>}
{state === 'empty' && <Empty description="Nothing here yet" />}
- {state === 'loading' && (
- <Text type="secondary">skeleton / Spin here…</Text>
- )}
+ {state === 'loading' && <Text type="secondary">skeleton / Spin here…</Text>}
{state === 'error' && (
<Flexbox align="center" gap={8}>
<Text type="danger">Failed to load.</Text>
@@ -95,9 +105,10 @@
document.querySelector('#boot').remove();
createRoot(document.querySelector('#root')).render(
- <ThemeProvider themeMode="auto">
+ <ConfigProvider motion={motion}>
<App />
- </ThemeProvider>,
+ <ToastHost />
+ </ConfigProvider>,
);
</script>
</body>
diff --git a/.agents/skills/design-prototype/scripts/build-runtime.sh b/.agents/skills/design-prototype/scripts/build-runtime.sh
index 14e2070232e..fba6b7bef02 100755
--- a/.agents/skills/design-prototype/scripts/build-runtime.sh
+++ b/.agents/skills/design-prototype/scripts/build-runtime.sh
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
-# Build the design-prototype runtime (real design system, bundled once) and
-# vendor babel-standalone next to it, so prototypes are single HTML files that
-# run offline over file://.
+# Build the design-prototype runtime (real design system, bundled once): a JS
+# IIFE plus the @lobehub/ui stylesheets (theme.css + global.css + style.css)
+# that esbuild emits as a sibling .css. Vendors babel-standalone next to them,
+# so prototypes are single HTML files that run offline over file://.
#
# Usage:
# bash .agents/skills/design-prototype/scripts/build-runtime.sh [out-dir]
@@ -20,7 +21,7 @@ cd "$REPO_ROOT"
"$ESBUILD" "$SKILL_DIR/assets/entry.mjs" \
--bundle --format=iife --global-name=__PROTO_DEPS_NS__ \
--platform=browser --define:process.env.NODE_ENV='"production"' --minify \
- --loader:.css=empty --loader:.woff=dataurl --loader:.woff2=dataurl \
+ --loader:.woff=dataurl --loader:.woff2=dataurl \
--loader:.svg=dataurl --loader:.png=dataurl \
--outfile="$OUT_DIR/lobe-prototype-runtime.js"
@@ -30,5 +31,5 @@ if [ ! -s "$BABEL" ]; then
curl -fsSL "https://unpkg.com/@babel/[email protected]/babel.min.js" -o "$BABEL"
fi
-ls -lh "$OUT_DIR/lobe-prototype-runtime.js" "$BABEL" | awk '{print $5, $NF}'
+ls -lh "$OUT_DIR/lobe-prototype-runtime.js" "$OUT_DIR/lobe-prototype-runtime.css" "$BABEL" | awk '{print $5, $NF}'
echo "done → $OUT_DIR"
diff --git a/.agents/skills/project-overview/SKILL.md b/.agents/skills/project-overview/SKILL.md
index c1a9941fd60..717eb12868b 100644
--- a/.agents/skills/project-overview/SKILL.md
+++ b/.agents/skills/project-overview/SKILL.md
@@ -30,8 +30,8 @@ This repo is the **open-source root** (`github.com/lobehub/lobehub`, package `@l
| Framework | Next.js 16 + React 19 |
| Routing | SPA inside Next.js with `react-router-dom` |
| Language | TypeScript |
-| UI Components | `@lobehub/ui`, antd |
-| CSS-in-JS | antd-style |
+| UI Components | `@lobehub/ui` |
+| CSS-in-JS | `@lobehub/ui` `createStaticStyles` |
| Icons | lucide-react, `@ant-design/icons` |
| i18n | react-i18next |
| State | zustand |
diff --git a/.agents/skills/split-micro-app/SKILL.md b/.agents/skills/split-micro-app/SKILL.md
index 5abbc939da2..5ddf73ad891 100644
--- a/.agents/skills/split-micro-app/SKILL.md
+++ b/.agents/skills/split-micro-app/SKILL.md
@@ -67,7 +67,6 @@ workers/app.ts # worker entry: API reverse proxy + createRequestHandler
src/ # app-owned features/shell (may coexist with a legacy SPA entry)
vite.config.rr.mts # RR pipeline; legacy vite.config.ts can coexist (RR CLI: -c vite.config.rr.mts)
wrangler.jsonc # name, account_id, nodejs_compat, vars (API base / app home)
-staticCssOptions.mjs # ONE source for static-css hrefTemplate (vite plugin + emit + dev middleware)
```
Reuse main-src code via `@/*` deep imports + Vite 8 native `resolve.tsconfigPaths: true`
@@ -160,7 +159,7 @@ Do not assume that; `apps/share` needed 8.2MB of stubbing. Measure per app.
The RR config is a **factory** so both hosts share one pipeline:
`apps/share/vite.config.shared.mts` exports
-`createShareRrConfig({ appRoot, extraSsrStubs, repoRoot, resolvePlugins, staticCss })`, and the
+`createShareRrConfig({ appRoot, extraSsrStubs, repoRoot, resolvePlugins })`, and the
OSS `vite.config.rr.mts` is a thin caller reading `SHARE_TSCONFIG_PROJECT` /
`SHARE_EXTRA_SSR_STUBS`. Cloud fills both in `scripts/shareApp.ts` and drives the submodule app
through `scripts/{buildShare,devShare,deployShare,shouldBuildShare}.ts`.
@@ -236,11 +235,10 @@ gateway routes API to `app` instead), and redirect `/` + unknown paths to `WORKB
- **i18n**: narrow to the namespaces the app renders; root loader preloads locale resources,
i18n inits sync (`initAsync: false`) with bundled resources; SSR env stubs the shared glob
loader to only its namespaces (full glob = every locale × ns as worker chunks).
-- **CSS three layers**: lobe-ui `static-css` (antd probes + theme vars, hrefTemplate from the
- shared options file; emitted as hashed files, dev served by config middleware) →
- antd-style `extractStaticStyle(html, { includeAntd: false })` for emotion →
- `buildInlineAntdStyle(cache, { styleKeys })` fallback. Non-streaming render
- (`await stream.allReady`) so extraction is complete.
+- **CSS two layers**: `@lobehub/ui/theme.css` + `global.css` + `style.css` imported by the
+ theme shell, which RR emits as route `<link>`s → `extractStaticStyle(html)` in
+ `entry.server.tsx` for emotion. Non-streaming render (`await stream.allReady`) so extraction
+ is complete.
- `<html suppressHydrationWarning>` — next-themes stamps `data-theme` pre-hydration.
- **Time-dependent output must be client-gated**: relative timestamps and anything else the
server and client compute differently belong behind a `useHydrated()`
@@ -314,7 +312,7 @@ and swaps a `window.__SERVER_CONFIG__` placeholder for the deployment's config.
If that is still too slow, the remaining move is one build plus N renders against
`build/server/index.js` with the locale threaded through `entry.server.tsx` — that trades the
build-time define for request state, so it needs `AsyncLocalStorage` or strict sequencing.
- Verify RTL locales (`ar`, `fa-IR`) in a browser — they exercise the antd direction path that
+ Verify RTL locales (`ar`, `fa-IR`) in a browser — they exercise the `<html dir>` path that
no LTR document touches.
- **The prerender list is loaded by plain Node** (`react-router.config.ts`), so it cannot import
anything alias-resolved and has to be a literal array. Guard it against the dictionaries on
@@ -353,10 +351,10 @@ RR v8 gotchas (docs/templates still say v7):
## 4. SEO
One shared builder (`app/lib/seo.ts` → `buildPageMeta`): title, description, robots,
-og:title/description/type/site\_name/locale (underscore form)/image(+alt), twitter card set.
+og:title/description/type/site_name/locale (underscore form)/image(+alt), twitter card set.
Rules: leaf `meta` **fully replaces** root meta — every leaf returns the whole set;
`og:image` must be an **absolute URL** (reuse landing's `https://lobehub.com/assets/cao-og.webp`);
-dynamic title/description come from the route loader (subject title · BRANDING\_NAME,
+dynamic title/description come from the route loader (subject title · BRANDING_NAME,
requirement text truncated \~200 chars).
## 5. Gateway Routing (torii, `../lobehub-gateway`)
@@ -372,7 +370,7 @@ To add a micro app:
Leave `/trpc` unruled: it falls to `default` (app) so browser API calls stay same-origin
authenticated. `.data` suffix is normalized before matching.
4. Validate: `bun run test` in the gateway repo (invariant suite reads the mirror).
-5. Staging: `bun scripts/torii.ts push --env staging --expect <fp>` (needs TORII\_ACCESS\_\*),
+5. Staging: `bun scripts/torii.ts push --env staging --expect <fp>` (needs TORII_ACCESS\_\*),
or poke staging KV directly (`wrangler kv key put --namespace-id <staging CONFIG ns>`) —
README-sanctioned. Prod writes only via the Toriiban (鳥居番) admin **Promote** button:
`torii.ts promote` prints the exact delta and refuses to write, and
diff --git a/.cursor/docs/createStaticStyles_migration_guide.md b/.cursor/docs/createStaticStyles_migration_guide.md
deleted file mode 100644
index 0cff4438eee..00000000000
--- a/.cursor/docs/createStaticStyles_migration_guide.md
+++ /dev/null
@@ -1,959 +0,0 @@
-# createStaticStyles 迁移指南
-
-## 📖 概述
-
-`createStaticStyles` 是 `antd-style` 提供的静态样式创建函数,相比 `createStyles`(hook 方案)具有零运行时开销的优势。样式在模块加载时计算一次,而不是每次组件渲染时计算。
-
-## 🎯 适用场景
-
-### ✅ 可以优化的场景
-
-1. **纯静态样式**:不依赖运行时动态值
-2. **使用标准 token**:所有 token 都在 `cssVar.json` 中有对应项
-3. **简单的条件逻辑**:可以通过静态样式拆分处理
-
-### ❌ 无法优化的场景
-
-1. **JS 计算函数**:`readableColor()`, `chroma()`, `mix()`, `calc()` 中使用 token 数值
-2. **复杂的动态 props**:需要运行时计算的复杂逻辑
-3. **动态 prefixCls**:需要运行时传入的类名前缀(但可以硬编码为 `'ant'`)
-
-## 🔄 基本转换步骤
-
-### 1. 样式文件转换
-
-**之前(createStyles):**
-
-```typescript
-import { createStyles } from 'antd-style';
-
-export const useStyles = createStyles(({ css, token }) => {
- return {
- root: css`
- color: ${token.colorText};
- font-size: ${token.fontSize}px;
- `,
- };
-});
-```
-
-**之后(createStaticStyles):**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-
-export const styles = createStaticStyles(({ css, cssVar }) => {
- return {
- root: css`
- color: ${cssVar.colorText};
- font-size: ${cssVar.fontSize};
- `,
- };
-});
-```
-
-### 2. 组件文件转换
-
-**之前:**
-
-```typescript
-import { useStyles } from './style';
-
-const Component = () => {
- const { styles, cx } = useStyles();
- return <div className={cx(styles.root, className)} />;
-};
-```
-
-**之后:**
-
-```typescript
-import { cx } from 'antd-style';
-import { styles } from './style';
-
-const Component = () => {
- return <div className={cx(styles.root, className)} />;
-};
-```
-
-## 🛠️ 常见场景处理
-
-### 场景 1: Token 转换
-
-**规则:**
-
-- `token.xxx` → `cssVar.xxx`
-- 注意:`cssVar.fontSize` 已经包含 `px` 单位,不需要再加 `px`
-
-**示例:**
-
-```typescript
-// ❌ 错误
-font-size: ${cssVar.fontSize}px; // cssVar.fontSize 已经是 "14px"
-
-// ✅ 正确
-font-size: ${cssVar.fontSize}; // 直接使用
-```
-
-**特殊情况 - calc ():**
-
-```typescript
-// ❌ 错误
-calc(${token.fontSize}px * 2.5)
-
-// ✅ 正确
-calc(${cssVar.fontSize} * 2.5) // cssVar.fontSize 已经包含单位
-```
-
-### 场景 2: 动态 Props → CSS 变量
-
-**适用:** 数值、字符串类型的 props
-
-**步骤:**
-
-1. 在样式文件中使用 CSS 变量(带默认值)
-2. 在组件中通过 `style` prop 设置 CSS 变量
-
-**示例:**
-
-**样式文件:**
-
-```typescript
-export const styles = createStaticStyles(({ css }) => {
- return {
- root: css`
- width: var(--component-size, 24px);
- height: var(--component-size, 24px);
- `,
- };
-});
-```
-
-**组件文件:**
-
-```typescript
-import { useMemo } from 'react';
-
-const Component = ({ size = 24, style, ...rest }) => {
- const cssVariables = useMemo<Record<string, string>>(
- () => ({
- '--component-size': `${size}px`,
- }),
- [size],
- );
-
- return (
- <div
- className={styles.root}
- style={{
- ...cssVariables,
- ...style,
- }}
- {...rest}
- />
- );
-};
-```
-
-**已优化示例:**
-
-- `Video`: `maxHeight`, `maxWidth`, `minHeight`, `minWidth`
-- `ScrollShadow`: `size`
-- `MaskShadow`: `size`
-- `ColorSwatches`: `size`
-- `Grid`: `rows`, `maxItemWidth`, `gap`
-- `Layout`: `headerHeight`
-- `Footer`: `contentMaxWidth`
-
-### 场景 3: 布尔值 Props → 静态样式拆分
-
-**适用:** 简单的布尔值 props(2-3 个)
-
-**步骤:**
-
-1. 创建所有可能的组合样式
-2. 运行时使用 `cx` 组合
-
-**示例:**
-
-**样式文件:**
-
-```typescript
-export const styles = createStaticStyles(({ css }) => {
- return {
- root: css`
- /* base styles */
- `,
- root_closable_true: css`
- /* closable styles */
- `,
- root_closable_false: css`
- /* no closable styles */
- `,
- root_hasTitle_true: css`
- /* has title styles */
- `,
- root_hasTitle_false: css`
- /* no title styles */
- `,
- };
-});
-```
-
-**组件文件:**
-
-```typescript
-const Component = ({ closable, hasTitle }) => {
- const className = cx(
- styles.root,
- styles[`root_closable_${!!closable}`],
- styles[`root_hasTitle_${!!hasTitle}`],
- );
- return <div className={className} />;
-};
-```
-
-**已优化示例:**
-
-- `Alert`: `closable`, `hasTitle`, `showIcon` → 8 个组合(2×2×2)
-- `Image`: `alwaysShowActions` → 2 个样式
-- `StoryBook`: `noPadding` → 2 个样式
-
-### 场景 4: isDarkMode → 静态样式拆分
-
-**适用:** 依赖 `isDarkMode` 的条件样式
-
-**有两种处理方式:**
-
-#### 方式 A: 直接条件选择(简单场景)
-
-**步骤:**
-
-1. 创建 `Dark` 和 `Light` 两个静态样式
-2. 运行时根据 `theme.isDarkMode` 选择
-
-**示例:**
-
-**样式文件:**
-
-```typescript
-export const styles = createStaticStyles(({ css, cssVar }) => {
- return {
- rootDark: css`
- background: ${cssVar.colorFillTertiary};
- color: ${cssVar.colorTextLightSolid};
- `,
- rootLight: css`
- background: ${cssVar.colorFillQuaternary};
- color: ${cssVar.colorText};
- `,
- };
-});
-```
-
-**组件文件:**
-
-```typescript
-import { useThemeMode } from 'antd-style';
-
-const Component = () => {
- const { isDarkMode } = useThemeMode();
- return (
- <div
- className={cx(
- isDarkMode ? styles.rootDark : styles.rootLight
- )}
- />
- );
-};
-```
-
-#### 方式 B: 使用 cva 将 isDarkMode 作为 variant(推荐,适用于复杂场景)
-
-**步骤:**
-
-1. 创建 `Dark` 和 `Light` 两个静态样式
-2. 在 `cva` 中将 `isDarkMode` 作为 variant prop
-3. 运行时直接传入 `isDarkMode` 值
-
-**示例:**
-
-**样式文件:**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-import { cva } from 'class-variance-authority';
-
-export const styles = createStaticStyles(({ css, cssVar }) => {
- return {
- filledDark: css`
- background: ${cssVar.colorFillTertiary};
- color: ${cssVar.colorTextLightSolid};
- `,
- filledLight: css`
- background: ${cssVar.colorFillQuaternary};
- color: ${cssVar.colorText};
- `,
- outlined: css`
- border: 1px solid ${cssVar.colorBorder};
- `,
- root: css`
- /* base styles */
- `,
- };
-});
-
-export const variants = cva(styles.root, {
- defaultVariants: {
- isDarkMode: false,
- variant: 'filled',
- },
- variants: {
- isDarkMode: {
- false: null,
- true: null, // isDarkMode 本身不添加样式,通过 compoundVariants 组合
- },
- variant: {
- filled: null, // variant 本身不添加样式,通过 compoundVariants 组合
- outlined: styles.outlined,
- },
- },
- compoundVariants: [
- {
- class: styles.filledDark,
- isDarkMode: true,
- variant: 'filled',
- },
- {
- class: styles.filledLight,
- isDarkMode: false,
- variant: 'filled',
- },
- ],
-});
-```
-
-**组件文件:**
-
-```typescript
-import { useThemeMode } from 'antd-style';
-import { variants } from './style';
-
-const Component = ({ variant = 'filled' }) => {
- const { isDarkMode } = useThemeMode();
- return (
- <div
- className={variants({ isDarkMode, variant })}
- />
- );
-};
-```
-
-**优势:**
-
-- ✅ 不需要 `useMemo` 动态创建 variants
-- ✅ 更符合 `cva` 的设计理念
-- ✅ 代码更简洁,性能更好
-- ✅ 类型安全,IDE 自动补全
-
-**已优化示例:**
-
-- `TypewriterEffect`: `textDark` / `textLight`(方式 A)
-- `Collapse`: `filledDark` / `filledLight`(可优化为方式 B)
-- `Hotkey`: `inverseThemeDark` / `inverseThemeLight`(可优化为方式 B)
-- `GuideCard`: `filledDark` / `filledLight`(可优化为方式 B)
-- `GradientButton`: `buttonDark` / `buttonLight`(方式 A)
-
-### 场景 5: responsive → 静态 responsive
-
-**适用:** 使用响应式断点
-
-**步骤:**
-
-1. 导入静态 `responsive` from `antd-style`
-2. 使用 `responsive.sm` 替代 `responsive.mobile`
-3. 从 `createStyles` 参数中移除 `responsive`
-
-**示例:**
-
-**之前:**
-
-```typescript
-import { createStyles } from 'antd-style';
-
-export const useStyles = createStyles(({ css, responsive }) => ({
- root: css`
- ${responsive.mobile} {
- padding: 12px;
- }
- `,
-}));
-```
-
-**之后:**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-import { responsive } from 'antd-style';
-
-export const styles = createStaticStyles(({ css }) => ({
- root: css`
- ${responsive.sm} {
- padding: 12px;
- }
- `,
-}));
-```
-
-**注意:**
-
-- `responsive.mobile` → `responsive.sm`
-- 静态 `responsive` 提供:`xs`, `sm`, `md`, `lg`, `xl`, `xxl`
-
-**已优化示例:**
-
-- `Header`: `responsive.mobile` → `responsive.sm`
-- `FormModal`: `responsive.mobile` → `responsive.sm`
-- `Hero`: `responsive.mobile` → `responsive.sm`
-
-### 场景 6: stylish → lobeStaticStylish
-
-**适用:** 使用自定义 `stylish` 工具
-
-**步骤:**
-
-1. 导入 `lobeStaticStylish` from `@/styles`
-2. 替换 `stylish.xxx` → `lobeStaticStylish.xxx`
-
-**示例:**
-
-**之前:**
-
-```typescript
-import { createStyles } from 'antd-style';
-
-export const useStyles = createStyles(({ css, stylish }) => ({
- root: css`
- ${stylish.blur};
- ${stylish.variantFilled};
- `,
-}));
-```
-
-**之后:**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-
-import { lobeStaticStylish } from '@/styles';
-
-export const styles = createStaticStyles(({ css }) => ({
- root: css`
- ${lobeStaticStylish.blur};
- ${lobeStaticStylish.variantFilled};
- `,
-}));
-```
-
-**已优化示例:**
-
-- `Button`: `stylish.blur` → `lobeStaticStylish.blur`
-- `Hero`: `stylish.gradientAnimation` → `lobeStaticStylish.gradientAnimation`
-
-### 场景 7: prefixCls → 硬编码
-
-**适用:** 使用动态 `prefixCls` 参数
-
-**步骤:**
-
-1. 在文件顶部硬编码 `const prefixCls = 'ant'`
-2. 从 `createStyles` 参数中移除 `prefixCls`
-
-**示例:**
-
-**之前:**
-
-```typescript
-export const useStyles = createStyles(({ css }, prefixCls: string) => ({
- root: css`
- .${prefixCls}-button {
- /* styles */
- }
- `,
-}));
-```
-
-**之后:**
-
-```typescript
-const prefixCls = 'ant';
-
-export const styles = createStaticStyles(({ css }) => ({
- root: css`
- .${prefixCls}-button {
- /* styles */
- }
- `,
-}));
-```
-
-**已优化示例:**
-
-- `Alert`, `Collapse`, `FormModal`, `Image`, `Burger`, `DraggablePanel`, `DraggableSideNav`, `Toc`, `ColorSwatches`, `EmojiPicker`, `Form`, `awesome/Features`
-
-### 场景 8: readableColor () → Token 替换
-
-**适用:** 使用 `readableColor()` 计算对比色
-
-**规则:**
-
-- `readableColor(token.colorPrimary)` → `cssVar.colorTextLightSolid`(主色背景用白色文字)
-- `readableColor(token.colorTextQuaternary)` → `cssVar.colorText`(浅色背景用深色文字)
-
-**示例:**
-
-**之前:**
-
-```typescript
-import { readableColor } from 'polished';
-
-export const useStyles = createStyles(({ css, token }) => ({
- checked: css`
- background-color: ${token.colorPrimary};
- color: ${readableColor(token.colorPrimary)};
- `,
-}));
-```
-
-**之后:**
-
-```typescript
-export const styles = createStaticStyles(({ css, cssVar }) => ({
- checked: css`
- background-color: ${cssVar.colorPrimary};
- color: ${cssVar.colorTextLightSolid};
- `,
-}));
-```
-
-**已优化示例:**
-
-- `Checkbox`: `readableColor(token.colorPrimary)` → `cssVar.colorTextLightSolid`
-
-### 场景 9: rgba () → color-mix ()
-
-**适用:** 使用 `rgba()` 设置透明度
-
-**步骤:**
-
-1. 使用 CSS 原生的 `color-mix()` 函数
-2. 格式:`color-mix(in srgb, ${cssVar.xxx} alpha%, transparent)`
-
-**示例:**
-
-**之前:**
-
-```typescript
-import { rgba } from 'polished';
-
-export const useStyles = createStyles(({ css, token }) => ({
- root: css`
- background-color: ${rgba(token.colorBgLayout, 0.4)};
- `,
-}));
-```
-
-**之后:**
-
-```typescript
-export const styles = createStaticStyles(({ css, cssVar }) => ({
- root: css`
- background-color: color-mix(in srgb, ${cssVar.colorBgLayout} 40%, transparent);
- `,
-}));
-```
-
-**已优化示例:**
-
-- `Header`: `rgba(cssVar.colorBgLayout, 0.4)` → `color-mix(...)`
-- `FormModal`: `rgba(cssVar.colorBgContainer, 0)` → `color-mix(...)`
-
-### 场景 10: keyframes → css
-
-**适用:** 使用 `keyframes` 创建动画
-
-**步骤:**
-
-1. 在 `createStaticStyles` 外部定义 `keyframes`
-2. 在样式内部使用
-
-**示例:**
-
-**之前:**
-
-```typescript
-export const useStyles = createStyles(({ css, keyframes }) => {
- const spin = keyframes`
- from { transform: rotate(0deg); }
- to { transform: rotate(360deg); }
- `;
- return {
- icon: css`
- animation: ${spin} 1s linear infinite;
- `,
- };
-});
-```
-
-**之后:**
-
-```typescript
-import { keyframes } from 'antd-style';
-
-const spin = keyframes`
- from { transform: rotate(0deg); }
- to { transform: rotate(360deg); }
-`;
-
-export const styles = createStaticStyles(({ css }) => ({
- icon: css`
- animation: ${spin} 1s linear infinite;
- `,
-}));
-```
-
-**已优化示例:**
-
-- `Icon`: `keyframes` 动画
-- `Skeleton`: `keyframes` shimmer 动画
-
-## ⚠️ 反模式:避免使用 createVariants (isDarkMode)
-
-**不推荐的做法:**
-
-```typescript
-// ❌ 不推荐:在组件中动态创建 variants
-export const createVariants = (isDarkMode: boolean) =>
- cva(styles.root, {
- variants: {
- variant: {
- filled: isDarkMode ? styles.filledDark : styles.filledLight,
- },
- },
- });
-
-// 组件中
-const variants = useMemo(() => createVariants(isDarkMode), [isDarkMode]);
-```
-
-**推荐的做法:**
-
-将 `isDarkMode` 作为 `cva` 的 variant prop(见场景 4 方式 B),这样:
-
-- ✅ 不需要 `useMemo` 动态创建
-- ✅ 更符合 `cva` 的设计理念
-- ✅ 代码更简洁,性能更好
-- ✅ 类型安全,IDE 自动补全
-
-```typescript
-// ✅ 推荐:将 isDarkMode 作为 variant prop
-export const variants = cva(styles.root, {
- variants: {
- isDarkMode: {
- false: null,
- true: null,
- },
- variant: {
- filled: null,
- },
- },
- compoundVariants: [
- {
- class: styles.filledDark,
- isDarkMode: true,
- variant: 'filled',
- },
- {
- class: styles.filledLight,
- isDarkMode: false,
- variant: 'filled',
- },
- ],
-});
-
-// 组件中
-const { isDarkMode } = useThemeMode();
-const className = variants({ isDarkMode, variant: 'filled' });
-```
-
-## ⚠️ 无法优化的场景
-
-### 1. JS 计算函数
-
-**无法优化:**
-
-- `chroma()` - 颜色计算库
-- `readableColor()` - 需要运行时计算(但可以用 token 替代)
-- `mix()` - 颜色混合计算
-- `calc()` 中使用 token 数值进行复杂计算
-
-**示例:**
-
-```typescript
-// ❌ 无法优化
-const scale = chroma.bezier([token.colorText, backgroundColor]).scale().colors(6);
-```
-
-### 2. 复杂的动态 Props
-
-**无法优化:**
-
-- 需要复杂计算的 props
-- 对象 / 数组类型的 props
-- 函数类型的 props
-
-### 3. useTheme Hook
-
-**无法优化:**
-
-- 直接使用 `useTheme()` hook 获取运行时值
-- 例如:`awesome/Giscus/style.ts` 使用 `useTheme()` 获取主题值
-
-## 📋 迁移检查清单
-
-### 样式文件检查
-
-- [ ] `createStyles` → `createStaticStyles`
-- [ ] `token.xxx` → `cssVar.xxx`
-- [ ] 移除 `px` 后缀(`cssVar` 已包含单位)
-- [ ] `responsive.mobile` → `responsive.sm`(如果使用)
-- [ ] `stylish.xxx` → `lobeStaticStylish.xxx`(如果使用)
-- [ ] `rgba()` → `color-mix()`(如果使用)
-- [ ] `readableColor()` → token 替换(如果使用)
-- [ ] `prefixCls` 参数 → 硬编码 `const prefixCls = 'ant'`(如果使用)
-- [ ] `isDarkMode` → 静态样式拆分(如果使用)
-- [ ] 动态 props → CSS 变量(如果使用)
-
-### 组件文件检查
-
-- [ ] `useStyles()` → `import { styles } from './style'`
-- [ ] `import { cx } from 'antd-style'`(如果需要)
-- [ ] `import { useTheme } from 'antd-style'`(如果需要 `theme.isDarkMode`)
-- [ ] 动态 props → CSS 变量设置(如果使用)
-- [ ] `isDarkMode` 条件 → `theme.isDarkMode` 判断(如果使用)
-
-## 🎯 优化优先级
-
-### 高优先级(简单优化)
-
-1. ✅ 纯静态样式(无动态 props)
-2. ✅ `isDarkMode` 拆分
-3. ✅ `responsive.mobile` → `responsive.sm`
-4. ✅ `stylish` → `lobeStaticStylish`
-5. ✅ `readableColor()` → token 替换
-
-### 中优先级(需要转换)
-
-6. ✅ 简单的动态 props → CSS 变量(1-2 个)
-7. ✅ 布尔值 props → 静态样式拆分(2-3 个)
-
-### 低优先级(复杂优化)
-
-8. ⚠️ 多个动态 props → CSS 变量(3+ 个)
-9. ⚠️ 复杂的条件逻辑拆分
-
-## 📚 参考示例
-
-### 完整示例 1: 简单组件
-
-**样式文件:**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-
-export const styles = createStaticStyles(({ css, cssVar }) => ({
- root: css`
- padding: ${cssVar.padding};
- color: ${cssVar.colorText};
- border-radius: ${cssVar.borderRadius};
- `,
-}));
-```
-
-**组件文件:**
-
-```typescript
-import { cx } from 'antd-style';
-import { styles } from './style';
-
-const Component = ({ className }) => {
- return <div className={cx(styles.root, className)} />;
-};
-```
-
-### 完整示例 2: 带动态 Props
-
-**样式文件:**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-
-export const styles = createStaticStyles(({ css, cssVar }) => ({
- root: css`
- width: var(--component-size, 24px);
- height: var(--component-size, 24px);
- background: ${cssVar.colorBgContainer};
- `,
-}));
-```
-
-**组件文件:**
-
-```typescript
-import { cx } from 'antd-style';
-import { useMemo } from 'react';
-import { styles } from './style';
-
-const Component = ({ size = 24, className, style, ...rest }) => {
- const cssVariables = useMemo<Record<string, string>>(
- () => ({
- '--component-size': `${size}px`,
- }),
- [size],
- );
-
- return (
- <div
- className={cx(styles.root, className)}
- style={{
- ...cssVariables,
- ...style,
- }}
- {...rest}
- />
- );
-};
-```
-
-### 完整示例 3: 带 isDarkMode
-
-**样式文件:**
-
-```typescript
-import { createStaticStyles } from 'antd-style';
-
-export const styles = createStaticStyles(({ css, cssVar }) => ({
- rootDark: css`
- background: ${cssVar.colorFillTertiary};
- color: ${cssVar.colorTextLightSolid};
- `,
- rootLight: css`
- background: ${cssVar.colorFillQuaternary};
- color: ${cssVar.colorText};
- `,
-}));
-```
-
-**组件文件:**
-
-```typescript
-import { cx, useTheme } from 'antd-style';
-import { styles } from './style';
-
-const Component = ({ className }) => {
- const { theme } = useTheme();
- return (
- <div
- className={cx(
- theme.isDarkMode ? styles.rootDark : styles.rootLight,
- className
- )}
- />
- );
-};
-```
-
-## 🔍 验证步骤
-
-1. **类型检查:** `pnpm run type-check`
-2. **运行时测试:** 确保视觉效果一致
-3. **性能验证:** 检查样式计算是否在模块加载时完成
-
-## 📊 优化效果
-
-- ✅ **零运行时开销**:样式在模块加载时计算一次
-- ✅ **减少重新渲染**:组件不再依赖样式 hook
-- ✅ **更好的性能**:减少每次渲染的计算开销
-- ✅ **代码更简洁**:直接导入样式对象
-
-## 🔧 场景 11: useTheme () → useThemeMode () /cssVar
-
-**适用:** 组件中只使用 `theme.isDarkMode` 或其他 token 值
-
-**规则:**
-
-- 如果只使用 `theme.isDarkMode`,使用 `const { isDarkMode } = useThemeMode()` 替代
-- 如果使用其他 token(如 `theme.colorText`, `theme.borderRadius` 等),使用 `cssVar` 替代
-- `useThemeMode()` 比 `useTheme()` 更轻量,只返回 `isDarkMode` 值
-
-**示例:**
-
-**之前:**
-
-```typescript
-import { useTheme } from 'antd-style';
-
-const Component = () => {
- const theme = useTheme();
- return (
- <div className={theme.isDarkMode ? styles.dark : styles.light}>
- {theme.colorText}
- </div>
- );
-};
-```
-
-**之后:**
-
-```typescript
-import { cssVar, useThemeMode } from 'antd-style';
-
-const Component = () => {
- const { isDarkMode } = useThemeMode();
- return (
- <div className={isDarkMode ? styles.dark : styles.light}>
- {cssVar.colorText}
- </div>
- );
-};
-```
-
-**已优化示例:**
-
-- `AuroraBackground`, `Select`, `Input`, `Button`, `DatePicker`, `AutoComplete`, `InputNumber`, `InputPassword`, `InputOPT`, `TextArea`, `SpotlightCardItem`, `Spotlight`, `HotkeyInput` - 只使用 `isDarkMode` → `useThemeMode()`
-- `Image`, `GradientButton`, `Empty`, `FileTypeIcon`, `FormSubmitFooter`, `CodeEditor`, `LobeChat`, `Drawer`, `Modal`, `Avatar`, `AvatarGroup`, `SkeletonAvatar`, `SkeletonButton`, `SkeletonTags`, `Callout`, `LobeHub`, `GridBackground`, `FolderIcon`, `FileIcon`, `TokenTag`, `ChatSendButton`, `AvatarUploader` - 使用 token → `cssVar`
-
-**无法优化的文件(需要保留 `useTheme()`):**
-
-- `useMermaid`, `useStreamMermaid`, `useHighlight`, `useStreamHighlight` - 需要完整的 theme 对象传给第三方库
-- `Alert`, `Tag`, `Menu`, `EmojiPicker` - 需要实际颜色值传给颜色计算函数
-- `SkeletonTitle`, `SkeletonTags` - 需要数值进行数学运算
-- `GridShowcase`, `GridBackground/demos` - 需要实际颜色值传给 `rgba()` 函数
-- `CustomFonts` - 需要实际字符串值进行字符串拼接
-- `Giscus/style.ts` - 需要实际颜色值传给 `readableColor()` 和 `rgba()` 函数(其他 token 已优化为 `cssVar`)
-
-**注意事项:**
-
-- `useThemeMode()` 只返回 `{ isDarkMode }`,不返回完整的 theme 对象
-- `cssVar` 的值是字符串(如 `"14px"`, `"#ffffff"`),可以直接在 JSX 中使用
-- 如果 token 需要用于数值计算(如 `Math.round(theme.fontSize * 1.5)`),需要保留 `useTheme()`
-
-## 🎉 总结
-
-`createStaticStyles` 迁移是一个渐进式的优化过程。对于简单的静态样式,可以直接转换;对于复杂的动态场景,需要根据具体情况选择合适的优化策略。关键是要理解每种场景的处理方式,并灵活运用 CSS 变量、静态样式拆分等技术。
-
-### useTheme () 优化总结
-
-- ✅ **使用 `useThemeMode()`**:当组件只使用 `theme.isDarkMode` 时
-- ✅ **使用 `cssVar`**:当组件使用其他 token 值(颜色、尺寸等)时
-- ⚠️ **保留 `useTheme()`**:当 token 需要用于数值计算或传给第三方库时
diff --git a/.vscode/settings.json b/.vscode/settings.json
index e0feee21d43..3c4ea86d444 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -58,7 +58,7 @@
"stylelint.validate": [
"css",
"postcss",
- // make stylelint work with tsx antd-style css template string
+ // make stylelint work with tsx css template strings
"typescriptreact"
],
"vitest.disableWorkspaceWarning": true,
diff --git a/AGENTS.md b/AGENTS.md
index 9fefd4583e1..58347ec0b76 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -6,7 +6,7 @@ Guidelines for using AI coding agents in this opensource LobeHub repository.
- Next.js 16 + React 19 + TypeScript
- SPA inside Next.js with `react-router-dom`
-- `@lobehub/ui`, antd, and antd-style for UI implementation
+- `@lobehub/ui` for UI implementation (components plus `createStaticStyles` / `cssVar` for styles)
- react-i18next for i18n; zustand for state management
- SWR for data fetching; TRPC for type-safe backend
- Drizzle ORM with PostgreSQL; Vitest for testing
diff --git a/apps/auth/app/entry.server.tsx b/apps/auth/app/entry.server.tsx
index 26094123866..27381b7f08d 100644
--- a/apps/auth/app/entry.server.tsx
+++ b/apps/auth/app/entry.server.tsx
@@ -1,10 +1,7 @@
-import { createCache } from '@ant-design/cssinjs';
-import { buildInlineAntdStyle } from '@lobehub/ui/static-css/runtime';
-import { extractStaticStyle, StyleProvider } from 'antd-style';
+import { extractStaticStyle } from '@lobehub/ui';
import { renderToReadableStream } from 'react-dom/server';
import type { EntryContext } from 'react-router';
import { ServerRouter } from 'react-router';
-import { styleKeys } from 'virtual:lobehub/antd-static-css';
export default async function handleRequest(
request: Request,
@@ -13,12 +10,9 @@ export default async function handleRequest(
routerContext: EntryContext,
) {
let status = responseStatusCode;
- const antdCache = createCache();
const stream = await renderToReadableStream(
- <StyleProvider cache={antdCache} speedy={false}>
- <ServerRouter context={routerContext} url={request.url} />
- </StyleProvider>,
+ <ServerRouter context={routerContext} url={request.url} />,
{
onError(error) {
status = 500;
@@ -31,14 +25,13 @@ export default async function handleRequest(
await stream.allReady;
const html = await new Response(stream).text();
- const inlineAntd = buildInlineAntdStyle(antdCache, { styleKeys });
- const emotionTags = extractStaticStyle(html, { includeAntd: false })
+ const emotionTags = extractStaticStyle(html)
.map((item) => item.tag)
.join('');
responseHeaders.set('Content-Type', 'text/html; charset=utf-8');
- return new Response(html.replace('</head>', `${inlineAntd.html}${emotionTags}</head>`), {
+ return new Response(html.replace('</head>', `${emotionTags}</head>`), {
headers: responseHeaders,
status,
});
diff --git a/apps/auth/app/root.tsx b/apps/auth/app/root.tsx
index 0b8576673b9..2edf129ceaf 100644
--- a/apps/auth/app/root.tsx
+++ b/apps/auth/app/root.tsx
@@ -1,8 +1,6 @@
import type { CSSProperties, PropsWithChildren } from 'react';
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteError } from 'react-router';
import { isRtlLang } from 'rtl-detect';
-import { href as antdStaticCssHref } from 'virtual:lobehub/antd-static-css';
-import { href as themeVarsCssHref } from 'virtual:lobehub/theme-vars-css';
import NextThemeProvider from '@/layout/GlobalProvider/NextThemeProvider';
import { isChunkLoadError, notifyChunkError } from '@/utils/chunkError';
@@ -35,8 +33,6 @@ export const Layout = ({ children }: PropsWithChildren) => {
<Meta />
<Links />
<style dangerouslySetInnerHTML={{ __html: bodyBackground }} />
- <link href={themeVarsCssHref} rel="stylesheet" />
- <link href={antdStaticCssHref} rel="stylesheet" />
<script dangerouslySetInnerHTML={{ __html: SERVER_CONFIG_PLACEHOLDER }} />
<script
dangerouslySetInnerHTML={{ __html: serializeAuthResources(locale) }}
diff --git a/apps/auth/app/shell/AuthAppShell.tsx b/apps/auth/app/shell/AuthAppShell.tsx
index bac37d03769..3d5806261d9 100644
--- a/apps/auth/app/shell/AuthAppShell.tsx
+++ b/apps/auth/app/shell/AuthAppShell.tsx
@@ -1,4 +1,4 @@
-import { ModalHost } from '@lobehub/ui/base-ui';
+import { ModalHost } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
import BusinessAuthProvider from '@/business/client/BusinessAuthProvider';
diff --git a/apps/auth/app/shell/AuthLocaleProvider.tsx b/apps/auth/app/shell/AuthLocaleProvider.tsx
index 4c629571e51..6c0e81c3a24 100644
--- a/apps/auth/app/shell/AuthLocaleProvider.tsx
+++ b/apps/auth/app/shell/AuthLocaleProvider.tsx
@@ -1,6 +1,4 @@
-import { ConfigProvider } from 'antd';
-import { memo, type PropsWithChildren, useEffect, useState } from 'react';
-import { isRtlLang } from 'rtl-detect';
+import { memo, type PropsWithChildren, useState } from 'react';
import { readAuthResources } from './authResources';
import { createAuthI18n } from './createAuthI18n';
@@ -11,37 +9,12 @@ interface AuthLocaleProviderProps extends PropsWithChildren {
const AuthLocaleProvider = memo<AuthLocaleProviderProps>(({ children, locale }) => {
const [i18n] = useState(() => createAuthI18n({ locale, resources: readAuthResources(locale) }));
- const [lang, setLang] = useState(locale);
if (!i18n.instance.isInitialized) {
i18n.init();
}
- useEffect(() => {
- const handleLang = (lng: string) => {
- setLang((prev) => (prev === lng ? prev : lng));
- };
-
- i18n.instance.on('languageChanged', handleLang);
- return () => {
- i18n.instance.off('languageChanged', handleLang);
- };
- }, [i18n]);
-
- return (
- <ConfigProvider
- direction={isRtlLang(lang) ? 'rtl' : 'ltr'}
- theme={{
- components: {
- Button: {
- contentFontSizeSM: 12,
- },
- },
- }}
- >
- {children}
- </ConfigProvider>
- );
+ return children;
});
AuthLocaleProvider.displayName = 'AuthLocaleProvider';
diff --git a/apps/auth/app/virtual-modules.d.ts b/apps/auth/app/virtual-modules.d.ts
deleted file mode 100644
index 8083314a0f1..00000000000
--- a/apps/auth/app/virtual-modules.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-declare module 'virtual:lobehub/antd-static-css' {
- export const css: string;
- export const href: string;
- export const styleKeys: string[];
-}
-
-declare module 'virtual:lobehub/theme-vars-css' {
- export const css: string;
- export const href: string;
-}
diff --git a/apps/auth/package.json b/apps/auth/package.json
index ca44d786632..10e4a1779e7 100644
--- a/apps/auth/package.json
+++ b/apps/auth/package.json
@@ -11,7 +11,6 @@
"type-check": "tsc --noEmit"
},
"devDependencies": {
- "@ant-design/cssinjs": "^2.1.2",
"@react-router/dev": "^8.3.0",
"isbot": "^5.1.32",
"vite-tsconfig-paths": "^6.1.1",
diff --git a/apps/auth/scripts/build.mjs b/apps/auth/scripts/build.mjs
index b6c00ef186a..e7cbe9baa37 100644
--- a/apps/auth/scripts/build.mjs
+++ b/apps/auth/scripts/build.mjs
@@ -121,11 +121,6 @@ const main = async () => {
buildPass(DEFAULT_PRERENDER_LOCALE, 'build');
- // Emitted before the locale passes so their documents can be checked against
- // the complete asset set they reference.
- console.log('\n=== Static CSS ===');
- run('node', ['scripts/emit-static-css.mjs']);
-
for (const route of [...PRERENDER_ROUTES, '']) {
const document = path.join(defaultClient, prerenderOutputDir(route), 'index.html');
await assertDocument(
diff --git a/apps/auth/scripts/emit-static-css.mjs b/apps/auth/scripts/emit-static-css.mjs
deleted file mode 100644
index 7b6531beb86..00000000000
--- a/apps/auth/scripts/emit-static-css.mjs
+++ /dev/null
@@ -1,27 +0,0 @@
-import { mkdir, writeFile } from 'node:fs/promises';
-import { fileURLToPath } from 'node:url';
-
-import { antdStaticCssOptions, themeVarsCssOptions } from '../staticCssOptions.mjs';
-
-process.env.NODE_ENV = 'production';
-
-const { buildAntdStaticCss, buildThemeVarsCss } = await import('@lobehub/ui/static-css');
-
-const clientAssetsDir = new URL('../build/client/assets/', import.meta.url);
-await mkdir(clientAssetsDir, { recursive: true });
-
-const antd = buildAntdStaticCss(antdStaticCssOptions);
-const themeVars = buildThemeVarsCss(themeVarsCssOptions);
-
-for (const payload of [antd, themeVars]) {
- // href may be CDN-absolute; the local mirror always lives at assets/<basename>.
- const fileName = new URL(payload.href, 'https://placeholder.invalid').pathname.split('/').at(-1);
- const target = new URL(fileName, clientAssetsDir);
- await writeFile(target, payload.css, 'utf8');
- console.log(fileURLToPath(target));
-}
-
-if (antd.failedProbes.length > 0) {
- console.error('static-css failed probes:', antd.failedProbes);
- process.exit(1);
-}
diff --git a/apps/auth/staticCssOptions.mjs b/apps/auth/staticCssOptions.mjs
deleted file mode 100644
index 987e0985f9c..00000000000
--- a/apps/auth/staticCssOptions.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-const cdnBase = (process.env.VITE_CDN_BASE || '').replace(/\/+$/, '');
-
-export const antdStaticCssOptions = {
- hrefTemplate: (hash) => `${cdnBase}/assets/antd-${hash}.css`,
-};
-
-export const themeVarsCssOptions = {
- hrefTemplate: (hash) => `${cdnBase}/assets/theme-vars-${hash}.css`,
-};
diff --git a/apps/auth/vite.config.rr.mts b/apps/auth/vite.config.rr.mts
index 6a74038d50e..72004b47488 100644
--- a/apps/auth/vite.config.rr.mts
+++ b/apps/auth/vite.config.rr.mts
@@ -4,7 +4,6 @@ import path from 'node:path';
import dotenv from 'dotenv';
import tsconfigPaths from 'vite-tsconfig-paths';
-import { antdStaticCssOptions, themeVarsCssOptions } from './staticCssOptions.mjs';
import { createAuthRrConfig } from './vite.config.shared.mts';
const appRoot = path.resolve(import.meta.dirname);
@@ -30,5 +29,4 @@ export default createAuthRrConfig({
}),
]
: undefined,
- staticCss: { antd: antdStaticCssOptions, themeVars: themeVarsCssOptions },
});
diff --git a/apps/auth/vite.config.shared.mts b/apps/auth/vite.config.shared.mts
index 39a1f442520..ccadcf5174f 100644
--- a/apps/auth/vite.config.shared.mts
+++ b/apps/auth/vite.config.shared.mts
@@ -1,7 +1,6 @@
import { writeFileSync } from 'node:fs';
import path from 'node:path';
-import { lobeStaticCssPlugin } from '@lobehub/ui/static-css/vite';
import { reactRouter } from '@react-router/dev/vite';
import { defineConfig, type Plugin, type PluginOption } from 'vite';
@@ -15,10 +14,6 @@ import {
} from '../../plugins/vite/sharedRendererConfig';
import { DEFAULT_PRERENDER_LOCALE } from './app/lib/prerender';
-interface StaticCssOptions {
- hrefTemplate: (hash: string) => string;
-}
-
export interface AuthRrConfigOptions {
/** Directory holding `app/` — the submodule copy when a host repo overlays this app. */
appRoot: string;
@@ -30,15 +25,9 @@ export interface AuthRrConfigOptions {
* hosts pass their own resolver plugin here instead.
*/
resolvePlugins?: PluginOption[];
- staticCss: { antd: StaticCssOptions; themeVars: StaticCssOptions };
}
-export const createAuthRrConfig = ({
- appRoot,
- repoRoot,
- resolvePlugins,
- staticCss,
-}: AuthRrConfigOptions) => {
+export const createAuthRrConfig = ({ appRoot, repoRoot, resolvePlugins }: AuthRrConfigOptions) => {
const prerenderLocale = JSON.stringify(
process.env.AUTH_PRERENDER_LOCALE || DEFAULT_PRERENDER_LOCALE,
);
@@ -147,41 +136,6 @@ export const createAuthRrConfig = ({
},
});
- const staticCssDevServe = (): Plugin => {
- const cache = new Map<string, string>();
- const serve = async (kind: 'antd' | 'themeVars') => {
- if (!cache.has(kind)) {
- const { buildAntdStaticCss, buildThemeVarsCss } = await import('@lobehub/ui/static-css');
- cache.set(
- kind,
- kind === 'antd'
- ? buildAntdStaticCss(staticCss.antd).css
- : buildThemeVarsCss(staticCss.themeVars).css,
- );
- }
- return cache.get(kind)!;
- };
-
- return {
- apply: 'serve',
- configureServer(server) {
- server.middlewares.use(async (req, res, next) => {
- const url = req.url ?? '';
- const kind = /^\/assets\/antd-[a-f0-9]+\.css/.test(url)
- ? ('antd' as const)
- : /^\/assets\/theme-vars-[a-f0-9]+\.css/.test(url)
- ? ('themeVars' as const)
- : undefined;
- if (!kind) return next();
- res.setHeader('Content-Type', 'text/css; charset=utf-8');
- res.setHeader('Cache-Control', 'no-cache');
- res.end(await serve(kind));
- });
- },
- name: 'auth-static-css-dev-serve',
- };
- };
-
const proxyTarget = process.env.AUTH_API_PROXY || 'https://app.lobehub.com';
const backendProxy = Object.fromEntries(
['/api', '/oidc', '/trpc', '/webapi'].map((prefix) => [
@@ -210,8 +164,6 @@ export const createAuthRrConfig = ({
viteMarkdownImport(),
viteNodeModuleStub(),
vitePlatformResolve('web'),
- lobeStaticCssPlugin({ antd: staticCss.antd, themeVars: staticCss.themeVars }),
- staticCssDevServe(),
reactRouter(),
...lobeIconImports(),
...(resolvePlugins ?? []),
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 42a9d12f826..24860305bbc 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -53,7 +53,7 @@
"dependencies": {
"@auv-js/cli": "0.0.33",
"@auv-js/sdk": "0.0.33",
- "@lobehub/fluent-emoji": "^4.1.1",
+ "@lobehub/fluent-emoji": "^5.0.0",
"@lydell/node-pty": "1.2.0-beta.15",
"electron-log": "^5.4.4",
"electron-sparkle-updater": "0.5.3",
diff --git a/apps/desktop/pnpm-lock.yaml b/apps/desktop/pnpm-lock.yaml
index aa0edf84c9c..dc3ad05345d 100644
--- a/apps/desktop/pnpm-lock.yaml
+++ b/apps/desktop/pnpm-lock.yaml
@@ -22,8 +22,8 @@ importers:
specifier: 0.0.33
version: 0.0.33
'@lobehub/fluent-emoji':
- specifier: ^4.1.1
+ specifier: ^5.0.0
'@lydell/node-pty':
specifier: 1.2.0-beta.15
version: 1.2.0-beta.15
@@ -322,8 +322,8 @@ importers:
specifier: workspace:*
version: link:../business/const
'@lobehub/ui':
- specifier: ^5
+ specifier: ^6.0.4
query-string:
specifier: ^9.4.1
version: 9.5.1
@@ -530,8 +530,8 @@ importers:
specifier: workspace:*
version: link:../utils
'@lobehub/icons':
- specifier: ^5.15.0
+ specifier: ^6.0.0
'@modelcontextprotocol/sdk':
specifier: ^1.29.0
@@ -660,8 +660,8 @@ importers:
specifier: ^1.17.1
version: 1.17.1
'@lobehub/ui':
- specifier: ^5
+ specifier: ^6.0.4
ajv:
specifier: ^8.20.0
version: 8.20.0
@@ -887,41 +887,6 @@ packages:
resolution: {integrity: sha512-3NX/MpTdroi0aKz134A6RC2Gb2iXVECN4QaAXnvCIxxIm3C3AVB1mkUe8NaaiyvOpDfsrqWhYtj+Q6a62RrTsw==}
engines: {node: '>=18'}
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-foPVl0+SWIslGUtD/xBr1p9U4AKzPhNYEseXYRRo5QSzGACYZrQbe11AYJbYfAWnWSpGBx6JjBmSeugUsD9vqQ==}
-
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-5fTHQ158jJJ5dC/ECeyIdZUzKxE/mpEMRZxthyG1sw/AKRHKgJBg00Yi6ACVXgycdje7KahRNvNET/uBccwCnA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-2Hy8BnCEH31xPeSLbhhB2ctCPXE2ZnASdi+KbSeS79BNbUhL9hAEe20SkUk+BR8aKTmqb6+FKFruk7w8z0VoRQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-esKJegpW4nckh0o6kV3Tkb7NPIZYbPnnFxmQDUmL08ukXZAvV85TZBr70eGuke/CIArLaP6aw8lt9KILjnWuOw==}
- engines: {node: '>=8.x'}
-
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-PRomU725ABMf/lnQp5HiB7my1kjEbFY0D10N4lXYxK6TIB1gKjIVD5MRThpDaezLgw1D774J8eOeeDB0M6wHrQ==}
-
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-kDoUlppczVyCUTFthF6cHmPzMBYqNZQhu9j6EyIX/YIdM9j9CZNZoJUjzVw7/1v1VO8WwVMmPp15r/uwIAS0AQ==}
- engines: {node: '>=8'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@ant-design/[email protected]':
- resolution: {integrity: sha512-HMS9sRoEmZey8LsE/Yo6+klhlzU12PisjrVcydW3So7RdklyEd2qehyU6a7Yp+OYN72mgsYs3NFCyP2lCPFVqg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
'@anthropic-ai/[email protected]':
resolution: {integrity: sha512-TYeNVAaeALaTMSLy00n7tUnUCUZEE/rJb7krx3RH5XvWSf/7jGiSDSAvq6aFts1/J7KSefhlctLfA5fPEdmlMQ==}
cpu: [arm64]
@@ -1176,6 +1141,23 @@ packages:
date-fns:
optional: true
+ '@base-ui/[email protected]':
+ resolution: {integrity: sha512-S8CSYosASBKtpL8SWUfS78rFElfLijiCgA7oHOK22jCJ95FULsYyKwBNFOgudt0RA+/7yNc7F81bOvQnRgbBiQ==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ '@date-fns/tz': ^1.2.0
+ '@types/react': ^17 || ^18 || ^19
+ date-fns: ^4.0.0
+ react: 19.2.7
+ react-dom: 19.2.7
+ peerDependenciesMeta:
+ '@date-fns/tz':
+ optional: true
+ '@types/react':
+ optional: true
+ date-fns:
+ optional: true
+
'@base-ui/[email protected]':
resolution: {integrity: sha512-bO9fz25kKtPf+aZVyfQrC0PDmJdmVni31W2hCS5/Owb+inwdIL3XU26pCPRPlt4LSxZrBgLwubXQXQlKaFEZzw==}
peerDependencies:
@@ -1186,6 +1168,16 @@ packages:
'@types/react':
optional: true
+ '@base-ui/[email protected]':
+ resolution: {integrity: sha512-dYGGcEttjkYiMoa5nHm8vLaJ2UcuTWxo3BFAwOYXeRg/q7UVVvA6cacEIXEs3FgBfK1CGtW1ptElqs7wsx+t9A==}
+ peerDependencies:
+ '@types/react': ^17 || ^18 || ^19
+ react: 19.2.7
+ react-dom: 19.2.7
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@borewit/[email protected]':
resolution: {integrity: sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==}
@@ -1374,27 +1366,12 @@ packages:
'@emotion/[email protected]':
resolution: {integrity: sha512-wQdD0Xhkn3Qy2VNcIzbLP9MR8TafI0MJb7BEAXKp+w4+XqErksWR4OXomuDzPsN4InLdGhVe6EYcn2ZIUCpB8w==}
- '@emotion/[email protected]':
- resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==}
-
'@emotion/[email protected]':
resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==}
- '@emotion/[email protected]':
- resolution: {integrity: sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==}
-
'@emotion/[email protected]':
resolution: {integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==}
- '@emotion/[email protected]':
- resolution: {integrity: sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==}
- peerDependencies:
- '@types/react': '*'
- react: 19.2.7
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
'@emotion/[email protected]':
resolution: {integrity: sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==}
@@ -1404,14 +1381,6 @@ packages:
'@emotion/[email protected]':
resolution: {integrity: sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==}
- '@emotion/[email protected]':
- resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==}
-
- '@emotion/[email protected]':
- resolution: {integrity: sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==}
- peerDependencies:
- react: 19.2.7
-
'@emotion/[email protected]':
resolution: {integrity: sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==}
@@ -2080,12 +2049,6 @@ packages:
react: 19.2.7
react-dom: 19.2.7
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-CMqMy7OaXl9W0eq1Uy7L7i2Y/anPvHmFmESd2CEw0t5YvZhcVCeo4MBevAmswRllX7Y2dEidA4ozGPunLSTQpw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
'@floating-ui/[email protected]':
resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==}
@@ -2184,8 +2147,8 @@ packages:
'@lobehub/[email protected]':
resolution: {integrity: sha512-s9KnjaPjsEefaNv150G3aifvB+J3P4eEKG+epY9zDPS2BeB6+V2jELWqAZll+nkogMaVovjEE813z3V751QwGw==}
- '@lobehub/[email protected]':
- resolution: {integrity: sha512-UkkZzkHETucttukk8Gzj87WigbXgkwxkt68DP5IcIYGGo8tHnP3xoYn6YfwzPycuYRA7MUCh1DCHgiBAHmSASQ==}
+ '@lobehub/[email protected]':
+ resolution: {integrity: sha512-8nltdQfdjjmUFb4QLDEB1OQCbgwAG79JHXf1VTeCKolf/H6bBjieAXt+wpTHEn9gp3BUrA4A42p1kqecYb5/Cw==}
peerDependencies:
react: 19.2.7
react-dom: 19.2.7
@@ -2195,11 +2158,10 @@ packages:
engines: {node: '>=18'}
hasBin: true
- '@lobehub/[email protected]':
- resolution: {integrity: sha512-r1XGBz4IhCvw1nQkKvFFX4WHEPVgaGg0sk16n2Cvybv2TUs+JoVWbOB9KKVrCH5/IgoP40cdAuGPu8LwK+HJpg==}
+ '@lobehub/[email protected]':
+ resolution: {integrity: sha512-DlL5xpjU9FJJWs40pfHzvo8HPklxY/hxj3Z73VQrIv9DsfyirMVlE8EWTNqeItaqcJkgTk+Qg3ZuIOcLmgfCmA==}
peerDependencies:
- '@lobehub/ui': ^5.0.0
- antd: ^6.1.1
+ '@lobehub/ui': ^6.0.0
react: 19.2.7
react-dom: 19.2.7
@@ -2221,14 +2183,13 @@ packages:
react: 19.2.7
react-dom: 19.2.7
- '@lobehub/[email protected]':
- resolution: {integrity: sha512-OyS7HjLovYJ/oOuBtHQ4C/jszjzXR86XpSodIp3LZcbaPR8w7hRZrr9ue0XVbccpvrVk4mte2hjCWArdBSdaWw==}
+ '@lobehub/[email protected]':
+ resolution: {integrity: sha512-PNvaiYreUBsErabQ22g3afp8Gekp+rffhQ7t8oB2j6fhrMHWVZdhI0YwhX5SZeDs36YSeTf64KrQWwewcYGJCg==}
engines: {node: '>=22.22.0'}
peerDependencies:
- '@lobehub/fluent-emoji': ^4.0.0
- '@lobehub/icons': ^5.0.0
- antd: ^6.1.1
- motion: ^12.0.0
+ '@lobehub/fluent-emoji': ^5.0.0-beta.1
+ '@lobehub/icons': ^6.0.0-beta.1
+ motion: ^13.0.0 || ^14.0.0
react: 19.2.7
react-dom: 19.2.7
@@ -2280,12 +2241,6 @@ packages:
'@mdx-js/[email protected]':
resolution: {integrity: sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ==}
- '@mdx-js/[email protected]':
- resolution: {integrity: sha512-f++rKLQgUVYDAtECQ6fn/is15GkEH9+nZPM3MS0RcxVqoTfawHvDlSCH7JbMhAM6uJ32v3eXLvLmLvjGu7PTQw==}
- peerDependencies:
- '@types/react': '>=16'
- react: 19.2.7
-
'@modelcontextprotocol/[email protected]':
resolution: {integrity: sha512-UvTMgnNlnIBO/22ob2RcVGDlcvOslQs8T59+FTGdA0L27a39fdGF/EDETNtDVK4DZGpwomlsYpRdA8UXcVL/pw==}
engines: {node: '>=18'}
@@ -2491,20 +2446,25 @@ packages:
resolution: {integrity: sha512-ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==}
engines: {node: '>=14.18.0'}
- '@pierre/[email protected]':
- resolution: {integrity: sha512-pY/gmgWL03WnagqCyCnBi3QtRXUv4hCIY6FYqd5b1ZGaoI6a4Bsji8j+yRl2RfzPh/8Hf19rCl1GE80G6a1cLQ==}
+ '@pierre/[email protected]':
+ resolution: {integrity: sha512-QVxIWQEnNoko22k63maERzozd29+FtaUNpRrZiw603WMe5R1mFSED+jMtPkcVP3SDYS1DWg5K7sa7sJbr3xkNQ==}
peerDependencies:
react: 19.2.7
react-dom: 19.2.7
+ peerDependenciesMeta:
+ react:
+ optional: true
+ react-dom:
+ optional: true
- '@pierre/[email protected]':
- resolution: {integrity: sha512-GC2OWTAfTIIWWYhPCygwG8t2EtePQkRfON4MI2rwIkJylmiyqIttJID2dCL8sUD8cNdEvYkEyfEHHKMeCiDLoQ==}
+ '@pierre/[email protected]':
+ resolution: {integrity: sha512-yNDd9GYLQl1mEUJR8AneJ5e4ohLIHQd/wZLWr4fagt78vS2RwwZNW530vVgHqXFAyFVcFlRmGUD5ramXH46OXw==}
engines: {vscode: ^1.0.0}
- '@pierre/[email protected]':
- resolution: {integrity: sha512-QM1M4stXfnzfaE8I8YbjXSApV8c+2dBsXJj8eYg9WTpBR/cTmCZIcfGnN4p13iRrYu2Br/R/OJfEL7uR8Qjctw==}
+ '@pierre/[email protected]':
+ resolution: {integrity: sha512-WCI5Qd7iprDpISL9fBYOLe8RV53+b7mFNA3bPzl60/2CKCSrsKN8zEcep6Y3BAzvARlmca50zGjDodqPGiTUKA==}
peerDependencies:
- '@pierre/theme': ^1.1.0
+ '@pierre/theme': ^1.1.0 || ^2.0.0
'@shikijs/themes': ^3.0.0 || ^4.0.0
react: 19.2.7
react-dom: 19.2.7
@@ -2777,303 +2737,6 @@ packages:
'@radix-ui/[email protected]':
resolution: {integrity: sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==}
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-D3AGQwdyE58gmvx6waVSXJ80JGO+IY5L2O8HDnSOex7JNlzB3GuN/4hyHNTdhy2qtOhkpbIjmeAN3tL993wKbA==}
- engines: {node: '>=14.x'}
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-SffrA57aS9oub3VuI7ajPhJTPtaNxngSvtRhD40Rd8dwJ5vfWPSrVanWgeepdWFGBt7EHftIK5RUU0u3rCTwWw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-3CXGPpAR9gsPKeO2N78HAPOzU30UdemD6HGJoWVJOpa6WleaGB5kzZj3v6bdTZab31YuWgY/RxV3VKPctn0DwQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-ZRYSKSS39qsFx93p26bde7JUZJshsUBEQRlRXPuJYlAiNX0vyYlF5TsAm8JZN3LcF8XvKikdzPbgAtXSbkLUkw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-OHaCHLHszCegdXmIq2ZRIZBN/EtpT6Wm8SG/gpzLATHbVKc/avvuKi+zlOuk05FTWvgaMmpxAko44uRJ3M+2pg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-uiGpAlblCNlziHPwj4S4Iy/oemeuz/hR03mbiEjTCXwsqOIN3BOzsRMyDwpyO5Fm0vIEEJRUf9ZtbRLbhksuTA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-eDukNlz9vNszAGv7i3zKXdxEd3wgVmNxuJijYt8zvTh17QwTu8KK/bdURRd/lU4qaMzhO1HKKmMrwOnkaw0BvQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-1ib+fZEp6FBu+YvcIktm+nCQ+Q+qIpwpoaJH6opGr4ofh2QMq+qdr5DLC4oCf5qf3pcWX9lUWPYX652k4ini8Q==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-YTST/N6kpqpDz3IMuM/PSSZnrDpSOA6dgHv12gPA90ZTSLv2CoqkZ0+9NtwTY6BeO7dstPblSic2QJg7dSFy/g==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-1EXVsSKPZC6kGrIqxVck7kAWM6T65b6et/n5wIcyiaIa41VrDshD0nVLHoBDEIZr2ATQsOP6icb4XQkNFMLBAw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-BjeZCRQ+hw+4WAhvrw8rJvy5fckA2xpf/X2XQEOABUHvLTNB9inB98X3Mp54jYQ7g10DfWERQWHXeC4ylxp1Uw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-Gjcq7meZlCOiWN1t1xCC+7/s85humHVokTBI7PJgTfoyw5OWF74y3e6P8PHX104g9+b54jsodFIzyaj6p8LI9w==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-iFvTUT9W+JC/MSin2aGAk8NqsVlTzcExNC9DZariON1IWirju9NoNeEk47an4Q8iHazkoVI/y1LnDi88+CPcig==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-IXiMjV5s0rczLBlfh7G5nB4M3365mrEeedjwKtf5I+Ns3PqRUsebR2h5u8CeFarsVfLUPC2I5p0h09TNoOWyvQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-v5MBx8zDcqCT+uybJgKpcx3Fgrvj0m3u+A/15RlSBaMx12lLoJZTTYggC3pbYYfohcKujWWUyBz6O6Gp2vGiNA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-RjvzPsZkwVEg3xu+/jDDqDeUCBJAnWylONFlGeQgg5enlNAnlpybqhaMGE/UPEIvr6hL90PGhjFBguJqj0Qb2Q==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-xiuXcaCwyOWpD8a8scdExFl+bntNphAW8XeenL1ig2en0AAZY0Pcp4pC0dI22qJ+NvxKn9RoNIoRdqYU3BLH4w==}
- engines: {node: '>=8.x'}
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-Xh3IszxvlSv3/PLYFyC2UZi9LNB83yOnkB/LNmRzaypZLvkhqUIPS7MQpGZcCMWrNsXV2p6YTSWbSGvFpEle9A==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-AyarjoLU5YlxuValRi+w8JRH2Z84TBbFO2RoGWz9d8bSu0FqT8DtugH3xC3BV7mUwlmROFauyWuXFuq4IFbH+w==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-jQT5IVSWSHPTNFXQM2YQONPptjiKXZa4A4Kzwh2xkh3MkL31gRzyjb98N3QHBzLxsyGGJK1aNpn9j9aSO/O0dg==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-syfmgAABaHCnCDzPwHZ/2tuvIcpOO3jefYZMmfkN+pmo8HKTzsfhS57vxo4ksPdN0By+uWVJhJWNFozNBxi2eA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-CW1g7P9V8u+e8JQdUsl2RWg+GCsoee0mtJjZUCCxn/vb3jzOwDKm6hAdwddHCVBfWJ58eGUBZz3IvnU8rRktjw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-ZB1A+tzTQkgtR4flPrAMvxIAOelIIOOOsp22fU2Nad6PbZcJacnyGJUJqUH7ZS9mwxeUwurf1pLMKXrVsK1tlA==}
- engines: {node: '>=12.x'}
- peerDependencies:
- date-fns: '>= 2.x'
- dayjs: '>= 1.x'
- luxon: '>= 3.x'
- moment: '>= 2.x'
- react: 19.2.7
- react-dom: 19.2.7
- peerDependenciesMeta:
- date-fns:
- optional: true
- dayjs:
- optional: true
- luxon:
- optional: true
- moment:
- optional: true
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-ck+r1kW/JSv0wxPji3KN2ss9K6Z0qqwusw/mf/0JobXhZ8hC2ejZwCJObW/SvDi0uhA0VzmCnx0CaCci95tcmA==}
- engines: {node: '>=12.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-Q1nPLIvKr95el/q76yaBh5nv1hqCsWaHQb8U7vXEDMefEhHgM7n3CPoN+o4LHnTyANQHmMFgoS/naAT4Bhxuaw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-aAv3QhPP1xyafuTZOxub6a54pCeBnN3IwQkpETrBtthq4BL5IgxnCbuoBWPDpdLw1y1j6BgBUCAKV92+yX06Dw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-bkXxeBqDpl5IOC7yL7GcSYjQx9G8H+6kLYQnNZWeBYq2OYIv1MONd6mqKTjnnJYpV0cQIU2z3atdW0j1kttpTw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-t/Bb0W8uvL4PYKAB3YcChC+DlHh0Wt5kM7q/J+0qpVEUMLe7Hk5zuvc9km0hMnTFPSx5Z7Wu/fzCLN6erVLE8Q==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-NZlpKGSplOYlmF5ukUF1fCLr0ns5WfjNoqMlMkf4AHP0iu90wyiP7hn2qZKRHEuRlG4CvEEz/lF9qRiYnLTofQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-H+yQsl+qED9NilQ3g6zdpsMwUgwVjrcMTkNHAWRVU/MoNCYgTbDgU+MIMgZDK+rVdd2JUfI/MkysMcZZ0cyQKw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-LSzgWGYDgeCDgR4r1XlU29gbYws6HpLnvJd/uMhLeW/vQgxldeR+Wb4uzHDCHiYEbr1bnEHWdjkPxjJRHxuiig==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-/b9gHcvDGjTDWJZW7+1kKFvzs0jrEeQ8mFvvIgX+h7xNT0FsOYODJYKjyJR4fPbvMBCfCOEqaBK66HBxov5BQA==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-Jgi+EbOBquje/XNdofr7xbJQZPYJP+BlPfR0h+WN4zFkdtB2EWqEfvkXJWeipflwjWip0/17rNbxEAqs8hVHfw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-OWdS6DMmeWb7bJBGqPxYZpQbzBlBiXZUu2sqo6Ii7Sjs9GeK1IsrXrWk26SL2c6KEseabswdxrRj7WUm9LdECw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-3FXr+9ZII8tFLWuDWrgjRaxZd2mazkKJAGRFEfVmp4r1qnBglOlxQ78l54Td1aj6/iFaaEReKSAF2HToztU5uw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-VLq4BclU3LgRe46g2hTr2bdsM8tFYs7dVwpuD88rPNNg4lCGe8mBSS4FiRzYzS+ffnZ46y4SI8KYKo9K7qBnhw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-aui4r4TqmTzwaBgcQxHYep8kM8PTjZFufjokObpy35KfFeZ0k9ArquWFZqegQlH24P14t+F0qO0mGTgzlav1yg==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-a1Oi6EJhqAhdOxxupdJi6fP0RPHMKn5TcfkX2+llaQ4lF4nwfH7b6SCHcnsybaa2s+pk1yZYwVyeOYkDnEBRdg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-dGsJGDJQedA0BqqVgj3F8BvHXTSZijyhTXdbAdkcx8lynzZkty/CV3Z3LOm/fxz+BCfl3dfGiAQpb7Q5XNvl0Q==}
- engines: {node: '>=10.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-ORENF39PeXTzM+gQEshuk460Z8N4+6DkjpxlpE7Q3gYy1iBpLrx0FOJz3h62ryrJZ/3zCAUIkT1Pb/8hHWpb3A==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-mXlDN0IXdtV8Yqqm8195ECCyrbmfvvfKvwVvSlH0+qvKD6BUF8gRhEjSy0FOcD1+CcDRHgTiX99LoxfQrmh3Cw==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-GvYWSKeaJTOxxC5p6+nOSadzfvXA1h8C/iHFPFZX+szH3JUXrvs+DLiW8YUTBgvMh8m63mJeHrlYlJzAlg+pDA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-IXf2zBfZrbQGT+G8LxnoICDBGnMHIPIiq5HCRn3EDfKUx28x1rnbZBj46ULJf4sM8ImTG1SepqfNBdxZziqQ4w==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- '@rc-component/[email protected]':
- resolution: {integrity: sha512-igfe7NP9cOmDAhLy5z+Juz8fhjOMzMbF7TRoR/yqXIsbU6XZm4TU7ogcm5O553P0rLF6n0j5F6J+n15Izb1tqg==}
- engines: {node: '>=8.x'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
'@rolldown/[email protected]':
resolution: {integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -3626,6 +3289,9 @@ packages:
peerDependencies:
react: 19.2.7
+ '@stylexjs/[email protected]':
+ resolution: {integrity: sha512-JwNFm0MOYPqi+M4Ax5Un4ZxfZp4HEAX2sAWetZ88KALFcv1eEiHNJs75oO3V3U7RVWnzfkiM8i9eBowC3hqgUw==}
+
'@szmarczak/[email protected]':
resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
engines: {node: '>=10'}
@@ -3647,25 +3313,46 @@ packages:
zod:
optional: true
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-oj5O5DmiMWE+ih+SioX2ayC1kbK7d3fpLx0B75fPJr9nY3zU+hoW010yr64qXsY/9fyiLVE2bn5mGNV3owm8RQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-6T5Yop/793YI+H+5J8Hsyj4kCih9sl4t3ElLgKioW5hk3ocn+ZdSJ94tT7vL7uabxSugWYBZlOTMPzEw2puvQw==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-3dfx9MBP0aq5sXKteikG629X9oviptrQj0IFRk9YGcb+lB7Kv5x8S17oOSk1wUWgjQZ4xVJEMbKwOAODymocgA==}
+
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-y/xtNPNt/YeyoVxE/JCx+T7yjEzpezmbb+toK8DDD1P4m7Kzs5YR956+7OKexG3f8aXgC3rLZl7b1V+yNUSy5w==}
+ engines: {node: '>=18'}
+
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-oj5O5DmiMWE+ih+SioX2ayC1kbK7d3fpLx0B75fPJr9nY3zU+hoW010yr64qXsY/9fyiLVE2bn5mGNV3owm8RQ==}
+ peerDependencies:
+ react: 19.2.7
+ react-dom: 19.2.7
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-Rzp1Q4e0/nIgEjmISYR5HeEgLTNtrG+C7NFZf/AbCxPO5hg+zC3yNGwcoECigUk8SFzzvhXbd2rFdtP2ZiGrfA==}
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-E6Ya5TnY6EaGyZYIUqig/29Lr/gJSAubQkLJFqiWkUl5nRCr0Xr9hvJot+NiRTtG+TzGxHTiqUW3bnLtQxlHug==}
engines: {node: '>=20'}
peerDependencies:
react: 19.2.7
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-zmVdJO8DDqHphZ2H6SnTmgpVXcUy5DprB+clZF0ik679/d0MQ1UPEb2jtaX6F5VTAX4o3ozSLQaRCnybS2KYLA==}
+ peerDependencies:
+ react: 19.2.7
+ react-dom: 19.2.7
+
'@tanstack/[email protected]':
resolution: {integrity: sha512-sJ4mjol8uQsHV0gOJzzjwXfh2Fwm+Sz0+8deqiTm4jGbMdjzNSW+xZCFm0kUa870uhd8yi+DpKnZb5Kc4apa0Q==}
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-GwdDyGGr6UXAtubF14yAwcXvdaogqfsQgIk89Suebjxob/Rjq2xvfmXsjDF1rQmKmhHsJm9TOY7myxv3i6geJw==}
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-zQvlxSNi2qGM3L4jh85Z6hqMfdIR5qOfD9KHOU32nuKFJGN0RlJ7UvV1lsPb1fPVhpFYI0VP3jJGxLdLDpTKjQ==}
engines: {node: '>=20'}
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-ygZ3O99Il18dl0gG0q7sH78iSkb96F07G+xK9V83eCgV8NQbcNd7R+cgcJJMFO7llBoebd0A82sCCstQq2Vp6Q==}
+
'@tokenizer/[email protected]':
resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==}
engines: {node: '>=18'}
@@ -4030,12 +3717,6 @@ packages:
resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==}
engines: {node: '>= 8.0.0'}
- resolution: {integrity: sha512-gwlBIjvG6x9UDOxZJeJ9l4x/nlrfrHBEqmau0b2mqchwWKOwAGAMXVE7rJXy883y9hzUTn+xlHgJHcJrf98Haw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
peerDependencies:
@@ -4077,18 +3758,6 @@ packages:
resolution: {integrity: sha512-9k3v7xcHwgdO/DruxGIg4HtjvlAZlcnsX/mzqUb1t3NkYnl9kK2UJ+Gq0io+vQf7iT//BD/HB/NBkUR1LWxoeA==}
engines: {node: '>=14'}
- resolution: {integrity: sha512-vnPBGg0OVlSz90KRYZhxd89aZiOImTiesF+9MQqN8jsLGZUQTjbP04X9jTdEfsztKUuMbBWg/RmB/wHTakbtMQ==}
- peerDependencies:
- antd: '>=6.0.0'
- react: 19.2.7
-
- resolution: {integrity: sha512-biJB/aORNU2lvZZCX783S/g8atfE8akrEKRjRrsXVttoMtJbSHLf/Z29niv0blzt6H3BgKvhkQgHoUn5MgCx7w==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
@@ -4398,12 +4067,6 @@ packages:
resolution: {integrity: sha512-Ca8swihM+/4yKecYHY52kgJd300hi2lADU/a1RxNTRe+RJ9jvqQlESpbz9DnG9mowez8qwXHB8qYdIUw9e+F5Q==}
- resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
-
- resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==}
-
resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==}
engines: {node: '>=10'}
@@ -4491,9 +4154,6 @@ packages:
resolution: {integrity: sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==}
-
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
@@ -4608,6 +4268,9 @@ packages:
resolution: {integrity: sha512-8HFEBPKhOpJPEPu70wJJetjKta86Gw9+CCyCnB3sui2qQfOvRyqBy4IKLKKAwdMpWb2lHXWk9Wb4Z6AmaUT1Pg==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-COtn4EROW5dBGlE/4PiKnh6rZpAPxDeFLaEEwt4i10jpDMFt2EhQGS79QmmrO+iKCHv0PU/HrOWEhijFd1x99Q==}
+
resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==}
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
@@ -5372,15 +5035,12 @@ packages:
resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
engines: {node: '>= 0.6'}
- resolution: {integrity: sha512-1eaL3RvR/kAlbG7UYcpMptEyzPoENO0c6w7ZnB3/hh2vSAz/6uGAFn6fdoqTBguNstf3MsFhJHsD/0DHiclG+g==}
+ resolution: {integrity: sha512-cD2gfFujHt4r/+dZpcn5yziu7VRwQAQDakwIm/bICYXbafnpHCYokV+PnEXqErnSdv6Eh28a+SRF+f3ndGcMsQ==}
peerDependencies:
- '@emotion/is-prop-valid': '*'
react: 19.2.7
react-dom: 19.2.7
peerDependenciesMeta:
- '@emotion/is-prop-valid':
- optional: true
react:
optional: true
react-dom:
@@ -5638,9 +5298,6 @@ packages:
resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==}
- resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
-
resolution: {integrity: sha512-6E2QDAc9Ick9Sq77ZrGS/dk2WUYni91aufTw6LJKpV7w8kW5/GxVUc650FOADOmlwg3K+f7Pun6XlV+pYmW6gw==}
engines: {node: '>=16.9.0'}
@@ -5804,6 +5461,9 @@ packages:
resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==}
+ resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}
+
resolution: {integrity: sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==}
engines: {node: '>= 12'}
@@ -5880,9 +5540,6 @@ packages:
resolution: {integrity: sha512-li88H4QGRoNMX27jEmY8nR515oJVspAgC/WFMlhHfFV8RJ4QyGpHhXnwAe9gH5RIgKmdYRUmrOhQobcgEjIdSw==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-Tz/yndySvLAEXh+Uk8liFCxOwVH6YutuR74utvOcu7I9Di+DwM0mtdPVZNaVvvBUM2OXxne/NhOs1zAO7riusQ==}
-
resolution: {integrity: sha512-O2z4/kNgyjhQwVR1Wpkbfc19JIhggF97NZNCpWTnjH7kVcZMUrnut9XSN7txI7VdyIYk5ZatOq3zvSuWpU8hoA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -5972,9 +5629,6 @@ packages:
resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==}
-
resolution: {integrity: sha512-o6WSo/LUvY2uC4j7mO50a2ms7E/EAdbP0swigLV+nzHKTTaYnaLIWJ02VdXrsJX0vGedDESQnLsOekr94ryfjg==}
@@ -6027,9 +5681,6 @@ packages:
resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
- resolution: {integrity: sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==}
-
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
engines: {node: '>=6'}
@@ -6264,8 +5915,8 @@ packages:
peerDependencies:
react: 19.2.7
- resolution: {integrity: sha512-ApfaNM4/7jBrVopqLJ84Jz8TMQ1Q1JeZ1PmKh25aeS3E1FTVcMkSh1bEQB7dfzdIrwXRP8p3z4AJjTIHHb5IIA==}
+ resolution: {integrity: sha512-bXFZEucYhAzLD62Jse76AbTR6LiSLTn3Tqir2f1n8rZrWAdLodYy7jnRZSPIT89dRLk/IseMOUWG82wJtTyTTw==}
peerDependencies:
'@types/react': '*'
react: 19.2.7
@@ -6652,21 +6303,18 @@ packages:
resolution: {integrity: sha512-i/+ZKXMDf6aqYtBhuOcej71YSlbjT3wCO/4H1j8rPvxDJEifdwgg5MaFyu6iYAT8GBZJg2z0dkgK4YMzvURALQ==}
- resolution: {integrity: sha512-azKON4d9S65PEoFUiQTMTgPheEmzf2QngdRc50AKfJp9Q9mmcBVw22c8eMq9k8kxOFHdL7+WZY7N/5F/lwiDag==}
+ resolution: {integrity: sha512-TDdxnjAavh2Qm4lQCQI3uoTx9IR/Id2PI8JNEXW3AcwwV2yvhoimAX3/TnE+x82gDHfPq2yx/cJ58TTw5mMr0A==}
- resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==}
+ resolution: {integrity: sha512-3VvN5Uvf8B6qG+OfOui6Nht5EWp+vLuU3IqcAj7ItZGKqtmTjCebl5sGZF7/08gEHRnEl1AP/fIwbcEyVrcQGQ==}
- resolution: {integrity: sha512-BQgQbSa9Hn3/mtbib0MK53y6JSANa+YKUKlaYnWzAVDH424RYQ5LVpV3pNiWH00BA2z4ojsSdMzqT7g2FQwjuQ==}
+ resolution: {integrity: sha512-45cDwjZh0yOMZtnX3hIFPIPmzCWz/RC2bD/niWVIssGBjJlMmosbDILG9a+ZyoP635Z5xrbKvuo10spv9dBdnw==}
peerDependencies:
- '@emotion/is-prop-valid': '*'
react: 19.2.7
react-dom: 19.2.7
peerDependenciesMeta:
- '@emotion/is-prop-valid':
- optional: true
react:
optional: true
react-dom:
@@ -7260,72 +6908,6 @@ packages:
resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
engines: {node: '>= 0.10'}
- resolution: {integrity: sha512-SwoOByE39/3oIokDs/BnkqI+ltwirZbP8HZdq1/3SkPSBi7xDdvWHTp7cpNI9ullozkR6mwTWQi6/E/9huQVrA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-JBZ+xcb6kkex8XnBd4VHw1ZxjV6kmcwUumSHaIFdka2qzMCo7Klcy4sI6G0XtUpG/vtpislQCc+S9Bc+NLHYMg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-cZ3HTyyckPnNnUb9/DRqduqzLfrQRyi+CdHjdqgsyDpI3Ln5UX1kXnAhPBSJj9pVRzwRFgqkN7p9b6HBDjmu/Q==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-bKaEvB5tHebUURAEXw35LDcnRZLq3x1k7GxfAqBMzmpHkDGzjAtnUL8y4y5N15rIFIg5IJgwr211jInl3cipag==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-KXvaTbX+7ha8a/k+eg6SYRVERK0NddX8QX7a7AnRvUa/rEH0CNMlpcBzBkhI0wp2C8C4HlMoYl8TImSN+fuHKA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-ghHx6/6Dvp+fw8CJhDUHFHDJ84hJE3BXNCzSgLdmNiFErWSOaZNsihDAsKq9ByTALo/xkNIwtDFGIl6r+RPXBg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-Lm/v9h0LymeUYJf0x39OveU52InkdRXqnn2aYXfWmo8WdOonIKB2kfau+GF0fWq6jPgtdO9yMqveGcK6aIhJmg==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
hasBin: true
@@ -7336,8 +6918,8 @@ packages:
react: 19.2.7
react-dom: 19.2.7
- resolution: {integrity: sha512-yoh495J6JareHOY56Hyw8XmfuWW4YN8cSGN8lrX67/sCJsp4jiOdlDgPiWHykAfeocMVl7ZQ62DdNa2it2ae7g==}
+ resolution: {integrity: sha512-Vh0MhAfHkjuE23BNU8NVUDlQpG/d4V6R3mktXpHXpk/KQ4iK80qbb9pK4EO6kU7nWn3YFLoUZUawU1kJ/nJukg==}
peerDependencies:
react: 19.2.7
react-dom: 19.2.7
@@ -7353,12 +6935,6 @@ packages:
peerDependencies:
react: 19.2.7
- resolution: {integrity: sha512-pmqDx72EqhMGoJe/x42ZO2wJ9TIz7qJ5OPnFu6lVWWznEuJumlSjR+J0V4tNyDFhUo6dVvv56FeiTqN+arTgnw==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
resolution: {integrity: sha512-iBYHA1rbopIvtzokEX4QubO6qk5IF/x3BtKGu74rF2JkQDXnwC4uO/lHKpaw4PJIV6iIAYOlwLv2FpiGyqHNog==}
engines: {node: '>= 10.13'}
@@ -7374,9 +6950,6 @@ packages:
'@types/react':
optional: true
- resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==}
-
resolution: {integrity: sha512-aswgyWUnE25hmhzHTfKDmKzsaSE5DJ4LKaU/o6rQSXkDd/1Bh9TfAFQbHkf6fLy11HvlYkp+cDDarGdhmCDhoQ==}
peerDependencies:
@@ -7386,45 +6959,18 @@ packages:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
- resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
-
- resolution: {integrity: sha512-UpMYezM4v5/18F28aC66AEsjXIgE02kyEMH6yLdgLXu/UTfa1Ntwck/nNLrbqJsEXW7gPb0coNO9FQse9WTovA==}
-
resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==}
peerDependencies:
'@types/react': '>=18'
react: 19.2.7
- resolution: {integrity: sha512-MSZAfwFfdbEvwkKWP5EI5chuLYnNUxNS7vyS0i1Jp+wtd8J4Ga2ddzhaE68aMol2Z4vCnRM/oGOo1a3V75UPlw==}
- peerDependencies:
- react: 19.2.7
- peerDependenciesMeta:
- react:
- optional: true
-
resolution: {integrity: sha512-KetWRytFv1epdpJc3J4G75I4WrplZE5jOL7Yq0p34+OVOKF4Se7WrdIdVC45XsSSmUTlht2FM/fM1FZb1mfQeA==}
engines: {node: '>=0.10.0'}
peerDependencies:
react: 19.2.7
- resolution: {integrity: sha512-s/sIT3pGZnQ+57egijkTp9mizjIWrJz68Pq6yd+F/wniFY3IriML18dUXnQe/HP9uMiJ+9MAp44hljG99fZu6Q==}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
- resolution: {integrity: sha512-QSw1dvr6QGv5zHCUY7SEIY7EWRDbx1y6plylrWf2Nko9KOMW1MEoPC6oJ+Y/qOSeQjhvbkMV0m5bFF7pBxCH4A==}
- engines: {node: '>=8', npm: '>=5'}
- peerDependencies:
- react: 19.2.7
- react-dom: 19.2.7
-
resolution: {integrity: sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==}
engines: {node: '>=0.10.0'}
@@ -7526,9 +7072,6 @@ packages:
resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}
- resolution: {integrity: sha512-ByefQKFN184LeiGRCabfl7zUJsdlMYWEhiLX1gpmQ11yFg6xSuOTW7LVCv0oc1x+YvUMJW23NU36sJX2RWGgvg==}
-
resolution: {integrity: sha512-B9JqA5i0qZe0Nsf49q3OXyGvyXuZFDzAP2iOFLEumymuYJITVpiH1IgsTEwTpdptDmZlMDMWeDmSawdaJIGCXQ==}
@@ -7579,9 +7122,6 @@ packages:
resolution: {integrity: sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==}
- resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==}
-
resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==}
@@ -7694,13 +7234,6 @@ packages:
resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
- resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==}
-
resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
engines: {node: '>=4'}
@@ -7887,9 +7420,6 @@ packages:
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
- resolution: {integrity: sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==}
-
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
engines: {node: '>=8'}
@@ -7971,12 +7501,12 @@ packages:
engines: {node: '>=20.19.0'}
hasBin: true
+ resolution: {integrity: sha512-L0TR0NQb+X4/ktDEKmjWyp27gla+LUYi/by5k5SjKXf6/pvZP7wbwEB5J+tqxdFVPgzbsuz+d4RTScO/QZquBw==}
+
resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==}
- resolution: {integrity: sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==}
-
resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -8022,9 +7552,6 @@ packages:
resolution: {integrity: sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==}
engines: {node: ^14.18.0 || >=16.0.0}
- resolution: {integrity: sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA==}
-
resolution: {integrity: sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==}
engines: {node: '>=10.0.0'}
@@ -8063,10 +7590,6 @@ packages:
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
- resolution: {integrity: sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==}
- engines: {node: '>=12.22'}
-
resolution: {integrity: sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==}
@@ -8099,9 +7622,6 @@ packages:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
- resolution: {integrity: sha512-IcmH1xB5576MJc9qcfEC/m/nQCFt3fzMHz45sSlgJyTWjRbKW1HAkJpuf3DgE57YzIlZcwcBZA5ENQbBo4aLkg==}
-
resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
engines: {node: '>=0.6'}
@@ -8145,10 +7665,6 @@ packages:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
- resolution: {integrity: sha512-yF35FCoEOFBzOclSkMNEUbFQZuv89KEQ+5Xz03HrMSGUGB1+r+El+JiGOFwsP4p9RFNzwlrydYoTLvPOuICl9w==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-3wk73yBhZe/wX7REqSdivNQ84TDs1mJ+IlnzrrEREP70xlJ/AEIzqaI04l/TzMKVIdkTdC3CPaADn2Lk/0SkdA==}
engines: {node: '>=20.19.0'}
@@ -8177,9 +7693,6 @@ packages:
unplugin-unused:
optional: true
- resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
-
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
@@ -8412,11 +7925,6 @@ packages:
resolution: {integrity: sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- resolution: {integrity: sha512-DXgG0kkgJN45TcyoXL49vJnn55LehnrmoHc7MbKi+QDBvr8dsesqws8UlyIWGHMR+JXgxc1nvY+jDGMlycsUcw==}
- peerDependencies:
- react: 19.2.7
-
resolution: {integrity: sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==}
peerDependencies:
@@ -8467,8 +7975,8 @@ packages:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- resolution: {integrity: sha512-AbYcd+7Vk6HznogCw28yoT+am8wK67fMfaPjHIp3+CGhvSh31FOBuVm+eAN+p4y8azjEC8kC9O1AtmyKG6ithg==}
+ resolution: {integrity: sha512-hhtrEli6LkMzKXhqhuStnaU5DECVLjxwr/FbrGcnkId2gyKQJ/5E6LE/T2F4OzyghEOsOCl/g+0DyxJUmkah8Q==}
peerDependencies:
'@angular/common': '>=20.0.0'
'@angular/core': '>=20.0.0'
@@ -8842,52 +8350,6 @@ snapshots:
ansi-styles: 6.2.3
is-fullwidth-code-point: 5.1.0
- '@ant-design/[email protected]':
- dependencies:
- '@ant-design/fast-color': 3.0.1
-
- dependencies:
- '@ant-design/cssinjs': 2.1.2([email protected]([email protected]))([email protected])
- '@babel/runtime': 7.29.7
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@emotion/hash': 0.8.0
- '@emotion/unitless': 0.7.5
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- csstype: 3.2.3
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- stylis: 4.4.0
-
- '@ant-design/[email protected]': {}
-
- '@ant-design/[email protected]': {}
-
- dependencies:
- '@ant-design/colors': 8.0.1
- '@ant-design/icons-svg': 4.6.0
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- clsx: 2.1.1
- json2mq: 0.2.0
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- throttle-debounce: 5.0.2
-
'@anthropic-ai/[email protected]':
optional: true
@@ -9146,6 +8608,19 @@ snapshots:
'@types/react': 19.3.0
date-fns: 4.4.0
+ dependencies:
+ '@babel/runtime': 8.0.5
+ '@floating-ui/react-dom': 2.1.9([email protected]([email protected]))([email protected])
+ '@floating-ui/utils': 0.2.12
+ react: 19.2.7
+ react-dom: 19.2.7([email protected])
+ use-sync-external-store: 1.7.0([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+ date-fns: 4.4.0
+
dependencies:
'@babel/runtime': 7.29.7
@@ -9157,6 +8632,17 @@ snapshots:
optionalDependencies:
'@types/react': 19.3.0
+ dependencies:
+ '@babel/runtime': 8.0.5
+ '@floating-ui/utils': 0.2.12
+ react: 19.2.7
+ react-dom: 19.2.7([email protected])
+ reselect: 5.3.0
+ use-sync-external-store: 1.7.0([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+
'@borewit/[email protected]': {}
'@bufbuild/[email protected]': {}
@@ -9418,32 +8904,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@emotion/[email protected]': {}
-
'@emotion/[email protected]': {}
- '@emotion/[email protected]':
- dependencies:
- '@emotion/memoize': 0.9.0
-
'@emotion/[email protected]': {}
- dependencies:
- '@babel/runtime': 7.29.7
- '@emotion/babel-plugin': 11.13.5([email protected])
- '@emotion/cache': 11.14.0
- '@emotion/serialize': 1.3.3
- '@emotion/use-insertion-effect-with-fallbacks': 1.2.0([email protected])
- '@emotion/utils': 1.4.2
- '@emotion/weak-memoize': 0.4.0
- hoist-non-react-statics: 3.3.2
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
- transitivePeerDependencies:
- - supports-color
-
'@emotion/[email protected]':
dependencies:
'@emotion/hash': 0.9.2
@@ -9456,12 +8920,6 @@ snapshots:
'@emotion/[email protected]': {}
- '@emotion/[email protected]': {}
-
- dependencies:
- react: 19.2.7
-
'@emotion/[email protected]': {}
'@emotion/[email protected]': {}
@@ -9827,14 +9285,6 @@ snapshots:
react: 19.2.7
react-dom: 19.2.7([email protected])
- dependencies:
- '@floating-ui/react-dom': 2.1.9([email protected]([email protected]))([email protected])
- '@floating-ui/utils': 0.2.12
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- tabbable: 6.5.0
-
'@floating-ui/[email protected]': {}
@@ -9946,20 +9396,15 @@ snapshots:
'@lobehub/[email protected]': {}
dependencies:
'@lobehub/emojilib': 1.0.0
emoji-regex: 10.6.0
es-toolkit: 1.52.0
lucide-react: 0.562.0([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
url-join: 5.0.0
- transitivePeerDependencies:
- - '@types/react'
- - antd
- - supports-color
dependencies:
@@ -10006,19 +9451,14 @@ snapshots:
- ws
- zod
dependencies:
es-toolkit: 1.52.0
lucide-react: 0.469.0([email protected])
polished: 4.3.1
react: 19.2.7
react-dom: 19.2.7([email protected])
- transitivePeerDependencies:
- - '@types/react'
- - supports-color
dependencies:
@@ -10059,92 +9499,63 @@ snapshots:
- '@types/react'
- supports-color
dependencies:
- '@ant-design/cssinjs': 2.1.2([email protected]([email protected]))([email protected])
'@dnd-kit/utilities': 3.2.2([email protected])
'@emoji-mart/data': 1.2.1
'@emoji-mart/react': 1.1.1([email protected])([email protected])
- '@emotion/is-prop-valid': 1.4.0
- '@floating-ui/react': 0.27.20([email protected]([email protected]))([email protected])
+ '@emotion/css': 11.13.5([email protected])
+ '@emotion/serialize': 1.3.3
+ '@lobehub/fluent-emoji': 5.0.0([email protected]([email protected]))([email protected])
'@mdx-js/mdx': 3.1.1([email protected])
- '@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
'@shikijs/core': 4.5.0
'@shikijs/stream': 4.5.0([email protected])
'@shikijs/transformers': 4.5.0
'@splinetool/runtime': 1.12.98
- '@tanstack/react-table': 9.2.4([email protected]([email protected]))([email protected])
+ '@stylexjs/stylex': 0.19.1
+ '@tanstack/form-core': 1.33.5
+ '@tanstack/react-table': 9.3.1([email protected]([email protected]))([email protected])
+ '@tanstack/react-virtual': 3.14.19([email protected]([email protected]))([email protected])
beautiful-mermaid: 1.1.3
chroma-js: 3.2.0
- class-variance-authority: 0.7.1
clsx: 2.1.1
dayjs: 1.11.23
emoji-mart: 5.6.0
es-toolkit: 1.52.0
- fast-deep-equal: 3.1.3
hast-util-from-html-isomorphic: 2.0.0
- hast-util-to-jsx-runtime: 2.3.6([email protected])
hast-util-to-text: 4.0.2
- html-url-attributes: 3.0.1
- immer: 11.1.18
katex: 0.18.10
- lucide-react: 1.49.0(@types/[email protected])([email protected])
- marked: 18.0.14
- numeral: 2.0.6
- polished: 4.3.1
- query-string: 9.5.1
+ lucide-react: 1.57.0(@types/[email protected])([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
react-error-boundary: 6.1.6(@types/[email protected])([email protected])
react-markdown: 10.1.0(@types/[email protected])([email protected])([email protected])
- react-merge-refs: 3.0.2([email protected])
rehype-github-alerts: 4.2.0
rehype-raw: 7.0.0
rehype-sanitize: 6.0.0
remark-breaks: 4.0.0
remark-gfm: 4.0.1([email protected])
- remark-github: 12.0.0
remark-math: 6.0.0([email protected])
- remark-parse: 11.0.0([email protected])
- remark-rehype: 11.1.2
- remend: 1.4.0
shiki: 4.5.0
- swr: 2.5.1([email protected])
- ts-md5: 2.0.1
unified: 11.0.5
unist-util-visit-parents: 6.0.2
uqr: 0.1.3
- url-join: 5.0.0
- use-merge-value: 1.2.0([email protected])
- uuid: 14.0.2
vfile: 6.0.3
transitivePeerDependencies:
- '@angular/common'
- '@angular/core'
@@ -10247,12 +9658,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@types/mdx': 2.0.14
- '@types/react': 19.3.0
- react: 19.2.7
-
dependencies:
'@hono/node-server': 2.1.3([email protected])
@@ -10470,25 +9875,26 @@ snapshots:
tslib: 2.8.1
webcrypto-core: 1.9.2
dependencies:
- '@pierre/theme': 1.1.0
+ '@pierre/theme': 2.0.0
'@shikijs/transformers': 4.5.0
diff: 9.0.0
hast-util-to-html: 9.0.5
lru_map: 0.4.1
+ shiki: 4.5.0
+ optionalDependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
- shiki: 4.5.0
transitivePeerDependencies:
- '@shikijs/themes'
- '@pierre/[email protected]': {}
+ '@pierre/[email protected]': {}
optionalDependencies:
- '@pierre/theme': 1.1.0
+ '@pierre/theme': 2.0.0
'@shikijs/themes': 4.5.0
react: 19.2.7
react-dom: 19.2.7([email protected])
@@ -10580,497 +9986,128 @@ snapshots:
'@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
react: 19.2.7
optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@floating-ui/react-dom': 2.1.9([email protected]([email protected]))([email protected])
- '@radix-ui/react-arrow': 1.1.15(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
- '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-rect': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/rect': 1.1.3
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/primitive': 1.1.7
- '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-popper': 1.3.7(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-portal': 1.1.17(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-presence': 1.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/primitive': 1.1.7
- '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/rect': 1.1.3
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.3.0
-
- dependencies:
- '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.3.0
-
- '@radix-ui/[email protected]': {}
-
- '@rc-component/[email protected]':
- dependencies:
- '@babel/runtime': 7.29.7
-
- dependencies:
- '@rc-component/select': 1.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@ant-design/fast-color': 3.0.1
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/portal': 2.2.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/portal': 2.2.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/async-validator': 6.0.0
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/portal': 2.2.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/mini-decimal': 1.1.4
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/portal': 2.2.1([email protected]([email protected]))([email protected])
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- '@rc-component/virtual-list': 1.5.2([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/input': 1.3.1([email protected]([email protected]))([email protected])
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/overflow': 1.0.1([email protected]([email protected]))([email protected])
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- '@rc-component/[email protected]':
- dependencies:
- '@babel/runtime': 7.29.7
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/overflow': 1.0.1([email protected]([email protected]))([email protected])
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- date-fns: 4.4.0
- dayjs: 1.11.23
- luxon: 3.7.2
-
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 8.0.5
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/overflow': 1.0.1([email protected]([email protected]))([email protected])
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- '@rc-component/virtual-list': 1.5.2([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@floating-ui/react-dom': 2.1.9([email protected]([email protected]))([email protected])
+ '@radix-ui/react-arrow': 1.1.15(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.1.3
react: 19.2.7
react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/context': 2.0.2([email protected]([email protected]))([email protected])
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- '@rc-component/virtual-list': 1.5.2([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/dropdown': 1.0.3([email protected]([email protected]))([email protected])
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
react: 19.2.7
- react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/portal': 2.2.1([email protected]([email protected]))([email protected])
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-popper': 1.3.7(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-portal': 1.1.17(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-presence': 1.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.11(@types/[email protected])([email protected]([email protected]))([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/select': 1.10.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
react: 19.2.7
- react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- '@rc-component/virtual-list': 1.5.2([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/primitive': 1.1.7
+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
react: 19.2.7
- react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
- classnames: 2.5.1
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
react: 19.2.7
- react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/portal': 2.2.1([email protected]([email protected]))([email protected])
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
react: 19.2.7
- react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/rect': 1.1.3
react: 19.2.7
- react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- is-mobile: 5.0.0
+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])
react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-is: 19.3.0
+ optionalDependencies:
+ '@types/react': 19.3.0
dependencies:
- '@babel/runtime': 8.0.5
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected])([email protected]([email protected]))([email protected])
react: 19.2.7
react-dom: 19.2.7([email protected])
+ optionalDependencies:
+ '@types/react': 19.3.0
+
+ '@radix-ui/[email protected]': {}
'@rolldown/[email protected]':
optional: true
@@ -11469,6 +10506,12 @@ snapshots:
dependencies:
react: 19.2.7
+ '@stylexjs/[email protected]':
+ dependencies:
+ css-mediaquery: 0.1.2
+ invariant: 2.2.4
+ styleq: 0.2.1
+
'@szmarczak/[email protected]':
dependencies:
defer-to-connect: 2.0.1
@@ -11478,6 +10521,16 @@ snapshots:
typescript: 6.0.3
zod: 4.6.5
+ '@tanstack/[email protected]': {}
+
+ '@tanstack/[email protected]':
+ dependencies:
+ '@tanstack/devtools-event-client': 0.4.4
+ '@tanstack/pacer-lite': 0.1.1
+ '@tanstack/store': 0.11.2
+
+ '@tanstack/[email protected]': {}
+
dependencies:
'@tanstack/store': 0.11.2
@@ -11485,20 +10538,28 @@ snapshots:
react-dom: 19.2.7([email protected])
use-sync-external-store: 1.7.0([email protected])
dependencies:
'@tanstack/react-store': 0.11.2([email protected]([email protected]))([email protected])
- '@tanstack/table-core': 9.2.4
+ '@tanstack/table-core': 9.3.1
react: 19.2.7
transitivePeerDependencies:
- react-dom
+ dependencies:
+ '@tanstack/virtual-core': 3.19.4
+ react: 19.2.7
+ react-dom: 19.2.7([email protected])
+
'@tanstack/[email protected]': {}
- '@tanstack/[email protected]':
+ '@tanstack/[email protected]':
dependencies:
'@tanstack/store': 0.11.2
+ '@tanstack/[email protected]': {}
+
dependencies:
debug: 4.4.3([email protected])
@@ -11925,19 +10986,6 @@ snapshots:
dependencies:
humanize-ms: 1.2.1
- dependencies:
- '@babel/runtime': 7.29.7
- dayjs: 1.11.23
- js-cookie: 3.0.8
- lodash: 4.18.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-fast-compare: 3.2.2
- resize-observer-polyfill: 1.5.1
- screenfull: 5.2.0
- tslib: 2.8.1
-
optionalDependencies:
ajv: 8.20.0
@@ -11976,80 +11024,6 @@ snapshots:
- dependencies:
- '@ant-design/cssinjs': 2.1.2([email protected]([email protected]))([email protected])
- '@babel/runtime': 7.29.7
- '@emotion/cache': 11.14.0
- '@emotion/css': 11.13.5([email protected])
- '@emotion/react': 11.14.0(@types/[email protected])([email protected])([email protected])
- '@emotion/serialize': 1.3.3
- '@emotion/utils': 1.4.2
- react: 19.2.7
- use-merge-value: 1.2.0([email protected])
- transitivePeerDependencies:
- - '@types/react'
- - react-dom
- - supports-color
-
- dependencies:
- '@ant-design/colors': 8.0.1
- '@ant-design/cssinjs': 2.1.2([email protected]([email protected]))([email protected])
- '@ant-design/cssinjs-utils': 2.1.2([email protected]([email protected]))([email protected])
- '@ant-design/fast-color': 3.0.1
- '@ant-design/react-slick': 2.0.0([email protected]([email protected]))([email protected])
- '@babel/runtime': 7.29.7
- '@rc-component/cascader': 1.22.0([email protected]([email protected]))([email protected])
- '@rc-component/checkbox': 2.0.0([email protected]([email protected]))([email protected])
- '@rc-component/collapse': 1.2.0([email protected]([email protected]))([email protected])
- '@rc-component/color-picker': 3.1.1([email protected]([email protected]))([email protected])
- '@rc-component/dialog': 1.10.0([email protected]([email protected]))([email protected])
- '@rc-component/drawer': 1.4.2([email protected]([email protected]))([email protected])
- '@rc-component/dropdown': 1.0.3([email protected]([email protected]))([email protected])
- '@rc-component/image': 1.10.0([email protected]([email protected]))([email protected])
- '@rc-component/input': 1.3.1([email protected]([email protected]))([email protected])
- '@rc-component/input-number': 1.6.2([email protected]([email protected]))([email protected])
- '@rc-component/listy': 1.2.3([email protected]([email protected]))([email protected])
- '@rc-component/mentions': 1.12.0([email protected]([email protected]))([email protected])
- '@rc-component/motion': 1.3.3([email protected]([email protected]))([email protected])
- '@rc-component/mutate-observer': 2.0.1([email protected]([email protected]))([email protected])
- '@rc-component/notification': 2.0.9([email protected]([email protected]))([email protected])
- '@rc-component/pagination': 1.4.0([email protected]([email protected]))([email protected])
- '@rc-component/progress': 1.0.3([email protected]([email protected]))([email protected])
- '@rc-component/qrcode': 2.0.0([email protected]([email protected]))([email protected])
- '@rc-component/resize-observer': 1.1.2([email protected]([email protected]))([email protected])
- '@rc-component/segmented': 1.4.0([email protected]([email protected]))([email protected])
- '@rc-component/select': 1.10.1([email protected]([email protected]))([email protected])
- '@rc-component/slider': 1.1.1([email protected]([email protected]))([email protected])
- '@rc-component/steps': 1.2.3([email protected]([email protected]))([email protected])
- '@rc-component/switch': 1.0.3([email protected]([email protected]))([email protected])
- '@rc-component/table': 1.11.1([email protected]([email protected]))([email protected])
- '@rc-component/tabs': 1.13.0([email protected]([email protected]))([email protected])
- '@rc-component/tooltip': 1.5.2([email protected]([email protected]))([email protected])
- '@rc-component/tree-select': 1.16.1([email protected]([email protected]))([email protected])
- '@rc-component/trigger': 3.10.1([email protected]([email protected]))([email protected])
- '@rc-component/upload': 1.1.1([email protected]([email protected]))([email protected])
- '@rc-component/util': 1.13.0([email protected]([email protected]))([email protected])
- clsx: 2.1.1
- dayjs: 1.11.23
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- scroll-into-view-if-needed: 3.1.0
- throttle-debounce: 5.0.2
- transitivePeerDependencies:
- - date-fns
- - luxon
- - moment
-
@@ -12407,12 +11381,6 @@ snapshots:
- dependencies:
- clsx: 2.1.1
-
-
@@ -12478,8 +11446,6 @@ snapshots:
-
@@ -12598,6 +11564,8 @@ snapshots:
+
dependencies:
mdn-data: 2.27.1
@@ -13446,13 +12414,12 @@ snapshots:
dependencies:
- motion-dom: 12.43.0
- motion-utils: 12.39.0
+ motion-dom: 14.2.0
+ motion-utils: 14.1.1
tslib: 2.8.1
optionalDependencies:
- '@emotion/is-prop-valid': 1.4.0
react: 19.2.7
react-dom: 19.2.7([email protected])
@@ -13868,10 +12835,6 @@ snapshots:
property-information: 7.2.0
space-separated-tokens: 2.0.2
- dependencies:
- react-is: 16.13.1
-
@@ -13974,7 +12937,8 @@ snapshots:
+ optional: true
dependencies:
@@ -14044,6 +13008,10 @@ snapshots:
+ dependencies:
+ loose-envify: 1.4.0
+
@@ -14100,8 +13068,6 @@ snapshots:
global-directory: 4.0.1
is-path-inside: 4.0.0
-
@@ -14160,8 +13126,6 @@ snapshots:
-
@@ -14207,10 +13171,6 @@ snapshots:
optional: true
- dependencies:
- string-convert: 0.2.1
-
@@ -14424,7 +13384,7 @@ snapshots:
dependencies:
react: 19.2.7
dependencies:
react: 19.2.7
optionalDependencies:
@@ -15097,18 +14057,17 @@ snapshots:
dependencies:
color-name: 1.1.4
dependencies:
- motion-utils: 12.39.0
+ motion-utils: 14.1.1
dependencies:
tslib: 2.8.1
optionalDependencies:
- '@emotion/is-prop-valid': 1.4.0
react: 19.2.7
react-dom: 19.2.7([email protected])
@@ -15640,105 +14599,6 @@ snapshots:
iconv-lite: 0.7.3
unpipe: 1.0.0
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/portal': 1.1.2([email protected]([email protected]))([email protected])
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/mini-decimal': 1.1.4
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- '@rc-component/trigger': 2.3.1([email protected]([email protected]))([email protected])
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@babel/runtime': 7.29.7
- classnames: 2.5.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- resize-observer-polyfill: 1.5.1
-
- dependencies:
- '@babel/runtime': 7.29.7
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-is: 18.3.1
-
dependencies:
deep-extend: 0.6.0
@@ -15751,7 +14611,7 @@ snapshots:
react: 19.2.7
react-dom: 19.2.7([email protected])
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
@@ -15766,13 +14626,6 @@ snapshots:
react: 19.2.7
scheduler: 0.27.0
- dependencies:
- clsx: 2.1.1
- prop-types: 15.8.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
dependencies:
attr-accept: 2.2.5
@@ -15786,8 +14639,6 @@ snapshots:
optionalDependencies:
'@types/react': 19.3.0
-
dependencies:
react: 19.2.7
@@ -15795,10 +14646,6 @@ snapshots:
-
-
dependencies:
'@types/hast': 3.0.5
@@ -15817,28 +14664,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
- optionalDependencies:
- react: 19.2.7
-
dependencies:
react: 19.2.7
scheduler: 0.27.0
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- tslib: 2.6.2
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
@@ -16006,15 +14836,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@types/mdast': 4.0.4
- mdast-util-find-and-replace: 3.0.2
- mdast-util-to-string: 4.0.0
- to-vfile: 8.0.0
- unist-util-visit: 5.1.0
- vfile: 6.0.3
-
dependencies:
'@types/mdast': 4.0.4
@@ -16096,8 +14917,6 @@ snapshots:
-
@@ -16270,12 +15089,6 @@ snapshots:
-
- dependencies:
- compute-scroll-into-view: 3.1.1
-
dependencies:
extend-shallow: 2.0.1
@@ -16473,8 +15286,6 @@ snapshots:
-
dependencies:
emoji-regex: 8.0.0
@@ -16599,9 +15410,9 @@ snapshots:
- supports-color
- typescript
dependencies:
@@ -16650,8 +15461,6 @@ snapshots:
dependencies:
'@pkgr/core': 0.3.6
-
dependencies:
ajv: 8.20.0
@@ -16702,8 +15511,6 @@ snapshots:
dependencies:
any-promise: 1.3.0
-
dependencies:
semver: 5.7.2
@@ -16731,10 +15538,6 @@ snapshots:
dependencies:
is-number: 7.0.0
- dependencies:
- vfile: 6.0.3
-
@@ -16770,8 +15573,6 @@ snapshots:
-
dependencies:
ansis: 4.4.0
@@ -16799,8 +15600,6 @@ snapshots:
- synckit
- vue-tsc
-
@@ -17058,10 +15857,6 @@ snapshots:
- dependencies:
- react: 19.2.7
-
dependencies:
react: 19.2.7
@@ -17121,7 +15916,7 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
optionalDependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
diff --git a/apps/desktop/pnpm-workspace.yaml b/apps/desktop/pnpm-workspace.yaml
index 3247d3cc647..cf34ba5decf 100644
--- a/apps/desktop/pnpm-workspace.yaml
+++ b/apps/desktop/pnpm-workspace.yaml
@@ -75,3 +75,4 @@ minimumReleaseAgeExclude:
- '@auv-js/[email protected]'
- '@auv-js/[email protected]'
+ - '@lobehub/*'
diff --git a/apps/share/app/entry.server.tsx b/apps/share/app/entry.server.tsx
index d86af14eee1..803bbaab43d 100644
--- a/apps/share/app/entry.server.tsx
+++ b/apps/share/app/entry.server.tsx
@@ -1,10 +1,7 @@
-import { createCache } from '@ant-design/cssinjs';
-import { buildInlineAntdStyle } from '@lobehub/ui/static-css/runtime';
-import { extractStaticStyle, StyleProvider } from 'antd-style';
+import { extractStaticStyle } from '@lobehub/ui';
import { renderToReadableStream } from 'react-dom/server';
import type { EntryContext } from 'react-router';
import { ServerRouter } from 'react-router';
-import { styleKeys } from 'virtual:lobehub/antd-static-css';
export default async function handleRequest(
request: Request,
@@ -13,12 +10,9 @@ export default async function handleRequest(
routerContext: EntryContext,
) {
let status = responseStatusCode;
- const antdCache = createCache();
const stream = await renderToReadableStream(
- <StyleProvider cache={antdCache} speedy={false}>
- <ServerRouter context={routerContext} url={request.url} />
- </StyleProvider>,
+ <ServerRouter context={routerContext} url={request.url} />,
{
onError(error) {
status = 500;
@@ -30,15 +24,13 @@ export default async function handleRequest(
await stream.allReady;
const html = await new Response(stream).text();
- const inlineAntd = buildInlineAntdStyle(antdCache, { styleKeys });
- const emotionTags = extractStaticStyle(html, { includeAntd: false })
+ const emotionTags = extractStaticStyle(html)
.map((item) => item.tag)
.join('');
responseHeaders.set('Content-Type', 'text/html; charset=utf-8');
- responseHeaders.set('x-share-antd-uncovered', String(inlineAntd.uncovered.length));
- return new Response(html.replace('</head>', `${inlineAntd.html}${emotionTags}</head>`), {
+ return new Response(html.replace('</head>', `${emotionTags}</head>`), {
headers: responseHeaders,
status,
});
diff --git a/apps/share/app/root.tsx b/apps/share/app/root.tsx
index d2940efe340..a7e338d810b 100644
--- a/apps/share/app/root.tsx
+++ b/apps/share/app/root.tsx
@@ -11,8 +11,6 @@ import {
useRouteLoaderData,
} from 'react-router';
import { isRtlLang } from 'rtl-detect';
-import { href as antdStaticCssHref } from 'virtual:lobehub/antd-static-css';
-import { href as themeVarsCssHref } from 'virtual:lobehub/theme-vars-css';
import ErrorCapture, { type ErrorType } from '@/components/Error';
import NextThemeProvider from '@/layout/GlobalProvider/NextThemeProvider';
@@ -58,8 +56,6 @@ export const Layout = ({ children }: PropsWithChildren) => {
<Meta />
<Links />
<style dangerouslySetInnerHTML={{ __html: bodyBackground }} />
- <link href={themeVarsCssHref} rel="stylesheet" />
- <link href={antdStaticCssHref} rel="stylesheet" />
</head>
<body>
{children}
diff --git a/apps/share/app/virtual-modules.d.ts b/apps/share/app/virtual-modules.d.ts
index 2c1397cc896..4d6a0e24d84 100644
--- a/apps/share/app/virtual-modules.d.ts
+++ b/apps/share/app/virtual-modules.d.ts
@@ -1,14 +1,3 @@
-declare module 'virtual:lobehub/antd-static-css' {
- export const css: string;
- export const href: string;
- export const styleKeys: string[];
-}
-
-declare module 'virtual:lobehub/theme-vars-css' {
- export const css: string;
- export const href: string;
-}
-
declare module 'virtual:react-router/server-build' {
import type { ServerBuild } from 'react-router';
diff --git a/apps/share/package.json b/apps/share/package.json
index 735ad282559..7d12f3a4667 100644
--- a/apps/share/package.json
+++ b/apps/share/package.json
@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
- "build:rr": "react-router build -c vite.config.rr.mts && node scripts/emit-static-css.mjs",
+ "build:rr": "react-router build -c vite.config.rr.mts",
"deploy": "bun scripts/deploy.ts",
"deploy:rr": "wrangler deploy --dry-run",
"dev": "vite --port 3016",
@@ -14,7 +14,6 @@
"type-check": "tsc --noEmit"
},
"devDependencies": {
- "@ant-design/cssinjs": "^2.1.2",
"@cloudflare/vite-plugin": "^1.52.1",
"@codemirror/streamparser": "^6.0.0",
"@react-router/dev": "^8.3.0",
diff --git a/apps/share/scripts/emit-static-css.mjs b/apps/share/scripts/emit-static-css.mjs
deleted file mode 100644
index 7b6531beb86..00000000000
--- a/apps/share/scripts/emit-static-css.mjs
+++ /dev/null
@@ -1,27 +0,0 @@
-import { mkdir, writeFile } from 'node:fs/promises';
-import { fileURLToPath } from 'node:url';
-
-import { antdStaticCssOptions, themeVarsCssOptions } from '../staticCssOptions.mjs';
-
-process.env.NODE_ENV = 'production';
-
-const { buildAntdStaticCss, buildThemeVarsCss } = await import('@lobehub/ui/static-css');
-
-const clientAssetsDir = new URL('../build/client/assets/', import.meta.url);
-await mkdir(clientAssetsDir, { recursive: true });
-
-const antd = buildAntdStaticCss(antdStaticCssOptions);
-const themeVars = buildThemeVarsCss(themeVarsCssOptions);
-
-for (const payload of [antd, themeVars]) {
- // href may be CDN-absolute; the local mirror always lives at assets/<basename>.
- const fileName = new URL(payload.href, 'https://placeholder.invalid').pathname.split('/').at(-1);
- const target = new URL(fileName, clientAssetsDir);
- await writeFile(target, payload.css, 'utf8');
- console.log(fileURLToPath(target));
-}
-
-if (antd.failedProbes.length > 0) {
- console.error('static-css failed probes:', antd.failedProbes);
- process.exit(1);
-}
diff --git a/apps/share/src/features/artifact/SharedArtifactView.tsx b/apps/share/src/features/artifact/SharedArtifactView.tsx
index 2d9cc53ba70..c8d422900d4 100644
--- a/apps/share/src/features/artifact/SharedArtifactView.tsx
+++ b/apps/share/src/features/artifact/SharedArtifactView.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { useParams } from 'react-router';
import useSWR from 'swr';
diff --git a/apps/share/src/features/topic/ExplainTopic.tsx b/apps/share/src/features/topic/ExplainTopic.tsx
index b3084254234..6f3edcf1d3e 100644
--- a/apps/share/src/features/topic/ExplainTopic.tsx
+++ b/apps/share/src/features/topic/ExplainTopic.tsx
@@ -1,4 +1,4 @@
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, toast } from '@lobehub/ui';
import { Sparkles } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/share/src/features/topic/SharePortal.tsx b/apps/share/src/features/topic/SharePortal.tsx
index f969d38ca18..e9a43066093 100644
--- a/apps/share/src/features/topic/SharePortal.tsx
+++ b/apps/share/src/features/topic/SharePortal.tsx
@@ -1,7 +1,7 @@
'use client';
-import { DraggablePanel } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { DraggablePanel } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { CHAT_PORTAL_TOOL_UI_WIDTH } from '@/const/layoutTokens';
diff --git a/apps/share/src/features/topic/SharedMessageList.tsx b/apps/share/src/features/topic/SharedMessageList.tsx
index 173b6957ca4..7aa66d7a2b7 100644
--- a/apps/share/src/features/topic/SharedMessageList.tsx
+++ b/apps/share/src/features/topic/SharedMessageList.tsx
@@ -1,8 +1,7 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, type ReactNode, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/share/src/features/topic/TopicAvatar.tsx b/apps/share/src/features/topic/TopicAvatar.tsx
index 07f3b574013..36cf5052fec 100644
--- a/apps/share/src/features/topic/TopicAvatar.tsx
+++ b/apps/share/src/features/topic/TopicAvatar.tsx
@@ -1,4 +1,4 @@
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { DEFAULT_AVATAR, DEFAULT_INBOX_AVATAR } from '@/const/meta';
diff --git a/apps/share/src/shell/ShareAppShell.tsx b/apps/share/src/shell/ShareAppShell.tsx
index 4fe2cdbc591..911c54e2442 100644
--- a/apps/share/src/shell/ShareAppShell.tsx
+++ b/apps/share/src/shell/ShareAppShell.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ModalHost, ToastHost, TooltipGroup } from '@lobehub/ui/base-ui';
-import { StyleProvider } from 'antd-style';
+import { ModalHost, ToastHost, TooltipGroup } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
import { ServerConfigStoreProvider } from '@/store/serverConfig/Provider';
@@ -38,9 +37,7 @@ const ShareAppShell = memo<ShareAppShellProps>((props) => {
featureFlags={serverConfig?.featureFlags}
serverConfig={serverConfig?.config}
>
- <TooltipGroup layoutAnimation={false}>
- <StyleProvider speedy={import.meta.env.PROD}>{children}</StyleProvider>
- </TooltipGroup>
+ <TooltipGroup layoutAnimation={false}>{children}</TooltipGroup>
<ModalHost />
<ToastHost />
</ServerConfigStoreProvider>
diff --git a/apps/share/src/shell/ShareLayout.tsx b/apps/share/src/shell/ShareLayout.tsx
index 494c331977a..89a90410276 100644
--- a/apps/share/src/shell/ShareLayout.tsx
+++ b/apps/share/src/shell/ShareLayout.tsx
@@ -1,8 +1,8 @@
'use client';
import { copyToClipboard, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Text, toast } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { LinkIcon } from 'lucide-react';
import { type CSSProperties, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/share/src/shell/ShareLocale.tsx b/apps/share/src/shell/ShareLocale.tsx
index 0387dad3209..1d6a7d9df9f 100644
--- a/apps/share/src/shell/ShareLocale.tsx
+++ b/apps/share/src/shell/ShareLocale.tsx
@@ -1,13 +1,10 @@
'use client';
-import { ConfigProvider } from 'antd';
import dayjs from 'dayjs';
import { memo, type PropsWithChildren, useEffect, useState } from 'react';
-import { isRtlLang } from 'rtl-detect';
import type { DayjsLocaleGlobEntry } from '@/utils/dayjsLocale';
import { loadDayjsLocaleModule, normalizeDayjsLocale } from '@/utils/dayjsLocale';
-import { getAntdLocale } from '@/utils/locale';
import { createShareI18n, type ShareResources } from './createShareI18n';
@@ -47,31 +44,19 @@ interface ShareLocaleProps extends PropsWithChildren {
const ShareLocale = memo<ShareLocaleProps>(({ children, defaultLang, resources }) => {
const [i18n] = useState(() => createShareI18n(defaultLang, resources));
- const [lang, setLang] = useState(defaultLang ?? 'en-US');
- const [antdLocale, setAntdLocale] = useState<any>();
if (!i18n.instance.isInitialized) void i18n.init({ initAsync: !resources });
useEffect(() => {
- const applyLocale = async (nextLang: string) => {
- setLang(nextLang);
- const [nextAntdLocale] = await Promise.all([getAntdLocale(nextLang), updateDayjs(nextLang)]);
- setAntdLocale(nextAntdLocale);
- };
-
- void applyLocale(i18n.instance.language || defaultLang || 'en-US');
- i18n.instance.on('languageChanged', applyLocale);
+ void updateDayjs(i18n.instance.language || defaultLang || 'en-US');
+ i18n.instance.on('languageChanged', updateDayjs);
return () => {
- i18n.instance.off('languageChanged', applyLocale);
+ i18n.instance.off('languageChanged', updateDayjs);
};
}, [defaultLang, i18n]);
- return (
- <ConfigProvider direction={isRtlLang(lang) ? 'rtl' : 'ltr'} locale={antdLocale}>
- {children}
- </ConfigProvider>
- );
+ return children;
});
ShareLocale.displayName = 'ShareLocale';
diff --git a/apps/share/src/shell/ShareTheme.tsx b/apps/share/src/shell/ShareTheme.tsx
index 6071a314afe..e03d688f303 100644
--- a/apps/share/src/shell/ShareTheme.tsx
+++ b/apps/share/src/shell/ShareTheme.tsx
@@ -1,36 +1,26 @@
'use client';
-import 'antd/dist/reset.css';
+import '@lobehub/ui/theme.css';
+import '@lobehub/ui/global.css';
+import '@lobehub/ui/style.css';
import ConfigProvider from '@lobehub/ui/es/ConfigProvider/index';
-import ThemeProvider from '@lobehub/ui/es/ThemeProvider/index';
-import { App } from 'antd';
import { domMax, LazyMotion } from 'motion/react';
import * as m from 'motion/react-m';
import { memo, type PropsWithChildren } from 'react';
-import { useIsDark } from '@/hooks/useIsDark';
import Image from '@/libs/next/Image';
import Link from '@/libs/next/Link';
const ShareTheme = memo<PropsWithChildren>(({ children }) => {
- const isDark = useIsDark();
- const appearance = isDark ? 'dark' : 'light';
-
return (
<ConfigProvider config={{ aAs: Link, imgAs: Image, imgUnoptimized: true }} motion={m}>
- <ThemeProvider
- appearance={appearance}
+ <div
className={'share-layout'}
- defaultAppearance={appearance}
- defaultThemeMode={appearance}
style={{ height: '100%', minHeight: '100dvh', width: '100%' }}
- theme={{ cssVar: { key: 'lobe-vars' } }}
>
- <App style={{ height: '100%' }}>
- <LazyMotion features={domMax}>{children}</LazyMotion>
- </App>
- </ThemeProvider>
+ <LazyMotion features={domMax}>{children}</LazyMotion>
+ </div>
</ConfigProvider>
);
});
diff --git a/apps/share/staticCssOptions.mjs b/apps/share/staticCssOptions.mjs
deleted file mode 100644
index 987e0985f9c..00000000000
--- a/apps/share/staticCssOptions.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-const cdnBase = (process.env.VITE_CDN_BASE || '').replace(/\/+$/, '');
-
-export const antdStaticCssOptions = {
- hrefTemplate: (hash) => `${cdnBase}/assets/antd-${hash}.css`,
-};
-
-export const themeVarsCssOptions = {
- hrefTemplate: (hash) => `${cdnBase}/assets/theme-vars-${hash}.css`,
-};
diff --git a/apps/share/vite.config.rr.mts b/apps/share/vite.config.rr.mts
index 55662b56ac4..58de9f0e241 100644
--- a/apps/share/vite.config.rr.mts
+++ b/apps/share/vite.config.rr.mts
@@ -2,7 +2,6 @@ import path from 'node:path';
import tsconfigPaths from 'vite-tsconfig-paths';
-import { antdStaticCssOptions, themeVarsCssOptions } from './staticCssOptions.mjs';
import { createShareRrConfig } from './vite.config.shared.mts';
const appRoot = path.resolve(import.meta.dirname);
@@ -37,5 +36,4 @@ export default createShareRrConfig({
}),
]
: undefined,
- staticCss: { antd: antdStaticCssOptions, themeVars: themeVarsCssOptions },
});
diff --git a/apps/share/vite.config.shared.mts b/apps/share/vite.config.shared.mts
index f72583dce94..a8186c7ffb3 100644
--- a/apps/share/vite.config.shared.mts
+++ b/apps/share/vite.config.shared.mts
@@ -2,7 +2,6 @@ import { writeFileSync } from 'node:fs';
import path from 'node:path';
import { cloudflare } from '@cloudflare/vite-plugin';
-import { lobeStaticCssPlugin } from '@lobehub/ui/static-css/vite';
import { reactRouter } from '@react-router/dev/vite';
import { defineConfig, type Plugin, type PluginOption } from 'vite';
@@ -15,10 +14,6 @@ import {
sharedRendererDefine,
} from '../../plugins/vite/sharedRendererConfig';
-interface StaticCssOptions {
- hrefTemplate: (hash: string) => string;
-}
-
export interface ShareRrConfigOptions {
/** Directory holding `app/` and `src/` — the submodule copy when a host repo overlays this app. */
appRoot: string;
@@ -36,7 +31,6 @@ export interface ShareRrConfigOptions {
* hosts pass their own resolver plugin here instead.
*/
resolvePlugins?: PluginOption[];
- staticCss: { antd: StaticCssOptions; themeVars: StaticCssOptions };
}
const CLIENT_MODULE_RE = /\.client(?:\.[jt]sx?)?$/;
@@ -46,7 +40,6 @@ export const createShareRrConfig = ({
extraSsrStubs,
repoRoot,
resolvePlugins,
- staticCss,
}: ShareRrConfigOptions) => {
const define = sharedRendererDefine({ isElectron: false, isMobile: false });
const { 'process.env': _processEnvFallback, ...ssrDefine } = define;
@@ -163,41 +156,6 @@ export const createShareRrConfig = ({
},
});
- const staticCssDevServe = (): Plugin => {
- const cache = new Map<string, string>();
- const serve = async (kind: 'antd' | 'themeVars') => {
- if (!cache.has(kind)) {
- const { buildAntdStaticCss, buildThemeVarsCss } = await import('@lobehub/ui/static-css');
- cache.set(
- kind,
- kind === 'antd'
- ? buildAntdStaticCss(staticCss.antd).css
- : buildThemeVarsCss(staticCss.themeVars).css,
- );
- }
- return cache.get(kind)!;
- };
-
- return {
- apply: 'serve',
- configureServer(server) {
- server.middlewares.use(async (req, res, next) => {
- const url = req.url ?? '';
- const kind = /^\/assets\/antd-[a-f0-9]+\.css/.test(url)
- ? ('antd' as const)
- : /^\/assets\/theme-vars-[a-f0-9]+\.css/.test(url)
- ? ('themeVars' as const)
- : undefined;
- if (!kind) return next();
- res.setHeader('Content-Type', 'text/css; charset=utf-8');
- res.setHeader('Cache-Control', 'no-cache');
- res.end(await serve(kind));
- });
- },
- name: 'share-static-css-dev-serve',
- };
- };
-
const proxyTarget = process.env.SHARE_API_PROXY || 'https://app.lobehub.com';
const backendProxy = Object.fromEntries(
['/api', '/oidc', '/trpc', '/webapi'].map((prefix) => [
@@ -224,8 +182,6 @@ export const createShareRrConfig = ({
viteNodeModuleStub(),
vitePlatformResolve('web'),
cloudflare({ viteEnvironment: { name: 'ssr' } }),
- lobeStaticCssPlugin({ antd: staticCss.antd, themeVars: staticCss.themeVars }),
- staticCssDevServe(),
reactRouter(),
...lobeIconImports(),
...(resolvePlugins ?? []),
diff --git a/apps/workbench/app/entry.server.test.ts b/apps/workbench/app/entry.server.test.ts
index e74bb6e8a3e..e8fe69cbe48 100644
--- a/apps/workbench/app/entry.server.test.ts
+++ b/apps/workbench/app/entry.server.test.ts
@@ -6,8 +6,6 @@ import { describe, expect, it, vi } from 'vitest';
import handleRequest from './entry.server';
-vi.mock('virtual:lobehub/antd-static-css', () => ({ styleKeys: [] }));
-
vi.mock('react-router', () => ({
ServerRouter: () => {
const Report = lazy(async () => ({
diff --git a/apps/workbench/app/entry.server.tsx b/apps/workbench/app/entry.server.tsx
index e4096e1afb4..dba79d45619 100644
--- a/apps/workbench/app/entry.server.tsx
+++ b/apps/workbench/app/entry.server.tsx
@@ -1,10 +1,7 @@
-import { createCache } from '@ant-design/cssinjs';
-import { buildInlineAntdStyle } from '@lobehub/ui/static-css/runtime';
-import { extractStaticStyle, StyleProvider } from 'antd-style';
+import { extractStaticStyle } from '@lobehub/ui';
import { renderToReadableStream } from 'react-dom/server';
import type { EntryContext } from 'react-router';
import { ServerRouter } from 'react-router';
-import { styleKeys } from 'virtual:lobehub/antd-static-css';
export default async function handleRequest(
request: Request,
@@ -13,12 +10,9 @@ export default async function handleRequest(
routerContext: EntryContext,
) {
let status = responseStatusCode;
- const antdCache = createCache();
const stream = await renderToReadableStream(
- <StyleProvider cache={antdCache} speedy={false}>
- <ServerRouter context={routerContext} url={request.url} />
- </StyleProvider>,
+ <ServerRouter context={routerContext} url={request.url} />,
{
// This response is fully buffered. Keep completed Suspense content inline
// instead of sending a fallback and a hidden segment that needs browser JS.
@@ -33,15 +27,13 @@ export default async function handleRequest(
await stream.allReady;
const html = await new Response(stream).text();
- const inlineAntd = buildInlineAntdStyle(antdCache, { styleKeys });
- const emotionTags = extractStaticStyle(html, { includeAntd: false })
+ const emotionTags = extractStaticStyle(html)
.map((item) => item.tag)
.join('');
responseHeaders.set('Content-Type', 'text/html; charset=utf-8');
- responseHeaders.set('x-workbench-antd-uncovered', String(inlineAntd.uncovered.length));
- return new Response(html.replace('</head>', `${inlineAntd.html}${emotionTags}</head>`), {
+ return new Response(html.replace('</head>', `${emotionTags}</head>`), {
headers: responseHeaders,
status,
});
diff --git a/apps/workbench/app/root.tsx b/apps/workbench/app/root.tsx
index 093f5c73eec..31c0b76322f 100644
--- a/apps/workbench/app/root.tsx
+++ b/apps/workbench/app/root.tsx
@@ -11,8 +11,6 @@ import {
useRouteLoaderData,
} from 'react-router';
import { isRtlLang } from 'rtl-detect';
-import { href as antdStaticCssHref } from 'virtual:lobehub/antd-static-css';
-import { href as themeVarsCssHref } from 'virtual:lobehub/theme-vars-css';
import ErrorCapture, { type ErrorType } from '@/components/Error';
import { resolveRequestLocale } from '@/locales/requestLocale';
@@ -57,7 +55,7 @@ export const Layout = ({ children }: PropsWithChildren) => {
data-theme={data?.embedConfig.theme}
dir={data?.dir ?? 'ltr'}
lang={data?.locale ?? 'en-US'}
- // Override ThemeProvider's scroll containment so an embedded report yields to its host page.
+ // Override global.css's scroll containment so an embedded report yields to its host page.
style={data?.embedConfig.embed ? { overscrollBehaviorY: 'auto' } : undefined}
>
<head>
@@ -66,8 +64,6 @@ export const Layout = ({ children }: PropsWithChildren) => {
<Meta />
<Links />
<style dangerouslySetInnerHTML={{ __html: bodyBackground }} />
- <link href={themeVarsCssHref} rel="stylesheet" />
- <link href={antdStaticCssHref} rel="stylesheet" />
</head>
<body>
{children}
diff --git a/apps/workbench/app/virtual-modules.d.ts b/apps/workbench/app/virtual-modules.d.ts
index 2c1397cc896..4d6a0e24d84 100644
--- a/apps/workbench/app/virtual-modules.d.ts
+++ b/apps/workbench/app/virtual-modules.d.ts
@@ -1,14 +1,3 @@
-declare module 'virtual:lobehub/antd-static-css' {
- export const css: string;
- export const href: string;
- export const styleKeys: string[];
-}
-
-declare module 'virtual:lobehub/theme-vars-css' {
- export const css: string;
- export const href: string;
-}
-
declare module 'virtual:react-router/server-build' {
import type { ServerBuild } from 'react-router';
diff --git a/apps/workbench/package.json b/apps/workbench/package.json
index 2eebb9fc5ec..b0c720cbf62 100644
--- a/apps/workbench/package.json
+++ b/apps/workbench/package.json
@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
- "build:rr": "react-router build -c vite.config.rr.mts && node scripts/emit-static-css.mjs",
+ "build:rr": "react-router build -c vite.config.rr.mts",
"deploy": "bun scripts/deploy.ts",
"deploy:rr": "wrangler deploy --dry-run",
"dev": "vite --port 3014",
@@ -14,7 +14,6 @@
"type-check": "tsc --noEmit"
},
"devDependencies": {
- "@ant-design/cssinjs": "^2.1.2",
"@cloudflare/vite-plugin": "^1.52.1",
"@react-router/dev": "^8.3.0",
"isbot": "^5.1.32",
diff --git a/apps/workbench/scripts/emit-static-css.mjs b/apps/workbench/scripts/emit-static-css.mjs
deleted file mode 100644
index 7b6531beb86..00000000000
--- a/apps/workbench/scripts/emit-static-css.mjs
+++ /dev/null
@@ -1,27 +0,0 @@
-import { mkdir, writeFile } from 'node:fs/promises';
-import { fileURLToPath } from 'node:url';
-
-import { antdStaticCssOptions, themeVarsCssOptions } from '../staticCssOptions.mjs';
-
-process.env.NODE_ENV = 'production';
-
-const { buildAntdStaticCss, buildThemeVarsCss } = await import('@lobehub/ui/static-css');
-
-const clientAssetsDir = new URL('../build/client/assets/', import.meta.url);
-await mkdir(clientAssetsDir, { recursive: true });
-
-const antd = buildAntdStaticCss(antdStaticCssOptions);
-const themeVars = buildThemeVarsCss(themeVarsCssOptions);
-
-for (const payload of [antd, themeVars]) {
- // href may be CDN-absolute; the local mirror always lives at assets/<basename>.
- const fileName = new URL(payload.href, 'https://placeholder.invalid').pathname.split('/').at(-1);
- const target = new URL(fileName, clientAssetsDir);
- await writeFile(target, payload.css, 'utf8');
- console.log(fileURLToPath(target));
-}
-
-if (antd.failedProbes.length > 0) {
- console.error('static-css failed probes:', antd.failedProbes);
- process.exit(1);
-}
diff --git a/apps/workbench/src/features/acceptance/AcceptanceDetail.tsx b/apps/workbench/src/features/acceptance/AcceptanceDetail.tsx
index b1dd378e41e..976bac70662 100644
--- a/apps/workbench/src/features/acceptance/AcceptanceDetail.tsx
+++ b/apps/workbench/src/features/acceptance/AcceptanceDetail.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/apps/workbench/src/features/acceptance/AcceptanceEmbed.tsx b/apps/workbench/src/features/acceptance/AcceptanceEmbed.tsx
index d85a497fbb0..35cb2544acc 100644
--- a/apps/workbench/src/features/acceptance/AcceptanceEmbed.tsx
+++ b/apps/workbench/src/features/acceptance/AcceptanceEmbed.tsx
@@ -1,5 +1,5 @@
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { useState } from 'react';
import { useParams } from 'react-router';
diff --git a/apps/workbench/src/features/verify/VerifyDetail.tsx b/apps/workbench/src/features/verify/VerifyDetail.tsx
index af6dfdd40b3..9eec935dfb2 100644
--- a/apps/workbench/src/features/verify/VerifyDetail.tsx
+++ b/apps/workbench/src/features/verify/VerifyDetail.tsx
@@ -2,7 +2,7 @@
import { Flexbox } from '@lobehub/ui/es/Flex/index';
import Text from '@lobehub/ui/es/Text/index';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/apps/workbench/src/features/verify/VerifyList.tsx b/apps/workbench/src/features/verify/VerifyList.tsx
index c7cb92602c5..9c256959feb 100644
--- a/apps/workbench/src/features/verify/VerifyList.tsx
+++ b/apps/workbench/src/features/verify/VerifyList.tsx
@@ -4,7 +4,7 @@ import Empty from '@lobehub/ui/es/Empty/index';
import { Center, Flexbox } from '@lobehub/ui/es/Flex/index';
import Icon from '@lobehub/ui/es/Icon/index';
import Text from '@lobehub/ui/es/Text/index';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { ClipboardCheck, Search, TriangleAlert } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/workbench/src/features/verify/VerifyRow.tsx b/apps/workbench/src/features/verify/VerifyRow.tsx
index 22637dd6482..7f596199644 100644
--- a/apps/workbench/src/features/verify/VerifyRow.tsx
+++ b/apps/workbench/src/features/verify/VerifyRow.tsx
@@ -3,7 +3,7 @@
import type { VerifyRunStatus, VerifyVerdict } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui/es/Flex/index';
import Icon from '@lobehub/ui/es/Icon/index';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import dayjs from 'dayjs';
import { CircleCheck, CircleHelp, CircleX, LoaderCircle } from 'lucide-react';
import { memo } from 'react';
diff --git a/apps/workbench/src/shell/WorkbenchBrandLink.tsx b/apps/workbench/src/shell/WorkbenchBrandLink.tsx
index 0ae7e1702c3..8b5a4741816 100644
--- a/apps/workbench/src/shell/WorkbenchBrandLink.tsx
+++ b/apps/workbench/src/shell/WorkbenchBrandLink.tsx
@@ -1,7 +1,7 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/workbench/src/shell/WorkbenchHeader.tsx b/apps/workbench/src/shell/WorkbenchHeader.tsx
index 1bd777b738a..3a1fc6503b4 100644
--- a/apps/workbench/src/shell/WorkbenchHeader.tsx
+++ b/apps/workbench/src/shell/WorkbenchHeader.tsx
@@ -1,9 +1,9 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { Flexbox } from '@lobehub/ui/es/Flex/index';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/workbench/src/shell/WorkbenchLocale.tsx b/apps/workbench/src/shell/WorkbenchLocale.tsx
index c4a96ae02ca..856a5c635d4 100644
--- a/apps/workbench/src/shell/WorkbenchLocale.tsx
+++ b/apps/workbench/src/shell/WorkbenchLocale.tsx
@@ -1,14 +1,11 @@
'use client';
-import { ConfigProvider } from 'antd';
import dayjs from 'dayjs';
import { memo, type PropsWithChildren, useEffect, useState } from 'react';
import { I18nextProvider } from 'react-i18next';
-import { isRtlLang } from 'rtl-detect';
import type { DayjsLocaleGlobEntry } from '@/utils/dayjsLocale';
import { loadDayjsLocaleModule, normalizeDayjsLocale } from '@/utils/dayjsLocale';
-import { getAntdLocale } from '@/utils/locale';
import { createWorkbenchI18n } from './createWorkbenchI18n';
@@ -48,8 +45,6 @@ interface WorkbenchLocaleProps extends PropsWithChildren {
const WorkbenchLocale = memo<WorkbenchLocaleProps>(({ children, defaultLang, resources }) => {
const [i18n] = useState(() => createWorkbenchI18n(defaultLang, resources));
- const [lang, setLang] = useState(defaultLang ?? 'en-US');
- const [antdLocale, setAntdLocale] = useState<any>();
if (!i18n.instance.isInitialized) void i18n.init({ initAsync: !resources });
@@ -61,15 +56,10 @@ const WorkbenchLocale = memo<WorkbenchLocaleProps>(({ children, defaultLang, res
let localeRequest = 0;
const applyLocale = async (nextLang: string) => {
const request = ++localeRequest;
- const [nextAntdLocale, nextDayjsLocale] = await Promise.all([
- getAntdLocale(nextLang),
- loadDayjsLocale(nextLang),
- ]);
+ const nextDayjsLocale = await loadDayjsLocale(nextLang);
if (request !== localeRequest) return;
dayjs.locale(nextDayjsLocale);
- setLang(nextLang);
- setAntdLocale(nextAntdLocale);
};
void applyLocale(i18n.instance.language || defaultLang || 'en-US');
@@ -81,13 +71,7 @@ const WorkbenchLocale = memo<WorkbenchLocaleProps>(({ children, defaultLang, res
};
}, [defaultLang, i18n]);
- return (
- <I18nextProvider i18n={i18n.instance}>
- <ConfigProvider direction={isRtlLang(lang) ? 'rtl' : 'ltr'} locale={antdLocale}>
- {children}
- </ConfigProvider>
- </I18nextProvider>
- );
+ return <I18nextProvider i18n={i18n.instance}>{children}</I18nextProvider>;
});
WorkbenchLocale.displayName = 'WorkbenchLocale';
diff --git a/apps/workbench/src/shell/WorkbenchShell.tsx b/apps/workbench/src/shell/WorkbenchShell.tsx
index 3298edd55a7..d1573d85d83 100644
--- a/apps/workbench/src/shell/WorkbenchShell.tsx
+++ b/apps/workbench/src/shell/WorkbenchShell.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ModalHost, ToastHost, TooltipGroup } from '@lobehub/ui/base-ui';
-import { StyleProvider } from 'antd-style';
+import { ModalHost, ToastHost, TooltipGroup } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
import WorkbenchLocale from './WorkbenchLocale';
@@ -20,9 +19,7 @@ const WorkbenchShell = memo<WorkbenchShellProps>(({ children, resources, locale:
return (
<WorkbenchLocale defaultLang={locale} resources={resources}>
<WorkbenchTheme>
- <TooltipGroup layoutAnimation={false}>
- <StyleProvider speedy={import.meta.env.PROD}>{children}</StyleProvider>
- </TooltipGroup>
+ <TooltipGroup layoutAnimation={false}>{children}</TooltipGroup>
<ModalHost />
<ToastHost />
</WorkbenchTheme>
diff --git a/apps/workbench/src/shell/WorkbenchTheme.tsx b/apps/workbench/src/shell/WorkbenchTheme.tsx
index b1c4933eb15..26429ec7f3c 100644
--- a/apps/workbench/src/shell/WorkbenchTheme.tsx
+++ b/apps/workbench/src/shell/WorkbenchTheme.tsx
@@ -1,36 +1,26 @@
'use client';
-import 'antd/dist/reset.css';
+import '@lobehub/ui/theme.css';
+import '@lobehub/ui/global.css';
+import '@lobehub/ui/style.css';
import ConfigProvider from '@lobehub/ui/es/ConfigProvider/index';
-import ThemeProvider from '@lobehub/ui/es/ThemeProvider/index';
-import { App } from 'antd';
import { domMax, LazyMotion } from 'motion/react';
import * as m from 'motion/react-m';
import { memo, type PropsWithChildren } from 'react';
-import { useIsDark } from '@/hooks/useIsDark';
import Image from '@/libs/next/Image';
import Link from '@/libs/next/Link';
const WorkbenchTheme = memo<PropsWithChildren>(({ children }) => {
- const isDark = useIsDark();
- const appearance = isDark ? 'dark' : 'light';
-
return (
<ConfigProvider config={{ aAs: Link, imgAs: Image, imgUnoptimized: true }} motion={m}>
- <ThemeProvider
- appearance={appearance}
+ <div
className={'workbench-layout'}
- defaultAppearance={appearance}
- defaultThemeMode={appearance}
style={{ height: '100%', minHeight: '100dvh', width: '100%' }}
- theme={{ cssVar: { key: 'lobe-vars' } }}
>
- <App style={{ height: '100%' }}>
- <LazyMotion features={domMax}>{children}</LazyMotion>
- </App>
- </ThemeProvider>
+ <LazyMotion features={domMax}>{children}</LazyMotion>
+ </div>
</ConfigProvider>
);
});
diff --git a/apps/workbench/staticCssOptions.mjs b/apps/workbench/staticCssOptions.mjs
deleted file mode 100644
index 987e0985f9c..00000000000
--- a/apps/workbench/staticCssOptions.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-const cdnBase = (process.env.VITE_CDN_BASE || '').replace(/\/+$/, '');
-
-export const antdStaticCssOptions = {
- hrefTemplate: (hash) => `${cdnBase}/assets/antd-${hash}.css`,
-};
-
-export const themeVarsCssOptions = {
- hrefTemplate: (hash) => `${cdnBase}/assets/theme-vars-${hash}.css`,
-};
diff --git a/apps/workbench/vite.config.rr.mts b/apps/workbench/vite.config.rr.mts
index cf4abaa1486..45888a467ae 100644
--- a/apps/workbench/vite.config.rr.mts
+++ b/apps/workbench/vite.config.rr.mts
@@ -2,7 +2,6 @@ import { readFileSync, writeFileSync } from 'node:fs';
import path from 'node:path';
import { cloudflare } from '@cloudflare/vite-plugin';
-import { lobeStaticCssPlugin } from '@lobehub/ui/static-css/vite';
import { reactRouter } from '@react-router/dev/vite';
import { defineConfig, type Plugin } from 'vite';
@@ -14,7 +13,6 @@ import { sharedRendererDefine } from '../../plugins/vite/sharedRendererConfig';
import { shikiCdnUrl } from './app/stubs/shikiCdn';
import { isShikiSource } from './app/stubs/shikiSource';
import { reportStubSurfaceGaps } from './app/stubs/surface';
-import { antdStaticCssOptions, themeVarsCssOptions } from './staticCssOptions.mjs';
const repoRoot = path.resolve(import.meta.dirname, '../..');
@@ -262,41 +260,6 @@ const buildInputsManifest = (): Plugin => ({
},
});
-const staticCssDevServe = (): Plugin => {
- const cache = new Map<string, string>();
- const serve = async (kind: 'antd' | 'themeVars') => {
- if (!cache.has(kind)) {
- const { buildAntdStaticCss, buildThemeVarsCss } = await import('@lobehub/ui/static-css');
- cache.set(
- kind,
- kind === 'antd'
- ? buildAntdStaticCss(antdStaticCssOptions).css
- : buildThemeVarsCss(themeVarsCssOptions).css,
- );
- }
- return cache.get(kind)!;
- };
-
- return {
- apply: 'serve',
- configureServer(server) {
- server.middlewares.use(async (req, res, next) => {
- const url = req.url ?? '';
- const kind = /^\/assets\/antd-[a-f0-9]+\.css/.test(url)
- ? ('antd' as const)
- : /^\/assets\/theme-vars-[a-f0-9]+\.css/.test(url)
- ? ('themeVars' as const)
- : undefined;
- if (!kind) return next();
- res.setHeader('Content-Type', 'text/css; charset=utf-8');
- res.setHeader('Cache-Control', 'no-cache');
- res.end(await serve(kind));
- });
- },
- name: 'workbench-static-css-dev-serve',
- };
-};
-
const backendProxy = Object.fromEntries(
['/api', '/oidc', '/trpc', '/webapi'].map((prefix) => [
prefix,
@@ -328,8 +291,6 @@ export default defineConfig({
viteNodeModuleStub(),
vitePlatformResolve('mobile'),
cloudflare({ viteEnvironment: { name: 'ssr' } }),
- lobeStaticCssPlugin({ antd: antdStaticCssOptions, themeVars: themeVarsCssOptions }),
- staticCssDevServe(),
reactRouter(),
...lobeIconImports(),
],
diff --git a/docs/development/basic/architecture.mdx b/docs/development/basic/architecture.mdx
index 22c2db1f883..fcf4893906e 100644
--- a/docs/development/basic/architecture.mdx
+++ b/docs/development/basic/architecture.mdx
@@ -44,8 +44,8 @@ The frontend uses the Next.js framework with a **Next.js RSC + React Router DOM
Key tech stack:
-- **UI Components**: `@lobehub/ui`, antd
-- **CSS-in-JS**: antd-style
+- **UI Components**: `@lobehub/ui`
+- **CSS-in-JS**: `@lobehub/ui` `createStaticStyles` + `cssVar`
- **State Management**: zustand (slice pattern)
- **Data Fetching**: SWR + tRPC
- **i18n**: react-i18next
diff --git a/docs/development/basic/architecture.zh-CN.mdx b/docs/development/basic/architecture.zh-CN.mdx
index 880af876971..d26e3cbf854 100644
--- a/docs/development/basic/architecture.zh-CN.mdx
+++ b/docs/development/basic/architecture.zh-CN.mdx
@@ -42,8 +42,8 @@ LobeHub 的整体架构由以下核心层组成:
主要技术栈:
-- **UI 组件**:`@lobehub/ui`、antd
-- **CSS-in-JS**:antd-style
+- **UI 组件**:`@lobehub/ui`
+- **CSS-in-JS**:`@lobehub/ui` 的 `createStaticStyles` + `cssVar`
- **状态管理**:zustand(slice 模式)
- **数据请求**:SWR + tRPC
- **国际化**:react-i18next
diff --git a/docs/development/start.mdx b/docs/development/start.mdx
index 25d639966ab..016fdb55656 100644
--- a/docs/development/start.mdx
+++ b/docs/development/start.mdx
@@ -46,7 +46,7 @@ The core technology stack of LobeHub is as follows:
- **API**: [tRPC](https://trpc.io/) for end-to-end type-safe API communication.
- **Database**: [Drizzle ORM](https://orm.drizzle.team/) + PostgreSQL.
- **Internationalization**: [react-i18next](https://react.i18next.com/) for multilingual support.
-- **Styling**: [antd-style](https://github.com/ant-design/antd-style), a CSS-in-JS library that complements Ant Design.
+- **Styling**: [`@lobehub/ui`](https://ui.lobehub.com) — components ship their own styles; app code uses its `createStaticStyles` + `cssVar` tokens.
- **Unit Testing**: [Vitest](https://github.com/vitest-dev/vitest) for unit testing.
## Folder Directory Structure
diff --git a/docs/development/start.zh-CN.mdx b/docs/development/start.zh-CN.mdx
index 7343cc23636..7898d0ea6e8 100644
--- a/docs/development/start.zh-CN.mdx
+++ b/docs/development/start.zh-CN.mdx
@@ -44,7 +44,7 @@ LobeHub 的核心技术栈如下:
- **API**:[tRPC](https://trpc.io/) 实现端到端类型安全的 API 通信。
- **数据库**:[Drizzle ORM](https://orm.drizzle.team/) + PostgreSQL。
- **国际化**:[react-i18next](https://react.i18next.com/) 实现多语言支持。
-- **样式**:[antd-style](https://github.com/ant-design/antd-style),与 Ant Design 配套的 CSS-in-JS 库。
+- **样式**:[`@lobehub/ui`](https://ui.lobehub.com),组件自带样式;业务代码使用其 `createStaticStyles` + `cssVar` token。
- **单元测试**:[Vitest](https://github.com/vitest-dev/vitest) 进行单元测试。
## 文件夹目录架构
diff --git a/locales/en-US/color.json b/locales/en-US/color.json
index 4da105f61cd..692e536db5b 100644
--- a/locales/en-US/color.json
+++ b/locales/en-US/color.json
@@ -1,5 +1,6 @@
{
"blue": "Dawn Blue",
+ "custom": "Custom",
"cyan": "Bright Cyan",
"default": "Default",
"geekblue": "Geek Blue",
diff --git a/locales/zh-CN/color.json b/locales/zh-CN/color.json
index 6313cb30374..357c12a809c 100644
--- a/locales/zh-CN/color.json
+++ b/locales/zh-CN/color.json
@@ -1,5 +1,6 @@
{
"blue": "拂晓蓝",
+ "custom": "自定义",
"cyan": "明青",
"default": "默认",
"geekblue": "极客蓝",
diff --git a/package.json b/package.json
index fc30ea4c61c..5ea82cc8842 100644
--- a/package.json
+++ b/package.json
@@ -180,9 +180,7 @@
]
},
"overrides": {
- "@ant-design/icons": "6.3.2",
"@types/react": "19.2.13",
- "antd": "6.3.5",
"baseline-browser-mapping": "2.10.31",
"better-auth": "1.6.15",
"drizzle-orm": "^0.45.2",
@@ -322,13 +320,13 @@
"@lobechat/utils": "workspace:*",
"@lobechat/web-crawler": "workspace:*",
"@lobehub/analytics": "^1.6.4",
- "@lobehub/charts": "^5.4.0",
+ "@lobehub/charts": "^6.0.0",
"@lobehub/desktop-ipc-typings": "workspace:*",
- "@lobehub/editor": "^4.29.2",
- "@lobehub/icons": "^5.18.0",
+ "@lobehub/editor": "^5.0.0",
+ "@lobehub/icons": "^6.0.0",
"@lobehub/market-sdk": "0.42.0",
- "@lobehub/tts": "^5.1.2",
- "@lobehub/ui": "^5.61.0",
+ "@lobehub/tts": "^6.0.0",
+ "@lobehub/ui": "^6.0.4",
"@modelcontextprotocol/sdk": "^1.30.0",
"@neondatabase/serverless": "^1.1.0",
"@next/third-parties": "^16.3.0",
@@ -363,8 +361,6 @@
"@xyflow/react": "^12.11.5",
"@zumer/snapdom": "^2.24.10",
"ahooks": "^3.9.7",
- "antd": "6.3.5",
- "antd-style": "4.1.0",
"async-retry": "^1.3.3",
"bcryptjs": "^3.0.3",
"better-auth": "1.6.15",
@@ -416,7 +412,7 @@
"mdast-util-to-markdown": "^2.1.2",
"mesurer": "^0.1.0",
"model-bank": "workspace:*",
- "motion": "^12.43.0",
+ "motion": "^14.1.0",
"nanoid": "^5.1.16",
"next": "~16.3.8",
"next-mdx-remote": "^6.0.0",
diff --git a/packages/alint/fixtures/no-mode-flags/good-behaviour-toggle.tsx b/packages/alint/fixtures/no-mode-flags/good-behaviour-toggle.tsx
index bf683588d0b..e76a79af539 100644
--- a/packages/alint/fixtures/no-mode-flags/good-behaviour-toggle.tsx
+++ b/packages/alint/fixtures/no-mode-flags/good-behaviour-toggle.tsx
@@ -1,5 +1,5 @@
// Fixture: behaviour toggles and callbacks tune one capability, not a host.
-import { Button, Input } from '@lobehub/ui/base-ui';
+import { Button, Input } from '@lobehub/ui';
import { memo, useState } from 'react';
import { AgentPicker } from '@/features/AgentPicker';
diff --git a/packages/alint/fixtures/no-mode-flags/good-visual-variant.tsx b/packages/alint/fixtures/no-mode-flags/good-visual-variant.tsx
index 9ce3709064e..5ec20439154 100644
--- a/packages/alint/fixtures/no-mode-flags/good-visual-variant.tsx
+++ b/packages/alint/fixtures/no-mode-flags/good-visual-variant.tsx
@@ -1,5 +1,5 @@
// Fixture: a size variant only changes styling.
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { memo } from 'react';
interface Props {
diff --git a/packages/alint/fixtures/no-node-in-browser/good-schema-constant.tsx b/packages/alint/fixtures/no-node-in-browser/good-schema-constant.tsx
index 68b158d114f..c109a52dd6a 100644
--- a/packages/alint/fixtures/no-node-in-browser/good-schema-constant.tsx
+++ b/packages/alint/fixtures/no-node-in-browser/good-schema-constant.tsx
@@ -1,6 +1,6 @@
// Fixture: schema constants and the hetero root entry are browser-safe.
import { getHeterogeneousTypeLabel } from '@lobechat/heterogeneous-agents';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo } from 'react';
import { ConnectorToolPermission } from '@/database/schemas';
diff --git a/packages/alint/fixtures/ui-button-hierarchy/bad-two-primaries.tsx b/packages/alint/fixtures/ui-button-hierarchy/bad-two-primaries.tsx
index bfc1b102eb8..61890b21137 100644
--- a/packages/alint/fixtures/ui-button-hierarchy/bad-two-primaries.tsx
+++ b/packages/alint/fixtures/ui-button-hierarchy/bad-two-primaries.tsx
@@ -1,6 +1,6 @@
// Fixture: a connection card whose secondary actions are all primary.
import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-button-hierarchy/good-modal-footer.tsx b/packages/alint/fixtures/ui-button-hierarchy/good-modal-footer.tsx
index 6e8a624f090..cc6153c35df 100644
--- a/packages/alint/fixtures/ui-button-hierarchy/good-modal-footer.tsx
+++ b/packages/alint/fixtures/ui-button-hierarchy/good-modal-footer.tsx
@@ -1,6 +1,6 @@
// Fixture: one primary commit action, a filled secondary, a text utility.
import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-button-hierarchy/good-recommended-option.tsx b/packages/alint/fixtures/ui-button-hierarchy/good-recommended-option.tsx
index 6e931982387..23269f583af 100644
--- a/packages/alint/fixtures/ui-button-hierarchy/good-recommended-option.tsx
+++ b/packages/alint/fixtures/ui-button-hierarchy/good-recommended-option.tsx
@@ -1,6 +1,6 @@
// Fixture: a mapped option row where only the recommended option is primary.
import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { memo } from 'react';
interface DecisionOption {
diff --git a/packages/alint/fixtures/ui-button-hierarchy/good-single-primary-card.tsx b/packages/alint/fixtures/ui-button-hierarchy/good-single-primary-card.tsx
index 2a39b37535b..92bd2d514ea 100644
--- a/packages/alint/fixtures/ui-button-hierarchy/good-single-primary-card.tsx
+++ b/packages/alint/fixtures/ui-button-hierarchy/good-single-primary-card.tsx
@@ -1,6 +1,6 @@
// Fixture: a card with one primary action and a fill secondary — taste, not this rule.
import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-content-width/bad-full-width-settings.tsx b/packages/alint/fixtures/ui-content-width/bad-full-width-settings.tsx
index 83ab08c0578..47facd2b0a4 100644
--- a/packages/alint/fixtures/ui-content-width/bad-full-width-settings.tsx
+++ b/packages/alint/fixtures/ui-content-width/bad-full-width-settings.tsx
@@ -1,6 +1,6 @@
// Fixture: a settings page body stretched across the whole main area.
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import IntegrationCard from './IntegrationCard';
diff --git a/packages/alint/fixtures/ui-edit-in-modal/bad-inline-rename.tsx b/packages/alint/fixtures/ui-edit-in-modal/bad-inline-rename.tsx
index 2e0848ee56d..02f42462d5c 100644
--- a/packages/alint/fixtures/ui-edit-in-modal/bad-inline-rename.tsx
+++ b/packages/alint/fixtures/ui-edit-in-modal/bad-inline-rename.tsx
@@ -1,6 +1,6 @@
// Fixture: "Rename" from a menu swaps the project title for an inline input.
import { Flexbox } from '@lobehub/ui';
-import { DropdownMenu, Input, Text } from '@lobehub/ui/base-ui';
+import { DropdownMenu, Input, Text } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-edit-in-modal/bad-popover-rename.tsx b/packages/alint/fixtures/ui-edit-in-modal/bad-popover-rename.tsx
index 8fb4ea4dcbe..7805a824f07 100644
--- a/packages/alint/fixtures/ui-edit-in-modal/bad-popover-rename.tsx
+++ b/packages/alint/fixtures/ui-edit-in-modal/bad-popover-rename.tsx
@@ -1,6 +1,6 @@
// Fixture: renaming a topic through a popover input anchored to the row.
import { Flexbox } from '@lobehub/ui';
-import { DropdownMenu, Input, Popover, Text } from '@lobehub/ui/base-ui';
+import { DropdownMenu, Input, Popover, Text } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-edit-in-modal/good-rename-modal.tsx b/packages/alint/fixtures/ui-edit-in-modal/good-rename-modal.tsx
index cbdc407ae5f..848cdaceac5 100644
--- a/packages/alint/fixtures/ui-edit-in-modal/good-rename-modal.tsx
+++ b/packages/alint/fixtures/ui-edit-in-modal/good-rename-modal.tsx
@@ -1,6 +1,6 @@
// Fixture: "Rename" opens a modal form.
import { Flexbox } from '@lobehub/ui';
-import { DropdownMenu, Text } from '@lobehub/ui/base-ui';
+import { DropdownMenu, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-lightweight-errors/bad-raw-error-panel.tsx b/packages/alint/fixtures/ui-lightweight-errors/bad-raw-error-panel.tsx
index 5d766a61eb6..f4a8fcc1301 100644
--- a/packages/alint/fixtures/ui-lightweight-errors/bad-raw-error-panel.tsx
+++ b/packages/alint/fixtures/ui-lightweight-errors/bad-raw-error-panel.tsx
@@ -1,6 +1,6 @@
// Fixture: a card dumping the raw provider error into a red Alert.
import { Flexbox } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-lightweight-errors/good-summary-with-details.tsx b/packages/alint/fixtures/ui-lightweight-errors/good-summary-with-details.tsx
index b0b10845969..29d86e0d5dc 100644
--- a/packages/alint/fixtures/ui-lightweight-errors/good-summary-with-details.tsx
+++ b/packages/alint/fixtures/ui-lightweight-errors/good-summary-with-details.tsx
@@ -1,6 +1,6 @@
// Fixture: one readable line with the raw details folded behind a toggle.
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { AlertCircle } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-no-decorative-chrome/bad-boxed-section.tsx b/packages/alint/fixtures/ui-no-decorative-chrome/bad-boxed-section.tsx
index de1e1d7f7ff..dbf4d2e25da 100644
--- a/packages/alint/fixtures/ui-no-decorative-chrome/bad-boxed-section.tsx
+++ b/packages/alint/fixtures/ui-no-decorative-chrome/bad-boxed-section.tsx
@@ -1,6 +1,6 @@
// Fixture: a bordered, filled box with a bold restating title around one list.
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-no-decorative-chrome/good-spacing-only.tsx b/packages/alint/fixtures/ui-no-decorative-chrome/good-spacing-only.tsx
index 10306d83835..6c024e91991 100644
--- a/packages/alint/fixtures/ui-no-decorative-chrome/good-spacing-only.tsx
+++ b/packages/alint/fixtures/ui-no-decorative-chrome/good-spacing-only.tsx
@@ -1,6 +1,6 @@
// Fixture: structure from spacing; the only boundary is on an input.
import { Flexbox } from '@lobehub/ui';
-import { Input } from '@lobehub/ui/base-ui';
+import { Input } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-restrained-color/bad-colored-type-and-link.tsx b/packages/alint/fixtures/ui-restrained-color/bad-colored-type-and-link.tsx
index 989963eeb65..03c9d4eadeb 100644
--- a/packages/alint/fixtures/ui-restrained-color/bad-colored-type-and-link.tsx
+++ b/packages/alint/fixtures/ui-restrained-color/bad-colored-type-and-link.tsx
@@ -1,7 +1,7 @@
// Fixture: event types as colored tags, a blue in-app link and heavy metadata.
import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Tag } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/packages/alint/fixtures/ui-restrained-color/good-status-and-gray-meta.tsx b/packages/alint/fixtures/ui-restrained-color/good-status-and-gray-meta.tsx
index 619c4e473da..c8e55d79200 100644
--- a/packages/alint/fixtures/ui-restrained-color/good-status-and-gray-meta.tsx
+++ b/packages/alint/fixtures/ui-restrained-color/good-status-and-gray-meta.tsx
@@ -1,6 +1,6 @@
// Fixture: color only for a real failure; metadata and types stay gray.
import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { AlertCircle, ListTodo } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/alint/fixtures/ui-user-facing-copy/bad-raw-enum.tsx b/packages/alint/fixtures/ui-user-facing-copy/bad-raw-enum.tsx
index 633ba84b1e8..78d83d67da8 100644
--- a/packages/alint/fixtures/ui-user-facing-copy/bad-raw-enum.tsx
+++ b/packages/alint/fixtures/ui-user-facing-copy/bad-raw-enum.tsx
@@ -1,6 +1,6 @@
// Fixture: an activity row printing the raw event kind and a hard-coded label.
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
interface ActivityRowProps {
diff --git a/packages/alint/fixtures/ui-user-facing-copy/good-mapped-label.tsx b/packages/alint/fixtures/ui-user-facing-copy/good-mapped-label.tsx
index b5801702529..930795ec0e1 100644
--- a/packages/alint/fixtures/ui-user-facing-copy/good-mapped-label.tsx
+++ b/packages/alint/fixtures/ui-user-facing-copy/good-mapped-label.tsx
@@ -1,6 +1,6 @@
// Fixture: the event kind maps to a translated label; the model id stays raw.
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-view-switch-tabs/bad-segmented-views.tsx b/packages/alint/fixtures/ui-view-switch-tabs/bad-segmented-views.tsx
index 0efb8d987ba..f936b5c45b1 100644
--- a/packages/alint/fixtures/ui-view-switch-tabs/bad-segmented-views.tsx
+++ b/packages/alint/fixtures/ui-view-switch-tabs/bad-segmented-views.tsx
@@ -1,6 +1,6 @@
// Fixture: a Segmented switching whole panels, kept only in local state.
import { Flexbox } from '@lobehub/ui';
-import { Segmented } from '@lobehub/ui/base-ui';
+import { Segmented } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/fixtures/ui-view-switch-tabs/good-segmented-filter.tsx b/packages/alint/fixtures/ui-view-switch-tabs/good-segmented-filter.tsx
index 8cc23cb8d3d..8073d56625e 100644
--- a/packages/alint/fixtures/ui-view-switch-tabs/good-segmented-filter.tsx
+++ b/packages/alint/fixtures/ui-view-switch-tabs/good-segmented-filter.tsx
@@ -1,6 +1,6 @@
// Fixture: a Segmented that only filters the same list.
import { Flexbox } from '@lobehub/ui';
-import { Segmented } from '@lobehub/ui/base-ui';
+import { Segmented } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/alint/rules/ui-no-decorative-chrome/rule.alint.toml b/packages/alint/rules/ui-no-decorative-chrome/rule.alint.toml
index df17440c2fc..7178b04f050 100644
--- a/packages/alint/rules/ui-no-decorative-chrome/rule.alint.toml
+++ b/packages/alint/rules/ui-no-decorative-chrome/rule.alint.toml
@@ -1,7 +1,7 @@
name = "ui-no-decorative-chrome"
builtInAgent = "basic-structured"
instruction = """
-You are reviewing one React component file from LobeHub's web client (styles through antd-style `createStaticStyles` with `cssVar.*` tokens, layout with `Flexbox` / `Block` from @lobehub/ui).
+You are reviewing one React component file from LobeHub's web client (styles through `@lobehub/ui` `createStaticStyles` with `cssVar.*` tokens, layout with `Flexbox` / `Block` from @lobehub/ui).
Team rule, distilled from the product owner's review rejections: structure comes from spacing and alignment, not from boxes. Quotes: "不需要有底色", "这个不应该有 border 吧?", "默认不用把底色加亮,就用透明底", "不要画框", "顶上加标题也不好看", "这些 title 感觉没有必要加粗", "不要这根线", "现在的问题是这块抱着 border 的没有任何必要", "我想把这个 header 头做轻量一些,不要加这个底色和 divider 线分割", "这个容器外面的 border 有点粗了,喧宾夺主", "去掉包裹容器", "为什么这里内部有一段无意义的 padding".
diff --git a/packages/alint/rules/ui-restrained-color/rule.alint.toml b/packages/alint/rules/ui-restrained-color/rule.alint.toml
index 5d1ed879eaf..f3669b62d02 100644
--- a/packages/alint/rules/ui-restrained-color/rule.alint.toml
+++ b/packages/alint/rules/ui-restrained-color/rule.alint.toml
@@ -1,7 +1,7 @@
name = "ui-restrained-color"
builtInAgent = "basic-structured"
instruction = """
-You are reviewing one React component file from LobeHub's web client (styles through antd-style `createStaticStyles` with `cssVar.*` tokens, `Tag` / `Alert` from `@lobehub/ui/base-ui`).
+You are reviewing one React component file from LobeHub's web client (styles through `@lobehub/ui` `createStaticStyles` with `cssVar.*` tokens, `Tag` / `Alert` from `@lobehub/ui/base-ui`).
Team rule, distilled from the product owner's review rejections: color carries state, not decoration. Quotes: "都不要用 link 色,弄成文本色,然后可以点击那种感觉就够了(用图标)", "不要再用色块表达类型了……不要再加颜色", "最好还是有一些图标,但是不用颜色,就是灰色的图标", "都用灰色,不要用这么 colorText 主色", "用 colorTextSecondary 吧,不要用最重一级颜色", "这个时间的颜色要换成浅的", "断开用蓝色很怪啊,你换成亮灰色", "不啊要用蓝色的,感觉是信息条了,换成那种白底的告知", "不要有这个黄 tag", "已解决应该默认折起然后置灰,也不应该有任何这种绿色的显眼的 tag", "你应该用 cssVar 的吧".
diff --git a/packages/builtin-tool-activator/src/client/Inspector/ActivateSkill/index.tsx b/packages/builtin-tool-activator/src/client/Inspector/ActivateSkill/index.tsx
index ed3d1f55cac..ebf9357dfbe 100644
--- a/packages/builtin-tool-activator/src/client/Inspector/ActivateSkill/index.tsx
+++ b/packages/builtin-tool-activator/src/client/Inspector/ActivateSkill/index.tsx
@@ -2,7 +2,7 @@
import { type BuiltinInspectorProps } from '@lobechat/types';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { type TFunction } from 'i18next';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx b/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx
index 20f901c30aa..4aa29b90bb4 100644
--- a/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx
+++ b/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx
@@ -2,8 +2,8 @@
import { type BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { AlertTriangle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-activator/src/client/Render/ActivateSkill/index.tsx b/packages/builtin-tool-activator/src/client/Render/ActivateSkill/index.tsx
index 6f6fadb9f6b..5beb4ddddc2 100644
--- a/packages/builtin-tool-activator/src/client/Render/ActivateSkill/index.tsx
+++ b/packages/builtin-tool-activator/src/client/Render/ActivateSkill/index.tsx
@@ -2,7 +2,7 @@
import { type BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Markdown, ScrollShadow } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { ActivateSkillParams, ActivateSkillState } from '../../../types';
diff --git a/packages/builtin-tool-agent-builder/package.json b/packages/builtin-tool-agent-builder/package.json
index 938f904566f..65aead1434b 100644
--- a/packages/builtin-tool-agent-builder/package.json
+++ b/packages/builtin-tool-agent-builder/package.json
@@ -19,8 +19,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"next": "*",
"react": "*",
diff --git a/packages/builtin-tool-agent-builder/src/client/Inspector/InstallPlugin/index.tsx b/packages/builtin-tool-agent-builder/src/client/Inspector/InstallPlugin/index.tsx
index e371e5cb1d4..3d533073b10 100644
--- a/packages/builtin-tool-agent-builder/src/client/Inspector/InstallPlugin/index.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Inspector/InstallPlugin/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-builder/src/client/Inspector/SearchMarketTools/index.tsx b/packages/builtin-tool-agent-builder/src/client/Inspector/SearchMarketTools/index.tsx
index 8d952fc15bf..ed8ab80fa56 100644
--- a/packages/builtin-tool-agent-builder/src/client/Inspector/SearchMarketTools/index.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Inspector/SearchMarketTools/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-builder/src/client/Inspector/UpdateConfig/index.tsx b/packages/builtin-tool-agent-builder/src/client/Inspector/UpdateConfig/index.tsx
index e52132d2b46..941c9a71cf6 100644
--- a/packages/builtin-tool-agent-builder/src/client/Inspector/UpdateConfig/index.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Inspector/UpdateConfig/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-builder/src/client/Inspector/UpdatePrompt/index.tsx b/packages/builtin-tool-agent-builder/src/client/Inspector/UpdatePrompt/index.tsx
index c076a9ecd1b..5fed344bfb5 100644
--- a/packages/builtin-tool-agent-builder/src/client/Inspector/UpdatePrompt/index.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Inspector/UpdatePrompt/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-builder/src/client/Intervention/InstallPlugin.tsx b/packages/builtin-tool-agent-builder/src/client/Intervention/InstallPlugin.tsx
index 7c82a2b1802..4695d6cf088 100644
--- a/packages/builtin-tool-agent-builder/src/client/Intervention/InstallPlugin.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Intervention/InstallPlugin.tsx
@@ -3,7 +3,7 @@
import { resolveConnectorCatalogItem } from '@lobechat/const';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { CheckCircle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-builder/src/client/Render/GetAvailableModels.tsx b/packages/builtin-tool-agent-builder/src/client/Render/GetAvailableModels.tsx
index 47a7a48b121..14e724a6f7e 100644
--- a/packages/builtin-tool-agent-builder/src/client/Render/GetAvailableModels.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Render/GetAvailableModels.tsx
@@ -1,6 +1,6 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo } from 'react';
import type { GetAvailableModelsParams, GetAvailableModelsState } from '../../types';
diff --git a/packages/builtin-tool-agent-builder/src/client/Render/SearchMarketTools.tsx b/packages/builtin-tool-agent-builder/src/client/Render/SearchMarketTools.tsx
index 12a98b8b2e4..e62c67a1f8a 100644
--- a/packages/builtin-tool-agent-builder/src/client/Render/SearchMarketTools.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Render/SearchMarketTools.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Tag } from '@lobehub/ui/base-ui';
+import { Avatar, Button, Tag } from '@lobehub/ui';
import { CheckCircle, Download, Package, Search } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/packages/builtin-tool-agent-builder/src/client/Render/components/PromptDiffView.tsx b/packages/builtin-tool-agent-builder/src/client/Render/components/PromptDiffView.tsx
index 88b3a94e1f2..d1f3ba4b4e0 100644
--- a/packages/builtin-tool-agent-builder/src/client/Render/components/PromptDiffView.tsx
+++ b/packages/builtin-tool-agent-builder/src/client/Render/components/PromptDiffView.tsx
@@ -1,8 +1,8 @@
'use client';
import { CodeDiff, CopyButton, Flexbox, ScrollShadow, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { CheckCircle, FileText, Maximize2, Minimize2 } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/package.json b/packages/builtin-tool-agent-documents/package.json
index c1524d76910..54d941a40fa 100644
--- a/packages/builtin-tool-agent-documents/package.json
+++ b/packages/builtin-tool-agent-documents/package.json
@@ -21,9 +21,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/CopyDocument/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/CopyDocument/index.tsx
index 67fc2f12548..08c0732cde9 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/CopyDocument/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/CopyDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/CreateDocument/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/CreateDocument/index.tsx
index fe75f184bf3..8a784a9743b 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/CreateDocument/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/CreateDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/CreateFolder/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/CreateFolder/index.tsx
index 7196d039659..a53f0432da2 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/CreateFolder/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/CreateFolder/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/ListDocuments/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/ListDocuments/index.tsx
index f29fc1b24b6..6846196f80e 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/ListDocuments/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/ListDocuments/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/ModifyNodes/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/ModifyNodes/index.tsx
index 3f66fc8b2c1..44c14542cd2 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/ModifyNodes/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/ModifyNodes/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/MoveDocuments/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/MoveDocuments/index.tsx
index ce13f75e6b3..3d1c4162aff 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/MoveDocuments/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/MoveDocuments/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/ReadDocument/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/ReadDocument/index.tsx
index 776ef4bc807..80963de74c0 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/ReadDocument/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/ReadDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/RemoveDocument/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/RemoveDocument/index.tsx
index 834ed433bb3..ebe4fdb80de 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/RemoveDocument/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/RemoveDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/RenameDocument/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/RenameDocument/index.tsx
index e352cde510d..66837cf5ecb 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/RenameDocument/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/RenameDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/ReplaceDocumentContent/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/ReplaceDocumentContent/index.tsx
index 80cd86d1c62..8ed509ea044 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/ReplaceDocumentContent/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/ReplaceDocumentContent/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/UpdateLoadRule/index.tsx b/packages/builtin-tool-agent-documents/src/client/Inspector/UpdateLoadRule/index.tsx
index b1e0e3c8257..e863b8636ea 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/UpdateLoadRule/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/UpdateLoadRule/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Inspector/_styles.ts b/packages/builtin-tool-agent-documents/src/client/Inspector/_styles.ts
index b6a5616a2ec..d87d1e7dbaa 100644
--- a/packages/builtin-tool-agent-documents/src/client/Inspector/_styles.ts
+++ b/packages/builtin-tool-agent-documents/src/client/Inspector/_styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
/**
* Shared chip styles used by every Agent Documents inspector.
diff --git a/packages/builtin-tool-agent-documents/src/client/Intervention/CreateFolder/index.tsx b/packages/builtin-tool-agent-documents/src/client/Intervention/CreateFolder/index.tsx
index ca88ed21acd..3e78be9a25e 100644
--- a/packages/builtin-tool-agent-documents/src/client/Intervention/CreateFolder/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Intervention/CreateFolder/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { BuiltinInterventionProps } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Text } from '@lobehub/ui';
import { FolderPlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Intervention/MoveDocuments/index.tsx b/packages/builtin-tool-agent-documents/src/client/Intervention/MoveDocuments/index.tsx
index 0734c64fbd6..ffddf51ecb6 100644
--- a/packages/builtin-tool-agent-documents/src/client/Intervention/MoveDocuments/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Intervention/MoveDocuments/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { BuiltinInterventionProps } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Render/CreateDocument/DocumentCard.tsx b/packages/builtin-tool-agent-documents/src/client/Render/CreateDocument/DocumentCard.tsx
index 0dfcd012f3b..d4f1070e634 100644
--- a/packages/builtin-tool-agent-documents/src/client/Render/CreateDocument/DocumentCard.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Render/CreateDocument/DocumentCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { CopyButton, Flexbox, Markdown, ScrollShadow, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Button } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { FileTextIcon, Maximize2, Minimize2, PencilLine } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Render/CreateFolder/index.tsx b/packages/builtin-tool-agent-documents/src/client/Render/CreateFolder/index.tsx
index 4f9e5b87127..bef0a1d3865 100644
--- a/packages/builtin-tool-agent-documents/src/client/Render/CreateFolder/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Render/CreateFolder/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { BuiltinRenderProps } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Text } from '@lobehub/ui';
import { FolderIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Render/MoveDocuments/index.tsx b/packages/builtin-tool-agent-documents/src/client/Render/MoveDocuments/index.tsx
index 0481b608656..36aa88b4b85 100644
--- a/packages/builtin-tool-agent-documents/src/client/Render/MoveDocuments/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Render/MoveDocuments/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { BuiltinRenderProps } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/Streaming/CreateDocument/index.tsx b/packages/builtin-tool-agent-documents/src/client/Streaming/CreateDocument/index.tsx
index fea9fcab9d5..1ae6318d8f6 100644
--- a/packages/builtin-tool-agent-documents/src/client/Streaming/CreateDocument/index.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/Streaming/CreateDocument/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Spin } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { FileTextIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-agent-documents/src/client/shared/DocumentRef.tsx b/packages/builtin-tool-agent-documents/src/client/shared/DocumentRef.tsx
index 258b6906ddb..44880bfaea5 100644
--- a/packages/builtin-tool-agent-documents/src/client/shared/DocumentRef.tsx
+++ b/packages/builtin-tool-agent-documents/src/client/shared/DocumentRef.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Text } from '@lobehub/ui';
import { FileTextIcon, FolderIcon, HomeIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-documents/src/client/shared/styles.ts b/packages/builtin-tool-agent-documents/src/client/shared/styles.ts
index 7ce4a4bed47..01a9a94903a 100644
--- a/packages/builtin-tool-agent-documents/src/client/shared/styles.ts
+++ b/packages/builtin-tool-agent-documents/src/client/shared/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const cardStyles = createStaticStyles(({ css, cssVar }) => ({
arrow: css`
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/CallAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/CallAgent/index.tsx
index 29c4f3f31ba..9e033c2f249 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/CallAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/CallAgent/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/CreateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/CreateAgent/index.tsx
index 487bce7e171..6076f4593a6 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/CreateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/CreateAgent/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/DuplicateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/DuplicateAgent/index.tsx
index 7e020fc3901..8909ac1fa16 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/DuplicateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/DuplicateAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/GetAgentDetail/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/GetAgentDetail/index.tsx
index 59d93306848..9ec5609964c 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/GetAgentDetail/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/GetAgentDetail/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/InstallPlugin/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/InstallPlugin/index.tsx
index ce87dcd878c..02ae26928d6 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/InstallPlugin/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/InstallPlugin/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/SearchAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/SearchAgent/index.tsx
index e0cf2e735f5..1c0ddcdf032 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/SearchAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/SearchAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/UpdateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/UpdateAgent/index.tsx
index cf72c245a8b..0771ad7864e 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/UpdateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/UpdateAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Inspector/UpdatePrompt/index.tsx b/packages/builtin-tool-agent-management/src/client/Inspector/UpdatePrompt/index.tsx
index b0748cf5493..c65cda6d8ac 100644
--- a/packages/builtin-tool-agent-management/src/client/Inspector/UpdatePrompt/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Inspector/UpdatePrompt/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/CallAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/CallAgent/index.tsx
index 7ab2e222f7a..dc202752579 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/CallAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/CallAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { CallAgentParams } from '../../../types';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/CreateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/CreateAgent/index.tsx
index dc05c299975..28c34173cc9 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/CreateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/CreateAgent/index.tsx
@@ -3,8 +3,8 @@
import { AGENT_CHAT_URL } from '@lobechat/const';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Tag } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useNavigate } from 'react-router';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/DuplicateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/DuplicateAgent/index.tsx
index a26198451ea..db76acd6399 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/DuplicateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/DuplicateAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/GetAgentDetail/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/GetAgentDetail/index.tsx
index a3e5d2abaa6..910d990f37c 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/GetAgentDetail/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/GetAgentDetail/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Avatar, Tag } from '@lobehub/ui';
+import { createStaticStyles, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import type { GetAgentDetailParams, GetAgentDetailState } from '../../../types';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/InstallPlugin/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/InstallPlugin/index.tsx
index aca15b48b2b..c5128f65c05 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/InstallPlugin/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/InstallPlugin/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Tag } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/SearchAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/SearchAgent/index.tsx
index 23189066b65..7867caf7fc7 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/SearchAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/SearchAgent/index.tsx
@@ -4,8 +4,8 @@ import { DEFAULT_AVATAR } from '@lobechat/const';
import { HETEROGENEOUS_TYPE_LABELS } from '@lobechat/heterogeneous-agents';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-agent-management/src/client/Render/UpdateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Render/UpdateAgent/index.tsx
index 7c09a1c7954..710cf4c9a9b 100644
--- a/packages/builtin-tool-agent-management/src/client/Render/UpdateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Render/UpdateAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { UpdateAgentParams } from '../../../types';
diff --git a/packages/builtin-tool-agent-management/src/client/Streaming/CreateAgent/index.tsx b/packages/builtin-tool-agent-management/src/client/Streaming/CreateAgent/index.tsx
index 47595b4930a..e8aad88e7e2 100644
--- a/packages/builtin-tool-agent-management/src/client/Streaming/CreateAgent/index.tsx
+++ b/packages/builtin-tool-agent-management/src/client/Streaming/CreateAgent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Tag } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { CreateAgentParams } from '../../../types';
diff --git a/packages/builtin-tool-browser/package.json b/packages/builtin-tool-browser/package.json
index 7de741669ae..9146f9739e8 100644
--- a/packages/builtin-tool-browser/package.json
+++ b/packages/builtin-tool-browser/package.json
@@ -16,8 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-browser/src/client/Inspector/Browser.tsx b/packages/builtin-tool-browser/src/client/Inspector/Browser.tsx
index 5827f03954b..84541e23a4b 100644
--- a/packages/builtin-tool-browser/src/client/Inspector/Browser.tsx
+++ b/packages/builtin-tool-browser/src/client/Inspector/Browser.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
Camera,
diff --git a/packages/builtin-tool-browser/src/client/Render/PageAction.tsx b/packages/builtin-tool-browser/src/client/Render/PageAction.tsx
index 1757b068bf8..18d0436489c 100644
--- a/packages/builtin-tool-browser/src/client/Render/PageAction.tsx
+++ b/packages/builtin-tool-browser/src/client/Render/PageAction.tsx
@@ -1,7 +1,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-calculator/package.json b/packages/builtin-tool-calculator/package.json
index c0af8f79b1a..a12b1814ef9 100644
--- a/packages/builtin-tool-calculator/package.json
+++ b/packages/builtin-tool-calculator/package.json
@@ -20,8 +20,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-claude-code/package.json b/packages/builtin-tool-claude-code/package.json
index 884181932e9..b0eadf93fa6 100644
--- a/packages/builtin-tool-claude-code/package.json
+++ b/packages/builtin-tool-claude-code/package.json
@@ -16,8 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"path-browserify-esm": "*",
"react": "*"
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/Agent.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/Agent.tsx
index 76abfb7be4b..fa19955a37c 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/Agent.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/Agent.tsx
@@ -5,7 +5,7 @@ import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/s
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Tooltip } from '@lobehub/ui';
import { GroupBotIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/AskUserQuestion.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/AskUserQuestion.tsx
index c6beeab3edb..cd133ac0ef0 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/AskUserQuestion.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/AskUserQuestion.tsx
@@ -3,7 +3,7 @@
import { normalizeAskUserQuestions } from '@lobechat/shared-tool-ui/ask-user';
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/BrowserMcp.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/BrowserMcp.tsx
index 408e892e96d..bb91870beb9 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/BrowserMcp.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/BrowserMcp.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
Camera,
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/Monitor.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/Monitor.tsx
index cc8dced0fff..376d726fb0c 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/Monitor.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/Monitor.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, Monitor as MonitorIcon, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/ScheduleWakeup.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/ScheduleWakeup.tsx
index 4b23499218c..73ca706905c 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/ScheduleWakeup.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/ScheduleWakeup.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/SendMessage.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/SendMessage.tsx
index 2420c6fdaa4..59ec568bf16 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/SendMessage.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/SendMessage.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/Skill.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/Skill.tsx
index 4ef02486989..87b3a4790d8 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/Skill.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/Skill.tsx
@@ -3,7 +3,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/Task.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/Task.tsx
index 28128add627..965800b2ec0 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/Task.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/Task.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/TaskGet.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/TaskGet.tsx
index 712192a8cc2..fe446c588eb 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/TaskGet.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/TaskGet.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/TaskOutput.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/TaskOutput.tsx
index d13401775b7..b48bf13284e 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/TaskOutput.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/TaskOutput.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/TaskStop.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/TaskStop.tsx
index 1a53b2f5573..19923390e5f 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/TaskStop.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/TaskStop.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/TodoWrite.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/TodoWrite.tsx
index b4d25b67927..a62cecf4e74 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/TodoWrite.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/TodoWrite.tsx
@@ -3,7 +3,7 @@
import { TodoInspectorSummary } from '@lobechat/shared-tool-ui/components';
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/ToolSearch.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/ToolSearch.tsx
index 28132702eb4..417dde85a88 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/ToolSearch.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/ToolSearch.tsx
@@ -6,7 +6,7 @@ import {
shinyTextStyles,
} from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/WebFetch.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/WebFetch.tsx
index 0661be5ca7d..70502af50da 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/WebFetch.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/WebFetch.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/WebSearch.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/WebSearch.tsx
index 5efbac57aa6..0ea32638b99 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/WebSearch.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/WebSearch.tsx
@@ -6,7 +6,7 @@ import {
shinyTextStyles,
} from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/Worktree.tsx b/packages/builtin-tool-claude-code/src/client/Inspector/Worktree.tsx
index 6cb577f9248..d68a88d50bb 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/Worktree.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/Worktree.tsx
@@ -2,7 +2,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { GitForkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/browserMcpLabels.ts b/packages/builtin-tool-claude-code/src/client/Inspector/browserMcpLabels.ts
index a4d605cf13a..d373e30f0f2 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/browserMcpLabels.ts
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/browserMcpLabels.ts
@@ -2,7 +2,7 @@
// builtin MCP server (`mcp__lobe_cc__browser_*`, mounted by
// `apps/desktop/.../browserMcpTools.ts`).
//
-// Kept free of React / antd-style / lucide imports — same reason as
+// Kept free of React / @lobehub/ui / lucide imports — same reason as
// `linearMcpLabels`: the workflow-summary path (`toolDisplayNames.ts`) pulls
// `formatBrowserMcpShortLabel` and must not drag the inspector component in.
diff --git a/packages/builtin-tool-claude-code/src/client/Inspector/linearMcpLabels.ts b/packages/builtin-tool-claude-code/src/client/Inspector/linearMcpLabels.ts
index 1b20fffa2aa..5b6ae876513 100644
--- a/packages/builtin-tool-claude-code/src/client/Inspector/linearMcpLabels.ts
+++ b/packages/builtin-tool-claude-code/src/client/Inspector/linearMcpLabels.ts
@@ -1,5 +1,5 @@
// Thin CC-side wrapper around the shared Linear label utilities. Kept free
-// of antd-style / React / lucide imports so the workflow-summary path can
+// of @lobehub/ui / React / lucide imports so the workflow-summary path can
// pull `formatLinearMcpShortLabel` without dragging the inspector component
// (and its `keyframes`-using style modules) into tests transitively — same
// reason the labels file lives separately from `LinearMcp.tsx`.
diff --git a/packages/builtin-tool-claude-code/src/client/Render/Agent/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/Agent/index.tsx
index 04aa227b475..197215ceb25 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/Agent/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/Agent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Markdown } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ListTree } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/BrowserMcp.tsx b/packages/builtin-tool-claude-code/src/client/Render/BrowserMcp.tsx
index 658b291c0b7..d717d95d028 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/BrowserMcp.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/BrowserMcp.tsx
@@ -1,9 +1,15 @@
'use client';
import type { BuiltinRender, BuiltinRenderProps } from '@lobechat/types';
-import { Block, Flexbox, Highlighter, Image, PreviewGroup } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Block,
+ Flexbox,
+ Highlighter,
+ Image,
+ PreviewGroup,
+ Text,
+ createStaticStyles,
+} from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/Edit/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/Edit/index.tsx
index 22a5a606a3e..8b6763b83e8 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/Edit/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/Edit/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { CodeDiff, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import path from 'path-browserify-esm';
import { memo } from 'react';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/SendMessage/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/SendMessage/index.tsx
index 043ab21df7a..0e65e8b7eda 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/SendMessage/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/SendMessage/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { CircleCheckBig, SendHorizontal } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/Skill/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/Skill/index.tsx
index de11045d284..cf7047aefe4 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/Skill/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/Skill/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Sparkles } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/Task/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/Task/index.tsx
index f0b6518b1d2..b9d934e67a0 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/Task/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/Task/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Icon } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Checkbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CircleArrowRight, CircleCheckBig, CircleX, ListTodo, RotateCcw } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/TodoWrite/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/TodoWrite/index.tsx
index 142f05e0421..a016e1f7112 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/TodoWrite/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/TodoWrite/index.tsx
@@ -3,8 +3,8 @@
import { TodoPanelHeader } from '@lobechat/shared-tool-ui/components';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Icon } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Checkbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CircleArrowRight } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/WebSearch/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/WebSearch/index.tsx
index 1b3bdcd1b2b..1cfd774b38d 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/WebSearch/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/WebSearch/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { WebSearchArgs, WebSearchPluginState, WebSearchResult } from '../../../types';
diff --git a/packages/builtin-tool-claude-code/src/client/Render/Write/index.tsx b/packages/builtin-tool-claude-code/src/client/Render/Write/index.tsx
index 2c0933fa59a..532b64fb103 100644
--- a/packages/builtin-tool-claude-code/src/client/Render/Write/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Render/Write/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Highlighter, Markdown } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import path from 'path-browserify-esm';
import { memo } from 'react';
diff --git a/packages/builtin-tool-claude-code/src/client/Streaming/Agent/index.tsx b/packages/builtin-tool-claude-code/src/client/Streaming/Agent/index.tsx
index c2121aa7092..6e90c77416d 100644
--- a/packages/builtin-tool-claude-code/src/client/Streaming/Agent/index.tsx
+++ b/packages/builtin-tool-claude-code/src/client/Streaming/Agent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Flexbox, Markdown } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ListTree } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-claude-code/src/client/labels.ts b/packages/builtin-tool-claude-code/src/client/labels.ts
index 9b3f210fe80..be3fa04ff44 100644
--- a/packages/builtin-tool-claude-code/src/client/labels.ts
+++ b/packages/builtin-tool-claude-code/src/client/labels.ts
@@ -3,7 +3,7 @@
//
// The workflow summary (`toolDisplayNames.ts`) turns wire tool names into
// human labels outside of React, so this entry must stay free of React /
-// antd-style / lucide imports — pulling `client/index.ts` instead would drag
+// @lobehub/ui / lucide imports — pulling `client/index.ts` instead would drag
// the inspector components (and their `keyframes`-using style modules) in
// transitively.
diff --git a/packages/builtin-tool-cloud-sandbox/package.json b/packages/builtin-tool-cloud-sandbox/package.json
index 14f9e85bff8..875ab983326 100644
--- a/packages/builtin-tool-cloud-sandbox/package.json
+++ b/packages/builtin-tool-cloud-sandbox/package.json
@@ -19,9 +19,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExecuteCode/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExecuteCode/index.tsx
index ea34dcdfb9b..90ba7283cee 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExecuteCode/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExecuteCode/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExportFile/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExportFile/index.tsx
index 11e087f43c5..cb5e8bc3107 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExportFile/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExportFile/index.tsx
@@ -4,7 +4,7 @@ import { FilePathDisplay } from '@lobechat/shared-tool-ui/components';
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { cssVar, cx } from 'antd-style';
+import { cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/EditLocalFile/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/EditLocalFile/index.tsx
index 1516cc9c9d3..ad6a809b1cc 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/EditLocalFile/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/EditLocalFile/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
interface EditLocalFileParams {
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/ExecuteCode/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/ExecuteCode/index.tsx
index 0d18025769d..c338b3600e4 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/ExecuteCode/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/ExecuteCode/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
interface ExecuteCodeParams {
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/MoveLocalFiles/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/MoveLocalFiles/index.tsx
index 08b67ea59d3..680f61cb963 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/MoveLocalFiles/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/MoveLocalFiles/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/RunCommand/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/RunCommand/index.tsx
index add438695c6..c663ab66ea7 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/RunCommand/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/RunCommand/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
interface RunCommandParams {
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/WriteFile/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/WriteFile/index.tsx
index 55db90ee6c7..394d6d20ac5 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Intervention/WriteFile/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Intervention/WriteFile/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
interface WriteLocalFileParams {
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Render/ExecuteCode/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Render/ExecuteCode/index.tsx
index 6c515597af5..afd9348d27d 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Render/ExecuteCode/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Render/ExecuteCode/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Highlighter } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { ExecuteCodeState } from '../../../types';
diff --git a/packages/builtin-tool-cloud-sandbox/src/client/Render/ExportFile/index.tsx b/packages/builtin-tool-cloud-sandbox/src/client/Render/ExportFile/index.tsx
index f9674c04774..94abadf40a0 100644
--- a/packages/builtin-tool-cloud-sandbox/src/client/Render/ExportFile/index.tsx
+++ b/packages/builtin-tool-cloud-sandbox/src/client/Render/ExportFile/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { CircleCheckIcon, CircleXIcon, DownloadIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
diff --git a/packages/builtin-tool-creds/package.json b/packages/builtin-tool-creds/package.json
index 5d8fb2914bc..f6a50f57cf7 100644
--- a/packages/builtin-tool-creds/package.json
+++ b/packages/builtin-tool-creds/package.json
@@ -17,7 +17,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
+ "@lobehub/ui": "^6.0.4",
"react": "^19"
}
}
diff --git a/packages/builtin-tool-creds/src/client/Intervention/RequestCredsInput/index.tsx b/packages/builtin-tool-creds/src/client/Intervention/RequestCredsInput/index.tsx
index cde60d0a722..f0a3b133d48 100644
--- a/packages/builtin-tool-creds/src/client/Intervention/RequestCredsInput/index.tsx
+++ b/packages/builtin-tool-creds/src/client/Intervention/RequestCredsInput/index.tsx
@@ -2,8 +2,7 @@
import { SecretInputView } from '@lobechat/shared-tool-ui/secret-input';
import type { BuiltinInterventionProps } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag, Text } from '@lobehub/ui';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-dashboard/package.json b/packages/builtin-tool-dashboard/package.json
index 8e0ca8b9be0..027728c33ec 100644
--- a/packages/builtin-tool-dashboard/package.json
+++ b/packages/builtin-tool-dashboard/package.json
@@ -13,8 +13,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-dashboard/src/client/Inspector/index.tsx b/packages/builtin-tool-dashboard/src/client/Inspector/index.tsx
index 4e0f76783e1..0b67b5fe5e0 100644
--- a/packages/builtin-tool-dashboard/src/client/Inspector/index.tsx
+++ b/packages/builtin-tool-dashboard/src/client/Inspector/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-dashboard/src/client/Render/AddedToDashboard.tsx b/packages/builtin-tool-dashboard/src/client/Render/AddedToDashboard.tsx
index 6a5c620d73a..416be4ea843 100644
--- a/packages/builtin-tool-dashboard/src/client/Render/AddedToDashboard.tsx
+++ b/packages/builtin-tool-dashboard/src/client/Render/AddedToDashboard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowUpRightIcon, LayoutDashboardIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/package.json b/packages/builtin-tool-group-agent-builder/package.json
index 56c7e00f7a2..23c0bc5084c 100644
--- a/packages/builtin-tool-group-agent-builder/package.json
+++ b/packages/builtin-tool-group-agent-builder/package.json
@@ -17,8 +17,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/BatchCreateAgents/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/BatchCreateAgents/index.tsx
index a8dca83ac2f..a346f700a1f 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/BatchCreateAgents/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/BatchCreateAgents/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateAgent/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateAgent/index.tsx
index 92d672c7b9e..a0a17f55c49 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateAgent/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateAgent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateGroup/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateGroup/index.tsx
index 4e58ab428d7..1314ef8923b 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateGroup/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateGroup/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/GetAgentInfo/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/GetAgentInfo/index.tsx
index 40285b63d61..851c5e16462 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/GetAgentInfo/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/GetAgentInfo/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/InviteAgent/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/InviteAgent/index.tsx
index 40711a58f04..930f8217aea 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/InviteAgent/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/InviteAgent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/RemoveAgent/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/RemoveAgent/index.tsx
index 39da0433d17..d47e58880fa 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/RemoveAgent/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/RemoveAgent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/SearchAgent/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/SearchAgent/index.tsx
index 023a230be32..b0c7eda8333 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/SearchAgent/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/SearchAgent/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx
index 05709fc0378..3bafe9cda3c 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroup/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroup/index.tsx
index 48756edf482..48e13342eb7 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroup/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroup/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroupPrompt/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroupPrompt/index.tsx
index 69582dff27a..19781ce677e 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroupPrompt/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroupPrompt/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Render/BatchCreateAgents.tsx b/packages/builtin-tool-group-agent-builder/src/client/Render/BatchCreateAgents.tsx
index 21591ca56b7..7731793c9cb 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Render/BatchCreateAgents.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Render/BatchCreateAgents.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Users } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Streaming/BatchCreateAgents/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Streaming/BatchCreateAgents/index.tsx
index 6b3c90016da..c9b5ba013d1 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Streaming/BatchCreateAgents/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Streaming/BatchCreateAgents/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar, Divider } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Divider } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import ToolTag from '@/features/ToolTag';
diff --git a/packages/builtin-tool-group-management/src/client/Inspector/Broadcast/index.tsx b/packages/builtin-tool-group-management/src/client/Inspector/Broadcast/index.tsx
index f0cfa7bd91b..3146129440d 100644
--- a/packages/builtin-tool-group-management/src/client/Inspector/Broadcast/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Inspector/Broadcast/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { AgentGroupMember, BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx, useTheme } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTask/index.tsx b/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTask/index.tsx
index ffea32934d9..41d051f13ce 100644
--- a/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTask/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTask/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTasks/index.tsx b/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTasks/index.tsx
index 7b99aaaba7d..bffad2ddc16 100644
--- a/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTasks/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTasks/index.tsx
@@ -4,8 +4,8 @@ import { DEFAULT_AVATAR } from '@lobechat/const';
import type { AgentGroupMember, BuiltinInspectorProps } from '@lobechat/types';
import { safeParsePartialJSON } from '@lobechat/utils';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx, useTheme } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-management/src/client/Inspector/Speak/index.tsx b/packages/builtin-tool-group-management/src/client/Inspector/Speak/index.tsx
index ff27c4d7727..98ed15ddbde 100644
--- a/packages/builtin-tool-group-management/src/client/Inspector/Speak/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Inspector/Speak/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cx, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTask.tsx b/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTask.tsx
index ad358a4c0d2..7dd7fd37e5f 100644
--- a/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTask.tsx
+++ b/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTask.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Avatar, InputNumber, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, InputNumber, TextArea } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Clock } from 'lucide-react';
import type { ChangeEvent } from 'react';
diff --git a/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTasks.tsx b/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTasks.tsx
index dd0bf5d7c86..5d86f4c4b3d 100644
--- a/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTasks.tsx
+++ b/packages/builtin-tool-group-management/src/client/Intervention/ExecuteTasks.tsx
@@ -13,8 +13,8 @@ import {
Input,
InputNumber,
TextArea,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+} from '@lobehub/ui';
+import { createStaticStyles, useTheme } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Clock, Trash2 } from 'lucide-react';
import type { ChangeEvent } from 'react';
diff --git a/packages/builtin-tool-group-management/src/client/Render/Broadcast/index.tsx b/packages/builtin-tool-group-management/src/client/Render/Broadcast/index.tsx
index 62ef4c0acaf..e8fe38f49a8 100644
--- a/packages/builtin-tool-group-management/src/client/Render/Broadcast/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Render/Broadcast/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { BroadcastParams } from '../../../types';
diff --git a/packages/builtin-tool-group-management/src/client/Render/ExecuteTask/index.tsx b/packages/builtin-tool-group-management/src/client/Render/ExecuteTask/index.tsx
index d2e0d215e2b..ca5e4506a18 100644
--- a/packages/builtin-tool-group-management/src/client/Render/ExecuteTask/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Render/ExecuteTask/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Clock } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-management/src/client/Render/ExecuteTasks/index.tsx b/packages/builtin-tool-group-management/src/client/Render/ExecuteTasks/index.tsx
index d0eb6c31712..a2868be285e 100644
--- a/packages/builtin-tool-group-management/src/client/Render/ExecuteTasks/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Render/ExecuteTasks/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { AgentGroupMember, BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Accordion, Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Accordion, Avatar, Text } from '@lobehub/ui';
+import { createStaticStyles, useTheme } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-group-management/src/client/Render/Speak/index.tsx b/packages/builtin-tool-group-management/src/client/Render/Speak/index.tsx
index b88297abcb8..ce0573404a5 100644
--- a/packages/builtin-tool-group-management/src/client/Render/Speak/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Render/Speak/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { SpeakParams } from '../../../types';
diff --git a/packages/builtin-tool-group-management/src/client/Streaming/Broadcast/index.tsx b/packages/builtin-tool-group-management/src/client/Streaming/Broadcast/index.tsx
index a8a286f73d8..5597cbb635e 100644
--- a/packages/builtin-tool-group-management/src/client/Streaming/Broadcast/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Streaming/Broadcast/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { BroadcastParams } from '../../../types';
diff --git a/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTask/index.tsx b/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTask/index.tsx
index 46a5b36c5c8..3b13392ff0c 100644
--- a/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTask/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTask/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useAgentGroupStore } from '@/store/agentGroup';
diff --git a/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTasks/index.tsx b/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTasks/index.tsx
index 580554bf72a..504f24c8b6e 100644
--- a/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTasks/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Streaming/ExecuteTasks/index.tsx
@@ -3,8 +3,8 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import type { AgentGroupMember, BuiltinStreamingProps } from '@lobechat/types';
import { Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, useTheme } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useAgentGroupStore } from '@/store/agentGroup';
diff --git a/packages/builtin-tool-group-management/src/client/Streaming/Speak/index.tsx b/packages/builtin-tool-group-management/src/client/Streaming/Speak/index.tsx
index edf2a55f817..7e362af2b58 100644
--- a/packages/builtin-tool-group-management/src/client/Streaming/Speak/index.tsx
+++ b/packages/builtin-tool-group-management/src/client/Streaming/Speak/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { SpeakParams } from '../../../types';
diff --git a/packages/builtin-tool-image-generation/package.json b/packages/builtin-tool-image-generation/package.json
index ba5c6517a0d..89ffa399828 100644
--- a/packages/builtin-tool-image-generation/package.json
+++ b/packages/builtin-tool-image-generation/package.json
@@ -16,8 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-image-generation/src/client/Inspector/index.tsx b/packages/builtin-tool-image-generation/src/client/Inspector/index.tsx
index 56ecc849bd4..ad8fb17cf37 100644
--- a/packages/builtin-tool-image-generation/src/client/Inspector/index.tsx
+++ b/packages/builtin-tool-image-generation/src/client/Inspector/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { ImageIcon, ListTree, RefreshCw, SlidersHorizontal } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-image-generation/src/client/Render/GenerateImage.tsx b/packages/builtin-tool-image-generation/src/client/Render/GenerateImage.tsx
index 437b8c7e29e..10c01461f14 100644
--- a/packages/builtin-tool-image-generation/src/client/Render/GenerateImage.tsx
+++ b/packages/builtin-tool-image-generation/src/client/Render/GenerateImage.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { PreviewGroup } from '@lobehub/ui';
-import { Alert, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Alert, Button, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-image-generation/src/client/Render/GetImageGenerationStatus.tsx b/packages/builtin-tool-image-generation/src/client/Render/GetImageGenerationStatus.tsx
index dd89bb52787..73a9310fd54 100644
--- a/packages/builtin-tool-image-generation/src/client/Render/GetImageGenerationStatus.tsx
+++ b/packages/builtin-tool-image-generation/src/client/Render/GetImageGenerationStatus.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinRenderProps } from '@lobechat/types';
-import { Alert, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Alert, Button, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-image-generation/src/client/Render/GetImageModelParameters.tsx b/packages/builtin-tool-image-generation/src/client/Render/GetImageModelParameters.tsx
index 991fa5e53be..753a60dc656 100644
--- a/packages/builtin-tool-image-generation/src/client/Render/GetImageModelParameters.tsx
+++ b/packages/builtin-tool-image-generation/src/client/Render/GetImageModelParameters.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox } from '@lobehub/ui';
-import { Alert, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-image-generation/src/client/Render/ListImageModels.tsx b/packages/builtin-tool-image-generation/src/client/Render/ListImageModels.tsx
index 7ca488599ba..28ed57137a2 100644
--- a/packages/builtin-tool-image-generation/src/client/Render/ListImageModels.tsx
+++ b/packages/builtin-tool-image-generation/src/client/Render/ListImageModels.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox } from '@lobehub/ui';
-import { Alert, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Alert, Button, Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { ChevronDown, ChevronUp } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-image-generation/src/client/components/ImageCanvas.tsx b/packages/builtin-tool-image-generation/src/client/components/ImageCanvas.tsx
index d5cfe279450..c34aef6b6f6 100644
--- a/packages/builtin-tool-image-generation/src/client/components/ImageCanvas.tsx
+++ b/packages/builtin-tool-image-generation/src/client/components/ImageCanvas.tsx
@@ -1,7 +1,7 @@
'use client';
import { Image } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx, keyframes } from 'antd-style';
+import { createStaticStyles, cssVar, cx, keyframes } from '@lobehub/ui';
import type { CSSProperties, ReactNode } from 'react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-image-generation/src/client/components/ImageCanvasGrid.tsx b/packages/builtin-tool-image-generation/src/client/components/ImageCanvasGrid.tsx
index dcde0c0c3e1..138cb01d266 100644
--- a/packages/builtin-tool-image-generation/src/client/components/ImageCanvasGrid.tsx
+++ b/packages/builtin-tool-image-generation/src/client/components/ImageCanvasGrid.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-knowledge-base/package.json b/packages/builtin-tool-knowledge-base/package.json
index ff00a816eaa..24b72d435ab 100644
--- a/packages/builtin-tool-knowledge-base/package.json
+++ b/packages/builtin-tool-knowledge-base/package.json
@@ -16,9 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"polished": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-knowledge-base/src/client/Inspector/ReadKnowledge/index.tsx b/packages/builtin-tool-knowledge-base/src/client/Inspector/ReadKnowledge/index.tsx
index 909beb50125..bb733495bee 100644
--- a/packages/builtin-tool-knowledge-base/src/client/Inspector/ReadKnowledge/index.tsx
+++ b/packages/builtin-tool-knowledge-base/src/client/Inspector/ReadKnowledge/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-knowledge-base/src/client/Inspector/SearchKnowledgeBase/index.tsx b/packages/builtin-tool-knowledge-base/src/client/Inspector/SearchKnowledgeBase/index.tsx
index 4ac8f46a941..135896efa88 100644
--- a/packages/builtin-tool-knowledge-base/src/client/Inspector/SearchKnowledgeBase/index.tsx
+++ b/packages/builtin-tool-knowledge-base/src/client/Inspector/SearchKnowledgeBase/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-knowledge-base/src/client/Render/ReadKnowledge/FileCard.tsx b/packages/builtin-tool-knowledge-base/src/client/Render/ReadKnowledge/FileCard.tsx
index c153fe64b5c..ae79d04af82 100644
--- a/packages/builtin-tool-knowledge-base/src/client/Render/ReadKnowledge/FileCard.tsx
+++ b/packages/builtin-tool-knowledge-base/src/client/Render/ReadKnowledge/FileCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox, MaterialFileTypeIcon } from '@lobehub/ui';
-import { Alert, Descriptions, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Descriptions, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { FileContentDetail } from '../../../types';
diff --git a/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/index.tsx b/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/index.tsx
index 39ff0c7ad31..4fb98c221c0 100644
--- a/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/index.tsx
+++ b/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/index.tsx
@@ -2,8 +2,8 @@
import type { FileSearchResult } from '@lobechat/types';
import { Center, Flexbox, MaterialFileTypeIcon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cx } from '@lobehub/ui';
import { useTheme } from 'next-themes';
import { memo } from 'react';
diff --git a/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/style.ts b/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/style.ts
index fcbf539b3a9..d66c8cb62e0 100644
--- a/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/style.ts
+++ b/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
badge: css`
diff --git a/packages/builtin-tool-lobe-agent/package.json b/packages/builtin-tool-lobe-agent/package.json
index 184a6417bdc..5f616880a76 100644
--- a/packages/builtin-tool-lobe-agent/package.json
+++ b/packages/builtin-tool-lobe-agent/package.json
@@ -25,10 +25,8 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/editor": "^4",
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/editor": "^5.0.0",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*"
}
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/AnalyzeMedia/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/AnalyzeMedia/index.tsx
index bb94b0cd063..89a4a2a5d47 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/AnalyzeMedia/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/AnalyzeMedia/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/CallSubAgent/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/CallSubAgent/index.tsx
index cac13d4c225..68742997e2a 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/CallSubAgent/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/CallSubAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { GroupBotIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/ClearTodos/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/ClearTodos/index.tsx
index 47504ce1695..021db7844ba 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/ClearTodos/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/ClearTodos/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx
index 8eea6ad76be..6117d1cb2d1 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/CreatePlan/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx
index 837c4f46b03..78555df0474 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdatePlan/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CheckCircle, DiffIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx
index dac982974b7..5c3108a7826 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/UpdateTodos/index.tsx
@@ -2,7 +2,7 @@
import { TodoInspectorSummary } from '@lobechat/shared-tool-ui/components';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Inspector/Vent/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Inspector/Vent/index.tsx
index 22c1ff3c074..f01c3061232 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Inspector/Vent/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Inspector/Vent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { CheckCircle2, CircleAlert } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx b/packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx
index 2b36cc26a7f..b2933d6b4ca 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Intervention/ClearTodos.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { RadioGroup } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { RadioGroup } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Trash2 } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx b/packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx
index bb5ce8c3e7c..5dd9ef66ab3 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Intervention/CreatePlan.tsx
@@ -12,8 +12,8 @@ import {
} from '@lobehub/editor';
import { Editor, useEditor } from '@lobehub/editor/react';
import { Flexbox } from '@lobehub/ui';
-import { TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { TextArea } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Render/CallSubAgent/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Render/CallSubAgent/index.tsx
index a6ba683ce3c..e4860948b62 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Render/CallSubAgent/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Render/CallSubAgent/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { AlertTriangle, ListTree } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Render/CreatePlan/PlanCard.tsx b/packages/builtin-tool-lobe-agent/src/client/Render/CreatePlan/PlanCard.tsx
index ca83ab10b6d..75dd40dbc9b 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Render/CreatePlan/PlanCard.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Render/CreatePlan/PlanCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Block, Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ListChecksIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Render/TodoList/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Render/TodoList/index.tsx
index 9945db74cb6..29f9ed47f99 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Render/TodoList/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Render/TodoList/index.tsx
@@ -3,8 +3,8 @@
import { TodoPanelHeader } from '@lobechat/shared-tool-ui/components';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Icon } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Checkbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CircleArrowRight } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Streaming/CallSubAgent/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Streaming/CallSubAgent/index.tsx
index a4d0af69c10..09eb6620373 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Streaming/CallSubAgent/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Streaming/CallSubAgent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { CallSubAgentParams } from '../../../types';
diff --git a/packages/builtin-tool-lobe-agent/src/client/Streaming/CreatePlan/index.tsx b/packages/builtin-tool-lobe-agent/src/client/Streaming/CreatePlan/index.tsx
index f7d161c5420..1a3d2d1869a 100644
--- a/packages/builtin-tool-lobe-agent/src/client/Streaming/CreatePlan/index.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/Streaming/CreatePlan/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ListChecksIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/AddItemRow.tsx b/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/AddItemRow.tsx
index eb8f987a164..23247146ccd 100644
--- a/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/AddItemRow.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/AddItemRow.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Checkbox, Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, Checkbox, Input } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import type { ChangeEvent, KeyboardEvent } from 'react';
import { memo, useCallback, useEffect, useRef } from 'react';
diff --git a/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/TodoItemRow.tsx b/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/TodoItemRow.tsx
index b46087ed1a7..b78a6676908 100644
--- a/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/TodoItemRow.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/components/SortableTodoList/TodoItemRow.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox, Icon, SortableList } from '@lobehub/ui';
-import { ActionIcon, Checkbox, Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, Checkbox, Input } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CircleArrowRight, Trash2 } from 'lucide-react';
import type { ChangeEvent, KeyboardEvent } from 'react';
import { memo, useCallback, useEffect, useRef } from 'react';
diff --git a/packages/builtin-tool-lobe-agent/src/client/components/SubAgentStats.tsx b/packages/builtin-tool-lobe-agent/src/client/components/SubAgentStats.tsx
index 45ffa2c7c1f..2d0d5b365de 100644
--- a/packages/builtin-tool-lobe-agent/src/client/components/SubAgentStats.tsx
+++ b/packages/builtin-tool-lobe-agent/src/client/components/SubAgentStats.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/package.json b/packages/builtin-tool-local-system/package.json
index 6b39a1e1364..974f0e846eb 100644
--- a/packages/builtin-tool-local-system/package.json
+++ b/packages/builtin-tool-local-system/package.json
@@ -18,9 +18,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"path-browserify-esm": "*",
"react": "*",
diff --git a/packages/builtin-tool-local-system/src/client/Inspector/RenameLocalFile/index.tsx b/packages/builtin-tool-local-system/src/client/Inspector/RenameLocalFile/index.tsx
index 3ed39b73dc1..5279afedc9e 100644
--- a/packages/builtin-tool-local-system/src/client/Inspector/RenameLocalFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Inspector/RenameLocalFile/index.tsx
@@ -3,7 +3,7 @@
import type { RenameLocalFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { MaterialFileTypeIcon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import path from 'path-browserify-esm';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/EditLocalFile/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/EditLocalFile/index.tsx
index 6bf98cd19f6..cb8bbc87564 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/EditLocalFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/EditLocalFile/index.tsx
@@ -1,7 +1,7 @@
import type { EditLocalFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { CodeDiff, Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Alert, Skeleton, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo, useMemo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/GlobLocalFiles/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/GlobLocalFiles/index.tsx
index c6bcce2a537..d2e5a17dd30 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/GlobLocalFiles/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/GlobLocalFiles/index.tsx
@@ -1,7 +1,7 @@
import { type GlobFilesParams } from '@lobechat/electron-client-ipc';
import { type BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/GrepContent/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/GrepContent/index.tsx
index 85a7d8d52c1..7693067dc7c 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/GrepContent/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/GrepContent/index.tsx
@@ -1,7 +1,7 @@
import { type GrepContentParams } from '@lobechat/electron-client-ipc';
import { type BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/MoveFileItem.tsx b/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/MoveFileItem.tsx
index ba98ab4d6ba..da82ce3bdfc 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/MoveFileItem.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/MoveFileItem.tsx
@@ -1,6 +1,6 @@
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/index.tsx
index 8630e070a00..ad9229fd53c 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/MoveLocalFiles/index.tsx
@@ -1,7 +1,7 @@
import type { MoveLocalFilesParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/OutOfScopeWarning.tsx b/packages/builtin-tool-local-system/src/client/Intervention/OutOfScopeWarning.tsx
index af7d67c5c46..3229c51f941 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/OutOfScopeWarning.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/OutOfScopeWarning.tsx
@@ -1,6 +1,6 @@
import { isPathWithinScope } from '@lobechat/tool-runtime';
import { Flexbox } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/ReadLocalFile/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/ReadLocalFile/index.tsx
index 81d9c2a1c25..810c777b6ef 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/ReadLocalFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/ReadLocalFile/index.tsx
@@ -1,7 +1,7 @@
import type { LocalReadFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/RenameLocalFile/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/RenameLocalFile/index.tsx
index d44c66a2a63..f0eb0ac770c 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/RenameLocalFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/RenameLocalFile/index.tsx
@@ -1,7 +1,7 @@
import type { RenameLocalFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { ArrowRight, ChevronRight } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx
index 1850ac2ae9d..b65e6e28a26 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/RunCommand/index.tsx
@@ -1,7 +1,7 @@
import type { RunCommandParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
const formatTimeout = (ms?: number) => {
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/SearchLocalFiles/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/SearchLocalFiles/index.tsx
index 2f2acea4f57..9dde5774936 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/SearchLocalFiles/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/SearchLocalFiles/index.tsx
@@ -1,7 +1,7 @@
import { type LocalSearchFilesParams } from '@lobechat/electron-client-ipc';
import { type BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Intervention/WriteFile/index.tsx b/packages/builtin-tool-local-system/src/client/Intervention/WriteFile/index.tsx
index da3612b90a4..44d2bee188f 100644
--- a/packages/builtin-tool-local-system/src/client/Intervention/WriteFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Intervention/WriteFile/index.tsx
@@ -1,7 +1,7 @@
import type { WriteLocalFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox, Highlighter, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo, useMemo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Placeholder/ListFiles.tsx b/packages/builtin-tool-local-system/src/client/Placeholder/ListFiles.tsx
index 854f865ad80..908ffe6b8a4 100644
--- a/packages/builtin-tool-local-system/src/client/Placeholder/ListFiles.tsx
+++ b/packages/builtin-tool-local-system/src/client/Placeholder/ListFiles.tsx
@@ -1,7 +1,7 @@
import type { ListLocalFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinPlaceholderProps } from '@lobechat/types';
import { Center, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import React, { memo } from 'react';
import { LocalFolder } from '@/features/LocalFile';
diff --git a/packages/builtin-tool-local-system/src/client/Placeholder/SearchFiles.tsx b/packages/builtin-tool-local-system/src/client/Placeholder/SearchFiles.tsx
index 115a752e363..5b26e30b8dc 100644
--- a/packages/builtin-tool-local-system/src/client/Placeholder/SearchFiles.tsx
+++ b/packages/builtin-tool-local-system/src/client/Placeholder/SearchFiles.tsx
@@ -1,8 +1,8 @@
import type { LocalSearchFilesParams } from '@lobechat/electron-client-ipc';
import type { BuiltinPlaceholderProps } from '@lobechat/types';
import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Skeleton } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import React, { memo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Render/EditLocalFile/index.tsx b/packages/builtin-tool-local-system/src/client/Render/EditLocalFile/index.tsx
index e333c9d8e04..8734c53de58 100644
--- a/packages/builtin-tool-local-system/src/client/Render/EditLocalFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/EditLocalFile/index.tsx
@@ -1,7 +1,7 @@
import type { EditLocalFileState } from '@lobechat/builtin-tool-local-system';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, PatchDiff } from '@lobehub/ui';
-import { Alert, Skeleton } from '@lobehub/ui/base-ui';
+import { Alert, Skeleton } from '@lobehub/ui';
import React, { memo } from 'react';
const EditLocalFile = memo<BuiltinRenderProps<any, EditLocalFileState>>(
diff --git a/packages/builtin-tool-local-system/src/client/Render/ListFiles/Result.tsx b/packages/builtin-tool-local-system/src/client/Render/ListFiles/Result.tsx
index ed6bae1e91f..ad0b9115f49 100644
--- a/packages/builtin-tool-local-system/src/client/Render/ListFiles/Result.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/ListFiles/Result.tsx
@@ -1,7 +1,7 @@
import { useToolRenderCapabilities } from '@lobechat/shared-tool-ui';
import type { ChatMessagePluginError } from '@lobechat/types';
import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import { FolderOpenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/MoveFileItem.tsx b/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/MoveFileItem.tsx
index 6304ea444b2..eb089c5e52d 100644
--- a/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/MoveFileItem.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/MoveFileItem.tsx
@@ -1,7 +1,7 @@
import { useToolRenderCapabilities } from '@lobechat/shared-tool-ui';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/index.tsx b/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/index.tsx
index b6b88bfa697..a0cc4fbefbc 100644
--- a/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/MoveLocalFiles/index.tsx
@@ -1,6 +1,6 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileSkeleton.tsx b/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileSkeleton.tsx
index 64c5ac5a13f..1364a678745 100644
--- a/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileSkeleton.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileSkeleton.tsx
@@ -1,6 +1,6 @@
import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Skeleton } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import React, { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx b/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx
index f1ba84a4290..28983afde92 100644
--- a/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/ReadLocalFile/ReadFileView.tsx
@@ -1,8 +1,8 @@
import { useToolRenderCapabilities } from '@lobechat/shared-tool-ui';
import type { ReadFileState } from '@lobechat/tool-runtime';
import { Flexbox, Image, Markdown, PreviewGroup, SyntaxHighlighter } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ExternalLink, FolderOpen, SquareArrowOutUpRight } from 'lucide-react';
import type { CSSProperties } from 'react';
import React, { memo, useMemo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/Render/SearchFiles/Result.tsx b/packages/builtin-tool-local-system/src/client/Render/SearchFiles/Result.tsx
index 6ea9201060e..6375b56e86d 100644
--- a/packages/builtin-tool-local-system/src/client/Render/SearchFiles/Result.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/SearchFiles/Result.tsx
@@ -1,7 +1,7 @@
import { useToolRenderCapabilities } from '@lobechat/shared-tool-ui';
import type { ChatMessagePluginError } from '@lobechat/types';
import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Render/SearchFiles/SearchQuery/SearchView.tsx b/packages/builtin-tool-local-system/src/client/Render/SearchFiles/SearchQuery/SearchView.tsx
index ccb9e35f884..83fce878ff8 100644
--- a/packages/builtin-tool-local-system/src/client/Render/SearchFiles/SearchQuery/SearchView.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/SearchFiles/SearchQuery/SearchView.tsx
@@ -1,5 +1,5 @@
import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-local-system/src/client/Render/WriteFile/index.tsx b/packages/builtin-tool-local-system/src/client/Render/WriteFile/index.tsx
index 9cdd3baaa44..9fede958801 100644
--- a/packages/builtin-tool-local-system/src/client/Render/WriteFile/index.tsx
+++ b/packages/builtin-tool-local-system/src/client/Render/WriteFile/index.tsx
@@ -1,8 +1,8 @@
import type { WriteLocalFileParams } from '@lobechat/electron-client-ipc';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Icon, Markdown, PatchDiff } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Skeleton } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo } from 'react';
diff --git a/packages/builtin-tool-local-system/src/client/components/FileItem.tsx b/packages/builtin-tool-local-system/src/client/components/FileItem.tsx
index 295ba84ca2c..c38d4120ef3 100644
--- a/packages/builtin-tool-local-system/src/client/components/FileItem.tsx
+++ b/packages/builtin-tool-local-system/src/client/components/FileItem.tsx
@@ -1,7 +1,7 @@
import { useToolRenderCapabilities } from '@lobechat/shared-tool-ui';
import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import dayjs from 'dayjs';
import { FolderOpen } from 'lucide-react';
import nodePath from 'path-browserify-esm';
diff --git a/packages/builtin-tool-memory/package.json b/packages/builtin-tool-memory/package.json
index 062d96170eb..45c2c532f6f 100644
--- a/packages/builtin-tool-memory/package.json
+++ b/packages/builtin-tool-memory/package.json
@@ -20,8 +20,7 @@
"@types/json-schema": "^7.0.15"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-memory/src/client/Inspector/AddActivityMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/AddActivityMemory/index.tsx
index 602e8a33957..48b7de0c415 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/AddActivityMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/AddActivityMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/AddContextMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/AddContextMemory/index.tsx
index 0246b4bf7ce..a5b396ca325 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/AddContextMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/AddContextMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/AddExperienceMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/AddExperienceMemory/index.tsx
index a1b93ff5459..efa3cd863bc 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/AddExperienceMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/AddExperienceMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/AddIdentityMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/AddIdentityMemory/index.tsx
index d439ee495c3..38a0789ebff 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/AddIdentityMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/AddIdentityMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/AddPreferenceMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/AddPreferenceMemory/index.tsx
index c1151b7412e..e2b5c8cbc4a 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/AddPreferenceMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/AddPreferenceMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/QueryTaxonomyOptions/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/QueryTaxonomyOptions/index.tsx
index 1794e0215c8..c4eb5ed68c7 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/QueryTaxonomyOptions/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/QueryTaxonomyOptions/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/RemoveIdentityMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/RemoveIdentityMemory/index.tsx
index 873f9ce6c47..53825dc00b1 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/RemoveIdentityMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/RemoveIdentityMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/SearchUserMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/SearchUserMemory/index.tsx
index d50664b1e94..51a56ddd74d 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/SearchUserMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/SearchUserMemory/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Inspector/UpdateIdentityMemory/index.tsx b/packages/builtin-tool-memory/src/client/Inspector/UpdateIdentityMemory/index.tsx
index a00630a7f0e..810d9398bc3 100644
--- a/packages/builtin-tool-memory/src/client/Inspector/UpdateIdentityMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Inspector/UpdateIdentityMemory/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Render/SearchUserMemory/index.tsx b/packages/builtin-tool-memory/src/client/Render/SearchUserMemory/index.tsx
index 70a286451b4..1d6f6a67c69 100644
--- a/packages/builtin-tool-memory/src/client/Render/SearchUserMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Render/SearchUserMemory/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Accordion, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Accordion, Tag, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-memory/src/client/Render/UpdateIdentityMemory/index.tsx b/packages/builtin-tool-memory/src/client/Render/UpdateIdentityMemory/index.tsx
index 54ed4e5f198..c98fb8764eb 100644
--- a/packages/builtin-tool-memory/src/client/Render/UpdateIdentityMemory/index.tsx
+++ b/packages/builtin-tool-memory/src/client/Render/UpdateIdentityMemory/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Tag, Text } from '@lobehub/ui';
import { memo } from 'react';
import type { UpdateIdentityMemoryParams, UpdateIdentityMemoryState } from '../../../types';
diff --git a/packages/builtin-tool-memory/src/client/components/ActivityMemoryCard.tsx b/packages/builtin-tool-memory/src/client/components/ActivityMemoryCard.tsx
index 6fd8fe2f9b1..1c0fa6f4344 100644
--- a/packages/builtin-tool-memory/src/client/components/ActivityMemoryCard.tsx
+++ b/packages/builtin-tool-memory/src/client/components/ActivityMemoryCard.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Spin, Tag, Text } from '@lobehub/ui/base-ui';
+import { Spin, Tag, Text } from '@lobehub/ui';
import { memo } from 'react';
import BubblesLoading from '@/components/BubblesLoading';
diff --git a/packages/builtin-tool-memory/src/client/components/ContextMemoryCard.tsx b/packages/builtin-tool-memory/src/client/components/ContextMemoryCard.tsx
index 89f13b043d6..04196b3a3f9 100644
--- a/packages/builtin-tool-memory/src/client/components/ContextMemoryCard.tsx
+++ b/packages/builtin-tool-memory/src/client/components/ContextMemoryCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Progress, Spin, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Progress, Spin, Tag, Text } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import BubblesLoading from '@/components/BubblesLoading';
diff --git a/packages/builtin-tool-memory/src/client/components/ExperienceMemoryCard.tsx b/packages/builtin-tool-memory/src/client/components/ExperienceMemoryCard.tsx
index 9c0b47a3bf7..c0a2b98061f 100644
--- a/packages/builtin-tool-memory/src/client/components/ExperienceMemoryCard.tsx
+++ b/packages/builtin-tool-memory/src/client/components/ExperienceMemoryCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Accordion, Avatar, Spin, Steps, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Accordion, Avatar, Spin, Steps, Tag, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import BubblesLoading from '@/components/BubblesLoading';
diff --git a/packages/builtin-tool-memory/src/client/components/IdentityMemoryCard.tsx b/packages/builtin-tool-memory/src/client/components/IdentityMemoryCard.tsx
index 7fe05c4d980..72027eed9a5 100644
--- a/packages/builtin-tool-memory/src/client/components/IdentityMemoryCard.tsx
+++ b/packages/builtin-tool-memory/src/client/components/IdentityMemoryCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Progress, Spin, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Progress, Spin, Tag, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import BubblesLoading from '@/components/BubblesLoading';
diff --git a/packages/builtin-tool-memory/src/client/components/MemoryCardParts.tsx b/packages/builtin-tool-memory/src/client/components/MemoryCardParts.tsx
index 4ce1801be98..5f78596dcae 100644
--- a/packages/builtin-tool-memory/src/client/components/MemoryCardParts.tsx
+++ b/packages/builtin-tool-memory/src/client/components/MemoryCardParts.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Accordion, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Accordion, Tag, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-memory/src/client/components/PreferenceMemoryCard.tsx b/packages/builtin-tool-memory/src/client/components/PreferenceMemoryCard.tsx
index adfc2943fe7..26b4e66e23e 100644
--- a/packages/builtin-tool-memory/src/client/components/PreferenceMemoryCard.tsx
+++ b/packages/builtin-tool-memory/src/client/components/PreferenceMemoryCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Accordion, Avatar, Spin, Steps, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Accordion, Avatar, Spin, Steps, Tag, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import BubblesLoading from '@/components/BubblesLoading';
diff --git a/packages/builtin-tool-memory/src/client/components/RemovedIdentityCard.tsx b/packages/builtin-tool-memory/src/client/components/RemovedIdentityCard.tsx
index d981476cc2d..06d38318966 100644
--- a/packages/builtin-tool-memory/src/client/components/RemovedIdentityCard.tsx
+++ b/packages/builtin-tool-memory/src/client/components/RemovedIdentityCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Trash2 } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-message/package.json b/packages/builtin-tool-message/package.json
index c406cb9cfda..661b80ce5c2 100644
--- a/packages/builtin-tool-message/package.json
+++ b/packages/builtin-tool-message/package.json
@@ -19,8 +19,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-page-agent/package.json b/packages/builtin-tool-page-agent/package.json
index a95dd62855c..a375483309d 100644
--- a/packages/builtin-tool-page-agent/package.json
+++ b/packages/builtin-tool-page-agent/package.json
@@ -16,8 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"debug": "*",
"lucide-react": "*",
"polished": "*",
diff --git a/packages/builtin-tool-page-agent/src/client/Inspector/EditTitle/index.tsx b/packages/builtin-tool-page-agent/src/client/Inspector/EditTitle/index.tsx
index 644606406c4..c19ce8b7fb2 100644
--- a/packages/builtin-tool-page-agent/src/client/Inspector/EditTitle/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Inspector/EditTitle/index.tsx
@@ -2,7 +2,7 @@
import type { EditTitleArgs } from '@lobechat/editor-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-page-agent/src/client/Inspector/GetPageContent/index.tsx b/packages/builtin-tool-page-agent/src/client/Inspector/GetPageContent/index.tsx
index fa26db83f38..5e48919ca1f 100644
--- a/packages/builtin-tool-page-agent/src/client/Inspector/GetPageContent/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Inspector/GetPageContent/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-page-agent/src/client/Inspector/InitPage/index.tsx b/packages/builtin-tool-page-agent/src/client/Inspector/InitPage/index.tsx
index bd49a93c42f..fbcb6765371 100644
--- a/packages/builtin-tool-page-agent/src/client/Inspector/InitPage/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Inspector/InitPage/index.tsx
@@ -3,8 +3,8 @@
import type { InitDocumentArgs } from '@lobechat/editor-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-page-agent/src/client/Inspector/ModifyNodes/index.tsx b/packages/builtin-tool-page-agent/src/client/Inspector/ModifyNodes/index.tsx
index 7bc5f982913..dfd36867cdb 100644
--- a/packages/builtin-tool-page-agent/src/client/Inspector/ModifyNodes/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Inspector/ModifyNodes/index.tsx
@@ -3,8 +3,8 @@
import type { ModifyNodesArgs } from '@lobechat/editor-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { DiffIcon, Minus, Plus } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/packages/builtin-tool-page-agent/src/client/Inspector/ReplaceText/index.tsx b/packages/builtin-tool-page-agent/src/client/Inspector/ReplaceText/index.tsx
index 4a000ef0205..4aa6b1c9f70 100644
--- a/packages/builtin-tool-page-agent/src/client/Inspector/ReplaceText/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Inspector/ReplaceText/index.tsx
@@ -3,8 +3,8 @@
import type { ReplaceTextArgs } from '@lobechat/editor-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-page-agent/src/client/Render/ModifyNodes/index.tsx b/packages/builtin-tool-page-agent/src/client/Render/ModifyNodes/index.tsx
index 440cf6d967c..a07a1553b34 100644
--- a/packages/builtin-tool-page-agent/src/client/Render/ModifyNodes/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Render/ModifyNodes/index.tsx
@@ -3,8 +3,8 @@
import type { ModifyNodesArgs, ModifyOperation } from '@lobechat/editor-runtime';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { Check, DiffIcon, Minus, Plus, X } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-page-agent/src/client/Streaming/InitPage/index.tsx b/packages/builtin-tool-page-agent/src/client/Streaming/InitPage/index.tsx
index 68943eff2cc..7f2cbf82eda 100644
--- a/packages/builtin-tool-page-agent/src/client/Streaming/InitPage/index.tsx
+++ b/packages/builtin-tool-page-agent/src/client/Streaming/InitPage/index.tsx
@@ -3,8 +3,8 @@
import type { InitDocumentArgs } from '@lobechat/editor-runtime';
import type { BuiltinStreamingProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { FileText, Hash, ListTree } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-remote-device/src/client/Inspector/ActivateDevice/index.tsx b/packages/builtin-tool-remote-device/src/client/Inspector/ActivateDevice/index.tsx
index 1bcc4a298d4..35a39d12302 100644
--- a/packages/builtin-tool-remote-device/src/client/Inspector/ActivateDevice/index.tsx
+++ b/packages/builtin-tool-remote-device/src/client/Inspector/ActivateDevice/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-remote-device/src/client/Inspector/ListOnlineDevices/index.tsx b/packages/builtin-tool-remote-device/src/client/Inspector/ListOnlineDevices/index.tsx
index 2b16423833b..9377cf70c0a 100644
--- a/packages/builtin-tool-remote-device/src/client/Inspector/ListOnlineDevices/index.tsx
+++ b/packages/builtin-tool-remote-device/src/client/Inspector/ListOnlineDevices/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { MonitorIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-remote-device/src/client/Render/ActivateDevice/index.tsx b/packages/builtin-tool-remote-device/src/client/Render/ActivateDevice/index.tsx
index b7be8d7b37d..7d067a5bea4 100644
--- a/packages/builtin-tool-remote-device/src/client/Render/ActivateDevice/index.tsx
+++ b/packages/builtin-tool-remote-device/src/client/Render/ActivateDevice/index.tsx
@@ -2,7 +2,7 @@
import { type BuiltinRenderProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { AlertTriangleIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-remote-device/src/client/Render/DeviceCard/index.tsx b/packages/builtin-tool-remote-device/src/client/Render/DeviceCard/index.tsx
index 933091744e4..fe5706bbbab 100644
--- a/packages/builtin-tool-remote-device/src/client/Render/DeviceCard/index.tsx
+++ b/packages/builtin-tool-remote-device/src/client/Render/DeviceCard/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { CheckCircle2, MonitorIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-remote-device/src/client/Render/ListDevices/index.tsx b/packages/builtin-tool-remote-device/src/client/Render/ListDevices/index.tsx
index 3078e4b0892..2533596ef88 100644
--- a/packages/builtin-tool-remote-device/src/client/Render/ListDevices/index.tsx
+++ b/packages/builtin-tool-remote-device/src/client/Render/ListDevices/index.tsx
@@ -2,7 +2,7 @@
import { type BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-self-iteration/package.json b/packages/builtin-tool-self-iteration/package.json
index 9dc44d08790..7c6dd345012 100644
--- a/packages/builtin-tool-self-iteration/package.json
+++ b/packages/builtin-tool-self-iteration/package.json
@@ -14,8 +14,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-self-iteration/src/client/Inspector/DeclareSelfFeedbackIntent/index.tsx b/packages/builtin-tool-self-iteration/src/client/Inspector/DeclareSelfFeedbackIntent/index.tsx
index 7cc228ea305..80062008789 100644
--- a/packages/builtin-tool-self-iteration/src/client/Inspector/DeclareSelfFeedbackIntent/index.tsx
+++ b/packages/builtin-tool-self-iteration/src/client/Inspector/DeclareSelfFeedbackIntent/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { CheckCircle2, CircleAlert } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skill-store/package.json b/packages/builtin-tool-skill-store/package.json
index 0a5ba98ce76..2317a5677b8 100644
--- a/packages/builtin-tool-skill-store/package.json
+++ b/packages/builtin-tool-skill-store/package.json
@@ -13,8 +13,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"react": "*",
"react-i18next": "*"
}
diff --git a/packages/builtin-tool-skill-store/src/client/Inspector/ImportFromMarket/index.tsx b/packages/builtin-tool-skill-store/src/client/Inspector/ImportFromMarket/index.tsx
index 5c49966d5ee..4e3f9ac32a9 100644
--- a/packages/builtin-tool-skill-store/src/client/Inspector/ImportFromMarket/index.tsx
+++ b/packages/builtin-tool-skill-store/src/client/Inspector/ImportFromMarket/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skill-store/src/client/Inspector/ImportSkill/index.tsx b/packages/builtin-tool-skill-store/src/client/Inspector/ImportSkill/index.tsx
index 32d8af58801..36676385b42 100644
--- a/packages/builtin-tool-skill-store/src/client/Inspector/ImportSkill/index.tsx
+++ b/packages/builtin-tool-skill-store/src/client/Inspector/ImportSkill/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skill-store/src/client/Inspector/SearchSkill/index.tsx b/packages/builtin-tool-skill-store/src/client/Inspector/SearchSkill/index.tsx
index 6a416c7641e..e5cb1ce037c 100644
--- a/packages/builtin-tool-skill-store/src/client/Inspector/SearchSkill/index.tsx
+++ b/packages/builtin-tool-skill-store/src/client/Inspector/SearchSkill/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skill-store/src/client/Render/SearchSkill/index.tsx b/packages/builtin-tool-skill-store/src/client/Render/SearchSkill/index.tsx
index ebac045a42c..a43f3d4b2c3 100644
--- a/packages/builtin-tool-skill-store/src/client/Render/SearchSkill/index.tsx
+++ b/packages/builtin-tool-skill-store/src/client/Render/SearchSkill/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Tag, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skills/package.json b/packages/builtin-tool-skills/package.json
index e98e48c7e90..b2a98c0596a 100644
--- a/packages/builtin-tool-skills/package.json
+++ b/packages/builtin-tool-skills/package.json
@@ -18,8 +18,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"react": "*",
"react-i18next": "*"
}
diff --git a/packages/builtin-tool-skills/src/client/Inspector/ExecScript/index.tsx b/packages/builtin-tool-skills/src/client/Inspector/ExecScript/index.tsx
index 05aee0ee2f9..b2b88f888a5 100644
--- a/packages/builtin-tool-skills/src/client/Inspector/ExecScript/index.tsx
+++ b/packages/builtin-tool-skills/src/client/Inspector/ExecScript/index.tsx
@@ -1,8 +1,8 @@
'use client';
import { type BuiltinInspectorProps } from '@lobechat/types';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Spin } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skills/src/client/Inspector/ReadReference/index.tsx b/packages/builtin-tool-skills/src/client/Inspector/ReadReference/index.tsx
index 59339157999..9a4d18dedcb 100644
--- a/packages/builtin-tool-skills/src/client/Inspector/ReadReference/index.tsx
+++ b/packages/builtin-tool-skills/src/client/Inspector/ReadReference/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { type BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx b/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx
index d3eccbe5117..8ee28e0da78 100644
--- a/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx
+++ b/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx
@@ -3,7 +3,7 @@
import { AGENT_SKILLS_IDENTIFIER_PREFIX } from '@lobechat/const';
import { type BuiltinInspectorProps } from '@lobechat/types';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-skills/src/client/Render/ExecScript/index.tsx b/packages/builtin-tool-skills/src/client/Render/ExecScript/index.tsx
index a94853d21fb..682ff332eba 100644
--- a/packages/builtin-tool-skills/src/client/Render/ExecScript/index.tsx
+++ b/packages/builtin-tool-skills/src/client/Render/ExecScript/index.tsx
@@ -2,7 +2,7 @@
import { type BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Highlighter } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { ExecScriptParams, ExecScriptState } from '../../../types';
diff --git a/packages/builtin-tool-skills/src/client/Render/ReadReference/index.tsx b/packages/builtin-tool-skills/src/client/Render/ReadReference/index.tsx
index fa62bb66dee..f72cb153b13 100644
--- a/packages/builtin-tool-skills/src/client/Render/ReadReference/index.tsx
+++ b/packages/builtin-tool-skills/src/client/Render/ReadReference/index.tsx
@@ -2,8 +2,8 @@
import { type BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Highlighter, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { ReadReferenceParams, ReadReferenceState } from '../../../types';
diff --git a/packages/builtin-tool-skills/src/client/Render/RunSkill/index.tsx b/packages/builtin-tool-skills/src/client/Render/RunSkill/index.tsx
index f44bd043c51..d513ac23f5d 100644
--- a/packages/builtin-tool-skills/src/client/Render/RunSkill/index.tsx
+++ b/packages/builtin-tool-skills/src/client/Render/RunSkill/index.tsx
@@ -2,7 +2,7 @@
import { type BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Markdown, ScrollShadow } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { ActivateSkillParams, ActivateSkillState } from '../../../types';
diff --git a/packages/builtin-tool-task/package.json b/packages/builtin-tool-task/package.json
index 679ba393c15..c0957857941 100644
--- a/packages/builtin-tool-task/package.json
+++ b/packages/builtin-tool-task/package.json
@@ -17,8 +17,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-task/src/client/Inspector/CreateGoal/index.tsx b/packages/builtin-tool-task/src/client/Inspector/CreateGoal/index.tsx
index ffd0b01892c..6996e2bbac1 100644
--- a/packages/builtin-tool-task/src/client/Inspector/CreateGoal/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/CreateGoal/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/CreateTask/index.tsx b/packages/builtin-tool-task/src/client/Inspector/CreateTask/index.tsx
index cd917b0069e..755e69623c8 100644
--- a/packages/builtin-tool-task/src/client/Inspector/CreateTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/CreateTask/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CornerDownRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/CreateTasks/index.tsx b/packages/builtin-tool-task/src/client/Inspector/CreateTasks/index.tsx
index f9271d80c5e..d6a5eeed312 100644
--- a/packages/builtin-tool-task/src/client/Inspector/CreateTasks/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/CreateTasks/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/DeleteTask/index.tsx b/packages/builtin-tool-task/src/client/Inspector/DeleteTask/index.tsx
index 6e99125556b..ec7f237661d 100644
--- a/packages/builtin-tool-task/src/client/Inspector/DeleteTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/DeleteTask/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/EditTask/index.tsx b/packages/builtin-tool-task/src/client/Inspector/EditTask/index.tsx
index a77b8e9df74..a6d106f1cfd 100644
--- a/packages/builtin-tool-task/src/client/Inspector/EditTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/EditTask/index.tsx
@@ -2,7 +2,7 @@
import { priorityLabel } from '@lobechat/prompts';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/ListTasks/index.tsx b/packages/builtin-tool-task/src/client/Inspector/ListTasks/index.tsx
index 64ceee898ae..9c98fa5e977 100644
--- a/packages/builtin-tool-task/src/client/Inspector/ListTasks/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/ListTasks/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/ListWorkspaceMembers/index.tsx b/packages/builtin-tool-task/src/client/Inspector/ListWorkspaceMembers/index.tsx
index 538809e778c..acf15aa6f09 100644
--- a/packages/builtin-tool-task/src/client/Inspector/ListWorkspaceMembers/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/ListWorkspaceMembers/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/RunTask/index.tsx b/packages/builtin-tool-task/src/client/Inspector/RunTask/index.tsx
index a323b23970f..32addf8fd72 100644
--- a/packages/builtin-tool-task/src/client/Inspector/RunTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/RunTask/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Play } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/RunTasks/index.tsx b/packages/builtin-tool-task/src/client/Inspector/RunTasks/index.tsx
index 053fc829be9..f1d74fc60ab 100644
--- a/packages/builtin-tool-task/src/client/Inspector/RunTasks/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/RunTasks/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Play } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/SetTaskSchedule/index.tsx b/packages/builtin-tool-task/src/client/Inspector/SetTaskSchedule/index.tsx
index 0aa81280f50..9fc8a2d466f 100644
--- a/packages/builtin-tool-task/src/client/Inspector/SetTaskSchedule/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/SetTaskSchedule/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/SetTaskVerify/index.tsx b/packages/builtin-tool-task/src/client/Inspector/SetTaskVerify/index.tsx
index 9cd40a89393..0807a00abec 100644
--- a/packages/builtin-tool-task/src/client/Inspector/SetTaskVerify/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/SetTaskVerify/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/TaskComment/index.tsx b/packages/builtin-tool-task/src/client/Inspector/TaskComment/index.tsx
index afe639185a3..3945577ccb7 100644
--- a/packages/builtin-tool-task/src/client/Inspector/TaskComment/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/TaskComment/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/UpdateTaskStatus/index.tsx b/packages/builtin-tool-task/src/client/Inspector/UpdateTaskStatus/index.tsx
index 81d2665d020..44390080065 100644
--- a/packages/builtin-tool-task/src/client/Inspector/UpdateTaskStatus/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/UpdateTaskStatus/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps, TaskStatus } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Inspector/ViewTask/index.tsx b/packages/builtin-tool-task/src/client/Inspector/ViewTask/index.tsx
index 95d6b76b6cd..1f4cd471801 100644
--- a/packages/builtin-tool-task/src/client/Inspector/ViewTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Inspector/ViewTask/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Intervention/CreateGoal.tsx b/packages/builtin-tool-task/src/client/Intervention/CreateGoal.tsx
index 07e837f8aef..4b849e6a2a5 100644
--- a/packages/builtin-tool-task/src/client/Intervention/CreateGoal.tsx
+++ b/packages/builtin-tool-task/src/client/Intervention/CreateGoal.tsx
@@ -11,8 +11,8 @@ import {
} from '@lobehub/editor';
import { Editor, useEditor } from '@lobehub/editor/react';
import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Input, InputNumber, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, Input, InputNumber, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { ChevronRight, Pencil, Plus, Trash2 } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/CreateGoal/index.tsx b/packages/builtin-tool-task/src/client/Render/CreateGoal/index.tsx
index 6ca02512852..9a5e76878e6 100644
--- a/packages/builtin-tool-task/src/client/Render/CreateGoal/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/CreateGoal/index.tsx
@@ -3,8 +3,8 @@
import type { GoalStatus } from '@lobechat/const/goal';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import type { TFunction } from 'i18next';
import {
AlertTriangle,
diff --git a/packages/builtin-tool-task/src/client/Render/CreateTask/index.tsx b/packages/builtin-tool-task/src/client/Render/CreateTask/index.tsx
index fb6aef9705f..7ce80bef396 100644
--- a/packages/builtin-tool-task/src/client/Render/CreateTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/CreateTask/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Markdown } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { PanelRight, PanelRightClose } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/CreateTasks/index.tsx b/packages/builtin-tool-task/src/client/Render/CreateTasks/index.tsx
index d606bc2f999..495427697a6 100644
--- a/packages/builtin-tool-task/src/client/Render/CreateTasks/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/CreateTasks/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/EditTask/index.tsx b/packages/builtin-tool-task/src/client/Render/EditTask/index.tsx
index eb0ed1bbb63..9ba6fa1398a 100644
--- a/packages/builtin-tool-task/src/client/Render/EditTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/EditTask/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Pencil } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/RunTask/index.tsx b/packages/builtin-tool-task/src/client/Render/RunTask/index.tsx
index b9a0077846c..80d5413985c 100644
--- a/packages/builtin-tool-task/src/client/Render/RunTask/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/RunTask/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Markdown } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { Play } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/RunTasks/index.tsx b/packages/builtin-tool-task/src/client/Render/RunTasks/index.tsx
index cb5c703566b..2adf8919ee9 100644
--- a/packages/builtin-tool-task/src/client/Render/RunTasks/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/RunTasks/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/SetTaskVerify/index.tsx b/packages/builtin-tool-task/src/client/Render/SetTaskVerify/index.tsx
index 5b39f9a1ecb..755ffdd09f5 100644
--- a/packages/builtin-tool-task/src/client/Render/SetTaskVerify/index.tsx
+++ b/packages/builtin-tool-task/src/client/Render/SetTaskVerify/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Icon, Markdown } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { Check, ShieldCheck, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-task/src/client/Render/index.test.tsx b/packages/builtin-tool-task/src/client/Render/index.test.tsx
index cfc2f25ff17..4bfc36a9aa2 100644
--- a/packages/builtin-tool-task/src/client/Render/index.test.tsx
+++ b/packages/builtin-tool-task/src/client/Render/index.test.tsx
@@ -26,7 +26,7 @@ vi.mock('react-i18next', () => ({
// base-ui Button requires the app-level motion provider (this package has no
// shared vitest setup, unlike src tests which stub it globally).
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
Button: ({ children, ...props }: { children?: ReactNode }) => (
<button type="button" {...props}>
diff --git a/packages/builtin-tool-task/src/client/Render/shared.tsx b/packages/builtin-tool-task/src/client/Render/shared.tsx
index 02399e3c3a2..348f79f0918 100644
--- a/packages/builtin-tool-task/src/client/Render/shared.tsx
+++ b/packages/builtin-tool-task/src/client/Render/shared.tsx
@@ -1,8 +1,8 @@
'use client';
import { Block, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { PanelRight, PanelRightClose } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/packages/builtin-tool-user-interaction/package.json b/packages/builtin-tool-user-interaction/package.json
index 21ac43bd678..0485c3387bf 100644
--- a/packages/builtin-tool-user-interaction/package.json
+++ b/packages/builtin-tool-user-interaction/package.json
@@ -16,8 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "^19"
}
diff --git a/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.test.tsx b/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.test.tsx
index cdd61f6382d..2d541fecab9 100644
--- a/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.test.tsx
+++ b/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.test.tsx
@@ -19,7 +19,7 @@ vi.mock('@lobechat/shared-tool-ui/styles', () => ({
vi.mock('@lobehub/ui', () => ({}));
-vi.mock('@lobehub/ui/base-ui', () => ({}));
+vi.mock('@lobehub/ui', () => ({}));
describe('AskUserQuestionInspector', () => {
afterEach(cleanup);
diff --git a/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.tsx b/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.tsx
index 44ea72f19dc..4695de98517 100644
--- a/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.tsx
+++ b/packages/builtin-tool-user-interaction/src/client/Inspector/AskUserQuestion/index.tsx
@@ -3,7 +3,7 @@
import { normalizeAskUserQuestions } from '@lobechat/shared-tool-ui/ask-user';
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-user-interaction/src/client/Intervention/AskUserQuestion/index.tsx b/packages/builtin-tool-user-interaction/src/client/Intervention/AskUserQuestion/index.tsx
index 46f480fef5d..b115ea8c168 100644
--- a/packages/builtin-tool-user-interaction/src/client/Intervention/AskUserQuestion/index.tsx
+++ b/packages/builtin-tool-user-interaction/src/client/Intervention/AskUserQuestion/index.tsx
@@ -9,7 +9,7 @@ import {
} from '@lobechat/shared-tool-ui/ask-user';
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, Spin, Text } from '@lobehub/ui/base-ui';
+import { Alert, Button, Spin, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-video-generation/package.json b/packages/builtin-tool-video-generation/package.json
index 17992512952..029518224c1 100644
--- a/packages/builtin-tool-video-generation/package.json
+++ b/packages/builtin-tool-video-generation/package.json
@@ -16,9 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-video-generation/src/client/Inspector/index.tsx b/packages/builtin-tool-video-generation/src/client/Inspector/index.tsx
index 1ca1724fbc4..fa28ecb6876 100644
--- a/packages/builtin-tool-video-generation/src/client/Inspector/index.tsx
+++ b/packages/builtin-tool-video-generation/src/client/Inspector/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { Clapperboard, ListTree, RefreshCw, SlidersHorizontal } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-video-generation/src/client/Placeholder/GenerateVideo.tsx b/packages/builtin-tool-video-generation/src/client/Placeholder/GenerateVideo.tsx
index a4e6df86400..17b78afdadc 100644
--- a/packages/builtin-tool-video-generation/src/client/Placeholder/GenerateVideo.tsx
+++ b/packages/builtin-tool-video-generation/src/client/Placeholder/GenerateVideo.tsx
@@ -2,7 +2,7 @@
import type { BuiltinPlaceholderProps } from '@lobechat/types';
import { Block, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { GenerateVideoParams } from '../../types';
diff --git a/packages/builtin-tool-video-generation/src/client/Render/GenerateVideo.tsx b/packages/builtin-tool-video-generation/src/client/Render/GenerateVideo.tsx
index 0b7e0d39681..9c66a4e1f1d 100644
--- a/packages/builtin-tool-video-generation/src/client/Render/GenerateVideo.tsx
+++ b/packages/builtin-tool-video-generation/src/client/Render/GenerateVideo.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps, VideoGenerationAsset } from '@lobechat/types';
import { Block } from '@lobehub/ui';
-import { Alert, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Alert, Button, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-video-generation/src/client/Render/GetVideoGenerationStatus.tsx b/packages/builtin-tool-video-generation/src/client/Render/GetVideoGenerationStatus.tsx
index 37de85ce1f5..1f1137a61c4 100644
--- a/packages/builtin-tool-video-generation/src/client/Render/GetVideoGenerationStatus.tsx
+++ b/packages/builtin-tool-video-generation/src/client/Render/GetVideoGenerationStatus.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps, VideoGenerationAsset } from '@lobechat/types';
import { Block } from '@lobehub/ui';
-import { Alert, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-video-generation/src/client/Render/GetVideoModelParameters.tsx b/packages/builtin-tool-video-generation/src/client/Render/GetVideoModelParameters.tsx
index 8a30555d72a..345cddb21c4 100644
--- a/packages/builtin-tool-video-generation/src/client/Render/GetVideoModelParameters.tsx
+++ b/packages/builtin-tool-video-generation/src/client/Render/GetVideoModelParameters.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox } from '@lobehub/ui';
-import { Alert, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-video-generation/src/client/Render/ListVideoModels.tsx b/packages/builtin-tool-video-generation/src/client/Render/ListVideoModels.tsx
index 50bc67554bc..12e212855cd 100644
--- a/packages/builtin-tool-video-generation/src/client/Render/ListVideoModels.tsx
+++ b/packages/builtin-tool-video-generation/src/client/Render/ListVideoModels.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox } from '@lobehub/ui';
-import { Alert, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Alert, Button, Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { ChevronDown, ChevronUp } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-video-generation/src/client/components/GenerationProgress.tsx b/packages/builtin-tool-video-generation/src/client/components/GenerationProgress.tsx
index ac33599d436..4c75053cf26 100644
--- a/packages/builtin-tool-video-generation/src/client/components/GenerationProgress.tsx
+++ b/packages/builtin-tool-video-generation/src/client/components/GenerationProgress.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Progress, Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Progress, Spin, Text } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/package.json b/packages/builtin-tool-web-browsing/package.json
index a5fc37763e4..c704501a9be 100644
--- a/packages/builtin-tool-web-browsing/package.json
+++ b/packages/builtin-tool-web-browsing/package.json
@@ -16,9 +16,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlMultiPages/index.tsx b/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlMultiPages/index.tsx
index a580fcd337f..6f8f0449b3a 100644
--- a/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlMultiPages/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlMultiPages/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlSinglePage/index.tsx b/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlSinglePage/index.tsx
index 368655dbf8b..bf904aaccf3 100644
--- a/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlSinglePage/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlSinglePage/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Inspector/Search/index.tsx b/packages/builtin-tool-web-browsing/src/client/Inspector/Search/index.tsx
index 07b25e520d1..6001d1e9c63 100644
--- a/packages/builtin-tool-web-browsing/src/client/Inspector/Search/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Inspector/Search/index.tsx
@@ -1,8 +1,8 @@
'use client';
import type { BuiltinInspectorProps, SearchQuery, UniformSearchResponse } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Placeholder/Search.tsx b/packages/builtin-tool-web-browsing/src/client/Placeholder/Search.tsx
index 2e903c895fb..a25b9b23352 100644
--- a/packages/builtin-tool-web-browsing/src/client/Placeholder/Search.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Placeholder/Search.tsx
@@ -1,7 +1,7 @@
import type { BuiltinPlaceholderProps, SearchQuery } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Skeleton } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/PageContent/index.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/PageContent/index.tsx
index 5c5b6c32c0e..3d4770ff9ef 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/PageContent/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/PageContent/index.tsx
@@ -1,8 +1,8 @@
import type { CrawlPluginState, CrawlResult } from '@lobechat/types';
import type { CrawlSuccessResult } from '@lobechat/web-crawler';
import { CopyButton, Flexbox, Highlighter, Icon, Markdown, stopPropagation } from '@lobehub/ui';
-import { Alert, Descriptions, Segmented, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Descriptions, Segmented, Skeleton, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ExternalLink } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/CategoryAvatar.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/CategoryAvatar.tsx
index 7d6cbb65b6d..0f35a0a14b1 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/CategoryAvatar.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/CategoryAvatar.tsx
@@ -1,6 +1,6 @@
import { Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import {
LucideAtom,
LucideClapperboard,
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/TitleExtra.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/TitleExtra.tsx
index 2d4d3032143..fafb91655d8 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/TitleExtra.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/TitleExtra.tsx
@@ -1,5 +1,5 @@
import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Tag, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx
index d4fa9dc7cde..61365fe62ed 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/Video.tsx
@@ -1,7 +1,7 @@
import type { UniformSearchResult } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useState } from 'react';
import { ENGINE_ICON_MAP } from '../../../../../const';
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/index.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/index.tsx
index 2f9d77ad9dd..a158bdaf741 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Search/ResultList/SearchItem/index.tsx
@@ -2,8 +2,8 @@ import { isDesktop } from '@lobechat/const';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
import type { UniformSearchResult } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import type { MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Search/index.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Search/index.tsx
index 422c2361c52..a9203a98f39 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Search/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Search/index.tsx
@@ -1,6 +1,6 @@
import type { SearchQuery, UniformSearchResponse } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import { uniq } from 'es-toolkit/compat';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Portal/Title.tsx b/packages/builtin-tool-web-browsing/src/client/Portal/Title.tsx
index cee163253d8..6d7b6cd7f8d 100644
--- a/packages/builtin-tool-web-browsing/src/client/Portal/Title.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Portal/Title.tsx
@@ -2,7 +2,7 @@
import type { BuiltinPortalTitleProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Loading.tsx b/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Loading.tsx
index 9173c42ee7a..24887bad152 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Loading.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Loading.tsx
@@ -1,8 +1,8 @@
'use client';
import { CopyButton, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Skeleton } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Result.tsx b/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Result.tsx
index d15d325a0bc..b86b20441eb 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Result.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/PageContent/Result.tsx
@@ -2,8 +2,8 @@
import type { CrawlErrorResult, CrawlSuccessResult } from '@lobechat/web-crawler';
import { Block, Flexbox, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Alert, Descriptions, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Alert, Descriptions, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ExternalLink } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/index.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/index.tsx
index adcfe75ea02..276a70c0ae0 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/index.tsx
@@ -1,5 +1,5 @@
import { Center, Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/style.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/style.tsx
index 559e1a00f8d..f858e46b803 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/style.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/ConfigForm/style.tsx
@@ -1,7 +1,7 @@
import type { CenterProps } from '@lobehub/ui';
import { Center, Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/SearchView.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/SearchView.tsx
index de1d943d156..d1776418aad 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/SearchView.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/SearchView.tsx
@@ -1,6 +1,6 @@
import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Skeleton, Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/index.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/index.tsx
index eda1cf75ce2..2d05390267a 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchQuery/index.tsx
@@ -1,5 +1,5 @@
import type { SearchQuery, UniformSearchResponse } from '@lobechat/types';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { uniq } from 'es-toolkit/compat';
import { XIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/SearchResultItem.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/SearchResultItem.tsx
index f69ffd971e2..0cf59a89307 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/SearchResultItem.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/SearchResultItem.tsx
@@ -2,8 +2,8 @@ import { isDesktop } from '@lobechat/const';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
import type { UniformSearchResult } from '@lobechat/types';
import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import type { CSSProperties, MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/ShowMore.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/ShowMore.tsx
index a93edbf0de8..ac348c96510 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/ShowMore.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/ShowMore.tsx
@@ -1,6 +1,6 @@
import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import type { CSSProperties } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/index.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/index.tsx
index 64f003900c8..b288f4ec6df 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/SearchResult/index.tsx
@@ -1,6 +1,6 @@
import type { SearchQuery, UniformSearchResponse } from '@lobechat/types';
import { Block, Empty, Flexbox, Icon, ScrollShadow } from '@lobehub/ui';
-import { Button, Skeleton } from '@lobehub/ui/base-ui';
+import { Button, Skeleton } from '@lobehub/ui';
import { uniq } from 'es-toolkit/compat';
import { Edit2Icon, SearchIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tool-web-browsing/src/client/Render/Search/index.tsx b/packages/builtin-tool-web-browsing/src/client/Render/Search/index.tsx
index fe7bfc1f067..c3f9fd65b2d 100644
--- a/packages/builtin-tool-web-browsing/src/client/Render/Search/index.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/Render/Search/index.tsx
@@ -1,6 +1,6 @@
import type { BuiltinRenderProps, SearchQuery, UniformSearchResponse } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { memo, useState } from 'react';
import ConfigForm from './ConfigForm';
diff --git a/packages/builtin-tool-web-browsing/src/client/components/CategoryAvatar.tsx b/packages/builtin-tool-web-browsing/src/client/components/CategoryAvatar.tsx
index 52662c0840e..62b7392536d 100644
--- a/packages/builtin-tool-web-browsing/src/client/components/CategoryAvatar.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/components/CategoryAvatar.tsx
@@ -1,5 +1,5 @@
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { CATEGORY_ICON_MAP } from '../../const';
diff --git a/packages/builtin-tool-web-browsing/src/client/components/EngineAvatar.tsx b/packages/builtin-tool-web-browsing/src/client/components/EngineAvatar.tsx
index 6869ff25936..3c91216b5b8 100644
--- a/packages/builtin-tool-web-browsing/src/client/components/EngineAvatar.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/components/EngineAvatar.tsx
@@ -1,5 +1,5 @@
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { ENGINE_ICON_MAP } from '../../const';
diff --git a/packages/builtin-tool-web-browsing/src/client/components/SearchBar.tsx b/packages/builtin-tool-web-browsing/src/client/components/SearchBar.tsx
index dea05d4bab6..c73ec4d8f40 100644
--- a/packages/builtin-tool-web-browsing/src/client/components/SearchBar.tsx
+++ b/packages/builtin-tool-web-browsing/src/client/components/SearchBar.tsx
@@ -1,7 +1,7 @@
import type { SearchQuery } from '@lobechat/types';
import { Block, Flexbox, SearchBar as Search, Tooltip } from '@lobehub/ui';
-import { CheckboxGroup, Segmented, Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { CheckboxGroup, Segmented, Select, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/package.json b/packages/builtin-tool-web-onboarding/package.json
index 50d3f86c458..f83816b5124 100644
--- a/packages/builtin-tool-web-onboarding/package.json
+++ b/packages/builtin-tool-web-onboarding/package.json
@@ -21,9 +21,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd": "^6",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"react": "*",
"react-i18next": "*",
"swr": "^2"
diff --git a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/ShowAgentMarketplace/index.tsx b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/ShowAgentMarketplace/index.tsx
index 5ba3360b11e..035694e493e 100644
--- a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/ShowAgentMarketplace/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/ShowAgentMarketplace/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/SubmitAgentPick/index.tsx b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/SubmitAgentPick/index.tsx
index b417df9369d..a87057f5100 100644
--- a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/SubmitAgentPick/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/SubmitAgentPick/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/_styles.ts b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/_styles.ts
index f572668aa3b..59e79a157f4 100644
--- a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/_styles.ts
+++ b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Inspector/_styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const inspectorChipStyles = createStaticStyles(({ css, cssVar }) => ({
chip: css`
diff --git a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/index.tsx b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/index.tsx
index e9996b76f0f..be2a4a22dad 100644
--- a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInterventionProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Avatar, Button, Text } from '@lobehub/ui';
+import { cx } from '@lobehub/ui';
import type { KeyboardEvent } from 'react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/style.ts b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/style.ts
index 37b1c634ba4..154289b8b00 100644
--- a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/style.ts
+++ b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Intervention/PickAgents/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
const pulse = keyframes`
0%,
diff --git a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Render/SubmitAgentPick/index.tsx b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Render/SubmitAgentPick/index.tsx
index c8a6d89eef4..1288c9b6591 100644
--- a/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Render/SubmitAgentPick/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/agentMarketplace/client/Render/SubmitAgentPick/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Avatar, Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Inspector/FinishOnboarding/index.tsx b/packages/builtin-tool-web-onboarding/src/client/Inspector/FinishOnboarding/index.tsx
index 0fd328af862..5c567d37a0f 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Inspector/FinishOnboarding/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Inspector/FinishOnboarding/index.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { CheckCircle2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Inspector/ReadDocument/index.tsx b/packages/builtin-tool-web-onboarding/src/client/Inspector/ReadDocument/index.tsx
index abf20af3f27..4f7f5ceb6f9 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Inspector/ReadDocument/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Inspector/ReadDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Inspector/SaveUserQuestion/index.tsx b/packages/builtin-tool-web-onboarding/src/client/Inspector/SaveUserQuestion/index.tsx
index 2afce858ebc..3859c415d3d 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Inspector/SaveUserQuestion/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Inspector/SaveUserQuestion/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps, SaveUserQuestionInput } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Inspector/UpdateDocument/index.tsx b/packages/builtin-tool-web-onboarding/src/client/Inspector/UpdateDocument/index.tsx
index b37392dc3ba..402efd268c6 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Inspector/UpdateDocument/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Inspector/UpdateDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Inspector/WriteDocument/index.tsx b/packages/builtin-tool-web-onboarding/src/client/Inspector/WriteDocument/index.tsx
index 2d00a4b0221..76f16b64af9 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Inspector/WriteDocument/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Inspector/WriteDocument/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Inspector/_styles.ts b/packages/builtin-tool-web-onboarding/src/client/Inspector/_styles.ts
index df6ba983efe..e5cf29d5bc2 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Inspector/_styles.ts
+++ b/packages/builtin-tool-web-onboarding/src/client/Inspector/_styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const inspectorChipStyles = createStaticStyles(({ css, cssVar }) => ({
chip: css`
diff --git a/packages/builtin-tool-web-onboarding/src/client/Intervention/SaveUserQuestion.tsx b/packages/builtin-tool-web-onboarding/src/client/Intervention/SaveUserQuestion.tsx
index b35fab65232..40c0312784b 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Intervention/SaveUserQuestion.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Intervention/SaveUserQuestion.tsx
@@ -2,7 +2,7 @@
import type { BuiltinInterventionProps, SaveUserQuestionInput } from '@lobechat/types';
import { EmojiPicker, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import type { CSSProperties } from 'react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Render/SaveUserQuestion/index.tsx b/packages/builtin-tool-web-onboarding/src/client/Render/SaveUserQuestion/index.tsx
index 4d7b4c59fff..35822f61968 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Render/SaveUserQuestion/index.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Render/SaveUserQuestion/index.tsx
@@ -3,8 +3,8 @@
import type { InterestAreaKey } from '@lobechat/const';
import type { BuiltinRenderProps, SaveUserQuestionInput } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Render/UpdateDocument/HunkBlock.tsx b/packages/builtin-tool-web-onboarding/src/client/Render/UpdateDocument/HunkBlock.tsx
index ba23084674b..82c4ff991e3 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Render/UpdateDocument/HunkBlock.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Render/UpdateDocument/HunkBlock.tsx
@@ -1,7 +1,7 @@
'use client';
import type { MarkdownPatchHunk } from '@lobechat/markdown-patch';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tool-web-onboarding/src/client/Render/WriteDocument/DocumentCard.tsx b/packages/builtin-tool-web-onboarding/src/client/Render/WriteDocument/DocumentCard.tsx
index 0e659df859c..c44d36f7e75 100644
--- a/packages/builtin-tool-web-onboarding/src/client/Render/WriteDocument/DocumentCard.tsx
+++ b/packages/builtin-tool-web-onboarding/src/client/Render/WriteDocument/DocumentCard.tsx
@@ -1,7 +1,7 @@
'use client';
import { CopyButton, Flexbox, Markdown, ScrollShadow, TooltipGroup } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { FileTextIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tools/package.json b/packages/builtin-tools/package.json
index 008b2bfa687..62b2021be09 100644
--- a/packages/builtin-tools/package.json
+++ b/packages/builtin-tools/package.json
@@ -59,15 +59,14 @@
"@lobechat/builtin-tool-web-browsing": "workspace:*",
"@lobechat/builtin-tool-web-onboarding": "workspace:*",
"@lobechat/const": "workspace:*",
- "@lobehub/icons": "^5.11.0"
+ "@lobehub/icons": "^6.0.0"
},
"devDependencies": {
"@lobechat/types": "workspace:*",
"zod": "^4.4.3"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"react": "*",
"react-i18next": "*"
diff --git a/packages/builtin-tools/src/codex/CollabToolInspector.tsx b/packages/builtin-tools/src/codex/CollabToolInspector.tsx
index c61948af2d4..ed30983bf14 100644
--- a/packages/builtin-tools/src/codex/CollabToolInspector.tsx
+++ b/packages/builtin-tools/src/codex/CollabToolInspector.tsx
@@ -6,7 +6,7 @@ import {
shinyTextStyles,
} from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import type { TFunction } from 'i18next';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/CollabToolRender.tsx b/packages/builtin-tools/src/codex/CollabToolRender.tsx
index f95b480aa21..7a4a8fe5df9 100644
--- a/packages/builtin-tools/src/codex/CollabToolRender.tsx
+++ b/packages/builtin-tools/src/codex/CollabToolRender.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/ErrorInspector.tsx b/packages/builtin-tools/src/codex/ErrorInspector.tsx
index 8cd122fc934..81d1adcee4a 100644
--- a/packages/builtin-tools/src/codex/ErrorInspector.tsx
+++ b/packages/builtin-tools/src/codex/ErrorInspector.tsx
@@ -3,7 +3,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { AlertTriangle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/FileChangeInspector.tsx b/packages/builtin-tools/src/codex/FileChangeInspector.tsx
index b610d0d0246..276f1cebc17 100644
--- a/packages/builtin-tools/src/codex/FileChangeInspector.tsx
+++ b/packages/builtin-tools/src/codex/FileChangeInspector.tsx
@@ -3,7 +3,7 @@
import { FilePathDisplay } from '@lobechat/shared-tool-ui/components';
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/FileChangeRender.tsx b/packages/builtin-tools/src/codex/FileChangeRender.tsx
index 79ed26ccae2..67b4f58f21f 100644
--- a/packages/builtin-tools/src/codex/FileChangeRender.tsx
+++ b/packages/builtin-tools/src/codex/FileChangeRender.tsx
@@ -9,8 +9,8 @@ import {
} from '@lobechat/shared-tool-ui/components';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, PatchDiff } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/ImageOutputRender.tsx b/packages/builtin-tools/src/codex/ImageOutputRender.tsx
index 193c196aac8..9d3027deef3 100644
--- a/packages/builtin-tools/src/codex/ImageOutputRender.tsx
+++ b/packages/builtin-tools/src/codex/ImageOutputRender.tsx
@@ -1,8 +1,7 @@
'use client';
import type { BuiltinRenderProps } from '@lobechat/types';
-import { Flexbox, Image, PreviewGroup } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Image, PreviewGroup, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
interface ImageOutputState {
diff --git a/packages/builtin-tools/src/codex/McpToolInspector.tsx b/packages/builtin-tools/src/codex/McpToolInspector.tsx
index 52b2fd29041..e8fbc60bb1a 100644
--- a/packages/builtin-tools/src/codex/McpToolInspector.tsx
+++ b/packages/builtin-tools/src/codex/McpToolInspector.tsx
@@ -11,7 +11,7 @@ import {
shinyTextStyles,
} from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import type { ComponentType } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/McpToolRender.tsx b/packages/builtin-tools/src/codex/McpToolRender.tsx
index 7fd0298b531..34f9d2f33b2 100644
--- a/packages/builtin-tools/src/codex/McpToolRender.tsx
+++ b/packages/builtin-tools/src/codex/McpToolRender.tsx
@@ -4,8 +4,8 @@ import { LINEAR_TOOL_NAMES } from '@lobechat/shared-tool-ui/inspectors';
import { GitHubRender, LinearRender } from '@lobechat/shared-tool-ui/renders';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import type { ComponentType } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/WebSearchInspector.tsx b/packages/builtin-tools/src/codex/WebSearchInspector.tsx
index c9eb66ebac7..ec514127805 100644
--- a/packages/builtin-tools/src/codex/WebSearchInspector.tsx
+++ b/packages/builtin-tools/src/codex/WebSearchInspector.tsx
@@ -6,7 +6,7 @@ import {
shinyTextStyles,
} from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/codex/WebSearchRender.tsx b/packages/builtin-tools/src/codex/WebSearchRender.tsx
index cd23a648de3..4346dd69a36 100644
--- a/packages/builtin-tools/src/codex/WebSearchRender.tsx
+++ b/packages/builtin-tools/src/codex/WebSearchRender.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/github/RunCommandInspector.tsx b/packages/builtin-tools/src/github/RunCommandInspector.tsx
index b864bb12373..4e0cfd4b95b 100644
--- a/packages/builtin-tools/src/github/RunCommandInspector.tsx
+++ b/packages/builtin-tools/src/github/RunCommandInspector.tsx
@@ -3,7 +3,7 @@
import { inspectorTextStyles, shinyTextStyles } from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/builtin-tools/src/github/RunCommandRender.tsx b/packages/builtin-tools/src/github/RunCommandRender.tsx
index 0cf911b024a..9126bca7187 100644
--- a/packages/builtin-tools/src/github/RunCommandRender.tsx
+++ b/packages/builtin-tools/src/github/RunCommandRender.tsx
@@ -2,8 +2,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import {
diff --git a/packages/builtin-tools/src/kimiCode/index.tsx b/packages/builtin-tools/src/kimiCode/index.tsx
index f9a377acfcb..9a4957e55e2 100644
--- a/packages/builtin-tools/src/kimiCode/index.tsx
+++ b/packages/builtin-tools/src/kimiCode/index.tsx
@@ -16,8 +16,8 @@ import {
} from '@lobechat/shared-tool-ui/styles';
import type { BuiltinInspector, BuiltinInspectorProps, BuiltinRenderProps } from '@lobechat/types';
import { CodeDiff, Highlighter, Markdown } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Skeleton } from '@lobehub/ui';
+import { cx } from '@lobehub/ui';
import path from 'path-browserify-esm';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/builtin-tools/src/notebook/DocumentCard.tsx b/packages/builtin-tools/src/notebook/DocumentCard.tsx
index 409617a762d..d35c401149d 100644
--- a/packages/builtin-tools/src/notebook/DocumentCard.tsx
+++ b/packages/builtin-tools/src/notebook/DocumentCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { CopyButton, Flexbox, Markdown, ScrollShadow, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Button } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Maximize2, Minimize2, NotebookText, PencilLine } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/const/package.json b/packages/const/package.json
index ff682e7357a..3c4085be690 100644
--- a/packages/const/package.json
+++ b/packages/const/package.json
@@ -27,6 +27,6 @@
},
"peerDependencies": {
"@icons-pack/react-simple-icons": "^13.8.0",
- "@lobehub/ui": "^5"
+ "@lobehub/ui": "^6.0.4"
}
}
diff --git a/packages/const/src/layoutTokens.ts b/packages/const/src/layoutTokens.ts
index 94c9986e57c..d9398806666 100644
--- a/packages/const/src/layoutTokens.ts
+++ b/packages/const/src/layoutTokens.ts
@@ -1,5 +1,5 @@
import type { ActionIconProps } from '@lobehub/ui';
-import type { FormProps } from '@lobehub/ui/base-ui/form';
+import type { FormProps } from '@lobehub/ui/form';
export const HEADER_HEIGHT = 64;
export const MOBILE_NABBAR_HEIGHT = 44;
diff --git a/packages/editor-runtime/package.json b/packages/editor-runtime/package.json
index c27d24b0604..989736a43f0 100644
--- a/packages/editor-runtime/package.json
+++ b/packages/editor-runtime/package.json
@@ -13,7 +13,7 @@
"lexical": "0.42.0"
},
"peerDependencies": {
- "@lobehub/editor": "^4.17.1",
+ "@lobehub/editor": "^5.0.0",
"debug": "*"
}
}
diff --git a/packages/heterogeneous-agents/package.json b/packages/heterogeneous-agents/package.json
index db7c4a8689e..7c1319948bd 100644
--- a/packages/heterogeneous-agents/package.json
+++ b/packages/heterogeneous-agents/package.json
@@ -34,7 +34,7 @@
"@lobechat/agent-gateway-client": "workspace:*",
"@lobechat/types": "workspace:*",
"@lobechat/utils": "workspace:*",
- "@lobehub/icons": "^5.15.0",
+ "@lobehub/icons": "^6.0.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"diff": "^8.0.4",
"zod": "^4.4.3"
diff --git a/packages/locales/src/default/color.ts b/packages/locales/src/default/color.ts
index 5fb7af25a64..8b9440ae4ae 100644
--- a/packages/locales/src/default/color.ts
+++ b/packages/locales/src/default/color.ts
@@ -1,5 +1,6 @@
export default {
blue: 'Dawn Blue',
+ custom: 'Custom',
cyan: 'Bright Cyan',
default: 'Default',
geekblue: 'Geek Blue',
diff --git a/packages/shared-tool-ui/package.json b/packages/shared-tool-ui/package.json
index 4a319005606..205f6c6ead8 100644
--- a/packages/shared-tool-ui/package.json
+++ b/packages/shared-tool-ui/package.json
@@ -24,8 +24,7 @@
"@lobechat/types": "workspace:*"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
- "antd-style": "*",
+ "@lobehub/ui": "^6.0.4",
"lucide-react": "*",
"path-browserify-esm": "*",
"react": "*",
diff --git a/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionResult.tsx b/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionResult.tsx
index c495c754ea6..d03cde757ab 100644
--- a/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionResult.tsx
+++ b/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionResult.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import type { AskUserQuestionItem } from './types';
diff --git a/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionView.tsx b/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionView.tsx
index 570882c9e0e..93efca99031 100644
--- a/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionView.tsx
+++ b/packages/shared-tool-ui/src/AskUserQuestion/AskUserQuestionView.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox, Hotkey, Icon, KeyMapEnum } from '@lobehub/ui';
-import { Button, Tabs, Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, Tabs, Text, TextArea } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Check, PenLine, Replace, Send, X } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
diff --git a/packages/shared-tool-ui/src/AskUserQuestion/QuestionPanel.tsx b/packages/shared-tool-ui/src/AskUserQuestion/QuestionPanel.tsx
index e3fb99f05f4..693b6001e32 100644
--- a/packages/shared-tool-ui/src/AskUserQuestion/QuestionPanel.tsx
+++ b/packages/shared-tool-ui/src/AskUserQuestion/QuestionPanel.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Text, TextArea } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { OptionCard } from '../components';
diff --git a/packages/shared-tool-ui/src/Inspector/EditLocalFile/index.tsx b/packages/shared-tool-ui/src/Inspector/EditLocalFile/index.tsx
index 0caa6138783..5fc6f5d9a6c 100644
--- a/packages/shared-tool-ui/src/Inspector/EditLocalFile/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/EditLocalFile/index.tsx
@@ -3,8 +3,8 @@
import type { EditFileState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Minus, Plus } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/packages/shared-tool-ui/src/Inspector/GitHub/Inspector.tsx b/packages/shared-tool-ui/src/Inspector/GitHub/Inspector.tsx
index e9819717f52..286e96b0938 100644
--- a/packages/shared-tool-ui/src/Inspector/GitHub/Inspector.tsx
+++ b/packages/shared-tool-ui/src/Inspector/GitHub/Inspector.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { GitBranch, Hash } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/shared-tool-ui/src/Inspector/GlobLocalFiles/index.tsx b/packages/shared-tool-ui/src/Inspector/GlobLocalFiles/index.tsx
index 428952f984e..87e79cc8da0 100644
--- a/packages/shared-tool-ui/src/Inspector/GlobLocalFiles/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/GlobLocalFiles/index.tsx
@@ -2,7 +2,7 @@
import type { GlobFilesState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/GoalCommand/index.tsx b/packages/shared-tool-ui/src/Inspector/GoalCommand/index.tsx
index 018a6786836..de803b3d37b 100644
--- a/packages/shared-tool-ui/src/Inspector/GoalCommand/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/GoalCommand/index.tsx
@@ -2,7 +2,7 @@
import type { RunCommandState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Target, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/GrepContent/index.tsx b/packages/shared-tool-ui/src/Inspector/GrepContent/index.tsx
index 5b66f7b5397..22cd6c8db2d 100644
--- a/packages/shared-tool-ui/src/Inspector/GrepContent/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/GrepContent/index.tsx
@@ -2,8 +2,8 @@
import type { GrepContentState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Fragment, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/Linear/Inspector.tsx b/packages/shared-tool-ui/src/Inspector/Linear/Inspector.tsx
index 42a8ecfdf24..19503be0e93 100644
--- a/packages/shared-tool-ui/src/Inspector/Linear/Inspector.tsx
+++ b/packages/shared-tool-ui/src/Inspector/Linear/Inspector.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { CornerLeftUp } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/shared-tool-ui/src/Inspector/Linear/labels.ts b/packages/shared-tool-ui/src/Inspector/Linear/labels.ts
index 8bbc8fc891a..6af468362c7 100644
--- a/packages/shared-tool-ui/src/Inspector/Linear/labels.ts
+++ b/packages/shared-tool-ui/src/Inspector/Linear/labels.ts
@@ -2,7 +2,7 @@
// adapter (apiName='mcp__claude_ai_Linear__get_issue', …) and the LobeHub
// built-in Linear skill (bare apiName='get_issue', …).
//
-// Kept free of React / antd-style imports so the workflow-summary path can
+// Kept free of React / @lobehub/ui imports so the workflow-summary path can
// pull these helpers without dragging the inspector component (and its
// style modules) into tests transitively.
diff --git a/packages/shared-tool-ui/src/Inspector/ListLocalFiles/index.tsx b/packages/shared-tool-ui/src/Inspector/ListLocalFiles/index.tsx
index e33c044bdc3..529924b41eb 100644
--- a/packages/shared-tool-ui/src/Inspector/ListLocalFiles/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/ListLocalFiles/index.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/MoveLocalFiles/index.tsx b/packages/shared-tool-ui/src/Inspector/MoveLocalFiles/index.tsx
index 06d73563cf2..d1da4babe57 100644
--- a/packages/shared-tool-ui/src/Inspector/MoveLocalFiles/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/MoveLocalFiles/index.tsx
@@ -3,8 +3,8 @@
import type { MoveFilesState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/ReadLocalFile/index.tsx b/packages/shared-tool-ui/src/Inspector/ReadLocalFile/index.tsx
index 127542feb4d..0f3e644330a 100644
--- a/packages/shared-tool-ui/src/Inspector/ReadLocalFile/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/ReadLocalFile/index.tsx
@@ -2,7 +2,7 @@
import type { ReadFileState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/RunCommand/index.tsx b/packages/shared-tool-ui/src/Inspector/RunCommand/index.tsx
index 4188b3fa6b9..61690b240b3 100644
--- a/packages/shared-tool-ui/src/Inspector/RunCommand/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/RunCommand/index.tsx
@@ -2,7 +2,7 @@
import type { RunCommandState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Check, SquareChevronRight, X } from 'lucide-react';
import { type ComponentType, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/SearchLocalFiles/index.tsx b/packages/shared-tool-ui/src/Inspector/SearchLocalFiles/index.tsx
index c7f38a1e258..451db3167af 100644
--- a/packages/shared-tool-ui/src/Inspector/SearchLocalFiles/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/SearchLocalFiles/index.tsx
@@ -2,8 +2,8 @@
import type { SearchFilesState } from '@lobechat/tool-runtime';
import type { BuiltinInspectorProps } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Inspector/Twitter/Inspector.tsx b/packages/shared-tool-ui/src/Inspector/Twitter/Inspector.tsx
index a67c1f8815e..d132dc40a7b 100644
--- a/packages/shared-tool-ui/src/Inspector/Twitter/Inspector.tsx
+++ b/packages/shared-tool-ui/src/Inspector/Twitter/Inspector.tsx
@@ -1,7 +1,7 @@
'use client';
import type { BuiltinInspector, BuiltinInspectorProps } from '@lobechat/types';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { inspectorTextStyles, shinyTextStyles } from '../../styles';
diff --git a/packages/shared-tool-ui/src/Inspector/Twitter/labels.ts b/packages/shared-tool-ui/src/Inspector/Twitter/labels.ts
index 0b08f002bfb..ec59bf89c0f 100644
--- a/packages/shared-tool-ui/src/Inspector/Twitter/labels.ts
+++ b/packages/shared-tool-ui/src/Inspector/Twitter/labels.ts
@@ -3,7 +3,7 @@
// (potentially) the CC adapter when the same wire names are surfaced via
// MCP.
//
-// Kept free of React / antd-style imports so collapsed-summary paths can
+// Kept free of React / @lobehub/ui imports so collapsed-summary paths can
// pull these helpers without dragging the inspector component (and its
// style modules) into tests transitively.
diff --git a/packages/shared-tool-ui/src/Inspector/WriteLocalFile/index.tsx b/packages/shared-tool-ui/src/Inspector/WriteLocalFile/index.tsx
index 16bf29e7324..da5ce7f44b6 100644
--- a/packages/shared-tool-ui/src/Inspector/WriteLocalFile/index.tsx
+++ b/packages/shared-tool-ui/src/Inspector/WriteLocalFile/index.tsx
@@ -2,8 +2,8 @@
import type { BuiltinInspectorProps } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { cssVar, cx } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/packages/shared-tool-ui/src/Render/GitHub/index.tsx b/packages/shared-tool-ui/src/Render/GitHub/index.tsx
index 2ce27bd723e..0ad032d89d8 100644
--- a/packages/shared-tool-ui/src/Render/GitHub/index.tsx
+++ b/packages/shared-tool-ui/src/Render/GitHub/index.tsx
@@ -3,8 +3,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { fromNow } from '@lobechat/utils/time';
import { Block, Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Tag, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ExternalLink, Link2 } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/packages/shared-tool-ui/src/Render/Linear/index.tsx b/packages/shared-tool-ui/src/Render/Linear/index.tsx
index 11c5a654f8a..c438b3c9177 100644
--- a/packages/shared-tool-ui/src/Render/Linear/index.tsx
+++ b/packages/shared-tool-ui/src/Render/Linear/index.tsx
@@ -3,8 +3,8 @@
import type { BuiltinRenderProps } from '@lobechat/types';
import { fromNow } from '@lobechat/utils/time';
import { Block, Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Tag, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { ExternalLink, Inbox, Link2 } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/packages/shared-tool-ui/src/Render/RunCommand/AnsiOutput.tsx b/packages/shared-tool-ui/src/Render/RunCommand/AnsiOutput.tsx
index 9b20faac261..1d82a7861b3 100644
--- a/packages/shared-tool-ui/src/Render/RunCommand/AnsiOutput.tsx
+++ b/packages/shared-tool-ui/src/Render/RunCommand/AnsiOutput.tsx
@@ -1,7 +1,7 @@
'use client';
import Anser from 'anser';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useMemo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/packages/shared-tool-ui/src/Render/RunCommand/index.tsx b/packages/shared-tool-ui/src/Render/RunCommand/index.tsx
index 1aaf3aae456..9fabb9a7928 100644
--- a/packages/shared-tool-ui/src/Render/RunCommand/index.tsx
+++ b/packages/shared-tool-ui/src/Render/RunCommand/index.tsx
@@ -3,7 +3,7 @@
import type { RunCommandState } from '@lobechat/tool-runtime';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Block, Flexbox, Highlighter } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { getRunCommandDisplayCommand } from '../../utils/runCommand';
diff --git a/packages/shared-tool-ui/src/SecretInput/SecretInputView.tsx b/packages/shared-tool-ui/src/SecretInput/SecretInputView.tsx
index a1219c2a95e..ad7dcc4eb78 100644
--- a/packages/shared-tool-ui/src/SecretInput/SecretInputView.tsx
+++ b/packages/shared-tool-ui/src/SecretInput/SecretInputView.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, InputPassword, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, InputPassword, Text } from '@lobehub/ui';
import { CircleAlert } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { createPortal } from 'react-dom';
diff --git a/packages/shared-tool-ui/src/components/FileChangeStats/index.tsx b/packages/shared-tool-ui/src/components/FileChangeStats/index.tsx
index 20d8c00ed28..5567de35d81 100644
--- a/packages/shared-tool-ui/src/components/FileChangeStats/index.tsx
+++ b/packages/shared-tool-ui/src/components/FileChangeStats/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
/**
diff --git a/packages/shared-tool-ui/src/components/FilePathDisplay.tsx b/packages/shared-tool-ui/src/components/FilePathDisplay.tsx
index 1a0b4f8b996..22caeec4f98 100644
--- a/packages/shared-tool-ui/src/components/FilePathDisplay.tsx
+++ b/packages/shared-tool-ui/src/components/FilePathDisplay.tsx
@@ -1,8 +1,8 @@
'use client';
import { Icon, MaterialFileTypeIcon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { ImageIcon } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo, useMemo } from 'react';
diff --git a/packages/shared-tool-ui/src/components/OptionCard.tsx b/packages/shared-tool-ui/src/components/OptionCard.tsx
index 81289e6578b..1920b9baa8b 100644
--- a/packages/shared-tool-ui/src/components/OptionCard.tsx
+++ b/packages/shared-tool-ui/src/components/OptionCard.tsx
@@ -1,8 +1,8 @@
'use client';
import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/shared-tool-ui/src/components/TodoProgress/index.tsx b/packages/shared-tool-ui/src/components/TodoProgress/index.tsx
index 4d94c9a311f..3cffafb6517 100644
--- a/packages/shared-tool-ui/src/components/TodoProgress/index.tsx
+++ b/packages/shared-tool-ui/src/components/TodoProgress/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { CircleArrowRight, CircleCheckBig, ListTodo } from 'lucide-react';
import { memo } from 'react';
diff --git a/packages/shared-tool-ui/src/styles.ts b/packages/shared-tool-ui/src/styles.ts
index 9249ab4d38d..c2b02277f62 100644
--- a/packages/shared-tool-ui/src/styles.ts
+++ b/packages/shared-tool-ui/src/styles.ts
@@ -1,5 +1,5 @@
-import { textStyles } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { textStyles } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
const localTextGroupStyles = createStaticStyles(({ css }) => ({
shinyGroup: css`
diff --git a/packages/types/package.json b/packages/types/package.json
index ecdb84f3a9a..ec190f318a6 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -23,7 +23,7 @@
"zustand": "5.0.4"
},
"peerDependencies": {
- "@lobehub/ui": "^5",
+ "@lobehub/ui": "^6.0.4",
"react": "*",
"zod": "^4.4.3"
}
diff --git a/packages/types/src/user/settings/general.ts b/packages/types/src/user/settings/general.ts
index de36d0605f1..d33ce911354 100644
--- a/packages/types/src/user/settings/general.ts
+++ b/packages/types/src/user/settings/general.ts
@@ -1,4 +1,4 @@
-import type { HighlighterProps, MermaidProps, NeutralColors, PrimaryColors } from '@lobehub/ui';
+import type { HighlighterProps, LobePrimaryColor, MermaidProps, NeutralColors } from '@lobehub/ui';
import type { ResponseAnimationStyle } from '../../aiProvider';
@@ -38,7 +38,7 @@ export interface UserGeneralConfig {
isLiteMode: boolean;
mermaidTheme?: MermaidProps['theme'];
neutralColor?: NeutralColors;
- primaryColor?: PrimaryColors;
+ primaryColor?: LobePrimaryColor;
responseLanguage?: string;
telemetry: boolean;
timezone?: string;
diff --git a/plugins/vite/emotionSpeedy.ts b/plugins/vite/emotionSpeedy.ts
deleted file mode 100644
index ee01afff092..00000000000
--- a/plugins/vite/emotionSpeedy.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import type { Plugin } from 'vite';
-
-/**
- * Forces emotion's speedy mode in antd-style.
- *
- * antd-style hardcodes `speedy: false` in both createStaticStyles and
- * createInstance, which causes emotion to create a new <style> element
- * for every CSS rule (n % 1 === 0 is always true).
- * With speedy: true, one <style> tag holds up to 65 000 rules via
- * CSSStyleSheet.insertRule(), eliminating thousands of DOM insertBefore calls.
- */
-export function viteEmotionSpeedy(): Plugin {
- return {
- name: 'emotion-speedy',
- enforce: 'pre',
- transform(code, id) {
- if (id.includes('antd-style') && code.includes('speedy: false')) {
- return {
- code: code.replaceAll('speedy: false', 'speedy: true'),
- map: null,
- };
- }
- },
- };
-}
diff --git a/plugins/vite/lobeUiImports.test.ts b/plugins/vite/lobeUiImports.test.ts
index 4a2212bd959..2e0c4a73416 100644
--- a/plugins/vite/lobeUiImports.test.ts
+++ b/plugins/vite/lobeUiImports.test.ts
@@ -11,11 +11,10 @@ const fixturePlugin: Plugin = {
if (id !== ENTRY_ID) return;
return `
- import { ConfigProvider, ErrorBoundary, Flexbox } from '@lobehub/ui';
- import { Button } from '@lobehub/ui/base-ui';
+ import { Button, ConfigProvider, ErrorBoundary, Flexbox } from '@lobehub/ui';
export { ConfigProvider, ErrorBoundary, Flexbox, Button };
export * from '@lobehub/ui/brand';
- export const loadToast = () => import('@lobehub/ui/base-ui');
+ export const loadToast = () => import('@lobehub/ui');
`;
},
resolveId(id) {
@@ -70,12 +69,11 @@ describe('lobeUiImports', () => {
expect(code).toContain('@lobehub/ui/es/ConfigProvider/');
expect(code).toContain('@lobehub/ui/es/Flex/FlexBasic');
- expect(code).toContain('@lobehub/ui/es/base-ui/');
+ expect(code).toContain('@lobehub/ui/es/Button/');
expect(code).toContain('react-error-boundary');
expect(code).not.toMatch(/from ["']react-error-boundary["']/);
expect(code).not.toMatch(/from ["']@lobehub\/ui["']/);
- expect(code).not.toMatch(/from ["']@lobehub\/ui\/base-ui["']/);
expect(code).toContain('@lobehub/ui/es/brand/index');
- expect(code).toContain('@lobehub/ui/es/base-ui/index');
+ expect(code).toContain('@lobehub/ui/es/index');
});
});
diff --git a/plugins/vite/lobeUiImports.ts b/plugins/vite/lobeUiImports.ts
index 738c6cc547c..631cbd8155b 100644
--- a/plugins/vite/lobeUiImports.ts
+++ b/plugins/vite/lobeUiImports.ts
@@ -8,7 +8,7 @@ import type { Plugin, PluginOption } from 'vite';
const NAMED_EXPORT_PREFIX = 'virtual:lobe-ui-named:';
const RESOLVED_NAMED_EXPORT_PREFIX = `\0${NAMED_EXPORT_PREFIX}`;
-const BARRELS = ['', 'awesome', 'base-ui', 'brand', 'chat', 'color', 'icons', 'mdx'] as const;
+const BARRELS = ['', 'awesome', 'brand', 'chat', 'color', 'icons', 'mdx'] as const;
interface MemberSource {
imported: string;
diff --git a/plugins/vite/sharedRendererConfig.test.ts b/plugins/vite/sharedRendererConfig.test.ts
index c203fb1b197..71006abb0c3 100644
--- a/plugins/vite/sharedRendererConfig.test.ts
+++ b/plugins/vite/sharedRendererConfig.test.ts
@@ -51,10 +51,8 @@ describe('lobe-dev-editor-provider', () => {
});
describe('sharedOptimizeDeps', () => {
- it('pre-bundles the root and base-ui entrypoints together', () => {
- expect(sharedOptimizeDeps.include).toEqual(
- expect.arrayContaining(['@lobehub/ui', '@lobehub/ui/base-ui']),
- );
+ it('pre-bundles the @lobehub/ui root entrypoint', () => {
+ expect(sharedOptimizeDeps.include).toContain('@lobehub/ui');
});
});
diff --git a/plugins/vite/sharedRendererConfig.ts b/plugins/vite/sharedRendererConfig.ts
index e203c2becaf..f80614fcbf6 100644
--- a/plugins/vite/sharedRendererConfig.ts
+++ b/plugins/vite/sharedRendererConfig.ts
@@ -3,13 +3,11 @@ import { codeInspectorPlugin } from 'code-inspector-plugin';
import type { ModulePreloadOptions, Plugin } from 'vite';
import { viteCompletionSounds } from './completionSounds';
-import { viteEmotionSpeedy } from './emotionSpeedy';
import { lobeIconImports } from './lobeIconImports';
import { lobeUiImports } from './lobeUiImports';
import { viteMarkdownImport } from './markdownImport';
import { viteNodeModuleStub } from './nodeModuleStub';
import { vitePlatformResolve } from './platformResolve';
-import { viteStaticStylesPrecompile } from './staticStylesPrecompile';
/**
* Shared manual chunk naming — groups leaf-node modules to reduce chunk file count.
@@ -491,7 +489,6 @@ interface SharedRendererOptions {
export function sharedRendererPlugins(options: SharedRendererOptions) {
return [
viteCompletionSounds(),
- viteEmotionSpeedy(),
viteMarkdownImport(),
viteNodeModuleStub(),
vitePlatformResolve(options.platform),
@@ -525,7 +522,6 @@ export function sharedRendererPlugins(options: SharedRendererOptions) {
hotKeys: ['altKey', 'ctrlKey'],
}),
react(),
- viteStaticStylesPrecompile(),
...(options.platform === 'desktop' ? [] : [...lobeIconImports(), ...lobeUiImports()]),
];
}
@@ -557,12 +553,8 @@ export const sharedOptimizeDeps = {
'react-dom/client',
'react-router',
'react-router/dom',
- 'antd',
- '@ant-design/icons',
'@lobehub/ui',
- '@lobehub/ui/base-ui',
'@lobehub/ui > @emotion/react',
- 'antd-style',
'zustand',
'zustand/middleware',
'swr',
diff --git a/plugins/vite/staticStylesPrecompile.test.ts b/plugins/vite/staticStylesPrecompile.test.ts
deleted file mode 100644
index 0be7e8a4c20..00000000000
--- a/plugins/vite/staticStylesPrecompile.test.ts
+++ /dev/null
@@ -1,276 +0,0 @@
-// @vitest-environment node
-import { build, parseAst, type Plugin } from 'vite';
-import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
-
-import {
- loadAntdStyleEvaluator,
- precompileStaticStyles,
- splitRules,
- viteStaticStylesPrecompile,
-} from './staticStylesPrecompile';
-import { insertPrecompiledStyle } from './staticStylesRuntime';
-
-let evaluator: Awaited<ReturnType<typeof loadAntdStyleEvaluator>>;
-
-beforeAll(async () => {
- evaluator = await loadAntdStyleEvaluator();
-});
-
-afterEach(() => {
- vi.restoreAllMocks();
-});
-
-const CALLBACK = `({ css, responsive }) => ({
- root: css\`
- display: flex;
- color: \${cssVar.colorTextSecondary};
- &:hover { color: \${cssVar.colorText}; }
- \${responsive.mobile} { padding: 0; }
- \`,
- 'text-2': css\`font-size: 12px;\`,
-})`;
-
-const PURE = `
-import { createStaticStyles, cssVar } from 'antd-style';
-export const styles = createStaticStyles(${CALLBACK});
-`;
-
-describe('splitRules', () => {
- it('splits top-level rules and keeps nested blocks together', () => {
- const css = `.a{color:red;}.a:hover{color:blue;}@media (max-width: 479.98px){.a{padding:0;}}.b{content:"}";}`;
- expect(splitRules(css)).toEqual([
- '.a{color:red;}',
- '.a:hover{color:blue;}',
- '@media (max-width: 479.98px){.a{padding:0;}}',
- '.b{content:"}";}',
- ]);
- });
-});
-
-describe('precompileStaticStyles', () => {
- it('replaces a pure callback with precompiled rules', () => {
- const output = precompileStaticStyles(PURE, evaluator)!;
- expect(output).not.toContain('createStaticStyles(');
- expect(output).toContain(
- "import { insertPrecompiledStyle as __lobeStaticStyle } from 'virtual:lobe-static-styles-runtime';",
- );
- expect(output).toMatch(
- /"root": __lobeStaticStyle\("acss-[a-z0-9]+", \[".acss-[a-z0-9]+\{display:/,
- );
- expect(output).toContain('color:var(--ant-color-text-secondary)');
- expect(output).toContain('@media (max-width: 479.98px){.acss-');
- expect(output).toContain('"text-2": __lobeStaticStyle(');
- expect(output).toMatch(
- /__lobeStaticStyle\("acss-[a-z0-9]+", \["\.acss-[a-z0-9]+\{font-size:12px;\}"\], "font-size: 12px;"\)/,
- );
- });
-
- it('matches the class names antd-style produces at runtime', () => {
- const output = precompileStaticStyles(PURE, evaluator)!;
-
- const callback = new Function('cssVar', `return ${CALLBACK};`)(evaluator.cssVar);
- const runtime = evaluator.createStaticStyles(callback);
- expect(output).toContain(`"root": __lobeStaticStyle("${runtime.root}"`);
- expect(output).toContain(`"text-2": __lobeStaticStyle("${runtime['text-2']}"`);
- });
-
- it('drops legacy vendor prefixes but keeps the ones Safari still needs', () => {
- const code = `
-import { createStaticStyles } from 'antd-style';
-export const styles = createStaticStyles(({ css }) => ({
- root: css\`
- display: flex;
- user-select: none;
- backdrop-filter: blur(4px);
- transition: opacity 0.2s;
- -webkit-line-clamp: 2;
- \`,
-}));
-`;
- const output = precompileStaticStyles(code, evaluator)!;
- expect(output).toContain(
- '{display:flex;-webkit-user-select:none;user-select:none;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:opacity 0.2s;-webkit-line-clamp:2;}',
- );
- expect(output).not.toContain('-ms-');
- expect(output).not.toContain('-webkit-box');
- });
-
- it('supports aliased antd-style utils', () => {
- const code = `
-import { createStaticStyles as make, cssVar as cv } from 'antd-style';
-const styles = make(({ css }) => ({ root: css\`color: \${cv.colorText};\` }));
-`;
- expect(precompileStaticStyles(code, evaluator)).toContain('color:var(--ant-color-text)');
- });
-
- it('leaves callbacks that reference module scope untouched', () => {
- const code = `
-import { createStaticStyles, cssVar } from 'antd-style';
-const GAP = 8;
-export const styles = createStaticStyles(({ css }) => ({ root: css\`gap: \${GAP}px;\` }));
-`;
- expect(precompileStaticStyles(code, evaluator)).toBeUndefined();
- });
-
- it('leaves callbacks that call runtime helpers untouched', () => {
- const code = `
-import { createStaticStyles, cssVar } from 'antd-style';
-import { isDesktop } from '@lobechat/const';
-export const styles = createStaticStyles(({ css }) => ({
- root: css\`padding: \${isDesktop ? 32 : 8}px;\`,
-}));
-`;
- expect(precompileStaticStyles(code, evaluator)).toBeUndefined();
- });
-
- it('compiles pure calls and keeps impure siblings in the same file', () => {
- const code = `
-import { createStaticStyles, cssVar } from 'antd-style';
-const SIZE = 4;
-export const a = createStaticStyles(({ css }) => ({ root: css\`color: \${cssVar.colorText};\` }));
-export const b = createStaticStyles(({ css }) => ({ root: css\`width: \${SIZE}px;\` }));
-`;
- const output = precompileStaticStyles(code, evaluator)!;
- expect(output).toContain('export const a = ({ "root": __lobeStaticStyle(');
- expect(output).toContain('export const b = createStaticStyles(');
- });
-
- it('keeps a bare expression statement syntactically valid', () => {
- const code = `
-import { createStaticStyles, cssVar } from 'antd-style';
-createStaticStyles(({ css }) => ({ root: css\`color: \${cssVar.colorText};\` }));
-`;
- const output = precompileStaticStyles(code, evaluator)!;
- expect(output).toMatch(/\n\(\{ "root": __lobeStaticStyle\(/);
- expect(() => parseAst(output)).not.toThrow();
- });
-
- it('ignores files without an antd-style import', () => {
- const code = `
-import { createStaticStyles } from './local';
-export const styles = createStaticStyles(({ css }) => ({ root: css\`color: red;\` }));
-`;
- expect(precompileStaticStyles(code, evaluator)).toBeUndefined();
- });
-});
-
-describe('insertPrecompiledStyle', () => {
- it('inserts rules once and exposes emotion-mergeable registered styles', async () => {
- const { createStaticStyles, css, cx, styleManager } = (await import('antd-style')) as any;
- const insert = vi.fn();
- const insertSpy = vi.spyOn(styleManager.cache.sheet, 'insert').mockImplementation(insert);
- const rules = ['.acss-fixture{color:red;}', '.acss-fixture:hover{color:blue;}'];
- const registered = 'color:red;&:hover{color:blue;}';
-
- expect(insertPrecompiledStyle('acss-fixture', rules, registered)).toBe('acss-fixture');
- insertPrecompiledStyle('acss-fixture', rules, registered);
- expect(insert.mock.calls.map(([rule]) => rule)).toEqual(rules);
- expect(styleManager.cache.registered['acss-fixture']).toBe(registered);
-
- const merged = cx(
- 'acss-fixture',
- css`
- margin: 0;
- `,
- );
- expect(merged).not.toBe('acss-fixture');
- expect(styleManager.cache.registered[merged]).toContain(registered);
- expect(styleManager.cache.registered[merged]).toContain('margin: 0;');
-
- const composed = createStaticStyles(({ css: s }: any) => ({
- x: s`${'acss-fixture'} padding: 0;`,
- })).x;
- expect(styleManager.cache.inserted[composed.slice(5)]).toContain(
- `.${composed}:hover{color:blue;}`,
- );
-
- styleManager.cache.registered['acss-fixture'] = 'color: green;';
- expect(styleManager.cache.registered['acss-fixture']).toBe('color: green;');
- insertSpy.mockRestore();
- });
-
- it.each([
- ['padding-block:12px;padding-inline:12px;', 'padding:0;'],
- [
- 'padding-block:12px;--lobe-popover-viewport-inline-padding:12px;',
- 'padding-block:0px;--lobe-popover-viewport-inline-padding:0px;',
- ],
- [
- 'color:red;&:hover{color:orange;}@media(min-width:600px){color:green;}',
- 'color:blue;&:hover{color:purple;}@media(min-width:600px){color:black;}',
- ],
- ])('preserves runtime composition for %s', async (base, override) => {
- const { createStaticStyles, cx, styleManager } = await import('antd-style');
- const makeStyle = (value: string) =>
- createStaticStyles(({ css }) => ({ root: css(value) })).root;
- const composeStyle = (className: string) =>
- createStaticStyles(({ css }) => ({
- root: css`
- ${className}${override}
- `,
- })).root;
- vi.spyOn(styleManager.cache.sheet, 'insert').mockImplementation(() => {});
- const source = `import { createStaticStyles } from 'antd-style';
- const styles = createStaticStyles(({ css }) => ({ root: css(${JSON.stringify(base)}) }));`;
- const output = precompileStaticStyles(source, evaluator)!;
- const run = new Function(
- '__lobeStaticStyle',
- `${output.replaceAll(/^import .*;\n/gm, '')}\nreturn styles.root;`,
- );
- const precompiled = run(insertPrecompiledStyle);
- const runtimeOverride = makeStyle(override);
- const mixed = cx(precompiled, runtimeOverride);
- const reversed = cx(runtimeOverride, precompiled);
- const interpolated = composeStyle(precompiled);
-
- delete styleManager.cache.registered[precompiled];
- const runtimeBase = makeStyle(base);
- expect(mixed).toBe(cx(runtimeBase, runtimeOverride));
- expect(reversed).toBe(cx(runtimeOverride, runtimeBase));
- expect(interpolated).toBe(composeStyle(runtimeBase));
- expect(styleManager.cache.inserted[mixed.slice(styleManager.cache.key.length + 1)]).toContain(
- override.split(';')[0],
- );
- });
-});
-
-describe('viteStaticStylesPrecompile', () => {
- const ENTRY_ID = '\0lobe-static-styles-fixture.mjs';
- const fixturePlugin: Plugin = {
- load(id) {
- if (id === ENTRY_ID) return PURE;
- },
- name: 'lobe-static-styles-fixture',
- resolveId(id) {
- if (id === 'virtual:lobe-static-styles-fixture') return ENTRY_ID;
- },
- };
-
- it('bundles precompiled styles against the antd-style runtime', async () => {
- const result = await build({
- build: {
- minify: false,
- rolldownOptions: {
- external: ['antd-style'],
- input: 'virtual:lobe-static-styles-fixture',
- },
- write: false,
- },
- configFile: false,
- logLevel: 'silent',
- plugins: [fixturePlugin, viteStaticStylesPrecompile()],
- });
-
- const outputs = Array.isArray(result) ? result : [result];
- const code = outputs
- .flatMap(({ output }) => output)
- .filter((item) => item.type === 'chunk')
- .map((item) => item.code)
- .join('\n');
-
- expect(code).not.toContain('createStaticStyles');
- expect(code).toMatch(/import \{ styleManager \} from ["']antd-style["']/);
- expect(code).toContain('cache.sheet.insert(rule)');
- expect(code).toContain('color:var(--ant-color-text-secondary)');
- });
-});
diff --git a/plugins/vite/staticStylesPrecompile.ts b/plugins/vite/staticStylesPrecompile.ts
deleted file mode 100644
index e03154539fe..00000000000
--- a/plugins/vite/staticStylesPrecompile.ts
+++ /dev/null
@@ -1,277 +0,0 @@
-import { readFileSync } from 'node:fs';
-import { createRequire } from 'node:module';
-import { fileURLToPath } from 'node:url';
-
-import { parseAst, type Plugin } from 'vite';
-
-const RUNTIME_ID = 'virtual:lobe-static-styles-runtime';
-const RESOLVED_RUNTIME_ID = `\0${RUNTIME_ID}`;
-const HELPER = '__lobeStaticStyle';
-
-interface AntdStyleEvaluator {
- cache: {
- inserted: Record<string, string | true>;
- key: string;
- registered: Record<string, string>;
- };
- createStaticStyles: (fn: (utils: unknown) => Record<string, unknown>) => Record<string, unknown>;
- cssVar: unknown;
- responsive: unknown;
-}
-
-type Node = { end: number; start: number; type: string } & Record<string, any>;
-
-const STATIC_UTILS = new Set(['cssVar', 'responsive']);
-
-// Safari still needs -webkit- for these; everything else stylis' prefixer adds targets browsers we no longer ship to.
-const WEBKIT_ONLY_PROPS = new Set([
- 'user-select',
- 'backdrop-filter',
- 'hyphens',
- 'box-decoration-break',
- 'text-size-adjust',
-]);
-
-const safariPrefixer = (element: {
- props: unknown;
- return?: string;
- type: string;
- value: string;
-}) => {
- if (element.type === 'decl' && WEBKIT_ONLY_PROPS.has(element.props as string)) {
- element.return = `-webkit-${element.value}${element.value}`;
- }
-};
-
-export const splitRules = (css: string) => {
- const rules: string[] = [];
- let depth = 0;
- let quote: string | undefined;
- let start = 0;
- for (let i = 0; i < css.length; i++) {
- const ch = css[i];
- if (quote) {
- if (ch === '\\') i++;
- else if (ch === quote) quote = undefined;
- } else if (ch === '"' || ch === "'") quote = ch;
- else if (ch === '{') depth++;
- else if (ch === '}' && --depth === 0) {
- rules.push(css.slice(start, i + 1));
- start = i + 1;
- }
- }
- if (depth !== 0 || start !== css.length) throw new Error('unbalanced css');
- return rules;
-};
-
-const walk = (
- node: Node,
- visit: (node: Node, parent: Node | undefined) => boolean | void,
- parent?: Node,
-) => {
- if (visit(node, parent) === false) return;
- for (const key of Object.keys(node)) {
- if (key === 'type' || key === 'start' || key === 'end') continue;
- const value = node[key];
- if (Array.isArray(value)) {
- for (const child of value)
- if (child && typeof child.type === 'string') walk(child, visit, node);
- } else if (value && typeof value.type === 'string') walk(value, visit, node);
- }
-};
-
-const isFunctionNode = (type: string) =>
- type === 'FunctionDeclaration' ||
- type === 'FunctionExpression' ||
- type === 'ArrowFunctionExpression';
-
-const collectAntdStyleImports = (program: Node) => {
- const locals = new Map<string, string>();
- for (const statement of program.body as Node[]) {
- if (statement.type !== 'ImportDeclaration' || statement.source.value !== 'antd-style') continue;
- for (const specifier of statement.specifiers as Node[]) {
- if (specifier.type === 'ImportSpecifier')
- locals.set(specifier.local.name, specifier.imported.name);
- }
- }
- return locals;
-};
-
-const collectPatternNames = (pattern: Node, into: Set<string>) => {
- if (pattern.type === 'Identifier') into.add(pattern.name);
- else if (pattern.type === 'ObjectPattern') {
- for (const property of pattern.properties as Node[]) {
- collectPatternNames(
- property.type === 'RestElement' ? property.argument : property.value,
- into,
- );
- }
- } else if (pattern.type === 'ArrayPattern') {
- for (const element of pattern.elements as Node[])
- if (element) collectPatternNames(element, into);
- } else if (pattern.type === 'AssignmentPattern') collectPatternNames(pattern.left, into);
- else if (pattern.type === 'RestElement') collectPatternNames(pattern.argument, into);
-};
-
-const isPureCallback = (callback: Node, staticImports: Set<string>) => {
- const bound = new Set<string>(staticImports);
- for (const param of callback.params as Node[]) collectPatternNames(param, bound);
- walk(callback.body, (node) => {
- if (node.type === 'VariableDeclarator') collectPatternNames(node.id, bound);
- else if (isFunctionNode(node.type)) {
- if (node.id) bound.add(node.id.name);
- for (const param of node.params as Node[]) collectPatternNames(param, bound);
- }
- });
-
- let pure = true;
- walk(callback.body, (node, parent) => {
- if (!pure) return false;
- if (node.type !== 'Identifier') return;
- if (
- parent?.type === 'Property' &&
- !parent.computed &&
- parent.key === node &&
- parent.value !== node
- )
- return;
- if (parent?.type === 'MemberExpression' && !parent.computed && parent.property === node) return;
- if (!bound.has(node.name)) pure = false;
- });
- return pure;
-};
-
-const findTopLevelCalls = (program: Node, calleeName: string) => {
- const calls: Node[] = [];
- walk(program, (node) => {
- if (isFunctionNode(node.type)) return false;
- if (
- node.type === 'CallExpression' &&
- node.callee.type === 'Identifier' &&
- node.callee.name === calleeName &&
- node.arguments.length === 1 &&
- isFunctionNode(node.arguments[0].type)
- ) {
- calls.push(node);
- return false;
- }
- });
- return calls;
-};
-
-const evaluate = (
- callbackSource: string,
- staticLocals: Map<string, string>,
- evaluator: AntdStyleEvaluator,
-) => {
- const names = [...staticLocals.keys()];
- const values = names.map((name) => evaluator[staticLocals.get(name) as 'cssVar' | 'responsive']);
-
- const factory = new Function(...names, `return (${callbackSource});`)(...values);
- return evaluator.createStaticStyles(factory);
-};
-
-const serializeStyles = (result: Record<string, unknown>, evaluator: AntdStyleEvaluator) => {
- const prefix = `${evaluator.cache.key}-`;
- const entries: string[] = [];
- for (const [key, value] of Object.entries(result)) {
- if (typeof value !== 'string' || !value.startsWith(prefix)) return;
- const css = evaluator.cache.inserted[value.slice(prefix.length)];
- const registered = evaluator.cache.registered[value];
- if (typeof css !== 'string' || typeof registered !== 'string') return;
- entries.push(
- `${JSON.stringify(key)}: ${HELPER}(${JSON.stringify(value)}, ${JSON.stringify(splitRules(css))}, ${JSON.stringify(registered)})`,
- );
- }
- return `({ ${entries.join(', ')} })`;
-};
-
-export const precompileStaticStyles = (code: string, evaluator: AntdStyleEvaluator) => {
- if (!code.includes('createStaticStyles')) return;
- let program: Node;
- try {
- program = parseAst(code) as unknown as Node;
- } catch {
- // Unsupported syntax keeps the original runtime call; precompilation is optional.
- return;
- }
-
- const antdImports = collectAntdStyleImports(program);
- const calleeName = [...antdImports].find(
- ([, imported]) => imported === 'createStaticStyles',
- )?.[0];
- if (!calleeName) return;
- const staticLocals = new Map(
- [...antdImports].filter(([, imported]) => STATIC_UTILS.has(imported)),
- );
- const staticNames = new Set(staticLocals.keys());
-
- const replacements: Array<{ end: number; start: number; text: string }> = [];
- for (const call of findTopLevelCalls(program, calleeName)) {
- const callback = call.arguments[0] as Node;
- if (!isPureCallback(callback, staticNames)) continue;
- let compiled: string | undefined;
- try {
- compiled = serializeStyles(
- evaluate(code.slice(callback.start, callback.end), staticLocals, evaluator),
- evaluator,
- );
- } catch {
- // Evaluation or serialization failures must preserve runtime style generation.
- continue;
- }
- if (compiled) replacements.push({ end: call.end, start: call.start, text: compiled });
- }
- if (replacements.length === 0) return;
-
- let output = code;
- for (const { start, end, text } of replacements.sort((a, b) => b.start - a.start)) {
- output = output.slice(0, start) + text + output.slice(end);
- }
- return `import { insertPrecompiledStyle as ${HELPER} } from '${RUNTIME_ID}';\n${output}`;
-};
-
-export const loadAntdStyleEvaluator = async (): Promise<AntdStyleEvaluator> => {
- const mod = await import('antd-style');
- const api = ((mod as any).default?.createStaticStylesFactory ? (mod as any).default : mod) as any;
- const antdStyleRequire = createRequire(
- createRequire(import.meta.url).resolve('antd-style/package.json'),
- );
- const createEmotionModule = antdStyleRequire('@emotion/css/create-instance');
- const createEmotion = createEmotionModule.default ?? createEmotionModule;
- const emotion = createEmotion({
- key: api.styleManager.cache.key,
- stylisPlugins: [safariPrefixer],
- });
- const { createStaticStyles, cssVar, responsive } = api.createStaticStylesFactory({
- cache: emotion.cache,
- });
- return { cache: emotion.cache, createStaticStyles, cssVar, responsive };
-};
-
-export function viteStaticStylesPrecompile(): Plugin {
- let evaluator: Promise<AntdStyleEvaluator> | undefined;
- return {
- apply: 'build',
- enforce: 'post',
- load(id) {
- if (id !== RESOLVED_RUNTIME_ID) return;
- return readFileSync(
- fileURLToPath(new URL('staticStylesRuntime.js', import.meta.url)),
- 'utf8',
- );
- },
- name: 'lobe-static-styles-precompile',
- resolveId(id) {
- if (id === RUNTIME_ID) return RESOLVED_RUNTIME_ID;
- },
- async transform(code, id) {
- if (!/\.[cm]?[jt]sx?$/.test(id.split('?')[0])) return;
- if (id.includes('node_modules') && !id.includes('/node_modules/@lobehub/ui/')) return;
- if (!code.includes('createStaticStyles')) return;
- evaluator ??= loadAntdStyleEvaluator();
- const output = precompileStaticStyles(code, await evaluator);
- if (output) return { code: output, map: null };
- },
- };
-}
diff --git a/plugins/vite/staticStylesRuntime.js b/plugins/vite/staticStylesRuntime.js
deleted file mode 100644
index d3577cab65e..00000000000
--- a/plugins/vite/staticStylesRuntime.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import { styleManager } from 'antd-style';
-
-const cache = styleManager.cache;
-const prefixLength = cache.key.length + 1;
-
-export const insertPrecompiledStyle = (className, rules, registered) => {
- const name = className.slice(prefixLength);
- if (cache.inserted[name] === undefined) {
- for (const rule of rules) cache.sheet.insert(rule);
- cache.inserted[name] = true;
- }
- cache.registered[className] = registered;
- return className;
-};
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 4da33a86a60..1e9892d0a63 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -37,6 +37,7 @@ minimumReleaseAgeExclude:
- '@auv-js/[email protected]'
- '@auv-js/[email protected]'
- '@lobehub/*'
# Build scripts run one at a time. Several peer-variant copies of
# @lobehub/editor resolve in this workspace and every copy's postinstall
@@ -61,11 +62,15 @@ allowBuilds:
workerd: true
overrides:
- '@ant-design/icons': 6.3.2
+ '@lobehub/ui': ^6.0.4
+ '@lobehub/icons': ^6.0.0
+ '@lobehub/editor': ^5.0.0
+ '@lobehub/charts': ^6.0.0
+ '@lobehub/tts': ^6.0.0
+ '@lobehub/fluent-emoji': ^5.0.0
'@react-pdf/image': 3.0.4
'@types/react': 19.2.13
'@vitest/coverage-v8': 5.0.0
- antd: 6.3.5
baseline-browser-mapping: 2.10.31
drizzle-orm: ^0.45.2
fast-xml-parser: 5.4.2
diff --git a/src/business/client/features/ShareShell/index.tsx b/src/business/client/features/ShareShell/index.tsx
index a2eb22ac60a..f79215430f7 100644
--- a/src/business/client/features/ShareShell/index.tsx
+++ b/src/business/client/features/ShareShell/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
export interface ShareHeroProps {
diff --git a/src/business/client/handleLobeHubModelDeprecatedError.ts b/src/business/client/handleLobeHubModelDeprecatedError.ts
index ccd8324f310..7a72cc94f91 100644
--- a/src/business/client/handleLobeHubModelDeprecatedError.ts
+++ b/src/business/client/handleLobeHubModelDeprecatedError.ts
@@ -1,5 +1,5 @@
import { ChatErrorType } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { TRPCClientError } from '@trpc/client';
import { t } from 'i18next';
diff --git a/src/business/client/hooks/useBusinessErrorAlertConfig.ts b/src/business/client/hooks/useBusinessErrorAlertConfig.ts
index b6d7eb54c96..d3b3a37c2a2 100644
--- a/src/business/client/hooks/useBusinessErrorAlertConfig.ts
+++ b/src/business/client/hooks/useBusinessErrorAlertConfig.ts
@@ -1,5 +1,5 @@
import { type ErrorType } from '@lobechat/types';
-import { type AlertProps } from '@lobehub/ui/base-ui';
+import { type AlertProps } from '@lobehub/ui';
export default function useBusinessErrorAlertConfig(
_errorType?: ErrorType,
diff --git a/src/business/client/hooks/useTransferAgentsFormItem.ts b/src/business/client/hooks/useTransferAgentsFormItem.ts
index 15a08bb076d..7be41d56712 100644
--- a/src/business/client/hooks/useTransferAgentsFormItem.ts
+++ b/src/business/client/hooks/useTransferAgentsFormItem.ts
@@ -1,3 +1,3 @@
-import type { FormFieldProps } from '@lobehub/ui/base-ui/form';
+import type { FormFieldProps } from '@lobehub/ui/form';
export const useTransferAgentsFormItem = (): FormFieldProps[] | null => null;
diff --git a/src/business/client/hooks/useWorkspaceOptionLabel.tsx b/src/business/client/hooks/useWorkspaceOptionLabel.tsx
index 41006ef5a3b..87747273079 100644
--- a/src/business/client/hooks/useWorkspaceOptionLabel.tsx
+++ b/src/business/client/hooks/useWorkspaceOptionLabel.tsx
@@ -1,8 +1,7 @@
'use client';
import { DEFAULT_AVATAR } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox, Text } from '@lobehub/ui';
import { type ReactNode, useCallback } from 'react';
import type { WorkspaceListItem } from './useActiveWorkspace';
diff --git a/src/components/404/index.tsx b/src/components/404/index.tsx
index 90f19ff4b8b..6f3ebd69d62 100644
--- a/src/components/404/index.tsx
+++ b/src/components/404/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, FluentEmoji } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, FluentEmoji } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/AsyncBoundary/index.tsx b/src/components/AsyncBoundary/index.tsx
index 9b01c11687b..93820903c4a 100644
--- a/src/components/AsyncBoundary/index.tsx
+++ b/src/components/AsyncBoundary/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Center, Flexbox, Spin } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import AsyncError, { type AsyncErrorVariant } from '../AsyncError';
diff --git a/src/components/AsyncError/index.tsx b/src/components/AsyncError/index.tsx
index fb451035226..bb989050d75 100644
--- a/src/components/AsyncError/index.tsx
+++ b/src/components/AsyncError/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, Center, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { RotateCwIcon, TriangleAlertIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/Avatar/index.tsx b/src/components/Avatar/index.tsx
index 67a4869be4f..fed61fe230a 100644
--- a/src/components/Avatar/index.tsx
+++ b/src/components/Avatar/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Avatar as LobeAvatar, type AvatarProps as LobeAvatarProps } from '@lobehub/ui/base-ui';
+import { Avatar as LobeAvatar, type AvatarProps as LobeAvatarProps } from '@lobehub/ui';
import { memo } from 'react';
import { remoteAvatarSrc, resolveAvatar } from './fallback';
diff --git a/src/components/AvatarUpload/index.tsx b/src/components/AvatarUpload/index.tsx
index 6d1ac948be1..d636f81b476 100644
--- a/src/components/AvatarUpload/index.tsx
+++ b/src/components/AvatarUpload/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Avatar, Spin, Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, Icon, Spin, Upload } from '@lobehub/ui';
import { PencilIcon, X } from 'lucide-react';
import { memo, type ReactNode, useMemo } from 'react';
diff --git a/src/components/BrandWatermark/index.tsx b/src/components/BrandWatermark/index.tsx
index 18b8253e686..46a28f82220 100644
--- a/src/components/BrandWatermark/index.tsx
+++ b/src/components/BrandWatermark/index.tsx
@@ -2,9 +2,8 @@
import { ORG_NAME, UTM_SOURCE } from '@lobechat/business-const';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { LobeHub } from '@lobehub/ui/brand';
-import { createStaticStyles, cssVar } from 'antd-style';
import { memo } from 'react';
import { OFFICIAL_SITE } from '@/const/url';
diff --git a/src/components/Branding/ProductLogo/Custom.tsx b/src/components/Branding/ProductLogo/Custom.tsx
index bfaa30cd57f..8b8d9f6eaa4 100644
--- a/src/components/Branding/ProductLogo/Custom.tsx
+++ b/src/components/Branding/ProductLogo/Custom.tsx
@@ -1,9 +1,8 @@
import { BRANDING_LOGO_URL, BRANDING_NAME } from '@lobechat/business-const';
import { type IconType } from '@lobehub/icons';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { type LobeChatProps } from '@lobehub/ui/brand';
-import { createStaticStyles, cssVar } from 'antd-style';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/BubblesLoading/index.tsx b/src/components/BubblesLoading/index.tsx
index 02d92694cd6..9b88cbfe2da 100644
--- a/src/components/BubblesLoading/index.tsx
+++ b/src/components/BubblesLoading/index.tsx
@@ -1,6 +1,5 @@
-import { Center } from '@lobehub/ui';
+import { Center, cssVar } from '@lobehub/ui';
import { LoadingDots } from '@lobehub/ui/chat';
-import { cssVar } from 'antd-style';
const BubblesLoading = () => {
return (
diff --git a/src/components/Cell/Divider.tsx b/src/components/Cell/Divider.tsx
index f3abd4d7800..1f5f3e9cdc0 100644
--- a/src/components/Cell/Divider.tsx
+++ b/src/components/Cell/Divider.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useIsDark } from '@/hooks/useIsDark';
diff --git a/src/components/Cell/index.tsx b/src/components/Cell/index.tsx
index 8c78e99e0da..7cda9845195 100644
--- a/src/components/Cell/index.tsx
+++ b/src/components/Cell/index.tsx
@@ -1,6 +1,5 @@
import { type IconProps } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/ChangelogModal/ChangelogContent.tsx b/src/components/ChangelogModal/ChangelogContent.tsx
index 3c06e23947f..72d8ad54a4c 100644
--- a/src/components/ChangelogModal/ChangelogContent.tsx
+++ b/src/components/ChangelogModal/ChangelogContent.tsx
@@ -1,5 +1,4 @@
-import { Typography } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Divider, Typography } from '@lobehub/ui';
import { Image } from '@lobehub/ui/mdx';
import { Fragment, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/ChangelogModal/VersionTag.tsx b/src/components/ChangelogModal/VersionTag.tsx
index 6d3390c565d..c759d8d6a23 100644
--- a/src/components/ChangelogModal/VersionTag.tsx
+++ b/src/components/ChangelogModal/VersionTag.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Tag } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => {
diff --git a/src/components/ChangelogModal/index.tsx b/src/components/ChangelogModal/index.tsx
index de5581e7f8f..b8b162181d7 100644
--- a/src/components/ChangelogModal/index.tsx
+++ b/src/components/ChangelogModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import { ArrowUpRightIcon } from 'lucide-react';
import { lazy, Suspense } from 'react';
diff --git a/src/components/ChatGroupWizard/ChatGroupWizard.tsx b/src/components/ChatGroupWizard/ChatGroupWizard.tsx
index a02529158e6..37de720d102 100644
--- a/src/components/ChatGroupWizard/ChatGroupWizard.tsx
+++ b/src/components/ChatGroupWizard/ChatGroupWizard.tsx
@@ -1,8 +1,22 @@
'use client';
-import { Empty, Flexbox, SearchBar, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Accordion, Avatar, Button, Checkbox, List, Switch, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Accordion,
+ Avatar,
+ Button,
+ Checkbox,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Empty,
+ Flexbox,
+ List,
+ SearchBar,
+ stopPropagation,
+ Switch,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { omit } from 'es-toolkit/compat';
import { Users } from 'lucide-react';
import { type ChangeEvent } from 'react';
diff --git a/src/components/CodeEditorPane/StatusBar.tsx b/src/components/CodeEditorPane/StatusBar.tsx
index 59058d2302a..8a87aa7a229 100644
--- a/src/components/CodeEditorPane/StatusBar.tsx
+++ b/src/components/CodeEditorPane/StatusBar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tooltip } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { IndentStyle } from './indent';
diff --git a/src/components/CodeEditorPane/style.ts b/src/components/CodeEditorPane/style.ts
index f02af674f3d..e0a4b585a0c 100644
--- a/src/components/CodeEditorPane/style.ts
+++ b/src/components/CodeEditorPane/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* The editor chrome. Selectors are one level deeper than the CodeMirror theme
diff --git a/src/components/CollapsibleContent/index.tsx b/src/components/CollapsibleContent/index.tsx
index e87e89f8047..168e1724c35 100644
--- a/src/components/CollapsibleContent/index.tsx
+++ b/src/components/CollapsibleContent/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
import type { CSSProperties, ReactNode } from 'react';
import { memo, useRef } from 'react';
diff --git a/src/components/CommandLine/index.tsx b/src/components/CommandLine/index.tsx
index 19730ad55f8..30b0a5213ed 100644
--- a/src/components/CommandLine/index.tsx
+++ b/src/components/CommandLine/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { CopyButton } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { CopyButton, createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/components/CommentList/CommentItem.tsx b/src/components/CommentList/CommentItem.tsx
index 317214990b9..f817c079cf9 100644
--- a/src/components/CommentList/CommentItem.tsx
+++ b/src/components/CommentList/CommentItem.tsx
@@ -1,9 +1,7 @@
'use client';
import { AgentIcon } from '@lobehub/icons';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Avatar, createStaticStyles, Flexbox, Markdown, responsive, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/CommentList/index.tsx b/src/components/CommentList/index.tsx
index fcdd77fe9cc..321dd481af9 100644
--- a/src/components/CommentList/index.tsx
+++ b/src/components/CommentList/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Empty, Flexbox } from '@lobehub/ui';
import { MessageSquare } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/CopyableLabel/index.tsx b/src/components/CopyableLabel/index.tsx
index aacecabcb3d..36347f8b165 100644
--- a/src/components/CopyableLabel/index.tsx
+++ b/src/components/CopyableLabel/index.tsx
@@ -1,5 +1,4 @@
-import { CopyButton, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { CopyButton, Flexbox, Text } from '@lobehub/ui';
import { type CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/components/DataStyleModal/index.tsx b/src/components/DataStyleModal/index.tsx
index b489766eb7c..2c30c66913a 100644
--- a/src/components/DataStyleModal/index.tsx
+++ b/src/components/DataStyleModal/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/Descriptions/index.tsx b/src/components/Descriptions/index.tsx
index f412c9909e7..60b508e229f 100644
--- a/src/components/Descriptions/index.tsx
+++ b/src/components/Descriptions/index.tsx
@@ -1,7 +1,5 @@
import { type GridProps, type IconProps } from '@lobehub/ui';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx, responsive } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Grid, Icon, responsive, Text } from '@lobehub/ui';
import { type CSSProperties, type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/DiscreteSlider/index.tsx b/src/components/DiscreteSlider/index.tsx
index b17ca1be2ea..45f4941c870 100644
--- a/src/components/DiscreteSlider/index.tsx
+++ b/src/components/DiscreteSlider/index.tsx
@@ -1,6 +1,5 @@
-import { Flexbox } from '@lobehub/ui';
-import { Slider, type SliderProps, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
+import { Slider, type SliderProps, Tooltip } from '@lobehub/ui';
import type { CSSProperties, ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/components/DotsLoading/index.tsx b/src/components/DotsLoading/index.tsx
index ae3e6c93fcf..f6bf1ca2db3 100644
--- a/src/components/DotsLoading/index.tsx
+++ b/src/components/DotsLoading/index.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { type CSSProperties, memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/components/DragUpload/useDragUpload.test.tsx b/src/components/DragUpload/useDragUpload.test.tsx
index e948782b48f..2307d68c8d6 100644
--- a/src/components/DragUpload/useDragUpload.test.tsx
+++ b/src/components/DragUpload/useDragUpload.test.tsx
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { type Mock } from 'vitest';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -12,7 +12,7 @@ import { getContainer, useDragUpload } from './useDragUpload';
// Mock the hooks and components
vi.mock('@/hooks/useMediaUploadAbility');
vi.mock('@/store/agent');
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/components/DragUpload/useDragUpload.tsx b/src/components/DragUpload/useDragUpload.tsx
index 8753f16fd40..e23bd3fc3fa 100644
--- a/src/components/DragUpload/useDragUpload.tsx
+++ b/src/components/DragUpload/useDragUpload.tsx
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/DragUploadZone/index.tsx b/src/components/DragUploadZone/index.tsx
index 78fa18dda5b..8c757185c75 100644
--- a/src/components/DragUploadZone/index.tsx
+++ b/src/components/DragUploadZone/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Center, createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { FileImage, FileText, FileUpIcon, FolderIcon } from 'lucide-react';
import { type CSSProperties, type ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/components/DragUploadZone/useUploadFiles.ts b/src/components/DragUploadZone/useUploadFiles.ts
index 89afdceeae7..8e7e1216e06 100644
--- a/src/components/DragUploadZone/useUploadFiles.ts
+++ b/src/components/DragUploadZone/useUploadFiles.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/Editor/AutoSaveHint.tsx b/src/components/Editor/AutoSaveHint.tsx
index 3604f69b89f..1ba629692ed 100644
--- a/src/components/Editor/AutoSaveHint.tsx
+++ b/src/components/Editor/AutoSaveHint.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Spin, Tag } from '@lobehub/ui/base-ui';
+import { Icon, Spin, Tag } from '@lobehub/ui';
import dayjs from 'dayjs';
import { CloudIcon, TriangleAlertIcon } from 'lucide-react';
import { type CSSProperties } from 'react';
diff --git a/src/components/EmojiPicker/index.tsx b/src/components/EmojiPicker/index.tsx
index 83442f81bc2..f9e2903f93e 100644
--- a/src/components/EmojiPicker/index.tsx
+++ b/src/components/EmojiPicker/index.tsx
@@ -1,5 +1,5 @@
import { type EmojiPickerProps } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import { lazy, memo, Suspense } from 'react';
import { useGlobalStore } from '@/store/global';
diff --git a/src/components/Error/index.tsx b/src/components/Error/index.tsx
index f075625a807..8d3d22b9bcf 100644
--- a/src/components/Error/index.tsx
+++ b/src/components/Error/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox, FluentEmoji } from '@lobehub/ui';
-import { Accordion, Button } from '@lobehub/ui/base-ui';
+import { Accordion, Block, Button, Flexbox, FluentEmoji } from '@lobehub/ui';
import { lazy, Suspense, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/Error/remoteServerErrorToast.test.ts b/src/components/Error/remoteServerErrorToast.test.ts
index 42385b34fbd..fa404233be1 100644
--- a/src/components/Error/remoteServerErrorToast.test.ts
+++ b/src/components/Error/remoteServerErrorToast.test.ts
@@ -4,7 +4,7 @@ import { remoteServerErrorToast } from './remoteServerErrorToast';
const toastError = vi.fn();
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: (...args: unknown[]) => toastError(...args) },
}));
diff --git a/src/components/Error/remoteServerErrorToast.ts b/src/components/Error/remoteServerErrorToast.ts
index 9eeaba55a97..b9aaa0b0891 100644
--- a/src/components/Error/remoteServerErrorToast.ts
+++ b/src/components/Error/remoteServerErrorToast.ts
@@ -1,5 +1,5 @@
import type { RemoteServerNetworkErrorType } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
export const remoteServerErrorToast = (errorType: RemoteServerNetworkErrorType) => {
diff --git a/src/components/ErrorBoundary/AlertFallback.tsx b/src/components/ErrorBoundary/AlertFallback.tsx
index 2918165bee5..0a8f00ccba4 100644
--- a/src/components/ErrorBoundary/AlertFallback.tsx
+++ b/src/components/ErrorBoundary/AlertFallback.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { lazy, memo, Suspense } from 'react';
const Highlighter = lazy(() => import('@lobehub/ui/es/Highlighter/index'));
diff --git a/src/components/ErrorBoundary/SilentFallback.tsx b/src/components/ErrorBoundary/SilentFallback.tsx
index 59a3bccaa0d..7eb4d350f07 100644
--- a/src/components/ErrorBoundary/SilentFallback.tsx
+++ b/src/components/ErrorBoundary/SilentFallback.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { useTheme } from 'antd-style';
+import { Icon, useTheme } from '@lobehub/ui';
import { TriangleAlert } from 'lucide-react';
import { type CSSProperties, memo } from 'react';
diff --git a/src/components/ExecutionStatus.ts b/src/components/ExecutionStatus.ts
index cbab8b1c6dc..4b0c2193e30 100644
--- a/src/components/ExecutionStatus.ts
+++ b/src/components/ExecutionStatus.ts
@@ -1,6 +1,6 @@
import type { ChatTopicStatus, ProjectStatus, TaskStatus } from '@lobechat/types';
import { PROJECT_STATUSES } from '@lobechat/types';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
Archive,
diff --git a/src/components/FeedbackModal/FeedbackContent.tsx b/src/components/FeedbackModal/FeedbackContent.tsx
index aea330a11a4..865474e7a17 100644
--- a/src/components/FeedbackModal/FeedbackContent.tsx
+++ b/src/components/FeedbackModal/FeedbackContent.tsx
@@ -1,9 +1,8 @@
'use client';
import { BRANDING_EMAIL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, toast, Upload, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
+import { Button, Flexbox, Icon, Input, toast, Upload, useModalContext } from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { ImagePlus, Send } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/components/FeedbackModal/index.tsx b/src/components/FeedbackModal/index.tsx
index 09fdd484dd1..dd43dfc6bb6 100644
--- a/src/components/FeedbackModal/index.tsx
+++ b/src/components/FeedbackModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import { useGlobalStore } from '@/store/global';
diff --git a/src/components/FileParsingStatus/EmbeddingStatus.tsx b/src/components/FileParsingStatus/EmbeddingStatus.tsx
index a5bf503936b..6c74fc95194 100644
--- a/src/components/FileParsingStatus/EmbeddingStatus.tsx
+++ b/src/components/FileParsingStatus/EmbeddingStatus.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon, Tag, Tooltip } from '@lobehub/ui';
import { BoltIcon, RotateCwIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/FileParsingStatus/index.tsx b/src/components/FileParsingStatus/index.tsx
index 72d47426d7a..8da16ede061 100644
--- a/src/components/FileParsingStatus/index.tsx
+++ b/src/components/FileParsingStatus/index.tsx
@@ -1,6 +1,15 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Badge, Button, Spin, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Badge,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Spin,
+ Tag,
+ Tooltip,
+} from '@lobehub/ui';
import { BoltIcon, RotateCwIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -106,9 +115,9 @@ const FileParsingStatus = memo<FileParsingStatusProps>(
>
<Tag
className={cx('chunk-tag', className)}
+ icon={preparingEmbedding ? <Spin size="small" /> : <Icon icon={BoltIcon} />}
style={{ cursor: 'pointer' }}
variant={'filled'}
- icon={preparingEmbedding ? <Spin size="small" /> : <Icon icon={BoltIcon} />}
onClick={() => {
onClick?.(AsyncTaskStatus.Success);
}}
diff --git a/src/components/FormAction/index.tsx b/src/components/FormAction/index.tsx
index c4882028371..fafb9fa7dcb 100644
--- a/src/components/FormAction/index.tsx
+++ b/src/components/FormAction/index.tsx
@@ -1,7 +1,5 @@
import { type CenterProps } from '@lobehub/ui';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Center, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/FormInput/FormInput.tsx b/src/components/FormInput/FormInput.tsx
index 1948865a130..b4c9ced267e 100644
--- a/src/components/FormInput/FormInput.tsx
+++ b/src/components/FormInput/FormInput.tsx
@@ -1,4 +1,4 @@
-import { Input, type InputProps as Props } from '@lobehub/ui/base-ui';
+import { Input, type InputProps as Props } from '@lobehub/ui';
import { memo, useEffect, useRef, useState } from 'react';
import { useIMECompositionEvent } from '@/hooks/useIMECompositionEvent';
diff --git a/src/components/FormInput/FormPassword.tsx b/src/components/FormInput/FormPassword.tsx
index 7a5f241540a..cea1f64f721 100644
--- a/src/components/FormInput/FormPassword.tsx
+++ b/src/components/FormInput/FormPassword.tsx
@@ -1,4 +1,4 @@
-import { InputPassword, type InputPasswordProps as Props } from '@lobehub/ui/base-ui';
+import { InputPassword, type InputPasswordProps as Props } from '@lobehub/ui';
import { memo, useEffect, useRef, useState } from 'react';
import { useIMECompositionEvent } from '@/hooks/useIMECompositionEvent';
diff --git a/src/components/FormInput/FormSliderWithInput.tsx b/src/components/FormInput/FormSliderWithInput.tsx
index 6f519314334..144e132357a 100644
--- a/src/components/FormInput/FormSliderWithInput.tsx
+++ b/src/components/FormInput/FormSliderWithInput.tsx
@@ -1,4 +1,4 @@
-import { SliderWithInput, type SliderWithInputProps } from '@lobehub/ui/base-ui';
+import { SliderWithInput, type SliderWithInputProps } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
interface FormSliderWithInputProps extends Omit<SliderWithInputProps, 'onChange' | 'value'> {
diff --git a/src/components/GalleyGrid/Grid.tsx b/src/components/GalleyGrid/Grid.tsx
index 9819bc8efca..6fe13550efc 100644
--- a/src/components/GalleyGrid/Grid.tsx
+++ b/src/components/GalleyGrid/Grid.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { type CSSProperties, type ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/components/GalleyGrid/index.tsx b/src/components/GalleyGrid/index.tsx
index 7db79716550..ccdda407ff8 100644
--- a/src/components/GalleyGrid/index.tsx
+++ b/src/components/GalleyGrid/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, useResponsive } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/components/GalleyGrid/style.ts b/src/components/GalleyGrid/style.ts
index cd59ccf461c..d442e13551f 100644
--- a/src/components/GalleyGrid/style.ts
+++ b/src/components/GalleyGrid/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const MIN_IMAGE_SIZE = 64;
export const MAX_SIZE_DESKTOP = 200;
diff --git a/src/components/GeneratingBorder/index.tsx b/src/components/GeneratingBorder/index.tsx
index e5f97679489..6a233f183a7 100644
--- a/src/components/GeneratingBorder/index.tsx
+++ b/src/components/GeneratingBorder/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createGlobalStyle, createStaticStyles, cssVar } from 'antd-style';
+import { createGlobalStyle, createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
/**
diff --git a/src/components/GuideModal/index.tsx b/src/components/GuideModal/index.tsx
index fa9de77de7a..5cca130707e 100644
--- a/src/components/GuideModal/index.tsx
+++ b/src/components/GuideModal/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal, type ModalInstance, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
+import { Button, createModal, type ModalInstance, useModalContext } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/GuideVideo/index.tsx b/src/components/GuideVideo/index.tsx
index 25065f2e398..b344a3c8e29 100644
--- a/src/components/GuideVideo/index.tsx
+++ b/src/components/GuideVideo/index.tsx
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
interface GuideVideoProps {
diff --git a/src/components/HtmlPreview/PreviewDrawer.tsx b/src/components/HtmlPreview/PreviewDrawer.tsx
index 8744bb33637..ac5dde5254b 100644
--- a/src/components/HtmlPreview/PreviewDrawer.tsx
+++ b/src/components/HtmlPreview/PreviewDrawer.tsx
@@ -1,9 +1,16 @@
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
import { extractHtmlTitle } from '@lobechat/html-artifact';
import { exportFile } from '@lobechat/utils/client';
-import { Block, Flexbox, Highlighter, HtmlPreview } from '@lobehub/ui';
-import { Button, Drawer, Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Block,
+ Button,
+ createStaticStyles,
+ Drawer,
+ Flexbox,
+ Highlighter,
+ HtmlPreview,
+ Tabs,
+} from '@lobehub/ui';
import { Code2, Download, Eye } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/ImageItem/index.tsx b/src/components/ImageItem/index.tsx
index 3d631d40389..2d4e5be055e 100644
--- a/src/components/ImageItem/index.tsx
+++ b/src/components/ImageItem/index.tsx
@@ -1,7 +1,5 @@
import { type ImageProps } from '@lobehub/ui';
-import { Image } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, cx, Image } from '@lobehub/ui';
import { Trash } from 'lucide-react';
import { type CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/components/ImperativeModal/index.test.tsx b/src/components/ImperativeModal/index.test.tsx
index f8268ce9ea3..f793050a079 100644
--- a/src/components/ImperativeModal/index.test.tsx
+++ b/src/components/ImperativeModal/index.test.tsx
@@ -1,5 +1,4 @@
-import { MotionProvider } from '@lobehub/ui';
-import { Input, ModalHost } from '@lobehub/ui/base-ui';
+import { Input, ModalHost, MotionProvider } from '@lobehub/ui';
import { act, render, screen } from '@testing-library/react';
import { motion } from 'motion/react';
import { useState } from 'react';
diff --git a/src/components/ImperativeModal/index.tsx b/src/components/ImperativeModal/index.tsx
index 9e6f3827eba..c585d0af3d9 100644
--- a/src/components/ImperativeModal/index.tsx
+++ b/src/components/ImperativeModal/index.tsx
@@ -6,7 +6,7 @@ import {
type ImperativeModalProps as BaseImperativeModalProps,
ModalFooter,
type ModalInstance,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { type CSSProperties, type ReactNode, useEffect, useMemo, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/InfoTooltip/index.tsx b/src/components/InfoTooltip/index.tsx
index 4c7431a3928..f6eefaf7d5d 100644
--- a/src/components/InfoTooltip/index.tsx
+++ b/src/components/InfoTooltip/index.tsx
@@ -1,6 +1,5 @@
import { type IconSize, type TooltipProps } from '@lobehub/ui';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Tooltip } from '@lobehub/ui';
import { CircleHelp } from 'lucide-react';
import { type CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/components/InlineRename/index.tsx b/src/components/InlineRename/index.tsx
index 68dd9507ae2..fe02cfae78b 100644
--- a/src/components/InlineRename/index.tsx
+++ b/src/components/InlineRename/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Popover, stopPropagation } from '@lobehub/ui';
-import { Input, type InputProps, type PopoverPlacement } from '@lobehub/ui/base-ui';
+import { Input, type InputProps, type PopoverPlacement } from '@lobehub/ui';
import { type KeyboardEvent } from 'react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/components/InlineTable/index.tsx b/src/components/InlineTable/index.tsx
index 4b307485b12..590900a75a7 100644
--- a/src/components/InlineTable/index.tsx
+++ b/src/components/InlineTable/index.tsx
@@ -1,5 +1,5 @@
-import { Table, type TableProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Table, type TableProps } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
const styles = createStaticStyles(({ css, cssVar }) => ({
hoverToActive: css`
diff --git a/src/components/InstantSwitch/index.tsx b/src/components/InstantSwitch/index.tsx
index 2b8087b5a85..9146ed79548 100644
--- a/src/components/InstantSwitch/index.tsx
+++ b/src/components/InstantSwitch/index.tsx
@@ -1,5 +1,5 @@
-import type { SwitchProps } from '@lobehub/ui/base-ui';
-import { Switch } from '@lobehub/ui/base-ui';
+import type { SwitchProps } from '@lobehub/ui';
+import { Switch } from '@lobehub/ui';
import { memo, useState } from 'react';
interface InstantSwitchProps {
diff --git a/src/components/JSONSchemaConfig/ItemRender.tsx b/src/components/JSONSchemaConfig/ItemRender.tsx
index cb5d54ac9e9..48d63246fca 100644
--- a/src/components/JSONSchemaConfig/ItemRender.tsx
+++ b/src/components/JSONSchemaConfig/ItemRender.tsx
@@ -1,4 +1,4 @@
-import { Input, InputNumber, InputPassword, Select, Slider, Switch } from '@lobehub/ui/base-ui';
+import { Input, InputNumber, InputPassword, Select, Slider, Switch } from '@lobehub/ui';
import { type JSONSchema7Type } from 'json-schema';
import { memo } from 'react';
diff --git a/src/components/KeyValueEditor/index.tsx b/src/components/KeyValueEditor/index.tsx
index 1457cee11c7..64b4559f811 100644
--- a/src/components/KeyValueEditor/index.tsx
+++ b/src/components/KeyValueEditor/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import fastDeepEqual from 'fast-deep-equal';
import { LucidePlus, LucideTrash } from 'lucide-react';
import { type CSSProperties } from 'react';
diff --git a/src/components/LibIcon/Locked.tsx b/src/components/LibIcon/Locked.tsx
index b71d9cdad56..0cc28267926 100644
--- a/src/components/LibIcon/Locked.tsx
+++ b/src/components/LibIcon/Locked.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import { LockIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/components/LibIcon/StatusIcon.tsx b/src/components/LibIcon/StatusIcon.tsx
index 0a08d8882f5..bd676d63440 100644
--- a/src/components/LibIcon/StatusIcon.tsx
+++ b/src/components/LibIcon/StatusIcon.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { LockIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/components/LibIcon/index.tsx b/src/components/LibIcon/index.tsx
index e58d8c66d62..0e197c527dc 100644
--- a/src/components/LibIcon/index.tsx
+++ b/src/components/LibIcon/index.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { FolderIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/components/ListSkeleton/index.tsx b/src/components/ListSkeleton/index.tsx
index 72b11b85c6b..f4b0a11d680 100644
--- a/src/components/ListSkeleton/index.tsx
+++ b/src/components/ListSkeleton/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
interface ListSkeletonProps {
diff --git a/src/components/LiteTable/index.tsx b/src/components/LiteTable/index.tsx
index 990c98c7faf..688758c06dd 100644
--- a/src/components/LiteTable/index.tsx
+++ b/src/components/LiteTable/index.tsx
@@ -1,5 +1,4 @@
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Skeleton } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/Loading/CircleLoading/index.tsx b/src/components/Loading/CircleLoading/index.tsx
index 95c061aa9ae..5cacaac3001 100644
--- a/src/components/Loading/CircleLoading/index.tsx
+++ b/src/components/Loading/CircleLoading/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
+import { Center, Flexbox, Spin, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
const CircleLoading = () => {
diff --git a/src/components/Loading/ContentLoading/index.tsx b/src/components/Loading/ContentLoading/index.tsx
index 927b0689816..a1e95757a50 100644
--- a/src/components/Loading/ContentLoading/index.tsx
+++ b/src/components/Loading/ContentLoading/index.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
const styles = createStaticStyles(({ css }) => ({
container: css`
diff --git a/src/components/Loading/SkeletonLoading/index.tsx b/src/components/Loading/SkeletonLoading/index.tsx
index c0c262318b7..a3635707f64 100644
--- a/src/components/Loading/SkeletonLoading/index.tsx
+++ b/src/components/Loading/SkeletonLoading/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cx, responsive } from 'antd-style';
+import { createStaticStyles, cx, responsive } from '@lobehub/ui';
import { memo } from 'react';
import { ArticleSkeleton } from '@/components/Skeleton';
diff --git a/src/components/LobeIcons/index.tsx b/src/components/LobeIcons/index.tsx
index 95381f23391..af0a37e59d5 100644
--- a/src/components/LobeIcons/index.tsx
+++ b/src/components/LobeIcons/index.tsx
@@ -4,7 +4,7 @@ import type {
ProviderCombine as LobeProviderCombine,
ProviderIcon as LobeProviderIcon,
} from '@lobehub/icons';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import type { ComponentProps } from 'react';
import { lazy, Suspense } from 'react';
diff --git a/src/components/MCPDepsIcon/index.tsx b/src/components/MCPDepsIcon/index.tsx
index 56bc5e3da9f..bd9bbce49da 100644
--- a/src/components/MCPDepsIcon/index.tsx
+++ b/src/components/MCPDepsIcon/index.tsx
@@ -18,8 +18,7 @@ import {
SiRust,
SiYarn,
} from '@icons-pack/react-simple-icons';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import Java from './Java';
diff --git a/src/components/MCPStdioCommandInput/index.tsx b/src/components/MCPStdioCommandInput/index.tsx
index 12181b46c44..040e5e0191a 100644
--- a/src/components/MCPStdioCommandInput/index.tsx
+++ b/src/components/MCPStdioCommandInput/index.tsx
@@ -7,7 +7,7 @@ import {
SiPython,
} from '@icons-pack/react-simple-icons';
import { Flexbox } from '@lobehub/ui';
-import { AutoComplete, type AutoCompleteProps } from '@lobehub/ui/base-ui';
+import { AutoComplete, type AutoCompleteProps } from '@lobehub/ui';
import { type FC } from 'react';
import { memo } from 'react';
diff --git a/src/components/MaxTokenSlider.tsx b/src/components/MaxTokenSlider.tsx
index e13c7450772..be0c28a6494 100644
--- a/src/components/MaxTokenSlider.tsx
+++ b/src/components/MaxTokenSlider.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { InputNumber } from '@lobehub/ui/base-ui';
+import { Flexbox, InputNumber } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import useMergeState from 'use-merge-value';
diff --git a/src/components/MemberSelectionModal/MemberSelectionModal.tsx b/src/components/MemberSelectionModal/MemberSelectionModal.tsx
index 3d39ee35e5d..c9eaa4c6f9e 100644
--- a/src/components/MemberSelectionModal/MemberSelectionModal.tsx
+++ b/src/components/MemberSelectionModal/MemberSelectionModal.tsx
@@ -1,10 +1,21 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, SearchBar, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Checkbox, List, Switch, Text } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ Checkbox,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ List,
+ SearchBar,
+ Switch,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { useHover } from 'ahooks';
-import { createStaticStyles, cx } from 'antd-style';
import { X } from 'lucide-react';
import { type ChangeEvent } from 'react';
import { memo, useCallback, useMemo, useRef, useState } from 'react';
diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx
index 6c427b03ca0..ac8a866976d 100644
--- a/src/components/Menu/index.tsx
+++ b/src/components/Menu/index.tsx
@@ -1,5 +1,5 @@
-import { List, type ListProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { List, type ListProps } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
export type MenuProps = ListProps;
diff --git a/src/components/ModelSelect/NewModelBadge.tsx b/src/components/ModelSelect/NewModelBadge.tsx
index b5a930cb68a..e1f0ac9961c 100644
--- a/src/components/ModelSelect/NewModelBadge.tsx
+++ b/src/components/ModelSelect/NewModelBadge.tsx
@@ -1,4 +1,4 @@
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/ModelSelect/index.tsx b/src/components/ModelSelect/index.tsx
index 4324be4ee4c..65a1403811b 100644
--- a/src/components/ModelSelect/index.tsx
+++ b/src/components/ModelSelect/index.tsx
@@ -2,9 +2,16 @@ import { type ChatModelCard } from '@lobechat/types';
import { type IconAvatarProps } from '@lobehub/icons';
import { LobeHub } from '@lobehub/icons';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useResponsive } from 'antd-style';
+import {
+ Avatar,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ Tooltip,
+ useResponsive,
+} from '@lobehub/ui';
import {
AudioLines,
Infinity as InfinityIcon,
diff --git a/src/components/NProgress/index.tsx b/src/components/NProgress/index.tsx
index 3ee21c7e625..2ea71182487 100644
--- a/src/components/NProgress/index.tsx
+++ b/src/components/NProgress/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import NextTopLoader from 'nextjs-toploader';
import { isDesktop } from '@/const/version';
diff --git a/src/components/Notification/index.tsx b/src/components/Notification/index.tsx
index 18a8a30aa24..ad6c93fd7fb 100644
--- a/src/components/Notification/index.tsx
+++ b/src/components/Notification/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { XIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/components/OllamaSetupGuide/index.tsx b/src/components/OllamaSetupGuide/index.tsx
index 04d87283bf2..64a998bf2ab 100644
--- a/src/components/OllamaSetupGuide/index.tsx
+++ b/src/components/OllamaSetupGuide/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Highlighter, Snippet } from '@lobehub/ui';
-import { Steps, Tabs } from '@lobehub/ui/base-ui';
+import { Flexbox, Highlighter, Snippet, Steps, Tabs } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/components/Plugins/MCPTag.tsx b/src/components/Plugins/MCPTag.tsx
index 71f2b4e26f8..30446e752fc 100644
--- a/src/components/Plugins/MCPTag.tsx
+++ b/src/components/Plugins/MCPTag.tsx
@@ -1,5 +1,5 @@
import { MCP } from '@lobehub/icons';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo } from 'react';
interface MCPTagProps {
diff --git a/src/components/Plugins/PluginAvatar.tsx b/src/components/Plugins/PluginAvatar.tsx
index 2fc5131ef48..7f6bc10f80d 100644
--- a/src/components/Plugins/PluginAvatar.tsx
+++ b/src/components/Plugins/PluginAvatar.tsx
@@ -1,5 +1,5 @@
import { MCP } from '@lobehub/icons';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { type CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/components/Plugins/PluginTag.tsx b/src/components/Plugins/PluginTag.tsx
index 09ae2039d47..52e1c3297ca 100644
--- a/src/components/Plugins/PluginTag.tsx
+++ b/src/components/Plugins/PluginTag.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import { BadgeCheck, CircleUser, Package } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/PublishedTime.tsx b/src/components/PublishedTime.tsx
index 92a8aa7dcb7..25373d8dbe1 100644
--- a/src/components/PublishedTime.tsx
+++ b/src/components/PublishedTime.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import dayjs from 'dayjs';
import { type CSSProperties, type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/RatingOverview/Rate.tsx b/src/components/RatingOverview/Rate.tsx
index 1d66e6d6397..dd632fbcc5e 100644
--- a/src/components/RatingOverview/Rate.tsx
+++ b/src/components/RatingOverview/Rate.tsx
@@ -1,5 +1,5 @@
-import { Rate as BaseRate, type RateProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Rate as BaseRate, type RateProps } from '@lobehub/ui';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/components/RatingOverview/index.tsx b/src/components/RatingOverview/index.tsx
index 2457f3656ac..ed7a88b354a 100644
--- a/src/components/RatingOverview/index.tsx
+++ b/src/components/RatingOverview/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Progress, Text } from '@lobehub/ui/base-ui';
-import { cssVar, useResponsive } from 'antd-style';
+import { cssVar, Flexbox, Progress, Text, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/RenameModal/index.tsx b/src/components/RenameModal/index.tsx
index f11936f62c1..c25ca606c17 100644
--- a/src/components/RenameModal/index.tsx
+++ b/src/components/RenameModal/index.tsx
@@ -1,14 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import {
- Button,
- createModal,
- Input,
- type ModalInstance,
- Text,
- useModalContext,
-} from '@lobehub/ui/base-ui';
+import { Button, createModal, Input, type ModalInstance, Text, useModalContext } from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/RingLoading.tsx b/src/components/RingLoading.tsx
index d5bdddbe9a3..d3d6eb1e177 100644
--- a/src/components/RingLoading.tsx
+++ b/src/components/RingLoading.tsx
@@ -1,4 +1,4 @@
-import { cssVar, cx } from 'antd-style';
+import { cssVar, cx } from '@lobehub/ui';
import { type CSSProperties, type SVGProps } from 'react';
interface RingLoadingIconProps extends SVGProps<SVGSVGElement> {
diff --git a/src/components/Skeleton/AgentChannel.tsx b/src/components/Skeleton/AgentChannel.tsx
index 132d2f036b6..2f735033cab 100644
--- a/src/components/Skeleton/AgentChannel.tsx
+++ b/src/components/Skeleton/AgentChannel.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, responsive } from '@lobehub/ui';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/AgentProfileNav.tsx b/src/components/Skeleton/AgentProfileNav.tsx
index 3b90f815416..224968b9caa 100644
--- a/src/components/Skeleton/AgentProfileNav.tsx
+++ b/src/components/Skeleton/AgentProfileNav.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Flexbox } from '@lobehub/ui';
import SkeletonBar from './Bar';
diff --git a/src/components/Skeleton/AgentShare.tsx b/src/components/Skeleton/AgentShare.tsx
index 226415c5bc1..1d92a31ee47 100644
--- a/src/components/Skeleton/AgentShare.tsx
+++ b/src/components/Skeleton/AgentShare.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import type { ReactNode } from 'react';
import WideScreenContainer from '@/features/WideScreenContainer';
diff --git a/src/components/Skeleton/AgentStatistics.tsx b/src/components/Skeleton/AgentStatistics.tsx
index 07953650537..012d04fdadc 100644
--- a/src/components/Skeleton/AgentStatistics.tsx
+++ b/src/components/Skeleton/AgentStatistics.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Grid } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Grid, Skeleton } from '@lobehub/ui';
import WideScreenContainer from '@/features/WideScreenContainer';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/AgentViewAll.tsx b/src/components/Skeleton/AgentViewAll.tsx
index 1960fcbf290..f92bf1abe5d 100644
--- a/src/components/Skeleton/AgentViewAll.tsx
+++ b/src/components/Skeleton/AgentViewAll.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Center, Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import { Block, Center, createStaticStyles, cssVar, Flexbox, responsive } from '@lobehub/ui';
import WideScreenContainer from '@/features/WideScreenContainer';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/Article.tsx b/src/components/Skeleton/Article.tsx
index cfeef37ed4e..63b77fca831 100644
--- a/src/components/Skeleton/Article.tsx
+++ b/src/components/Skeleton/Article.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { type CSSProperties, memo } from 'react';
interface ArticleSkeletonProps {
diff --git a/src/components/Skeleton/Bar.tsx b/src/components/Skeleton/Bar.tsx
index 44b1534fb72..880ac22ee5a 100644
--- a/src/components/Skeleton/Bar.tsx
+++ b/src/components/Skeleton/Bar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Skeleton } from '@lobehub/ui';
export interface SkeletonBarProps {
height: number;
diff --git a/src/components/Skeleton/CommunityHome.tsx b/src/components/Skeleton/CommunityHome.tsx
index c83182ff640..d4e975a6f07 100644
--- a/src/components/Skeleton/CommunityHome.tsx
+++ b/src/components/Skeleton/CommunityHome.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/CommunityList.tsx b/src/components/Skeleton/CommunityList.tsx
index 675d233b279..4ec1eff15f6 100644
--- a/src/components/Skeleton/CommunityList.tsx
+++ b/src/components/Skeleton/CommunityList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Grid } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Grid, Skeleton } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import WideScreenContainer from '@/features/WideScreenContainer';
diff --git a/src/components/Skeleton/Conversation/AgentLayout.tsx b/src/components/Skeleton/Conversation/AgentLayout.tsx
index abb277f6bd7..66342f0339b 100644
--- a/src/components/Skeleton/Conversation/AgentLayout.tsx
+++ b/src/components/Skeleton/Conversation/AgentLayout.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import {
OVERVIEW_PANEL_WIDTH,
diff --git a/src/components/Skeleton/Conversation/Container.tsx b/src/components/Skeleton/Conversation/Container.tsx
index 207230a5457..c14f5db3cb3 100644
--- a/src/components/Skeleton/Conversation/Container.tsx
+++ b/src/components/Skeleton/Conversation/Container.tsx
@@ -1,8 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { CONVERSATION_MIN_WIDTH } from '@/const/layoutTokens';
import { useGlobalStore } from '@/store/global';
diff --git a/src/components/Skeleton/Conversation/List.tsx b/src/components/Skeleton/Conversation/List.tsx
index 6bc8053e0c6..12e68fe31fc 100644
--- a/src/components/Skeleton/Conversation/List.tsx
+++ b/src/components/Skeleton/Conversation/List.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
/** Avoid importing the skeleton barrel from a component it re-exports. */
import ArticleSkeleton from '../Article';
diff --git a/src/components/Skeleton/Conversation/Segment.tsx b/src/components/Skeleton/Conversation/Segment.tsx
index d00ae3022a7..cb643224690 100644
--- a/src/components/Skeleton/Conversation/Segment.tsx
+++ b/src/components/Skeleton/Conversation/Segment.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import SkeletonBar from '../Bar';
import ConversationSkeletonContainer from './Container';
diff --git a/src/components/Skeleton/Generation.tsx b/src/components/Skeleton/Generation.tsx
index a14c24d7148..9331d6cc5ae 100644
--- a/src/components/Skeleton/Generation.tsx
+++ b/src/components/Skeleton/Generation.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Grid } from '@lobehub/ui';
import { useLocation } from 'react-router';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/Goal.tsx b/src/components/Skeleton/Goal.tsx
index 36650eb9a5f..736dff3b559 100644
--- a/src/components/Skeleton/Goal.tsx
+++ b/src/components/Skeleton/Goal.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import NavHeader from '@/features/NavHeader';
import WideScreenContainer from '@/features/WideScreenContainer';
diff --git a/src/components/Skeleton/GoalDetail.tsx b/src/components/Skeleton/GoalDetail.tsx
index 8620f6e8018..633d6b0f9be 100644
--- a/src/components/Skeleton/GoalDetail.tsx
+++ b/src/components/Skeleton/GoalDetail.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import NavHeader from '@/features/NavHeader';
import WideScreenContainer from '@/features/WideScreenContainer';
diff --git a/src/components/Skeleton/NavPanel/SideBar.tsx b/src/components/Skeleton/NavPanel/SideBar.tsx
index 26910ab2c69..5d5dd2f0891 100644
--- a/src/components/Skeleton/NavPanel/SideBar.tsx
+++ b/src/components/Skeleton/NavPanel/SideBar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Flexbox } from '@lobehub/ui';
import { isDesktop } from '@/const/version';
import { isMacOS } from '@/utils/platform';
diff --git a/src/components/Skeleton/Profile.tsx b/src/components/Skeleton/Profile.tsx
index 75f0c1fd845..e48c58132ce 100644
--- a/src/components/Skeleton/Profile.tsx
+++ b/src/components/Skeleton/Profile.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import WideScreenContainer from '@/features/WideScreenContainer';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/ResourceHome.tsx b/src/components/Skeleton/ResourceHome.tsx
index df188081884..7d238bf5afa 100644
--- a/src/components/Skeleton/ResourceHome.tsx
+++ b/src/components/Skeleton/ResourceHome.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import SkeletonBar from './Bar';
diff --git a/src/components/Skeleton/Settings/MessengerDetail.tsx b/src/components/Skeleton/Settings/MessengerDetail.tsx
index 2f93ee7ddfd..b658f689f8f 100644
--- a/src/components/Skeleton/Settings/MessengerDetail.tsx
+++ b/src/components/Skeleton/Settings/MessengerDetail.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/components/Skeleton/Settings/Profile.tsx b/src/components/Skeleton/Settings/Profile.tsx
index 97cc7b82087..acf7ff3a806 100644
--- a/src/components/Skeleton/Settings/Profile.tsx
+++ b/src/components/Skeleton/Settings/Profile.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Form } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import { type ReactNode } from 'react';
import { useUserStore } from '@/store/user';
diff --git a/src/components/Skeleton/Settings/Provider.tsx b/src/components/Skeleton/Settings/Provider.tsx
index 080c4ba4838..25f87028405 100644
--- a/src/components/Skeleton/Settings/Provider.tsx
+++ b/src/components/Skeleton/Settings/Provider.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { useLocation } from 'react-router';
import NavHeader from '@/features/NavHeader';
diff --git a/src/components/Skeleton/Settings/Section.tsx b/src/components/Skeleton/Settings/Section.tsx
index 1c2cbc6bc1e..e4974ef171e 100644
--- a/src/components/Skeleton/Settings/Section.tsx
+++ b/src/components/Skeleton/Settings/Section.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Form } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import SkeletonBar from '../Bar';
diff --git a/src/components/Skeleton/Settings/Sections.tsx b/src/components/Skeleton/Settings/Sections.tsx
index afe0ccccd16..4ec474b95b5 100644
--- a/src/components/Skeleton/Settings/Sections.tsx
+++ b/src/components/Skeleton/Settings/Sections.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Form } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import type { ComponentType, ReactNode } from 'react';
import NavHeader from '@/features/NavHeader';
diff --git a/src/components/Skeleton/SkeletonInput.tsx b/src/components/Skeleton/SkeletonInput.tsx
index 1b44c370517..8c992a65007 100644
--- a/src/components/Skeleton/SkeletonInput.tsx
+++ b/src/components/Skeleton/SkeletonInput.tsx
@@ -1,5 +1,5 @@
'use client';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
export const SkeletonInput = () => <Skeleton height={36} />;
diff --git a/src/components/Skeleton/SkeletonSwitch.tsx b/src/components/Skeleton/SkeletonSwitch.tsx
index ffe133fbefb..af6f0d01282 100644
--- a/src/components/Skeleton/SkeletonSwitch.tsx
+++ b/src/components/Skeleton/SkeletonSwitch.tsx
@@ -1,5 +1,4 @@
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { css, cx, Skeleton } from '@lobehub/ui';
const switchLoading = cx(css`
width: 44px !important;
diff --git a/src/components/Skeleton/Surface.tsx b/src/components/Skeleton/Surface.tsx
index 54f1626494a..2a5e0ca98aa 100644
--- a/src/components/Skeleton/Surface.tsx
+++ b/src/components/Skeleton/Surface.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Grid } from '@lobehub/ui';
-import { Form } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Grid } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import type { ComponentType } from 'react';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/Skeleton/Tasks.tsx b/src/components/Skeleton/Tasks.tsx
index 9dc794c7e64..3f99ceb2422 100644
--- a/src/components/Skeleton/Tasks.tsx
+++ b/src/components/Skeleton/Tasks.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Block, Divider, Flexbox } from '@lobehub/ui';
import { Fragment } from 'react';
import TaskItemSkeleton from '@/features/AgentTasks/AgentTaskList/TaskItemSkeleton';
diff --git a/src/components/Skeleton/Topics.tsx b/src/components/Skeleton/Topics.tsx
index e85ac671e7e..8a0d0707c36 100644
--- a/src/components/Skeleton/Topics.tsx
+++ b/src/components/Skeleton/Topics.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, responsive } from '@lobehub/ui';
import NavHeader from '@/features/NavHeader';
import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
diff --git a/src/components/SpendType/index.tsx b/src/components/SpendType/index.tsx
index d4d72939dda..e52784c2480 100644
--- a/src/components/SpendType/index.tsx
+++ b/src/components/SpendType/index.tsx
@@ -1,5 +1,4 @@
-import { Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon, Tooltip } from '@lobehub/ui';
import { CircleDotDashed, Database, ImagePlus, MessageSquareText, Mic, Video } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/components/Statistic/index.tsx b/src/components/Statistic/index.tsx
index 6e4de55d9e4..947aad6753e 100644
--- a/src/components/Statistic/index.tsx
+++ b/src/components/Statistic/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/StatisticCard/TitleWithPercentage.tsx b/src/components/StatisticCard/TitleWithPercentage.tsx
index e51f372bd3b..9b4223b0ae1 100644
--- a/src/components/StatisticCard/TitleWithPercentage.tsx
+++ b/src/components/StatisticCard/TitleWithPercentage.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import { type CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/components/StatisticCard/index.tsx b/src/components/StatisticCard/index.tsx
index b59794c96cd..e6c00edc600 100644
--- a/src/components/StatisticCard/index.tsx
+++ b/src/components/StatisticCard/index.tsx
@@ -1,7 +1,5 @@
import { type BlockProps } from '@lobehub/ui';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Spin, Statistic, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, responsive, Spin, Statistic, Text } from '@lobehub/ui';
import { type CSSProperties, type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/components/StopLoading.tsx b/src/components/StopLoading.tsx
index 9c81f116858..b80881b0e4f 100644
--- a/src/components/StopLoading.tsx
+++ b/src/components/StopLoading.tsx
@@ -1,5 +1,5 @@
import { type IconType } from '@lobehub/icons';
-import { cssVar, cx } from 'antd-style';
+import { cssVar, cx } from '@lobehub/ui';
const StopLoadingIcon: IconType = (({ ref, size = 16, className, style, ...rest }) => {
return (
diff --git a/src/components/StreamingMarkdown/index.tsx b/src/components/StreamingMarkdown/index.tsx
index b52faa3cc81..25bd71c380e 100644
--- a/src/components/StreamingMarkdown/index.tsx
+++ b/src/components/StreamingMarkdown/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Markdown, ScrollArea } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Markdown, ScrollArea } from '@lobehub/ui';
import type { RefObject } from 'react';
import { memo, useEffect } from 'react';
diff --git a/src/components/TablePagination/PageSizeSelect.tsx b/src/components/TablePagination/PageSizeSelect.tsx
index 87b5a503f63..7bb7b1fb5f6 100644
--- a/src/components/TablePagination/PageSizeSelect.tsx
+++ b/src/components/TablePagination/PageSizeSelect.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
interface PageSizeOption {
diff --git a/src/components/TablePagination/index.tsx b/src/components/TablePagination/index.tsx
index 9823f3097d4..81d45c44c2b 100644
--- a/src/components/TablePagination/index.tsx
+++ b/src/components/TablePagination/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { ChevronLeft, ChevronRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/TailMarquee/index.tsx b/src/components/TailMarquee/index.tsx
index 81229b905ef..968292e2628 100644
--- a/src/components/TailMarquee/index.tsx
+++ b/src/components/TailMarquee/index.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx, keyframes } from 'antd-style';
+import { createStaticStyles, cx, keyframes } from '@lobehub/ui';
import {
type CSSProperties,
type PointerEvent,
diff --git a/src/components/TextArea/index.tsx b/src/components/TextArea/index.tsx
index a2437c9677d..94a9f0ff5bc 100644
--- a/src/components/TextArea/index.tsx
+++ b/src/components/TextArea/index.tsx
@@ -1,4 +1,4 @@
-import { TextArea as LobeTextArea, type TextAreaProps as Props } from '@lobehub/ui/base-ui';
+import { TextArea as LobeTextArea, type TextAreaProps as Props } from '@lobehub/ui';
import { memo, useRef, useState } from 'react';
import { useIMECompositionEvent } from '@/hooks/useIMECompositionEvent';
diff --git a/src/components/TipGuide/index.tsx b/src/components/TipGuide/index.tsx
index ceb54030270..19d357b99d9 100644
--- a/src/components/TipGuide/index.tsx
+++ b/src/components/TipGuide/index.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Popover } from '@lobehub/ui';
-import { ActionIcon, type PopoverPlacement } from '@lobehub/ui/base-ui';
-import { ConfigProvider } from 'antd';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Popover } from '@lobehub/ui';
+import { ActionIcon, type PopoverPlacement } from '@lobehub/ui';
import { XIcon } from 'lucide-react';
import { type CSSProperties, type FC, type ReactNode } from 'react';
@@ -90,60 +88,44 @@ const TipGuide: FC<TipGuideProps> = ({
open,
onOpenChange: setOpen,
}) => {
+ if (!open) return children;
+
return (
- <ConfigProvider
- theme={{
- components: {
- Badge: { fontSize: 12, lineHeight: 1 },
- Button: { colorPrimary: cssVar.blue7 },
- Checkbox: {
- colorPrimary: cssVar.blue7,
- colorText: cssVar.colorTextLightSolid,
- },
- Popover: { colorText: cssVar.colorTextLightSolid },
- },
- }}
- >
- {open ? (
- <div className={styles.container}>
- <div
- style={{
- marginTop: offsetY,
- }}
- >
- <Popover
- arrow={true}
- open={open}
- placement={placement}
- trigger="hover"
- classNames={{
- root: cx(className, styles.overlay),
- }}
- content={
- <Flexbox horizontal gap={24} style={{ userSelect: 'none' }}>
- <div>{title}</div>
- <ActionIcon
- className={styles.close}
- icon={XIcon}
- size={'small'}
- onClick={() => {
- setOpen(false);
- }}
- />
- </Flexbox>
- }
- styles={{
- root: { maxWidth, zIndex: 1000, ...style },
- }}
- >
- {children}
- </Popover>
- </div>
- </div>
- ) : (
- children
- )}
- </ConfigProvider>
+ <div className={styles.container}>
+ <div
+ style={{
+ marginTop: offsetY,
+ }}
+ >
+ <Popover
+ arrow={true}
+ open={open}
+ placement={placement}
+ trigger="hover"
+ classNames={{
+ root: cx(className, styles.overlay),
+ }}
+ content={
+ <Flexbox horizontal gap={24} style={{ userSelect: 'none' }}>
+ <div>{title}</div>
+ <ActionIcon
+ className={styles.close}
+ icon={XIcon}
+ size={'small'}
+ onClick={() => {
+ setOpen(false);
+ }}
+ />
+ </Flexbox>
+ }
+ styles={{
+ root: { maxWidth, zIndex: 1000, ...style },
+ }}
+ >
+ {children}
+ </Popover>
+ </div>
+ </div>
);
};
diff --git a/src/components/TotalToken/index.tsx b/src/components/TotalToken/index.tsx
index c4653758ffd..033e75d90db 100644
--- a/src/components/TotalToken/index.tsx
+++ b/src/components/TotalToken/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { useTheme } from 'antd-style';
+import { Flexbox, Icon, Tag, Tooltip, useTheme } from '@lobehub/ui';
import { ArrowDownToDot, ArrowUpFromDot } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/components/UnreadDot/index.tsx b/src/components/UnreadDot/index.tsx
index b71fd020493..4406e94f95a 100644
--- a/src/components/UnreadDot/index.tsx
+++ b/src/components/UnreadDot/index.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
import { memo } from 'react';
const rippleAnim = keyframes`
diff --git a/src/components/mdx/CollapsibleSection.tsx b/src/components/mdx/CollapsibleSection.tsx
index da9cf9e71fc..b93b23ca2e2 100644
--- a/src/components/mdx/CollapsibleSection.tsx
+++ b/src/components/mdx/CollapsibleSection.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Accordion } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Accordion, createStaticStyles } from '@lobehub/ui';
import { kebabCase } from 'es-toolkit';
import { type FC, type ReactNode } from 'react';
diff --git a/src/features/Acceptance/AcceptanceDrawer.tsx b/src/features/Acceptance/AcceptanceDrawer.tsx
index 00218c9f154..8c5c3e79033 100644
--- a/src/features/Acceptance/AcceptanceDrawer.tsx
+++ b/src/features/Acceptance/AcceptanceDrawer.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Drawer } from '@lobehub/ui/base-ui';
-import { useResponsive } from 'antd-style';
+import { Drawer, useResponsive } from '@lobehub/ui';
import type { ComponentProps } from 'react';
/** Keep each reading level full-width on phones, with a persistent exit. */
diff --git a/src/features/Acceptance/CriterionList/CriterionEditModal.test.ts b/src/features/Acceptance/CriterionList/CriterionEditModal.test.ts
index 398e27341d6..06f4353106e 100644
--- a/src/features/Acceptance/CriterionList/CriterionEditModal.test.ts
+++ b/src/features/Acceptance/CriterionList/CriterionEditModal.test.ts
@@ -7,7 +7,7 @@ import { CriterionEditor } from './CriterionEditor';
const mocks = vi.hoisted(() => ({ createModal: vi.fn((options) => options) }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
createModal: mocks.createModal,
}));
diff --git a/src/features/Acceptance/CriterionList/CriterionEditModal.tsx b/src/features/Acceptance/CriterionList/CriterionEditModal.tsx
index df3b10e3e42..c6f1a2b8fa7 100644
--- a/src/features/Acceptance/CriterionList/CriterionEditModal.tsx
+++ b/src/features/Acceptance/CriterionList/CriterionEditModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance, useModalContext } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance, useModalContext } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { VerifyCriterionDraft } from '@/services/verify';
diff --git a/src/features/Acceptance/CriterionList/CriterionEditor.tsx b/src/features/Acceptance/CriterionList/CriterionEditor.tsx
index 9a580ccc45c..f3e262dc87a 100644
--- a/src/features/Acceptance/CriterionList/CriterionEditor.tsx
+++ b/src/features/Acceptance/CriterionList/CriterionEditor.tsx
@@ -1,8 +1,7 @@
'use client';
import { type VerifierType, verifierTypes } from '@lobechat/const/verify';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, Select, Switch, Text, TextArea, toast } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Input, Select, Switch, Text, TextArea, toast } from '@lobehub/ui';
import { useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/CriterionList/CriterionRow.tsx b/src/features/Acceptance/CriterionList/CriterionRow.tsx
index ac99ba63b9b..7f4a529ee2e 100644
--- a/src/features/Acceptance/CriterionList/CriterionRow.tsx
+++ b/src/features/Acceptance/CriterionList/CriterionRow.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Block, createStaticStyles, cssVar, cx, Flexbox, Tag, Text } from '@lobehub/ui';
import type { HTMLAttributes, ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Report/EvidenceComparisonCard.tsx b/src/features/Acceptance/Report/EvidenceComparisonCard.tsx
index c69cfa69b2a..133a2402432 100644
--- a/src/features/Acceptance/Report/EvidenceComparisonCard.tsx
+++ b/src/features/Acceptance/Report/EvidenceComparisonCard.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Acceptance/Report/InteractionCost.tsx b/src/features/Acceptance/Report/InteractionCost.tsx
index f1f70959612..adf7344e627 100644
--- a/src/features/Acceptance/Report/InteractionCost.tsx
+++ b/src/features/Acceptance/Report/InteractionCost.tsx
@@ -1,7 +1,7 @@
'use client';
import type { VerifyInteractionCost } from '@lobechat/types';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Report/MarkdownEvidence.tsx b/src/features/Acceptance/Report/MarkdownEvidence.tsx
index 715fceed54c..3ae9e2adc54 100644
--- a/src/features/Acceptance/Report/MarkdownEvidence.tsx
+++ b/src/features/Acceptance/Report/MarkdownEvidence.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Center, Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Highlighter,
+ Icon,
+ Markdown,
+ Text,
+} from '@lobehub/ui';
import { ChevronRight, FileText } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Report/ReportViewer.tsx b/src/features/Acceptance/Report/ReportViewer.tsx
index 43eec5516d9..2335a5a3d62 100644
--- a/src/features/Acceptance/Report/ReportViewer.tsx
+++ b/src/features/Acceptance/Report/ReportViewer.tsx
@@ -9,9 +9,20 @@ import type {
VerifySurface,
VerifyVerdict,
} from '@lobechat/types';
-import { Block, Center, Empty, Flexbox, Icon, Image, Markdown } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Block,
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Empty,
+ Flexbox,
+ Icon,
+ Image,
+ Markdown,
+ Text,
+} from '@lobehub/ui';
import type { TFunction } from 'i18next';
import {
AlertTriangle,
diff --git a/src/features/Acceptance/Report/VisualizationRenderer.tsx b/src/features/Acceptance/Report/VisualizationRenderer.tsx
index 4aa2032b010..129c3dc3d0c 100644
--- a/src/features/Acceptance/Report/VisualizationRenderer.tsx
+++ b/src/features/Acceptance/Report/VisualizationRenderer.tsx
@@ -10,9 +10,7 @@ import type {
VerifyVisualizationDataset,
VerifyVisualizationManifest,
} from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowDownRight, ArrowUpRight, ChartNoAxesCombined } from 'lucide-react';
import type { ReactNode } from 'react';
import { Fragment, memo } from 'react';
diff --git a/src/features/Acceptance/Run/CheckerDock.tsx b/src/features/Acceptance/Run/CheckerDock.tsx
index edf2c570983..854ac3a92dc 100644
--- a/src/features/Acceptance/Run/CheckerDock.tsx
+++ b/src/features/Acceptance/Run/CheckerDock.tsx
@@ -1,7 +1,15 @@
import type { VerifyCheckItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx, useThemeMode } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ useThemeMode,
+} from '@lobehub/ui';
import {
Check,
CheckCircle2,
diff --git a/src/features/Acceptance/Run/RunResult.tsx b/src/features/Acceptance/Run/RunResult.tsx
index 0868969d060..e4cfda4d02a 100644
--- a/src/features/Acceptance/Run/RunResult.tsx
+++ b/src/features/Acceptance/Run/RunResult.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { Info, Shield, ShieldAlert, ShieldCheck, ShieldX } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx b/src/features/Acceptance/Viewer/AcceptanceOverview.tsx
index 8b3b65d3aef..b5534569b25 100644
--- a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx
+++ b/src/features/Acceptance/Viewer/AcceptanceOverview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, useResponsive } from '@lobehub/ui';
import { useState } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/features/Acceptance/Viewer/AcceptanceScope.tsx b/src/features/Acceptance/Viewer/AcceptanceScope.tsx
index b134938e2f3..185fd15b513 100644
--- a/src/features/Acceptance/Viewer/AcceptanceScope.tsx
+++ b/src/features/Acceptance/Viewer/AcceptanceScope.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty } from '@lobehub/ui';
-import { Button, Spin } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Spin } from '@lobehub/ui';
import { createContext, type ReactNode, use } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Checks/AcceptanceCheckInventory.tsx b/src/features/Acceptance/Viewer/Checks/AcceptanceCheckInventory.tsx
index f06e82f0dcf..2b1af2d31d4 100644
--- a/src/features/Acceptance/Viewer/Checks/AcceptanceCheckInventory.tsx
+++ b/src/features/Acceptance/Viewer/Checks/AcceptanceCheckInventory.tsx
@@ -1,9 +1,15 @@
'use client';
import { isDraftVerifyRun } from '@lobechat/const/verify';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Select, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useResponsive } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ Flexbox,
+ Select,
+ Text,
+ toast,
+ useResponsive,
+} from '@lobehub/ui';
import { ChevronsDownUp, ChevronsUpDown } from 'lucide-react';
import type { ReactNode } from 'react';
import { useCallback, useEffect, useState } from 'react';
diff --git a/src/features/Acceptance/Viewer/Checks/AcceptanceCheckOwnerToolbar.tsx b/src/features/Acceptance/Viewer/Checks/AcceptanceCheckOwnerToolbar.tsx
index da719eb1580..b10a61b43e0 100644
--- a/src/features/Acceptance/Viewer/Checks/AcceptanceCheckOwnerToolbar.tsx
+++ b/src/features/Acceptance/Viewer/Checks/AcceptanceCheckOwnerToolbar.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, toast } from '@lobehub/ui';
import { Plus, Sparkles } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Checks/AddCheckModal.tsx b/src/features/Acceptance/Viewer/Checks/AddCheckModal.tsx
index aeb324dbe1c..ffd77e323c8 100644
--- a/src/features/Acceptance/Viewer/Checks/AddCheckModal.tsx
+++ b/src/features/Acceptance/Viewer/Checks/AddCheckModal.tsx
@@ -1,7 +1,7 @@
'use client';
import type { AcceptanceChecklistItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
+import { cssVar, Flexbox, Icon } from '@lobehub/ui';
import {
Button,
createModal,
@@ -11,8 +11,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { Check, CircleDashed, Plus } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/Acceptance/Viewer/Checks/CheckHistory.tsx b/src/features/Acceptance/Viewer/Checks/CheckHistory.tsx
index e4a6198978a..353377e394b 100644
--- a/src/features/Acceptance/Viewer/Checks/CheckHistory.tsx
+++ b/src/features/Acceptance/Viewer/Checks/CheckHistory.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { Flexbox, Icon, Image, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Image, Text, Tooltip } from '@lobehub/ui';
import dayjs from 'dayjs';
import { BadgeCheck, Ban, MessageSquareX } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Acceptance/Viewer/Checks/CheckList.tsx b/src/features/Acceptance/Viewer/Checks/CheckList.tsx
index cfb5253dc8d..411a2efb0f4 100644
--- a/src/features/Acceptance/Viewer/Checks/CheckList.tsx
+++ b/src/features/Acceptance/Viewer/Checks/CheckList.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceGroupFeedback } from '@lobechat/types';
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Button, cssVar, Empty, Flexbox, Icon, Text } from '@lobehub/ui';
import {
BadgeCheck,
ChevronRight,
diff --git a/src/features/Acceptance/Viewer/Checks/CheckRow.tsx b/src/features/Acceptance/Viewer/Checks/CheckRow.tsx
index 8618ac46ca8..a71ad675b7e 100644
--- a/src/features/Acceptance/Viewer/Checks/CheckRow.tsx
+++ b/src/features/Acceptance/Viewer/Checks/CheckRow.tsx
@@ -2,9 +2,20 @@
import { readEvidenceChapters } from '@lobechat/const/verify';
import type { AcceptanceCommentThread } from '@lobechat/types';
-import { copyToClipboard, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, Tag, Text, TextArea } from '@lobehub/ui/base-ui';
-import { cssVar, cx, useResponsive } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ copyToClipboard,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ TextArea,
+ Tooltip,
+ useResponsive,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
AudioLines,
diff --git a/src/features/Acceptance/Viewer/Checks/GroupFeedbackTrail.tsx b/src/features/Acceptance/Viewer/Checks/GroupFeedbackTrail.tsx
index 0d5a08d25ed..72e37c85478 100644
--- a/src/features/Acceptance/Viewer/Checks/GroupFeedbackTrail.tsx
+++ b/src/features/Acceptance/Viewer/Checks/GroupFeedbackTrail.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceGroupFeedback } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { MessageSquareText } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Acceptance/Viewer/Checks/checkStatus.ts b/src/features/Acceptance/Viewer/Checks/checkStatus.ts
index 05210354a80..fa4337e3880 100644
--- a/src/features/Acceptance/Viewer/Checks/checkStatus.ts
+++ b/src/features/Acceptance/Viewer/Checks/checkStatus.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { Check, CheckCheck, CircleDashed, HelpCircle, MessageSquareX, XCircle } from 'lucide-react';
import { userReviewState } from './checkState';
diff --git a/src/features/Acceptance/Viewer/Checks/styles.ts b/src/features/Acceptance/Viewer/Checks/styles.ts
index b0e9bf1fce9..684d364cdd7 100644
--- a/src/features/Acceptance/Viewer/Checks/styles.ts
+++ b/src/features/Acceptance/Viewer/Checks/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
/**
diff --git a/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx b/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx
index 2b7c1fcdd64..aec78af582a 100644
--- a/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx
+++ b/src/features/Acceptance/Viewer/Comments/AcceptanceDiscussion.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceCommentThread } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { BadgeCheck, Undo2 } from 'lucide-react';
import { nanoid } from 'nanoid';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/Acceptance/Viewer/Comments/CommentCard.tsx b/src/features/Acceptance/Viewer/Comments/CommentCard.tsx
index b790969aa56..b51343bab5e 100644
--- a/src/features/Acceptance/Viewer/Comments/CommentCard.tsx
+++ b/src/features/Acceptance/Viewer/Comments/CommentCard.tsx
@@ -1,18 +1,19 @@
'use client';
import type { AcceptanceCommentItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
import {
ActionIcon,
Avatar,
confirmModal,
+ cx,
DropdownMenu,
+ Flexbox,
+ Icon,
Tag,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { Link2, MoreHorizontal, Trash2 } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx b/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx
index 194aff3a7ae..bab9243e970 100644
--- a/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx
+++ b/src/features/Acceptance/Viewer/Comments/CommentComposer.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, TextArea, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, TextArea, toast } from '@lobehub/ui';
import type { CSSProperties } from 'react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx b/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx
index 1e08b480b3b..f863675c90d 100644
--- a/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx
+++ b/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx
@@ -3,9 +3,17 @@
import data from '@emoji-mart/data';
import Picker from '@emoji-mart/react';
import type { AcceptanceCommentReaction } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Popover, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx, useTheme } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Popover,
+ toast,
+ Tooltip,
+ useTheme,
+} from '@lobehub/ui';
import { PlusIcon, SmilePlus } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/CommentThread.tsx b/src/features/Acceptance/Viewer/Comments/CommentThread.tsx
index 88b3d51d1d3..0f7ba7ac8e9 100644
--- a/src/features/Acceptance/Viewer/Comments/CommentThread.tsx
+++ b/src/features/Acceptance/Viewer/Comments/CommentThread.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceCommentThread } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Tag, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Button, cx, Flexbox, Icon, Tag, toast } from '@lobehub/ui';
import { CheckCircle2 } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsx b/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsx
index 7f34cb41858..f3969c8c952 100644
--- a/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsx
+++ b/src/features/Acceptance/Viewer/Comments/DiscussionAside.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceCommentItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Tooltip } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsx b/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsx
index a512a8af33a..dd2e5ba0abe 100644
--- a/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsx
+++ b/src/features/Acceptance/Viewer/Comments/DiscussionEntries.tsx
@@ -1,8 +1,7 @@
'use client';
import type { AcceptanceCommentItem, AcceptanceCommentThread } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { GitCommitHorizontal, MessageSquare } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx b/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx
index bc00d9a7b61..c778bc9ab40 100644
--- a/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx
+++ b/src/features/Acceptance/Viewer/Comments/EvidenceCommentModal.tsx
@@ -1,9 +1,18 @@
'use client';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal, Text, TextArea, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Text,
+ TextArea,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/ReviewerApprovalBar.tsx b/src/features/Acceptance/Viewer/Comments/ReviewerApprovalBar.tsx
index 55e5f3ef153..77126e6dd16 100644
--- a/src/features/Acceptance/Viewer/Comments/ReviewerApprovalBar.tsx
+++ b/src/features/Acceptance/Viewer/Comments/ReviewerApprovalBar.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text, TextArea, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ TextArea,
+ toast,
+} from '@lobehub/ui';
import { BadgeCheck } from 'lucide-react';
import { nanoid } from 'nanoid';
import { memo, useState } from 'react';
diff --git a/src/features/Acceptance/Viewer/Comments/RoundSection.tsx b/src/features/Acceptance/Viewer/Comments/RoundSection.tsx
index 12fb04ed5db..a4a08bc6c9a 100644
--- a/src/features/Acceptance/Viewer/Comments/RoundSection.tsx
+++ b/src/features/Acceptance/Viewer/Comments/RoundSection.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/ThreadEvidence.tsx b/src/features/Acceptance/Viewer/Comments/ThreadEvidence.tsx
index c4f79ed2412..089cc86309a 100644
--- a/src/features/Acceptance/Viewer/Comments/ThreadEvidence.tsx
+++ b/src/features/Acceptance/Viewer/Comments/ThreadEvidence.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceCommentItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Comments/authorColor.test.ts b/src/features/Acceptance/Viewer/Comments/authorColor.test.ts
index fcc24e7161a..7e772d2d107 100644
--- a/src/features/Acceptance/Viewer/Comments/authorColor.test.ts
+++ b/src/features/Acceptance/Viewer/Comments/authorColor.test.ts
@@ -1,3 +1,4 @@
+import { cssVar } from '@lobehub/ui';
import { describe, expect, it } from 'vitest';
import {
@@ -52,7 +53,6 @@ describe('acceptanceAuthorColor', () => {
});
it('leaves the verdict colours to verdicts', () => {
- const { cssVar } = require('antd-style');
for (const semantic of [cssVar.volcano, cssVar.green, cssVar.colorError, cssVar.colorSuccess]) {
expect(ACCEPTANCE_AUTHOR_COLORS).not.toContain(semantic);
}
diff --git a/src/features/Acceptance/Viewer/Comments/authorColor.ts b/src/features/Acceptance/Viewer/Comments/authorColor.ts
index 88dadc770a8..3bf58c86571 100644
--- a/src/features/Acceptance/Viewer/Comments/authorColor.ts
+++ b/src/features/Acceptance/Viewer/Comments/authorColor.ts
@@ -1,4 +1,4 @@
-import { cssVar, useThemeMode } from 'antd-style';
+import { cssVar, useThemeMode } from '@lobehub/ui';
import { useCallback } from 'react';
/**
diff --git a/src/features/Acceptance/Viewer/Comments/styles.ts b/src/features/Acceptance/Viewer/Comments/styles.ts
index c0eb809ce8f..33d1526808b 100644
--- a/src/features/Acceptance/Viewer/Comments/styles.ts
+++ b/src/features/Acceptance/Viewer/Comments/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* Two comment surfaces, deliberately different.
diff --git a/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx b/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx
index ee81ff712a4..285912dd0e2 100644
--- a/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx
+++ b/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { MessagesSquare } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Conversation/TopicPanel.test.ts b/src/features/Acceptance/Viewer/Conversation/TopicPanel.test.ts
index 033272b08a2..1fa59e8afd9 100644
--- a/src/features/Acceptance/Viewer/Conversation/TopicPanel.test.ts
+++ b/src/features/Acceptance/Viewer/Conversation/TopicPanel.test.ts
@@ -9,7 +9,7 @@ import TopicPanel from './TopicPanel';
// Real base-ui ActionIcon only surfaces its title via a hover Tooltip, so the
// static DOM has no accessible name to query.
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) =>
createElement('button', { onClick, title }, title),
diff --git a/src/features/Acceptance/Viewer/Conversation/TopicPanel.tsx b/src/features/Acceptance/Viewer/Conversation/TopicPanel.tsx
index ae32f1a5744..987e0004704 100644
--- a/src/features/Acceptance/Viewer/Conversation/TopicPanel.tsx
+++ b/src/features/Acceptance/Viewer/Conversation/TopicPanel.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Avatar, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Avatar, cssVar, Flexbox, Text } from '@lobehub/ui';
import { PanelRightClose } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/AcceptanceResources.tsx b/src/features/Acceptance/Viewer/Evidence/AcceptanceResources.tsx
index 2fb1b455f25..b9571cb6ed4 100644
--- a/src/features/Acceptance/Viewer/Evidence/AcceptanceResources.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/AcceptanceResources.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Empty, Flexbox, Icon, Image } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Icon,
+ Image,
+ Text,
+ useResponsive,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { FileText, Film, Paperclip } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/Annotation.tsx b/src/features/Acceptance/Viewer/Evidence/Annotation.tsx
index 691bb102890..0866c6fd760 100644
--- a/src/features/Acceptance/Viewer/Evidence/Annotation.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Annotation.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Trash2 } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Acceptance/Viewer/Evidence/DesktopEvidenceReview.tsx b/src/features/Acceptance/Viewer/Evidence/DesktopEvidenceReview.tsx
index 55a32999874..00f5dec448b 100644
--- a/src/features/Acceptance/Viewer/Evidence/DesktopEvidenceReview.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/DesktopEvidenceReview.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Text,
+ TextArea,
+} from '@lobehub/ui';
import { Film, ZoomIn, ZoomOut } from 'lucide-react';
import { memo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
@@ -175,7 +183,6 @@ export const DesktopEvidenceReview = memo<DesktopEvidenceReviewProps>(({ model }
<div className={styles.stageRow} style={{ position: 'relative' }}>
{isVideo ? (
<VideoReviewStage
- activeNoteKey={model.activeNoteKey}
chapters={activeEvidence.chapters ?? []}
handleRef={videoStage}
key={activeEvidence.id}
diff --git a/src/features/Acceptance/Viewer/Evidence/EvidenceList.tsx b/src/features/Acceptance/Viewer/Evidence/EvidenceList.tsx
index 9171e9af0fb..6996f2f7d6c 100644
--- a/src/features/Acceptance/Viewer/Evidence/EvidenceList.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/EvidenceList.tsx
@@ -2,8 +2,7 @@
import { readEvidenceChapters } from '@lobechat/const/verify';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { Flexbox, Image } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, Image, useResponsive } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import AudioPlayer from '@/features/AudioPlayer';
diff --git a/src/features/Acceptance/Viewer/Evidence/EvidenceStage.tsx b/src/features/Acceptance/Viewer/Evidence/EvidenceStage.tsx
index 7180c46fa6b..3310671fc47 100644
--- a/src/features/Acceptance/Viewer/Evidence/EvidenceStage.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/EvidenceStage.tsx
@@ -1,7 +1,7 @@
'use client';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import type { DraftAnnotation } from './Annotation';
diff --git a/src/features/Acceptance/Viewer/Evidence/FloatingCommentAction.tsx b/src/features/Acceptance/Viewer/Evidence/FloatingCommentAction.tsx
index 494babb2d11..8a86b277aa1 100644
--- a/src/features/Acceptance/Viewer/Evidence/FloatingCommentAction.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/FloatingCommentAction.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar } from '@lobehub/ui';
import { MessageSquarePlus } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Acceptance/Viewer/Evidence/MobileEvidenceReview.tsx b/src/features/Acceptance/Viewer/Evidence/MobileEvidenceReview.tsx
index 4a96dfab8c5..ae5e4716480 100644
--- a/src/features/Acceptance/Viewer/Evidence/MobileEvidenceReview.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/MobileEvidenceReview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon, Button, Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar, Text, TextArea } from '@lobehub/ui';
import { ChevronLeft, ChevronRight, NotebookPen, PencilLine, ZoomIn, ZoomOut } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/RegionNotes.tsx b/src/features/Acceptance/Viewer/Evidence/RegionNotes.tsx
index 48b3187ac1c..0163b964b15 100644
--- a/src/features/Acceptance/Viewer/Evidence/RegionNotes.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/RegionNotes.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Icon, TextArea } from '@lobehub/ui';
import { Crosshair, Trash2 } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Acceptance/Viewer/Evidence/ScreenshotTiles.tsx b/src/features/Acceptance/Viewer/Evidence/ScreenshotTiles.tsx
index 3efd40d8594..b0e24d67f2b 100644
--- a/src/features/Acceptance/Viewer/Evidence/ScreenshotTiles.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/ScreenshotTiles.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Image } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Image, Text } from '@lobehub/ui';
import { Check, MessageSquare, X } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/RangeLane.tsx b/src/features/Acceptance/Viewer/Evidence/Video/RangeLane.tsx
new file mode 100644
index 00000000000..fd73c483927
--- /dev/null
+++ b/src/features/Acceptance/Viewer/Evidence/Video/RangeLane.tsx
@@ -0,0 +1,75 @@
+'use client';
+
+import { useVideo } from '@lobehub/ui';
+import type { PointerEvent as ReactPointerEvent } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import type { TimedNote } from './chapters';
+import { styles } from './styles';
+
+export interface VideoLoop {
+ end: number;
+ start: number;
+}
+
+interface RangeLaneProps {
+ notes: TimedNote[];
+ onRange: (range: VideoLoop | null) => void;
+ onSeek: (seconds: number) => void;
+ range: VideoLoop | null;
+}
+
+/** The lane under the rail: drag to select a span, and see the spans notes cover. */
+export const RangeLane = ({ notes, onRange, onSeek, range }: RangeLaneProps) => {
+ const { t } = useTranslation('verify');
+ const duration = useVideo((state) => (Number.isFinite(state.duration) ? state.duration : 0));
+ const pct = (seconds: number) => `${(duration ? seconds / duration : 0) * 100}%`;
+
+ const timeAt = (element: HTMLElement, clientX: number) => {
+ const box = element.getBoundingClientRect();
+ return Math.min(Math.max((clientX - box.left) / box.width, 0), 1) * duration;
+ };
+
+ const onPointerDown = (event: ReactPointerEvent<HTMLDivElement>) => {
+ if (!duration) return;
+ const element = event.currentTarget;
+ const anchor = timeAt(element, event.clientX);
+ onRange({ end: anchor, start: anchor });
+ element.setPointerCapture?.(event.pointerId);
+ const move = (next: PointerEvent) => {
+ const seconds = timeAt(element, next.clientX);
+ onRange({ end: Math.max(anchor, seconds), start: Math.min(anchor, seconds) });
+ };
+ const up = (next: PointerEvent) => {
+ element.removeEventListener('pointermove', move);
+ element.removeEventListener('pointerup', up);
+ const seconds = timeAt(element, next.clientX);
+ // A click, not a drag, clears the span rather than leaving a sliver.
+ if (Math.abs(seconds - anchor) < 0.15) onRange(null);
+ else onSeek(Math.min(anchor, seconds));
+ };
+ element.addEventListener('pointermove', move);
+ element.addEventListener('pointerup', up);
+ };
+
+ return (
+ <div className={styles.lane} onPointerDown={onPointerDown}>
+ {!range && <span className={styles.laneLabel}>{t('acceptance.video.rangeLane')}</span>}
+ {notes
+ .filter((note) => note.end !== undefined)
+ .map((note) => (
+ <div
+ className={styles.noteSpan}
+ key={`span-${note.key}`}
+ style={{ left: pct(note.start), top: 4, width: pct(note.end! - note.start) }}
+ />
+ ))}
+ {range && (
+ <div
+ className={styles.rangeBand}
+ style={{ left: pct(range.start), width: pct(range.end - range.start) }}
+ />
+ )}
+ </div>
+ );
+};
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/ReviewTools.tsx b/src/features/Acceptance/Viewer/Evidence/Video/ReviewTools.tsx
new file mode 100644
index 00000000000..dab6fc1dec3
--- /dev/null
+++ b/src/features/Acceptance/Viewer/Evidence/Video/ReviewTools.tsx
@@ -0,0 +1,111 @@
+'use client';
+
+import { ActionIcon, Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
+import { Flag, MessageSquareText, Repeat, X } from 'lucide-react';
+import { useTranslation } from 'react-i18next';
+
+import type { VideoLoop } from './RangeLane';
+import { formatVideoTime } from './videoTime';
+
+const local = createStaticStyles(({ css }) => ({
+ kbd: css`
+ display: inline-block;
+
+ min-width: 16px;
+ margin-inline: 1px;
+ padding-inline: 4px;
+ border: 1px solid ${cssVar.colorBorder};
+ border-radius: 4px;
+
+ font-family: ${cssVar.fontFamilyCode};
+ font-size: 10px;
+ line-height: 16px;
+ color: ${cssVar.colorTextSecondary};
+ text-align: center;
+ `,
+ mono: css`
+ font-family: ${cssVar.fontFamilyCode};
+ font-variant-numeric: tabular-nums;
+ `,
+ tools: css`
+ flex: none;
+
+ min-height: 40px;
+ padding-block: 6px;
+ padding-inline: 12px;
+ border-radius: ${cssVar.borderRadiusLG};
+
+ font-size: 12px;
+
+ background: ${cssVar.colorFillQuaternary};
+ `,
+}));
+
+interface ReviewToolsProps {
+ loop: boolean;
+ onClearRange: () => void;
+ onCommentRange: () => void;
+ onMarkFrame: () => void;
+ onToggleLoop: () => void;
+ range: VideoLoop | null;
+ ready: boolean;
+}
+
+/** The selected span and what to do with it, or the keys and the mark button. */
+export const ReviewTools = ({
+ loop,
+ onClearRange,
+ onCommentRange,
+ onMarkFrame,
+ onToggleLoop,
+ range,
+ ready,
+}: ReviewToolsProps) => {
+ const { t } = useTranslation('verify');
+
+ return (
+ <Flexbox horizontal align={'center'} className={local.tools} gap={8}>
+ {range ? (
+ <>
+ <Icon icon={Repeat} size={14} />
+ <span className={local.mono}>
+ {formatVideoTime(range.start)} – {formatVideoTime(range.end)}
+ </span>
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.video.rangeSeconds', { seconds: (range.end - range.start).toFixed(1) })}
+ </Text>
+ <div style={{ flex: 1 }} />
+ <Button size={'small'} type={loop ? 'primary' : 'default'} onClick={onToggleLoop}>
+ {t('acceptance.video.loop')}
+ </Button>
+ <Button icon={MessageSquareText} size={'small'} onClick={onCommentRange}>
+ {t('acceptance.video.commentRange')}
+ </Button>
+ <ActionIcon
+ icon={X}
+ size={'small'}
+ title={t('acceptance.video.clearRange')}
+ onClick={onClearRange}
+ />
+ </>
+ ) : (
+ <>
+ <Text fontSize={12} type={'secondary'}>
+ <span className={local.kbd}>Space</span> {t('acceptance.video.play')} ·{' '}
+ <span className={local.kbd}>,</span>
+ <span className={local.kbd}>.</span> {t('acceptance.video.keysFrame')} ·{' '}
+ <span className={local.kbd}>J</span>
+ <span className={local.kbd}>L</span> {t('acceptance.video.speed')} ·{' '}
+ <span className={local.kbd}>M</span> {t('acceptance.video.markFrame')} ·{' '}
+ <span className={local.kbd}>I</span>
+ <span className={local.kbd}>O</span> {t('acceptance.video.keysRange')}
+ </Text>
+ <div style={{ flex: 1 }} />
+ <Button disabled={!ready} icon={Flag} size={'small'} onClick={onMarkFrame}>
+ {t('acceptance.video.markFrame')}
+ </Button>
+ </>
+ )}
+ </Flexbox>
+ );
+};
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.test.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.test.tsx
deleted file mode 100644
index 6161ac297fb..00000000000
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.test.tsx
+++ /dev/null
@@ -1,87 +0,0 @@
-import { fireEvent, render, screen } from '@testing-library/react';
-import { describe, expect, it, vi } from 'vitest';
-
-import type { VideoClock } from './useVideoClock';
-import { ClaimCaption, handlePlaybackKey } from './VideoChrome';
-import { VideoTimeline } from './VideoTimeline';
-
-const clock = () =>
- ({
- controls: {
- seek: vi.fn(),
- setRate: vi.fn(),
- step: vi.fn(),
- toggle: vi.fn(),
- },
- rate: 1,
- time: 0,
- }) as unknown as VideoClock;
-
-describe('handlePlaybackKey', () => {
- it('plays on Space, but leaves Space and Enter to a focused button', () => {
- const player = clock();
- const button = document.createElement('button');
-
- expect(handlePlaybackKey(new KeyboardEvent('keydown', { key: ' ' }), player)).toBe(true);
- const onButton = new KeyboardEvent('keydown', { key: ' ' });
- Object.defineProperty(onButton, 'target', { value: button });
- const enterOnButton = new KeyboardEvent('keydown', { key: 'Enter' });
- Object.defineProperty(enterOnButton, 'target', { value: button });
-
- expect(handlePlaybackKey(onButton, player)).toBe(false);
- expect(handlePlaybackKey(enterOnButton, player)).toBe(false);
- expect(player.controls.toggle).toHaveBeenCalledTimes(1);
- });
-});
-
-describe('VideoTimeline markers', () => {
- // Enter / Space on a focused button dispatch click, not pointerdown.
- it('seek from a click, so they work from the keyboard', () => {
- const onClaimClick = vi.fn();
- const onNoteClick = vi.fn();
- const onSeek = vi.fn();
- render(
- <VideoTimeline
- chapters={[{ kind: 'check', note: 'no skeleton', t: 7.9 }]}
- duration={15}
- notes={[{ comment: 'flash', key: 1, start: 7.2 }]}
- src={'clip.mp4'}
- time={0}
- onClaimClick={onClaimClick}
- onNoteClick={onNoteClick}
- onSeek={onSeek}
- />,
- );
-
- fireEvent.click(screen.getByRole('button', { name: /no skeleton/ }));
- fireEvent.click(screen.getByRole('button', { name: /flash/ }));
-
- expect(onClaimClick).toHaveBeenCalledWith(expect.objectContaining({ t: 7.9 }));
- expect(onNoteClick).toHaveBeenCalledWith(expect.objectContaining({ start: 7.2 }));
- expect(onSeek).not.toHaveBeenCalled();
- });
-});
-
-describe('ClaimCaption', () => {
- it('gives each claim on the frame its own action', () => {
- const onDispute = vi.fn();
- render(
- <ClaimCaption
- action={(claim) => (
- <button type={'button'} onClick={() => onDispute(claim.note)}>
- {`dispute ${claim.note}`}
- </button>
- )}
- claims={[
- { kind: 'check', note: 'no skeleton', t: 7.9 },
- { kind: 'check', note: 'first question in place', t: 7.9 },
- ]}
- />,
- );
-
- fireEvent.click(screen.getByRole('button', { name: 'dispute first question in place' }));
-
- expect(onDispute).toHaveBeenCalledWith('first question in place');
- expect(screen.getByText('no skeleton')).toBeTruthy();
- });
-});
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.tsx
index 2ed5a8b1f03..7d04228527a 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Video/VideoChrome.tsx
@@ -1,28 +1,9 @@
'use client';
-import type { VerifyEvidenceChapter } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Button, DropdownMenu } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
-import {
- AlertTriangle,
- Captions,
- Check,
- ChevronLeft,
- ChevronRight,
- Download,
- Maximize,
- Pause,
- Play,
- RefreshCw,
-} from 'lucide-react';
-import type { KeyboardEvent as ReactKeyboardEvent, ReactNode } from 'react';
-import { useTranslation } from 'react-i18next';
+import { useVideo } from '@lobehub/ui';
-import { ClaimLabel } from './ClaimLabel';
import { styles } from './styles';
-import type { VideoClock } from './useVideoClock';
-import { claimsOf, formatVideoTime, frameOf, isOnFrame, PLAYBACK_RATES, stepAt } from './videoTime';
+import { isOnFrame } from './videoTime';
type Rect = { height: number; width: number; x: number; y: number };
@@ -41,223 +22,22 @@ export interface FrameRegion {
start: number;
}
-export const FrameRegions = ({
- paused,
- regions,
- time,
-}: {
- paused: boolean;
- regions: FrameRegion[];
- time: number;
-}) =>
- regions
+const Regions = ({ regions }: { regions: FrameRegion[] }) => {
+ const time = useVideo((state) => state.time);
+ const paused = useVideo((state) => state.paused);
+ return regions
.filter((region) => isOnFrame(region.start, time, paused))
.map((region) => (
<div className={styles.region} key={region.key} style={percent(region.rect)}>
{region.comment && <span className={styles.regionLabel}>{region.comment}</span>}
</div>
));
+};
+
+/** Regions follow the playhead; with none, nothing subscribes to it. */
+export const FrameRegions = ({ regions }: { regions: FrameRegion[] }) =>
+ regions.length > 0 ? <Regions regions={regions} /> : null;
export const DraftRegion = ({ rect }: { rect: Rect }) => (
<div className={styles.draft} style={percent(rect)} />
);
-
-/**
- * The agent's claim at this moment, captioned over the frame it is about.
- * `action` is where the review stage puts its "I disagree" button.
- */
-export const ClaimCaption = ({
- action,
- claims,
-}: {
- action?: (claim: VerifyEvidenceChapter) => ReactNode;
- claims: VerifyEvidenceChapter[];
-}) => (
- <div className={styles.caption} onPointerDown={(event) => event.stopPropagation()}>
- {claims.map((claim, index) => (
- <div key={`${claim.kind}-${index}`} style={{ marginBlockStart: index > 0 ? 8 : 0 }}>
- <div className={styles.captionTitle}>
- <ClaimLabel kind={claim.kind} />
- {action?.(claim)}
- </div>
- <div>{claim.note}</div>
- </div>
- ))}
- </div>
-);
-
-/**
- * A video that failed to load — usually a signed link that expired while the
- * page stayed open. Reload re-signs nothing but retries a transient failure;
- * the download link opens the file directly as the way out.
- */
-export const VideoLoadError = ({ onReload, src }: { onReload: () => void; src: string }) => {
- const { t } = useTranslation('verify');
-
- return (
- <Center className={styles.overlay} gap={10} style={{ color: '#ccc' }}>
- <Icon icon={AlertTriangle} size={22} />
- <span style={{ fontSize: 13 }}>{t('acceptance.video.loadFailed')}</span>
- <Flexbox horizontal gap={8}>
- <Button icon={RefreshCw} size={'small'} onClick={onReload}>
- {t('acceptance.video.reload')}
- </Button>
- <Button href={src} icon={Download} size={'small'} target={'_blank'}>
- {t('acceptance.video.download')}
- </Button>
- </Flexbox>
- </Center>
- );
-};
-
-interface VideoControlBarProps {
- captions?: boolean;
- chapters: VerifyEvidenceChapter[];
- clock: VideoClock;
- onFullscreen?: () => void;
- /** Absent where captions are always on (the review stage needs them to dispute). */
- onToggleCaptions?: () => void;
-}
-
-/** Play, frame step, the frame readout, captions, speed — below the timeline. */
-export const VideoControlBar = ({
- captions,
- chapters,
- clock,
- onFullscreen,
- onToggleCaptions,
-}: VideoControlBarProps) => {
- const { t } = useTranslation('verify');
- const { controls, duration, paused, rate, time } = clock;
- const step = stepAt(chapters, time);
-
- return (
- <Flexbox horizontal align={'center'} gap={2} wrap={'wrap'}>
- <button
- aria-label={paused ? t('acceptance.video.play') : t('acceptance.video.pause')}
- className={styles.barButton}
- title={`${paused ? t('acceptance.video.play') : t('acceptance.video.pause')} (Space)`}
- type={'button'}
- onClick={controls.toggle}
- >
- <Icon icon={paused ? Play : Pause} size={16} />
- </button>
- <button
- aria-label={t('acceptance.video.previousFrame')}
- className={styles.barButton}
- title={`${t('acceptance.video.previousFrame')} (,)`}
- type={'button'}
- onClick={() => controls.step(-1)}
- >
- <Icon icon={ChevronLeft} size={16} />
- </button>
- <button
- aria-label={t('acceptance.video.nextFrame')}
- className={styles.barButton}
- title={`${t('acceptance.video.nextFrame')} (.)`}
- type={'button'}
- onClick={() => controls.step(1)}
- >
- <Icon icon={ChevronRight} size={16} />
- </button>
- <span className={styles.time}>
- {formatVideoTime(time)} / {formatVideoTime(duration)}
- </span>
- <span className={styles.frameNo}>
- {t('acceptance.video.frame', { frame: frameOf(time) })}
- {step?.label ? ` · ${step.label}` : ''}
- </span>
- {onToggleCaptions && claimsOf(chapters).length > 0 && (
- <button
- aria-pressed={captions}
- className={cx(styles.barButton, captions && styles.barButtonActive)}
- title={captions ? t('acceptance.video.captionsHide') : t('acceptance.video.captionsShow')}
- type={'button'}
- onClick={onToggleCaptions}
- >
- <Icon icon={Captions} size={16} />
- </button>
- )}
- <DropdownMenu
- items={PLAYBACK_RATES.map((value) => ({
- extra: value === rate ? <Icon icon={Check} /> : undefined,
- key: String(value),
- label: `${value}×`,
- onClick: () => controls.setRate(value),
- }))}
- >
- <button
- className={cx(styles.barButton, rate !== 1 && styles.barButtonActive)}
- title={`${t('acceptance.video.speed')} (J / L)`}
- type={'button'}
- >
- {rate}×
- </button>
- </DropdownMenu>
- {onFullscreen && (
- <button
- aria-label={t('acceptance.video.fullscreen')}
- className={styles.barButton}
- title={t('acceptance.video.fullscreen')}
- type={'button'}
- onClick={onFullscreen}
- >
- <Icon icon={Maximize} size={15} />
- </button>
- )}
- </Flexbox>
- );
-};
-
-/**
- * Keys shared by both players. Returns true when the key was handled so the
- * caller can stop the page from also scrolling on Space or the arrows.
- */
-export const handlePlaybackKey = (event: KeyboardEvent | ReactKeyboardEvent, clock: VideoClock) => {
- // A focused button owns Space and Enter — they must activate it, not play.
- if (event.target instanceof HTMLButtonElement && (event.key === ' ' || event.key === 'Enter'))
- return false;
- const { controls, rate, time } = clock;
- const nextRate = (direction: 1 | -1) => {
- const index = PLAYBACK_RATES.indexOf(rate as (typeof PLAYBACK_RATES)[number]);
- const next =
- PLAYBACK_RATES[
- Math.min(Math.max((index === -1 ? 1 : index) + direction, 0), PLAYBACK_RATES.length - 1)
- ];
- controls.setRate(next);
- };
- switch (event.key.toLowerCase()) {
- case ' ':
- case 'k': {
- controls.toggle();
- return true;
- }
- case ',': {
- controls.step(-1);
- return true;
- }
- case '.': {
- controls.step(1);
- return true;
- }
- case 'arrowleft': {
- controls.seek(time - (event.shiftKey ? 5 : 1));
- return true;
- }
- case 'arrowright': {
- controls.seek(time + (event.shiftKey ? 5 : 1));
- return true;
- }
- case 'j': {
- nextRate(-1);
- return true;
- }
- case 'l': {
- nextRate(1);
- return true;
- }
- default: {
- return false;
- }
- }
-};
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoClaimList.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoClaimList.tsx
index edfcec4be17..67b4f191367 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoClaimList.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Video/VideoClaimList.tsx
@@ -1,8 +1,7 @@
'use client';
import type { VerifyEvidenceChapter } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { ChevronDown, ChevronRight } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoEvidencePlayer.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoEvidencePlayer.tsx
index eeec8b970a8..f6588fd6dfb 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoEvidencePlayer.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Video/VideoEvidencePlayer.tsx
@@ -2,28 +2,18 @@
import { isFullFrameRect } from '@lobechat/const/verify';
import type { AcceptanceReviewAnnotation, VerifyEvidenceChapter } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Play } from 'lucide-react';
-import type { CSSProperties, ReactNode } from 'react';
-import { memo, useRef, useState } from 'react';
+import { Flexbox, useVideoPlayer, Video } from '@lobehub/ui';
+import type { ReactNode } from 'react';
+import { memo, useMemo, useState } from 'react';
+import { useTranslation } from 'react-i18next';
-import { styles } from './styles';
-import { useVideoClock } from './useVideoClock';
-import {
- ClaimCaption,
- FrameRegions,
- handlePlaybackKey,
- VideoControlBar,
- VideoLoadError,
-} from './VideoChrome';
+import { toClaimMarkers, toNoteMarkers, toSections } from './chapters';
+import { readStoredRate, storeRate } from './playbackRate';
+import { FrameRegions } from './VideoChrome';
import { VideoClaimList } from './VideoClaimList';
-import { claimsAt } from './videoTime';
-import { VideoTimeline } from './VideoTimeline';
/** Matches the plain `<video>` this replaces, so rows keep their rhythm. */
const MAX_HEIGHT = 360;
-/** Leave room for the controls even when the recording is portrait. */
-const MIN_PLAYER_WIDTH = 480;
interface VideoEvidencePlayerProps {
/** The evidence description — laid out under the player, at the content area's width. */
@@ -38,121 +28,73 @@ interface VideoEvidencePlayerProps {
/**
* A video evidence as a reviewer needs it: speed, frame stepping, the agent's
- * steps and claims on the timeline and captioned over the frame, and earlier
- * notes pinned where they were made. Keys work once the player has focus, so
- * Space never hijacks the page scroll.
+ * steps as sections and its claims captioned over the frame, and earlier notes
+ * pinned where they were made.
*/
export const VideoEvidencePlayer = memo<VideoEvidencePlayerProps>(
({ caption, chapters = [], notes = [], onRefreshSource, src }) => {
- const rootRef = useRef<HTMLDivElement>(null);
- const videoRef = useRef<HTMLVideoElement>(null);
- const clock = useVideoClock(videoRef, { src });
- const { controls, duration, paused, size, status, time } = clock;
- const [captions, setCaptions] = useState(true);
+ const { t } = useTranslation('verify');
+ const player = useVideoPlayer();
+ const [defaultRate] = useState(readStoredRate);
- const timed = notes.flatMap((note) => (note.time ? [{ ...note, time: note.time }] : []));
- const claims = captions ? claimsAt(chapters, time) : [];
- const aspect = size ? size.width / size.height : 16 / 9;
- const frameWidth = Math.round(MAX_HEIGHT * aspect);
+ const timed = useMemo(
+ () => notes.flatMap((note) => (note.time ? [{ ...note, time: note.time }] : [])),
+ [notes],
+ );
+ const sections = useMemo(() => toSections(chapters), [chapters]);
+ const markers = useMemo(
+ () => [
+ ...toClaimMarkers(chapters, (kind) => t(`acceptance.video.claim.${kind}`)),
+ ...toNoteMarkers(
+ timed.map((note, index) => ({
+ comment: note.comment,
+ key: index,
+ start: note.time.start,
+ })),
+ ),
+ ],
+ [chapters, t, timed],
+ );
+ const regions = useMemo(
+ () =>
+ timed
+ .filter((note) => !isFullFrameRect(note.rect))
+ .map((note, index) => ({
+ comment: note.comment,
+ key: index,
+ rect: note.rect,
+ start: note.time.start,
+ })),
+ [timed],
+ );
return (
<Flexbox gap={8} width={'100%'}>
- <div
- className={styles.player}
- ref={rootRef}
- tabIndex={0}
- style={
- {
- '--acceptance-video-frame-width': `${frameWidth}px`,
- 'maxWidth': `min(100%, ${Math.max(MIN_PLAYER_WIDTH, frameWidth)}px)`,
- } as CSSProperties
- }
- onKeyDown={(event) => {
- if (status === 'ready' && handlePlaybackKey(event, clock)) event.preventDefault();
- }}
+ <Video.Root
+ defaultPlaybackRate={defaultRate}
+ markers={markers}
+ maxHeight={MAX_HEIGHT}
+ player={player}
+ sections={sections}
+ src={src}
+ onRateChange={storeRate}
+ onRetry={onRefreshSource}
>
- <div className={styles.frame} style={{ aspectRatio: `${aspect}` }}>
- <video playsInline preload={'metadata'} ref={videoRef} src={src} />
- {status === 'ready' && (
- <div
- className={styles.overlay}
- onClick={controls.toggle}
- onDoubleClick={() => void rootRef.current?.requestFullscreen?.()}
- >
- <FrameRegions
- paused={paused}
- time={time}
- regions={timed
- .filter((note) => !isFullFrameRect(note.rect))
- .map((note, index) => ({
- comment: note.comment,
- key: index,
- rect: note.rect,
- start: note.time.start,
- }))}
- />
- {paused && time < 0.05 && (
- <div className={styles.centerPlay}>
- <Icon icon={Play} size={24} />
- </div>
- )}
- {claims.length > 0 && <ClaimCaption claims={claims} />}
- </div>
- )}
- {status === 'error' && (
- <VideoLoadError
- src={src}
- onReload={async () => {
- // A new link re-renders with a new src and loads itself;
- // the explicit load covers a transient failure on the same one.
- await onRefreshSource?.();
- controls.reload();
- }}
- />
- )}
- </div>
- <div
- className={styles.bar}
- style={status === 'ready' ? undefined : { opacity: 0.4, pointerEvents: 'none' }}
- >
- <VideoTimeline
- chapters={chapters}
- duration={duration}
- src={src}
- time={time}
- notes={timed.map((note, index) => ({
- comment: note.comment,
- end: note.time.end,
- key: index,
- start: note.time.start,
- }))}
- onSeek={controls.seek}
- onClaimClick={(item) => {
- controls.pause();
- controls.seek(item.t);
- setCaptions(true);
- }}
- onNoteClick={(note) => {
- controls.pause();
- controls.seek(note.start);
- }}
- />
- <VideoControlBar
- captions={captions}
- chapters={chapters}
- clock={clock}
- onFullscreen={() => void rootRef.current?.requestFullscreen?.()}
- onToggleCaptions={() => setCaptions((value) => !value)}
- />
- </div>
- </div>
+ <Video.Frame>
+ <FrameRegions regions={regions} />
+ <Video.Caption />
+ <Video.CenterPlay />
+ <Video.LoadError />
+ </Video.Frame>
+ <Video.Controls frameStep />
+ </Video.Root>
{caption && <div style={{ overflowWrap: 'anywhere' }}>{caption}</div>}
<VideoClaimList
chapters={chapters}
onSeek={(seconds) => {
- controls.pause();
- controls.seek(seconds);
- setCaptions(true);
+ player.pause();
+ player.seek(seconds);
+ player.setCaptions(true);
}}
/>
</Flexbox>
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoFeedbackNotes.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoFeedbackNotes.tsx
index 673cd459824..53ab1b56be1 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoFeedbackNotes.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Video/VideoFeedbackNotes.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Flag, Repeat } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoNotes.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoNotes.tsx
index d41d6d26cae..b1fcade2f77 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoNotes.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Video/VideoNotes.tsx
@@ -1,8 +1,7 @@
'use client';
import { isFullFrameRect } from '@lobechat/const/verify';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { Flag, Repeat } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoReviewStage.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoReviewStage.tsx
index 3ec9106d536..c2993969ac2 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoReviewStage.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/Video/VideoReviewStage.tsx
@@ -2,41 +2,34 @@
import { isFullFrameRect } from '@lobechat/const/verify';
import type { AcceptanceReviewAnnotation, VerifyEvidenceChapter } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
-import { Flag, MessageSquareText, Repeat, X } from 'lucide-react';
+import {
+ createStaticStyles,
+ cssVar,
+ cx,
+ useVideo,
+ useVideoPlayer,
+ useVideoState,
+ Video,
+ type VideoPlayer,
+} from '@lobehub/ui';
import type { PointerEvent as ReactPointerEvent, RefObject } from 'react';
-import { memo, useEffect, useImperativeHandle, useRef, useState } from 'react';
+import { memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import type { DraftAnnotationEntry } from '../../Review/rejectDraft';
+import { type ClaimMarker, noteKeyOf, toClaimMarkers, toNoteMarkers, toSections } from './chapters';
+import { readStoredRate, storeRate } from './playbackRate';
+import { RangeLane, type VideoLoop } from './RangeLane';
+import { ReviewTools } from './ReviewTools';
import { styles } from './styles';
-import type { VideoLoop } from './useVideoClock';
-import { useVideoClock } from './useVideoClock';
-import {
- ClaimCaption,
- DraftRegion,
- FrameRegions,
- handlePlaybackKey,
- VideoControlBar,
- VideoLoadError,
-} from './VideoChrome';
-import { claimsAt, disputesClaim, formatVideoTime, frameOf } from './videoTime';
-import { VideoTimeline } from './VideoTimeline';
+import { DraftRegion, FrameRegions } from './VideoChrome';
+import { disputesClaim, formatVideoTime, frameOf } from './videoTime';
type Rect = AcceptanceReviewAnnotation['rect'];
-const local = createStaticStyles(({ css }) => ({
- column: css`
- display: flex;
- flex: 1;
- flex-direction: column;
- gap: 10px;
+const RATES = [0.5, 1, 1.5, 2];
- min-width: 0;
- min-height: 0;
- `,
+const local = createStaticStyles(({ css }) => ({
/** The frame shrinks to the room left by the timeline and the tools. */
fit: css`
display: flex;
@@ -46,37 +39,6 @@ const local = createStaticStyles(({ css }) => ({
min-height: 0;
`,
- tools: css`
- flex: none;
-
- min-height: 40px;
- padding-block: 6px;
- padding-inline: 12px;
- border-radius: ${cssVar.borderRadiusLG};
-
- font-size: 12px;
-
- background: ${cssVar.colorFillQuaternary};
- `,
- kbd: css`
- display: inline-block;
-
- min-width: 16px;
- margin-inline: 1px;
- padding-inline: 4px;
- border: 1px solid ${cssVar.colorBorder};
- border-radius: 4px;
-
- font-family: ${cssVar.fontFamilyCode};
- font-size: 10px;
- line-height: 16px;
- color: ${cssVar.colorTextSecondary};
- text-align: center;
- `,
- mono: css`
- font-family: ${cssVar.fontFamilyCode};
- font-variant-numeric: tabular-nums;
- `,
}));
export interface VideoReviewStageHandle {
@@ -85,7 +47,6 @@ export interface VideoReviewStageHandle {
}
interface VideoReviewStageProps {
- activeNoteKey?: number;
chapters: VerifyEvidenceChapter[];
handleRef?: RefObject<VideoReviewStageHandle | null>;
notes: DraftAnnotationEntry[];
@@ -104,6 +65,67 @@ const isTyping = (target: EventTarget | null) =>
target instanceof HTMLElement &&
(target.isContentEditable || ['INPUT', 'SELECT', 'TEXTAREA'].includes(target.tagName));
+const playbackKey = (event: KeyboardEvent, player: VideoPlayer) => {
+ // A focused button owns Space and Enter — they must activate it, not play.
+ if (event.target instanceof HTMLButtonElement && (event.key === ' ' || event.key === 'Enter'))
+ return false;
+ const { rate, time } = player.getState();
+ const nextRate = (direction: 1 | -1) => {
+ const index = RATES.indexOf(rate);
+ player.setRate(
+ RATES[Math.min(Math.max((index === -1 ? 1 : index) + direction, 0), RATES.length - 1)],
+ );
+ };
+ switch (event.key.toLowerCase()) {
+ case ' ':
+ case 'k': {
+ player.toggle();
+ return true;
+ }
+ case ',': {
+ player.step(-1);
+ return true;
+ }
+ case '.': {
+ player.step(1);
+ return true;
+ }
+ case 'arrowleft': {
+ player.seek(time - (event.shiftKey ? 5 : 1));
+ return true;
+ }
+ case 'arrowright': {
+ player.seek(time + (event.shiftKey ? 5 : 1));
+ return true;
+ }
+ case 'j': {
+ nextRate(-1);
+ return true;
+ }
+ case 'l': {
+ nextRate(1);
+ return true;
+ }
+ default: {
+ return false;
+ }
+ }
+};
+
+const Hint = ({ drafting, flash }: { drafting: boolean; flash: string | null }) => {
+ const { t } = useTranslation('verify');
+ const paused = useVideo((state) => state.paused);
+ const frame = useVideo((state) => (state.paused ? frameOf(state.time) : -1));
+ const hint =
+ flash ??
+ (drafting
+ ? null
+ : paused
+ ? t('acceptance.video.hintPaused', { frame })
+ : t('acceptance.video.hintPlaying'));
+ return hint ? <div className={styles.hint}>{hint}</div> : null;
+};
+
/**
* Where a video is rejected. Pressing on the picture pauses on the frame being
* shown and draws a region on it; M marks the frame without a region; the lane
@@ -111,26 +133,17 @@ const isTyping = (target: EventTarget | null) =>
* and an agent claim captioned on screen can be disputed in one click.
*/
export const VideoReviewStage = memo<VideoReviewStageProps>(
- ({
- activeNoteKey,
- chapters,
- handleRef,
- notes,
- onAddNote,
- onRefreshSource,
- onSelectNote,
- src: initialSrc,
- }) => {
+ ({ chapters, handleRef, notes, onAddNote, onRefreshSource, onSelectNote, src: initialSrc }) => {
const { t } = useTranslation('verify');
- const videoRef = useRef<HTMLVideoElement>(null);
+ const player = useVideoPlayer();
// The modal holds the link it opened with; a re-signed one replaces it here.
const [src, setSrc] = useState(initialSrc);
const [range, setRange] = useState<VideoLoop | null>(null);
const [loop, setLoop] = useState(true);
- const clock = useVideoClock(videoRef, { loop: loop ? range : null, src });
- const { controls, duration, paused, size, status, time } = clock;
const [draft, setDraft] = useState<Rect | null>(null);
const [flash, setFlash] = useState<string | null>(null);
+ const [defaultRate] = useState(readStoredRate);
+ const ready = useVideoState(player, (state) => state.status === 'ready');
const flashTimer = useRef<ReturnType<typeof setTimeout>>(undefined);
const showFlash = (text: string) => {
@@ -140,18 +153,58 @@ export const VideoReviewStage = memo<VideoReviewStageProps>(
};
useEffect(() => () => clearTimeout(flashTimer.current), []);
+ const loopRange = loop ? range : null;
+ useEffect(() => {
+ if (!loopRange) return;
+ return player.subscribe((state) => {
+ if (!state.paused && state.time >= loopRange.end) player.seek(loopRange.start);
+ });
+ }, [player, loopRange]);
+
+ const timed = useMemo(() => notes.filter((note) => note.time), [notes]);
+ const timedNotes = useMemo(
+ () =>
+ timed.map((note) => ({
+ comment: note.comment,
+ end: note.time!.end,
+ key: note.key,
+ start: note.time!.start,
+ })),
+ [timed],
+ );
+ const sections = useMemo(() => toSections(chapters), [chapters]);
+ const markers = useMemo(
+ () => [
+ ...toClaimMarkers(chapters, (kind) => t(`acceptance.video.claim.${kind}`)),
+ ...toNoteMarkers(timedNotes),
+ ],
+ [chapters, t, timedNotes],
+ );
+ const regions = useMemo(
+ () =>
+ timed
+ .filter((note) => !isFullFrameRect(note.rect))
+ .map((note) => ({
+ comment: note.comment,
+ key: note.key,
+ rect: note.rect,
+ start: note.time!.start,
+ })),
+ [timed],
+ );
+
const focusNote = (note: DraftAnnotationEntry) => {
if (!note.time) return;
- controls.pause();
- controls.seek(note.time.start);
+ player.pause();
+ player.seek(note.time.start);
setRange(note.time.end === undefined ? null : { end: note.time.end, start: note.time.start });
onSelectNote(note.key);
};
useImperativeHandle(handleRef, () => ({ focusNote }));
const markFrame = () => {
- const start = controls.frameTime();
- controls.pause();
+ const start = player.getState().time;
+ player.pause();
onAddNote({ time: { start } });
};
@@ -162,32 +215,31 @@ export const VideoReviewStage = memo<VideoReviewStageProps>(
};
// The modal is the review: keys act whenever the reviewer is not typing.
- const keyState = { clock, markFrame, range };
- const keyStateRef = useRef(keyState);
- keyStateRef.current = keyState;
+ const keyStateRef = useRef({ markFrame, range });
+ keyStateRef.current = { markFrame, range };
useEffect(() => {
const onKey = (event: KeyboardEvent) => {
if (isTyping(event.target) || event.metaKey || event.ctrlKey || event.altKey) return;
- const state = keyStateRef.current;
- if (state.clock.status !== 'ready') return;
- const now = state.clock.time;
+ const state = player.getState();
+ if (state.status !== 'ready') return;
+ const { range: current } = keyStateRef.current;
+ const now = state.time;
let handled = true;
switch (event.key.toLowerCase()) {
case 'm': {
- state.markFrame();
+ keyStateRef.current.markFrame();
break;
}
case 'i': {
// Open-ended until O: a provisional end would loop playback short
// of the moment the reviewer is waiting for.
- const end =
- state.range && state.range.end > now ? state.range.end : state.clock.duration;
+ const end = current && current.end > now ? current.end : state.duration;
setRange({ end, start: now });
showFlash(t('acceptance.video.inPoint', { time: formatVideoTime(now) }));
break;
}
case 'o': {
- const start = state.range?.start ?? Math.max(0, now - 1);
+ const start = current?.start ?? Math.max(0, now - 1);
if (now > start) {
setRange({ end: now, start });
showFlash(t('acceptance.video.outPoint', { time: formatVideoTime(now) }));
@@ -195,12 +247,12 @@ export const VideoReviewStage = memo<VideoReviewStageProps>(
break;
}
case 'escape': {
- if (!state.range) return;
+ if (!current) return;
setRange(null);
break;
}
default: {
- handled = handlePlaybackKey(event, state.clock);
+ handled = playbackKey(event, player);
}
}
if (handled) {
@@ -210,7 +262,7 @@ export const VideoReviewStage = memo<VideoReviewStageProps>(
};
window.addEventListener('keydown', onKey, true);
return () => window.removeEventListener('keydown', onKey, true);
- }, [t]);
+ }, [player, t]);
/** Press pauses on the frame on screen; a drag circles a region on it; a click plays. */
const onStageDown = (event: ReactPointerEvent<HTMLDivElement>) => {
@@ -220,10 +272,10 @@ export const VideoReviewStage = memo<VideoReviewStageProps>(
x: (event.clientX - box.left) / box.width,
y: (event.clientY - box.top) / box.height,
};
- const wasPlaying = !paused;
+ const wasPlaying = !player.getState().paused;
// The frame on screen at the press is the one being circled.
- const start = controls.frameTime();
- controls.pause();
+ const start = player.getState().time;
+ player.pause();
element.setPointerCapture(event.pointerId);
let current: Rect | null = null;
const clamp = (value: number) => Math.min(Math.max(value, 0), 1);
@@ -246,176 +298,107 @@ export const VideoReviewStage = memo<VideoReviewStageProps>(
if (rect && rect.width > 0.02 && rect.height > 0.02) {
onAddNote({ rect, time: { start } });
} else if (!wasPlaying) {
- controls.toggle();
+ player.toggle();
}
};
element.addEventListener('pointermove', move);
element.addEventListener('pointerup', up);
};
- const claims = claimsAt(chapters, time);
- const timed = notes.filter((note) => note.time);
- const aspect = size ? size.width / size.height : 16 / 9;
-
- let hint: string | null = flash;
- if (!hint && !draft)
- hint = paused
- ? t('acceptance.video.hintPaused', { frame: frameOf(time) })
- : t('acceptance.video.hintPlaying');
+ const dispute = (marker: ClaimMarker) => {
+ const { claim } = marker;
+ const disputed = notes.some((note) => disputesClaim(note.disputes, claim));
+ return (
+ <button
+ className={styles.dispute}
+ disabled={disputed}
+ type={'button'}
+ onClick={() => {
+ player.pause();
+ player.seek(claim.t);
+ onAddNote({
+ disputes: { kind: claim.kind, note: claim.note, t: claim.t },
+ time: { start: claim.t },
+ });
+ }}
+ >
+ {disputed ? t('acceptance.video.disputed') : t('acceptance.video.dispute')}
+ </button>
+ );
+ };
return (
- <div className={local.column}>
+ <Video.Root
+ defaultPlaybackRate={defaultRate}
+ markers={markers}
+ player={player}
+ preload={'auto'}
+ sections={sections}
+ src={src}
+ style={{
+ background: 'transparent',
+ borderRadius: 0,
+ color: 'inherit',
+ display: 'flex',
+ flex: 1,
+ flexDirection: 'column',
+ gap: 10,
+ lineHeight: 'inherit',
+ minHeight: 0,
+ minWidth: 0,
+ overflow: 'visible',
+ }}
+ onRateChange={storeRate}
+ onMarkerClick={(marker) => {
+ const key = noteKeyOf(marker);
+ const entry =
+ key === undefined ? undefined : notes.find((note) => String(note.key) === key);
+ if (entry) focusNote(entry);
+ }}
+ onRetry={async () => {
+ const fresh = await onRefreshSource?.();
+ if (fresh && fresh !== src) setSrc(fresh);
+ }}
+ >
<div className={local.fit}>
- <div
- className={styles.player}
+ <Video.Frame
style={{
- aspectRatio: `${aspect}`,
- maxHeight: '100%',
- width: 'auto',
+ borderRadius: cssVar.borderRadiusLG,
height: '100%',
maxWidth: '100%',
+ width: 'auto',
}}
>
- <div className={styles.frame} style={{ height: '100%' }}>
- <video playsInline preload={'auto'} ref={videoRef} src={src} />
- {status === 'ready' && (
- <div className={cx(styles.overlay, styles.drawable)} onPointerDown={onStageDown}>
- <FrameRegions
- paused={paused}
- time={time}
- regions={timed
- .filter((note) => !isFullFrameRect(note.rect))
- .map((note) => ({
- comment: note.comment,
- key: note.key,
- rect: note.rect,
- start: note.time!.start,
- }))}
- />
- {draft && <DraftRegion rect={draft} />}
- {hint && <div className={styles.hint}>{hint}</div>}
- {claims.length > 0 && !draft && (
- <ClaimCaption
- claims={claims}
- action={(claim) => {
- const disputed = notes.some((note) => disputesClaim(note.disputes, claim));
- return (
- <button
- className={styles.dispute}
- disabled={disputed}
- type={'button'}
- onClick={() => {
- controls.pause();
- controls.seek(claim.t);
- onAddNote({
- disputes: { kind: claim.kind, note: claim.note, t: claim.t },
- time: { start: claim.t },
- });
- }}
- >
- {disputed
- ? t('acceptance.video.disputed')
- : t('acceptance.video.dispute')}
- </button>
- );
- }}
- />
- )}
- </div>
- )}
- {status === 'error' && (
- <VideoLoadError
- src={src}
- onReload={async () => {
- const fresh = await onRefreshSource?.();
- if (fresh && fresh !== src) setSrc(fresh);
- else controls.reload();
- }}
- />
- )}
- </div>
- </div>
- </div>
- {/* Not clipped like the frame: the hover preview rises above the bar. */}
- <div className={styles.player} style={{ flex: 'none', overflow: 'visible' }}>
- <div className={styles.bar} style={{ borderRadius: 'inherit' }}>
- <VideoTimeline
- activeNoteKey={activeNoteKey}
- chapters={chapters}
- duration={duration}
- range={range}
- src={src}
- time={time}
- notes={timed.map((note) => ({
- comment: note.comment,
- end: note.time!.end,
- key: note.key,
- start: note.time!.start,
- }))}
- onRange={setRange}
- onSeek={controls.seek}
- onClaimClick={(item) => {
- controls.pause();
- controls.seek(item.t);
- }}
- onNoteClick={(note) => {
- const entry = notes.find((item) => item.key === note.key);
- if (entry) focusNote(entry);
- }}
- />
- <VideoControlBar chapters={chapters} clock={clock} />
- </div>
- </div>
- <Flexbox horizontal align={'center'} className={local.tools} gap={8}>
- {range ? (
- <>
- <Icon icon={Repeat} size={14} />
- <span className={local.mono}>
- {formatVideoTime(range.start)} – {formatVideoTime(range.end)}
- </span>
- <Text fontSize={12} type={'secondary'}>
- {t('acceptance.video.rangeSeconds', {
- seconds: (range.end - range.start).toFixed(1),
- })}
- </Text>
- <div style={{ flex: 1 }} />
- <Button
- size={'small'}
- type={loop ? 'primary' : 'default'}
- onClick={() => setLoop((value) => !value)}
- >
- {t('acceptance.video.loop')}
- </Button>
- <Button icon={MessageSquareText} size={'small'} onClick={commentRange}>
- {t('acceptance.video.commentRange')}
- </Button>
- <ActionIcon
- icon={X}
- size={'small'}
- title={t('acceptance.video.clearRange')}
- onClick={() => setRange(null)}
+ {ready && (
+ <div className={cx(styles.overlay, styles.drawable)} onPointerDown={onStageDown}>
+ <FrameRegions regions={regions} />
+ {draft && <DraftRegion rect={draft} />}
+ <Hint drafting={Boolean(draft)} flash={flash} />
+ </div>
+ )}
+ {!draft && (
+ <Video.Caption
+ action={(marker) => ('claim' in marker ? dispute(marker as ClaimMarker) : null)}
/>
- </>
- ) : (
- <>
- <Text fontSize={12} type={'secondary'}>
- <span className={local.kbd}>Space</span> {t('acceptance.video.play')} ·{' '}
- <span className={local.kbd}>,</span>
- <span className={local.kbd}>.</span> {t('acceptance.video.keysFrame')} ·{' '}
- <span className={local.kbd}>J</span>
- <span className={local.kbd}>L</span> {t('acceptance.video.speed')} ·{' '}
- <span className={local.kbd}>M</span> {t('acceptance.video.markFrame')} ·{' '}
- <span className={local.kbd}>I</span>
- <span className={local.kbd}>O</span> {t('acceptance.video.keysRange')}
- </Text>
- <div style={{ flex: 1 }} />
- <Button disabled={status !== 'ready'} icon={Flag} size={'small'} onClick={markFrame}>
- {t('acceptance.video.markFrame')}
- </Button>
- </>
- )}
- </Flexbox>
- </div>
+ )}
+ <Video.LoadError />
+ </Video.Frame>
+ </div>
+ <Video.Controls frameStep style={{ borderRadius: cssVar.borderRadiusLG }}>
+ <Video.Timeline>
+ <RangeLane notes={timedNotes} range={range} onRange={setRange} onSeek={player.seek} />
+ </Video.Timeline>
+ </Video.Controls>
+ <ReviewTools
+ loop={loop}
+ range={range}
+ ready={ready}
+ onClearRange={() => setRange(null)}
+ onCommentRange={commentRange}
+ onMarkFrame={markFrame}
+ onToggleLoop={() => setLoop((value) => !value)}
+ />
+ </Video.Root>
);
},
);
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/VideoTimeline.tsx b/src/features/Acceptance/Viewer/Evidence/Video/VideoTimeline.tsx
deleted file mode 100644
index a4c66311e24..00000000000
--- a/src/features/Acceptance/Viewer/Evidence/Video/VideoTimeline.tsx
+++ /dev/null
@@ -1,265 +0,0 @@
-'use client';
-
-import type { VerifyEvidenceChapter } from '@lobechat/types';
-import { cx } from 'antd-style';
-import type { PointerEvent as ReactPointerEvent } from 'react';
-import { useEffect, useRef, useState } from 'react';
-import { useTranslation } from 'react-i18next';
-
-import { ClaimLabel } from './ClaimLabel';
-import { CLAIM_COLOR, styles } from './styles';
-import type { VideoLoop } from './useVideoClock';
-import { claimsOf, formatVideoTime, stepAt, stepsOf } from './videoTime';
-
-/** A reviewer note as the timeline sees it: a moment, or a span. */
-export interface TimelineNote {
- comment?: string;
- end?: number;
- key: number | string;
- start: number;
-}
-
-/** Hovering within this share of the track snaps to a marker's own frame. */
-const SNAP_RATIO = 0.012;
-
-interface HoverState {
- claim?: VerifyEvidenceChapter;
- comment?: string;
- step?: string;
- time: number;
- x: number;
-}
-
-/**
- * The frame under the pointer, painted from a hidden second `<video>`: seeking
- * the one on screen would move the playhead the reviewer is holding. Seeks
- * queue behind each other so a fast sweep never stalls on stale frames.
- */
-const HoverPreview = ({ claim, comment, src, step, time, x }: HoverState & { src: string }) => {
- const canvasRef = useRef<HTMLCanvasElement>(null);
- const probeRef = useRef<HTMLVideoElement>(null);
- const pending = useRef<number | null>(null);
- const busy = useRef(false);
-
- useEffect(() => {
- const probe = probeRef.current;
- if (!probe) return;
- const paint = () => {
- const canvas = canvasRef.current;
- canvas?.getContext('2d')?.drawImage(probe, 0, 0, canvas.width, canvas.height);
- busy.current = false;
- if (pending.current === null) return;
- busy.current = true;
- probe.currentTime = pending.current;
- pending.current = null;
- };
- probe.addEventListener('seeked', paint);
- return () => probe.removeEventListener('seeked', paint);
- }, []);
-
- useEffect(() => {
- const probe = probeRef.current;
- if (!probe) return;
- if (busy.current) {
- pending.current = time;
- return;
- }
- busy.current = true;
- probe.currentTime = time;
- }, [time]);
-
- return (
- <div className={styles.preview} style={{ left: x }}>
- <video muted preload={'auto'} ref={probeRef} src={src} style={{ display: 'none' }} />
- <canvas height={99} ref={canvasRef} width={176} />
- <div className={styles.previewMeta}>
- <span className={styles.mono}>{formatVideoTime(time)}</span>
- {step && <span style={{ color: '#999' }}> · {step}</span>}
- {claim && (
- <div>
- <ClaimLabel kind={claim.kind} style={{ marginInlineEnd: 6 }} />
- {claim.note}
- </div>
- )}
- {comment && <div style={{ color: '#ffb4ab' }}>{comment}</div>}
- </div>
- </div>
- );
-};
-
-interface VideoTimelineProps {
- activeNoteKey?: number | string;
- chapters: VerifyEvidenceChapter[];
- duration: number;
- notes: TimelineNote[];
- onClaimClick: (claim: VerifyEvidenceChapter) => void;
- onNoteClick: (note: TimelineNote) => void;
- /** Present in review: the lane below the track selects a span. */
- onRange?: (range: VideoLoop | null) => void;
- onSeek: (seconds: number) => void;
- range?: VideoLoop | null;
- src: string;
- time: number;
-}
-
-/**
- * The scrubber and everything pinned to it: the agent's steps as ticks, its
- * claims as dots (check) and diamonds (flag) above the rail, and reviewer notes
- * as red marks on it. In review a lane below the rail selects a span.
- */
-export const VideoTimeline = ({
- activeNoteKey,
- chapters,
- duration,
- notes,
- onClaimClick,
- onNoteClick,
- onRange,
- onSeek,
- range,
- src,
- time,
-}: VideoTimelineProps) => {
- const { t } = useTranslation('verify');
- const trackRef = useRef<HTMLDivElement>(null);
- const [hover, setHover] = useState<HoverState | null>(null);
- const pct = (seconds: number) => `${(duration ? seconds / duration : 0) * 100}%`;
-
- const timeAt = (element: HTMLElement, clientX: number) => {
- const box = element.getBoundingClientRect();
- return Math.min(Math.max((clientX - box.left) / box.width, 0), 1) * duration;
- };
-
- /** Pointer-captured drag: the gesture keeps tracking outside the element. */
- const drag = (
- event: ReactPointerEvent<HTMLDivElement>,
- onMove: (seconds: number) => void,
- onEnd?: (seconds: number) => void,
- ) => {
- const element = event.currentTarget;
- element.setPointerCapture(event.pointerId);
- const move = (next: PointerEvent) => onMove(timeAt(element, next.clientX));
- const up = (next: PointerEvent) => {
- element.removeEventListener('pointermove', move);
- element.removeEventListener('pointerup', up);
- onEnd?.(timeAt(element, next.clientX));
- };
- element.addEventListener('pointermove', move);
- element.addEventListener('pointerup', up);
- };
-
- const onTrackDown = (event: ReactPointerEvent<HTMLDivElement>) => {
- onSeek(timeAt(event.currentTarget, event.clientX));
- drag(event, onSeek);
- };
-
- const onLaneDown = (event: ReactPointerEvent<HTMLDivElement>) => {
- if (!onRange) return;
- const anchor = timeAt(event.currentTarget, event.clientX);
- onRange({ end: anchor, start: anchor });
- drag(
- event,
- (seconds) => onRange({ end: Math.max(anchor, seconds), start: Math.min(anchor, seconds) }),
- (seconds) => {
- // A click, not a drag, clears the span rather than leaving a sliver.
- if (Math.abs(seconds - anchor) < 0.15) onRange(null);
- else onSeek(Math.min(anchor, seconds));
- },
- );
- };
-
- const onHover = (event: ReactPointerEvent<HTMLDivElement>) => {
- const track = trackRef.current;
- if (!track || !duration) return;
- const box = track.getBoundingClientRect();
- const seconds = timeAt(track, event.clientX);
- const snap = duration * SNAP_RATIO;
- const note = notes.find((item) => Math.abs(item.start - seconds) < snap);
- const claim = note
- ? undefined
- : claimsOf(chapters).find((item) => Math.abs(item.t - seconds) < snap);
- setHover({
- claim,
- comment: note?.comment,
- step: stepAt(chapters, seconds)?.label,
- time: note?.start ?? claim?.t ?? seconds,
- x: Math.min(Math.max(event.clientX - box.left, 88), box.width - 88),
- });
- };
-
- const span = range && (
- <div
- className={styles.rangeBand}
- style={{ left: pct(range.start), width: pct(range.end - range.start) }}
- />
- );
-
- return (
- <div className={styles.timeline}>
- {hover && <HoverPreview {...hover} src={src} />}
- <div
- aria-label={t('acceptance.video.seek')}
- aria-valuemax={Math.round(duration)}
- aria-valuemin={0}
- aria-valuenow={Math.round(time)}
- className={styles.track}
- ref={trackRef}
- role={'slider'}
- onPointerDown={onTrackDown}
- onPointerLeave={() => setHover(null)}
- onPointerMove={onHover}
- >
- <div className={styles.rail} />
- <div className={styles.played} style={{ width: pct(time) }} />
- {stepsOf(chapters).map((step) =>
- step.t > 0 ? (
- <div className={styles.stepTick} key={`step-${step.t}`} style={{ left: pct(step.t) }} />
- ) : null,
- )}
- {span}
- {notes
- .filter((note) => note.end !== undefined)
- .map((note) => (
- <div
- className={styles.noteSpan}
- key={`span-${note.key}`}
- style={{ left: pct(note.start), width: pct(note.end! - note.start) }}
- />
- ))}
- <div className={styles.head} style={{ left: pct(time) }} />
- {claimsOf(chapters).map((claim, index) => (
- <button
- aria-label={`${t(`acceptance.video.claim.${claim.kind}`)} ${formatVideoTime(claim.t)}: ${claim.note}`}
- className={styles.claimMark}
- key={`claim-${claim.kind}-${claim.t}-${index}`}
- style={{ background: CLAIM_COLOR[claim.kind], left: pct(claim.t) }}
- type={'button'}
- // The press must not also scrub the track; the click (pointer, Enter
- // or Space) is what seeks, so the marker works from the keyboard.
- onClick={() => onClaimClick(claim)}
- onPointerDown={(event) => event.stopPropagation()}
- />
- ))}
- {notes.map((note) => (
- <button
- aria-label={`${formatVideoTime(note.start)} ${note.comment ?? ''}`}
- className={cx(styles.noteMark, activeNoteKey === note.key && styles.noteMarkActive)}
- key={`note-${note.key}`}
- style={{ left: pct(note.start) }}
- type={'button'}
- // The press must not also scrub the track; the click (pointer, Enter
- // or Space) is what seeks, so the marker works from the keyboard.
- onClick={() => onNoteClick(note)}
- onPointerDown={(event) => event.stopPropagation()}
- />
- ))}
- </div>
- {onRange && (
- <div className={styles.lane} onPointerDown={onLaneDown}>
- {!range && <span className={styles.laneLabel}>{t('acceptance.video.rangeLane')}</span>}
- {span}
- </div>
- )}
- </div>
- );
-};
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/chapters.ts b/src/features/Acceptance/Viewer/Evidence/Video/chapters.ts
new file mode 100644
index 00000000000..528785436fa
--- /dev/null
+++ b/src/features/Acceptance/Viewer/Evidence/Video/chapters.ts
@@ -0,0 +1,50 @@
+import type { VerifyEvidenceChapter, VerifyEvidenceChapterKind } from '@lobechat/types';
+import type { VideoMarker, VideoSection } from '@lobehub/ui';
+
+import { claimsOf, stepsOf } from './videoTime';
+
+const MARKER_COLOR: Record<Exclude<VerifyEvidenceChapterKind, 'step'>, VideoMarker['color']> = {
+ check: 'success',
+ flag: 'warning',
+};
+
+export interface ClaimMarker extends VideoMarker {
+ claim: VerifyEvidenceChapter;
+}
+
+export interface TimedNote {
+ comment?: string;
+ end?: number;
+ key: number | string;
+ start: number;
+}
+
+export const toSections = (chapters: VerifyEvidenceChapter[]): VideoSection[] =>
+ stepsOf(chapters).map((step) => ({ start: step.t, title: step.label ?? '' }));
+
+export const toClaimMarkers = (
+ chapters: VerifyEvidenceChapter[],
+ label: (kind: VerifyEvidenceChapterKind) => string,
+): ClaimMarker[] =>
+ claimsOf(chapters).map((claim, index) => ({
+ claim,
+ color: MARKER_COLOR[claim.kind as keyof typeof MARKER_COLOR],
+ content: claim.note,
+ key: `claim-${claim.kind}-${claim.t}-${index}`,
+ label: label(claim.kind),
+ time: claim.t,
+ }));
+
+// Notes carry only a label: the hover preview names them, the caption stays for claims.
+export const toNoteMarkers = (notes: TimedNote[]): VideoMarker[] =>
+ notes.map((note) => ({
+ color: 'error',
+ key: `note-${note.key}`,
+ label: note.comment,
+ time: note.start,
+ }));
+
+export const noteKeyOf = (marker: VideoMarker) =>
+ typeof marker.key === 'string' && marker.key.startsWith('note-')
+ ? marker.key.slice('note-'.length)
+ : undefined;
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/playbackRate.ts b/src/features/Acceptance/Viewer/Evidence/Video/playbackRate.ts
new file mode 100644
index 00000000000..c4ab58c1fa2
--- /dev/null
+++ b/src/features/Acceptance/Viewer/Evidence/Video/playbackRate.ts
@@ -0,0 +1,19 @@
+const RATE_STORAGE_KEY = 'acceptance-video-rate';
+
+// A reviewer who watches at 1.5× wants the next recording at 1.5× too.
+export const readStoredRate = () => {
+ try {
+ const value = Number(localStorage.getItem(RATE_STORAGE_KEY));
+ return Number.isFinite(value) && value > 0 ? value : 1;
+ } catch {
+ return 1;
+ }
+};
+
+export const storeRate = (rate: number) => {
+ try {
+ localStorage.setItem(RATE_STORAGE_KEY, String(rate));
+ } catch {
+ /* private mode — the rate simply resets next time */
+ }
+};
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/styles.ts b/src/features/Acceptance/Viewer/Evidence/Video/styles.ts
index ef634335814..3e6b4ba8a7c 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/styles.ts
+++ b/src/features/Acceptance/Viewer/Evidence/Video/styles.ts
@@ -1,45 +1,7 @@
import type { VerifyEvidenceChapterKind } from '@lobechat/types';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
-/**
- * The player chrome is dark in both themes, as video chrome is everywhere: it
- * sits on the black letterbox and must not flash white around a dark recording.
- */
export const styles = createStaticStyles(({ css }) => ({
- player: css`
- position: relative;
-
- overflow: hidden;
-
- width: 100%;
- border-radius: ${cssVar.borderRadiusLG};
-
- background: #000;
- outline: none;
-
- &:focus-visible {
- box-shadow: 0 0 0 2px ${cssVar.colorPrimaryBorder};
- }
-
- &:fullscreen > :first-child {
- max-width: 100%;
- }
- `,
- frame: css`
- position: relative;
-
- width: 100%;
- max-width: var(--acceptance-video-frame-width, 100%);
- margin-inline: auto;
-
- background: #000;
-
- video {
- display: block;
- width: 100%;
- height: 100%;
- }
- `,
overlay: css`
position: absolute;
inset: 0;
@@ -84,26 +46,6 @@ export const styles = createStaticStyles(({ css }) => ({
border: 2px dashed ${cssVar.colorWarning};
border-radius: 4px;
`,
- centerPlay: css`
- pointer-events: none;
-
- position: absolute;
- inset-block-start: 50%;
- inset-inline-start: 50%;
- transform: translate(-50%, -50%);
-
- display: flex;
- align-items: center;
- justify-content: center;
-
- width: 56px;
- height: 56px;
- border-radius: 50%;
-
- color: #fff;
-
- background: rgb(0 0 0 / 55%);
- `,
hint: css`
pointer-events: none;
@@ -122,36 +64,6 @@ export const styles = createStaticStyles(({ css }) => ({
background: rgb(0 0 0 / 65%);
`,
- caption: css`
- position: absolute;
- inset-block-end: 14px;
- inset-inline-start: 50%;
- transform: translateX(-50%);
-
- display: flex;
- flex-direction: column;
- gap: 2px;
-
- max-width: 80%;
- padding-block: 6px 8px;
- padding-inline: 12px;
- border-radius: 8px;
-
- font-size: 13px;
- line-height: 1.5;
- color: #fff;
-
- background: rgb(0 0 0 / 78%);
- `,
- captionTitle: css`
- display: flex;
- gap: 12px;
- align-items: center;
- justify-content: space-between;
-
- font-size: 12px;
- color: rgb(255 255 255 / 85%);
- `,
dispute: css`
cursor: pointer;
@@ -176,164 +88,6 @@ export const styles = createStaticStyles(({ css }) => ({
background: rgb(255 255 255 / 12%);
}
`,
- bar: css`
- padding-block: 6px 8px;
- padding-inline: 12px;
- color: #eee;
- background: #151515;
- `,
- time: css`
- margin-inline-start: 6px;
-
- font-family: ${cssVar.fontFamilyCode};
- font-size: 12px;
- font-variant-numeric: tabular-nums;
- color: #ddd;
- white-space: nowrap;
- `,
- frameNo: css`
- overflow: hidden;
- flex: 1;
-
- min-width: 0;
- margin-inline-start: 8px;
-
- font-family: ${cssVar.fontFamilyCode};
- font-size: 11px;
- color: #888;
- text-overflow: ellipsis;
- white-space: nowrap;
- `,
- barButton: css`
- cursor: pointer;
-
- display: inline-flex;
- flex: none;
- align-items: center;
- justify-content: center;
-
- min-width: 28px;
- height: 28px;
- padding-inline: 6px;
- border: none;
- border-radius: 6px;
-
- font-size: 12px;
- color: #ddd;
-
- background: transparent;
-
- &:hover {
- background: rgb(255 255 255 / 10%);
- }
-
- &:focus-visible {
- outline: 2px solid ${cssVar.colorPrimaryBorder};
- }
- `,
- barButtonActive: css`
- color: #fff;
- background: rgb(255 255 255 / 12%);
- `,
- /* ---------------- timeline ---------------- */
- timeline: css`
- user-select: none;
- position: relative;
- padding-block: 14px 4px;
- `,
- track: css`
- touch-action: none;
- cursor: pointer;
- position: relative;
- height: 20px;
- `,
- rail: css`
- position: absolute;
- inset-block-start: 8px;
- inset-inline: 0;
-
- height: 4px;
- border-radius: 2px;
-
- background: rgb(255 255 255 / 18%);
- `,
- played: css`
- position: absolute;
- inset-block-start: 8px;
- inset-inline-start: 0;
-
- height: 4px;
- border-radius: 2px;
-
- background: #fff;
- `,
- head: css`
- pointer-events: none;
-
- position: absolute;
- inset-block-start: 4px;
- transform: translateX(-50%);
-
- width: 12px;
- height: 12px;
- border-radius: 50%;
-
- background: #fff;
- box-shadow: 0 0 0 3px rgb(0 0 0 / 40%);
- `,
- stepTick: css`
- pointer-events: none;
-
- position: absolute;
- inset-block-start: 7px;
- transform: translateX(-50%);
-
- width: 2px;
- height: 6px;
-
- background: #151515;
- `,
- claimMark: css`
- cursor: pointer;
-
- position: absolute;
- z-index: 3;
- inset-block-start: -9px;
- transform: translateX(-50%);
-
- width: 8px;
- height: 8px;
- padding: 0;
- border: 1.5px solid #151515;
- border-radius: 50%;
-
- &:hover {
- transform: translateX(-50%) scale(1.4);
- }
- `,
- noteMark: css`
- cursor: pointer;
-
- position: absolute;
- z-index: 2;
- inset-block-start: -2px;
- transform: translateX(-50%);
-
- width: 10px;
- height: 10px;
- padding: 0;
- border: 2px solid #151515;
- border-radius: 50%;
-
- background: ${cssVar.colorError};
-
- &:hover {
- transform: translateX(-50%) scale(1.3);
- }
- `,
- noteMarkActive: css`
- box-shadow: 0 0 0 2px ${cssVar.colorErrorBorder};
- `,
noteSpan: css`
pointer-events: none;
@@ -386,47 +140,8 @@ export const styles = createStaticStyles(({ css }) => ({
line-height: 16px;
color: #777;
`,
- preview: css`
- pointer-events: none;
-
- position: absolute;
- z-index: 5;
- inset-block-end: 34px;
- transform: translateX(-50%);
-
- overflow: hidden;
-
- width: 176px;
- border: 1px solid #333;
- border-radius: 8px;
-
- background: #000;
- box-shadow: 0 6px 20px rgb(0 0 0 / 50%);
-
- canvas {
- display: block;
- width: 176px;
- height: 99px;
- }
- `,
- previewMeta: css`
- padding-block: 4px;
- padding-inline: 8px;
-
- font-size: 11px;
- line-height: 1.5;
- color: #ddd;
-
- background: #1b1b1b;
- `,
- mono: css`
- font-family: ${cssVar.fontFamilyCode};
- font-size: 11px;
- font-variant-numeric: tabular-nums;
- `,
}));
-/** Marker colours, shared by the timeline marks, the caption and the claim list. */
export const CLAIM_COLOR: Record<VerifyEvidenceChapterKind, string> = {
check: cssVar.colorSuccess,
flag: cssVar.colorWarning,
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/useVideoClock.test.ts b/src/features/Acceptance/Viewer/Evidence/Video/useVideoClock.test.ts
deleted file mode 100644
index 38b0921e1d2..00000000000
--- a/src/features/Acceptance/Viewer/Evidence/Video/useVideoClock.test.ts
+++ /dev/null
@@ -1,98 +0,0 @@
-import { act, renderHook } from '@testing-library/react';
-import { describe, expect, it } from 'vitest';
-
-import { useVideoClock } from './useVideoClock';
-
-type FrameCallback = (now: number, frame: { mediaTime: number }) => void;
-
-/**
- * Just enough of a `<video>` for the clock: the media clock (`currentTime`)
- * and the painted frame are separate, and `pause` is delivered as an event
- * after the call returns — exactly the two facts the clock has to reconcile.
- */
-class FakeVideo extends EventTarget {
- currentTime = 0;
- duration = 15;
- paused = false;
- playbackRate = 1;
- readyState = 1;
- videoHeight = 720;
- videoWidth = 1280;
- private frameCallback?: FrameCallback;
-
- requestVideoFrameCallback(callback: FrameCallback) {
- this.frameCallback = callback;
- return 1;
- }
-
- cancelVideoFrameCallback() {}
-
- /** The browser paints a frame, then its media clock keeps running a little. */
- paint(mediaTime: number, clockRunsTo: number) {
- this.currentTime = mediaTime;
- this.frameCallback?.(0, { mediaTime });
- this.currentTime = clockRunsTo;
- }
-
- pause() {
- this.paused = true;
- queueMicrotask(() => this.dispatchEvent(new Event('pause')));
- }
-}
-
-const setup = () => {
- const video = new FakeVideo();
- const ref = { current: video as unknown as HTMLVideoElement };
- const hook = renderHook(() => useVideoClock(ref, { src: 'clip.mp4' }));
- return { hook, video };
-};
-
-describe('useVideoClock', () => {
- it('pauses on the frame that was on screen, not where the media clock ran to', async () => {
- const { hook, video } = setup();
- act(() => video.paint(7.42, 7.44));
-
- // A note made at the press names the painted frame...
- expect(hook.result.current.controls.frameTime()).toBe(7.42);
- await act(async () => hook.result.current.controls.pause());
-
- // ...and after the pause the clock and the readout agree with it, so a
- // region drawn now is shown on the frame it was drawn on.
- expect(video.currentTime).toBe(7.42);
- expect(hook.result.current.time).toBe(7.42);
- });
-
- it('never lets the late pause event drag a seek back to the old frame', async () => {
- const { hook, video } = setup();
- act(() => video.paint(7.42, 7.44));
-
- await act(async () => {
- hook.result.current.controls.pause();
- hook.result.current.controls.seek(3);
- });
-
- expect(video.currentTime).toBe(3);
- });
-
- it('keeps stepping one frame at a time when a stale frame is reported after a paused seek', async () => {
- const { hook, video } = setup();
- video.paused = true;
- video.currentTime = 163.5 / 30;
- // The browser reports the frame that was up before the seek landed.
- act(() => video.paint(162 / 30, 163.5 / 30));
-
- await act(async () => hook.result.current.controls.step(1));
-
- expect(video.currentTime).toBeCloseTo(164.5 / 30, 5);
- });
-
- it('steps from the painted frame while playing', async () => {
- const { hook, video } = setup();
- act(() => video.paint(7.42, 7.48));
-
- await act(async () => hook.result.current.controls.step(1));
-
- // 7.42s is frame 222; one step lands in the middle of frame 223.
- expect(video.currentTime).toBeCloseTo(223.5 / 30, 5);
- });
-});
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/useVideoClock.ts b/src/features/Acceptance/Viewer/Evidence/Video/useVideoClock.ts
deleted file mode 100644
index 201d8fb3002..00000000000
--- a/src/features/Acceptance/Viewer/Evidence/Video/useVideoClock.ts
+++ /dev/null
@@ -1,170 +0,0 @@
-'use client';
-
-import type { RefObject } from 'react';
-import { useEffect, useMemo, useRef, useState } from 'react';
-
-import { steppedTime } from './videoTime';
-
-export interface VideoLoop {
- end: number;
- start: number;
-}
-
-const RATE_STORAGE_KEY = 'acceptance-video-rate';
-
-const readStoredRate = () => {
- try {
- const value = Number(localStorage.getItem(RATE_STORAGE_KEY));
- return Number.isFinite(value) && value > 0 ? value : 1;
- } catch {
- return 1;
- }
-};
-
-/**
- * The state of one `<video>`, frame-accurate while playing.
- *
- * `timeupdate` fires a few times a second, which is too coarse to put a region
- * on the frame it was drawn on; `requestVideoFrameCallback` reports every
- * painted frame, with `requestAnimationFrame` as the fallback. The chosen
- * playback rate is remembered across videos: a reviewer who watches at 1.5×
- * wants the next recording at 1.5× too.
- */
-export const useVideoClock = (
- videoRef: RefObject<HTMLVideoElement | null>,
- { loop, src }: { loop?: VideoLoop | null; src: string },
-) => {
- const [time, setTime] = useState(0);
- const [duration, setDuration] = useState(0);
- const [paused, setPaused] = useState(true);
- const [rate, setRateState] = useState(1);
- const [size, setSize] = useState<{ height: number; width: number } | null>(null);
- const [status, setStatus] = useState<'error' | 'loading' | 'ready'>('loading');
- const loopRef = useRef(loop);
- loopRef.current = loop;
- /**
- * The time of the frame actually on screen. `currentTime` runs ahead of it:
- * pausing lands a frame or so past what was painted, and a region drawn on
- * the picture belongs to the picture, not to the media clock. Only tracked
- * while playing — once paused, `currentTime` is exact, and a frame reported
- * after a paused seek may still be the one from before it. Cleared by every
- * deliberate seek, so the (asynchronous) pause event never drags a seek back
- * to the frame that was showing before it.
- */
- const paintedRef = useRef<number | undefined>(undefined);
-
- useEffect(() => {
- const video = videoRef.current;
- if (!video) return;
- setStatus('loading');
- video.playbackRate = readStoredRate();
-
- let handle = 0;
- const schedule = () => {
- handle = video.requestVideoFrameCallback
- ? video.requestVideoFrameCallback(tick)
- : requestAnimationFrame(tick);
- };
- const tick = (_now?: number, frame?: { mediaTime: number }) => {
- const span = loopRef.current;
- if (span && !video.paused && video.currentTime >= span.end) video.currentTime = span.start;
- if (!video.paused) paintedRef.current = frame?.mediaTime;
- setTime(video.paused ? video.currentTime : (paintedRef.current ?? video.currentTime));
- schedule();
- };
- const onMeta = () => {
- setDuration(video.duration);
- setSize({ height: video.videoHeight, width: video.videoWidth });
- setStatus('ready');
- };
- const onPlay = () => setPaused(false);
- const onPause = () => {
- setPaused(true);
- // Hold the clock on the painted frame, so the readout, a region drawn
- // now and a later seek back all name the frame the reviewer is looking at.
- const painted = paintedRef.current;
- paintedRef.current = undefined;
- if (painted !== undefined && Math.abs(video.currentTime - painted) > 1e-3)
- video.currentTime = painted;
- };
- const onSeeked = () => {
- paintedRef.current = undefined;
- setTime(video.currentTime);
- };
- const onRate = () => setRateState(video.playbackRate);
- const onError = () => setStatus('error');
-
- if (video.readyState >= 1) onMeta();
- video.addEventListener('loadedmetadata', onMeta);
- video.addEventListener('play', onPlay);
- video.addEventListener('pause', onPause);
- video.addEventListener('seeked', onSeeked);
- video.addEventListener('ratechange', onRate);
- video.addEventListener('error', onError);
- schedule();
-
- return () => {
- video.removeEventListener('loadedmetadata', onMeta);
- video.removeEventListener('play', onPlay);
- video.removeEventListener('pause', onPause);
- video.removeEventListener('seeked', onSeeked);
- video.removeEventListener('ratechange', onRate);
- video.removeEventListener('error', onError);
- if (video.cancelVideoFrameCallback) video.cancelVideoFrameCallback(handle);
- else cancelAnimationFrame(handle);
- };
- }, [videoRef, src]);
-
- const controls = useMemo(
- () => ({
- /** The time of the frame on screen — what a note made right now is about. */
- frameTime: () => {
- const video = videoRef.current;
- if (!video) return 0;
- return video.paused ? video.currentTime : (paintedRef.current ?? video.currentTime);
- },
- pause: () => videoRef.current?.pause(),
- reload: () => {
- setStatus('loading');
- videoRef.current?.load();
- },
- seek: (seconds: number) => {
- const video = videoRef.current;
- if (!video) return;
- paintedRef.current = undefined;
- video.currentTime = Math.min(Math.max(seconds, 0), video.duration || 0);
- setTime(video.currentTime);
- },
- setRate: (value: number) => {
- if (videoRef.current) videoRef.current.playbackRate = value;
- try {
- localStorage.setItem(RATE_STORAGE_KEY, String(value));
- } catch {
- /* private mode — the rate simply resets next time */
- }
- },
- step: (frames: number) => {
- const video = videoRef.current;
- if (!video) return;
- const from = video.paused ? video.currentTime : (paintedRef.current ?? video.currentTime);
- paintedRef.current = undefined;
- video.pause();
- video.currentTime = steppedTime(from, frames, video.duration || 0);
- },
- toggle: () => {
- const video = videoRef.current;
- if (!video) return;
- if (!video.paused) return video.pause();
- const span = loopRef.current;
- if (video.ended || (span && video.currentTime >= span.end))
- video.currentTime = span?.start ?? 0;
- void video.play();
- },
- }),
- [videoRef],
- );
-
- return { controls, duration, paused, rate, size, status, time };
-};
-
-export type VideoClock = ReturnType<typeof useVideoClock>;
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/videoTime.test.ts b/src/features/Acceptance/Viewer/Evidence/Video/videoTime.test.ts
index 622f5f47729..e11313961f2 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/videoTime.test.ts
+++ b/src/features/Acceptance/Viewer/Evidence/Video/videoTime.test.ts
@@ -2,15 +2,12 @@ import type { VerifyEvidenceChapter } from '@lobechat/types';
import { describe, expect, it } from 'vitest';
import {
- claimAt,
- claimsAt,
+ claimsOf,
disputesClaim,
formatVideoClock,
formatVideoTime,
- frameOf,
isOnFrame,
- stepAt,
- steppedTime,
+ stepsOf,
} from './videoTime';
const chapters: VerifyEvidenceChapter[] = [
@@ -28,27 +25,6 @@ describe('video time', () => {
expect(formatVideoClock(12.5)).toBe('0:12');
});
- it('steps exactly one frame at a time without drifting', () => {
- let time = 0;
- for (let i = 0; i < 90; i += 1) time = steppedTime(time, 1, 15);
- expect(frameOf(time)).toBe(90);
- expect(frameOf(steppedTime(time, -1, 15))).toBe(89);
- expect(steppedTime(14.99, 5, 15)).toBe(15);
- expect(steppedTime(0, -1, 15)).toBe(0);
- });
-
- it('names the step the playhead is in', () => {
- expect(stepAt(chapters, 6.5)?.label).toBe('Scroll #3');
- expect(stepAt(chapters, 5.9)?.label).toBe('Open');
- });
-
- it('captions a claim from its frame for two seconds, the newest one winning', () => {
- expect(claimAt(chapters, 6.9)).toBeUndefined();
- expect(claimAt(chapters, 7)?.kind).toBe('flag');
- expect(claimAt(chapters, 8)?.kind).toBe('check');
- expect(claimAt(chapters, 9.95)).toBeUndefined();
- });
-
it('keeps a paused region on its own frame only', () => {
expect(isOnFrame(7.2, 7.2, true)).toBe(true);
expect(isOnFrame(7.2, 7.2 + 1 / 30, true)).toBe(false);
@@ -56,6 +32,13 @@ describe('video time', () => {
});
});
+describe('chapters', () => {
+ it('splits steps from the claims a reviewer audits', () => {
+ expect(stepsOf(chapters).map((step) => step.label)).toEqual(['Open', 'Scroll #3']);
+ expect(claimsOf(chapters).map((claim) => claim.kind)).toEqual(['flag', 'check']);
+ });
+});
+
describe('disputesClaim', () => {
// Two self-checks can share a frame; disputing one must not settle the other.
it('tells apart two claims of the same kind on the same frame', () => {
@@ -67,21 +50,3 @@ describe('disputesClaim', () => {
expect(disputesClaim(undefined, first)).toBe(false);
});
});
-
-describe('claimsAt', () => {
- // The caption is where claims are disputed; one hiding another could never be.
- it('captions every claim that shares the frame, not just the last one', () => {
- const sameFrame = [
- { kind: 'check' as const, note: 'no skeleton', t: 7.9 },
- { kind: 'check' as const, note: 'first question in place', t: 7.9 },
- { kind: 'flag' as const, note: 'count 0 → 1', t: 7 },
- ];
-
- expect(claimsAt(sameFrame, 8).map((claim) => claim.note)).toEqual([
- 'no skeleton',
- 'first question in place',
- ]);
- expect(claimsAt(sameFrame, 7.2).map((claim) => claim.note)).toEqual(['count 0 → 1']);
- expect(claimsAt(sameFrame, 12)).toEqual([]);
- });
-});
diff --git a/src/features/Acceptance/Viewer/Evidence/Video/videoTime.ts b/src/features/Acceptance/Viewer/Evidence/Video/videoTime.ts
index 992750b054d..097f365dc2a 100644
--- a/src/features/Acceptance/Viewer/Evidence/Video/videoTime.ts
+++ b/src/features/Acceptance/Viewer/Evidence/Video/videoTime.ts
@@ -7,11 +7,6 @@ import type { VerifyEvidenceChapter } from '@lobechat/types';
*/
export const VIDEO_FPS = 30;
-export const PLAYBACK_RATES = [0.5, 1, 1.5, 2] as const;
-
-/** How long a claim stays on screen after its frame, like a subtitle. */
-export const CLAIM_CAPTION_SECONDS = 2;
-
export { formatVideoTimestamp as formatVideoTime } from '@lobechat/const/verify';
/**
@@ -39,13 +34,6 @@ export const formatVideoClock = (seconds: number) => {
*/
export const frameOf = (seconds: number) => Math.floor(seconds * VIDEO_FPS + 1e-6);
-/**
- * The time to seek to for a frame step. It lands on frame centres, so
- * repeated steps never skip a frame or show the same one twice.
- */
-export const steppedTime = (current: number, frames: number, duration: number) =>
- Math.min(Math.max((frameOf(current) + frames + 0.5) / VIDEO_FPS, 0), duration);
-
export const stepsOf = (chapters: VerifyEvidenceChapter[]) =>
chapters.filter((chapter) => chapter.kind === 'step');
@@ -53,32 +41,6 @@ export const stepsOf = (chapters: VerifyEvidenceChapter[]) =>
export const claimsOf = (chapters: VerifyEvidenceChapter[]) =>
chapters.filter((chapter) => chapter.kind !== 'step');
-/** The step the playhead is in, for the "frame 210 · Scroll #3" readout. */
-export const stepAt = (chapters: VerifyEvidenceChapter[], time: number) =>
- stepsOf(chapters).findLast((chapter) => chapter.t <= time + 0.01);
-
-/** The claim to caption at this time: from its frame until it has been read. */
-export const claimAt = (chapters: VerifyEvidenceChapter[], time: number) =>
- claimsOf(chapters)
- .filter(
- (chapter) => time >= chapter.t - 0.5 / VIDEO_FPS && time < chapter.t + CLAIM_CAPTION_SECONDS,
- )
- // The most recent claim wins, whatever order the chapters arrived in.
- .reduce<VerifyEvidenceChapter | undefined>(
- (latest, chapter) => (!latest || chapter.t >= latest.t ? chapter : latest),
- undefined,
- );
-
-/**
- * Every claim on the frame being captioned. Two claims can share a frame; the
- * caption is where each one is read and disputed, so none may hide behind
- * another.
- */
-export const claimsAt = (chapters: VerifyEvidenceChapter[], time: number) => {
- const latest = claimAt(chapters, time);
- return latest ? claimsOf(chapters).filter((chapter) => chapter.t === latest.t) : [];
-};
-
/**
* Whether a region drawn on the frame at `start` belongs on screen. Paused, it
* shows only on its own frame, so a region never lands on a frame it was not
diff --git a/src/features/Acceptance/Viewer/Evidence/attachments.tsx b/src/features/Acceptance/Viewer/Evidence/attachments.tsx
index d025730ffa7..0dbc271b3fc 100644
--- a/src/features/Acceptance/Viewer/Evidence/attachments.tsx
+++ b/src/features/Acceptance/Viewer/Evidence/attachments.tsx
@@ -1,9 +1,19 @@
'use client';
import type { AcceptanceAttachment } from '@lobechat/types';
-import { Flexbox, Icon, Image } from '@lobehub/ui';
-import { Button, Spin, toast, Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx, useResponsive } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Image,
+ Spin,
+ toast,
+ Upload,
+ useResponsive,
+} from '@lobehub/ui';
import { ImagePlus, X } from 'lucide-react';
import { type ClipboardEvent, memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Evidence/styles.ts b/src/features/Acceptance/Viewer/Evidence/styles.ts
index f59d88d46b8..9479c927a68 100644
--- a/src/features/Acceptance/Viewer/Evidence/styles.ts
+++ b/src/features/Acceptance/Viewer/Evidence/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
caption: css`
diff --git a/src/features/Acceptance/Viewer/Flow/AcceptanceFlow.tsx b/src/features/Acceptance/Viewer/Flow/AcceptanceFlow.tsx
index 749b85fae03..edc6b41b98e 100644
--- a/src/features/Acceptance/Viewer/Flow/AcceptanceFlow.tsx
+++ b/src/features/Acceptance/Viewer/Flow/AcceptanceFlow.tsx
@@ -2,10 +2,19 @@
import '@xyflow/react/dist/style.css';
-import { Empty, Flexbox, useAppElement } from '@lobehub/ui';
-import { ActionIcon, Button, Select, Text } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Select,
+ Text,
+ useAppElement,
+ useResponsive,
+} from '@lobehub/ui';
import { MarkerType, ReactFlowProvider } from '@xyflow/react';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
import { Maximize2, Minimize2 } from 'lucide-react';
import { use, useEffect, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
diff --git a/src/features/Acceptance/Viewer/Flow/FlowCanvas.tsx b/src/features/Acceptance/Viewer/Flow/FlowCanvas.tsx
index 0833115b6b8..23fa5473a42 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowCanvas.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowCanvas.tsx
@@ -1,4 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import {
Background,
Controls,
@@ -9,7 +9,6 @@ import {
useReactFlow,
type Viewport,
} from '@xyflow/react';
-import { createStaticStyles, cssVar } from 'antd-style';
import { useEffect, useRef } from 'react';
import { observeWidth } from '@/features/AgentGoals/ProcessControl/Graph/useFitViewOnResize';
diff --git a/src/features/Acceptance/Viewer/Flow/FlowEdge.tsx b/src/features/Acceptance/Viewer/Flow/FlowEdge.tsx
index 51bb410612e..cc156d00b3d 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowEdge.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowEdge.tsx
@@ -1,6 +1,6 @@
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import type { Edge, EdgeProps } from '@xyflow/react';
import { BaseEdge, EdgeLabelRenderer, getSmoothStepPath } from '@xyflow/react';
-import { createStaticStyles, cssVar } from 'antd-style';
import { getFlowEdgeLabelLayout } from './flowEdgeLabel';
diff --git a/src/features/Acceptance/Viewer/Flow/FlowGroup.tsx b/src/features/Acceptance/Viewer/Flow/FlowGroup.tsx
index 4d54edf36d5..db9173cb038 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowGroup.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowGroup.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Handle, Position, useNodeId } from '@xyflow/react';
-import { createStaticStyles, cssVar } from 'antd-style';
import {
CheckCircle2,
ChevronDown,
diff --git a/src/features/Acceptance/Viewer/Flow/FlowNode.tsx b/src/features/Acceptance/Viewer/Flow/FlowNode.tsx
index 416ba5af6d8..177514dfc13 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowNode.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowNode.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { Handle, Position } from '@xyflow/react';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import {
CheckCircle2,
CircleDashed,
diff --git a/src/features/Acceptance/Viewer/Flow/FlowOutline.tsx b/src/features/Acceptance/Viewer/Flow/FlowOutline.tsx
index ee159d5021c..977afa4a1a5 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowOutline.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowOutline.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import type { Edge, Node } from '@xyflow/react';
-import { createStaticStyles, cssVar } from 'antd-style';
import {
ArrowRight,
CheckCircle2,
diff --git a/src/features/Acceptance/Viewer/Flow/FlowResults.tsx b/src/features/Acceptance/Viewer/Flow/FlowResults.tsx
index f38135dbfc2..17bfbed47ce 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowResults.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowResults.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Select, Text, TextArea, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Select,
+ Text,
+ TextArea,
+ toast,
+} from '@lobehub/ui';
import { ClipboardCheck, History, X } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Flow/FlowVersionDiff.tsx b/src/features/Acceptance/Viewer/Flow/FlowVersionDiff.tsx
index 26eb6e6f570..74a00644baa 100644
--- a/src/features/Acceptance/Viewer/Flow/FlowVersionDiff.tsx
+++ b/src/features/Acceptance/Viewer/Flow/FlowVersionDiff.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createModal, Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createModal, createStaticStyles, cssVar, Flexbox, Select, Text } from '@lobehub/ui';
import { t } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx b/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx
index 2b85469c347..366c7bc2b7e 100644
--- a/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx
+++ b/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Icon } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useNavigate, useSearchParams } from 'react-router';
diff --git a/src/features/Acceptance/Viewer/Focus/AcceptanceFocusReview.tsx b/src/features/Acceptance/Viewer/Focus/AcceptanceFocusReview.tsx
index 1e6ab75dbd1..d2923f6e31c 100644
--- a/src/features/Acceptance/Viewer/Focus/AcceptanceFocusReview.tsx
+++ b/src/features/Acceptance/Viewer/Focus/AcceptanceFocusReview.tsx
@@ -1,9 +1,15 @@
'use client';
import type { AcceptanceChecklistItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ useResponsive,
+} from '@lobehub/ui';
import { ArrowLeft, ChevronDown, ChevronLeft, ChevronRight, Plus } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Focus/AcceptanceFocusWorkspace.tsx b/src/features/Acceptance/Viewer/Focus/AcceptanceFocusWorkspace.tsx
index 4ea56802323..2c102912557 100644
--- a/src/features/Acceptance/Viewer/Focus/AcceptanceFocusWorkspace.tsx
+++ b/src/features/Acceptance/Viewer/Focus/AcceptanceFocusWorkspace.tsx
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useLocation, useNavigate, useParams, useSearchParams } from 'react-router';
diff --git a/src/features/Acceptance/Viewer/Focus/FocusCheckHeading.tsx b/src/features/Acceptance/Viewer/Focus/FocusCheckHeading.tsx
index 4db7e17604e..8e02bb9c706 100644
--- a/src/features/Acceptance/Viewer/Focus/FocusCheckHeading.tsx
+++ b/src/features/Acceptance/Viewer/Focus/FocusCheckHeading.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { BadgeCheck, Ban, Check, CircleDashed, HelpCircle, RotateCcw, XCircle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Focus/FocusOutline.tsx b/src/features/Acceptance/Viewer/Focus/FocusOutline.tsx
index a2e243c0783..2e61fe3fe8e 100644
--- a/src/features/Acceptance/Viewer/Focus/FocusOutline.tsx
+++ b/src/features/Acceptance/Viewer/Focus/FocusOutline.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceChecklistItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { BadgeCheck, Ban, ChevronRight, CircleDashed, PencilLine, RotateCcw } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceGoal.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceGoal.tsx
index f4855e96858..73569736d1e 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceGoal.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceGoal.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronsDownUp, ChevronsUpDown, GitBranch, GitCommitHorizontal } from 'lucide-react';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceGoalEdit.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceGoalEdit.tsx
index 4e96b24ae71..a7f3ede1ae4 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceGoalEdit.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceGoalEdit.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, toast } from '@lobehub/ui';
import { PencilLine } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx
index 3dd02aff075..8261ee3de86 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceShare.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceShare.tsx
index 5fa296b43b3..bd72710ad69 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceShare.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceShare.tsx
@@ -1,4 +1,4 @@
-import { Button, confirmModal, DropdownMenu, toast } from '@lobehub/ui/base-ui';
+import { Button, confirmModal, DropdownMenu, toast } from '@lobehub/ui';
import { Share2 } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceStatusControl.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceStatusControl.tsx
index 3a6986c0774..6ae3b1391b2 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceStatusControl.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceStatusControl.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { toast } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { Icon, toast } from '@lobehub/ui';
import { CircleCheck, RotateCcw, X } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceStatusPill.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceStatusPill.tsx
index ecb51ebb61e..5ab381b68c7 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceStatusPill.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceStatusPill.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { DropdownMenu } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx, DropdownMenu, Icon } from '@lobehub/ui';
import { ChevronDown } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceTabs.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceTabs.tsx
index 67137907b4d..fecd47a6a66 100644
--- a/src/features/Acceptance/Viewer/Header/AcceptanceTabs.tsx
+++ b/src/features/Acceptance/Viewer/Header/AcceptanceTabs.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs, Tag } from '@lobehub/ui';
import { ListChecks, MessagesSquare, Paperclip, Route } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/PreviewReviewLink.tsx b/src/features/Acceptance/Viewer/Header/PreviewReviewLink.tsx
index ef4b966677c..15a686ba247 100644
--- a/src/features/Acceptance/Viewer/Header/PreviewReviewLink.tsx
+++ b/src/features/Acceptance/Viewer/Header/PreviewReviewLink.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { ArrowUpRight, MonitorSmartphone } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Header/PullRequestLinks.tsx b/src/features/Acceptance/Viewer/Header/PullRequestLinks.tsx
index a6421456e11..da8e2b63110 100644
--- a/src/features/Acceptance/Viewer/Header/PullRequestLinks.tsx
+++ b/src/features/Acceptance/Viewer/Header/PullRequestLinks.tsx
@@ -1,8 +1,7 @@
'use client';
import type { VerifyCodingPullRequest } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import {
GitMerge,
GitPullRequest,
diff --git a/src/features/Acceptance/Viewer/History/AcceptanceInteractionCost.tsx b/src/features/Acceptance/Viewer/History/AcceptanceInteractionCost.tsx
index aebf727ef39..053bc4b1449 100644
--- a/src/features/Acceptance/Viewer/History/AcceptanceInteractionCost.tsx
+++ b/src/features/Acceptance/Viewer/History/AcceptanceInteractionCost.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx b/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx
index 004e5ab87b6..5c8ef82e1d4 100644
--- a/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx
+++ b/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { DraggablePanel, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ DraggablePanel,
+ Flexbox,
+ Icon,
+ Text,
+ useResponsive,
+} from '@lobehub/ui';
import { PanelRightOpen } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useParams, useSearchParams } from 'react-router';
diff --git a/src/features/Acceptance/Viewer/History/AcceptanceViewReportLink.tsx b/src/features/Acceptance/Viewer/History/AcceptanceViewReportLink.tsx
index 391a2353124..f6040ab3127 100644
--- a/src/features/Acceptance/Viewer/History/AcceptanceViewReportLink.tsx
+++ b/src/features/Acceptance/Viewer/History/AcceptanceViewReportLink.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Acceptance/Viewer/History/LedgerPanel.tsx b/src/features/Acceptance/Viewer/History/LedgerPanel.tsx
index 1df18229d81..73f928c6637 100644
--- a/src/features/Acceptance/Viewer/History/LedgerPanel.tsx
+++ b/src/features/Acceptance/Viewer/History/LedgerPanel.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import {
CheckCircle2,
diff --git a/src/features/Acceptance/Viewer/Plan/AcceptancePlanReview.tsx b/src/features/Acceptance/Viewer/Plan/AcceptancePlanReview.tsx
index 67a5070d685..a97c5f7483c 100644
--- a/src/features/Acceptance/Viewer/Plan/AcceptancePlanReview.tsx
+++ b/src/features/Acceptance/Viewer/Plan/AcceptancePlanReview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/ReadOnly/Checks.tsx b/src/features/Acceptance/Viewer/ReadOnly/Checks.tsx
index fc8ac59e375..5c73ef6ad19 100644
--- a/src/features/Acceptance/Viewer/ReadOnly/Checks.tsx
+++ b/src/features/Acceptance/Viewer/ReadOnly/Checks.tsx
@@ -1,6 +1,4 @@
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Empty, Flexbox, Icon, Select, Text } from '@lobehub/ui';
import { type Dispatch, type SetStateAction, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/ReadOnly/Discussion.tsx b/src/features/Acceptance/Viewer/ReadOnly/Discussion.tsx
index d9e0a5fbc6b..5322a3bc67d 100644
--- a/src/features/Acceptance/Viewer/ReadOnly/Discussion.tsx
+++ b/src/features/Acceptance/Viewer/ReadOnly/Discussion.tsx
@@ -1,6 +1,5 @@
import type { AcceptanceCommentItem } from '@lobechat/types';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Spin, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Button, Empty, Flexbox, Spin, Text } from '@lobehub/ui';
import { BadgeCheck, GitCommitHorizontal } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Review/AcceptanceDecision.tsx b/src/features/Acceptance/Viewer/Review/AcceptanceDecision.tsx
index e188deeb423..c28751f0c40 100644
--- a/src/features/Acceptance/Viewer/Review/AcceptanceDecision.tsx
+++ b/src/features/Acceptance/Viewer/Review/AcceptanceDecision.tsx
@@ -1,8 +1,7 @@
'use client';
import { buildAcceptanceRepairPrompt } from '@lobechat/prompts';
-import { copyToClipboard, Flexbox } from '@lobehub/ui';
-import { Button, Text, toast } from '@lobehub/ui/base-ui';
+import { Button, copyToClipboard, Flexbox, Text, toast } from '@lobehub/ui';
import dayjs from 'dayjs';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Review/CheckRejectModal.tsx b/src/features/Acceptance/Viewer/Review/CheckRejectModal.tsx
index 8d7381b1bfa..59bb8a06f7b 100644
--- a/src/features/Acceptance/Viewer/Review/CheckRejectModal.tsx
+++ b/src/features/Acceptance/Viewer/Review/CheckRejectModal.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createModal, Text } from '@lobehub/ui/base-ui';
-import { useResponsive } from 'antd-style';
+import { createModal, Flexbox, Text, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { DesktopEvidenceReview } from '../Evidence/DesktopEvidenceReview';
diff --git a/src/features/Acceptance/Viewer/Review/DecisionBar.test.ts b/src/features/Acceptance/Viewer/Review/DecisionBar.test.ts
index 15ee11476f1..ee34449fcd4 100644
--- a/src/features/Acceptance/Viewer/Review/DecisionBar.test.ts
+++ b/src/features/Acceptance/Viewer/Review/DecisionBar.test.ts
@@ -1,4 +1,4 @@
-import { ModalHost } from '@lobehub/ui/base-ui';
+import { ModalHost } from '@lobehub/ui';
import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';
import type * as I18next from 'i18next';
import { createElement } from 'react';
diff --git a/src/features/Acceptance/Viewer/Review/DecisionBar.tsx b/src/features/Acceptance/Viewer/Review/DecisionBar.tsx
index 30568dd97ca..20931388212 100644
--- a/src/features/Acceptance/Viewer/Review/DecisionBar.tsx
+++ b/src/features/Acceptance/Viewer/Review/DecisionBar.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import {
BadgeCheck,
CircleAlert,
diff --git a/src/features/Acceptance/Viewer/Review/FeedbackDrawer.tsx b/src/features/Acceptance/Viewer/Review/FeedbackDrawer.tsx
index 88ccf227202..8c2c67330a7 100644
--- a/src/features/Acceptance/Viewer/Review/FeedbackDrawer.tsx
+++ b/src/features/Acceptance/Viewer/Review/FeedbackDrawer.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AcceptanceAttachment } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Drawer, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Drawer, Flexbox, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Review/ProposalCard.tsx b/src/features/Acceptance/Viewer/Review/ProposalCard.tsx
index b3e143f49f6..0a6806ea658 100644
--- a/src/features/Acceptance/Viewer/Review/ProposalCard.tsx
+++ b/src/features/Acceptance/Viewer/Review/ProposalCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDown, ChevronRight, Sparkles } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Review/RejectFeedbackPreview.tsx b/src/features/Acceptance/Viewer/Review/RejectFeedbackPreview.tsx
index 7f82e16b1ae..3fe8704f817 100644
--- a/src/features/Acceptance/Viewer/Review/RejectFeedbackPreview.tsx
+++ b/src/features/Acceptance/Viewer/Review/RejectFeedbackPreview.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDown, ChevronUp, CircleAlert, Loader2, MessagesSquare } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Review/modals.tsx b/src/features/Acceptance/Viewer/Review/modals.tsx
index c06590990ad..e2149a9c2b4 100644
--- a/src/features/Acceptance/Viewer/Review/modals.tsx
+++ b/src/features/Acceptance/Viewer/Review/modals.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
@@ -8,8 +8,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Viewer/Review/rejectModalShell.ts b/src/features/Acceptance/Viewer/Review/rejectModalShell.ts
index d54a8643c45..0f1775c7b03 100644
--- a/src/features/Acceptance/Viewer/Review/rejectModalShell.ts
+++ b/src/features/Acceptance/Viewer/Review/rejectModalShell.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { frostedModalStyles } from './modals';
diff --git a/src/features/Acceptance/Viewer/Review/useRejectReview.test.ts b/src/features/Acceptance/Viewer/Review/useRejectReview.test.ts
index 7bdaac207f9..b1b57215437 100644
--- a/src/features/Acceptance/Viewer/Review/useRejectReview.test.ts
+++ b/src/features/Acceptance/Viewer/Review/useRejectReview.test.ts
@@ -3,7 +3,8 @@ import { describe, expect, it, vi } from 'vitest';
import { useRejectReview } from './useRejectReview';
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
useModalContext: () => ({ close: vi.fn(), setCanDismissByClickOutside: vi.fn() }),
}));
diff --git a/src/features/Acceptance/Viewer/Review/useRejectReview.ts b/src/features/Acceptance/Viewer/Review/useRejectReview.ts
index d5a3f0c992d..7c5e42a115b 100644
--- a/src/features/Acceptance/Viewer/Review/useRejectReview.ts
+++ b/src/features/Acceptance/Viewer/Review/useRejectReview.ts
@@ -2,7 +2,7 @@
import { FULL_FRAME_RECT } from '@lobechat/const/verify';
import type { AcceptanceReviewAnnotation } from '@lobechat/types';
-import { useModalContext } from '@lobehub/ui/base-ui';
+import { useModalContext } from '@lobehub/ui';
import { useEffect, useState } from 'react';
import type { PendingAttachment } from '../Evidence/attachments';
diff --git a/src/features/Acceptance/Viewer/index.tsx b/src/features/Acceptance/Viewer/index.tsx
index 128393b6566..2cf5d933a5c 100644
--- a/src/features/Acceptance/Viewer/index.tsx
+++ b/src/features/Acceptance/Viewer/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { useState } from 'react';
import { useParams } from 'react-router';
diff --git a/src/features/Acceptance/Viewer/verdict.ts b/src/features/Acceptance/Viewer/verdict.ts
index a1e22bd4de1..2667561f73b 100644
--- a/src/features/Acceptance/Viewer/verdict.ts
+++ b/src/features/Acceptance/Viewer/verdict.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type { TFunction } from 'i18next';
import {
BadgeCheck,
diff --git a/src/features/Acceptance/Workspace/AcceptanceBatchBar.tsx b/src/features/Acceptance/Workspace/AcceptanceBatchBar.tsx
index 255509c312b..b8b57bd4431 100644
--- a/src/features/Acceptance/Workspace/AcceptanceBatchBar.tsx
+++ b/src/features/Acceptance/Workspace/AcceptanceBatchBar.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, DropdownMenu } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar, DropdownMenu, Flexbox } from '@lobehub/ui';
import { CircleCheck, FolderInput, Trash2, X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Workspace/AcceptanceDeleteConfirm.tsx b/src/features/Acceptance/Workspace/AcceptanceDeleteConfirm.tsx
index 817359e5cff..c6dd938ec35 100644
--- a/src/features/Acceptance/Workspace/AcceptanceDeleteConfirm.tsx
+++ b/src/features/Acceptance/Workspace/AcceptanceDeleteConfirm.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import {
Button,
Checkbox,
@@ -9,8 +9,7 @@ import {
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Workspace/AcceptanceListPanel.tsx b/src/features/Acceptance/Workspace/AcceptanceListPanel.tsx
index ebe9e1e491c..9ec453ce41e 100644
--- a/src/features/Acceptance/Workspace/AcceptanceListPanel.tsx
+++ b/src/features/Acceptance/Workspace/AcceptanceListPanel.tsx
@@ -1,20 +1,24 @@
'use client';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import type { DraggablePanelProps, DropdownItem } from '@lobehub/ui/base-ui';
+import type { DraggablePanelProps, DropdownItem } from '@lobehub/ui';
import {
Accordion,
ActionIcon,
Button,
+ Center,
Checkbox,
+ createStaticStyles,
+ cssVar,
DraggablePanel,
DraggablePanelContainer,
DropdownMenu,
+ Empty,
+ Flexbox,
+ Icon,
Text,
toast,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { useDebounce } from 'ahooks';
-import { createStaticStyles, cssVar } from 'antd-style';
import isEqual from 'fast-deep-equal';
import {
ArrowLeft,
diff --git a/src/features/Acceptance/Workspace/AcceptanceOnboarding.tsx b/src/features/Acceptance/Workspace/AcceptanceOnboarding.tsx
index 2b358624ee5..383bee4ab73 100644
--- a/src/features/Acceptance/Workspace/AcceptanceOnboarding.tsx
+++ b/src/features/Acceptance/Workspace/AcceptanceOnboarding.tsx
@@ -1,8 +1,17 @@
'use client';
-import { CopyButton, Flexbox, Icon } from '@lobehub/ui';
-import { Button, TabsIndicator, TabsList, TabsRoot, TabsTab } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ CopyButton,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ TabsIndicator,
+ TabsList,
+ TabsRoot,
+ TabsTab,
+} from '@lobehub/ui';
import { ArrowLeft, Bot, ClipboardCheck, Terminal } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Workspace/AcceptanceProjectActions.tsx b/src/features/Acceptance/Workspace/AcceptanceProjectActions.tsx
index dd6fa4a7551..a688fb2cb35 100644
--- a/src/features/Acceptance/Workspace/AcceptanceProjectActions.tsx
+++ b/src/features/Acceptance/Workspace/AcceptanceProjectActions.tsx
@@ -1,6 +1,6 @@
'use client';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
import Icon from '@lobehub/ui/es/Icon/index';
import { Eye, Plus } from 'lucide-react';
import { useCallback } from 'react';
diff --git a/src/features/Acceptance/Workspace/AcceptanceRow.tsx b/src/features/Acceptance/Workspace/AcceptanceRow.tsx
index c85207be782..09d50c538f1 100644
--- a/src/features/Acceptance/Workspace/AcceptanceRow.tsx
+++ b/src/features/Acceptance/Workspace/AcceptanceRow.tsx
@@ -1,10 +1,18 @@
'use client';
import type { AcceptanceStatus } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { ActionIcon, Checkbox, DropdownMenu, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Center,
+ Checkbox,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ toast,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
BadgeCheck,
diff --git a/src/features/Acceptance/Workspace/EmptyDetail.tsx b/src/features/Acceptance/Workspace/EmptyDetail.tsx
index 1aff9d19e44..e50758bdf7c 100644
--- a/src/features/Acceptance/Workspace/EmptyDetail.tsx
+++ b/src/features/Acceptance/Workspace/EmptyDetail.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty } from '@lobehub/ui';
import { ScrollText } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Workspace/MergeAcceptanceModal.tsx b/src/features/Acceptance/Workspace/MergeAcceptanceModal.tsx
index 716933f7680..145bea0abe8 100644
--- a/src/features/Acceptance/Workspace/MergeAcceptanceModal.tsx
+++ b/src/features/Acceptance/Workspace/MergeAcceptanceModal.tsx
@@ -1,14 +1,7 @@
'use client';
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import {
- Button,
- createModal,
- type ModalInstance,
- Text,
- useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Empty, Flexbox, Icon } from '@lobehub/ui';
+import { Button, createModal, type ModalInstance, Text, useModalContext } from '@lobehub/ui';
import { t } from 'i18next';
import { Search, TriangleAlert } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Acceptance/Workspace/index.tsx b/src/features/Acceptance/Workspace/index.tsx
index 6a4484a1850..32567b8087a 100644
--- a/src/features/Acceptance/Workspace/index.tsx
+++ b/src/features/Acceptance/Workspace/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Drawer } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Drawer, Flexbox, Icon } from '@lobehub/ui';
import { Menu, PanelLeftOpen, Pin } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Workspace/useAcceptanceListFilterMenu.tsx b/src/features/Acceptance/Workspace/useAcceptanceListFilterMenu.tsx
index 766074f0791..5a51fb8b84a 100644
--- a/src/features/Acceptance/Workspace/useAcceptanceListFilterMenu.tsx
+++ b/src/features/Acceptance/Workspace/useAcceptanceListFilterMenu.tsx
@@ -1,7 +1,7 @@
'use client';
+import type { DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
import { Check, FolderClosed, Group, Waypoints } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Acceptance/Workspace/useAcceptanceProjectMenuItem.tsx b/src/features/Acceptance/Workspace/useAcceptanceProjectMenuItem.tsx
index 1f4de11a696..f796c7b64ea 100644
--- a/src/features/Acceptance/Workspace/useAcceptanceProjectMenuItem.tsx
+++ b/src/features/Acceptance/Workspace/useAcceptanceProjectMenuItem.tsx
@@ -1,6 +1,6 @@
'use client';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
import Icon from '@lobehub/ui/es/Icon/index';
import { Check, FolderInput, FolderMinus, FolderPlus } from 'lucide-react';
import { useState } from 'react';
diff --git a/src/features/Acceptance/Workspace/useReportPanelExpand.test.ts b/src/features/Acceptance/Workspace/useReportPanelExpand.test.ts
index 02825b2d9d8..1684ddd5f26 100644
--- a/src/features/Acceptance/Workspace/useReportPanelExpand.test.ts
+++ b/src/features/Acceptance/Workspace/useReportPanelExpand.test.ts
@@ -7,7 +7,7 @@ import { useReportPanelExpand } from './useReportPanelExpand';
const { mockUseResponsive } = vi.hoisted(() => ({ mockUseResponsive: vi.fn() }));
-vi.mock('antd-style', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = (await importOriginal()) as Record<string, unknown>;
return { ...actual, useResponsive: mockUseResponsive };
});
diff --git a/src/features/Acceptance/Workspace/useReportPanelExpand.ts b/src/features/Acceptance/Workspace/useReportPanelExpand.ts
index 1dec95c9c5f..2854bd78a4e 100644
--- a/src/features/Acceptance/Workspace/useReportPanelExpand.ts
+++ b/src/features/Acceptance/Workspace/useReportPanelExpand.ts
@@ -1,6 +1,6 @@
'use client';
-import { useResponsive } from 'antd-style';
+import { useResponsive } from '@lobehub/ui';
import { useEffect, useState } from 'react';
import { useGlobalStore } from '@/store/global';
diff --git a/src/features/AgentArtworkStudio/Content.tsx b/src/features/AgentArtworkStudio/Content.tsx
index 35bf4bd753d..3c54e090d27 100644
--- a/src/features/AgentArtworkStudio/Content.tsx
+++ b/src/features/AgentArtworkStudio/Content.tsx
@@ -2,7 +2,7 @@
import type { AgentArtworkComposition, AgentArtworkStyle } from '@lobechat/prompts';
import type { AgentProfile } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentArtworkStudio/index.tsx b/src/features/AgentArtworkStudio/index.tsx
index f46775a4713..dc9d92172bb 100644
--- a/src/features/AgentArtworkStudio/index.tsx
+++ b/src/features/AgentArtworkStudio/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import AgentArtworkStudioContent from './Content';
diff --git a/src/features/AgentBreadcrumb/index.tsx b/src/features/AgentBreadcrumb/index.tsx
index c0d8e7b5476..2df961d7f33 100644
--- a/src/features/AgentBreadcrumb/index.tsx
+++ b/src/features/AgentBreadcrumb/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Breadcrumb, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Breadcrumb, createStaticStyles, Icon, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentBuilder/AgentBuilderWelcome.tsx b/src/features/AgentBuilder/AgentBuilderWelcome.tsx
index 8dccbc60335..5f0a566f229 100644
--- a/src/features/AgentBuilder/AgentBuilderWelcome.tsx
+++ b/src/features/AgentBuilder/AgentBuilderWelcome.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox, Markdown, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentBuilder/SuggestionChips/index.tsx b/src/features/AgentBuilder/SuggestionChips/index.tsx
index f86971d32f0..651c7d3188a 100644
--- a/src/features/AgentBuilder/SuggestionChips/index.tsx
+++ b/src/features/AgentBuilder/SuggestionChips/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Block, cssVar, Flexbox, Skeleton, Text } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentBuilder/TopicSelector.test.tsx b/src/features/AgentBuilder/TopicSelector.test.tsx
index b2a55a93d05..30479517f4a 100644
--- a/src/features/AgentBuilder/TopicSelector.test.tsx
+++ b/src/features/AgentBuilder/TopicSelector.test.tsx
@@ -11,7 +11,7 @@ const useFetchTopics = vi.fn();
// Real base-ui ActionIcon only surfaces its title via a hover Tooltip, so the
// static DOM has no accessible name to query.
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
ActionIcon: ({ disabled, onClick, title }: any) => (
<button disabled={disabled} type="button" onClick={onClick}>
diff --git a/src/features/AgentBuilder/TopicSelector.tsx b/src/features/AgentBuilder/TopicSelector.tsx
index 9d6b45fb000..6fc2d9f02dd 100644
--- a/src/features/AgentBuilder/TopicSelector.tsx
+++ b/src/features/AgentBuilder/TopicSelector.tsx
@@ -1,7 +1,5 @@
import { type DropdownMenuCheckboxItem } from '@lobehub/ui';
-import { DropdownMenu, Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, DropdownMenu, Flexbox } from '@lobehub/ui';
import dayjs from 'dayjs';
import { Clock3Icon, PlusIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/AgentChannel/PlatformCard.tsx b/src/features/AgentChannel/PlatformCard.tsx
index 50ba8668326..77c7e12e6e7 100644
--- a/src/features/AgentChannel/PlatformCard.tsx
+++ b/src/features/AgentChannel/PlatformCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Tag, Text, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/PlatformDetail/Body.tsx b/src/features/AgentChannel/PlatformDetail/Body.tsx
index 28fedd4b330..c3109257e06 100644
--- a/src/features/AgentChannel/PlatformDetail/Body.tsx
+++ b/src/features/AgentChannel/PlatformDetail/Body.tsx
@@ -1,11 +1,21 @@
'use client';
import { isMaskedBotCredential } from '@lobechat/const';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import type { SelectOption } from '@lobehub/ui/base-ui';
-import { Button, confirmModal, InputNumber, Select, Switch, Tag, Text } from '@lobehub/ui/base-ui';
-import { Form, type FormInstance, useFormInstance, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import type { SelectOption } from '@lobehub/ui';
+import {
+ Block,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ InputNumber,
+ Select,
+ Switch,
+ Tag,
+ Text,
+} from '@lobehub/ui';
+import { Form, type FormInstance, useFormInstance, useWatch } from '@lobehub/ui/form';
import {
Fingerprint,
Hash,
diff --git a/src/features/AgentChannel/PlatformDetail/ComingSoon.tsx b/src/features/AgentChannel/PlatformDetail/ComingSoon.tsx
index 4566717e7d9..eeb91bad0c8 100644
--- a/src/features/AgentChannel/PlatformDetail/ComingSoon.tsx
+++ b/src/features/AgentChannel/PlatformDetail/ComingSoon.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/PlatformDetail/Footer.tsx b/src/features/AgentChannel/PlatformDetail/Footer.tsx
index 969ba68f04e..42b1d6bbbaa 100644
--- a/src/features/AgentChannel/PlatformDetail/Footer.tsx
+++ b/src/features/AgentChannel/PlatformDetail/Footer.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, Tag } from '@lobehub/ui/base-ui';
-import { type FormInstance, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Button, createStaticStyles, Flexbox, Tag } from '@lobehub/ui';
+import { type FormInstance, useWatch } from '@lobehub/ui/form';
import { RefreshCw, Trash2 } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/PlatformDetail/index.tsx b/src/features/AgentChannel/PlatformDetail/index.tsx
index 6c2780a69dc..337394c674b 100644
--- a/src/features/AgentChannel/PlatformDetail/index.tsx
+++ b/src/features/AgentChannel/PlatformDetail/index.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Button, confirmModal, createStaticStyles, Flexbox, toast } from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { ExternalLink } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/PlatformGrid.tsx b/src/features/AgentChannel/PlatformGrid.tsx
index b8c91f64b0f..5220bc594b0 100644
--- a/src/features/AgentChannel/PlatformGrid.tsx
+++ b/src/features/AgentChannel/PlatformGrid.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Avatar, createStaticStyles, responsive } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx b/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx
index bbea7fd3336..7bbe45c35ec 100644
--- a/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx
+++ b/src/features/AgentChannel/platform/imessage/CredentialExtras.tsx
@@ -2,10 +2,8 @@
import { isDesktop } from '@lobechat/const';
import type { ImessageBridgeConfig, ImessageBridgeStatus } from '@lobechat/electron-client-ipc';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Switch, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { Form, useFormInstance, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, Switch, Tag, Text, toast } from '@lobehub/ui';
+import { Form, useFormInstance, useWatch } from '@lobehub/ui/form';
import { KeyRound, Link2, Wrench } from 'lucide-react';
import { memo, use, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/platform/line/CredentialExtras.tsx b/src/features/AgentChannel/platform/line/CredentialExtras.tsx
index 42d07952326..be9f369eb54 100644
--- a/src/features/AgentChannel/platform/line/CredentialExtras.tsx
+++ b/src/features/AgentChannel/platform/line/CredentialExtras.tsx
@@ -1,8 +1,8 @@
'use client';
import { isMaskedBotCredential } from '@lobechat/const';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { useFormInstance, useWatch } from '@lobehub/ui/base-ui/form';
+import { Button, toast } from '@lobehub/ui';
+import { useFormInstance, useWatch } from '@lobehub/ui/form';
import { Download } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentChannel/platform/wechat/ConnectedInfo.tsx b/src/features/AgentChannel/platform/wechat/ConnectedInfo.tsx
index 309613d1493..f2b3a075f39 100644
--- a/src/features/AgentChannel/platform/wechat/ConnectedInfo.tsx
+++ b/src/features/AgentChannel/platform/wechat/ConnectedInfo.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Form } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import type { LucideIcon } from 'lucide-react';
import { Fingerprint, KeyRound, UserRound } from 'lucide-react';
import { memo } from 'react';
@@ -69,7 +68,7 @@ const WechatConnectedInfo = memo<WechatConnectedInfoProps>(
<div className={styles.header}>
<Flexbox gap={4}>
<div style={{ fontSize: 16, fontWeight: 600 }}>{t('channel.wechatConnectedInfo')}</div>
- <div style={{ color: 'var(--ant-color-text-secondary)', fontSize: 13 }}>
+ <div style={{ color: 'var(--lobe-color-text-secondary)', fontSize: 13 }}>
{t('channel.wechatManagedCredentials')}
</div>
</Flexbox>
diff --git a/src/features/AgentChannel/platform/wechat/QrCodeAuth.tsx b/src/features/AgentChannel/platform/wechat/QrCodeAuth.tsx
index fde7d02c56d..f6e1ce668d0 100644
--- a/src/features/AgentChannel/platform/wechat/QrCodeAuth.tsx
+++ b/src/features/AgentChannel/platform/wechat/QrCodeAuth.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Button, type ButtonProps, QRCode, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Alert,
+ Button,
+ type ButtonProps,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ QRCode,
+ Spin,
+ Text,
+} from '@lobehub/ui';
import { InfoIcon, QrCode, RefreshCw } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentPage/DocumentsEmpty/index.tsx b/src/features/AgentDocumentPage/DocumentsEmpty/index.tsx
index 49b7dd44d20..d6f0d887c87 100644
--- a/src/features/AgentDocumentPage/DocumentsEmpty/index.tsx
+++ b/src/features/AgentDocumentPage/DocumentsEmpty/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Flexbox, Icon, toast } from '@lobehub/ui';
import { FileTextIcon, PlusIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentPage/Header/index.tsx b/src/features/AgentDocumentPage/Header/index.tsx
index f1a1b5463e8..0bb0fac2b3b 100644
--- a/src/features/AgentDocumentPage/Header/index.tsx
+++ b/src/features/AgentDocumentPage/Header/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, DropdownMenu, Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { ActionIcon, cssVar, cx, DropdownMenu, Flexbox, Text } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentPage/Header/useMenu.tsx b/src/features/AgentDocumentPage/Header/useMenu.tsx
index 91a7b7cfe76..da1f29ff8c1 100644
--- a/src/features/AgentDocumentPage/Header/useMenu.tsx
+++ b/src/features/AgentDocumentPage/Header/useMenu.tsx
@@ -1,10 +1,8 @@
import { buildAgentDocumentUrl } from '@lobechat/builtin-tool-agent-documents';
import { isDesktop } from '@lobechat/const';
import { useEditor } from '@lobehub/editor/react';
-import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
-import { cssVar, useResponsive } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import { confirmModal, cssVar, Icon, toast, useResponsive } from '@lobehub/ui';
import { Download, Link2, Maximize2, Trash2 } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentPage/RightPanel/index.tsx b/src/features/AgentDocumentPage/RightPanel/index.tsx
index 07d433cc15d..25c325fba80 100644
--- a/src/features/AgentDocumentPage/RightPanel/index.tsx
+++ b/src/features/AgentDocumentPage/RightPanel/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { ChevronLeftIcon } from 'lucide-react';
import { memo, type MouseEvent } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentReader/index.tsx b/src/features/AgentDocumentReader/index.tsx
index f2faf6937ee..ab7819940bf 100644
--- a/src/features/AgentDocumentReader/index.tsx
+++ b/src/features/AgentDocumentReader/index.tsx
@@ -1,11 +1,10 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, cssVar } from '@lobehub/ui';
import ActionIcon from '@lobehub/ui/es/ActionIcon/index';
import { Center, Flexbox } from '@lobehub/ui/es/Flex/index';
import Markdown from '@lobehub/ui/es/Markdown/index';
import Text from '@lobehub/ui/es/Text/index';
-import { createStaticStyles, cssVar } from 'antd-style';
import { ArrowLeft, RefreshCw } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentsExplorer/ConvertToSkillModal.tsx b/src/features/AgentDocumentsExplorer/ConvertToSkillModal.tsx
index 967ae6a96f2..0333feaa583 100644
--- a/src/features/AgentDocumentsExplorer/ConvertToSkillModal.tsx
+++ b/src/features/AgentDocumentsExplorer/ConvertToSkillModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
+import { cssVar, Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
@@ -9,8 +9,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { Sparkles } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/AgentDocumentsExplorer/DocumentExplorerToolbar.tsx b/src/features/AgentDocumentsExplorer/DocumentExplorerToolbar.tsx
index 40c58861a4b..2673d7a089b 100644
--- a/src/features/AgentDocumentsExplorer/DocumentExplorerToolbar.tsx
+++ b/src/features/AgentDocumentsExplorer/DocumentExplorerToolbar.tsx
@@ -1,6 +1,12 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ type DropdownItem,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Text,
+} from '@lobehub/ui';
import { ArrowDownUpIcon, FilePlusIcon, FileUp, FolderPlusIcon, PlusIcon } from 'lucide-react';
import { memo, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentDocumentsExplorer/DocumentExplorerTree.test.tsx b/src/features/AgentDocumentsExplorer/DocumentExplorerTree.test.tsx
index b3728f14f81..fd0a62faac9 100644
--- a/src/features/AgentDocumentsExplorer/DocumentExplorerTree.test.tsx
+++ b/src/features/AgentDocumentsExplorer/DocumentExplorerTree.test.tsx
@@ -23,7 +23,7 @@ const modalConfirm = vi.hoisted(() => vi.fn());
const openDocumentMock = vi.hoisted(() => vi.fn());
const removeDocumentMock = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...((await importOriginal()) as Record<string, unknown>),
ActionIcon: ({
icon,
diff --git a/src/features/AgentDocumentsExplorer/DocumentExplorerTree.tsx b/src/features/AgentDocumentsExplorer/DocumentExplorerTree.tsx
index 0f84b9aac4e..cea32f60a1a 100644
--- a/src/features/AgentDocumentsExplorer/DocumentExplorerTree.tsx
+++ b/src/features/AgentDocumentsExplorer/DocumentExplorerTree.tsx
@@ -1,7 +1,6 @@
import { AGENT_DOCUMENT_CATEGORY } from '@lobechat/const';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
+import { Center, createStaticStyles, Empty, Flexbox, Icon } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles } from 'antd-style';
import {
FilePlusIcon,
FileTextIcon,
diff --git a/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.test.ts b/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.test.ts
index be3ec7f171f..5bdca678256 100644
--- a/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.test.ts
+++ b/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.test.ts
@@ -17,7 +17,7 @@ const moveDocumentsByIdMock = vi.hoisted(() => vi.fn());
const removeDocumentMock = vi.hoisted(() => vi.fn());
const confirmModalMock = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: confirmModalMock,
toast: { error: toastError, success: vi.fn() },
diff --git a/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.ts b/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.ts
index 931a52cbcc6..a28ffe35ac9 100644
--- a/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.ts
+++ b/src/features/AgentDocumentsExplorer/hooks/useDocumentTreeOps.ts
@@ -1,5 +1,5 @@
import { FileSource } from '@lobechat/types';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { nanoid } from 'nanoid';
import { useCallback, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx b/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx
index bdbfd21670b..ab01181b7cc 100644
--- a/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx
+++ b/src/features/AgentGoals/AddTaskModal/AddTaskContent.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, Text, TextArea, toast, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Input, Text, TextArea, toast, useModalContext } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/AddTaskModal/index.tsx b/src/features/AgentGoals/AddTaskModal/index.tsx
index de4105740a5..f50037e2d11 100644
--- a/src/features/AgentGoals/AddTaskModal/index.tsx
+++ b/src/features/AgentGoals/AddTaskModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import AddTaskContent, { type AddTaskContentProps } from './AddTaskContent';
diff --git a/src/features/AgentGoals/AgentGoalsPage.tsx b/src/features/AgentGoals/AgentGoalsPage.tsx
index fccdca6ba12..1debff70be4 100644
--- a/src/features/AgentGoals/AgentGoalsPage.tsx
+++ b/src/features/AgentGoals/AgentGoalsPage.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Segmented, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Segmented,
+ Text,
+} from '@lobehub/ui';
import { LayoutGridIcon, ListIcon, PlusIcon, RefreshCwIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx b/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx
index 0978139989f..8623d4fee1e 100644
--- a/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx
+++ b/src/features/AgentGoals/CreateGoalModal/CreateGoalContent.tsx
@@ -4,17 +4,19 @@ import { resolveGoalAttemptBudget } from '@lobechat/builtin-tool-goal';
import type { CreateGoalParams, GoalCriterionDraft } from '@lobechat/builtin-tool-task';
import { DEFAULT_GOAL_MAX_ROUNDS } from '@lobechat/const/verify';
import { useEditor } from '@lobehub/editor/react';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
InputNumber,
Spin,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import {
ArrowLeft,
Paperclip,
diff --git a/src/features/AgentGoals/CreateGoalModal/index.tsx b/src/features/AgentGoals/CreateGoalModal/index.tsx
index 90fc5a780fb..c5cc1f50fcc 100644
--- a/src/features/AgentGoals/CreateGoalModal/index.tsx
+++ b/src/features/AgentGoals/CreateGoalModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import CreateGoalContent, { type CreateGoalContentProps } from './CreateGoalContent';
diff --git a/src/features/AgentGoals/Experiments/Detail.tsx b/src/features/AgentGoals/Experiments/Detail.tsx
index 1861f7e1cc0..2819a3327ab 100644
--- a/src/features/AgentGoals/Experiments/Detail.tsx
+++ b/src/features/AgentGoals/Experiments/Detail.tsx
@@ -1,6 +1,5 @@
import type { GoalGraphSnapshot } from '@lobechat/types';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Accordion, Button, Tag, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Button, Flexbox, Markdown, Tag, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalAcceptanceCriteria.tsx b/src/features/AgentGoals/GoalAcceptanceCriteria.tsx
index c9acb661023..a889ddb53a2 100644
--- a/src/features/AgentGoals/GoalAcceptanceCriteria.tsx
+++ b/src/features/AgentGoals/GoalAcceptanceCriteria.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+} from '@lobehub/ui';
import { PencilIcon, PlusIcon, XIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalCardItem.tsx b/src/features/AgentGoals/GoalCardItem.tsx
index d43fee6673e..d13552e1f36 100644
--- a/src/features/AgentGoals/GoalCardItem.tsx
+++ b/src/features/AgentGoals/GoalCardItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowRightIcon } from 'lucide-react';
import type { KeyboardEvent } from 'react';
import { memo } from 'react';
diff --git a/src/features/AgentGoals/GoalChat/Toolbar.tsx b/src/features/AgentGoals/GoalChat/Toolbar.tsx
index 7d0fcf88fc0..414ca1d957a 100644
--- a/src/features/AgentGoals/GoalChat/Toolbar.tsx
+++ b/src/features/AgentGoals/GoalChat/Toolbar.tsx
@@ -1,6 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, Popover, Text } from '@lobehub/ui';
import { Clock3Icon, PanelRightCloseIcon, PlusIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalChat/index.tsx b/src/features/AgentGoals/GoalChat/index.tsx
index 9d598ec9a9f..0c9c01fdf86 100644
--- a/src/features/AgentGoals/GoalChat/index.tsx
+++ b/src/features/AgentGoals/GoalChat/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalDecision/index.tsx b/src/features/AgentGoals/GoalDecision/index.tsx
index 6f317bd7ab8..4a30d0c98d5 100644
--- a/src/features/AgentGoals/GoalDecision/index.tsx
+++ b/src/features/AgentGoals/GoalDecision/index.tsx
@@ -2,9 +2,16 @@
import { GOAL_BATCH_BREAK_OPTION } from '@lobechat/const/goal';
import type { GoalDecisionOption } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Avatar,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { MonitorCog } from 'lucide-react';
import { type ReactNode, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalDetailActions.tsx b/src/features/AgentGoals/GoalDetailActions.tsx
index 2bd51e20345..d5dbf52d862 100644
--- a/src/features/AgentGoals/GoalDetailActions.tsx
+++ b/src/features/AgentGoals/GoalDetailActions.tsx
@@ -1,11 +1,12 @@
-import { copyToClipboard, Icon } from '@lobehub/ui';
import {
ActionIcon,
confirmModal,
+ copyToClipboard,
type DropdownItem,
DropdownMenu,
+ Icon,
toast,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { CircleDashedIcon, CopyIcon, LinkIcon, MoreHorizontalIcon, TrashIcon } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalDetailPage.tsx b/src/features/AgentGoals/GoalDetailPage.tsx
index a76e01a99e5..9ff00a6d086 100644
--- a/src/features/AgentGoals/GoalDetailPage.tsx
+++ b/src/features/AgentGoals/GoalDetailPage.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Text, toast } from '@lobehub/ui';
import { PauseIcon, PlayIcon } from 'lucide-react';
import { memo, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalEmptyState.tsx b/src/features/AgentGoals/GoalEmptyState.tsx
index 42a71f369b9..e51959a49c5 100644
--- a/src/features/AgentGoals/GoalEmptyState.tsx
+++ b/src/features/AgentGoals/GoalEmptyState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import type { TargetIcon } from 'lucide-react';
import {
CalendarClockIcon,
diff --git a/src/features/AgentGoals/GoalHeaderMetrics.tsx b/src/features/AgentGoals/GoalHeaderMetrics.tsx
index 168937e171f..1634c18b0c3 100644
--- a/src/features/AgentGoals/GoalHeaderMetrics.tsx
+++ b/src/features/AgentGoals/GoalHeaderMetrics.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo, type ReactNode, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalHowItWorksModal/HowItWorksContent.tsx b/src/features/AgentGoals/GoalHowItWorksModal/HowItWorksContent.tsx
index 5833016f79d..a71c9e07634 100644
--- a/src/features/AgentGoals/GoalHowItWorksModal/HowItWorksContent.tsx
+++ b/src/features/AgentGoals/GoalHowItWorksModal/HowItWorksContent.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Steps, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Steps, Text } from '@lobehub/ui';
import { RotateCcwIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalHowItWorksModal/index.tsx b/src/features/AgentGoals/GoalHowItWorksModal/index.tsx
index 0d00be96d5e..41c59ba13c3 100644
--- a/src/features/AgentGoals/GoalHowItWorksModal/index.tsx
+++ b/src/features/AgentGoals/GoalHowItWorksModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import HowItWorksContent from './HowItWorksContent';
diff --git a/src/features/AgentGoals/GoalListItem.tsx b/src/features/AgentGoals/GoalListItem.tsx
index c175bc5c4a0..33936c31abb 100644
--- a/src/features/AgentGoals/GoalListItem.tsx
+++ b/src/features/AgentGoals/GoalListItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowRightIcon } from 'lucide-react';
import type { KeyboardEvent } from 'react';
import { memo } from 'react';
diff --git a/src/features/AgentGoals/GoalProgress.tsx b/src/features/AgentGoals/GoalProgress.tsx
index e99b37d2f75..154af3bdcdd 100644
--- a/src/features/AgentGoals/GoalProgress.tsx
+++ b/src/features/AgentGoals/GoalProgress.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalRequirement.tsx b/src/features/AgentGoals/GoalRequirement.tsx
index 82d5d0bd6e9..28a715d1912 100644
--- a/src/features/AgentGoals/GoalRequirement.tsx
+++ b/src/features/AgentGoals/GoalRequirement.tsx
@@ -1,8 +1,7 @@
'use client';
import { useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { Flexbox, toast } from '@lobehub/ui';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/GoalSupervision.tsx b/src/features/AgentGoals/GoalSupervision.tsx
index de65f55f598..ce9e045bbb2 100644
--- a/src/features/AgentGoals/GoalSupervision.tsx
+++ b/src/features/AgentGoals/GoalSupervision.tsx
@@ -1,7 +1,7 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
import { copyToClipboard, type DropdownItem, DropdownMenu, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, Text, toast } from '@lobehub/ui';
import {
CopyIcon,
ExternalLink,
diff --git a/src/features/AgentGoals/GoalSupervisorToggle.tsx b/src/features/AgentGoals/GoalSupervisorToggle.tsx
index 47e8b8b627c..17b877e5781 100644
--- a/src/features/AgentGoals/GoalSupervisorToggle.tsx
+++ b/src/features/AgentGoals/GoalSupervisorToggle.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';
import AssigneeAvatar from '@/features/AgentTasks/features/AssigneeAvatar';
diff --git a/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx b/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx
index 06c323d8746..8e94542759e 100644
--- a/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx
+++ b/src/features/AgentGoals/NorthStarMetrics/DeclareMetricModal.tsx
@@ -11,7 +11,7 @@ import {
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx b/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx
index 86608ca0ad4..82e19d95233 100644
--- a/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx
+++ b/src/features/AgentGoals/NorthStarMetrics/RecordObservationModal.tsx
@@ -9,7 +9,7 @@ import {
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/NorthStarMetrics/Sparkline.tsx b/src/features/AgentGoals/NorthStarMetrics/Sparkline.tsx
index 394e130da54..9c4e6cc7d80 100644
--- a/src/features/AgentGoals/NorthStarMetrics/Sparkline.tsx
+++ b/src/features/AgentGoals/NorthStarMetrics/Sparkline.tsx
@@ -1,6 +1,6 @@
'use client';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
/**
diff --git a/src/features/AgentGoals/NorthStarMetrics/index.tsx b/src/features/AgentGoals/NorthStarMetrics/index.tsx
index 3b1a8fbd368..888b8cc7c2a 100644
--- a/src/features/AgentGoals/NorthStarMetrics/index.tsx
+++ b/src/features/AgentGoals/NorthStarMetrics/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, Tag, Text, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { Check, Plus, Target } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/AgentGoals/ProcessControl/Activity.tsx b/src/features/AgentGoals/ProcessControl/Activity.tsx
index d8d894b5143..acd913ecf38 100644
--- a/src/features/AgentGoals/ProcessControl/Activity.tsx
+++ b/src/features/AgentGoals/ProcessControl/Activity.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Empty, Flexbox, Icon, Text } from '@lobehub/ui';
import { BotMessageSquare, ChevronRight } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/BatchGate/GateDetail.tsx b/src/features/AgentGoals/ProcessControl/BatchGate/GateDetail.tsx
index 6fbc8701b80..f592a4f2946 100644
--- a/src/features/AgentGoals/ProcessControl/BatchGate/GateDetail.tsx
+++ b/src/features/AgentGoals/ProcessControl/BatchGate/GateDetail.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { CircleCheck, CircleDashed, CircleX, GraduationCap } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/AgentGoals/ProcessControl/BatchPlan/PlanCompareModal.tsx b/src/features/AgentGoals/ProcessControl/BatchPlan/PlanCompareModal.tsx
index 2a76e57da7b..267a65e41e2 100644
--- a/src/features/AgentGoals/ProcessControl/BatchPlan/PlanCompareModal.tsx
+++ b/src/features/AgentGoals/ProcessControl/BatchPlan/PlanCompareModal.tsx
@@ -1,8 +1,15 @@
'use client';
-import { CodeDiff, Flexbox } from '@lobehub/ui';
-import { createModal, type ModalInstance, Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ CodeDiff,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ type ModalInstance,
+ Select,
+ Text,
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/BatchPlan/PlanDetail.tsx b/src/features/AgentGoals/ProcessControl/BatchPlan/PlanDetail.tsx
index c6f64b55ce8..6c2c0dde1d3 100644
--- a/src/features/AgentGoals/ProcessControl/BatchPlan/PlanDetail.tsx
+++ b/src/features/AgentGoals/ProcessControl/BatchPlan/PlanDetail.tsx
@@ -1,7 +1,5 @@
import { useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, cx, Flexbox, Text } from '@lobehub/ui';
import { PanelRightCloseIcon, PanelRightOpenIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/BatchPlan/PlanHeaderActions.tsx b/src/features/AgentGoals/ProcessControl/BatchPlan/PlanHeaderActions.tsx
index 2aa8305e2e8..a4b99402f34 100644
--- a/src/features/AgentGoals/ProcessControl/BatchPlan/PlanHeaderActions.tsx
+++ b/src/features/AgentGoals/ProcessControl/BatchPlan/PlanHeaderActions.tsx
@@ -1,8 +1,7 @@
'use client';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
import { Check, ChevronDown, GitCompareArrows } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/DeliverableReader.tsx b/src/features/AgentGoals/ProcessControl/DeliverableReader.tsx
index 5b820001e82..0f4feadfa53 100644
--- a/src/features/AgentGoals/ProcessControl/DeliverableReader.tsx
+++ b/src/features/AgentGoals/ProcessControl/DeliverableReader.tsx
@@ -1,9 +1,21 @@
'use client';
import { formatSize } from '@lobechat/utils/format';
-import { Center, Flexbox, Icon, Markdown, useAppElement } from '@lobehub/ui';
-import { ActionIcon, Button, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Markdown,
+ Skeleton,
+ Tag,
+ Text,
+ useAppElement,
+} from '@lobehub/ui';
import { ArrowLeft, ArrowRight, Download, ExternalLink, X } from 'lucide-react';
import { useEffect, useRef } from 'react';
import { createPortal } from 'react-dom';
diff --git a/src/features/AgentGoals/ProcessControl/Deliverables.tsx b/src/features/AgentGoals/ProcessControl/Deliverables.tsx
index ffe3c33d469..b8209758d48 100644
--- a/src/features/AgentGoals/ProcessControl/Deliverables.tsx
+++ b/src/features/AgentGoals/ProcessControl/Deliverables.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ExternalLink, FileDown, FileText, Link2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/Findings.tsx b/src/features/AgentGoals/ProcessControl/Findings.tsx
index 7789450cde2..b670ecf650c 100644
--- a/src/features/AgentGoals/ProcessControl/Findings.tsx
+++ b/src/features/AgentGoals/ProcessControl/Findings.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Markdown, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/Frontier.tsx b/src/features/AgentGoals/ProcessControl/Frontier.tsx
index aac33504031..fb9debb4d84 100644
--- a/src/features/AgentGoals/ProcessControl/Frontier.tsx
+++ b/src/features/AgentGoals/ProcessControl/Frontier.tsx
@@ -1,9 +1,17 @@
'use client';
import type { AcceptanceStatus } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Divider, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Block,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Divider,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { ChevronDown, ChevronRight, History, ListTodo, Plus } from 'lucide-react';
import { Fragment, memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/GoalAcceptanceHierarchy.tsx b/src/features/AgentGoals/ProcessControl/GoalAcceptanceHierarchy.tsx
index 363a89c42ea..7be36f999b2 100644
--- a/src/features/AgentGoals/ProcessControl/GoalAcceptanceHierarchy.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalAcceptanceHierarchy.tsx
@@ -1,9 +1,17 @@
'use client';
import type { VerifyCheckTally } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Text,
+} from '@lobehub/ui';
import {
BadgeCheck,
CheckCheck,
diff --git a/src/features/AgentGoals/ProcessControl/GoalCriteriaResults.tsx b/src/features/AgentGoals/ProcessControl/GoalCriteriaResults.tsx
index 4a14adeeb0c..bad2e070137 100644
--- a/src/features/AgentGoals/ProcessControl/GoalCriteriaResults.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalCriteriaResults.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, Icon, Image, Markdown } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Image,
+ Markdown,
+ Skeleton,
+ Text,
+} from '@lobehub/ui';
import {
ChevronRight,
CircleCheck,
diff --git a/src/features/AgentGoals/ProcessControl/GoalFollowUpComposer.tsx b/src/features/AgentGoals/ProcessControl/GoalFollowUpComposer.tsx
index 714022ec95e..328a01b02a5 100644
--- a/src/features/AgentGoals/ProcessControl/GoalFollowUpComposer.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalFollowUpComposer.tsx
@@ -1,7 +1,7 @@
'use client';
import { ChatInput, ChatInputActionBar, SendButton, useEditor } from '@lobehub/editor/react';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { $getRoot } from 'lexical';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/GoalResult.tsx b/src/features/AgentGoals/ProcessControl/GoalResult.tsx
index 4765e4597e8..49961e1618f 100644
--- a/src/features/AgentGoals/ProcessControl/GoalResult.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalResult.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Divider, Skeleton } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox, Markdown, Skeleton } from '@lobehub/ui';
import { useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/GoalResultFollowUps.tsx b/src/features/AgentGoals/ProcessControl/GoalResultFollowUps.tsx
index db0a4c08310..5d43ab43e86 100644
--- a/src/features/AgentGoals/ProcessControl/GoalResultFollowUps.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalResultFollowUps.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowRight, CircleSlash, Flag, MessageCircleQuestion, XCircle } from 'lucide-react';
import { type ReactNode, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/GoalResultHeader.tsx b/src/features/AgentGoals/ProcessControl/GoalResultHeader.tsx
index 6d802a997da..df57180fad5 100644
--- a/src/features/AgentGoals/ProcessControl/GoalResultHeader.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalResultHeader.tsx
@@ -1,9 +1,7 @@
'use client';
import type { GoalGraphDecision } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Spin, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Spin, Text, toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { usePermission } from '@/hooks/usePermission';
diff --git a/src/features/AgentGoals/ProcessControl/GoalResultTabs.tsx b/src/features/AgentGoals/ProcessControl/GoalResultTabs.tsx
index 753bdcaace3..026a21b1a97 100644
--- a/src/features/AgentGoals/ProcessControl/GoalResultTabs.tsx
+++ b/src/features/AgentGoals/ProcessControl/GoalResultTabs.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Flexbox, Tabs } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx b/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx
index b0806df263e..0067457fa59 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx
+++ b/src/features/AgentGoals/ProcessControl/Graph/BatchGroups.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { Handle, type NodeProps, Position } from '@xyflow/react';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import {
CircleCheck,
CircleDashed,
diff --git a/src/features/AgentGoals/ProcessControl/Graph/ExperimentGroup.tsx b/src/features/AgentGoals/ProcessControl/Graph/ExperimentGroup.tsx
index 569672f0ba0..871b84d612e 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/ExperimentGroup.tsx
+++ b/src/features/AgentGoals/ProcessControl/Graph/ExperimentGroup.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Handle, type NodeProps, Position } from '@xyflow/react';
-import { createStaticStyles, cssVar } from 'antd-style';
import { ChevronDown, FlaskConical } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/Graph/GraphNode.tsx b/src/features/AgentGoals/ProcessControl/Graph/GraphNode.tsx
index 6545a7dc479..8df4eaab372 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/GraphNode.tsx
+++ b/src/features/AgentGoals/ProcessControl/Graph/GraphNode.tsx
@@ -1,9 +1,8 @@
'use client';
import type { GoalNodeStatus } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { Handle, type NodeProps, Position } from '@xyflow/react';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import { FileBox, Info, type LucideIcon, Repeat2, ShieldCheck } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/Graph/index.tsx b/src/features/AgentGoals/ProcessControl/Graph/index.tsx
index bdecc85e5f8..2d35ee1e3a3 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/index.tsx
+++ b/src/features/AgentGoals/ProcessControl/Graph/index.tsx
@@ -4,8 +4,16 @@ import '@xyflow/react/dist/style.css';
import type { GoalGraphEdge } from '@lobechat/types';
import { experimentMembers } from '@lobechat/utils/goalGraph';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Segmented, Text } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Segmented,
+ Text,
+} from '@lobehub/ui';
import {
Background,
BackgroundVariant,
@@ -20,7 +28,6 @@ import {
ReactFlowProvider,
useReactFlow,
} from '@xyflow/react';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import { ChevronRight, DoorOpen, HandIcon, Maximize2, X } from 'lucide-react';
import { memo, type ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/Graph/mainline.test.ts b/src/features/AgentGoals/ProcessControl/Graph/mainline.test.ts
index 419d6c5b184..55cb8c713da 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/mainline.test.ts
+++ b/src/features/AgentGoals/ProcessControl/Graph/mainline.test.ts
@@ -1,5 +1,5 @@
import type { GoalReportState } from '@lobechat/types';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { describe, expect, it } from 'vitest';
import type { GoalGraphView } from '../goalGraphViewModel';
diff --git a/src/features/AgentGoals/ProcessControl/Graph/mainline.ts b/src/features/AgentGoals/ProcessControl/Graph/mainline.ts
index abbbf2e4a7d..a6ae8ce40ef 100644
--- a/src/features/AgentGoals/ProcessControl/Graph/mainline.ts
+++ b/src/features/AgentGoals/ProcessControl/Graph/mainline.ts
@@ -1,6 +1,6 @@
import type { GoalGraphNode } from '@lobechat/types';
import { experimentMembers } from '@lobechat/utils/goalGraph';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type { GoalGraphView } from '../goalGraphViewModel';
diff --git a/src/features/AgentGoals/ProcessControl/RequestChangesModal.tsx b/src/features/AgentGoals/ProcessControl/RequestChangesModal.tsx
index 03de1a9fad6..179418d50d9 100644
--- a/src/features/AgentGoals/ProcessControl/RequestChangesModal.tsx
+++ b/src/features/AgentGoals/ProcessControl/RequestChangesModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
+import { cssVar, Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
@@ -8,8 +8,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/ResultAnchorRail.tsx b/src/features/AgentGoals/ProcessControl/ResultAnchorRail.tsx
index 6f2eb4946ec..c0855baaa60 100644
--- a/src/features/AgentGoals/ProcessControl/ResultAnchorRail.tsx
+++ b/src/features/AgentGoals/ProcessControl/ResultAnchorRail.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { type RefObject } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/ResultDeliverables.tsx b/src/features/AgentGoals/ProcessControl/ResultDeliverables.tsx
index 9836a39daba..6fbe76141d3 100644
--- a/src/features/AgentGoals/ProcessControl/ResultDeliverables.tsx
+++ b/src/features/AgentGoals/ProcessControl/ResultDeliverables.tsx
@@ -1,8 +1,20 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Segmented, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ Segmented,
+ Skeleton,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { ArrowRight, PackageOpen, SearchIcon, SearchX, X } from 'lucide-react';
import { useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/ResultTrail.tsx b/src/features/AgentGoals/ProcessControl/ResultTrail.tsx
index 389183d056b..aee5ade9a48 100644
--- a/src/features/AgentGoals/ProcessControl/ResultTrail.tsx
+++ b/src/features/AgentGoals/ProcessControl/ResultTrail.tsx
@@ -1,8 +1,18 @@
'use client';
-import { Flexbox, Icon, Markdown, Tooltip } from '@lobehub/ui';
-import { Button, Skeleton, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Markdown,
+ Skeleton,
+ Spin,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import {
BookOpen,
ChevronRight,
diff --git a/src/features/AgentGoals/ProcessControl/deliverableVisuals.tsx b/src/features/AgentGoals/ProcessControl/deliverableVisuals.tsx
index cb0f3d505a8..c40801b0bac 100644
--- a/src/features/AgentGoals/ProcessControl/deliverableVisuals.tsx
+++ b/src/features/AgentGoals/ProcessControl/deliverableVisuals.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tooltip } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Tooltip } from '@lobehub/ui';
import {
CircleCheck,
CircleDashed,
diff --git a/src/features/AgentGoals/ProcessControl/index.tsx b/src/features/AgentGoals/ProcessControl/index.tsx
index 8273cf04222..52101a76bc8 100644
--- a/src/features/AgentGoals/ProcessControl/index.tsx
+++ b/src/features/AgentGoals/ProcessControl/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, type AccordionItemType, Tag, Text } from '@lobehub/ui/base-ui';
+import { Accordion, type AccordionItemType, Flexbox, Tag, Text } from '@lobehub/ui';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/ProcessControl/shared.tsx b/src/features/AgentGoals/ProcessControl/shared.tsx
index 6b39a3a2f45..e8eef611530 100644
--- a/src/features/AgentGoals/ProcessControl/shared.tsx
+++ b/src/features/AgentGoals/ProcessControl/shared.tsx
@@ -1,7 +1,5 @@
-import { Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { createStaticStyles, cssVar, Icon, Text } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar } from 'antd-style';
import {
Boxes,
CircleHelp,
diff --git a/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.test.ts b/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.test.ts
index f79b7c920bc..70d8f8c278e 100644
--- a/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.test.ts
+++ b/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.test.ts
@@ -26,7 +26,7 @@ vi.mock('react-i18next', () => ({
}),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
confirmModal: (...args: unknown[]) => mocks.confirmModal(...args),
toast: {
error: (...args: unknown[]) => mocks.toastError(...args),
diff --git a/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.ts b/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.ts
index e1ad4861965..a25fe9ca01e 100644
--- a/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.ts
+++ b/src/features/AgentGoals/ProcessControl/useAcceptanceSignOff.ts
@@ -1,4 +1,4 @@
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGoals/useGoalActions.ts b/src/features/AgentGoals/useGoalActions.ts
index 82b938392ef..e14c3a94848 100644
--- a/src/features/AgentGoals/useGoalActions.ts
+++ b/src/features/AgentGoals/useGoalActions.ts
@@ -1,4 +1,4 @@
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentGroupAvatar/index.tsx b/src/features/AgentGroupAvatar/index.tsx
index 5acad4a7604..86780794e0f 100644
--- a/src/features/AgentGroupAvatar/index.tsx
+++ b/src/features/AgentGroupAvatar/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { memo } from 'react';
import GroupAvatar from '@/features/GroupAvatar';
diff --git a/src/features/AgentHome/AgentInfo.tsx b/src/features/AgentHome/AgentInfo.tsx
index 2fa14ace887..d1be4b2c7cb 100644
--- a/src/features/AgentHome/AgentInfo.tsx
+++ b/src/features/AgentHome/AgentInfo.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Markdown, Skeleton, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentHome/OpeningQuestions.tsx b/src/features/AgentHome/OpeningQuestions.tsx
index 72ce596faaf..dd04f1e4946 100644
--- a/src/features/AgentHome/OpeningQuestions.tsx
+++ b/src/features/AgentHome/OpeningQuestions.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Block, createStaticStyles, cx, Flexbox, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentIdentityModal/Content.tsx b/src/features/AgentIdentityModal/Content.tsx
index fec35d973ca..9f48c2054c5 100644
--- a/src/features/AgentIdentityModal/Content.tsx
+++ b/src/features/AgentIdentityModal/Content.tsx
@@ -1,9 +1,7 @@
'use client';
import { randomAgentName } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Button, cssVar, Flexbox, Input, Text, useModalContext } from '@lobehub/ui';
import { DicesIcon } from 'lucide-react';
import { memo, type ReactNode, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentIdentityModal/index.tsx b/src/features/AgentIdentityModal/index.tsx
index 1690aa5d83f..c5616769a39 100644
--- a/src/features/AgentIdentityModal/index.tsx
+++ b/src/features/AgentIdentityModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import AgentIdentityContent from './Content';
diff --git a/src/features/AgentMarketSubmission/useAgentMarketSubmission.test.ts b/src/features/AgentMarketSubmission/useAgentMarketSubmission.test.ts
index 0176663843d..d44d32a0026 100644
--- a/src/features/AgentMarketSubmission/useAgentMarketSubmission.test.ts
+++ b/src/features/AgentMarketSubmission/useAgentMarketSubmission.test.ts
@@ -1,4 +1,4 @@
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -23,7 +23,7 @@ const mocks = vi.hoisted(() => ({
workspaceIdentity: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: vi.fn(() => ({ close: mocks.close, destroy: vi.fn() })),
toast: { error: vi.fn(), success: vi.fn(), warning: vi.fn() },
diff --git a/src/features/AgentMarketSubmission/useAgentMarketSubmission.ts b/src/features/AgentMarketSubmission/useAgentMarketSubmission.ts
index 7244b464273..d60dc9aade1 100644
--- a/src/features/AgentMarketSubmission/useAgentMarketSubmission.ts
+++ b/src/features/AgentMarketSubmission/useAgentMarketSubmission.ts
@@ -1,5 +1,5 @@
import { getActivePluginIds, type LobeAgentConfig } from '@lobechat/types';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentMockDevtools/CaseTrigger.tsx b/src/features/AgentMockDevtools/CaseTrigger.tsx
index 0825e12c6e5..1122b571a42 100644
--- a/src/features/AgentMockDevtools/CaseTrigger.tsx
+++ b/src/features/AgentMockDevtools/CaseTrigger.tsx
@@ -1,7 +1,13 @@
import type { MockCase } from '@lobechat/agent-mock';
-import { Flexbox, Popover, usePopoverContext } from '@lobehub/ui';
-import { Input, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Input,
+ Popover,
+ Text,
+ usePopoverContext,
+} from '@lobehub/ui';
import { ChevronDown } from 'lucide-react';
import { memo, type ReactNode, useMemo, useState } from 'react';
diff --git a/src/features/AgentMockDevtools/Controls.tsx b/src/features/AgentMockDevtools/Controls.tsx
index 3de6f2b4830..6e861641152 100644
--- a/src/features/AgentMockDevtools/Controls.tsx
+++ b/src/features/AgentMockDevtools/Controls.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, toast } from '@lobehub/ui';
import { Pause, Play, Repeat, RotateCcw, SkipForward, Square } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/AgentMockDevtools/index.tsx b/src/features/AgentMockDevtools/index.tsx
index e7f929faf0e..75f6525744b 100644
--- a/src/features/AgentMockDevtools/index.tsx
+++ b/src/features/AgentMockDevtools/index.tsx
@@ -1,5 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useMatches } from 'react-router';
diff --git a/src/features/AgentPermission/PermissionForm.tsx b/src/features/AgentPermission/PermissionForm.tsx
index baa3ebb7754..8a0e0e0415c 100644
--- a/src/features/AgentPermission/PermissionForm.tsx
+++ b/src/features/AgentPermission/PermissionForm.tsx
@@ -1,10 +1,8 @@
'use client';
import type { AgentModelSelectionPolicy, AgentTopicSharePolicy } from '@lobechat/types';
-import { Empty, Icon } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Alert, createStaticStyles, Empty, Icon } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { Bot, InfoIcon, LockIcon, MonitorSmartphone, Share2, UsersIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentProfileArtwork/index.tsx b/src/features/AgentProfileArtwork/index.tsx
index ec9c0ea9c55..eaf8a81b1ff 100644
--- a/src/features/AgentProfileArtwork/index.tsx
+++ b/src/features/AgentProfileArtwork/index.tsx
@@ -5,7 +5,7 @@ import {
type AgentArtworkStyle,
DEFAULT_AGENT_ARTWORK_STYLE,
} from '@lobechat/prompts';
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { Center, createStaticStyles, cssVar, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
ActionIcon,
Avatar,
@@ -15,8 +15,7 @@ import {
Spin,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { Check, ImageIcon, MoreHorizontal, Trash2, UploadIcon, WandSparkles } from 'lucide-react';
import { memo, useCallback, useId, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentProfileCard/AgentProfilePopup.tsx b/src/features/AgentProfileCard/AgentProfilePopup.tsx
index cf496dc9d57..dbaecd130ea 100644
--- a/src/features/AgentProfileCard/AgentProfilePopup.tsx
+++ b/src/features/AgentProfileCard/AgentProfilePopup.tsx
@@ -1,10 +1,16 @@
'use client';
import { agentDisplayName, type AgentItem } from '@lobechat/types';
-import { Flexbox, Icon, Popover } from '@lobehub/ui';
-import { ActionIcon, Skeleton, Text } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Popover,
+ Skeleton,
+ Text,
+} from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles } from 'antd-style';
import { BookOpen, FileText, Settings, SquareTerminal } from 'lucide-react';
import { memo, type PropsWithChildren, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentProfileCard/index.tsx b/src/features/AgentProfileCard/index.tsx
index c63d63c15ed..3cfaca1364e 100644
--- a/src/features/AgentProfileCard/index.tsx
+++ b/src/features/AgentProfileCard/index.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Center, Flexbox, Tooltip } from '@lobehub/ui';
-import { Avatar, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Avatar,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Skeleton,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { DEFAULT_AVATAR } from '@/const/meta';
diff --git a/src/features/AgentProfileTabs/index.tsx b/src/features/AgentProfileTabs/index.tsx
index 63ef1ec7267..9510df1dc0d 100644
--- a/src/features/AgentProfileTabs/index.tsx
+++ b/src/features/AgentProfileTabs/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Segmented } from '@lobehub/ui/base-ui';
+import { Segmented } from '@lobehub/ui';
import { type CSSProperties, memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentQuotaCalendar/QuotaCalendarModal.tsx b/src/features/AgentQuotaCalendar/QuotaCalendarModal.tsx
index e6d8dd04616..a638d1c6f83 100644
--- a/src/features/AgentQuotaCalendar/QuotaCalendarModal.tsx
+++ b/src/features/AgentQuotaCalendar/QuotaCalendarModal.tsx
@@ -2,7 +2,7 @@
import type { QuotaLimitReading } from '@lobechat/heterogeneous-agents/quota';
import { projectWindows } from '@lobechat/heterogeneous-agents/quota';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
ActionIcon,
createModal,
@@ -10,8 +10,7 @@ import {
Segmented,
Skeleton,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import type { TFunction } from 'i18next';
import { t as i18nT } from 'i18next';
diff --git a/src/features/AgentSetting/AgentChannel/feishu/UserIdExtras.tsx b/src/features/AgentSetting/AgentChannel/feishu/UserIdExtras.tsx
index 7c777de6bea..0a72aec4567 100644
--- a/src/features/AgentSetting/AgentChannel/feishu/UserIdExtras.tsx
+++ b/src/features/AgentSetting/AgentChannel/feishu/UserIdExtras.tsx
@@ -1,8 +1,8 @@
'use client';
import { isMaskedBotCredential } from '@lobechat/const';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { useFormInstance, useWatch } from '@lobehub/ui/base-ui/form';
+import { Button, toast } from '@lobehub/ui';
+import { useFormInstance, useWatch } from '@lobehub/ui/form';
import { Download } from 'lucide-react';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSetting/AgentConnectors/index.tsx b/src/features/AgentSetting/AgentConnectors/index.tsx
index 74825cce371..f15ee4688da 100644
--- a/src/features/AgentSetting/AgentConnectors/index.tsx
+++ b/src/features/AgentSetting/AgentConnectors/index.tsx
@@ -1,5 +1,5 @@
import { getActivePluginIds } from '@lobechat/types';
-import { Switch } from '@lobehub/ui/base-ui';
+import { Switch } from '@lobehub/ui';
import { LinkIcon } from 'lucide-react';
import { memo, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSetting/AgentGraphRuntime/index.tsx b/src/features/AgentSetting/AgentGraphRuntime/index.tsx
index adb1ca8fe32..167981205fa 100644
--- a/src/features/AgentSetting/AgentGraphRuntime/index.tsx
+++ b/src/features/AgentSetting/AgentGraphRuntime/index.tsx
@@ -2,9 +2,7 @@
import type { AgentGraph, LobeAgentChatConfig } from '@lobechat/types';
import { AgentGraphSchema } from '@lobechat/types/agent/graph';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, Switch, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Alert, Button, createStaticStyles, cssVar, Flexbox, Switch, TextArea } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx b/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx
index 6169fff5d0c..7d914b976bd 100644
--- a/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx
+++ b/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, Flexbox } from '@lobehub/ui';
import { EditableMessage } from '@lobehub/ui/chat';
-import { createStaticStyles } from 'antd-style';
import { PencilLine } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx b/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx
index 921695cda72..423bc46e46c 100644
--- a/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx
+++ b/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Empty, Flexbox, SortableList } from '@lobehub/ui';
-import { ActionIcon, Button, Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Input,
+ SortableList,
+} from '@lobehub/ui';
import { MessageCircle, PlusIcon, Trash } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSetting/AgentOpening/index.tsx b/src/features/AgentSetting/AgentOpening/index.tsx
index 6af192eaded..02dd35a2c65 100644
--- a/src/features/AgentSetting/AgentOpening/index.tsx
+++ b/src/features/AgentSetting/AgentOpening/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Form, useForm } from '@lobehub/ui/form';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSetting/SettingsModalLayout.tsx b/src/features/AgentSetting/SettingsModalLayout.tsx
index ec175b0b9b1..c3ba2d36275 100644
--- a/src/features/AgentSetting/SettingsModalLayout.tsx
+++ b/src/features/AgentSetting/SettingsModalLayout.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar, Tabs, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Tabs,
+ Text,
+ useModalContext,
+} from '@lobehub/ui';
import { type LucideIcon, XIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Body.tsx b/src/features/AgentSidebar/Body.tsx
index a041b74b0c4..8b1b8b43857 100644
--- a/src/features/AgentSidebar/Body.tsx
+++ b/src/features/AgentSidebar/Body.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import React, { memo, useCallback, useMemo } from 'react';
import { useAgentStore } from '@/store/agent';
diff --git a/src/features/AgentSidebar/Task/StatusGroup.tsx b/src/features/AgentSidebar/Task/StatusGroup.tsx
index a03058c946d..570eee205de 100644
--- a/src/features/AgentSidebar/Task/StatusGroup.tsx
+++ b/src/features/AgentSidebar/Task/StatusGroup.tsx
@@ -1,14 +1,16 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Center,
+ cssVar,
+ Flexbox,
+ Icon,
Text,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Task/TaskItem.tsx b/src/features/AgentSidebar/Task/TaskItem.tsx
index 966ae30b49f..cd0733d9453 100644
--- a/src/features/AgentSidebar/Task/TaskItem.tsx
+++ b/src/features/AgentSidebar/Task/TaskItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import { useNavigateToTaskDetail } from '@/features/AgentTasks/shared/taskDetailPath';
diff --git a/src/features/AgentSidebar/Task/index.tsx b/src/features/AgentSidebar/Task/index.tsx
index 125ae34db7b..e0efd224603 100644
--- a/src/features/AgentSidebar/Task/index.tsx
+++ b/src/features/AgentSidebar/Task/index.tsx
@@ -1,6 +1,5 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -9,9 +8,10 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ cx,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo, type MouseEvent, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Topic/Actions.tsx b/src/features/AgentSidebar/Topic/Actions.tsx
index 654faf3fa53..93feab8fe3c 100644
--- a/src/features/AgentSidebar/Topic/Actions.tsx
+++ b/src/features/AgentSidebar/Topic/Actions.tsx
@@ -1,5 +1,4 @@
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/AgentSidebar/Topic/Filter.tsx b/src/features/AgentSidebar/Topic/Filter.tsx
index 25010ce02c5..455c18c790e 100644
--- a/src/features/AgentSidebar/Topic/Filter.tsx
+++ b/src/features/AgentSidebar/Topic/Filter.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, DropdownMenu } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { ListFilter } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentSidebar/Topic/List/Item/Actions.tsx b/src/features/AgentSidebar/Topic/List/Item/Actions.tsx
index e21965e50b3..b70d4a2f81e 100644
--- a/src/features/AgentSidebar/Topic/List/Item/Actions.tsx
+++ b/src/features/AgentSidebar/Topic/List/Item/Actions.tsx
@@ -1,5 +1,4 @@
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentSidebar/Topic/List/Item/ContextMenu.tsx b/src/features/AgentSidebar/Topic/List/Item/ContextMenu.tsx
index cd50be72b66..418109d7282 100644
--- a/src/features/AgentSidebar/Topic/List/Item/ContextMenu.tsx
+++ b/src/features/AgentSidebar/Topic/List/Item/ContextMenu.tsx
@@ -1,4 +1,4 @@
-import { ContextMenuTrigger } from '@lobehub/ui/base-ui';
+import { ContextMenuTrigger } from '@lobehub/ui';
import { memo, type PropsWithChildren, useCallback, useEffect, useRef } from 'react';
import { type TopicItemDropdownMenuProps, useTopicItemDropdownMenu } from './useDropdownMenu';
diff --git a/src/features/AgentSidebar/Topic/List/Item/MetaHoverCard.tsx b/src/features/AgentSidebar/Topic/List/Item/MetaHoverCard.tsx
index e8a3081d77c..3d9845a23d7 100644
--- a/src/features/AgentSidebar/Topic/List/Item/MetaHoverCard.tsx
+++ b/src/features/AgentSidebar/Topic/List/Item/MetaHoverCard.tsx
@@ -1,6 +1,5 @@
import type { ChatTopicMetadata } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import type { Clock } from 'lucide-react';
import { GitBranchIcon, GitForkIcon } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/src/features/AgentSidebar/Topic/List/Item/index.tsx b/src/features/AgentSidebar/Topic/List/Item/index.tsx
index c8382696d43..3a71501f2ec 100644
--- a/src/features/AgentSidebar/Topic/List/Item/index.tsx
+++ b/src/features/AgentSidebar/Topic/List/Item/index.tsx
@@ -5,9 +5,18 @@ import {
getTopicMetadataWorkingDirectoryEffectivePath,
getTopicMetadataWorkingDirectorySourcePath,
} from '@lobechat/utils/client/topic';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useTheme } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Popover,
+ Skeleton,
+ Tag,
+ Text,
+ Tooltip,
+ useTheme,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import isEqual from 'fast-deep-equal';
import { MessageSquareDashed } from 'lucide-react';
diff --git a/src/features/AgentSidebar/Topic/List/Item/metaCardData.ts b/src/features/AgentSidebar/Topic/List/Item/metaCardData.ts
index 08bca4a76bf..cf13ad1da43 100644
--- a/src/features/AgentSidebar/Topic/List/Item/metaCardData.ts
+++ b/src/features/AgentSidebar/Topic/List/Item/metaCardData.ts
@@ -7,7 +7,7 @@ import {
getTopicMetadataWorkingDirectoryEffectivePath,
getTopicMetadataWorkingDirectorySourcePath,
} from '@lobechat/utils/client/topic';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
CircleCheck,
diff --git a/src/features/AgentSidebar/Topic/List/Item/useDropdownMenu.tsx b/src/features/AgentSidebar/Topic/List/Item/useDropdownMenu.tsx
index df6ea763b11..2f43798f058 100644
--- a/src/features/AgentSidebar/Topic/List/Item/useDropdownMenu.tsx
+++ b/src/features/AgentSidebar/Topic/List/Item/useDropdownMenu.tsx
@@ -1,8 +1,7 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import type { ChatTopicStatus } from '@lobechat/types';
-import { type MenuProps } from '@lobehub/ui';
-import { copyToClipboard, Icon } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { copyToClipboard, Icon, toast } from '@lobehub/ui';
import {
Archive,
ArchiveRestore,
@@ -346,7 +345,7 @@ export const useTopicItemDropdownMenu = ({
},
sfSymbol: 'trash',
},
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
routeTopicId,
scope,
diff --git a/src/features/AgentSidebar/Topic/List/TopicListSkeleton.tsx b/src/features/AgentSidebar/Topic/List/TopicListSkeleton.tsx
index 41af5848dac..e7bede3a302 100644
--- a/src/features/AgentSidebar/Topic/List/TopicListSkeleton.tsx
+++ b/src/features/AgentSidebar/Topic/List/TopicListSkeleton.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
// Mirrors the grouped topic list frame (12px group caption + icon-led 36px
diff --git a/src/features/AgentSidebar/Topic/ToggleGroups.tsx b/src/features/AgentSidebar/Topic/ToggleGroups.tsx
index f6d9ff70e43..d9750737467 100644
--- a/src/features/AgentSidebar/Topic/ToggleGroups.tsx
+++ b/src/features/AgentSidebar/Topic/ToggleGroups.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Maximize2, Minimize2 } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.test.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.test.tsx
index e351b9e64f9..b4169f30ecc 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.test.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.test.tsx
@@ -1,7 +1,7 @@
/**
* @vitest-environment happy-dom
*/
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot } from '@lobehub/ui';
import { render, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
@@ -26,7 +26,7 @@ vi.mock('../../List/Item', () => ({
),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.tsx
index fb501dd0753..42432828cfe 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByAgentMode/GroupItem.tsx
@@ -1,14 +1,16 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.test.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.test.tsx
index b09e96360fa..fd7d4e892d7 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.test.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.test.tsx
@@ -1,7 +1,7 @@
/**
* @vitest-environment happy-dom
*/
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot } from '@lobehub/ui';
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -96,7 +96,7 @@ vi.mock('react-router', () => ({
useParams: () => routeParamsMock,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.tsx
index 511bbb50838..d6abbf73313 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/GroupItem.tsx
@@ -1,5 +1,4 @@
import { AGENT_CHAT_URL } from '@lobechat/const';
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -7,12 +6,18 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
type DropdownItem,
DropdownMenu,
+ Flexbox,
+ Icon,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+ Tooltip,
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import {
Archive,
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/ProjectTopicList.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/ProjectTopicList.tsx
index a8cb6231e86..d2de7e3db37 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/ProjectTopicList.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByProjectMode/ProjectTopicList.tsx
@@ -1,4 +1,3 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -7,9 +6,13 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ Center,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
Text,
-} from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { LaptopIcon, PlusIcon } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByStatusMode/GroupItem.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByStatusMode/GroupItem.tsx
index c0c3b12e232..21eb86d315a 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByStatusMode/GroupItem.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByStatusMode/GroupItem.tsx
@@ -1,11 +1,13 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Center,
+ Flexbox,
+ Icon,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx
index c106c7cfe23..c119ef5dd8a 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx
@@ -1,11 +1,11 @@
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/GroupedAccordion.tsx b/src/features/AgentSidebar/Topic/TopicListContent/GroupedAccordion.tsx
index 358da6f8b6d..4f0b199f13b 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/GroupedAccordion.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/GroupedAccordion.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { MoreHorizontal } from 'lucide-react';
import { type ComponentType, memo, useEffect, useMemo, useRef } from 'react';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/SearchResult/index.tsx b/src/features/AgentSidebar/Topic/TopicListContent/SearchResult/index.tsx
index 84d9410c6cc..812dd82af42 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/SearchResult/index.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/SearchResult/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Center, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx
index 73bca2db2fb..be1dce25cf0 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx
@@ -1,6 +1,5 @@
import type { DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx b/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx
index 6e589b1b533..6917637ccd0 100644
--- a/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx
+++ b/src/features/AgentSidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx
@@ -1,6 +1,5 @@
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon } from '@lobehub/ui';
import { PanelRight, PencilLine, Trash } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
@@ -19,7 +18,7 @@ export const useThreadItemDropdownMenu = ({
id,
sourceMessageId,
title,
-}: ThreadItemDropdownMenuProps): (() => MenuProps['items']) => {
+}: ThreadItemDropdownMenuProps): (() => DropdownItem[]) => {
const { t } = useTranslation(['thread', 'common']);
const { allowed: canEditThread } = usePermission('edit_own_content');
@@ -78,7 +77,7 @@ export const useThreadItemDropdownMenu = ({
},
sfSymbol: 'trash',
},
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
id,
sourceMessageId,
diff --git a/src/features/AgentSidebar/Topic/index.tsx b/src/features/AgentSidebar/Topic/index.tsx
index def2eb4dcd3..82d184812fd 100644
--- a/src/features/AgentSidebar/Topic/index.tsx
+++ b/src/features/AgentSidebar/Topic/index.tsx
@@ -1,17 +1,18 @@
'use client';
-import { ContextMenuTrigger, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
accordionStyles,
AccordionTrigger,
+ ContextMenuTrigger,
+ cx,
+ Flexbox,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { useDocumentVisibility } from 'ahooks';
-import { cx } from 'antd-style';
import React, { memo, Suspense, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSidebar/Topic/useAddFolderMenuItem.tsx b/src/features/AgentSidebar/Topic/useAddFolderMenuItem.tsx
index e26e9f4e84d..478d16405d7 100644
--- a/src/features/AgentSidebar/Topic/useAddFolderMenuItem.tsx
+++ b/src/features/AgentSidebar/Topic/useAddFolderMenuItem.tsx
@@ -1,6 +1,5 @@
import { AGENT_CHAT_URL, isDesktop } from '@lobechat/const';
-import { Icon, type MenuProps } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem, Icon, toast } from '@lobehub/ui';
import { FolderPlusIcon } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -22,8 +21,6 @@ import { useElectronStore } from '@/store/electron';
import { buildPrefixedAgentRoutePath, parseAgentPathname } from '../utils/agentPathname';
-type MenuItem = NonNullable<MenuProps['items']>[number];
-
/**
* Topics menu action for heterogeneous agents: pick (or create) a folder on
* the agent's target device and open a new conversation in it — the menu
@@ -33,7 +30,7 @@ type MenuItem = NonNullable<MenuProps['items']>[number];
*
* Only heterogeneous (CLI) agents work inside folders, so others get `null`.
*/
-export const useAddFolderMenuItem = (): MenuItem | null => {
+export const useAddFolderMenuItem = (): DropdownItem | null => {
const { t } = useTranslation('device');
const agentId = useAgentStore((s) => s.activeAgentId) ?? '';
const isHeterogeneous = !!useAgentStore(agentSelectors.currentAgentHeterogeneousProviderType);
diff --git a/src/features/AgentSidebar/Topic/useDropdownMenu.test.tsx b/src/features/AgentSidebar/Topic/useDropdownMenu.test.tsx
index 99b3fd0788b..d39eebd2f6f 100644
--- a/src/features/AgentSidebar/Topic/useDropdownMenu.test.tsx
+++ b/src/features/AgentSidebar/Topic/useDropdownMenu.test.tsx
@@ -49,7 +49,7 @@ vi.mock('@/store/user', () => ({
useUserStore: () => userMock.currentUserId,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: confirmModalMock,
toast: messageMock,
diff --git a/src/features/AgentSidebar/Topic/useDropdownMenu.tsx b/src/features/AgentSidebar/Topic/useDropdownMenu.tsx
index 8facfcb91a6..721b82b114a 100644
--- a/src/features/AgentSidebar/Topic/useDropdownMenu.tsx
+++ b/src/features/AgentSidebar/Topic/useDropdownMenu.tsx
@@ -1,8 +1,5 @@
import { isDesktop } from '@lobechat/const';
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast, Upload } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { confirmModal, css, cx, type DropdownItem, Icon, toast, Upload } from '@lobehub/ui';
import { Archive, HardDriveDownload, Hash, Import, LucideCheck, Trash } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
@@ -39,7 +36,7 @@ type TopicMaintenanceScope = 'own' | 'workspace';
export const useTopicActionsDropdownMenu = (
options: UseTopicActionsDropdownMenuOptions = {},
-): (() => MenuProps['items']) => {
+): (() => DropdownItem[]) => {
const { t } = useTranslation(['topic', 'common']);
const { onUploadClose } = options;
const activeWorkspaceId = useActiveWorkspaceId();
@@ -112,7 +109,7 @@ export const useTopicActionsDropdownMenu = (
const enableHeteroSessionImport = useUserStore(labPreferSelectors.enableHeteroSessionImport);
const addFolderItem = useAddFolderMenuItem();
- return useCallback((): MenuProps['items'] => {
+ return useCallback((): DropdownItem[] => {
const pageSizeOptions = [20, 40, 60, 100];
const pageSizeItems = pageSizeOptions.map((size) => ({
icon: topicPageSize === size ? <Icon icon={LucideCheck} /> : <div />,
@@ -233,7 +230,7 @@ export const useTopicActionsDropdownMenu = (
},
]
: []),
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
addFolderItem,
topicPageSize,
diff --git a/src/features/AgentSidebar/Topic/useFilterMenu.tsx b/src/features/AgentSidebar/Topic/useFilterMenu.tsx
index 890fd21feb4..832572028ce 100644
--- a/src/features/AgentSidebar/Topic/useFilterMenu.tsx
+++ b/src/features/AgentSidebar/Topic/useFilterMenu.tsx
@@ -1,5 +1,5 @@
+import type { DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
import { LucideCheck } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSkillDetail/ContentViewer.tsx b/src/features/AgentSkillDetail/ContentViewer.tsx
index aaa83025c88..467a2eefb33 100644
--- a/src/features/AgentSkillDetail/ContentViewer.tsx
+++ b/src/features/AgentSkillDetail/ContentViewer.tsx
@@ -1,8 +1,7 @@
'use client';
import { type SkillItem } from '@lobechat/types';
-import { CopyButton, Highlighter, Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { CopyButton, createStaticStyles, Highlighter, Markdown } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/AgentSkillDetail/index.tsx b/src/features/AgentSkillDetail/index.tsx
index 8efd94e3edf..3da90e4445a 100644
--- a/src/features/AgentSkillDetail/index.tsx
+++ b/src/features/AgentSkillDetail/index.tsx
@@ -2,9 +2,7 @@
import { type SkillResourceTreeNode } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { DotIcon, ExternalLinkIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSkillEdit/SkillEditForm.tsx b/src/features/AgentSkillEdit/SkillEditForm.tsx
index 411570763d9..3b41b5a897c 100644
--- a/src/features/AgentSkillEdit/SkillEditForm.tsx
+++ b/src/features/AgentSkillEdit/SkillEditForm.tsx
@@ -10,9 +10,8 @@ import {
ReactTablePlugin,
} from '@lobehub/editor';
import { Editor, useEditor } from '@lobehub/editor/react';
-import { Input, TextArea } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, type FormInstance } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Input, TextArea } from '@lobehub/ui';
+import { Form, type FormFieldProps, type FormInstance } from '@lobehub/ui/form';
import { memo, useCallback, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSkillEdit/index.tsx b/src/features/AgentSkillEdit/index.tsx
index 455813f4085..a670947a22f 100644
--- a/src/features/AgentSkillEdit/index.tsx
+++ b/src/features/AgentSkillEdit/index.tsx
@@ -3,10 +3,16 @@
import { isDesktop } from '@lobechat/const';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
import { type SkillResourceTreeNode } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, confirmModal, Drawer, toast } from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import {
+ Alert,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ Drawer,
+ Flexbox,
+ toast,
+} from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSkillStore/Content.tsx b/src/features/AgentSkillStore/Content.tsx
index ab5b488528c..69901d1afb5 100644
--- a/src/features/AgentSkillStore/Content.tsx
+++ b/src/features/AgentSkillStore/Content.tsx
@@ -1,8 +1,7 @@
'use client';
import { COMPOSIO_APP_TYPES } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSkillStore/Item.tsx b/src/features/AgentSkillStore/Item.tsx
index a12fbb564b4..af5d0e038a4 100644
--- a/src/features/AgentSkillStore/Item.tsx
+++ b/src/features/AgentSkillStore/Item.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Block, DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, confirmModal } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ confirmModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+} from '@lobehub/ui';
import { Loader2, MoreVerticalIcon, Plus, Unplug } from 'lucide-react';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentSkillStore/index.tsx b/src/features/AgentSkillStore/index.tsx
index 7b265b986a0..81df274382b 100644
--- a/src/features/AgentSkillStore/index.tsx
+++ b/src/features/AgentSkillStore/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import AgentSkillStoreContent from './Content';
diff --git a/src/features/AgentTaskManager/AgentSelectorAction.tsx b/src/features/AgentTaskManager/AgentSelectorAction.tsx
index fc8feb76313..8d7db6de7b2 100644
--- a/src/features/AgentTaskManager/AgentSelectorAction.tsx
+++ b/src/features/AgentTaskManager/AgentSelectorAction.tsx
@@ -1,6 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Center, Flexbox, Popover } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Center, createStaticStyles, cx, Flexbox, Popover } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ChevronsUpDownIcon } from 'lucide-react';
import { memo, Suspense, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/AgentTaskManager/Conversation.tsx b/src/features/AgentTaskManager/Conversation.tsx
index 477767483db..873e3a697f6 100644
--- a/src/features/AgentTaskManager/Conversation.tsx
+++ b/src/features/AgentTaskManager/Conversation.tsx
@@ -1,8 +1,7 @@
'use client';
import { isChatGroupSessionId } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTaskManager/Toolbar.tsx b/src/features/AgentTaskManager/Toolbar.tsx
index 6b17dfad180..ab71c657872 100644
--- a/src/features/AgentTaskManager/Toolbar.tsx
+++ b/src/features/AgentTaskManager/Toolbar.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Popover } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, Popover, Text } from '@lobehub/ui';
import { Clock3Icon, PanelRightCloseIcon, PlusIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx b/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx
index 0c854856f6e..ae673bcfeb6 100644
--- a/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx
@@ -2,8 +2,7 @@ import type { TaskDetailActivity } from '@lobechat/types';
import { useEditor } from '@lobehub/editor/react';
import { LexicalRenderer } from '@lobehub/editor/renderer';
import { Block, type DropdownItem, DropdownMenu, Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, confirmModal, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Avatar, Button, confirmModal, cssVar, Text } from '@lobehub/ui';
import { MessageCircle, MoreHorizontal, Pencil, Trash } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsx b/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsx
index 3a3e025c58b..9cca6bce90a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsx
@@ -1,6 +1,5 @@
import { SendButton, useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox } from '@lobehub/ui';
import { $getRoot } from 'lexical';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/GoalRoundPopover.tsx b/src/features/AgentTasks/AgentTaskDetail/GoalRoundPopover.tsx
index de9ae45a10b..536bbce6474 100644
--- a/src/features/AgentTasks/AgentTaskDetail/GoalRoundPopover.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/GoalRoundPopover.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Popover, Text } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/GoalRoundTimeline.tsx b/src/features/AgentTasks/AgentTaskDetail/GoalRoundTimeline.tsx
index a67ac74b17f..ceebd59b2ed 100644
--- a/src/features/AgentTasks/AgentTaskDetail/GoalRoundTimeline.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/GoalRoundTimeline.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/HeterogeneousTaskConfig.tsx b/src/features/AgentTasks/AgentTaskDetail/HeterogeneousTaskConfig.tsx
index 49a97bd45b5..53bd1f5e510 100644
--- a/src/features/AgentTasks/AgentTaskDetail/HeterogeneousTaskConfig.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/HeterogeneousTaskConfig.tsx
@@ -1,6 +1,5 @@
import type { HeterogeneousRuntimeConfigField } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Popover, Tag, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Popover, Tag, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
/** The assignee and resource-scoped pin whose effective configuration is being inspected. */
diff --git a/src/features/AgentTasks/AgentTaskDetail/PendingAcceptanceCheckList.tsx b/src/features/AgentTasks/AgentTaskDetail/PendingAcceptanceCheckList.tsx
index ac20dae9d24..52b595ca406 100644
--- a/src/features/AgentTasks/AgentTaskDetail/PendingAcceptanceCheckList.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/PendingAcceptanceCheckList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { CircleDashed } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskDetail/RunReplyEditor.tsx b/src/features/AgentTasks/AgentTaskDetail/RunReplyEditor.tsx
index fcd6ba09894..796864823e6 100644
--- a/src/features/AgentTasks/AgentTaskDetail/RunReplyEditor.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/RunReplyEditor.tsx
@@ -1,7 +1,5 @@
import { ChatInput, Editor, SendButton, useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox } from '@lobehub/ui';
import { ChevronLeft } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/RunSubtasksPreview.tsx b/src/features/AgentTasks/AgentTaskDetail/RunSubtasksPreview.tsx
index ecc43609179..e2244f00226 100644
--- a/src/features/AgentTasks/AgentTaskDetail/RunSubtasksPreview.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/RunSubtasksPreview.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/RunVerifyDetail.tsx b/src/features/AgentTasks/AgentTaskDetail/RunVerifyDetail.tsx
index 14a4cba5118..ca128e30105 100644
--- a/src/features/AgentTasks/AgentTaskDetail/RunVerifyDetail.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/RunVerifyDetail.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Check, ChevronDown, ChevronRight, CircleDashed, X } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/RunVerifyTag.tsx b/src/features/AgentTasks/AgentTaskDetail/RunVerifyTag.tsx
index 6b659e18b14..fcf578c08c1 100644
--- a/src/features/AgentTasks/AgentTaskDetail/RunVerifyTag.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/RunVerifyTag.tsx
@@ -1,9 +1,7 @@
'use client';
import type { TaskRunVerifySummary } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Tag } from '@lobehub/ui';
import { CircleCheck, CircleDashed, CircleX, Loader2, TriangleAlert } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.test.tsx
index 20e2282eee3..d7ff1f2e544 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.test.tsx
@@ -42,7 +42,7 @@ const mocks = vi.hoisted(() => ({
// Real base-ui ActionIcon only surfaces its title via a hover Tooltip; the
// assertions click the title text directly.
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
<button type="button" onClick={onClick}>
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.tsx
index 552af7c88b6..8b2ff69a81d 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptance.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Collapsible, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ Collapsible,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Spin,
+ Text,
+} from '@lobehub/ui';
import {
ChevronRight,
ChevronsDownUp,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceHeader.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceHeader.tsx
index d43a063d368..30b50e82ea6 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceHeader.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceHeader.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { ShieldCheck } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx
index c7092f8c6b4..2ba86a69d2a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon, Text } from '@lobehub/ui';
import {
AlertTriangle,
CheckCheck,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx
index 9617a095217..0b7cec719d5 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx
@@ -4,9 +4,7 @@ import type {
TaskDetailActivity,
TaskDetailActivityAuthor,
} from '@lobechat/types';
-import { Block, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Collapsible, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, Block, Collapsible, cssVar, Empty, Flexbox, Icon, Text } from '@lobehub/ui';
import type { TFunction } from 'i18next';
import type { LucideIcon } from 'lucide-react';
import {
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsx
index ba568c38c8c..8a9554fc479 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskArtifacts.tsx
@@ -1,7 +1,6 @@
import type { TaskDetailWorkspaceNode } from '@lobechat/types';
import { Block, type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, confirmModal, cssVar, Tag, Text } from '@lobehub/ui';
import { FileLock2Icon, FileTextIcon, MoreHorizontal, Package, Trash } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsx
index e05ed1ca504..3392cb4aba8 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskBriefCard.tsx
@@ -1,6 +1,5 @@
import { Block, type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, confirmModal, cssVar, Text, toast } from '@lobehub/ui';
import { Check, ChevronDownIcon, ChevronUpIcon, MoreHorizontal, Trash } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsx
index 6f276367b8c..b440b9fb637 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsx
@@ -1,7 +1,5 @@
import type { TaskStatus } from '@lobechat/types';
-import { Block, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar, useThemeMode } from 'antd-style';
+import { Block, cssVar, Text, Tooltip, useThemeMode } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx
index 6c2ab1e2117..950d86766df 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { CopyIcon, LinkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx
index e39b00c5a4d..f840c1f0401 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.test.tsx
@@ -35,19 +35,29 @@ const mocks = vi.hoisted(() => ({
updateTaskVisibility: vi.fn(),
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- DropdownMenu: ({ children, items }: { children?: ReactNode; items: MenuItem[] }) => {
- mocks.dropdownItems = items;
- return <>{children}</>;
- },
- copyToClipboard: vi.fn(),
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- confirmModal: (opts: unknown) => mocks.confirmModal(opts),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ DropdownMenu: ({ children, items }: { children?: ReactNode; items: MenuItem[] }) => {
+ mocks.dropdownItems = items;
+ return <>{children}</>;
+ },
+ copyToClipboard: vi.fn(),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ confirmModal: (opts: unknown) => mocks.confirmModal(opts),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('antd', async (importOriginal) => ({
...(await importOriginal<object>()),
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx
index c2886833225..83851c3a415 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx
@@ -1,5 +1,11 @@
-import { type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ confirmModal,
+ type DropdownItem,
+ DropdownMenu,
+ Icon,
+ toast,
+} from '@lobehub/ui';
import {
ArchiveIcon,
ArchiveRestoreIcon,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
index 717af7b1394..a70c4bbc866 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsx
index 6d147f2b4a2..d58584f8b81 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, SplitButton, Text, toast } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, SplitButton, Text, toast } from '@lobehub/ui';
import { CalendarOffIcon, PlayIcon, RotateCcwIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx
index fa32986c294..570b8922f1f 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import SkeletonBar from '@/components/Skeleton/Bar';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsx
index 7a9d0893ece..fe56e678c28 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsx
@@ -1,4 +1,4 @@
-import { TextArea } from '@lobehub/ui/base-ui';
+import { TextArea } from '@lobehub/ui';
import { useDebounceFn } from 'ahooks';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskGoalBar.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskGoalBar.tsx
index 6173d09ee7d..d6c9c28df34 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskGoalBar.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskGoalBar.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Icon, Text } from '@lobehub/ui';
import { TargetIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsx
index 3962cd88275..c95ddc57865 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsx
@@ -1,6 +1,5 @@
import { useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox } from '@lobehub/ui';
import { Paperclip } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
index 61a354280fb..e3581cb75cf 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
@@ -1,6 +1,5 @@
import type { TaskDetailData, TaskDetailSubtask } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx
index 14f3c8e4a36..b13b431755a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx
@@ -1,7 +1,5 @@
import type { TaskPriority, TaskStatus } from '@lobechat/types';
-import { Block, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon, Text } from '@lobehub/ui';
import { ArchiveIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskRunReport.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskRunReport.tsx
index c3fde0f2486..4187879a694 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskRunReport.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskRunReport.tsx
@@ -1,8 +1,7 @@
'use client';
import type { TaskDetailActivity } from '@lobechat/types';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { ActionIcon, Avatar, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Avatar, Flexbox, Markdown, Text } from '@lobehub/ui';
import { MessageCircle, MessagesSquare } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsx
index f21a611e86d..72fbbe02c3a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsx
@@ -1,17 +1,20 @@
import type { TaskAutomationMode } from '@lobechat/types';
-import { Flexbox, Icon, Popover } from '@lobehub/ui';
import {
ActionIcon,
Avatar,
Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
InputNumber,
+ Popover,
Select,
Switch,
Tabs,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { CalendarClockIcon, CalendarDays, Clock, RefreshCw, TimerIcon, Zap } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx
index 3838899bf53..cb8b1749319 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx
@@ -43,35 +43,53 @@ vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({
useActiveWorkspaceId: () => mocks.activeWorkspaceId,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Tree: ({
- onRightClick,
- onSelect,
- treeData,
- }: {
- onRightClick?: (info: { event: unknown; node: { key: string } }) => void;
- onSelect?: (keys: string[]) => void;
- treeData?: Array<{ key: string; title: ReactNode }>;
- }) => (
- <div>
- {treeData?.map((node) => (
- <button
- data-testid="subtask-tree-node"
- key={node.key}
- type="button"
- onClick={() => onSelect?.([node.key])}
- onContextMenu={(event) => {
- event.preventDefault();
- onRightClick?.({ event, node: { key: node.key } });
- }}
- >
- {node.title}
- </button>
- ))}
- </div>
- ),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Tree: ({
+ onRightClick,
+ onSelect,
+ treeData,
+ }: {
+ onRightClick?: (info: { event: unknown; node: { key: string } }) => void;
+ onSelect?: (keys: string[]) => void;
+ treeData?: Array<{ key: string; title: ReactNode }>;
+ }) => (
+ <div>
+ {treeData?.map((node) => (
+ <button
+ data-testid="subtask-tree-node"
+ key={node.key}
+ type="button"
+ onClick={() => onSelect?.([node.key])}
+ onContextMenu={(event) => {
+ event.preventDefault();
+ onRightClick?.({ event, node: { key: node.key } });
+ }}
+ >
+ {node.title}
+ </button>
+ ))}
+ </div>
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ cssVar: {
+ colorTextDescription: '#999',
+ colorTextSecondary: '#666',
+ },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('antd', async (importOriginal) => ({
...(await importOriginal<object>()),
@@ -83,14 +101,6 @@ vi.mock('antd', async (importOriginal) => ({
},
}));
-vi.mock('antd-style', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- cssVar: {
- colorTextDescription: '#999',
- colorTextSecondary: '#666',
- },
-}));
-
vi.mock('react-router', () => ({
useNavigate: () => mocks.navigate,
}));
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx
index 1690cec96f2..80a8393a848 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx
@@ -1,8 +1,17 @@
import type { TaskDetailSubtask } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import type { TreeDataNode } from '@lobehub/ui/base-ui';
-import { ActionIcon, Collapsible, confirmModal, Text, toast, Tree } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import type { TreeDataNode } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Block,
+ Collapsible,
+ confirmModal,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ toast,
+ Tree,
+} from '@lobehub/ui';
import { ArchiveIcon, ListTodoIcon, PlayCircle, Plus } from 'lucide-react';
import type { MouseEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskVerifyConfig.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskVerifyConfig.tsx
index 7a71f63a18f..d63d33a5644 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskVerifyConfig.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskVerifyConfig.tsx
@@ -1,7 +1,7 @@
'use client';
import { AgentRuntimeErrorType } from '@lobechat/model-runtime';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
+import { Block, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -14,8 +14,7 @@ import {
Text,
TextArea,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import {
ChevronRight,
ChevronUp,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicCard.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicCard.test.tsx
index d34111fd63c..5844e806840 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicCard.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicCard.test.tsx
@@ -9,7 +9,7 @@ import { describe, expect, it, vi } from 'vitest';
import TopicCard from './TopicCard';
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx
index 68f31220913..de80e92c14d 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx
@@ -8,8 +8,7 @@ import {
Markdown,
stopPropagation,
} from '@lobehub/ui';
-import { ActionIcon, Avatar, confirmModal, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Avatar, confirmModal, cssVar, Tag, Text, toast } from '@lobehub/ui';
import {
ChevronDown,
ChevronRight,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/FeedbackInput.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/FeedbackInput.tsx
index f17046fbdb9..56f5edf7b93 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/FeedbackInput.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/FeedbackInput.tsx
@@ -1,6 +1,5 @@
import { ChatInput, ChatInputActionBar, SendButton, useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { $getRoot } from 'lexical';
import { ChevronDownIcon, MessageCirclePlus } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.test.tsx
index 36739bfde7e..441553f747e 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.test.tsx
@@ -93,10 +93,6 @@ vi.mock('@lobehub/ui', async (importOriginal) => ({
)}
</>
),
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
ActionIcon: ({
disabled,
icon,
@@ -439,7 +435,7 @@ describe('TopicChatDrawer', () => {
expect(getByTestId('topic-panel')).toHaveAttribute(
'data-panel-background',
- 'var(--ant-color-bg-container)',
+ 'var(--lobe-color-bg-container)',
);
});
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
index c6677ce62a8..e5fbd19de48 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx
@@ -3,9 +3,19 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import type { ConversationContext, TaskDetailActivity } from '@lobechat/types';
import type { DropdownItem } from '@lobehub/ui';
-import { copyToClipboard, DropdownMenu, Flexbox, Freeze } from '@lobehub/ui';
-import { ActionIcon, confirmModal, FloatingPanel, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ copyToClipboard,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ FloatingPanel,
+ Freeze,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import {
Copy,
ExternalLink,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicStatusIcon.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicStatusIcon.tsx
index f6ab8eb8eb2..1da4edae84c 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TopicStatusIcon.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TopicStatusIcon.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { CircleAlert } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskDetail/scheduler/SchedulerForm.tsx b/src/features/AgentTasks/AgentTaskDetail/scheduler/SchedulerForm.tsx
index d9c368e46aa..debbc39a165 100644
--- a/src/features/AgentTasks/AgentTaskDetail/scheduler/SchedulerForm.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/scheduler/SchedulerForm.tsx
@@ -1,6 +1,15 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, Checkbox, InputNumber, Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Accordion,
+ Checkbox,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ InputNumber,
+ Select,
+ Text,
+} from '@lobehub/ui';
import dayjs, { type Dayjs } from 'dayjs';
import { Globe, Hash, SlidersHorizontal } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts b/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts
index bca3bd907d7..2b5dbc21212 100644
--- a/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts
+++ b/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const TASK_DETAIL_SIDEBAR_MIN_WIDTH = 720;
diff --git a/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.test.ts b/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.test.ts
index 60c0343e9ff..cd77c028e96 100644
--- a/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.test.ts
+++ b/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.test.ts
@@ -34,7 +34,7 @@ vi.mock('@/features/Conversation/hooks/useConversationResourceAccess', () => ({
}),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { error: mocks.toastError } }));
+vi.mock('@lobehub/ui', () => ({ toast: { error: mocks.toastError } }));
vi.mock('react-i18next', () => ({
useTranslation: () => ({ t: (key: string) => key }),
diff --git a/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.ts b/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.ts
index 76ed4e91289..c39ac46530a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.ts
+++ b/src/features/AgentTasks/AgentTaskDetail/useRunFollowUp.ts
@@ -1,7 +1,7 @@
'use client';
import type { ConversationContext, TaskDetailActivity } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts
index 09907bd6bb3..d2d40594aba 100644
--- a/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts
+++ b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts
@@ -18,15 +18,25 @@ const mocks = vi.hoisted(() => ({
workspaceSlug: 'ws-slug' as string | undefined,
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- copyToClipboard: mocks.copyToClipboard,
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- toast: { success: mocks.toastSuccess },
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ copyToClipboard: mocks.copyToClipboard,
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ toast: { success: mocks.toastSuccess },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('@/business/client/hooks/useActiveWorkspaceSlug', () => ({
useActiveWorkspaceSlug: () => mocks.workspaceSlug,
diff --git a/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts
index 77e4ac9a3c5..fc5fdd402c5 100644
--- a/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts
+++ b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts
@@ -1,5 +1,4 @@
-import { copyToClipboard } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { copyToClipboard, toast } from '@lobehub/ui';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx
index 0208347b6b7..d6b0ce2a591 100644
--- a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx
+++ b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx
@@ -1,12 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
import {
ActionIcon,
+ Flexbox,
Pagination,
TabsIndicator,
TabsList,
TabsRoot,
TabsTab,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx
index 4e78cc54a4f..37137744625 100644
--- a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx
+++ b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.test.tsx
@@ -77,7 +77,7 @@ vi.mock('@lobehub/editor/react', async () => {
};
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: vi.fn(), success: toastSuccessMock },
}));
diff --git a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
index 9be8146af1e..23ffb508a07 100644
--- a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
+++ b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
@@ -4,9 +4,7 @@ import { canWorkspaceRoleBeTaskAssignee } from '@lobechat/const/rbac';
import type { TaskExecutionConfig, TaskIntentAnalysis } from '@lobechat/types';
import { readTaskExecutionConfig, toTaskExecutionConfigPatch } from '@lobechat/types';
import { useEditor } from '@lobehub/editor/react';
-import { Block, DropdownMenu, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Block, Button, cssVar, DropdownMenu, Flexbox, Text, toast } from '@lobehub/ui';
import { $getRoot } from 'lexical';
import { ChevronDown, ChevronUp, Paperclip } from 'lucide-react';
import { type KeyboardEvent, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskList/EmptyState.tsx b/src/features/AgentTasks/AgentTaskList/EmptyState.tsx
index e328b54b16f..b68183ed677 100644
--- a/src/features/AgentTasks/AgentTaskList/EmptyState.tsx
+++ b/src/features/AgentTasks/AgentTaskList/EmptyState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, responsive, Text } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/HiddenColumnsPanel.tsx b/src/features/AgentTasks/AgentTaskList/HiddenColumnsPanel.tsx
index ba1f62fdb9a..60576627658 100644
--- a/src/features/AgentTasks/AgentTaskList/HiddenColumnsPanel.tsx
+++ b/src/features/AgentTasks/AgentTaskList/HiddenColumnsPanel.tsx
@@ -1,7 +1,5 @@
import type { TaskStatus } from '@lobechat/types';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Icon, Text, Tooltip } from '@lobehub/ui';
import { PanelRightClose, PanelRightOpen } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx b/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx
index a86b360ab05..07f2e2ff7aa 100644
--- a/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx
+++ b/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx
@@ -9,8 +9,7 @@ import {
useSensor,
useSensors,
} from '@dnd-kit/core';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { ClipboardCheckIcon } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsx b/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsx
index de1c2ac78b0..744e315766d 100644
--- a/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsx
+++ b/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsx
@@ -1,8 +1,7 @@
import { useDndContext, useDraggable, useDroppable } from '@dnd-kit/core';
import type { TaskStatus } from '@lobechat/types';
import { type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';
-import { ActionIcon, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cx, Skeleton, Text } from '@lobehub/ui';
import { EyeOff, MoreHorizontal, Plus } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/TaskGroupLabel.tsx b/src/features/AgentTasks/AgentTaskList/TaskGroupLabel.tsx
index ff157c58fdb..a21995d314e 100644
--- a/src/features/AgentTasks/AgentTaskList/TaskGroupLabel.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TaskGroupLabel.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { CalendarClock, HeartPulse, UserRound } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskList/TaskIntentReview.tsx b/src/features/AgentTasks/AgentTaskList/TaskIntentReview.tsx
index 11c4bd7879b..838724cb026 100644
--- a/src/features/AgentTasks/AgentTaskList/TaskIntentReview.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TaskIntentReview.tsx
@@ -1,9 +1,7 @@
'use client';
import type { TaskIntentAnalysis } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowLeft, Sparkles, Target } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/TaskItemSkeleton.tsx b/src/features/AgentTasks/AgentTaskList/TaskItemSkeleton.tsx
index 650699eaa86..251071833a4 100644
--- a/src/features/AgentTasks/AgentTaskList/TaskItemSkeleton.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TaskItemSkeleton.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
interface TaskItemSkeletonProps {
diff --git a/src/features/AgentTasks/AgentTaskList/TaskList.tsx b/src/features/AgentTasks/AgentTaskList/TaskList.tsx
index 0cf0b694d07..5f987ccef2f 100644
--- a/src/features/AgentTasks/AgentTaskList/TaskList.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TaskList.tsx
@@ -1,13 +1,16 @@
-import { Block, Center, Empty, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionRoot,
AccordionTrigger,
+ Block,
+ Center,
+ cssVar,
Divider,
+ Empty,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { ClipboardCheckIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/AgentTasks/AgentTaskList/TaskListVisibilityFilter.tsx b/src/features/AgentTasks/AgentTaskList/TaskListVisibilityFilter.tsx
index c0ba9850fcc..e4bbf956754 100644
--- a/src/features/AgentTasks/AgentTaskList/TaskListVisibilityFilter.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TaskListVisibilityFilter.tsx
@@ -1,8 +1,7 @@
'use client';
import { type DropdownItem, DropdownMenu, Icon, type MenuInfo } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar } from '@lobehub/ui';
import { Globe, LockIcon, UsersIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/AgentTaskList/TaskRowIndent.tsx b/src/features/AgentTasks/AgentTaskList/TaskRowIndent.tsx
index 4db46d96291..46665e775d2 100644
--- a/src/features/AgentTasks/AgentTaskList/TaskRowIndent.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TaskRowIndent.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import type { ReactNode } from 'react';
/** Indent added per nesting level, in px. */
diff --git a/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx b/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx
index 9eae9a6bc49..e71f053bb03 100644
--- a/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx
@@ -1,7 +1,14 @@
-import { Flexbox, Icon, Popover } from '@lobehub/ui';
-import { ActionIcon, Select, Switch, Tabs } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Popover,
+ Select,
+ Switch,
+ Tabs,
+} from '@lobehub/ui';
+import { Form, type FormFieldProps, useForm } from '@lobehub/ui/form';
import {
ArrowDownWideNarrow,
ArrowUpNarrowWide,
diff --git a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
index b7a160a172f..77fd4bf07b4 100644
--- a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
+++ b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
@@ -3,9 +3,16 @@
import type { TaskExecutionConfig } from '@lobechat/types';
import { toTaskExecutionConfigPatch } from '@lobechat/types';
import { useEditor } from '@lobehub/editor/react';
-import { Block, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Text, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ cssVar,
+ Flexbox,
+ Text,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { Minimize2, Paperclip, X } from 'lucide-react';
import { type KeyboardEvent, memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/CreateTaskModal/index.tsx b/src/features/AgentTasks/CreateTaskModal/index.tsx
index a18aac4e6dc..50353de522e 100644
--- a/src/features/AgentTasks/CreateTaskModal/index.tsx
+++ b/src/features/AgentTasks/CreateTaskModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import CreateTaskContent, { type CreateTaskContentProps } from './CreateTaskContent';
diff --git a/src/features/AgentTasks/features/AgentTaskItem.tsx b/src/features/AgentTasks/features/AgentTaskItem.tsx
index 828452b754f..d33949dfed4 100644
--- a/src/features/AgentTasks/features/AgentTaskItem.tsx
+++ b/src/features/AgentTasks/features/AgentTaskItem.tsx
@@ -1,7 +1,5 @@
import type { TaskStatus } from '@lobechat/types';
-import { Block, ContextMenuTrigger, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, ContextMenuTrigger, cssVar, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { ArchiveIcon, LockIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/AssigneeAgentSelector.tsx b/src/features/AgentTasks/features/AssigneeAgentSelector.tsx
index 7b8667fbf3a..f29228a7abd 100644
--- a/src/features/AgentTasks/features/AssigneeAgentSelector.tsx
+++ b/src/features/AgentTasks/features/AssigneeAgentSelector.tsx
@@ -1,8 +1,6 @@
import { DEFAULT_INBOX_AVATAR } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Popover, Text, Tooltip } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { UserRoundX } from 'lucide-react';
import type { CSSProperties, KeyboardEvent, ReactNode } from 'react';
diff --git a/src/features/AgentTasks/features/AssigneeAvatar.tsx b/src/features/AgentTasks/features/AssigneeAvatar.tsx
index f23d108319c..c2e465513c6 100644
--- a/src/features/AgentTasks/features/AssigneeAvatar.tsx
+++ b/src/features/AgentTasks/features/AssigneeAvatar.tsx
@@ -1,6 +1,4 @@
-import { Tooltip } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, cssVar, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useAgentDisplayMeta } from '../shared/useAgentDisplayMeta';
diff --git a/src/features/AgentTasks/features/AssigneeMemberSelector.tsx b/src/features/AgentTasks/features/AssigneeMemberSelector.tsx
index aa77b346cdb..6f5f880042b 100644
--- a/src/features/AgentTasks/features/AssigneeMemberSelector.tsx
+++ b/src/features/AgentTasks/features/AssigneeMemberSelector.tsx
@@ -1,7 +1,5 @@
import { canWorkspaceRoleBeTaskAssignee } from '@lobechat/const/rbac';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Popover, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Popover, Text, Tooltip } from '@lobehub/ui';
import { UserRoundX } from 'lucide-react';
import type { CSSProperties, KeyboardEvent, ReactNode } from 'react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/AgentTasks/features/AssigneeUserAvatar.tsx b/src/features/AgentTasks/features/AssigneeUserAvatar.tsx
index 461a1945cc9..ddbf59ad989 100644
--- a/src/features/AgentTasks/features/AssigneeUserAvatar.tsx
+++ b/src/features/AgentTasks/features/AssigneeUserAvatar.tsx
@@ -1,5 +1,4 @@
-import { Center, Icon, Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Icon, Tooltip } from '@lobehub/ui';
import { CircleUser } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentTasks/features/TaskDeviceChip.tsx b/src/features/AgentTasks/features/TaskDeviceChip.tsx
index 883dab43e0a..b332994dab6 100644
--- a/src/features/AgentTasks/features/TaskDeviceChip.tsx
+++ b/src/features/AgentTasks/features/TaskDeviceChip.tsx
@@ -1,9 +1,7 @@
'use client';
import type { DeviceListItem } from '@lobechat/types';
-import { Block, Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Block, cx, Flexbox, Icon, Popover, Text, Tooltip } from '@lobehub/ui';
import { CheckIcon, ChevronDownIcon, FolderIcon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskPriorityTag.tsx b/src/features/AgentTasks/features/TaskPriorityTag.tsx
index 537a79b0cd2..0e0b0806c10 100644
--- a/src/features/AgentTasks/features/TaskPriorityTag.tsx
+++ b/src/features/AgentTasks/features/TaskPriorityTag.tsx
@@ -1,7 +1,6 @@
import type { IconType } from '@lobehub/icons';
import { type DropdownItem, DropdownMenu, type MenuInfo, Tooltip } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Spin } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskRepoChip.tsx b/src/features/AgentTasks/features/TaskRepoChip.tsx
index 43c2f19a260..7157f6ae2f9 100644
--- a/src/features/AgentTasks/features/TaskRepoChip.tsx
+++ b/src/features/AgentTasks/features/TaskRepoChip.tsx
@@ -1,9 +1,7 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Checkbox, Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Checkbox, cx, Flexbox, Icon, Popover, Text, Tooltip } from '@lobehub/ui';
import { CheckIcon, ChevronDownIcon, SquircleDashed } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx b/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
index e57f269c5a0..7533b8792e5 100644
--- a/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
+++ b/src/features/AgentTasks/features/TaskStatusCascadeModal.tsx
@@ -1,9 +1,18 @@
'use client';
import type { TaskStatus } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, createModal, ScrollArea, Text, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ ScrollArea,
+ Text,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskStatusIcon.tsx b/src/features/AgentTasks/features/TaskStatusIcon.tsx
index af91101c2d6..8e2b4dd8a32 100644
--- a/src/features/AgentTasks/features/TaskStatusIcon.tsx
+++ b/src/features/AgentTasks/features/TaskStatusIcon.tsx
@@ -1,5 +1,5 @@
import type { TaskStatus } from '@lobechat/types';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { memo } from 'react';
import { TASK_STATUS_VISUALS } from '@/components/ExecutionStatus';
diff --git a/src/features/AgentTasks/features/TaskStatusTag.tsx b/src/features/AgentTasks/features/TaskStatusTag.tsx
index 9ddd76fb5a3..a9a076b0c85 100644
--- a/src/features/AgentTasks/features/TaskStatusTag.tsx
+++ b/src/features/AgentTasks/features/TaskStatusTag.tsx
@@ -1,7 +1,6 @@
import type { TaskStatus } from '@lobechat/types';
import { type DropdownItem, DropdownMenu, Icon, type MenuInfo, Tooltip } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Spin } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
index 8aea9f6c1de..4e723f88948 100644
--- a/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
@@ -11,7 +11,7 @@ const mocks = vi.hoisted(() => ({
toastError: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
DropdownMenu: ({
children,
diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
index 229dbdbd6bb..9e85a08dfc3 100644
--- a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
@@ -1,8 +1,6 @@
import type { TaskDetailSubtask, TaskSubtaskProgress } from '@lobechat/types';
-import { Block, Flexbox } from '@lobehub/ui';
-import type { DropdownMenuProps } from '@lobehub/ui/base-ui';
-import { DropdownMenu, Progress, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import type { DropdownMenuProps } from '@lobehub/ui';
+import { Block, cssVar, DropdownMenu, Flexbox, Progress, Text, toast } from '@lobehub/ui';
import type { MouseEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskTriggerTag.tsx b/src/features/AgentTasks/features/TaskTriggerTag.tsx
index 3e8759f9860..5b0dd13f4f3 100644
--- a/src/features/AgentTasks/features/TaskTriggerTag.tsx
+++ b/src/features/AgentTasks/features/TaskTriggerTag.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { ClockIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskVisibilityChipLabel.tsx b/src/features/AgentTasks/features/TaskVisibilityChipLabel.tsx
index 393971ec7c4..fdf37072cbd 100644
--- a/src/features/AgentTasks/features/TaskVisibilityChipLabel.tsx
+++ b/src/features/AgentTasks/features/TaskVisibilityChipLabel.tsx
@@ -1,6 +1,4 @@
-import { Block, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon, Text } from '@lobehub/ui';
import { LockIcon, UsersIcon } from 'lucide-react';
import { type ComponentProps, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/TaskVisibilityTag.tsx b/src/features/AgentTasks/features/TaskVisibilityTag.tsx
index fcc547b5e45..7b80d55556c 100644
--- a/src/features/AgentTasks/features/TaskVisibilityTag.tsx
+++ b/src/features/AgentTasks/features/TaskVisibilityTag.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem, DropdownMenu, Icon, type MenuInfo, Tooltip } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Spin } from '@lobehub/ui';
import { LockIcon, UsersIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/AgentTasks/features/TaskWorkingDirectoryChip.tsx b/src/features/AgentTasks/features/TaskWorkingDirectoryChip.tsx
index eac27408af2..9be597bd94b 100644
--- a/src/features/AgentTasks/features/TaskWorkingDirectoryChip.tsx
+++ b/src/features/AgentTasks/features/TaskWorkingDirectoryChip.tsx
@@ -2,9 +2,7 @@
import type { WorkingDirConfig, WorkingDirEntry } from '@lobechat/types';
import { getWorkingDirEffectivePath, getWorkingDirSourcePath } from '@lobechat/types';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox, Icon, Popover, Text, Tooltip } from '@lobehub/ui';
import { CheckIcon, ChevronDownIcon, FolderPlusIcon, SquircleDashed } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/features/UnassignedAssigneeIcon.tsx b/src/features/AgentTasks/features/UnassignedAssigneeIcon.tsx
index 88e80afb3af..576e48b33c0 100644
--- a/src/features/AgentTasks/features/UnassignedAssigneeIcon.tsx
+++ b/src/features/AgentTasks/features/UnassignedAssigneeIcon.tsx
@@ -1,5 +1,4 @@
-import { Center, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Icon } from '@lobehub/ui';
import { Bot, CircleDashed, UserRound } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/AgentTasks/features/menuExtra.tsx b/src/features/AgentTasks/features/menuExtra.tsx
index 3ec169b31b8..016d6d93310 100644
--- a/src/features/AgentTasks/features/menuExtra.tsx
+++ b/src/features/AgentTasks/features/menuExtra.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon } from '@lobehub/ui';
import { CheckIcon } from 'lucide-react';
const renderCheck = () => <Icon color={cssVar.colorTextSecondary} icon={CheckIcon} size={14} />;
diff --git a/src/features/AgentTasks/features/taskExecutionStyles.ts b/src/features/AgentTasks/features/taskExecutionStyles.ts
index 244a184aea6..b6d44f209ce 100644
--- a/src/features/AgentTasks/features/taskExecutionStyles.ts
+++ b/src/features/AgentTasks/features/taskExecutionStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* Shared look for the task-side execution chips (run location + working
diff --git a/src/features/AgentTasks/features/useCascadeApply.test.ts b/src/features/AgentTasks/features/useCascadeApply.test.ts
index 3f83b9c5a3f..303c5b04065 100644
--- a/src/features/AgentTasks/features/useCascadeApply.test.ts
+++ b/src/features/AgentTasks/features/useCascadeApply.test.ts
@@ -9,7 +9,7 @@ const modalContext = vi.hoisted(() => ({
setCanDismissByClickOutside: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: toastError },
useModalContext: () => modalContext,
diff --git a/src/features/AgentTasks/features/useTaskItemContextMenu.test.tsx b/src/features/AgentTasks/features/useTaskItemContextMenu.test.tsx
index 3d4eab1cda3..c68e079859a 100644
--- a/src/features/AgentTasks/features/useTaskItemContextMenu.test.tsx
+++ b/src/features/AgentTasks/features/useTaskItemContextMenu.test.tsx
@@ -26,15 +26,11 @@ const mocks = vi.hoisted(() => ({
updateTaskStatus: vi.fn(),
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- copyToClipboard: mocks.copyToClipboard,
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = await importOriginal<{ toast: Record<string, unknown> }>();
return {
...actual,
+ copyToClipboard: mocks.copyToClipboard,
toast: { ...actual.toast, error: mocks.toastError, info: mocks.toastInfo, success: vi.fn() },
};
});
diff --git a/src/features/AgentTasks/features/useTaskItemContextMenu.tsx b/src/features/AgentTasks/features/useTaskItemContextMenu.tsx
index 86c6b8e74e2..2d92dfacbeb 100644
--- a/src/features/AgentTasks/features/useTaskItemContextMenu.tsx
+++ b/src/features/AgentTasks/features/useTaskItemContextMenu.tsx
@@ -1,8 +1,7 @@
import type { TaskStatus } from '@lobechat/types';
import { isTaskArchiveBlocked } from '@lobechat/types';
import { type ContextMenuItem, copyToClipboard, Icon, type MenuInfo } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { confirmModal, cssVar, toast } from '@lobehub/ui';
import {
ArchiveIcon,
ArchiveRestoreIcon,
diff --git a/src/features/AgentTasks/features/useTaskStatusChange.test.ts b/src/features/AgentTasks/features/useTaskStatusChange.test.ts
index 05c29ee0967..a9675859b51 100644
--- a/src/features/AgentTasks/features/useTaskStatusChange.test.ts
+++ b/src/features/AgentTasks/features/useTaskStatusChange.test.ts
@@ -35,7 +35,7 @@ vi.mock('@/store/task', () => ({
}),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: mocks.toastError },
}));
diff --git a/src/features/AgentTasks/features/useTaskStatusChange.ts b/src/features/AgentTasks/features/useTaskStatusChange.ts
index b85c5b5f394..76b2e05214e 100644
--- a/src/features/AgentTasks/features/useTaskStatusChange.ts
+++ b/src/features/AgentTasks/features/useTaskStatusChange.ts
@@ -2,7 +2,7 @@
import { UNFINISHED_TASK_STATUSES } from '@lobechat/builtin-tool-task';
import type { TaskStatus } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/shared/Breadcrumb.tsx b/src/features/AgentTasks/shared/Breadcrumb.tsx
index 2b24b335a90..dc0ffc3b606 100644
--- a/src/features/AgentTasks/shared/Breadcrumb.tsx
+++ b/src/features/AgentTasks/shared/Breadcrumb.tsx
@@ -1,6 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Breadcrumb as BaseBreadcrumb, Text } from '@lobehub/ui/base-ui';
+import { Breadcrumb as BaseBreadcrumb, Icon, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTasks/shared/style.ts b/src/features/AgentTasks/shared/style.ts
index eadab386975..fc9f0b589f4 100644
--- a/src/features/AgentTasks/shared/style.ts
+++ b/src/features/AgentTasks/shared/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
breadcrumb: css`
diff --git a/src/features/AgentTasks/shared/useAgentDisplayMeta.ts b/src/features/AgentTasks/shared/useAgentDisplayMeta.ts
index 918829beec1..2e98500451e 100644
--- a/src/features/AgentTasks/shared/useAgentDisplayMeta.ts
+++ b/src/features/AgentTasks/shared/useAgentDisplayMeta.ts
@@ -1,6 +1,6 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { DEFAULT_INBOX_AVATAR } from '@/const/meta';
diff --git a/src/features/AgentTopicManager/BulkActionBar.tsx b/src/features/AgentTopicManager/BulkActionBar.tsx
index 24c32cf0bf6..b03b09dccdd 100644
--- a/src/features/AgentTopicManager/BulkActionBar.tsx
+++ b/src/features/AgentTopicManager/BulkActionBar.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { Archive, FolderInput, Star, Trash2, X } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/EmptyState.tsx b/src/features/AgentTopicManager/EmptyState.tsx
index d77d3001525..58aea6aaf99 100644
--- a/src/features/AgentTopicManager/EmptyState.tsx
+++ b/src/features/AgentTopicManager/EmptyState.tsx
@@ -1,9 +1,7 @@
'use client';
import { AGENT_CHAT_URL } from '@lobechat/const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { MessagesSquare } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/Header.tsx b/src/features/AgentTopicManager/Header.tsx
index acb174aaf96..d74d4415ec6 100644
--- a/src/features/AgentTopicManager/Header.tsx
+++ b/src/features/AgentTopicManager/Header.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Input } from '@lobehub/ui/base-ui';
+import { Icon, Input } from '@lobehub/ui';
import { Search } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/MoveToAgentButton.tsx b/src/features/AgentTopicManager/MoveToAgentButton.tsx
index 8d6d8109dea..c09bc887b55 100644
--- a/src/features/AgentTopicManager/MoveToAgentButton.tsx
+++ b/src/features/AgentTopicManager/MoveToAgentButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { FolderInput } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx b/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx
index a86bdc9da69..b1560033707 100644
--- a/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx
+++ b/src/features/AgentTopicManager/MoveTopicsModal/Content.tsx
@@ -2,9 +2,17 @@
import { AGENT_CHAT_URL, DEFAULT_INBOX_AVATAR } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Spin, Text, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Spin,
+ Text,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { CircleCheck } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/MoveTopicsModal/index.tsx b/src/features/AgentTopicManager/MoveTopicsModal/index.tsx
index 8d0ac56d18e..8b922f20e46 100644
--- a/src/features/AgentTopicManager/MoveTopicsModal/index.tsx
+++ b/src/features/AgentTopicManager/MoveTopicsModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import MoveTopicsContent, { type MoveTopicsContentProps } from './Content';
diff --git a/src/features/AgentTopicManager/StatusDot.tsx b/src/features/AgentTopicManager/StatusDot.tsx
index d94071e43bb..331d6487dce 100644
--- a/src/features/AgentTopicManager/StatusDot.tsx
+++ b/src/features/AgentTopicManager/StatusDot.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar, useTheme } from 'antd-style';
+import { cssVar, Flexbox, useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/Toolbar.tsx b/src/features/AgentTopicManager/Toolbar.tsx
index c57a87c6ee4..51a5acb201b 100644
--- a/src/features/AgentTopicManager/Toolbar.tsx
+++ b/src/features/AgentTopicManager/Toolbar.tsx
@@ -1,8 +1,19 @@
'use client';
-import { type DropdownItem, DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Tabs, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ type DropdownItem,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tabs,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import {
Archive,
CalendarRange,
diff --git a/src/features/AgentTopicManager/TopicCard.tsx b/src/features/AgentTopicManager/TopicCard.tsx
index 80d284fc719..66ba829e5df 100644
--- a/src/features/AgentTopicManager/TopicCard.tsx
+++ b/src/features/AgentTopicManager/TopicCard.tsx
@@ -2,9 +2,7 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import { formatPrice, formatTokenNumber } from '@lobechat/utils/format';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Checkbox, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, Checkbox, createStaticStyles, cssVar, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { CircleDollarSign, FolderIcon, MessageSquare, Star, Zap } from 'lucide-react';
import { memo, type MouseEvent, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/TopicGrid.tsx b/src/features/AgentTopicManager/TopicGrid.tsx
index 8d43747a2f4..b1981abc9dd 100644
--- a/src/features/AgentTopicManager/TopicGrid.tsx
+++ b/src/features/AgentTopicManager/TopicGrid.tsx
@@ -1,9 +1,7 @@
'use client';
import type { GroupedTopic } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, responsive, Text } from '@lobehub/ui';
import { Fragment, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTopicManager/TopicListView.tsx b/src/features/AgentTopicManager/TopicListView.tsx
index 7c246a7aa1f..07e06015dc5 100644
--- a/src/features/AgentTopicManager/TopicListView.tsx
+++ b/src/features/AgentTopicManager/TopicListView.tsx
@@ -2,9 +2,17 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import type { GroupedTopic } from '@lobechat/types';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Checkbox, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Checkbox,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { FolderIcon, MoreHorizontal, Star } from 'lucide-react';
import { Fragment, memo, type MouseEvent, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTransferMigration/MigrationBanner.tsx b/src/features/AgentTransferMigration/MigrationBanner.tsx
index 88559ac9d11..adebd26a813 100644
--- a/src/features/AgentTransferMigration/MigrationBanner.tsx
+++ b/src/features/AgentTransferMigration/MigrationBanner.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Spin, Text, Tooltip } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentTransferMigration/TopicMigrationIndicator.tsx b/src/features/AgentTransferMigration/TopicMigrationIndicator.tsx
index fce8a8d117a..77390c841dd 100644
--- a/src/features/AgentTransferMigration/TopicMigrationIndicator.tsx
+++ b/src/features/AgentTransferMigration/TopicMigrationIndicator.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Spin } from '@lobehub/ui';
import { memo } from 'react';
import { useTopicMigrationPending } from './MigrationBanner';
diff --git a/src/features/AgentUsage/ModelBreakdown.tsx b/src/features/AgentUsage/ModelBreakdown.tsx
index a51473d5777..67718a22656 100644
--- a/src/features/AgentUsage/ModelBreakdown.tsx
+++ b/src/features/AgentUsage/ModelBreakdown.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Table, type TableColumn, Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Table, type TableColumn, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentUsage/StatCards.tsx b/src/features/AgentUsage/StatCards.tsx
index 3ed4fc203a0..62fa43b111a 100644
--- a/src/features/AgentUsage/StatCards.tsx
+++ b/src/features/AgentUsage/StatCards.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Grid } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Grid, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentUsage/UsageTrendChart.tsx b/src/features/AgentUsage/UsageTrendChart.tsx
index ea1fb887ea9..4d8e5383e09 100644
--- a/src/features/AgentUsage/UsageTrendChart.tsx
+++ b/src/features/AgentUsage/UsageTrendChart.tsx
@@ -1,8 +1,7 @@
'use client';
import { BarChart, ChartTooltipFrame, ChartTooltipRow } from '@lobehub/charts';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Divider, Segmented, Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Block, Divider, Flexbox, Segmented, Skeleton, Text } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentUsage/index.tsx b/src/features/AgentUsage/index.tsx
index 531aa82e326..0f582d9958a 100644
--- a/src/features/AgentUsage/index.tsx
+++ b/src/features/AgentUsage/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Segmented, Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Segmented, Text } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AgentViewAll/AgentCard.tsx b/src/features/AgentViewAll/AgentCard.tsx
index 1db9e0abfd4..0743a13a9c6 100644
--- a/src/features/AgentViewAll/AgentCard.tsx
+++ b/src/features/AgentViewAll/AgentCard.tsx
@@ -3,9 +3,18 @@
import { AGENT_CHAT_URL, DEFAULT_AVATAR, GROUP_CHAT_URL } from '@lobechat/const';
import type { SidebarAgentItem } from '@lobechat/types';
import { agentDisplayName, agentSecondaryDisplayName } from '@lobechat/types';
-import { Block, ContextMenuTrigger, Flexbox, type MenuProps, Tooltip } from '@lobehub/ui';
-import { Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import {
+ Avatar,
+ Block,
+ ContextMenuTrigger,
+ createStaticStyles,
+ type DropdownItem,
+ Flexbox,
+ responsive,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { memo, useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -115,8 +124,8 @@ const AgentCard = memo<AgentCardProps>(
// mounts on the card's pointer-enter and hands its items back via ref.
const [menuActivated, setMenuActivated] = useState(false);
const activateMenu = useCallback(() => setMenuActivated(true), []);
- const menuItemsRef = useRef<(() => MenuProps['items']) | null>(null);
- const handleMenuReady = useCallback((getItems: () => MenuProps['items']) => {
+ const menuItemsRef = useRef<(() => DropdownItem[]) | null>(null);
+ const handleMenuReady = useCallback((getItems: () => DropdownItem[]) => {
menuItemsRef.current = getItems;
}, []);
const getContextMenuItems = useCallback(() => menuItemsRef.current?.() ?? [], []);
diff --git a/src/features/AgentViewAll/AgentRow.tsx b/src/features/AgentViewAll/AgentRow.tsx
index ea5c5344de4..68f6fdf8a6d 100644
--- a/src/features/AgentViewAll/AgentRow.tsx
+++ b/src/features/AgentViewAll/AgentRow.tsx
@@ -3,9 +3,8 @@
import { AGENT_CHAT_URL, DEFAULT_AVATAR, GROUP_CHAT_URL } from '@lobechat/const';
import type { SidebarAgentItem } from '@lobechat/types';
import { agentDisplayName, agentSecondaryDisplayName } from '@lobechat/types';
-import { ContextMenuTrigger, Flexbox, type MenuProps, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ContextMenuTrigger, type DropdownItem, Flexbox, Tooltip } from '@lobehub/ui';
+import { ActionIcon, Avatar, createStaticStyles, cssVar, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { EyeIcon, EyeOffIcon } from 'lucide-react';
import { memo, type MouseEvent, useCallback, useRef, useState } from 'react';
@@ -112,8 +111,8 @@ const AgentRow = memo<AgentRowProps>(
// its filtered items back via ref for the ContextMenuTrigger.
const [menuActivated, setMenuActivated] = useState(false);
const activateMenu = useCallback(() => setMenuActivated(true), []);
- const menuItemsRef = useRef<(() => MenuProps['items']) | null>(null);
- const handleMenuReady = useCallback((getItems: () => MenuProps['items']) => {
+ const menuItemsRef = useRef<(() => DropdownItem[]) | null>(null);
+ const handleMenuReady = useCallback((getItems: () => DropdownItem[]) => {
menuItemsRef.current = getItems;
}, []);
const getContextMenuItems = useCallback(() => menuItemsRef.current?.() ?? [], []);
diff --git a/src/features/AgentViewAll/AgentViewAllPage.tsx b/src/features/AgentViewAll/AgentViewAllPage.tsx
index b77e8a3892c..3e4f7afdec8 100644
--- a/src/features/AgentViewAll/AgentViewAllPage.tsx
+++ b/src/features/AgentViewAll/AgentViewAllPage.tsx
@@ -2,9 +2,23 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import { agentDisplayName, type SidebarAgentItem } from '@lobechat/types';
-import { Center, Empty, Flexbox, Icon, SearchBar, Tooltip } from '@lobehub/ui';
-import { Avatar, Button, DropdownMenu, Segmented, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ DropdownMenu,
+ Empty,
+ Flexbox,
+ Icon,
+ SearchBar,
+ Segmented,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import isEqual from 'fast-deep-equal';
import { ChevronDownIcon, ChevronRightIcon, PlusIcon } from 'lucide-react';
diff --git a/src/features/AgentViewAll/ItemActions.tsx b/src/features/AgentViewAll/ItemActions.tsx
index a1082ac9e3a..b8753b91cbe 100644
--- a/src/features/AgentViewAll/ItemActions.tsx
+++ b/src/features/AgentViewAll/ItemActions.tsx
@@ -1,9 +1,8 @@
'use client';
import { agentDisplayName, type SidebarAgentItem } from '@lobechat/types';
-import type { MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { ActionIcon, DropdownMenu } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { ActionIcon, DropdownMenu, Icon } from '@lobehub/ui';
import { EllipsisIcon, EyeIcon, EyeOffIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -12,7 +11,7 @@ import { useGroupDropdownMenu } from '@/features/HomeSidebar/Body/Agent/List/Age
import { useAgentDropdownMenu } from '@/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu';
import { useAgentModal } from '@/features/HomeSidebar/Body/Agent/ModalProvider';
-type MenuItems = NonNullable<MenuProps['items']>;
+type MenuItems = NonNullable<DropdownItem[]>;
/** Drop leading / trailing / consecutive dividers left behind by filtering. */
const collapseDividers = (menu: MenuItems): MenuItems => {
@@ -59,13 +58,13 @@ interface ItemActionsProps {
* Hands the filtered menu-items getter back to the row/card, which feeds it
* to its ContextMenuTrigger so right-click shows the same menu as "…".
*/
- onMenuReady?: (getItems: () => MenuProps['items']) => void;
+ onMenuReady?: (getItems: () => DropdownItem[]) => void;
onToggleSidebar?: (item: SidebarAgentItem) => void;
sidebarHidden?: boolean;
}
interface ActionsDropdownProps extends Omit<ItemActionsProps, 'anchor'> {
- getMenuItems: () => MenuProps['items'];
+ getMenuItems: () => DropdownItem[];
}
/** Shared "…" trigger: adapts a sidebar item menu for the flat view-all list. */
@@ -82,7 +81,7 @@ const ActionsDropdown = memo<ActionsDropdownProps>(
const { t } = useTranslation('common');
const items = useMemo(
- () => (): MenuProps['items'] => {
+ () => (): DropdownItem[] => {
// Pin and move-to-group organize the sidebar; they're meaningless in
// this flat view-all list, so drop them (and any dividers left over).
const menu = collapseDividers(
diff --git a/src/features/AgentViewAll/LabelTags.tsx b/src/features/AgentViewAll/LabelTags.tsx
index 362b6fab81b..0d52f7246dd 100644
--- a/src/features/AgentViewAll/LabelTags.tsx
+++ b/src/features/AgentViewAll/LabelTags.tsx
@@ -1,7 +1,7 @@
'use client';
import { type SidebarAgentLabel } from '@lobechat/types';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/AgentViewAll/ListConfig.tsx b/src/features/AgentViewAll/ListConfig.tsx
index 2ff58934b5f..660858132f5 100644
--- a/src/features/AgentViewAll/ListConfig.tsx
+++ b/src/features/AgentViewAll/ListConfig.tsx
@@ -1,9 +1,16 @@
'use client';
-import { Flexbox, Icon, Popover } from '@lobehub/ui';
-import { ActionIcon, Select, Switch, Tabs } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Popover,
+ Select,
+ Switch,
+ Tabs,
+} from '@lobehub/ui';
+import { Form, type FormFieldProps, useForm } from '@lobehub/ui/form';
import {
ArrowDownWideNarrow,
ArrowUpNarrowWide,
diff --git a/src/features/AgentViewAll/SidebarAgentsSection.tsx b/src/features/AgentViewAll/SidebarAgentsSection.tsx
index 709fe218466..d0efe68728c 100644
--- a/src/features/AgentViewAll/SidebarAgentsSection.tsx
+++ b/src/features/AgentViewAll/SidebarAgentsSection.tsx
@@ -3,9 +3,8 @@
import { AGENT_CHAT_URL, GROUP_CHAT_URL } from '@lobechat/const';
import type { SidebarAgentItem } from '@lobechat/types';
import { agentDisplayName, agentSecondaryDisplayName } from '@lobechat/types';
-import { Block, ContextMenuTrigger, Flexbox, Icon, type MenuProps } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import { Block, ContextMenuTrigger, type DropdownItem, Flexbox, Icon } from '@lobehub/ui';
+import { createStaticStyles, cssVar, responsive, Tag, Text } from '@lobehub/ui';
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
import { memo, useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -111,8 +110,8 @@ const SidebarMiniCard = memo<SidebarMiniCardProps>(({ item, onToggleSidebar }) =
const [menuActivated, setMenuActivated] = useState(false);
const activateMenu = useCallback(() => setMenuActivated(true), []);
- const menuItemsRef = useRef<(() => MenuProps['items']) | null>(null);
- const handleMenuReady = useCallback((getItems: () => MenuProps['items']) => {
+ const menuItemsRef = useRef<(() => DropdownItem[]) | null>(null);
+ const handleMenuReady = useCallback((getItems: () => DropdownItem[]) => {
menuItemsRef.current = getItems;
}, []);
const getContextMenuItems = useCallback(() => menuItemsRef.current?.() ?? [], []);
diff --git a/src/features/AlertBanner/CloudBanner.tsx b/src/features/AlertBanner/CloudBanner.tsx
index e9bc48835ee..3271ae0bc50 100644
--- a/src/features/AlertBanner/CloudBanner.tsx
+++ b/src/features/AlertBanner/CloudBanner.tsx
@@ -1,10 +1,16 @@
'use client';
import { LOBE_CHAT_CLOUD, UTM_SOURCE } from '@lobechat/business-const';
-import { Center, Flexbox, Icon, lobeStaticStylish } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Icon,
+ lobeStaticStylish,
+} from '@lobehub/ui';
import { useSize } from 'ahooks';
-import { createStaticStyles, cx } from 'antd-style';
import { ArrowRightIcon } from 'lucide-react';
import { memo, useEffect, useRef, useState } from 'react';
import Marquee from 'react-fast-marquee';
diff --git a/src/features/Apps/index.tsx b/src/features/Apps/index.tsx
index 8a4095de32f..41868791503 100644
--- a/src/features/Apps/index.tsx
+++ b/src/features/Apps/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { DOWNLOAD_URL, isDesktop } from '@lobechat/const';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
+import { Button, Tag, Text } from '@lobehub/ui';
import { ArrowUpRight, Check, Copy } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Apps/style.ts b/src/features/Apps/style.ts
index 1aeae20db18..d8cffe22ab9 100644
--- a/src/features/Apps/style.ts
+++ b/src/features/Apps/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
bullets: css`
diff --git a/src/features/ArtworkStudio/Content.tsx b/src/features/ArtworkStudio/Content.tsx
index 411ff18bed5..3049a34acd8 100644
--- a/src/features/ArtworkStudio/Content.tsx
+++ b/src/features/ArtworkStudio/Content.tsx
@@ -3,7 +3,6 @@
import { imageUrl } from '@lobechat/const';
import type { AgentArtworkComposition, AgentArtworkStyle } from '@lobechat/prompts';
import { AGENT_ARTWORK_STYLES } from '@lobechat/prompts';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -14,12 +13,16 @@ import {
Alert,
Avatar,
Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
Input,
Spin,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import {
CircleUserRound,
Frame,
diff --git a/src/features/AttachmentInput/AttachmentMenu.tsx b/src/features/AttachmentInput/AttachmentMenu.tsx
index 8ad9132be8f..166eec1169f 100644
--- a/src/features/AttachmentInput/AttachmentMenu.tsx
+++ b/src/features/AttachmentInput/AttachmentMenu.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { ActionIcon, Upload } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { ActionIcon, css, cx, Icon, Upload } from '@lobehub/ui';
import { ChevronRight, FileUp, LibraryBig, PlusIcon, TypeIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AttachmentInput/AttachmentUploadButton.tsx b/src/features/AttachmentInput/AttachmentUploadButton.tsx
index 54043612332..db92e1d62b2 100644
--- a/src/features/AttachmentInput/AttachmentUploadButton.tsx
+++ b/src/features/AttachmentInput/AttachmentUploadButton.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, Upload } from '@lobehub/ui/base-ui';
+import { ActionIcon, Upload } from '@lobehub/ui';
import { Paperclip } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AudioPlayer/index.tsx b/src/features/AudioPlayer/index.tsx
index 3f9ae771910..a563168f37d 100644
--- a/src/features/AudioPlayer/index.tsx
+++ b/src/features/AudioPlayer/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import { DownloadIcon, PauseIcon, PlayIcon, RotateCcwIcon, XIcon } from 'lucide-react';
import { memo, type MouseEvent, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/AuthError/index.tsx b/src/features/Auth/AuthError/index.tsx
index c924c9a9734..e75cb430acf 100644
--- a/src/features/Auth/AuthError/index.tsx
+++ b/src/features/Auth/AuthError/index.tsx
@@ -2,9 +2,7 @@
import { SiDiscord } from '@icons-pack/react-simple-icons';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Link, useSearchParams } from 'react-router';
diff --git a/src/features/Auth/MarketAuthCallback/index.tsx b/src/features/Auth/MarketAuthCallback/index.tsx
index 733a6f4e35b..b7cf15a6888 100644
--- a/src/features/Auth/MarketAuthCallback/index.tsx
+++ b/src/features/Auth/MarketAuthCallback/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Button, Result, Text } from '@lobehub/ui/base-ui';
+import { Button, FluentEmoji, Result, Text } from '@lobehub/ui';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthAuthorizeError/index.tsx b/src/features/Auth/OAuthAuthorizeError/index.tsx
index ecd591f6ee6..2b0ea3b7a39 100644
--- a/src/features/Auth/OAuthAuthorizeError/index.tsx
+++ b/src/features/Auth/OAuthAuthorizeError/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, FluentEmoji } from '@lobehub/ui';
-import { Button, Result, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, FluentEmoji, Result, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Auth/OAuthCallback/Error.tsx b/src/features/Auth/OAuthCallback/Error.tsx
index db186a83aa6..a8e6fda918b 100644
--- a/src/features/Auth/OAuthCallback/Error.tsx
+++ b/src/features/Auth/OAuthCallback/Error.tsx
@@ -1,8 +1,7 @@
'use client';
// Highlighter is intentionally avoided: it pulls every shiki grammar (~10 MB) into the auth bundle
-import { Block, Flexbox, FluentEmoji } from '@lobehub/ui';
-import { Button, Result, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, FluentEmoji, Result, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Auth/OAuthCallback/Social.tsx b/src/features/Auth/OAuthCallback/Social.tsx
index 6901fcff5a2..9d43fe51f0b 100644
--- a/src/features/Auth/OAuthCallback/Social.tsx
+++ b/src/features/Auth/OAuthCallback/Social.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Result, Text } from '@lobehub/ui/base-ui';
+import { FluentEmoji, Result, Text } from '@lobehub/ui';
import React, { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Auth/OAuthCallback/Success.tsx b/src/features/Auth/OAuthCallback/Success.tsx
index 45feaa273a8..7139bccd243 100644
--- a/src/features/Auth/OAuthCallback/Success.tsx
+++ b/src/features/Auth/OAuthCallback/Success.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Result, Text } from '@lobehub/ui/base-ui';
+import { FluentEmoji, Result, Text } from '@lobehub/ui';
import React, { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Auth/OAuthConsent/ClientError.tsx b/src/features/Auth/OAuthConsent/ClientError.tsx
index 2e04829ff81..01ae8847355 100644
--- a/src/features/Auth/OAuthConsent/ClientError.tsx
+++ b/src/features/Auth/OAuthConsent/ClientError.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Result, Text } from '@lobehub/ui/base-ui';
+import { FluentEmoji, Result, Text } from '@lobehub/ui';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx b/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx
index 66f566f07d2..1680ec7f06a 100644
--- a/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx
+++ b/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthConsent/Consent/index.tsx b/src/features/Auth/OAuthConsent/Consent/index.tsx
index f38e967954b..6b76626962d 100644
--- a/src/features/Auth/OAuthConsent/Consent/index.tsx
+++ b/src/features/Auth/OAuthConsent/Consent/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, Text } from '@lobehub/ui';
import React, { memo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthConsent/InteractionDetailsSkeleton.tsx b/src/features/Auth/OAuthConsent/InteractionDetailsSkeleton.tsx
index 7e9befdd225..7fa303b16ad 100644
--- a/src/features/Auth/OAuthConsent/InteractionDetailsSkeleton.tsx
+++ b/src/features/Auth/OAuthConsent/InteractionDetailsSkeleton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import AuthCard from '@/features/AuthCard';
diff --git a/src/features/Auth/OAuthConsent/Login.tsx b/src/features/Auth/OAuthConsent/Login.tsx
index 831c1150aa7..fe32392e79e 100644
--- a/src/features/Auth/OAuthConsent/Login.tsx
+++ b/src/features/Auth/OAuthConsent/Login.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Block, Button, Flexbox, Skeleton, Text } from '@lobehub/ui';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthConsent/OAuthApplicationLogo.tsx b/src/features/Auth/OAuthConsent/OAuthApplicationLogo.tsx
index db87a4691c5..c9e1db87141 100644
--- a/src/features/Auth/OAuthConsent/OAuthApplicationLogo.tsx
+++ b/src/features/Auth/OAuthConsent/OAuthApplicationLogo.tsx
@@ -1,6 +1,12 @@
-import { Center, Flexbox, FluentEmoji, Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Avatar,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ FluentEmoji,
+ Icon,
+} from '@lobehub/ui';
import { Link2Icon } from 'lucide-react';
import React, { memo } from 'react';
diff --git a/src/features/Auth/OAuthConsent/ThirdPartyNotice.tsx b/src/features/Auth/OAuthConsent/ThirdPartyNotice.tsx
index 4eb2400d40b..bde0bcdebd9 100644
--- a/src/features/Auth/OAuthConsent/ThirdPartyNotice.tsx
+++ b/src/features/Auth/OAuthConsent/ThirdPartyNotice.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Alert, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ExternalLinkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthDevice/DeviceCodeConfirm.tsx b/src/features/Auth/OAuthDevice/DeviceCodeConfirm.tsx
index b4dbcdfe04a..669156669e5 100644
--- a/src/features/Auth/OAuthDevice/DeviceCodeConfirm.tsx
+++ b/src/features/Auth/OAuthDevice/DeviceCodeConfirm.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, Text } from '@lobehub/ui';
import React, { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthDevice/DeviceCodeInput.tsx b/src/features/Auth/OAuthDevice/DeviceCodeInput.tsx
index 74e2d143ba3..e57a919197f 100644
--- a/src/features/Auth/OAuthDevice/DeviceCodeInput.tsx
+++ b/src/features/Auth/OAuthDevice/DeviceCodeInput.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, Input, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, Input, Text } from '@lobehub/ui';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/OAuthDevice/DeviceSuccess.tsx b/src/features/Auth/OAuthDevice/DeviceSuccess.tsx
index 12515507ca6..7c3721448f3 100644
--- a/src/features/Auth/OAuthDevice/DeviceSuccess.tsx
+++ b/src/features/Auth/OAuthDevice/DeviceSuccess.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Result, Text } from '@lobehub/ui/base-ui';
+import { FluentEmoji, Result, Text } from '@lobehub/ui';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/ResetPassword/ResetPasswordContent.tsx b/src/features/Auth/ResetPassword/ResetPasswordContent.tsx
index bb5173785b2..a6e77ede49a 100644
--- a/src/features/Auth/ResetPassword/ResetPasswordContent.tsx
+++ b/src/features/Auth/ResetPassword/ResetPasswordContent.tsx
@@ -1,6 +1,5 @@
-import { Block, Icon } from '@lobehub/ui';
-import { Button, InputPassword, Text } from '@lobehub/ui/base-ui';
-import { Form } from '@lobehub/ui/base-ui/form';
+import { Block, Button, Icon, InputPassword, Text } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import { Lock } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/ResetPassword/index.tsx b/src/features/Auth/ResetPassword/index.tsx
index 81b768783bf..607b1aac3da 100644
--- a/src/features/Auth/ResetPassword/index.tsx
+++ b/src/features/Auth/ResetPassword/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { ChevronLeftIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { Link, Navigate, useNavigate, useSearchParams } from 'react-router';
diff --git a/src/features/Auth/ResetPassword/useResetPassword.ts b/src/features/Auth/ResetPassword/useResetPassword.ts
index 5b20c717c58..672a6c0b38b 100644
--- a/src/features/Auth/ResetPassword/useResetPassword.ts
+++ b/src/features/Auth/ResetPassword/useResetPassword.ts
@@ -1,5 +1,5 @@
-import { toast } from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
+import { toast } from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/SignIn/DevSeedSignIn.tsx b/src/features/Auth/SignIn/DevSeedSignIn.tsx
index 7d345a6879b..103bfbf26d4 100644
--- a/src/features/Auth/SignIn/DevSeedSignIn.tsx
+++ b/src/features/Auth/SignIn/DevSeedSignIn.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
const SEED_SIGN_IN_PATH = '/api/dev/seed-sign-in';
diff --git a/src/features/Auth/SignIn/SignInEmailSentStep.tsx b/src/features/Auth/SignIn/SignInEmailSentStep.tsx
index dcc3728c35b..c863e1bcfae 100644
--- a/src/features/Auth/SignIn/SignInEmailSentStep.tsx
+++ b/src/features/Auth/SignIn/SignInEmailSentStep.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, Icon, Text } from '@lobehub/ui';
import { MailCheck, RefreshCw } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/SignIn/SignInEmailStep.tsx b/src/features/Auth/SignIn/SignInEmailStep.tsx
index d339625e83b..b54e616f03f 100644
--- a/src/features/Auth/SignIn/SignInEmailStep.tsx
+++ b/src/features/Auth/SignIn/SignInEmailStep.tsx
@@ -1,8 +1,16 @@
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Badge, Button, Divider, Input, Text } from '@lobehub/ui/base-ui';
-import { Form, type FormInstance } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import {
+ Alert,
+ Badge,
+ Button,
+ createStaticStyles,
+ Divider,
+ Flexbox,
+ Icon,
+ Input,
+ Text,
+} from '@lobehub/ui';
+import { Form, type FormInstance } from '@lobehub/ui/form';
import { Mail } from 'lucide-react';
import { type CSSProperties, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
@@ -137,7 +145,7 @@ export const SignInEmailStep = ({
(oAuthSSOProviders.length === 1 && !disableEmailPassword));
return showLastUsed ? (
<Badge
- color="var(--ant-color-info)"
+ color="var(--lobe-color-info)"
count={t('betterAuth.signin.lastUsed')}
key={provider}
style={{ display: 'block', width: '100%' }}
diff --git a/src/features/Auth/SignIn/SignInPasswordStep.tsx b/src/features/Auth/SignIn/SignInPasswordStep.tsx
index 39e2ebff7b1..083d59b264e 100644
--- a/src/features/Auth/SignIn/SignInPasswordStep.tsx
+++ b/src/features/Auth/SignIn/SignInPasswordStep.tsx
@@ -1,6 +1,5 @@
-import { Icon } from '@lobehub/ui';
-import { Button, InputPassword, Text } from '@lobehub/ui/base-ui';
-import { Form, type FormInstance } from '@lobehub/ui/base-ui/form';
+import { Button, Icon, InputPassword, Text } from '@lobehub/ui';
+import { Form, type FormInstance } from '@lobehub/ui/form';
import { Lock } from 'lucide-react';
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/SignIn/useSignIn.test.ts b/src/features/Auth/SignIn/useSignIn.test.ts
index f5a4b0d4c37..d893e74e26a 100644
--- a/src/features/Auth/SignIn/useSignIn.test.ts
+++ b/src/features/Auth/SignIn/useSignIn.test.ts
@@ -33,7 +33,7 @@ vi.mock('react-router', () => ({
useSearchParams: () => [{ get: mockSearchParamsGet }],
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: mockMessageError, success: mockMessageSuccess },
}));
@@ -89,7 +89,7 @@ const mockForm = vi.hoisted(() => ({
setValue: vi.fn(),
validate: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui/form', () => ({
+vi.mock('@lobehub/ui/form', () => ({
useForm: () => mockForm,
}));
diff --git a/src/features/Auth/SignIn/useSignIn.ts b/src/features/Auth/SignIn/useSignIn.ts
index d5bfea7f259..e1caaa0a217 100644
--- a/src/features/Auth/SignIn/useSignIn.ts
+++ b/src/features/Auth/SignIn/useSignIn.ts
@@ -1,5 +1,5 @@
-import { toast } from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
+import { toast } from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate, useSearchParams } from 'react-router';
diff --git a/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx b/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx
index c2e131d92f6..cbb5d8a829c 100644
--- a/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx
+++ b/src/features/Auth/SignUp/BetterAuthSignUpForm.tsx
@@ -1,9 +1,8 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Icon } from '@lobehub/ui';
-import { Button, Input, InputPassword, Text } from '@lobehub/ui/base-ui';
-import { Form } from '@lobehub/ui/base-ui/form';
+import { Button, Icon, Input, InputPassword, Text } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import { Lock, Mail } from 'lucide-react';
import { type CSSProperties, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/SignUp/useSignUp.test.ts b/src/features/Auth/SignUp/useSignUp.test.ts
index ca31e79bf75..a639eb9c0f9 100644
--- a/src/features/Auth/SignUp/useSignUp.test.ts
+++ b/src/features/Auth/SignUp/useSignUp.test.ts
@@ -15,7 +15,7 @@ vi.mock('react-router', () => ({
useSearchParams: () => [{ get: mockSearchParamsGet }],
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: mockMessageError, success: vi.fn() },
}));
diff --git a/src/features/Auth/SignUp/useSignUp.ts b/src/features/Auth/SignUp/useSignUp.ts
index 0f9cd0d74a0..d03c48604ba 100644
--- a/src/features/Auth/SignUp/useSignUp.ts
+++ b/src/features/Auth/SignUp/useSignUp.ts
@@ -1,5 +1,5 @@
-import { toast } from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
+import { toast } from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate, useSearchParams } from 'react-router';
diff --git a/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx b/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx
index 8d0cf4abf84..788562cc2dd 100644
--- a/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx
+++ b/src/features/Auth/VerifyEmail/VerifyEmailContent.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, Text } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Auth/VerifyEmail/index.tsx b/src/features/Auth/VerifyEmail/index.tsx
index 773ca27ae33..a89a2adf4cf 100644
--- a/src/features/Auth/VerifyEmail/index.tsx
+++ b/src/features/Auth/VerifyEmail/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { ChevronLeftIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { Link, useSearchParams } from 'react-router';
diff --git a/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts b/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts
index 14e07cf355e..f771e74b4b6 100644
--- a/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts
+++ b/src/features/Auth/VerifyEmail/useVerifyEmail.test.ts
@@ -9,7 +9,7 @@ vi.mock('@/libs/better-auth/auth-client', () => ({
sendVerificationEmail: mockSendVerificationEmail,
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
toast: { error: vi.fn(), success: vi.fn() },
}));
diff --git a/src/features/Auth/VerifyEmail/useVerifyEmail.ts b/src/features/Auth/VerifyEmail/useVerifyEmail.ts
index bddcef0fd52..3ef6d235bdf 100644
--- a/src/features/Auth/VerifyEmail/useVerifyEmail.ts
+++ b/src/features/Auth/VerifyEmail/useVerifyEmail.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AuthCard/index.tsx b/src/features/AuthCard/index.tsx
index e7b8d9c2e94..80432d1d0d5 100644
--- a/src/features/AuthCard/index.tsx
+++ b/src/features/AuthCard/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/AuthShell/AuthAgreement.test.tsx b/src/features/AuthShell/AuthAgreement.test.tsx
index 8f1920483cc..b58c2ca63aa 100644
--- a/src/features/AuthShell/AuthAgreement.test.tsx
+++ b/src/features/AuthShell/AuthAgreement.test.tsx
@@ -1,5 +1,5 @@
-import * as BaseUI from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
+import * as BaseUI from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { act, fireEvent, render, renderHook, screen, waitFor } from '@testing-library/react';
import type { ReactElement } from 'react';
import { afterEach, describe, expect, it, vi } from 'vitest';
diff --git a/src/features/AuthShell/AuthAgreement.tsx b/src/features/AuthShell/AuthAgreement.tsx
index 3b488cac61a..9366ea92019 100644
--- a/src/features/AuthShell/AuthAgreement.tsx
+++ b/src/features/AuthShell/AuthAgreement.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Checkbox, confirmModal, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Checkbox, confirmModal, createStaticStyles, Text } from '@lobehub/ui';
import { memo, useCallback, useEffect, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/AuthShell/AuthContainer.tsx b/src/features/AuthShell/AuthContainer.tsx
index 54fb8bd7143..192825f01d2 100644
--- a/src/features/AuthShell/AuthContainer.tsx
+++ b/src/features/AuthShell/AuthContainer.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Center, cx, Divider, Flexbox } from '@lobehub/ui';
import { type FC, type PropsWithChildren } from 'react';
import { ProductLogo } from '@/components/Branding';
diff --git a/src/features/AuthShell/AuthFooterLinks.tsx b/src/features/AuthShell/AuthFooterLinks.tsx
index 7cdbcfa98dd..036a7ad3c31 100644
--- a/src/features/AuthShell/AuthFooterLinks.tsx
+++ b/src/features/AuthShell/AuthFooterLinks.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AuthShell/AuthLangButton.tsx b/src/features/AuthShell/AuthLangButton.tsx
index 894bcbcd6fd..771ffa87fde 100644
--- a/src/features/AuthShell/AuthLangButton.tsx
+++ b/src/features/AuthShell/AuthLangButton.tsx
@@ -1,7 +1,7 @@
'use client';
import { DropdownMenu, type DropdownMenuCheckboxItem, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Text } from '@lobehub/ui';
import { GlobeIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/AuthShell/AuthLocale.tsx b/src/features/AuthShell/AuthLocale.tsx
index 6b8fd322cd2..4b5a56a8c6c 100644
--- a/src/features/AuthShell/AuthLocale.tsx
+++ b/src/features/AuthShell/AuthLocale.tsx
@@ -1,8 +1,6 @@
'use client';
-import { ConfigProvider } from 'antd';
-import { memo, type PropsWithChildren, useEffect, useState } from 'react';
-import { isRtlLang } from 'rtl-detect';
+import { memo, type PropsWithChildren, useState } from 'react';
import { createAuthI18n } from './createAuthI18n';
@@ -12,39 +10,12 @@ interface AuthLocaleProps extends PropsWithChildren {
const AuthLocale = memo<AuthLocaleProps>(({ children, defaultLang }) => {
const [i18n] = useState(() => createAuthI18n(defaultLang));
- const [lang, setLang] = useState(defaultLang ?? 'en-US');
if (!i18n.instance.isInitialized) {
i18n.init();
}
- useEffect(() => {
- const handleLang = (lng: string) => {
- setLang((prev) => (prev === lng ? prev : lng));
- };
-
- i18n.instance.on('languageChanged', handleLang);
- return () => {
- i18n.instance.off('languageChanged', handleLang);
- };
- }, [i18n]);
-
- const documentDir = isRtlLang(lang) ? 'rtl' : 'ltr';
-
- return (
- <ConfigProvider
- direction={documentDir}
- theme={{
- components: {
- Button: {
- contentFontSizeSM: 12,
- },
- },
- }}
- >
- {children}
- </ConfigProvider>
- );
+ return children;
});
AuthLocale.displayName = 'AuthLocale';
diff --git a/src/features/AuthShell/AuthShell.tsx b/src/features/AuthShell/AuthShell.tsx
index 828f8bc1aea..efaa1f886b2 100644
--- a/src/features/AuthShell/AuthShell.tsx
+++ b/src/features/AuthShell/AuthShell.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ModalHost } from '@lobehub/ui/base-ui';
+import { ModalHost } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
import BusinessAuthProvider from '@/business/client/BusinessAuthProvider';
diff --git a/src/features/AuthShell/AuthThemeButton.tsx b/src/features/AuthShell/AuthThemeButton.tsx
index 7bfe0a9951a..6356a8e27fb 100644
--- a/src/features/AuthShell/AuthThemeButton.tsx
+++ b/src/features/AuthShell/AuthThemeButton.tsx
@@ -1,7 +1,7 @@
'use client';
import { DropdownMenu, type DropdownMenuProps, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Monitor, Moon, Sun } from 'lucide-react';
import { useTheme as useNextThemesTheme } from 'next-themes';
import { memo, useMemo } from 'react';
diff --git a/src/features/AuthShell/AuthThemeLite.tsx b/src/features/AuthShell/AuthThemeLite.tsx
index 2a70f65bc59..f7fde34ab97 100644
--- a/src/features/AuthShell/AuthThemeLite.tsx
+++ b/src/features/AuthShell/AuthThemeLite.tsx
@@ -1,16 +1,15 @@
'use client';
-import 'antd/dist/reset.css';
+import '@lobehub/ui/theme.css';
+import '@lobehub/ui/global.css';
+import '@lobehub/ui/style.css';
-import { ConfigProvider, ThemeProvider } from '@lobehub/ui';
-import { ToastHost } from '@lobehub/ui/base-ui';
-import { App } from 'antd';
+import { ConfigProvider, ToastHost } from '@lobehub/ui';
import { domMax, LazyMotion } from 'motion/react';
import * as m from 'motion/react-m';
import { type PropsWithChildren } from 'react';
import { memo } from 'react';
-import { useIsDark } from '@/hooks/useIsDark';
import Image from '@/libs/next/Image';
import Link from '@/libs/next/Link';
@@ -19,9 +18,6 @@ interface AuthThemeLiteProps extends PropsWithChildren {
}
const AuthThemeLite = memo<AuthThemeLiteProps>(({ children, globalCDN }) => {
- const isDark = useIsDark();
- const currentAppearance = isDark ? 'dark' : 'light';
-
return (
<ConfigProvider
motion={m}
@@ -32,21 +28,10 @@ const AuthThemeLite = memo<AuthThemeLiteProps>(({ children, globalCDN }) => {
proxy: globalCDN ? 'unpkg' : undefined,
}}
>
- <ThemeProvider
- appearance={currentAppearance}
- className={'auth-layout'}
- defaultAppearance={currentAppearance}
- defaultThemeMode={currentAppearance}
- style={{ height: '100%' }}
- theme={{
- cssVar: { key: 'lobe-vars' },
- }}
- >
- <App style={{ height: '100%' }}>
- <LazyMotion features={domMax}>{children}</LazyMotion>
- <ToastHost />
- </App>
- </ThemeProvider>
+ <div className={'auth-layout'} style={{ height: '100%' }}>
+ <LazyMotion features={domMax}>{children}</LazyMotion>
+ <ToastHost />
+ </div>
</ConfigProvider>
);
});
diff --git a/src/features/AuthShell/style.ts b/src/features/AuthShell/style.ts
index 5d62d90c82c..febee528131 100644
--- a/src/features/AuthShell/style.ts
+++ b/src/features/AuthShell/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
innerContainerDark: css`
diff --git a/src/features/BackgroundActivity/ActivityTable.tsx b/src/features/BackgroundActivity/ActivityTable.tsx
index 3ac04303bb6..5666e5aa71a 100644
--- a/src/features/BackgroundActivity/ActivityTable.tsx
+++ b/src/features/BackgroundActivity/ActivityTable.tsx
@@ -1,6 +1,13 @@
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Empty,
+ Flexbox,
+ Icon,
+ Skeleton,
+} from '@lobehub/ui';
import {
ChevronRightIcon,
CpuIcon,
diff --git a/src/features/BackgroundActivity/Monitor.tsx b/src/features/BackgroundActivity/Monitor.tsx
index 3d6dc18e0f5..dcf88ba2862 100644
--- a/src/features/BackgroundActivity/Monitor.tsx
+++ b/src/features/BackgroundActivity/Monitor.tsx
@@ -1,5 +1,5 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/BackgroundActivity/ProcessExplorer/buildTree.ts b/src/features/BackgroundActivity/ProcessExplorer/buildTree.ts
index 432d034d67b..efb84295638 100644
--- a/src/features/BackgroundActivity/ProcessExplorer/buildTree.ts
+++ b/src/features/BackgroundActivity/ProcessExplorer/buildTree.ts
@@ -1,5 +1,5 @@
import type { AppProcessRow } from '@lobechat/electron-client-ipc';
-import type { TreeDataNode } from '@lobehub/ui/base-ui';
+import type { TreeDataNode } from '@lobehub/ui';
import type { Activity, ProcessRow } from '../state';
diff --git a/src/features/BackgroundActivity/ProcessExplorer/index.tsx b/src/features/BackgroundActivity/ProcessExplorer/index.tsx
index 09c9693355c..b47247131cb 100644
--- a/src/features/BackgroundActivity/ProcessExplorer/index.tsx
+++ b/src/features/BackgroundActivity/ProcessExplorer/index.tsx
@@ -1,14 +1,6 @@
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import {
- Input,
- showContextMenu,
- Skeleton,
- toast,
- Tree,
- type TreeDataNode,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox, Icon } from '@lobehub/ui';
+import { Input, showContextMenu, Skeleton, toast, Tree, type TreeDataNode } from '@lobehub/ui';
import {
AppWindowIcon,
BoxIcon,
diff --git a/src/features/BackgroundActivity/ProcessExplorer/style.ts b/src/features/BackgroundActivity/ProcessExplorer/style.ts
index 3a4a589c459..8edebe613ab 100644
--- a/src/features/BackgroundActivity/ProcessExplorer/style.ts
+++ b/src/features/BackgroundActivity/ProcessExplorer/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
body: css`
diff --git a/src/features/BackgroundActivity/StopButton.tsx b/src/features/BackgroundActivity/StopButton.tsx
index bdccab92e70..e6de23456cb 100644
--- a/src/features/BackgroundActivity/StopButton.tsx
+++ b/src/features/BackgroundActivity/StopButton.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, toast } from '@lobehub/ui';
import { CircleStopIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/BackgroundActivity/TopicSection.tsx b/src/features/BackgroundActivity/TopicSection.tsx
index c4adc762a72..f107244b895 100644
--- a/src/features/BackgroundActivity/TopicSection.tsx
+++ b/src/features/BackgroundActivity/TopicSection.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { RefreshCwIcon, SquareTerminalIcon, TriangleAlertIcon } from 'lucide-react';
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Billboard/Carousel.tsx b/src/features/Billboard/Carousel.tsx
index da768ed7ebf..24f2fcd5075 100644
--- a/src/features/Billboard/Carousel.tsx
+++ b/src/features/Billboard/Carousel.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, Carousel } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ Carousel,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Tooltip,
+} from '@lobehub/ui';
import { X } from 'lucide-react';
import * as m from 'motion/react-m';
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/Billboard/MenuItems.tsx b/src/features/Billboard/MenuItems.tsx
index 919532398ac..506fcc72967 100644
--- a/src/features/Billboard/MenuItems.tsx
+++ b/src/features/Billboard/MenuItems.tsx
@@ -1,4 +1,4 @@
-import type { MenuProps } from '@lobehub/ui';
+import type { DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
import { Megaphone } from 'lucide-react';
import { useMemo } from 'react';
@@ -10,7 +10,7 @@ import { useServerConfigStore } from '@/store/serverConfig';
import { billboardDismissKey } from './index';
import { resolveBillboardTitle } from './locale';
-export const useBillboardMenuItems = (): MenuProps['items'] => {
+export const useBillboardMenuItems = (): DropdownItem[] => {
const billboard = useServerConfigStore((s) => s.billboard);
const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);
const { i18n } = useTranslation();
diff --git a/src/features/ChatInput/ActionBar/AgentMode/index.tsx b/src/features/ChatInput/ActionBar/AgentMode/index.tsx
index 38371f66230..a3fc3e4d44f 100644
--- a/src/features/ChatInput/ActionBar/AgentMode/index.tsx
+++ b/src/features/ChatInput/ActionBar/AgentMode/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
import {
ChevronDownIcon,
FolderIcon,
diff --git a/src/features/ChatInput/ActionBar/Clear/index.tsx b/src/features/ChatInput/ActionBar/Clear/index.tsx
index d948e2a7fea..ecf4d0723c0 100644
--- a/src/features/ChatInput/ActionBar/Clear/index.tsx
+++ b/src/features/ChatInput/ActionBar/Clear/index.tsx
@@ -1,4 +1,4 @@
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import { Eraser } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/History/Controls.tsx b/src/features/ChatInput/ActionBar/History/Controls.tsx
index 7b086f5bc27..9fcbb2a59d6 100644
--- a/src/features/ChatInput/ActionBar/History/Controls.tsx
+++ b/src/features/ChatInput/ActionBar/History/Controls.tsx
@@ -1,5 +1,5 @@
-import { SliderWithInput, Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, useForm } from '@lobehub/ui/base-ui/form';
+import { SliderWithInput, Switch } from '@lobehub/ui';
+import { Form, type FormFieldProps, useForm } from '@lobehub/ui/form';
import { debounce } from 'es-toolkit/compat';
import { useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Knowledge/useControls.tsx b/src/features/ChatInput/ActionBar/Knowledge/useControls.tsx
index 884fb44271a..f5bd607ba9c 100644
--- a/src/features/ChatInput/ActionBar/Knowledge/useControls.tsx
+++ b/src/features/ChatInput/ActionBar/Knowledge/useControls.tsx
@@ -1,6 +1,5 @@
import { type ItemType } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { LibraryBig } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Memory/Controls.tsx b/src/features/ChatInput/ActionBar/Memory/Controls.tsx
index 015d038dbe1..a38c988e8ea 100644
--- a/src/features/ChatInput/ActionBar/Memory/Controls.tsx
+++ b/src/features/ChatInput/ActionBar/Memory/Controls.tsx
@@ -1,8 +1,6 @@
import { type UserMemoryEffort } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Center, createStaticStyles, cssVar, cx, Divider, Flexbox, Icon } from '@lobehub/ui';
import { BrainOffIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import { type LucideIcon } from 'lucide-react';
import { Brain } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Memory/index.tsx b/src/features/ChatInput/ActionBar/Memory/index.tsx
index b68cb9907c7..e5a7c10eca9 100644
--- a/src/features/ChatInput/ActionBar/Memory/index.tsx
+++ b/src/features/ChatInput/ActionBar/Memory/index.tsx
@@ -1,5 +1,5 @@
+import { cssVar } from '@lobehub/ui';
import { BrainOffIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import { Brain } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Mention/index.tsx b/src/features/ChatInput/ActionBar/Mention/index.tsx
index 4991e2ffe63..7016430e35b 100644
--- a/src/features/ChatInput/ActionBar/Mention/index.tsx
+++ b/src/features/ChatInput/ActionBar/Mention/index.tsx
@@ -1,6 +1,6 @@
import { agentDisplayName } from '@lobechat/types';
import { type ItemType } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { AtSign } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Model/SelectorMenu.tsx b/src/features/ChatInput/ActionBar/Model/SelectorMenu.tsx
index 5d8566256ea..1bd37e3ff14 100644
--- a/src/features/ChatInput/ActionBar/Model/SelectorMenu.tsx
+++ b/src/features/ChatInput/ActionBar/Model/SelectorMenu.tsx
@@ -1,4 +1,6 @@
import {
+ createStaticStyles,
+ cssVar,
DropdownMenuItem,
DropdownMenuItemContent,
DropdownMenuItemExtra,
@@ -12,8 +14,7 @@ import {
DropdownMenuSubmenuTrigger,
DropdownMenuTrigger,
renderDropdownMenuItems,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Model/index.tsx b/src/features/ChatInput/ActionBar/Model/index.tsx
index a8feab31a0f..abadb6cfecd 100644
--- a/src/features/ChatInput/ActionBar/Model/index.tsx
+++ b/src/features/ChatInput/ActionBar/Model/index.tsx
@@ -1,5 +1,4 @@
-import { Tooltip } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Params/Controls.tsx b/src/features/ChatInput/ActionBar/Params/Controls.tsx
index eb6471d4ef3..7d2fff56b6a 100644
--- a/src/features/ChatInput/ActionBar/Params/Controls.tsx
+++ b/src/features/ChatInput/ActionBar/Params/Controls.tsx
@@ -4,10 +4,19 @@ import {
resolveSubAgentModel,
} from '@lobechat/const';
import { resolveEffectiveReasoningChatConfig } from '@lobechat/model-runtime/utils/modelExtendParams';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Select, SliderWithInput, Spin, Switch, TextArea } from '@lobehub/ui/base-ui';
-import { useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Select,
+ SliderWithInput,
+ Spin,
+ Switch,
+ TextArea,
+} from '@lobehub/ui';
+import { useForm } from '@lobehub/ui/form';
import { debounce } from 'es-toolkit/compat';
import isEqual from 'fast-deep-equal';
import { ChevronDown, ChevronUp } from 'lucide-react';
diff --git a/src/features/ChatInput/ActionBar/Plus/index.tsx b/src/features/ChatInput/ActionBar/Plus/index.tsx
index 53769755a90..b87b377437a 100644
--- a/src/features/ChatInput/ActionBar/Plus/index.tsx
+++ b/src/features/ChatInput/ActionBar/Plus/index.tsx
@@ -1,10 +1,8 @@
'use client';
import { validateVideoFileSize } from '@lobechat/utils/client';
-import { Icon, Popover } from '@lobehub/ui';
-import { toast, Upload } from '@lobehub/ui/base-ui';
+import { css, cssVar, cx, Icon, Popover, toast, Upload } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { css, cssVar, cx } from 'antd-style';
import {
CheckIcon,
ChevronRight,
diff --git a/src/features/ChatInput/ActionBar/Search/Controls.tsx b/src/features/ChatInput/ActionBar/Search/Controls.tsx
index 76127bc2f70..722dba1c288 100644
--- a/src/features/ChatInput/ActionBar/Search/Controls.tsx
+++ b/src/features/ChatInput/ActionBar/Search/Controls.tsx
@@ -1,7 +1,5 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Center, createStaticStyles, cssVar, cx, Divider, Flexbox, Icon } from '@lobehub/ui';
import { GlobeOffIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import { type LucideIcon } from 'lucide-react';
import { SparkleIcon } from 'lucide-react';
import { memo, useEffect } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx b/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx
index 6719770cf00..b7ff9b82fee 100644
--- a/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx
+++ b/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx b/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx
index 4fd07f1ee5b..2af0c54113b 100644
--- a/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx
+++ b/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx
@@ -1,6 +1,5 @@
-import { TooltipGroup } from '@lobehub/ui';
-import { Select, type SelectProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, TooltipGroup } from '@lobehub/ui';
+import { Select, type SelectProps } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx b/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx
index 2d76c930180..b76d1ae1351 100644
--- a/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx
+++ b/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx
@@ -1,6 +1,5 @@
import { Exa, Google } from '@lobehub/icons';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Switch } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Switch } from '@lobehub/ui';
import { Search } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Search/index.tsx b/src/features/ChatInput/ActionBar/Search/index.tsx
index aa07d2ef02b..9f5a1936c50 100644
--- a/src/features/ChatInput/ActionBar/Search/index.tsx
+++ b/src/features/ChatInput/ActionBar/Search/index.tsx
@@ -1,5 +1,5 @@
+import { cssVar } from '@lobehub/ui';
import { GlobeOffIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import { Globe } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Token/TokenDetails.tsx b/src/features/ChatInput/ActionBar/Token/TokenDetails.tsx
index ce604bca3fc..de42036f7bb 100644
--- a/src/features/ChatInput/ActionBar/Token/TokenDetails.tsx
+++ b/src/features/ChatInput/ActionBar/Token/TokenDetails.tsx
@@ -1,5 +1,4 @@
-import { Center, Flexbox, Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Flexbox, Tooltip } from '@lobehub/ui';
import numeral from 'numeral';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Token/TokenProgress.tsx b/src/features/ChatInput/ActionBar/Token/TokenProgress.tsx
index 2bda01d3db9..d3d9386ad80 100644
--- a/src/features/ChatInput/ActionBar/Token/TokenProgress.tsx
+++ b/src/features/ChatInput/ActionBar/Token/TokenProgress.tsx
@@ -1,7 +1,5 @@
import { formatUsageValue } from '@lobechat/utils';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Divider, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
interface TokenProgressItem {
diff --git a/src/features/ChatInput/ActionBar/Tools/ComposioServerItem.tsx b/src/features/ChatInput/ActionBar/Tools/ComposioServerItem.tsx
index 0c6e03442b0..a5870148a1d 100644
--- a/src/features/ChatInput/ActionBar/Tools/ComposioServerItem.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/ComposioServerItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Checkbox, Spin } from '@lobehub/ui/base-ui';
+import { Checkbox, Flexbox, Icon, Spin, stopPropagation } from '@lobehub/ui';
import { SquareArrowOutUpRight } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Tools/ComposioSkillIcon.tsx b/src/features/ChatInput/ActionBar/Tools/ComposioSkillIcon.tsx
index c53c597183a..9039ab9e61f 100644
--- a/src/features/ChatInput/ActionBar/Tools/ComposioSkillIcon.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/ComposioSkillIcon.tsx
@@ -1,6 +1,5 @@
import { type ComposioAppType } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { memo } from 'react';
export const SKILL_ICON_SIZE = 20;
diff --git a/src/features/ChatInput/ActionBar/Tools/LobehubSkillIcon.tsx b/src/features/ChatInput/ActionBar/Tools/LobehubSkillIcon.tsx
index e7f447fcb11..076771f9d4b 100644
--- a/src/features/ChatInput/ActionBar/Tools/LobehubSkillIcon.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/LobehubSkillIcon.tsx
@@ -1,6 +1,5 @@
import { type LobehubSkillProviderType } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { memo } from 'react';
export const SKILL_ICON_SIZE = 20;
diff --git a/src/features/ChatInput/ActionBar/Tools/LobehubSkillServerItem.tsx b/src/features/ChatInput/ActionBar/Tools/LobehubSkillServerItem.tsx
index d77a19b4f6f..e236028e385 100644
--- a/src/features/ChatInput/ActionBar/Tools/LobehubSkillServerItem.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/LobehubSkillServerItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Checkbox, Spin } from '@lobehub/ui/base-ui';
+import { Checkbox, Flexbox, Icon, Spin, stopPropagation } from '@lobehub/ui';
import { SquareArrowOutUpRight } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Tools/MarketAgentSkillPopoverContent.tsx b/src/features/ChatInput/ActionBar/Tools/MarketAgentSkillPopoverContent.tsx
index 7f4d2823789..8ea9caed32c 100644
--- a/src/features/ChatInput/ActionBar/Tools/MarketAgentSkillPopoverContent.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/MarketAgentSkillPopoverContent.tsx
@@ -1,4 +1,4 @@
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { memo } from 'react';
import { useDiscoverStore } from '@/store/discover';
diff --git a/src/features/ChatInput/ActionBar/Tools/MarketSkillIcon.tsx b/src/features/ChatInput/ActionBar/Tools/MarketSkillIcon.tsx
index 1a3ce21823f..6ee1430c497 100644
--- a/src/features/ChatInput/ActionBar/Tools/MarketSkillIcon.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/MarketSkillIcon.tsx
@@ -1,4 +1,4 @@
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { memo } from 'react';
import { useDiscoverStore } from '@/store/discover';
diff --git a/src/features/ChatInput/ActionBar/Tools/PopoverContent.tsx b/src/features/ChatInput/ActionBar/Tools/PopoverContent.tsx
index 2dbaba749a0..8cadb1c2ca3 100644
--- a/src/features/ChatInput/ActionBar/Tools/PopoverContent.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/PopoverContent.tsx
@@ -1,6 +1,13 @@
import { type ItemType } from '@lobehub/ui';
-import { Flexbox, Icon, SearchBar, stopPropagation, usePopoverContext } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ SearchBar,
+ stopPropagation,
+ usePopoverContext,
+} from '@lobehub/ui';
import { Pin, Settings, Store, Zap } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Tools/SkillActivateMode.tsx b/src/features/ChatInput/ActionBar/Tools/SkillActivateMode.tsx
index 3bde51e44fe..b480db56177 100644
--- a/src/features/ChatInput/ActionBar/Tools/SkillActivateMode.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/SkillActivateMode.tsx
@@ -1,5 +1,4 @@
-import { Icon, Tooltip } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Icon, Tabs, Tooltip } from '@lobehub/ui';
import { SlidersHorizontal, Sparkles } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx b/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx
index 64fc23c918b..5ac95ad8dda 100644
--- a/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, Suspense } from 'react';
import DebugNode from '@/components/DebugNode';
diff --git a/src/features/ChatInput/ActionBar/Tools/ToolItemDetailPopover.tsx b/src/features/ChatInput/ActionBar/Tools/ToolItemDetailPopover.tsx
index 2e813780bc8..145f3de589c 100644
--- a/src/features/ChatInput/ActionBar/Tools/ToolItemDetailPopover.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/ToolItemDetailPopover.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/ChatInput/ActionBar/Tools/ToolsList.tsx b/src/features/ChatInput/ActionBar/Tools/ToolsList.tsx
index 65b773745f1..6a683eae364 100644
--- a/src/features/ChatInput/ActionBar/Tools/ToolsList.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/ToolsList.tsx
@@ -1,7 +1,5 @@
import type { ItemType } from '@lobehub/ui';
-import { Flexbox, Icon, Popover } from '@lobehub/ui';
-import { Divider, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Divider, Flexbox, Icon, Popover, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { Fragment, isValidElement, memo } from 'react';
diff --git a/src/features/ChatInput/ActionBar/Tools/useControls.tsx b/src/features/ChatInput/ActionBar/Tools/useControls.tsx
index 2cecdee2d69..8304bfe2b77 100644
--- a/src/features/ChatInput/ActionBar/Tools/useControls.tsx
+++ b/src/features/ChatInput/ActionBar/Tools/useControls.tsx
@@ -3,10 +3,21 @@ import { WebBrowsingManifest } from '@lobechat/builtin-tool-web-browsing';
import { getConnectorCatalog, RECOMMENDED_SKILLS, RecommendedSkillType } from '@lobechat/const';
import { type AgentPluginMode, getDisabledPluginIds } from '@lobechat/types';
import type { ItemType } from '@lobehub/ui';
-import { Icon, Popover, SearchBar, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Avatar, confirmModal, Switch, Tag } from '@lobehub/ui/base-ui';
+import {
+ Avatar,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Icon,
+ Popover,
+ SearchBar,
+ stopPropagation,
+ Switch,
+ Tag,
+ Tooltip,
+} from '@lobehub/ui';
import { McpIcon, SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import isEqual from 'fast-deep-equal';
import {
BadgeCheck,
diff --git a/src/features/ChatInput/ActionBar/Upload/index.tsx b/src/features/ChatInput/ActionBar/Upload/index.tsx
index be873f38bd0..09d59afb75b 100644
--- a/src/features/ChatInput/ActionBar/Upload/index.tsx
+++ b/src/features/ChatInput/ActionBar/Upload/index.tsx
@@ -1,7 +1,5 @@
import { validateVideoFileSize } from '@lobechat/utils/client';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { toast, Upload } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { css, cx, Icon, toast, Tooltip, Upload } from '@lobehub/ui';
import { FileUp, FolderUp, ImageUp, Paperclip } from 'lucide-react';
import { memo, Suspense, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ActionBar/components/Action.tsx b/src/features/ChatInput/ActionBar/components/Action.tsx
index 8f868942322..8d83608a8a7 100644
--- a/src/features/ChatInput/ActionBar/components/Action.tsx
+++ b/src/features/ChatInput/ActionBar/components/Action.tsx
@@ -1,7 +1,6 @@
'use client';
-import type { PopoverTrigger } from '@lobehub/ui';
-import { ActionIcon, type ActionIconProps } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps, type PopoverTrigger } from '@lobehub/ui';
import { isUndefined } from 'es-toolkit/compat';
import { memo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx b/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx
index ec5c3723871..f11b5b9453a 100644
--- a/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx
+++ b/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx
@@ -6,10 +6,13 @@ import {
type DropdownMenuProps,
type MenuInfo,
type MenuItemType,
- type MenuProps,
type PopoverTrigger,
} from '@lobehub/ui';
import {
+ createGlobalStyle,
+ createStaticStyles,
+ cssVar,
+ cx,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
@@ -17,7 +20,6 @@ import {
DropdownMenuTrigger,
renderDropdownMenuItems,
} from '@lobehub/ui';
-import { createGlobalStyle, createStaticStyles, cssVar, cx } from 'antd-style';
import { type CSSProperties, type ReactNode } from 'react';
import {
isValidElement,
@@ -38,7 +40,7 @@ import { type MenuOpenChangeDetails, shouldVetoMenuClose } from './menuCloseVeto
const styles = createStaticStyles(({ css, cssVar }) => ({
dropdownMenu: css`
.ant-avatar {
- margin-inline-end: var(--ant-margin-xs);
+ margin-inline-end: var(--lobe-margin-xs);
}
`,
trigger: css`
@@ -170,10 +172,10 @@ const MenuItemsHost = memo<MenuItemsHostProps>(({ close, decorate, useItems }) =
MenuItemsHost.displayName = 'ActionDropdownMenuItemsHost';
-type ActionDropdownMenu = Omit<
- Pick<MenuProps<ActionDropdownMenuItem>, 'className' | 'onClick' | 'style'>,
- 'items'
-> & {
+type ActionDropdownMenu = {
+ className?: string;
+ onClick?: (info: MenuInfo) => void;
+ style?: CSSProperties;
items?: ActionDropdownMenuItems | (() => ActionDropdownMenuItems);
/**
* Hook form of `items`, invoked from inside the popup so it only runs while the
diff --git a/src/features/ChatInput/ActionBar/components/ActionPopover.tsx b/src/features/ChatInput/ActionBar/components/ActionPopover.tsx
index 2d7b6c10b01..ad4b29e5f23 100644
--- a/src/features/ChatInput/ActionBar/components/ActionPopover.tsx
+++ b/src/features/ChatInput/ActionBar/components/ActionPopover.tsx
@@ -1,9 +1,7 @@
'use client';
import { type PopoverProps } from '@lobehub/ui';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Popover, Spin } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, Suspense } from 'react';
diff --git a/src/features/ChatInput/ActionBar/components/CheckboxWithLoading.tsx b/src/features/ChatInput/ActionBar/components/CheckboxWithLoading.tsx
index e733db2b257..d4d7367436e 100644
--- a/src/features/ChatInput/ActionBar/components/CheckboxWithLoading.tsx
+++ b/src/features/ChatInput/ActionBar/components/CheckboxWithLoading.tsx
@@ -1,5 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Checkbox, Spin } from '@lobehub/ui/base-ui';
+import { Center, Checkbox, Flexbox, Spin } from '@lobehub/ui';
import { type CSSProperties, type ReactNode } from 'react';
import { memo, useState } from 'react';
diff --git a/src/features/ChatInput/ChatInputNotice/Content.tsx b/src/features/ChatInput/ChatInputNotice/Content.tsx
index 3a90bae558b..2c9be9d60fd 100644
--- a/src/features/ChatInput/ChatInputNotice/Content.tsx
+++ b/src/features/ChatInput/ChatInputNotice/Content.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Alert, Button, Popover, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Alert,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Popover,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { AlertTriangle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx
index e40f6244bb5..bf681c7ae6a 100644
--- a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx
+++ b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.test.tsx
@@ -82,7 +82,7 @@ vi.mock('@lobechat/const', () => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: toastError },
}));
diff --git a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts
index 3ead607e635..47b7b03169e 100644
--- a/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts
+++ b/src/features/ChatInput/ChatInputNotice/useChatInputNotice.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/ApprovalMode.tsx b/src/features/ChatInput/ControlBar/ApprovalMode.tsx
index 4836041a1c5..94372cc8d47 100644
--- a/src/features/ChatInput/ControlBar/ApprovalMode.tsx
+++ b/src/features/ChatInput/ControlBar/ApprovalMode.tsx
@@ -1,7 +1,13 @@
-import { type MenuProps } from '@lobehub/ui';
-import { Center, DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { type DropdownItem } from '@lobehub/ui';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tooltip,
+} from '@lobehub/ui';
import { Check, ChevronDown, Hand, ListChecks, Zap } from 'lucide-react';
import { type LucideIcon } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
@@ -97,7 +103,7 @@ const ModeSelector = memo(() => {
);
const menuItems = useCallback(
- (): MenuProps['items'] => [
+ (): DropdownItem[] => [
{
extra: approvalMode === 'auto-run' ? <Icon icon={Check} /> : undefined,
key: 'auto-run',
diff --git a/src/features/ChatInput/ControlBar/BranchSwitcher.tsx b/src/features/ChatInput/ControlBar/BranchSwitcher.tsx
index 0e730fc2fb9..ea957b7f682 100644
--- a/src/features/ChatInput/ControlBar/BranchSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/BranchSwitcher.tsx
@@ -1,7 +1,10 @@
import type { DeviceGitWorktreeListItem } from '@lobechat/types';
-import { copyToClipboard, Icon, Tooltip } from '@lobehub/ui';
import {
confirmModal,
+ copyToClipboard,
+ createStaticStyles,
+ cssVar,
+ cx,
DropdownMenuFooter,
DropdownMenuHeader,
DropdownMenuItem,
@@ -11,10 +14,11 @@ import {
DropdownMenuRoot,
DropdownMenuScrollViewport,
DropdownMenuTrigger,
+ Icon,
Input,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+ Tooltip,
+} from '@lobehub/ui';
import {
CheckIcon,
CopyIcon,
diff --git a/src/features/ChatInput/ControlBar/CloudRepoSwitcher.tsx b/src/features/ChatInput/ControlBar/CloudRepoSwitcher.tsx
index 4ac594b6d9d..e7e6a77bd0c 100644
--- a/src/features/ChatInput/ControlBar/CloudRepoSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/CloudRepoSwitcher.tsx
@@ -1,8 +1,7 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
import { CheckIcon, ChevronDownIcon, SquircleDashed } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/CreateBranchModal.tsx b/src/features/ChatInput/ControlBar/CreateBranchModal.tsx
index b16b8e452ff..f1a25393ab7 100644
--- a/src/features/ChatInput/ControlBar/CreateBranchModal.tsx
+++ b/src/features/ChatInput/ControlBar/CreateBranchModal.tsx
@@ -1,15 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import {
- Button,
- createModal,
- Input,
- type ModalInstance,
- Text,
- useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
+import { Button, createModal, Input, type ModalInstance, Text, useModalContext } from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/CreateWorktreeModal.tsx b/src/features/ChatInput/ControlBar/CreateWorktreeModal.tsx
index 7ff4b0675e4..be549603341 100644
--- a/src/features/ChatInput/ControlBar/CreateWorktreeModal.tsx
+++ b/src/features/ChatInput/ControlBar/CreateWorktreeModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
+import { cssVar, Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -10,8 +10,7 @@ import {
Skeleton,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { DicesIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/ChatInput/ControlBar/DashedFolderIcon.tsx b/src/features/ChatInput/ControlBar/DashedFolderIcon.tsx
index 3c789e3312e..7d465101539 100644
--- a/src/features/ChatInput/ControlBar/DashedFolderIcon.tsx
+++ b/src/features/ChatInput/ControlBar/DashedFolderIcon.tsx
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
/**
* lucide-react 1.47 has no FolderDashed, and a strokeDasharray on the stock
diff --git a/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx b/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx
index ec7628ae975..33a294fafca 100644
--- a/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx
+++ b/src/features/ChatInput/ControlBar/DeviceOptionRow.tsx
@@ -1,9 +1,7 @@
'use client';
import type { DeviceListItem } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Button, Popover } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Icon, Popover } from '@lobehub/ui';
import { RefreshCwIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/DirIcon.tsx b/src/features/ChatInput/ControlBar/DirIcon.tsx
index 58e9791fcb7..5322847a39c 100644
--- a/src/features/ChatInput/ControlBar/DirIcon.tsx
+++ b/src/features/ChatInput/ControlBar/DirIcon.tsx
@@ -1,6 +1,5 @@
import { Github } from '@lobehub/icons';
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { FolderGit2Icon, FolderIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/ControlBar/GitStatus.tsx b/src/features/ChatInput/ControlBar/GitStatus.tsx
index a4e1781d76c..889e5b83db7 100644
--- a/src/features/ChatInput/ControlBar/GitStatus.tsx
+++ b/src/features/ChatInput/ControlBar/GitStatus.tsx
@@ -1,7 +1,5 @@
import type { WorkingDirGitState } from '@lobechat/types';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Icon, toast, Tooltip } from '@lobehub/ui';
import { ArrowDownIcon, ArrowUpIcon, GitPullRequest } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/CodexQuotaMenu.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/CodexQuotaMenu.tsx
index 6b79fa00ea4..f0e095f9998 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/CodexQuotaMenu.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/CodexQuotaMenu.tsx
@@ -6,9 +6,17 @@ import type {
CodexRateLimitResetCredit,
} from '@lobechat/electron-client-ipc';
import { uuid } from '@lobechat/utils';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, Button, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Accordion,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { RotateCcwIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/KimiCodeQuotaMenu.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/KimiCodeQuotaMenu.tsx
index 381a56b76ba..5d2bc828149 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/KimiCodeQuotaMenu.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/KimiCodeQuotaMenu.tsx
@@ -1,9 +1,7 @@
'use client';
import type { KimiCodeQuotaSnapshot } from '@lobechat/heterogeneous-agents/quota';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { WalletIcon } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx
index 0d8c45a73e6..c2f4c23d9b4 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountManagerModal.tsx
@@ -1,7 +1,7 @@
'use client';
import { currentUtilization, isWeeklyAllLimit } from '@lobechat/heterogeneous-agents/quota';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
+import { createStaticStyles, cssVar, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -11,8 +11,7 @@ import {
RadioGroup,
Switch,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import {
CheckIcon,
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountSwitcher.tsx
index 15969ee186d..9693cc5166a 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaAccountSwitcher.tsx
@@ -1,9 +1,7 @@
'use client';
import type { QuotaAccountIdentity } from '@lobechat/heterogeneous-agents/quota';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { CalendarDaysIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.test.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.test.tsx
index 9b0c6232900..2ae9a5377e8 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.test.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.test.tsx
@@ -94,82 +94,92 @@ vi.mock('react-i18next', () => ({
}));
vi.mock('@lobehub/ui', async (importOriginal) => {
- return {
- ...(await importOriginal<object>()),
- ActionIcon: ({
- disabled,
- onClick,
- title,
- }: {
- disabled?: boolean;
- onClick?: () => void;
- title?: string;
- }) => (
- <button
- aria-label={title}
- data-testid={title ? 'calendar' : 'refresh'}
- disabled={disabled}
- type="button"
- onClick={onClick}
- />
- ),
- Flexbox: ({ children, className }: { children?: ReactNode; className?: string }) => (
- <div className={className}>{children}</div>
- ),
- Icon: () => <svg />,
- // Render the popover content unconditionally so window rows are assertable
- // without driving the open/close interaction.
- Popover: ({
- children,
- content,
- onOpenChange,
- }: {
- children?: ReactNode;
- content?: ReactNode;
- onOpenChange?: (open: boolean) => void;
- }) => (
- <div>
- <div data-testid="popover-content">{content}</div>
- <div data-testid="quota-trigger" onClick={() => onOpenChange?.(true)}>
- {children}
- </div>
- </div>
- ),
- Skeleton: { Button: () => <div data-testid="skeleton" /> },
- Text: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
- Tooltip: ({ children }: { children?: ReactNode }) => <>{children}</>,
- };
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => {
+ return {
+ ...(await importOriginal<object>()),
+ ActionIcon: ({
+ disabled,
+ onClick,
+ title,
+ }: {
+ disabled?: boolean;
+ onClick?: () => void;
+ title?: string;
+ }) => (
+ <button
+ aria-label={title}
+ data-testid={title ? 'calendar' : 'refresh'}
+ disabled={disabled}
+ type="button"
+ onClick={onClick}
+ />
+ ),
+ Flexbox: ({ children, className }: { children?: ReactNode; className?: string }) => (
+ <div className={className}>{children}</div>
+ ),
+ Icon: () => <svg />,
+ // Render the popover content unconditionally so window rows are assertable
+ // without driving the open/close interaction.
+ Popover: ({
+ children,
+ content,
+ onOpenChange,
+ }: {
+ children?: ReactNode;
+ content?: ReactNode;
+ onOpenChange?: (open: boolean) => void;
+ }) => (
+ <div>
+ <div data-testid="popover-content">{content}</div>
+ <div data-testid="quota-trigger" onClick={() => onOpenChange?.(true)}>
+ {children}
+ </div>
+ </div>
+ ),
+ Skeleton: { Button: () => <div data-testid="skeleton" /> },
+ Text: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
+ Tooltip: ({ children }: { children?: ReactNode }) => <>{children}</>,
+ };
+ },
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ ActionIcon: ({
+ onClick,
+ title,
+ disabled,
+ }: {
+ disabled?: boolean;
+ onClick?: (e: React.MouseEvent) => void;
+ title?: string;
+ }) => (
+ <button
+ aria-label={title}
+ data-testid={title ? 'calendar' : 'refresh'}
+ disabled={disabled}
+ type="button"
+ onClick={onClick}
+ />
+ ),
+ confirmModal: confirmModalMock,
+ Skeleton: ({ height }: { height?: number }) => (
+ <div data-height={height} data-testid="skeleton" />
+ ),
+ toast: {
+ error: toastErrorMock,
+ success: toastSuccessMock,
+ },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- ActionIcon: ({
- onClick,
- title,
- disabled,
- }: {
- disabled?: boolean;
- onClick?: (e: React.MouseEvent) => void;
- title?: string;
- }) => (
- <button
- aria-label={title}
- data-testid={title ? 'calendar' : 'refresh'}
- disabled={disabled}
- type="button"
- onClick={onClick}
- />
- ),
- confirmModal: confirmModalMock,
- Skeleton: ({ height }: { height?: number }) => (
- <div data-height={height} data-testid="skeleton" />
- ),
- toast: {
- error: toastErrorMock,
- success: toastSuccessMock,
- },
-}));
-
const claudeSnapshot = (
overrides: Partial<ElectronClientIpcModule.ClaudeCodeQuotaSnapshot> = {},
): ElectronClientIpcModule.ClaudeCodeQuotaSnapshot => ({
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.tsx
index 039ae7059a7..f46d1ac8266 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/QuotaMenu/QuotaMenu.tsx
@@ -1,9 +1,19 @@
'use client';
import type { HeteroQuotaWindow } from '@lobechat/electron-client-ipc';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Alert, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Alert,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Popover,
+ Skeleton,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { ChevronDownIcon, GaugeIcon, RefreshCwIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/index.test.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/index.test.tsx
index c8bf939f298..b5df5ed51b7 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/index.test.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/index.test.tsx
@@ -182,36 +182,14 @@ vi.mock('@lobehub/ui', async (importOriginal) => {
</div>
</div>
),
- Skeleton: { Button: () => <div data-testid="skeleton" /> },
+ Skeleton: ({ height }: { height?: number }) => (
+ <div data-height={height} data-testid="skeleton" />
+ ),
Text: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
Tooltip: ({ children }: { children?: ReactNode }) => <>{children}</>,
};
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- ActionIcon: ({
- onClick,
- title,
- disabled,
- }: {
- disabled?: boolean;
- onClick?: (e: React.MouseEvent) => void;
- title?: string;
- }) => (
- <button
- aria-label={title}
- data-testid={title ? 'calendar' : 'refresh'}
- disabled={disabled}
- type="button"
- onClick={onClick}
- />
- ),
- Skeleton: ({ height }: { height?: number }) => (
- <div data-height={height} data-testid="skeleton" />
- ),
-}));
-
beforeEach(() => {
effectiveAgencyConfig.current = {
boundDeviceId: 'personal-device',
diff --git a/src/features/ChatInput/ControlBar/HeteroControlBar/index.tsx b/src/features/ChatInput/ControlBar/HeteroControlBar/index.tsx
index a660e318df6..ca6e6129da6 100644
--- a/src/features/ChatInput/ControlBar/HeteroControlBar/index.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroControlBar/index.tsx
@@ -6,8 +6,7 @@ import {
type HeterogeneousAgentRuntimeStatus,
useWatchBroadcast,
} from '@lobechat/electron-client-ipc';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { ActivityIcon, CircleAlertIcon, RadioTowerIcon, TimerResetIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
index db6879b3249..ca13f3760ee 100644
--- a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
@@ -3,9 +3,17 @@
import { isDesktop } from '@lobechat/const';
import { HETEROGENEOUS_TYPE_LABELS } from '@lobechat/heterogeneous-agents';
import type { DeviceExecutionTarget } from '@lobechat/types';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Popover,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import {
ChevronDownIcon,
ExternalLinkIcon,
diff --git a/src/features/ChatInput/ControlBar/HeteroModel/ModelCatalogSelector.tsx b/src/features/ChatInput/ControlBar/HeteroModel/ModelCatalogSelector.tsx
index 4a3d8b2c200..691672854f8 100644
--- a/src/features/ChatInput/ControlBar/HeteroModel/ModelCatalogSelector.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroModel/ModelCatalogSelector.tsx
@@ -3,10 +3,12 @@
import { getHeterogeneousTypeLabel } from '@lobechat/heterogeneous-agents';
import type { ListHeterogeneousAgentModelsParams } from '@lobechat/types';
import { HETEROGENEOUS_AGENT_DEFAULT_SELECTION } from '@lobechat/types';
-import { Icon, Tooltip } from '@lobehub/ui';
import {
ActionIcon,
Button,
+ createStaticStyles,
+ cssVar,
+ cx,
DropdownMenuGroup,
DropdownMenuGroupLabel,
DropdownMenuHeader,
@@ -25,9 +27,10 @@ import {
DropdownMenuSubmenuRoot,
DropdownMenuSubmenuTrigger,
DropdownMenuTrigger,
+ Icon,
Input,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+ Tooltip,
+} from '@lobehub/ui';
import {
CheckIcon,
ChevronDownIcon,
diff --git a/src/features/ChatInput/ControlBar/HeteroModel/SelectorMenu.tsx b/src/features/ChatInput/ControlBar/HeteroModel/SelectorMenu.tsx
index d8d4d282534..db7a1b478d0 100644
--- a/src/features/ChatInput/ControlBar/HeteroModel/SelectorMenu.tsx
+++ b/src/features/ChatInput/ControlBar/HeteroModel/SelectorMenu.tsx
@@ -15,7 +15,7 @@ import {
DropdownMenuRoot,
DropdownMenuTrigger,
renderDropdownMenuItems,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/ModeSelector.tsx b/src/features/ChatInput/ControlBar/ModeSelector.tsx
index 4a2777722d5..a20e27f8b63 100644
--- a/src/features/ChatInput/ControlBar/ModeSelector.tsx
+++ b/src/features/ChatInput/ControlBar/ModeSelector.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
import {
ChevronDownIcon,
FolderIcon,
diff --git a/src/features/ChatInput/ControlBar/OptionRow.tsx b/src/features/ChatInput/ControlBar/OptionRow.tsx
index 2db6263a6cf..b453747ecdc 100644
--- a/src/features/ChatInput/ControlBar/OptionRow.tsx
+++ b/src/features/ChatInput/ControlBar/OptionRow.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { CheckIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/ChatInput/ControlBar/ProjectDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/ProjectDeviceSwitcher.tsx
index bf17502e7d0..35067bc2380 100644
--- a/src/features/ChatInput/ControlBar/ProjectDeviceSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/ProjectDeviceSwitcher.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Popover,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { ChevronDownIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/RenameBranchModal.tsx b/src/features/ChatInput/ControlBar/RenameBranchModal.tsx
index d0c63a97884..6fef25285d3 100644
--- a/src/features/ChatInput/ControlBar/RenameBranchModal.tsx
+++ b/src/features/ChatInput/ControlBar/RenameBranchModal.tsx
@@ -1,15 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import {
- Button,
- createModal,
- Input,
- type ModalInstance,
- Text,
- useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
+import { Button, createModal, Input, type ModalInstance, Text, useModalContext } from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/SandboxEnvironmentRow.tsx b/src/features/ChatInput/ControlBar/SandboxEnvironmentRow.tsx
index 4eb8af76ed8..04064a8a83f 100644
--- a/src/features/ChatInput/ControlBar/SandboxEnvironmentRow.tsx
+++ b/src/features/ChatInput/ControlBar/SandboxEnvironmentRow.tsx
@@ -2,9 +2,16 @@
import { type EnvironmentKind } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, DropdownMenu, Popover } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Popover,
+ Tooltip,
+} from '@lobehub/ui';
import {
ChevronDownIcon,
ChevronRightIcon,
diff --git a/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx b/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx
index b18ea89b490..d7a3feecb9f 100644
--- a/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx
+++ b/src/features/ChatInput/ControlBar/SandboxInstancePicker.tsx
@@ -2,9 +2,19 @@
import { environmentKind } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { confirmModal, Popover, Skeleton, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Popover,
+ Skeleton,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import {
ChevronDownIcon,
FolderClockIcon,
diff --git a/src/features/ChatInput/ControlBar/StaleGitSnapshot.tsx b/src/features/ChatInput/ControlBar/StaleGitSnapshot.tsx
index f07d28f89c9..16ccb8881e2 100644
--- a/src/features/ChatInput/ControlBar/StaleGitSnapshot.tsx
+++ b/src/features/ChatInput/ControlBar/StaleGitSnapshot.tsx
@@ -1,14 +1,15 @@
import type { WorkingDirGitState } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
import {
+ createStaticStyles,
+ cssVar,
DropdownMenuItem,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
DropdownMenuRoot,
DropdownMenuTrigger,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+ Icon,
+} from '@lobehub/ui';
import { GitBranchIcon, GitForkIcon, GitPullRequest, RotateCcwIcon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx b/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx
index 5150bf11ef4..6a273188e56 100644
--- a/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx
+++ b/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx
@@ -3,9 +3,18 @@
import { isDesktop } from '@lobechat/const';
import type { WorkingDirEntry } from '@lobechat/types';
import { getWorkingDirSourcePath } from '@lobechat/types';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Input, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ Popover,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import {
CheckIcon,
ChevronDownIcon,
diff --git a/src/features/ChatInput/ControlBar/WorktreeSwitcher.tsx b/src/features/ChatInput/ControlBar/WorktreeSwitcher.tsx
index c55a6db8442..f5cc046e2fe 100644
--- a/src/features/ChatInput/ControlBar/WorktreeSwitcher.tsx
+++ b/src/features/ChatInput/ControlBar/WorktreeSwitcher.tsx
@@ -1,18 +1,21 @@
import { deriveWorktreePath, type DeviceGitWorktreeListItem } from '@lobechat/types';
-import { Icon, Tooltip } from '@lobehub/ui';
import {
confirmModal,
+ createStaticStyles,
+ cssVar,
+ cx,
DropdownMenuItem,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
DropdownMenuRoot,
DropdownMenuTrigger,
+ Icon,
Input,
Spin,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+ Tooltip,
+} from '@lobehub/ui';
import {
CheckIcon,
FolderPlusIcon,
diff --git a/src/features/ChatInput/ControlBar/__tests__/WorktreeSwitcher.test.tsx b/src/features/ChatInput/ControlBar/__tests__/WorktreeSwitcher.test.tsx
index 8474920b6a1..21ad826f706 100644
--- a/src/features/ChatInput/ControlBar/__tests__/WorktreeSwitcher.test.tsx
+++ b/src/features/ChatInput/ControlBar/__tests__/WorktreeSwitcher.test.tsx
@@ -24,36 +24,54 @@ vi.mock('@/services/git', () => ({
},
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Icon: ({ icon }: any) => <span data-icon={icon?.displayName ?? icon?.name} data-testid="icon" />,
- Tooltip: ({ children }: { children: ReactNode }) => (
- <span data-testid="worktree-tooltip">{children}</span>
- ),
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- confirmModal: confirmModalMock,
- DropdownMenuItem: ({ children, onClick }: { children: ReactNode; onClick?: () => void }) => (
- <button onClick={onClick}>{children}</button>
- ),
- DropdownMenuPopup: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- DropdownMenuPortal: ({ children }: { children: ReactNode }) => <>{children}</>,
- DropdownMenuPositioner: ({ children }: { children: ReactNode }) => <>{children}</>,
- DropdownMenuRoot: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- DropdownMenuTrigger: ({ children, className }: { children: ReactNode; className?: string }) => (
- <div className={className} data-testid="worktree-dropdown-trigger">
- {children}
- </div>
- ),
- toast: {
- error: messageErrorMock,
- info: vi.fn(),
- loading: toastLoadingMock,
- success: messageSuccessMock,
- },
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Icon: ({ icon }: any) => (
+ <span data-icon={icon?.displayName ?? icon?.name} data-testid="icon" />
+ ),
+ Tooltip: ({ children }: { children: ReactNode }) => (
+ <span data-testid="worktree-tooltip">{children}</span>
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ confirmModal: confirmModalMock,
+ DropdownMenuItem: ({ children, onClick }: { children: ReactNode; onClick?: () => void }) => (
+ <button onClick={onClick}>{children}</button>
+ ),
+ DropdownMenuPopup: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ DropdownMenuPortal: ({ children }: { children: ReactNode }) => <>{children}</>,
+ DropdownMenuPositioner: ({ children }: { children: ReactNode }) => <>{children}</>,
+ DropdownMenuRoot: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ DropdownMenuTrigger: ({
+ children,
+ className,
+ }: {
+ children: ReactNode;
+ className?: string;
+ }) => (
+ <div className={className} data-testid="worktree-dropdown-trigger">
+ {children}
+ </div>
+ ),
+ toast: {
+ error: messageErrorMock,
+ info: vi.fn(),
+ loading: toastLoadingMock,
+ success: messageSuccessMock,
+ },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({
diff --git a/src/features/ChatInput/ControlBar/gitChipStyles.ts b/src/features/ChatInput/ControlBar/gitChipStyles.ts
index 5b5796de760..2a62bde30a1 100644
--- a/src/features/ChatInput/ControlBar/gitChipStyles.ts
+++ b/src/features/ChatInput/ControlBar/gitChipStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* Chips shared by the live git status and by the snapshot that stands in for it
diff --git a/src/features/ChatInput/ControlBar/gitMenuTriggerStyles.ts b/src/features/ChatInput/ControlBar/gitMenuTriggerStyles.ts
index 097cc970818..98a7a848790 100644
--- a/src/features/ChatInput/ControlBar/gitMenuTriggerStyles.ts
+++ b/src/features/ChatInput/ControlBar/gitMenuTriggerStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const gitMenuTriggerStyles = createStaticStyles(({ css }) => ({
trigger: css`
diff --git a/src/features/ChatInput/ControlBar/index.tsx b/src/features/ChatInput/ControlBar/index.tsx
index 18ca79fdfa0..ea38c9cc35f 100644
--- a/src/features/ChatInput/ControlBar/index.tsx
+++ b/src/features/ChatInput/ControlBar/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import ChatInputCredits from '@/business/client/features/ChatInputCredits';
diff --git a/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts b/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts
index 3efe7c015dc..7e170f1c8a7 100644
--- a/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts
+++ b/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts
@@ -1,6 +1,6 @@
import type { WorkingDirConfig, WorkingDirEntry } from '@lobechat/types';
import { getWorkingDirEffectivePath, getWorkingDirSourcePath } from '@lobechat/types';
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.test.ts b/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.test.ts
index f40ff0ec97e..e33dcacc0c5 100644
--- a/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.test.ts
+++ b/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.test.ts
@@ -11,7 +11,7 @@ const state = vi.hoisted(() => ({
updateTopicMetadata: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
confirmModal: state.confirmModal,
toast: { error: vi.fn() },
}));
diff --git a/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.ts b/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.ts
index 8c06ac23a33..0e2c8f9ae43 100644
--- a/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.ts
+++ b/src/features/ChatInput/ControlBar/useTopicAwareTargetSelect.ts
@@ -1,5 +1,5 @@
import type { DeviceExecutionTarget } from '@lobechat/types';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/ControlBar/workingDirectoryChipStyles.ts b/src/features/ChatInput/ControlBar/workingDirectoryChipStyles.ts
index 0eea827e368..7f505fee0b0 100644
--- a/src/features/ChatInput/ControlBar/workingDirectoryChipStyles.ts
+++ b/src/features/ChatInput/ControlBar/workingDirectoryChipStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* The composer's working-directory chip — for a run on a machine and for one in
diff --git a/src/features/ChatInput/Desktop/ContextContainer/ContextItem/Content.tsx b/src/features/ChatInput/Desktop/ContextContainer/ContextItem/Content.tsx
index 2e4904c869f..e3d90cf8a51 100644
--- a/src/features/ChatInput/Desktop/ContextContainer/ContextItem/Content.tsx
+++ b/src/features/ChatInput/Desktop/ContextContainer/ContextItem/Content.tsx
@@ -1,5 +1,4 @@
-import { Image } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Image } from '@lobehub/ui';
import { memo } from 'react';
import FileIcon from '@/components/FileIcon';
diff --git a/src/features/ChatInput/Desktop/ContextContainer/ContextItem/FilePreviewModal.tsx b/src/features/ChatInput/Desktop/ContextContainer/ContextItem/FilePreviewModal.tsx
index 8ce61e4f366..5d4938ef94f 100644
--- a/src/features/ChatInput/Desktop/ContextContainer/ContextItem/FilePreviewModal.tsx
+++ b/src/features/ChatInput/Desktop/ContextContainer/ContextItem/FilePreviewModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import FileViewer from '@/features/FileViewer';
import { type UploadFileItem } from '@/types/files/upload';
diff --git a/src/features/ChatInput/Desktop/ContextContainer/ContextItem/index.tsx b/src/features/ChatInput/Desktop/ContextContainer/ContextItem/index.tsx
index 3e5ee349170..6dba7975cf3 100644
--- a/src/features/ChatInput/Desktop/ContextContainer/ContextItem/index.tsx
+++ b/src/features/ChatInput/Desktop/ContextContainer/ContextItem/index.tsx
@@ -1,6 +1,13 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Progress, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Progress,
+ Tag,
+ Tooltip,
+} from '@lobehub/ui';
import { CircleAlertIcon, CircleCheckIcon, Loader2Icon, RotateCwIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/Desktop/ContextContainer/ContextList.tsx b/src/features/ChatInput/Desktop/ContextContainer/ContextList.tsx
index e7207194361..9546a935a5c 100644
--- a/src/features/ChatInput/Desktop/ContextContainer/ContextList.tsx
+++ b/src/features/ChatInput/Desktop/ContextContainer/ContextList.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, ScrollShadow } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, ScrollShadow } from '@lobehub/ui';
import { memo } from 'react';
import { useChatInputStore } from '@/features/ChatInput/store';
diff --git a/src/features/ChatInput/Desktop/ContextContainer/ElementItem.tsx b/src/features/ChatInput/Desktop/ContextContainer/ElementItem.tsx
index a1033fb3fd9..740cb469192 100644
--- a/src/features/ChatInput/Desktop/ContextContainer/ElementItem.tsx
+++ b/src/features/ChatInput/Desktop/ContextContainer/ElementItem.tsx
@@ -1,7 +1,5 @@
import type { ChatContextContent } from '@lobechat/types';
-import { Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Tag, Tooltip } from '@lobehub/ui';
import { SquareDashedMousePointer } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/Desktop/ContextContainer/SelectionItem.tsx b/src/features/ChatInput/Desktop/ContextContainer/SelectionItem.tsx
index a1e1a268200..901c76edff4 100644
--- a/src/features/ChatInput/Desktop/ContextContainer/SelectionItem.tsx
+++ b/src/features/ChatInput/Desktop/ContextContainer/SelectionItem.tsx
@@ -1,7 +1,5 @@
import type { ChatContextContent } from '@lobechat/types';
-import { Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Tag, Tooltip } from '@lobehub/ui';
import { Code2Icon, TextIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/ChatInput/Desktop/index.tsx b/src/features/ChatInput/Desktop/index.tsx
index b72796392e4..6825e64f4c3 100644
--- a/src/features/ChatInput/Desktop/index.tsx
+++ b/src/features/ChatInput/Desktop/index.tsx
@@ -2,9 +2,7 @@
import { type ChatInputProps } from '@lobehub/editor/react';
import { ChatInput, ChatInputActionBar } from '@lobehub/editor/react';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Center, createStaticStyles, cx, Flexbox, Skeleton, Text } from '@lobehub/ui';
import { type ReactNode, use } from 'react';
import { memo, useEffect } from 'react';
import { createPortal } from 'react-dom';
diff --git a/src/features/ChatInput/Dictation/index.tsx b/src/features/ChatInput/Dictation/index.tsx
index d9a9fa8aa4f..92122eebb6b 100644
--- a/src/features/ChatInput/Dictation/index.tsx
+++ b/src/features/ChatInput/Dictation/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Tooltip } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Spin, Tooltip } from '@lobehub/ui';
import { Mic, RotateCcw, X } from 'lucide-react';
import type { MouseEvent } from 'react';
import { memo, useCallback, useEffect } from 'react';
diff --git a/src/features/ChatInput/InputEditor/ActionTag/ActionMention.tsx b/src/features/ChatInput/InputEditor/ActionTag/ActionMention.tsx
index c9039927d2e..446cb0ec664 100644
--- a/src/features/ChatInput/InputEditor/ActionTag/ActionMention.tsx
+++ b/src/features/ChatInput/InputEditor/ActionTag/ActionMention.tsx
@@ -1,6 +1,5 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { cx } from 'antd-style';
import { TargetIcon, TerminalIcon, WrenchIcon } from 'lucide-react';
import type { FC, MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/InputEditor/ActionTag/skillDragData.ts b/src/features/ChatInput/InputEditor/ActionTag/skillDragData.ts
index e054d090585..c3029b3f72c 100644
--- a/src/features/ChatInput/InputEditor/ActionTag/skillDragData.ts
+++ b/src/features/ChatInput/InputEditor/ActionTag/skillDragData.ts
@@ -1,5 +1,5 @@
import { SKILL_DRAG_MIME } from '@lobechat/const';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type React from 'react';
import type { ActionTagCategory, ActionTagType } from './types';
@@ -25,7 +25,7 @@ export const writeSkillDragData = (dataTransfer: DataTransfer, payload: SkillDra
};
/**
- * Resolve a `var(--x)` reference (e.g. from antd-style `cssVar.*`) to its
+ * Resolve a `var(--x)` reference (e.g. from `@lobehub/ui` `cssVar.*`) to its
* concrete computed value in the context of `ctx`. Lets the drag preview live
* on `document.body` (free of transformed ancestors that would break
* fixed-position cursor tracking) while still picking up the themed token.
diff --git a/src/features/ChatInput/InputEditor/ActionTag/style.ts b/src/features/ChatInput/InputEditor/ActionTag/style.ts
index cf9e862fc49..e5433084d0c 100644
--- a/src/features/ChatInput/InputEditor/ActionTag/style.ts
+++ b/src/features/ChatInput/InputEditor/ActionTag/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { TAG_MARGIN_INLINE_END } from '../constants';
diff --git a/src/features/ChatInput/InputEditor/InputHistoryPopup.tsx b/src/features/ChatInput/InputEditor/InputHistoryPopup.tsx
index 3d688ef05f9..6919f219f12 100644
--- a/src/features/ChatInput/InputEditor/InputHistoryPopup.tsx
+++ b/src/features/ChatInput/InputEditor/InputHistoryPopup.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { createPortal } from 'react-dom';
diff --git a/src/features/ChatInput/InputEditor/LocalFileTag/LocalFileTag.tsx b/src/features/ChatInput/InputEditor/LocalFileTag/LocalFileTag.tsx
index 469fe5013da..5e4d14cd0b2 100644
--- a/src/features/ChatInput/InputEditor/LocalFileTag/LocalFileTag.tsx
+++ b/src/features/ChatInput/InputEditor/LocalFileTag/LocalFileTag.tsx
@@ -1,7 +1,15 @@
import { isDesktop } from '@lobechat/const';
-import { Flexbox, Icon, Popover } from '@lobehub/ui';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Popover,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import type { LexicalEditor } from 'lexical';
import { $createNodeSelection, $setSelection, CLICK_COMMAND, COMMAND_PRIORITY_LOW } from 'lexical';
import { ExternalLink, EyeIcon, FolderOpen } from 'lucide-react';
diff --git a/src/features/ChatInput/InputEditor/MentionItemIcon.tsx b/src/features/ChatInput/InputEditor/MentionItemIcon.tsx
index bee52a6834e..0445e94d922 100644
--- a/src/features/ChatInput/InputEditor/MentionItemIcon.tsx
+++ b/src/features/ChatInput/InputEditor/MentionItemIcon.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, Icon } from '@lobehub/ui';
import { McpIcon, SkillsIcon } from '@lobehub/ui/icons';
import { memo } from 'react';
diff --git a/src/features/ChatInput/InputEditor/ReferTopic/ReferTopicView.tsx b/src/features/ChatInput/InputEditor/ReferTopic/ReferTopicView.tsx
index f72addb7e4e..faa343f51c2 100644
--- a/src/features/ChatInput/InputEditor/ReferTopic/ReferTopicView.tsx
+++ b/src/features/ChatInput/InputEditor/ReferTopic/ReferTopicView.tsx
@@ -1,4 +1,4 @@
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { MessageSquareQuoteIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/InputEditor/ReferTopic/dragLabelPreview.ts b/src/features/ChatInput/InputEditor/ReferTopic/dragLabelPreview.ts
index bf61e46a062..6626bcd5d0c 100644
--- a/src/features/ChatInput/InputEditor/ReferTopic/dragLabelPreview.ts
+++ b/src/features/ChatInput/InputEditor/ReferTopic/dragLabelPreview.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type React from 'react';
const resolveCssVar = (ref: string, context: Element): string => {
diff --git a/src/features/ChatInput/InputEditor/index.test.tsx b/src/features/ChatInput/InputEditor/index.test.tsx
index 8687fb9112c..e188d4668d4 100644
--- a/src/features/ChatInput/InputEditor/index.test.tsx
+++ b/src/features/ChatInput/InputEditor/index.test.tsx
@@ -118,7 +118,10 @@ vi.mock('@lobehub/editor/react', () => {
useEditorState: vi.fn(() => ({ isEmpty: true })),
};
});
-vi.mock('@lobehub/ui', () => ({ combineKeys: vi.fn(() => 'alt+enter') }));
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
+ combineKeys: vi.fn(() => 'alt+enter'),
+}));
vi.mock('fuse.js', () => ({
default: class Fuse {
search() {
diff --git a/src/features/ChatInput/InputEditor/index.tsx b/src/features/ChatInput/InputEditor/index.tsx
index ac02f4666f5..bebf61ff837 100644
--- a/src/features/ChatInput/InputEditor/index.tsx
+++ b/src/features/ChatInput/InputEditor/index.tsx
@@ -11,8 +11,7 @@ import { isCommandPressed } from '@lobechat/utils';
import type { IEditor, ISlashMenuOption, ISlashSectionOption } from '@lobehub/editor';
import { INSERT_MENTION_COMMAND, ReactAutoCompletePlugin } from '@lobehub/editor';
import { Editor, useEditorState } from '@lobehub/editor/react';
-import { combineKeys } from '@lobehub/ui';
-import { css, cx } from 'antd-style';
+import { combineKeys, css, cx } from '@lobehub/ui';
import Fuse from 'fuse.js';
import { KEY_ESCAPE_COMMAND } from 'lexical';
import { memo, type ReactNode, useCallback, useEffect, useMemo, useRef } from 'react';
diff --git a/src/features/ChatInput/InputEditor/mentionStyle.ts b/src/features/ChatInput/InputEditor/mentionStyle.ts
index 2022511d4b9..674126558af 100644
--- a/src/features/ChatInput/InputEditor/mentionStyle.ts
+++ b/src/features/ChatInput/InputEditor/mentionStyle.ts
@@ -1,4 +1,4 @@
-import { css, cx } from 'antd-style';
+import { css, cx } from '@lobehub/ui';
// Override the default chip style from `@lobehub/editor`'s mention plugin so
// @-mentions render as plain colored text, matching the look of other inline
diff --git a/src/features/ChatInput/InputEditor/useMentionCategories.tsx b/src/features/ChatInput/InputEditor/useMentionCategories.tsx
index 73204d84ac9..96a7bf3928c 100644
--- a/src/features/ChatInput/InputEditor/useMentionCategories.tsx
+++ b/src/features/ChatInput/InputEditor/useMentionCategories.tsx
@@ -1,8 +1,6 @@
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { Bot, Lock, MessageSquareText, Users, Wrench } from 'lucide-react';
import { useMemo } from 'react';
diff --git a/src/features/ChatInput/InputEditor/workspaceFileDragData.ts b/src/features/ChatInput/InputEditor/workspaceFileDragData.ts
index 8b1bd5058b5..23cedf52e7c 100644
--- a/src/features/ChatInput/InputEditor/workspaceFileDragData.ts
+++ b/src/features/ChatInput/InputEditor/workspaceFileDragData.ts
@@ -1,5 +1,5 @@
import { WORKSPACE_FILE_DRAG_MIME } from '@lobechat/const';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type React from 'react';
/**
@@ -51,7 +51,7 @@ export const readWorkspaceFileDragData = (
};
/**
- * Resolve a `var(--x)` reference (e.g. from antd-style `cssVar.*`) to its
+ * Resolve a `var(--x)` reference (e.g. from `@lobehub/ui` `cssVar.*`) to its
* concrete computed value in the context of `ctx`. Lets the drag preview live on
* `document.body` (free of transformed ancestors that would break fixed-position
* cursor tracking) while still picking up the themed token. Mirrors the skill
diff --git a/src/features/ChatInput/Mobile/FilePreview/FileItem/File.tsx b/src/features/ChatInput/Mobile/FilePreview/FileItem/File.tsx
index a0ee9c45601..db2ad6bce9b 100644
--- a/src/features/ChatInput/Mobile/FilePreview/FileItem/File.tsx
+++ b/src/features/ChatInput/Mobile/FilePreview/FileItem/File.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { RotateCw, Trash } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/Mobile/FilePreview/FileItem/Image.tsx b/src/features/ChatInput/Mobile/FilePreview/FileItem/Image.tsx
index 9049d1ead4b..095de93c75b 100644
--- a/src/features/ChatInput/Mobile/FilePreview/FileItem/Image.tsx
+++ b/src/features/ChatInput/Mobile/FilePreview/FileItem/Image.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Image } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, cx, Flexbox, Image } from '@lobehub/ui';
import { RotateCw, Trash } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/Mobile/FilePreview/index.tsx b/src/features/ChatInput/Mobile/FilePreview/index.tsx
index 17e6d175bb6..ffdf8d28b04 100644
--- a/src/features/ChatInput/Mobile/FilePreview/index.tsx
+++ b/src/features/ChatInput/Mobile/FilePreview/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, PreviewGroup, ScrollShadow } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, PreviewGroup, ScrollShadow } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/ChatInput/Mobile/index.tsx b/src/features/ChatInput/Mobile/index.tsx
index 55365667f69..b9e3f26b1db 100644
--- a/src/features/ChatInput/Mobile/index.tsx
+++ b/src/features/ChatInput/Mobile/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { ChatInput, ChatInputActionBar } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import ChatInputNotice from '@/features/ChatInput/ChatInputNotice';
diff --git a/src/features/ChatInput/SendArea/ExpandButton.tsx b/src/features/ChatInput/SendArea/ExpandButton.tsx
index 81157c5faff..4472c9b036f 100644
--- a/src/features/ChatInput/SendArea/ExpandButton.tsx
+++ b/src/features/ChatInput/SendArea/ExpandButton.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Maximize2Icon, Minimize2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/StoreUpdater.test.tsx b/src/features/ChatInput/StoreUpdater.test.tsx
index acbcb9f43bc..d27fb389d7b 100644
--- a/src/features/ChatInput/StoreUpdater.test.tsx
+++ b/src/features/ChatInput/StoreUpdater.test.tsx
@@ -1,4 +1,4 @@
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { act, fireEvent, render, screen, waitFor } from '@testing-library/react';
import { type PropsWithChildren, useEffect } from 'react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -46,8 +46,8 @@ vi.mock('./VoiceMessage/useVoiceMessageRecorder', () => ({
}));
interface TestHarnessProps {
- onSendMenuChange: (menu: MenuProps | undefined) => void;
- sendMenu?: MenuProps;
+ onSendMenuChange: (menu: { items: DropdownItem[] } | undefined) => void;
+ sendMenu?: { items: DropdownItem[] };
}
const Probe = ({
@@ -126,7 +126,9 @@ describe('ChatInput StoreUpdater', () => {
});
it('clears sendMenu when the prop becomes undefined', () => {
- const initialSendMenu = { items: [{ key: 'test', label: 'Test' }] } satisfies MenuProps;
+ const initialSendMenu = { items: [{ key: 'test', label: 'Test' }] } satisfies {
+ items: DropdownItem[];
+ };
const onSendMenuChange = vi.fn();
const { rerender } = render(
diff --git a/src/features/ChatInput/VoiceMessage/index.tsx b/src/features/ChatInput/VoiceMessage/index.tsx
index 4188a9ddbda..4632b325069 100644
--- a/src/features/ChatInput/VoiceMessage/index.tsx
+++ b/src/features/ChatInput/VoiceMessage/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type VoiceMessageRecording } from '@lobechat/types';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon, Tooltip } from '@lobehub/ui';
import { ArrowUp, type LucideProps, RotateCcw, X } from 'lucide-react';
import { memo, useCallback, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/components/SelectorTrigger.tsx b/src/features/ChatInput/components/SelectorTrigger.tsx
index 744a67e8bc3..06413b6d3a3 100644
--- a/src/features/ChatInput/components/SelectorTrigger.tsx
+++ b/src/features/ChatInput/components/SelectorTrigger.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { ChevronDownIcon, ZapIcon } from 'lucide-react';
import type { ComponentPropsWithRef } from 'react';
import { memo } from 'react';
diff --git a/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx b/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx
index 99aefd8cf8b..6f2b160b7d2 100644
--- a/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx
+++ b/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Progress, Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Progress, Spin, Text } from '@lobehub/ui';
import { CircleAlertIcon, CircleCheckIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/components/UploadDetail/index.tsx b/src/features/ChatInput/components/UploadDetail/index.tsx
index 64bd25adca1..756e2a634a2 100644
--- a/src/features/ChatInput/components/UploadDetail/index.tsx
+++ b/src/features/ChatInput/components/UploadDetail/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/components/buildSelectorSubmenu.tsx b/src/features/ChatInput/components/buildSelectorSubmenu.tsx
index 06937fc0a1c..a31ef8e6c7b 100644
--- a/src/features/ChatInput/components/buildSelectorSubmenu.tsx
+++ b/src/features/ChatInput/components/buildSelectorSubmenu.tsx
@@ -1,6 +1,5 @@
-import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import { CheckIcon } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/src/features/ChatInput/hooks/useLargeFileLocalPath.test.ts b/src/features/ChatInput/hooks/useLargeFileLocalPath.test.ts
index f606a5d6f61..93e7eb9b817 100644
--- a/src/features/ChatInput/hooks/useLargeFileLocalPath.test.ts
+++ b/src/features/ChatInput/hooks/useLargeFileLocalPath.test.ts
@@ -13,7 +13,7 @@ const { insertLocalPathTagsMock, toastInfoMock } = vi.hoisted(() => ({
toastInfoMock: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { info: toastInfoMock } }));
+vi.mock('@lobehub/ui', () => ({ toast: { info: toastInfoMock } }));
vi.mock('@/features/ChatInput/InputEditor/insertLocalFileTags', () => ({
insertLocalPathTags: insertLocalPathTagsMock,
}));
diff --git a/src/features/ChatInput/hooks/useLargeFileLocalPath.ts b/src/features/ChatInput/hooks/useLargeFileLocalPath.ts
index 2457e6842d9..41761dfa02c 100644
--- a/src/features/ChatInput/hooks/useLargeFileLocalPath.ts
+++ b/src/features/ChatInput/hooks/useLargeFileLocalPath.ts
@@ -1,7 +1,7 @@
'use client';
import type { IEditor } from '@lobehub/editor';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts b/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts
index 99fe612af8f..eb9a20372c9 100644
--- a/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts
+++ b/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { renderHook } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -48,7 +48,7 @@ vi.mock('@lobechat/const', () => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
toast: { error: vi.fn() },
}));
diff --git a/src/features/ChatInput/hooks/useSelectExecutionTarget.ts b/src/features/ChatInput/hooks/useSelectExecutionTarget.ts
index b924817178c..051b5ffa385 100644
--- a/src/features/ChatInput/hooks/useSelectExecutionTarget.ts
+++ b/src/features/ChatInput/hooks/useSelectExecutionTarget.ts
@@ -2,7 +2,7 @@
import { isDesktop } from '@lobechat/const';
import type { DeviceExecutionTarget } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { useCallback } from 'react';
diff --git a/src/features/ChatInput/store/initialState.ts b/src/features/ChatInput/store/initialState.ts
index 8e8e1da8a66..0bc44976dfa 100644
--- a/src/features/ChatInput/store/initialState.ts
+++ b/src/features/ChatInput/store/initialState.ts
@@ -1,7 +1,7 @@
import { type OpenAIChatMessage, type VoiceMessageRecording } from '@lobechat/types';
import { type IEditor, type SlashOptions } from '@lobehub/editor';
import { type ChatInputProps } from '@lobehub/editor/react';
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { type ActionKeys } from '@/features/ChatInput';
@@ -89,7 +89,7 @@ export interface PublicState {
resolveSendBlocked?: () => boolean;
rightActions: ActionKeys[];
sendButtonProps?: SendButtonProps;
- sendMenu?: MenuProps;
+ sendMenu?: { items: DropdownItem[] };
showTypoBar?: boolean;
/**
* Slash menu placement: 'bottom' for home page (input in center), 'top' for page input (at bottom)
diff --git a/src/features/ChatMiniMap/MinimapIndicator.tsx b/src/features/ChatMiniMap/MinimapIndicator.tsx
index 30cbdd6a540..1b842572732 100644
--- a/src/features/ChatMiniMap/MinimapIndicator.tsx
+++ b/src/features/ChatMiniMap/MinimapIndicator.tsx
@@ -1,4 +1,4 @@
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatMiniMap/MinimapPreview.tsx b/src/features/ChatMiniMap/MinimapPreview.tsx
index 7675fceef4e..3c523f32909 100644
--- a/src/features/ChatMiniMap/MinimapPreview.tsx
+++ b/src/features/ChatMiniMap/MinimapPreview.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatMiniMap/index.tsx b/src/features/ChatMiniMap/index.tsx
index cd1428ee673..9b123fe5b67 100644
--- a/src/features/ChatMiniMap/index.tsx
+++ b/src/features/ChatMiniMap/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { memo, useRef, useState } from 'react';
import { MinimapIndicator } from './MinimapIndicator';
diff --git a/src/features/ChatMiniMap/styles.ts b/src/features/ChatMiniMap/styles.ts
index 4801362a6cf..c141fa0c55c 100644
--- a/src/features/ChatMiniMap/styles.ts
+++ b/src/features/ChatMiniMap/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const minimapStyles = createStaticStyles(({ css, cssVar }) => ({
container: css`
diff --git a/src/features/ChatTerminal/Content.tsx b/src/features/ChatTerminal/Content.tsx
index f39ea90f85f..02516513414 100644
--- a/src/features/ChatTerminal/Content.tsx
+++ b/src/features/ChatTerminal/Content.tsx
@@ -1,20 +1,20 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Button,
type ContextMenuItem,
ContextMenuTrigger,
+ createStaticStyles,
+ Flexbox,
Select,
TabsIndicator,
TabsList,
TabsRoot,
TabsTab,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+} from '@lobehub/ui';
import {
CopyXIcon,
PlusIcon,
diff --git a/src/features/ChatTerminal/SplitView.tsx b/src/features/ChatTerminal/SplitView.tsx
index 96d3c23b4ad..b6dac04dc95 100644
--- a/src/features/ChatTerminal/SplitView.tsx
+++ b/src/features/ChatTerminal/SplitView.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles } from '@lobehub/ui';
import { XIcon } from 'lucide-react';
import { Fragment, type PointerEvent as ReactPointerEvent, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ChatTerminal/TerminalView.test.tsx b/src/features/ChatTerminal/TerminalView.test.tsx
index 70cea5008ec..61dc044890b 100644
--- a/src/features/ChatTerminal/TerminalView.test.tsx
+++ b/src/features/ChatTerminal/TerminalView.test.tsx
@@ -14,7 +14,7 @@ const { manager, preference } = vi.hoisted(() => ({
preference: { terminalFontFamily: '"JetBrains Mono"' },
}));
-vi.mock('antd-style', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
useTheme: () => ({ fontFamilyCode: 'Application Mono' }),
}));
diff --git a/src/features/ChatTerminal/TerminalView.tsx b/src/features/ChatTerminal/TerminalView.tsx
index 931156ee1f6..25fcfc61be4 100644
--- a/src/features/ChatTerminal/TerminalView.tsx
+++ b/src/features/ChatTerminal/TerminalView.tsx
@@ -1,6 +1,6 @@
'use client';
-import { useTheme } from 'antd-style';
+import { useTheme } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { useUserStore } from '@/store/user';
diff --git a/src/features/ChatTerminal/index.test.tsx b/src/features/ChatTerminal/index.test.tsx
index 4c1646c9179..9709ff391b1 100644
--- a/src/features/ChatTerminal/index.test.tsx
+++ b/src/features/ChatTerminal/index.test.tsx
@@ -12,7 +12,7 @@ vi.mock('@lobechat/const', async (importOriginal) => ({
isDesktop: true,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
DraggablePanel: ({ children, expand }: { children?: ReactNode; expand?: boolean }) => (
<div data-expand={String(expand)} data-testid="terminal-panel">
diff --git a/src/features/ChatTerminal/index.tsx b/src/features/ChatTerminal/index.tsx
index 4993c644800..3040edcfd6c 100644
--- a/src/features/ChatTerminal/index.tsx
+++ b/src/features/ChatTerminal/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { DraggablePanel } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, DraggablePanel } from '@lobehub/ui';
import { lazy, memo, Suspense, useEffect, useState } from 'react';
import { useToggleTerminalPanelHotkey } from '@/hooks/useHotkeys';
diff --git a/src/features/ClarificationQuestions/index.tsx b/src/features/ClarificationQuestions/index.tsx
index b880aab7916..cf9f3bc0426 100644
--- a/src/features/ClarificationQuestions/index.tsx
+++ b/src/features/ClarificationQuestions/index.tsx
@@ -6,8 +6,7 @@ import {
useAskUserForm,
} from '@lobechat/shared-tool-ui/ask-user';
import type { BuiltinInterventionProps } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert, Flexbox } from '@lobehub/ui';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommandMenu/README.md b/src/features/CommandMenu/README.md
index 0915a1c0ea0..6b30a367787 100644
--- a/src/features/CommandMenu/README.md
+++ b/src/features/CommandMenu/README.md
@@ -23,7 +23,7 @@ CommandMenu/
├── index.tsx # Main component & orchestration
├── useCommandMenu.ts # Core hook with business logic
├── types.ts # TypeScript type definitions
-├── styles.ts # antd-style CSS-in-JS styles
+├── styles.ts # createStaticStyles styles
│
├── components/
│ ├── CommandInput.tsx # Search input with context/back navigation
@@ -312,7 +312,7 @@ if (isLoading) {
## Styling
-Uses `antd-style` for theme-aware CSS-in-JS:
+Uses `@lobehub/ui` `createStaticStyles` + `cssVar` for theme-aware styles:
**Key Patterns**:
@@ -656,7 +656,6 @@ Potential areas for enhancement:
- `react-router-dom` - Navigation
- `zustand` - Global state
- `swr` - Data fetching
-- `antd-style` - Styling
- `lucide-react` - Icons
**Related Documentation**:
diff --git a/src/features/CommandMenu/components/CommandInput.tsx b/src/features/CommandMenu/components/CommandInput.tsx
index 9cd081c8102..1701369d115 100644
--- a/src/features/CommandMenu/components/CommandInput.tsx
+++ b/src/features/CommandMenu/components/CommandInput.tsx
@@ -1,6 +1,6 @@
import { DEFAULT_AVATAR } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { Command } from 'cmdk';
import { ArrowLeft, X } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/CommandMenu/index.tsx b/src/features/CommandMenu/index.tsx
index b8d50fa789f..cf2eb83ae5a 100644
--- a/src/features/CommandMenu/index.tsx
+++ b/src/features/CommandMenu/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { stopPropagation } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, stopPropagation } from '@lobehub/ui';
import { Command, defaultFilter } from 'cmdk';
import { CornerDownLeft } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/CommandMenu/styles.ts b/src/features/CommandMenu/styles.ts
index a080f4d5b05..433e3d7a83b 100644
--- a/src/features/CommandMenu/styles.ts
+++ b/src/features/CommandMenu/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
const slideDown = keyframes`
from {
diff --git a/src/features/CommunitySkillDetail/Details/Info/index.tsx b/src/features/CommunitySkillDetail/Details/Info/index.tsx
index b980cd4612d..2c8df44af21 100644
--- a/src/features/CommunitySkillDetail/Details/Info/index.tsx
+++ b/src/features/CommunitySkillDetail/Details/Info/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Block, createStaticStyles, responsive } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommunitySkillDetail/Details/Install/Platform.tsx b/src/features/CommunitySkillDetail/Details/Install/Platform.tsx
index 7a595362ed0..5a87bc2a5d6 100644
--- a/src/features/CommunitySkillDetail/Details/Install/Platform.tsx
+++ b/src/features/CommunitySkillDetail/Details/Install/Platform.tsx
@@ -2,9 +2,21 @@
import { AGENT_CHAT_URL, DEFAULT_INBOX_AVATAR } from '@lobechat/const';
import { Claude, Cline, Cursor, OpenAI } from '@lobehub/icons';
-import { Block, Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { Avatar, Button, Divider, Select, Tabs, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import {
+ Avatar,
+ Block,
+ Button,
+ createStaticStyles,
+ cx,
+ Divider,
+ Flexbox,
+ Highlighter,
+ Icon,
+ Markdown,
+ Select,
+ Tabs,
+ Text,
+} from '@lobehub/ui';
import { BotIcon, UserRoundIcon } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommunitySkillDetail/Details/Install/index.tsx b/src/features/CommunitySkillDetail/Details/Install/index.tsx
index dfe652e5567..757c09f7b86 100644
--- a/src/features/CommunitySkillDetail/Details/Install/index.tsx
+++ b/src/features/CommunitySkillDetail/Details/Install/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, MaterialFileTypeIcon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, MaterialFileTypeIcon, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommunitySkillDetail/Details/Nav.tsx b/src/features/CommunitySkillDetail/Details/Nav.tsx
index e677198238b..9a605473c46 100644
--- a/src/features/CommunitySkillDetail/Details/Nav.tsx
+++ b/src/features/CommunitySkillDetail/Details/Nav.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommunitySkillDetail/Details/Overview/RelatedSkillCard.tsx b/src/features/CommunitySkillDetail/Details/Overview/RelatedSkillCard.tsx
index ebc10cb82fb..00ec5c4e80c 100644
--- a/src/features/CommunitySkillDetail/Details/Overview/RelatedSkillCard.tsx
+++ b/src/features/CommunitySkillDetail/Details/Overview/RelatedSkillCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import urlJoin from 'url-join';
diff --git a/src/features/CommunitySkillDetail/Details/Overview/index.tsx b/src/features/CommunitySkillDetail/Details/Overview/index.tsx
index 36818697086..2d533b70a9e 100644
--- a/src/features/CommunitySkillDetail/Details/Overview/index.tsx
+++ b/src/features/CommunitySkillDetail/Details/Overview/index.tsx
@@ -1,8 +1,19 @@
'use client';
-import { Block, Flexbox, Icon, Markdown, ScrollShadow } from '@lobehub/ui';
-import { Accordion, Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, responsive } from 'antd-style';
+import {
+ Accordion,
+ Block,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Markdown,
+ responsive,
+ ScrollShadow,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import qs from 'query-string';
import { memo, useCallback } from 'react';
diff --git a/src/features/CommunitySkillDetail/Header.tsx b/src/features/CommunitySkillDetail/Header.tsx
index 1ec80dccdf3..6cb3c3a0d4e 100644
--- a/src/features/CommunitySkillDetail/Header.tsx
+++ b/src/features/CommunitySkillDetail/Header.tsx
@@ -1,8 +1,19 @@
'use client';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, responsive, useResponsive } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ responsive,
+ Text,
+ toast,
+ useResponsive,
+} from '@lobehub/ui';
import { CheckCircle2, CheckIcon, ChevronDown, Trash2 } from 'lucide-react';
import { memo, type ReactNode, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommunitySkillDetail/Loading.tsx b/src/features/CommunitySkillDetail/Loading.tsx
index 9b8d8ab181e..c94abedfa7e 100644
--- a/src/features/CommunitySkillDetail/Loading.tsx
+++ b/src/features/CommunitySkillDetail/Loading.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const navSkeletonWidths = [88, 72, 82, 58];
diff --git a/src/features/CommunitySkillDetail/SkillDetailContent.tsx b/src/features/CommunitySkillDetail/SkillDetailContent.tsx
index 51a08dc389e..af223995882 100644
--- a/src/features/CommunitySkillDetail/SkillDetailContent.tsx
+++ b/src/features/CommunitySkillDetail/SkillDetailContent.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { useModalContext } from '@lobehub/ui/base-ui';
+import { Empty, Flexbox, useModalContext } from '@lobehub/ui';
import { SearchX } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/CommunitySkillDetail/index.tsx b/src/features/CommunitySkillDetail/index.tsx
index 3281f4af5cd..826a9341636 100644
--- a/src/features/CommunitySkillDetail/index.tsx
+++ b/src/features/CommunitySkillDetail/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import { SkillDetailContent } from './SkillDetailContent';
diff --git a/src/features/CommunityWorkspaceSettings/index.tsx b/src/features/CommunityWorkspaceSettings/index.tsx
index 31e764447ab..33fa64f99b7 100644
--- a/src/features/CommunityWorkspaceSettings/index.tsx
+++ b/src/features/CommunityWorkspaceSettings/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { OFFICIAL_URL } from '@lobechat/const';
-import { Block, Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { Block, Center, createStaticStyles, cssVar, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
Avatar,
Button,
@@ -14,8 +14,7 @@ import {
TextArea,
toast,
Upload,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import {
ArrowLeft,
CircleHelp,
@@ -263,11 +262,13 @@ const MembersCard = memo<{ canManage: boolean }>(({ canManage }) => {
pagination={false}
rowKey={'accountId'}
size={'middle'}
- emptyText={
- <Text style={{ fontSize: 13 }} type="secondary">
- {t('user.workspaceProfile.settings.members.empty')}
- </Text>
- }
+ locale={{
+ emptyText: (
+ <Text style={{ fontSize: 13 }} type="secondary">
+ {t('user.workspaceProfile.settings.members.empty')}
+ </Text>
+ ),
+ }}
/>
</SettingCard>
);
diff --git a/src/features/ConnectAgent/index.tsx b/src/features/ConnectAgent/index.tsx
index 6df94f6bcf8..9d59b203657 100644
--- a/src/features/ConnectAgent/index.tsx
+++ b/src/features/ConnectAgent/index.tsx
@@ -9,7 +9,7 @@ import type {
import { isRemoteHeterogeneousType } from '@lobechat/heterogeneous-agents';
import type { DeviceListItem } from '@lobechat/types';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
Alert,
Button,
@@ -21,8 +21,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import {
ArrowLeft,
diff --git a/src/features/Connectors/AddConnectorModal/index.tsx b/src/features/Connectors/AddConnectorModal/index.tsx
index 34421a0f3df..7fe859411da 100644
--- a/src/features/Connectors/AddConnectorModal/index.tsx
+++ b/src/features/Connectors/AddConnectorModal/index.tsx
@@ -1,4 +1,4 @@
-import { Input, InputPassword, toast } from '@lobehub/ui/base-ui';
+import { Input, InputPassword, toast } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Connectors/ConnectorDetail/ToolPermissionGroup.tsx b/src/features/Connectors/ConnectorDetail/ToolPermissionGroup.tsx
index 67b6dc758ac..c1f59260ccf 100644
--- a/src/features/Connectors/ConnectorDetail/ToolPermissionGroup.tsx
+++ b/src/features/Connectors/ConnectorDetail/ToolPermissionGroup.tsx
@@ -1,5 +1,4 @@
-import { Button, DropdownMenu } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, DropdownMenu } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Connectors/ConnectorDetail/ToolPermissionRow.tsx b/src/features/Connectors/ConnectorDetail/ToolPermissionRow.tsx
index da34f686130..91e54de1ebd 100644
--- a/src/features/Connectors/ConnectorDetail/ToolPermissionRow.tsx
+++ b/src/features/Connectors/ConnectorDetail/ToolPermissionRow.tsx
@@ -1,5 +1,4 @@
-import { Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Tooltip } from '@lobehub/ui';
import { BanIcon, CheckIcon, HandIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Connectors/ConnectorDetail/index.tsx b/src/features/Connectors/ConnectorDetail/index.tsx
index aaffc7a6d92..7d4afa77ff1 100644
--- a/src/features/Connectors/ConnectorDetail/index.tsx
+++ b/src/features/Connectors/ConnectorDetail/index.tsx
@@ -1,6 +1,5 @@
import { getComposioAppByIdentifier, getLobehubSkillProviderById } from '@lobechat/const';
-import { Tooltip } from '@lobehub/ui';
-import { Button, confirmModal, toast } from '@lobehub/ui/base-ui';
+import { Button, confirmModal, toast, Tooltip } from '@lobehub/ui';
import { PencilIcon, RefreshCwIcon, Trash2 } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useCallback, useState } from 'react';
@@ -216,7 +215,7 @@ const ConnectorDetail = memo<ConnectorDetailProps>(
<div
style={{
alignItems: 'center',
- borderBlockEnd: '1px solid var(--ant-color-border-secondary)',
+ borderBlockEnd: '1px solid var(--lobe-color-border-secondary)',
display: 'flex',
flexShrink: 0,
gap: 8,
@@ -351,7 +350,7 @@ const ConnectorDetail = memo<ConnectorDetailProps>(
{connectorDescription && (
<div
style={{
- color: 'var(--ant-color-text-secondary)',
+ color: 'var(--lobe-color-text-secondary)',
fontSize: 13,
lineHeight: 1.6,
marginBottom: 16,
diff --git a/src/features/Connectors/ConnectorList/ConnectorItem.tsx b/src/features/Connectors/ConnectorList/ConnectorItem.tsx
index 8e542bdbd3f..77a3ea5e369 100644
--- a/src/features/Connectors/ConnectorList/ConnectorItem.tsx
+++ b/src/features/Connectors/ConnectorList/ConnectorItem.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { LinkIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Connectors/ConnectorList/index.tsx b/src/features/Connectors/ConnectorList/index.tsx
index b14ffbffa1a..f6220afbe58 100644
--- a/src/features/Connectors/ConnectorList/index.tsx
+++ b/src/features/Connectors/ConnectorList/index.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/AgentWelcome/ToolAuthAlert.tsx b/src/features/Conversation/AgentWelcome/ToolAuthAlert.tsx
index 409e2f327bd..4c0bd9b3721 100644
--- a/src/features/Conversation/AgentWelcome/ToolAuthAlert.tsx
+++ b/src/features/Conversation/AgentWelcome/ToolAuthAlert.tsx
@@ -1,9 +1,20 @@
'use client';
import type { TaskTemplateConnectorReference } from '@lobechat/const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Alert, Avatar, Button, Divider, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Alert,
+ Avatar,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Divider,
+ Flexbox,
+ Icon,
+ Text,
+ toast,
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { PlusIcon, XIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/Conversation/ChatInput/InputCompletionErrorAlert.tsx b/src/features/Conversation/ChatInput/InputCompletionErrorAlert.tsx
index b61866612b2..90a0825b507 100644
--- a/src/features/Conversation/ChatInput/InputCompletionErrorAlert.tsx
+++ b/src/features/Conversation/ChatInput/InputCompletionErrorAlert.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button } from '@lobehub/ui/base-ui';
+import { Alert, Button, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router';
diff --git a/src/features/Conversation/ChatInput/LinkedGoalTray/index.tsx b/src/features/Conversation/ChatInput/LinkedGoalTray/index.tsx
index 68558475e65..abd68b70523 100644
--- a/src/features/Conversation/ChatInput/LinkedGoalTray/index.tsx
+++ b/src/features/Conversation/ChatInput/LinkedGoalTray/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatInput/OpStatusTray.tsx b/src/features/Conversation/ChatInput/OpStatusTray.tsx
index ae72e8679b5..792544c4532 100644
--- a/src/features/Conversation/ChatInput/OpStatusTray.tsx
+++ b/src/features/Conversation/ChatInput/OpStatusTray.tsx
@@ -1,8 +1,7 @@
'use client';
import { formatElapsedClockTime } from '@lobechat/utils';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { CircleDollarSignIcon, CoinsIcon, FootprintsIcon } from 'lucide-react';
import { Fragment, memo, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/Conversation/ChatInput/QueueTray.tsx b/src/features/Conversation/ChatInput/QueueTray.tsx
index 8d1c0677bde..233802d62dc 100644
--- a/src/features/Conversation/ChatInput/QueueTray.tsx
+++ b/src/features/Conversation/ChatInput/QueueTray.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Image, Tooltip } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Icon, Image, Tooltip } from '@lobehub/ui';
import { ArrowUp, Info, ListEnd, Pencil, Trash2 } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatInput/VerifyTray/EditModal.tsx b/src/features/Conversation/ChatInput/VerifyTray/EditModal.tsx
index 0297e532a35..fb68831d525 100644
--- a/src/features/Conversation/ChatInput/VerifyTray/EditModal.tsx
+++ b/src/features/Conversation/ChatInput/VerifyTray/EditModal.tsx
@@ -9,7 +9,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatInput/VerifyTray/GoalModal.test.tsx b/src/features/Conversation/ChatInput/VerifyTray/GoalModal.test.tsx
index 7d78dbbdff6..3b8ec30d269 100644
--- a/src/features/Conversation/ChatInput/VerifyTray/GoalModal.test.tsx
+++ b/src/features/Conversation/ChatInput/VerifyTray/GoalModal.test.tsx
@@ -6,7 +6,7 @@ import { GoalContent } from './GoalModal';
const mocks = vi.hoisted(() => ({ close: vi.fn() }));
vi.mock('i18next', () => ({ t: (key: string) => key }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
useModalContext: () => ({ close: mocks.close }),
}));
diff --git a/src/features/Conversation/ChatInput/VerifyTray/GoalModal.tsx b/src/features/Conversation/ChatInput/VerifyTray/GoalModal.tsx
index e02754c6a26..4ef0d50ac11 100644
--- a/src/features/Conversation/ChatInput/VerifyTray/GoalModal.tsx
+++ b/src/features/Conversation/ChatInput/VerifyTray/GoalModal.tsx
@@ -8,7 +8,7 @@ import {
Text,
TextArea,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatInput/index.tsx b/src/features/Conversation/ChatInput/index.tsx
index 169261e5266..f37d481212e 100644
--- a/src/features/Conversation/ChatInput/index.tsx
+++ b/src/features/Conversation/ChatInput/index.tsx
@@ -3,8 +3,7 @@
import { type VoiceMessageRecording } from '@lobechat/types';
import { type SlashOptions } from '@lobehub/editor';
import { type ChatInputActionsProps } from '@lobehub/editor/react';
-import { Flexbox, type MenuProps } from '@lobehub/ui';
-import { Alert, toast } from '@lobehub/ui/base-ui';
+import { Alert, type DropdownItem, Flexbox, toast } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useCallback, useEffect, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
@@ -157,7 +156,7 @@ export interface ChatInputProps {
/**
* Send menu configuration (for send options like Enter/Cmd+Enter, Add AI/User message)
*/
- sendMenu?: MenuProps;
+ sendMenu?: { items: DropdownItem[] };
/**
* Whether to show the control bar (Local/Cloud/Auto Approve)
*/
diff --git a/src/features/Conversation/ChatItem/ChatItem.tsx b/src/features/Conversation/ChatItem/ChatItem.tsx
index ebdd1826d30..1c5a3dbf48e 100644
--- a/src/features/Conversation/ChatItem/ChatItem.tsx
+++ b/src/features/Conversation/ChatItem/ChatItem.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import FollowUpChips from '../FollowUp/FollowUpChips';
diff --git a/src/features/Conversation/ChatItem/components/ErrorContent.tsx b/src/features/Conversation/ChatItem/components/ErrorContent.tsx
index c45109793b9..c3fd2aadd09 100644
--- a/src/features/Conversation/ChatItem/components/ErrorContent.tsx
+++ b/src/features/Conversation/ChatItem/components/ErrorContent.tsx
@@ -1,5 +1,4 @@
-import { Alert, Button, Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Alert, Button, createStaticStyles, cx, Skeleton } from '@lobehub/ui';
import { RotateCcw } from 'lucide-react';
import { memo, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatItem/components/MessageContent/index.tsx b/src/features/Conversation/ChatItem/components/MessageContent/index.tsx
index a5d803b4c30..03a9588c7ba 100644
--- a/src/features/Conversation/ChatItem/components/MessageContent/index.tsx
+++ b/src/features/Conversation/ChatItem/components/MessageContent/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, type ModalInstance } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useCallback, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatItem/components/MessageContent/useEditConfirmation.ts b/src/features/Conversation/ChatItem/components/MessageContent/useEditConfirmation.ts
index c44329618e7..4c6ffb7dba6 100644
--- a/src/features/Conversation/ChatItem/components/MessageContent/useEditConfirmation.ts
+++ b/src/features/Conversation/ChatItem/components/MessageContent/useEditConfirmation.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatItem/components/Title.tsx b/src/features/Conversation/ChatItem/components/Title.tsx
index a61760a35c6..a630579845c 100644
--- a/src/features/Conversation/ChatItem/components/Title.tsx
+++ b/src/features/Conversation/ChatItem/components/Title.tsx
@@ -1,5 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatItem/style.ts b/src/features/Conversation/ChatItem/style.ts
index 19e18e1f8ab..8ca6df01491 100644
--- a/src/features/Conversation/ChatItem/style.ts
+++ b/src/features/Conversation/ChatItem/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => {
const locateHighlight = keyframes`
diff --git a/src/features/Conversation/ChatItem/type.ts b/src/features/Conversation/ChatItem/type.ts
index 98874015b22..65f433ebf0b 100644
--- a/src/features/Conversation/ChatItem/type.ts
+++ b/src/features/Conversation/ChatItem/type.ts
@@ -1,5 +1,4 @@
-import type { DivProps, FlexboxProps } from '@lobehub/ui';
-import { type AlertProps, type AvatarProps } from '@lobehub/ui/base-ui';
+import type { AlertProps, AvatarProps, DivProps, FlexboxProps } from '@lobehub/ui';
import type { EditableMessageProps, MetaData } from '@lobehub/ui/chat';
import type { ReactNode } from 'react';
diff --git a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx
index 276858cd265..5c4dccea224 100644
--- a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx
+++ b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx
@@ -15,7 +15,7 @@ const mocks = vi.hoisted(() => ({
toastError: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: mocks.toastError },
}));
diff --git a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx
index 342ba5708d2..dff4d063a77 100644
--- a/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx
+++ b/src/features/Conversation/ChatList/components/AgentSignalReceiptList.tsx
@@ -1,10 +1,8 @@
'use client';
import { LayersEnum } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { createStaticStyles, Icon, toast } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles } from 'antd-style';
import type { LucideIcon } from 'lucide-react';
import { Brain, ClipboardCheck } from 'lucide-react';
import { memo, useCallback, useRef, useState } from 'react';
diff --git a/src/features/Conversation/ChatList/components/BackBottom/index.tsx b/src/features/Conversation/ChatList/components/BackBottom/index.tsx
index 5e4d6a359a6..5f118768886 100644
--- a/src/features/Conversation/ChatList/components/BackBottom/index.tsx
+++ b/src/features/Conversation/ChatList/components/BackBottom/index.tsx
@@ -1,5 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { ActionIcon, cx } from '@lobehub/ui';
import { ArrowDownIcon } from 'lucide-react';
import { lazy, memo, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/ChatList/components/BackBottom/style.ts b/src/features/Conversation/ChatList/components/BackBottom/style.ts
index c7f34db0e67..0cd68868e0f 100644
--- a/src/features/Conversation/ChatList/components/BackBottom/style.ts
+++ b/src/features/Conversation/ChatList/components/BackBottom/style.ts
@@ -1,5 +1,4 @@
-import { lobeStaticStylish } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, lobeStaticStylish } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
container: cx(
diff --git a/src/features/Conversation/ChatList/components/RefreshError.tsx b/src/features/Conversation/ChatList/components/RefreshError.tsx
index c3a7ac51ab9..a459b1e00c5 100644
--- a/src/features/Conversation/ChatList/components/RefreshError.tsx
+++ b/src/features/Conversation/ChatList/components/RefreshError.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/BaseErrorForm.tsx b/src/features/Conversation/Error/BaseErrorForm.tsx
index 3d78b92b6bd..3de0376017c 100644
--- a/src/features/Conversation/Error/BaseErrorForm.tsx
+++ b/src/features/Conversation/Error/BaseErrorForm.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Error/ChatInvalidApiKey.tsx b/src/features/Conversation/Error/ChatInvalidApiKey.tsx
index 847b3a9edb1..ca9bbfb6d1a 100644
--- a/src/features/Conversation/Error/ChatInvalidApiKey.tsx
+++ b/src/features/Conversation/Error/ChatInvalidApiKey.tsx
@@ -1,4 +1,4 @@
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { ModelProvider } from 'model-bank/modelProvider';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/ClientLlmWaitingCard.tsx b/src/features/Conversation/Error/ClientLlmWaitingCard.tsx
index f7d34edfab9..bbdcf98cba4 100644
--- a/src/features/Conversation/Error/ClientLlmWaitingCard.tsx
+++ b/src/features/Conversation/Error/ClientLlmWaitingCard.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, Icon, toast } from '@lobehub/ui';
import dayjs from 'dayjs';
import { MonitorSmartphone } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
diff --git a/src/features/Conversation/Error/ExceededContextWindowError.tsx b/src/features/Conversation/Error/ExceededContextWindowError.tsx
index c4a2aae2ee1..9205ced8d60 100644
--- a/src/features/Conversation/Error/ExceededContextWindowError.tsx
+++ b/src/features/Conversation/Error/ExceededContextWindowError.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Icon } from '@lobehub/ui';
import { Minimize2 } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx b/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx
index 2cf99d8652a..8570c265b67 100644
--- a/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx
+++ b/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx
@@ -1,4 +1,4 @@
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/OllamaBizError/index.tsx b/src/features/Conversation/Error/OllamaBizError/index.tsx
index 1ffa859a6bd..535d9c4e439 100644
--- a/src/features/Conversation/Error/OllamaBizError/index.tsx
+++ b/src/features/Conversation/Error/OllamaBizError/index.tsx
@@ -1,5 +1,5 @@
import { type ChatMessageError } from '@lobechat/types';
-import { type AlertProps, Skeleton } from '@lobehub/ui/base-ui';
+import { type AlertProps, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import ErrorContent from '@/features/Conversation/ChatItem/components/ErrorContent';
diff --git a/src/features/Conversation/Error/OllamaSetupGuide/Desktop.tsx b/src/features/Conversation/Error/OllamaSetupGuide/Desktop.tsx
index dbe7d1e06f9..ceb4ecadb97 100644
--- a/src/features/Conversation/Error/OllamaSetupGuide/Desktop.tsx
+++ b/src/features/Conversation/Error/OllamaSetupGuide/Desktop.tsx
@@ -1,5 +1,5 @@
import { Ollama } from '@lobehub/icons';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/PlanLimitCard/index.tsx b/src/features/Conversation/Error/PlanLimitCard/index.tsx
index b1f1fb4d58d..74b9d3e6008 100644
--- a/src/features/Conversation/Error/PlanLimitCard/index.tsx
+++ b/src/features/Conversation/Error/PlanLimitCard/index.tsx
@@ -1,8 +1,6 @@
import { BRANDING_URL } from '@lobechat/business-const';
import { ChatErrorType, Plans } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/QuotaLimitError.tsx b/src/features/Conversation/Error/QuotaLimitError.tsx
index a0ed64ad338..2c115468ae9 100644
--- a/src/features/Conversation/Error/QuotaLimitError.tsx
+++ b/src/features/Conversation/Error/QuotaLimitError.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Icon } from '@lobehub/ui';
import { AlertTriangle, RotateCw } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/TraceIdError.tsx b/src/features/Conversation/Error/TraceIdError.tsx
index af4e0a0a2f1..b6dc5e6f5b0 100644
--- a/src/features/Conversation/Error/TraceIdError.tsx
+++ b/src/features/Conversation/Error/TraceIdError.tsx
@@ -1,9 +1,7 @@
import { SOCIAL_URL } from '@lobechat/business-const';
import type { ChatMessageError } from '@lobechat/types';
-import { copyToClipboard, Flexbox, Icon } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, copyToClipboard, cssVar, Flexbox, Icon, toast } from '@lobehub/ui';
import { DiscordIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import { AlertTriangle, Copy, RotateCw } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/index.tsx b/src/features/Conversation/Error/index.tsx
index 718dda405af..2a2f35a1832 100644
--- a/src/features/Conversation/Error/index.tsx
+++ b/src/features/Conversation/Error/index.tsx
@@ -6,8 +6,7 @@ import { AgentRuntimeErrorType, getErrorCodeSpec } from '@lobechat/model-runtime
import { type ChatMessageError, type ErrorType, type IToolErrorType } from '@lobechat/types';
import { ChatErrorType } from '@lobechat/types';
import { isRecord } from '@lobechat/utils/object';
-import { Block, Highlighter } from '@lobehub/ui';
-import { type AlertProps, Skeleton, toast } from '@lobehub/ui/base-ui';
+import { type AlertProps, Block, Highlighter, Skeleton, toast } from '@lobehub/ui';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Error/style.tsx b/src/features/Conversation/Error/style.tsx
index 5325ee811be..ed4cb76b97a 100644
--- a/src/features/Conversation/Error/style.tsx
+++ b/src/features/Conversation/Error/style.tsx
@@ -1,7 +1,5 @@
import { type CenterProps } from '@lobehub/ui';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Center, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Conversation/FollowUp/style.ts b/src/features/Conversation/FollowUp/style.ts
index b8340a96fe8..7eb78141b05 100644
--- a/src/features/Conversation/FollowUp/style.ts
+++ b/src/features/Conversation/FollowUp/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
const slideUp = keyframes`
from {
diff --git a/src/features/Conversation/InterventionBar/InterventionTabBar.tsx b/src/features/Conversation/InterventionBar/InterventionTabBar.tsx
index 4ff43cf360f..f5985a5cc56 100644
--- a/src/features/Conversation/InterventionBar/InterventionTabBar.tsx
+++ b/src/features/Conversation/InterventionBar/InterventionTabBar.tsx
@@ -1,6 +1,4 @@
-import { Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Button, cx, Tooltip } from '@lobehub/ui';
import { CheckCheck } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/InterventionBar/UserInterventionErrorBoundary.tsx b/src/features/Conversation/InterventionBar/UserInterventionErrorBoundary.tsx
index ebaffec75ef..147ee2a61b5 100644
--- a/src/features/Conversation/InterventionBar/UserInterventionErrorBoundary.tsx
+++ b/src/features/Conversation/InterventionBar/UserInterventionErrorBoundary.tsx
@@ -1,9 +1,7 @@
'use client';
import { safeParseJSON } from '@lobechat/utils';
-import { Flexbox, Highlighter, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Highlighter, Icon, Text } from '@lobehub/ui';
import { AlertTriangle } from 'lucide-react';
import type { ErrorInfo, ReactNode } from 'react';
import { Component, memo, useMemo } from 'react';
diff --git a/src/features/Conversation/InterventionBar/style.ts b/src/features/Conversation/InterventionBar/style.ts
index fee25e9bc6b..8db1c318bd2 100644
--- a/src/features/Conversation/InterventionBar/style.ts
+++ b/src/features/Conversation/InterventionBar/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
actions: css`
diff --git a/src/features/Conversation/Markdown/plugins/FileLink/Render.tsx b/src/features/Conversation/Markdown/plugins/FileLink/Render.tsx
index 6079e3aba14..c84347240c2 100644
--- a/src/features/Conversation/Markdown/plugins/FileLink/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/FileLink/Render.tsx
@@ -1,8 +1,7 @@
'use client';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
-import { A } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { A, createStaticStyles } from '@lobehub/ui';
import type { MouseEvent } from 'react';
import { memo, useCallback } from 'react';
diff --git a/src/features/Conversation/Markdown/plugins/GoalTurn/Render.tsx b/src/features/Conversation/Markdown/plugins/GoalTurn/Render.tsx
index 8864191f19f..a0e610838d1 100644
--- a/src/features/Conversation/Markdown/plugins/GoalTurn/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/GoalTurn/Render.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, type AccordionItemType, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon } from '@lobehub/ui';
+import { Accordion, type AccordionItemType, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { TargetIcon } from 'lucide-react';
import { useMemo, useState } from 'react';
diff --git a/src/features/Conversation/Markdown/plugins/ImageSearchRef/Render.tsx b/src/features/Conversation/Markdown/plugins/ImageSearchRef/Render.tsx
index da5377755ae..f868252c575 100644
--- a/src/features/Conversation/Markdown/plugins/ImageSearchRef/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/ImageSearchRef/Render.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Popover } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/Conversation/Markdown/plugins/LobeAgents/Render/index.tsx b/src/features/Conversation/Markdown/plugins/LobeAgents/Render/index.tsx
index c2dffc854d7..c482ea701e3 100644
--- a/src/features/Conversation/Markdown/plugins/LobeAgents/Render/index.tsx
+++ b/src/features/Conversation/Markdown/plugins/LobeAgents/Render/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { AGENT_CHAT_URL } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, Flexbox } from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import { memo, useCallback } from 'react';
diff --git a/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/Icon.tsx b/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/Icon.tsx
index 4daae756f40..cabb32e9a03 100644
--- a/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/Icon.tsx
+++ b/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/Icon.tsx
@@ -1,7 +1,5 @@
import { SiReact } from '@icons-pack/react-simple-icons';
-import { Icon } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Spin } from '@lobehub/ui';
import { CodeXml, GlobeIcon, ImageIcon, OrigamiIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/index.tsx b/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/index.tsx
index 9318e315f99..4e76cd1cb09 100644
--- a/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/index.tsx
+++ b/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/index.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Center, createStaticStyles, cx, Flexbox, Spin } from '@lobehub/ui';
import { memo, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Markdown/plugins/LocalFileLink/Render.tsx b/src/features/Conversation/Markdown/plugins/LocalFileLink/Render.tsx
index 6db6951cd55..c93aa5b4d9b 100644
--- a/src/features/Conversation/Markdown/plugins/LocalFileLink/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/LocalFileLink/Render.tsx
@@ -2,8 +2,7 @@
import { isDesktop } from '@lobechat/const';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
-import { A, Tooltip } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { A, createStaticStyles, Tooltip } from '@lobehub/ui';
import type { MouseEvent } from 'react';
import { memo, useCallback } from 'react';
diff --git a/src/features/Conversation/Markdown/plugins/Mention/Render.tsx b/src/features/Conversation/Markdown/plugins/Mention/Render.tsx
index 81999621435..1f974f8259e 100644
--- a/src/features/Conversation/Markdown/plugins/Mention/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/Mention/Render.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, Flexbox, Popover, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Markdown/plugins/ScmEvent/Render.tsx b/src/features/Conversation/Markdown/plugins/ScmEvent/Render.tsx
index 52700659e0e..aaa4c76f3a8 100644
--- a/src/features/Conversation/Markdown/plugins/ScmEvent/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/ScmEvent/Render.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import {
ChevronRightIcon,
CircleCheckIcon,
diff --git a/src/features/Conversation/Markdown/plugins/Task/Render.tsx b/src/features/Conversation/Markdown/plugins/Task/Render.tsx
index b13f55bc02f..8a65d8a8317 100644
--- a/src/features/Conversation/Markdown/plugins/Task/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/Task/Render.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { ClipboardList } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Markdown/plugins/UserFeedback/Render.tsx b/src/features/Conversation/Markdown/plugins/UserFeedback/Render.tsx
index 25a5e930c65..831c1a56863 100644
--- a/src/features/Conversation/Markdown/plugins/UserFeedback/Render.tsx
+++ b/src/features/Conversation/Markdown/plugins/UserFeedback/Render.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { MessageSquareText } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/MessageForward/ForwardModal.tsx b/src/features/Conversation/MessageForward/ForwardModal.tsx
index c421f982f88..9eb17059445 100644
--- a/src/features/Conversation/MessageForward/ForwardModal.tsx
+++ b/src/features/Conversation/MessageForward/ForwardModal.tsx
@@ -1,9 +1,18 @@
'use client';
import { agentDisplayName, type StoreApiWithSelector } from '@lobechat/types';
-import { Flexbox, SearchBar } from '@lobehub/ui';
-import { Button, createModal, Text, TextArea, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ SearchBar,
+ Text,
+ TextArea,
+ useModalContext,
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t as translate } from 'i18next';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/Conversation/MessageForward/MessageSelectionWrapper.tsx b/src/features/Conversation/MessageForward/MessageSelectionWrapper.tsx
index c3cf1476cee..0b13e78eb66 100644
--- a/src/features/Conversation/MessageForward/MessageSelectionWrapper.tsx
+++ b/src/features/Conversation/MessageForward/MessageSelectionWrapper.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { memo, type MouseEvent, type ReactNode, useCallback } from 'react';
import { CONVERSATION_MIN_WIDTH } from '@/const/layoutTokens';
diff --git a/src/features/Conversation/MessageForward/SelectCircle.tsx b/src/features/Conversation/MessageForward/SelectCircle.tsx
index 76e068d9a90..8463fb8dacb 100644
--- a/src/features/Conversation/MessageForward/SelectCircle.tsx
+++ b/src/features/Conversation/MessageForward/SelectCircle.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Center, createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/MessageForward/SelectToHereButton.tsx b/src/features/Conversation/MessageForward/SelectToHereButton.tsx
index 9a71fce6953..236df3a4ec1 100644
--- a/src/features/Conversation/MessageForward/SelectToHereButton.tsx
+++ b/src/features/Conversation/MessageForward/SelectToHereButton.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { ArrowDownToLine } from 'lucide-react';
import { memo, useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/MessageForward/SelectionFooterBar.tsx b/src/features/Conversation/MessageForward/SelectionFooterBar.tsx
index 13067f3a674..ab455adf1f8 100644
--- a/src/features/Conversation/MessageForward/SelectionFooterBar.tsx
+++ b/src/features/Conversation/MessageForward/SelectionFooterBar.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { Forward, Trash2, X } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/MessageForward/TopicForwardModal/Content.tsx b/src/features/Conversation/MessageForward/TopicForwardModal/Content.tsx
index 35d4754228c..62b2b9d173a 100644
--- a/src/features/Conversation/MessageForward/TopicForwardModal/Content.tsx
+++ b/src/features/Conversation/MessageForward/TopicForwardModal/Content.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, SearchBar } from '@lobehub/ui';
-import { Button, Text, TextArea, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ SearchBar,
+ Text,
+ TextArea,
+ useModalContext,
+} from '@lobehub/ui';
import { useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/MessageForward/TopicForwardModal/index.tsx b/src/features/Conversation/MessageForward/TopicForwardModal/index.tsx
index 6db3c55aa5d..c850f8c42cf 100644
--- a/src/features/Conversation/MessageForward/TopicForwardModal/index.tsx
+++ b/src/features/Conversation/MessageForward/TopicForwardModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import type { TopicForwardContentProps } from './Content';
diff --git a/src/features/Conversation/MessageForward/useForwardMessages.ts b/src/features/Conversation/MessageForward/useForwardMessages.ts
index e9fccc2eb87..12aaacced2a 100644
--- a/src/features/Conversation/MessageForward/useForwardMessages.ts
+++ b/src/features/Conversation/MessageForward/useForwardMessages.ts
@@ -1,5 +1,5 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/MessageForward/useForwardTopic.test.ts b/src/features/Conversation/MessageForward/useForwardTopic.test.ts
index 2156f8ef7d4..9bde4f8ef38 100644
--- a/src/features/Conversation/MessageForward/useForwardTopic.test.ts
+++ b/src/features/Conversation/MessageForward/useForwardTopic.test.ts
@@ -19,7 +19,7 @@ vi.mock('@/features/Workspace/useWorkspaceAwareNavigate', () => ({
useWorkspaceAwareNavigate: () => mocks.navigate,
}));
vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => key }) }));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { error: mocks.error, success: mocks.success } }));
+vi.mock('@lobehub/ui', () => ({ toast: { error: mocks.error, success: mocks.success } }));
describe('topic handoff acceptance', () => {
beforeEach(() => vi.clearAllMocks());
diff --git a/src/features/Conversation/MessageForward/useForwardTopic.ts b/src/features/Conversation/MessageForward/useForwardTopic.ts
index f490d2a71e9..7d9022fb3d5 100644
--- a/src/features/Conversation/MessageForward/useForwardTopic.ts
+++ b/src/features/Conversation/MessageForward/useForwardTopic.ts
@@ -1,5 +1,5 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AgentCouncil/components/CouncilList.tsx b/src/features/Conversation/Messages/AgentCouncil/components/CouncilList.tsx
index 5f8b4505ecc..268006b50ce 100644
--- a/src/features/Conversation/Messages/AgentCouncil/components/CouncilList.tsx
+++ b/src/features/Conversation/Messages/AgentCouncil/components/CouncilList.tsx
@@ -1,8 +1,7 @@
'use client';
import { type UIChatMessage } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Fragment, memo } from 'react';
diff --git a/src/features/Conversation/Messages/AgentCouncil/components/ScrollShadowWithButton.tsx b/src/features/Conversation/Messages/AgentCouncil/components/ScrollShadowWithButton.tsx
index 36c29bf9c5b..ff1d3fefbf2 100644
--- a/src/features/Conversation/Messages/AgentCouncil/components/ScrollShadowWithButton.tsx
+++ b/src/features/Conversation/Messages/AgentCouncil/components/ScrollShadowWithButton.tsx
@@ -1,7 +1,5 @@
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox, ScrollShadow } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox, ScrollShadow } from '@lobehub/ui';
import { ChevronLeft, ChevronRight } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/Conversation/Messages/AgentCouncil/index.tsx b/src/features/Conversation/Messages/AgentCouncil/index.tsx
index 31df2220ab6..ae2911474d4 100644
--- a/src/features/Conversation/Messages/AgentCouncil/index.tsx
+++ b/src/features/Conversation/Messages/AgentCouncil/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type UIChatMessage } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tabs } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { BotIcon, Columns2, Layers } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Conversation/Messages/Assistant/components/InterruptedHint.tsx b/src/features/Conversation/Messages/Assistant/components/InterruptedHint.tsx
index 2faa25b5426..0c8a93efdca 100644
--- a/src/features/Conversation/Messages/Assistant/components/InterruptedHint.tsx
+++ b/src/features/Conversation/Messages/Assistant/components/InterruptedHint.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Assistant/components/ThreadExecutionSummary.tsx b/src/features/Conversation/Messages/Assistant/components/ThreadExecutionSummary.tsx
index 23c4b37e6df..18cbd42114a 100644
--- a/src/features/Conversation/Messages/Assistant/components/ThreadExecutionSummary.tsx
+++ b/src/features/Conversation/Messages/Assistant/components/ThreadExecutionSummary.tsx
@@ -1,4 +1,4 @@
-import { Accordion, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/Settings.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/Settings.tsx
index 42d0016fbb4..f16146c8208 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/Settings.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/Settings.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { LucideSettings } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/index.tsx
index f156db7d05c..af7a6a61253 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Actions/index.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { LayoutPanelTop, LogsIcon, LucideBug, LucideBugOff, Trash2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Debug/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Debug/index.tsx
index 752e31a56f8..202fc9e1431 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Debug/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Debug/index.tsx
@@ -1,6 +1,6 @@
import { type ToolIntervention } from '@lobechat/types';
import { Block, Highlighter, Icon } from '@lobehub/ui';
-import { Tabs, type TabsProps } from '@lobehub/ui/base-ui';
+import { Tabs, type TabsProps } from '@lobehub/ui';
import {
BracesIcon,
CircleAlertIcon,
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/AbortResponse.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/AbortResponse.tsx
index 28d3c3f6e24..09bf46a1e0e 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/AbortResponse.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/AbortResponse.tsx
@@ -1,4 +1,4 @@
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.test.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.test.tsx
index 58e0975b35a..40959ab0cb8 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.test.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.test.tsx
@@ -7,7 +7,7 @@ import { describe, expect, it, vi } from 'vitest';
import Arguments from './index';
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
ActionIcon: ({
active,
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.tsx
index f569ddbe52a..7e3ea5054d7 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Arguments/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { ActionIcon, Divider, Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { ActionIcon, cssVar, cx, Divider, Flexbox, Highlighter, Text } from '@lobehub/ui';
import { WrapText } from 'lucide-react';
import { parse } from 'partial-json';
import type { ReactNode } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/ApprovalActions.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/ApprovalActions.tsx
index 1662bc54c7a..028fa2aecf5 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/ApprovalActions.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/ApprovalActions.tsx
@@ -1,7 +1,5 @@
import { registerPendingHotkeyCard } from '@lobechat/shared-tool-ui/pending-hotkeys';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { CircleStop, CornerDownLeft } from 'lucide-react';
import type { KeyboardEvent as ReactKeyboardEvent } from 'react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/Fallback.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/Fallback.tsx
index f1dc6cf54cd..38367f2ce81 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/Fallback.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/Fallback.tsx
@@ -5,9 +5,7 @@ import {
} from '@lobechat/builtin-tool-activator';
import { builtinToolIdentifiers } from '@lobechat/builtin-tools/identifiers';
import { safeParseJSON } from '@lobechat/utils';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Avatar, createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ChevronDown, ChevronRight, Edit3Icon } from 'lucide-react';
import { memo, Suspense, useCallback, useMemo, useRef, useState } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx
index e92f8d273b2..6c5a2d6c4cc 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/KeyValueEditor.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Input, toast } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, Flexbox, Icon, Input, toast } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { LucidePlus, LucideTrash } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/SecurityBlacklistWarning.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/SecurityBlacklistWarning.tsx
index 105834d5daf..bbbaa136c4e 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/SecurityBlacklistWarning.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Intervention/SecurityBlacklistWarning.tsx
@@ -1,6 +1,5 @@
import { DEFAULT_SECURITY_BLACKLIST, InterventionChecker } from '@lobechat/agent-runtime';
-import { Flexbox } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert, Flexbox } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/RejectedResponse.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/RejectedResponse.tsx
index 4c36ea89aca..8d2f5bf406c 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/RejectedResponse.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/RejectedResponse.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { AlertTriangle, CornerUpRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/FallbacktArgumentRender.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/FallbacktArgumentRender.tsx
index e544506ea96..a1aeb69043d 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/FallbacktArgumentRender.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/FallbacktArgumentRender.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox, Highlighter } from '@lobehub/ui';
-import { Divider, Text } from '@lobehub/ui/base-ui';
+import { Block, Divider, Flexbox, Highlighter, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/index.tsx
index 716d03775aa..f2d6aea6841 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Detail/Render/index.tsx
@@ -1,7 +1,6 @@
import { getBuiltinRender } from '@lobechat/builtin-tools/renders';
import { type ChatPluginPayload } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import { useToolResultPayload } from '@/hooks/useToolResultPayload';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ExecutionTime.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ExecutionTime.tsx
index c03115d6ed8..f5f3121b786 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ExecutionTime.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ExecutionTime.tsx
@@ -1,5 +1,5 @@
import { formatDuration } from '@lobechat/utils';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
interface ExecutionTimeProps {
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/StatusIndicator.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/StatusIndicator.tsx
index 5130ef3095d..480e24aaec6 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/StatusIndicator.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/StatusIndicator.tsx
@@ -1,7 +1,5 @@
import { type ToolIntervention } from '@lobechat/types';
-import { Block, Icon, Tooltip } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon, Spin, Tooltip } from '@lobehub/ui';
import {
AlertTriangle,
Ban,
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ToolTitle.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ToolTitle.tsx
index a52fef78477..d5dbcd0a930 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ToolTitle.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/ToolTitle.tsx
@@ -1,6 +1,5 @@
import { getGoalCommand, isGoalCommandFailed } from '@lobechat/shared-tool-ui/goal-command';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Icon } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ChevronRight } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx
index 0e538b288ee..508c2915f44 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx
@@ -1,7 +1,6 @@
import { getBuiltinRender } from '@lobechat/builtin-tools/renders';
import { getBuiltinStreaming } from '@lobechat/builtin-tools/streamings';
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, Divider, Skeleton } from '@lobehub/ui/base-ui';
+import { Accordion, Divider, Flexbox, Skeleton } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useEffect, useState } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/CollapsedMessage.tsx b/src/features/Conversation/Messages/AssistantGroup/components/CollapsedMessage.tsx
index 25f8cde6688..5a32af8eab7 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/CollapsedMessage.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/CollapsedMessage.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, MaskShadow } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, MaskShadow } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx b/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx
index ef17e814dd8..b2f727a85e5 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/ContentBlocksScroll.tsx
@@ -1,8 +1,7 @@
'use client';
import type { UIChatMessage } from '@lobechat/types';
-import { Flexbox, ScrollArea } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, ScrollArea } from '@lobehub/ui';
import type { RefObject } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/Group.test.tsx b/src/features/Conversation/Messages/AssistantGroup/components/Group.test.tsx
index e9e9591d5aa..507319cfd3e 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/Group.test.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/Group.test.tsx
@@ -31,7 +31,7 @@ vi.mock('@/store/chat/slices/operation/selectors', () => ({
}));
// Mock the council list so importing Group doesn't pull in the AgentCouncil
-// render chain (→ shared-tool-ui inspectors → antd-style `keyframes`), which is
+// render chain (→ shared-tool-ui inspectors → `@lobehub/ui` `keyframes`), which is
// out of scope for this unit test.
vi.mock('../../AgentCouncil/components/CouncilList', () => ({
default: ({ members }: { members?: unknown[] }) => <div>council:{members?.length ?? 0}</div>,
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/Group.tsx b/src/features/Conversation/Messages/AssistantGroup/components/Group.tsx
index 26cf752fded..13ed51d1aa9 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/Group.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/Group.tsx
@@ -1,6 +1,5 @@
import { splitAssistantGroupFinalAnswer } from '@lobechat/conversation-flow';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Fragment, memo, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/MessageContent.tsx b/src/features/Conversation/Messages/AssistantGroup/components/MessageContent.tsx
index add535a716a..6f1a39aec10 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/MessageContent.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/MessageContent.tsx
@@ -1,5 +1,5 @@
import { deserializeParts } from '@lobechat/utils';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { LOADING_FLAT } from '@/const/message';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/ProcessFold.tsx b/src/features/Conversation/Messages/AssistantGroup/components/ProcessFold.tsx
index eec1d9eae62..dc3de366787 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/ProcessFold.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/ProcessFold.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, Divider, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Accordion, createStaticStyles, Divider, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, type ReactNode, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/SteerMessage.tsx b/src/features/Conversation/Messages/AssistantGroup/components/SteerMessage.tsx
index 0526dd34b30..a992a35692c 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/SteerMessage.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/SteerMessage.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.test.tsx b/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.test.tsx
index 1ac601e8476..1f17b00cc34 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.test.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.test.tsx
@@ -12,52 +12,62 @@ import WorkflowCollapse from './WorkflowCollapse';
let mockIsGenerating = true;
let mockDbMessages: { createdAt?: Date; id: string; updatedAt?: Date }[] = [];
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Icon: ({ icon: IconComponent }: { icon?: ComponentType }) =>
- IconComponent ? (
- <div
- data-icon={IconComponent.displayName || IconComponent.name || 'unknown'}
- data-testid="icon"
- >
- <IconComponent />
- </div>
- ) : (
- <div />
- ),
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- ...(await import('~base-ui-stubs')).baseUiStubs,
- Accordion: ({
- items,
- onValueChange,
- value,
- }: {
- items?: { action?: ReactNode; children?: ReactNode; key: string; title?: ReactNode }[];
- onValueChange?: (keys: string[]) => void;
- value?: string[];
- }) => {
- const isExpanded = (value ?? []).includes('workflow');
- return (
- <div data-expanded-keys={JSON.stringify(value ?? [])} data-testid="workflow-accordion">
- <button
- aria-label="toggle-accordion-header"
- type="button"
- onClick={() => onValueChange?.(isExpanded ? [] : ['workflow'])}
- />
- {items?.map((item) => (
- <div key={item.key}>
- <div>{item.title}</div>
- <div>{item.action}</div>
- <div>{item.children}</div>
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Icon: ({ icon: IconComponent }: { icon?: ComponentType }) =>
+ IconComponent ? (
+ <div
+ data-icon={IconComponent.displayName || IconComponent.name || 'unknown'}
+ data-testid="icon"
+ >
+ <IconComponent />
</div>
- ))}
- </div>
- );
- },
-}));
+ ) : (
+ <div />
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ ...(await import('~base-ui-stubs')).baseUiStubs,
+ Accordion: ({
+ items,
+ onValueChange,
+ value,
+ }: {
+ items?: { action?: ReactNode; children?: ReactNode; key: string; title?: ReactNode }[];
+ onValueChange?: (keys: string[]) => void;
+ value?: string[];
+ }) => {
+ const isExpanded = (value ?? []).includes('workflow');
+ return (
+ <div data-expanded-keys={JSON.stringify(value ?? [])} data-testid="workflow-accordion">
+ <button
+ aria-label="toggle-accordion-header"
+ type="button"
+ onClick={() => onValueChange?.(isExpanded ? [] : ['workflow'])}
+ />
+ {items?.map((item) => (
+ <div key={item.key}>
+ <div>{item.title}</div>
+ <div>{item.action}</div>
+ <div>{item.children}</div>
+ </div>
+ ))}
+ </div>
+ );
+ },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('motion/react', () => ({
AnimatePresence: ({ children }: { children?: ReactNode }) => <>{children}</>,
diff --git a/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.tsx b/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.tsx
index 7dd6e85b4d2..dbb395c4a25 100644
--- a/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/components/WorkflowCollapse.tsx
@@ -1,7 +1,5 @@
import { type ChatToolPayloadWithResult } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, ActionIcon, Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Accordion, ActionIcon, Block, cssVar, Flexbox, Icon, Spin, Text } from '@lobehub/ui';
import { Check, HandIcon, Maximize2, Minimize2, X } from 'lucide-react';
import { AnimatePresence } from 'motion/react';
import * as motion from 'motion/react-m';
diff --git a/src/features/Conversation/Messages/AssistantGroup/index.tsx b/src/features/Conversation/Messages/AssistantGroup/index.tsx
index 28b282c9d56..752ccb6f4e2 100644
--- a/src/features/Conversation/Messages/AssistantGroup/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { AssistantContentBlock, EmojiReaction, UISignalCallbacksBlock } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import type { MouseEventHandler, ReactNode } from 'react';
import { memo, Suspense, useCallback, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/CompressedGroup/index.tsx b/src/features/Conversation/Messages/CompressedGroup/index.tsx
index 92c2b90a246..7cbf4805add 100644
--- a/src/features/Conversation/Messages/CompressedGroup/index.tsx
+++ b/src/features/Conversation/Messages/CompressedGroup/index.tsx
@@ -1,9 +1,8 @@
'use client';
import type { UIChatMessage } from '@lobechat/types';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Tabs, type TabsItem } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon, Markdown } from '@lobehub/ui';
+import { ActionIcon, confirmModal, Tabs, type TabsItem } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ChevronDown, ChevronUp, History, Sparkles, Undo2 } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/EditedFilesCard/index.tsx b/src/features/Conversation/Messages/EditedFilesCard/index.tsx
index a173fe5b095..68725ade977 100644
--- a/src/features/Conversation/Messages/EditedFilesCard/index.tsx
+++ b/src/features/Conversation/Messages/EditedFilesCard/index.tsx
@@ -9,9 +9,7 @@ import {
KindDot,
LineStats,
} from '@lobechat/shared-tool-ui/components';
-import { Center, Flexbox, PatchDiff } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, Center, createStaticStyles, cx, Flexbox, PatchDiff, Text } from '@lobehub/ui';
import {
ArrowUpRightIcon,
ChevronDownIcon,
diff --git a/src/features/Conversation/Messages/GoalTaskCard/GoalElapsedTime.tsx b/src/features/Conversation/Messages/GoalTaskCard/GoalElapsedTime.tsx
index d9867bfc4ad..76e2c57e5e6 100644
--- a/src/features/Conversation/Messages/GoalTaskCard/GoalElapsedTime.tsx
+++ b/src/features/Conversation/Messages/GoalTaskCard/GoalElapsedTime.tsx
@@ -1,7 +1,7 @@
'use client';
import { formatElapsedClockTime } from '@lobechat/utils';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
interface GoalElapsedTimeProps {
diff --git a/src/features/Conversation/Messages/GoalTaskCard/PlanChain.tsx b/src/features/Conversation/Messages/GoalTaskCard/PlanChain.tsx
index e1eb7ee41a2..d5af5ef032b 100644
--- a/src/features/Conversation/Messages/GoalTaskCard/PlanChain.tsx
+++ b/src/features/Conversation/Messages/GoalTaskCard/PlanChain.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowRight, type LucideIcon, ShieldCheck } from 'lucide-react';
import { Fragment, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/GoalTaskCard/StageTrack.tsx b/src/features/Conversation/Messages/GoalTaskCard/StageTrack.tsx
index 864b0860415..0c650382cee 100644
--- a/src/features/Conversation/Messages/GoalTaskCard/StageTrack.tsx
+++ b/src/features/Conversation/Messages/GoalTaskCard/StageTrack.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Text } from '@lobehub/ui';
import { Fragment, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/GoalTaskCard/index.tsx b/src/features/Conversation/Messages/GoalTaskCard/index.tsx
index 8fde56d581f..b3ae30fd00e 100644
--- a/src/features/Conversation/Messages/GoalTaskCard/index.tsx
+++ b/src/features/Conversation/Messages/GoalTaskCard/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { ChevronRightIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/GroupTasks/TaskItem/ClientTaskItem.tsx b/src/features/Conversation/Messages/GroupTasks/TaskItem/ClientTaskItem.tsx
index 9f7c62f8ee4..200fed496a8 100644
--- a/src/features/Conversation/Messages/GroupTasks/TaskItem/ClientTaskItem.tsx
+++ b/src/features/Conversation/Messages/GroupTasks/TaskItem/ClientTaskItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { Accordion, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Block, Text } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { useAgentGroupStore } from '@/store/agentGroup';
diff --git a/src/features/Conversation/Messages/GroupTasks/TaskItem/ServerTaskItem.tsx b/src/features/Conversation/Messages/GroupTasks/TaskItem/ServerTaskItem.tsx
index e5839b9b5e6..e58dcd41846 100644
--- a/src/features/Conversation/Messages/GroupTasks/TaskItem/ServerTaskItem.tsx
+++ b/src/features/Conversation/Messages/GroupTasks/TaskItem/ServerTaskItem.tsx
@@ -2,8 +2,7 @@
import { type UIChatMessage } from '@lobechat/types';
import { ThreadStatus } from '@lobechat/types';
-import { Block } from '@lobehub/ui';
-import { Accordion } from '@lobehub/ui/base-ui';
+import { Accordion, Block } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/Conversation/Messages/GroupTasks/TaskItem/TaskTitle.tsx b/src/features/Conversation/Messages/GroupTasks/TaskItem/TaskTitle.tsx
index 14ff5f217b0..d20a21944fb 100644
--- a/src/features/Conversation/Messages/GroupTasks/TaskItem/TaskTitle.tsx
+++ b/src/features/Conversation/Messages/GroupTasks/TaskItem/TaskTitle.tsx
@@ -1,9 +1,7 @@
'use client';
import { ThreadStatus } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, Block, cssVar, Flexbox, Icon, Spin, Text } from '@lobehub/ui';
import { Footprints, ListChecksIcon, Wrench, XIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/GroupTasks/index.tsx b/src/features/Conversation/Messages/GroupTasks/index.tsx
index db5548b1fe7..3e59082731f 100644
--- a/src/features/Conversation/Messages/GroupTasks/index.tsx
+++ b/src/features/Conversation/Messages/GroupTasks/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { type UIChatMessage } from '@lobechat/types';
-import { Block, Flexbox, GroupAvatar, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, GroupAvatar, Icon, Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ListTodo } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/MessageWorks/index.tsx b/src/features/Conversation/Messages/MessageWorks/index.tsx
index df08b39fb5b..03c423081b4 100644
--- a/src/features/Conversation/Messages/MessageWorks/index.tsx
+++ b/src/features/Conversation/Messages/MessageWorks/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { WorkSummaryItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/SignalCallbacks/index.tsx b/src/features/Conversation/Messages/SignalCallbacks/index.tsx
index 9d1a9e6ee60..9e7a05526d5 100644
--- a/src/features/Conversation/Messages/SignalCallbacks/index.tsx
+++ b/src/features/Conversation/Messages/SignalCallbacks/index.tsx
@@ -1,9 +1,16 @@
'use client';
import { type UISignalCallbacksBlock } from '@lobechat/types';
-import { Block, Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Accordion, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Accordion,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Markdown,
+ Text,
+} from '@lobehub/ui';
import { Radio } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Task/ClientTaskDetail/InitializingState.tsx b/src/features/Conversation/Messages/Task/ClientTaskDetail/InitializingState.tsx
index 72619fa9933..0e4d5cd4138 100644
--- a/src/features/Conversation/Messages/Task/ClientTaskDetail/InitializingState.tsx
+++ b/src/features/Conversation/Messages/Task/ClientTaskDetail/InitializingState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, Flexbox, keyframes, Spin, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Task/index.tsx b/src/features/Conversation/Messages/Task/index.tsx
index 992e8f85c4b..b99de4b902f 100644
--- a/src/features/Conversation/Messages/Task/index.tsx
+++ b/src/features/Conversation/Messages/Task/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { LOADING_FLAT } from '@lobechat/const';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/TaskCallback/index.tsx b/src/features/Conversation/Messages/TaskCallback/index.tsx
index bb4159d84e7..f6440df36f1 100644
--- a/src/features/Conversation/Messages/TaskCallback/index.tsx
+++ b/src/features/Conversation/Messages/TaskCallback/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Markdown, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { CircleAlert, CircleCheck, CircleSlash, SquareArrowOutUpRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/Tasks/TaskItem/ClientTaskItem.tsx b/src/features/Conversation/Messages/Tasks/TaskItem/ClientTaskItem.tsx
index 8cc285c7125..7338f41912a 100644
--- a/src/features/Conversation/Messages/Tasks/TaskItem/ClientTaskItem.tsx
+++ b/src/features/Conversation/Messages/Tasks/TaskItem/ClientTaskItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { Accordion, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Block, Text } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { useChatStore } from '@/store/chat';
diff --git a/src/features/Conversation/Messages/Tasks/TaskItem/ServerTaskItem.tsx b/src/features/Conversation/Messages/Tasks/TaskItem/ServerTaskItem.tsx
index abec8621fbe..568ab907e34 100644
--- a/src/features/Conversation/Messages/Tasks/TaskItem/ServerTaskItem.tsx
+++ b/src/features/Conversation/Messages/Tasks/TaskItem/ServerTaskItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { Accordion } from '@lobehub/ui/base-ui';
+import { Accordion, Block } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { type UIChatMessage } from '@/types/index';
diff --git a/src/features/Conversation/Messages/Tasks/TaskItem/TaskTitle.tsx b/src/features/Conversation/Messages/Tasks/TaskItem/TaskTitle.tsx
index 7bf7e76afac..175658ab780 100644
--- a/src/features/Conversation/Messages/Tasks/TaskItem/TaskTitle.tsx
+++ b/src/features/Conversation/Messages/Tasks/TaskItem/TaskTitle.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Spin, Text } from '@lobehub/ui';
import { Footprints, ListChecksIcon, Wrench, XIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/index.tsx b/src/features/Conversation/Messages/Tasks/index.tsx
index da7f3de5b8c..600aba2c80d 100644
--- a/src/features/Conversation/Messages/Tasks/index.tsx
+++ b/src/features/Conversation/Messages/Tasks/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type UIChatMessage } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/shared/CompletedState.tsx b/src/features/Conversation/Messages/Tasks/shared/CompletedState.tsx
index 49dab0f70f3..bb3fff1170e 100644
--- a/src/features/Conversation/Messages/Tasks/shared/CompletedState.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/CompletedState.tsx
@@ -2,9 +2,7 @@
import { type TaskDetail } from '@lobechat/types';
import { type IconProps } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { Footprints, Timer, Wrench } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/shared/ErrorState.tsx b/src/features/Conversation/Messages/Tasks/shared/ErrorState.tsx
index 3160194aff8..3ea7fe0d348 100644
--- a/src/features/Conversation/Messages/Tasks/shared/ErrorState.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/ErrorState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, createStaticStyles, Flexbox, Highlighter } from '@lobehub/ui';
import { MessageSquare, Timer, Wrench } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/shared/InitializingState.tsx b/src/features/Conversation/Messages/Tasks/shared/InitializingState.tsx
index 652a79549b9..3f8f577cf30 100644
--- a/src/features/Conversation/Messages/Tasks/shared/InitializingState.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/InitializingState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, Flexbox, keyframes, Spin, Text } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/shared/ProcessingState.tsx b/src/features/Conversation/Messages/Tasks/shared/ProcessingState.tsx
index f2687b8d534..94e6af6dd42 100644
--- a/src/features/Conversation/Messages/Tasks/shared/ProcessingState.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/ProcessingState.tsx
@@ -1,9 +1,7 @@
'use client';
import { type TaskDetail } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, Flexbox, keyframes, Spin, Text } from '@lobehub/ui';
import { Footprints, Timer, Wrench } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/shared/TaskAvatar.tsx b/src/features/Conversation/Messages/Tasks/shared/TaskAvatar.tsx
index 8d8533ee830..ea7da6cff84 100644
--- a/src/features/Conversation/Messages/Tasks/shared/TaskAvatar.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/TaskAvatar.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { ListTodo } from 'lucide-react';
import { type FC, type PropsWithChildren } from 'react';
diff --git a/src/features/Conversation/Messages/Tasks/shared/TaskContent.tsx b/src/features/Conversation/Messages/Tasks/shared/TaskContent.tsx
index 8d350fd316d..85556160adf 100644
--- a/src/features/Conversation/Messages/Tasks/shared/TaskContent.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/TaskContent.tsx
@@ -1,8 +1,7 @@
'use client';
import { type TaskDetail, type ThreadStatus, type UIChatMessage } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tasks/shared/TaskMessages.tsx b/src/features/Conversation/Messages/Tasks/shared/TaskMessages.tsx
index 1aba24d74db..62d9e794975 100644
--- a/src/features/Conversation/Messages/Tasks/shared/TaskMessages.tsx
+++ b/src/features/Conversation/Messages/Tasks/shared/TaskMessages.tsx
@@ -1,9 +1,17 @@
'use client';
import { type AssistantContentBlock, type UIChatMessage } from '@lobechat/types';
-import { Block, Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Accordion, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Accordion,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Markdown,
+ Spin,
+ Text,
+} from '@lobehub/ui';
import { ScrollText, Workflow } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/Tool/Tool/index.tsx b/src/features/Conversation/Messages/Tool/Tool/index.tsx
index 5ed06967ce5..2e13207cae5 100644
--- a/src/features/Conversation/Messages/Tool/Tool/index.tsx
+++ b/src/features/Conversation/Messages/Tool/Tool/index.tsx
@@ -1,6 +1,5 @@
import { getBuiltinRender } from '@lobechat/builtin-tools/renders';
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, Skeleton } from '@lobehub/ui/base-ui';
+import { Accordion, Flexbox, Skeleton } from '@lobehub/ui';
import { type CSSProperties } from 'react';
import { memo, useState } from 'react';
diff --git a/src/features/Conversation/Messages/Tool/index.tsx b/src/features/Conversation/Messages/Tool/index.tsx
index a1110a857a2..1deeeb0e0db 100644
--- a/src/features/Conversation/Messages/Tool/index.tsx
+++ b/src/features/Conversation/Messages/Tool/index.tsx
@@ -1,6 +1,5 @@
import { type UIChatMessage } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button } from '@lobehub/ui/base-ui';
+import { Alert, Button, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/User/ScheduledRunFooter.tsx b/src/features/Conversation/Messages/User/ScheduledRunFooter.tsx
index e9acacbb69f..3c51ab01082 100644
--- a/src/features/Conversation/Messages/User/ScheduledRunFooter.tsx
+++ b/src/features/Conversation/Messages/User/ScheduledRunFooter.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { BanIcon, ClockIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/User/components/ContentPreview.tsx b/src/features/Conversation/Messages/User/components/ContentPreview.tsx
index 3fca1f11326..fc64a8aa714 100644
--- a/src/features/Conversation/Messages/User/components/ContentPreview.tsx
+++ b/src/features/Conversation/Messages/User/components/ContentPreview.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, MaskShadow } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, MaskShadow } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import MarkdownMessage from '@/features/Conversation/Markdown';
diff --git a/src/features/Conversation/Messages/User/components/FileListViewer/Item.tsx b/src/features/Conversation/Messages/User/components/FileListViewer/Item.tsx
index db584cb605f..4e4c1b1b87d 100644
--- a/src/features/Conversation/Messages/User/components/FileListViewer/Item.tsx
+++ b/src/features/Conversation/Messages/User/components/FileListViewer/Item.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Icon, Text } from '@lobehub/ui';
import { FileLock2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/User/components/PageSelections.tsx b/src/features/Conversation/Messages/User/components/PageSelections.tsx
index f1b0fb53f49..ecad4395440 100644
--- a/src/features/Conversation/Messages/User/components/PageSelections.tsx
+++ b/src/features/Conversation/Messages/User/components/PageSelections.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { Code2Icon, SquareDashedMousePointer } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/User/components/ReferencedMessage.tsx b/src/features/Conversation/Messages/User/components/ReferencedMessage.tsx
index 9c89acfb62f..d4427219e71 100644
--- a/src/features/Conversation/Messages/User/components/ReferencedMessage.tsx
+++ b/src/features/Conversation/Messages/User/components/ReferencedMessage.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { Reply } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/User/components/ScmEventSender.tsx b/src/features/Conversation/Messages/User/components/ScmEventSender.tsx
index ddd06ce4dcc..b91f2838e88 100644
--- a/src/features/Conversation/Messages/User/components/ScmEventSender.tsx
+++ b/src/features/Conversation/Messages/User/components/ScmEventSender.tsx
@@ -1,7 +1,5 @@
import { Github } from '@lobehub/icons';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import {
diff --git a/src/features/Conversation/Messages/User/components/richTextImageRenderers.tsx b/src/features/Conversation/Messages/User/components/richTextImageRenderers.tsx
index 54e5e7af19e..f68f27acd8b 100644
--- a/src/features/Conversation/Messages/User/components/richTextImageRenderers.tsx
+++ b/src/features/Conversation/Messages/User/components/richTextImageRenderers.tsx
@@ -1,6 +1,5 @@
import type { NodeRenderer } from '@lobehub/editor/renderer';
-import { Image } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Image } from '@lobehub/ui';
import type { CSSProperties } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/Conversation/Messages/User/index.tsx b/src/features/Conversation/Messages/User/index.tsx
index 5f632706138..13714e741c1 100644
--- a/src/features/Conversation/Messages/User/index.tsx
+++ b/src/features/Conversation/Messages/User/index.tsx
@@ -1,5 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { type MouseEventHandler } from 'react';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/Verify/index.tsx b/src/features/Conversation/Messages/Verify/index.tsx
index c72a2493140..73f31df7a63 100644
--- a/src/features/Conversation/Messages/Verify/index.tsx
+++ b/src/features/Conversation/Messages/Verify/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/components/ContentLoading.tsx b/src/features/Conversation/Messages/components/ContentLoading.tsx
index 95abe2b96f2..26183be8ed3 100644
--- a/src/features/Conversation/Messages/components/ContentLoading.tsx
+++ b/src/features/Conversation/Messages/components/ContentLoading.tsx
@@ -1,6 +1,5 @@
import { HETEROGENEOUS_TYPE_LABELS } from '@lobechat/heterogeneous-agents';
-import { Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Flexbox, Spin } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/Extras/ExtraContainer.tsx b/src/features/Conversation/Messages/components/Extras/ExtraContainer.tsx
index 3df42b859b1..41f431d6428 100644
--- a/src/features/Conversation/Messages/components/Extras/ExtraContainer.tsx
+++ b/src/features/Conversation/Messages/components/Extras/ExtraContainer.tsx
@@ -1,4 +1,4 @@
-import { Divider } from '@lobehub/ui/base-ui';
+import { Divider } from '@lobehub/ui';
import { type PropsWithChildren } from 'react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/components/Extras/Translate.tsx b/src/features/Conversation/Messages/components/Extras/Translate.tsx
index 23c65660db4..8a32c62dbe8 100644
--- a/src/features/Conversation/Messages/components/Extras/Translate.tsx
+++ b/src/features/Conversation/Messages/components/Extras/Translate.tsx
@@ -1,7 +1,14 @@
import { type ChatTranslate } from '@lobechat/types';
-import { copyToClipboard, Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { ActionIcon, Tag, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ copyToClipboard,
+ cssVar,
+ Flexbox,
+ Icon,
+ Markdown,
+ Tag,
+ toast,
+} from '@lobehub/ui';
import { ChevronDown, ChevronsRight, ChevronUp, CopyIcon, TrashIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/ModelCard.tsx b/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/ModelCard.tsx
index 32e736e24cf..edba57f0645 100644
--- a/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/ModelCard.tsx
+++ b/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/ModelCard.tsx
@@ -1,7 +1,5 @@
import { getCachedTextInputUnitRate, getWriteCacheInputUnitRate } from '@lobechat/utils';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs, Tooltip } from '@lobehub/ui';
import { ArrowDownToDot, ArrowUpFromDot, BookUp2Icon, CircleFadingArrowUp } from 'lucide-react';
import { type LobeDefaultAiModelListItem } from 'model-bank';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/TokenProgress.tsx b/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/TokenProgress.tsx
index ffcef8ae8e1..5f290aff46d 100644
--- a/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/TokenProgress.tsx
+++ b/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/TokenProgress.tsx
@@ -1,6 +1,5 @@
import { formatUsageValue } from '@lobechat/utils';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
export interface TokenProgressItem {
diff --git a/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/index.tsx b/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/index.tsx
index 06657399fda..13c0d34c3a8 100644
--- a/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/index.tsx
+++ b/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/index.tsx
@@ -1,8 +1,6 @@
import { type ModelPerformance, type ModelUsage } from '@lobechat/types';
import { formatUsageValue } from '@lobechat/utils';
-import { Center, Flexbox, Icon, Popover } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Divider, Flexbox, Icon, Popover } from '@lobehub/ui';
import { BadgeCent, CoinsIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/Extras/Usage/index.tsx b/src/features/Conversation/Messages/components/Extras/Usage/index.tsx
index e9576446575..45741be299c 100644
--- a/src/features/Conversation/Messages/components/Extras/Usage/index.tsx
+++ b/src/features/Conversation/Messages/components/Extras/Usage/index.tsx
@@ -4,8 +4,7 @@ import {
} from '@lobechat/heterogeneous-agents';
import type { ModelPerformance, ModelUsage } from '@lobechat/types';
import { unwrapServerDefaultHeterogeneousModel } from '@lobechat/types';
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { CircleDollarSignIcon, CoinsIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/components/FileChunks/ChunkItem.tsx b/src/features/Conversation/Messages/components/FileChunks/ChunkItem.tsx
index 3a1a44a90ee..022ea1b80fe 100644
--- a/src/features/Conversation/Messages/components/FileChunks/ChunkItem.tsx
+++ b/src/features/Conversation/Messages/components/FileChunks/ChunkItem.tsx
@@ -1,7 +1,5 @@
import { type ChatFileChunk } from '@lobechat/types';
-import { Center, Flexbox, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Center, cx, Flexbox, Text, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import FileIcon from '@/components/FileIcon';
diff --git a/src/features/Conversation/Messages/components/FileChunks/index.tsx b/src/features/Conversation/Messages/components/FileChunks/index.tsx
index 6aa02f8afba..54ddb95581f 100644
--- a/src/features/Conversation/Messages/components/FileChunks/index.tsx
+++ b/src/features/Conversation/Messages/components/FileChunks/index.tsx
@@ -1,6 +1,5 @@
import { type ChatFileChunk } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { BookOpenTextIcon, ChevronDown, ChevronRight } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/FileChunks/style.ts b/src/features/Conversation/Messages/components/FileChunks/style.ts
index 01669f278a0..bc3e7b62938 100644
--- a/src/features/Conversation/Messages/components/FileChunks/style.ts
+++ b/src/features/Conversation/Messages/components/FileChunks/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
badge: css`
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/branching.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/branching.ts
index 5cfb9ddfc53..be843d0d561 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/branching.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/branching.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { Split } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/copy.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/copy.ts
index ec1669541bc..27590d2d7c4 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/copy.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/copy.ts
@@ -1,5 +1,4 @@
-import { copyToClipboard } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { copyToClipboard, toast } from '@lobehub/ui';
import { Copy } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/copyMessageId.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/copyMessageId.ts
index 4603e9382b4..7be1740f058 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/copyMessageId.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/copyMessageId.ts
@@ -1,5 +1,4 @@
-import { copyToClipboard } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { copyToClipboard, toast } from '@lobehub/ui';
import { Braces } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.test.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.test.ts
index 7c3f243ac49..0e9c001c582 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.test.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.test.ts
@@ -23,14 +23,24 @@ const mocks = vi.hoisted(() => ({
operations: {} as Record<string, MockOperation>,
}));
-vi.mock('@lobehub/ui', () => ({
- copyToClipboard: mocks.copyToClipboard,
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- toast: { success: mocks.messageSuccess },
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ () => ({
+ copyToClipboard: mocks.copyToClipboard,
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ toast: { success: mocks.messageSuccess },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('antd', async (importOriginal) => ({
...(await importOriginal<object>()),
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.ts
index 6c5b60a1e27..a81d24e1511 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/copyOperationId.ts
@@ -1,5 +1,4 @@
-import { copyToClipboard } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { copyToClipboard, toast } from '@lobehub/ui';
import { Hash } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.test.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.test.ts
index c3f18568232..daa9728b507 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.test.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.test.ts
@@ -15,7 +15,7 @@ const mocks = vi.hoisted(() => ({
isThreadMode: false,
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
toast: { warning: vi.fn() },
}));
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.ts
index 66c93809bfd..9d4fb243098 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/fork.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { GitFork } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.test.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.test.ts
index 91d2ee99c85..279875cfd2a 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.test.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.test.ts
@@ -29,7 +29,7 @@ vi.mock('@/store/file', () => ({
const { messageSuccess } = vi.hoisted(() => ({ messageSuccess: vi.fn() }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { success: messageSuccess },
}));
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.ts
index e55382950da..d9f8543139a 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/restoreToInput.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { Undo2 } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/saveAsEvalCase.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/saveAsEvalCase.ts
index f77ca2f97dc..1127f2b4987 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/saveAsEvalCase.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/saveAsEvalCase.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import i18next from 'i18next';
import { FlaskConical } from 'lucide-react';
import { useMemo } from 'react';
diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts
index 94e768cb67e..160afe97dc0 100644
--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts
+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts
@@ -1,4 +1,4 @@
-import { css, cx } from 'antd-style';
+import { css, cx } from '@lobehub/ui';
import { LanguagesIcon } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/MessageBranch.tsx b/src/features/Conversation/Messages/components/MessageBranch.tsx
index 18d47cfe6ec..e8222769ae5 100644
--- a/src/features/Conversation/Messages/components/MessageBranch.tsx
+++ b/src/features/Conversation/Messages/components/MessageBranch.tsx
@@ -1,5 +1,4 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Center, createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { ChevronLeft, ChevronRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/Messages/components/RefreshingIndicator.tsx b/src/features/Conversation/Messages/components/RefreshingIndicator.tsx
index 79ece6f6cb7..2408728e66b 100644
--- a/src/features/Conversation/Messages/components/RefreshingIndicator.tsx
+++ b/src/features/Conversation/Messages/components/RefreshingIndicator.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Spin, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/Messages/components/SearchGrounding.tsx b/src/features/Conversation/Messages/components/SearchGrounding.tsx
index 7573b965736..99f1a98f5a3 100644
--- a/src/features/Conversation/Messages/components/SearchGrounding.tsx
+++ b/src/features/Conversation/Messages/components/SearchGrounding.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon, SearchResultCards } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, SearchResultCards, Tag } from '@lobehub/ui';
import { ChevronDown, ChevronRight, Globe, Images } from 'lucide-react';
import { AnimatePresence } from 'motion/react';
import * as m from 'motion/react-m';
diff --git a/src/features/Conversation/Messages/components/TextSelectionActionLayer/index.tsx b/src/features/Conversation/Messages/components/TextSelectionActionLayer/index.tsx
index d0e5ffcd529..451c084e357 100644
--- a/src/features/Conversation/Messages/components/TextSelectionActionLayer/index.tsx
+++ b/src/features/Conversation/Messages/components/TextSelectionActionLayer/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { nanoid } from '@lobechat/utils';
-import { Flexbox } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, toast } from '@lobehub/ui';
import { MessageCirclePlusIcon } from 'lucide-react';
import type { CSSProperties, PointerEvent, ReactNode } from 'react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/Conversation/Messages/index.tsx b/src/features/Conversation/Messages/index.tsx
index 5807a1a61e7..6a31e28b732 100644
--- a/src/features/Conversation/Messages/index.tsx
+++ b/src/features/Conversation/Messages/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { type MouseEvent, type ReactNode } from 'react';
import { memo, Suspense, useCallback } from 'react';
diff --git a/src/features/Conversation/SplitDropZone/index.tsx b/src/features/Conversation/SplitDropZone/index.tsx
index a66c3c92c27..30d52b5ecce 100644
--- a/src/features/Conversation/SplitDropZone/index.tsx
+++ b/src/features/Conversation/SplitDropZone/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { PanelRight } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/TodoProgress/index.tsx b/src/features/Conversation/TodoProgress/index.tsx
index f1fbcd52f52..31d2f87b68a 100644
--- a/src/features/Conversation/TodoProgress/index.tsx
+++ b/src/features/Conversation/TodoProgress/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { type StepContextTodos } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Checkbox, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Checkbox, createStaticStyles, cssVar, cx, Flexbox, Icon, Tag } from '@lobehub/ui';
import { ChevronDown, ChevronUp, CircleArrowRight } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/Browser/index.tsx b/src/features/Conversation/WorkingSidebar/Browser/index.tsx
index ac6dbb5bd2a..b98deddfda6 100644
--- a/src/features/Conversation/WorkingSidebar/Browser/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/Browser/index.tsx
@@ -1,8 +1,17 @@
import { isDesktop } from '@lobechat/const';
import { nanoid } from '@lobechat/utils';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ Center,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Icon,
+ Input,
+ Text,
+ toast,
+} from '@lobehub/ui';
import {
Camera,
ChevronLeft,
diff --git a/src/features/Conversation/WorkingSidebar/Files/__tests__/index.test.tsx b/src/features/Conversation/WorkingSidebar/Files/__tests__/index.test.tsx
index fd14affd2d9..3f5cf218417 100644
--- a/src/features/Conversation/WorkingSidebar/Files/__tests__/index.test.tsx
+++ b/src/features/Conversation/WorkingSidebar/Files/__tests__/index.test.tsx
@@ -225,64 +225,73 @@ vi.mock('react-i18next', () => ({
}),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- confirmModal: uiSpies.confirmModal,
- toast: { error: uiSpies.toastError, success: uiSpies.toastSuccess },
- ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
- <button title={title} type={'button'} onClick={onClick} />
- ),
- Button: ({ children, title }: { children?: ReactNodeType; title?: string }) => (
- <button title={title} type={'button'}>
- {children}
- </button>
- ),
- DropdownMenu: ({
- children,
- items,
- }: {
- children?: ReactNodeType;
- items: {
- key: string;
- label: ReactNodeType;
- onCheckedChange?: (checked: boolean) => void;
- onClick?: () => void;
- }[];
- }) => (
- <div>
- {children}
- {items.map((item) => (
- <button
- key={item.key}
- type={'button'}
- onClick={() => {
- item.onClick?.();
- item.onCheckedChange?.(true);
- }}
- >
- {item.label}
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ confirmModal: uiSpies.confirmModal,
+ toast: { error: uiSpies.toastError, success: uiSpies.toastSuccess },
+ ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
+ <button title={title} type={'button'} onClick={onClick} />
+ ),
+ Button: ({ children, title }: { children?: ReactNodeType; title?: string }) => (
+ <button title={title} type={'button'}>
+ {children}
</button>
- ))}
- </div>
- ),
-}));
-
-vi.mock('@lobehub/ui', () => ({
- Center: ({ children }: { children?: ReactNodeType }) => <div>{children}</div>,
- copyToClipboard: vi.fn(),
- Empty: ({ description }: { description?: ReactNodeType }) => <div>{description}</div>,
- Flexbox: ({ children }: { children?: ReactNodeType }) => <div>{children}</div>,
- Icon: () => <span />,
- stopPropagation: vi.fn(),
-}));
-
-vi.mock('antd-style', async (importOriginal) => {
- const actual = (await importOriginal()) as Record<string, unknown>;
+ ),
+ DropdownMenu: ({
+ children,
+ items,
+ }: {
+ children?: ReactNodeType;
+ items: {
+ key: string;
+ label: ReactNodeType;
+ onCheckedChange?: (checked: boolean) => void;
+ onClick?: () => void;
+ }[];
+ }) => (
+ <div>
+ {children}
+ {items.map((item) => (
+ <button
+ key={item.key}
+ type={'button'}
+ onClick={() => {
+ item.onClick?.();
+ item.onCheckedChange?.(true);
+ }}
+ >
+ {item.label}
+ </button>
+ ))}
+ </div>
+ ),
+ }),
+ () => ({
+ Center: ({ children }: { children?: ReactNodeType }) => <div>{children}</div>,
+ copyToClipboard: vi.fn(),
+ Empty: ({ description }: { description?: ReactNodeType }) => <div>{description}</div>,
+ Flexbox: ({ children }: { children?: ReactNodeType }) => <div>{children}</div>,
+ Icon: () => <span />,
+ stopPropagation: vi.fn(),
+ }),
+ async (importOriginal) => {
+ const actual = (await importOriginal()) as Record<string, unknown>;
- return {
- ...actual,
- createStaticStyles: () => () => ({}),
- };
+ return {
+ ...actual,
+ createStaticStyles: () => () => ({}),
+ };
+ },
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
});
// ─── helpers ──────────────────────────────────────────────────────────────────
diff --git a/src/features/Conversation/WorkingSidebar/Files/index.tsx b/src/features/Conversation/WorkingSidebar/Files/index.tsx
index 625acd032a8..6df5b3962e9 100644
--- a/src/features/Conversation/WorkingSidebar/Files/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/Files/index.tsx
@@ -1,10 +1,20 @@
'use client';
import type { ProjectFileIndexEntry } from '@lobechat/electron-client-ipc';
-import { Center, Empty, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Button, DropdownMenu, Input, Spin } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Button,
+ Center,
+ createStaticStyles,
+ DropdownMenu,
+ Empty,
+ Flexbox,
+ Icon,
+ Input,
+ Spin,
+ stopPropagation,
+} from '@lobehub/ui';
import type { GitStatusEntry } from '@pierre/trees';
-import { createStaticStyles } from 'antd-style';
import {
CheckIcon,
ChevronDownIcon,
diff --git a/src/features/Conversation/WorkingSidebar/Files/useFileOperations.ts b/src/features/Conversation/WorkingSidebar/Files/useFileOperations.ts
index 1ab77f7cba6..888ef39e418 100644
--- a/src/features/Conversation/WorkingSidebar/Files/useFileOperations.ts
+++ b/src/features/Conversation/WorkingSidebar/Files/useFileOperations.ts
@@ -1,6 +1,6 @@
import { isDesktop } from '@lobechat/const';
import type { ProjectFileIndexEntry } from '@lobechat/electron-client-ipc';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { basename, dirname, join, relative } from 'pathe';
import type { RefObject } from 'react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.test.ts b/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.test.ts
index 8ad61f6c88a..636407076a8 100644
--- a/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.test.ts
+++ b/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.test.ts
@@ -62,16 +62,26 @@ vi.mock('react-i18next', () => ({
}),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- confirmModal: ui.confirmModal,
- toast: { error: ui.error, success: ui.success },
-}));
-
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- copyToClipboard: vi.fn(),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ confirmModal: ui.confirmModal,
+ toast: { error: ui.error, success: ui.success },
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ copyToClipboard: vi.fn(),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
// ─── fixtures ─────────────────────────────────────────────────────────────────
diff --git a/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.ts b/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.ts
index 7657fe8dbc4..d51a987ea30 100644
--- a/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.ts
+++ b/src/features/Conversation/WorkingSidebar/Files/useFileTreeActions.ts
@@ -1,6 +1,5 @@
import type { ProjectFileIndexEntry } from '@lobechat/electron-client-ipc';
-import { copyToClipboard } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { copyToClipboard, toast } from '@lobehub/ui';
import type { DragEvent, KeyboardEvent, RefObject } from 'react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/GoalSection/GoalWorkflowCard.tsx b/src/features/Conversation/WorkingSidebar/GoalSection/GoalWorkflowCard.tsx
index 6d23cd96e86..7fa46b3e3e2 100644
--- a/src/features/Conversation/WorkingSidebar/GoalSection/GoalWorkflowCard.tsx
+++ b/src/features/Conversation/WorkingSidebar/GoalSection/GoalWorkflowCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Skeleton } from '@lobehub/ui';
import {
ArrowUpRight,
CheckCircle2,
diff --git a/src/features/Conversation/WorkingSidebar/Overview/DeviceStatusSection.tsx b/src/features/Conversation/WorkingSidebar/Overview/DeviceStatusSection.tsx
index 92ac9484338..e02c6abc0c2 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/DeviceStatusSection.tsx
+++ b/src/features/Conversation/WorkingSidebar/Overview/DeviceStatusSection.tsx
@@ -1,9 +1,7 @@
'use client';
import type { DeviceListItem, DeviceMetricSeries } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Skeleton, Text } from '@lobehub/ui';
import { RefreshCwIcon, TriangleAlertIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/Overview/OverviewHeader.tsx b/src/features/Conversation/WorkingSidebar/Overview/OverviewHeader.tsx
index d484f9591e4..edbf8a12d67 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/OverviewHeader.tsx
+++ b/src/features/Conversation/WorkingSidebar/Overview/OverviewHeader.tsx
@@ -1,6 +1,5 @@
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { FolderGit2Icon, FolderIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/Overview/OverviewRow.tsx b/src/features/Conversation/WorkingSidebar/Overview/OverviewRow.tsx
index ba9fead4eeb..66ffba36f25 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/OverviewRow.tsx
+++ b/src/features/Conversation/WorkingSidebar/Overview/OverviewRow.tsx
@@ -1,5 +1,5 @@
import { Flexbox, Icon, type IconProps } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { ChevronRightIcon, ChevronsUpDownIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/Overview/PortSwitcher.tsx b/src/features/Conversation/WorkingSidebar/Overview/PortSwitcher.tsx
index 1129af2463e..3aeea7df3ec 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/PortSwitcher.tsx
+++ b/src/features/Conversation/WorkingSidebar/Overview/PortSwitcher.tsx
@@ -1,14 +1,16 @@
import type { DeviceListeningPort } from '@lobechat/types';
-import { Icon, Tooltip } from '@lobehub/ui';
import {
+ createStaticStyles,
+ cx,
DropdownMenuItem,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
DropdownMenuRoot,
DropdownMenuTrigger,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+ Icon,
+ Tooltip,
+} from '@lobehub/ui';
import {
CopyIcon,
GlobeIcon,
diff --git a/src/features/Conversation/WorkingSidebar/Overview/__tests__/usePortTunnels.test.ts b/src/features/Conversation/WorkingSidebar/Overview/__tests__/usePortTunnels.test.ts
index c126c6a93ce..71a0109d77e 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/__tests__/usePortTunnels.test.ts
+++ b/src/features/Conversation/WorkingSidebar/Overview/__tests__/usePortTunnels.test.ts
@@ -48,10 +48,21 @@ vi.mock('@lobechat/const', () => ({
},
}));
-vi.mock('@lobehub/ui', () => ({ copyToClipboard }));
-vi.mock('@lobehub/ui/base-ui', () => ({
- toast: { error: toastError, success: toastSuccess },
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ () => ({ copyToClipboard }),
+ () => ({
+ toast: { error: toastError, success: toastSuccess },
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({ t: (key: string) => key }),
diff --git a/src/features/Conversation/WorkingSidebar/Overview/index.tsx b/src/features/Conversation/WorkingSidebar/Overview/index.tsx
index a40d4ec1e8d..5695487c27b 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/Overview/index.tsx
@@ -1,10 +1,19 @@
'use client';
import type { DeviceGitLinkedPullRequest } from '@lobechat/types';
-import { Empty, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Skeleton, toast } from '@lobehub/ui/base-ui';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Empty,
+ Flexbox,
+ Icon,
+ Skeleton,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import {
ArrowDownIcon,
ArrowUpIcon,
diff --git a/src/features/Conversation/WorkingSidebar/Overview/sectionStyles.ts b/src/features/Conversation/WorkingSidebar/Overview/sectionStyles.ts
index a130b453537..b383b31d226 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/sectionStyles.ts
+++ b/src/features/Conversation/WorkingSidebar/Overview/sectionStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const sectionStyles = createStaticStyles(({ css, cssVar }) => ({
count: css`
diff --git a/src/features/Conversation/WorkingSidebar/Overview/usePortTunnels.ts b/src/features/Conversation/WorkingSidebar/Overview/usePortTunnels.ts
index bcf5138b528..0c876a78bed 100644
--- a/src/features/Conversation/WorkingSidebar/Overview/usePortTunnels.ts
+++ b/src/features/Conversation/WorkingSidebar/Overview/usePortTunnels.ts
@@ -1,7 +1,6 @@
import { isDesktop } from '@lobechat/const';
import type { DeviceListeningPort } from '@lobechat/types';
-import { copyToClipboard } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { copyToClipboard, toast } from '@lobehub/ui';
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx b/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx
index 88bc21bfd38..1cb3be3306b 100644
--- a/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/ProgressSection/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Checkbox, createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { ChevronDown, ChevronUp, CircleArrowRight } from 'lucide-react';
import { type KeyboardEvent, memo, useCallback, useId, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/ActivityTimeline.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/ActivityTimeline.tsx
index a07d348d195..741d05d89e2 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/ActivityTimeline.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/ActivityTimeline.tsx
@@ -3,9 +3,7 @@ import type {
DeviceGitPullRequestDetail,
DeviceGitPullRequestReview,
} from '@lobechat/types';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Avatar, Button, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Button, createStaticStyles, Flexbox, Icon, Markdown, TextArea } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { CheckIcon, CircleSlashIcon, EyeIcon, GitCommitHorizontalIcon, XIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/ChecksList.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/ChecksList.tsx
index d76a59f5478..e626eef0c50 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/ChecksList.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/ChecksList.tsx
@@ -1,6 +1,5 @@
import type { DeviceGitPullRequestCheck } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import { ExternalLinkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/DockActionButton.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/DockActionButton.tsx
index c4af929e037..146d5da334d 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/DockActionButton.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/DockActionButton.tsx
@@ -3,8 +3,8 @@ import type {
DeviceGitPullRequestDetail,
DeviceGitPullRequestMergeMethod,
} from '@lobechat/types';
-import { Button, type DropdownItem, SplitButton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, type DropdownItem, SplitButton } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/Head.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/Head.tsx
index c1d53d32b85..34d2f9a72ef 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/Head.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/Head.tsx
@@ -1,6 +1,5 @@
import type { DeviceGitLinkedPullRequest } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/Header.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/Header.tsx
index e787cb8e22d..b96549f7815 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/Header.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/Header.tsx
@@ -1,7 +1,6 @@
import type { DeviceGitPullRequestAction, DeviceGitPullRequestDetail } from '@lobechat/types';
-import { copyToClipboard, Icon } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { copyToClipboard, cx, Icon } from '@lobehub/ui';
+import { ActionIcon, type DropdownItem, DropdownMenu, toast } from '@lobehub/ui';
import {
ArrowRightIcon,
ChevronDownIcon,
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/MergeDock.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/MergeDock.tsx
index 8cabcb1cd2f..44e19b0af76 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/MergeDock.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/MergeDock.tsx
@@ -1,7 +1,5 @@
import type { DeviceGitPullRequestAction, DeviceGitPullRequestDetail } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, ScrollArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox, Icon, ScrollArea } from '@lobehub/ui';
import { ArrowUpIcon, ChevronRightIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/Sections.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/Sections.tsx
index c9a5cb30e1e..bc7614752c4 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/Sections.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/Sections.tsx
@@ -3,9 +3,16 @@ import type {
DeviceGitPullRequestActivity,
DeviceGitPullRequestDetail,
} from '@lobechat/types';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Button, Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Markdown,
+ Skeleton,
+} from '@lobehub/ui';
import {
ChevronDownIcon,
ChevronRightIcon,
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/Skeleton.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/Skeleton.tsx
index 2a27ea28621..93d22f4d648 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/Skeleton.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/Skeleton.tsx
@@ -1,7 +1,5 @@
import type { DeviceGitLinkedPullRequest } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import { sectionStyles } from '../Overview/sectionStyles';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/__tests__/usePullRequestActions.test.ts b/src/features/Conversation/WorkingSidebar/PullRequest/__tests__/usePullRequestActions.test.ts
index 283cd827788..890e5b39364 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/__tests__/usePullRequestActions.test.ts
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/__tests__/usePullRequestActions.test.ts
@@ -12,7 +12,7 @@ const toastError = vi.hoisted(() => vi.fn());
vi.mock('@/services/git', () => ({ gitService: { pushGitBranch, runPullRequestAction } }));
vi.mock('@/libs/swr', () => ({ mutate }));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { error: toastError } }));
+vi.mock('@lobehub/ui', () => ({ toast: { error: toastError } }));
const params = { deviceId: 'dev-1', number: 7, workingDirectory: '/repo' };
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/index.tsx b/src/features/Conversation/WorkingSidebar/PullRequest/index.tsx
index 134f413bb98..9f56c6dc625 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/index.tsx
@@ -1,7 +1,5 @@
import type { DeviceGitLinkedPullRequest } from '@lobechat/types';
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, ScrollArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Empty, Flexbox, Icon, ScrollArea } from '@lobehub/ui';
import { GlobeIcon, RefreshCwIcon, TriangleAlertIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/prVisual.ts b/src/features/Conversation/WorkingSidebar/PullRequest/prVisual.ts
index 0f94d7f8a05..1b96e2cd6c7 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/prVisual.ts
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/prVisual.ts
@@ -1,6 +1,6 @@
import type { DeviceGitLinkedPullRequest, DeviceGitPullRequestCheck } from '@lobechat/types';
import { formatDuration } from '@lobechat/utils';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import type { LucideIcon } from 'lucide-react';
diff --git a/src/features/Conversation/WorkingSidebar/PullRequest/usePullRequestActions.ts b/src/features/Conversation/WorkingSidebar/PullRequest/usePullRequestActions.ts
index 93febf1406b..c4f3b910faa 100644
--- a/src/features/Conversation/WorkingSidebar/PullRequest/usePullRequestActions.ts
+++ b/src/features/Conversation/WorkingSidebar/PullRequest/usePullRequestActions.ts
@@ -1,5 +1,5 @@
import type { DeviceGitPullRequestAction, DeviceGitPullRequestActionResult } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useRef, useState } from 'react';
import { mutate } from '@/libs/swr';
diff --git a/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.test.tsx b/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.test.tsx
index e8051edc03d..b2d9dc77b30 100644
--- a/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.test.tsx
+++ b/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.test.tsx
@@ -22,7 +22,7 @@ const removeDocumentMock = vi.hoisted(() => vi.fn());
const useParamsMock = vi.hoisted(() => vi.fn());
const documentExplorerShouldThrow = vi.hoisted(() => ({ current: false }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
confirmModal: modalConfirm,
diff --git a/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.tsx b/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.tsx
index b5f23314651..cfd5702a796 100644
--- a/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.tsx
+++ b/src/features/Conversation/WorkingSidebar/ResourcesSection/AgentDocumentsGroup.tsx
@@ -4,10 +4,19 @@ import {
buildAgentSkillIdentifier,
EMPTY_ARRAY,
} from '@lobechat/const';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Spin, Text, toast } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Center,
+ confirmModal,
+ createStaticStyles,
+ cx,
+ Empty,
+ Flexbox,
+ Spin,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import type { LucideIcon } from 'lucide-react';
diff --git a/src/features/Conversation/WorkingSidebar/ResourcesSection/UserLevelSkills.tsx b/src/features/Conversation/WorkingSidebar/ResourcesSection/UserLevelSkills.tsx
index 1f712e1d558..a366633905e 100644
--- a/src/features/Conversation/WorkingSidebar/ResourcesSection/UserLevelSkills.tsx
+++ b/src/features/Conversation/WorkingSidebar/ResourcesSection/UserLevelSkills.tsx
@@ -1,4 +1,4 @@
-import { confirmModal, createModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, createModal, toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t as translate } from 'i18next';
import { EyeIcon, PencilIcon, Trash2Icon } from 'lucide-react';
diff --git a/src/features/Conversation/WorkingSidebar/Review/FileItem.tsx b/src/features/Conversation/WorkingSidebar/Review/FileItem.tsx
index 4b101f57b65..24ce4b4581f 100644
--- a/src/features/Conversation/WorkingSidebar/Review/FileItem.tsx
+++ b/src/features/Conversation/WorkingSidebar/Review/FileItem.tsx
@@ -2,9 +2,16 @@
import type { GitFileDiffStatus } from '@lobechat/electron-client-ipc';
import { nanoid } from '@lobechat/utils';
-import { copyToClipboard, Flexbox, PatchDiff } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar as themeCssVar } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ copyToClipboard,
+ createStaticStyles,
+ cssVar as themeCssVar,
+ Flexbox,
+ PatchDiff,
+ toast,
+} from '@lobehub/ui';
import { CopyIcon, LocateFixedIcon, Undo2Icon } from 'lucide-react';
import path from 'path-browserify-esm';
import { memo, type MouseEvent, useCallback, useMemo } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/Review/FileRow.tsx b/src/features/Conversation/WorkingSidebar/Review/FileRow.tsx
index 9c2720a307b..c8941519512 100644
--- a/src/features/Conversation/WorkingSidebar/Review/FileRow.tsx
+++ b/src/features/Conversation/WorkingSidebar/Review/FileRow.tsx
@@ -1,7 +1,7 @@
'use client';
import type { GitWorkingTreePatch } from '@lobechat/electron-client-ipc';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { ChevronRightIcon } from 'lucide-react';
import { AnimatePresence } from 'motion/react';
import * as m from 'motion/react-m';
diff --git a/src/features/Conversation/WorkingSidebar/Review/FileTreeNav.tsx b/src/features/Conversation/WorkingSidebar/Review/FileTreeNav.tsx
index 565bbbb60b9..6c827e7151c 100644
--- a/src/features/Conversation/WorkingSidebar/Review/FileTreeNav.tsx
+++ b/src/features/Conversation/WorkingSidebar/Review/FileTreeNav.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import {
diff --git a/src/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx b/src/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx
index f7322c529e8..092c4e9d4ab 100644
--- a/src/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx
+++ b/src/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles } from '@lobehub/ui';
import { ChevronRightIcon, FoldVerticalIcon, UnfoldVerticalIcon } from 'lucide-react';
import { type KeyboardEvent, memo, type MouseEvent, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/Review/__tests__/FileItem.test.tsx b/src/features/Conversation/WorkingSidebar/Review/__tests__/FileItem.test.tsx
index 957d086b538..3df06e6b3f9 100644
--- a/src/features/Conversation/WorkingSidebar/Review/__tests__/FileItem.test.tsx
+++ b/src/features/Conversation/WorkingSidebar/Review/__tests__/FileItem.test.tsx
@@ -10,7 +10,8 @@ vi.mock('@/store/global', () => ({
selector({ revealInFilesTab: mockRevealInFilesTab }),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
ActionIcon: ({ onClick, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) => (
<button type="button" {...props} onClick={onClick} />
),
diff --git a/src/features/Conversation/WorkingSidebar/Review/index.tsx b/src/features/Conversation/WorkingSidebar/Review/index.tsx
index da00c54260c..ca7b20c2f63 100644
--- a/src/features/Conversation/WorkingSidebar/Review/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/Review/index.tsx
@@ -2,8 +2,7 @@
import type { GitWorkingTreePatch } from '@lobechat/electron-client-ipc';
import { Center, type DropdownItem, DropdownMenu, Empty, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Spin } from '@lobehub/ui';
import {
ArrowLeftIcon,
ChevronDownIcon,
diff --git a/src/features/Conversation/WorkingSidebar/WorksSection/VersionList.tsx b/src/features/Conversation/WorkingSidebar/WorksSection/VersionList.tsx
index 7527d8e57e6..55f6c15da81 100644
--- a/src/features/Conversation/WorkingSidebar/WorksSection/VersionList.tsx
+++ b/src/features/Conversation/WorkingSidebar/WorksSection/VersionList.tsx
@@ -1,7 +1,5 @@
import type { WorkVersionItem } from '@lobechat/types';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Flexbox, Spin, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/WorkingSidebar/WorksSection/WorkVersionHistoryCard.tsx b/src/features/Conversation/WorkingSidebar/WorksSection/WorkVersionHistoryCard.tsx
index efa21a0a92a..cf84107ea22 100644
--- a/src/features/Conversation/WorkingSidebar/WorksSection/WorkVersionHistoryCard.tsx
+++ b/src/features/Conversation/WorkingSidebar/WorksSection/WorkVersionHistoryCard.tsx
@@ -1,7 +1,5 @@
import type { TaskStatus, WorkListItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/WorksSection/index.tsx b/src/features/Conversation/WorkingSidebar/WorksSection/index.tsx
index 7f72f381865..d04c96dd08b 100644
--- a/src/features/Conversation/WorkingSidebar/WorksSection/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/WorksSection/index.tsx
@@ -1,7 +1,5 @@
import type { WorkListItem } from '@lobechat/types';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Center, createStaticStyles, Empty, Flexbox, Spin } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ClipboardListIcon, HistoryIcon, ListIcon } from 'lucide-react';
import { memo, useEffect, useRef } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/WorkspaceTab.tsx b/src/features/Conversation/WorkingSidebar/WorkspaceTab.tsx
index 8008c1f0675..32831b73eba 100644
--- a/src/features/Conversation/WorkingSidebar/WorkspaceTab.tsx
+++ b/src/features/Conversation/WorkingSidebar/WorkspaceTab.tsx
@@ -1,6 +1,5 @@
-import { Icon, type IconProps } from '@lobehub/ui';
-import { type ContextMenuItem, ContextMenuTrigger } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { type ContextMenuItem, ContextMenuTrigger, Icon, type IconProps } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { PinIcon, XIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/Conversation/WorkingSidebar/__tests__/index.test.tsx b/src/features/Conversation/WorkingSidebar/__tests__/index.test.tsx
index 5d1dbad9d5c..b8b664019ba 100644
--- a/src/features/Conversation/WorkingSidebar/__tests__/index.test.tsx
+++ b/src/features/Conversation/WorkingSidebar/__tests__/index.test.tsx
@@ -326,83 +326,97 @@ vi.mock('@/const/version', () => ({
return platform.isDesktop;
},
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
- <button aria-label={title} type="button" onClick={onClick} />
- ),
- Skeleton: () => <div data-testid="params-loading" />,
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
- const { useState } = await import('react');
- const actual = (await importOriginal()) as Record<string, unknown>;
-
- return {
- ...actual,
- ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
- <button aria-label={title} type="button" onClick={onClick} />
- ),
- ContextMenuTrigger: ({ children, items }: { children: ReactNode; items: any[] }) => {
- const [open, setOpen] = useState(false);
- const menuItems = items.filter((item) => item && item.type !== 'divider');
-
- return (
- <span
- onContextMenu={(event: MouseEvent) => {
- event.preventDefault();
- setOpen(true);
- }}
- >
- {children}
- {open &&
- menuItems.map((item) => (
- <button disabled={item.disabled} key={item.key} type="button" onClick={item.onClick}>
- {item.label}
- </button>
- ))}
- </span>
- );
- },
- DropdownMenu: ({
- children,
- items,
- onOpenChangeComplete,
- }: {
- children: ReactNode;
- items: any[] | (() => any[]);
- onOpenChangeComplete?: (open: boolean) => void;
- }) => {
- const [open, setOpen] = useState(false);
- const resolvedItems = typeof items === 'function' ? items() : items;
- const menuItems = resolvedItems.flatMap((item) => item.children ?? []);
- dropdownMenuState.items = resolvedItems;
- dropdownMenuState.onOpenChangeComplete = onOpenChangeComplete;
-
- return (
- <div>
- <span onClick={() => setOpen((value) => !value)}>{children}</span>
- {open &&
- menuItems.map((item) => (
- <button key={item.key} type="button" onClick={item.onClick}>
- {item.label}
- </button>
- ))}
- </div>
- );
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
+ <button aria-label={title} type="button" onClick={onClick} />
+ ),
+ Skeleton: () => <div data-testid="params-loading" />,
+ }),
+ async (importOriginal) => {
+ const { useState } = await import('react');
+ const actual = (await importOriginal()) as Record<string, unknown>;
+
+ return {
+ ...actual,
+ ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
+ <button aria-label={title} type="button" onClick={onClick} />
+ ),
+ ContextMenuTrigger: ({ children, items }: { children: ReactNode; items: any[] }) => {
+ const [open, setOpen] = useState(false);
+ const menuItems = items.filter((item) => item && item.type !== 'divider');
+
+ return (
+ <span
+ onContextMenu={(event: MouseEvent) => {
+ event.preventDefault();
+ setOpen(true);
+ }}
+ >
+ {children}
+ {open &&
+ menuItems.map((item) => (
+ <button
+ disabled={item.disabled}
+ key={item.key}
+ type="button"
+ onClick={item.onClick}
+ >
+ {item.label}
+ </button>
+ ))}
+ </span>
+ );
+ },
+ DropdownMenu: ({
+ children,
+ items,
+ onOpenChangeComplete,
+ }: {
+ children: ReactNode;
+ items: any[] | (() => any[]);
+ onOpenChangeComplete?: (open: boolean) => void;
+ }) => {
+ const [open, setOpen] = useState(false);
+ const resolvedItems = typeof items === 'function' ? items() : items;
+ const menuItems = resolvedItems.flatMap((item) => item.children ?? []);
+ dropdownMenuState.items = resolvedItems;
+ dropdownMenuState.onOpenChangeComplete = onOpenChangeComplete;
+
+ return (
+ <div>
+ <span onClick={() => setOpen((value) => !value)}>{children}</span>
+ {open &&
+ menuItems.map((item) => (
+ <button key={item.key} type="button" onClick={item.onClick}>
+ {item.label}
+ </button>
+ ))}
+ </div>
+ );
+ },
+ Skeleton: {
+ Text: () => <div data-testid="params-loading" />,
+ },
+ };
},
- Skeleton: {
- Text: () => <div data-testid="params-loading" />,
+ async (importOriginal) => {
+ const actual = (await importOriginal()) as Record<string, unknown>;
+ return {
+ ...actual,
+ createStaticStyles: () => () => ({}),
+ };
},
- };
-});
-
-vi.mock('antd-style', async (importOriginal) => {
- const actual = (await importOriginal()) as Record<string, unknown>;
- return {
- ...actual,
- createStaticStyles: () => () => ({}),
- };
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
});
beforeEach(() => {
diff --git a/src/features/Conversation/WorkingSidebar/index.tsx b/src/features/Conversation/WorkingSidebar/index.tsx
index bf7078f6e42..4cea875960c 100644
--- a/src/features/Conversation/WorkingSidebar/index.tsx
+++ b/src/features/Conversation/WorkingSidebar/index.tsx
@@ -1,10 +1,17 @@
import type { SFSymbol } from '@lobechat/electron-client-ipc';
import { getWorkingDirEffectivePath } from '@lobechat/types';
import { nanoid } from '@lobechat/utils';
-import { Flexbox, Icon, type IconProps } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu, Skeleton } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ type DropdownItem,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ type IconProps,
+ Skeleton,
+} from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar } from 'antd-style';
import {
BoxesIcon,
CheckIcon,
diff --git a/src/features/Conversation/Workspace/index.tsx b/src/features/Conversation/Workspace/index.tsx
index c1d5f7ff0a6..df05bebdde2 100644
--- a/src/features/Conversation/Workspace/index.tsx
+++ b/src/features/Conversation/Workspace/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { useSize } from 'ahooks';
-import { createStaticStyles } from 'antd-style';
import { type ReactNode, useRef } from 'react';
import ChatTerminalPanel from '@/features/ChatTerminal';
diff --git a/src/features/Conversation/components/History/HistoryDivider.tsx b/src/features/Conversation/components/History/HistoryDivider.tsx
index c99e8b8faf5..11015357bb6 100644
--- a/src/features/Conversation/components/History/HistoryDivider.tsx
+++ b/src/features/Conversation/components/History/HistoryDivider.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Divider, Tag } from '@lobehub/ui/base-ui';
+import { Divider, Icon, Tag } from '@lobehub/ui';
import { Timer } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/components/History/index.tsx b/src/features/Conversation/components/History/index.tsx
index 2d643cc652e..4a5c3fbe0db 100644
--- a/src/features/Conversation/components/History/index.tsx
+++ b/src/features/Conversation/components/History/index.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Center, createStaticStyles, cssVar, Flexbox, Icon, Markdown, Text } from '@lobehub/ui';
import { ScrollText } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/components/PortalResourceCard/index.tsx b/src/features/Conversation/components/PortalResourceCard/index.tsx
index 94c9f42c3e4..626a817b941 100644
--- a/src/features/Conversation/components/PortalResourceCard/index.tsx
+++ b/src/features/Conversation/components/PortalResourceCard/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Center, createStaticStyles, cx, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { FileText } from 'lucide-react';
import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Conversation/components/Reaction/ReactionDisplay.tsx b/src/features/Conversation/components/Reaction/ReactionDisplay.tsx
index a1db5c780f7..ab841b676e6 100644
--- a/src/features/Conversation/components/Reaction/ReactionDisplay.tsx
+++ b/src/features/Conversation/components/Reaction/ReactionDisplay.tsx
@@ -1,8 +1,7 @@
'use client';
import type { EmojiReaction } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { usePermission } from '@/hooks/usePermission';
diff --git a/src/features/Conversation/components/Reaction/ReactionPicker.tsx b/src/features/Conversation/components/Reaction/ReactionPicker.tsx
index 3d05e11a841..c7d44208276 100644
--- a/src/features/Conversation/components/Reaction/ReactionPicker.tsx
+++ b/src/features/Conversation/components/Reaction/ReactionPicker.tsx
@@ -2,9 +2,7 @@
import data from '@emoji-mart/data';
import Picker from '@emoji-mart/react';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Popover } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Popover, Tooltip, useTheme } from '@lobehub/ui';
import { PlusIcon, SmilePlus } from 'lucide-react';
import { type FC, memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/components/ShareMessageModal/ShareImage/index.tsx b/src/features/Conversation/components/ShareMessageModal/ShareImage/index.tsx
index 3f199ed2e4f..de408d30290 100644
--- a/src/features/Conversation/components/ShareMessageModal/ShareImage/index.tsx
+++ b/src/features/Conversation/components/ShareMessageModal/ShareImage/index.tsx
@@ -1,7 +1,6 @@
import { agentDisplayName, type UIChatMessage } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Switch, Tabs } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, Flexbox, Switch, Tabs } from '@lobehub/ui';
+import { Form, type FormFieldProps, useForm } from '@lobehub/ui/form';
import { CopyIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/components/ShareMessageModal/ShareText/index.tsx b/src/features/Conversation/components/ShareMessageModal/ShareText/index.tsx
index da99478900a..15a704cfa32 100644
--- a/src/features/Conversation/components/ShareMessageModal/ShareText/index.tsx
+++ b/src/features/Conversation/components/ShareMessageModal/ShareText/index.tsx
@@ -1,6 +1,5 @@
import { type UIChatMessage } from '@lobechat/types';
-import { copyToClipboard, Flexbox } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, copyToClipboard, Flexbox, toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { CopyIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/components/ShareMessageModal/index.tsx b/src/features/Conversation/components/ShareMessageModal/index.tsx
index ba07d593d08..840040da5c3 100644
--- a/src/features/Conversation/components/ShareMessageModal/index.tsx
+++ b/src/features/Conversation/components/ShareMessageModal/index.tsx
@@ -1,6 +1,5 @@
import { type UIChatMessage } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { createModal, Tabs } from '@lobehub/ui/base-ui';
+import { createModal, Flexbox, Tabs } from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useId, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/components/ShareMessageModal/style.ts b/src/features/Conversation/components/ShareMessageModal/style.ts
index 3f9ddf6f969..a1b1b91db70 100644
--- a/src/features/Conversation/components/ShareMessageModal/style.ts
+++ b/src/features/Conversation/components/ShareMessageModal/style.ts
@@ -1,5 +1,4 @@
-import { lobeStaticStylish } from '@lobehub/ui';
-import { createStaticStyles, cx , responsive } from 'antd-style';
+import { createStaticStyles, cx, lobeStaticStylish, responsive } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
body: css`
diff --git a/src/features/Conversation/components/Thinking/StatusIndicator.tsx b/src/features/Conversation/components/Thinking/StatusIndicator.tsx
index acda4bf22d4..2051791b8b8 100644
--- a/src/features/Conversation/components/Thinking/StatusIndicator.tsx
+++ b/src/features/Conversation/components/Thinking/StatusIndicator.tsx
@@ -1,6 +1,4 @@
-import { Block, Icon } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon, Spin } from '@lobehub/ui';
import { AtomIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Conversation/components/Thinking/Title.tsx b/src/features/Conversation/components/Thinking/Title.tsx
index 38fc5ebb955..2ab6090d573 100644
--- a/src/features/Conversation/components/Thinking/Title.tsx
+++ b/src/features/Conversation/components/Thinking/Title.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Conversation/components/Thinking/index.tsx b/src/features/Conversation/components/Thinking/index.tsx
index de5b7361cf2..66fd30cd379 100644
--- a/src/features/Conversation/components/Thinking/index.tsx
+++ b/src/features/Conversation/components/Thinking/index.tsx
@@ -1,6 +1,4 @@
-import { ScrollArea } from '@lobehub/ui';
-import { Accordion } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Accordion, createStaticStyles, ScrollArea } from '@lobehub/ui';
import type { CSSProperties, ReactNode, RefObject } from 'react';
import { memo, useEffect, useState } from 'react';
diff --git a/src/features/Conversation/hooks/useChatItemContextMenu.tsx b/src/features/Conversation/hooks/useChatItemContextMenu.tsx
index b4b205e917a..6233eb46933 100644
--- a/src/features/Conversation/hooks/useChatItemContextMenu.tsx
+++ b/src/features/Conversation/hooks/useChatItemContextMenu.tsx
@@ -2,9 +2,9 @@ import type { SFSymbol } from '@lobechat/electron-client-ipc';
import {
type ActionIconGroupEvent,
type ActionIconGroupItemType,
- type GenericItemType,
+ type DropdownItem,
} from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { type MouseEvent, type ReactNode } from 'react';
import { useCallback, useMemo, useRef } from 'react';
@@ -354,7 +354,7 @@ export const useChatItemContextMenu = ({
[handleAction],
);
- const contextMenuItems = useMemo<GenericItemType[]>(() => {
+ const contextMenuItems = useMemo<DropdownItem[]>(() => {
if (!menuItems) return [];
return menuItems.filter(Boolean).map((item) => {
if ('type' in item && item.type === 'divider') return { type: 'divider' as const };
diff --git a/src/features/Conversation/hooks/useChatListActionsBar.tsx b/src/features/Conversation/hooks/useChatListActionsBar.tsx
index 18d4b3d878f..fa45ca2b3e1 100644
--- a/src/features/Conversation/hooks/useChatListActionsBar.tsx
+++ b/src/features/Conversation/hooks/useChatListActionsBar.tsx
@@ -1,6 +1,6 @@
import type { SFSymbol } from '@lobechat/electron-client-ipc';
import { type ActionIconGroupItemType } from '@lobehub/ui';
-import { css, cx } from 'antd-style';
+import { css, cx } from '@lobehub/ui';
import {
ArrowDownFromLine,
Copy,
diff --git a/src/features/Conversation/store/slices/generation/action.ts b/src/features/Conversation/store/slices/generation/action.ts
index 69661bdcb81..6875b77caa7 100644
--- a/src/features/Conversation/store/slices/generation/action.ts
+++ b/src/features/Conversation/store/slices/generation/action.ts
@@ -12,7 +12,7 @@ import type {
HeterogeneousProviderConfig,
} from '@lobechat/types';
import { applyTopicModelToHeterogeneousProvider, resolveAgentAgencyConfig } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { type StateCreator } from 'zustand';
diff --git a/src/features/Conversation/store/slices/input/action.ts b/src/features/Conversation/store/slices/input/action.ts
index 23b305c7845..429ddb4beb3 100644
--- a/src/features/Conversation/store/slices/input/action.ts
+++ b/src/features/Conversation/store/slices/input/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { type StateCreator } from 'zustand';
diff --git a/src/features/Conversation/store/slices/message/action/index.ts b/src/features/Conversation/store/slices/message/action/index.ts
index 6a2151ba10e..9fce29c1fc4 100644
--- a/src/features/Conversation/store/slices/message/action/index.ts
+++ b/src/features/Conversation/store/slices/message/action/index.ts
@@ -1,5 +1,5 @@
import { shouldDropUnsupportedClaudeAssistantPrefill } from '@lobechat/model-runtime/providers/anthropic/modelId';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import type { StateCreator } from 'zustand';
diff --git a/src/features/DailyBrief/BriefActionLink.tsx b/src/features/DailyBrief/BriefActionLink.tsx
index ea689528edf..92f6c80b3fc 100644
--- a/src/features/DailyBrief/BriefActionLink.tsx
+++ b/src/features/DailyBrief/BriefActionLink.tsx
@@ -2,8 +2,7 @@
import { isDesktop } from '@lobechat/const';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
-import { Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import type { MouseEvent, ReactNode } from 'react';
import { memo, useCallback } from 'react';
diff --git a/src/features/DailyBrief/BriefCardActions.tsx b/src/features/DailyBrief/BriefCardActions.tsx
index 39f0e035331..5e02cfa76b5 100644
--- a/src/features/DailyBrief/BriefCardActions.tsx
+++ b/src/features/DailyBrief/BriefCardActions.tsx
@@ -1,7 +1,5 @@
import { type BriefAction, DEFAULT_BRIEF_ACTIONS, type TaskStatus } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Text, toast, Tooltip } from '@lobehub/ui';
import { Check, SquarePen, Target, Workflow } from 'lucide-react';
import { lazy, memo, Suspense, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DailyBrief/BriefCardArtifacts.tsx b/src/features/DailyBrief/BriefCardArtifacts.tsx
index cfa73abc995..49ec9786b2b 100644
--- a/src/features/DailyBrief/BriefCardArtifacts.tsx
+++ b/src/features/DailyBrief/BriefCardArtifacts.tsx
@@ -1,7 +1,5 @@
import type { BriefArtifactDocument, BriefArtifacts } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRightIcon, FileTextIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/DailyBrief/BriefCardSkeleton.tsx b/src/features/DailyBrief/BriefCardSkeleton.tsx
index 67a65bca3b4..863420b69fb 100644
--- a/src/features/DailyBrief/BriefCardSkeleton.tsx
+++ b/src/features/DailyBrief/BriefCardSkeleton.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Divider, Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Divider, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
/** Loading placeholder for {@link BriefCard}. */
diff --git a/src/features/DailyBrief/BriefCardSummary.tsx b/src/features/DailyBrief/BriefCardSummary.tsx
index 439c572a3ad..31fb5548c1f 100644
--- a/src/features/DailyBrief/BriefCardSummary.tsx
+++ b/src/features/DailyBrief/BriefCardSummary.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, MaskShadow } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, MaskShadow } from '@lobehub/ui';
import { useSize } from 'ahooks';
import { ChevronsDownUpIcon, ChevronsUpDownIcon } from 'lucide-react';
import { lazy, memo, Suspense, useEffect, useRef, useState } from 'react';
diff --git a/src/features/DailyBrief/BriefIcon.tsx b/src/features/DailyBrief/BriefIcon.tsx
index bfa3a83ab12..cb8ea60d0d8 100644
--- a/src/features/DailyBrief/BriefIcon.tsx
+++ b/src/features/DailyBrief/BriefIcon.tsx
@@ -1,6 +1,5 @@
import { type BriefType } from '@lobechat/types';
-import { Block, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon } from '@lobehub/ui';
import type { CircleDot } from 'lucide-react';
import { CheckCheckIcon, EyeIcon, HandIcon, Lightbulb, SirenIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/DailyBrief/BriefPriorityIcon.tsx b/src/features/DailyBrief/BriefPriorityIcon.tsx
index 4907bd92ca3..21dc1569ca9 100644
--- a/src/features/DailyBrief/BriefPriorityIcon.tsx
+++ b/src/features/DailyBrief/BriefPriorityIcon.tsx
@@ -1,5 +1,4 @@
-import { Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DailyBrief/CommentInput.tsx b/src/features/DailyBrief/CommentInput.tsx
index 7414732a185..33e64f85579 100644
--- a/src/features/DailyBrief/CommentInput.tsx
+++ b/src/features/DailyBrief/CommentInput.tsx
@@ -1,7 +1,5 @@
import { ChatInput, Editor, SendButton, useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox } from '@lobehub/ui';
import { ChevronLeft } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DailyBrief/SelfReviewBriefDetails.tsx b/src/features/DailyBrief/SelfReviewBriefDetails.tsx
index 671cf6a57dc..e4f6adcb2c8 100644
--- a/src/features/DailyBrief/SelfReviewBriefDetails.tsx
+++ b/src/features/DailyBrief/SelfReviewBriefDetails.tsx
@@ -4,9 +4,7 @@ import {
type SelfReviewBriefDetails as SelfReviewBriefDetailsModel,
type SelfReviewProposalContentItem,
} from '@lobechat/agent-signal/brief';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DailyBrief/SelfReviewProposalModal/ProposalContent.tsx b/src/features/DailyBrief/SelfReviewProposalModal/ProposalContent.tsx
index 84c4c020e46..28dfb23dd59 100644
--- a/src/features/DailyBrief/SelfReviewProposalModal/ProposalContent.tsx
+++ b/src/features/DailyBrief/SelfReviewProposalModal/ProposalContent.tsx
@@ -2,9 +2,7 @@ import {
formatSelfReviewItemHeadline,
type SelfReviewProposalContentItem,
} from '@lobechat/agent-signal/brief';
-import { Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Markdown, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DailyBrief/SelfReviewProposalModal/index.tsx b/src/features/DailyBrief/SelfReviewProposalModal/index.tsx
index 6657726b675..74a9b084dfd 100644
--- a/src/features/DailyBrief/SelfReviewProposalModal/index.tsx
+++ b/src/features/DailyBrief/SelfReviewProposalModal/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { type SelfReviewProposalContentItem } from '@lobechat/agent-signal/brief';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import { lazy, Suspense } from 'react';
diff --git a/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx b/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx
index 36d3d3bed31..3565e6cdbed 100644
--- a/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx
+++ b/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx
@@ -1,7 +1,7 @@
import type * as LobechatConst from '@lobechat/const';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
import type { BriefAction } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import type { ReactElement } from 'react';
import { MemoryRouter } from 'react-router';
diff --git a/src/features/DailyBrief/style.ts b/src/features/DailyBrief/style.ts
index ec24eb5dc36..1d0fec736bc 100644
--- a/src/features/DailyBrief/style.ts
+++ b/src/features/DailyBrief/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
actionBtn: css`
diff --git a/src/features/Dashboard/Board/BoardHeader.tsx b/src/features/Dashboard/Board/BoardHeader.tsx
index 36042fac174..88377b31217 100644
--- a/src/features/Dashboard/Board/BoardHeader.tsx
+++ b/src/features/Dashboard/Board/BoardHeader.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Text, Tooltip } from '@lobehub/ui';
import dayjs from 'dayjs';
import { LayoutGridIcon, RefreshCwIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/Dashboard/Board/LayoutEditor.tsx b/src/features/Dashboard/Board/LayoutEditor.tsx
index 1eb67a97fcb..f48d848b0f7 100644
--- a/src/features/Dashboard/Board/LayoutEditor.tsx
+++ b/src/features/Dashboard/Board/LayoutEditor.tsx
@@ -18,9 +18,7 @@ import {
} from '@dnd-kit/sortable';
import { CSS } from '@dnd-kit/utilities';
import type { DashboardItemLayout } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { ActionIcon, Button, cx, Flexbox, Icon, toast } from '@lobehub/ui';
import {
ChevronDownIcon,
ChevronLeftIcon,
diff --git a/src/features/Dashboard/Board/index.tsx b/src/features/Dashboard/Board/index.tsx
index ae93d5166af..c8949ec1b00 100644
--- a/src/features/Dashboard/Board/index.tsx
+++ b/src/features/Dashboard/Board/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { Center, Empty, Flexbox, toast } from '@lobehub/ui';
import { LayoutDashboardIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/Board/style.ts b/src/features/Dashboard/Board/style.ts
index bb83646e3c9..d343366d622 100644
--- a/src/features/Dashboard/Board/style.ts
+++ b/src/features/Dashboard/Board/style.ts
@@ -1,5 +1,5 @@
import type { DashboardItemLayout } from '@lobechat/types';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { CSSProperties } from 'react';
import { DASHBOARD_GRID_COLUMNS, DASHBOARD_GRID_GAP, DASHBOARD_ROW_HEIGHT } from '../utils/layout';
diff --git a/src/features/Dashboard/BoardPage.tsx b/src/features/Dashboard/BoardPage.tsx
index 6c86b2d3b0b..315d2e8cbd8 100644
--- a/src/features/Dashboard/BoardPage.tsx
+++ b/src/features/Dashboard/BoardPage.tsx
@@ -1,8 +1,7 @@
'use client';
import type { WidgetLevelFilter } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronLeftIcon, LayoutDashboardIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/DashboardActionsMenu.tsx b/src/features/Dashboard/DashboardActionsMenu.tsx
index 81fc5560ca4..2371a9c523f 100644
--- a/src/features/Dashboard/DashboardActionsMenu.tsx
+++ b/src/features/Dashboard/DashboardActionsMenu.tsx
@@ -2,13 +2,7 @@
import type { WidgetLevelFilter } from '@lobechat/types';
import { Icon } from '@lobehub/ui';
-import {
- ActionIcon,
- confirmModal,
- type DropdownItem,
- DropdownMenu,
- toast,
-} from '@lobehub/ui/base-ui';
+import { ActionIcon, confirmModal, type DropdownItem, DropdownMenu, toast } from '@lobehub/ui';
import { MoreHorizontalIcon, PencilIcon, TrashIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/DashboardFormModal.test.ts b/src/features/Dashboard/DashboardFormModal.test.ts
index 664c0c85b42..09bf446f831 100644
--- a/src/features/Dashboard/DashboardFormModal.test.ts
+++ b/src/features/Dashboard/DashboardFormModal.test.ts
@@ -9,7 +9,7 @@ import { openCreateDashboardModal } from './DashboardFormModal';
const modal = vi.hoisted(() => ({ content: undefined as ReactElement | undefined }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
createModal: ({ content }: { content: ReactElement }) => {
modal.content = content;
diff --git a/src/features/Dashboard/DashboardFormModal.tsx b/src/features/Dashboard/DashboardFormModal.tsx
index 46d109a8e3a..3b55b51e3e5 100644
--- a/src/features/Dashboard/DashboardFormModal.tsx
+++ b/src/features/Dashboard/DashboardFormModal.tsx
@@ -1,17 +1,17 @@
'use client';
import type { WidgetLevelFilter } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
Text,
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/ErrorLine.tsx b/src/features/Dashboard/ErrorLine.tsx
index 9573ee7ecca..a3d63b838a4 100644
--- a/src/features/Dashboard/ErrorLine.tsx
+++ b/src/features/Dashboard/ErrorLine.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { CircleAlertIcon } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/List/DashboardListCard.tsx b/src/features/Dashboard/List/DashboardListCard.tsx
index d070250234f..5e3ced27c14 100644
--- a/src/features/Dashboard/List/DashboardListCard.tsx
+++ b/src/features/Dashboard/List/DashboardListCard.tsx
@@ -1,9 +1,7 @@
'use client';
import type { WidgetLevelFilter } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Center, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { LayoutDashboardIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Dashboard/List/index.tsx b/src/features/Dashboard/List/index.tsx
index c39e6db35de..69848992d8e 100644
--- a/src/features/Dashboard/List/index.tsx
+++ b/src/features/Dashboard/List/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Flexbox, Text } from '@lobehub/ui';
import { LayoutDashboardIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetCard/HealthDot.tsx b/src/features/Dashboard/WidgetCard/HealthDot.tsx
index b8282f43502..96e21e09481 100644
--- a/src/features/Dashboard/WidgetCard/HealthDot.tsx
+++ b/src/features/Dashboard/WidgetCard/HealthDot.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import type { WidgetHealth } from '../utils/widgetHealth';
diff --git a/src/features/Dashboard/WidgetCard/StatusBadges.tsx b/src/features/Dashboard/WidgetCard/StatusBadges.tsx
index aec7f3357c2..1902f69a242 100644
--- a/src/features/Dashboard/WidgetCard/StatusBadges.tsx
+++ b/src/features/Dashboard/WidgetCard/StatusBadges.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Tag, Tooltip } from '@lobehub/ui/base-ui';
+import { Tag, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetCard/index.tsx b/src/features/Dashboard/WidgetCard/index.tsx
index 3b451da9e88..96900efa6cc 100644
--- a/src/features/Dashboard/WidgetCard/index.tsx
+++ b/src/features/Dashboard/WidgetCard/index.tsx
@@ -1,9 +1,17 @@
'use client';
import type { WidgetView } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Spin, Text, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Spin,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { CircleDashedIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/Dashboard/WidgetCard/views/ListView.tsx b/src/features/Dashboard/WidgetCard/views/ListView.tsx
index 99052840031..431c2ee82b5 100644
--- a/src/features/Dashboard/WidgetCard/views/ListView.tsx
+++ b/src/features/Dashboard/WidgetCard/views/ListView.tsx
@@ -1,9 +1,7 @@
'use client';
import type { WidgetListOutput } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetCard/views/SeriesView.tsx b/src/features/Dashboard/WidgetCard/views/SeriesView.tsx
index 92858a3e141..caeff7d76d8 100644
--- a/src/features/Dashboard/WidgetCard/views/SeriesView.tsx
+++ b/src/features/Dashboard/WidgetCard/views/SeriesView.tsx
@@ -2,7 +2,7 @@
import type { WidgetSeriesOutput, WidgetView } from '@lobechat/types';
import { AreaChart, BarChart, LineChart } from '@lobehub/charts';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetCard/views/StatView.tsx b/src/features/Dashboard/WidgetCard/views/StatView.tsx
index 366eaa4fd4d..251763a8981 100644
--- a/src/features/Dashboard/WidgetCard/views/StatView.tsx
+++ b/src/features/Dashboard/WidgetCard/views/StatView.tsx
@@ -1,9 +1,7 @@
'use client';
import type { WidgetStatOutput } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowDownRightIcon, ArrowRightIcon, ArrowUpRightIcon } from 'lucide-react';
import { type CSSProperties, memo } from 'react';
diff --git a/src/features/Dashboard/WidgetCard/views/TableView.tsx b/src/features/Dashboard/WidgetCard/views/TableView.tsx
index 902942030ab..142bfd05191 100644
--- a/src/features/Dashboard/WidgetCard/views/TableView.tsx
+++ b/src/features/Dashboard/WidgetCard/views/TableView.tsx
@@ -1,8 +1,7 @@
'use client';
import type { WidgetTableOutput } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetCard/views/TrendSparkline.tsx b/src/features/Dashboard/WidgetCard/views/TrendSparkline.tsx
index 4137abe98e8..8fc591e7bde 100644
--- a/src/features/Dashboard/WidgetCard/views/TrendSparkline.tsx
+++ b/src/features/Dashboard/WidgetCard/views/TrendSparkline.tsx
@@ -1,6 +1,6 @@
'use client';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo, useId } from 'react';
import { sparklinePoints } from '../../utils/series';
diff --git a/src/features/Dashboard/WidgetDetail/RunHistory.tsx b/src/features/Dashboard/WidgetDetail/RunHistory.tsx
index de6525e1e17..909aed64529 100644
--- a/src/features/Dashboard/WidgetDetail/RunHistory.tsx
+++ b/src/features/Dashboard/WidgetDetail/RunHistory.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Dashboard/WidgetDetail/RunLogs.tsx b/src/features/Dashboard/WidgetDetail/RunLogs.tsx
index e3e1f94fa5c..e2a2d105ef0 100644
--- a/src/features/Dashboard/WidgetDetail/RunLogs.tsx
+++ b/src/features/Dashboard/WidgetDetail/RunLogs.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetDetail/RunPreview.tsx b/src/features/Dashboard/WidgetDetail/RunPreview.tsx
index e3b12fce89d..e39754a651c 100644
--- a/src/features/Dashboard/WidgetDetail/RunPreview.tsx
+++ b/src/features/Dashboard/WidgetDetail/RunPreview.tsx
@@ -1,8 +1,7 @@
'use client';
import type { WidgetView } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetDetail/VersionDiff.tsx b/src/features/Dashboard/WidgetDetail/VersionDiff.tsx
index f064216e8e2..029f1169815 100644
--- a/src/features/Dashboard/WidgetDetail/VersionDiff.tsx
+++ b/src/features/Dashboard/WidgetDetail/VersionDiff.tsx
@@ -1,7 +1,6 @@
'use client';
-import { CodeDiff, Flexbox } from '@lobehub/ui';
-import { Select, Text } from '@lobehub/ui/base-ui';
+import { CodeDiff, Flexbox, Select, Text } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetDetail/VersionList.tsx b/src/features/Dashboard/WidgetDetail/VersionList.tsx
index fd6ddbb71aa..ae9e5af61ef 100644
--- a/src/features/Dashboard/WidgetDetail/VersionList.tsx
+++ b/src/features/Dashboard/WidgetDetail/VersionList.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox, Highlighter, Icon } from '@lobehub/ui';
-import { Tag, Text, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Highlighter,
+ Icon,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { BotIcon, ChevronDownIcon, ChevronRightIcon, UserIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Dashboard/WidgetDetail/index.tsx b/src/features/Dashboard/WidgetDetail/index.tsx
index a4efaf81d68..ce5d4e4af6e 100644
--- a/src/features/Dashboard/WidgetDetail/index.tsx
+++ b/src/features/Dashboard/WidgetDetail/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Drawer, Tabs, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Alert, createStaticStyles, cssVar, Drawer, Flexbox, Tabs, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetPreview/AddToDashboardButton.tsx b/src/features/Dashboard/WidgetPreview/AddToDashboardButton.tsx
index e56ab4a6bd1..afdf78fdefd 100644
--- a/src/features/Dashboard/WidgetPreview/AddToDashboardButton.tsx
+++ b/src/features/Dashboard/WidgetPreview/AddToDashboardButton.tsx
@@ -1,7 +1,7 @@
'use client';
import { Icon } from '@lobehub/ui';
-import { Button, type DropdownItem, DropdownMenu, toast } from '@lobehub/ui/base-ui';
+import { Button, type DropdownItem, DropdownMenu, toast } from '@lobehub/ui';
import { CheckIcon, LayoutDashboardIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetPreview/DryRunReview.tsx b/src/features/Dashboard/WidgetPreview/DryRunReview.tsx
index 2a66209dc0c..1e299284949 100644
--- a/src/features/Dashboard/WidgetPreview/DryRunReview.tsx
+++ b/src/features/Dashboard/WidgetPreview/DryRunReview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Highlighter, Skeleton, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetPreview/PublishConfirmModal.tsx b/src/features/Dashboard/WidgetPreview/PublishConfirmModal.tsx
index 4abee23755f..fd1e74bde96 100644
--- a/src/features/Dashboard/WidgetPreview/PublishConfirmModal.tsx
+++ b/src/features/Dashboard/WidgetPreview/PublishConfirmModal.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, createModal, Flexbox, ModalFooter, useModalContext } from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetPreview/PublishReview.tsx b/src/features/Dashboard/WidgetPreview/PublishReview.tsx
index dc82da568b9..cac32388f08 100644
--- a/src/features/Dashboard/WidgetPreview/PublishReview.tsx
+++ b/src/features/Dashboard/WidgetPreview/PublishReview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Alert, Flexbox, Skeleton, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetPreview/ReviewFacts.tsx b/src/features/Dashboard/WidgetPreview/ReviewFacts.tsx
index ee2cc225801..785989f0b89 100644
--- a/src/features/Dashboard/WidgetPreview/ReviewFacts.tsx
+++ b/src/features/Dashboard/WidgetPreview/ReviewFacts.tsx
@@ -1,9 +1,7 @@
'use client';
import type { WidgetManifest } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetPreview/index.tsx b/src/features/Dashboard/WidgetPreview/index.tsx
index 6c7f0027359..d37e549abca 100644
--- a/src/features/Dashboard/WidgetPreview/index.tsx
+++ b/src/features/Dashboard/WidgetPreview/index.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, Tag, Text, toast, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { ArrowUpRightIcon, PanelRightOpenIcon, RocketIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/WidgetRefreshButton.tsx b/src/features/Dashboard/WidgetRefreshButton.tsx
index fb2a533e525..8291a6615a1 100644
--- a/src/features/Dashboard/WidgetRefreshButton.tsx
+++ b/src/features/Dashboard/WidgetRefreshButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, toast } from '@lobehub/ui';
import { RefreshCwIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Dashboard/pageStyles.ts b/src/features/Dashboard/pageStyles.ts
index 1785d2ca5cd..20a15cd12ee 100644
--- a/src/features/Dashboard/pageStyles.ts
+++ b/src/features/Dashboard/pageStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
/**
* Page chrome shared by the dashboard pages (board list, one board, a
diff --git a/src/features/DataImporter/Error.tsx b/src/features/DataImporter/Error.tsx
index c509b9b9e42..b1abc3dc7d3 100644
--- a/src/features/DataImporter/Error.tsx
+++ b/src/features/DataImporter/Error.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Highlighter, Icon } from '@lobehub/ui';
-import { Alert, Button, Result } from '@lobehub/ui/base-ui';
+import { Alert, Button, Flexbox, Highlighter, Icon, Result } from '@lobehub/ui';
import { ShieldAlert } from 'lucide-react';
import React, { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/DataImporter/FileUploading.tsx b/src/features/DataImporter/FileUploading.tsx
index 0f8a3656f2d..83bbff4f84e 100644
--- a/src/features/DataImporter/FileUploading.tsx
+++ b/src/features/DataImporter/FileUploading.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Progress } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Progress } from '@lobehub/ui';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DataImporter/ImportDetail.tsx b/src/features/DataImporter/ImportDetail.tsx
index 2b2b242ba1f..dea801f3412 100644
--- a/src/features/DataImporter/ImportDetail.tsx
+++ b/src/features/DataImporter/ImportDetail.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Table, type TableColumn, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
+import { Button, Table, type TableColumn, Text } from '@lobehub/ui';
import { Info } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DataImporter/Loading.tsx b/src/features/DataImporter/Loading.tsx
index 14eee6f80a9..5c11cdc3339 100644
--- a/src/features/DataImporter/Loading.tsx
+++ b/src/features/DataImporter/Loading.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { createStaticStyles, keyframes } from 'antd-style';
+import { Center, createStaticStyles, keyframes } from '@lobehub/ui';
const size = 28;
diff --git a/src/features/DataImporter/SuccessResult.tsx b/src/features/DataImporter/SuccessResult.tsx
index 391646f8e0b..1b89924302f 100644
--- a/src/features/DataImporter/SuccessResult.tsx
+++ b/src/features/DataImporter/SuccessResult.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Result, Table } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, Result, Table } from '@lobehub/ui';
import { CheckCircle } from 'lucide-react';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DataImporter/index.tsx b/src/features/DataImporter/index.tsx
index 34c14e11b3f..2fa12703d94 100644
--- a/src/features/DataImporter/index.tsx
+++ b/src/features/DataImporter/index.tsx
@@ -2,9 +2,7 @@
import { type ErrorShape, type ImportFileUploadState } from '@lobechat/types';
import { ImportStage } from '@lobechat/types';
-import { Center } from '@lobehub/ui';
-import { Button, toast, Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, Center, createStaticStyles, cx, toast, Upload } from '@lobehub/ui';
import { ImportIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import React, { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/DeleteTopicConfirm/Content.tsx b/src/features/DeleteTopicConfirm/Content.tsx
index e2b6842e478..a60cb7d3e03 100644
--- a/src/features/DeleteTopicConfirm/Content.tsx
+++ b/src/features/DeleteTopicConfirm/Content.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
+import { Checkbox, Flexbox } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeleteTopicConfirm/index.test.tsx b/src/features/DeleteTopicConfirm/index.test.tsx
index bd79bc0e243..4a613fb356b 100644
--- a/src/features/DeleteTopicConfirm/index.test.tsx
+++ b/src/features/DeleteTopicConfirm/index.test.tsx
@@ -9,7 +9,7 @@ import { confirmRemoveTopic } from './index';
const confirmModalMock = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: confirmModalMock,
}));
diff --git a/src/features/DeleteTopicConfirm/index.tsx b/src/features/DeleteTopicConfirm/index.tsx
index eb52ef2be53..c5f0af50008 100644
--- a/src/features/DeleteTopicConfirm/index.tsx
+++ b/src/features/DeleteTopicConfirm/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import { t } from 'i18next';
import type { ReactNode } from 'react';
diff --git a/src/features/DesktopLayoutContainer/cssVariables.test.ts b/src/features/DesktopLayoutContainer/cssVariables.test.ts
index d60972321f0..d5cb23a442b 100644
--- a/src/features/DesktopLayoutContainer/cssVariables.test.ts
+++ b/src/features/DesktopLayoutContainer/cssVariables.test.ts
@@ -29,8 +29,8 @@ describe('getInnerCssVariables', () => {
mockDarwin.mockReturnValue(24);
const vars = getInnerCssVariables({ isDark: false });
- expect(vars['--container-border-radius']).toBe('var(--ant-border-radius)');
- expect(vars['--container-border-bottom-right-radius']).toBe('var(--ant-border-radius)');
+ expect(vars['--container-border-radius']).toBe('var(--lobe-border-radius)');
+ expect(vars['--container-border-bottom-right-radius']).toBe('var(--lobe-border-radius)');
});
it('switches to 12px from darwin 25, and rounds the bottom-right too from darwin 26', () => {
@@ -56,10 +56,10 @@ describe('getInnerCssVariables', () => {
it('softens the border color in dark mode', () => {
expect(getInnerCssVariables({ isDark: true })['--container-border-color']).toBe(
- 'var(--ant-color-border-secondary)',
+ 'var(--lobe-color-border-secondary)',
);
expect(getInnerCssVariables({ isDark: false })['--container-border-color']).toBe(
- 'var(--ant-color-border)',
+ 'var(--lobe-color-border)',
);
});
});
diff --git a/src/features/DesktopLayoutContainer/cssVariables.ts b/src/features/DesktopLayoutContainer/cssVariables.ts
index a97c2bd9c83..aa641d53a44 100644
--- a/src/features/DesktopLayoutContainer/cssVariables.ts
+++ b/src/features/DesktopLayoutContainer/cssVariables.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { isDesktop } from '@/const/version';
import { getDarwinMajorVersion, isMacOSWithLargeWindowBorders } from '@/utils/platform';
diff --git a/src/features/DesktopLayoutContainer/style.ts b/src/features/DesktopLayoutContainer/style.ts
index dcb64f79da3..6187735622e 100644
--- a/src/features/DesktopLayoutContainer/style.ts
+++ b/src/features/DesktopLayoutContainer/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { isDesktop } from '@/const/version';
diff --git a/src/features/DesktopOnboarding/Layout/index.tsx b/src/features/DesktopOnboarding/Layout/index.tsx
index 96e87ed5f9e..8f6a2fef942 100644
--- a/src/features/DesktopOnboarding/Layout/index.tsx
+++ b/src/features/DesktopOnboarding/Layout/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Divider, Text } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { Center, css, cx, Divider, Flexbox, Text } from '@lobehub/ui';
import { type FC, type PropsWithChildren } from 'react';
import SimpleTitleBar from '@/features/Electron/titlebar/SimpleTitleBar';
diff --git a/src/features/DesktopOnboarding/Layout/style.ts b/src/features/DesktopOnboarding/Layout/style.ts
index 034c9535214..e2063aad19a 100644
--- a/src/features/DesktopOnboarding/Layout/style.ts
+++ b/src/features/DesktopOnboarding/Layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { isMacOSWithLargeWindowBorders } from '@/utils/platform';
diff --git a/src/features/DesktopOnboarding/components/LobeMessage.tsx b/src/features/DesktopOnboarding/components/LobeMessage.tsx
index e24a62c23ce..22d93769fb0 100644
--- a/src/features/DesktopOnboarding/components/LobeMessage.tsx
+++ b/src/features/DesktopOnboarding/components/LobeMessage.tsx
@@ -1,8 +1,7 @@
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { type TypewriterEffectProps } from '@lobehub/ui/awesome';
import { TypewriterEffect } from '@lobehub/ui/awesome';
-import { Text } from '@lobehub/ui/base-ui';
import { LoadingDots } from '@lobehub/ui/chat';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DesktopOnboarding/components/OnboardingFooterActions.tsx b/src/features/DesktopOnboarding/components/OnboardingFooterActions.tsx
index de5eb0f20f6..0e8d3f1f020 100644
--- a/src/features/DesktopOnboarding/components/OnboardingFooterActions.tsx
+++ b/src/features/DesktopOnboarding/components/OnboardingFooterActions.tsx
@@ -1,6 +1,5 @@
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/DesktopOnboarding/index.tsx b/src/features/DesktopOnboarding/index.tsx
index 1e73769afe5..e4df54ef8bd 100644
--- a/src/features/DesktopOnboarding/index.tsx
+++ b/src/features/DesktopOnboarding/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { APP_WINDOW_MIN_SIZE } from '@lobechat/desktop-bridge';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo, Suspense, useCallback, useEffect, useState } from 'react';
import { useSearchParams } from 'react-router';
diff --git a/src/features/DesktopOnboarding/steps/DataModeStep.tsx b/src/features/DesktopOnboarding/steps/DataModeStep.tsx
index e887eae725d..524fe9ee87b 100644
--- a/src/features/DesktopOnboarding/steps/DataModeStep.tsx
+++ b/src/features/DesktopOnboarding/steps/DataModeStep.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { Button, Checkbox, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, Checkbox, cssVar, Empty, Flexbox, Text } from '@lobehub/ui';
import { HeartHandshake, Undo2Icon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DesktopOnboarding/steps/KeepAwakeStep.tsx b/src/features/DesktopOnboarding/steps/KeepAwakeStep.tsx
index ca7b395e3e1..023d08cbad5 100644
--- a/src/features/DesktopOnboarding/steps/KeepAwakeStep.tsx
+++ b/src/features/DesktopOnboarding/steps/KeepAwakeStep.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { Button, Checkbox, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, Checkbox, cssVar, Empty, Flexbox, Tag, Text } from '@lobehub/ui';
import { MonitorCheck, Undo2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DesktopOnboarding/steps/LoginStep.tsx b/src/features/DesktopOnboarding/steps/LoginStep.tsx
index 5722b8b2fec..9a028f78cdc 100644
--- a/src/features/DesktopOnboarding/steps/LoginStep.tsx
+++ b/src/features/DesktopOnboarding/steps/LoginStep.tsx
@@ -2,9 +2,7 @@
import { type AuthorizationPhase, type AuthorizationProgress } from '@lobechat/electron-client-ipc';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Button, Divider, Input, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Alert, Button, Center, cssVar, Divider, Flexbox, Icon, Input, Text } from '@lobehub/ui';
import { Cloud, LogOutIcon, Server, Undo2Icon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DesktopOnboarding/steps/PermissionsStep.tsx b/src/features/DesktopOnboarding/steps/PermissionsStep.tsx
index 27fc47d271e..203cff0c94f 100644
--- a/src/features/DesktopOnboarding/steps/PermissionsStep.tsx
+++ b/src/features/DesktopOnboarding/steps/PermissionsStep.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
Bell,
diff --git a/src/features/DesktopOnboarding/steps/WelcomeStep.tsx b/src/features/DesktopOnboarding/steps/WelcomeStep.tsx
index bc2e343f37e..1de9b5fffa2 100644
--- a/src/features/DesktopOnboarding/steps/WelcomeStep.tsx
+++ b/src/features/DesktopOnboarding/steps/WelcomeStep.tsx
@@ -1,11 +1,9 @@
'use client';
import { type IconProps } from '@lobehub/ui';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
+import { Block, Button, cssVar, Flexbox, Icon, Steps, Text } from '@lobehub/ui';
import { TypewriterEffect } from '@lobehub/ui/awesome';
-import { Button, Steps, Text } from '@lobehub/ui/base-ui';
import { LoadingDots } from '@lobehub/ui/chat';
-import { cssVar } from 'antd-style';
import { BrainIcon, HeartHandshakeIcon, PencilRulerIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DevDock/Bar.tsx b/src/features/DevDock/Bar.tsx
index 2a3d6384d96..8c0c9b0ca94 100644
--- a/src/features/DevDock/Bar.tsx
+++ b/src/features/DevDock/Bar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { ChevronDown, Wrench } from 'lucide-react';
import { Fragment, memo } from 'react';
diff --git a/src/features/DevDock/OverflowMenu.tsx b/src/features/DevDock/OverflowMenu.tsx
index f0bce596542..36a5e65c5ae 100644
--- a/src/features/DevDock/OverflowMenu.tsx
+++ b/src/features/DevDock/OverflowMenu.tsx
@@ -1,7 +1,7 @@
'use client';
-import { type DropdownItem, DropdownMenu } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { type DropdownItem, DropdownMenu } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { Ellipsis, Pin } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/DevDock/PanelErrorBoundary.tsx b/src/features/DevDock/PanelErrorBoundary.tsx
index 89c12cbbb19..25f0fc4fd69 100644
--- a/src/features/DevDock/PanelErrorBoundary.tsx
+++ b/src/features/DevDock/PanelErrorBoundary.tsx
@@ -1,4 +1,4 @@
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { Component, type PropsWithChildren } from 'react';
interface PanelErrorBoundaryState {
diff --git a/src/features/DevDock/PanelHost.tsx b/src/features/DevDock/PanelHost.tsx
index 3513d10382b..29819e7ba58 100644
--- a/src/features/DevDock/PanelHost.tsx
+++ b/src/features/DevDock/PanelHost.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { Maximize2, Minimize2, XIcon } from 'lucide-react';
import { memo, Suspense, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/DevDock/actions.ts b/src/features/DevDock/actions.ts
index eea1752c1d7..01cbb323627 100644
--- a/src/features/DevDock/actions.ts
+++ b/src/features/DevDock/actions.ts
@@ -1,4 +1,4 @@
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { isDesktop } from '@/const/version';
import { getUserStoreState } from '@/store/user';
diff --git a/src/features/DevDock/panelStyles.ts b/src/features/DevDock/panelStyles.ts
index 58557223ef9..83c99c0ed2f 100644
--- a/src/features/DevDock/panelStyles.ts
+++ b/src/features/DevDock/panelStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const devDockPanelStyles = createStaticStyles(({ css }) => ({
flatSection: css`
diff --git a/src/features/DevDock/pinnedItems.tsx b/src/features/DevDock/pinnedItems.tsx
index 4dec3aa0480..0c0b5919539 100644
--- a/src/features/DevDock/pinnedItems.tsx
+++ b/src/features/DevDock/pinnedItems.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type DropdownItem, DropdownMenu, Switch } from '@lobehub/ui/base-ui';
+import { type DropdownItem, DropdownMenu, Switch } from '@lobehub/ui';
import { Component, memo, type PropsWithChildren, Suspense, useSyncExternalStore } from 'react';
import {
diff --git a/src/features/DevDock/widgets/BarButton.tsx b/src/features/DevDock/widgets/BarButton.tsx
index 32e7729bb7c..1f83f2677e7 100644
--- a/src/features/DevDock/widgets/BarButton.tsx
+++ b/src/features/DevDock/widgets/BarButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/DevDock/widgets/ClsWidget.tsx b/src/features/DevDock/widgets/ClsWidget.tsx
index b3a5e2ed76b..367ed0e835f 100644
--- a/src/features/DevDock/widgets/ClsWidget.tsx
+++ b/src/features/DevDock/widgets/ClsWidget.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
import { type LayoutShiftEntry, sumLayoutShifts } from './metricUtils';
diff --git a/src/features/DevDock/widgets/CpuPressureWidget.tsx b/src/features/DevDock/widgets/CpuPressureWidget.tsx
index e488f2342c9..27ccfbb8834 100644
--- a/src/features/DevDock/widgets/CpuPressureWidget.tsx
+++ b/src/features/DevDock/widgets/CpuPressureWidget.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
type PressureState = 'critical' | 'fair' | 'nominal' | 'serious';
diff --git a/src/features/DevDock/widgets/CpuUsageWidget.tsx b/src/features/DevDock/widgets/CpuUsageWidget.tsx
index c1a4ded2cd5..c7838c07e27 100644
--- a/src/features/DevDock/widgets/CpuUsageWidget.tsx
+++ b/src/features/DevDock/widgets/CpuUsageWidget.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useAppProcessMetrics } from './appProcessMetrics';
diff --git a/src/features/DevDock/widgets/FpsWidget.tsx b/src/features/DevDock/widgets/FpsWidget.tsx
index 2b0c54689a8..ae4161afe7b 100644
--- a/src/features/DevDock/widgets/FpsWidget.tsx
+++ b/src/features/DevDock/widgets/FpsWidget.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/DevDock/widgets/GpuProcessWidget.tsx b/src/features/DevDock/widgets/GpuProcessWidget.tsx
index c979b8fb67c..3b2fcf4a6a1 100644
--- a/src/features/DevDock/widgets/GpuProcessWidget.tsx
+++ b/src/features/DevDock/widgets/GpuProcessWidget.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useAppProcessMetrics } from './appProcessMetrics';
diff --git a/src/features/DevDock/widgets/MemoryPopover/DumpTree.tsx b/src/features/DevDock/widgets/MemoryPopover/DumpTree.tsx
index 8339e260b84..6c178420013 100644
--- a/src/features/DevDock/widgets/MemoryPopover/DumpTree.tsx
+++ b/src/features/DevDock/widgets/MemoryPopover/DumpTree.tsx
@@ -1,7 +1,7 @@
'use client';
import type { MemoryDumpNode, MemoryDumpProcess } from '@lobechat/electron-client-ipc';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { ChevronDown, ChevronRight } from 'lucide-react';
import { Fragment, memo, useState } from 'react';
diff --git a/src/features/DevDock/widgets/MemoryPopover/HistoryChart.tsx b/src/features/DevDock/widgets/MemoryPopover/HistoryChart.tsx
index 719988b4c97..ce6efbbc502 100644
--- a/src/features/DevDock/widgets/MemoryPopover/HistoryChart.tsx
+++ b/src/features/DevDock/widgets/MemoryPopover/HistoryChart.tsx
@@ -1,6 +1,6 @@
'use client';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { formatCompactSize } from '../memoryFormat';
diff --git a/src/features/DevDock/widgets/MemoryPopover/index.tsx b/src/features/DevDock/widgets/MemoryPopover/index.tsx
index 180a3627ba5..0b7f3929101 100644
--- a/src/features/DevDock/widgets/MemoryPopover/index.tsx
+++ b/src/features/DevDock/widgets/MemoryPopover/index.tsx
@@ -1,9 +1,7 @@
'use client';
import type { MemoryDump } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Button, cx, Flexbox } from '@lobehub/ui';
import { Fragment, memo, useState } from 'react';
import { isDesktop } from '@/const/version';
diff --git a/src/features/DevDock/widgets/MemoryPopover/styles.ts b/src/features/DevDock/widgets/MemoryPopover/styles.ts
index 21f393a932e..210c1afadf3 100644
--- a/src/features/DevDock/widgets/MemoryPopover/styles.ts
+++ b/src/features/DevDock/widgets/MemoryPopover/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
bar: css`
diff --git a/src/features/DevDock/widgets/MemoryWidget.tsx b/src/features/DevDock/widgets/MemoryWidget.tsx
index 7cec5c5a201..60e40dafc65 100644
--- a/src/features/DevDock/widgets/MemoryWidget.tsx
+++ b/src/features/DevDock/widgets/MemoryWidget.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Popover } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Popover } from '@lobehub/ui';
import { memo, useState } from 'react';
import { DOCK_Z_INDEX } from '../const';
diff --git a/src/features/DevDock/widgets/RoutePathWidget.tsx b/src/features/DevDock/widgets/RoutePathWidget.tsx
index 3ff796034f9..342f06f5237 100644
--- a/src/features/DevDock/widgets/RoutePathWidget.tsx
+++ b/src/features/DevDock/widgets/RoutePathWidget.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/features/DevFeatureFlagPanel/Badge.tsx b/src/features/DevFeatureFlagPanel/Badge.tsx
index 38b731f56fb..d4d4c092a78 100644
--- a/src/features/DevFeatureFlagPanel/Badge.tsx
+++ b/src/features/DevFeatureFlagPanel/Badge.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useServerConfigStore } from '@/store/serverConfig';
diff --git a/src/features/DevFeatureFlagPanel/FlagRow.tsx b/src/features/DevFeatureFlagPanel/FlagRow.tsx
index 55c6ae2776d..ca6940ee526 100644
--- a/src/features/DevFeatureFlagPanel/FlagRow.tsx
+++ b/src/features/DevFeatureFlagPanel/FlagRow.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Segmented, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Segmented, Text } from '@lobehub/ui';
import { snakeCase } from 'es-toolkit/compat';
import { memo, useMemo } from 'react';
diff --git a/src/features/DevFeatureFlagPanel/Panel.tsx b/src/features/DevFeatureFlagPanel/Panel.tsx
index 4878f5e4de9..45b9d8ff25a 100644
--- a/src/features/DevFeatureFlagPanel/Panel.tsx
+++ b/src/features/DevFeatureFlagPanel/Panel.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, Switch, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Input, Switch, Text } from '@lobehub/ui';
import { snakeCase } from 'es-toolkit/compat';
import { ListRestartIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/DevPanel/GpuStatus/index.tsx b/src/features/DevPanel/GpuStatus/index.tsx
index 5245225b20b..a0ab4ffd4d5 100644
--- a/src/features/DevPanel/GpuStatus/index.tsx
+++ b/src/features/DevPanel/GpuStatus/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { GpuStatus } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { Fragment, memo, useEffect, useState } from 'react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/LocalDatabase/CollectionList.tsx b/src/features/DevPanel/LocalDatabase/CollectionList.tsx
index 7331fbda1f4..e0b52fbfb2b 100644
--- a/src/features/DevPanel/LocalDatabase/CollectionList.tsx
+++ b/src/features/DevPanel/LocalDatabase/CollectionList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Input } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Input } from '@lobehub/ui';
import { Boxes, Table2 } from 'lucide-react';
import { useState } from 'react';
diff --git a/src/features/DevPanel/LocalDatabase/RecordDetails.tsx b/src/features/DevPanel/LocalDatabase/RecordDetails.tsx
index 3deadb0d7ce..2a1fc83d225 100644
--- a/src/features/DevPanel/LocalDatabase/RecordDetails.tsx
+++ b/src/features/DevPanel/LocalDatabase/RecordDetails.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Input } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Input } from '@lobehub/ui';
import { useState } from 'react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/LocalDatabase/RecordTable.tsx b/src/features/DevPanel/LocalDatabase/RecordTable.tsx
index f248a919dcb..533946178f2 100644
--- a/src/features/DevPanel/LocalDatabase/RecordTable.tsx
+++ b/src/features/DevPanel/LocalDatabase/RecordTable.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, Input } from '@lobehub/ui/base-ui';
+import { Button, Input } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/LocalDatabase/index.tsx b/src/features/DevPanel/LocalDatabase/index.tsx
index 82c93c766e8..ed02320887c 100644
--- a/src/features/DevPanel/LocalDatabase/index.tsx
+++ b/src/features/DevPanel/LocalDatabase/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, Spin } from '@lobehub/ui/base-ui';
+import { Button, Spin } from '@lobehub/ui';
import { useMemo, useState } from 'react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/RenderGallery/ApiList.tsx b/src/features/DevPanel/RenderGallery/ApiList.tsx
index dedd853e29c..dc6cdbdfd6d 100644
--- a/src/features/DevPanel/RenderGallery/ApiList.tsx
+++ b/src/features/DevPanel/RenderGallery/ApiList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Text } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/RenderGallery/MessageList.tsx b/src/features/DevPanel/RenderGallery/MessageList.tsx
index 6ef193488ba..bd64f0b6d37 100644
--- a/src/features/DevPanel/RenderGallery/MessageList.tsx
+++ b/src/features/DevPanel/RenderGallery/MessageList.tsx
@@ -2,8 +2,7 @@
import { LOADING_FLAT } from '@lobechat/const';
import type { ChatToolPayload, UIChatMessage } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import {
diff --git a/src/features/DevPanel/RenderGallery/Sidebar.tsx b/src/features/DevPanel/RenderGallery/Sidebar.tsx
index 9064c86b5bc..874385d1316 100644
--- a/src/features/DevPanel/RenderGallery/Sidebar.tsx
+++ b/src/features/DevPanel/RenderGallery/Sidebar.tsx
@@ -1,8 +1,7 @@
'use client';
-import { type MenuProps } from '@lobehub/ui';
-import { List, type ListItem, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { type DropdownItem, List, type ListItem, Text } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
@@ -29,7 +28,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
}));
interface SidebarProps {
- items: MenuProps['items'];
+ items: DropdownItem[];
onSelect: (key: string) => void;
selectedKey?: string;
}
diff --git a/src/features/DevPanel/RenderGallery/ToolPage.tsx b/src/features/DevPanel/RenderGallery/ToolPage.tsx
index b04d178d260..62e42805936 100644
--- a/src/features/DevPanel/RenderGallery/ToolPage.tsx
+++ b/src/features/DevPanel/RenderGallery/ToolPage.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tabs, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Tabs, Tag, Text } from '@lobehub/ui';
import { useEffect, useRef, useState } from 'react';
import ApiList from './ApiList';
diff --git a/src/features/DevPanel/RenderGallery/ToolPreview.tsx b/src/features/DevPanel/RenderGallery/ToolPreview.tsx
index ea377ca1187..948fa3d6de2 100644
--- a/src/features/DevPanel/RenderGallery/ToolPreview.tsx
+++ b/src/features/DevPanel/RenderGallery/ToolPreview.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tabs, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Tabs, Tag, Text } from '@lobehub/ui';
import { useMemo, useState } from 'react';
import {
diff --git a/src/features/DevPanel/RenderGallery/index.tsx b/src/features/DevPanel/RenderGallery/index.tsx
index afeff63fa16..f32c4ef2e52 100644
--- a/src/features/DevPanel/RenderGallery/index.tsx
+++ b/src/features/DevPanel/RenderGallery/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { useEffect, useState } from 'react';
import { useAgentStore } from '@/store/agent';
diff --git a/src/features/DevPanel/RenderGallery/toolSurfaces.tsx b/src/features/DevPanel/RenderGallery/toolSurfaces.tsx
index 0287c69540d..f13801b13a2 100644
--- a/src/features/DevPanel/RenderGallery/toolSurfaces.tsx
+++ b/src/features/DevPanel/RenderGallery/toolSurfaces.tsx
@@ -1,9 +1,7 @@
'use client';
import type { UIChatMessage } from '@lobechat/types';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { Component, memo, type ReactNode, useMemo } from 'react';
import { type ConversationContext, ConversationProvider } from '@/features/Conversation';
diff --git a/src/features/DevPanel/RenderGallery/useDevtoolsEntries.ts b/src/features/DevPanel/RenderGallery/useDevtoolsEntries.ts
index 02c6f72e1bd..6730be0b866 100644
--- a/src/features/DevPanel/RenderGallery/useDevtoolsEntries.ts
+++ b/src/features/DevPanel/RenderGallery/useDevtoolsEntries.ts
@@ -12,7 +12,7 @@ import type {
BuiltinRender,
BuiltinStreaming,
} from '@lobechat/types';
-import type { MenuProps } from '@lobehub/ui';
+import type { DropdownItem } from '@lobehub/ui';
import { useMemo } from 'react';
import { getToolRenderFixture, getToolRenderMeta, type ToolRenderFixture } from './fixtures';
@@ -38,7 +38,7 @@ export interface ToolsetEntry {
export interface DevtoolsEntries {
defaultToolset?: ToolsetEntry;
- menuItems: MenuProps['items'];
+ menuItems: DropdownItem[];
toolsetMap: Map<string, ToolsetEntry>;
}
@@ -155,7 +155,7 @@ export const useDevtoolsEntries = (): DevtoolsEntries =>
left.toolsetName.localeCompare(right.toolsetName),
);
- const menuItems: MenuProps['items'] = toolsets.map((toolset) => ({
+ const menuItems: DropdownItem[] = toolsets.map((toolset) => ({
key: toolset.identifier,
label: toolset.toolsetName,
}));
diff --git a/src/features/DevPanel/Replica/EntryDetails.tsx b/src/features/DevPanel/Replica/EntryDetails.tsx
index 6d7cd615ed6..ae29cd82021 100644
--- a/src/features/DevPanel/Replica/EntryDetails.tsx
+++ b/src/features/DevPanel/Replica/EntryDetails.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Button, Switch, TextArea } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Button, cx, Switch, TextArea } from '@lobehub/ui';
import { Pencil, RefreshCw, Trash2 } from 'lucide-react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/Replica/EntryTable.tsx b/src/features/DevPanel/Replica/EntryTable.tsx
index df8cecbdc3a..abccbe16596 100644
--- a/src/features/DevPanel/Replica/EntryTable.tsx
+++ b/src/features/DevPanel/Replica/EntryTable.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, Input } from '@lobehub/ui/base-ui';
+import { Button, Input } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/Replica/ResourceList.tsx b/src/features/DevPanel/Replica/ResourceList.tsx
index cfb6bbc8926..ac8c310a4d9 100644
--- a/src/features/DevPanel/Replica/ResourceList.tsx
+++ b/src/features/DevPanel/Replica/ResourceList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Input } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Input } from '@lobehub/ui';
import { Boxes } from 'lucide-react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/Replica/styles.ts b/src/features/DevPanel/Replica/styles.ts
index 71f5d566839..73a09664f3c 100644
--- a/src/features/DevPanel/Replica/styles.ts
+++ b/src/features/DevPanel/Replica/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const replicaStyles = createStaticStyles(({ css }) => ({
actions: css`
diff --git a/src/features/DevPanel/TabRouters/index.tsx b/src/features/DevPanel/TabRouters/index.tsx
index 1215dcf95bb..727c44f7c5e 100644
--- a/src/features/DevPanel/TabRouters/index.tsx
+++ b/src/features/DevPanel/TabRouters/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { devDockPanelStyles } from '@/features/DevDock/panelStyles';
diff --git a/src/features/DevPanel/inspectorStyles.ts b/src/features/DevPanel/inspectorStyles.ts
index 3cfadfd9ac8..0ba09cc2a64 100644
--- a/src/features/DevPanel/inspectorStyles.ts
+++ b/src/features/DevPanel/inspectorStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const inspectorStyles = createStaticStyles(({ css }) => ({
listCount: css`
diff --git a/src/features/DeviceManager/AgentRuntimes/index.tsx b/src/features/DeviceManager/AgentRuntimes/index.tsx
index e542fb61a51..e3d7706208f 100644
--- a/src/features/DeviceManager/AgentRuntimes/index.tsx
+++ b/src/features/DeviceManager/AgentRuntimes/index.tsx
@@ -1,9 +1,7 @@
'use client';
import type { DeviceListItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { CONNECTABLE_PROVIDERS } from '@/features/ConnectAgent/providers';
diff --git a/src/features/DeviceManager/AppUpdate/index.tsx b/src/features/DeviceManager/AppUpdate/index.tsx
index f071863b04a..f09cdc8db5a 100644
--- a/src/features/DeviceManager/AppUpdate/index.tsx
+++ b/src/features/DeviceManager/AppUpdate/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, confirmModal, Text } from '@lobehub/ui/base-ui';
+import { Button, confirmModal, Text } from '@lobehub/ui';
import type { CSSProperties, ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/AppUpdate/useDeviceAppUpdate.ts b/src/features/DeviceManager/AppUpdate/useDeviceAppUpdate.ts
index 705072a74bb..fbfca637f7b 100644
--- a/src/features/DeviceManager/AppUpdate/useDeviceAppUpdate.ts
+++ b/src/features/DeviceManager/AppUpdate/useDeviceAppUpdate.ts
@@ -1,5 +1,5 @@
import type { DeviceAppUpdateStateResult } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useEffect, useState } from 'react';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
diff --git a/src/features/DeviceManager/CliUpdate/index.tsx b/src/features/DeviceManager/CliUpdate/index.tsx
index d23a6c6ef3e..53d60d896bd 100644
--- a/src/features/DeviceManager/CliUpdate/index.tsx
+++ b/src/features/DeviceManager/CliUpdate/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, Popover, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, confirmModal, Flexbox, Popover, Text } from '@lobehub/ui';
import { DownloadIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/Connections.tsx b/src/features/DeviceManager/Connections.tsx
index bcebee719ca..6fb8c54307d 100644
--- a/src/features/DeviceManager/Connections.tsx
+++ b/src/features/DeviceManager/Connections.tsx
@@ -1,8 +1,7 @@
'use client';
import type { DeviceListItem } from '@lobechat/types';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import type { ReactNode } from 'react';
import { useRef } from 'react';
diff --git a/src/features/DeviceManager/DeviceActivity/RunningUsers.tsx b/src/features/DeviceManager/DeviceActivity/RunningUsers.tsx
index 5941fa0662f..f38f3d6df70 100644
--- a/src/features/DeviceManager/DeviceActivity/RunningUsers.tsx
+++ b/src/features/DeviceManager/DeviceActivity/RunningUsers.tsx
@@ -2,9 +2,7 @@
import { DEFAULT_USER_AVATAR_URL } from '@lobechat/const';
import type { DeviceEnroller } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { TriangleAlertIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/DeviceActivity/index.tsx b/src/features/DeviceManager/DeviceActivity/index.tsx
index ee8b61b426d..4d4cfadf15e 100644
--- a/src/features/DeviceManager/DeviceActivity/index.tsx
+++ b/src/features/DeviceManager/DeviceActivity/index.tsx
@@ -2,9 +2,16 @@
import { AGENT_CHAT_URL } from '@lobechat/const';
import { agentDisplayName, type DeviceBoundAgentItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { ArrowUpRightIcon, LockIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/DeviceCard.tsx b/src/features/DeviceManager/DeviceCard.tsx
index 2ff77d2d71a..e3063aec81d 100644
--- a/src/features/DeviceManager/DeviceCard.tsx
+++ b/src/features/DeviceManager/DeviceCard.tsx
@@ -1,10 +1,20 @@
'use client';
import type { DeviceListItem } from '@lobechat/types';
-import { DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, confirmModal, Tag, Text } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Avatar,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { useInViewport } from 'ahooks';
-import { createStaticStyles, cssVar } from 'antd-style';
import {
EyeOffIcon,
GlobeIcon,
diff --git a/src/features/DeviceManager/DeviceConnectModal.tsx b/src/features/DeviceManager/DeviceConnectModal.tsx
index e231226dba8..cdd0b209d4f 100644
--- a/src/features/DeviceManager/DeviceConnectModal.tsx
+++ b/src/features/DeviceManager/DeviceConnectModal.tsx
@@ -2,9 +2,7 @@
import { DOWNLOAD_URL } from '@lobechat/const';
import type { DeviceScope, DeviceVisibility } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Tabs, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Tabs, Text } from '@lobehub/ui';
import { DownloadIcon, MonitorDownIcon, ShieldCheckIcon, TerminalIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/DeviceDetail.tsx b/src/features/DeviceManager/DeviceDetail.tsx
index 7d2780a64bb..248e6547648 100644
--- a/src/features/DeviceManager/DeviceDetail.tsx
+++ b/src/features/DeviceManager/DeviceDetail.tsx
@@ -2,9 +2,21 @@
import { isDesktop } from '@lobechat/const';
import type { DeviceListItem } from '@lobechat/types';
-import { CopyButton, Flexbox, Icon, SortableList } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Tabs, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ CopyButton,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ SortableList,
+ Tabs,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import {
ArrowLeftIcon,
BotIcon,
diff --git a/src/features/DeviceManager/DeviceDetailPage.tsx b/src/features/DeviceManager/DeviceDetailPage.tsx
index df582ace501..61a07a132c2 100644
--- a/src/features/DeviceManager/DeviceDetailPage.tsx
+++ b/src/features/DeviceManager/DeviceDetailPage.tsx
@@ -2,8 +2,7 @@
import { isDesktop } from '@lobechat/const';
import type { DeviceListItem, DeviceScope } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Icon, Skeleton, Text } from '@lobehub/ui';
import { ArrowLeftIcon, MonitorXIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/DeviceGrid.tsx b/src/features/DeviceManager/DeviceGrid.tsx
index f20d13d23b9..b65a4976928 100644
--- a/src/features/DeviceManager/DeviceGrid.tsx
+++ b/src/features/DeviceManager/DeviceGrid.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import type { ReactNode } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/DeviceManager/DeviceHealth/UsageMeter.tsx b/src/features/DeviceManager/DeviceHealth/UsageMeter.tsx
index 3202a5b74ae..f92349015c9 100644
--- a/src/features/DeviceManager/DeviceHealth/UsageMeter.tsx
+++ b/src/features/DeviceManager/DeviceHealth/UsageMeter.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { useSize } from 'ahooks';
-import { createStaticStyles, cssVar } from 'antd-style';
import { type ReactNode, useRef } from 'react';
import SkeletonBar from '@/components/Skeleton/Bar';
diff --git a/src/features/DeviceManager/DeviceHealth/index.tsx b/src/features/DeviceManager/DeviceHealth/index.tsx
index e7d38bab22a..312f939e73d 100644
--- a/src/features/DeviceManager/DeviceHealth/index.tsx
+++ b/src/features/DeviceManager/DeviceHealth/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { AreaChart, Tracker } from '@lobehub/charts';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { formatSize } from '@/utils/format';
diff --git a/src/features/DeviceManager/DeviceHealth/shared.tsx b/src/features/DeviceManager/DeviceHealth/shared.tsx
index 2717b791d34..9fb16c9ea05 100644
--- a/src/features/DeviceManager/DeviceHealth/shared.tsx
+++ b/src/features/DeviceManager/DeviceHealth/shared.tsx
@@ -1,7 +1,5 @@
import type { DeviceMetricSeries } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DeviceManager/DeviceHoverPanel.tsx b/src/features/DeviceManager/DeviceHoverPanel.tsx
index 1f8f2b31c01..d0969f1965b 100644
--- a/src/features/DeviceManager/DeviceHoverPanel.tsx
+++ b/src/features/DeviceManager/DeviceHoverPanel.tsx
@@ -1,9 +1,7 @@
'use client';
import type { DeviceListItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import {
CableIcon,
diff --git a/src/features/DeviceManager/DeviceManager.tsx b/src/features/DeviceManager/DeviceManager.tsx
index 2420c6ab7d5..cb6cb0e9df3 100644
--- a/src/features/DeviceManager/DeviceManager.tsx
+++ b/src/features/DeviceManager/DeviceManager.tsx
@@ -2,9 +2,7 @@
import { isDesktop } from '@lobechat/const';
import type { DeviceScope, DeviceVisibility } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import {
ChevronRightIcon,
FolderCogIcon,
diff --git a/src/features/DeviceManager/DeviceOverview.tsx b/src/features/DeviceManager/DeviceOverview.tsx
index 76ef97aee6b..2459ff840aa 100644
--- a/src/features/DeviceManager/DeviceOverview.tsx
+++ b/src/features/DeviceManager/DeviceOverview.tsx
@@ -1,9 +1,18 @@
'use client';
import type { DeviceListItem, DeviceWorkspaceShare } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar, confirmModal, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
ActivityIcon,
diff --git a/src/features/DeviceManager/FieldLabel.tsx b/src/features/DeviceManager/FieldLabel.tsx
index 21647f6e114..abd7f8f081b 100644
--- a/src/features/DeviceManager/FieldLabel.tsx
+++ b/src/features/DeviceManager/FieldLabel.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
/** Section label — one consistent treatment for every field heading in the detail panel. */
diff --git a/src/features/DeviceManager/PresenceDot.tsx b/src/features/DeviceManager/PresenceDot.tsx
index 70be7fb1681..7083acd9992 100644
--- a/src/features/DeviceManager/PresenceDot.tsx
+++ b/src/features/DeviceManager/PresenceDot.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
const styles = createStaticStyles(({ css }) => ({
dot: css`
diff --git a/src/features/DeviceManager/ShareDeviceModal.tsx b/src/features/DeviceManager/ShareDeviceModal.tsx
index be942c83bca..fa1640d2ed3 100644
--- a/src/features/DeviceManager/ShareDeviceModal.tsx
+++ b/src/features/DeviceManager/ShareDeviceModal.tsx
@@ -1,18 +1,20 @@
'use client';
import type { DeviceListItem, DeviceVisibility } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
Button,
confirmModal,
createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
Select,
Tag,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { CircleCheck, Lock, Users } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/DeviceManager/Skeleton.tsx b/src/features/DeviceManager/Skeleton.tsx
index e0d4f9b7e5e..d31bae87c5d 100644
--- a/src/features/DeviceManager/Skeleton.tsx
+++ b/src/features/DeviceManager/Skeleton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import SkeletonBar from '@/components/Skeleton/Bar';
diff --git a/src/features/DeviceManager/useDeviceCardMutations.test.ts b/src/features/DeviceManager/useDeviceCardMutations.test.ts
index 01a32185636..0fd8d26f9ce 100644
--- a/src/features/DeviceManager/useDeviceCardMutations.test.ts
+++ b/src/features/DeviceManager/useDeviceCardMutations.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { renderHook } from '@testing-library/react';
import { afterEach, describe, expect, it, vi } from 'vitest';
@@ -22,7 +22,7 @@ vi.mock('@/libs/trpc/client', () => ({
},
},
}));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { error: vi.fn() } }));
+vi.mock('@lobehub/ui', () => ({ toast: { error: vi.fn() } }));
vi.mock('i18next', () => ({
t: (key: string, options?: { ns?: string }) => `${options?.ns}:${key}`,
}));
diff --git a/src/features/DeviceManager/useDeviceCardMutations.ts b/src/features/DeviceManager/useDeviceCardMutations.ts
index 5bd2daef4f1..71311cbf2d9 100644
--- a/src/features/DeviceManager/useDeviceCardMutations.ts
+++ b/src/features/DeviceManager/useDeviceCardMutations.ts
@@ -1,5 +1,5 @@
import type { DeviceListItem } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { lambdaQuery } from '@/libs/trpc/client';
diff --git a/src/features/DocumentModal/Header.tsx b/src/features/DocumentModal/Header.tsx
index d0c82ade60d..a8c6ac48b6e 100644
--- a/src/features/DocumentModal/Header.tsx
+++ b/src/features/DocumentModal/Header.tsx
@@ -1,16 +1,18 @@
'use client';
-import { copyToClipboard, Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Avatar,
+ copyToClipboard,
+ createStaticStyles,
+ cssVar,
DropdownMenu,
+ Flexbox,
Skeleton,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { MoreHorizontal, XIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/DocumentModal/index.tsx b/src/features/DocumentModal/index.tsx
index 0b13aeca3d3..d0133800882 100644
--- a/src/features/DocumentModal/index.tsx
+++ b/src/features/DocumentModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { memo } from 'react';
import { PageAgentPanelOverrideProvider } from '@/features/PageEditor/RightPanel/OverrideContext';
diff --git a/src/features/EditLock/EditingIndicator.tsx b/src/features/EditLock/EditingIndicator.tsx
index 302748e8b63..58ac7a37041 100644
--- a/src/features/EditLock/EditingIndicator.tsx
+++ b/src/features/EditLock/EditingIndicator.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Spin, Text, Tooltip } from '@lobehub/ui';
import { PencilIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EditingPopover/GroupContent.tsx b/src/features/EditingPopover/GroupContent.tsx
index 6e3f45ad8c2..2a1671b6412 100644
--- a/src/features/EditingPopover/GroupContent.tsx
+++ b/src/features/EditingPopover/GroupContent.tsx
@@ -1,5 +1,14 @@
-import { Block, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, Input, toast } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Avatar,
+ Block,
+ Flexbox,
+ Icon,
+ Input,
+ stopPropagation,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { Check, PaletteIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EditorCanvas/DiffAllToolbar.tsx b/src/features/EditorCanvas/DiffAllToolbar.tsx
index 309d3b0ad6c..b1311426b0a 100644
--- a/src/features/EditorCanvas/DiffAllToolbar.tsx
+++ b/src/features/EditorCanvas/DiffAllToolbar.tsx
@@ -2,9 +2,7 @@
import type { IEditor } from '@lobehub/editor';
import { DiffAction, LITEXML_DIFFNODE_ALL_COMMAND } from '@lobehub/editor';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Block, Button, createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import { Check, X } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EditorCanvas/InlineToolbar.tsx b/src/features/EditorCanvas/InlineToolbar.tsx
index 6d5c92dc517..c79fd10f8fb 100644
--- a/src/features/EditorCanvas/InlineToolbar.tsx
+++ b/src/features/EditorCanvas/InlineToolbar.tsx
@@ -4,8 +4,7 @@ import { type IEditor } from '@lobehub/editor';
import { getHotkeyById, HotkeyEnum, INSERT_HEADING_COMMAND } from '@lobehub/editor';
import { type ChatInputActionsProps, type EditorState } from '@lobehub/editor/react';
import { ChatInputActions, FloatActions } from '@lobehub/editor/react';
-import { Block } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar } from '@lobehub/ui';
import {
BoldIcon,
CodeXmlIcon,
diff --git a/src/features/EditorCanvas/InternalEditor.readonly.test.tsx b/src/features/EditorCanvas/InternalEditor.readonly.test.tsx
index 8d95ace0dd5..592903bfcb4 100644
--- a/src/features/EditorCanvas/InternalEditor.readonly.test.tsx
+++ b/src/features/EditorCanvas/InternalEditor.readonly.test.tsx
@@ -10,7 +10,8 @@ import { createEditorFileUploadTracker } from './editorFileUploadTracker';
import InternalEditor from './InternalEditor';
import { LinearFileCard } from './LinearFilePlugin';
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
ActionIcon: ({ onClick, title }: { onClick?: () => void; title?: string }) => (
<button aria-label={title} type="button" onClick={onClick} />
),
diff --git a/src/features/EditorCanvas/InternalEditor.tsx b/src/features/EditorCanvas/InternalEditor.tsx
index f4b6da83778..08644bdaca8 100644
--- a/src/features/EditorCanvas/InternalEditor.tsx
+++ b/src/features/EditorCanvas/InternalEditor.tsx
@@ -12,7 +12,7 @@ import {
ReactToolbarPlugin,
} from '@lobehub/editor';
import { Editor, useEditorState } from '@lobehub/editor/react';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import type { CSSProperties, RefObject } from 'react';
import { memo, useCallback, useEffect, useMemo, useRef } from 'react';
diff --git a/src/features/EditorCanvas/LinearFilePlugin.tsx b/src/features/EditorCanvas/LinearFilePlugin.tsx
index 4fd71ceb610..241f912ff58 100644
--- a/src/features/EditorCanvas/LinearFilePlugin.tsx
+++ b/src/features/EditorCanvas/LinearFilePlugin.tsx
@@ -1,8 +1,7 @@
'use client';
import { FilePlugin, UploadPlugin, useLexicalComposerContext } from '@lobehub/editor';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles } from '@lobehub/ui';
import { DownloadIcon } from 'lucide-react';
import {
type FC,
diff --git a/src/features/EditorCanvas/TypoBar.tsx b/src/features/EditorCanvas/TypoBar.tsx
index c19b1db05fd..4d7a1edfd81 100644
--- a/src/features/EditorCanvas/TypoBar.tsx
+++ b/src/features/EditorCanvas/TypoBar.tsx
@@ -2,7 +2,7 @@ import type { IEditor } from '@lobehub/editor';
import { getHotkeyById, HotkeyEnum } from '@lobehub/editor';
import type { ChatInputActionsProps } from '@lobehub/editor/react';
import { ChatInputActionBar, ChatInputActions, useEditorState } from '@lobehub/editor/react';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import {
BoldIcon,
CodeXmlIcon,
diff --git a/src/features/EditorCanvas/UnsavedChangesGuard.test.tsx b/src/features/EditorCanvas/UnsavedChangesGuard.test.tsx
index 313de5fe6a9..e31a0279668 100644
--- a/src/features/EditorCanvas/UnsavedChangesGuard.test.tsx
+++ b/src/features/EditorCanvas/UnsavedChangesGuard.test.tsx
@@ -11,7 +11,7 @@ const messageLoadingMock = vi.hoisted(() => vi.fn());
const messageDestroyMock = vi.hoisted(() => vi.fn());
const messageErrorMock = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: messageErrorMock, loading: messageLoadingMock },
}));
diff --git a/src/features/EditorCanvas/UnsavedChangesGuard.tsx b/src/features/EditorCanvas/UnsavedChangesGuard.tsx
index 851265ab585..74692868f26 100644
--- a/src/features/EditorCanvas/UnsavedChangesGuard.tsx
+++ b/src/features/EditorCanvas/UnsavedChangesGuard.tsx
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { useBlocker } from 'react-router';
diff --git a/src/features/EditorCanvas/rehostImage.test.ts b/src/features/EditorCanvas/rehostImage.test.ts
index 8782b06b83f..9e72dae0278 100644
--- a/src/features/EditorCanvas/rehostImage.test.ts
+++ b/src/features/EditorCanvas/rehostImage.test.ts
@@ -1,5 +1,5 @@
// @vitest-environment happy-dom
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { fileService } from '@/services/file';
@@ -8,7 +8,7 @@ import { getFileIdForUrl, registerAttachment } from './attachmentRegistry';
import { needsImageRehost, rehostImage } from './rehostImage';
vi.mock('@/services/file', () => ({ fileService: { rehostImage: vi.fn() } }));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { error: vi.fn() } }));
+vi.mock('@lobehub/ui', () => ({ toast: { error: vi.fn() } }));
vi.mock('i18next', () => ({ t: (key: string) => key }));
const setWindowUrl = (url: string) => {
diff --git a/src/features/EditorCanvas/rehostImage.ts b/src/features/EditorCanvas/rehostImage.ts
index cda5419bf9a..c1bf692a31c 100644
--- a/src/features/EditorCanvas/rehostImage.ts
+++ b/src/features/EditorCanvas/rehostImage.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { fileService } from '@/services/file';
diff --git a/src/features/EditorModal/index.test.ts b/src/features/EditorModal/index.test.ts
index 8d6eef27478..6936e6beb87 100644
--- a/src/features/EditorModal/index.test.ts
+++ b/src/features/EditorModal/index.test.ts
@@ -1,9 +1,9 @@
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { openEditorModal } from '.';
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/features/EditorModal/index.tsx b/src/features/EditorModal/index.tsx
index 68bb061a51d..4ab95d9b79b 100644
--- a/src/features/EditorModal/index.tsx
+++ b/src/features/EditorModal/index.tsx
@@ -1,4 +1,4 @@
-import { Button, createModal, ModalFooter, Text, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, createModal, ModalFooter, Text, useModalContext } from '@lobehub/ui';
import { lazy, memo, type ReactNode, Suspense, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/AuthRequiredModal/index.test.tsx b/src/features/Electron/AuthRequiredModal/index.test.tsx
index 1151711f5bb..144817c3ff3 100644
--- a/src/features/Electron/AuthRequiredModal/index.test.tsx
+++ b/src/features/Electron/AuthRequiredModal/index.test.tsx
@@ -42,7 +42,7 @@ vi.mock('@lobechat/electron-client-ipc', () => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
createModal: (props: ModalProps) => {
createModalMock(props);
diff --git a/src/features/Electron/AuthRequiredModal/index.tsx b/src/features/Electron/AuthRequiredModal/index.tsx
index ef996e31610..4eaf9e9aad2 100644
--- a/src/features/Electron/AuthRequiredModal/index.tsx
+++ b/src/features/Electron/AuthRequiredModal/index.tsx
@@ -1,9 +1,8 @@
'use client';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Flexbox, Icon } from '@lobehub/ui';
-import type { ImperativeModalProps, ModalInstance } from '@lobehub/ui/base-ui';
-import { Button, createModal, ModalFooter } from '@lobehub/ui/base-ui';
+import type { ImperativeModalProps, ModalInstance } from '@lobehub/ui';
+import { Button, createModal, Flexbox, Icon, ModalFooter } from '@lobehub/ui';
import debug from 'debug';
import { AlertCircle, LogIn } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/Electron/HeterogeneousAgent/RestartRecovery/index.tsx b/src/features/Electron/HeterogeneousAgent/RestartRecovery/index.tsx
index d90087ac6ae..6c473db7510 100644
--- a/src/features/Electron/HeterogeneousAgent/RestartRecovery/index.tsx
+++ b/src/features/Electron/HeterogeneousAgent/RestartRecovery/index.tsx
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx
index c43a002278d..3870f678d4d 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx
@@ -1,6 +1,5 @@
import { isDesktop } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { ExternalLink, RotateCcw, Settings2 } from 'lucide-react';
import { electronSystemService } from '@/services/electron/system';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideShell.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideShell.tsx
index bc61688a344..36839d086b8 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideShell.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideShell.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Avatar, Block, cssVar, Flexbox, Text, Tooltip } from '@lobehub/ui';
import { X } from 'lucide-react';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/AuthRequiredState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/AuthRequiredState.tsx
index d5e7c496f60..f4a051b1e14 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/AuthRequiredState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/AuthRequiredState.tsx
@@ -1,6 +1,5 @@
import { isDesktop } from '@lobechat/const';
-import { Flexbox, Highlighter, Snippet } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Highlighter, Snippet, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import GuideActions from '../GuideActions';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliDetectionTimeoutState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliDetectionTimeoutState.tsx
index 2956d494889..ca8d789df3b 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliDetectionTimeoutState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliDetectionTimeoutState.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Highlighter, Text } from '@lobehub/ui';
import { ClockAlert } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliInstallState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliInstallState.tsx
index 0df0a62ec82..f387e09c563 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliInstallState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/CliInstallState.tsx
@@ -1,6 +1,5 @@
import { HeterogeneousAgentSessionErrorCode } from '@lobechat/electron-client-ipc';
-import { Flexbox, Snippet } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Snippet, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import GuideActions from '../GuideActions';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/OverloadedState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/OverloadedState.tsx
index b373b50b7fd..5fc025768d8 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/OverloadedState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/OverloadedState.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Button, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Highlighter, Spin, Text } from '@lobehub/ui';
import { Ban, RotateCcw } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx
index 269d1c508b9..ad8c13f0280 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx
@@ -1,6 +1,5 @@
import { readHeterogeneousErrorContext } from '@lobechat/heterogeneous-agents/errors';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { CalendarClock, Forward, Play, RotateCcw } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/WorkingDirectoryState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/WorkingDirectoryState.tsx
index 2e2c589d1cd..fb8b1760be4 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/WorkingDirectoryState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/WorkingDirectoryState.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { FolderX } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/ScreenCapture/OverlaySnapshotPublisher.tsx b/src/features/Electron/ScreenCapture/OverlaySnapshotPublisher.tsx
index 78e6f2470ba..2d54c953505 100644
--- a/src/features/Electron/ScreenCapture/OverlaySnapshotPublisher.tsx
+++ b/src/features/Electron/ScreenCapture/OverlaySnapshotPublisher.tsx
@@ -5,7 +5,7 @@ import type {
ScreenCaptureModelOption,
ScreenCaptureOverlayTheme,
} from '@lobechat/electron-client-ipc';
-import { useTheme } from 'antd-style';
+import { useTheme } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useEffect, useMemo, useRef } from 'react';
diff --git a/src/features/Electron/TabHost/TabHost.tsx b/src/features/Electron/TabHost/TabHost.tsx
index 95522edfbe0..291d047a1b7 100644
--- a/src/features/Electron/TabHost/TabHost.tsx
+++ b/src/features/Electron/TabHost/TabHost.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import {
Activity,
type CSSProperties,
diff --git a/src/features/Electron/connection/Connection.tsx b/src/features/Electron/connection/Connection.tsx
index 47bced2358f..65ad3386f7b 100644
--- a/src/features/Electron/connection/Connection.tsx
+++ b/src/features/Electron/connection/Connection.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Drawer } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Drawer, Flexbox } from '@lobehub/ui';
import { Suspense, useCallback } from 'react';
import { BrandTextLoading } from '@/components/Loading';
diff --git a/src/features/Electron/connection/DeviceGateway.tsx b/src/features/Electron/connection/DeviceGateway.tsx
index 04f5d2a3447..320d8a8da79 100644
--- a/src/features/Electron/connection/DeviceGateway.tsx
+++ b/src/features/Electron/connection/DeviceGateway.tsx
@@ -1,7 +1,5 @@
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Popover, Switch } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Popover, Switch } from '@lobehub/ui';
import { HardDrive, SettingsIcon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -69,11 +67,7 @@ const DeviceGateway = memo<DeviceGatewayProps>(({ workspaceScoped }) => {
useFetchGatewayStatus();
useElectronStore((s) => s.useFetchGatewayDeviceInfo)();
const gatewayDeviceInfo = useElectronStore((s) => s.gatewayDeviceInfo);
- const {
- data: devices,
- error: deviceListError,
- isLoading: isDeviceListLoading,
- } = useDeviceList();
+ const { data: devices, error: deviceListError, isLoading: isDeviceListLoading } = useDeviceList();
useWatchBroadcast('gatewayConnectionStatusChanged', ({ status }) => {
setGatewayConnectionStatus(status);
@@ -109,20 +103,19 @@ const DeviceGateway = memo<DeviceGatewayProps>(({ workspaceScoped }) => {
deviceListError,
);
const scopeConnected = workspaceScoped ? workspaceConnectionState === 'connected' : isConnected;
- const connectionHint =
- workspaceScoped
- ? workspaceConnectionState === 'unavailable'
- ? t('gateway.workspaceStatusUnavailable')
- : workspaceConnectionState === 'connecting'
- ? t('gateway.statusConnecting')
- : workspaceConnectionState === 'connected'
- ? t('gateway.workspaceStatusConnections', { count: connectionCount })
- : t('gateway.workspaceStatusDisconnected')
- : isConnecting
- ? t('gateway.statusConnecting')
- : isConnected && connectionCount
- ? t('gateway.statusConnectedConnections', { count: connectionCount })
- : t(isConnected ? 'gateway.statusConnected' : 'gateway.statusDisconnected');
+ const connectionHint = workspaceScoped
+ ? workspaceConnectionState === 'unavailable'
+ ? t('gateway.workspaceStatusUnavailable')
+ : workspaceConnectionState === 'connecting'
+ ? t('gateway.statusConnecting')
+ : workspaceConnectionState === 'connected'
+ ? t('gateway.workspaceStatusConnections', { count: connectionCount })
+ : t('gateway.workspaceStatusDisconnected')
+ : isConnecting
+ ? t('gateway.statusConnecting')
+ : isConnected && connectionCount
+ ? t('gateway.statusConnectedConnections', { count: connectionCount })
+ : t(isConnected ? 'gateway.statusConnected' : 'gateway.statusDisconnected');
const popoverContent = (
<Flexbox className={styles.popoverContent} gap={4}>
diff --git a/src/features/Electron/connection/RemoteStatus.tsx b/src/features/Electron/connection/RemoteStatus.tsx
index 72123adfc33..17491f1ec6f 100644
--- a/src/features/Electron/connection/RemoteStatus.tsx
+++ b/src/features/Electron/connection/RemoteStatus.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Loader, Wifi, WifiOffIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/system/ZoomHUD/index.tsx b/src/features/Electron/system/ZoomHUD/index.tsx
index 38c48e2353c..08dfdd682ce 100644
--- a/src/features/Electron/system/ZoomHUD/index.tsx
+++ b/src/features/Electron/system/ZoomHUD/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { AnimatePresence } from 'motion/react';
import * as m from 'motion/react-m';
import { memo, useEffect, useRef, useState } from 'react';
diff --git a/src/features/Electron/titlebar/NavigationBar.test.tsx b/src/features/Electron/titlebar/NavigationBar.test.tsx
index cb79d94e413..a5d898c367e 100644
--- a/src/features/Electron/titlebar/NavigationBar.test.tsx
+++ b/src/features/Electron/titlebar/NavigationBar.test.tsx
@@ -16,7 +16,7 @@ vi.mock('@lobechat/electron-client-ipc', () => ({
useWatchBroadcast: (event: string, handler: () => void) => mocks.handlers.set(event, handler),
}));
-vi.mock('antd-style', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
createStaticStyles: () => ({ clock: 'clock', root: 'root' }),
}));
diff --git a/src/features/Electron/titlebar/NavigationBar.tsx b/src/features/Electron/titlebar/NavigationBar.tsx
index 14fececcfa7..4d235b86e89 100644
--- a/src/features/Electron/titlebar/NavigationBar.tsx
+++ b/src/features/Electron/titlebar/NavigationBar.tsx
@@ -1,9 +1,7 @@
'use client';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Flexbox, Popover, Tooltip } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Popover, Tooltip } from '@lobehub/ui';
import { ArrowLeft, ArrowRight, Clock } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/titlebar/RecentlyViewed/PageItem.tsx b/src/features/Electron/titlebar/RecentlyViewed/PageItem.tsx
index b0e0c9baf1d..45339dac023 100644
--- a/src/features/Electron/titlebar/RecentlyViewed/PageItem.tsx
+++ b/src/features/Electron/titlebar/RecentlyViewed/PageItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { ActionIcon, cx, Flexbox, Icon } from '@lobehub/ui';
import { Pin, PinOff } from 'lucide-react';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/titlebar/RecentlyViewed/styles.ts b/src/features/Electron/titlebar/RecentlyViewed/styles.ts
index 1a8bf3431a1..55b119fceb4 100644
--- a/src/features/Electron/titlebar/RecentlyViewed/styles.ts
+++ b/src/features/Electron/titlebar/RecentlyViewed/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const useStyles = createStaticStyles(({ css, cssVar }) => ({
actionIcon: css`
diff --git a/src/features/Electron/titlebar/TabBar/TabItem.tsx b/src/features/Electron/titlebar/TabBar/TabItem.tsx
index fecaedb104d..86c99ab05db 100644
--- a/src/features/Electron/titlebar/TabBar/TabItem.tsx
+++ b/src/features/Electron/titlebar/TabBar/TabItem.tsx
@@ -1,8 +1,7 @@
'use client';
-import { ContextMenuTrigger, type GenericItemType, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { ContextMenuTrigger, type DropdownItem, Icon, Tooltip } from '@lobehub/ui';
+import { ActionIcon, cx } from '@lobehub/ui';
import { X } from 'lucide-react';
import { type MotionValue, useMotionValue, useSpring, useTransform } from 'motion/react';
import * as m from 'motion/react-m';
@@ -216,7 +215,7 @@ const TabItem = memo<TabItemProps>(
);
const contextMenuItems = useCallback(
- (): GenericItemType[] =>
+ (): DropdownItem[] =>
buildTabContextMenuItems({
id,
index,
diff --git a/src/features/Electron/titlebar/TabBar/index.tsx b/src/features/Electron/titlebar/TabBar/index.tsx
index 1a5441694b2..1680f1e52b5 100644
--- a/src/features/Electron/titlebar/TabBar/index.tsx
+++ b/src/features/Electron/titlebar/TabBar/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { ActionIcon, cx, type DropdownItem, DropdownMenu, Flexbox } from '@lobehub/ui';
import { ChevronDown, Plus } from 'lucide-react';
import { useMotionValue, useSpring } from 'motion/react';
import * as m from 'motion/react-m';
diff --git a/src/features/Electron/titlebar/TabBar/styles.ts b/src/features/Electron/titlebar/TabBar/styles.ts
index f77a3ac6b4e..3ad96957e83 100644
--- a/src/features/Electron/titlebar/TabBar/styles.ts
+++ b/src/features/Electron/titlebar/TabBar/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { TAB_ICON_SIZE, TAB_INLINE_INSET } from './tabLayout';
diff --git a/src/features/Electron/titlebar/TabBar/tabContextMenu.ts b/src/features/Electron/titlebar/TabBar/tabContextMenu.ts
index 23ec721c587..77aada65019 100644
--- a/src/features/Electron/titlebar/TabBar/tabContextMenu.ts
+++ b/src/features/Electron/titlebar/TabBar/tabContextMenu.ts
@@ -1,4 +1,4 @@
-import type { GenericItemType } from '@lobehub/ui';
+import type { DropdownItem } from '@lobehub/ui';
type TabContextMenuLabelKey =
| 'tab.closeCurrentTab'
@@ -47,7 +47,7 @@ export const buildTabContextMenuItems = ({
splitViewEnabled,
t,
totalCount,
-}: TabContextMenuParams): GenericItemType[] => {
+}: TabContextMenuParams): DropdownItem[] => {
const closableLeft = Math.max(0, index - pinnedCount);
const closableRight = Math.max(0, totalCount - Math.max(index + 1, pinnedCount));
const closableOthers = totalCount - pinnedCount - (pinned ? 0 : 1);
diff --git a/src/features/Electron/titlebar/TitleBar.tsx b/src/features/Electron/titlebar/TitleBar.tsx
index 1d09056109e..d6c685744a0 100644
--- a/src/features/Electron/titlebar/TitleBar.tsx
+++ b/src/features/Electron/titlebar/TitleBar.tsx
@@ -1,6 +1,5 @@
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useDeferredMount } from '@/hooks/useDeferredMount';
diff --git a/src/features/Electron/titlebar/WinControl.tsx b/src/features/Electron/titlebar/WinControl.tsx
index 4e26af13fab..eb349906bfa 100644
--- a/src/features/Electron/titlebar/WinControl.tsx
+++ b/src/features/Electron/titlebar/WinControl.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { Maximize2Icon, Minimize2Icon, MinusIcon, XIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Electron/titlebar/WindowsAppMenu.tsx b/src/features/Electron/titlebar/WindowsAppMenu.tsx
index 8f7b29edfce..0fede008854 100644
--- a/src/features/Electron/titlebar/WindowsAppMenu.tsx
+++ b/src/features/Electron/titlebar/WindowsAppMenu.tsx
@@ -1,8 +1,7 @@
'use client';
import type { AppMenuNode } from '@lobechat/electron-client-ipc';
-import { DropdownMenu, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, DropdownMenu, Tooltip } from '@lobehub/ui';
import { ChevronDown } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -27,9 +26,10 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
`,
logo: css`
display: flex;
+ gap: 4px;
align-items: center;
justify-content: center;
- gap: 4px;
+
width: 100%;
height: 100%;
`,
@@ -46,6 +46,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
width: 44px;
height: 28px;
+
/* Align the mark with the sidebar navigation icons below. */
margin-inline-start: -4px;
padding: 0;
diff --git a/src/features/Electron/titlebar/appMenuItems.ts b/src/features/Electron/titlebar/appMenuItems.ts
index ec6d25edf94..33843214879 100644
--- a/src/features/Electron/titlebar/appMenuItems.ts
+++ b/src/features/Electron/titlebar/appMenuItems.ts
@@ -1,5 +1,5 @@
import type { AppMenuNode } from '@lobechat/electron-client-ipc';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
export const formatMenuAccelerator = (accelerator?: string): string | undefined => {
if (!accelerator) return undefined;
diff --git a/src/features/Electron/updater/UpdateNotification.tsx b/src/features/Electron/updater/UpdateNotification.tsx
index 85b339d6f88..aa15d077e3a 100644
--- a/src/features/Electron/updater/UpdateNotification.tsx
+++ b/src/features/Electron/updater/UpdateNotification.tsx
@@ -1,8 +1,16 @@
import type { UpdateInfo } from '@lobechat/electron-client-ipc';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Button as BaseButton, createModal, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button as BaseButton,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Markdown,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { t } from 'i18next';
import { X } from 'lucide-react';
import React, { memo, useEffect, useRef, useState } from 'react';
diff --git a/src/features/EntityLink/Render/InternalEntityLink.tsx b/src/features/EntityLink/Render/InternalEntityLink.tsx
index 47a97cfbd74..7c7756fe1ec 100644
--- a/src/features/EntityLink/Render/InternalEntityLink.tsx
+++ b/src/features/EntityLink/Render/InternalEntityLink.tsx
@@ -2,8 +2,7 @@
import { isDesktop } from '@lobechat/const';
import { RENDERER_HANDLED_LINK_ATTR } from '@lobechat/desktop-bridge';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import {
BadgeCheckIcon,
BotIcon,
diff --git a/src/features/EntityLink/Render/InternalEntityPreview.tsx b/src/features/EntityLink/Render/InternalEntityPreview.tsx
index 5917164f0cc..a6777d2b6d6 100644
--- a/src/features/EntityLink/Render/InternalEntityPreview.tsx
+++ b/src/features/EntityLink/Render/InternalEntityPreview.tsx
@@ -1,9 +1,7 @@
'use client';
import type { VerifyCodingScope } from '@lobechat/types';
-import { Flexbox, Freeze, Icon, Popover } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, Flexbox, Freeze, Icon, Popover, Text } from '@lobehub/ui';
import type { TFunction } from 'i18next';
import {
BadgeCheckIcon,
diff --git a/src/features/EntityLink/Render/LinkChip.tsx b/src/features/EntityLink/Render/LinkChip.tsx
index cdfe67d2cf7..31704ea6f5e 100644
--- a/src/features/EntityLink/Render/LinkChip.tsx
+++ b/src/features/EntityLink/Render/LinkChip.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles } from '@lobehub/ui';
import { PanelRightIcon } from 'lucide-react';
import { memo, type MouseEvent, type ReactNode, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EntityLink/Render/index.test.tsx b/src/features/EntityLink/Render/index.test.tsx
index 23672472399..e24ea2f02e4 100644
--- a/src/features/EntityLink/Render/index.test.tsx
+++ b/src/features/EntityLink/Render/index.test.tsx
@@ -20,23 +20,33 @@ vi.mock('@lobechat/const', async (importOriginal) => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- ActionIcon: ({ icon: _icon, onClick, title, ...rest }: any) => (
- <button {...rest} aria-label={title} type="button" onClick={onClick} />
- ),
-}));
-
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- // Keep content mounted after dismissal to model the popover's exit animation.
- Popover: ({ children, content, onOpenChange }: any) => (
- <div onMouseEnter={() => onOpenChange?.(true)} onMouseLeave={() => onOpenChange?.(false)}>
- {children}
- {content}
- </div>
- ),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ ActionIcon: ({ icon: _icon, onClick, title, ...rest }: any) => (
+ <button {...rest} aria-label={title} type="button" onClick={onClick} />
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ // Keep content mounted after dismissal to model the popover's exit animation.
+ Popover: ({ children, content, onOpenChange }: any) => (
+ <div onMouseEnter={() => onOpenChange?.(true)} onMouseLeave={() => onOpenChange?.(false)}>
+ {children}
+ {content}
+ </div>
+ ),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
// `enableMessageLinkIcon` is read via useUserStore(selector). We drive the
// selector's return value through this module-level flag so each case can flip
diff --git a/src/features/EnvironmentManager/CreateEnvironmentModal.tsx b/src/features/EnvironmentManager/CreateEnvironmentModal.tsx
index d7e004d898d..0cf546e224d 100644
--- a/src/features/EnvironmentManager/CreateEnvironmentModal.tsx
+++ b/src/features/EnvironmentManager/CreateEnvironmentModal.tsx
@@ -1,17 +1,20 @@
'use client';
import type { EnvironmentKind, EnvironmentVisibility } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
Button,
confirmModal,
createModal,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
Input,
ModalFooter,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { CodeXmlIcon, FolderIcon, type LucideIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/EnvironmentManager/CreateInstanceModal.tsx b/src/features/EnvironmentManager/CreateInstanceModal.tsx
index 5840917f53f..bd1e283d6a6 100644
--- a/src/features/EnvironmentManager/CreateInstanceModal.tsx
+++ b/src/features/EnvironmentManager/CreateInstanceModal.tsx
@@ -1,15 +1,15 @@
'use client';
import { isSafeSandboxCwd } from '@lobechat/builtin-tool-cloud-sandbox';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/EnvironmentDetailPanel.tsx b/src/features/EnvironmentManager/EnvironmentDetailPanel.tsx
index 617cf404fcc..7e9a63a3b1b 100644
--- a/src/features/EnvironmentManager/EnvironmentDetailPanel.tsx
+++ b/src/features/EnvironmentManager/EnvironmentDetailPanel.tsx
@@ -2,9 +2,18 @@
import { environmentKind } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, Tabs, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Tabs,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
FolderIcon,
diff --git a/src/features/EnvironmentManager/EnvironmentForm.tsx b/src/features/EnvironmentManager/EnvironmentForm.tsx
index 6c4557087a4..ebdeac8c817 100644
--- a/src/features/EnvironmentManager/EnvironmentForm.tsx
+++ b/src/features/EnvironmentManager/EnvironmentForm.tsx
@@ -2,9 +2,16 @@
import type { EnvironmentKind } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Switch, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Switch,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { FolderGit2Icon, HardDriveIcon, InfoIcon, PencilIcon, TerminalIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/EnvironmentItem.tsx b/src/features/EnvironmentManager/EnvironmentItem.tsx
index 773ffa849eb..89e94c15378 100644
--- a/src/features/EnvironmentManager/EnvironmentItem.tsx
+++ b/src/features/EnvironmentManager/EnvironmentItem.tsx
@@ -2,9 +2,21 @@
import { environmentKind } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Button, confirmModal, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ cx,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
EyeOffIcon,
diff --git a/src/features/EnvironmentManager/EnvironmentVariables.tsx b/src/features/EnvironmentManager/EnvironmentVariables.tsx
index 2807f4abde7..c3248bbf4e2 100644
--- a/src/features/EnvironmentManager/EnvironmentVariables.tsx
+++ b/src/features/EnvironmentManager/EnvironmentVariables.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Text, TextArea, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Text,
+ TextArea,
+ toast,
+} from '@lobehub/ui';
import { BracesIcon, CheckIcon, PencilIcon, PlusIcon, Trash2Icon, XIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/EnvironmentsGate.tsx b/src/features/EnvironmentManager/EnvironmentsGate.tsx
index 115b43789d7..795684a0701 100644
--- a/src/features/EnvironmentManager/EnvironmentsGate.tsx
+++ b/src/features/EnvironmentManager/EnvironmentsGate.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Flexbox } from '@lobehub/ui';
import { AlertTriangleIcon } from 'lucide-react';
import { memo, type PropsWithChildren } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/GithubRepositoryPicker.tsx b/src/features/EnvironmentManager/GithubRepositoryPicker.tsx
index 738847c47ca..7323a36a529 100644
--- a/src/features/EnvironmentManager/GithubRepositoryPicker.tsx
+++ b/src/features/EnvironmentManager/GithubRepositoryPicker.tsx
@@ -1,9 +1,7 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Select, Text } from '@lobehub/ui';
import { ArrowRightIcon, LockIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/InlineField.tsx b/src/features/EnvironmentManager/InlineField.tsx
index 1c19554415f..9b6c814c898 100644
--- a/src/features/EnvironmentManager/InlineField.tsx
+++ b/src/features/EnvironmentManager/InlineField.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Input, Select, Text, TextArea, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Input,
+ Select,
+ Text,
+ TextArea,
+ toast,
+} from '@lobehub/ui';
import { CheckIcon, PencilIcon, XIcon } from 'lucide-react';
import { type KeyboardEvent, memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/InstanceFileBrowser.tsx b/src/features/EnvironmentManager/InstanceFileBrowser.tsx
index bc393fee537..9493b4af93e 100644
--- a/src/features/EnvironmentManager/InstanceFileBrowser.tsx
+++ b/src/features/EnvironmentManager/InstanceFileBrowser.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, createModal, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Text,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
ChevronLeftIcon,
diff --git a/src/features/EnvironmentManager/InstanceList.tsx b/src/features/EnvironmentManager/InstanceList.tsx
index e0b6e41a0e9..830e8a0b10e 100644
--- a/src/features/EnvironmentManager/InstanceList.tsx
+++ b/src/features/EnvironmentManager/InstanceList.tsx
@@ -1,9 +1,21 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Center, Empty, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ Center,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import {
CircleAlertIcon,
CircleDashedIcon,
diff --git a/src/features/EnvironmentManager/PanelSection.tsx b/src/features/EnvironmentManager/PanelSection.tsx
index f5d022f9758..ac8550fbb09 100644
--- a/src/features/EnvironmentManager/PanelSection.tsx
+++ b/src/features/EnvironmentManager/PanelSection.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/EnvironmentManager/SessionHistorySection.tsx b/src/features/EnvironmentManager/SessionHistorySection.tsx
index fa7ef9fa73f..e67b1272d3e 100644
--- a/src/features/EnvironmentManager/SessionHistorySection.tsx
+++ b/src/features/EnvironmentManager/SessionHistorySection.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Center, Empty, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
ActivityIcon,
diff --git a/src/features/EnvironmentManager/TabPane.tsx b/src/features/EnvironmentManager/TabPane.tsx
index 5cef136fec9..4051de9f8e4 100644
--- a/src/features/EnvironmentManager/TabPane.tsx
+++ b/src/features/EnvironmentManager/TabPane.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
interface TabPaneProps {
diff --git a/src/features/EnvironmentManager/WorkspaceUsageMeter.tsx b/src/features/EnvironmentManager/WorkspaceUsageMeter.tsx
index 11c62e9f8ed..10cb8eac3de 100644
--- a/src/features/EnvironmentManager/WorkspaceUsageMeter.tsx
+++ b/src/features/EnvironmentManager/WorkspaceUsageMeter.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/index.tsx b/src/features/EnvironmentManager/index.tsx
index a8949291598..3a528c14470 100644
--- a/src/features/EnvironmentManager/index.tsx
+++ b/src/features/EnvironmentManager/index.tsx
@@ -1,9 +1,16 @@
'use client';
import type { EnvironmentVisibility } from '@lobechat/types';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Icon,
+ Text,
+} from '@lobehub/ui';
import { ContainerIcon, PlusIcon, RefreshCwIcon } from 'lucide-react';
import { memo, type ReactNode, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EnvironmentManager/useConfirmRemoveEnvironment.ts b/src/features/EnvironmentManager/useConfirmRemoveEnvironment.ts
index beddeac2d3a..4d82f5f6824 100644
--- a/src/features/EnvironmentManager/useConfirmRemoveEnvironment.ts
+++ b/src/features/EnvironmentManager/useConfirmRemoveEnvironment.ts
@@ -1,4 +1,4 @@
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { describeError } from './errorMessage';
diff --git a/src/features/EvalCapture/CaptureContent.tsx b/src/features/EvalCapture/CaptureContent.tsx
index 33b35cbb414..9c3923c404e 100644
--- a/src/features/EvalCapture/CaptureContent.tsx
+++ b/src/features/EvalCapture/CaptureContent.tsx
@@ -1,9 +1,18 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Divider, Segmented, Select, Text, TextArea, toast } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Divider,
+ Flexbox,
+ Icon,
+ Segmented,
+ Select,
+ Text,
+ TextArea,
+ toast,
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { ChevronRight } from 'lucide-react';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EvalCapture/CaptureSuccess.tsx b/src/features/EvalCapture/CaptureSuccess.tsx
index 11f136babc6..b8668f0ca76 100644
--- a/src/features/EvalCapture/CaptureSuccess.tsx
+++ b/src/features/EvalCapture/CaptureSuccess.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Center, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Check } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/EvalCapture/index.tsx b/src/features/EvalCapture/index.tsx
index c630bea71d0..51c57689510 100644
--- a/src/features/EvalCapture/index.tsx
+++ b/src/features/EvalCapture/index.tsx
@@ -6,7 +6,7 @@ import {
type ImperativeModalProps,
ModalFooter,
type ModalInstance,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { type CaptureDraft } from './buildCaptureDraft';
diff --git a/src/features/ExecutionTargetPicker/index.tsx b/src/features/ExecutionTargetPicker/index.tsx
index bdcc3bc8d38..07f551d9044 100644
--- a/src/features/ExecutionTargetPicker/index.tsx
+++ b/src/features/ExecutionTargetPicker/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { DeviceExecutionTarget, DeviceListItem } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import { BoxIcon, LaptopIcon, MonitorOffIcon, SparklesIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ExplorerTree/view/NameInputHint.tsx b/src/features/ExplorerTree/view/NameInputHint.tsx
index 66d2bec50db..16871b1b3e9 100644
--- a/src/features/ExplorerTree/view/NameInputHint.tsx
+++ b/src/features/ExplorerTree/view/NameInputHint.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { NameInputHintState } from './useInlineNameEdit';
diff --git a/src/features/FileTree/Skeleton.tsx b/src/features/FileTree/Skeleton.tsx
index 9708f554186..5de69c7f335 100644
--- a/src/features/FileTree/Skeleton.tsx
+++ b/src/features/FileTree/Skeleton.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
interface FileTreeSkeletonProps {
diff --git a/src/features/FileTree/index.tsx b/src/features/FileTree/index.tsx
index 86391cdcfdc..0e457b6003f 100644
--- a/src/features/FileTree/index.tsx
+++ b/src/features/FileTree/index.tsx
@@ -1,10 +1,8 @@
'use client';
import type { SkillResourceTreeNode } from '@lobechat/types';
-import type { MenuProps } from '@lobehub/ui';
-import { ContextMenuTrigger, Icon } from '@lobehub/ui';
-import { Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import { ContextMenuTrigger, createStaticStyles, Icon, Input } from '@lobehub/ui';
import { ChevronDown, ChevronRight, File, FolderIcon, FolderOpenIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
@@ -67,7 +65,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
interface FileTreeProps {
editableFilePath?: string | null;
- getFileContextMenuItems?: (file: { name: string; path: string }) => MenuProps['items'];
+ getFileContextMenuItems?: (file: { name: string; path: string }) => DropdownItem[];
onCancelRenameFile?: () => void;
onCommitRenameFile?: (
file: { name: string; path: string },
@@ -86,7 +84,7 @@ const TreeNode = memo<{
depth: number;
editableFilePath?: string | null;
expandedFolders: Set<string>;
- getFileContextMenuItems?: (file: { name: string; path: string }) => MenuProps['items'];
+ getFileContextMenuItems?: (file: { name: string; path: string }) => DropdownItem[];
node: SkillResourceTreeNode;
onCancelRenameFile?: () => void;
onCommitRenameFile?: (
diff --git a/src/features/FileViewer/FileDocumentPreview.tsx b/src/features/FileViewer/FileDocumentPreview.tsx
index ae3ab69d923..9764016a957 100644
--- a/src/features/FileViewer/FileDocumentPreview.tsx
+++ b/src/features/FileViewer/FileDocumentPreview.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { DownloadIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/NotSupport/index.tsx b/src/features/FileViewer/NotSupport/index.tsx
index 2997f55a68b..2c5414bd9cf 100644
--- a/src/features/FileViewer/NotSupport/index.tsx
+++ b/src/features/FileViewer/NotSupport/index.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox, FluentEmoji } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, Center, createStaticStyles, Flexbox, FluentEmoji } from '@lobehub/ui';
import { type ComponentType, type CSSProperties } from 'react';
import { useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Code/index.tsx b/src/features/FileViewer/Renderer/Code/index.tsx
index ec116fc7c73..a799e016701 100644
--- a/src/features/FileViewer/Renderer/Code/index.tsx
+++ b/src/features/FileViewer/Renderer/Code/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Highlighter } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Flexbox, Highlighter, Spin } from '@lobehub/ui';
import { memo } from 'react';
import AsyncError from '@/components/AsyncError';
diff --git a/src/features/FileViewer/Renderer/Document/DocxPane.tsx b/src/features/FileViewer/Renderer/Document/DocxPane.tsx
index d49362b5f22..a9eda198a10 100644
--- a/src/features/FileViewer/Renderer/Document/DocxPane.tsx
+++ b/src/features/FileViewer/Renderer/Document/DocxPane.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import Loading from '@/components/Loading/CircleLoading';
diff --git a/src/features/FileViewer/Renderer/Document/OfficeOnlinePane.tsx b/src/features/FileViewer/Renderer/Document/OfficeOnlinePane.tsx
index 626d3d8e7a0..859479dfb7c 100644
--- a/src/features/FileViewer/Renderer/Document/OfficeOnlinePane.tsx
+++ b/src/features/FileViewer/Renderer/Document/OfficeOnlinePane.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/FileViewer/Renderer/Document/PaneFooter.tsx b/src/features/FileViewer/Renderer/Document/PaneFooter.tsx
index 63bdc4fe25e..f3c5d0dc9c8 100644
--- a/src/features/FileViewer/Renderer/Document/PaneFooter.tsx
+++ b/src/features/FileViewer/Renderer/Document/PaneFooter.tsx
@@ -1,5 +1,4 @@
-import { Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Tabs } from '@lobehub/ui';
import { type ReactNode, useEffect, useState } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/FileViewer/Renderer/Document/PptxPane.tsx b/src/features/FileViewer/Renderer/Document/PptxPane.tsx
index ee8ed19fe4b..82a73c95fa7 100644
--- a/src/features/FileViewer/Renderer/Document/PptxPane.tsx
+++ b/src/features/FileViewer/Renderer/Document/PptxPane.tsx
@@ -1,8 +1,7 @@
'use client';
import type { PptxViewer, SlideHandle, TextSearchResult } from '@aiden0z/pptx-renderer';
-import { ActionIcon, Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Input } from '@lobehub/ui';
import { ChevronRightIcon, MinusIcon, PlusIcon, SearchIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Document/index.tsx b/src/features/FileViewer/Renderer/Document/index.tsx
index 46abf3e852a..7feb15d27b6 100644
--- a/src/features/FileViewer/Renderer/Document/index.tsx
+++ b/src/features/FileViewer/Renderer/Document/index.tsx
@@ -3,9 +3,7 @@
import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, Center, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Document/xlsx/SheetGrid.tsx b/src/features/FileViewer/Renderer/Document/xlsx/SheetGrid.tsx
index 70a52894872..168b4355b73 100644
--- a/src/features/FileViewer/Renderer/Document/xlsx/SheetGrid.tsx
+++ b/src/features/FileViewer/Renderer/Document/xlsx/SheetGrid.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, useLayoutEffect, useRef } from 'react';
import type { CellModel, CellStyle, SheetModel } from './model';
diff --git a/src/features/FileViewer/Renderer/Document/xlsx/XlsxPane.tsx b/src/features/FileViewer/Renderer/Document/xlsx/XlsxPane.tsx
index 1a993284ea9..45e04afacdf 100644
--- a/src/features/FileViewer/Renderer/Document/xlsx/XlsxPane.tsx
+++ b/src/features/FileViewer/Renderer/Document/xlsx/XlsxPane.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Document/xlsx/styles.ts b/src/features/FileViewer/Renderer/Document/xlsx/styles.ts
index a04a0494778..02ae66f60e0 100644
--- a/src/features/FileViewer/Renderer/Document/xlsx/styles.ts
+++ b/src/features/FileViewer/Renderer/Document/xlsx/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
aside: css`
diff --git a/src/features/FileViewer/Renderer/HTML/index.tsx b/src/features/FileViewer/Renderer/HTML/index.tsx
index 685beb44dd2..1c193b0f0e8 100644
--- a/src/features/FileViewer/Renderer/HTML/index.tsx
+++ b/src/features/FileViewer/Renderer/HTML/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Flexbox, Spin } from '@lobehub/ui';
import { memo } from 'react';
import AsyncError from '@/components/AsyncError';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.test.tsx b/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.test.tsx
index 117d3b6d848..c1cc23955a3 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.test.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.test.tsx
@@ -44,7 +44,7 @@ vi.mock('./deps', async (importOriginal) => ({
}));
const toast = vi.hoisted(() => ({ error: vi.fn(), info: vi.fn(), success: vi.fn() }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast,
}));
diff --git a/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.tsx b/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.tsx
index 8bc9e44792b..f9699a8beea 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/AIEdit/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, keyframes } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, keyframes } from '@lobehub/ui';
import {
CircleAlertIcon,
EraserIcon,
diff --git a/src/features/FileViewer/Renderer/Image/Tools/AIEdit/useAIImageEdit.ts b/src/features/FileViewer/Renderer/Image/Tools/AIEdit/useAIImageEdit.ts
index 23dc6c4b186..bdd1c532bf9 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/AIEdit/useAIImageEdit.ts
+++ b/src/features/FileViewer/Renderer/Image/Tools/AIEdit/useAIImageEdit.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/Annotate/index.tsx b/src/features/FileViewer/Renderer/Image/Tools/Annotate/index.tsx
index 0347a75d948..63fdbee4762 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/Annotate/index.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/Annotate/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { BrushIcon, CheckIcon, SquareIcon, Trash2Icon, Undo2Icon } from 'lucide-react';
import type { PointerEvent } from 'react';
import { useEffect, useRef, useState } from 'react';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/BarButton.tsx b/src/features/FileViewer/Renderer/Image/Tools/BarButton.tsx
index 3fc89a8b948..9b70ff114da 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/BarButton.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/BarButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, type ButtonProps } from '@lobehub/ui/base-ui';
+import { Button, type ButtonProps } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/Comment/CommentMarkers.tsx b/src/features/FileViewer/Renderer/Image/Tools/Comment/CommentMarkers.tsx
index b54ccc4255f..33c88228046 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/Comment/CommentMarkers.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/Comment/CommentMarkers.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { Rotation } from '../../geometry';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/Comment/index.tsx b/src/features/FileViewer/Renderer/Image/Tools/Comment/index.tsx
index 932e8630b8a..2746d96325a 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/Comment/index.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/Comment/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { nanoid } from '@lobechat/utils';
-import { ActionIcon, Button, Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar, Text, TextArea } from '@lobehub/ui';
import { CheckIcon, ListIcon, Trash2Icon } from 'lucide-react';
import type { PointerEvent } from 'react';
import { useEffect, useRef, useState } from 'react';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/Resize/index.tsx b/src/features/FileViewer/Renderer/Image/Tools/Resize/index.tsx
index 2bd5858e0eb..8ec43670266 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/Resize/index.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/Resize/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon, Input, Select } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Input, Select } from '@lobehub/ui';
import { LinkIcon, SaveIcon, UnlinkIcon, XIcon } from 'lucide-react';
import type { PointerEvent } from 'react';
import { useRef, useState } from 'react';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/index.test.tsx b/src/features/FileViewer/Renderer/Image/Tools/index.test.tsx
index 4c3e724a142..577e83e9f2f 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/index.test.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/index.test.tsx
@@ -65,7 +65,7 @@ vi.mock('./AIEdit/deps', async (importOriginal) => {
});
const toast = vi.hoisted(() => ({ error: vi.fn(), success: vi.fn() }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast,
}));
diff --git a/src/features/FileViewer/Renderer/Image/Tools/index.tsx b/src/features/FileViewer/Renderer/Image/Tools/index.tsx
index 7a3fbed5ac4..d94954bac2a 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/index.tsx
+++ b/src/features/FileViewer/Renderer/Image/Tools/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, Badge } from '@lobehub/ui/base-ui';
+import { ActionIcon, Badge } from '@lobehub/ui';
import {
CropIcon,
EraserIcon,
diff --git a/src/features/FileViewer/Renderer/Image/Tools/styles.ts b/src/features/FileViewer/Renderer/Image/Tools/styles.ts
index 93c7565737c..0521f8dd45e 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/styles.ts
+++ b/src/features/FileViewer/Renderer/Image/Tools/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/** Shared chrome for the floating bottom bar and side panels of the image tools. */
export const toolStyles = createStaticStyles(({ css }) => ({
diff --git a/src/features/FileViewer/Renderer/Image/Tools/useSaveDerivedImage.ts b/src/features/FileViewer/Renderer/Image/Tools/useSaveDerivedImage.ts
index 733f5d1b42b..748594692e5 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/useSaveDerivedImage.ts
+++ b/src/features/FileViewer/Renderer/Image/Tools/useSaveDerivedImage.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Image/Tools/useSendMarkupToChat.ts b/src/features/FileViewer/Renderer/Image/Tools/useSendMarkupToChat.ts
index 92af422c114..36dfc05f719 100644
--- a/src/features/FileViewer/Renderer/Image/Tools/useSendMarkupToChat.ts
+++ b/src/features/FileViewer/Renderer/Image/Tools/useSendMarkupToChat.ts
@@ -1,5 +1,5 @@
import { AGENT_CHAT_URL } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/Image/TopBar.tsx b/src/features/FileViewer/Renderer/Image/TopBar.tsx
index b4a8e1d0b34..81f58e00824 100644
--- a/src/features/FileViewer/Renderer/Image/TopBar.tsx
+++ b/src/features/FileViewer/Renderer/Image/TopBar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar } from '@lobehub/ui';
import {
DownloadIcon,
MaximizeIcon,
diff --git a/src/features/FileViewer/Renderer/Image/VersionSwitcher.tsx b/src/features/FileViewer/Renderer/Image/VersionSwitcher.tsx
index 47222723107..350b29e7439 100644
--- a/src/features/FileViewer/Renderer/Image/VersionSwitcher.tsx
+++ b/src/features/FileViewer/Renderer/Image/VersionSwitcher.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { ImageVersion } from './context';
diff --git a/src/features/FileViewer/Renderer/Image/index.test.tsx b/src/features/FileViewer/Renderer/Image/index.test.tsx
index f8f3735cadf..1d4f8e257c6 100644
--- a/src/features/FileViewer/Renderer/Image/index.test.tsx
+++ b/src/features/FileViewer/Renderer/Image/index.test.tsx
@@ -11,7 +11,7 @@ const downloadFile = vi.hoisted(() => vi.fn());
vi.mock('@/utils/client/downloadFile', () => ({ downloadFile }));
const confirmModal = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal,
}));
diff --git a/src/features/FileViewer/Renderer/Image/index.tsx b/src/features/FileViewer/Renderer/Image/index.tsx
index d0c687cf678..3171c86093a 100644
--- a/src/features/FileViewer/Renderer/Image/index.tsx
+++ b/src/features/FileViewer/Renderer/Image/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { Button, confirmModal, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, Center, confirmModal, createStaticStyles, cssVar, Spin, Text } from '@lobehub/ui';
import type { KeyboardEvent, PointerEvent, ReactNode } from 'react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/MSDoc/index.tsx b/src/features/FileViewer/Renderer/MSDoc/index.tsx
index a618340305b..4c412718189 100644
--- a/src/features/FileViewer/Renderer/MSDoc/index.tsx
+++ b/src/features/FileViewer/Renderer/MSDoc/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Center, Flexbox, Spin } from '@lobehub/ui';
import { lazy, memo, Suspense } from 'react';
import AsyncError from '@/components/AsyncError';
diff --git a/src/features/FileViewer/Renderer/Markdown/index.tsx b/src/features/FileViewer/Renderer/Markdown/index.tsx
index 0022d19a36d..bf96033d0b5 100644
--- a/src/features/FileViewer/Renderer/Markdown/index.tsx
+++ b/src/features/FileViewer/Renderer/Markdown/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Center, Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { Spin, Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Highlighter,
+ Icon,
+ Markdown,
+ Spin,
+ Tabs,
+} from '@lobehub/ui';
import { CodeIcon, EyeIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FileViewer/Renderer/PDF/index.tsx b/src/features/FileViewer/Renderer/PDF/index.tsx
index ef9ec26eaa4..49b62f605e7 100644
--- a/src/features/FileViewer/Renderer/PDF/index.tsx
+++ b/src/features/FileViewer/Renderer/PDF/index.tsx
@@ -3,8 +3,7 @@
import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';
-import { Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Flexbox, Spin } from '@lobehub/ui';
import { Fragment, memo, useCallback, useState } from 'react';
import { Document, Page, pdfjs } from '@/libs/pdfjs';
diff --git a/src/features/FileViewer/Renderer/PDF/style.ts b/src/features/FileViewer/Renderer/PDF/style.ts
index b05d6a9a460..193c4eb60ef 100644
--- a/src/features/FileViewer/Renderer/PDF/style.ts
+++ b/src/features/FileViewer/Renderer/PDF/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
container: css`
diff --git a/src/features/FileViewer/Renderer/Video/index.tsx b/src/features/FileViewer/Renderer/Video/index.tsx
index bc5f6f3a423..83093057e28 100644
--- a/src/features/FileViewer/Renderer/Video/index.tsx
+++ b/src/features/FileViewer/Renderer/Video/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/FileViewer/index.tsx b/src/features/FileViewer/index.tsx
index d36f0f7e567..a2299fd980b 100644
--- a/src/features/FileViewer/index.tsx
+++ b/src/features/FileViewer/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { MARKDOWN_MIME_TYPES } from '@lobechat/const';
-import { Center } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Center, Spin } from '@lobehub/ui';
import type { CSSProperties, JSXElementConstructor, ReactNode } from 'react';
import { memo, useCallback, useEffect, useState } from 'react';
diff --git a/src/features/FloatingChatPanel/HoverExpandBar.tsx b/src/features/FloatingChatPanel/HoverExpandBar.tsx
index 9307f94c7ba..0d32265736b 100644
--- a/src/features/FloatingChatPanel/HoverExpandBar.tsx
+++ b/src/features/FloatingChatPanel/HoverExpandBar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import { ChevronUp } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/FloatingChatPanel/InputRow.tsx b/src/features/FloatingChatPanel/InputRow.tsx
index f9649298a25..1e5024d2688 100644
--- a/src/features/FloatingChatPanel/InputRow.tsx
+++ b/src/features/FloatingChatPanel/InputRow.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createGlobalStyle, createStaticStyles } from 'antd-style';
+import { createGlobalStyle, createStaticStyles } from '@lobehub/ui';
import { type FocusEvent, memo, useCallback, useEffect, useRef, useState } from 'react';
import { flushSync } from 'react-dom';
diff --git a/src/features/FloatingChatPanel/index.test.tsx b/src/features/FloatingChatPanel/index.test.tsx
index 12b65db2efe..b354adfc575 100644
--- a/src/features/FloatingChatPanel/index.test.tsx
+++ b/src/features/FloatingChatPanel/index.test.tsx
@@ -16,7 +16,7 @@ const sheetHandlers = vi.hoisted(() => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
ActionIcon: ({
onClick,
diff --git a/src/features/FloatingChatPanel/index.tsx b/src/features/FloatingChatPanel/index.tsx
index d40c884ebc2..242e6939107 100644
--- a/src/features/FloatingChatPanel/index.tsx
+++ b/src/features/FloatingChatPanel/index.tsx
@@ -1,7 +1,11 @@
'use client';
-import { ActionIcon, FloatingSheet, type FloatingSheetProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ FloatingSheet,
+ type FloatingSheetProps,
+} from '@lobehub/ui';
import { ChevronDown } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/GlobalApprovalNotification/ApprovalCard.tsx b/src/features/GlobalApprovalNotification/ApprovalCard.tsx
index 1c4191abec8..44378415964 100644
--- a/src/features/GlobalApprovalNotification/ApprovalCard.tsx
+++ b/src/features/GlobalApprovalNotification/ApprovalCard.tsx
@@ -2,7 +2,7 @@
import { AGENT_CHAT_TOPIC_URL, GROUP_CHAT_TOPIC_URL, GROUP_CHAT_URL } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { ActionIcon, Avatar } from '@lobehub/ui/base-ui';
+import { ActionIcon, Avatar } from '@lobehub/ui';
import { ArrowUpRight, ChevronUp } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/GlobalApprovalNotification/GoalClarificationCard.tsx b/src/features/GlobalApprovalNotification/GoalClarificationCard.tsx
index 60d9c6deb6a..09baf42be57 100644
--- a/src/features/GlobalApprovalNotification/GoalClarificationCard.tsx
+++ b/src/features/GlobalApprovalNotification/GoalClarificationCard.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, Icon } from '@lobehub/ui';
import { ArrowUpRight, ChevronUp, Target } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/GlobalApprovalNotification/GoalDecisionCard.tsx b/src/features/GlobalApprovalNotification/GoalDecisionCard.tsx
index 1b0d457f647..5bd337eb781 100644
--- a/src/features/GlobalApprovalNotification/GoalDecisionCard.tsx
+++ b/src/features/GlobalApprovalNotification/GoalDecisionCard.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, Button, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, toast } from '@lobehub/ui';
import { ArrowUpRight, ChevronUp } from 'lucide-react';
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/GlobalApprovalNotification/index.tsx b/src/features/GlobalApprovalNotification/index.tsx
index 74c1c59ca9c..4f655ffdcee 100644
--- a/src/features/GlobalApprovalNotification/index.tsx
+++ b/src/features/GlobalApprovalNotification/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { AnimatePresence } from 'motion/react';
import * as m from 'motion/react-m';
import { memo, useMemo } from 'react';
diff --git a/src/features/GlobalApprovalNotification/styles.ts b/src/features/GlobalApprovalNotification/styles.ts
index 5f7a449488b..53a30065b6d 100644
--- a/src/features/GlobalApprovalNotification/styles.ts
+++ b/src/features/GlobalApprovalNotification/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Footer hosting the approve / reject actions (portal target). Hidden until
diff --git a/src/features/GroupAvatar/index.tsx b/src/features/GroupAvatar/index.tsx
index 75b50d8371e..946a7b28408 100644
--- a/src/features/GroupAvatar/index.tsx
+++ b/src/features/GroupAvatar/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { type GroupAvatarProps } from '@lobehub/ui';
-import { GroupAvatar } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, GroupAvatar, Skeleton } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { DEFAULT_AVATAR } from '@/const/meta';
diff --git a/src/features/GroupPermission/GroupBreadcrumb.tsx b/src/features/GroupPermission/GroupBreadcrumb.tsx
index 1c190d278e7..aafd481af79 100644
--- a/src/features/GroupPermission/GroupBreadcrumb.tsx
+++ b/src/features/GroupPermission/GroupBreadcrumb.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Breadcrumb, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Breadcrumb, createStaticStyles, Icon, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, type ReactNode, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/GroupPermission/PermissionForm.tsx b/src/features/GroupPermission/PermissionForm.tsx
index efb4dcf08e2..7afd8dda231 100644
--- a/src/features/GroupPermission/PermissionForm.tsx
+++ b/src/features/GroupPermission/PermissionForm.tsx
@@ -1,10 +1,8 @@
'use client';
import type { AgentModelSelectionPolicy, AgentTopicSharePolicy } from '@lobechat/types';
-import { Empty, Icon } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Alert, createStaticStyles, Empty, Icon } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { Bot, InfoIcon, LockIcon, MonitorSmartphone, Share2, UsersIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HeteroSessionImport/Content.tsx b/src/features/HeteroSessionImport/Content.tsx
index d33c6627dc2..537c4b28956 100644
--- a/src/features/HeteroSessionImport/Content.tsx
+++ b/src/features/HeteroSessionImport/Content.tsx
@@ -6,9 +6,19 @@ import type {
HeteroSessionDirPref,
HeteroSessionImportStatus,
} from '@lobechat/types';
-import { Flexbox, Icon, ScrollShadow, SearchBar } from '@lobehub/ui';
-import { Button, Checkbox, Progress, Spin, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Button,
+ Checkbox,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Progress,
+ ScrollShadow,
+ SearchBar,
+ Spin,
+ Text,
+ useModalContext,
+} from '@lobehub/ui';
import { Check, FolderSearch, TriangleAlert, X } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HeteroSessionImport/SessionList.tsx b/src/features/HeteroSessionImport/SessionList.tsx
index 889094cc00a..4cf7e40cec3 100644
--- a/src/features/HeteroSessionImport/SessionList.tsx
+++ b/src/features/HeteroSessionImport/SessionList.tsx
@@ -1,8 +1,17 @@
import type { HeteroSessionDigest } from '@lobechat/types';
import { ClaudeCode, Codex } from '@lobehub/icons';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Checkbox, Spin, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import {
+ Button,
+ Checkbox,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Icon,
+ Spin,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { Check, RotateCcw, X } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/HeteroSessionImport/SidebarTree.tsx b/src/features/HeteroSessionImport/SidebarTree.tsx
index f3bbcbf26c9..bd21dbec5c2 100644
--- a/src/features/HeteroSessionImport/SidebarTree.tsx
+++ b/src/features/HeteroSessionImport/SidebarTree.tsx
@@ -1,8 +1,17 @@
import type { HeteroSessionDirGroup, HeteroSessionDirPref } from '@lobechat/types';
import { ClaudeCode, Codex } from '@lobehub/icons';
-import { Flexbox, Icon, ScrollShadow, Tooltip } from '@lobehub/ui';
-import { ActionIcon, DraggablePanel, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ cssVar,
+ cx,
+ DraggablePanel,
+ Flexbox,
+ Icon,
+ ScrollShadow,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { ChevronRight, Eye, EyeOff, Folder, FolderGit2, Timer, X } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HeteroSessionImport/index.tsx b/src/features/HeteroSessionImport/index.tsx
index 674d4c758d0..ef7436b9390 100644
--- a/src/features/HeteroSessionImport/index.tsx
+++ b/src/features/HeteroSessionImport/index.tsx
@@ -1,4 +1,4 @@
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import Content from './Content';
diff --git a/src/features/HeterogeneousAgent/modelPicker.tsx b/src/features/HeterogeneousAgent/modelPicker.tsx
index 838cfbfd3a3..524231b0112 100644
--- a/src/features/HeterogeneousAgent/modelPicker.tsx
+++ b/src/features/HeterogeneousAgent/modelPicker.tsx
@@ -1,5 +1,5 @@
import type { ServerDefaultHeterogeneousAgentType } from '@lobechat/heterogeneous-agents';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { LobeDefaultAiModelListItem } from 'model-bank';
import { ModelItemRender, TAG_CLASSNAME } from '@/components/ModelSelect';
diff --git a/src/features/HeterogeneousTag/index.tsx b/src/features/HeterogeneousTag/index.tsx
index b01db9b296d..001ec82ec1a 100644
--- a/src/features/HeterogeneousTag/index.tsx
+++ b/src/features/HeterogeneousTag/index.tsx
@@ -1,5 +1,5 @@
import { getHeterogeneousTypeLabel } from '@lobechat/heterogeneous-agents';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import type { CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/features/Home/AcceptancePortalDrawer.tsx b/src/features/Home/AcceptancePortalDrawer.tsx
index 9c18510f712..f917a4d5a7a 100644
--- a/src/features/Home/AcceptancePortalDrawer.tsx
+++ b/src/features/Home/AcceptancePortalDrawer.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Drawer } from '@lobehub/ui/base-ui';
+import { Drawer, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { PortalContent } from '@/features/Portal/router';
diff --git a/src/features/Home/AgentSelect/AgentList.tsx b/src/features/Home/AgentSelect/AgentList.tsx
index 9b1ca77acd2..0970392c943 100644
--- a/src/features/Home/AgentSelect/AgentList.tsx
+++ b/src/features/Home/AgentSelect/AgentList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Block, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { PinIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/AgentSelect/index.tsx b/src/features/Home/AgentSelect/index.tsx
index d66d074078d..9657abcbc49 100644
--- a/src/features/Home/AgentSelect/index.tsx
+++ b/src/features/Home/AgentSelect/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Button, Popover, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Popover, Text } from '@lobehub/ui';
import { ChevronsUpDownIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/CustomizeButton.tsx b/src/features/Home/CustomizeButton.tsx
index 6eaa91cdcda..d048991b44c 100644
--- a/src/features/Home/CustomizeButton.tsx
+++ b/src/features/Home/CustomizeButton.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { SlidersHorizontal } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/CustomizeModal/Content.tsx b/src/features/Home/CustomizeModal/Content.tsx
index 1137df6a4fa..7a89b04c23d 100644
--- a/src/features/Home/CustomizeModal/Content.tsx
+++ b/src/features/Home/CustomizeModal/Content.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Switch, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ Flexbox,
+ Switch,
+ Text,
+ useModalContext,
+} from '@lobehub/ui';
import { RotateCcw, XIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/CustomizeModal/components/CountStepper.tsx b/src/features/Home/CustomizeModal/components/CountStepper.tsx
index db00e772909..53a97e76a37 100644
--- a/src/features/Home/CustomizeModal/components/CountStepper.tsx
+++ b/src/features/Home/CustomizeModal/components/CountStepper.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { MinusIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/CustomizeModal/components/PresetBar.tsx b/src/features/Home/CustomizeModal/components/PresetBar.tsx
index 88246f8684f..d0db5f2252d 100644
--- a/src/features/Home/CustomizeModal/components/PresetBar.tsx
+++ b/src/features/Home/CustomizeModal/components/PresetBar.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Segmented } from '@lobehub/ui/base-ui';
+import { Segmented } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/CustomizeModal/components/SettingRow.tsx b/src/features/Home/CustomizeModal/components/SettingRow.tsx
index c748760e030..2b859620297 100644
--- a/src/features/Home/CustomizeModal/components/SettingRow.tsx
+++ b/src/features/Home/CustomizeModal/components/SettingRow.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
export interface SettingRowProps {
diff --git a/src/features/Home/CustomizeModal/index.tsx b/src/features/Home/CustomizeModal/index.tsx
index ac6491af836..dfcf4b0281b 100644
--- a/src/features/Home/CustomizeModal/index.tsx
+++ b/src/features/Home/CustomizeModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import CustomizeModalContent from './Content';
diff --git a/src/features/Home/EmptySuggestions.tsx b/src/features/Home/EmptySuggestions.tsx
index f2d7e735cbf..35e41f8a634 100644
--- a/src/features/Home/EmptySuggestions.tsx
+++ b/src/features/Home/EmptySuggestions.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, Text } from '@lobehub/ui';
import { FileTextIcon, ListTodoIcon, SearchIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/GreetingLine.tsx b/src/features/Home/GreetingLine.tsx
index 82857b05e11..74e0dfbc752 100644
--- a/src/features/Home/GreetingLine.tsx
+++ b/src/features/Home/GreetingLine.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, type MouseEvent, type ReactNode } from 'react';
import { useStableNavigate } from '@/hooks/useStableNavigate';
diff --git a/src/features/Home/HomeHeader.tsx b/src/features/Home/HomeHeader.tsx
index c65de8bb2e5..34529ace6e0 100644
--- a/src/features/Home/HomeHeader.tsx
+++ b/src/features/Home/HomeHeader.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/HomeModeContent.tsx b/src/features/Home/HomeModeContent.tsx
index 3db3d42345c..6bb68a81141 100644
--- a/src/features/Home/HomeModeContent.tsx
+++ b/src/features/Home/HomeModeContent.tsx
@@ -2,9 +2,17 @@ import { TASK_STATUSES } from '@lobechat/builtin-tool-task';
import type { RecentItem, TaskStatus } from '@lobechat/types';
import { agentDisplayName } from '@lobechat/types';
import type { FlexboxProps } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Segmented, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Segmented,
+ Skeleton,
+ Text,
+} from '@lobehub/ui';
import { HashIcon } from 'lucide-react';
import { memo, type ReactNode, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/HomeNavHeader.tsx b/src/features/Home/HomeNavHeader.tsx
index a4f957081d1..ffacba5e387 100644
--- a/src/features/Home/HomeNavHeader.tsx
+++ b/src/features/Home/HomeNavHeader.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useHomeUsageWidgetActive } from '@/business/client/features/HomeUsageWidget';
diff --git a/src/features/Home/HomePortrait.tsx b/src/features/Home/HomePortrait.tsx
index 4291a645e0d..a88acd03467 100644
--- a/src/features/Home/HomePortrait.tsx
+++ b/src/features/Home/HomePortrait.tsx
@@ -1,5 +1,5 @@
import { DEFAULT_INBOX_AVATAR } from '@lobechat/const';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { resolveChiefAgentArtwork } from '@/features/ChiefAgent/artwork';
diff --git a/src/features/Home/InputArea/EditorInput.tsx b/src/features/Home/InputArea/EditorInput.tsx
index 4877c8862fd..5c2210429d7 100644
--- a/src/features/Home/InputArea/EditorInput.tsx
+++ b/src/features/Home/InputArea/EditorInput.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox } from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { memo, type ReactNode, useMemo } from 'react';
diff --git a/src/features/Home/InputArea/InputBanner.tsx b/src/features/Home/InputArea/InputBanner.tsx
index 69106d24ade..e44b0192a5e 100644
--- a/src/features/Home/InputArea/InputBanner.tsx
+++ b/src/features/Home/InputArea/InputBanner.tsx
@@ -1,5 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles } from '@lobehub/ui';
import { X } from 'lucide-react';
import type { MouseEvent, MouseEventHandler, ReactNode } from 'react';
import { useCallback } from 'react';
diff --git a/src/features/Home/InputArea/InputDragUpload.tsx b/src/features/Home/InputArea/InputDragUpload.tsx
index c6973d5614c..2c173910811 100644
--- a/src/features/Home/InputArea/InputDragUpload.tsx
+++ b/src/features/Home/InputArea/InputDragUpload.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Center, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { FileImage, FileText, FileUpIcon } from 'lucide-react';
import { type CSSProperties, memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/InputArea/InputFallback.tsx b/src/features/Home/InputArea/InputFallback.tsx
index ce139c4723e..042e2067510 100644
--- a/src/features/Home/InputArea/InputFallback.tsx
+++ b/src/features/Home/InputArea/InputFallback.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox } from '@lobehub/ui';
import { ArrowUpIcon, PlusIcon } from 'lucide-react';
import { type ChangeEventHandler, type CompositionEventHandler, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/InputArea/MessengerBanner.tsx b/src/features/Home/InputArea/MessengerBanner.tsx
index 3beb2ab8411..9a9ad944041 100644
--- a/src/features/Home/InputArea/MessengerBanner.tsx
+++ b/src/features/Home/InputArea/MessengerBanner.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { MessageCircleIcon } from 'lucide-react';
import type { FC } from 'react';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/Home/InputArea/ModeSelect.tsx b/src/features/Home/InputArea/ModeSelect.tsx
index 6a9e7b2c899..a5e1a350894 100644
--- a/src/features/Home/InputArea/ModeSelect.tsx
+++ b/src/features/Home/InputArea/ModeSelect.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Popover } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Popover } from '@lobehub/ui';
import { ChevronDownIcon, InfinityIcon, ListTodoIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/InputArea/index.tsx b/src/features/Home/InputArea/index.tsx
index 148764f9c15..fd9a05f9d3c 100644
--- a/src/features/Home/InputArea/index.tsx
+++ b/src/features/Home/InputArea/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/InputArea/useSend.test.ts b/src/features/Home/InputArea/useSend.test.ts
index b5dd30eda87..4aaeb3be723 100644
--- a/src/features/Home/InputArea/useSend.test.ts
+++ b/src/features/Home/InputArea/useSend.test.ts
@@ -93,7 +93,7 @@ const activeWorkspaceIdMock = vi.hoisted(() => ({
value: null as string | null,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: messageErrorMock, success: messageSuccessMock },
}));
diff --git a/src/features/Home/InputArea/useSend.ts b/src/features/Home/InputArea/useSend.ts
index 9488be22f76..0082952e2ab 100644
--- a/src/features/Home/InputArea/useSend.ts
+++ b/src/features/Home/InputArea/useSend.ts
@@ -1,5 +1,5 @@
import { AGENT_CHAT_TOPIC_URL, AGENT_CHAT_URL } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/NewModelShortcuts/index.tsx b/src/features/Home/NewModelShortcuts/index.tsx
index 905ccda0cbe..dfe5bf1b98a 100644
--- a/src/features/Home/NewModelShortcuts/index.tsx
+++ b/src/features/Home/NewModelShortcuts/index.tsx
@@ -1,6 +1,13 @@
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Skeleton, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Skeleton,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/PortraitBubble/index.tsx b/src/features/Home/PortraitBubble/index.tsx
index 1fac35c866e..0f82a2bf08f 100644
--- a/src/features/Home/PortraitBubble/index.tsx
+++ b/src/features/Home/PortraitBubble/index.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/RailToggle.tsx b/src/features/Home/RailToggle.tsx
index 429c1258e9f..5826df418ff 100644
--- a/src/features/Home/RailToggle.tsx
+++ b/src/features/Home/RailToggle.tsx
@@ -1,5 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles } from '@lobehub/ui';
import { PanelRightCloseIcon, PanelRightOpenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Home/Recents/Item.tsx b/src/features/Home/Recents/Item.tsx
index 87b84a45259..dbdab57b071 100644
--- a/src/features/Home/Recents/Item.tsx
+++ b/src/features/Home/Recents/Item.tsx
@@ -1,7 +1,5 @@
import type { RecentItem } from '@lobechat/types';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
import { FileTextIcon, HashIcon, MoreHorizontalIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
diff --git a/src/features/Home/Recents/index.tsx b/src/features/Home/Recents/index.tsx
index fea7f0d5721..d3eb45a59e5 100644
--- a/src/features/Home/Recents/index.tsx
+++ b/src/features/Home/Recents/index.tsx
@@ -1,5 +1,4 @@
-import { type MenuProps } from '@lobehub/ui';
-import { ContextMenuTrigger, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -7,10 +6,14 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ ContextMenuTrigger,
+ cx,
+ DropdownMenu,
+ Flexbox,
+ Icon,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import {
ArrowDownIcon,
ArrowUpIcon,
@@ -124,7 +127,7 @@ const Recents = memo<RecentsProps>(({ itemKey }) => {
label: t('navPanel.customizeSidebar'),
onClick: () => openCustomizeSidebarModal(),
},
- ] as MenuProps['items'];
+ ] as DropdownItem[];
}, [recentPageSize, updateSystemStatus, t, isFirst, isLast, moveSection, hideSection]);
if (!isLogin) return null;
diff --git a/src/features/Home/Recents/useDropdownMenu.tsx b/src/features/Home/Recents/useDropdownMenu.tsx
index 49fb4a79435..08b87170fe2 100644
--- a/src/features/Home/Recents/useDropdownMenu.tsx
+++ b/src/features/Home/Recents/useDropdownMenu.tsx
@@ -1,7 +1,6 @@
import type { RecentItem } from '@lobechat/types';
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon } from '@lobehub/ui';
import { PencilLineIcon, Trash } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
@@ -79,7 +78,7 @@ export const useRecentItemDropdownMenu = (item: RecentItem) => {
});
}, [item, refreshRecents, t]);
- const dropdownMenu = useCallback((): MenuProps['items'] => {
+ const dropdownMenu = useCallback((): DropdownItem[] => {
const items: NativeContextMenuItem[] = [
{
disabled: !canEdit,
@@ -101,7 +100,7 @@ export const useRecentItemDropdownMenu = (item: RecentItem) => {
sfSymbol: 'trash',
},
];
- return items as MenuProps['items'];
+ return items as DropdownItem[];
}, [canEdit, t, item.title, handleRename, handleDelete, transferMenuItems]);
return { dropdownMenu };
diff --git a/src/features/Home/__tests__/portraitVisibility.test.tsx b/src/features/Home/__tests__/portraitVisibility.test.tsx
index 05ec317a4ac..3b18e573e78 100644
--- a/src/features/Home/__tests__/portraitVisibility.test.tsx
+++ b/src/features/Home/__tests__/portraitVisibility.test.tsx
@@ -214,7 +214,8 @@ describe('Home portrait visibility', () => {
describe('Home input banner queue', () => {
it('reveals the next available segment after dismissing the current one', async () => {
vi.resetModules();
- vi.doMock('@lobehub/ui/base-ui', () => ({
+ vi.doMock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
ActionIcon: ({
onClick,
title,
@@ -256,7 +257,7 @@ describe('Home input banner queue', () => {
expect(container.querySelector('[data-home-input-banner]')).toHaveTextContent('Second');
expect(screen.getByTestId('second')).toBeVisible();
} finally {
- vi.doUnmock('@lobehub/ui/base-ui');
+ vi.doUnmock('@lobehub/ui');
useGlobalStore.setState((state) => ({
isStatusInit: originalStatusInit,
status: { ...state.status, dismissedBannerIds: originalDismissedIds },
diff --git a/src/features/Home/components/CountBadge.tsx b/src/features/Home/components/CountBadge.tsx
index c01ab4caa65..ff96db125ab 100644
--- a/src/features/Home/components/CountBadge.tsx
+++ b/src/features/Home/components/CountBadge.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { homeType } from './homeType';
diff --git a/src/features/Home/components/GroupBlock/index.tsx b/src/features/Home/components/GroupBlock/index.tsx
index 2bbd98abc78..edbe1855f88 100644
--- a/src/features/Home/components/GroupBlock/index.tsx
+++ b/src/features/Home/components/GroupBlock/index.tsx
@@ -1,7 +1,5 @@
import { type FlexboxProps, type IconProps } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo, Suspense, useState } from 'react';
diff --git a/src/features/Home/components/RailCard/index.tsx b/src/features/Home/components/RailCard/index.tsx
index 33c111c69af..5d98326b680 100644
--- a/src/features/Home/components/RailCard/index.tsx
+++ b/src/features/Home/components/RailCard/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/Home/components/RunningGlyph.tsx b/src/features/Home/components/RunningGlyph.tsx
index b2dd0ffdc15..fc9373c20a5 100644
--- a/src/features/Home/components/RunningGlyph.tsx
+++ b/src/features/Home/components/RunningGlyph.tsx
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import RingLoadingIcon from '@/components/RingLoading';
diff --git a/src/features/Home/components/Time.tsx b/src/features/Home/components/Time.tsx
index 2ff8cd155dc..daec4788bc0 100644
--- a/src/features/Home/components/Time.tsx
+++ b/src/features/Home/components/Time.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useActivityTime } from '@/hooks/useActivityTime';
diff --git a/src/features/Home/components/homeType.ts b/src/features/Home/components/homeType.ts
index 1c9e7219e3f..68288bf04ef 100644
--- a/src/features/Home/components/homeType.ts
+++ b/src/features/Home/components/homeType.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
/**
* The home surface's type scale. Every text role on the page resolves to exactly
diff --git a/src/features/Home/index.tsx b/src/features/Home/index.tsx
index 3d03641a3e8..b9fdfa533ea 100644
--- a/src/features/Home/index.tsx
+++ b/src/features/Home/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { lazy, memo, Suspense, useCallback, useEffect, useState } from 'react';
import { useHomeUsageWidgetActive } from '@/business/client/features/HomeUsageWidget';
diff --git a/src/features/HomeInbox/AuthorChip.tsx b/src/features/HomeInbox/AuthorChip.tsx
index 46ec73ef1ee..63b506dd06f 100644
--- a/src/features/HomeInbox/AuthorChip.tsx
+++ b/src/features/HomeInbox/AuthorChip.tsx
@@ -1,7 +1,5 @@
import { DEFAULT_USER_AVATAR_URL } from '@lobechat/const';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { AlarmClockIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/GoalsRailCard.tsx b/src/features/HomeInbox/GoalsRailCard.tsx
index 00a8c381257..85e3280c0bc 100644
--- a/src/features/HomeInbox/GoalsRailCard.tsx
+++ b/src/features/HomeInbox/GoalsRailCard.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRightIcon, FlagIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/InboxBriefCard.tsx b/src/features/HomeInbox/InboxBriefCard.tsx
index 9d8a736412d..9ac22a91604 100644
--- a/src/features/HomeInbox/InboxBriefCard.tsx
+++ b/src/features/HomeInbox/InboxBriefCard.tsx
@@ -1,8 +1,6 @@
import { DEFAULT_AVATAR, INBOX_SESSION_ID } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Block, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { Target } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/MarkAllReadButton.tsx b/src/features/HomeInbox/MarkAllReadButton.tsx
index efee490fdea..ec5023e6e01 100644
--- a/src/features/HomeInbox/MarkAllReadButton.tsx
+++ b/src/features/HomeInbox/MarkAllReadButton.tsx
@@ -1,4 +1,4 @@
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, toast } from '@lobehub/ui';
import { CheckCheckIcon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/NeedsYouRailCard.tsx b/src/features/HomeInbox/NeedsYouRailCard.tsx
index 5f5a2f9473c..8d608f569d7 100644
--- a/src/features/HomeInbox/NeedsYouRailCard.tsx
+++ b/src/features/HomeInbox/NeedsYouRailCard.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox } from '@lobehub/ui';
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/NewsChatActions.tsx b/src/features/HomeInbox/NewsChatActions.tsx
index bed88b1e142..b9251528b4b 100644
--- a/src/features/HomeInbox/NewsChatActions.tsx
+++ b/src/features/HomeInbox/NewsChatActions.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox } from '@lobehub/ui';
import { MessageSquarePlus, Workflow } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/NewsList.tsx b/src/features/HomeInbox/NewsList.tsx
index 703a7308b14..877ddea1e0c 100644
--- a/src/features/HomeInbox/NewsList.tsx
+++ b/src/features/HomeInbox/NewsList.tsx
@@ -1,7 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { lazy, memo, Suspense, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/RunningElapsedTime.tsx b/src/features/HomeInbox/RunningElapsedTime.tsx
index 002e9253255..91aa39948c0 100644
--- a/src/features/HomeInbox/RunningElapsedTime.tsx
+++ b/src/features/HomeInbox/RunningElapsedTime.tsx
@@ -1,5 +1,5 @@
import { formatElapsedClockTime } from '@lobechat/utils';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
interface RunningElapsedTimeProps {
diff --git a/src/features/HomeInbox/RunningTasksCard.tsx b/src/features/HomeInbox/RunningTasksCard.tsx
index 496e4a081d7..99c44c5062f 100644
--- a/src/features/HomeInbox/RunningTasksCard.tsx
+++ b/src/features/HomeInbox/RunningTasksCard.tsx
@@ -1,7 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, Button, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/TopicRow.tsx b/src/features/HomeInbox/TopicRow.tsx
index 523d07c6a69..db1d514e244 100644
--- a/src/features/HomeInbox/TopicRow.tsx
+++ b/src/features/HomeInbox/TopicRow.tsx
@@ -1,8 +1,6 @@
import { AGENT_CHAT_TOPIC_URL, GROUP_CHAT_TOPIC_URL } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useAgentDisplayMeta } from '@/features/AgentTasks/shared/useAgentDisplayMeta';
diff --git a/src/features/HomeInbox/UnreadTopicList.tsx b/src/features/HomeInbox/UnreadTopicList.tsx
index 1b2199c099e..79e37c5198a 100644
--- a/src/features/HomeInbox/UnreadTopicList.tsx
+++ b/src/features/HomeInbox/UnreadTopicList.tsx
@@ -1,9 +1,17 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import type { ConversationContext } from '@lobechat/types';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Avatar, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Text,
+} from '@lobehub/ui';
import { ChevronDownIcon, ChevronRightIcon, MessageSquarePlus } from 'lucide-react';
import { lazy, memo, Suspense, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeInbox/index.tsx b/src/features/HomeInbox/index.tsx
index a6623b853be..d38a2793aef 100644
--- a/src/features/HomeInbox/index.tsx
+++ b/src/features/HomeInbox/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Segmented } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cx, Flexbox, Segmented } from '@lobehub/ui';
import dayjs from 'dayjs';
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
import { Fragment, memo, type ReactNode, useMemo, useState } from 'react';
diff --git a/src/features/HomeLayout/index.tsx b/src/features/HomeLayout/index.tsx
index d7e12d4e06e..1a2f69315e0 100644
--- a/src/features/HomeLayout/index.tsx
+++ b/src/features/HomeLayout/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { useTheme } from 'antd-style';
+import { Flexbox, useTheme } from '@lobehub/ui';
import { Activity, type FC, type ReactNode, useEffect, useMemo, useState } from 'react';
import { Outlet, useLocation } from 'react-router';
diff --git a/src/features/HomeLayout/style.ts b/src/features/HomeLayout/style.ts
index 288e2dd138c..7f9929364bb 100644
--- a/src/features/HomeLayout/style.ts
+++ b/src/features/HomeLayout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Absolutely positioned container, fills parent
diff --git a/src/features/HomeSidebar/Body/Agent/Actions.tsx b/src/features/HomeSidebar/Body/Agent/Actions.tsx
index fdf8d024b24..54e9d94a7ed 100644
--- a/src/features/HomeSidebar/Body/Agent/Actions.tsx
+++ b/src/features/HomeSidebar/Body/Agent/Actions.tsx
@@ -1,12 +1,11 @@
-import type { MenuProps } from '@lobehub/ui';
-import { DropdownMenu, Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { ActionIcon, DropdownMenu, Flexbox } from '@lobehub/ui';
import { MoreHorizontalIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
interface ActionsProps {
- addMenuItems: MenuProps['items'];
- dropdownMenu: MenuProps['items'];
+ addMenuItems: DropdownItem[];
+ dropdownMenu: DropdownItem[];
isLoading?: boolean;
}
diff --git a/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx b/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx
index 42a689ee6ab..b09f5848d41 100644
--- a/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx
+++ b/src/features/HomeSidebar/Body/Agent/CreateAgentButton.tsx
@@ -1,8 +1,19 @@
'use client';
-import { Block, Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, DropdownMenu, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Spin,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { ChevronDownIcon, PlusIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx
index 8bed4b60411..73c35f8dff6 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/index.tsx
@@ -1,8 +1,6 @@
import { GROUP_CHAT_URL } from '@lobechat/const';
import { type SidebarAgentItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Spin, Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar, Flexbox, Spin, Tag } from '@lobehub/ui';
import { PinIcon } from 'lucide-react';
import { type CSSProperties, type DragEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/useDropdownMenu.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/useDropdownMenu.tsx
index 063a5615ae8..0fd16372413 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/useDropdownMenu.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentGroupItem/useDropdownMenu.tsx
@@ -1,6 +1,5 @@
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import { LucideCopy, Pen, PictureInPicture2Icon, Pin, PinOff, Trash } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -37,7 +36,7 @@ export const useGroupDropdownMenu = ({
pinned,
title,
userId,
-}: UseGroupDropdownMenuParams): (() => MenuProps['items']) => {
+}: UseGroupDropdownMenuParams): (() => DropdownItem[]) => {
const { t } = useTranslation(['chat', 'common']);
const { allowed: canEdit } = usePermission('edit_own_content');
@@ -155,7 +154,7 @@ export const useGroupDropdownMenu = ({
},
]
: []),
- ] as MenuProps['items'],
+ ] as DropdownItem[],
[
anchor,
avatar,
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx
index 7bca8b95322..1835e8fc5a7 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentItem/index.tsx
@@ -1,7 +1,6 @@
import type { SidebarAgentItem } from '@lobechat/types';
import { agentDisplayName, agentSecondaryDisplayName } from '@lobechat/types';
-import { ActionIcon, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Spin } from '@lobehub/ui';
import { PinIcon } from 'lucide-react';
import { type CSSProperties, type DragEvent } from 'react';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.test.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.test.tsx
index b6eea19fcff..8b7df4c775c 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.test.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.test.tsx
@@ -43,7 +43,7 @@ vi.mock('antd', async (importOriginal) => {
};
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: mocks.confirmModal,
toast: { error: mocks.toastError, success: vi.fn() },
diff --git a/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.tsx b/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.tsx
index 7154422d030..b22e2052de5 100644
--- a/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/AgentItem/useDropdownMenu.tsx
@@ -5,9 +5,8 @@ import {
type SidebarAgentLabel,
type SidebarVisibility,
} from '@lobechat/types';
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import {
Check,
@@ -89,7 +88,7 @@ export const useAgentDropdownMenu = ({
title,
userId,
visibility,
-}: UseAgentDropdownMenuParams): (() => MenuProps['items']) => {
+}: UseAgentDropdownMenuParams): (() => DropdownItem[]) => {
const { t } = useTranslation(['chat', 'common', 'setting']);
const navigate = useWorkspaceAwareNavigate();
@@ -584,7 +583,7 @@ export const useAgentDropdownMenu = ({
: []),
]
: []),
- ] as MenuProps['items'],
+ ] as DropdownItem[],
[
activeWorkspaceId,
canCreate,
diff --git a/src/features/HomeSidebar/Body/Agent/List/Group/Actions.tsx b/src/features/HomeSidebar/Body/Agent/List/Group/Actions.tsx
index cd1c09338e9..9210ca9b377 100644
--- a/src/features/HomeSidebar/Body/Agent/List/Group/Actions.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/Group/Actions.tsx
@@ -1,11 +1,10 @@
-import { type MenuProps } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
interface ActionsProps {
- dropdownMenu: MenuProps['items'];
+ dropdownMenu: DropdownItem[];
isLoading?: boolean;
}
diff --git a/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx b/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx
index 86bbdf273bc..4ee3d013a1f 100644
--- a/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/Group/Item.tsx
@@ -1,15 +1,18 @@
import { type SidebarGroup } from '@lobechat/types';
-import { ContextMenuTrigger, Flexbox, Icon } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
accordionStyles,
AccordionTrigger,
+ ContextMenuTrigger,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Icon,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+} from '@lobehub/ui';
import { HashIcon } from 'lucide-react';
import React, { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/HomeSidebar/Body/Agent/List/Group/index.tsx b/src/features/HomeSidebar/Body/Agent/List/Group/index.tsx
index ee0fcfdf8ed..5f0bcd9ef9b 100644
--- a/src/features/HomeSidebar/Body/Agent/List/Group/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/Group/index.tsx
@@ -1,5 +1,5 @@
import { type SidebarGroup } from '@lobechat/types';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot } from '@lobehub/ui';
import React, { memo } from 'react';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
diff --git a/src/features/HomeSidebar/Body/Agent/List/Group/useDropdownMenu.tsx b/src/features/HomeSidebar/Body/Agent/List/Group/useDropdownMenu.tsx
index 3bda4416f98..f6ba4d53f37 100644
--- a/src/features/HomeSidebar/Body/Agent/List/Group/useDropdownMenu.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/Group/useDropdownMenu.tsx
@@ -1,8 +1,7 @@
import type { SFSymbol } from '@lobechat/electron-client-ipc';
import { type SidebarVisibility } from '@lobechat/types';
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import { EyeOffIcon, GlobeIcon } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -33,7 +32,7 @@ export const useGroupDropdownMenu = ({
name,
openConfigGroupModal,
visibility,
-}: GroupDropdownMenuProps): MenuProps['items'] => {
+}: GroupDropdownMenuProps): DropdownItem[] => {
const { t } = useTranslation(['common', 'chat']);
const { allowed: canEdit } = usePermission('edit_own_content');
@@ -152,7 +151,7 @@ export const useGroupDropdownMenu = ({
deleteItem,
]
: [configItem]),
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
anchor,
isCustomGroup,
diff --git a/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx b/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx
index e01d217f8f7..b41cc7f6dd0 100644
--- a/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/InboxItem.tsx
@@ -2,8 +2,7 @@
import { DEFAULT_INBOX_AVATAR } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Avatar, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, Spin } from '@lobehub/ui';
import { type CSSProperties } from 'react';
import { memo } from 'react';
diff --git a/src/features/HomeSidebar/Body/Agent/List/Item/Actions.tsx b/src/features/HomeSidebar/Body/Agent/List/Item/Actions.tsx
index 6b19c4604cb..6409785f4ac 100644
--- a/src/features/HomeSidebar/Body/Agent/List/Item/Actions.tsx
+++ b/src/features/HomeSidebar/Body/Agent/List/Item/Actions.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/HomeSidebar/Body/Agent/ModalProvider.tsx b/src/features/HomeSidebar/Body/Agent/ModalProvider.tsx
index 6fef152d3d0..c180b8e6728 100644
--- a/src/features/HomeSidebar/Body/Agent/ModalProvider.tsx
+++ b/src/features/HomeSidebar/Body/Agent/ModalProvider.tsx
@@ -1,7 +1,7 @@
'use client';
import { AGENT_CHAT_URL } from '@lobechat/const';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import {
createContext,
lazy,
diff --git a/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/GroupItem.tsx b/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/GroupItem.tsx
index 91267d1ae75..87c6ecefe68 100644
--- a/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/GroupItem.tsx
+++ b/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/GroupItem.tsx
@@ -1,6 +1,11 @@
-import { EditableText, SortableList } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ createStaticStyles,
+ EditableText,
+ SortableList,
+ toast,
+} from '@lobehub/ui';
import { Eye, EyeOff, PencilLine, Trash } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/index.tsx b/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/index.tsx
index d4e486384e1..7c42dc5b972 100644
--- a/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/Modals/ConfigGroupModal/index.tsx
@@ -1,7 +1,4 @@
-import { type ModalProps, SortableList } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, SortableList } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Plus } from 'lucide-react';
import { memo, useState } from 'react';
@@ -28,7 +25,9 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
`,
}));
-interface ConfigGroupModalProps extends ModalProps {
+interface ConfigGroupModalProps {
+ onCancel?: () => void;
+ open?: boolean;
scope?: 'private' | 'public';
}
diff --git a/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx b/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx
index 6d93a3bc921..5c30b9bbfbb 100644
--- a/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx
+++ b/src/features/HomeSidebar/Body/Agent/Modals/CreateGroupModal.tsx
@@ -1,12 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Body/Agent/index.tsx b/src/features/HomeSidebar/Body/Agent/index.tsx
index f95de9ab826..458f4554d1e 100644
--- a/src/features/HomeSidebar/Body/Agent/index.tsx
+++ b/src/features/HomeSidebar/Body/Agent/index.tsx
@@ -1,6 +1,5 @@
'use client';
-import { ContextMenuTrigger, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -8,10 +7,12 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ ContextMenuTrigger,
+ cx,
+ Flexbox,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import React, { memo, type MouseEvent, Suspense, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Body/Agent/useDropdownMenu.tsx b/src/features/HomeSidebar/Body/Agent/useDropdownMenu.tsx
index 3ee0eadd822..0da9bb41ea6 100644
--- a/src/features/HomeSidebar/Body/Agent/useDropdownMenu.tsx
+++ b/src/features/HomeSidebar/Body/Agent/useDropdownMenu.tsx
@@ -1,4 +1,4 @@
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
import { Hash, LucideCheck, SlidersHorizontalIcon } from 'lucide-react';
import { useMemo } from 'react';
@@ -16,7 +16,7 @@ interface AgentActionsDropdownMenuProps {
export const useAgentActionsDropdownMenu = ({
openConfigGroupModal,
-}: AgentActionsDropdownMenuProps): MenuProps['items'] => {
+}: AgentActionsDropdownMenuProps): DropdownItem[] => {
const { t } = useTranslation('common');
const agentPageSize = useGlobalStore(systemStatusSelectors.agentPageSize);
@@ -57,7 +57,7 @@ export const useAgentActionsDropdownMenu = ({
label: t('navPanel.customizeSidebar'),
onClick: () => openCustomizeSidebarModal(),
},
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
agentPageSize,
updateSystemStatus,
diff --git a/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx b/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx
index 716b133743f..dda660392a2 100644
--- a/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx
+++ b/src/features/HomeSidebar/Body/CustomizeSidebarModal.tsx
@@ -20,7 +20,7 @@ import {
verticalListSortingStrategy,
} from '@dnd-kit/sortable';
import { CSS } from '@dnd-kit/utilities';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -28,8 +28,7 @@ import {
type ModalInstance,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { ArrowDownToLine, Eye, EyeOff, GripVertical, PinIcon, RotateCcw } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/features/HomeSidebar/Body/Private/index.tsx b/src/features/HomeSidebar/Body/Private/index.tsx
index 7b967adc3c1..07331dbecee 100644
--- a/src/features/HomeSidebar/Body/Private/index.tsx
+++ b/src/features/HomeSidebar/Body/Private/index.tsx
@@ -1,6 +1,5 @@
'use client';
-import { ContextMenuTrigger, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -8,10 +7,12 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ ContextMenuTrigger,
+ cx,
+ Flexbox,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { ArrowRight } from 'lucide-react';
import React, { memo, type MouseEvent, Suspense, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Body/Private/useDropdownMenu.tsx b/src/features/HomeSidebar/Body/Private/useDropdownMenu.tsx
index 0e8b107bf3b..b1ead8b2e47 100644
--- a/src/features/HomeSidebar/Body/Private/useDropdownMenu.tsx
+++ b/src/features/HomeSidebar/Body/Private/useDropdownMenu.tsx
@@ -1,4 +1,4 @@
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
import { ArrowDownIcon, ArrowUpIcon, Hash, LucideCheck, SlidersHorizontalIcon } from 'lucide-react';
import { useCallback, useMemo } from 'react';
@@ -18,7 +18,7 @@ interface PrivateActionsDropdownMenuProps {
export const usePrivateActionsDropdownMenu = ({
openConfigGroupModal,
-}: PrivateActionsDropdownMenuProps): MenuProps['items'] => {
+}: PrivateActionsDropdownMenuProps): DropdownItem[] => {
const { t } = useTranslation('common');
const activeWorkspaceId = useActiveWorkspaceId();
@@ -93,7 +93,7 @@ export const usePrivateActionsDropdownMenu = ({
label: t('navPanel.customizeSidebar'),
onClick: () => openCustomizeSidebarModal(),
},
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
privateAgentPageSize,
updateSystemStatus,
diff --git a/src/features/HomeSidebar/Body/Project/ProjectItem.tsx b/src/features/HomeSidebar/Body/Project/ProjectItem.tsx
index 7946d0dd567..fb9f1b1d136 100644
--- a/src/features/HomeSidebar/Body/Project/ProjectItem.tsx
+++ b/src/features/HomeSidebar/Body/Project/ProjectItem.tsx
@@ -1,8 +1,7 @@
'use client';
-import type { MenuProps } from '@lobehub/ui';
-import { DropdownMenu, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar, confirmModal, toast } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { ActionIcon, Avatar, confirmModal, DropdownMenu, Icon, toast } from '@lobehub/ui';
import { FolderClosedIcon, MoreHorizontalIcon, PencilIcon, TrashIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -38,7 +37,7 @@ const ProjectItem = memo<ProjectItemProps>(({ project }) => {
}
};
- const menuItems: MenuProps['items'] = canManage
+ const menuItems: DropdownItem[] = canManage
? [
{
icon: <Icon icon={PencilIcon} />,
diff --git a/src/features/HomeSidebar/Body/Project/index.tsx b/src/features/HomeSidebar/Body/Project/index.tsx
index 78ebc5be2dc..bf49f055e2d 100644
--- a/src/features/HomeSidebar/Body/Project/index.tsx
+++ b/src/features/HomeSidebar/Body/Project/index.tsx
@@ -7,9 +7,9 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ cx,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { ArrowRightIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Body/index.test.tsx b/src/features/HomeSidebar/Body/index.test.tsx
index 0c4106eb821..de9e60ad021 100644
--- a/src/features/HomeSidebar/Body/index.test.tsx
+++ b/src/features/HomeSidebar/Body/index.test.tsx
@@ -21,30 +21,40 @@ const mocks = vi.hoisted(() => ({
updateSystemStatus: vi.fn(),
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Flexbox: ({ children }: { children: React.ReactNode }) => (
- <div data-testid="sidebar-body">{children}</div>
- ),
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- AccordionRoot: ({
- children,
- value,
- onValueChange,
- }: {
- children: React.ReactNode;
- onValueChange?: (keys: string[]) => void;
- value?: string[];
- }) => (
- <div data-expanded-keys={JSON.stringify(value)} data-testid="sidebar-accordion">
- <button aria-label="collapse recents" onClick={() => onValueChange?.(['agent'])} />
- {children}
- </div>
- ),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Flexbox: ({ children }: { children: React.ReactNode }) => (
+ <div data-testid="sidebar-body">{children}</div>
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ AccordionRoot: ({
+ children,
+ value,
+ onValueChange,
+ }: {
+ children: React.ReactNode;
+ onValueChange?: (keys: string[]) => void;
+ value?: string[];
+ }) => (
+ <div data-expanded-keys={JSON.stringify(value)} data-testid="sidebar-accordion">
+ <button aria-label="collapse recents" onClick={() => onValueChange?.(['agent'])} />
+ {children}
+ </div>
+ ),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-router', () => ({
Link: ({ children, to }: { children: React.ReactNode; to: string }) => (
diff --git a/src/features/HomeSidebar/Body/index.tsx b/src/features/HomeSidebar/Body/index.tsx
index a471eeebb7b..690f964cbf7 100644
--- a/src/features/HomeSidebar/Body/index.tsx
+++ b/src/features/HomeSidebar/Body/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import type { MenuProps } from '@lobehub/ui';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { AccordionRoot, ActionIcon } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { AccordionRoot, ActionIcon, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
import { EyeOffIcon, MoreHorizontalIcon, SlidersHorizontalIcon } from 'lucide-react';
import type { Key, ReactElement } from 'react';
import { memo, useCallback, useMemo } from 'react';
@@ -107,7 +106,7 @@ const Body = memo(() => {
);
const getContextMenuItems = useCallback(
- (key: string): MenuProps['items'] => {
+ (key: string): DropdownItem[] => {
const items: NativeContextMenuItem[] = [
{
icon: <Icon icon={EyeOffIcon} />,
@@ -125,7 +124,7 @@ const Body = memo(() => {
sfSymbol: 'gearshape',
},
];
- return items as MenuProps['items'];
+ return items as DropdownItem[];
},
[t, hideSection],
);
diff --git a/src/features/HomeSidebar/Footer/index.tsx b/src/features/HomeSidebar/Footer/index.tsx
index e4eab4d6b84..ed8b463930e 100644
--- a/src/features/HomeSidebar/Footer/index.tsx
+++ b/src/features/HomeSidebar/Footer/index.tsx
@@ -1,9 +1,8 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { type MenuProps } from '@lobehub/ui';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { ActionIcon, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
import { DiscordIcon, GithubIcon } from '@lobehub/ui/icons';
import {
Book,
@@ -34,7 +33,7 @@ import { serverConfigSelectors, useServerConfigStore } from '@/store/serverConfi
import { useUserStore } from '@/store/user';
import { userGeneralSettingsSelectors } from '@/store/user/slices/settings/selectors/general';
-type FooterMenuItems = NonNullable<MenuProps['items']>;
+type FooterMenuItems = NonNullable<DropdownItem[]>;
/**
* Wrap each clickable menu item with a unified click tracker, preserving any
@@ -108,7 +107,7 @@ const Footer = memo(() => {
}, []);
const { helpMenuItems, trackedMenuKeys } = useMemo<{
- helpMenuItems: MenuProps['items'];
+ helpMenuItems: DropdownItem[];
trackedMenuKeys: string[];
}>(() => {
const ownItems: FooterMenuItems = [
diff --git a/src/features/HomeSidebar/Header/components/InboxButton.tsx b/src/features/HomeSidebar/Header/components/InboxButton.tsx
index 0df608ef31b..d849648011d 100644
--- a/src/features/HomeSidebar/Header/components/InboxButton.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, Badge } from '@lobehub/ui/base-ui';
+import { ActionIcon, Badge } from '@lobehub/ui';
import { BellIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx b/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx
index f5f8d44e27e..7a55c04be5a 100644
--- a/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx
@@ -1,9 +1,7 @@
'use client';
import type { NotificationMetadata } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { BellOffIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsx b/src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsx
index 5062f864804..17dcfd30048 100644
--- a/src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal, Text, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, createModal, Flexbox, Text, useModalContext } from '@lobehub/ui';
import dayjs from 'dayjs';
import { lazy, memo, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsx b/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsx
index 28f79d705cf..28cffbdc3e9 100644
--- a/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsx
@@ -2,9 +2,18 @@
import { DEFAULT_USER_AVATAR_URL } from '@lobechat/const';
import type { NotificationMetadata } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, ContextMenuTrigger, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Avatar,
+ Block,
+ Button,
+ ContextMenuTrigger,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Text,
+ useModalContext,
+} from '@lobehub/ui';
import { ArchiveIcon, BellIcon, ImageIcon, MegaphoneIcon, VideoIcon } from 'lucide-react';
import type { MouseEvent } from 'react';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/HomeSidebar/Header/components/InboxModal/index.tsx b/src/features/HomeSidebar/Header/components/InboxModal/index.tsx
index 32a61a24892..e693359d2f0 100644
--- a/src/features/HomeSidebar/Header/components/InboxModal/index.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxModal/index.tsx
@@ -1,19 +1,20 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Button,
createModal,
+ createStaticStyles,
+ cssVar,
DropdownMenu,
+ Flexbox,
ModalClose,
ModalHeader,
ModalTitle,
Tabs,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
ArchiveIcon,
diff --git a/src/features/HomeSidebar/Header/components/Nav.tsx b/src/features/HomeSidebar/Header/components/Nav.tsx
index a84f3b297d3..2c021ebdc3a 100644
--- a/src/features/HomeSidebar/Header/components/Nav.tsx
+++ b/src/features/HomeSidebar/Header/components/Nav.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/Header/components/User.tsx b/src/features/HomeSidebar/Header/components/User.tsx
index 1081f41f4d0..856688a9384 100644
--- a/src/features/HomeSidebar/Header/components/User.tsx
+++ b/src/features/HomeSidebar/Header/components/User.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDownIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx b/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx
index 0e42b9745b5..b8d8e8354e6 100644
--- a/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx
+++ b/src/features/HomeSidebar/hooks/useCreateMenuItems.tsx
@@ -1,7 +1,6 @@
import type { SFSymbol } from '@lobechat/electron-client-ipc';
import type { ItemType } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text, toast } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Text, toast } from '@lobehub/ui';
import { GroupBotSquareIcon } from '@lobehub/ui/icons';
import {
BotIcon,
diff --git a/src/features/HomeSidebar/hooks/useCreateModal.test.tsx b/src/features/HomeSidebar/hooks/useCreateModal.test.tsx
index c56fb127f01..c516c32553b 100644
--- a/src/features/HomeSidebar/hooks/useCreateModal.test.tsx
+++ b/src/features/HomeSidebar/hooks/useCreateModal.test.tsx
@@ -1,4 +1,4 @@
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';
import type { ReactNode } from 'react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -48,32 +48,70 @@ vi.mock('@/libs/analytics/client', () => ({
analyticsClient: { track: analyticsTrack },
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Button: ({
- children,
- disabled,
- loading,
- onClick,
- type,
- }: {
- children?: ReactNode;
- disabled?: boolean;
- loading?: boolean;
- onClick?: () => void;
- type?: string;
- }) => (
- <button
- data-button-loading={loading ? 'true' : undefined}
- data-button-type={type}
- disabled={disabled}
- type="button"
- onClick={onClick}
- >
- {children}
- </button>
- ),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Button: ({
+ children,
+ disabled,
+ loading,
+ onClick,
+ type,
+ }: {
+ children?: ReactNode;
+ disabled?: boolean;
+ loading?: boolean;
+ onClick?: () => void;
+ type?: string;
+ }) => (
+ <button
+ data-button-loading={loading ? 'true' : undefined}
+ data-button-type={type}
+ disabled={disabled}
+ type="button"
+ onClick={onClick}
+ >
+ {children}
+ </button>
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Button: ({
+ children,
+ disabled,
+ loading,
+ onClick,
+ type,
+ }: {
+ children?: ReactNode;
+ disabled?: boolean;
+ loading?: boolean;
+ onClick?: () => void;
+ type?: string;
+ }) => (
+ <button
+ data-button-loading={loading ? 'true' : undefined}
+ data-button-type={type}
+ disabled={disabled}
+ type="button"
+ onClick={onClick}
+ >
+ {children}
+ </button>
+ ),
+ createModal: vi.fn(),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('@/services/marketApi', () => ({
marketApiService: {
@@ -87,34 +125,6 @@ vi.mock('@/services/skill', () => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Button: ({
- children,
- disabled,
- loading,
- onClick,
- type,
- }: {
- children?: ReactNode;
- disabled?: boolean;
- loading?: boolean;
- onClick?: () => void;
- type?: string;
- }) => (
- <button
- data-button-loading={loading ? 'true' : undefined}
- data-button-type={type}
- disabled={disabled}
- type="button"
- onClick={onClick}
- >
- {children}
- </button>
- ),
- createModal: vi.fn(),
-}));
-
vi.mock('react-i18next', () => ({
useTranslation: (namespace: string) => ({
t: (key: string) =>
diff --git a/src/features/HomeSidebar/hooks/useCreateModal.tsx b/src/features/HomeSidebar/hooks/useCreateModal.tsx
index 7b16bc46899..ef3dc558eed 100644
--- a/src/features/HomeSidebar/hooks/useCreateModal.tsx
+++ b/src/features/HomeSidebar/hooks/useCreateModal.tsx
@@ -1,6 +1,5 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, createModal, type ModalInstance, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox } from '@lobehub/ui';
+import { ActionIcon, Button, createModal, type ModalInstance, Text } from '@lobehub/ui';
import { Blocks, CheckCircle2, Lightbulb, PencilLineIcon, RefreshCw, X } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HomeSidebar/hooks/useSessionGroupMenuItems.tsx b/src/features/HomeSidebar/hooks/useSessionGroupMenuItems.tsx
index ebacbce498d..1fafb27f5c3 100644
--- a/src/features/HomeSidebar/hooks/useSessionGroupMenuItems.tsx
+++ b/src/features/HomeSidebar/hooks/useSessionGroupMenuItems.tsx
@@ -1,7 +1,6 @@
import type { SFSymbol } from '@lobechat/electron-client-ipc';
import type { ItemType } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import { FolderCogIcon, FolderPenIcon, Trash } from 'lucide-react';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HotkeyHelperPanel/HotkeyContent.tsx b/src/features/HotkeyHelperPanel/HotkeyContent.tsx
index 7b8824a1e6e..ab8d6e88e87 100644
--- a/src/features/HotkeyHelperPanel/HotkeyContent.tsx
+++ b/src/features/HotkeyHelperPanel/HotkeyContent.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Hotkey } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Hotkey } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/HotkeyHelperPanel/index.tsx b/src/features/HotkeyHelperPanel/index.tsx
index d60f21f591e..473126e6a96 100644
--- a/src/features/HotkeyHelperPanel/index.tsx
+++ b/src/features/HotkeyHelperPanel/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { HotkeyGroupEnum } from '@lobechat/const/hotkeys';
-import { Grid, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Grid, Icon, Tabs } from '@lobehub/ui';
import { MessageSquare, Settings2 } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Integrations/Github/Automation.tsx b/src/features/Integrations/Github/Automation.tsx
index b80b537eca9..4d995ef781b 100644
--- a/src/features/Integrations/Github/Automation.tsx
+++ b/src/features/Integrations/Github/Automation.tsx
@@ -1,9 +1,7 @@
'use client';
import type { GithubIntegrationPreference } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Switch, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Icon, Switch, Text } from '@lobehub/ui';
import {
CircleXIcon,
GitMergeIcon,
diff --git a/src/features/Integrations/Github/Connections.tsx b/src/features/Integrations/Github/Connections.tsx
index e813b11ff57..58fb0a6b97a 100644
--- a/src/features/Integrations/Github/Connections.tsx
+++ b/src/features/Integrations/Github/Connections.tsx
@@ -1,9 +1,16 @@
'use client';
import type { ScmInstallationItem } from '@lobechat/database/schemas';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, DropdownMenu, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Avatar,
+ Block,
+ Button,
+ createStaticStyles,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Text,
+} from '@lobehub/ui';
import { ChevronDownIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Integrations/Github/index.tsx b/src/features/Integrations/Github/index.tsx
index 9a24ba949f5..9d6f5bccd81 100644
--- a/src/features/Integrations/Github/index.tsx
+++ b/src/features/Integrations/Github/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, confirmModal, Skeleton, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Avatar,
+ Block,
+ confirmModal,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { ArrowLeftIcon, BookOpenIcon } from 'lucide-react';
import { memo, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Integrations/IntegrationCard.tsx b/src/features/Integrations/IntegrationCard.tsx
index 835ceaf4583..97bc0d6b780 100644
--- a/src/features/Integrations/IntegrationCard.tsx
+++ b/src/features/Integrations/IntegrationCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Block, createStaticStyles, cx, Flexbox, Text } from '@lobehub/ui';
import { type KeyboardEvent, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Integrations/Layout.tsx b/src/features/Integrations/Layout.tsx
index 44cefd5d97b..f35c35fe8ac 100644
--- a/src/features/Integrations/Layout.tsx
+++ b/src/features/Integrations/Layout.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/Integrations/Overview.tsx b/src/features/Integrations/Overview.tsx
index 975aa35f0b6..dce352a6537 100644
--- a/src/features/Integrations/Overview.tsx
+++ b/src/features/Integrations/Overview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Integrations/OverviewSkeleton.tsx b/src/features/Integrations/OverviewSkeleton.tsx
index 6522b67b043..16037a16d35 100644
--- a/src/features/Integrations/OverviewSkeleton.tsx
+++ b/src/features/Integrations/OverviewSkeleton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Block, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { SkeletonBar } from '@/components/Skeleton';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/Item/Action.tsx b/src/features/LibraryModal/AssignKnowledgeBase/Item/Action.tsx
index cf955a332ff..b93a648be6f 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/Item/Action.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/Item/Action.tsx
@@ -1,5 +1,4 @@
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
import { InfoIcon, MoreVerticalIcon, Trash2 } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/Item/MasonryItem.tsx b/src/features/LibraryModal/AssignKnowledgeBase/Item/MasonryItem.tsx
index d7f4067d706..e9a66bebd68 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/Item/MasonryItem.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/Item/MasonryItem.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { LockIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/Item/index.tsx b/src/features/LibraryModal/AssignKnowledgeBase/Item/index.tsx
index 8689ed5f9fb..5c663498de0 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/Item/index.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/Item/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { LockIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/List.tsx b/src/features/LibraryModal/AssignKnowledgeBase/List.tsx
index 2ce02f75db3..03953969c4f 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/List.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/List.tsx
@@ -1,6 +1,5 @@
import { type KnowledgeItem } from '@lobechat/types';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert, Center, Empty, Flexbox, Icon } from '@lobehub/ui';
import { VirtuosoMasonry } from '@virtuoso.dev/masonry';
import { BookOpen, ServerCrash } from 'lucide-react';
import React, { memo, useMemo, useState } from 'react';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/Loading.tsx b/src/features/LibraryModal/AssignKnowledgeBase/Loading.tsx
index 030fd97b82a..4981263c398 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/Loading.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/Loading.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
const Loading = () => {
return (
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/MasonrySkeleton.tsx b/src/features/LibraryModal/AssignKnowledgeBase/MasonrySkeleton.tsx
index dc1bf06b6fc..1fcce11aa0e 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/MasonrySkeleton.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/MasonrySkeleton.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/ViewSwitcher.tsx b/src/features/LibraryModal/AssignKnowledgeBase/ViewSwitcher.tsx
index 887c2b7728b..4b08d4b7ff5 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/ViewSwitcher.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/ViewSwitcher.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox } from '@lobehub/ui';
import { Grid3x3Icon, ListIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/VisibilityTabs.tsx b/src/features/LibraryModal/AssignKnowledgeBase/VisibilityTabs.tsx
index 06e8c15e3a3..1436579b590 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/VisibilityTabs.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/VisibilityTabs.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Icon } from '@lobehub/ui';
import { LockIcon, UsersIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/LibraryModal/AssignKnowledgeBase/index.tsx b/src/features/LibraryModal/AssignKnowledgeBase/index.tsx
index c0aaf7a11a7..6f59f534777 100644
--- a/src/features/LibraryModal/AssignKnowledgeBase/index.tsx
+++ b/src/features/LibraryModal/AssignKnowledgeBase/index.tsx
@@ -1,5 +1,5 @@
import { Flexbox } from '@lobehub/ui';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { memo } from 'react';
diff --git a/src/features/LibraryModal/CreateNew/CreateForm.tsx b/src/features/LibraryModal/CreateNew/CreateForm.tsx
index 19f4fd0b0f4..5fec52f68cd 100644
--- a/src/features/LibraryModal/CreateNew/CreateForm.tsx
+++ b/src/features/LibraryModal/CreateNew/CreateForm.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, TextArea } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Input, TextArea } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/LibraryModal/CreateNew/index.tsx b/src/features/LibraryModal/CreateNew/index.tsx
index 74538521cbe..0b62dd912f2 100644
--- a/src/features/LibraryModal/CreateNew/index.tsx
+++ b/src/features/LibraryModal/CreateNew/index.tsx
@@ -1,4 +1,4 @@
-import { createModal, useModalContext } from '@lobehub/ui/base-ui';
+import { createModal, useModalContext } from '@lobehub/ui';
import { memo, Suspense, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/LibraryModal/FilePicker/index.tsx b/src/features/LibraryModal/FilePicker/index.tsx
index 91c4af8e251..1703b6e712d 100644
--- a/src/features/LibraryModal/FilePicker/index.tsx
+++ b/src/features/LibraryModal/FilePicker/index.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, createModal, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Button,
+ Center,
+ createModal,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Icon,
+ useModalContext,
+} from '@lobehub/ui';
import { t } from 'i18next';
import { FileSearch, ServerCrash } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo } from 'react';
diff --git a/src/features/LocalFile/LocalFile.tsx b/src/features/LocalFile/LocalFile.tsx
index be66f0d0f3f..77580303b96 100644
--- a/src/features/LocalFile/LocalFile.tsx
+++ b/src/features/LocalFile/LocalFile.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Popover } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Popover } from '@lobehub/ui';
import { ExternalLink, EyeIcon, FolderOpen, MessageSquarePlus } from 'lucide-react';
import React from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/LocalFile/LocalFolder.tsx b/src/features/LocalFile/LocalFolder.tsx
index a641ba0e47f..2fd2fca51db 100644
--- a/src/features/LocalFile/LocalFolder.tsx
+++ b/src/features/LocalFile/LocalFolder.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import path from 'path-browserify-esm';
import React from 'react';
diff --git a/src/features/LocalFile/useStartTopicInDirectory.test.ts b/src/features/LocalFile/useStartTopicInDirectory.test.ts
index 84789a39c62..dc2abfeef9c 100644
--- a/src/features/LocalFile/useStartTopicInDirectory.test.ts
+++ b/src/features/LocalFile/useStartTopicInDirectory.test.ts
@@ -23,7 +23,7 @@ vi.mock('@lobechat/const', async (importOriginal) => ({
isDesktop: true,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: mocks.toastError },
}));
diff --git a/src/features/LocalFile/useStartTopicInDirectory.ts b/src/features/LocalFile/useStartTopicInDirectory.ts
index 082c2895aed..d00013fffb1 100644
--- a/src/features/LocalFile/useStartTopicInDirectory.ts
+++ b/src/features/LocalFile/useStartTopicInDirectory.ts
@@ -1,5 +1,5 @@
import { isDesktop } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { use } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCP/MCPDetail/Loading.tsx b/src/features/MCP/MCPDetail/Loading.tsx
index 3fc9eae7d70..66bf70b0481 100644
--- a/src/features/MCP/MCPDetail/Loading.tsx
+++ b/src/features/MCP/MCPDetail/Loading.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const DetailsLoading = memo(() => {
diff --git a/src/features/MCP/MCPDetail/index.tsx b/src/features/MCP/MCPDetail/index.tsx
index 817e5cf09ea..ce6df5bf09c 100644
--- a/src/features/MCP/MCPDetail/index.tsx
+++ b/src/features/MCP/MCPDetail/index.tsx
@@ -1,5 +1,4 @@
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { useTheme } from 'antd-style';
+import { Center, Empty, Flexbox, useTheme } from '@lobehub/ui';
import { Boxes } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCP/MCPInstallProgress/InstallError/ErrorDetails.tsx b/src/features/MCP/MCPInstallProgress/InstallError/ErrorDetails.tsx
index b7b4c50ac3f..b8ab01782b1 100644
--- a/src/features/MCP/MCPInstallProgress/InstallError/ErrorDetails.tsx
+++ b/src/features/MCP/MCPInstallProgress/InstallError/ErrorDetails.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Highlighter, Tag } from '@lobehub/ui';
import * as m from 'motion/react-m';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCP/MCPInstallProgress/InstallError/index.tsx b/src/features/MCP/MCPInstallProgress/InstallError/index.tsx
index 5a5d4da421c..091c1a50b25 100644
--- a/src/features/MCP/MCPInstallProgress/InstallError/index.tsx
+++ b/src/features/MCP/MCPInstallProgress/InstallError/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button } from '@lobehub/ui/base-ui';
+import { Alert, Button, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCP/MCPInstallProgress/MCPConfigForm.tsx b/src/features/MCP/MCPInstallProgress/MCPConfigForm.tsx
index 55433bd1227..df4b538f5f8 100644
--- a/src/features/MCP/MCPInstallProgress/MCPConfigForm.tsx
+++ b/src/features/MCP/MCPInstallProgress/MCPConfigForm.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Markdown } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import * as m from 'motion/react-m';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCP/MCPInstallProgress/MCPDependenciesGuide.tsx b/src/features/MCP/MCPInstallProgress/MCPDependenciesGuide.tsx
index e842c6c5262..38d02faa991 100644
--- a/src/features/MCP/MCPInstallProgress/MCPDependenciesGuide.tsx
+++ b/src/features/MCP/MCPInstallProgress/MCPDependenciesGuide.tsx
@@ -1,6 +1,13 @@
-import { Block, Flexbox, Markdown, Snippet } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Block,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Markdown,
+ Snippet,
+ Text,
+} from '@lobehub/ui';
import { AlertTriangle, CheckCircle, ExternalLink, Terminal } from 'lucide-react';
import * as m from 'motion/react-m';
import { memo } from 'react';
diff --git a/src/features/MCP/MCPInstallProgress/index.tsx b/src/features/MCP/MCPInstallProgress/index.tsx
index 1d196e02015..6a135f1b522 100644
--- a/src/features/MCP/MCPInstallProgress/index.tsx
+++ b/src/features/MCP/MCPInstallProgress/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Progress, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Progress, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import * as m from 'motion/react-m';
import { memo } from 'react';
diff --git a/src/features/MCP/MCPSettings/McpSettingsModal.tsx b/src/features/MCP/MCPSettings/McpSettingsModal.tsx
index 92d330762e4..1a0c02b74d6 100644
--- a/src/features/MCP/MCPSettings/McpSettingsModal.tsx
+++ b/src/features/MCP/MCPSettings/McpSettingsModal.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal } from '@lobehub/ui/base-ui';
+import { Button, createModal, Flexbox } from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import { type RefObject } from 'react';
diff --git a/src/features/MCP/MCPSettings/index.tsx b/src/features/MCP/MCPSettings/index.tsx
index 86ec6c7faa3..11ce71edffb 100644
--- a/src/features/MCP/MCPSettings/index.tsx
+++ b/src/features/MCP/MCPSettings/index.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, Text, toast } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, Input, Text, toast } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { EditIcon, LinkIcon, Settings2Icon, TerminalIcon } from 'lucide-react';
import { useImperativeHandle, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCP/Scores.tsx b/src/features/MCP/Scores.tsx
index 099fe135ff1..b85b28beb44 100644
--- a/src/features/MCP/Scores.tsx
+++ b/src/features/MCP/Scores.tsx
@@ -1,7 +1,15 @@
'use client';
-import { Center, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Tooltip,
+} from '@lobehub/ui';
import { CircleDashedIcon, HammerIcon, LayersIcon, MessageSquareQuoteIcon } from 'lucide-react';
import qs from 'query-string';
import { memo } from 'react';
diff --git a/src/features/MCPPluginDetail/Agents.tsx b/src/features/MCPPluginDetail/Agents.tsx
index 3a3b3aa9b6a..42fff30531c 100644
--- a/src/features/MCPPluginDetail/Agents.tsx
+++ b/src/features/MCPPluginDetail/Agents.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Grid, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Grid, Icon, Text } from '@lobehub/ui';
import { InboxIcon, ServerCrash } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCPPluginDetail/CollapseDesc.tsx b/src/features/MCPPluginDetail/CollapseDesc.tsx
index 75a7cbc9323..b37e1a25a6a 100644
--- a/src/features/MCPPluginDetail/CollapseDesc.tsx
+++ b/src/features/MCPPluginDetail/CollapseDesc.tsx
@@ -1,5 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Text } from '@lobehub/ui';
import { type PropsWithChildren } from 'react';
import { memo } from 'react';
diff --git a/src/features/MCPPluginDetail/Deployment/Platform/index.tsx b/src/features/MCPPluginDetail/Deployment/Platform/index.tsx
index cefff7bda10..75db81f9fb7 100644
--- a/src/features/MCPPluginDetail/Deployment/Platform/index.tsx
+++ b/src/features/MCPPluginDetail/Deployment/Platform/index.tsx
@@ -1,6 +1,5 @@
import { type ConnectionConfig } from '@lobehub/market-types';
-import { Block, Highlighter } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Block, createStaticStyles, cx, Highlighter } from '@lobehub/ui';
import { memo } from 'react';
import { genServerConfig } from '@/features/MCP/utils';
diff --git a/src/features/MCPPluginDetail/Deployment/index.tsx b/src/features/MCPPluginDetail/Deployment/index.tsx
index fd3aa552ca0..108bc195d0e 100644
--- a/src/features/MCPPluginDetail/Deployment/index.tsx
+++ b/src/features/MCPPluginDetail/Deployment/index.tsx
@@ -1,8 +1,20 @@
import { SiApple, SiLinux } from '@icons-pack/react-simple-icons';
import { Microsoft } from '@lobehub/icons';
-import { Block, Empty, Flexbox, Icon, Popover, Snippet } from '@lobehub/ui';
-import { Accordion, ActionIcon, Divider, Steps, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Accordion,
+ ActionIcon,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Divider,
+ Empty,
+ Flexbox,
+ Icon,
+ Popover,
+ Snippet,
+ Steps,
+ Tag,
+} from '@lobehub/ui';
import { startCase } from 'es-toolkit/compat';
import {
CheckIcon,
diff --git a/src/features/MCPPluginDetail/Header.tsx b/src/features/MCPPluginDetail/Header.tsx
index 00ef9ed5a16..a4d49fb683b 100644
--- a/src/features/MCPPluginDetail/Header.tsx
+++ b/src/features/MCPPluginDetail/Header.tsx
@@ -1,9 +1,21 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+ useResponsive,
+} from '@lobehub/ui';
import {
BookmarkIcon,
BookmarkMinusIcon,
diff --git a/src/features/MCPPluginDetail/Nav.tsx b/src/features/MCPPluginDetail/Nav.tsx
index 0a39b21d60c..260a5fde47a 100644
--- a/src/features/MCPPluginDetail/Nav.tsx
+++ b/src/features/MCPPluginDetail/Nav.tsx
@@ -1,9 +1,8 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs, type TabsItem, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
+import { Tabs, type TabsItem, Tag } from '@lobehub/ui';
import {
BookOpenIcon,
BotIcon,
diff --git a/src/features/MCPPluginDetail/Overview/TagList.tsx b/src/features/MCPPluginDetail/Overview/TagList.tsx
index 5a9afaf9488..d2673959fc6 100644
--- a/src/features/MCPPluginDetail/Overview/TagList.tsx
+++ b/src/features/MCPPluginDetail/Overview/TagList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Tag } from '@lobehub/ui';
import qs from 'query-string';
import { memo } from 'react';
diff --git a/src/features/MCPPluginDetail/Overview/index.tsx b/src/features/MCPPluginDetail/Overview/index.tsx
index 57c4d542a2e..12fe20f7858 100644
--- a/src/features/MCPPluginDetail/Overview/index.tsx
+++ b/src/features/MCPPluginDetail/Overview/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Accordion } from '@lobehub/ui/base-ui';
+import { Accordion, Flexbox, Markdown } from '@lobehub/ui';
import qs from 'query-string';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCPPluginDetail/Schema/Block.tsx b/src/features/MCPPluginDetail/Schema/Block.tsx
index 05fa502f780..83582a6a418 100644
--- a/src/features/MCPPluginDetail/Schema/Block.tsx
+++ b/src/features/MCPPluginDetail/Schema/Block.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tabs, Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tabs, Tag } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCPPluginDetail/Schema/Prompts.tsx b/src/features/MCPPluginDetail/Schema/Prompts.tsx
index efa22026cb2..f026a3436bc 100644
--- a/src/features/MCPPluginDetail/Schema/Prompts.tsx
+++ b/src/features/MCPPluginDetail/Schema/Prompts.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
import { CheckIcon, MinusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCPPluginDetail/Schema/Resources.tsx b/src/features/MCPPluginDetail/Schema/Resources.tsx
index fb8db440335..9ebc0333b3b 100644
--- a/src/features/MCPPluginDetail/Schema/Resources.tsx
+++ b/src/features/MCPPluginDetail/Schema/Resources.tsx
@@ -1,6 +1,4 @@
-import { Block, Highlighter } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Highlighter, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCPPluginDetail/Schema/SchemaList.tsx b/src/features/MCPPluginDetail/Schema/SchemaList.tsx
index 795ff7ebfd1..80bb381985d 100644
--- a/src/features/MCPPluginDetail/Schema/SchemaList.tsx
+++ b/src/features/MCPPluginDetail/Schema/SchemaList.tsx
@@ -1,11 +1,11 @@
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionRoot,
AccordionTrigger,
-} from '@lobehub/ui/base-ui';
+ Flexbox,
+} from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/MCPPluginDetail/Schema/Tools.tsx b/src/features/MCPPluginDetail/Schema/Tools.tsx
index 805afbce426..59518e761cd 100644
--- a/src/features/MCPPluginDetail/Schema/Tools.tsx
+++ b/src/features/MCPPluginDetail/Schema/Tools.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Highlighter, Icon, Markdown } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Highlighter, Icon, Markdown, Tag } from '@lobehub/ui';
import { CheckIcon, MinusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MCPPluginDetail/Schema/style.ts b/src/features/MCPPluginDetail/Schema/style.ts
index ea3f6a84df5..1ffeb08f487 100644
--- a/src/features/MCPPluginDetail/Schema/style.ts
+++ b/src/features/MCPPluginDetail/Schema/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => {
return {
diff --git a/src/features/MCPPluginDetail/Score/GithubBadge/index.tsx b/src/features/MCPPluginDetail/Score/GithubBadge/index.tsx
index 19c36307c2e..c897ed7a8b2 100644
--- a/src/features/MCPPluginDetail/Score/GithubBadge/index.tsx
+++ b/src/features/MCPPluginDetail/Score/GithubBadge/index.tsx
@@ -1,6 +1,4 @@
-import { Markdown, Snippet } from '@lobehub/ui';
-import { Divider, Select, Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Divider, Markdown, Select, Snippet, Tag } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/features/MCPPluginDetail/Score/ScoreItem.tsx b/src/features/MCPPluginDetail/Score/ScoreItem.tsx
index a96b3a6096f..35eb7397f17 100644
--- a/src/features/MCPPluginDetail/Score/ScoreItem.tsx
+++ b/src/features/MCPPluginDetail/Score/ScoreItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon } from '@lobehub/ui';
import { BanIcon, CircleCheckBigIcon, CircleDashedIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/MCPPluginDetail/Score/ScoreList.tsx b/src/features/MCPPluginDetail/Score/ScoreList.tsx
index ca1202e548e..1b037b0f49b 100644
--- a/src/features/MCPPluginDetail/Score/ScoreList.tsx
+++ b/src/features/MCPPluginDetail/Score/ScoreList.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox } from '@lobehub/ui';
import { Fragment, memo } from 'react';
import { type ScoreItemProps } from './ScoreItem';
diff --git a/src/features/MCPPluginDetail/Score/TotalScore.tsx b/src/features/MCPPluginDetail/Score/TotalScore.tsx
index 92b03048f99..0bd23eac636 100644
--- a/src/features/MCPPluginDetail/Score/TotalScore.tsx
+++ b/src/features/MCPPluginDetail/Score/TotalScore.tsx
@@ -1,6 +1,4 @@
-import { Block, Center, Flexbox, Popover } from '@lobehub/ui';
-import { Progress } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, Center, createStaticStyles, cssVar, Flexbox, Popover, Progress } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/ComposeModal.tsx b/src/features/MemoryRules/ComposeModal.tsx
index 2b7f5e600a8..57eec7d13e3 100644
--- a/src/features/MemoryRules/ComposeModal.tsx
+++ b/src/features/MemoryRules/ComposeModal.tsx
@@ -5,20 +5,22 @@ import {
type ExpertiseEnforcement,
type ExpertiseRuleDirection,
} from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
createModal,
+ createStaticStyles,
+ cssVar,
DropdownMenu,
+ Flexbox,
+ Icon,
Spin,
Text,
TextArea,
toast,
Tooltip,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import {
ArrowLeftIcon,
BellIcon,
diff --git a/src/features/MemoryRules/DetailPanel.tsx b/src/features/MemoryRules/DetailPanel.tsx
index efbae612560..6c23f66c918 100644
--- a/src/features/MemoryRules/DetailPanel.tsx
+++ b/src/features/MemoryRules/DetailPanel.tsx
@@ -5,7 +5,7 @@ import {
type ExpertiseEnforcement,
type ExpertiseReasonKind,
} from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
+import { Block, createStaticStyles, cssVar, cx, Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -15,8 +15,7 @@ import {
Tag,
Text,
TextArea,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
ActivityIcon,
diff --git a/src/features/MemoryRules/DirectionToggle.tsx b/src/features/MemoryRules/DirectionToggle.tsx
index ee1ffdcbb57..472d4632a4a 100644
--- a/src/features/MemoryRules/DirectionToggle.tsx
+++ b/src/features/MemoryRules/DirectionToggle.tsx
@@ -1,9 +1,7 @@
'use client';
import type { ExpertiseRuleDirection } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Tooltip } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Icon, Tooltip } from '@lobehub/ui';
import { BanIcon, CircleDashedIcon, type LucideIcon, SparklesIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/DistillModal.tsx b/src/features/MemoryRules/DistillModal.tsx
index 426c9461e47..8dcc62b38c7 100644
--- a/src/features/MemoryRules/DistillModal.tsx
+++ b/src/features/MemoryRules/DistillModal.tsx
@@ -1,13 +1,17 @@
'use client';
import type { ExpertiseEnforcement } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
Checkbox,
createModal,
+ createStaticStyles,
+ cssVar,
+ cx,
DropdownMenu,
+ Flexbox,
+ Icon,
Input,
Segmented,
Spin,
@@ -15,8 +19,7 @@ import {
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
ArrowLeftIcon,
diff --git a/src/features/MemoryRules/EnforcementToggle.tsx b/src/features/MemoryRules/EnforcementToggle.tsx
index 5a438c1c2cf..fef9261e396 100644
--- a/src/features/MemoryRules/EnforcementToggle.tsx
+++ b/src/features/MemoryRules/EnforcementToggle.tsx
@@ -1,9 +1,7 @@
'use client';
import type { ExpertiseEnforcement } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Tooltip } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Icon, Tooltip } from '@lobehub/ui';
import { BellIcon, ShieldCheckIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/Field.tsx b/src/features/MemoryRules/Field.tsx
index d9949523b69..3492ad6ced6 100644
--- a/src/features/MemoryRules/Field.tsx
+++ b/src/features/MemoryRules/Field.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, TextArea } from '@lobehub/ui';
import { PencilIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/GroupModal.tsx b/src/features/MemoryRules/GroupModal.tsx
index 06accca0fe7..0e74304bbe6 100644
--- a/src/features/MemoryRules/GroupModal.tsx
+++ b/src/features/MemoryRules/GroupModal.tsx
@@ -1,18 +1,20 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
Input,
Spin,
Text,
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { ArrowLeftIcon, PencilLineIcon, XIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/GroupSection.tsx b/src/features/MemoryRules/GroupSection.tsx
index 6bf1df5c556..473079b46c3 100644
--- a/src/features/MemoryRules/GroupSection.tsx
+++ b/src/features/MemoryRules/GroupSection.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu, Tooltip } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox, Icon } from '@lobehub/ui';
+import { ActionIcon, type DropdownItem, DropdownMenu, Tooltip } from '@lobehub/ui';
import { ChevronRightIcon, MoreHorizontalIcon, PlusIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/OwnerLabel.tsx b/src/features/MemoryRules/OwnerLabel.tsx
index 869bc56e8a9..8aa589cd663 100644
--- a/src/features/MemoryRules/OwnerLabel.tsx
+++ b/src/features/MemoryRules/OwnerLabel.tsx
@@ -1,9 +1,7 @@
'use client';
import { DEFAULT_AVATAR } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, cssVar, Flexbox } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { OwnerSection } from './labels';
diff --git a/src/features/MemoryRules/PartSwitcher.tsx b/src/features/MemoryRules/PartSwitcher.tsx
index 1fbca49f2e1..7273c04bd21 100644
--- a/src/features/MemoryRules/PartSwitcher.tsx
+++ b/src/features/MemoryRules/PartSwitcher.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Segmented, Select } from '@lobehub/ui/base-ui';
+import { Flexbox, Segmented, Select } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { agentSectionsByCount, liveCount, type OwnerSection } from './labels';
diff --git a/src/features/MemoryRules/RuleRow.tsx b/src/features/MemoryRules/RuleRow.tsx
index 4873b9d1410..bd59dd05b2b 100644
--- a/src/features/MemoryRules/RuleRow.tsx
+++ b/src/features/MemoryRules/RuleRow.tsx
@@ -1,9 +1,8 @@
'use client';
import type { ExpertiseEnforcement, ExpertiseRuleDirection } from '@lobechat/types';
-import { Flexbox, SortableList } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu, Tag, Tooltip } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox, SortableList } from '@lobehub/ui';
+import { ActionIcon, type DropdownItem, DropdownMenu, Tag, Tooltip } from '@lobehub/ui';
import dayjs from 'dayjs';
import { MoreHorizontalIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/RulesOnboarding.tsx b/src/features/MemoryRules/RulesOnboarding.tsx
index df5ddeeb7de..981eae86d86 100644
--- a/src/features/MemoryRules/RulesOnboarding.tsx
+++ b/src/features/MemoryRules/RulesOnboarding.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { BotIcon, ClipboardCheckIcon, FileSearchIcon, PlusIcon, ScaleIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/index.tsx b/src/features/MemoryRules/index.tsx
index d49b5a32c36..2bb48fe0c23 100644
--- a/src/features/MemoryRules/index.tsx
+++ b/src/features/MemoryRules/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon, SortableList } from '@lobehub/ui';
-import { Button, Text, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Block, Button, cx, Flexbox, Icon, SortableList, Text, toast } from '@lobehub/ui';
import { ArrowDownIcon, ArrowUpIcon, FileSearchIcon, PencilIcon, PlusIcon } from 'lucide-react';
import { useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MemoryRules/ruleMenu.tsx b/src/features/MemoryRules/ruleMenu.tsx
index 53042f0f09e..52861cd44b9 100644
--- a/src/features/MemoryRules/ruleMenu.tsx
+++ b/src/features/MemoryRules/ruleMenu.tsx
@@ -1,5 +1,5 @@
+import type { DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
import type { TFunction } from 'i18next';
import {
ArchiveIcon,
diff --git a/src/features/MemoryRules/styles.ts b/src/features/MemoryRules/styles.ts
index 71115ff3f7c..ed715f1e00f 100644
--- a/src/features/MemoryRules/styles.ts
+++ b/src/features/MemoryRules/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* One sheet, Linear-style: a sticky header row, one hairline per row, group rows that run the
diff --git a/src/features/Messenger/AgentSelect.tsx b/src/features/Messenger/AgentSelect.tsx
index 586205d7592..eae6f33385c 100644
--- a/src/features/Messenger/AgentSelect.tsx
+++ b/src/features/Messenger/AgentSelect.tsx
@@ -2,7 +2,7 @@
import { agentDisplayName } from '@lobechat/types';
import { Flexbox } from '@lobehub/ui';
-import { Avatar, Select, type SelectProps, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Select, type SelectProps, Text } from '@lobehub/ui';
import { memo, useEffect, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
diff --git a/src/features/Messenger/IntegrationDetail/CommandsSection.tsx b/src/features/Messenger/IntegrationDetail/CommandsSection.tsx
index b85c9e05a39..ad41e18d848 100644
--- a/src/features/Messenger/IntegrationDetail/CommandsSection.tsx
+++ b/src/features/Messenger/IntegrationDetail/CommandsSection.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Icon, Text } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import {
ArrowLeftRightIcon,
diff --git a/src/features/Messenger/IntegrationDetail/Discord.tsx b/src/features/Messenger/IntegrationDetail/Discord.tsx
index 694c8e31e11..ec858d12321 100644
--- a/src/features/Messenger/IntegrationDetail/Discord.tsx
+++ b/src/features/Messenger/IntegrationDetail/Discord.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Icon, Text } from '@lobehub/ui';
import { LinkIcon, ServerIcon, Trash2Icon, UserIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/Linq.test.tsx b/src/features/Messenger/IntegrationDetail/Linq.test.tsx
index 2faa5075e1c..03655290385 100644
--- a/src/features/Messenger/IntegrationDetail/Linq.test.tsx
+++ b/src/features/Messenger/IntegrationDetail/Linq.test.tsx
@@ -8,15 +8,25 @@ const messengerServiceMocks = vi.hoisted(() => ({
pollLinqLink: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- QRCode: ({ value }: { value: string }) => <span data-value={value} role="img" />,
-}));
-
-vi.mock('antd-style', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- createStaticStyles: () => ({ code: 'code', qrSlot: 'qrSlot', setup: 'setup', tips: 'tips' }),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ QRCode: ({ value }: { value: string }) => <span data-value={value} role="img" />,
+ }),
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ createStaticStyles: () => ({ code: 'code', qrSlot: 'qrSlot', setup: 'setup', tips: 'tips' }),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({
diff --git a/src/features/Messenger/IntegrationDetail/Linq.tsx b/src/features/Messenger/IntegrationDetail/Linq.tsx
index 67b121fe69c..a6dba2b4a35 100644
--- a/src/features/Messenger/IntegrationDetail/Linq.tsx
+++ b/src/features/Messenger/IntegrationDetail/Linq.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Button, QRCode, Spin, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Alert,
+ Block,
+ Button,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ QRCode,
+ Spin,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { InfoIcon, MessageCircleIcon, RefreshCwIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/MessengerPush.tsx b/src/features/Messenger/IntegrationDetail/MessengerPush.tsx
index 4a67fb6dc5b..d6a6f599a56 100644
--- a/src/features/Messenger/IntegrationDetail/MessengerPush.tsx
+++ b/src/features/Messenger/IntegrationDetail/MessengerPush.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Button, Input, Select, Text, toast } from '@lobehub/ui/base-ui';
+import { Alert, Block, Button, Flexbox, Icon, Input, Select, Text, toast } from '@lobehub/ui';
import { SendIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/MessengerPushWindowState.tsx b/src/features/Messenger/IntegrationDetail/MessengerPushWindowState.tsx
index 6481aa373c4..b1cb47dce95 100644
--- a/src/features/Messenger/IntegrationDetail/MessengerPushWindowState.tsx
+++ b/src/features/Messenger/IntegrationDetail/MessengerPushWindowState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, Skeleton, Tag, Text } from '@lobehub/ui';
import { CheckCircle2Icon, ClockIcon, MoonIcon, RefreshCwIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/Slack.tsx b/src/features/Messenger/IntegrationDetail/Slack.tsx
index 701f11aa337..367382ca7b7 100644
--- a/src/features/Messenger/IntegrationDetail/Slack.tsx
+++ b/src/features/Messenger/IntegrationDetail/Slack.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Icon } from '@lobehub/ui';
import { BriefcaseIcon, LinkIcon, Trash2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/Telegram.tsx b/src/features/Messenger/IntegrationDetail/Telegram.tsx
index 7a12b6f94ca..03e07336556 100644
--- a/src/features/Messenger/IntegrationDetail/Telegram.tsx
+++ b/src/features/Messenger/IntegrationDetail/Telegram.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Icon } from '@lobehub/ui';
import { LinkIcon, Trash2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/Wechat.test.tsx b/src/features/Messenger/IntegrationDetail/Wechat.test.tsx
index 1a350fb9825..50fbed4d1b3 100644
--- a/src/features/Messenger/IntegrationDetail/Wechat.test.tsx
+++ b/src/features/Messenger/IntegrationDetail/Wechat.test.tsx
@@ -13,50 +13,60 @@ const messengerServiceMocks = vi.hoisted(() => ({
}));
const useSWRMock = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- QRCode: ({
- 'aria-label': ariaLabel,
- bgColor,
- color,
- value,
- }: {
- 'aria-label'?: string;
- 'bgColor'?: string;
- 'color'?: string;
- 'value': string;
- }) => (
- <span
- aria-label={ariaLabel}
- data-bg-color={bgColor}
- data-color={color}
- data-value={value}
- role="img"
- />
- ),
- Select: ({
- onChange,
- options,
- value,
- }: {
- onChange?: (value: string) => void;
- options?: { label: string; value: string }[];
- value?: string;
- }) => (
- <select value={value} onChange={(event) => onChange?.(event.target.value)}>
- {options?.map((option) => (
- <option key={option.value} value={option.value}>
- {option.label}
- </option>
- ))}
- </select>
- ),
-}));
-
-vi.mock('antd-style', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- createStaticStyles: () => ({ error: 'error', qrSlot: 'qrSlot', setup: 'setup' }),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ QRCode: ({
+ 'aria-label': ariaLabel,
+ bgColor,
+ color,
+ value,
+ }: {
+ 'aria-label'?: string;
+ 'bgColor'?: string;
+ 'color'?: string;
+ 'value': string;
+ }) => (
+ <span
+ aria-label={ariaLabel}
+ data-bg-color={bgColor}
+ data-color={color}
+ data-value={value}
+ role="img"
+ />
+ ),
+ Select: ({
+ onChange,
+ options,
+ value,
+ }: {
+ onChange?: (value: string) => void;
+ options?: { label: string; value: string }[];
+ value?: string;
+ }) => (
+ <select value={value} onChange={(event) => onChange?.(event.target.value)}>
+ {options?.map((option) => (
+ <option key={option.value} value={option.value}>
+ {option.label}
+ </option>
+ ))}
+ </select>
+ ),
+ }),
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ createStaticStyles: () => ({ error: 'error', qrSlot: 'qrSlot', setup: 'setup' }),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({
diff --git a/src/features/Messenger/IntegrationDetail/Wechat.tsx b/src/features/Messenger/IntegrationDetail/Wechat.tsx
index f6356a3be5c..eb823452736 100644
--- a/src/features/Messenger/IntegrationDetail/Wechat.tsx
+++ b/src/features/Messenger/IntegrationDetail/Wechat.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Button, QRCode, Spin, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Alert,
+ Block,
+ Button,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ QRCode,
+ Spin,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { ExternalLinkIcon, InfoIcon, QrCodeIcon, RefreshCwIcon, XIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/IntegrationDetail/shared.test.tsx b/src/features/Messenger/IntegrationDetail/shared.test.tsx
index cb0bc20ac7f..550891efee7 100644
--- a/src/features/Messenger/IntegrationDetail/shared.test.tsx
+++ b/src/features/Messenger/IntegrationDetail/shared.test.tsx
@@ -18,57 +18,67 @@ const userState = {
const mockConfirmModal = vi.fn();
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Select: ({
- classNames,
- options,
- }: {
- classNames?: { value?: string };
- options: { label: ReactNode; value: string }[];
- }) => (
- <div data-testid="scope-select" data-value-class={classNames?.value}>
- {options.map((option) => (
- <div data-testid={`scope-option-${option.value}`} key={option.value}>
- {option.label}
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Select: ({
+ classNames,
+ options,
+ }: {
+ classNames?: { value?: string };
+ options: { label: ReactNode; value: string }[];
+ }) => (
+ <div data-testid="scope-select" data-value-class={classNames?.value}>
+ {options.map((option) => (
+ <div data-testid={`scope-option-${option.value}`} key={option.value}>
+ {option.label}
+ </div>
+ ))}
</div>
- ))}
- </div>
- ),
- Tag: ({ children }: { children?: ReactNode }) => (
- <span data-testid="personal-tag">{children}</span>
- ),
- Text: ({
- children,
- ellipsis,
- }: {
- children?: ReactNode;
- ellipsis?: boolean | { tooltip?: boolean | string };
- }) => (
- <span
- title={
- typeof ellipsis === 'object' && typeof ellipsis.tooltip === 'string'
- ? ellipsis.tooltip
- : undefined
- }
- >
- {children}
- </span>
- ),
- confirmModal: (...args: unknown[]) => mockConfirmModal(...args),
-}));
-
-vi.mock('antd-style', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- createStaticStyles: () => ({
- backButton: 'backButton',
- card: 'card',
- emptyRow: 'emptyRow',
- rowIcon: 'rowIcon',
- rowIdentity: 'rowIdentity',
- scopeValue: 'scopeValue',
- }),
-}));
+ ),
+ Tag: ({ children }: { children?: ReactNode }) => (
+ <span data-testid="personal-tag">{children}</span>
+ ),
+ Text: ({
+ children,
+ ellipsis,
+ }: {
+ children?: ReactNode;
+ ellipsis?: boolean | { tooltip?: boolean | string };
+ }) => (
+ <span
+ title={
+ typeof ellipsis === 'object' && typeof ellipsis.tooltip === 'string'
+ ? ellipsis.tooltip
+ : undefined
+ }
+ >
+ {children}
+ </span>
+ ),
+ confirmModal: (...args: unknown[]) => mockConfirmModal(...args),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ createStaticStyles: () => ({
+ backButton: 'backButton',
+ card: 'card',
+ emptyRow: 'emptyRow',
+ rowIcon: 'rowIcon',
+ rowIdentity: 'rowIdentity',
+ scopeValue: 'scopeValue',
+ }),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({
diff --git a/src/features/Messenger/IntegrationDetail/shared.tsx b/src/features/Messenger/IntegrationDetail/shared.tsx
index a8f2e43a7d3..200a0a6062a 100644
--- a/src/features/Messenger/IntegrationDetail/shared.tsx
+++ b/src/features/Messenger/IntegrationDetail/shared.tsx
@@ -1,8 +1,17 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, confirmModal, Select, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Block,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Select,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { ArrowLeftIcon, CheckCircle2Icon, Trash2Icon, UserIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/Messenger/IntegrationList.tsx b/src/features/Messenger/IntegrationList.tsx
index 720ac730046..22edf21072b 100644
--- a/src/features/Messenger/IntegrationList.tsx
+++ b/src/features/Messenger/IntegrationList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { ChevronRightIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/LinkModal/Discord.tsx b/src/features/Messenger/LinkModal/Discord.tsx
index 0a8406860dd..831089128b5 100644
--- a/src/features/Messenger/LinkModal/Discord.tsx
+++ b/src/features/Messenger/LinkModal/Discord.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Icon, Text } from '@lobehub/ui';
import { LinkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/LinkModal/Slack.tsx b/src/features/Messenger/LinkModal/Slack.tsx
index a1a3e8ca668..1172723f842 100644
--- a/src/features/Messenger/LinkModal/Slack.tsx
+++ b/src/features/Messenger/LinkModal/Slack.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/LinkModal/Telegram.tsx b/src/features/Messenger/LinkModal/Telegram.tsx
index dcc9aed7874..4cc535680c7 100644
--- a/src/features/Messenger/LinkModal/Telegram.tsx
+++ b/src/features/Messenger/LinkModal/Telegram.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, QRCode, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, QRCode, Text } from '@lobehub/ui';
import { LinkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/LinkModal/index.tsx b/src/features/Messenger/LinkModal/index.tsx
index dd86da00c5e..4feca6bae92 100644
--- a/src/features/Messenger/LinkModal/index.tsx
+++ b/src/features/Messenger/LinkModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import LinkModalContent, { type LinkModalContentProps } from './Content';
diff --git a/src/features/Messenger/PushResourceModal/PushResourceContent.tsx b/src/features/Messenger/PushResourceModal/PushResourceContent.tsx
index 20609452471..5f1403b0a7a 100644
--- a/src/features/Messenger/PushResourceModal/PushResourceContent.tsx
+++ b/src/features/Messenger/PushResourceModal/PushResourceContent.tsx
@@ -2,11 +2,12 @@
import type { MessengerOversizeImageStrategy } from '@lobechat/const';
import { DEFAULT_OVERSIZE_IMAGE_STRATEGY } from '@lobechat/const';
-import { Block, Flexbox } from '@lobehub/ui';
import {
Alert,
+ Block,
Button,
Divider,
+ Flexbox,
Input,
ModalFooter,
Segmented,
@@ -14,7 +15,7 @@ import {
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
diff --git a/src/features/Messenger/PushResourceModal/index.tsx b/src/features/Messenger/PushResourceModal/index.tsx
index 9764d168cdc..e0b5a49101a 100644
--- a/src/features/Messenger/PushResourceModal/index.tsx
+++ b/src/features/Messenger/PushResourceModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { PushResourceContent, type PushResourceModalProps } from './PushResourceContent';
diff --git a/src/features/Messenger/PushResourceModal/useSendToMessengerMenuItem.tsx b/src/features/Messenger/PushResourceModal/useSendToMessengerMenuItem.tsx
index bb3ed5b2591..e09f135c56f 100644
--- a/src/features/Messenger/PushResourceModal/useSendToMessengerMenuItem.tsx
+++ b/src/features/Messenger/PushResourceModal/useSendToMessengerMenuItem.tsx
@@ -1,8 +1,7 @@
'use client';
import type { ItemType } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon } from '@lobehub/ui';
import { SendIcon, Settings2Icon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
diff --git a/src/features/Messenger/Verify/Body/shared.tsx b/src/features/Messenger/Verify/Body/shared.tsx
index 7977c3ef02f..3c6e1f3a470 100644
--- a/src/features/Messenger/Verify/Body/shared.tsx
+++ b/src/features/Messenger/Verify/Body/shared.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Select, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, Button, createStaticStyles, Flexbox, Icon, Select, Text, toast } from '@lobehub/ui';
import { AlertTriangleIcon, CheckCircle2Icon, LinkIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Messenger/Verify/index.tsx b/src/features/Messenger/Verify/index.tsx
index 9b83062fd06..c22a8dd2388 100644
--- a/src/features/Messenger/Verify/index.tsx
+++ b/src/features/Messenger/Verify/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Messenger/index.tsx b/src/features/Messenger/index.tsx
index 683e0561b99..49688251bd5 100644
--- a/src/features/Messenger/index.tsx
+++ b/src/features/Messenger/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Skeleton, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Skeleton, Text, toast } from '@lobehub/ui';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/features/Messenger/scopeOptions.tsx b/src/features/Messenger/scopeOptions.tsx
index 6d3214f98b5..2859ad5bff4 100644
--- a/src/features/Messenger/scopeOptions.tsx
+++ b/src/features/Messenger/scopeOptions.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, Flexbox, Tag, Text } from '@lobehub/ui';
export const PERSONAL_SCOPE = 'personal';
diff --git a/src/features/MobileHome/Layout/MobileLayout/style.ts b/src/features/MobileHome/Layout/MobileLayout/style.ts
index 4e8e9309446..614efb126d7 100644
--- a/src/features/MobileHome/Layout/MobileLayout/style.ts
+++ b/src/features/MobileHome/Layout/MobileLayout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Search bar container
diff --git a/src/features/MobileHome/Layout/SessionHeader.tsx b/src/features/MobileHome/Layout/SessionHeader.tsx
index c6201a8ac84..661a421632d 100644
--- a/src/features/MobileHome/Layout/SessionHeader.tsx
+++ b/src/features/MobileHome/Layout/SessionHeader.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox } from '@lobehub/ui';
import { ChatHeader } from '@lobehub/ui/mobile';
import { MessageSquarePlus } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/MobileHome/Layout/SessionHeader/style.ts b/src/features/MobileHome/Layout/SessionHeader/style.ts
index 39e57742379..16b453d6415 100644
--- a/src/features/MobileHome/Layout/SessionHeader/style.ts
+++ b/src/features/MobileHome/Layout/SessionHeader/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Left container
diff --git a/src/features/MobileHome/SessionListContent/AgentSearchList.tsx b/src/features/MobileHome/SessionListContent/AgentSearchList.tsx
index 0d1372359cb..1da888dad41 100644
--- a/src/features/MobileHome/SessionListContent/AgentSearchList.tsx
+++ b/src/features/MobileHome/SessionListContent/AgentSearchList.tsx
@@ -1,7 +1,7 @@
import { AGENT_CHAT_URL, DEFAULT_AVATAR, GROUP_CHAT_URL } from '@lobechat/const';
import type { SidebarAgentItem } from '@lobechat/types';
import { agentDisplayName } from '@lobechat/types';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import LazyLoad from 'react-lazy-load';
diff --git a/src/features/MobileHome/SessionListContent/CollapseGroup/Actions.tsx b/src/features/MobileHome/SessionListContent/CollapseGroup/Actions.tsx
index 706ba9f56c7..2ba99dab9f4 100644
--- a/src/features/MobileHome/SessionListContent/CollapseGroup/Actions.tsx
+++ b/src/features/MobileHome/SessionListContent/CollapseGroup/Actions.tsx
@@ -1,7 +1,17 @@
-import { type DropdownMenuProps, type MenuProps } from '@lobehub/ui';
-import { DropdownMenu, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ type DropdownItem,
+ type DropdownMenuProps,
+ type MenuInfo,
+ type MenuItemType,
+} from '@lobehub/ui';
+import {
+ ActionIcon,
+ confirmModal,
+ createStaticStyles,
+ DropdownMenu,
+ Icon,
+ toast,
+} from '@lobehub/ui';
import { MoreVertical, PencilLine, Plus, Settings2, Trash, UsersRound } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -24,9 +34,6 @@ interface ActionsProps extends Pick<DropdownMenuProps, 'onOpenChange'> {
openRenameModal?: () => void;
}
-type ItemOfType<T> = T extends (infer Item)[] ? Item : never;
-type MenuItemType = ItemOfType<MenuProps['items']>;
-
const Actions = memo<ActionsProps>(
({ id, openRenameModal, openConfigModal, onOpenChange, isCustomGroup, isPinned }) => {
const { t } = useTranslation(['chat', 'common']);
@@ -46,7 +53,7 @@ const Actions = memo<ActionsProps>(
icon: <Icon icon={Settings2} />,
key: 'config',
label: t('sessionGroup.config'),
- onClick: ({ domEvent }) => {
+ onClick: ({ domEvent }: MenuInfo) => {
domEvent.stopPropagation();
openConfigModal();
},
@@ -56,7 +63,7 @@ const Actions = memo<ActionsProps>(
icon: <Icon icon={Plus} />,
key: 'newAgent',
label: t('newAgent'),
- onClick: async ({ domEvent }) => {
+ onClick: async ({ domEvent }: MenuInfo) => {
domEvent.stopPropagation();
const creatingToast = toast.loading(t('sessionGroup.creatingAgent'));
@@ -71,7 +78,7 @@ const Actions = memo<ActionsProps>(
icon: <Icon icon={UsersRound} />,
key: 'newGroupChat',
label: t('newGroupChat'),
- onClick: ({ domEvent }) => {
+ onClick: ({ domEvent }: MenuInfo) => {
domEvent.stopPropagation();
setIsGroupModalOpen(true);
},
@@ -116,13 +123,13 @@ const Actions = memo<ActionsProps>(
setIsGroupModalOpen(false);
};
- const customGroupItems: MenuProps['items'] = useMemo(
+ const customGroupItems: DropdownItem[] = useMemo(
() => [
{
icon: <Icon icon={PencilLine} />,
key: 'rename',
label: t('sessionGroup.rename'),
- onClick: ({ domEvent }) => {
+ onClick: ({ domEvent }: MenuInfo) => {
domEvent.stopPropagation();
openRenameModal?.();
},
@@ -136,7 +143,7 @@ const Actions = memo<ActionsProps>(
icon: <Icon icon={Trash} />,
key: 'delete',
label: t('delete', { ns: 'common' }),
- onClick: ({ domEvent }) => {
+ onClick: ({ domEvent }: MenuInfo) => {
domEvent.stopPropagation();
confirmModal({
cancelText: t('cancel', { ns: 'common' }),
@@ -155,7 +162,7 @@ const Actions = memo<ActionsProps>(
[],
);
- const defaultItems: MenuProps['items'] = useMemo(() => [sessionGroupConfigPublicItem], []);
+ const defaultItems: DropdownItem[] = useMemo(() => [sessionGroupConfigPublicItem], []);
const tailItems = useMemo(
() => (isCustomGroup ? customGroupItems : defaultItems),
diff --git a/src/features/MobileHome/SessionListContent/CollapseGroup/index.tsx b/src/features/MobileHome/SessionListContent/CollapseGroup/index.tsx
index 1eabee24ad3..502c7531ecd 100644
--- a/src/features/MobileHome/SessionListContent/CollapseGroup/index.tsx
+++ b/src/features/MobileHome/SessionListContent/CollapseGroup/index.tsx
@@ -1,5 +1,4 @@
-import { Accordion } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Accordion, createStaticStyles, responsive } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/MobileHome/SessionListContent/List/AddButton.tsx b/src/features/MobileHome/SessionListContent/List/AddButton.tsx
index 6d09e859cb3..f685deb83ed 100644
--- a/src/features/MobileHome/SessionListContent/List/AddButton.tsx
+++ b/src/features/MobileHome/SessionListContent/List/AddButton.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MobileHome/SessionListContent/List/Item/Actions.tsx b/src/features/MobileHome/SessionListContent/List/Item/Actions.tsx
index b2115f0aa66..3740bc685c7 100644
--- a/src/features/MobileHome/SessionListContent/List/Item/Actions.tsx
+++ b/src/features/MobileHome/SessionListContent/List/Item/Actions.tsx
@@ -1,6 +1,5 @@
import type { ItemType } from '@lobehub/ui';
-import { DropdownMenu, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, confirmModal, DropdownMenu, Icon, toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import {
Check,
diff --git a/src/features/MobileHome/SessionListContent/List/index.tsx b/src/features/MobileHome/SessionListContent/List/index.tsx
index a0f38a2cac8..09c5e40c712 100644
--- a/src/features/MobileHome/SessionListContent/List/index.tsx
+++ b/src/features/MobileHome/SessionListContent/List/index.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import LazyLoad from 'react-lazy-load';
import { Link } from 'react-router';
diff --git a/src/features/MobileHome/SessionListContent/ListItem/BaseListItem.tsx b/src/features/MobileHome/SessionListContent/ListItem/BaseListItem.tsx
new file mode 100644
index 00000000000..b50719adc04
--- /dev/null
+++ b/src/features/MobileHome/SessionListContent/ListItem/BaseListItem.tsx
@@ -0,0 +1,143 @@
+'use client';
+
+import { cx, Flexbox, Icon, Text } from '@lobehub/ui';
+import dayjs from 'dayjs';
+import { Loader2, MessageSquare } from 'lucide-react';
+import { memo } from 'react';
+
+import { styles } from './style';
+import type { ListItemProps } from './type';
+
+const getChatItemTime = (updateAt: number) => {
+ const time = dayjs(updateAt);
+ return time.isSame(dayjs(), 'day') ? time.format('HH:mm') : time.format('MM-DD');
+};
+
+const preventDefaultAndStopPropagation = (e: {
+ preventDefault: () => void;
+ stopPropagation: () => void;
+}) => {
+ e.preventDefault();
+ e.stopPropagation();
+};
+
+const BaseListItem = memo<ListItemProps>(
+ ({
+ ref,
+ active,
+ avatar,
+ loading,
+ description,
+ date,
+ title,
+ onHoverChange,
+ actions,
+ className,
+ style,
+ showAction,
+ children,
+ classNames,
+ addon,
+ pin,
+ styles: customStyles,
+ ...rest
+ }) => {
+ const loadingNode = <Icon spin icon={Loader2} />;
+
+ const pinNode = pin && (
+ <div className={cx(styles.pin, classNames?.pin)} style={customStyles?.pin}>
+ <div className={styles.triangle} />
+ </div>
+ );
+
+ const actionsNode = actions && (
+ <Flexbox
+ horizontal
+ className={cx(styles.actions, classNames?.actions)}
+ gap={4}
+ style={{ display: showAction ? undefined : 'none', ...customStyles?.actions }}
+ onClick={preventDefaultAndStopPropagation}
+ >
+ {actions}
+ </Flexbox>
+ );
+
+ const timeNode = date && (
+ <div
+ className={cx(styles.date, classNames?.date)}
+ style={{ opacity: showAction ? 0 : undefined, ...customStyles?.date }}
+ >
+ {getChatItemTime(date)}
+ </div>
+ );
+
+ return (
+ <Flexbox
+ horizontal
+ align={'flex-start'}
+ className={cx(styles.root, active && styles.active, className)}
+ distribution={'space-between'}
+ gap={8}
+ padding={12}
+ ref={ref}
+ style={style}
+ onMouseEnter={() => {
+ onHoverChange?.(true);
+ }}
+ onMouseLeave={() => {
+ onHoverChange?.(false);
+ }}
+ {...rest}
+ >
+ {pinNode}
+ <Flexbox
+ horizontal
+ align={'flex-start'}
+ className={classNames?.container}
+ flex={1}
+ gap={8}
+ style={{ overflow: 'hidden', ...customStyles?.container }}
+ >
+ {avatar ?? <Icon icon={MessageSquare} style={{ marginTop: 4 }} />}
+ <Flexbox
+ className={cx(styles.content, classNames?.content)}
+ gap={4}
+ style={customStyles?.content}
+ >
+ <Text
+ ellipsis
+ as={'h3'}
+ className={cx(styles.title, classNames?.title)}
+ style={customStyles?.title}
+ >
+ {title}
+ </Text>
+ {description && (
+ <Text
+ ellipsis
+ className={cx(styles.desc, classNames?.desc)}
+ style={customStyles?.desc}
+ >
+ {description}
+ </Text>
+ )}
+ {addon}
+ </Flexbox>
+ </Flexbox>
+ {loading ? (
+ loadingNode
+ ) : (
+ <>
+ {actionsNode}
+ {timeNode}
+ </>
+ )}
+ {children}
+ </Flexbox>
+ );
+ },
+);
+
+BaseListItem.displayName = 'BaseListItem';
+
+export default BaseListItem;
diff --git a/src/features/MobileHome/SessionListContent/ListItem/index.tsx b/src/features/MobileHome/SessionListContent/ListItem/index.tsx
index 5f7b7201600..94cfbf32071 100644
--- a/src/features/MobileHome/SessionListContent/ListItem/index.tsx
+++ b/src/features/MobileHome/SessionListContent/ListItem/index.tsx
@@ -1,14 +1,12 @@
-import { type ListItemProps } from '@lobehub/ui';
-import { List } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, createStaticStyles, cx } from '@lobehub/ui';
import { useHover } from 'ahooks';
-import { createStaticStyles, cx } from 'antd-style';
import { memo, useMemo, useRef } from 'react';
import GroupAvatar from '@/features/GroupAvatar';
import { useServerConfigStore } from '@/store/serverConfig';
-const { Item } = List;
+import Item from './BaseListItem';
+import type { ListItemProps } from './type';
const styles = createStaticStyles(({ css, cssVar }) => {
return {
diff --git a/src/features/MobileHome/SessionListContent/ListItem/style.ts b/src/features/MobileHome/SessionListContent/ListItem/style.ts
new file mode 100644
index 00000000000..15451d0770b
--- /dev/null
+++ b/src/features/MobileHome/SessionListContent/ListItem/style.ts
@@ -0,0 +1,65 @@
+import { createStaticStyles, cx, lobeStaticStylish } from '@lobehub/ui';
+
+export const styles = createStaticStyles(({ css, cssVar }) => {
+ return {
+ actions: css`
+ position: absolute;
+ inset-block-start: 50%;
+ inset-inline-end: 16px;
+ transform: translateY(-50%);
+ `,
+ active: lobeStaticStylish.active,
+ content: css`
+ position: relative;
+ overflow: hidden;
+ flex: 1;
+ align-self: center;
+ `,
+ date: css`
+ font-size: 12px;
+ color: ${cssVar.colorTextPlaceholder};
+ `,
+ desc: css`
+ width: 100%;
+ margin: 0;
+
+ font-size: 12px;
+ line-height: 1.2;
+ color: ${cssVar.colorTextDescription};
+ `,
+
+ pin: css`
+ position: absolute;
+ inset-block-start: 6px;
+ inset-inline-end: 6px;
+ `,
+ root: cx(
+ lobeStaticStylish.variantBorderless,
+ css`
+ cursor: pointer;
+ position: relative;
+ border-radius: ${cssVar.borderRadius};
+ color: ${cssVar.colorTextTertiary};
+ `,
+ ),
+
+ title: css`
+ width: 100%;
+ margin: 0;
+
+ font-size: 14px;
+ font-weight: 500;
+ line-height: 1.2;
+ color: ${cssVar.colorText};
+ `,
+ triangle: css`
+ width: 10px;
+ height: 10px;
+ border-radius: 2px;
+
+ opacity: 0.5;
+ background: ${cssVar.colorPrimaryBorder};
+ clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
+ `,
+ };
+});
diff --git a/src/features/MobileHome/SessionListContent/ListItem/type.ts b/src/features/MobileHome/SessionListContent/ListItem/type.ts
new file mode 100644
index 00000000000..2c7f856b953
--- /dev/null
+++ b/src/features/MobileHome/SessionListContent/ListItem/type.ts
@@ -0,0 +1,36 @@
+import type { FlexboxProps } from '@lobehub/ui';
+import type { CSSProperties, ReactNode, Ref } from 'react';
+
+export interface ListItemProps extends Omit<FlexboxProps, 'title'> {
+ actions?: ReactNode;
+ active?: boolean;
+ addon?: ReactNode;
+ avatar?: ReactNode;
+ classNames?: {
+ actions?: string;
+ container?: string;
+ content?: string;
+ date?: string;
+ desc?: string;
+ pin?: string;
+ title?: string;
+ };
+ date?: number;
+ description?: ReactNode;
+ key: string;
+ loading?: boolean;
+ onHoverChange?: (hover: boolean) => void;
+ pin?: boolean;
+ ref?: Ref<HTMLDivElement>;
+ showAction?: boolean;
+ styles?: {
+ actions?: CSSProperties;
+ container?: CSSProperties;
+ content?: CSSProperties;
+ date?: CSSProperties;
+ desc?: CSSProperties;
+ pin?: CSSProperties;
+ title?: CSSProperties;
+ };
+ title: ReactNode;
+}
diff --git a/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx b/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx
index 8b20bad284b..08697a44aac 100644
--- a/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx
+++ b/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx
@@ -1,6 +1,11 @@
-import { EditableText, SortableList } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ createStaticStyles,
+ EditableText,
+ SortableList,
+ toast,
+} from '@lobehub/ui';
import { PencilLine, Trash } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/index.tsx b/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/index.tsx
index 44d042114fe..c70dd98a5f9 100644
--- a/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/index.tsx
+++ b/src/features/MobileHome/SessionListContent/Modals/ConfigGroupModal/index.tsx
@@ -1,7 +1,4 @@
-import { type ModalProps } from '@lobehub/ui';
-import { Flexbox, Icon, SortableList } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, SortableList } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Plus } from 'lucide-react';
import { memo, useState } from 'react';
@@ -28,7 +25,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
`,
}));
-const ConfigGroupModal = memo<ModalProps>(({ open, onCancel }) => {
+const ConfigGroupModal = memo<{ onCancel?: () => void; open?: boolean }>(({ open, onCancel }) => {
const { t } = useTranslation('chat');
const { allowed: canCreate, reason: createReason } = usePermission('create_content');
const { allowed: canEdit } = usePermission('edit_own_content');
diff --git a/src/features/MobileHome/SessionListContent/Modals/CreateGroupModal.tsx b/src/features/MobileHome/SessionListContent/Modals/CreateGroupModal.tsx
index 635cf7d9814..fce4f257fbd 100644
--- a/src/features/MobileHome/SessionListContent/Modals/CreateGroupModal.tsx
+++ b/src/features/MobileHome/SessionListContent/Modals/CreateGroupModal.tsx
@@ -1,12 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/MobileHome/SessionListContent/Modals/RenameGroupModal.tsx b/src/features/MobileHome/SessionListContent/Modals/RenameGroupModal.tsx
index e61f9fbe245..2fa90db6095 100644
--- a/src/features/MobileHome/SessionListContent/Modals/RenameGroupModal.tsx
+++ b/src/features/MobileHome/SessionListContent/Modals/RenameGroupModal.tsx
@@ -1,12 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
diff --git a/src/features/MobileHome/SkeletonList.tsx b/src/features/MobileHome/SkeletonList.tsx
index 579eb4dc688..0dead8a6720 100644
--- a/src/features/MobileHome/SkeletonList.tsx
+++ b/src/features/MobileHome/SkeletonList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const prefixCls = 'ant';
diff --git a/src/features/ModelSelect/ReasoningEffortSelect.tsx b/src/features/ModelSelect/ReasoningEffortSelect.tsx
index 76e297b054e..5acff606bd1 100644
--- a/src/features/ModelSelect/ReasoningEffortSelect.tsx
+++ b/src/features/ModelSelect/ReasoningEffortSelect.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Tooltip } from '@lobehub/ui';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ModelSelect/index.tsx b/src/features/ModelSelect/index.tsx
index 26562f574c9..894af6c6568 100644
--- a/src/features/ModelSelect/index.tsx
+++ b/src/features/ModelSelect/index.tsx
@@ -1,6 +1,5 @@
-import { Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { Button, Select, type SelectProps, Switch, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
+import { Button, Select, type SelectProps, Switch, Tag, Text, toast } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx b/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx
index d381b5672e5..c907c7a8714 100644
--- a/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx
+++ b/src/features/ModelSwitchPanel/components/BenchmarkModal/CompareRadar.tsx
@@ -1,5 +1,5 @@
import { RadarChart } from '@lobehub/charts';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import type { FC } from 'react';
import { memo } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx
index d9040138c8c..9686aa64f71 100644
--- a/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx
+++ b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.test.tsx
@@ -8,12 +8,46 @@ import { describe, expect, it, vi } from 'vitest';
import BenchmarkModalContent from './index';
-vi.mock('antd-style', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- createStaticStyles: () =>
- new Proxy({}, { get: (_target, prop: string) => prop }) as Record<string, string>,
- cssVar: new Proxy({}, { get: (_target, token) => `var(--${String(token)})` }),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ createStaticStyles: () =>
+ new Proxy({}, { get: (_target, prop: string) => prop }) as Record<string, string>,
+ cssVar: new Proxy({}, { get: (_target, token) => `var(--${String(token)})` }),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Tooltip: ({ children, title }: { children: ReactNode; title?: ReactNode }) => (
+ <span>
+ <span data-testid={'tooltip'}>{title}</span>
+ {children}
+ </span>
+ ),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ createModal: vi.fn(),
+ DropdownMenu: ({ children, items }: { children: ReactNode; items: MockMenuItem[] }) => (
+ <div>
+ {children}
+ {items.map((item) => (
+ <button key={item.key} type={'button'} onClick={item.onClick}>
+ {item.label}
+ </button>
+ ))}
+ </div>
+ ),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
// recharts needs a measured container — stub the chart with its data flattened to text nodes
vi.mock('@lobehub/charts', () => ({
@@ -30,37 +64,12 @@ vi.mock('@lobehub/charts', () => ({
),
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Tooltip: ({ children, title }: { children: ReactNode; title?: ReactNode }) => (
- <span>
- <span data-testid={'tooltip'}>{title}</span>
- {children}
- </span>
- ),
-}));
-
interface MockMenuItem {
key: string;
label: ReactNode;
onClick: () => void;
}
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- createModal: vi.fn(),
- DropdownMenu: ({ children, items }: { children: ReactNode; items: MockMenuItem[] }) => (
- <div>
- {children}
- {items.map((item) => (
- <button key={item.key} type={'button'} onClick={item.onClick}>
- {item.label}
- </button>
- ))}
- </div>
- ),
-}));
-
// hoisted so the vi.mock factories below can reference it safely
const { translate } = vi.hoisted(() => {
const translations: Record<string, string> = {
diff --git a/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx
index c9a80b5af2c..a3e7e3d515c 100644
--- a/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx
+++ b/src/features/ModelSwitchPanel/components/BenchmarkModal/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { createModal, DropdownMenu } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createModal, createStaticStyles, DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { t } from 'i18next';
import { ChevronDownIcon, ChevronUpIcon, InfoIcon, PlusIcon, XIcon } from 'lucide-react';
import type { ModelRating } from 'model-bank';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ContextCachingSwitch.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ContextCachingSwitch.tsx
index 43f6976227d..507b92054f0 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ContextCachingSwitch.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ContextCachingSwitch.tsx
@@ -1,4 +1,4 @@
-import { Switch } from '@lobehub/ui/base-ui';
+import { Switch } from '@lobehub/ui';
import { memo } from 'react';
interface ContextCachingSwitchProps {
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx
index ff963654341..df4bdfb2f0d 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ControlsForm.tsx
@@ -1,7 +1,6 @@
import type { LobeAgentChatConfig } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, useForm, useWatch } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Switch } from '@lobehub/ui';
+import { Form, type FormFieldProps, useForm, useWatch } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { MODEL_REASONING_EXTEND_PARAMS } from 'model-bank/aiModel';
import type { ReactNode } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatio2Select.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatio2Select.tsx
index 8d46b518390..b6980a45efb 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatio2Select.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatio2Select.tsx
@@ -1,4 +1,4 @@
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useAgentId } from '@/features/ChatInput/hooks/useAgentId';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatioSelect.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatioSelect.tsx
index b04202190f3..bc73e11f3ae 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatioSelect.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ImageAspectRatioSelect.tsx
@@ -1,4 +1,4 @@
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useAgentId } from '@/features/ChatInput/hooks/useAgentId';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/LevelSlider.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/LevelSlider.tsx
index 4dcd39626b3..1338e17557f 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/LevelSlider.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/LevelSlider.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Slider } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Slider } from '@lobehub/ui';
import type { CSSProperties, ReactNode } from 'react';
import { memo, useMemo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningModeSegmented.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningModeSegmented.tsx
index 134f5c13ab7..647d74ce247 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningModeSegmented.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningModeSegmented.tsx
@@ -1,4 +1,4 @@
-import { Segmented } from '@lobehub/ui/base-ui';
+import { Segmented } from '@lobehub/ui';
import { MODEL_REASONING_PARAM_LEVELS } from 'model-bank/aiModel';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider.tsx
index bbb09856deb..aeb19d56a7b 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { InputNumber } from '@lobehub/ui/base-ui';
+import { Flexbox, InputNumber } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider32k.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider32k.tsx
index f3db43bef05..e0cc0100905 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider32k.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider32k.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { InputNumber } from '@lobehub/ui/base-ui';
+import { Flexbox, InputNumber } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider80k.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider80k.tsx
index 04e2e6b1309..0c4225590c5 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider80k.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ReasoningTokenSlider80k.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { InputNumber } from '@lobehub/ui/base-ui';
+import { Flexbox, InputNumber } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/ThinkingBudgetSlider.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/ThinkingBudgetSlider.tsx
index 195576b381d..236b3aff6db 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/ThinkingBudgetSlider.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/ThinkingBudgetSlider.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { InputNumber } from '@lobehub/ui/base-ui';
+import { Flexbox, InputNumber } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/features/ModelSwitchPanel/components/ControlsForm/__tests__/ControlsForm.test.tsx b/src/features/ModelSwitchPanel/components/ControlsForm/__tests__/ControlsForm.test.tsx
index 2980502c2b8..56cc10f8db8 100644
--- a/src/features/ModelSwitchPanel/components/ControlsForm/__tests__/ControlsForm.test.tsx
+++ b/src/features/ModelSwitchPanel/components/ControlsForm/__tests__/ControlsForm.test.tsx
@@ -27,7 +27,7 @@ const testState = vi.hoisted(() => ({
updateAgentChatConfig: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui/form', async (importOriginal) => ({
+vi.mock('@lobehub/ui/form', async (importOriginal) => ({
...(await importOriginal<object>()),
Form: () => <div data-testid="controls-form" />,
useForm: () => ({ setValues: testState.setValues }),
diff --git a/src/features/ModelSwitchPanel/components/List/GenerationListItemRenderer.tsx b/src/features/ModelSwitchPanel/components/List/GenerationListItemRenderer.tsx
index 3e097cc5d70..54a43593846 100644
--- a/src/features/ModelSwitchPanel/components/List/GenerationListItemRenderer.tsx
+++ b/src/features/ModelSwitchPanel/components/List/GenerationListItemRenderer.tsx
@@ -1,6 +1,9 @@
'use client';
import {
+ ActionIcon,
+ cssVar,
+ cx,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
@@ -10,8 +13,6 @@ import {
Icon,
menuSharedStyles,
} from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
import { LucideArrowRight, LucideBolt } from 'lucide-react';
import type { ComponentType } from 'react';
import { memo, useState } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/List/GenerationMultipleProvidersItem.tsx b/src/features/ModelSwitchPanel/components/List/GenerationMultipleProvidersItem.tsx
index eb6935e8eac..6f4ff8da9dc 100644
--- a/src/features/ModelSwitchPanel/components/List/GenerationMultipleProvidersItem.tsx
+++ b/src/features/ModelSwitchPanel/components/List/GenerationMultipleProvidersItem.tsx
@@ -1,6 +1,8 @@
'use client';
import {
+ cssVar,
+ cx,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
@@ -9,7 +11,6 @@ import {
Flexbox,
menuSharedStyles,
} from '@lobehub/ui';
-import { cssVar, cx } from 'antd-style';
import { Check } from 'lucide-react';
import type { ComponentType } from 'react';
import { memo, useState } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/List/ListItemRenderer.tsx b/src/features/ModelSwitchPanel/components/List/ListItemRenderer.tsx
index dfd379753c1..42b1370e38d 100644
--- a/src/features/ModelSwitchPanel/components/List/ListItemRenderer.tsx
+++ b/src/features/ModelSwitchPanel/components/List/ListItemRenderer.tsx
@@ -1,5 +1,8 @@
import {
+ ActionIcon,
Block,
+ cssVar,
+ cx,
DropdownMenuPopup,
DropdownMenuPortal,
DropdownMenuPositioner,
@@ -9,8 +12,6 @@ import {
Icon,
menuSharedStyles,
} from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
import { LucideArrowRight, LucideBolt } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ModelSwitchPanel/components/List/ModelRowMeta.tsx b/src/features/ModelSwitchPanel/components/List/ModelRowMeta.tsx
index 5a8d9e7d2c9..d6254a21acf 100644
--- a/src/features/ModelSwitchPanel/components/List/ModelRowMeta.tsx
+++ b/src/features/ModelSwitchPanel/components/List/ModelRowMeta.tsx
@@ -1,6 +1,5 @@
import { BRANDING_PROVIDER } from '@lobechat/business-const';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { LucideImage } from 'lucide-react';
import { type AiModelForSelect } from 'model-bank';
import { memo, useMemo } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/List/MultipleProvidersModelItem.tsx b/src/features/ModelSwitchPanel/components/List/MultipleProvidersModelItem.tsx
index 87b4f310308..507757235d5 100644
--- a/src/features/ModelSwitchPanel/components/List/MultipleProvidersModelItem.tsx
+++ b/src/features/ModelSwitchPanel/components/List/MultipleProvidersModelItem.tsx
@@ -1,4 +1,5 @@
import {
+ cx,
DropdownMenuGroup,
DropdownMenuGroupLabel,
DropdownMenuItem,
@@ -11,9 +12,8 @@ import {
DropdownMenuSubmenuTrigger,
Flexbox,
menuSharedStyles,
+ Tag,
} from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
import { Check } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ModelSwitchPanel/components/List/__tests__/MultipleProvidersModelItem.test.tsx b/src/features/ModelSwitchPanel/components/List/__tests__/MultipleProvidersModelItem.test.tsx
index a1db126d3aa..b91edbf9de7 100644
--- a/src/features/ModelSwitchPanel/components/List/__tests__/MultipleProvidersModelItem.test.tsx
+++ b/src/features/ModelSwitchPanel/components/List/__tests__/MultipleProvidersModelItem.test.tsx
@@ -9,41 +9,63 @@ import type * as ModelSelectModule from '@/components/ModelSelect';
import { MultipleProvidersModelItem } from '../MultipleProvidersModelItem';
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- DropdownMenuGroup: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- DropdownMenuGroupLabel: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- DropdownMenuItem: ({ children, onClick }: { children: ReactNode; onClick?: () => void }) => (
- <button onClick={onClick}>{children}</button>
- ),
- DropdownMenuItemIcon: ({ children }: { children: ReactNode }) => <span>{children}</span>,
- DropdownMenuItemLabel: ({ children }: { children: ReactNode }) => <span>{children}</span>,
- DropdownMenuPopup: ({ children, className }: { children: ReactNode; className?: string }) => (
- <div className={className}>{children}</div>
- ),
- DropdownMenuPortal: ({ children }: { children: ReactNode }) => <>{children}</>,
- DropdownMenuPositioner: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- DropdownMenuSubmenuRoot: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- DropdownMenuSubmenuTrigger: ({
- children,
- className,
- onClick,
- style,
- }: HTMLAttributes<HTMLDivElement>) => (
- <div className={className} style={style} onClick={onClick}>
- {children}
- </div>
- ),
- Tooltip: ({ children, title }: { children: ReactNode; title: string }) => (
- <span data-testid={`tooltip-${title}`}>{children}</span>
- ),
-}));
-
-vi.mock('@lobehub/ui/base-ui', () => ({
- Avatar: () => <span />,
- Tag: ({ children }: { children: ReactNode }) => <span>{children}</span>,
- Text: ({ children }: { children: ReactNode }) => <span>{children}</span>,
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ DropdownMenuGroup: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ DropdownMenuGroupLabel: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ DropdownMenuItem: ({ children, onClick }: { children: ReactNode; onClick?: () => void }) => (
+ <button onClick={onClick}>{children}</button>
+ ),
+ DropdownMenuItemIcon: ({ children }: { children: ReactNode }) => <span>{children}</span>,
+ DropdownMenuItemLabel: ({ children }: { children: ReactNode }) => <span>{children}</span>,
+ DropdownMenuPopup: ({ children, className }: { children: ReactNode; className?: string }) => (
+ <div className={className}>{children}</div>
+ ),
+ DropdownMenuPortal: ({ children }: { children: ReactNode }) => <>{children}</>,
+ DropdownMenuPositioner: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ DropdownMenuSubmenuRoot: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ DropdownMenuSubmenuTrigger: ({
+ children,
+ className,
+ onClick,
+ style,
+ }: HTMLAttributes<HTMLDivElement>) => (
+ <div className={className} style={style} onClick={onClick}>
+ {children}
+ </div>
+ ),
+ Tooltip: ({ children, title }: { children: ReactNode; title: string }) => (
+ <span data-testid={`tooltip-${title}`}>{children}</span>
+ ),
+ }),
+ () => ({
+ Avatar: () => <span />,
+ Tag: ({ children }: { children: ReactNode }) => <span>{children}</span>,
+ Text: ({ children }: { children: ReactNode }) => <span>{children}</span>,
+ }),
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ createStaticStyles: () => ({
+ container: 'container',
+ detailPopup: 'detailPopup',
+ dropdownMenu: 'dropdownMenu',
+ tag: 'tag',
+ token: 'token',
+ }),
+ cx: (...classNames: Array<string | undefined>) => classNames.filter(Boolean).join(' '),
+ useResponsive: () => ({ mobile: false }),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('@lobehub/icons', () => ({
LobeHub: { Morden: () => <span /> },
@@ -54,19 +76,6 @@ vi.mock('@/components/LobeIcons', () => ({
ProviderIcon: () => <span />,
}));
-vi.mock('antd-style', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- createStaticStyles: () => ({
- container: 'container',
- detailPopup: 'detailPopup',
- dropdownMenu: 'dropdownMenu',
- tag: 'tag',
- token: 'token',
- }),
- cx: (...classNames: Array<string | undefined>) => classNames.filter(Boolean).join(' '),
- useResponsive: () => ({ mobile: false }),
-}));
-
vi.mock('@/components/ModelSelect', () => ({
ModelItemRender: ({
displayName,
diff --git a/src/features/ModelSwitchPanel/components/List/metaColumns.ts b/src/features/ModelSwitchPanel/components/List/metaColumns.ts
index a9cd6558882..4f536c0258d 100644
--- a/src/features/ModelSwitchPanel/components/List/metaColumns.ts
+++ b/src/features/ModelSwitchPanel/components/List/metaColumns.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { type AiModelForSelect, type ModelRating, type Pricing } from 'model-bank';
import { createContext, useContext } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx b/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx
index 92323b4d423..e6240a0dd85 100644
--- a/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx
+++ b/src/features/ModelSwitchPanel/components/ModelDetailPanel.test.tsx
@@ -9,7 +9,7 @@ import type { EnabledProviderWithModels } from '@/types/aiProvider';
import ModelDetailPanel from './ModelDetailPanel';
-vi.mock('antd-style', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
createStaticStyles: () => ({
actionText: 'actionText',
diff --git a/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx b/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx
index 4fd9ba642de..6cb7db7745c 100644
--- a/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx
+++ b/src/features/ModelSwitchPanel/components/ModelDetailPanel.tsx
@@ -1,14 +1,16 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionRoot,
AccordionTrigger,
+ createStaticStyles,
+ Flexbox,
+ Icon,
Tag,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+ Tooltip,
+} from '@lobehub/ui';
import { ArrowDownToDot, ArrowUpFromDot, CircleFadingArrowUp } from 'lucide-react';
import type { FC } from 'react';
import { memo } from 'react';
@@ -342,7 +344,7 @@ const ModelDetailPanel: FC<ModelDetailPanelProps> = memo(
{t(`ModelSwitchPanel.detail.abilities.${ability.key}` as any)}
</span>
</Flexbox>
- <span style={{ color: 'var(--ant-color-text-tertiary)', fontSize: 11 }}>
+ <span style={{ color: 'var(--lobe-color-text-tertiary)', fontSize: 11 }}>
{t(
`ModelSelect.featureTag.${ability.key === 'files' ? 'file' : ability.key}` as any,
)}
diff --git a/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx b/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx
index 9ca5f27cdb8..9eb574d8070 100644
--- a/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx
+++ b/src/features/ModelSwitchPanel/components/ModelRatingRadar.tsx
@@ -1,5 +1,5 @@
import { RadarChart } from '@lobehub/charts';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import type { ModelRating, ModelRatingSource } from 'model-bank';
import type { FC } from 'react';
import { memo } from 'react';
diff --git a/src/features/ModelSwitchPanel/components/Toolbar.tsx b/src/features/ModelSwitchPanel/components/Toolbar.tsx
index 677104f26fe..b05409da846 100644
--- a/src/features/ModelSwitchPanel/components/Toolbar.tsx
+++ b/src/features/ModelSwitchPanel/components/Toolbar.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, SearchBar, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, SearchBar, stopPropagation, Tabs, Tooltip } from '@lobehub/ui';
import { ProviderIcon } from '@lobehub/ui/icons';
import { Brain } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ModelSwitchPanel/styles.ts b/src/features/ModelSwitchPanel/styles.ts
index fa61138fb1a..d25c4c575ad 100644
--- a/src/features/ModelSwitchPanel/styles.ts
+++ b/src/features/ModelSwitchPanel/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
container: css`
diff --git a/src/features/NavPanel/SideBarDrawer.tsx b/src/features/NavPanel/SideBarDrawer.tsx
index b3ea219bb6f..065b00a04f8 100644
--- a/src/features/NavPanel/SideBarDrawer.tsx
+++ b/src/features/NavPanel/SideBarDrawer.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, DrawerPopup, DrawerPortal, DrawerRoot, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ createStaticStyles,
+ DrawerPopup,
+ DrawerPortal,
+ DrawerRoot,
+ Flexbox,
+ Text,
+} from '@lobehub/ui';
import { XIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo, Suspense, useEffect, useState } from 'react';
diff --git a/src/features/NavPanel/SideBarHeaderLayout.tsx b/src/features/NavPanel/SideBarHeaderLayout.tsx
index c79cd2a1cf7..a946d96fa11 100644
--- a/src/features/NavPanel/SideBarHeaderLayout.tsx
+++ b/src/features/NavPanel/SideBarHeaderLayout.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Breadcrumb, type BreadcrumbItem, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
+import { Breadcrumb, type BreadcrumbItem, Text } from '@lobehub/ui';
import { ChevronRightIcon, HomeIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/NavPanel/SideBarLayout.tsx b/src/features/NavPanel/SideBarLayout.tsx
index 7f7c55e6548..b358fc17a2f 100644
--- a/src/features/NavPanel/SideBarLayout.tsx
+++ b/src/features/NavPanel/SideBarLayout.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, TooltipGroup } from '@lobehub/ui';
-import { ScrollArea } from '@lobehub/ui/base-ui';
+import { Flexbox, ScrollArea, TooltipGroup } from '@lobehub/ui';
import { type ReactNode, type UIEvent } from 'react';
import { memo, Suspense, useCallback, useLayoutEffect, useRef } from 'react';
diff --git a/src/features/NavPanel/SidebarHeaderSelect.tsx b/src/features/NavPanel/SidebarHeaderSelect.tsx
index 095895e8082..0a93cf594c4 100644
--- a/src/features/NavPanel/SidebarHeaderSelect.tsx
+++ b/src/features/NavPanel/SidebarHeaderSelect.tsx
@@ -1,9 +1,7 @@
'use client';
import type { BlockProps } from '@lobehub/ui';
-import { Block, Popover } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Block, createStaticStyles, Popover, Text } from '@lobehub/ui';
import { ChevronsUpDownIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/NavPanel/ToggleLeftPanelButton.tsx b/src/features/NavPanel/ToggleLeftPanelButton.tsx
index 0091c9d0d9d..f9b0f73f1d3 100644
--- a/src/features/NavPanel/ToggleLeftPanelButton.tsx
+++ b/src/features/NavPanel/ToggleLeftPanelButton.tsx
@@ -1,7 +1,7 @@
'use client';
import { HotkeyEnum } from '@lobechat/const/hotkeys';
-import { ActionIcon, type ActionIconProps } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps } from '@lobehub/ui';
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/NavPanel/components/BackButton.tsx b/src/features/NavPanel/components/BackButton.tsx
index b5439f9f67b..a385c75c2bf 100644
--- a/src/features/NavPanel/components/BackButton.tsx
+++ b/src/features/NavPanel/components/BackButton.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, type ActionIconProps } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps } from '@lobehub/ui';
import { ChevronLeftIcon } from 'lucide-react';
import { memo, type MouseEvent } from 'react';
diff --git a/src/features/NavPanel/components/EmptyNavItem.tsx b/src/features/NavPanel/components/EmptyNavItem.tsx
index 6fd2e20e94a..e34ef0cc865 100644
--- a/src/features/NavPanel/components/EmptyNavItem.tsx
+++ b/src/features/NavPanel/components/EmptyNavItem.tsx
@@ -1,5 +1,4 @@
-import { Block, Center, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Center, Icon, Text } from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/NavPanel/components/NavItem.tsx b/src/features/NavPanel/components/NavItem.tsx
index eafdb6d8357..3a5df08d7a0 100644
--- a/src/features/NavPanel/components/NavItem.tsx
+++ b/src/features/NavPanel/components/NavItem.tsx
@@ -1,9 +1,18 @@
'use client';
-import { type BlockProps, type GenericItemType, type IconProps } from '@lobehub/ui';
-import { Block, Center, ContextMenuTrigger, Flexbox, Icon } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { type BlockProps, type DropdownItem, type IconProps } from '@lobehub/ui';
+import {
+ Block,
+ Center,
+ ContextMenuTrigger,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Spin,
+ Text,
+} from '@lobehub/ui';
import { type FocusEvent, type PointerEvent, type ReactNode } from 'react';
import { memo } from 'react';
@@ -72,7 +81,7 @@ export interface NavItemProps extends Omit<BlockProps, 'children' | 'title'> {
*/
actions?: LazyActions;
active?: boolean;
- contextMenuItems?: GenericItemType[] | (() => GenericItemType[]);
+ contextMenuItems?: DropdownItem[] | (() => DropdownItem[]);
/**
* Optional second line rendered under the title (e.g. a topic's project
* directory). When set, the row grows to fit both lines; when omitted the
diff --git a/src/features/NavPanel/components/NavPanelDraggable.tsx b/src/features/NavPanel/components/NavPanelDraggable.tsx
index dc63ed242b4..620d4884c45 100644
--- a/src/features/NavPanel/components/NavPanelDraggable.tsx
+++ b/src/features/NavPanel/components/NavPanelDraggable.tsx
@@ -1,7 +1,6 @@
'use client';
-import { DraggablePanel } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, DraggablePanel } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { Activity, memo, Suspense, useMemo, useRef } from 'react';
diff --git a/src/features/NavPanel/hooks/useNavPanel.ts b/src/features/NavPanel/hooks/useNavPanel.ts
index a0bf6dbd93d..ee870506790 100644
--- a/src/features/NavPanel/hooks/useNavPanel.ts
+++ b/src/features/NavPanel/hooks/useNavPanel.ts
@@ -1,6 +1,6 @@
'use client';
-import { type DraggablePanelProps } from '@lobehub/ui/base-ui';
+import { type DraggablePanelProps } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { useTypeScriptHappyCallback } from '@/hooks/useTypeScriptHappyCallback';
diff --git a/src/features/NavPanel/switcher/SwitcherMenu.tsx b/src/features/NavPanel/switcher/SwitcherMenu.tsx
index 3bb37cf6027..5208b7eb96a 100644
--- a/src/features/NavPanel/switcher/SwitcherMenu.tsx
+++ b/src/features/NavPanel/switcher/SwitcherMenu.tsx
@@ -1,6 +1,12 @@
-import { Flexbox, Icon, usePopoverContext } from '@lobehub/ui';
-import { Input, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Text,
+ usePopoverContext,
+} from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/NavPanel/switcher/SwitcherRow.tsx b/src/features/NavPanel/switcher/SwitcherRow.tsx
index e21705b24c7..803aeae1838 100644
--- a/src/features/NavPanel/switcher/SwitcherRow.tsx
+++ b/src/features/NavPanel/switcher/SwitcherRow.tsx
@@ -1,6 +1,4 @@
-import { Block, Icon } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, Block, createStaticStyles, cssVar, Icon, Text } from '@lobehub/ui';
import { CheckIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/OllamaModelDownloader/index.tsx b/src/features/OllamaModelDownloader/index.tsx
index 7f9e83e1461..95e6512052a 100644
--- a/src/features/OllamaModelDownloader/index.tsx
+++ b/src/features/OllamaModelDownloader/index.tsx
@@ -1,7 +1,5 @@
import { Ollama } from '@lobehub/icons';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Alert, Button, Input, Progress } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Alert, Button, Center, cssVar, Flexbox, Input, Progress } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/OllamaSetupGuide/Desktop.tsx b/src/features/OllamaSetupGuide/Desktop.tsx
index fd5028f6088..c14d2a9119d 100644
--- a/src/features/OllamaSetupGuide/Desktop.tsx
+++ b/src/features/OllamaSetupGuide/Desktop.tsx
@@ -1,6 +1,5 @@
import { Ollama } from '@lobehub/icons';
-import { Center } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
@@ -17,9 +16,12 @@ const OllamaDesktopSetupGuide = memo(() => {
description={
<span>
<Trans
- components={[<span key="0" />, <a href={'https://ollama.com/download'} key="1" rel="noreferrer" target="_blank" />]}
i18nKey={'OllamaSetupGuide.install.description'}
ns={'components'}
+ components={[
+ <span key="0" />,
+ <a href={'https://ollama.com/download'} key="1" rel="noreferrer" target="_blank" />,
+ ]}
/>
</span>
}
diff --git a/src/features/Onboarding/Layout/index.tsx b/src/features/Onboarding/Layout/index.tsx
index 38a38ac65d6..7749bc3b779 100644
--- a/src/features/Onboarding/Layout/index.tsx
+++ b/src/features/Onboarding/Layout/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { cx, useTheme } from 'antd-style';
+import { Center, cx, Divider, Flexbox, useTheme } from '@lobehub/ui';
import { type FC, type PropsWithChildren, useEffect } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/features/Onboarding/Layout/style.ts b/src/features/Onboarding/Layout/style.ts
index 99af5d75685..369c09214a7 100644
--- a/src/features/Onboarding/Layout/style.ts
+++ b/src/features/Onboarding/Layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Inner container - dark mode
diff --git a/src/features/Onboarding/components/ComposioServerList/components/ComposioServerItem.tsx b/src/features/Onboarding/components/ComposioServerList/components/ComposioServerItem.tsx
index d6ace433577..12a3e14860d 100644
--- a/src/features/Onboarding/components/ComposioServerList/components/ComposioServerItem.tsx
+++ b/src/features/Onboarding/components/ComposioServerList/components/ComposioServerItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { type ComposioAppType } from '@/const/index';
diff --git a/src/features/Onboarding/components/ComposioServerList/components/ServerIcon.tsx b/src/features/Onboarding/components/ComposioServerList/components/ServerIcon.tsx
index 21597851c2e..ef27e83f516 100644
--- a/src/features/Onboarding/components/ComposioServerList/components/ServerIcon.tsx
+++ b/src/features/Onboarding/components/ComposioServerList/components/ServerIcon.tsx
@@ -1,6 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, cssVar, Icon } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Onboarding/components/ComposioServerList/components/ServerStatusControl.tsx b/src/features/Onboarding/components/ComposioServerList/components/ServerStatusControl.tsx
index 611c93c3486..ee896daa662 100644
--- a/src/features/Onboarding/components/ComposioServerList/components/ServerStatusControl.tsx
+++ b/src/features/Onboarding/components/ComposioServerList/components/ServerStatusControl.tsx
@@ -1,6 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Spin } from '@lobehub/ui';
import { CheckIcon, CircleX } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/components/LobeMessage.tsx b/src/features/Onboarding/components/LobeMessage.tsx
index 09895eb3901..075f0d08dcc 100644
--- a/src/features/Onboarding/components/LobeMessage.tsx
+++ b/src/features/Onboarding/components/LobeMessage.tsx
@@ -1,8 +1,7 @@
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
+import { Avatar, Flexbox, Text } from '@lobehub/ui';
import { type TypewriterEffectProps } from '@lobehub/ui/awesome';
import { TypewriterEffect } from '@lobehub/ui/awesome';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
import { LoadingDots } from '@lobehub/ui/chat';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/AgentPickerStep/AgentCard.tsx b/src/features/Onboarding/steps/AgentPickerStep/AgentCard.tsx
index f2643b5cb2c..e85fc879b2b 100644
--- a/src/features/Onboarding/steps/AgentPickerStep/AgentCard.tsx
+++ b/src/features/Onboarding/steps/AgentPickerStep/AgentCard.tsx
@@ -1,7 +1,5 @@
import type { AgentTemplate } from '@lobechat/builtin-tool-web-onboarding/agentMarketplace';
-import { Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Avatar, cx, Icon } from '@lobehub/ui';
import { CheckIcon } from 'lucide-react';
import type { KeyboardEvent } from 'react';
import { memo, useCallback } from 'react';
diff --git a/src/features/Onboarding/steps/AgentPickerStep/CategoryFilter.tsx b/src/features/Onboarding/steps/AgentPickerStep/CategoryFilter.tsx
index f78ac5bc656..0b24b2c9381 100644
--- a/src/features/Onboarding/steps/AgentPickerStep/CategoryFilter.tsx
+++ b/src/features/Onboarding/steps/AgentPickerStep/CategoryFilter.tsx
@@ -1,5 +1,5 @@
import type { MarketplaceCategory } from '@lobechat/builtin-tool-web-onboarding/agentMarketplace';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/AgentPickerStep/index.tsx b/src/features/Onboarding/steps/AgentPickerStep/index.tsx
index d33d823bcd1..39ec4d8c0ed 100644
--- a/src/features/Onboarding/steps/AgentPickerStep/index.tsx
+++ b/src/features/Onboarding/steps/AgentPickerStep/index.tsx
@@ -5,9 +5,7 @@ import type {
MarketplaceCategory,
} from '@lobechat/builtin-tool-web-onboarding/agentMarketplace';
import { getTemplatesByCategoryPriority } from '@lobechat/builtin-tool-web-onboarding/agentMarketplace';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Text } from '@lobehub/ui';
import { Undo2Icon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/AgentPickerStep/style.ts b/src/features/Onboarding/steps/AgentPickerStep/style.ts
index dbe520e326d..b9c8fda53dc 100644
--- a/src/features/Onboarding/steps/AgentPickerStep/style.ts
+++ b/src/features/Onboarding/steps/AgentPickerStep/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
const pulse = keyframes`
0%,
diff --git a/src/features/Onboarding/steps/FullNameStep.tsx b/src/features/Onboarding/steps/FullNameStep.tsx
index d9a22a565c1..2e93f8a79af 100644
--- a/src/features/Onboarding/steps/FullNameStep.tsx
+++ b/src/features/Onboarding/steps/FullNameStep.tsx
@@ -1,9 +1,7 @@
'use client';
import { SendButton } from '@lobehub/editor/react';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Input } from '@lobehub/ui';
import { SignatureIcon, Undo2Icon } from 'lucide-react';
import { memo, useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/InterestsStep.tsx b/src/features/Onboarding/steps/InterestsStep.tsx
index 87d68c1de7e..7af9272548c 100644
--- a/src/features/Onboarding/steps/InterestsStep.tsx
+++ b/src/features/Onboarding/steps/InterestsStep.tsx
@@ -1,9 +1,7 @@
'use client';
import { normalizeInterestsForStorage } from '@lobechat/const';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, Icon, Input, Text } from '@lobehub/ui';
import { BriefcaseIcon, Undo2Icon } from 'lucide-react';
import { memo, useCallback, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/ProSettingsStep.tsx b/src/features/Onboarding/steps/ProSettingsStep.tsx
index 75911408072..0670475ec6b 100644
--- a/src/features/Onboarding/steps/ProSettingsStep.tsx
+++ b/src/features/Onboarding/steps/ProSettingsStep.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox } from '@lobehub/ui';
import { Undo2Icon } from 'lucide-react';
import { memo, useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/ResponseLanguageStep.tsx b/src/features/Onboarding/steps/ResponseLanguageStep.tsx
index 0b03892319a..823601ff127 100644
--- a/src/features/Onboarding/steps/ResponseLanguageStep.tsx
+++ b/src/features/Onboarding/steps/ResponseLanguageStep.tsx
@@ -1,9 +1,7 @@
'use client';
import { SendButton } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Select, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Select, Text } from '@lobehub/ui';
import { Undo2Icon } from 'lucide-react';
import { memo, useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Onboarding/steps/TelemetryStep.tsx b/src/features/Onboarding/steps/TelemetryStep.tsx
index 2b12d6eed24..0425b3421c6 100644
--- a/src/features/Onboarding/steps/TelemetryStep.tsx
+++ b/src/features/Onboarding/steps/TelemetryStep.tsx
@@ -2,11 +2,19 @@
import { BRANDING_NAME } from '@lobechat/business-const';
import { type IconProps } from '@lobehub/ui';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
+import {
+ Block,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Steps,
+ Switch,
+ Text,
+} from '@lobehub/ui';
import { TypewriterEffect } from '@lobehub/ui/awesome';
-import { Button, Steps, Switch, Text } from '@lobehub/ui/base-ui';
import { LoadingDots } from '@lobehub/ui/chat';
-import { createStaticStyles, cssVar } from 'antd-style';
import { BrainIcon, HeartHandshakeIcon, PencilRulerIcon, ShieldCheck } from 'lucide-react';
import { memo, useCallback, useRef, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/OpenInAppButton/index.tsx b/src/features/OpenInAppButton/index.tsx
index 079a3a773fa..e09144dfb88 100644
--- a/src/features/OpenInAppButton/index.tsx
+++ b/src/features/OpenInAppButton/index.tsx
@@ -1,7 +1,7 @@
import { isDesktop } from '@lobechat/const';
import type { OpenInAppId } from '@lobechat/electron-client-ipc';
import { DropdownMenu, type DropdownMenuProps, Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { ChevronDownIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/OpenInAppButton/useOpenInApp.test.tsx b/src/features/OpenInAppButton/useOpenInApp.test.tsx
index 3e48a79b26b..2b94ecb9361 100644
--- a/src/features/OpenInAppButton/useOpenInApp.test.tsx
+++ b/src/features/OpenInAppButton/useOpenInApp.test.tsx
@@ -9,7 +9,7 @@ const wrapper = ({ children }: { children: ReactNode }) => (
<SWRConfig value={{ dedupingInterval: 0, provider: () => new Map() }}>{children}</SWRConfig>
);
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
@@ -95,7 +95,7 @@ describe('useOpenInApp', () => {
const importModules = async () => {
const hookMod = await import('./useOpenInApp');
const svc = await import('@/services/electron/openInApp');
- const { toast } = await import('@lobehub/ui/base-ui');
+ const { toast } = await import('@lobehub/ui');
return {
service: svc.electronOpenInAppService,
toast,
diff --git a/src/features/OpenInAppButton/useOpenInApp.ts b/src/features/OpenInAppButton/useOpenInApp.ts
index e4be35d1524..3da0ff5663e 100644
--- a/src/features/OpenInAppButton/useOpenInApp.ts
+++ b/src/features/OpenInAppButton/useOpenInApp.ts
@@ -1,6 +1,6 @@
import { isDesktop } from '@lobechat/const';
import type { DetectedApp, OpenInAppId } from '@lobechat/electron-client-ipc';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
diff --git a/src/features/PageEditor/Copilot/AgentSelector/AgentSelectorAction.tsx b/src/features/PageEditor/Copilot/AgentSelector/AgentSelectorAction.tsx
index 7c1c7f43ed5..7d6f21a44e9 100644
--- a/src/features/PageEditor/Copilot/AgentSelector/AgentSelectorAction.tsx
+++ b/src/features/PageEditor/Copilot/AgentSelector/AgentSelectorAction.tsx
@@ -1,6 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Center, Flexbox, Popover } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Center, createStaticStyles, cx, Flexbox, Popover } from '@lobehub/ui';
import { ChevronsUpDownIcon } from 'lucide-react';
import { memo, Suspense, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/Copilot/CopilotModelSelect.tsx b/src/features/PageEditor/Copilot/CopilotModelSelect.tsx
index 3e3d5cc5738..dacb087f5ff 100644
--- a/src/features/PageEditor/Copilot/CopilotModelSelect.tsx
+++ b/src/features/PageEditor/Copilot/CopilotModelSelect.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Center, createStaticStyles, Flexbox } from '@lobehub/ui';
import { ChevronDownIcon, Settings2Icon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/features/PageEditor/Copilot/Toolbar.tsx b/src/features/PageEditor/Copilot/Toolbar.tsx
index dfe5c08143f..49339cc2cc6 100644
--- a/src/features/PageEditor/Copilot/Toolbar.tsx
+++ b/src/features/PageEditor/Copilot/Toolbar.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Popover } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, Popover, Text } from '@lobehub/ui';
import { Clock3Icon, PanelRightCloseIcon, PlusIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/Copilot/TopicSelector/Actions.tsx b/src/features/PageEditor/Copilot/TopicSelector/Actions.tsx
index 0b8a34956cb..8b3e16803e8 100644
--- a/src/features/PageEditor/Copilot/TopicSelector/Actions.tsx
+++ b/src/features/PageEditor/Copilot/TopicSelector/Actions.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx b/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx
index 31c5cdd029e..9d36e39ef30 100644
--- a/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx
+++ b/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx
@@ -1,8 +1,7 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import type { ChatTopicStatus } from '@lobechat/types';
-import type { MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { Icon, toast } from '@lobehub/ui';
import {
Archive,
ArchiveRestore,
@@ -51,7 +50,7 @@ export const useDropdownMenu = ({
status,
topicId,
topicTitle,
-}: UseDropdownMenuProps): (() => MenuProps['items']) => {
+}: UseDropdownMenuProps): (() => DropdownItem[]) => {
const { t } = useTranslation(['common', 'topic']);
const appOrigin = useAppOrigin();
@@ -249,7 +248,7 @@ export const useDropdownMenu = ({
},
sfSymbol: 'trash',
},
- ].filter(Boolean) as MenuProps['items'],
+ ].filter(Boolean) as DropdownItem[],
[
addTab,
activeWorkspaceSlug,
diff --git a/src/features/PageEditor/Copilot/Welcome.tsx b/src/features/PageEditor/Copilot/Welcome.tsx
index c800c0422de..e9cd60faf22 100644
--- a/src/features/PageEditor/Copilot/Welcome.tsx
+++ b/src/features/PageEditor/Copilot/Welcome.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/BlockCommentMarker.tsx b/src/features/PageEditor/DocumentComments/BlockCommentMarker.tsx
index 5c0fdd1ec0a..99fc88e7981 100644
--- a/src/features/PageEditor/DocumentComments/BlockCommentMarker.tsx
+++ b/src/features/PageEditor/DocumentComments/BlockCommentMarker.tsx
@@ -1,7 +1,7 @@
'use client';
import { HIDE_TOOLBAR_COMMAND } from '@lobehub/editor';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { MessageSquarePlus } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/CommentCard.tsx b/src/features/PageEditor/DocumentComments/CommentCard.tsx
index fe1b4f33e76..32623bd0204 100644
--- a/src/features/PageEditor/DocumentComments/CommentCard.tsx
+++ b/src/features/PageEditor/DocumentComments/CommentCard.tsx
@@ -1,8 +1,16 @@
import type { DocumentCommentItem } from '@lobechat/types';
import { ChatInput, ChatInputActionBar, useEditor } from '@lobehub/editor/react';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ confirmModal,
+ cx,
+ Flexbox,
+ Markdown,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { ChevronRight, MessageCircle, Pencil, Trash } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/Composer.tsx b/src/features/PageEditor/DocumentComments/Composer.tsx
index 24f957ac89b..5758293c5a8 100644
--- a/src/features/PageEditor/DocumentComments/Composer.tsx
+++ b/src/features/PageEditor/DocumentComments/Composer.tsx
@@ -1,7 +1,6 @@
import type { DocumentCommentJson, DocumentCommentSelectionAnchor } from '@lobechat/types';
import { ChatInput, ChatInputActionBar, SendButton, useEditor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Button, toast } from '@lobehub/ui/base-ui';
+import { Avatar, Button, Flexbox, toast } from '@lobehub/ui';
import { nanoid } from 'nanoid';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/DocumentCommentEditor.tsx b/src/features/PageEditor/DocumentComments/DocumentCommentEditor.tsx
index 8e30c52105b..5b46c2ce059 100644
--- a/src/features/PageEditor/DocumentComments/DocumentCommentEditor.tsx
+++ b/src/features/PageEditor/DocumentComments/DocumentCommentEditor.tsx
@@ -2,7 +2,7 @@ import type { DocumentCommentJson } from '@lobechat/types';
import type { IEditor } from '@lobehub/editor';
import type { EditorProps } from '@lobehub/editor/react';
import { useEditor } from '@lobehub/editor/react';
-import { cx } from 'antd-style';
+import { cx } from '@lobehub/ui';
import type { Ref } from 'react';
import { memo, useCallback, useImperativeHandle } from 'react';
diff --git a/src/features/PageEditor/DocumentComments/Gutter/index.tsx b/src/features/PageEditor/DocumentComments/Gutter/index.tsx
index ac04ca25565..b8d1ec4f45d 100644
--- a/src/features/PageEditor/DocumentComments/Gutter/index.tsx
+++ b/src/features/PageEditor/DocumentComments/Gutter/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Empty, Flexbox, Text } from '@lobehub/ui';
import { MessageSquareTextIcon } from 'lucide-react';
import { memo, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/Thread.tsx b/src/features/PageEditor/DocumentComments/Thread.tsx
index d5cbbe4f091..d05c9685211 100644
--- a/src/features/PageEditor/DocumentComments/Thread.tsx
+++ b/src/features/PageEditor/DocumentComments/Thread.tsx
@@ -1,7 +1,5 @@
import type { DocumentCommentItem, DocumentCommentThread } from '@lobechat/types';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Skeleton } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Button, Center, cx, Flexbox, Skeleton } from '@lobehub/ui';
import { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsx b/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsx
index 9dd240a0720..9f40fa6dadf 100644
--- a/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsx
+++ b/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsx
@@ -1,9 +1,7 @@
'use client';
import type { DocumentCommentSelectionAnchor } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Tag, Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { ActionIcon, cx, Flexbox, Tag, Text } from '@lobehub/ui';
import { X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsx b/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsx
index 434f4eca08c..00e2273e049 100644
--- a/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsx
+++ b/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createGlobalStyle, cssVar } from 'antd-style';
+import { createGlobalStyle, cssVar } from '@lobehub/ui';
import { HIGHLIGHT_REGISTRY } from './highlights';
diff --git a/src/features/PageEditor/DocumentComments/index.tsx b/src/features/PageEditor/DocumentComments/index.tsx
index f371539d5b3..07798ca6223 100644
--- a/src/features/PageEditor/DocumentComments/index.tsx
+++ b/src/features/PageEditor/DocumentComments/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Flexbox, Skeleton, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentComments/styles.ts b/src/features/PageEditor/DocumentComments/styles.ts
index 28f41be9db2..dfa19ed2a4f 100644
--- a/src/features/PageEditor/DocumentComments/styles.ts
+++ b/src/features/PageEditor/DocumentComments/styles.ts
@@ -1,5 +1,5 @@
import { DEFAULT_BLOCK_ANCHOR_PADDING } from '@lobehub/editor/react';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { GUTTER_INSET_END, GUTTER_INSET_START } from './Gutter/constants';
diff --git a/src/features/PageEditor/DocumentComments/useDocumentCommentsState.ts b/src/features/PageEditor/DocumentComments/useDocumentCommentsState.ts
index 9f8321782d5..60bcc459ecd 100644
--- a/src/features/PageEditor/DocumentComments/useDocumentCommentsState.ts
+++ b/src/features/PageEditor/DocumentComments/useDocumentCommentsState.ts
@@ -5,7 +5,7 @@ import type {
DocumentCommentThread,
DocumentCommentThreadPage,
} from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { type RefObject, useCallback, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/DocumentLikes/index.tsx b/src/features/PageEditor/DocumentLikes/index.tsx
index 816125998d8..207b05b7cb7 100644
--- a/src/features/PageEditor/DocumentLikes/index.tsx
+++ b/src/features/PageEditor/DocumentLikes/index.tsx
@@ -1,9 +1,16 @@
'use client';
import type { DocumentLikeSummary } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Skeleton, Text, toast, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Avatar,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Skeleton,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { ThumbsUp } from 'lucide-react';
import { memo, useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/EditingIndicator.tsx b/src/features/PageEditor/EditingIndicator.tsx
index 7de6162d370..f04530c5098 100644
--- a/src/features/PageEditor/EditingIndicator.tsx
+++ b/src/features/PageEditor/EditingIndicator.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Spin, Text, Tooltip } from '@lobehub/ui';
import { PencilIcon } from 'lucide-react';
import { type CSSProperties, memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsx b/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsx
index ed6ece6756a..f2d8967a82b 100644
--- a/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsx
+++ b/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsx
@@ -4,8 +4,7 @@ import type { DocumentCommentSelectionAnchor } from '@lobechat/types';
import { type IEditor } from '@lobehub/editor';
import { HIDE_TOOLBAR_COMMAND } from '@lobehub/editor';
import { type ChatInputActionsProps } from '@lobehub/editor/react';
-import { Block, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import { MessageSquarePlus } from 'lucide-react';
import { useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/EditorCanvas/useAskCopilotItem.tsx b/src/features/PageEditor/EditorCanvas/useAskCopilotItem.tsx
index 0e3801e6520..e29f60d66ef 100644
--- a/src/features/PageEditor/EditorCanvas/useAskCopilotItem.tsx
+++ b/src/features/PageEditor/EditorCanvas/useAskCopilotItem.tsx
@@ -5,9 +5,7 @@ import { nanoid } from '@lobechat/utils';
import { type IEditor } from '@lobehub/editor';
import { HIDE_TOOLBAR_COMMAND } from '@lobehub/editor';
import { type ChatInputActionsProps } from '@lobehub/editor/react';
-import { Block } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, Block, createStaticStyles, cssVar } from '@lobehub/ui';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/EditorCanvas/useSlashItems.tsx b/src/features/PageEditor/EditorCanvas/useSlashItems.tsx
index 2b7a7f61dc2..0c120dd37cf 100644
--- a/src/features/PageEditor/EditorCanvas/useSlashItems.tsx
+++ b/src/features/PageEditor/EditorCanvas/useSlashItems.tsx
@@ -10,7 +10,7 @@ import {
INSERT_TABLE_COMMAND,
INSERT_UNORDERED_LIST_COMMAND,
} from '@lobehub/editor';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import {
Heading1Icon,
Heading2Icon,
diff --git a/src/features/PageEditor/Header/Breadcrumb.tsx b/src/features/PageEditor/Header/Breadcrumb.tsx
index 1c8e5305d8e..de1dba53f3b 100644
--- a/src/features/PageEditor/Header/Breadcrumb.tsx
+++ b/src/features/PageEditor/Header/Breadcrumb.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/Header/index.tsx b/src/features/PageEditor/Header/index.tsx
index 51e6ed671b2..64d9da9e450 100644
--- a/src/features/PageEditor/Header/index.tsx
+++ b/src/features/PageEditor/Header/index.tsx
@@ -1,8 +1,14 @@
'use client';
-import { DropdownMenu, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Text,
+} from '@lobehub/ui';
import { ArrowLeftIcon, MessageSquareTextIcon, MoreHorizontal, SparklesIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/Header/useMenu.test.tsx b/src/features/PageEditor/Header/useMenu.test.tsx
index 2daa6e03f98..3654f624085 100644
--- a/src/features/PageEditor/Header/useMenu.test.tsx
+++ b/src/features/PageEditor/Header/useMenu.test.tsx
@@ -38,7 +38,8 @@ vi.mock('@lobechat/const', () => ({
isDesktop: false,
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
confirmModal: vi.fn(),
}));
diff --git a/src/features/PageEditor/Header/useMenu.tsx b/src/features/PageEditor/Header/useMenu.tsx
index b580a505ef8..b9c7c09b57b 100644
--- a/src/features/PageEditor/Header/useMenu.tsx
+++ b/src/features/PageEditor/Header/useMenu.tsx
@@ -1,8 +1,6 @@
import { isDesktop } from '@lobechat/const';
import type { DropdownItem } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
-import { cssVar, useResponsive } from 'antd-style';
+import { confirmModal, cssVar, Icon, toast, useResponsive } from '@lobehub/ui';
import {
Clock3Icon,
CopyPlus,
diff --git a/src/features/PageEditor/History/CompareModal/CompareContent.tsx b/src/features/PageEditor/History/CompareModal/CompareContent.tsx
index 3580802701d..01c07a20642 100644
--- a/src/features/PageEditor/History/CompareModal/CompareContent.tsx
+++ b/src/features/PageEditor/History/CompareModal/CompareContent.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { RotateCcwIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
diff --git a/src/features/PageEditor/History/CompareModal/HistorySidebar.tsx b/src/features/PageEditor/History/CompareModal/HistorySidebar.tsx
index b98bcb99260..9caf51b4f42 100644
--- a/src/features/PageEditor/History/CompareModal/HistorySidebar.tsx
+++ b/src/features/PageEditor/History/CompareModal/HistorySidebar.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/History/CompareModal/index.tsx b/src/features/PageEditor/History/CompareModal/index.tsx
index df823d28b77..1b25f0c04f3 100644
--- a/src/features/PageEditor/History/CompareModal/index.tsx
+++ b/src/features/PageEditor/History/CompareModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import CompareContent, { type CompareContentProps } from './CompareContent';
diff --git a/src/features/PageEditor/History/DocumentHistoryDiff.tsx b/src/features/PageEditor/History/DocumentHistoryDiff.tsx
index eb7ccaadc9f..f30b5bd8dfb 100644
--- a/src/features/PageEditor/History/DocumentHistoryDiff.tsx
+++ b/src/features/PageEditor/History/DocumentHistoryDiff.tsx
@@ -2,8 +2,7 @@
import type { LexicalDiffProps } from '@lobehub/editor/renderer';
import { LexicalDiff } from '@lobehub/editor/renderer';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Empty, Flexbox } from '@lobehub/ui';
import type { SerializedEditorState } from 'lexical';
import { GitCompareArrowsIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/PageEditor/History/HistoryListItem.tsx b/src/features/PageEditor/History/HistoryListItem.tsx
index c51db088fe2..8bf3088c9d9 100644
--- a/src/features/PageEditor/History/HistoryListItem.tsx
+++ b/src/features/PageEditor/History/HistoryListItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Tag, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, cx, Flexbox, Tag, Tooltip } from '@lobehub/ui';
import dayjs from 'dayjs';
import { ArrowLeftRightIcon, RotateCcwIcon } from 'lucide-react';
import type { MouseEvent } from 'react';
diff --git a/src/features/PageEditor/History/index.tsx b/src/features/PageEditor/History/index.tsx
index 2d41e96ba3c..fe480751f25 100644
--- a/src/features/PageEditor/History/index.tsx
+++ b/src/features/PageEditor/History/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, type ModalInstance, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Empty, Flexbox } from '@lobehub/ui';
+import { Button, confirmModal, type ModalInstance, Text, toast } from '@lobehub/ui';
import dayjs from 'dayjs';
import { ArrowLeftIcon, Clock3Icon } from 'lucide-react';
import { memo, useMemo, useRef, useState } from 'react';
diff --git a/src/features/PageEditor/LockStatusBanner.tsx b/src/features/PageEditor/LockStatusBanner.tsx
index 2fd16f2e183..950196bdf2e 100644
--- a/src/features/PageEditor/LockStatusBanner.tsx
+++ b/src/features/PageEditor/LockStatusBanner.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/LockedAlert.tsx b/src/features/PageEditor/LockedAlert.tsx
index 5a131a4780a..0149c485193 100644
--- a/src/features/PageEditor/LockedAlert.tsx
+++ b/src/features/PageEditor/LockedAlert.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/PageEditor.tsx b/src/features/PageEditor/PageEditor.tsx
index 2ff71e13307..44a93acd441 100644
--- a/src/features/PageEditor/PageEditor.tsx
+++ b/src/features/PageEditor/PageEditor.tsx
@@ -1,8 +1,7 @@
'use client';
import { DEFAULT_BLOCK_ANCHOR_PADDING, EditorProvider } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import type { CSSProperties, FC, ReactNode, UIEvent } from 'react';
import { memo, useCallback, useEffect, useLayoutEffect, useRef } from 'react';
diff --git a/src/features/PageEditor/RightPanel/index.tsx b/src/features/PageEditor/RightPanel/index.tsx
index 81e676addda..39f5719a327 100644
--- a/src/features/PageEditor/RightPanel/index.tsx
+++ b/src/features/PageEditor/RightPanel/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Freeze } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Freeze } from '@lobehub/ui';
import { AnimatePresence, useIsPresent } from 'motion/react';
import * as m from 'motion/react-m';
import { type ReactNode } from 'react';
diff --git a/src/features/PageEditor/TitleSection.tsx b/src/features/PageEditor/TitleSection.tsx
index f8a2a3c2817..908c08c705e 100644
--- a/src/features/PageEditor/TitleSection.tsx
+++ b/src/features/PageEditor/TitleSection.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, TextArea } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Skeleton, TextArea } from '@lobehub/ui';
import { SmilePlus } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageEditor/store/action.ts b/src/features/PageEditor/store/action.ts
index 56cc0735bd0..50716307fea 100644
--- a/src/features/PageEditor/store/action.ts
+++ b/src/features/PageEditor/store/action.ts
@@ -1,5 +1,5 @@
import { EDITOR_DEBOUNCE_TIME, EDITOR_MAX_WAIT, isDesktop } from '@lobechat/const';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import debug from 'debug';
import { debounce } from 'es-toolkit/compat';
import { type StateCreator } from 'zustand';
diff --git a/src/features/PageEditor/usePageDraft.ts b/src/features/PageEditor/usePageDraft.ts
index 5d34f0651de..8cf4434dbfd 100644
--- a/src/features/PageEditor/usePageDraft.ts
+++ b/src/features/PageEditor/usePageDraft.ts
@@ -1,6 +1,6 @@
'use client';
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import debug from 'debug';
import { debounce } from 'es-toolkit/compat';
import { useEffect, useMemo, useRef } from 'react';
diff --git a/src/features/PageExplorer/PageExplorerPlaceholder.tsx b/src/features/PageExplorer/PageExplorerPlaceholder.tsx
index c5f679436aa..3e5d5c3892b 100644
--- a/src/features/PageExplorer/PageExplorerPlaceholder.tsx
+++ b/src/features/PageExplorer/PageExplorerPlaceholder.tsx
@@ -1,8 +1,15 @@
import { CUSTOM_DOCUMENT_FILE_TYPE } from '@lobechat/const';
import { Notion } from '@lobehub/icons';
-import { Center, FileTypeIcon, Flexbox, Icon } from '@lobehub/ui';
-import { Text, Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ FileTypeIcon,
+ Flexbox,
+ Icon,
+ Text,
+ Upload,
+} from '@lobehub/ui';
import { ArrowUpIcon, PlusIcon } from 'lucide-react';
import React, { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PageShell/ShellTopBar.tsx b/src/features/PageShell/ShellTopBar.tsx
index 2e7095dc307..963ddcab35b 100644
--- a/src/features/PageShell/ShellTopBar.tsx
+++ b/src/features/PageShell/ShellTopBar.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowLeft, ChevronsUpDownIcon } from 'lucide-react';
import type { ReactNode } from 'react';
diff --git a/src/features/Pages/MobilePageHeader/index.tsx b/src/features/Pages/MobilePageHeader/index.tsx
index f535f9c96fb..0732279d3d5 100644
--- a/src/features/Pages/MobilePageHeader/index.tsx
+++ b/src/features/Pages/MobilePageHeader/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox } from '@lobehub/ui';
import { ChatHeader } from '@lobehub/ui/mobile';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Pages/PageLayout/Body/Actions.tsx b/src/features/Pages/PageLayout/Body/Actions.tsx
index f2920d281b6..cd92392a6bb 100644
--- a/src/features/Pages/PageLayout/Body/Actions.tsx
+++ b/src/features/Pages/PageLayout/Body/Actions.tsx
@@ -1,15 +1,14 @@
'use client';
-import { type MenuProps } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo } from 'react';
import { useDropdownMenu } from './useDropdownMenu';
const Actions = memo(() => {
- const items: MenuProps['items'] = useDropdownMenu();
+ const items: DropdownItem[] = useDropdownMenu();
return (
<DropdownMenu items={items}>
diff --git a/src/features/Pages/PageLayout/Body/List/Item/Actions.tsx b/src/features/Pages/PageLayout/Body/List/Item/Actions.tsx
index 6b19c4604cb..6409785f4ac 100644
--- a/src/features/Pages/PageLayout/Body/List/Item/Actions.tsx
+++ b/src/features/Pages/PageLayout/Body/List/Item/Actions.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Pages/PageLayout/Body/List/Item/Editing.tsx b/src/features/Pages/PageLayout/Body/List/Item/Editing.tsx
index 6d5ca876bec..86993327849 100644
--- a/src/features/Pages/PageLayout/Body/List/Item/Editing.tsx
+++ b/src/features/Pages/PageLayout/Body/List/Item/Editing.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox, Popover, stopPropagation } from '@lobehub/ui';
-import { Input } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Input, Popover, stopPropagation } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Pages/PageLayout/Body/List/Item/index.tsx b/src/features/Pages/PageLayout/Body/List/Item/index.tsx
index 4ff464c4afc..9fed107f0ff 100644
--- a/src/features/Pages/PageLayout/Body/List/Item/index.tsx
+++ b/src/features/Pages/PageLayout/Body/List/Item/index.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, Icon } from '@lobehub/ui';
import { FileTextIcon } from 'lucide-react';
import { type MouseEvent } from 'react';
import { memo, useCallback, useMemo, useRef } from 'react';
diff --git a/src/features/Pages/PageLayout/Body/List/Item/useDropdownMenu.tsx b/src/features/Pages/PageLayout/Body/List/Item/useDropdownMenu.tsx
index 841792b0df5..b147eed7dcc 100644
--- a/src/features/Pages/PageLayout/Body/List/Item/useDropdownMenu.tsx
+++ b/src/features/Pages/PageLayout/Body/List/Item/useDropdownMenu.tsx
@@ -1,6 +1,5 @@
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import { CopyPlus, EyeOffIcon, PanelTop, Pencil, Trash2, UsersIcon } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
@@ -23,10 +22,7 @@ interface ActionProps {
toggleEditing: (visible?: boolean) => void;
}
-export const useDropdownMenu = ({
- pageId,
- toggleEditing,
-}: ActionProps): (() => MenuProps['items']) => {
+export const useDropdownMenu = ({ pageId, toggleEditing }: ActionProps): (() => DropdownItem[]) => {
const { t } = useTranslation(['common', 'file']);
const navigate = useWorkspaceAwareNavigate();
@@ -193,7 +189,7 @@ export const useDropdownMenu = ({
label: t('delete'),
onClick: handleDelete,
},
- ].filter(Boolean) as MenuProps['items'],
+ ].filter(Boolean) as DropdownItem[],
[
t,
toggleEditing,
diff --git a/src/features/Pages/PageLayout/Body/index.tsx b/src/features/Pages/PageLayout/Body/index.tsx
index f410c6625a9..250f40f25b7 100644
--- a/src/features/Pages/PageLayout/Body/index.tsx
+++ b/src/features/Pages/PageLayout/Body/index.tsx
@@ -1,6 +1,5 @@
'use client';
-import { Block, Center, ContextMenuTrigger, Flexbox, Icon } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -8,10 +7,15 @@ import {
AccordionRoot,
accordionStyles,
AccordionTrigger,
+ Block,
+ Center,
+ ContextMenuTrigger,
+ cx,
+ Flexbox,
+ Icon,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Pages/PageLayout/Body/useDropdownMenu.tsx b/src/features/Pages/PageLayout/Body/useDropdownMenu.tsx
index 01d622ba9b7..54ec3da763e 100644
--- a/src/features/Pages/PageLayout/Body/useDropdownMenu.tsx
+++ b/src/features/Pages/PageLayout/Body/useDropdownMenu.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
import { Hash, LucideCheck } from 'lucide-react';
import { useMemo } from 'react';
@@ -10,7 +10,7 @@ import { useGlobalStore } from '@/store/global';
import { systemStatusSelectors } from '@/store/global/selectors';
import { usePageStore } from '@/store/page';
-export const useDropdownMenu = (): MenuProps['items'] => {
+export const useDropdownMenu = (): DropdownItem[] => {
const { t } = useTranslation();
const showOnlyPagesNotInLibrary = usePageStore((s) => s.showOnlyPagesNotInLibrary);
diff --git a/src/features/Pages/PageLayout/Header/AddButton.tsx b/src/features/Pages/PageLayout/Header/AddButton.tsx
index 0f800c1cb0d..e7255220c9e 100644
--- a/src/features/Pages/PageLayout/Header/AddButton.tsx
+++ b/src/features/Pages/PageLayout/Header/AddButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { PlusIcon, SquarePenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Pages/PageLayout/style.ts b/src/features/Pages/PageLayout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/features/Pages/PageLayout/style.ts
+++ b/src/features/Pages/PageLayout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/features/PlanIcon/index.tsx b/src/features/PlanIcon/index.tsx
index 5bc83fae177..5e003f83725 100644
--- a/src/features/PlanIcon/index.tsx
+++ b/src/features/PlanIcon/index.tsx
@@ -1,7 +1,5 @@
import { Plans } from '@lobechat/types';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Center, createStaticStyles, cssVar, Flexbox, Tag } from '@lobehub/ui';
import { Atom, Box, CircleSlash, Sparkle, Zap } from 'lucide-react';
import { type CSSProperties, type MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/src/features/PluginDetailModal/APIs.tsx b/src/features/PluginDetailModal/APIs.tsx
index 035f2fab058..78c06612be0 100644
--- a/src/features/PluginDetailModal/APIs.tsx
+++ b/src/features/PluginDetailModal/APIs.tsx
@@ -1,5 +1,4 @@
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Table } from '@lobehub/ui/base-ui';
+import { Empty, Flexbox, Table } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Wrench } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/PluginDetailModal/Meta.tsx b/src/features/PluginDetailModal/Meta.tsx
index 76f4bbbe190..05542dabb55 100644
--- a/src/features/PluginDetailModal/Meta.tsx
+++ b/src/features/PluginDetailModal/Meta.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/PluginDetailModal/index.tsx b/src/features/PluginDetailModal/index.tsx
index b254076e009..8e10fc7616c 100644
--- a/src/features/PluginDetailModal/index.tsx
+++ b/src/features/PluginDetailModal/index.tsx
@@ -1,4 +1,4 @@
-import { createModal, Tabs, type TabsItem } from '@lobehub/ui/base-ui';
+import { createModal, Tabs, type TabsItem } from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx b/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx
index 524e07c4a25..c2d598ec34a 100644
--- a/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx
+++ b/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx
@@ -1,5 +1,5 @@
import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Input, type InputProps } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, Input, type InputProps } from '@lobehub/ui';
import { Plus, X } from 'lucide-react';
import React, { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginDevModal/MCPManifestForm/CollapsibleSection.tsx b/src/features/PluginDevModal/MCPManifestForm/CollapsibleSection.tsx
index 8cd1dc2d315..6ed796b6aa0 100644
--- a/src/features/PluginDevModal/MCPManifestForm/CollapsibleSection.tsx
+++ b/src/features/PluginDevModal/MCPManifestForm/CollapsibleSection.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import { ChevronDown, ChevronRight } from 'lucide-react';
import { type ReactNode } from 'react';
import { useState } from 'react';
diff --git a/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx b/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx
index b053a3c9562..3cf8217f274 100644
--- a/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx
+++ b/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx
@@ -1,13 +1,10 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Center, createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { CheckIcon, RouterIcon, TerminalIcon } from 'lucide-react';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { isDesktop } from '@/const/version';
-// Define styles using antd-style (moved from MCPManifestForm)
const styles = createStaticStyles(({ css }) => ({
active: css`
border-color: ${cssVar.colorPrimary};
diff --git a/src/features/PluginDevModal/MCPManifestForm/QuickImportSection.tsx b/src/features/PluginDevModal/MCPManifestForm/QuickImportSection.tsx
index db12c5ab751..797a6628e1c 100644
--- a/src/features/PluginDevModal/MCPManifestForm/QuickImportSection.tsx
+++ b/src/features/PluginDevModal/MCPManifestForm/QuickImportSection.tsx
@@ -1,7 +1,6 @@
import { type LobeToolCustomPlugin } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, TextArea } from '@lobehub/ui/base-ui';
-import { type FormInstance } from '@lobehub/ui/base-ui/form';
+import { Alert, Button, Flexbox, TextArea } from '@lobehub/ui';
+import { type FormInstance } from '@lobehub/ui/form';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginDevModal/MCPManifestForm/index.tsx b/src/features/PluginDevModal/MCPManifestForm/index.tsx
index 38a4a1b1dcf..473b8911ac0 100644
--- a/src/features/PluginDevModal/MCPManifestForm/index.tsx
+++ b/src/features/PluginDevModal/MCPManifestForm/index.tsx
@@ -1,7 +1,6 @@
import { type LobeToolCustomPlugin } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, Divider, Input, InputPassword, RadioGroup } from '@lobehub/ui/base-ui';
-import { type FieldPath, Form, type FormInstance, useWatch } from '@lobehub/ui/base-ui/form';
+import { Alert, Button, Divider, Flexbox, Input, InputPassword, RadioGroup } from '@lobehub/ui';
+import { type FieldPath, Form, type FormInstance, useWatch } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginDevModal/PluginPreview/ApiVisualizer.tsx b/src/features/PluginDevModal/PluginPreview/ApiVisualizer.tsx
index 5964ac552b0..978965971ac 100644
--- a/src/features/PluginDevModal/PluginPreview/ApiVisualizer.tsx
+++ b/src/features/PluginDevModal/PluginPreview/ApiVisualizer.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Input, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Icon, Input, Tag } from '@lobehub/ui';
import { ChevronDown, ChevronRight, SearchIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginDevModal/PluginPreview/EmptyState.tsx b/src/features/PluginDevModal/PluginPreview/EmptyState.tsx
index 7de45e525f4..baa6facb18a 100644
--- a/src/features/PluginDevModal/PluginPreview/EmptyState.tsx
+++ b/src/features/PluginDevModal/PluginPreview/EmptyState.tsx
@@ -1,10 +1,7 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Text } from '@lobehub/ui';
import { Puzzle } from 'lucide-react';
import { useTranslation } from 'react-i18next';
-// Create styles using antd-style
const styles = createStaticStyles(({ css, cssVar }) => ({
container: css`
display: flex;
diff --git a/src/features/PluginDevModal/PluginPreview/index.tsx b/src/features/PluginDevModal/PluginPreview/index.tsx
index a45385648ba..4e4c110690d 100644
--- a/src/features/PluginDevModal/PluginPreview/index.tsx
+++ b/src/features/PluginDevModal/PluginPreview/index.tsx
@@ -1,8 +1,6 @@
import { type LobeToolCustomPlugin } from '@lobechat/types';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { type FormInstance, useWatch } from '@lobehub/ui/base-ui/form';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
+import { type FormInstance, useWatch } from '@lobehub/ui/form';
import { FileCode } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginDevModal/index.tsx b/src/features/PluginDevModal/index.tsx
index 2185ce3e5bb..40c71793b42 100644
--- a/src/features/PluginDevModal/index.tsx
+++ b/src/features/PluginDevModal/index.tsx
@@ -1,10 +1,8 @@
import { isDesktop } from '@lobechat/const';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
import { type LobeToolCustomPlugin } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, Drawer, toast } from '@lobehub/ui/base-ui';
-import { useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { useResponsive } from 'antd-style';
+import { Button, confirmModal, Drawer, Flexbox, toast, useResponsive } from '@lobehub/ui';
+import { useForm, useWatch } from '@lobehub/ui/form';
import { memo, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/PluginSettings/index.tsx b/src/features/PluginSettings/index.tsx
index 13cacddbcc9..b4cf256ac14 100644
--- a/src/features/PluginSettings/index.tsx
+++ b/src/features/PluginSettings/index.tsx
@@ -1,7 +1,6 @@
import { type ToolManifestSettings } from '@lobechat/types';
-import { Markdown } from '@lobehub/ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Markdown } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/PluginTag/PluginStatus.tsx b/src/features/PluginTag/PluginStatus.tsx
index a0ada7ff641..f753e6262c4 100644
--- a/src/features/PluginTag/PluginStatus.tsx
+++ b/src/features/PluginTag/PluginStatus.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Badge, Button, Tag, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Badge, Button, Flexbox, Tag, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { LucideRotateCw, LucideTrash2, RotateCwIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/PluginTag/index.tsx b/src/features/PluginTag/index.tsx
index c4c96066aaa..e9e24ad6dad 100644
--- a/src/features/PluginTag/index.tsx
+++ b/src/features/PluginTag/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, DropdownMenu, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Center, DropdownMenu, Icon, Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { LucideToyBrick } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/Portal/Acceptance/Header.tsx b/src/features/Portal/Acceptance/Header.tsx
index a6589ebe351..019076ea0e0 100644
--- a/src/features/Portal/Acceptance/Header.tsx
+++ b/src/features/Portal/Acceptance/Header.tsx
@@ -1,5 +1,5 @@
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { ExternalLink } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Acceptance/useMoreMenu.ts b/src/features/Portal/Acceptance/useMoreMenu.ts
index 1c9c1a7fe86..524fb81476a 100644
--- a/src/features/Portal/Acceptance/useMoreMenu.ts
+++ b/src/features/Portal/Acceptance/useMoreMenu.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { openRenameModal } from '@/components/RenameModal';
diff --git a/src/features/Portal/AcceptanceCheck/Body.tsx b/src/features/Portal/AcceptanceCheck/Body.tsx
index faef4ed2bd4..97700dd2423 100644
--- a/src/features/Portal/AcceptanceCheck/Body.tsx
+++ b/src/features/Portal/AcceptanceCheck/Body.tsx
@@ -1,9 +1,18 @@
'use client';
import type { VerifyAgentPlanConfig } from '@lobechat/types';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Spin, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Icon,
+ Spin,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/AgentDetail/Body.tsx b/src/features/Portal/AgentDetail/Body.tsx
index be61eb66013..a4f5f72355d 100644
--- a/src/features/Portal/AgentDetail/Body.tsx
+++ b/src/features/Portal/AgentDetail/Body.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Markdown, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/AgentDetail/Header.tsx b/src/features/Portal/AgentDetail/Header.tsx
index 3a18b187217..8086fb7b278 100644
--- a/src/features/Portal/AgentDetail/Header.tsx
+++ b/src/features/Portal/AgentDetail/Header.tsx
@@ -1,7 +1,7 @@
'use client';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Maximize2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/AgentDetail/Title.tsx b/src/features/Portal/AgentDetail/Title.tsx
index 9bd981ab663..ea8b3ff1ad3 100644
--- a/src/features/Portal/AgentDetail/Title.tsx
+++ b/src/features/Portal/AgentDetail/Title.tsx
@@ -1,8 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import Avatar from '@/components/Avatar';
diff --git a/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx b/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx
index 95f18e0b04c..b6fec112082 100644
--- a/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx
+++ b/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx
@@ -1,8 +1,6 @@
import { BRANDING_NAME } from '@lobechat/business-const';
import { copyImageToClipboard } from '@lobechat/utils/client';
-import { DropdownMenu, Flexbox, Tooltip } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { Button, css, cx, DropdownMenu, Flexbox, toast, Tooltip } from '@lobehub/ui';
import { CopyIcon, DownloadIcon } from 'lucide-react';
import { useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Artifacts/Title.tsx b/src/features/Portal/Artifacts/Title.tsx
index bcbe26ad9c1..c9eea9b8630 100644
--- a/src/features/Portal/Artifacts/Title.tsx
+++ b/src/features/Portal/Artifacts/Title.tsx
@@ -1,8 +1,5 @@
import { ArtifactType } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs, Text } from '@lobehub/ui/base-ui';
-import { ConfigProvider } from 'antd';
-import { cx } from 'antd-style';
+import { cx, Flexbox, Icon, Tabs, Text } from '@lobehub/ui';
import { CodeIcon, EyeIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
@@ -47,48 +44,38 @@ const Title = () => {
<Text className={cx(oneLineEllipsis)} type={'secondary'}>
{artifactTitle}
</Text>
- <ConfigProvider
- theme={{
- token: {
- borderRadiusSM: 16,
- borderRadiusXS: 16,
- fontSize: 12,
- },
- }}
- >
- <Flexbox horizontal align={'center'} gap={4}>
- <ArtifactDeploymentActions
- artifactIdentifier={artifactIdentifier}
- artifactTitle={artifactTitle}
- artifactType={artifactType}
- displayMode={displayMode}
- isArtifactTagClosed={isArtifactTagClosed}
- messageId={messageId}
- topicId={topicId}
+ <Flexbox horizontal align={'center'} gap={4}>
+ <ArtifactDeploymentActions
+ artifactIdentifier={artifactIdentifier}
+ artifactTitle={artifactTitle}
+ artifactType={artifactType}
+ displayMode={displayMode}
+ isArtifactTagClosed={isArtifactTagClosed}
+ messageId={messageId}
+ topicId={topicId}
+ />
+ {showSwitch && (
+ <Tabs
+ activeKey={displayMode}
+ size={'small'}
+ items={[
+ {
+ icon: <Icon icon={EyeIcon} />,
+ key: ArtifactDisplayMode.Preview,
+ label: t('artifacts.display.preview'),
+ },
+ {
+ icon: <Icon icon={CodeIcon} />,
+ key: ArtifactDisplayMode.Code,
+ label: t('artifacts.display.code'),
+ },
+ ]}
+ onChange={(key) => {
+ useChatStore.setState({ portalArtifactDisplayMode: key as ArtifactDisplayMode });
+ }}
/>
- {showSwitch && (
- <Tabs
- activeKey={displayMode}
- size={'small'}
- items={[
- {
- icon: <Icon icon={EyeIcon} />,
- key: ArtifactDisplayMode.Preview,
- label: t('artifacts.display.preview'),
- },
- {
- icon: <Icon icon={CodeIcon} />,
- key: ArtifactDisplayMode.Code,
- label: t('artifacts.display.code'),
- },
- ]}
- onChange={(key) => {
- useChatStore.setState({ portalArtifactDisplayMode: key as ArtifactDisplayMode });
- }}
- />
- )}
- </Flexbox>
- </ConfigProvider>
+ )}
+ </Flexbox>
</Flexbox>
);
};
diff --git a/src/features/Portal/DashboardWidget/Body.tsx b/src/features/Portal/DashboardWidget/Body.tsx
index 59513801cfc..5c247c44529 100644
--- a/src/features/Portal/DashboardWidget/Body.tsx
+++ b/src/features/Portal/DashboardWidget/Body.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Skeleton, Text } from '@lobehub/ui';
import { ArrowUpRightIcon, LayoutDashboardIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/DashboardWidget/Title.tsx b/src/features/Portal/DashboardWidget/Title.tsx
index a283baff8c9..0c0fc964d0e 100644
--- a/src/features/Portal/DashboardWidget/Title.tsx
+++ b/src/features/Portal/DashboardWidget/Title.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChartNoAxesColumnIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/Body.test.tsx b/src/features/Portal/Document/Body.test.tsx
index db3a4f6caf4..6fc737d68ff 100644
--- a/src/features/Portal/Document/Body.test.tsx
+++ b/src/features/Portal/Document/Body.test.tsx
@@ -9,7 +9,7 @@ vi.mock('@/features/FileViewer/FileDocumentPreview', () => ({
),
}));
-vi.mock('antd-style', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = (await importOriginal()) as Record<string, unknown>;
return {
diff --git a/src/features/Portal/Document/Body.tsx b/src/features/Portal/Document/Body.tsx
index ea24262396d..a99e20559f7 100644
--- a/src/features/Portal/Document/Body.tsx
+++ b/src/features/Portal/Document/Body.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Text,
+ TextArea,
+} from '@lobehub/ui';
import { CheckIcon, PencilIcon, XIcon } from 'lucide-react';
import type { ChangeEvent } from 'react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/Portal/Document/Header.tsx b/src/features/Portal/Document/Header.tsx
index 224753d3177..871cc524891 100644
--- a/src/features/Portal/Document/Header.tsx
+++ b/src/features/Portal/Document/Header.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Skeleton, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/PortalHeader.tsx b/src/features/Portal/Document/PortalHeader.tsx
index 4eb32bc5824..74b68c3ce81 100644
--- a/src/features/Portal/Document/PortalHeader.tsx
+++ b/src/features/Portal/Document/PortalHeader.tsx
@@ -1,8 +1,7 @@
'use client';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox } from '@lobehub/ui';
import { Maximize2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/SkillFrontmatterCard.tsx b/src/features/Portal/Document/SkillFrontmatterCard.tsx
index fa64bb2d604..e07c5fefd68 100644
--- a/src/features/Portal/Document/SkillFrontmatterCard.tsx
+++ b/src/features/Portal/Document/SkillFrontmatterCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, type ReactNode, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/TodoList.tsx b/src/features/Portal/Document/TodoList.tsx
index 889d8aeb15c..b87a3de3c52 100644
--- a/src/features/Portal/Document/TodoList.tsx
+++ b/src/features/Portal/Document/TodoList.tsx
@@ -1,9 +1,7 @@
'use client';
import { AGENT_PLAN_FILE_TYPE } from '@lobechat/const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Checkbox, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Checkbox, createStaticStyles, cssVar, cx, Flexbox, Icon, Tag } from '@lobehub/ui';
import { ChevronDown, ChevronUp, ListTodo } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/useHighlightSave.test.ts b/src/features/Portal/Document/useHighlightSave.test.ts
index fbe5dff8475..9d5fa2bbd64 100644
--- a/src/features/Portal/Document/useHighlightSave.test.ts
+++ b/src/features/Portal/Document/useHighlightSave.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -6,7 +6,7 @@ import { portalKeys } from '@/libs/swr/keys';
import { useHighlightSave } from './useHighlightSave';
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/features/Portal/Document/useHighlightSave.ts b/src/features/Portal/Document/useHighlightSave.ts
index 48b9bf7778e..6cb6c00400c 100644
--- a/src/features/Portal/Document/useHighlightSave.ts
+++ b/src/features/Portal/Document/useHighlightSave.ts
@@ -1,7 +1,7 @@
'use client';
import { EDITOR_DEBOUNCE_TIME, EDITOR_MAX_WAIT } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { debounce } from 'es-toolkit/compat';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/useMarkdownExport.test.ts b/src/features/Portal/Document/useMarkdownExport.test.ts
index 6432bf6a71f..ded4498737f 100644
--- a/src/features/Portal/Document/useMarkdownExport.test.ts
+++ b/src/features/Portal/Document/useMarkdownExport.test.ts
@@ -14,7 +14,7 @@ vi.mock('@lobechat/const', async (importOriginal) => ({
isDesktop: false,
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
toast: { error: vi.fn(), success: mocks.toastSuccess },
}));
diff --git a/src/features/Portal/Document/useMarkdownExport.ts b/src/features/Portal/Document/useMarkdownExport.ts
index a15237016fe..f712087599b 100644
--- a/src/features/Portal/Document/useMarkdownExport.ts
+++ b/src/features/Portal/Document/useMarkdownExport.ts
@@ -1,7 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useClientDataSWR } from '@/libs/swr';
diff --git a/src/features/Portal/Document/useMoreMenu.test.ts b/src/features/Portal/Document/useMoreMenu.test.ts
index 83d44292a18..a0bfc0a54a1 100644
--- a/src/features/Portal/Document/useMoreMenu.test.ts
+++ b/src/features/Portal/Document/useMoreMenu.test.ts
@@ -21,7 +21,8 @@ const mocks = vi.hoisted(() => ({
url: 'https://app.lobehub.com/agent/agt_1/docs/doc_1' as string | undefined,
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<object>()),
confirmModal: mocks.confirmModal,
toast: { error: mocks.toastError, success: mocks.toastSuccess },
}));
diff --git a/src/features/Portal/Document/useMoreMenu.tsx b/src/features/Portal/Document/useMoreMenu.tsx
index 6195fcb740b..b58b00db36d 100644
--- a/src/features/Portal/Document/useMoreMenu.tsx
+++ b/src/features/Portal/Document/useMoreMenu.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import { DownloadIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Document/usePortalDocumentHeader.test.ts b/src/features/Portal/Document/usePortalDocumentHeader.test.ts
index 60b3575905c..7b69908a022 100644
--- a/src/features/Portal/Document/usePortalDocumentHeader.test.ts
+++ b/src/features/Portal/Document/usePortalDocumentHeader.test.ts
@@ -73,7 +73,7 @@ vi.mock('@/store/chat', () => ({
const toastSuccess = vi.hoisted(() => vi.fn());
const toastError = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = (await importOriginal()) as Record<string, unknown>;
return {
diff --git a/src/features/Portal/Document/usePortalDocumentHeader.ts b/src/features/Portal/Document/usePortalDocumentHeader.ts
index 484f069e92a..92bab4065e2 100644
--- a/src/features/Portal/Document/usePortalDocumentHeader.ts
+++ b/src/features/Portal/Document/usePortalDocumentHeader.ts
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/FilePreview/Body/index.tsx b/src/features/Portal/FilePreview/Body/index.tsx
index dc2ab9ffd8a..dfc4d053031 100644
--- a/src/features/Portal/FilePreview/Body/index.tsx
+++ b/src/features/Portal/FilePreview/Body/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Markdown, Tabs } from '@lobehub/ui';
import { BoltIcon, FileIcon } from 'lucide-react';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/FilePreview/Title.tsx b/src/features/Portal/FilePreview/Title.tsx
index cf73e3cf2d2..f18826ce42e 100644
--- a/src/features/Portal/FilePreview/Title.tsx
+++ b/src/features/Portal/FilePreview/Title.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton, Text } from '@lobehub/ui';
import { oneLineEllipsis } from '@/styles';
diff --git a/src/features/Portal/Goal/Body.tsx b/src/features/Portal/Goal/Body.tsx
index 49639223f92..d6f4828b806 100644
--- a/src/features/Portal/Goal/Body.tsx
+++ b/src/features/Portal/Goal/Body.tsx
@@ -1,6 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, ActionIcon, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Accordion,
+ ActionIcon,
+ createStaticStyles,
+ Flexbox,
+ Skeleton,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { Maximize2 } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Goal/Header.tsx b/src/features/Portal/Goal/Header.tsx
index b41608ef362..677c1390e13 100644
--- a/src/features/Portal/Goal/Header.tsx
+++ b/src/features/Portal/Goal/Header.tsx
@@ -1,5 +1,5 @@
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Maximize2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Goal/Title.tsx b/src/features/Portal/Goal/Title.tsx
index ec162cf393c..10a27ef1e7a 100644
--- a/src/features/Portal/Goal/Title.tsx
+++ b/src/features/Portal/Goal/Title.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/GoalMetric/Body.tsx b/src/features/Portal/GoalMetric/Body.tsx
index 8e4474622e7..5b21db8714d 100644
--- a/src/features/Portal/GoalMetric/Body.tsx
+++ b/src/features/Portal/GoalMetric/Body.tsx
@@ -1,7 +1,14 @@
import type { GoalSpend } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { InputNumber, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ InputNumber,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, type ReactNode, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/GoalMetric/Lifecycle.tsx b/src/features/Portal/GoalMetric/Lifecycle.tsx
index 9f8eb22e255..a9ff390b0ff 100644
--- a/src/features/Portal/GoalMetric/Lifecycle.tsx
+++ b/src/features/Portal/GoalMetric/Lifecycle.tsx
@@ -1,8 +1,6 @@
import type { GoalEventType, GoalGraphEvent, GoalNodeKind } from '@lobechat/types';
-import { Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { createStaticStyles, cssVar, cx, Empty, Flexbox, Icon, Text } from '@lobehub/ui';
import { GithubIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import dayjs from 'dayjs';
import {
Archive,
diff --git a/src/features/Portal/GoalMetric/Title.tsx b/src/features/Portal/GoalMetric/Title.tsx
index 8e499f404df..316f78c9b03 100644
--- a/src/features/Portal/GoalMetric/Title.tsx
+++ b/src/features/Portal/GoalMetric/Title.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/GoalNode/Body.tsx b/src/features/Portal/GoalNode/Body.tsx
index 8baae24fb6c..a0597b60ddc 100644
--- a/src/features/Portal/GoalNode/Body.tsx
+++ b/src/features/Portal/GoalNode/Body.tsx
@@ -1,6 +1,13 @@
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Markdown,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { SquareArrowOutUpRight } from 'lucide-react';
import { memo, type ReactNode, useMemo } from 'react';
diff --git a/src/features/Portal/GoalNode/Title.tsx b/src/features/Portal/GoalNode/Title.tsx
index 930456d82fd..3676adc9101 100644
--- a/src/features/Portal/GoalNode/Title.tsx
+++ b/src/features/Portal/GoalNode/Title.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Text } from '@lobehub/ui';
import { DoorOpen } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/GoalReport/Body.tsx b/src/features/Portal/GoalReport/Body.tsx
index 271834c470a..951c77ea859 100644
--- a/src/features/Portal/GoalReport/Body.tsx
+++ b/src/features/Portal/GoalReport/Body.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Markdown, Skeleton, Tag, Text } from '@lobehub/ui';
import { memo, type ReactNode, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/GoalReport/Title.tsx b/src/features/Portal/GoalReport/Title.tsx
index a908a5e421a..00b124cb630 100644
--- a/src/features/Portal/GoalReport/Title.tsx
+++ b/src/features/Portal/GoalReport/Title.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/GroupThread/Header/index.tsx b/src/features/Portal/GroupThread/Header/index.tsx
index 456544b0beb..5ff98e5c44c 100644
--- a/src/features/Portal/GroupThread/Header/index.tsx
+++ b/src/features/Portal/GroupThread/Header/index.tsx
@@ -1,6 +1,5 @@
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Home/Body/Files/FileList/Item.tsx b/src/features/Portal/Home/Body/Files/FileList/Item.tsx
index 0aa680cf111..59dd5038617 100644
--- a/src/features/Portal/Home/Body/Files/FileList/Item.tsx
+++ b/src/features/Portal/Home/Body/Files/FileList/Item.tsx
@@ -1,7 +1,5 @@
import { type ChatFileItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import FileIcon from '@/components/FileIcon';
diff --git a/src/features/Portal/Home/Body/Files/FileList/index.tsx b/src/features/Portal/Home/Body/Files/FileList/index.tsx
index 5d46eaaf08a..93c13e38fa8 100644
--- a/src/features/Portal/Home/Body/Files/FileList/index.tsx
+++ b/src/features/Portal/Home/Body/Files/FileList/index.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, Center, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { InboxIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Home/Body/Files/index.tsx b/src/features/Portal/Home/Body/Files/index.tsx
index 450057c9473..76ab2de8f17 100644
--- a/src/features/Portal/Home/Body/Files/index.tsx
+++ b/src/features/Portal/Home/Body/Files/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/index.tsx b/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/index.tsx
index 9260dbb21c3..b487f33a9d5 100644
--- a/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/index.tsx
+++ b/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/index.tsx
@@ -1,7 +1,5 @@
import { type ChatPluginPayload } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { CircuitBoard } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts b/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts
index 31a9a552f1a..83dd61ad23a 100644
--- a/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts
+++ b/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
container: css`
diff --git a/src/features/Portal/Home/Body/Plugins/ArtifactList/index.tsx b/src/features/Portal/Home/Body/Plugins/ArtifactList/index.tsx
index a18254d8ea9..bebb933df93 100644
--- a/src/features/Portal/Home/Body/Plugins/ArtifactList/index.tsx
+++ b/src/features/Portal/Home/Body/Plugins/ArtifactList/index.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, Center, cssVar, Flexbox, Icon, Skeleton, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Origami } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Home/Body/Plugins/index.tsx b/src/features/Portal/Home/Body/Plugins/index.tsx
index c9f84b089bf..a95a94b788d 100644
--- a/src/features/Portal/Home/Body/Plugins/index.tsx
+++ b/src/features/Portal/Home/Body/Plugins/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Home/Title.tsx b/src/features/Portal/Home/Title.tsx
index 944ca914310..7f423255a0a 100644
--- a/src/features/Portal/Home/Title.tsx
+++ b/src/features/Portal/Home/Title.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/LocalFile/Body.test.tsx b/src/features/Portal/LocalFile/Body.test.tsx
index 9c645264126..25474267228 100644
--- a/src/features/Portal/LocalFile/Body.test.tsx
+++ b/src/features/Portal/LocalFile/Body.test.tsx
@@ -13,22 +13,49 @@ vi.mock('@lobechat/const', async (importOriginal) => ({
isDesktop: true,
}));
-vi.mock('antd-style', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- createStaticStyles: () => ({
- card: 'card',
- key: 'key',
- row: 'row',
- value: 'value',
- }),
- cx: (...args: unknown[]) => args.filter(Boolean).join(' '),
- cssVar: {
- colorBgContainer: 'var(--color-bg-container)',
- colorBorderSecondary: 'var(--color-border-secondary)',
- colorTextSecondary: 'var(--color-text-secondary)',
- fontFamilyCode: 'monospace',
- },
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ createStaticStyles: () => ({
+ card: 'card',
+ key: 'key',
+ row: 'row',
+ value: 'value',
+ }),
+ cx: (...args: unknown[]) => args.filter(Boolean).join(' '),
+ cssVar: {
+ colorBgContainer: 'var(--color-bg-container)',
+ colorBorderSecondary: 'var(--color-border-secondary)',
+ colorTextSecondary: 'var(--color-text-secondary)',
+ fontFamilyCode: 'monospace',
+ },
+ }),
+ () => ({
+ ActionIcon: () => null,
+ Center: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ Empty: ({ description }: { description?: ReactNode }) => <div>{description}</div>,
+ Flexbox: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ Icon: () => null,
+ Image: ({ alt, src }: { alt?: string; src?: string }) => <img alt={alt} src={src} />,
+ Markdown: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ Text: ({ children }: { children: ReactNode }) => <span>{children}</span>,
+ Tooltip: ({ children }: { children: ReactNode }) => <>{children}</>,
+ }),
+ () => ({
+ Tabs: () => null,
+ Text: ({ children }: { children: ReactNode }) => <span>{children}</span>,
+ ToggleGroup: () => null,
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({
@@ -36,24 +63,6 @@ vi.mock('react-i18next', () => ({
}),
}));
-vi.mock('@lobehub/ui', () => ({
- ActionIcon: () => null,
- Center: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- Empty: ({ description }: { description?: ReactNode }) => <div>{description}</div>,
- Flexbox: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- Icon: () => null,
- Image: ({ alt, src }: { alt?: string; src?: string }) => <img alt={alt} src={src} />,
- Markdown: ({ children }: { children: ReactNode }) => <div>{children}</div>,
- Text: ({ children }: { children: ReactNode }) => <span>{children}</span>,
- Tooltip: ({ children }: { children: ReactNode }) => <>{children}</>,
-}));
-
-vi.mock('@lobehub/ui/base-ui', () => ({
- Tabs: () => null,
- Text: ({ children }: { children: ReactNode }) => <span>{children}</span>,
- ToggleGroup: () => null,
-}));
-
vi.mock('@/components/CodeEditorPane', () => ({
default: () => <textarea data-testid="code-editor" />,
}));
diff --git a/src/features/Portal/LocalFile/Body.tsx b/src/features/Portal/LocalFile/Body.tsx
index 68a6fab3bc9..e779cd353f7 100644
--- a/src/features/Portal/LocalFile/Body.tsx
+++ b/src/features/Portal/LocalFile/Body.tsx
@@ -1,8 +1,16 @@
import { isDesktop } from '@lobechat/const';
import type { MarkdownProps } from '@lobehub/ui';
-import { Center, Empty, Flexbox, Image, Markdown } from '@lobehub/ui';
-import { Text, ToggleGroup } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Image,
+ Markdown,
+ Text,
+ ToggleGroup,
+} from '@lobehub/ui';
import { CodeIcon, ExternalLinkIcon, EyeIcon, RefreshCwIcon } from 'lucide-react';
import { lazy, memo, Suspense, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/LocalFile/Header.tsx b/src/features/Portal/LocalFile/Header.tsx
index bb35089dc88..5b87ab7fc3a 100644
--- a/src/features/Portal/LocalFile/Header.tsx
+++ b/src/features/Portal/LocalFile/Header.tsx
@@ -1,7 +1,7 @@
'use client';
import { DESKTOP_HEADER_ICON_SMALL_SIZE, isDesktop } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { FolderOpen } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/LocalFile/MarkdownImage.test.tsx b/src/features/Portal/LocalFile/MarkdownImage.test.tsx
index bd6deb4d67c..948c9ec773e 100644
--- a/src/features/Portal/LocalFile/MarkdownImage.test.tsx
+++ b/src/features/Portal/LocalFile/MarkdownImage.test.tsx
@@ -9,7 +9,8 @@ import MarkdownImage from './MarkdownImage';
const mockImage = vi.hoisted(() => vi.fn());
const mockUseClientDataSWR = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui', () => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
Image: ({
alt,
classNames,
diff --git a/src/features/Portal/LocalFile/MarkdownImage.tsx b/src/features/Portal/LocalFile/MarkdownImage.tsx
index 54ab51e42d2..771e05fe08c 100644
--- a/src/features/Portal/LocalFile/MarkdownImage.tsx
+++ b/src/features/Portal/LocalFile/MarkdownImage.tsx
@@ -1,5 +1,4 @@
-import { Image } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Image } from '@lobehub/ui';
import type { ComponentProps } from 'react';
import { memo, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/Portal/LocalFile/PathBreadcrumb.tsx b/src/features/Portal/LocalFile/PathBreadcrumb.tsx
index 858381870b7..5cdc34111d4 100644
--- a/src/features/Portal/LocalFile/PathBreadcrumb.tsx
+++ b/src/features/Portal/LocalFile/PathBreadcrumb.tsx
@@ -2,7 +2,7 @@
import type { ProjectFileIndexEntry } from '@lobechat/electron-client-ipc';
import { type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from '@lobehub/ui';
import { ChevronRightIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/features/Portal/LocalFile/PreviewToolbar.tsx b/src/features/Portal/LocalFile/PreviewToolbar.tsx
index 31d0381b932..c3a3a78ac84 100644
--- a/src/features/Portal/LocalFile/PreviewToolbar.tsx
+++ b/src/features/Portal/LocalFile/PreviewToolbar.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { Loader2Icon, type LucideIcon } from 'lucide-react';
import type { MouseEventHandler, ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Portal/LocalFile/PublishHtmlArtifactBlockedConfirm.tsx b/src/features/Portal/LocalFile/PublishHtmlArtifactBlockedConfirm.tsx
index 3bebe9ed847..ffdeb324df3 100644
--- a/src/features/Portal/LocalFile/PublishHtmlArtifactBlockedConfirm.tsx
+++ b/src/features/Portal/LocalFile/PublishHtmlArtifactBlockedConfirm.tsx
@@ -1,15 +1,15 @@
import { workspaceHtmlArtifactIdentifierForFile } from '@lobechat/html-artifact';
-import { Flexbox } from '@lobehub/ui';
import {
Accordion,
Button,
Checkbox,
createModal,
+ cssVar,
+ Flexbox,
ScrollArea,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/LocalFile/PublishHtmlArtifactConfirm.tsx b/src/features/Portal/LocalFile/PublishHtmlArtifactConfirm.tsx
index da0d1ab3746..2d58038fa89 100644
--- a/src/features/Portal/LocalFile/PublishHtmlArtifactConfirm.tsx
+++ b/src/features/Portal/LocalFile/PublishHtmlArtifactConfirm.tsx
@@ -1,12 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
import {
Accordion,
Button,
createModal,
+ Flexbox,
ScrollArea,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/LocalFile/TabStrip.tsx b/src/features/Portal/LocalFile/TabStrip.tsx
index 81416ff73e7..b300d38b626 100644
--- a/src/features/Portal/LocalFile/TabStrip.tsx
+++ b/src/features/Portal/LocalFile/TabStrip.tsx
@@ -1,10 +1,15 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { ContextMenuTrigger, type GenericItemType, Icon } from '@lobehub/ui';
-import { confirmModal, ScrollArea } from '@lobehub/ui/base-ui';
+import {
+ confirmModal,
+ ContextMenuTrigger,
+ createStaticStyles,
+ type DropdownItem,
+ Icon,
+ ScrollArea,
+} from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles } from 'antd-style';
import { XIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
@@ -190,7 +195,7 @@ const TabStrip = memo(() => {
);
const getContextMenuItems = useCallback(
- (id: string, filePath: string, index: number): GenericItemType[] => [
+ (id: string, filePath: string, index: number): DropdownItem[] => [
{
disabled: index === 0,
key: 'closeLeft',
diff --git a/src/features/Portal/LocalFile/UnsupportedPreview.tsx b/src/features/Portal/LocalFile/UnsupportedPreview.tsx
index d255414c73d..598b966cc24 100644
--- a/src/features/Portal/LocalFile/UnsupportedPreview.tsx
+++ b/src/features/Portal/LocalFile/UnsupportedPreview.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, Center, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/LocalFile/VideoPreview.tsx b/src/features/Portal/LocalFile/VideoPreview.tsx
index e71613bc7e2..ea7a4b95f51 100644
--- a/src/features/Portal/LocalFile/VideoPreview.tsx
+++ b/src/features/Portal/LocalFile/VideoPreview.tsx
@@ -1,5 +1,5 @@
import { Center, Video } from '@lobehub/ui';
-import { memo, useEffect, useRef } from 'react';
+import { memo } from 'react';
import Loading from '@/components/Loading/CircleLoading';
@@ -22,37 +22,29 @@ const VideoPreview = memo<VideoPreviewProps>(
revision,
workingDirectory,
});
- const wrapperRef = useRef<HTMLDivElement>(null);
const src = state.status === 'ready' ? state.src : undefined;
- // A `video/*` MIME type does not mean Chromium can decode the container or
- // codec. <Video> loads through a <source> child, whose `error` event does not
- // bubble, so listen in the capture phase on the wrapper.
- useEffect(() => {
- const wrapper = wrapperRef.current;
- if (!wrapper) return;
-
- wrapper.addEventListener('error', markUnplayable, true);
-
- return () => {
- wrapper.removeEventListener('error', markUnplayable, true);
- };
- }, [markUnplayable, src]);
-
if (state.status === 'unplayable')
return <UnsupportedPreview isLocalFile filePath={filePath} oversized={state.oversized} />;
if (!src) return <Loading />;
return (
<Center height={'100%'} padding={16} width={'100%'}>
- {/* Keyed by the object URL: <Video> feeds it through a <source> child,
- which the element only picks up on mount. */}
+ {/* A `video/*` MIME type does not mean Chromium can decode the container
+ or codec; the element's own error event marks it unplayable. */}
<Video
- key={src}
- ref={wrapperRef}
src={src}
- styles={{ video: { maxHeight: '100%', objectFit: 'contain' }, wrapper: { margin: 0 } }}
- variant={'borderless'}
+ style={{ background: 'transparent', height: '100%', maxWidth: '100%' }}
+ styles={{
+ frame: {
+ borderRadius: 8,
+ height: '100%',
+ marginInline: 'auto',
+ maxWidth: '100%',
+ width: 'auto',
+ },
+ }}
+ onError={markUnplayable}
/>
</Center>
);
diff --git a/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.test.ts b/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.test.ts
index 6969a305ab0..5e246981d9e 100644
--- a/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.test.ts
+++ b/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.test.ts
@@ -13,7 +13,7 @@ const readExternalAssetForPublish = vi.hoisted(() => vi.fn());
const toastError = vi.hoisted(() => vi.fn());
const toastSuccess = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: toastError, success: toastSuccess },
}));
diff --git a/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.ts b/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.ts
index 006cafbff11..97cc48ebdec 100644
--- a/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.ts
+++ b/src/features/Portal/LocalFile/prepareWorkspaceHtmlPublish.ts
@@ -8,7 +8,7 @@ import {
type WorkspaceHtmlArtifactPublisher,
type WorkspaceHtmlArtifactPublishResult,
} from '@lobechat/html-artifact';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { readExternalAssetForPublish } from './readExternalAssetForPublish';
diff --git a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.test.ts b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.test.ts
index 90376aa4c8f..07cd1c442b1 100644
--- a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.test.ts
+++ b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.test.ts
@@ -17,7 +17,7 @@ const mocks = vi.hoisted(() => ({
vi.mock('debug', () => ({ default: () => mocks.debugLog }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: (...args: unknown[]) => mocks.confirmModal(...args),
toast: { error: (...args: unknown[]) => mocks.toastError(...args) },
diff --git a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts
index cea6314cea3..da22869bcb7 100644
--- a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts
+++ b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts
@@ -4,7 +4,7 @@ import type {
WorkspaceHtmlArtifactPublishResult,
} from '@lobechat/html-artifact';
import { isPathInsideWorkspace } from '@lobechat/html-artifact';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import debug from 'debug';
import { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/MemoryDetail/Header.tsx b/src/features/Portal/MemoryDetail/Header.tsx
index b7b0cb976e6..0ed964726d5 100644
--- a/src/features/Portal/MemoryDetail/Header.tsx
+++ b/src/features/Portal/MemoryDetail/Header.tsx
@@ -1,7 +1,7 @@
'use client';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Maximize2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/MemoryDetail/Title.tsx b/src/features/Portal/MemoryDetail/Title.tsx
index d4910882b25..2e566940b9c 100644
--- a/src/features/Portal/MemoryDetail/Title.tsx
+++ b/src/features/Portal/MemoryDetail/Title.tsx
@@ -1,7 +1,7 @@
'use client';
import { LayersEnum } from '@lobechat/types';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/MessageDetail/Body/index.tsx b/src/features/Portal/MessageDetail/Body/index.tsx
index cf2c9ea8e91..615c18839d2 100644
--- a/src/features/Portal/MessageDetail/Body/index.tsx
+++ b/src/features/Portal/MessageDetail/Body/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { css, cx } from 'antd-style';
+import { css, cx, Flexbox, Markdown } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { useEffect } from 'react';
diff --git a/src/features/Portal/MessageDetail/Title.tsx b/src/features/Portal/MessageDetail/Title.tsx
index 3394d6dce4c..56466ff0390 100644
--- a/src/features/Portal/MessageDetail/Title.tsx
+++ b/src/features/Portal/MessageDetail/Title.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { oneLineEllipsis } from '@/styles';
diff --git a/src/features/Portal/Mobile.tsx b/src/features/Portal/Mobile.tsx
index 2881368458e..9b5840cdcad 100644
--- a/src/features/Portal/Mobile.tsx
+++ b/src/features/Portal/Mobile.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Modal } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Modal } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Notebook/Body.tsx b/src/features/Portal/Notebook/Body.tsx
index fe808c2b4ec..f6bd73507a2 100644
--- a/src/features/Portal/Notebook/Body.tsx
+++ b/src/features/Portal/Notebook/Body.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Center, Empty, Flexbox, Spin } from '@lobehub/ui';
import { BookOpenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Notebook/DocumentItem.tsx b/src/features/Portal/Notebook/DocumentItem.tsx
index 5d1bb8f3cde..f6131977502 100644
--- a/src/features/Portal/Notebook/DocumentItem.tsx
+++ b/src/features/Portal/Notebook/DocumentItem.tsx
@@ -1,7 +1,5 @@
import { type NotebookDocument } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, confirmModal, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { FileTextIcon, Trash2Icon } from 'lucide-react';
import { type MouseEvent } from 'react';
import { memo, useState } from 'react';
diff --git a/src/features/Portal/Notebook/Title.tsx b/src/features/Portal/Notebook/Title.tsx
index c10557279ee..aa645056f2b 100644
--- a/src/features/Portal/Notebook/Title.tsx
+++ b/src/features/Portal/Notebook/Title.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Plugins/Title.tsx b/src/features/Portal/Plugins/Title.tsx
index 650d688c552..364cc4d716a 100644
--- a/src/features/Portal/Plugins/Title.tsx
+++ b/src/features/Portal/Plugins/Title.tsx
@@ -1,7 +1,6 @@
import { getBuiltinPortalTitle } from '@lobechat/builtin-tools/portals';
import type { BuiltinPortalTitle } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import PluginAvatar from '@/features/PluginAvatar';
diff --git a/src/features/Portal/TaskDetail/Header.tsx b/src/features/Portal/TaskDetail/Header.tsx
index 3ed59db3175..ee61b23ca39 100644
--- a/src/features/Portal/TaskDetail/Header.tsx
+++ b/src/features/Portal/TaskDetail/Header.tsx
@@ -1,5 +1,5 @@
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { ExternalLink } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TaskDetail/Title.tsx b/src/features/Portal/TaskDetail/Title.tsx
index 92b4233fc3b..e40781a3efa 100644
--- a/src/features/Portal/TaskDetail/Title.tsx
+++ b/src/features/Portal/TaskDetail/Title.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useChatStore } from '@/store/chat';
diff --git a/src/features/Portal/TaskDetail/useMoreMenu.test.ts b/src/features/Portal/TaskDetail/useMoreMenu.test.ts
index bb0fbfa4e75..6fc96a770f1 100644
--- a/src/features/Portal/TaskDetail/useMoreMenu.test.ts
+++ b/src/features/Portal/TaskDetail/useMoreMenu.test.ts
@@ -13,7 +13,7 @@ const mocks = vi.hoisted(() => ({
updateTask: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({ confirmModal: mocks.confirmModal }));
+vi.mock('@lobehub/ui', () => ({ confirmModal: mocks.confirmModal }));
vi.mock('@/components/RenameModal', () => ({ openRenameModal: mocks.openRenameModal }));
vi.mock('@/hooks/usePermission', () => ({ usePermission: () => ({ allowed: mocks.allowed }) }));
vi.mock('@/features/AgentTasks/AgentTaskDetail/useTaskCopyActions', () => ({
diff --git a/src/features/Portal/TaskDetail/useMoreMenu.ts b/src/features/Portal/TaskDetail/useMoreMenu.ts
index 2e5aa0edca7..31ed835909f 100644
--- a/src/features/Portal/TaskDetail/useMoreMenu.ts
+++ b/src/features/Portal/TaskDetail/useMoreMenu.ts
@@ -1,4 +1,4 @@
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { openRenameModal } from '@/components/RenameModal';
diff --git a/src/features/Portal/TaskResult/Header.tsx b/src/features/Portal/TaskResult/Header.tsx
index 0a4567c5263..9bf65ac2f03 100644
--- a/src/features/Portal/TaskResult/Header.tsx
+++ b/src/features/Portal/TaskResult/Header.tsx
@@ -1,4 +1,4 @@
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { ListTodo } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TaskResult/Title.tsx b/src/features/Portal/TaskResult/Title.tsx
index a479d158563..6e09488283a 100644
--- a/src/features/Portal/TaskResult/Title.tsx
+++ b/src/features/Portal/TaskResult/Title.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Thread/Chat/ThreadDivider/index.tsx b/src/features/Portal/Thread/Chat/ThreadDivider/index.tsx
index 73ac27bdd07..ce706098b5f 100644
--- a/src/features/Portal/Thread/Chat/ThreadDivider/index.tsx
+++ b/src/features/Portal/Thread/Chat/ThreadDivider/index.tsx
@@ -1,7 +1,5 @@
import { type IThreadType, ThreadType } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Divider, Flexbox, Icon } from '@lobehub/ui';
import { GitBranch } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Thread/Header/Active.tsx b/src/features/Portal/Thread/Header/Active.tsx
index 05fbef9ea45..9b8993df3ed 100644
--- a/src/features/Portal/Thread/Header/Active.tsx
+++ b/src/features/Portal/Thread/Header/Active.tsx
@@ -1,7 +1,5 @@
import { resolveCCSubagentType } from '@lobechat/builtin-tool-claude-code/client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, cssVar, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/Portal/Thread/Header/New.tsx b/src/features/Portal/Thread/Header/New.tsx
index 6f44a685830..d7667746fd8 100644
--- a/src/features/Portal/Thread/Header/New.tsx
+++ b/src/features/Portal/Thread/Header/New.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Switch, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Switch, Text } from '@lobehub/ui';
import { GitBranch } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Thread/Header/Title.tsx b/src/features/Portal/Thread/Header/Title.tsx
index 2d7405e0ea8..82e2a99ed2d 100644
--- a/src/features/Portal/Thread/Header/Title.tsx
+++ b/src/features/Portal/Thread/Header/Title.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import { useChatStore } from '@/store/chat';
diff --git a/src/features/Portal/Thread/Header/index.tsx b/src/features/Portal/Thread/Header/index.tsx
index 03ee46b719e..1f8c3ae85f3 100644
--- a/src/features/Portal/Thread/Header/index.tsx
+++ b/src/features/Portal/Thread/Header/index.tsx
@@ -1,5 +1,5 @@
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { ArrowLeftRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Thread/useMoreMenu.test.ts b/src/features/Portal/Thread/useMoreMenu.test.ts
index 53db926ca0e..df7fb071c1d 100644
--- a/src/features/Portal/Thread/useMoreMenu.test.ts
+++ b/src/features/Portal/Thread/useMoreMenu.test.ts
@@ -16,7 +16,7 @@ const mocks = vi.hoisted(() => ({
updateThreadTitle: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({ confirmModal: mocks.confirmModal }));
+vi.mock('@lobehub/ui', () => ({ confirmModal: mocks.confirmModal }));
vi.mock('@/components/RenameModal', () => ({ openRenameModal: mocks.openRenameModal }));
vi.mock('@/hooks/usePermission', () => ({ usePermission: () => ({ allowed: true }) }));
vi.mock('@/hooks/useAppOrigin', () => ({ useAppOrigin: () => 'https://app.lobehub.com' }));
diff --git a/src/features/Portal/Thread/useMoreMenu.ts b/src/features/Portal/Thread/useMoreMenu.ts
index 22e1e4c07f3..d415d66827d 100644
--- a/src/features/Portal/Thread/useMoreMenu.ts
+++ b/src/features/Portal/Thread/useMoreMenu.ts
@@ -1,4 +1,4 @@
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Topic/Chat/index.tsx b/src/features/Portal/Topic/Chat/index.tsx
index bb6582a1700..acf79cf2575 100644
--- a/src/features/Portal/Topic/Chat/index.tsx
+++ b/src/features/Portal/Topic/Chat/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { memo, Suspense, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Topic/Header/Title.tsx b/src/features/Portal/Topic/Header/Title.tsx
index 510a89d2372..1f58323e02e 100644
--- a/src/features/Portal/Topic/Header/Title.tsx
+++ b/src/features/Portal/Topic/Header/Title.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/Topic/useMoreMenu.ts b/src/features/Portal/Topic/useMoreMenu.ts
index c10b8eab801..2f26b160500 100644
--- a/src/features/Portal/Topic/useMoreMenu.ts
+++ b/src/features/Portal/Topic/useMoreMenu.ts
@@ -1,5 +1,5 @@
import { AGENT_CHAT_TOPIC_URL, GROUP_CHAT_TOPIC_URL } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { openRenameModal } from '@/components/RenameModal';
diff --git a/src/features/Portal/TopicComments/AnchorPreview.tsx b/src/features/Portal/TopicComments/AnchorPreview.tsx
index 7cf61493716..2d5f740a6b9 100644
--- a/src/features/Portal/TopicComments/AnchorPreview.tsx
+++ b/src/features/Portal/TopicComments/AnchorPreview.tsx
@@ -1,6 +1,5 @@
import type { TopicCommentItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { MessageSquareText } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/Body.tsx b/src/features/Portal/TopicComments/Body.tsx
index f3444a20337..fb796db318d 100644
--- a/src/features/Portal/TopicComments/Body.tsx
+++ b/src/features/Portal/TopicComments/Body.tsx
@@ -1,5 +1,4 @@
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Flexbox } from '@lobehub/ui';
import { MessageCircle } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/CommentCard.tsx b/src/features/Portal/TopicComments/CommentCard.tsx
index 70337181f7e..215109617df 100644
--- a/src/features/Portal/TopicComments/CommentCard.tsx
+++ b/src/features/Portal/TopicComments/CommentCard.tsx
@@ -1,15 +1,17 @@
import type { TopicCommentItem } from '@lobechat/types';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
import {
ActionIcon,
Avatar,
Button,
confirmModal,
DropdownMenu,
+ Flexbox,
+ Icon,
+ Markdown,
Text,
toast,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { MessageCircle, MoreHorizontal, Pencil, Trash } from 'lucide-react';
import { memo, useCallback, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/Composer.tsx b/src/features/Portal/TopicComments/Composer.tsx
index 567ac16e0a4..a492aef73d3 100644
--- a/src/features/Portal/TopicComments/Composer.tsx
+++ b/src/features/Portal/TopicComments/Composer.tsx
@@ -1,6 +1,5 @@
import { ChatInput, ChatInputActionBar, SendButton } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { Flexbox, toast } from '@lobehub/ui';
import { memo, useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/Sidebar.tsx b/src/features/Portal/TopicComments/Sidebar.tsx
index 07ca4368cf2..6b3a1da3f5f 100644
--- a/src/features/Portal/TopicComments/Sidebar.tsx
+++ b/src/features/Portal/TopicComments/Sidebar.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { ArrowLeft } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/ThreadBody.tsx b/src/features/Portal/TopicComments/ThreadBody.tsx
index 5e0db8a329e..32147a74a5e 100644
--- a/src/features/Portal/TopicComments/ThreadBody.tsx
+++ b/src/features/Portal/TopicComments/ThreadBody.tsx
@@ -1,5 +1,4 @@
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Flexbox, Text } from '@lobehub/ui';
import { MessageCircle } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/Title.tsx b/src/features/Portal/TopicComments/Title.tsx
index 4bfdb7031b6..25d5d9ee4c7 100644
--- a/src/features/Portal/TopicComments/Title.tsx
+++ b/src/features/Portal/TopicComments/Title.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Text } from '@lobehub/ui';
import { MessageCircle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/TopicComments/styles.ts b/src/features/Portal/TopicComments/styles.ts
index 81952da1662..5ecf7ea86d6 100644
--- a/src/features/Portal/TopicComments/styles.ts
+++ b/src/features/Portal/TopicComments/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
anchor: css`
diff --git a/src/features/Portal/TopicComments/useWorkspaceCommentMentionOption.tsx b/src/features/Portal/TopicComments/useWorkspaceCommentMentionOption.tsx
index f9fc55d2247..1201dd12d79 100644
--- a/src/features/Portal/TopicComments/useWorkspaceCommentMentionOption.tsx
+++ b/src/features/Portal/TopicComments/useWorkspaceCommentMentionOption.tsx
@@ -1,6 +1,6 @@
import type { IEditor, ISlashMenuOption } from '@lobehub/editor';
import type { EditorProps } from '@lobehub/editor/react';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { useCallback, useMemo } from 'react';
import { useFetchWorkspaceMembers } from '@/business/client/hooks/useFetchWorkspaceMembers';
diff --git a/src/features/Portal/VerifyReport/Header.tsx b/src/features/Portal/VerifyReport/Header.tsx
index 5d514fd64ee..4ec938cabf9 100644
--- a/src/features/Portal/VerifyReport/Header.tsx
+++ b/src/features/Portal/VerifyReport/Header.tsx
@@ -1,5 +1,5 @@
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { ExternalLink } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/VerifyReport/useMoreMenu.ts b/src/features/Portal/VerifyReport/useMoreMenu.ts
index 201bc576fc7..f4f505e613c 100644
--- a/src/features/Portal/VerifyReport/useMoreMenu.ts
+++ b/src/features/Portal/VerifyReport/useMoreMenu.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { openRenameModal } from '@/components/RenameModal';
diff --git a/src/features/Portal/VerifyResult/Body.tsx b/src/features/Portal/VerifyResult/Body.tsx
index fe135257dea..9c302845b67 100644
--- a/src/features/Portal/VerifyResult/Body.tsx
+++ b/src/features/Portal/VerifyResult/Body.tsx
@@ -1,8 +1,6 @@
import type { VerifierType } from '@lobechat/types';
import { formatDuration as formatDurationMs } from '@lobechat/utils';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Markdown, Text } from '@lobehub/ui';
import { ListTree } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Portal/VerifyResult/Title.tsx b/src/features/Portal/VerifyResult/Title.tsx
index e99232a9293..7be5ee14fc3 100644
--- a/src/features/Portal/VerifyResult/Title.tsx
+++ b/src/features/Portal/VerifyResult/Title.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { CheckCircle2, Circle, CircleAlert, LoaderCircle, XCircle } from 'lucide-react';
import type { VerifyCheckResultItem } from '@/database/schemas/verify';
diff --git a/src/features/Portal/components/Header.tsx b/src/features/Portal/components/Header.tsx
index 9e8b93227d6..7218da698eb 100644
--- a/src/features/Portal/components/Header.tsx
+++ b/src/features/Portal/components/Header.tsx
@@ -5,8 +5,7 @@ import {
AGENT_CHAT_TOPIC_URL,
DESKTOP_HEADER_ICON_SMALL_SIZE,
} from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox } from '@lobehub/ui';
import { ArrowLeft, X } from 'lucide-react';
import { type CSSProperties, Fragment, type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Portal/components/PortalMoreMenu/buildItems.ts b/src/features/Portal/components/PortalMoreMenu/buildItems.ts
index 04e6ac8d582..87f8ee2b559 100644
--- a/src/features/Portal/components/PortalMoreMenu/buildItems.ts
+++ b/src/features/Portal/components/PortalMoreMenu/buildItems.ts
@@ -1,5 +1,5 @@
import { Icon } from '@lobehub/ui';
-import { type DropdownItem } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Copy, FileText, Link, Maximize2, Pencil, RotateCw, Trash2 } from 'lucide-react';
import { createElement } from 'react';
diff --git a/src/features/Portal/components/PortalMoreMenu/index.tsx b/src/features/Portal/components/PortalMoreMenu/index.tsx
index d657c2c7a11..36c3c2e06cc 100644
--- a/src/features/Portal/components/PortalMoreMenu/index.tsx
+++ b/src/features/Portal/components/PortalMoreMenu/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { copyToClipboard } from '@lobehub/ui';
-import { ActionIcon, DropdownMenu, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, copyToClipboard, DropdownMenu, toast } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Portal/components/PortalMoreMenu/types.ts b/src/features/Portal/components/PortalMoreMenu/types.ts
index 35ffc8fc1d7..c736cfe8113 100644
--- a/src/features/Portal/components/PortalMoreMenu/types.ts
+++ b/src/features/Portal/components/PortalMoreMenu/types.ts
@@ -1,4 +1,4 @@
-import { type DropdownItem } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
/**
* What a portal can do with the entity it shows. Every field is optional: a
diff --git a/src/features/ProfileEditor/AgentTool.tsx b/src/features/ProfileEditor/AgentTool.tsx
index 23a61399bb2..e788d64802c 100644
--- a/src/features/ProfileEditor/AgentTool.tsx
+++ b/src/features/ProfileEditor/AgentTool.tsx
@@ -3,10 +3,8 @@
import { getConnectorCatalog } from '@lobechat/const';
import { getActivePluginIds, upsertPluginMode } from '@lobechat/types';
import type { ItemType } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button } from '@lobehub/ui/base-ui';
+import { Avatar, Button, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { McpIcon, SkillsIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { PlusIcon } from 'lucide-react';
import React, { memo, Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/ProfileEditor/AgentUserTools/AgentToolsSection.tsx b/src/features/ProfileEditor/AgentUserTools/AgentToolsSection.tsx
index f93aa2979ab..c4e21143cb3 100644
--- a/src/features/ProfileEditor/AgentUserTools/AgentToolsSection.tsx
+++ b/src/features/ProfileEditor/AgentUserTools/AgentToolsSection.tsx
@@ -1,8 +1,7 @@
'use client';
import { upsertPluginMode } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, confirmModal, DropdownMenu, Text } from '@lobehub/ui/base-ui';
+import { Button, confirmModal, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { CopyIcon, PlugZapIcon, PlusIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ProfileEditor/AgentUserTools/UserToolsSection.test.tsx b/src/features/ProfileEditor/AgentUserTools/UserToolsSection.test.tsx
index d0df5dadad8..4e9900e493c 100644
--- a/src/features/ProfileEditor/AgentUserTools/UserToolsSection.test.tsx
+++ b/src/features/ProfileEditor/AgentUserTools/UserToolsSection.test.tsx
@@ -45,14 +45,25 @@ vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({
vi.mock('@/features/ProfileEditor/AgentTool', () => ({ default: () => null }));
vi.mock('@/features/ProfileEditor/PluginTag', () => ({ default: () => null }));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Text: ({ children }: { children: ReactNode }) => <span data-testid="label">{children}</span>,
-}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Text: ({ children }: { children: ReactNode }) => <span data-testid="label">{children}</span>,
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Text: ({ children }: { children: ReactNode }) => <span data-testid="label">{children}</span>,
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Text: ({ children }: { children: ReactNode }) => <span data-testid="label">{children}</span>,
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
// Apply the real selectors against the mock state.
vi.mock('@/store/tool', () => ({
diff --git a/src/features/ProfileEditor/AgentUserTools/UserToolsSection.tsx b/src/features/ProfileEditor/AgentUserTools/UserToolsSection.tsx
index 1d0a541945b..39978086a14 100644
--- a/src/features/ProfileEditor/AgentUserTools/UserToolsSection.tsx
+++ b/src/features/ProfileEditor/AgentUserTools/UserToolsSection.tsx
@@ -1,8 +1,7 @@
'use client';
import { getActivePluginIds } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ProfileEditor/PluginTag.test.tsx b/src/features/ProfileEditor/PluginTag.test.tsx
index eb8fb911066..8cdfd6659cb 100644
--- a/src/features/ProfileEditor/PluginTag.test.tsx
+++ b/src/features/ProfileEditor/PluginTag.test.tsx
@@ -32,27 +32,38 @@ vi.mock('react-i18next', () => ({
}));
vi.mock('@/hooks/useIsDark', () => ({ useIsDark: () => false }));
-vi.mock('antd-style', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- createStaticStyles: () => ({}),
- cssVar: new Proxy({}, { get: () => 'var(--x)' }),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ createStaticStyles: () => ({}),
+ cssVar: new Proxy({}, { get: () => 'var(--x)' }),
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Avatar: ({ title }: { title?: string }) => <span data-testid="author-avatar">{title}</span>,
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ Avatar: ({ title }: { title?: string }) => <span data-testid="author-avatar">{title}</span>,
+ Tooltip: ({ children, title }: { children: ReactNode; title?: string }) => (
+ <div data-testid="author-tooltip" data-title={title}>
+ {children}
+ </div>
+ ),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('@lobechat/const', () => ({ resolveConnectorCatalogItem: () => undefined }));
vi.mock('@lobehub/ui/icons', () => ({ McpIcon: () => null }));
vi.mock('@/components/Plugins/PluginAvatar', () => ({ default: () => null }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Avatar: ({ title }: { title?: string }) => <span data-testid="author-avatar">{title}</span>,
-}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- Avatar: ({ title }: { title?: string }) => <span data-testid="author-avatar">{title}</span>,
- Tooltip: ({ children, title }: { children: ReactNode; title?: string }) => (
- <div data-testid="author-tooltip" data-title={title}>
- {children}
- </div>
- ),
-}));
// Run selectors against controlled state (the mocked selectors ignore state).
vi.mock('@/store/tool', () => ({
diff --git a/src/features/ProfileEditor/PluginTag.tsx b/src/features/ProfileEditor/PluginTag.tsx
index 3baeae0882a..aca879802a7 100644
--- a/src/features/ProfileEditor/PluginTag.tsx
+++ b/src/features/ProfileEditor/PluginTag.tsx
@@ -2,10 +2,8 @@
import type { ComposioAppType, LobehubSkillProviderType } from '@lobechat/const';
import { resolveConnectorCatalogItem } from '@lobechat/const';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
+import { Avatar, createStaticStyles, cssVar, Flexbox, Icon, Tag, Tooltip } from '@lobehub/ui';
import { McpIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { AlertCircle, Loader2, Square, SquareCheckBig, SquareMinus, X } from 'lucide-react';
import React, { memo, useMemo } from 'react';
diff --git a/src/features/ProfileEditor/PopoverContent.tsx b/src/features/ProfileEditor/PopoverContent.tsx
index 5d488fb5ac5..5b5ac2a8609 100644
--- a/src/features/ProfileEditor/PopoverContent.tsx
+++ b/src/features/ProfileEditor/PopoverContent.tsx
@@ -1,6 +1,5 @@
import { type ItemType } from '@lobehub/ui';
-import { Flexbox, Icon, SearchBar, stopPropagation } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, SearchBar, stopPropagation } from '@lobehub/ui';
import { ChevronRight, ExternalLink, Settings, Store } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/Acceptance/RejectModal.tsx b/src/features/Projects/Acceptance/RejectModal.tsx
index 78250588ae2..2b3b35b8ecf 100644
--- a/src/features/Projects/Acceptance/RejectModal.tsx
+++ b/src/features/Projects/Acceptance/RejectModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, createModal, ModalFooter, TextArea, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, createModal, ModalFooter, TextArea, useModalContext } from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/Conversation/index.tsx b/src/features/Projects/Conversation/index.tsx
index d31e13e7e2b..19440fe33fa 100644
--- a/src/features/Projects/Conversation/index.tsx
+++ b/src/features/Projects/Conversation/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
+import { Center, Flexbox, Spin, Text } from '@lobehub/ui';
import { memo, useCallback, useLayoutEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/features/Projects/CreateProjectContent.tsx b/src/features/Projects/CreateProjectContent.tsx
index 984c920165f..804c46f4e1c 100644
--- a/src/features/Projects/CreateProjectContent.tsx
+++ b/src/features/Projects/CreateProjectContent.tsx
@@ -1,6 +1,13 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, ModalFooter, Text, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ Button,
+ cssVar,
+ Flexbox,
+ Input,
+ ModalFooter,
+ Text,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/CreateProjectModal.tsx b/src/features/Projects/CreateProjectModal.tsx
index 286cbdc9e2d..0a2e530482b 100644
--- a/src/features/Projects/CreateProjectModal.tsx
+++ b/src/features/Projects/CreateProjectModal.tsx
@@ -1,4 +1,4 @@
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { lazy, Suspense } from 'react';
import type { CreateProjectOptions } from './CreateProjectContent';
diff --git a/src/features/Projects/Dashboards/index.tsx b/src/features/Projects/Dashboards/index.tsx
index 765a5bad9a4..f1bee095d16 100644
--- a/src/features/Projects/Dashboards/index.tsx
+++ b/src/features/Projects/Dashboards/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Empty, Flexbox, Text } from '@lobehub/ui';
import { BlocksIcon, LayoutDashboardIcon, PlusIcon } from 'lucide-react';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/Layout/ProjectHeader.tsx b/src/features/Projects/Layout/ProjectHeader.tsx
index 334ebbeb07a..854c8bd760f 100644
--- a/src/features/Projects/Layout/ProjectHeader.tsx
+++ b/src/features/Projects/Layout/ProjectHeader.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { SettingsIcon } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/List/index.tsx b/src/features/Projects/List/index.tsx
index 8653d49032c..b06144d8862 100644
--- a/src/features/Projects/List/index.tsx
+++ b/src/features/Projects/List/index.tsx
@@ -1,6 +1,15 @@
'use client';
-import { Center, ContextMenuTrigger, Empty, Flexbox, Icon, SearchBar, Tooltip } from '@lobehub/ui';
+import {
+ Center,
+ ContextMenuTrigger,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Icon,
+ SearchBar,
+ Tooltip,
+} from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -9,8 +18,7 @@ import {
DropdownMenu,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
FolderClosedIcon,
diff --git a/src/features/Projects/ProjectDisabled.tsx b/src/features/Projects/ProjectDisabled.tsx
index c2a002ffd09..036bc0de55a 100644
--- a/src/features/Projects/ProjectDisabled.tsx
+++ b/src/features/Projects/ProjectDisabled.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Flexbox, Icon, Text } from '@lobehub/ui';
import { FolderKanbanIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/RenameProjectModal.tsx b/src/features/Projects/RenameProjectModal.tsx
index 2e5cc4c0e38..83aaf9f5fdf 100644
--- a/src/features/Projects/RenameProjectModal.tsx
+++ b/src/features/Projects/RenameProjectModal.tsx
@@ -1,15 +1,15 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/AddDirectoryModal.tsx b/src/features/Projects/WorkingDirectories/AddDirectoryModal.tsx
index 0a9aa2db4a1..2070b16cbed 100644
--- a/src/features/Projects/WorkingDirectories/AddDirectoryModal.tsx
+++ b/src/features/Projects/WorkingDirectories/AddDirectoryModal.tsx
@@ -1,13 +1,13 @@
-import { Flexbox } from '@lobehub/ui';
import {
Alert,
Button,
createModal,
+ Flexbox,
Input,
Select,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/AdvancedSettings.tsx b/src/features/Projects/WorkingDirectories/AdvancedSettings.tsx
index 5d7a419812a..022bdeb6e8c 100644
--- a/src/features/Projects/WorkingDirectories/AdvancedSettings.tsx
+++ b/src/features/Projects/WorkingDirectories/AdvancedSettings.tsx
@@ -1,8 +1,7 @@
// FormKit migration is blocked on inline-validation support: `FormFieldProps` has no
// `help`/`validateStatus`, which this form uses for the slug field.
-// eslint-disable-next-line no-restricted-imports
-import { Flexbox, Form } from '@lobehub/ui';
-import { Button, confirmModal, toast } from '@lobehub/ui/base-ui';
+
+import { Button, confirmModal, Flexbox, Form, toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/AgentDirectoryActions.tsx b/src/features/Projects/WorkingDirectories/AgentDirectoryActions.tsx
index deda56e80ec..17f8b7ad85f 100644
--- a/src/features/Projects/WorkingDirectories/AgentDirectoryActions.tsx
+++ b/src/features/Projects/WorkingDirectories/AgentDirectoryActions.tsx
@@ -1,6 +1,5 @@
import type { ChatTopic } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { ActionIcon, type DropdownItem, DropdownMenu, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, type DropdownItem, DropdownMenu, Icon, toast } from '@lobehub/ui';
import {
ArrowUpRightIcon,
LinkIcon,
diff --git a/src/features/Projects/WorkingDirectories/AssociateTopicModal.tsx b/src/features/Projects/WorkingDirectories/AssociateTopicModal.tsx
index f908402d02f..1bd88929a03 100644
--- a/src/features/Projects/WorkingDirectories/AssociateTopicModal.tsx
+++ b/src/features/Projects/WorkingDirectories/AssociateTopicModal.tsx
@@ -1,15 +1,15 @@
import { getWorkingDirSourcePath } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
import {
Alert,
Avatar,
Button,
createModal,
+ Flexbox,
Select,
Switch,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/BindDirectoryModal.tsx b/src/features/Projects/WorkingDirectories/BindDirectoryModal.tsx
index c8732fe6a85..aba2fa6a251 100644
--- a/src/features/Projects/WorkingDirectories/BindDirectoryModal.tsx
+++ b/src/features/Projects/WorkingDirectories/BindDirectoryModal.tsx
@@ -1,14 +1,15 @@
-import { Flexbox, Icon } from '@lobehub/ui';
import {
Alert,
Avatar,
Button,
createModal,
+ Flexbox,
+ Icon,
ModalFooter,
Select,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { FolderIcon, PlusIcon } from 'lucide-react';
import { useState } from 'react';
diff --git a/src/features/Projects/WorkingDirectories/EnvironmentModal.tsx b/src/features/Projects/WorkingDirectories/EnvironmentModal.tsx
index fd81e6f4061..92a74e641af 100644
--- a/src/features/Projects/WorkingDirectories/EnvironmentModal.tsx
+++ b/src/features/Projects/WorkingDirectories/EnvironmentModal.tsx
@@ -1,12 +1,12 @@
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t } from 'i18next';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/GeneralSettings.tsx b/src/features/Projects/WorkingDirectories/GeneralSettings.tsx
index 05bac149066..0eb83909071 100644
--- a/src/features/Projects/WorkingDirectories/GeneralSettings.tsx
+++ b/src/features/Projects/WorkingDirectories/GeneralSettings.tsx
@@ -1,8 +1,4 @@
-// FormKit migration is blocked on inline-validation support: `FormFieldProps` has no
-// `help`/`validateStatus`, which this form uses for the slug field.
-// eslint-disable-next-line no-restricted-imports
-import { Flexbox, Form } from '@lobehub/ui';
-import { Button, Input, TextArea, toast } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Form, Input, TextArea, toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -149,11 +145,12 @@ export function GeneralSettings({ project }: { project: ProjectDetail['project']
},
{
label: t('create.slugLabel'),
- desc: t('settings.slugDescription'),
- help: isProjectSlugValid(slug) ? undefined : t('create.slugInvalid'),
- validateStatus: isProjectSlugValid(slug) ? undefined : 'error',
+ desc: t(
+ isProjectSlugValid(slug) ? 'settings.slugDescription' : 'create.slugInvalid',
+ ),
children: (
<Input
+ aria-invalid={!isProjectSlugValid(slug) || undefined}
aria-label={t('create.slugLabel')}
disabled={pending}
maxLength={100}
diff --git a/src/features/Projects/WorkingDirectories/Page.tsx b/src/features/Projects/WorkingDirectories/Page.tsx
index bd8a3ea343f..50fc6785499 100644
--- a/src/features/Projects/WorkingDirectories/Page.tsx
+++ b/src/features/Projects/WorkingDirectories/Page.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tabs, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Tabs, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/features/Projects/WorkingDirectories/SidebarTopics.tsx b/src/features/Projects/WorkingDirectories/SidebarTopics.tsx
index acac1538054..7534ae43e5f 100644
--- a/src/features/Projects/WorkingDirectories/SidebarTopics.tsx
+++ b/src/features/Projects/WorkingDirectories/SidebarTopics.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, Text } from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/StartDirectoryModal.tsx b/src/features/Projects/WorkingDirectories/StartDirectoryModal.tsx
index 7fd16c98b77..8d875b400a8 100644
--- a/src/features/Projects/WorkingDirectories/StartDirectoryModal.tsx
+++ b/src/features/Projects/WorkingDirectories/StartDirectoryModal.tsx
@@ -1,14 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
ModalFooter,
Select,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/WorkingDirectories/WorkingDirectorySettings.tsx b/src/features/Projects/WorkingDirectories/WorkingDirectorySettings.tsx
index c7c775bedca..06878c8ff11 100644
--- a/src/features/Projects/WorkingDirectories/WorkingDirectorySettings.tsx
+++ b/src/features/Projects/WorkingDirectories/WorkingDirectorySettings.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Select, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, Icon, Select, Text } from '@lobehub/ui';
import { FolderIcon, MessageSquarePlusIcon, PlusIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Projects/WorkingDirectories/index.tsx b/src/features/Projects/WorkingDirectories/index.tsx
index 126b816de94..088176047d7 100644
--- a/src/features/Projects/WorkingDirectories/index.tsx
+++ b/src/features/Projects/WorkingDirectories/index.tsx
@@ -1,7 +1,5 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, DropdownMenu, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Block, Button, cssVar, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
import { GithubIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import { ChevronDownIcon, FolderIcon, PencilIcon, PlusIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Projects/Workspace/ProjectDashboard.tsx b/src/features/Projects/Workspace/ProjectDashboard.tsx
index cdb90ac84c1..1799b0d35e2 100644
--- a/src/features/Projects/Workspace/ProjectDashboard.tsx
+++ b/src/features/Projects/Workspace/ProjectDashboard.tsx
@@ -1,9 +1,19 @@
'use client';
import type { TaskStatus, WorkSummaryItem } from '@lobechat/types';
-import { Block, Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Progress, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Block,
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Empty,
+ Flexbox,
+ Icon,
+ Progress,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import {
BadgeCheckIcon,
CheckCircle2Icon,
diff --git a/src/features/Projects/Workspace/index.tsx b/src/features/Projects/Workspace/index.tsx
index 1121ded9b0e..04bd47c8f4b 100644
--- a/src/features/Projects/Workspace/index.tsx
+++ b/src/features/Projects/Workspace/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Spin, Tag, Text, TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Spin,
+ Tag,
+ Text,
+ TextArea,
+} from '@lobehub/ui';
import { SendHorizontalIcon, SparklesIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ProtocolUrlHandler/InstallPlugin/ConfigDisplay.tsx b/src/features/ProtocolUrlHandler/InstallPlugin/ConfigDisplay.tsx
index d11fe43dac8..6c5b6d3e979 100644
--- a/src/features/ProtocolUrlHandler/InstallPlugin/ConfigDisplay.tsx
+++ b/src/features/ProtocolUrlHandler/InstallPlugin/ConfigDisplay.tsx
@@ -1,9 +1,7 @@
'use client';
import { type McpInstallSchema } from '@lobechat/electron-client-ipc';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { LinkIcon, Settings2Icon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx b/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx
index e880f125bba..da93797d9e5 100644
--- a/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx
+++ b/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Alert, Text, toast } from '@lobehub/ui/base-ui';
+import { Alert, Block, Flexbox, Text, toast } from '@lobehub/ui';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx b/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx
index e71a0a3c643..d3e8ac9538c 100644
--- a/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx
+++ b/src/features/ProtocolUrlHandler/InstallPlugin/OfficialPluginInstallModal/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { Text, toast } from '@lobehub/ui/base-ui';
+import { Block, Text, toast } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/RecommendTaskTemplates/ConnectorAuthRow.tsx b/src/features/RecommendTaskTemplates/ConnectorAuthRow.tsx
index c59814fa346..81abc4e382c 100644
--- a/src/features/RecommendTaskTemplates/ConnectorAuthRow.tsx
+++ b/src/features/RecommendTaskTemplates/ConnectorAuthRow.tsx
@@ -1,7 +1,5 @@
import type { TaskTemplateConnectorReference } from '@lobechat/const';
-import { Flexbox, Icon, Image } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Image, Text } from '@lobehub/ui';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/RecommendTaskTemplates/TaskTemplateCard.tsx b/src/features/RecommendTaskTemplates/TaskTemplateCard.tsx
index f63b6ef5411..93f978613b6 100644
--- a/src/features/RecommendTaskTemplates/TaskTemplateCard.tsx
+++ b/src/features/RecommendTaskTemplates/TaskTemplateCard.tsx
@@ -1,7 +1,16 @@
import type { TaskTemplate } from '@lobechat/const';
-import { Block, Center, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Divider, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ Center,
+ cssVar,
+ cx,
+ Divider,
+ Flexbox,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { Clock, X } from 'lucide-react';
import { memo, type MouseEvent, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/RecommendTaskTemplates/TaskTemplateCardSkeleton.tsx b/src/features/RecommendTaskTemplates/TaskTemplateCardSkeleton.tsx
index f1fc6aef7d4..e8ca4c7f9c0 100644
--- a/src/features/RecommendTaskTemplates/TaskTemplateCardSkeleton.tsx
+++ b/src/features/RecommendTaskTemplates/TaskTemplateCardSkeleton.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Divider, Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Block, cssVar, cx, Divider, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import { styles as briefStyles } from '@/features/DailyBrief/style';
diff --git a/src/features/RecommendTaskTemplates/TaskTemplateDetailModal.tsx b/src/features/RecommendTaskTemplates/TaskTemplateDetailModal.tsx
index 5758c1088e7..0aa59a4b76d 100644
--- a/src/features/RecommendTaskTemplates/TaskTemplateDetailModal.tsx
+++ b/src/features/RecommendTaskTemplates/TaskTemplateDetailModal.tsx
@@ -1,7 +1,7 @@
'use client';
import type { TaskTemplate } from '@lobechat/const';
-import { Flexbox, Icon, Markdown } from '@lobehub/ui';
+import { cssVar, Flexbox, Icon, Markdown } from '@lobehub/ui';
import {
ActionIcon,
Button,
@@ -10,8 +10,7 @@ import {
type ModalInstance,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { Clock, X } from 'lucide-react';
import { memo, useEffect, useMemo } from 'react';
diff --git a/src/features/RecommendTaskTemplates/TemplateBriefIcon.tsx b/src/features/RecommendTaskTemplates/TemplateBriefIcon.tsx
index 8abe6983a8b..49819d10742 100644
--- a/src/features/RecommendTaskTemplates/TemplateBriefIcon.tsx
+++ b/src/features/RecommendTaskTemplates/TemplateBriefIcon.tsx
@@ -1,5 +1,4 @@
-import { Block, Icon, Image } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon, Image } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/RecommendTaskTemplates/style.ts b/src/features/RecommendTaskTemplates/style.ts
index a899a38db3b..ab74ecd284a 100644
--- a/src/features/RecommendTaskTemplates/style.ts
+++ b/src/features/RecommendTaskTemplates/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
card: css`
diff --git a/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts b/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts
index 60cdcc20ad4..e022ab040c8 100644
--- a/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts
+++ b/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts
@@ -5,7 +5,7 @@ import type {
} from '@lobechat/const';
import { TASK_TEMPLATE_RECOMMEND_COUNT } from '@lobechat/const';
import { createNanoId } from '@lobechat/utils';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useSessionStorageState } from 'ahooks';
import { useCallback, useEffect, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts b/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts
index 29b5d380558..366755f2e44 100644
--- a/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts
+++ b/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts
@@ -1,5 +1,5 @@
import type { TaskTemplate } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Recommendations/RecommendationCard.tsx b/src/features/Recommendations/RecommendationCard.tsx
index 00cfcb1c5af..15542855731 100644
--- a/src/features/Recommendations/RecommendationCard.tsx
+++ b/src/features/Recommendations/RecommendationCard.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, Divider, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Block, Button, cssVar, cx, Divider, Flexbox, Tag, Text, toast } from '@lobehub/ui';
import { memo, type ReactNode, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Recommendations/index.tsx b/src/features/Recommendations/index.tsx
index 25cbe9ff3bb..6229aac2349 100644
--- a/src/features/Recommendations/index.tsx
+++ b/src/features/Recommendations/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Text } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Recommendations/style.ts b/src/features/Recommendations/style.ts
index 3851f37d2d5..a5ea1b7fbf8 100644
--- a/src/features/Recommendations/style.ts
+++ b/src/features/Recommendations/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { SPIN_TURN_MS } from './spinHold';
diff --git a/src/features/ResourceHome/Home/Libraries.tsx b/src/features/ResourceHome/Home/Libraries.tsx
index d105b70a45b..0e603cc310a 100644
--- a/src/features/ResourceHome/Home/Libraries.tsx
+++ b/src/features/ResourceHome/Home/Libraries.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Home/RecentFiles.tsx b/src/features/ResourceHome/Home/RecentFiles.tsx
index 09e69106c3b..907afc6553a 100644
--- a/src/features/ResourceHome/Home/RecentFiles.tsx
+++ b/src/features/ResourceHome/Home/RecentFiles.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Home/RecentPages.tsx b/src/features/ResourceHome/Home/RecentPages.tsx
index 2b60fc862a8..2734d73a0d0 100644
--- a/src/features/ResourceHome/Home/RecentPages.tsx
+++ b/src/features/ResourceHome/Home/RecentPages.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import dayjs from 'dayjs';
import { FileTextIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceHome/Home/RecentWorks.tsx b/src/features/ResourceHome/Home/RecentWorks.tsx
index 1f451c6d033..bf5cdcde654 100644
--- a/src/features/ResourceHome/Home/RecentWorks.tsx
+++ b/src/features/ResourceHome/Home/RecentWorks.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Home/SectionTitle.tsx b/src/features/ResourceHome/Home/SectionTitle.tsx
index 9e12bd4bb86..d236a3898b6 100644
--- a/src/features/ResourceHome/Home/SectionTitle.tsx
+++ b/src/features/ResourceHome/Home/SectionTitle.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Home/index.tsx b/src/features/ResourceHome/Home/index.tsx
index 5d5b7f8368a..f8600b980cd 100644
--- a/src/features/ResourceHome/Home/index.tsx
+++ b/src/features/ResourceHome/Home/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Layout/Body/LibraryList/Item/Actions.tsx b/src/features/ResourceHome/Layout/Body/LibraryList/Item/Actions.tsx
index 6b19c4604cb..6409785f4ac 100644
--- a/src/features/ResourceHome/Layout/Body/LibraryList/Item/Actions.tsx
+++ b/src/features/ResourceHome/Layout/Body/LibraryList/Item/Actions.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceHome/Layout/Body/LibraryList/Item/Editing.tsx b/src/features/ResourceHome/Layout/Body/LibraryList/Item/Editing.tsx
index 2166d83fc51..8bf481114db 100644
--- a/src/features/ResourceHome/Layout/Body/LibraryList/Item/Editing.tsx
+++ b/src/features/ResourceHome/Layout/Body/LibraryList/Item/Editing.tsx
@@ -1,5 +1,4 @@
-import { stopPropagation } from '@lobehub/ui';
-import { Input, toast } from '@lobehub/ui/base-ui';
+import { Input, stopPropagation, toast } from '@lobehub/ui';
import { type KeyboardEvent, memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Layout/Body/LibraryList/Item/index.tsx b/src/features/ResourceHome/Layout/Body/LibraryList/Item/index.tsx
index a8ebc0dfa02..7c7031e02c4 100644
--- a/src/features/ResourceHome/Layout/Body/LibraryList/Item/index.tsx
+++ b/src/features/ResourceHome/Layout/Body/LibraryList/Item/index.tsx
@@ -1,5 +1,4 @@
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Spin } from '@lobehub/ui';
import { type CSSProperties } from 'react';
import React, { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/ResourceHome/Layout/Body/LibraryList/Item/useDropdownMenu.tsx b/src/features/ResourceHome/Layout/Body/LibraryList/Item/useDropdownMenu.tsx
index 342fdc5a3d8..d94f732e2b5 100644
--- a/src/features/ResourceHome/Layout/Body/LibraryList/Item/useDropdownMenu.tsx
+++ b/src/features/ResourceHome/Layout/Body/LibraryList/Item/useDropdownMenu.tsx
@@ -1,6 +1,5 @@
-import type { MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon, toast } from '@lobehub/ui';
import { EyeOffIcon, FileText, GlobeIcon, PencilLine, Trash, UsersIcon } from 'lucide-react';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -35,7 +34,7 @@ export const useDropdownMenu = ({
toggleEditing,
userId,
visibility,
-}: ActionProps): (() => MenuProps['items']) => {
+}: ActionProps): (() => DropdownItem[]) => {
const { t } = useTranslation(['file', 'common', 'chat', 'setting']);
const removeKnowledgeBase = useKnowledgeBaseStore((s) => s.removeKnowledgeBase);
@@ -154,7 +153,7 @@ export const useDropdownMenu = ({
// Assemble the menu as ordered groups and let the dividers fall out of which
// groups survived. Hand-wiring a divider next to each entry silently drops
// or duplicates separators as soon as one capability combination changes.
- const groups: NonNullable<MenuProps['items']>[] = [
+ const groups: NonNullable<DropdownItem[]>[] = [
// Content edits: gated by the workspace role only. Row ownership no longer
// gates them — the server accepts any member holding an `edit` grant.
canEdit
@@ -211,7 +210,7 @@ export const useDropdownMenu = ({
}
: null,
memberPermissionMenuItem,
- ].filter(Boolean) as NonNullable<MenuProps['items']>,
+ ].filter(Boolean) as NonNullable<DropdownItem[]>,
// Cross-workspace move / copy: creator-or-owner only.
canEdit && canManage ? (transferMenuItems ?? []) : [],
canEdit
diff --git a/src/features/ResourceHome/Layout/Body/index.tsx b/src/features/ResourceHome/Layout/Body/index.tsx
index dd9d387758b..9e082b78901 100644
--- a/src/features/ResourceHome/Layout/Body/index.tsx
+++ b/src/features/ResourceHome/Layout/Body/index.tsx
@@ -1,4 +1,3 @@
-import { Tooltip } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -6,9 +5,10 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ cx,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+ Tooltip,
+} from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceHome/Layout/SidebarContent.tsx b/src/features/ResourceHome/Layout/SidebarContent.tsx
index c143b37cd88..ed3ab0909ed 100644
--- a/src/features/ResourceHome/Layout/SidebarContent.tsx
+++ b/src/features/ResourceHome/Layout/SidebarContent.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import SideBarLayout from '@/features/NavPanel/SideBarLayout';
diff --git a/src/features/ResourceHome/Layout/style.ts b/src/features/ResourceHome/Layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/features/ResourceHome/Layout/style.ts
+++ b/src/features/ResourceHome/Layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/features/ResourceLibrary/Container.tsx b/src/features/ResourceLibrary/Container.tsx
index 3404dc15268..6675b7bcadf 100644
--- a/src/features/ResourceLibrary/Container.tsx
+++ b/src/features/ResourceLibrary/Container.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { useTheme } from 'antd-style';
+import { Flexbox, useTheme } from '@lobehub/ui';
import { type FC, type PropsWithChildren } from 'react';
const Container: FC<PropsWithChildren> = ({ children }) => {
diff --git a/src/features/ResourceLibrary/Layout/Header/LibraryHead.tsx b/src/features/ResourceLibrary/Layout/Header/LibraryHead.tsx
index 49436b9b65e..f1b6f3b8c02 100644
--- a/src/features/ResourceLibrary/Layout/Header/LibraryHead.tsx
+++ b/src/features/ResourceLibrary/Layout/Header/LibraryHead.tsx
@@ -1,9 +1,17 @@
'use client';
-import { Block, Center, stopPropagation } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { ActionIcon, DropdownMenu, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Block,
+ Center,
+ createStaticStyles,
+ cx,
+ DropdownMenu,
+ Skeleton,
+ stopPropagation,
+ Text,
+} from '@lobehub/ui';
import { ChevronsUpDownIcon } from 'lucide-react';
import type { DragEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
@@ -108,7 +116,7 @@ const Head = memo<{ id: string }>(({ id }) => {
key: library.id,
label: library.name,
onClick: () => handleLibrarySwitch(library.id),
- style: library.id === id ? { backgroundColor: 'var(--ant-control-item-bg-active)' } : {},
+ style: library.id === id ? { backgroundColor: 'var(--lobe-control-item-bg-active)' } : {},
},
visibility: library.visibility,
}));
diff --git a/src/features/ResourceLibrary/Layout/Header/libraryMenuItems.ts b/src/features/ResourceLibrary/Layout/Header/libraryMenuItems.ts
index d7431720aac..ed3e34167f3 100644
--- a/src/features/ResourceLibrary/Layout/Header/libraryMenuItems.ts
+++ b/src/features/ResourceLibrary/Layout/Header/libraryMenuItems.ts
@@ -1,4 +1,4 @@
-import type { DropdownItem } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
export interface LibraryMenuEntry {
item: NonNullable<DropdownItem>;
diff --git a/src/features/ResourceLibrary/Layout/index.tsx b/src/features/ResourceLibrary/Layout/index.tsx
index 2b531dcaa8a..10d9d081ac0 100644
--- a/src/features/ResourceLibrary/Layout/index.tsx
+++ b/src/features/ResourceLibrary/Layout/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
import { Outlet, useParams } from 'react-router';
diff --git a/src/features/ResourceLibrary/Layout/style.ts b/src/features/ResourceLibrary/Layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/features/ResourceLibrary/Layout/style.ts
+++ b/src/features/ResourceLibrary/Layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/features/ResourceManager/DndContextWrapper.tsx b/src/features/ResourceManager/DndContextWrapper.tsx
index 60a9bd1e57f..f49cb7cd88a 100644
--- a/src/features/ResourceManager/DndContextWrapper.tsx
+++ b/src/features/ResourceManager/DndContextWrapper.tsx
@@ -1,9 +1,7 @@
'use client';
import { CUSTOM_DOCUMENT_FILE_TYPE, CUSTOM_FOLDER_FILE_TYPE } from '@lobechat/const';
-import { Icon, useAppElement } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, toast, useAppElement } from '@lobehub/ui';
import { FileText, FolderIcon } from 'lucide-react';
import { type PropsWithChildren } from 'react';
import { createContext, lazy, memo, Suspense, use, useEffect, useRef, useState } from 'react';
diff --git a/src/features/ResourceManager/FileDetail.tsx b/src/features/ResourceManager/FileDetail.tsx
index 7a5ab68c083..7ec8da40c8e 100644
--- a/src/features/ResourceManager/FileDetail.tsx
+++ b/src/features/ResourceManager/FileDetail.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Descriptions, Divider, Tag } from '@lobehub/ui/base-ui';
+import { ActionIcon, Descriptions, Divider, Flexbox, Icon, Tag } from '@lobehub/ui';
import dayjs from 'dayjs';
import { BoltIcon, DownloadIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/ChunkDrawer/ChunkList/ChunkItem.tsx b/src/features/ResourceManager/components/ChunkDrawer/ChunkList/ChunkItem.tsx
index 5c7ffe8e6a3..1e87e91a04c 100644
--- a/src/features/ResourceManager/components/ChunkDrawer/ChunkList/ChunkItem.tsx
+++ b/src/features/ResourceManager/components/ChunkDrawer/ChunkList/ChunkItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useFileStore } from '@/store/file';
diff --git a/src/features/ResourceManager/components/ChunkDrawer/Loading/index.tsx b/src/features/ResourceManager/components/ChunkDrawer/Loading/index.tsx
index dd012d33a36..75413446f85 100644
--- a/src/features/ResourceManager/components/ChunkDrawer/Loading/index.tsx
+++ b/src/features/ResourceManager/components/ChunkDrawer/Loading/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const SkeletonLoading = memo(() => (
diff --git a/src/features/ResourceManager/components/ChunkDrawer/SimilaritySearchList/Item.tsx b/src/features/ResourceManager/components/ChunkDrawer/SimilaritySearchList/Item.tsx
index b396e130991..9cbd433dc40 100644
--- a/src/features/ResourceManager/components/ChunkDrawer/SimilaritySearchList/Item.tsx
+++ b/src/features/ResourceManager/components/ChunkDrawer/SimilaritySearchList/Item.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Tag } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { type SemanticSearchChunk } from '@/types/chunk';
diff --git a/src/features/ResourceManager/components/ChunkDrawer/index.tsx b/src/features/ResourceManager/components/ChunkDrawer/index.tsx
index d67f93b6f7e..316824674a3 100644
--- a/src/features/ResourceManager/components/ChunkDrawer/index.tsx
+++ b/src/features/ResourceManager/components/ChunkDrawer/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Drawer } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Drawer, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import dynamic from '@/libs/next/dynamic';
diff --git a/src/features/ResourceManager/components/Editor/index.tsx b/src/features/ResourceManager/components/Editor/index.tsx
index e2fed92fe1b..6d47be56326 100644
--- a/src/features/ResourceManager/components/Editor/index.tsx
+++ b/src/features/ResourceManager/components/Editor/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, createModal, Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar, useTheme } from 'antd-style';
+import { ActionIcon, createModal, cssVar, Flexbox, Skeleton, useTheme } from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import { ArrowLeftIcon, DownloadIcon, InfoIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/EmptyPlaceholder.tsx b/src/features/ResourceManager/components/Explorer/EmptyPlaceholder.tsx
index fbe8e31aaa3..a2d771b0dfe 100644
--- a/src/features/ResourceManager/components/Explorer/EmptyPlaceholder.tsx
+++ b/src/features/ResourceManager/components/Explorer/EmptyPlaceholder.tsx
@@ -1,6 +1,14 @@
-import { Center, FileTypeIcon, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text, Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ FileTypeIcon,
+ Flexbox,
+ Icon,
+ Text,
+ Upload,
+} from '@lobehub/ui';
import { ArrowUpIcon, PlusIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/FileDetailPanel/PagePreview.tsx b/src/features/ResourceManager/components/Explorer/FileDetailPanel/PagePreview.tsx
index 315363e00be..7a5007de00f 100644
--- a/src/features/ResourceManager/components/Explorer/FileDetailPanel/PagePreview.tsx
+++ b/src/features/ResourceManager/components/Explorer/FileDetailPanel/PagePreview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Empty, Flexbox, Markdown } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Center, Empty, Flexbox, Markdown, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import { useClientDataSWR } from '@/libs/swr';
diff --git a/src/features/ResourceManager/components/Explorer/FileDetailPanel/index.tsx b/src/features/ResourceManager/components/Explorer/FileDetailPanel/index.tsx
index 789e963d9fa..89038a2bcc9 100644
--- a/src/features/ResourceManager/components/Explorer/FileDetailPanel/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/FileDetailPanel/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, DraggablePanel } from '@lobehub/ui/base-ui';
-import { cssVar, useTheme } from 'antd-style';
+import { ActionIcon, cssVar, DraggablePanel, Flexbox, useTheme } from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import { DownloadIcon, InfoIcon, PanelRightCloseIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/Header/Breadcrumb.tsx b/src/features/ResourceManager/components/Explorer/Header/Breadcrumb.tsx
index 1736889a8c3..534fc8d2c3a 100644
--- a/src/features/ResourceManager/components/Explorer/Header/Breadcrumb.tsx
+++ b/src/features/ResourceManager/components/Explorer/Header/Breadcrumb.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useSearchParams } from 'react-router';
diff --git a/src/features/ResourceManager/components/Explorer/Header/SearchInput.tsx b/src/features/ResourceManager/components/Explorer/Header/SearchInput.tsx
index 5fb2e84a884..a2d45b3d0f0 100644
--- a/src/features/ResourceManager/components/Explorer/Header/SearchInput.tsx
+++ b/src/features/ResourceManager/components/Explorer/Header/SearchInput.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon, Input } from '@lobehub/ui/base-ui';
+import { ActionIcon, Input } from '@lobehub/ui';
import { useDebounce } from 'ahooks';
import { SearchIcon, XIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/Header/index.tsx b/src/features/ResourceManager/components/Explorer/Header/index.tsx
index 6a215ad75b5..a575ef6a775 100644
--- a/src/features/ResourceManager/components/Explorer/Header/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/Header/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, confirmModal, cssVar, Flexbox, toast } from '@lobehub/ui';
import { BookMinusIcon, FileBoxIcon, Trash2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/ItemDropdown/DropdownMenu.tsx b/src/features/ResourceManager/components/Explorer/ItemDropdown/DropdownMenu.tsx
index 82458430f51..7ebe935e526 100644
--- a/src/features/ResourceManager/components/Explorer/ItemDropdown/DropdownMenu.tsx
+++ b/src/features/ResourceManager/components/Explorer/ItemDropdown/DropdownMenu.tsx
@@ -1,6 +1,5 @@
import type { ItemType } from '@lobehub/ui';
-import { DropdownMenu as DropdownMenuUI } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu as DropdownMenuUI } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.test.tsx b/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.test.tsx
index 978e24e61f0..53a404368f3 100644
--- a/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.test.tsx
+++ b/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.test.tsx
@@ -23,15 +23,30 @@ const mocks = vi.hoisted(() => ({
useSendToMessengerMenuItem: vi.fn((_params: SendToMessengerParams) => undefined),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
- confirmModal: mocks.confirmModal,
- toast: {
- error: vi.fn(),
- loading: vi.fn(() => ({ close: vi.fn() })),
- success: vi.fn(),
- warning: vi.fn(),
- },
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ () => ({
+ confirmModal: mocks.confirmModal,
+ toast: {
+ error: vi.fn(),
+ loading: vi.fn(() => ({ close: vi.fn() })),
+ success: vi.fn(),
+ warning: vi.fn(),
+ },
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
+ copyToClipboard: mocks.copyToClipboard,
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('@/features/Messenger/PushResourceModal/useSendToMessengerMenuItem', () => ({
useSendToMessengerMenuItem: mocks.useSendToMessengerMenuItem,
@@ -65,10 +80,6 @@ vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({
vi.mock('@/business/client/hooks/useActiveWorkspaceSlug', () => ({
useActiveWorkspaceSlug: () => mocks.activeWorkspaceSlug,
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<Record<string, unknown>>()),
- copyToClipboard: mocks.copyToClipboard,
-}));
vi.mock('@/store/tree', () => ({
useTreeStore: Object.assign(() => vi.fn(), {
diff --git a/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx b/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx
index 05a5f35e535..987579dacb0 100644
--- a/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx
+++ b/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx
@@ -1,8 +1,7 @@
import { CUSTOM_FOLDER_FILE_TYPE, DERIVED_DOCUMENT_SOURCE_TYPE } from '@lobechat/const';
import type { SFSymbol } from '@lobechat/electron-client-ipc';
import type { ItemType } from '@lobehub/ui';
-import { copyToClipboard, Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, copyToClipboard, Icon, toast } from '@lobehub/ui';
import {
BookMinusIcon,
BookPlusIcon,
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ColumnResizeHandle.tsx b/src/features/ResourceManager/components/Explorer/ListView/ColumnResizeHandle.tsx
index ab1bb811c3d..1691f5c8b60 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ColumnResizeHandle.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ColumnResizeHandle.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemActions.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemActions.tsx
index b921f2f9085..59e83336857 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemActions.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemActions.tsx
@@ -1,7 +1,6 @@
import type { IAsyncTaskError } from '@lobechat/types';
import type { ItemType } from '@lobehub/ui';
-import { Flexbox, stopPropagation } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, stopPropagation } from '@lobehub/ui';
import { isNull } from 'es-toolkit/compat';
import { FileBoxIcon } from 'lucide-react';
import { useMemo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx
index 14d46ed51bb..6468d29dc26 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx
@@ -1,5 +1,4 @@
-import { Center, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Input } from '@lobehub/ui/base-ui';
+import { Center, Flexbox, Icon, Input, stopPropagation, Tooltip } from '@lobehub/ui';
import { FileText, FolderIcon, LockIcon } from 'lucide-react';
import FileIcon from '@/components/FileIcon';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
index 990391098f7..e8880bb264a 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
@@ -1,6 +1,14 @@
-import { Center, ContextMenuTrigger, Flexbox, Tooltip } from '@lobehub/ui';
-import { Avatar, Checkbox } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ Center,
+ Checkbox,
+ ContextMenuTrigger,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Tooltip,
+} from '@lobehub/ui';
import { isEqual } from 'es-toolkit';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/styles.ts b/src/features/ResourceManager/components/Explorer/ListView/ListItem/styles.ts
index 75b251084bf..e4525b40ac3 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/styles.ts
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
container: css`
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.test.ts b/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.test.ts
index 0e068bd50d2..7054adbf47b 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.test.ts
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.test.ts
@@ -6,7 +6,7 @@ const mocks = vi.hoisted(() => ({
revalidateTree: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({
+vi.mock('@lobehub/ui', () => ({
toast: { error: vi.fn(), success: vi.fn() },
}));
vi.mock('react-i18next', () => ({
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.ts b/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.ts
index 42c12d6df86..7264fd7abd7 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.ts
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/useFileListItemRename.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListViewDropZone.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListViewDropZone.tsx
index e53c7982226..ef6a930ac01 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListViewDropZone.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListViewDropZone.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import type { ReactNode, RefObject } from 'react';
import type { VirtuosoHandle } from 'react-virtuoso';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListViewHeader.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListViewHeader.tsx
index f3127fb2e5f..a05959ab7a3 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListViewHeader.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListViewHeader.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, Checkbox, cssVar, Flexbox } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListViewSelectAllHint.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListViewSelectAllHint.tsx
index 2efaaf37373..6f455cc2914 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListViewSelectAllHint.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListViewSelectAllHint.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { SelectAllState } from '@/features/ResourceManager/store/initialState';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/Skeleton.tsx b/src/features/ResourceManager/components/Explorer/ListView/Skeleton.tsx
index bb25eee21dd..d81b88d0ff9 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/Skeleton.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/Skeleton.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Checkbox, Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, Checkbox, cssVar, Flexbox, Skeleton } from '@lobehub/ui';
import { FILE_DATE_WIDTH, FILE_SIZE_WIDTH, getListViewMinWidth } from './ListItem/constants';
diff --git a/src/features/ResourceManager/components/Explorer/ListView/styles.ts b/src/features/ResourceManager/components/Explorer/ListView/styles.ts
index 2bf4a36f33f..086c3aaa4f4 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/styles.ts
+++ b/src/features/ResourceManager/components/Explorer/ListView/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
dropZone: css`
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/AudioFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/AudioFileItem.tsx
index 4c4d5406d87..7b6b29f7e6b 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/AudioFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/AudioFileItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
import { AudioLinesIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/DefaultFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/DefaultFileItem.tsx
index dd4a8b76fe6..b5f1bf692b4 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/DefaultFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/DefaultFileItem.tsx
@@ -1,7 +1,5 @@
import { CUSTOM_FOLDER_FILE_TYPE } from '@lobechat/const';
-import { Flexbox, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox, stopPropagation, Tooltip } from '@lobehub/ui';
import { isNull } from 'es-toolkit/compat';
import { FileBoxIcon, Folder } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/ImageFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/ImageFileItem.tsx
index 97d2e38fbd9..30789b358e1 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/ImageFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/ImageFileItem.tsx
@@ -1,6 +1,13 @@
-import { Icon, Image, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, keyframes } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cx,
+ Icon,
+ Image,
+ keyframes,
+ stopPropagation,
+ Tooltip,
+} from '@lobehub/ui';
import { isNull } from 'es-toolkit/compat';
import { FileBoxIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/MarkdownFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/MarkdownFileItem.tsx
index 6d9b99deafb..58e1d2624ee 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/MarkdownFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/MarkdownFileItem.tsx
@@ -1,6 +1,4 @@
-import { stopPropagation, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, stopPropagation, Tooltip } from '@lobehub/ui';
import { isNull } from 'es-toolkit/compat';
import { FileBoxIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/NoteFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/NoteFileItem.tsx
index 6851b138a7f..54faee62247 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/NoteFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/NoteFileItem.tsx
@@ -1,6 +1,4 @@
-import { stopPropagation, Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, stopPropagation, Tooltip } from '@lobehub/ui';
import { isNull } from 'es-toolkit/compat';
import { FileBoxIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/VideoFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/VideoFileItem.tsx
index e9bb4c95df1..e79c0d0cf4f 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/VideoFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/VideoFileItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { PlayIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/WebpageFileItem.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/WebpageFileItem.tsx
index 1fa7f9429aa..e9516749f22 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/WebpageFileItem.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/WebpageFileItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
import { ExternalLinkIcon, GlobeIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx
index d277df96dfe..725471df61b 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx
@@ -3,9 +3,15 @@ import {
CUSTOM_FOLDER_FILE_TYPE,
MARKDOWN_MIME_TYPES,
} from '@lobechat/const';
-import { Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Checkbox } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Checkbox,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Icon,
+ stopPropagation,
+ Tooltip,
+} from '@lobehub/ui';
import { LockIcon } from 'lucide-react';
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/Skeleton.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/Skeleton.tsx
index 236ee6f3c19..e531cf889e4 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/Skeleton.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/Skeleton.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles, keyframes } from 'antd-style';
+import { createStaticStyles, keyframes } from '@lobehub/ui';
import { memo } from 'react';
const pulse = keyframes`
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/index.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/index.tsx
index 0a22e13ad7f..b704d235dc4 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/index.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Checkbox } from '@lobehub/ui/base-ui';
+import { Button, Center, Checkbox, createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { VirtuosoMasonry } from '@virtuoso.dev/masonry';
-import { createStaticStyles, cssVar } from 'antd-style';
import { type UIEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx b/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx
index 4af38b696f1..6d1a8066490 100644
--- a/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx
+++ b/src/features/ResourceManager/components/Explorer/MoveToFolderModal.tsx
@@ -1,6 +1,13 @@
import { CUSTOM_FOLDER_FILE_TYPE } from '@lobechat/const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, createModal, ModalFooter, toast, useModalContext } from '@lobehub/ui/base-ui';
+import {
+ Button,
+ createModal,
+ Flexbox,
+ Icon,
+ ModalFooter,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { FolderIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx b/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx
index 1e2016e9db8..13e59abeb83 100644
--- a/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx
+++ b/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Checkbox, Spin } from '@lobehub/ui/base-ui';
+import { Center, Checkbox, cssVar, Flexbox, Spin } from '@lobehub/ui';
import { VirtuosoMasonry } from '@virtuoso.dev/masonry';
-import { cssVar } from 'antd-style';
import { SearchIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/Explorer/ToolBar/ActionIconWithChevron.tsx b/src/features/ResourceManager/components/Explorer/ToolBar/ActionIconWithChevron.tsx
index 895059d49f4..a88a3631669 100644
--- a/src/features/ResourceManager/components/Explorer/ToolBar/ActionIconWithChevron.tsx
+++ b/src/features/ResourceManager/components/Explorer/ToolBar/ActionIconWithChevron.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { ChevronDownIcon } from 'lucide-react';
import { type ComponentProps } from 'react';
diff --git a/src/features/ResourceManager/components/Explorer/ToolBar/BatchActionsDropdown.tsx b/src/features/ResourceManager/components/Explorer/ToolBar/BatchActionsDropdown.tsx
index 072bf4e041f..35e8e2f9217 100644
--- a/src/features/ResourceManager/components/Explorer/ToolBar/BatchActionsDropdown.tsx
+++ b/src/features/ResourceManager/components/Explorer/ToolBar/BatchActionsDropdown.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem } from '@lobehub/ui';
-import { DropdownMenu, Icon, Tooltip } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, DropdownMenu, Icon, toast, Tooltip } from '@lobehub/ui';
import {
BookMinusIcon,
BookPlusIcon,
diff --git a/src/features/ResourceManager/components/Explorer/ToolBar/SourceFilter.tsx b/src/features/ResourceManager/components/Explorer/ToolBar/SourceFilter.tsx
index 24e0cafa11a..ed7e940a9aa 100644
--- a/src/features/ResourceManager/components/Explorer/ToolBar/SourceFilter.tsx
+++ b/src/features/ResourceManager/components/Explorer/ToolBar/SourceFilter.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/FolderTree/index.tsx b/src/features/ResourceManager/components/FolderTree/index.tsx
index 96491781285..ba72be4cc0c 100644
--- a/src/features/ResourceManager/components/FolderTree/index.tsx
+++ b/src/features/ResourceManager/components/FolderTree/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cx, Flexbox, Icon } from '@lobehub/ui';
import { ChevronDownIcon, FolderIcon, FolderOpenIcon } from 'lucide-react';
import * as m from 'motion/react-m';
import { memo, useCallback } from 'react';
diff --git a/src/features/ResourceManager/components/Header/AddButton.tsx b/src/features/ResourceManager/components/Header/AddButton.tsx
index 6c1c35c2106..a76f26b880f 100644
--- a/src/features/ResourceManager/components/Header/AddButton.tsx
+++ b/src/features/ResourceManager/components/Header/AddButton.tsx
@@ -7,8 +7,7 @@ import {
} from '@lobechat/const';
import { Notion } from '@lobehub/icons';
import { type DropdownItem } from '@lobehub/ui';
-import { DropdownMenu, Icon, Tooltip } from '@lobehub/ui';
-import { Button, toast, Upload } from '@lobehub/ui/base-ui';
+import { Button, DropdownMenu, Icon, toast, Tooltip, Upload } from '@lobehub/ui';
import { FilePenLine, FileUp, FolderIcon, FolderUp, Link, Plus } from 'lucide-react';
import { type ChangeEvent } from 'react';
import { useCallback, useId, useMemo, useState } from 'react';
diff --git a/src/features/ResourceManager/components/Header/hooks/useNotionImport.tsx b/src/features/ResourceManager/components/Header/hooks/useNotionImport.tsx
index d58d18234d6..c787ba02d3b 100644
--- a/src/features/ResourceManager/components/Header/hooks/useNotionImport.tsx
+++ b/src/features/ResourceManager/components/Header/hooks/useNotionImport.tsx
@@ -1,5 +1,5 @@
import { FILE_URL } from '@lobechat/business-const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import debug from 'debug';
import { type TFunction } from 'i18next';
import { type ChangeEvent } from 'react';
diff --git a/src/features/ResourceManager/components/Header/hooks/useUploadFolder.ts b/src/features/ResourceManager/components/Header/hooks/useUploadFolder.ts
index af5f679ebd6..9588a565bd0 100644
--- a/src/features/ResourceManager/components/Header/hooks/useUploadFolder.ts
+++ b/src/features/ResourceManager/components/Header/hooks/useUploadFolder.ts
@@ -1,4 +1,4 @@
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { type TFunction } from 'i18next';
import { type ChangeEvent } from 'react';
import { useCallback } from 'react';
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/FolderAddButton.tsx b/src/features/ResourceManager/components/LibraryHierarchy/FolderAddButton.tsx
index 6c0a2d571b2..802e99e87ed 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/FolderAddButton.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/FolderAddButton.tsx
@@ -7,7 +7,7 @@ import {
} from '@lobechat/const';
import { Notion } from '@lobehub/icons';
import { type DropdownItem, DropdownMenu, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, toast, Upload } from '@lobehub/ui/base-ui';
+import { ActionIcon, toast, Upload } from '@lobehub/ui';
import { FilePenLine, FileUp, FolderIcon, FolderUp, Link, Plus } from 'lucide-react';
import { type ChangeEvent } from 'react';
import { memo, useCallback, useId, useMemo, useState } from 'react';
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx b/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx
index 525423e573c..47171dead5a 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx
@@ -1,9 +1,19 @@
'use client';
import { DERIVED_DOCUMENT_SOURCE_TYPE } from '@lobechat/const';
-import { Block, Center, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Input, Spin, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Center,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ Spin,
+ stopPropagation,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { ChevronDownIcon, FileText, FolderIcon, FolderOpenIcon, LockIcon } from 'lucide-react';
import * as m from 'motion/react-m';
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNodeMenuButton.tsx b/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNodeMenuButton.tsx
index 2e61a8eab5a..e95631f3a90 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNodeMenuButton.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNodeMenuButton.tsx
@@ -1,8 +1,7 @@
'use client';
import type { ItemType } from '@lobehub/ui';
-import { DropdownMenu, stopPropagation } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu, stopPropagation } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/SearchResults.tsx b/src/features/ResourceManager/components/LibraryHierarchy/SearchResults.tsx
index 5714a5c3a79..ae632787234 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/SearchResults.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/SearchResults.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Center, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { useDebounce } from 'ahooks';
-import { cssVar } from 'antd-style';
import { SearchXIcon } from 'lucide-react';
import { memo, useCallback, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/TreeSkeleton.tsx b/src/features/ResourceManager/components/LibraryHierarchy/TreeSkeleton.tsx
index 78ca1dc1336..ad5c8f9d96b 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/TreeSkeleton.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/TreeSkeleton.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/index.tsx b/src/features/ResourceManager/components/LibraryHierarchy/index.tsx
index 18830e17f6f..babcecf97e0 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/index.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { FolderPlusIcon } from 'lucide-react';
import { memo, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/styles.ts b/src/features/ResourceManager/components/LibraryHierarchy/styles.ts
index 9410c8d1d2a..810b6ec5675 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/styles.ts
+++ b/src/features/ResourceManager/components/LibraryHierarchy/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
dragging: css`
diff --git a/src/features/ResourceManager/components/ResourceModeToggle/index.tsx b/src/features/ResourceManager/components/ResourceModeToggle/index.tsx
index 66fb38e986c..12174195d6f 100644
--- a/src/features/ResourceManager/components/ResourceModeToggle/index.tsx
+++ b/src/features/ResourceManager/components/ResourceModeToggle/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type DropdownItem, DropdownMenu, Icon, type MenuInfo } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar } from '@lobehub/ui';
import { CheckIcon, LockIcon, UsersIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceManager/index.tsx b/src/features/ResourceManager/index.tsx
index df853aa3afd..f9bfbc78da3 100644
--- a/src/features/ResourceManager/index.tsx
+++ b/src/features/ResourceManager/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { createStaticStyles, Flexbox, useTheme } from '@lobehub/ui';
import { memo, type ReactNode, useCallback, useMemo } from 'react';
import { useSearchParams } from 'react-router';
diff --git a/src/features/ResourcePermission/AccessLevelTag.tsx b/src/features/ResourcePermission/AccessLevelTag.tsx
index 62edc44a8c7..a112421c0f3 100644
--- a/src/features/ResourcePermission/AccessLevelTag.tsx
+++ b/src/features/ResourcePermission/AccessLevelTag.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag, Tooltip } from '@lobehub/ui';
import { EyeIcon, PlayIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourcePermission/Collaborators/AddCollaboratorsContent.tsx b/src/features/ResourcePermission/Collaborators/AddCollaboratorsContent.tsx
index 75ddc3c0e6f..3bfd1fd949c 100644
--- a/src/features/ResourcePermission/Collaborators/AddCollaboratorsContent.tsx
+++ b/src/features/ResourcePermission/Collaborators/AddCollaboratorsContent.tsx
@@ -1,18 +1,23 @@
'use client';
import { MAX_RESOURCE_COLLABORATORS_PER_ADD } from '@lobechat/const';
-import { Empty, Flexbox, Icon, SearchBar } from '@lobehub/ui';
import {
Avatar,
Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Empty,
+ Flexbox,
+ Icon,
+ SearchBar,
SkeletonAvatar,
SkeletonText,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { useHover } from 'ahooks';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
import { CheckIcon, SearchXIcon, UsersIcon } from 'lucide-react';
import { memo, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourcePermission/Collaborators/CollaboratorList.tsx b/src/features/ResourcePermission/Collaborators/CollaboratorList.tsx
index 11de5ff3ab1..7d525d0df75 100644
--- a/src/features/ResourcePermission/Collaborators/CollaboratorList.tsx
+++ b/src/features/ResourcePermission/Collaborators/CollaboratorList.tsx
@@ -1,16 +1,17 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Avatar,
confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
SkeletonAvatar,
SkeletonText,
Tag,
Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { XIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourcePermission/Collaborators/index.tsx b/src/features/ResourcePermission/Collaborators/index.tsx
index 67980ae01c5..b5c1db46b91 100644
--- a/src/features/ResourcePermission/Collaborators/index.tsx
+++ b/src/features/ResourcePermission/Collaborators/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button, createModal } from '@lobehub/ui/base-ui';
+import { Button, createModal, Icon } from '@lobehub/ui';
import { t } from 'i18next';
import { PlusIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
diff --git a/src/features/ResourcePermission/PolicySelect.tsx b/src/features/ResourcePermission/PolicySelect.tsx
index 89c1a935a68..b51f36b0a7b 100644
--- a/src/features/ResourcePermission/PolicySelect.tsx
+++ b/src/features/ResourcePermission/PolicySelect.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import type { SelectOptions } from '@lobehub/ui/base-ui';
-import { Select } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import type { SelectOptions } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox, Icon, Select } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/features/ResourcePermission/ResourceAccessPage.tsx b/src/features/ResourcePermission/ResourceAccessPage.tsx
index 2b071313c96..8d8db59cf74 100644
--- a/src/features/ResourcePermission/ResourceAccessPage.tsx
+++ b/src/features/ResourcePermission/ResourceAccessPage.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Breadcrumb, Text, toast } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Breadcrumb, createStaticStyles, Flexbox, Icon, Text, toast } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { ChevronRight, InfoIcon, UsersIcon } from 'lucide-react';
import { memo, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx b/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx
index 5b0a48f7288..082fd678a2e 100644
--- a/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx
+++ b/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx
@@ -13,7 +13,7 @@ const mocks = vi.hoisted(() => ({
toastInfo: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { info: mocks.toastInfo },
}));
diff --git a/src/features/ResourcePermission/ResourceConfigAccessGate.tsx b/src/features/ResourcePermission/ResourceConfigAccessGate.tsx
index d6072f2165d..76195bd31ae 100644
--- a/src/features/ResourcePermission/ResourceConfigAccessGate.tsx
+++ b/src/features/ResourcePermission/ResourceConfigAccessGate.tsx
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { memo, type ReactNode, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourcePermission/useResourceCollaborators.test.ts b/src/features/ResourcePermission/useResourceCollaborators.test.ts
index f62b1ab9caa..fe32da8eb73 100644
--- a/src/features/ResourcePermission/useResourceCollaborators.test.ts
+++ b/src/features/ResourcePermission/useResourceCollaborators.test.ts
@@ -15,7 +15,7 @@ const swrState = vi.hoisted(() => ({
mutate: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
@@ -104,7 +104,7 @@ describe('useResourceCollaborators', () => {
});
it('rolls a failed removal back and surfaces it as a toast instead of throwing', async () => {
- const { toast } = await import('@lobehub/ui/base-ui');
+ const { toast } = await import('@lobehub/ui');
swrState.data = [{ userId: 'member-1' }];
serviceMocks.removeCollaborator.mockRejectedValue(new Error('FORBIDDEN'));
const { result } = renderHook(() => useResourceCollaborators('knowledgeBase', 'kb-1'));
diff --git a/src/features/ResourcePermission/useResourceCollaborators.ts b/src/features/ResourcePermission/useResourceCollaborators.ts
index 18404f4d6bc..d1009831a08 100644
--- a/src/features/ResourcePermission/useResourceCollaborators.ts
+++ b/src/features/ResourcePermission/useResourceCollaborators.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourcePermission/useResourcePermission.ts b/src/features/ResourcePermission/useResourcePermission.ts
index 2081df9c0df..5fc74ec8b80 100644
--- a/src/features/ResourcePermission/useResourcePermission.ts
+++ b/src/features/ResourcePermission/useResourcePermission.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ResourceTransferRequest/TransferManifestList.tsx b/src/features/ResourceTransferRequest/TransferManifestList.tsx
index 45c364b8a70..9e0712d286d 100644
--- a/src/features/ResourceTransferRequest/TransferManifestList.tsx
+++ b/src/features/ResourceTransferRequest/TransferManifestList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, SkeletonText, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Button, cssVar, Flexbox, Icon, SkeletonText, Text } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import { PowerOff, RotateCcw, TriangleAlert, Unlink } from 'lucide-react';
import type { CSSProperties } from 'react';
diff --git a/src/features/ResourceTransferRequest/TransferRequestItem.tsx b/src/features/ResourceTransferRequest/TransferRequestItem.tsx
index 20427d43d5d..f5c9c31cac5 100644
--- a/src/features/ResourceTransferRequest/TransferRequestItem.tsx
+++ b/src/features/ResourceTransferRequest/TransferRequestItem.tsx
@@ -1,8 +1,7 @@
'use client';
import { AGENT_CHAT_URL, GROUP_CHAT_URL } from '@lobechat/const';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Tag, Text, toast } from '@lobehub/ui/base-ui';
+import { Avatar, Block, Button, Flexbox, Tag, Text, toast } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/RightPanel/ToggleRightPanelButton.tsx b/src/features/RightPanel/ToggleRightPanelButton.tsx
index dbff76408d6..d6fe36e84ad 100644
--- a/src/features/RightPanel/ToggleRightPanelButton.tsx
+++ b/src/features/RightPanel/ToggleRightPanelButton.tsx
@@ -1,7 +1,7 @@
'use client';
import { HotkeyEnum } from '@lobechat/const/hotkeys';
-import { ActionIcon, type ActionIconProps } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps } from '@lobehub/ui';
import { PanelRightClose, PanelRightOpen } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/RightPanel/index.tsx b/src/features/RightPanel/index.tsx
index ce133793332..e2f521a7381 100644
--- a/src/features/RightPanel/index.tsx
+++ b/src/features/RightPanel/index.tsx
@@ -1,5 +1,5 @@
-import { DraggablePanel, type DraggablePanelProps } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { DraggablePanel, type DraggablePanelProps } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui';
import { memo, Suspense, useState } from 'react';
import SurfaceSkeleton from '@/components/Skeleton/Surface';
diff --git a/src/features/SelfLearning/CreateDomainPage.tsx b/src/features/SelfLearning/CreateDomainPage.tsx
index 9cfcfe773f1..70a55901325 100644
--- a/src/features/SelfLearning/CreateDomainPage.tsx
+++ b/src/features/SelfLearning/CreateDomainPage.tsx
@@ -1,18 +1,20 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Button,
+ createStaticStyles,
+ cssVar,
Divider,
+ Flexbox,
+ Icon,
Input,
Popover,
Spin,
Text,
TextArea,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import {
AnchorIcon,
ArrowLeftIcon,
diff --git a/src/features/SelfLearning/ExperienceList/index.tsx b/src/features/SelfLearning/ExperienceList/index.tsx
index c926b0d15a2..53a44828389 100644
--- a/src/features/SelfLearning/ExperienceList/index.tsx
+++ b/src/features/SelfLearning/ExperienceList/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Empty, Flexbox, Text } from '@lobehub/ui';
import { DnaIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/LessonDetail/index.tsx b/src/features/SelfLearning/LessonDetail/index.tsx
index 21aa924130f..ad6b3b44294 100644
--- a/src/features/SelfLearning/LessonDetail/index.tsx
+++ b/src/features/SelfLearning/LessonDetail/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Empty, Flexbox, Icon } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Empty, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { MessagesSquare } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/AnchorCard.tsx b/src/features/SelfLearning/Portrait/AnchorCard.tsx
index 3355ca090b7..2edaf7328e8 100644
--- a/src/features/SelfLearning/Portrait/AnchorCard.tsx
+++ b/src/features/SelfLearning/Portrait/AnchorCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Accordion, Block, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { AnchorIcon, CircleCheckIcon, CircleXIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/DomainList.tsx b/src/features/SelfLearning/Portrait/DomainList.tsx
index ddaa0040b27..e01d1976b08 100644
--- a/src/features/SelfLearning/Portrait/DomainList.tsx
+++ b/src/features/SelfLearning/Portrait/DomainList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRightIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/GrowthCharts.tsx b/src/features/SelfLearning/Portrait/GrowthCharts.tsx
index 4fe3e52308f..56df805a530 100644
--- a/src/features/SelfLearning/Portrait/GrowthCharts.tsx
+++ b/src/features/SelfLearning/Portrait/GrowthCharts.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/HabitList.tsx b/src/features/SelfLearning/Portrait/HabitList.tsx
index 765c10e1dbe..af5451f4555 100644
--- a/src/features/SelfLearning/Portrait/HabitList.tsx
+++ b/src/features/SelfLearning/Portrait/HabitList.tsx
@@ -1,8 +1,20 @@
'use client';
-import { Block, Flexbox, Icon, SearchBar, Tooltip } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { ActionIcon, Button, DropdownMenu, Popover, Tag, Text, toast } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Popover,
+ SearchBar,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import {
ArchiveIcon,
diff --git a/src/features/SelfLearning/Portrait/LayerProfile.tsx b/src/features/SelfLearning/Portrait/LayerProfile.tsx
index efc2e6565a8..89601e9b4ff 100644
--- a/src/features/SelfLearning/Portrait/LayerProfile.tsx
+++ b/src/features/SelfLearning/Portrait/LayerProfile.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/LessonPreview.tsx b/src/features/SelfLearning/Portrait/LessonPreview.tsx
index 7b097f9db79..d6f71d17992 100644
--- a/src/features/SelfLearning/Portrait/LessonPreview.tsx
+++ b/src/features/SelfLearning/Portrait/LessonPreview.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { SkeletonText, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, SkeletonText, Tag, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router';
diff --git a/src/features/SelfLearning/Portrait/TaughtList.tsx b/src/features/SelfLearning/Portrait/TaughtList.tsx
index dd38032b96c..628af235cb3 100644
--- a/src/features/SelfLearning/Portrait/TaughtList.tsx
+++ b/src/features/SelfLearning/Portrait/TaughtList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Block, Button, Flexbox, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/TeachBox.tsx b/src/features/SelfLearning/Portrait/TeachBox.tsx
index 9c1a3fcc78e..e22cecc6be8 100644
--- a/src/features/SelfLearning/Portrait/TeachBox.tsx
+++ b/src/features/SelfLearning/Portrait/TeachBox.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, TextArea } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, TextArea } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/WarmupCard.tsx b/src/features/SelfLearning/Portrait/WarmupCard.tsx
index 680c573850a..6040df3f504 100644
--- a/src/features/SelfLearning/Portrait/WarmupCard.tsx
+++ b/src/features/SelfLearning/Portrait/WarmupCard.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, keyframes } from 'antd-style';
+import {
+ Block,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ keyframes,
+ Text,
+} from '@lobehub/ui';
import { DnaIcon, HistoryIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/Portrait/styles.ts b/src/features/SelfLearning/Portrait/styles.ts
index f3159a46e37..ee5a51aca22 100644
--- a/src/features/SelfLearning/Portrait/styles.ts
+++ b/src/features/SelfLearning/Portrait/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
/**
* 整页只有一种强调色,只标一件事:它做错的地方。
diff --git a/src/features/SelfLearning/Portrait/useHistoryWarmup.ts b/src/features/SelfLearning/Portrait/useHistoryWarmup.ts
index b6f2ca36a73..c5cfc6939d7 100644
--- a/src/features/SelfLearning/Portrait/useHistoryWarmup.ts
+++ b/src/features/SelfLearning/Portrait/useHistoryWarmup.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/SurfaceGate/LabOff.tsx b/src/features/SelfLearning/SurfaceGate/LabOff.tsx
index 1e88256bd00..02668227469 100644
--- a/src/features/SelfLearning/SurfaceGate/LabOff.tsx
+++ b/src/features/SelfLearning/SurfaceGate/LabOff.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Empty, Flexbox } from '@lobehub/ui';
import { FlaskConicalIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SelfLearning/index.tsx b/src/features/SelfLearning/index.tsx
index c564b19e8ba..b234f9711ea 100644
--- a/src/features/SelfLearning/index.tsx
+++ b/src/features/SelfLearning/index.tsx
@@ -1,9 +1,20 @@
'use client';
-import { Block, Center, Empty, Flexbox, Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { ActionIcon, Button, confirmModal, DropdownMenu, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import type { DropdownItem } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ Center,
+ confirmModal,
+ createStaticStyles,
+ DropdownMenu,
+ Empty,
+ Flexbox,
+ Icon,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { DnaIcon, HistoryIcon, MoreHorizontalIcon, PlusIcon, Trash2Icon } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ServiceModel/ModelAssignmentsForm.tsx b/src/features/ServiceModel/ModelAssignmentsForm.tsx
index 9b399569493..0ae2da784a4 100644
--- a/src/features/ServiceModel/ModelAssignmentsForm.tsx
+++ b/src/features/ServiceModel/ModelAssignmentsForm.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { InputNumber, Switch, TextArea } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, InputNumber, Switch, TextArea, Tooltip } from '@lobehub/ui';
+import { Form, type FormFieldProps, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Setting/Footer.tsx b/src/features/Setting/Footer.tsx
index 1803bb87c9a..3e83c1aa1f7 100644
--- a/src/features/Setting/Footer.tsx
+++ b/src/features/Setting/Footer.tsx
@@ -1,8 +1,7 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { MessageSquareHeart } from 'lucide-react';
import { type PropsWithChildren } from 'react';
import { memo } from 'react';
diff --git a/src/features/Setting/SettingContainer.tsx b/src/features/Setting/SettingContainer.tsx
index adb2b52106a..79285c620b8 100644
--- a/src/features/Setting/SettingContainer.tsx
+++ b/src/features/Setting/SettingContainer.tsx
@@ -1,8 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar, useTheme } from 'antd-style';
+import { cssVar, Flexbox, useTheme } from '@lobehub/ui';
import { type PropsWithChildren, type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Settings/Layout/Body/index.tsx b/src/features/Settings/Layout/Body/index.tsx
index 596f1264472..59133a40262 100644
--- a/src/features/Settings/Layout/Body/index.tsx
+++ b/src/features/Settings/Layout/Body/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Flexbox, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { Link } from 'react-router';
diff --git a/src/features/Settings/Layout/style.ts b/src/features/Settings/Layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/features/Settings/Layout/style.ts
+++ b/src/features/Settings/Layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/features/Settings/about/features/About.tsx b/src/features/Settings/about/features/About.tsx
index dd381b6c276..cc7739a4949 100644
--- a/src/features/Settings/about/features/About.tsx
+++ b/src/features/Settings/about/features/About.tsx
@@ -2,10 +2,8 @@
import { SiDiscord, SiGithub, SiRss, SiX, SiYoutube } from '@icons-pack/react-simple-icons';
import { BRANDING_EMAIL, BRANDING_NAME, SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { Form } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Divider, Flexbox } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/about/features/Analytics.tsx b/src/features/Settings/about/features/Analytics.tsx
index 72323cdf23f..149216b879a 100644
--- a/src/features/Settings/about/features/Analytics.tsx
+++ b/src/features/Settings/about/features/Analytics.tsx
@@ -1,8 +1,8 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Switch } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/about/features/ItemCard.tsx b/src/features/Settings/about/features/ItemCard.tsx
index 5f8268cb11f..f0a37f21a60 100644
--- a/src/features/Settings/about/features/ItemCard.tsx
+++ b/src/features/Settings/about/features/ItemCard.tsx
@@ -1,5 +1,4 @@
-import { Block, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Icon } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/about/features/ItemLink.tsx b/src/features/Settings/about/features/ItemLink.tsx
index a2248037c80..cd0776656cf 100644
--- a/src/features/Settings/about/features/ItemLink.tsx
+++ b/src/features/Settings/about/features/ItemLink.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { SquareArrowOutUpRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/about/features/Version.tsx b/src/features/Settings/about/features/Version.tsx
index a06a0b3757c..4b0c6fe4605 100644
--- a/src/features/Settings/about/features/Version.tsx
+++ b/src/features/Settings/about/features/Version.tsx
@@ -4,9 +4,7 @@ import {
type UpdaterState,
useWatchBroadcast,
} from '@lobechat/electron-client-ipc';
-import { Block, Flexbox, Tooltip } from '@lobehub/ui';
-import { Button, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, Button, createStaticStyles, Flexbox, Tag, Tooltip } from '@lobehub/ui';
import { memo, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/advanced/index.tsx b/src/features/Settings/advanced/index.tsx
index ba79c55fe4d..d0f347f4fe6 100644
--- a/src/features/Settings/advanced/index.tsx
+++ b/src/features/Settings/advanced/index.tsx
@@ -1,8 +1,8 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Select, Spin, Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Select, Spin, Switch } from '@lobehub/ui';
+import { Form, type FormFieldProps, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/apikey/features/ApiKey.test.tsx b/src/features/Settings/apikey/features/ApiKey.test.tsx
index 8b1fe03b4f1..2c136b2fa84 100644
--- a/src/features/Settings/apikey/features/ApiKey.test.tsx
+++ b/src/features/Settings/apikey/features/ApiKey.test.tsx
@@ -29,7 +29,7 @@ const hoisted = vi.hoisted(() => ({
toast: { error: vi.fn(), success: vi.fn(), warning: vi.fn() },
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...((await importOriginal()) as Record<string, unknown>),
// Menu items surface as plain buttons so row actions are reachable in jsdom.
DropdownMenu: ({
diff --git a/src/features/Settings/apikey/features/ApiKey.tsx b/src/features/Settings/apikey/features/ApiKey.tsx
index e3cb6f7f18c..92407aebdcc 100644
--- a/src/features/Settings/apikey/features/ApiKey.tsx
+++ b/src/features/Settings/apikey/features/ApiKey.tsx
@@ -1,18 +1,20 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Button,
+ Center,
confirmModal,
+ createStaticStyles,
DropdownMenu,
+ Empty,
+ Flexbox,
Tag,
Text,
toast,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { useMutation } from '@tanstack/react-query';
-import { createStaticStyles } from 'antd-style';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import { BookOpen, Eye, MoreHorizontal, Trash } from 'lucide-react';
diff --git a/src/features/Settings/apikey/features/ApiKeyDatePicker/index.tsx b/src/features/Settings/apikey/features/ApiKeyDatePicker/index.tsx
index 8c8fef98091..a912fc8e2a3 100644
--- a/src/features/Settings/apikey/features/ApiKeyDatePicker/index.tsx
+++ b/src/features/Settings/apikey/features/ApiKeyDatePicker/index.tsx
@@ -1,5 +1,8 @@
import { Flexbox } from '@lobehub/ui';
-import { DatePicker, type DatePickerProps } from '@lobehub/ui/base-ui';
+import {
+ DayjsDatePicker as DatePicker,
+ type DayjsDatePickerProps as DatePickerProps,
+} from '@lobehub/ui';
import { type Dayjs } from 'dayjs';
import dayjs from 'dayjs';
import { type FC } from 'react';
@@ -7,7 +10,7 @@ import { useTranslation } from 'react-i18next';
interface ApiKeyDatePickerProps extends Omit<
DatePickerProps,
- 'defaultValue' | 'footer' | 'onChange' | 'value'
+ 'defaultValue' | 'onChange' | 'renderExtraFooter' | 'value'
> {
defaultValue?: Dayjs | null;
onChange?: (date: Dayjs | null) => void;
@@ -29,23 +32,23 @@ const ApiKeyDatePicker: FC<ApiKeyDatePickerProps> = ({
}) => {
const { t } = useTranslation('auth');
- const handleOnChange = (date: Date | null) => {
+ const handleOnChange = (date: Dayjs | null) => {
// If a date is selected, set it to 23:59:59 of that day
- const submitData = date ? dayjs(date).hour(23).minute(59).second(59).millisecond(999) : null;
+ const submitData = date ? date.hour(23).minute(59).second(59).millisecond(999) : null;
onChange?.(submitData);
};
return (
<DatePicker
- defaultValue={defaultValue?.toDate() ?? null}
+ defaultValue={defaultValue ?? null}
format="YYYY-MM-DD"
key={value?.valueOf() || 'EMPTY'}
- value={value === null ? null : value?.toDate()}
+ value={value}
{...props}
- min={new Date()}
+ minDate={dayjs()}
placeholder={t('apikey.form.fields.expiresAt.placeholder')}
- footer={
+ renderExtraFooter={() =>
showNeverExpiresFooter && (
<Flexbox horizontal justify={'center'}>
<a
diff --git a/src/features/Settings/apikey/features/ApiKeyDetail.tsx b/src/features/Settings/apikey/features/ApiKeyDetail.tsx
index 84bd6bfa18b..91b7c4e306f 100644
--- a/src/features/Settings/apikey/features/ApiKeyDetail.tsx
+++ b/src/features/Settings/apikey/features/ApiKeyDetail.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, Drawer, Switch, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Button,
+ confirmModal,
+ createStaticStyles,
+ Drawer,
+ Flexbox,
+ Switch,
+ Text,
+} from '@lobehub/ui';
import { Pencil, Trash } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/apikey/features/ApiKeyDisplay/index.tsx b/src/features/Settings/apikey/features/ApiKeyDisplay/index.tsx
index 3a8921bb85e..2bec26eb0aa 100644
--- a/src/features/Settings/apikey/features/ApiKeyDisplay/index.tsx
+++ b/src/features/Settings/apikey/features/ApiKeyDisplay/index.tsx
@@ -1,6 +1,4 @@
-import { CopyButton, Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, CopyButton, createStaticStyles, Flexbox } from '@lobehub/ui';
import { Eye, EyeOff } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/apikey/features/ApiKeyModal/Content.tsx b/src/features/Settings/apikey/features/ApiKeyModal/Content.tsx
index 5ce1e73145a..80aa126f928 100644
--- a/src/features/Settings/apikey/features/ApiKeyModal/Content.tsx
+++ b/src/features/Settings/apikey/features/ApiKeyModal/Content.tsx
@@ -1,9 +1,17 @@
'use client';
-import { CopyButton, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, Select, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import {
+ Button,
+ CopyButton,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ Input,
+ Select,
+ Text,
+ useModalContext,
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { type Dayjs } from 'dayjs';
import dayjs from 'dayjs';
import { CheckCircle2 } from 'lucide-react';
diff --git a/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx b/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx
index f7fefbc6ebf..1726a6118f8 100644
--- a/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx
+++ b/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Checkbox, Switch, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Checkbox, createStaticStyles, Flexbox, Switch, Text } from '@lobehub/ui';
import { Check } from 'lucide-react';
import type { FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/apikey/features/ApiKeyModal/index.tsx b/src/features/Settings/apikey/features/ApiKeyModal/index.tsx
index fc94ef07526..70fa5ff3db7 100644
--- a/src/features/Settings/apikey/features/ApiKeyModal/index.tsx
+++ b/src/features/Settings/apikey/features/ApiKeyModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import ApiKeyModalContent, { type ApiKeyModalContentProps } from './Content';
diff --git a/src/features/Settings/apikey/features/EditableCell/index.tsx b/src/features/Settings/apikey/features/EditableCell/index.tsx
index 45810cafff4..77e2dfa1b97 100644
--- a/src/features/Settings/apikey/features/EditableCell/index.tsx
+++ b/src/features/Settings/apikey/features/EditableCell/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { ActionIcon, Input, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, createStaticStyles, cx, Input, toast } from '@lobehub/ui';
import { type Dayjs } from 'dayjs';
import dayjs from 'dayjs';
import { Check, Edit, X } from 'lucide-react';
diff --git a/src/features/Settings/appearance/features/Desktop.tsx b/src/features/Settings/appearance/features/Desktop.tsx
index 2a85cc34a11..336f24a009c 100644
--- a/src/features/Settings/appearance/features/Desktop.tsx
+++ b/src/features/Settings/appearance/features/Desktop.tsx
@@ -1,8 +1,8 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Switch } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/appearance/features/Font/FallbackFontList.tsx b/src/features/Settings/appearance/features/Font/FallbackFontList.tsx
index 6fd927f223f..f5c6b031073 100644
--- a/src/features/Settings/appearance/features/Font/FallbackFontList.tsx
+++ b/src/features/Settings/appearance/features/Font/FallbackFontList.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, SortableList } from '@lobehub/ui';
-import { ActionIcon, Button, Select, type SelectOption, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, SortableList } from '@lobehub/ui';
+import { ActionIcon, Button, Select, type SelectOption, Text } from '@lobehub/ui';
import { PlusIcon, XIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/appearance/features/Font/index.tsx b/src/features/Settings/appearance/features/Font/index.tsx
index fc2bb0b021a..a4adac7ee6f 100644
--- a/src/features/Settings/appearance/features/Font/index.tsx
+++ b/src/features/Settings/appearance/features/Font/index.tsx
@@ -1,9 +1,8 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Select, Skeleton, Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Select, Skeleton, Switch } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/appearance/features/Font/useFontFallbackStack.ts b/src/features/Settings/appearance/features/Font/useFontFallbackStack.ts
index 1cb7de5d096..bc1a875ae70 100644
--- a/src/features/Settings/appearance/features/Font/useFontFallbackStack.ts
+++ b/src/features/Settings/appearance/features/Font/useFontFallbackStack.ts
@@ -1,4 +1,4 @@
-import type { SelectOption } from '@lobehub/ui/base-ui';
+import type { SelectOption } from '@lobehub/ui';
import { useMemo } from 'react';
import { APPLICATION_DEFAULT_FONT } from '../useSystemFontOptions';
diff --git a/src/features/Settings/chat-appearance/features/ChatAppearance/LinkIconPreview.tsx b/src/features/Settings/chat-appearance/features/ChatAppearance/LinkIconPreview.tsx
index 60990888446..b15cfca55b9 100644
--- a/src/features/Settings/chat-appearance/features/ChatAppearance/LinkIconPreview.tsx
+++ b/src/features/Settings/chat-appearance/features/ChatAppearance/LinkIconPreview.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { Trans } from 'react-i18next';
diff --git a/src/features/Settings/chat-appearance/features/ChatAppearance/index.tsx b/src/features/Settings/chat-appearance/features/ChatAppearance/index.tsx
index 5a252c4a564..90a956d5b36 100644
--- a/src/features/Settings/chat-appearance/features/ChatAppearance/index.tsx
+++ b/src/features/Settings/chat-appearance/features/ChatAppearance/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, highlighterThemes, mermaidThemes } from '@lobehub/ui';
-import { Select, Switch, Tabs } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, highlighterThemes, mermaidThemes, Select, Switch, Tabs } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/common/features/Appearance/Preview.tsx b/src/features/Settings/common/features/Appearance/Preview.tsx
index 9141779732d..6a31a12d305 100644
--- a/src/features/Settings/common/features/Appearance/Preview.tsx
+++ b/src/features/Settings/common/features/Appearance/Preview.tsx
@@ -1,5 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Block, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => {
diff --git a/src/features/Settings/common/features/Appearance/ThemeSwatches/ThemeSwatchesPrimary.tsx b/src/features/Settings/common/features/Appearance/ThemeSwatches/ThemeSwatchesPrimary.tsx
index 223c690d2bb..2f9950985fb 100644
--- a/src/features/Settings/common/features/Appearance/ThemeSwatches/ThemeSwatchesPrimary.tsx
+++ b/src/features/Settings/common/features/Appearance/ThemeSwatches/ThemeSwatchesPrimary.tsx
@@ -1,24 +1,37 @@
-import { type PrimaryColors } from '@lobehub/ui';
-import { ColorSwatches, findCustomThemeName, primaryColors } from '@lobehub/ui';
+import { type LobePrimaryColor, type PrimaryColors } from '@lobehub/ui';
+import {
+ ColorSwatches,
+ findCustomThemeName,
+ isCustomPrimaryColor,
+ primaryColors,
+} from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
interface IProps {
- onChange?: (v: PrimaryColors) => void;
- value?: PrimaryColors;
+ onChange?: (v: LobePrimaryColor | '') => void;
+ value?: LobePrimaryColor;
}
+const toSwatchColor = (value?: LobePrimaryColor) => {
+ if (!value) return undefined;
+ return isCustomPrimaryColor(value) ? value : primaryColors[value];
+};
+
const ThemeSwatchesPrimary = memo<IProps>(({ onChange, value }) => {
const { t } = useTranslation('color');
- const handleSelect = (v: any) => {
- const name = findCustomThemeName('primary', v) as PrimaryColors;
- onChange?.(name || '');
+ const handleSelect = (color?: string) => {
+ const name = color && (findCustomThemeName('primary', color) as PrimaryColors | undefined);
+ if (name) return onChange?.(name);
+ onChange?.(isCustomPrimaryColor(color) ? color : '');
};
return (
<ColorSwatches
- value={value ? primaryColors[value] : undefined}
+ enableColorPicker
+ texts={{ custom: t('custom') }}
+ value={toSwatchColor(value)}
colors={[
{
color: 'rgba(0, 0, 0, 0)',
diff --git a/src/features/Settings/common/features/Appearance/index.tsx b/src/features/Settings/common/features/Appearance/index.tsx
index cae0ca0ed09..62d220b3ecf 100644
--- a/src/features/Settings/common/features/Appearance/index.tsx
+++ b/src/features/Settings/common/features/Appearance/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/common/features/Common/Common.tsx b/src/features/Settings/common/features/Common/Common.tsx
index f4fb02e63e9..49a29bcd5d3 100644
--- a/src/features/Settings/common/features/Common/Common.tsx
+++ b/src/features/Settings/common/features/Common/Common.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon, ImageSelect } from '@lobehub/ui';
-import { Select, Tabs } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Icon, ImageSelect, Select, Tabs } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { Ban, Gauge, Monitor, Moon, Mouse, Sun, Waves } from 'lucide-react';
import { useTheme as useNextThemesTheme } from 'next-themes';
diff --git a/src/features/Settings/creds/features/CreateCredModal/Content.tsx b/src/features/Settings/creds/features/CreateCredModal/Content.tsx
index 2726d350f54..889cb05f7f3 100644
--- a/src/features/Settings/creds/features/CreateCredModal/Content.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/Content.tsx
@@ -1,8 +1,7 @@
'use client';
import { type CredType } from '@lobechat/types';
-import { Steps, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Steps, useModalContext } from '@lobehub/ui';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/CreateCredModal/CredTypeSelector.tsx b/src/features/Settings/creds/features/CreateCredModal/CredTypeSelector.tsx
index 7d3f255eec9..7fc6f1fd54e 100644
--- a/src/features/Settings/creds/features/CreateCredModal/CredTypeSelector.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/CredTypeSelector.tsx
@@ -1,8 +1,7 @@
'use client';
import { type CredType } from '@lobechat/types';
-import { Block, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox } from '@lobehub/ui';
import { File, Globe, Key, TerminalSquare } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx b/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx
index 16bf5d5a5cf..21e7a358d3b 100644
--- a/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/FileCredForm.tsx
@@ -1,9 +1,8 @@
'use client';
-import { Button, Input, TextArea, toast, Upload } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, createStaticStyles, Input, TextArea, toast, Upload } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { useMutation } from '@tanstack/react-query';
-import { createStaticStyles } from 'antd-style';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx b/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx
index 8bc1d9cd288..132d33744c5 100644
--- a/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/KVCredForm.tsx
@@ -1,10 +1,8 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, InputPassword, TextArea } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, createStaticStyles, Flexbox, Input, InputPassword, TextArea } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { useMutation } from '@tanstack/react-query';
-import { createStaticStyles } from 'antd-style';
import { Minus, Plus } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx b/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx
index bd6bb10251d..316cefc598c 100644
--- a/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/OAuthCredForm.tsx
@@ -1,10 +1,18 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Avatar, Button, Input, Select, Spin, TextArea } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import {
+ Avatar,
+ Button,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Input,
+ Select,
+ Spin,
+ TextArea,
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { useMutation } from '@tanstack/react-query';
-import { createStaticStyles } from 'antd-style';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/CreateCredModal/index.tsx b/src/features/Settings/creds/features/CreateCredModal/index.tsx
index 11a13519eaf..fb9c5211661 100644
--- a/src/features/Settings/creds/features/CreateCredModal/index.tsx
+++ b/src/features/Settings/creds/features/CreateCredModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import CreateCredModalContent, { type CreateCredModalContentProps } from './Content';
diff --git a/src/features/Settings/creds/features/CredItem.tsx b/src/features/Settings/creds/features/CredItem.tsx
index f79a906f486..674f538232e 100644
--- a/src/features/Settings/creds/features/CredItem.tsx
+++ b/src/features/Settings/creds/features/CredItem.tsx
@@ -1,8 +1,16 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Avatar, Button, confirmModal, Tag } from '@lobehub/ui/base-ui';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Tag,
+} from '@lobehub/ui';
import {
Eye,
File,
diff --git a/src/features/Settings/creds/features/CredsList.tsx b/src/features/Settings/creds/features/CredsList.tsx
index 2424f95b589..d5e5378395b 100644
--- a/src/features/Settings/creds/features/CredsList.tsx
+++ b/src/features/Settings/creds/features/CredsList.tsx
@@ -1,11 +1,9 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { useMutation } from '@tanstack/react-query';
import { TRPCClientError } from '@trpc/client';
-import { createStaticStyles } from 'antd-style';
import { LogIn } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/EditCredModal/Content.tsx b/src/features/Settings/creds/features/EditCredModal/Content.tsx
index 5dd5f235054..4ab5e45a616 100644
--- a/src/features/Settings/creds/features/EditCredModal/Content.tsx
+++ b/src/features/Settings/creds/features/EditCredModal/Content.tsx
@@ -1,7 +1,7 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { useModalContext } from '@lobehub/ui/base-ui';
+import { useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { type CredsApi } from '../useCredsApi';
diff --git a/src/features/Settings/creds/features/EditCredModal/EditKVForm.tsx b/src/features/Settings/creds/features/EditCredModal/EditKVForm.tsx
index 125ef643748..35795951531 100644
--- a/src/features/Settings/creds/features/EditCredModal/EditKVForm.tsx
+++ b/src/features/Settings/creds/features/EditCredModal/EditKVForm.tsx
@@ -1,11 +1,17 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, InputPassword, Spin, TextArea } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import {
+ Button,
+ createStaticStyles,
+ Flexbox,
+ Input,
+ InputPassword,
+ Spin,
+ TextArea,
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { useMutation } from '@tanstack/react-query';
-import { createStaticStyles } from 'antd-style';
import { Minus, Plus } from 'lucide-react';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/EditCredModal/EditMetaForm.tsx b/src/features/Settings/creds/features/EditCredModal/EditMetaForm.tsx
index 802bca81445..d94500ef8ff 100644
--- a/src/features/Settings/creds/features/EditCredModal/EditMetaForm.tsx
+++ b/src/features/Settings/creds/features/EditCredModal/EditMetaForm.tsx
@@ -1,10 +1,9 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { Button, Input, TextArea } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, createStaticStyles, Input, TextArea } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { useMutation } from '@tanstack/react-query';
-import { createStaticStyles } from 'antd-style';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/EditCredModal/index.tsx b/src/features/Settings/creds/features/EditCredModal/index.tsx
index c795e8c2d55..c6064f6798e 100644
--- a/src/features/Settings/creds/features/EditCredModal/index.tsx
+++ b/src/features/Settings/creds/features/EditCredModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import EditCredModalContent, { type EditCredModalContentProps } from './Content';
diff --git a/src/features/Settings/creds/features/ViewCredModal/Content.tsx b/src/features/Settings/creds/features/ViewCredModal/Content.tsx
index ca86daac559..381a8d1d500 100644
--- a/src/features/Settings/creds/features/ViewCredModal/Content.tsx
+++ b/src/features/Settings/creds/features/ViewCredModal/Content.tsx
@@ -1,10 +1,16 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { CopyButton, Flexbox } from '@lobehub/ui';
-import { Alert, Descriptions, Text } from '@lobehub/ui/base-ui';
+import {
+ Alert,
+ CopyButton,
+ createStaticStyles,
+ cx,
+ Descriptions,
+ Flexbox,
+ Text,
+} from '@lobehub/ui';
import { useQuery } from '@tanstack/react-query';
-import { createStaticStyles, cx } from 'antd-style';
import { Eye, EyeOff } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/creds/features/ViewCredModal/index.tsx b/src/features/Settings/creds/features/ViewCredModal/index.tsx
index 372282394f5..202ac11f396 100644
--- a/src/features/Settings/creds/features/ViewCredModal/index.tsx
+++ b/src/features/Settings/creds/features/ViewCredModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import ViewCredModalContent, { type ViewCredModalContentProps } from './Content';
diff --git a/src/features/Settings/creds/features/style.ts b/src/features/Settings/creds/features/style.ts
index 8a141e6b312..decf8ee167c 100644
--- a/src/features/Settings/creds/features/style.ts
+++ b/src/features/Settings/creds/features/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
container: css`
diff --git a/src/features/Settings/creds/index.tsx b/src/features/Settings/creds/index.tsx
index 6a0c6c8074b..619a6b3f1c1 100644
--- a/src/features/Settings/creds/index.tsx
+++ b/src/features/Settings/creds/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/devices/KeepAwake.tsx b/src/features/Settings/devices/KeepAwake.tsx
index 3ffe1cd9d44..f130f5fbd0f 100644
--- a/src/features/Settings/devices/KeepAwake.tsx
+++ b/src/features/Settings/devices/KeepAwake.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Switch } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/devices/index.tsx b/src/features/Settings/devices/index.tsx
index 9585540b4e5..da1ebb198c1 100644
--- a/src/features/Settings/devices/index.tsx
+++ b/src/features/Settings/devices/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate, useParams } from 'react-router';
diff --git a/src/features/Settings/features/SettingHeader.tsx b/src/features/Settings/features/SettingHeader.tsx
index c2cb40e666b..efa833d3815 100644
--- a/src/features/Settings/features/SettingHeader.tsx
+++ b/src/features/Settings/features/SettingHeader.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Divider, Text } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox, Text } from '@lobehub/ui';
import { type FC, type ReactNode } from 'react';
interface SettingHeaderProps {
diff --git a/src/features/Settings/features/SettingsContent.tsx b/src/features/Settings/features/SettingsContent.tsx
index 6697ac2ef54..94123006364 100644
--- a/src/features/Settings/features/SettingsContent.tsx
+++ b/src/features/Settings/features/SettingsContent.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { Fragment, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/hooks/useCategory.tsx b/src/features/Settings/hooks/useCategory.tsx
index f72875a46e1..0eab92575d4 100644
--- a/src/features/Settings/hooks/useCategory.tsx
+++ b/src/features/Settings/hooks/useCategory.tsx
@@ -1,6 +1,6 @@
import { ENABLE_TOOL_CHANNEL_SETTINGS } from '@lobechat/business-const';
import { isDesktop } from '@lobechat/const';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
import {
AppWindowIcon,
diff --git a/src/features/Settings/hotkey/features/Conversation.tsx b/src/features/Settings/hotkey/features/Conversation.tsx
index 733b32abc11..d2b9b638b2a 100644
--- a/src/features/Settings/hotkey/features/Conversation.tsx
+++ b/src/features/Settings/hotkey/features/Conversation.tsx
@@ -2,7 +2,7 @@
import { HotkeyGroupEnum } from '@lobechat/const/hotkeys';
import { HotkeyInput } from '@lobehub/ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/hotkey/features/Desktop.tsx b/src/features/Settings/hotkey/features/Desktop.tsx
index e49263be3f7..bd034b7010e 100644
--- a/src/features/Settings/hotkey/features/Desktop.tsx
+++ b/src/features/Settings/hotkey/features/Desktop.tsx
@@ -1,8 +1,7 @@
'use client';
-import { HotkeyInput } from '@lobehub/ui';
-import { Spin, toast } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { HotkeyInput, Spin, toast } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/hotkey/features/Essential.tsx b/src/features/Settings/hotkey/features/Essential.tsx
index c0b77251216..2d44edd8644 100644
--- a/src/features/Settings/hotkey/features/Essential.tsx
+++ b/src/features/Settings/hotkey/features/Essential.tsx
@@ -2,7 +2,7 @@
import { HotkeyGroupEnum } from '@lobechat/const/hotkeys';
import { HotkeyInput } from '@lobehub/ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/image/features/Image.tsx b/src/features/Settings/image/features/Image.tsx
index 0b5264bf7a1..a0434c8aa65 100644
--- a/src/features/Settings/image/features/Image.tsx
+++ b/src/features/Settings/image/features/Image.tsx
@@ -1,9 +1,8 @@
'use client';
import { type UserImageConfig } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Icon, Spin, Tooltip } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { CircleHelpIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/integrations/index.tsx b/src/features/Settings/integrations/index.tsx
index 1fe9d1dcb39..9f154ba6e48 100644
--- a/src/features/Settings/integrations/index.tsx
+++ b/src/features/Settings/integrations/index.tsx
@@ -1,6 +1,4 @@
-import { Center } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Spin } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/features/Settings/labs/index.tsx b/src/features/Settings/labs/index.tsx
index ec47dba5390..22e52bf2b6e 100644
--- a/src/features/Settings/labs/index.tsx
+++ b/src/features/Settings/labs/index.tsx
@@ -1,9 +1,8 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Alert, Switch, Tag } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Alert, Flexbox, Switch, Tag, Tooltip } from '@lobehub/ui';
+import { Form, type FormFieldProps, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { FlaskConicalIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/memory/features/ManageMemoryButton.tsx b/src/features/Settings/memory/features/ManageMemoryButton.tsx
index 1dfb2473c6a..cb7ab7a46fb 100644
--- a/src/features/Settings/memory/features/ManageMemoryButton.tsx
+++ b/src/features/Settings/memory/features/ManageMemoryButton.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Icon } from '@lobehub/ui';
import { BrainCircuit } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/memory/features/Memory.tsx b/src/features/Settings/memory/features/Memory.tsx
index 539808dcb2f..c0d07a1338c 100644
--- a/src/features/Settings/memory/features/Memory.tsx
+++ b/src/features/Settings/memory/features/Memory.tsx
@@ -1,9 +1,8 @@
'use client';
import { type UserMemoryEffort, type UserMemorySettings } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Icon, Switch, Tooltip } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { CircleHelpIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/notification/index.tsx b/src/features/Settings/notification/index.tsx
index 394fc2246f2..b058589eaab 100644
--- a/src/features/Settings/notification/index.tsx
+++ b/src/features/Settings/notification/index.tsx
@@ -2,9 +2,8 @@ import {
COMPLETION_BUILTIN_SOUNDS,
type CompletionSoundSettings,
} from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button, Segmented, Select, Slider, Switch } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Alert, Button, Flexbox, Segmented, Select, Slider, Switch } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { Play } from 'lucide-react';
import { useCallback, useEffect, useId, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx
index 39fa22a888d..6f203bcf24b 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/BasicInfoCard.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, TextArea } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
+import { Button, Flexbox, Input, TextArea } from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/CredentialsCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/CredentialsCard.tsx
index a5f5c8a606a..694450499d2 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/CredentialsCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/CredentialsCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Tag, Text } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/IntegrationCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/IntegrationCard.tsx
index 7acb3e6fcd9..2f4522f9477 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/IntegrationCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/IntegrationCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Text, toast } from '@lobehub/ui';
import { CopyIcon } from 'lucide-react';
import { type FC, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/ManualSetupCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/ManualSetupCard.tsx
index 5297aa60865..5cc648de395 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/ManualSetupCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/ManualSetupCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { CopyButton, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { CopyButton, createStaticStyles, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronDownIcon } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/RedirectUrisCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/RedirectUrisCard.tsx
index 34349df99d2..2d7a8c192c7 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/RedirectUrisCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/RedirectUrisCard.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Text } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, Flexbox, Input, Text } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { PencilIcon, PlusIcon, Trash2Icon } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/SectionCard.tsx b/src/features/Settings/oauth-apps/features/AppDetail/SectionCard.tsx
index 7b7c6ff9f44..bb5e254667e 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/SectionCard.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/SectionCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { type FC, type PropsWithChildren, type ReactNode } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/Settings/oauth-apps/features/AppDetail/index.tsx b/src/features/Settings/oauth-apps/features/AppDetail/index.tsx
index a7f6a04ba44..9b4918d2fe8 100644
--- a/src/features/Settings/oauth-apps/features/AppDetail/index.tsx
+++ b/src/features/Settings/oauth-apps/features/AppDetail/index.tsx
@@ -1,18 +1,18 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Alert,
Button,
confirmModal,
+ createStaticStyles,
+ Flexbox,
Skeleton,
Tabs,
Tag,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { ArrowLeftIcon, PowerIcon, PowerOffIcon, Trash2Icon } from 'lucide-react';
import { type FC, useEffect } from 'react';
diff --git a/src/features/Settings/oauth-apps/features/AppItem/index.tsx b/src/features/Settings/oauth-apps/features/AppItem/index.tsx
index 6100d1cdcc2..b51f4e2e75e 100644
--- a/src/features/Settings/oauth-apps/features/AppItem/index.tsx
+++ b/src/features/Settings/oauth-apps/features/AppItem/index.tsx
@@ -1,8 +1,15 @@
'use client';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ createStaticStyles,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { MoreVerticalIcon, PowerIcon, PowerOffIcon, Trash2Icon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/oauth-apps/features/AppListSkeleton.tsx b/src/features/Settings/oauth-apps/features/AppListSkeleton.tsx
index 0eedd8d48dc..a1fd1290c7e 100644
--- a/src/features/Settings/oauth-apps/features/AppListSkeleton.tsx
+++ b/src/features/Settings/oauth-apps/features/AppListSkeleton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { SkeletonBar } from '@/components/Skeleton';
diff --git a/src/features/Settings/oauth-apps/features/AppLogo/index.tsx b/src/features/Settings/oauth-apps/features/AppLogo/index.tsx
index 8d6399964f2..cbcbab292e1 100644
--- a/src/features/Settings/oauth-apps/features/AppLogo/index.tsx
+++ b/src/features/Settings/oauth-apps/features/AppLogo/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Avatar, createStaticStyles, cx, Icon } from '@lobehub/ui';
import { AppWindowIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/oauth-apps/features/ClientIdDisplay/index.tsx b/src/features/Settings/oauth-apps/features/ClientIdDisplay/index.tsx
index ea1a0a65040..99849df4653 100644
--- a/src/features/Settings/oauth-apps/features/ClientIdDisplay/index.tsx
+++ b/src/features/Settings/oauth-apps/features/ClientIdDisplay/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, toast } from '@lobehub/ui';
import { Copy } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/CreateAppButton.tsx b/src/features/Settings/oauth-apps/features/CreateAppButton.tsx
index 51e57f2586f..881a2a8e9c5 100644
--- a/src/features/Settings/oauth-apps/features/CreateAppButton.tsx
+++ b/src/features/Settings/oauth-apps/features/CreateAppButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
diff --git a/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx b/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx
index 27c9980322f..40fa22f6020 100644
--- a/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx
+++ b/src/features/Settings/oauth-apps/features/CreateAppModal/Content.tsx
@@ -1,10 +1,18 @@
'use client';
import { type OAuthAppType } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, Text, TextArea, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cx } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ Text,
+ TextArea,
+ useModalContext,
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { CheckIcon, GlobeIcon, type LucideIcon, TerminalIcon } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/CreateAppModal/index.tsx b/src/features/Settings/oauth-apps/features/CreateAppModal/index.tsx
index 8a541659aa1..d615ba57275 100644
--- a/src/features/Settings/oauth-apps/features/CreateAppModal/index.tsx
+++ b/src/features/Settings/oauth-apps/features/CreateAppModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import CreateAppModalContent, { type CreateAppModalContentProps } from './Content';
diff --git a/src/features/Settings/oauth-apps/features/OAuthApps.tsx b/src/features/Settings/oauth-apps/features/OAuthApps.tsx
index 3beeda427a5..ba18dafc47c 100644
--- a/src/features/Settings/oauth-apps/features/OAuthApps.tsx
+++ b/src/features/Settings/oauth-apps/features/OAuthApps.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { AppWindowIcon } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/SecretModal/index.tsx b/src/features/Settings/oauth-apps/features/SecretModal/index.tsx
index 4fad007d603..5bfd6fb87e2 100644
--- a/src/features/Settings/oauth-apps/features/SecretModal/index.tsx
+++ b/src/features/Settings/oauth-apps/features/SecretModal/index.tsx
@@ -1,8 +1,14 @@
'use client';
-import { CopyButton, Flexbox } from '@lobehub/ui';
-import { Button, createModal, type ModalInstance, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Button,
+ CopyButton,
+ createModal,
+ createStaticStyles,
+ Flexbox,
+ type ModalInstance,
+ useModalContext,
+} from '@lobehub/ui';
import { t } from 'i18next';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/oauth-apps/features/confirmDisable.tsx b/src/features/Settings/oauth-apps/features/confirmDisable.tsx
index 4eecacca69c..f2fd6759f6e 100644
--- a/src/features/Settings/oauth-apps/features/confirmDisable.tsx
+++ b/src/features/Settings/oauth-apps/features/confirmDisable.tsx
@@ -1,4 +1,4 @@
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { confirmModal } from '@lobehub/ui';
import { t } from 'i18next';
/**
diff --git a/src/features/Settings/oauth-apps/useLogoUpload.test.ts b/src/features/Settings/oauth-apps/useLogoUpload.test.ts
index fda765d1c8d..b409dd51010 100644
--- a/src/features/Settings/oauth-apps/useLogoUpload.test.ts
+++ b/src/features/Settings/oauth-apps/useLogoUpload.test.ts
@@ -8,7 +8,7 @@ const mocks = vi.hoisted(() => ({
uploadWithProgress: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', () => ({ toast: { error: mocks.toastError } }));
+vi.mock('@lobehub/ui', () => ({ toast: { error: mocks.toastError } }));
vi.mock('@/store/file', () => ({
useFileStore: (selector: (s: unknown) => unknown) =>
diff --git a/src/features/Settings/oauth-apps/useLogoUpload.ts b/src/features/Settings/oauth-apps/useLogoUpload.ts
index 29d8330629a..f691b1efcd3 100644
--- a/src/features/Settings/oauth-apps/useLogoUpload.ts
+++ b/src/features/Settings/oauth-apps/useLogoUpload.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/AvatarRow.tsx b/src/features/Settings/profile/features/AvatarRow.tsx
index e2d07425d2d..eeaa9349859 100644
--- a/src/features/Settings/profile/features/AvatarRow.tsx
+++ b/src/features/Settings/profile/features/AvatarRow.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Icon, Upload } from '@lobehub/ui';
import { Loader2Icon, PencilIcon } from 'lucide-react';
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/ComposioAuthorizationList/index.tsx b/src/features/Settings/profile/features/ComposioAuthorizationList/index.tsx
index 780d96ce577..905613f3bb5 100644
--- a/src/features/Settings/profile/features/ComposioAuthorizationList/index.tsx
+++ b/src/features/Settings/profile/features/ComposioAuthorizationList/index.tsx
@@ -1,6 +1,5 @@
import { COMPOSIO_APP_TYPES } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, confirmModal, Tag } from '@lobehub/ui/base-ui';
+import { Avatar, confirmModal, Flexbox, Tag } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/EmailRow.tsx b/src/features/Settings/profile/features/EmailRow.tsx
index b324e5f98e6..f181b635322 100644
--- a/src/features/Settings/profile/features/EmailRow.tsx
+++ b/src/features/Settings/profile/features/EmailRow.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, Text, toast } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Icon, Input, Text, toast } from '@lobehub/ui';
import { ExternalLinkIcon } from 'lucide-react';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/FullNameRow.tsx b/src/features/Settings/profile/features/FullNameRow.tsx
index 6aa979f6025..d5cf42aa64f 100644
--- a/src/features/Settings/profile/features/FullNameRow.tsx
+++ b/src/features/Settings/profile/features/FullNameRow.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Input, Spin } from '@lobehub/ui/base-ui';
+import { Flexbox, Input, Spin } from '@lobehub/ui';
import { useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/InterestsRow.tsx b/src/features/Settings/profile/features/InterestsRow.tsx
index 387b4df6ffa..e5265549e60 100644
--- a/src/features/Settings/profile/features/InterestsRow.tsx
+++ b/src/features/Settings/profile/features/InterestsRow.tsx
@@ -2,9 +2,7 @@
import type { InterestAreaKey } from '@lobechat/const';
import { normalizeInterestsForStorage, resolveInterestAreaKey } from '@lobechat/const';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Input, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Input, Text } from '@lobehub/ui';
import { BriefcaseIcon } from 'lucide-react';
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/PasswordRow.tsx b/src/features/Settings/profile/features/PasswordRow.tsx
index 2432611371f..7ba287c0548 100644
--- a/src/features/Settings/profile/features/PasswordRow.tsx
+++ b/src/features/Settings/profile/features/PasswordRow.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { CheckCircle2Icon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/features/ProfileRow.tsx b/src/features/Settings/profile/features/ProfileRow.tsx
index 5d75c063425..51f1e2d236b 100644
--- a/src/features/Settings/profile/features/ProfileRow.tsx
+++ b/src/features/Settings/profile/features/ProfileRow.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { SETTINGS_ANCHOR_ROW_ATTR, SettingsSearchAnchor } from '@/features/SettingsSearch/anchor';
diff --git a/src/features/Settings/profile/features/SSOProvidersList/index.tsx b/src/features/Settings/profile/features/SSOProvidersList/index.tsx
index 8be87e50704..803901bdc62 100644
--- a/src/features/Settings/profile/features/SSOProvidersList/index.tsx
+++ b/src/features/Settings/profile/features/SSOProvidersList/index.tsx
@@ -1,7 +1,6 @@
import { isDesktop } from '@lobechat/const';
-import { type MenuProps } from '@lobehub/ui';
-import { DropdownMenu, Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Text } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { ActionIcon, confirmModal, DropdownMenu, Flexbox, Text, Tooltip } from '@lobehub/ui';
import { ArrowRight, Plus, Unlink } from 'lucide-react';
import { type CSSProperties } from 'react';
import { memo, useMemo } from 'react';
@@ -86,7 +85,7 @@ export const SSOProvidersList = memo(() => {
};
// Dropdown menu items for linking new providers
- const linkMenuItems: MenuProps['items'] = availableProviders.map((provider) => ({
+ const linkMenuItems: DropdownItem[] = availableProviders.map((provider) => ({
icon: AuthIcons(provider, 16),
key: provider,
label: <span style={providerNameStyle}>{provider}</span>,
diff --git a/src/features/Settings/profile/features/UsernameRow.tsx b/src/features/Settings/profile/features/UsernameRow.tsx
index 168051b2a83..c4f87f671e8 100644
--- a/src/features/Settings/profile/features/UsernameRow.tsx
+++ b/src/features/Settings/profile/features/UsernameRow.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, Spin, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Input, Spin, Text } from '@lobehub/ui';
import { type ChangeEvent } from 'react';
import { useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/profile/index.tsx b/src/features/Settings/profile/index.tsx
index 8be8a2ad7de..16a2ec4e715 100644
--- a/src/features/Settings/profile/index.tsx
+++ b/src/features/Settings/profile/index.tsx
@@ -1,9 +1,8 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { Form } from '@lobehub/ui/base-ui/form';
+import { Divider, Flexbox } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/(list)/ProviderGrid/Card.tsx b/src/features/Settings/provider/(list)/ProviderGrid/Card.tsx
index 72cdf06c256..69421852b96 100644
--- a/src/features/Settings/provider/(list)/ProviderGrid/Card.tsx
+++ b/src/features/Settings/provider/(list)/ProviderGrid/Card.tsx
@@ -1,7 +1,5 @@
import { BRANDING_PROVIDER } from '@lobechat/business-const';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Divider, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar, cx } from 'antd-style';
+import { Avatar, cssVar, cx, Divider, Flexbox, Skeleton, Tag, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/(list)/ProviderGrid/index.tsx b/src/features/Settings/provider/(list)/ProviderGrid/index.tsx
index ba2df4861f3..44cbdf5d602 100644
--- a/src/features/Settings/provider/(list)/ProviderGrid/index.tsx
+++ b/src/features/Settings/provider/(list)/ProviderGrid/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Tag, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/(list)/ProviderGrid/style.ts b/src/features/Settings/provider/(list)/ProviderGrid/style.ts
index e4bdcd2e75e..486ed05b2cb 100644
--- a/src/features/Settings/provider/(list)/ProviderGrid/style.ts
+++ b/src/features/Settings/provider/(list)/ProviderGrid/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
bannerDark: css`
diff --git a/src/features/Settings/provider/ProviderMenu/Actions.tsx b/src/features/Settings/provider/ProviderMenu/Actions.tsx
index 008d0734b39..2973e6a0766 100644
--- a/src/features/Settings/provider/ProviderMenu/Actions.tsx
+++ b/src/features/Settings/provider/ProviderMenu/Actions.tsx
@@ -1,11 +1,10 @@
-import { type MenuProps } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
interface ActionsProps {
- dropdownMenu: MenuProps['items'];
+ dropdownMenu: DropdownItem[];
}
const Actions = memo<ActionsProps>(({ dropdownMenu }) => {
diff --git a/src/features/Settings/provider/ProviderMenu/AddNew.tsx b/src/features/Settings/provider/ProviderMenu/AddNew.tsx
index 954680360c4..389d661cc19 100644
--- a/src/features/Settings/provider/ProviderMenu/AddNew.tsx
+++ b/src/features/Settings/provider/ProviderMenu/AddNew.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Tooltip } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, Tooltip } from '@lobehub/ui';
import { PlusIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/ProviderMenu/Item.tsx b/src/features/Settings/provider/ProviderMenu/Item.tsx
index b1141d7916b..0b06f045c30 100644
--- a/src/features/Settings/provider/ProviderMenu/Item.tsx
+++ b/src/features/Settings/provider/ProviderMenu/Item.tsx
@@ -1,6 +1,5 @@
import { BRANDING_PROVIDER } from '@lobechat/business-const';
-import { Center } from '@lobehub/ui';
-import { Avatar, Badge } from '@lobehub/ui/base-ui';
+import { Avatar, Badge, Center } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/features/Settings/provider/ProviderMenu/List.tsx b/src/features/Settings/provider/ProviderMenu/List.tsx
index b94295eb234..a453306a911 100644
--- a/src/features/Settings/provider/ProviderMenu/List.tsx
+++ b/src/features/Settings/provider/ProviderMenu/List.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ContextMenuTrigger, Flexbox, type MenuProps } from '@lobehub/ui';
+import { ContextMenuTrigger, type DropdownItem, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -9,9 +9,9 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ cx,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ArrowDownUpIcon } from 'lucide-react';
import { type ReactNode, useCallback, useMemo, useState } from 'react';
@@ -31,7 +31,7 @@ import { SortType, useProviderDropdownMenu } from './useDropdownMenu';
interface ProviderSectionProps {
action?: ReactNode;
children: ReactNode;
- contextMenuItems: MenuProps['items'];
+ contextMenuItems: DropdownItem[];
title: string;
value: string;
}
diff --git a/src/features/Settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx b/src/features/Settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx
index af02d45dd0c..015853625e0 100644
--- a/src/features/Settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx
+++ b/src/features/Settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, SortableList } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox, SortableList } from '@lobehub/ui';
import { memo } from 'react';
import { ProviderIcon } from '@/components/LobeIcons';
diff --git a/src/features/Settings/provider/ProviderMenu/SortProviderModal/index.tsx b/src/features/Settings/provider/ProviderMenu/SortProviderModal/index.tsx
index 09859174f68..a478db8633e 100644
--- a/src/features/Settings/provider/ProviderMenu/SortProviderModal/index.tsx
+++ b/src/features/Settings/provider/ProviderMenu/SortProviderModal/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, SortableList } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, SortableList, toast } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/ProviderMenu/index.tsx b/src/features/Settings/provider/ProviderMenu/index.tsx
index 93c50f4a2d6..5364a1c24cc 100644
--- a/src/features/Settings/provider/ProviderMenu/index.tsx
+++ b/src/features/Settings/provider/ProviderMenu/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon, SearchBar } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, SearchBar } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Settings/provider/ProviderMenu/useDropdownMenu.tsx b/src/features/Settings/provider/ProviderMenu/useDropdownMenu.tsx
index e0185a4e368..42e04908f00 100644
--- a/src/features/Settings/provider/ProviderMenu/useDropdownMenu.tsx
+++ b/src/features/Settings/provider/ProviderMenu/useDropdownMenu.tsx
@@ -1,4 +1,4 @@
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
import { LucideCheck } from 'lucide-react';
import { useMemo } from 'react';
@@ -21,7 +21,7 @@ interface DropdownMenuProps {
export const useProviderDropdownMenu = ({
onSortChange,
sortType,
-}: DropdownMenuProps): MenuProps['items'] => {
+}: DropdownMenuProps): DropdownItem[] => {
const { t } = useTranslation('modelProvider');
return useMemo(() => {
@@ -51,6 +51,6 @@ export const useProviderDropdownMenu = ({
sfSymbol: sortType === SortType.AlphabeticalDesc ? 'checkmark' : undefined,
},
];
- return items as MenuProps['items'];
+ return items as DropdownItem[];
}, [sortType, onSortChange, t]);
};
diff --git a/src/features/Settings/provider/_layout/Desktop/style.ts b/src/features/Settings/provider/_layout/Desktop/style.ts
index 6c0967df869..556ce6e818e 100644
--- a/src/features/Settings/provider/_layout/Desktop/style.ts
+++ b/src/features/Settings/provider/_layout/Desktop/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Main container
diff --git a/src/features/Settings/provider/detail/bedrock/index.tsx b/src/features/Settings/provider/detail/bedrock/index.tsx
index 30fd2665c2c..71990a3ebcd 100644
--- a/src/features/Settings/provider/detail/bedrock/index.tsx
+++ b/src/features/Settings/provider/detail/bedrock/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Select, Tabs, type TabsItem } from '@lobehub/ui/base-ui';
+import { Select, Tabs, type TabsItem } from '@lobehub/ui';
import { BedrockProviderCard } from 'model-bank/modelProviders';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/detail/comfyui/index.tsx b/src/features/Settings/provider/detail/comfyui/index.tsx
index b906a477d6a..abe54e6bdc1 100644
--- a/src/features/Settings/provider/detail/comfyui/index.tsx
+++ b/src/features/Settings/provider/detail/comfyui/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { ComfyUIProviderCard } from 'model-bank/modelProviders';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/detail/github/index.tsx b/src/features/Settings/provider/detail/github/index.tsx
index 4a7e27e784f..e71be49fac0 100644
--- a/src/features/Settings/provider/detail/github/index.tsx
+++ b/src/features/Settings/provider/detail/github/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Markdown } from '@lobehub/ui';
import { GithubProviderCard } from 'model-bank/modelProviders';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/detail/ollama/CheckError.tsx b/src/features/Settings/provider/detail/ollama/CheckError.tsx
index eb482311261..b6c63dec752 100644
--- a/src/features/Settings/provider/detail/ollama/CheckError.tsx
+++ b/src/features/Settings/provider/detail/ollama/CheckError.tsx
@@ -1,5 +1,5 @@
import { type ChatMessageError } from '@lobechat/types';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Skeleton } from '@lobehub/ui';
import { type ReactNode } from 'react';
import dynamic from '@/libs/next/dynamic';
diff --git a/src/features/Settings/provider/detail/ollama/Container.tsx b/src/features/Settings/provider/detail/ollama/Container.tsx
index e38477cbee3..0da739382de 100644
--- a/src/features/Settings/provider/detail/ollama/Container.tsx
+++ b/src/features/Settings/provider/detail/ollama/Container.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, responsive } from '@lobehub/ui';
import { XIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { useState } from 'react';
diff --git a/src/features/Settings/provider/detail/unsloth/CheckError.tsx b/src/features/Settings/provider/detail/unsloth/CheckError.tsx
index 1bc111faf71..ba3e0b9cdb0 100644
--- a/src/features/Settings/provider/detail/unsloth/CheckError.tsx
+++ b/src/features/Settings/provider/detail/unsloth/CheckError.tsx
@@ -1,6 +1,5 @@
import { BASE_PROVIDER_DOC_URL } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import type { CheckErrorRender } from '../../features/ProviderConfig/Checker';
diff --git a/src/features/Settings/provider/detail/vertexai/index.tsx b/src/features/Settings/provider/detail/vertexai/index.tsx
index b9321d9ef91..1d6b8750d21 100644
--- a/src/features/Settings/provider/detail/vertexai/index.tsx
+++ b/src/features/Settings/provider/detail/vertexai/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Markdown } from '@lobehub/ui';
-import { Select } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Markdown, Select } from '@lobehub/ui';
import { VertexAIProviderCard } from 'model-bank/modelProviders';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/CreateNewProvider/Content.tsx b/src/features/Settings/provider/features/CreateNewProvider/Content.tsx
index 881c9b5acf5..8e7bbc02fa2 100644
--- a/src/features/Settings/provider/features/CreateNewProvider/Content.tsx
+++ b/src/features/Settings/provider/features/CreateNewProvider/Content.tsx
@@ -1,8 +1,8 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
+ Flexbox,
Input,
InputPassword,
Select,
@@ -10,8 +10,8 @@ import {
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { AiProviderBaseURLSchema } from 'model-bank/aiProvider';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/CreateNewProvider/index.tsx b/src/features/Settings/provider/features/CreateNewProvider/index.tsx
index 20c1d31d57d..8de2c1176de 100644
--- a/src/features/Settings/provider/features/CreateNewProvider/index.tsx
+++ b/src/features/Settings/provider/features/CreateNewProvider/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox, Icon } from '@lobehub/ui';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { BrainIcon } from 'lucide-react';
diff --git a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Content.tsx b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Content.tsx
index 75b6d2a3d58..cd9ec2e9531 100644
--- a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Content.tsx
+++ b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Content.tsx
@@ -1,6 +1,6 @@
'use client';
-import type { FormInstance } from '@lobehub/ui/base-ui/form';
+import type { FormInstance } from '@lobehub/ui/form';
import { memo } from 'react';
import ModelConfigForm from './Form';
diff --git a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx
index ba28fe5b3e0..3b639798b67 100644
--- a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx
+++ b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/ExtendParamsSelect.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Popover } from '@lobehub/ui';
-import { Select, Switch, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Popover, Select, Switch, Tag, Text } from '@lobehub/ui';
import { type ExtendParamsType } from 'model-bank';
import { memo, type ReactNode, type SyntheticEvent, useMemo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Footer.tsx b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Footer.tsx
index b35cba1e093..10124d76f79 100644
--- a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Footer.tsx
+++ b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Footer.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
-import type { FormInstance } from '@lobehub/ui/base-ui/form';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
+import type { FormInstance } from '@lobehub/ui/form';
import { type CreateAiModelParams } from 'model-bank';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Form.tsx b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Form.tsx
index 14a9e5a769c..a63d7c78de4 100644
--- a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Form.tsx
+++ b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/Form.tsx
@@ -1,5 +1,5 @@
-import { Checkbox, Input, Select } from '@lobehub/ui/base-ui';
-import { Form, type FormInstance, type FormValues, useForm } from '@lobehub/ui/base-ui/form';
+import { Checkbox, Input, Select } from '@lobehub/ui';
+import { Form, type FormInstance, type FormValues, useForm } from '@lobehub/ui/form';
import type { AiModelType } from 'model-bank';
import { memo, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/index.tsx b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/index.tsx
index 6dec76d63e1..78286eff454 100644
--- a/src/features/Settings/provider/features/ModelList/CreateNewModelModal/index.tsx
+++ b/src/features/Settings/provider/features/ModelList/CreateNewModelModal/index.tsx
@@ -1,8 +1,8 @@
'use client';
-import type { ModalInstance } from '@lobehub/ui/base-ui';
-import { createModal } from '@lobehub/ui/base-ui';
-import type { FormInstance } from '@lobehub/ui/base-ui/form';
+import type { ModalInstance } from '@lobehub/ui';
+import { createModal } from '@lobehub/ui';
+import type { FormInstance } from '@lobehub/ui/form';
import { t } from 'i18next';
import CreateNewModelContent from './Content';
diff --git a/src/features/Settings/provider/features/ModelList/DisabledModels.tsx b/src/features/Settings/provider/features/ModelList/DisabledModels.tsx
index dabf4327d6a..ef88bb1fe1d 100644
--- a/src/features/Settings/provider/features/ModelList/DisabledModels.tsx
+++ b/src/features/Settings/provider/features/ModelList/DisabledModels.tsx
@@ -1,6 +1,5 @@
import type { ItemType } from '@lobehub/ui';
-import { DropdownMenu, Flexbox, Icon, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu, Flexbox, Icon, Text, TooltipGroup } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ArrowDownUpIcon, LucideCheck } from 'lucide-react';
import { type AiProviderModelListItem } from 'model-bank';
diff --git a/src/features/Settings/provider/features/ModelList/EmptyModels.tsx b/src/features/Settings/provider/features/ModelList/EmptyModels.tsx
index 396812171b1..368abef697d 100644
--- a/src/features/Settings/provider/features/ModelList/EmptyModels.tsx
+++ b/src/features/Settings/provider/features/ModelList/EmptyModels.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, Center, createStaticStyles, Flexbox, Icon, toast, Tooltip } from '@lobehub/ui';
import { BrainIcon, LucideRefreshCcwDot, PlusIcon } from 'lucide-react';
import { memo, use, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/EnabledModelList/index.tsx b/src/features/Settings/provider/features/ModelList/EnabledModelList/index.tsx
index 1e3d09a4948..a9ceb7d86cd 100644
--- a/src/features/Settings/provider/features/ModelList/EnabledModelList/index.tsx
+++ b/src/features/Settings/provider/features/ModelList/EnabledModelList/index.tsx
@@ -1,5 +1,4 @@
-import { Center, Flexbox, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Center, Flexbox, Text, TooltipGroup } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ArrowDownUpIcon, ToggleLeft } from 'lucide-react';
import { use, useMemo, useState } from 'react';
diff --git a/src/features/Settings/provider/features/ModelList/ModelConfigModal/Content.tsx b/src/features/Settings/provider/features/ModelList/ModelConfigModal/Content.tsx
index 77ae2e16f6c..f9847f83f47 100644
--- a/src/features/Settings/provider/features/ModelList/ModelConfigModal/Content.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelConfigModal/Content.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type FormInstance } from '@lobehub/ui/base-ui/form';
+import { type FormInstance } from '@lobehub/ui/form';
import isEqual from 'fast-deep-equal';
import { memo } from 'react';
diff --git a/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx b/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx
index 92c14ef4541..ebe9e7eab3f 100644
--- a/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelConfigModal/Footer.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Button, ModalFooter, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { type FormInstance } from '@lobehub/ui/base-ui/form';
+import { Button, ModalFooter, toast, useModalContext } from '@lobehub/ui';
+import { type FormInstance } from '@lobehub/ui/form';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/ModelConfigModal/index.tsx b/src/features/Settings/provider/features/ModelList/ModelConfigModal/index.tsx
index 7cfef0cd80a..b5f45d4fde7 100644
--- a/src/features/Settings/provider/features/ModelList/ModelConfigModal/index.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelConfigModal/index.tsx
@@ -1,7 +1,7 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
-import { type FormInstance } from '@lobehub/ui/base-ui/form';
+import { createModal, type ModalInstance } from '@lobehub/ui';
+import { type FormInstance } from '@lobehub/ui/form';
import { t } from 'i18next';
import ModelConfigContent from './Content';
diff --git a/src/features/Settings/provider/features/ModelList/ModelConfigModal/utils.ts b/src/features/Settings/provider/features/ModelList/ModelConfigModal/utils.ts
index c95df7c6b59..59887b40d4c 100644
--- a/src/features/Settings/provider/features/ModelList/ModelConfigModal/utils.ts
+++ b/src/features/Settings/provider/features/ModelList/ModelConfigModal/utils.ts
@@ -1,4 +1,4 @@
-import type { FormValues } from '@lobehub/ui/base-ui/form';
+import type { FormValues } from '@lobehub/ui/form';
import type { UpdateAiModelParams } from 'model-bank';
const EDITABLE_ABILITIES = [
diff --git a/src/features/Settings/provider/features/ModelList/ModelItem.tsx b/src/features/Settings/provider/features/ModelList/ModelItem.tsx
index 7d8f0982db4..c9527122f5a 100644
--- a/src/features/Settings/provider/features/ModelList/ModelItem.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelItem.tsx
@@ -1,6 +1,15 @@
-import { copyToClipboard, Flexbox } from '@lobehub/ui';
-import { ActionIcon, confirmModal, Switch, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ confirmModal,
+ copyToClipboard,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Switch,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { LucidePencil, TrashIcon } from 'lucide-react';
import { type AiProviderModelListItem } from 'model-bank';
import { AiModelSourceEnum } from 'model-bank/aiModel';
diff --git a/src/features/Settings/provider/features/ModelList/ModelTitle/Search.tsx b/src/features/Settings/provider/features/ModelList/ModelTitle/Search.tsx
index bc458a02b3c..e59f13d828f 100644
--- a/src/features/Settings/provider/features/ModelList/ModelTitle/Search.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelTitle/Search.tsx
@@ -1,5 +1,5 @@
import { SearchBar } from '@lobehub/ui';
-import { type InputProps } from '@lobehub/ui/base-ui';
+import { type InputProps } from '@lobehub/ui';
import { useDebounce } from 'ahooks';
import { memo, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/ModelTitle/index.tsx b/src/features/Settings/provider/features/ModelList/ModelTitle/index.tsx
index ce39e81ecd6..bde8e86dc5e 100644
--- a/src/features/Settings/provider/features/ModelList/ModelTitle/index.tsx
+++ b/src/features/Settings/provider/features/ModelList/ModelTitle/index.tsx
@@ -1,6 +1,15 @@
-import { DropdownMenu, Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, Skeleton, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ confirmModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Skeleton,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import { CircleX, EllipsisVertical, LucideRefreshCcwDot, PlusIcon } from 'lucide-react';
import { memo, use, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/SearchResult.tsx b/src/features/Settings/provider/features/ModelList/SearchResult.tsx
index 2cbb1f6a2c9..10c1d2e78d5 100644
--- a/src/features/Settings/provider/features/ModelList/SearchResult.tsx
+++ b/src/features/Settings/provider/features/ModelList/SearchResult.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, Text, TooltipGroup } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ToggleRightIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Settings/provider/features/ModelList/SkeletonList.tsx b/src/features/Settings/provider/features/ModelList/SkeletonList.tsx
index a113cc2e47c..47fe6e72cc8 100644
--- a/src/features/Settings/provider/features/ModelList/SkeletonList.tsx
+++ b/src/features/Settings/provider/features/ModelList/SkeletonList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/Settings/provider/features/ModelList/SortModelModal/index.tsx b/src/features/Settings/provider/features/ModelList/SortModelModal/index.tsx
index 8c8926fe5b7..3985c19fb30 100644
--- a/src/features/Settings/provider/features/ModelList/SortModelModal/index.tsx
+++ b/src/features/Settings/provider/features/ModelList/SortModelModal/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, SortableList } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, SortableList, toast } from '@lobehub/ui';
import { type AiProviderModelListItem } from 'model-bank';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/provider/features/ModelList/index.tsx b/src/features/Settings/provider/features/ModelList/index.tsx
index 185fbb290ab..83ae49827b2 100644
--- a/src/features/Settings/provider/features/ModelList/index.tsx
+++ b/src/features/Settings/provider/features/ModelList/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Tabs } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import {
AudioLines,
diff --git a/src/features/Settings/provider/features/ProviderConfig/Checker.tsx b/src/features/Settings/provider/features/ProviderConfig/Checker.tsx
index 5dd76aea05e..2f4a5e51f41 100644
--- a/src/features/Settings/provider/features/ProviderConfig/Checker.tsx
+++ b/src/features/Settings/provider/features/ProviderConfig/Checker.tsx
@@ -3,9 +3,17 @@
import { type ChatMessageError } from '@lobechat/types';
import { RequestTrigger, TraceNameMap } from '@lobechat/types';
import { isRecord, pickTrimmedString } from '@lobechat/utils/object';
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Alert, Button, Select, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Alert,
+ Button,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Highlighter,
+ Select,
+ Spin,
+} from '@lobehub/ui';
import { CircleCheckIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/Settings/provider/features/ProviderConfig/EnableSwitch.tsx b/src/features/Settings/provider/features/ProviderConfig/EnableSwitch.tsx
index 665fa8489d9..a20f3c718e7 100644
--- a/src/features/Settings/provider/features/ProviderConfig/EnableSwitch.tsx
+++ b/src/features/Settings/provider/features/ProviderConfig/EnableSwitch.tsx
@@ -1,6 +1,4 @@
-import { Tooltip } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Skeleton, Tooltip } from '@lobehub/ui';
import { type FC } from 'react';
import InstantSwitch from '@/components/InstantSwitch';
diff --git a/src/features/Settings/provider/features/ProviderConfig/OAuthDeviceFlowAuth/index.tsx b/src/features/Settings/provider/features/ProviderConfig/OAuthDeviceFlowAuth/index.tsx
index 78958868513..58ec31dd3d5 100644
--- a/src/features/Settings/provider/features/ProviderConfig/OAuthDeviceFlowAuth/index.tsx
+++ b/src/features/Settings/provider/features/ProviderConfig/OAuthDeviceFlowAuth/index.tsx
@@ -1,9 +1,19 @@
'use client';
import { MAX_WIDTH } from '@lobechat/const';
-import { CopyButton, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, confirmModal, Modal, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ CopyButton,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Modal,
+ Spin,
+ Text,
+} from '@lobehub/ui';
import { CircleCheckIcon, LogOutIcon, UnplugIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx b/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx
index fc5f70c1989..b0f51f6beee 100644
--- a/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx
+++ b/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
+import { cssVar, Flexbox, Icon } from '@lobehub/ui';
import {
Button,
confirmModal,
@@ -13,9 +13,8 @@ import {
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { t as i18nT } from 'i18next';
import { BrainIcon } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
diff --git a/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx b/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx
index 400e154598a..b96342f4466 100644
--- a/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx
+++ b/src/features/Settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Tooltip } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Tooltip } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { SettingsIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/provider/features/ProviderConfig/index.tsx b/src/features/Settings/provider/features/ProviderConfig/index.tsx
index da63d0930d3..9ba4d408ebb 100644
--- a/src/features/Settings/provider/features/ProviderConfig/index.tsx
+++ b/src/features/Settings/provider/features/ProviderConfig/index.tsx
@@ -2,8 +2,21 @@
import { BRANDING_PROVIDER } from '@lobechat/business-const';
import { AES_GCM_URL, BASE_PROVIDER_DOC_URL, FORM_STYLE } from '@lobechat/const';
-import { Center, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
-import { Avatar, Skeleton, Spin, Switch } from '@lobehub/ui/base-ui';
+import {
+ Avatar,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ responsive,
+ Skeleton,
+ Spin,
+ stopPropagation,
+ Switch,
+ Tooltip,
+} from '@lobehub/ui';
import {
Form,
type FormFieldProps,
@@ -11,9 +24,8 @@ import {
type FormValues,
useForm,
useWatch,
-} from '@lobehub/ui/base-ui/form';
+} from '@lobehub/ui/form';
import { useDebounceFn } from 'ahooks';
-import { createStaticStyles, cssVar, cx, responsive } from 'antd-style';
import { get, set } from 'es-toolkit/compat';
import { InfoIcon, LockIcon } from 'lucide-react';
import { AiProviderBaseURLSchema } from 'model-bank/aiProvider';
diff --git a/src/features/Settings/proxy/features/ProxyForm.test.tsx b/src/features/Settings/proxy/features/ProxyForm.test.tsx
index 58d027acbdd..9fd93a207d2 100644
--- a/src/features/Settings/proxy/features/ProxyForm.test.tsx
+++ b/src/features/Settings/proxy/features/ProxyForm.test.tsx
@@ -62,7 +62,7 @@ vi.mock('./SaveBar', () => ({
) : null,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: {
error: toastErrorMock,
diff --git a/src/features/Settings/proxy/features/ProxyForm.tsx b/src/features/Settings/proxy/features/ProxyForm.tsx
index 582a78713d3..6a0790ddda1 100644
--- a/src/features/Settings/proxy/features/ProxyForm.tsx
+++ b/src/features/Settings/proxy/features/ProxyForm.tsx
@@ -1,9 +1,8 @@
'use client';
import { type NetworkProxySettings } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, InputPassword, RadioGroup, Switch, toast } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm, useWatch } from '@lobehub/ui/base-ui/form';
+import { Button, Flexbox, Input, InputPassword, RadioGroup, Switch, toast } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm, useWatch } from '@lobehub/ui/form';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/proxy/features/SaveBar.tsx b/src/features/Settings/proxy/features/SaveBar.tsx
index c14ea591f5a..6f9707f536c 100644
--- a/src/features/Settings/proxy/features/SaveBar.tsx
+++ b/src/features/Settings/proxy/features/SaveBar.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles } from '@lobehub/ui';
import { AnimatePresence } from 'motion/react';
import * as m from 'motion/react-m';
import { memo } from 'react';
diff --git a/src/features/Settings/proxy/features/useProxyDirty.ts b/src/features/Settings/proxy/features/useProxyDirty.ts
index 728fac3887d..3bba8406937 100644
--- a/src/features/Settings/proxy/features/useProxyDirty.ts
+++ b/src/features/Settings/proxy/features/useProxyDirty.ts
@@ -1,5 +1,5 @@
import { type NetworkProxySettings } from '@lobechat/electron-client-ipc';
-import { type FormInstance, useWatch } from '@lobehub/ui/base-ui/form';
+import { type FormInstance, useWatch } from '@lobehub/ui/form';
import { useMemo } from 'react';
const WATCH_FIELDS: readonly (keyof NetworkProxySettings)[] = [
diff --git a/src/features/Settings/skill/features/Actions.tsx b/src/features/Settings/skill/features/Actions.tsx
index 43950fac66d..04dc8d67742 100644
--- a/src/features/Settings/skill/features/Actions.tsx
+++ b/src/features/Settings/skill/features/Actions.tsx
@@ -1,5 +1,4 @@
-import { DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Button, confirmModal } from '@lobehub/ui/base-ui';
+import { Button, confirmModal, DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
import { MoreHorizontalIcon, Trash2 } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/skill/features/AgentConnectorItem.tsx b/src/features/Settings/skill/features/AgentConnectorItem.tsx
index b587f76e16f..fd7999137a5 100644
--- a/src/features/Settings/skill/features/AgentConnectorItem.tsx
+++ b/src/features/Settings/skill/features/AgentConnectorItem.tsx
@@ -1,10 +1,8 @@
'use client';
import { getComposioAppByIdentifier, getLobehubSkillProviderById } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
+import { Avatar, cssVar, Icon, Tag } from '@lobehub/ui';
import { McpIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import { memo } from 'react';
import NavItem from '@/features/NavPanel/components/NavItem';
diff --git a/src/features/Settings/skill/features/AgentConnectorUsage.tsx b/src/features/Settings/skill/features/AgentConnectorUsage.tsx
index 34f6e316f62..bc9c5beed32 100644
--- a/src/features/Settings/skill/features/AgentConnectorUsage.tsx
+++ b/src/features/Settings/skill/features/AgentConnectorUsage.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Button, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowUpRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -28,7 +27,7 @@ const AgentConnectorUsage = memo<{
gap={12}
justify="space-between"
style={{
- background: 'var(--ant-color-fill-quaternary)',
+ background: 'var(--lobe-color-fill-quaternary)',
borderRadius: 8,
marginBottom: 16,
padding: '10px 12px',
diff --git a/src/features/Settings/skill/features/AgentSkillItem.tsx b/src/features/Settings/skill/features/AgentSkillItem.tsx
index 99f53aa043e..ce6418a6aa1 100644
--- a/src/features/Settings/skill/features/AgentSkillItem.tsx
+++ b/src/features/Settings/skill/features/AgentSkillItem.tsx
@@ -1,10 +1,18 @@
'use client';
import { type BuiltinSkillManifest, type SkillListItem } from '@lobechat/types';
-import { DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Avatar, Button, confirmModal, createModal } from '@lobehub/ui/base-ui';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ createModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+} from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { cssVar } from 'antd-style';
import { DownloadIcon, MoreHorizontalIcon, Plus, Trash2 } from 'lucide-react';
import { lazy, memo, Suspense, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -227,7 +235,7 @@ const AgentSkillItem = memo<AgentSkillItemProps>(({ skill, isSelected, onSelect
gap={16}
justify="space-between"
style={{
- ...(isSelected ? { background: 'var(--ant-color-primary-bg)', borderRadius: 6 } : {}),
+ ...(isSelected ? { background: 'var(--lobe-color-primary-bg)', borderRadius: 6 } : {}),
...(onSelect ? { cursor: 'pointer' } : {}),
}}
onClick={onSelect}
diff --git a/src/features/Settings/skill/features/BuiltinSkillItem.tsx b/src/features/Settings/skill/features/BuiltinSkillItem.tsx
index 96c6cb2f01a..3a0b217aa6f 100644
--- a/src/features/Settings/skill/features/BuiltinSkillItem.tsx
+++ b/src/features/Settings/skill/features/BuiltinSkillItem.tsx
@@ -1,8 +1,15 @@
'use client';
-import { DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { Avatar, Button, confirmModal } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+} from '@lobehub/ui';
import { MoreHorizontalIcon, Plus, Trash2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -118,7 +125,7 @@ const BuiltinSkillItem = memo<BuiltinSkillItemProps>(
gap={8}
justify="space-between"
style={{
- ...(isSelected ? { background: 'var(--ant-color-primary-bg)', borderRadius: 6 } : {}),
+ ...(isSelected ? { background: 'var(--lobe-color-primary-bg)', borderRadius: 6 } : {}),
...(onSelect ? { cursor: 'pointer' } : {}),
}}
onClick={onSelect}
diff --git a/src/features/Settings/skill/features/ComposioSkillItem.tsx b/src/features/Settings/skill/features/ComposioSkillItem.tsx
index b849e830fe8..bcbbd55fad1 100644
--- a/src/features/Settings/skill/features/ComposioSkillItem.tsx
+++ b/src/features/Settings/skill/features/ComposioSkillItem.tsx
@@ -1,9 +1,18 @@
'use client';
import { type ComposioAppType } from '@lobechat/const';
-import { Center, DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Button, Button as LobeButton, confirmModal } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ Button as LobeButton,
+ Center,
+ confirmModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tooltip,
+} from '@lobehub/ui';
import {
CircleCheck,
MoreHorizontalIcon,
@@ -408,7 +417,7 @@ const ComposioSkillItem = memo<ComposioSkillItemProps>(
gap={8}
justify="space-between"
style={{
- ...(isSelected ? { background: 'var(--ant-color-primary-bg)', borderRadius: 6 } : {}),
+ ...(isSelected ? { background: 'var(--lobe-color-primary-bg)', borderRadius: 6 } : {}),
...(onSelect ? { cursor: 'pointer' } : {}),
}}
onClick={onSelect}
diff --git a/src/features/Settings/skill/features/LeftPanel.tsx b/src/features/Settings/skill/features/LeftPanel.tsx
index babd2535473..ab971779048 100644
--- a/src/features/Settings/skill/features/LeftPanel.tsx
+++ b/src/features/Settings/skill/features/LeftPanel.tsx
@@ -1,9 +1,7 @@
'use client';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, createStaticStyles, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
import { GithubIcon } from '@lobehub/ui/icons';
-import { createStaticStyles } from 'antd-style';
import { FileArchive, Grid2x2Plus, Link, Store } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/skill/features/LobehubSkillItem.tsx b/src/features/Settings/skill/features/LobehubSkillItem.tsx
index 3c0706ddd36..f4eaee5715f 100644
--- a/src/features/Settings/skill/features/LobehubSkillItem.tsx
+++ b/src/features/Settings/skill/features/LobehubSkillItem.tsx
@@ -1,9 +1,18 @@
'use client';
import { type LobehubSkillProviderType } from '@lobechat/const';
-import { Center, DropdownMenu, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Button, Button as LobeButton, confirmModal } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ Button as LobeButton,
+ Center,
+ confirmModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tooltip,
+} from '@lobehub/ui';
import { CircleCheck, MoreHorizontalIcon, SquareArrowOutUpRight, Unplug } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -337,7 +346,7 @@ const LobehubSkillItem = memo<LobehubSkillItemProps>(
gap={8}
justify="space-between"
style={{
- ...(isSelected ? { background: 'var(--ant-color-primary-bg)', borderRadius: 6 } : {}),
+ ...(isSelected ? { background: 'var(--lobe-color-primary-bg)', borderRadius: 6 } : {}),
...(onSelect ? { cursor: 'pointer' } : {}),
}}
onClick={onSelect}
diff --git a/src/features/Settings/skill/features/McpSkillItem.tsx b/src/features/Settings/skill/features/McpSkillItem.tsx
index a5e6a088960..588d789bc97 100644
--- a/src/features/Settings/skill/features/McpSkillItem.tsx
+++ b/src/features/Settings/skill/features/McpSkillItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, createModal } from '@lobehub/ui/base-ui';
+import { Avatar, createModal, Flexbox, Icon } from '@lobehub/ui';
import { McpIcon } from '@lobehub/ui/icons';
import { memo, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
@@ -89,7 +88,7 @@ const McpSkillItem = memo<McpSkillItemProps>(
gap={8}
justify="space-between"
style={{
- ...(isSelected ? { background: 'var(--ant-color-primary-bg)', borderRadius: 6 } : {}),
+ ...(isSelected ? { background: 'var(--lobe-color-primary-bg)', borderRadius: 6 } : {}),
...(onSelect ? { cursor: 'pointer' } : {}),
}}
onClick={onSelect}
diff --git a/src/features/Settings/skill/features/SkillDetail/index.test.tsx b/src/features/Settings/skill/features/SkillDetail/index.test.tsx
index 60ef4d772f7..e9437bde3fe 100644
--- a/src/features/Settings/skill/features/SkillDetail/index.test.tsx
+++ b/src/features/Settings/skill/features/SkillDetail/index.test.tsx
@@ -82,7 +82,7 @@ vi.mock('@lobechat/const', () => ({
: undefined,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: mocks.confirmModal,
}));
diff --git a/src/features/Settings/skill/features/SkillDetail/index.tsx b/src/features/Settings/skill/features/SkillDetail/index.tsx
index fcaf5e4d8e1..25037eb2191 100644
--- a/src/features/Settings/skill/features/SkillDetail/index.tsx
+++ b/src/features/Settings/skill/features/SkillDetail/index.tsx
@@ -2,9 +2,16 @@
import { getLobehubSkillProviderById } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Markdown, Tooltip } from '@lobehub/ui';
-import { Avatar, Button, confirmModal, Skeleton, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ Markdown,
+ Skeleton,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { Plus, SquareArrowOutUpRight, Trash2, Unplug, Wrench } from 'lucide-react';
import type { ReactNode } from 'react';
@@ -381,7 +388,7 @@ const SkillDetail = memo<SkillDetailProps>(({ identifier, type, onDelete }) => {
<div
style={{
alignItems: 'center',
- borderBlockEnd: '1px solid var(--ant-color-border-secondary)',
+ borderBlockEnd: '1px solid var(--lobe-color-border-secondary)',
display: 'flex',
flexShrink: 0,
justifyContent: 'flex-end',
diff --git a/src/features/Settings/skill/features/SkillList.tsx b/src/features/Settings/skill/features/SkillList.tsx
index 301aa6028f1..94444c3f80d 100644
--- a/src/features/Settings/skill/features/SkillList.tsx
+++ b/src/features/Settings/skill/features/SkillList.tsx
@@ -8,9 +8,8 @@ import {
resolveConnectorCatalogItem,
} from '@lobechat/const';
import type { BuiltinSkillManifest, LobeBuiltinTool } from '@lobechat/types';
-import { Center, Empty } from '@lobehub/ui';
+import { Center, createStaticStyles, Empty } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';
import type React from 'react';
diff --git a/src/features/Settings/skill/features/style.ts b/src/features/Settings/skill/features/style.ts
index 851bfeb6147..85362b04a93 100644
--- a/src/features/Settings/skill/features/style.ts
+++ b/src/features/Settings/skill/features/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
connected: css`
diff --git a/src/features/Settings/skill/index.tsx b/src/features/Settings/skill/index.tsx
index 9ae2ce8a206..964fd47a0c2 100644
--- a/src/features/Settings/skill/index.tsx
+++ b/src/features/Settings/skill/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useEffect, useState } from 'react';
import { useSearchParams } from 'react-router';
diff --git a/src/features/Settings/stats/features/components/StatsFormGroup.tsx b/src/features/Settings/stats/features/components/StatsFormGroup.tsx
index 407eaebec5b..9e1190257ac 100644
--- a/src/features/Settings/stats/features/components/StatsFormGroup.tsx
+++ b/src/features/Settings/stats/features/components/StatsFormGroup.tsx
@@ -1,8 +1,7 @@
'use client';
import { type BlockProps } from '@lobehub/ui';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/features/Settings/stats/features/components/TimeLabel.tsx b/src/features/Settings/stats/features/components/TimeLabel.tsx
index a267e4548b1..7a4e9504b1d 100644
--- a/src/features/Settings/stats/features/components/TimeLabel.tsx
+++ b/src/features/Settings/stats/features/components/TimeLabel.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Spin } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/stats/features/components/UsageBarChart.tsx b/src/features/Settings/stats/features/components/UsageBarChart.tsx
index 40ce020f5b6..f2e22be0213 100644
--- a/src/features/Settings/stats/features/components/UsageBarChart.tsx
+++ b/src/features/Settings/stats/features/components/UsageBarChart.tsx
@@ -1,7 +1,6 @@
import { type BarChartProps } from '@lobehub/charts';
import { BarChart, ChartTooltipFrame, ChartTooltipRow } from '@lobehub/charts';
-import { Flexbox } from '@lobehub/ui';
-import { Divider, Text } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox, Text } from '@lobehub/ui';
import { formatNumber, formatTokenNumber } from '@/utils/format';
@@ -9,9 +8,10 @@ interface UsageBarChartProps extends BarChartProps {
showType: 'spend' | 'token';
}
-export const UsageBarChart = ({ ...props }: UsageBarChartProps) => (
+export const UsageBarChart = ({ showType, ...props }: UsageBarChartProps) => (
<BarChart
{...props}
+ valueFormatter={(num) => (showType === 'spend' ? formatNumber(num, 2) : formatTokenNumber(num))}
customTooltip={({ active, payload, label }) => {
if (active && payload) {
const sum = payload.reduce(
@@ -26,7 +26,7 @@ export const UsageBarChart = ({ ...props }: UsageBarChartProps) => (
</Text>
{sum !== 0 && (
<span style={{ fontWeight: 'bold' }}>
- {props.showType === 'spend' ? formatNumber(sum, 2) : formatTokenNumber(sum)}
+ {showType === 'spend' ? formatNumber(sum, 2) : formatTokenNumber(sum)}
</span>
)}
</Flexbox>
@@ -46,9 +46,7 @@ export const UsageBarChart = ({ ...props }: UsageBarChartProps) => (
key={`id-${idx}`}
name={name}
value={
- props.showType === 'spend'
- ? formatNumber(value, 2)
- : formatTokenNumber(value)
+ showType === 'spend' ? formatNumber(value, 2) : formatTokenNumber(value)
}
/>
) : null,
@@ -61,8 +59,5 @@ export const UsageBarChart = ({ ...props }: UsageBarChartProps) => (
}
return null;
}}
- valueFormatter={(num) =>
- props.showType === 'spend' ? formatNumber(num, 2) : formatTokenNumber(num)
- }
/>
);
diff --git a/src/features/Settings/stats/features/overview/ShareButton/Preview.tsx b/src/features/Settings/stats/features/overview/ShareButton/Preview.tsx
index efc353d9101..ab6feb42a12 100644
--- a/src/features/Settings/stats/features/overview/ShareButton/Preview.tsx
+++ b/src/features/Settings/stats/features/overview/ShareButton/Preview.tsx
@@ -1,6 +1,13 @@
import { imageUrl, OFFICIAL_URL } from '@lobechat/const';
-import { Center, Flexbox, Grid, lobeStaticStylish } from '@lobehub/ui';
-import { createStaticStyles, cx, responsive } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Grid,
+ lobeStaticStylish,
+ responsive,
+} from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/overview/ShareButton/ShareModal.tsx b/src/features/Settings/stats/features/overview/ShareButton/ShareModal.tsx
index afd0785185c..75d3dc6cb4c 100644
--- a/src/features/Settings/stats/features/overview/ShareButton/ShareModal.tsx
+++ b/src/features/Settings/stats/features/overview/ShareButton/ShareModal.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Button, Modal, Skeleton, Tabs } from '@lobehub/ui/base-ui';
-import { Form, type FormFieldProps, useForm, useWatch } from '@lobehub/ui/base-ui/form';
+import { Button, Modal, Skeleton, Tabs } from '@lobehub/ui';
+import { Form, type FormFieldProps, useForm, useWatch } from '@lobehub/ui/form';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/overview/ShareButton/TotalCard.tsx b/src/features/Settings/stats/features/overview/ShareButton/TotalCard.tsx
index 14962e43740..45cacb32817 100644
--- a/src/features/Settings/stats/features/overview/ShareButton/TotalCard.tsx
+++ b/src/features/Settings/stats/features/overview/ShareButton/TotalCard.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useIsDark } from '@/hooks/useIsDark';
diff --git a/src/features/Settings/stats/features/overview/ShareButton/index.tsx b/src/features/Settings/stats/features/overview/ShareButton/index.tsx
index 5034fc9016a..84436a580ee 100644
--- a/src/features/Settings/stats/features/overview/ShareButton/index.tsx
+++ b/src/features/Settings/stats/features/overview/ShareButton/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Share2Icon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/features/Settings/stats/features/overview/Welcome.tsx b/src/features/Settings/stats/features/overview/Welcome.tsx
index 2b8f6c3a8c8..06508899255 100644
--- a/src/features/Settings/stats/features/overview/Welcome.tsx
+++ b/src/features/Settings/stats/features/overview/Welcome.tsx
@@ -1,6 +1,5 @@
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { Clock3Icon, ClockArrowUp } from 'lucide-react';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/overview/WorkspaceWelcome.tsx b/src/features/Settings/stats/features/overview/WorkspaceWelcome.tsx
index 7e225c5ef51..3bd89dd41aa 100644
--- a/src/features/Settings/stats/features/overview/WorkspaceWelcome.tsx
+++ b/src/features/Settings/stats/features/overview/WorkspaceWelcome.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import dayjs from 'dayjs';
import { Clock3Icon, UsersIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/features/Settings/stats/features/rankings/AssistantsRank.tsx b/src/features/Settings/stats/features/rankings/AssistantsRank.tsx
index a9a2a10be8e..1837f226683 100644
--- a/src/features/Settings/stats/features/rankings/AssistantsRank.tsx
+++ b/src/features/Settings/stats/features/rankings/AssistantsRank.tsx
@@ -1,7 +1,7 @@
import { AGENT_CHAT_URL } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
import { BarList } from '@lobehub/charts';
-import { ActionIcon, Avatar } from '@lobehub/ui/base-ui';
+import { ActionIcon, Avatar } from '@lobehub/ui';
import { MaximizeIcon } from 'lucide-react';
import qs from 'query-string';
import { memo, useState } from 'react';
diff --git a/src/features/Settings/stats/features/rankings/ModelsRank.tsx b/src/features/Settings/stats/features/rankings/ModelsRank.tsx
index 2eecc78aa57..a9f6bdfd780 100644
--- a/src/features/Settings/stats/features/rankings/ModelsRank.tsx
+++ b/src/features/Settings/stats/features/rankings/ModelsRank.tsx
@@ -1,6 +1,6 @@
import { type ModelRankItem } from '@lobechat/types';
import { BarList } from '@lobehub/charts';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { MaximizeIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/rankings/TopicsRank.tsx b/src/features/Settings/stats/features/rankings/TopicsRank.tsx
index e9e0917fb52..5e3fa8780cd 100644
--- a/src/features/Settings/stats/features/rankings/TopicsRank.tsx
+++ b/src/features/Settings/stats/features/rankings/TopicsRank.tsx
@@ -1,8 +1,6 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
import { BarList } from '@lobehub/charts';
-import { Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar, Icon } from '@lobehub/ui';
import { MaximizeIcon, MessageSquareIcon } from 'lucide-react';
import qs from 'query-string';
import { memo, useState } from 'react';
diff --git a/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/ModelTable.tsx b/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/ModelTable.tsx
index 628e98b8d21..d5c6282d6e9 100644
--- a/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/ModelTable.tsx
+++ b/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/ModelTable.tsx
@@ -1,7 +1,5 @@
import { CategoryBar, useThemeColorRange } from '@lobehub/charts';
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, Avatar, Skeleton, Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Accordion, Avatar, cssVar, Flexbox, Skeleton, Tag } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.test.tsx b/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.test.tsx
index 557d4f1f29a..126cfac879d 100644
--- a/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.test.tsx
+++ b/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.test.tsx
@@ -15,7 +15,7 @@ vi.mock('@/components/LobeIcons', () => ({
ProviderIcon: ({ provider }: { provider: string }) => <span>{provider}</span>,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = (await importOriginal()) as Record<string, unknown>;
return {
diff --git a/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.tsx b/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.tsx
index 313d4d283d1..df0c243a28c 100644
--- a/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.tsx
+++ b/src/features/Settings/stats/features/usage/UsageCards/ActiveModels/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Avatar, cssVar, Flexbox } from '@lobehub/ui';
import { MaximizeIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/usage/UsageTable.tsx b/src/features/Settings/stats/features/usage/UsageTable.tsx
index 20dbd38c2c3..69502b2e026 100644
--- a/src/features/Settings/stats/features/usage/UsageTable.tsx
+++ b/src/features/Settings/stats/features/usage/UsageTable.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { type TableColumn, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, type TableColumn, Text, Tooltip } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/usage/UsageTrends.tsx b/src/features/Settings/stats/features/usage/UsageTrends.tsx
index b273219e5df..6b8281e3ebd 100644
--- a/src/features/Settings/stats/features/usage/UsageTrends.tsx
+++ b/src/features/Settings/stats/features/usage/UsageTrends.tsx
@@ -1,5 +1,5 @@
import { type BarChartProps } from '@lobehub/charts';
-import { Skeleton, Tabs } from '@lobehub/ui/base-ui';
+import { Skeleton, Tabs } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/visualization/AiHeatmaps.tsx b/src/features/Settings/stats/features/visualization/AiHeatmaps.tsx
index 161b22ff916..7ab368e5184 100644
--- a/src/features/Settings/stats/features/visualization/AiHeatmaps.tsx
+++ b/src/features/Settings/stats/features/visualization/AiHeatmaps.tsx
@@ -1,8 +1,6 @@
import { type HeatmapsProps } from '@lobehub/charts';
import { Heatmaps } from '@lobehub/charts';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs, Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Tabs, Tag } from '@lobehub/ui';
import { CoinsIcon, FlameIcon, MessageSquareIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/features/visualization/HeatmapStats.tsx b/src/features/Settings/stats/features/visualization/HeatmapStats.tsx
index f20272845c8..75554cb086e 100644
--- a/src/features/Settings/stats/features/visualization/HeatmapStats.tsx
+++ b/src/features/Settings/stats/features/visualization/HeatmapStats.tsx
@@ -1,7 +1,5 @@
import { formatDuration as formatDurationMs } from '@lobechat/utils';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Divider, Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Divider, Flexbox, Skeleton } from '@lobehub/ui';
import { Fragment, memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/stats/index.tsx b/src/features/Settings/stats/index.tsx
index 9e07477f320..c7e92c404be 100644
--- a/src/features/Settings/stats/index.tsx
+++ b/src/features/Settings/stats/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Grid, Icon } from '@lobehub/ui';
-import { DatePicker, Divider, Tabs } from '@lobehub/ui/base-ui';
-import { Form } from '@lobehub/ui/base-ui/form';
+import { DayjsDatePicker as DatePicker, Divider, Grid, Icon, Tabs } from '@lobehub/ui';
+import { Form } from '@lobehub/ui/form';
import { ProviderIcon } from '@lobehub/ui/icons';
import dayjs from 'dayjs';
import { Brain, UserIcon } from 'lucide-react';
@@ -68,9 +67,8 @@ const StatsSetting = memo<StatsSettingProps>(
}
}, [dateStrings]);
- const handleDateChange = (date: Date | null) => {
- if (!date) return;
- const month = dayjs(date);
+ const handleDateChange = (month: dayjs.Dayjs | null) => {
+ if (!month) return;
setDateRange(month);
setDateStrings(month.format('YYYY-MM'));
};
@@ -114,8 +112,8 @@ const StatsSetting = memo<StatsSettingProps>(
<>
<DatePicker
format="YYYY-MM"
- mode="month"
- value={dateRange.toDate()}
+ picker="month"
+ value={dateRange}
onChange={handleDateChange}
/>
<Tabs
diff --git a/src/features/Settings/storage/features/Advanced.tsx b/src/features/Settings/storage/features/Advanced.tsx
index 01fec1be70a..9cab79f4058 100644
--- a/src/features/Settings/storage/features/Advanced.tsx
+++ b/src/features/Settings/storage/features/Advanced.tsx
@@ -1,9 +1,8 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Icon } from '@lobehub/ui';
-import { Button, confirmModal, Switch, toast } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, confirmModal, Icon, Switch, toast } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { HardDriveDownload, HardDriveUpload } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/storage/index.tsx b/src/features/Settings/storage/index.tsx
index 5aa88b2443f..b0a866feb0b 100644
--- a/src/features/Settings/storage/index.tsx
+++ b/src/features/Settings/storage/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Form } from '@lobehub/ui/base-ui/form';
+import { Form } from '@lobehub/ui/form';
import { useTranslation } from 'react-i18next';
import { ArticleSkeleton } from '@/components/Skeleton';
diff --git a/src/features/Settings/system-tools/features/AppEnvironmentSection.tsx b/src/features/Settings/system-tools/features/AppEnvironmentSection.tsx
index 91237e33c14..cc6e968e0bf 100644
--- a/src/features/Settings/system-tools/features/AppEnvironmentSection.tsx
+++ b/src/features/Settings/system-tools/features/AppEnvironmentSection.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Tag, Text } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/system-tools/features/CliTestSection.tsx b/src/features/Settings/system-tools/features/CliTestSection.tsx
index c6d3c2e6a09..c8adb0e1a9c 100644
--- a/src/features/Settings/system-tools/features/CliTestSection.tsx
+++ b/src/features/Settings/system-tools/features/CliTestSection.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Input, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Input, Text } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { electronSystemService } from '@/services/electron/system';
@@ -68,14 +67,14 @@ const CliTestSection = memo(() => {
gap={4}
key={i}
style={{
- background: 'var(--ant-color-fill-quaternary)',
+ background: 'var(--lobe-color-fill-quaternary)',
borderRadius: 8,
fontFamily: 'monospace',
fontSize: 12,
padding: 12,
}}
>
- <Text style={{ color: 'var(--ant-color-primary)', fontWeight: 600 }}>
+ <Text style={{ color: 'var(--lobe-color-primary)', fontWeight: 600 }}>
$ lobehub {r.args} (exit: {r.exitCode})
</Text>
{r.stdout && (
@@ -86,7 +85,7 @@ const CliTestSection = memo(() => {
{r.stderr && (
<pre
style={{
- color: 'var(--ant-color-error)',
+ color: 'var(--lobe-color-error)',
margin: 0,
whiteSpace: 'pre-wrap',
wordBreak: 'break-all',
diff --git a/src/features/Settings/system-tools/features/ShellSection.tsx b/src/features/Settings/system-tools/features/ShellSection.tsx
index 8ae018a1248..238f2b5b806 100644
--- a/src/features/Settings/system-tools/features/ShellSection.tsx
+++ b/src/features/Settings/system-tools/features/ShellSection.tsx
@@ -1,8 +1,8 @@
'use client';
import { type WindowsShellMode } from '@lobechat/electron-client-ipc';
-import { Select, Text } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Select, Text } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
diff --git a/src/features/Settings/system-tools/features/ToolDetectorSection.tsx b/src/features/Settings/system-tools/features/ToolDetectorSection.tsx
index a89ed1ab81d..2a22a8288da 100644
--- a/src/features/Settings/system-tools/features/ToolDetectorSection.tsx
+++ b/src/features/Settings/system-tools/features/ToolDetectorSection.tsx
@@ -1,9 +1,8 @@
'use client';
import { type BinaryStatus } from '@lobechat/electron-client-ipc';
-import { CopyButton, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Spin, Tag, Text } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, CopyButton, Flexbox, Icon, Spin, Tag, Text, Tooltip } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { CheckCircle2, RefreshCw, XCircle } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -90,7 +89,7 @@ const ToolStatusDisplay = memo<ToolStatusDisplayProps>(({ status, isDetecting })
if (!status) {
return (
<Flexbox horizontal align="center" gap={8}>
- <Icon color="var(--ant-color-text-quaternary)" icon={XCircle} size={16} />
+ <Icon color="var(--lobe-color-text-quaternary)" icon={XCircle} size={16} />
<Text type="secondary">{t('settingSystemTools.status.notDetected')}</Text>
</Flexbox>
);
@@ -99,7 +98,7 @@ const ToolStatusDisplay = memo<ToolStatusDisplayProps>(({ status, isDetecting })
if (!status.available) {
return (
<Flexbox horizontal align="center" gap={8} justify="center">
- <Icon color="var(--ant-color-error)" icon={XCircle} size={16} />
+ <Icon color="var(--lobe-color-error)" icon={XCircle} size={16} />
<Text type="secondary">{t('settingSystemTools.status.unavailable')}</Text>
</Flexbox>
);
@@ -108,7 +107,7 @@ const ToolStatusDisplay = memo<ToolStatusDisplayProps>(({ status, isDetecting })
return (
<Flexbox align="flex-end" gap={4}>
<Flexbox horizontal align="center" gap={8} justify="flex-end">
- <Icon color="var(--ant-color-success)" icon={CheckCircle2} size={16} />
+ <Icon color="var(--lobe-color-success)" icon={CheckCircle2} size={16} />
<Text type="success">{t('settingSystemTools.status.available')}</Text>
</Flexbox>
{status.path && (
diff --git a/src/features/Settings/trash/features/ProjectFilter.tsx b/src/features/Settings/trash/features/ProjectFilter.tsx
index 8c0a5b75ee1..2de7aad9033 100644
--- a/src/features/Settings/trash/features/ProjectFilter.tsx
+++ b/src/features/Settings/trash/features/ProjectFilter.tsx
@@ -1,9 +1,8 @@
'use client';
import type { TrashProjectFilter } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { controlHeight, Select, type SelectOptions, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
+import { controlHeight, Select, type SelectOptions, Text } from '@lobehub/ui';
import { FolderKanbanIcon, LockIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Settings/trash/features/TrashList.tsx b/src/features/Settings/trash/features/TrashList.tsx
index 19b2f6dafd8..73e647420f9 100644
--- a/src/features/Settings/trash/features/TrashList.tsx
+++ b/src/features/Settings/trash/features/TrashList.tsx
@@ -7,19 +7,22 @@ import type {
TrashProjectFilter,
TrashResourceType,
} from '@lobechat/types';
-import { Center, Empty, Flexbox, Icon } from '@lobehub/ui';
import {
Avatar,
Button,
+ Center,
confirmModal,
controlHeight,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Icon,
Segmented,
Tag,
Text,
toast,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { useSize } from 'ahooks';
-import { createStaticStyles } from 'antd-style';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import { Trash2Icon } from 'lucide-react';
diff --git a/src/features/Settings/trash/index.tsx b/src/features/Settings/trash/index.tsx
index 64eba465c01..90d5bb26c9c 100644
--- a/src/features/Settings/trash/index.tsx
+++ b/src/features/Settings/trash/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { TRASH_RETENTION_DAYS } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { useTranslation } from 'react-i18next';
import SettingHeader from '@/features/Settings/features/SettingHeader';
diff --git a/src/features/SettingsSearch/SearchResults.tsx b/src/features/SettingsSearch/SearchResults.tsx
index 3a744189a0f..5ee97d85f57 100644
--- a/src/features/SettingsSearch/SearchResults.tsx
+++ b/src/features/SettingsSearch/SearchResults.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Spin, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SettingsSearch/anchor.tsx b/src/features/SettingsSearch/anchor.tsx
index de85bb87414..52fb570a656 100644
--- a/src/features/SettingsSearch/anchor.tsx
+++ b/src/features/SettingsSearch/anchor.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo, type PropsWithChildren, useEffect } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/features/Share/ErrorView.tsx b/src/features/Share/ErrorView.tsx
index bc9465950d0..45ae17c4caf 100644
--- a/src/features/Share/ErrorView.tsx
+++ b/src/features/Share/ErrorView.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Center } from '@lobehub/ui';
import { TRPCClientError } from '@trpc/client';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ShareModal/Modal.tsx b/src/features/ShareModal/Modal.tsx
index 7955f15bc3a..d04d3f80f12 100644
--- a/src/features/ShareModal/Modal.tsx
+++ b/src/features/ShareModal/Modal.tsx
@@ -1,9 +1,7 @@
'use client';
import { type ConversationContext } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createModal, type ModalInstance, Tabs } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { createModal, cssVar, Flexbox, Icon, type ModalInstance, Tabs } from '@lobehub/ui';
import { t } from 'i18next';
import { BracesIcon, FileDownIcon, FileTextIcon, ImageIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/ShareModal/ShareImage/Preview.tsx b/src/features/ShareModal/ShareImage/Preview.tsx
index 06c5abc3b55..cce501b688e 100644
--- a/src/features/ShareModal/ShareImage/Preview.tsx
+++ b/src/features/ShareModal/ShareImage/Preview.tsx
@@ -1,7 +1,5 @@
import { agentDisplayName, type ConversationContext, type UIChatMessage } from '@lobechat/types';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import { Avatar, cx, Flexbox, Markdown, Text } from '@lobehub/ui';
import { memo } from 'react';
import { ProductLogo } from '@/components/Branding';
diff --git a/src/features/ShareModal/ShareImage/index.tsx b/src/features/ShareModal/ShareImage/index.tsx
index b376820dd5d..f628e8bc923 100644
--- a/src/features/ShareModal/ShareImage/index.tsx
+++ b/src/features/ShareModal/ShareImage/index.tsx
@@ -1,4 +1,4 @@
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { CopyIcon, DownloadIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ShareModal/ShareImage/style.ts b/src/features/ShareModal/ShareImage/style.ts
index 7c705477cb1..e6a163150d3 100644
--- a/src/features/ShareModal/ShareImage/style.ts
+++ b/src/features/ShareModal/ShareImage/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { imageUrl } from '@/const/url';
diff --git a/src/features/ShareModal/ShareJSON/Preview.tsx b/src/features/ShareModal/ShareJSON/Preview.tsx
index 35a6d46df21..5378cc3286e 100644
--- a/src/features/ShareModal/ShareJSON/Preview.tsx
+++ b/src/features/ShareModal/ShareJSON/Preview.tsx
@@ -1,5 +1,4 @@
-import { Highlighter } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Highlighter } from '@lobehub/ui';
import { memo } from 'react';
import { containerStyles } from '../style';
diff --git a/src/features/ShareModal/ShareJSON/index.tsx b/src/features/ShareModal/ShareJSON/index.tsx
index b1634711107..dbef53fdd67 100644
--- a/src/features/ShareModal/ShareJSON/index.tsx
+++ b/src/features/ShareModal/ShareJSON/index.tsx
@@ -1,8 +1,7 @@
import { type TopicExportMode } from '@lobechat/types';
import { exportFile } from '@lobechat/utils/client';
import { formatSize } from '@lobechat/utils/format';
-import { copyToClipboard } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, copyToClipboard, toast } from '@lobehub/ui';
import { CopyIcon, DownloadIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ShareModal/SharePdf/PdfPreview.tsx b/src/features/ShareModal/SharePdf/PdfPreview.tsx
index d4e0ce90d4d..8f846cd3914 100644
--- a/src/features/ShareModal/SharePdf/PdfPreview.tsx
+++ b/src/features/ShareModal/SharePdf/PdfPreview.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal, Input, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createModal, createStaticStyles, cx, Flexbox, Input, Spin } from '@lobehub/ui';
import { ChevronLeft, ChevronRight, Expand } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ShareModal/SharePdf/index.tsx b/src/features/ShareModal/SharePdf/index.tsx
index 2b9f918c1a8..3b49db3a6b0 100644
--- a/src/features/ShareModal/SharePdf/index.tsx
+++ b/src/features/ShareModal/SharePdf/index.tsx
@@ -1,7 +1,5 @@
import { type UIChatMessage } from '@lobechat/types';
-import { Center, Flexbox } from '@lobehub/ui';
-import { Button, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, Center, createStaticStyles, Flexbox, Text, toast } from '@lobehub/ui';
import { DownloadIcon, RotateCwIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ShareModal/ShareText/Preview.tsx b/src/features/ShareModal/ShareText/Preview.tsx
index 4e98c78f75e..d0b6ad22335 100644
--- a/src/features/ShareModal/ShareText/Preview.tsx
+++ b/src/features/ShareModal/ShareText/Preview.tsx
@@ -1,5 +1,4 @@
-import { Markdown } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Markdown } from '@lobehub/ui';
import { memo } from 'react';
import { containerStyles } from '../style';
diff --git a/src/features/ShareModal/ShareText/index.tsx b/src/features/ShareModal/ShareText/index.tsx
index 43d1bc65c99..327f6bb3224 100644
--- a/src/features/ShareModal/ShareText/index.tsx
+++ b/src/features/ShareModal/ShareText/index.tsx
@@ -1,7 +1,6 @@
import { exportFile } from '@lobechat/utils/client';
import { formatSize } from '@lobechat/utils/format';
-import { copyToClipboard } from '@lobehub/ui';
-import { Button, toast } from '@lobehub/ui/base-ui';
+import { Button, copyToClipboard, toast } from '@lobehub/ui';
import { CopyIcon, DownloadIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ShareModal/components/OptionChips.tsx b/src/features/ShareModal/components/OptionChips.tsx
index 4eb6e7e7212..e453c1ca292 100644
--- a/src/features/ShareModal/components/OptionChips.tsx
+++ b/src/features/ShareModal/components/OptionChips.tsx
@@ -1,6 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { type DropdownItem, DropdownMenu } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';
import { CheckIcon, ChevronDownIcon, PlusIcon } from 'lucide-react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/features/ShareModal/loader.ts b/src/features/ShareModal/loader.ts
index 32e658ee68c..e04b35c1527 100644
--- a/src/features/ShareModal/loader.ts
+++ b/src/features/ShareModal/loader.ts
@@ -1,4 +1,4 @@
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { type OpenShareModalOptions } from './Modal';
diff --git a/src/features/ShareModal/style.ts b/src/features/ShareModal/style.ts
index 611b4b6876c..c79603d0f6a 100644
--- a/src/features/ShareModal/style.ts
+++ b/src/features/ShareModal/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, responsive } from 'antd-style';
+import { createStaticStyles, responsive } from '@lobehub/ui';
export { styles as containerStyles } from './useContainerStyles';
diff --git a/src/features/ShareModal/useContainerStyles.ts b/src/features/ShareModal/useContainerStyles.ts
index 7f4c5b84222..8fb560384c2 100644
--- a/src/features/ShareModal/useContainerStyles.ts
+++ b/src/features/ShareModal/useContainerStyles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
preview: css`
diff --git a/src/features/ShareModal/useShareModal.tsx b/src/features/ShareModal/useShareModal.tsx
index 1658ee9decc..f7f52967a97 100644
--- a/src/features/ShareModal/useShareModal.tsx
+++ b/src/features/ShareModal/useShareModal.tsx
@@ -1,7 +1,7 @@
'use client';
import { type ConversationContext } from '@lobechat/types';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { useCallback, useEffect, useRef } from 'react';
import { openShareModal as createShareModal } from './loader';
diff --git a/src/features/SharePopover/index.tsx b/src/features/SharePopover/index.tsx
index 4eddd035f7f..d161d3120df 100644
--- a/src/features/SharePopover/index.tsx
+++ b/src/features/SharePopover/index.tsx
@@ -1,8 +1,21 @@
'use client';
-import { Center, copyToClipboard, Flexbox, Icon, Popover, usePopoverContext } from '@lobehub/ui';
-import { Button, Checkbox, confirmModal, Input, Switch, Text, toast } from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+import {
+ Button,
+ Center,
+ Checkbox,
+ confirmModal,
+ copyToClipboard,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ Popover,
+ Switch,
+ Text,
+ toast,
+ usePopoverContext,
+} from '@lobehub/ui';
import {
ChevronRightIcon,
CopyIcon,
diff --git a/src/features/SharePopover/style.ts b/src/features/SharePopover/style.ts
index 4c191410ad3..379a7a52a4f 100644
--- a/src/features/SharePopover/style.ts
+++ b/src/features/SharePopover/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
badge: css`
diff --git a/src/features/SkillStore/SkillDetail/AgentItem.tsx b/src/features/SkillStore/SkillDetail/AgentItem.tsx
index 9c55b1df498..b1b8a0dc20e 100644
--- a/src/features/SkillStore/SkillDetail/AgentItem.tsx
+++ b/src/features/SkillStore/SkillDetail/AgentItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar, Block, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { itemStyles } from './style';
diff --git a/src/features/SkillStore/SkillDetail/Agents.tsx b/src/features/SkillStore/SkillDetail/Agents.tsx
index 94becf5f0e3..96641f65aa1 100644
--- a/src/features/SkillStore/SkillDetail/Agents.tsx
+++ b/src/features/SkillStore/SkillDetail/Agents.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Grid, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Grid, Icon, Text } from '@lobehub/ui';
import { InboxIcon, ServerCrash } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillDetail/Header.tsx b/src/features/SkillStore/SkillDetail/Header.tsx
index b7a0782c9b4..cd381ccee9d 100644
--- a/src/features/SkillStore/SkillDetail/Header.tsx
+++ b/src/features/SkillStore/SkillDetail/Header.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Avatar, Button, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Avatar, Button, cssVar, Flexbox, Icon, Text, Tooltip, useModalContext } from '@lobehub/ui';
import { Plus, SquareArrowOutUpRight } from 'lucide-react';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillDetail/Nav.tsx b/src/features/SkillStore/SkillDetail/Nav.tsx
index f5845f634a6..06982bbcbb4 100644
--- a/src/features/SkillStore/SkillDetail/Nav.tsx
+++ b/src/features/SkillStore/SkillDetail/Nav.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs } from '@lobehub/ui';
import { BookOpenIcon, BotIcon, CodeIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillDetail/Overview.tsx b/src/features/SkillStore/SkillDetail/Overview.tsx
index 8a0884f901d..675ffd50897 100644
--- a/src/features/SkillStore/SkillDetail/Overview.tsx
+++ b/src/features/SkillStore/SkillDetail/Overview.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon, Typography } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Text, Typography } from '@lobehub/ui';
import { ExternalLink } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillDetail/Schema.tsx b/src/features/SkillStore/SkillDetail/Schema.tsx
index 5ccda5b9cd2..bf740537c08 100644
--- a/src/features/SkillStore/SkillDetail/Schema.tsx
+++ b/src/features/SkillStore/SkillDetail/Schema.tsx
@@ -1,9 +1,7 @@
'use client';
import { type SkillItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tabs, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tabs, Tag } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillDetail/VirtuosoLoading.tsx b/src/features/SkillStore/SkillDetail/VirtuosoLoading.tsx
index a2f98401d52..385e44dab8f 100644
--- a/src/features/SkillStore/SkillDetail/VirtuosoLoading.tsx
+++ b/src/features/SkillStore/SkillDetail/VirtuosoLoading.tsx
@@ -1,6 +1,4 @@
-import { Center } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Spin } from '@lobehub/ui';
const VirtuosoLoading = () => {
return (
diff --git a/src/features/SkillStore/SkillDetail/index.tsx b/src/features/SkillStore/SkillDetail/index.tsx
index 8982482acb6..29bdb636433 100644
--- a/src/features/SkillStore/SkillDetail/index.tsx
+++ b/src/features/SkillStore/SkillDetail/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import { BuiltinAgentSkillDetailContent } from './BuiltinAgentSkillDetailContent';
diff --git a/src/features/SkillStore/SkillDetail/style.ts b/src/features/SkillStore/SkillDetail/style.ts
index 74beb46b7f6..00d28a4c338 100644
--- a/src/features/SkillStore/SkillDetail/style.ts
+++ b/src/features/SkillStore/SkillDetail/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, responsive } from 'antd-style';
+import { createStaticStyles, responsive } from '@lobehub/ui';
export const agentListStyles = createStaticStyles(({ css }) => ({
item: css`
diff --git a/src/features/SkillStore/SkillDetail/styles.ts b/src/features/SkillStore/SkillDetail/styles.ts
index fbc92c62375..edbb0e69d6f 100644
--- a/src/features/SkillStore/SkillDetail/styles.ts
+++ b/src/features/SkillStore/SkillDetail/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const ICON_SIZE = 56;
diff --git a/src/features/SkillStore/SkillList/AddSkillButton.tsx b/src/features/SkillStore/SkillList/AddSkillButton.tsx
index bb6cc010a25..f958d407d9e 100644
--- a/src/features/SkillStore/SkillList/AddSkillButton.tsx
+++ b/src/features/SkillStore/SkillList/AddSkillButton.tsx
@@ -1,5 +1,4 @@
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
import { GithubIcon } from '@lobehub/ui/icons';
import { ChevronDown, FileArchive, Grid2x2Plus, Link, PenLine } from 'lucide-react';
import { type ReactNode, useState } from 'react';
diff --git a/src/features/SkillStore/SkillList/Builtin/Item.tsx b/src/features/SkillStore/SkillList/Builtin/Item.tsx
index 45cd6b9ddda..3083c819d36 100644
--- a/src/features/SkillStore/SkillList/Builtin/Item.tsx
+++ b/src/features/SkillStore/SkillList/Builtin/Item.tsx
@@ -1,7 +1,15 @@
'use client';
-import { Block, DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Avatar, confirmModal } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Avatar,
+ Block,
+ confirmModal,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+} from '@lobehub/ui';
import { MoreVerticalIcon, Plus, Trash2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillList/Community/Item.tsx b/src/features/SkillStore/SkillList/Community/Item.tsx
index 46663b34d47..9cb7d30b696 100644
--- a/src/features/SkillStore/SkillList/Community/Item.tsx
+++ b/src/features/SkillStore/SkillList/Community/Item.tsx
@@ -1,7 +1,16 @@
'use client';
-import { Block, DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, createModal } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ confirmModal,
+ createModal,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t as translate } from 'i18next';
import { MoreVerticalIcon, Plus, Trash2 } from 'lucide-react';
diff --git a/src/features/SkillStore/SkillList/Community/MarketSkillItem.tsx b/src/features/SkillStore/SkillList/Community/MarketSkillItem.tsx
index 1ab8954340e..f7892f5e61e 100644
--- a/src/features/SkillStore/SkillList/Community/MarketSkillItem.tsx
+++ b/src/features/SkillStore/SkillList/Community/MarketSkillItem.tsx
@@ -1,9 +1,19 @@
'use client';
-import { Block, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar, confirmModal, createModal, Tag } from '@lobehub/ui/base-ui';
+import {
+ ActionIcon,
+ Avatar,
+ Block,
+ confirmModal,
+ createModal,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Tag,
+} from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cssVar } from 'antd-style';
import { t as translate } from 'i18next';
import { DownloadIcon, Loader2, MoreVerticalIcon, Plus, Trash2 } from 'lucide-react';
import { lazy, memo, Suspense, useCallback, useState } from 'react';
diff --git a/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx b/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx
index 06e42a993e3..2e505caa8c6 100644
--- a/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx
+++ b/src/features/SkillStore/SkillList/ImportFromGithubModal.tsx
@@ -10,7 +10,7 @@ import {
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { GithubIcon } from '@lobehub/ui/icons';
import { ArrowLeftRight, Sparkles } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
@@ -59,7 +59,7 @@ const ImportFromGithubContent = memo(() => {
<Icon
icon={ArrowLeftRight}
size={16}
- style={{ color: 'var(--ant-color-text-tertiary)' }}
+ style={{ color: 'var(--lobe-color-text-tertiary)' }}
/>
<Icon icon={Sparkles} size={28} />
</Flexbox>
diff --git a/src/features/SkillStore/SkillList/ImportFromUrlModal.tsx b/src/features/SkillStore/SkillList/ImportFromUrlModal.tsx
index 768bcf70877..4b4e0154232 100644
--- a/src/features/SkillStore/SkillList/ImportFromUrlModal.tsx
+++ b/src/features/SkillStore/SkillList/ImportFromUrlModal.tsx
@@ -10,7 +10,7 @@ import {
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { ArrowLeftRight, Link, Sparkles } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -58,7 +58,7 @@ const ImportFromUrlContent = memo(() => {
<Icon
icon={ArrowLeftRight}
size={16}
- style={{ color: 'var(--ant-color-text-tertiary)' }}
+ style={{ color: 'var(--lobe-color-text-tertiary)' }}
/>
<Icon icon={Sparkles} size={28} />
</Flexbox>
diff --git a/src/features/SkillStore/SkillList/Loading.tsx b/src/features/SkillStore/SkillList/Loading.tsx
index 9a7544243a3..584d7fa870d 100644
--- a/src/features/SkillStore/SkillList/Loading.tsx
+++ b/src/features/SkillStore/SkillList/Loading.tsx
@@ -1,5 +1,4 @@
-import { Block, Center, Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { Block, Center, cssVar, Flexbox } from '@lobehub/ui';
import { SkeletonBar } from '@/components/Skeleton';
diff --git a/src/features/SkillStore/SkillList/LobeHub/Item.tsx b/src/features/SkillStore/SkillList/LobeHub/Item.tsx
index 23a9e2da0cd..f863ad55b00 100644
--- a/src/features/SkillStore/SkillList/LobeHub/Item.tsx
+++ b/src/features/SkillStore/SkillList/LobeHub/Item.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Block, DropdownMenu, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, confirmModal } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ confirmModal,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ stopPropagation,
+} from '@lobehub/ui';
import { Loader2, MoreVerticalIcon, Plus, Unplug } from 'lucide-react';
import React, { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillList/MCP/index.tsx b/src/features/SkillStore/SkillList/MCP/index.tsx
index 87119192207..cc47d20484e 100644
--- a/src/features/SkillStore/SkillList/MCP/index.tsx
+++ b/src/features/SkillStore/SkillList/MCP/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Center, Flexbox, Icon, Text } from '@lobehub/ui';
import { ServerCrash } from 'lucide-react';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx b/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx
index d4cda6566d8..c9132283671 100644
--- a/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx
+++ b/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx
@@ -2,9 +2,7 @@
import { type SkillResourceTreeNode } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Avatar, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { unzip } from 'fflate';
import { DotIcon, ExternalLinkIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
diff --git a/src/features/SkillStore/SkillList/MarketSkills/index.tsx b/src/features/SkillStore/SkillList/MarketSkills/index.tsx
index 85c157a4a70..946a5d4e822 100644
--- a/src/features/SkillStore/SkillList/MarketSkills/index.tsx
+++ b/src/features/SkillStore/SkillList/MarketSkills/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Flexbox, Icon, Text } from '@lobehub/ui';
import { uniqBy } from 'es-toolkit/compat';
import { ServerCrash } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/features/SkillStore/SkillList/UploadSkillModal.tsx b/src/features/SkillStore/SkillList/UploadSkillModal.tsx
index f98b090f5d0..cc468cea9cc 100644
--- a/src/features/SkillStore/SkillList/UploadSkillModal.tsx
+++ b/src/features/SkillStore/SkillList/UploadSkillModal.tsx
@@ -10,7 +10,7 @@ import {
toast,
Upload,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { sha256 } from 'js-sha256';
import { ArrowLeftRight, InboxIcon, Sparkles, Upload as UploadIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
@@ -77,7 +77,7 @@ const UploadSkillContent = memo(() => {
<Icon
icon={ArrowLeftRight}
size={16}
- style={{ color: 'var(--ant-color-text-tertiary)' }}
+ style={{ color: 'var(--lobe-color-text-tertiary)' }}
/>
<Icon icon={Sparkles} size={28} />
</Flexbox>
@@ -109,7 +109,7 @@ const UploadSkillContent = memo(() => {
<Icon
icon={InboxIcon}
size={48}
- style={{ color: 'var(--ant-color-text-quaternary)' }}
+ style={{ color: 'var(--lobe-color-text-quaternary)' }}
/>
<Text type={'secondary'}>{t('agentSkillModal.upload.dragText')}</Text>
</>
diff --git a/src/features/SkillStore/SkillList/VirtuosoLoading.tsx b/src/features/SkillStore/SkillList/VirtuosoLoading.tsx
index a2f98401d52..385e44dab8f 100644
--- a/src/features/SkillStore/SkillList/VirtuosoLoading.tsx
+++ b/src/features/SkillStore/SkillList/VirtuosoLoading.tsx
@@ -1,6 +1,4 @@
-import { Center } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Spin } from '@lobehub/ui';
const VirtuosoLoading = () => {
return (
diff --git a/src/features/SkillStore/SkillList/WantMoreSkills.tsx b/src/features/SkillStore/SkillList/WantMoreSkills.tsx
index 60a00a1238d..32848961757 100644
--- a/src/features/SkillStore/SkillList/WantMoreSkills.tsx
+++ b/src/features/SkillStore/SkillList/WantMoreSkills.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/SkillList/style.ts b/src/features/SkillStore/SkillList/style.ts
index b6b44d3ed5a..ba1b7d800e9 100644
--- a/src/features/SkillStore/SkillList/style.ts
+++ b/src/features/SkillStore/SkillList/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, responsive } from 'antd-style';
+import { createStaticStyles, responsive } from '@lobehub/ui';
export const gridStyles = createStaticStyles(({ css }) => ({
grid: css`
diff --git a/src/features/SkillStore/SkillStoreContent.tsx b/src/features/SkillStore/SkillStoreContent.tsx
index 60ff6942546..d200396193c 100644
--- a/src/features/SkillStore/SkillStoreContent.tsx
+++ b/src/features/SkillStore/SkillStoreContent.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { Tabs, type TabsItem } from '@lobehub/ui/base-ui';
+import { Tabs, type TabsItem } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillStore/index.tsx b/src/features/SkillStore/index.tsx
index 8d9d8ee9f6d..70444f0f973 100644
--- a/src/features/SkillStore/index.tsx
+++ b/src/features/SkillStore/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import { t } from 'i18next';
import { isDesktop } from '@/const/version';
diff --git a/src/features/SkillsList/RenameSkillModal.tsx b/src/features/SkillsList/RenameSkillModal.tsx
index 600f63aed12..d24af4ca31a 100644
--- a/src/features/SkillsList/RenameSkillModal.tsx
+++ b/src/features/SkillsList/RenameSkillModal.tsx
@@ -1,15 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import {
- Button,
- createModal,
- Input,
- type ModalInstance,
- Text,
- useModalContext,
-} from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
+import { Button, createModal, Input, type ModalInstance, Text, useModalContext } from '@lobehub/ui';
import { t } from 'i18next';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SkillsList/SkillSection.tsx b/src/features/SkillsList/SkillSection.tsx
index bfc3c0c2294..7e7824d3e95 100644
--- a/src/features/SkillsList/SkillSection.tsx
+++ b/src/features/SkillsList/SkillSection.tsx
@@ -1,6 +1,4 @@
-import { Center, Flexbox } from '@lobehub/ui';
-import { Accordion, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Accordion, Center, createStaticStyles, Flexbox, Spin, Text } from '@lobehub/ui';
import { memo, type ReactNode, useState } from 'react';
import AsyncError from '@/components/AsyncError';
diff --git a/src/features/SkillsList/SkillsList.tsx b/src/features/SkillsList/SkillsList.tsx
index e367cd434d5..aa968605e0b 100644
--- a/src/features/SkillsList/SkillsList.tsx
+++ b/src/features/SkillsList/SkillsList.tsx
@@ -1,9 +1,8 @@
import { EMPTY_ARRAY } from '@lobechat/const';
import type { SFSymbol } from '@lobechat/electron-client-ipc';
-import { ContextMenuTrigger, Flexbox, type GenericItemType, Icon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { ContextMenuTrigger, type DropdownItem, Flexbox, Icon, Tooltip } from '@lobehub/ui';
+import { createStaticStyles, cx, Text } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
-import { createStaticStyles, cx } from 'antd-style';
import { ChevronRightIcon, FileIcon, FolderIcon, type LucideIcon } from 'lucide-react';
import type React from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
@@ -346,7 +345,7 @@ const SkillRow = memo<SkillRowProps>(
);
const contextMenuItems = useCallback(
- (): (GenericItemType & { sfSymbol?: SFSymbol })[] =>
+ (): (DropdownItem & { sfSymbol?: SFSymbol })[] =>
actions.map((action) => ({
danger: action.danger,
disabled: action.disabled,
diff --git a/src/features/SuggestQuestions/Item.tsx b/src/features/SuggestQuestions/Item.tsx
index d0826047918..f3dc23866f5 100644
--- a/src/features/SuggestQuestions/Item.tsx
+++ b/src/features/SuggestQuestions/Item.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import { useChatStore } from '@/store/chat';
diff --git a/src/features/SuggestQuestions/List.tsx b/src/features/SuggestQuestions/List.tsx
index d9c898ce82d..2dc72f14714 100644
--- a/src/features/SuggestQuestions/List.tsx
+++ b/src/features/SuggestQuestions/List.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar, Flexbox, Text } from '@lobehub/ui';
import { RefreshCw } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/SuggestQuestions/Skeleton.tsx b/src/features/SuggestQuestions/Skeleton.tsx
index a9ca1261dfb..8f237447391 100644
--- a/src/features/SuggestQuestions/Skeleton.tsx
+++ b/src/features/SuggestQuestions/Skeleton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton as LobeSkeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton as LobeSkeleton } from '@lobehub/ui';
import { memo } from 'react';
interface SkeletonProps {
diff --git a/src/features/TaskDock/Item.tsx b/src/features/TaskDock/Item.tsx
index e99fe325a06..ad085609d76 100644
--- a/src/features/TaskDock/Item.tsx
+++ b/src/features/TaskDock/Item.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { CopyIcon, ExternalLinkIcon, RotateCwIcon, XIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/TaskDock/index.tsx b/src/features/TaskDock/index.tsx
index 4e44a470d71..23baab8cc0c 100644
--- a/src/features/TaskDock/index.tsx
+++ b/src/features/TaskDock/index.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Spin, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Icon, Spin, Text } from '@lobehub/ui';
import {
CheckIcon,
ChevronDownIcon,
diff --git a/src/features/TaskDock/providers/useFileUploadDockTasks.tsx b/src/features/TaskDock/providers/useFileUploadDockTasks.tsx
index 593a605fd87..2a7194347a4 100644
--- a/src/features/TaskDock/providers/useFileUploadDockTasks.tsx
+++ b/src/features/TaskDock/providers/useFileUploadDockTasks.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ToolSetting/ChannelItem.tsx b/src/features/ToolSetting/ChannelItem.tsx
index 8adeab63b27..fa11d3b4fc0 100644
--- a/src/features/ToolSetting/ChannelItem.tsx
+++ b/src/features/ToolSetting/ChannelItem.tsx
@@ -1,6 +1,13 @@
-import { Center, Flexbox, SortableList, Tooltip } from '@lobehub/ui';
-import { Switch, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ SortableList,
+ Switch,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ToolSetting/ChannelSection.tsx b/src/features/ToolSetting/ChannelSection.tsx
index 9e912b46e36..b3e446cc35f 100644
--- a/src/features/ToolSetting/ChannelSection.tsx
+++ b/src/features/ToolSetting/ChannelSection.tsx
@@ -1,5 +1,4 @@
-import { Block, Empty, Flexbox, SortableList } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Block, Empty, Flexbox, SortableList, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/ToolTag/index.tsx b/src/features/ToolTag/index.tsx
index 7060c58f39b..efde4046d5e 100644
--- a/src/features/ToolTag/index.tsx
+++ b/src/features/ToolTag/index.tsx
@@ -2,9 +2,7 @@
import { type ComposioAppType } from '@lobechat/const';
import { COMPOSIO_APP_TYPES } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, Icon, Tag } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useMemo } from 'react';
diff --git a/src/features/TopicComment/MessageCommentBadge.tsx b/src/features/TopicComment/MessageCommentBadge.tsx
index 4ddea47c194..0715a8ecb94 100644
--- a/src/features/TopicComment/MessageCommentBadge.tsx
+++ b/src/features/TopicComment/MessageCommentBadge.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox } from '@lobehub/ui';
import { MessageCircle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/TopicComment/TopicCommentButton.tsx b/src/features/TopicComment/TopicCommentButton.tsx
index e620f2359a3..c11253006c9 100644
--- a/src/features/TopicComment/TopicCommentButton.tsx
+++ b/src/features/TopicComment/TopicCommentButton.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, Badge } from '@lobehub/ui/base-ui';
+import { ActionIcon, Badge } from '@lobehub/ui';
import { MessageCircle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/TopicCreatorAvatar/index.tsx b/src/features/TopicCreatorAvatar/index.tsx
index e3470e964fb..1511e4591e0 100644
--- a/src/features/TopicCreatorAvatar/index.tsx
+++ b/src/features/TopicCreatorAvatar/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { BotSenderMetadata } from '@lobechat/types';
-import { Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Tooltip } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useAuthorInfo } from '@/business/client/hooks/useAuthorInfo';
diff --git a/src/features/TopicDoctorModal/Content.tsx b/src/features/TopicDoctorModal/Content.tsx
index 467894c2d0a..e3052d043c8 100644
--- a/src/features/TopicDoctorModal/Content.tsx
+++ b/src/features/TopicDoctorModal/Content.tsx
@@ -1,9 +1,17 @@
'use client';
import type { TopicIssue } from '@lobechat/conversation-flow';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Skeleton, Text, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Text,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
import { CircleAlert, CircleCheck, EyeOff, Stethoscope } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/TopicDoctorModal/index.tsx b/src/features/TopicDoctorModal/index.tsx
index 48b85ee12fc..5d0c337bc9b 100644
--- a/src/features/TopicDoctorModal/index.tsx
+++ b/src/features/TopicDoctorModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import TopicDoctorContent, { type TopicDoctorContentProps } from './Content';
diff --git a/src/features/TopicPopupGuard/index.tsx b/src/features/TopicPopupGuard/index.tsx
index 615ad582ba7..5e39370cea8 100644
--- a/src/features/TopicPopupGuard/index.tsx
+++ b/src/features/TopicPopupGuard/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { type TopicPopupInfo } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox } from '@lobehub/ui';
import { ExternalLinkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/User/DataStatistics.tsx b/src/features/User/DataStatistics.tsx
index 8e459e8495a..32ae2055a2b 100644
--- a/src/features/User/DataStatistics.tsx
+++ b/src/features/User/DataStatistics.tsx
@@ -1,9 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Badge, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Badge, createStaticStyles, cssVar, Flexbox, Spin, Tooltip } from '@lobehub/ui';
import { isUndefined } from 'es-toolkit/compat';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/User/UserAvatar.tsx b/src/features/User/UserAvatar.tsx
index 0a54fc1a8a1..434eb3de28d 100644
--- a/src/features/User/UserAvatar.tsx
+++ b/src/features/User/UserAvatar.tsx
@@ -1,8 +1,8 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Avatar, type AvatarProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, type AvatarProps } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { useMemo } from 'react';
import { DEFAULT_USER_AVATAR_URL } from '@/const/meta';
diff --git a/src/features/User/UserInfo.tsx b/src/features/User/UserInfo.tsx
index fbeb10d7774..630217d5e3a 100644
--- a/src/features/User/UserInfo.tsx
+++ b/src/features/User/UserInfo.tsx
@@ -1,9 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import ThemeButton from '@/features/User/UserPanel/ThemeButton';
diff --git a/src/features/User/UserLoginOrSignup/Community.tsx b/src/features/User/UserLoginOrSignup/Community.tsx
index 3cf36f6f5c1..d19cb42c205 100644
--- a/src/features/User/UserLoginOrSignup/Community.tsx
+++ b/src/features/User/UserLoginOrSignup/Community.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/User/UserPanel/LangButton.tsx b/src/features/User/UserPanel/LangButton.tsx
index eab88bdc710..e71319384fa 100644
--- a/src/features/User/UserPanel/LangButton.tsx
+++ b/src/features/User/UserPanel/LangButton.tsx
@@ -1,7 +1,5 @@
import { type DropdownMenuCheckboxItem, type DropdownMenuProps } from '@lobehub/ui';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, DropdownMenu, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRight, GlobeIcon } from 'lucide-react';
import { memo, type ReactNode, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/User/UserPanel/PanelContentSkeleton.tsx b/src/features/User/UserPanel/PanelContentSkeleton.tsx
index 9c84b9c0ac9..4f7218605fa 100644
--- a/src/features/User/UserPanel/PanelContentSkeleton.tsx
+++ b/src/features/User/UserPanel/PanelContentSkeleton.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const PanelContentSkeleton = memo(() => {
diff --git a/src/features/User/UserPanel/ThemeButton.tsx b/src/features/User/UserPanel/ThemeButton.tsx
index 38287901258..6fee0de1f29 100644
--- a/src/features/User/UserPanel/ThemeButton.tsx
+++ b/src/features/User/UserPanel/ThemeButton.tsx
@@ -1,6 +1,5 @@
import { type DropdownMenuProps } from '@lobehub/ui';
-import { DropdownMenu, Icon } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu, Icon } from '@lobehub/ui';
import { Monitor, Moon, Sun } from 'lucide-react';
import { useTheme as useNextThemesTheme } from 'next-themes';
import { type FC, useMemo } from 'react';
diff --git a/src/features/User/UserPanel/UpgradeBadge.tsx b/src/features/User/UserPanel/UpgradeBadge.tsx
index 677daba0eb7..358c60a3a1e 100644
--- a/src/features/User/UserPanel/UpgradeBadge.tsx
+++ b/src/features/User/UserPanel/UpgradeBadge.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import { type PropsWithChildren } from 'react';
import { memo } from 'react';
diff --git a/src/features/User/UserPanel/index.tsx b/src/features/User/UserPanel/index.tsx
index 9c8d6c908d9..ee3aa14124f 100644
--- a/src/features/User/UserPanel/index.tsx
+++ b/src/features/User/UserPanel/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Popover } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Popover } from '@lobehub/ui';
import { type PropsWithChildren } from 'react';
import { memo, Suspense, useState } from 'react';
diff --git a/src/features/User/UserPanel/useMenu.tsx b/src/features/User/UserPanel/useMenu.tsx
index 68a0985a442..1575dfd82b4 100644
--- a/src/features/User/UserPanel/useMenu.tsx
+++ b/src/features/User/UserPanel/useMenu.tsx
@@ -1,7 +1,6 @@
import { LOBE_CHAT_CLOUD, UTM_SOURCE } from '@lobechat/business-const';
import { isDesktop } from '@lobechat/const';
-import { Flexbox, Hotkey, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Hotkey, Icon, Tag } from '@lobehub/ui';
import { BrainCircuit, Cloudy, Download, HardDriveDownload, LogOut, Settings2 } from 'lucide-react';
import type { PropsWithChildren } from 'react';
import { memo } from 'react';
diff --git a/src/features/VisibilityConfirmContent/index.tsx b/src/features/VisibilityConfirmContent/index.tsx
index a6c9175bea5..9ef5eae6ce8 100644
--- a/src/features/VisibilityConfirmContent/index.tsx
+++ b/src/features/VisibilityConfirmContent/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import {
AlertTriangleIcon,
CheckIcon,
diff --git a/src/features/WideScreenContainer/WideScreenButton.tsx b/src/features/WideScreenContainer/WideScreenButton.tsx
index 7f759c1951c..f4064a8724c 100644
--- a/src/features/WideScreenContainer/WideScreenButton.tsx
+++ b/src/features/WideScreenContainer/WideScreenButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { PanelLeftRightDashedIcon, SquareChartGanttIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WideScreenContainer/index.tsx b/src/features/WideScreenContainer/index.tsx
index 809b6174ca1..b3857b1db21 100644
--- a/src/features/WideScreenContainer/index.tsx
+++ b/src/features/WideScreenContainer/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { type CSSProperties } from 'react';
import { memo, useEffect } from 'react';
diff --git a/src/features/Work/ShareVisitorDocumentModal/Content.tsx b/src/features/Work/ShareVisitorDocumentModal/Content.tsx
index 0c0e07c4c3d..1df767ddcbb 100644
--- a/src/features/Work/ShareVisitorDocumentModal/Content.tsx
+++ b/src/features/Work/ShareVisitorDocumentModal/Content.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Markdown } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
+import { Markdown, Skeleton, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Work/ShareVisitorDocumentModal/index.tsx b/src/features/Work/ShareVisitorDocumentModal/index.tsx
index 49a254f32d4..7c1f330eb5d 100644
--- a/src/features/Work/ShareVisitorDocumentModal/index.tsx
+++ b/src/features/Work/ShareVisitorDocumentModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal } from '@lobehub/ui/base-ui';
+import { createModal } from '@lobehub/ui';
import ShareVisitorDocumentContent, { type ShareVisitorDocumentContentProps } from './Content';
diff --git a/src/features/Work/WorkSummaryCard.tsx b/src/features/Work/WorkSummaryCard.tsx
index 8bec0b66df5..9670a3be50d 100644
--- a/src/features/Work/WorkSummaryCard.tsx
+++ b/src/features/Work/WorkSummaryCard.tsx
@@ -2,9 +2,7 @@
import type { WorkSummaryItem } from '@lobechat/types';
import { formatUsageValue } from '@lobechat/utils';
-import { Center, Flexbox, Icon as LobeIcon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Center, createStaticStyles, cx, Flexbox, Icon as LobeIcon, Text } from '@lobehub/ui';
import { CircleDollarSignIcon, CoinsIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Work/useRemoveWork.ts b/src/features/Work/useRemoveWork.ts
index 4e5a7f7a2f6..f77d4747d6c 100644
--- a/src/features/Work/useRemoveWork.ts
+++ b/src/features/Work/useRemoveWork.ts
@@ -1,5 +1,5 @@
import type { WorkListBaseItem } from '@lobechat/types';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkGallery/Skeleton.tsx b/src/features/WorkGallery/Skeleton.tsx
index 2086dc4763e..1cfad49aa94 100644
--- a/src/features/WorkGallery/Skeleton.tsx
+++ b/src/features/WorkGallery/Skeleton.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import ArticleSkeleton from '@/components/Skeleton/Article';
diff --git a/src/features/WorkGallery/WorkPreview.tsx b/src/features/WorkGallery/WorkPreview.tsx
index 21328fb3094..28ab7767cf6 100644
--- a/src/features/WorkGallery/WorkPreview.tsx
+++ b/src/features/WorkGallery/WorkPreview.tsx
@@ -2,9 +2,7 @@
import type { WorkSummaryItem } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tag, Text } from '@lobehub/ui';
import { CheckCircle2Icon, GitPullRequestIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkGallery/WorkPreviewCard.tsx b/src/features/WorkGallery/WorkPreviewCard.tsx
index 6094bd6710c..73d44092690 100644
--- a/src/features/WorkGallery/WorkPreviewCard.tsx
+++ b/src/features/WorkGallery/WorkPreviewCard.tsx
@@ -2,9 +2,7 @@
import type { WorkSummaryItem } from '@lobechat/types';
import { formatTokenNumber } from '@lobechat/utils/format';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, cx, Flexbox, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkGallery/index.tsx b/src/features/WorkGallery/index.tsx
index 09733a0ae40..e13402ab0fc 100644
--- a/src/features/WorkGallery/index.tsx
+++ b/src/features/WorkGallery/index.tsx
@@ -1,9 +1,16 @@
'use client';
import type { WorkSummaryItem } from '@lobechat/types';
-import { Center, Empty, Flexbox } from '@lobehub/ui';
-import { Avatar, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ Button,
+ Center,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Empty,
+ Flexbox,
+} from '@lobehub/ui';
import { PackageOpenIcon, TriangleAlertIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkingDirectory/AddWorkingDirModal.tsx b/src/features/WorkingDirectory/AddWorkingDirModal.tsx
index 444092e9f23..d8201a79f8e 100644
--- a/src/features/WorkingDirectory/AddWorkingDirModal.tsx
+++ b/src/features/WorkingDirectory/AddWorkingDirModal.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import type { ModalInstance } from '@lobehub/ui/base-ui';
-import { Button, createModal, Input, Text, useModalContext } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import type { ModalInstance } from '@lobehub/ui';
+import { Button, createModal, cssVar, Flexbox, Input, Text, useModalContext } from '@lobehub/ui';
import { t } from 'i18next';
import { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkingDirectory/NewFolderInput.tsx b/src/features/WorkingDirectory/NewFolderInput.tsx
index a172de112bf..9e9db89c893 100644
--- a/src/features/WorkingDirectory/NewFolderInput.tsx
+++ b/src/features/WorkingDirectory/NewFolderInput.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Input, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Flexbox, Icon, Input, Text } from '@lobehub/ui';
import { FolderPlusIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkingDirectory/RemoteDirectoryBrowser.tsx b/src/features/WorkingDirectory/RemoteDirectoryBrowser.tsx
index 36945d4b29b..3e14def6f71 100644
--- a/src/features/WorkingDirectory/RemoteDirectoryBrowser.tsx
+++ b/src/features/WorkingDirectory/RemoteDirectoryBrowser.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Button, cssVar, Flexbox, Input, Spin, Text } from '@lobehub/ui';
import { ArrowUpIcon, FolderPlusIcon, HouseIcon, RefreshCwIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkingDirectory/useCreateFolder.test.ts b/src/features/WorkingDirectory/useCreateFolder.test.ts
index 6b4c2451306..aa6ba8b5926 100644
--- a/src/features/WorkingDirectory/useCreateFolder.test.ts
+++ b/src/features/WorkingDirectory/useCreateFolder.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
diff --git a/src/features/WorkingDirectory/useCreateFolder.ts b/src/features/WorkingDirectory/useCreateFolder.ts
index a08070a7189..b414c30c30c 100644
--- a/src/features/WorkingDirectory/useCreateFolder.ts
+++ b/src/features/WorkingDirectory/useCreateFolder.ts
@@ -1,5 +1,5 @@
import { isValidDirectoryName, isWindowsDevicePath } from '@lobechat/utils/directoryName';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/Workspace/WorkspaceSlugBoundary.tsx b/src/features/Workspace/WorkspaceSlugBoundary.tsx
index 2ec646228c0..d41ffd02dcc 100644
--- a/src/features/Workspace/WorkspaceSlugBoundary.tsx
+++ b/src/features/Workspace/WorkspaceSlugBoundary.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Center } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
import { Outlet, useNavigate } from 'react-router';
diff --git a/src/features/Workspace/useWorkspaceAwareNavigate.desktop.test.ts b/src/features/Workspace/useWorkspaceAwareNavigate.desktop.test.ts
index a5bc20f49b9..3ba78275974 100644
--- a/src/features/Workspace/useWorkspaceAwareNavigate.desktop.test.ts
+++ b/src/features/Workspace/useWorkspaceAwareNavigate.desktop.test.ts
@@ -1,4 +1,4 @@
-import { ModalHost } from '@lobehub/ui/base-ui';
+import { ModalHost } from '@lobehub/ui';
import {
act,
cleanup,
diff --git a/src/features/WorkspaceDeleteAllModal/index.tsx b/src/features/WorkspaceDeleteAllModal/index.tsx
index e5249a1c380..0fecccb3d50 100644
--- a/src/features/WorkspaceDeleteAllModal/index.tsx
+++ b/src/features/WorkspaceDeleteAllModal/index.tsx
@@ -8,7 +8,7 @@ import {
type ModalInstance,
Text,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
interface WorkspaceDeleteAllModalContentProps {
diff --git a/src/features/WorkspaceSetting/AdminOnly.tsx b/src/features/WorkspaceSetting/AdminOnly.tsx
index b66542fba2a..b65493e7da3 100644
--- a/src/features/WorkspaceSetting/AdminOnly.tsx
+++ b/src/features/WorkspaceSetting/AdminOnly.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, FluentEmoji } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, FluentEmoji } from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkspaceSetting/Container/index.tsx b/src/features/WorkspaceSetting/Container/index.tsx
index 9c62bee7447..c46e6657ec2 100644
--- a/src/features/WorkspaceSetting/Container/index.tsx
+++ b/src/features/WorkspaceSetting/Container/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox, type FlexboxProps } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo, type PropsWithChildren, type ReactNode } from 'react';
interface WorkspaceSettingsContainerProps extends FlexboxProps {
diff --git a/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx b/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx
index ca81713eb76..2f195395682 100644
--- a/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx
+++ b/src/features/WorkspaceSetting/Labels/DeleteLabelModal.tsx
@@ -1,14 +1,14 @@
import { type AgentLabelListItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ Flexbox,
Input,
ModalFooter,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx b/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx
index 22d4ec0b2c1..6307c1678c4 100644
--- a/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx
+++ b/src/features/WorkspaceSetting/Labels/LabelFormModal.tsx
@@ -1,14 +1,15 @@
import { type AgentLabelListItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
+ createStaticStyles,
+ cx,
+ Flexbox,
Input,
ModalFooter,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+} from '@lobehub/ui';
import { t as translate } from 'i18next';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkspaceSetting/Labels/index.tsx b/src/features/WorkspaceSetting/Labels/index.tsx
index 111848ae61c..11402bf3021 100644
--- a/src/features/WorkspaceSetting/Labels/index.tsx
+++ b/src/features/WorkspaceSetting/Labels/index.tsx
@@ -1,9 +1,20 @@
'use client';
import { type AgentLabelListItem } from '@lobechat/types';
-import { Empty, Flexbox, Icon, SearchBar, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, DropdownMenu, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ DropdownMenu,
+ Empty,
+ Flexbox,
+ Icon,
+ SearchBar,
+ Text,
+ toast,
+ Tooltip,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import isEqual from 'fast-deep-equal';
import {
diff --git a/src/features/WorkspaceSetting/Layout.tsx b/src/features/WorkspaceSetting/Layout.tsx
index 0a8f986467d..f6c30d27dab 100644
--- a/src/features/WorkspaceSetting/Layout.tsx
+++ b/src/features/WorkspaceSetting/Layout.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { type CSSProperties, type FC, memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Outlet, useMatch } from 'react-router';
diff --git a/src/features/WorkspaceSetting/SideBar/Body.tsx b/src/features/WorkspaceSetting/SideBar/Body.tsx
index 02dbe362294..da34d17f8b1 100644
--- a/src/features/WorkspaceSetting/SideBar/Body.tsx
+++ b/src/features/WorkspaceSetting/SideBar/Body.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Accordion, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Flexbox, Text } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { Link } from 'react-router';
diff --git a/src/features/WorkspaceSetting/Storage/index.tsx b/src/features/WorkspaceSetting/Storage/index.tsx
index 860d2781039..268fb5c889c 100644
--- a/src/features/WorkspaceSetting/Storage/index.tsx
+++ b/src/features/WorkspaceSetting/Storage/index.tsx
@@ -1,9 +1,8 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Icon } from '@lobehub/ui';
-import { Button, Switch } from '@lobehub/ui/base-ui';
-import { Form, type FormGroupItem, useForm } from '@lobehub/ui/base-ui/form';
+import { Button, Icon, Switch } from '@lobehub/ui';
+import { Form, type FormGroupItem, useForm } from '@lobehub/ui/form';
import { HardDriveDownload, HardDriveUpload } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/features/WorkspaceSetting/Title.tsx b/src/features/WorkspaceSetting/Title.tsx
index cc5d4d2ba06..78ba5ded223 100644
--- a/src/features/WorkspaceSetting/Title.tsx
+++ b/src/features/WorkspaceSetting/Title.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
const WorkspaceSettingsTitle = memo<PropsWithChildren>(({ children }) => (
diff --git a/src/features/WorkspaceSetting/hooks/useCategory.tsx b/src/features/WorkspaceSetting/hooks/useCategory.tsx
index baced16d05d..027a91f75f1 100644
--- a/src/features/WorkspaceSetting/hooks/useCategory.tsx
+++ b/src/features/WorkspaceSetting/hooks/useCategory.tsx
@@ -1,5 +1,5 @@
import { isDesktop } from '@lobechat/const';
-import { Avatar } from '@lobehub/ui/base-ui';
+import { Avatar } from '@lobehub/ui';
import { SkillsIcon } from '@lobehub/ui/icons';
import {
AppWindowIcon,
diff --git a/src/hooks/useDownloadImage.ts b/src/hooks/useDownloadImage.ts
index 4a39a23c89e..f31385351b5 100644
--- a/src/hooks/useDownloadImage.ts
+++ b/src/hooks/useDownloadImage.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useMemoizedFn } from 'ahooks';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/hooks/useImgToClipboard.ts b/src/hooks/useImgToClipboard.ts
index eab80dfc195..3aa0c518bb2 100644
--- a/src/hooks/useImgToClipboard.ts
+++ b/src/hooks/useImgToClipboard.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { useState } from 'react';
diff --git a/src/hooks/useIsMobile.ts b/src/hooks/useIsMobile.ts
index a0cdd783674..f0a017a7a77 100644
--- a/src/hooks/useIsMobile.ts
+++ b/src/hooks/useIsMobile.ts
@@ -1,4 +1,4 @@
-import { useResponsive } from 'antd-style';
+import { useResponsive } from '@lobehub/ui';
import { useMemo } from 'react';
export const useIsMobile = (): boolean => {
diff --git a/src/hooks/useScreenshot.ts b/src/hooks/useScreenshot.ts
index 1ab1c54e7fd..d8940f043e3 100644
--- a/src/hooks/useScreenshot.ts
+++ b/src/hooks/useScreenshot.ts
@@ -1,5 +1,5 @@
import { BRANDING_NAME } from '@lobechat/business-const';
-import { type TabsItem } from '@lobehub/ui/base-ui';
+import { type TabsItem } from '@lobehub/ui';
import { snapdom } from '@zumer/snapdom';
import dayjs from 'dayjs';
import { useCallback, useState } from 'react';
diff --git a/src/initialize.test.ts b/src/initialize.test.ts
index 19cefb24e06..10c1e2d95f1 100644
--- a/src/initialize.test.ts
+++ b/src/initialize.test.ts
@@ -2,7 +2,7 @@ import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
const { toastError } = vi.hoisted(() => ({ toastError: vi.fn() }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { error: toastError },
}));
diff --git a/src/layout/AuthProvider/BetterAuth/UserUpdater.tsx b/src/layout/AuthProvider/BetterAuth/UserUpdater.tsx
index f54d37deab4..ba67a5127f1 100644
--- a/src/layout/AuthProvider/BetterAuth/UserUpdater.tsx
+++ b/src/layout/AuthProvider/BetterAuth/UserUpdater.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Alert, Button, cssVar, Flexbox } from '@lobehub/ui';
import { memo, type PropsWithChildren, useEffect, useLayoutEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx b/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx
index f36aaaf9f4b..571ddbff9c5 100644
--- a/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx
+++ b/src/layout/AuthProvider/MarketAuth/ClaimResourcesModal.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Checkbox, Text, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Checkbox, cssVar, Flexbox, Text, toast } from '@lobehub/ui';
import { Package, Wrench } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/AuthProvider/MarketAuth/MarketAuthConfirmModal.tsx b/src/layout/AuthProvider/MarketAuth/MarketAuthConfirmModal.tsx
index e5e64c38288..119a88145c1 100644
--- a/src/layout/AuthProvider/MarketAuth/MarketAuthConfirmModal.tsx
+++ b/src/layout/AuthProvider/MarketAuth/MarketAuthConfirmModal.tsx
@@ -1,9 +1,7 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Block } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Block, createStaticStyles, cx, Text } from '@lobehub/ui';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/layout/AuthProvider/MarketAuth/MarketAuthProvider.tsx b/src/layout/AuthProvider/MarketAuth/MarketAuthProvider.tsx
index 44cf77b2353..9c122fedc46 100644
--- a/src/layout/AuthProvider/MarketAuth/MarketAuthProvider.tsx
+++ b/src/layout/AuthProvider/MarketAuth/MarketAuthProvider.tsx
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { createContext, lazy, Suspense, use, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx b/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx
index e8d50508206..8e791f35b22 100644
--- a/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx
+++ b/src/layout/AuthProvider/MarketAuth/ProfileSetupModal.tsx
@@ -1,9 +1,19 @@
'use client';
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { confirmModal, Input, Text, TextArea, toast, Upload } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { cssVar } from 'antd-style';
+import {
+ Center,
+ confirmModal,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Text,
+ TextArea,
+ toast,
+ Tooltip,
+ Upload,
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { CircleHelp, Globe, ImagePlus, Trash2 } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/AuthProvider/MarketAuth/SocialConnectButton.tsx b/src/layout/AuthProvider/MarketAuth/SocialConnectButton.tsx
index a3727865f40..fd5aec7e49f 100644
--- a/src/layout/AuthProvider/MarketAuth/SocialConnectButton.tsx
+++ b/src/layout/AuthProvider/MarketAuth/SocialConnectButton.tsx
@@ -1,9 +1,7 @@
'use client';
import { SiGithub, SiX } from '@icons-pack/react-simple-icons';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, Spin, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Button, cssVar, Flexbox, Spin, Text, Tooltip } from '@lobehub/ui';
import { ArrowRight, Link2Off, Loader2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/GlobalProvider/AppTheme.tsx b/src/layout/GlobalProvider/AppTheme.tsx
index af44b3aa0e4..f73a6ee3c88 100644
--- a/src/layout/GlobalProvider/AppTheme.tsx
+++ b/src/layout/GlobalProvider/AppTheme.tsx
@@ -1,10 +1,11 @@
'use client';
-import 'antd/dist/reset.css';
+import '@lobehub/ui/theme.css';
+import '@lobehub/ui/global.css';
+import '@lobehub/ui/style.css';
import { type NeutralColors, type PrimaryColors } from '@lobehub/ui';
-import { ConfigProvider, FontLoader, ThemeProvider } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ConfigProvider, createStaticStyles, cx, FontLoader, setLobeTheme } from '@lobehub/ui';
import * as m from 'motion/react-m';
import { type ReactNode } from 'react';
import { memo, useEffect, useMemo, useState } from 'react';
@@ -12,7 +13,6 @@ import { memo, useEffect, useMemo, useState } from 'react';
import Link from '@/components/Link';
import { genFontFamily, genFontFamilyCode } from '@/const/font';
import { LOBE_THEME_NEUTRAL_COLOR, LOBE_THEME_PRIMARY_COLOR } from '@/const/theme';
-import { useIsDark } from '@/hooks/useIsDark';
import { getUILocaleAndResources } from '@/libs/getUILocaleAndResources';
import type { UILocaleResources } from '@/libs/getUILocaleAndResources.utils';
import { resolveUILocale } from '@/libs/getUILocaleAndResources.utils';
@@ -98,12 +98,9 @@ const AppTheme = memo<AppThemeProps>(
customFontFamily,
}) => {
const language = useGlobalStore(systemStatusSelectors.language);
- const isDark = useIsDark();
-
- const [primaryColor, neutralColor, animationMode, fontAntialiasing] = useUserStore((s) => [
+ const [primaryColor, neutralColor, fontAntialiasing] = useUserStore((s) => [
userGeneralSettingsSelectors.primaryColor(s),
userGeneralSettingsSelectors.neutralColor(s),
- userGeneralSettingsSelectors.animationMode(s),
userGeneralSettingsSelectors.fontAntialiasing(s),
]);
const [userFontFamily, userFontFamilyCode] = useUserStore((s) => [
@@ -152,6 +149,19 @@ const AppTheme = memo<AppThemeProps>(
setCookie(LOBE_THEME_PRIMARY_COLOR, primaryColor);
}, [primaryColor]);
+ useEffect(() => {
+ setLobeTheme({
+ neutralColor: neutralColor ?? defaultNeutralColor,
+ primaryColor: primaryColor ?? defaultPrimaryColor,
+ });
+ }, [primaryColor, neutralColor, defaultPrimaryColor, defaultNeutralColor]);
+
+ useEffect(() => {
+ const { style } = document.documentElement;
+ style.setProperty('--lobe-font-family', fontFamily);
+ style.setProperty('--lobe-font-family-code', fontFamilyCode);
+ }, [fontFamily, fontFamilyCode]);
+
useEffect(() => {
setCookie(LOBE_THEME_NEUTRAL_COLOR, neutralColor);
}, [neutralColor]);
@@ -161,8 +171,6 @@ const AppTheme = memo<AppThemeProps>(
else document.documentElement.dataset.fontAntialiasing = 'off';
}, [fontAntialiasing]);
- const currentAppearence = isDark ? 'dark' : 'light';
-
return (
<ConfigProvider
locale={uiLocale}
@@ -175,29 +183,11 @@ const AppTheme = memo<AppThemeProps>(
proxy: globalCDN ? 'unpkg' : undefined,
}}
>
- <ThemeProvider
- appearance={currentAppearence}
- className={cx(styles.app, styles.scrollbar, styles.scrollbarPolyfill)}
- defaultAppearance={currentAppearence}
- defaultThemeMode={currentAppearence}
- customTheme={{
- neutralColor: neutralColor ?? defaultNeutralColor,
- primaryColor: primaryColor ?? defaultPrimaryColor,
- }}
- theme={{
- cssVar: { key: 'lobe-vars' },
- token: {
- fontFamily,
- fontFamilyCode,
- motion: animationMode !== 'disabled',
- motionUnit: animationMode === 'agile' ? 0.05 : 0.1,
- },
- }}
- >
+ <div className={cx(styles.app, styles.scrollbar, styles.scrollbarPolyfill)}>
{!!customFontURL && <FontLoader url={customFontURL} />}
<GlobalStyle />
{children}
- </ThemeProvider>
+ </div>
</ConfigProvider>
);
},
diff --git a/src/layout/GlobalProvider/ElectronAppStateSync.desktop.tsx b/src/layout/GlobalProvider/ElectronAppStateSync.desktop.tsx
index b95ae5389c6..f7588c4ac50 100644
--- a/src/layout/GlobalProvider/ElectronAppStateSync.desktop.tsx
+++ b/src/layout/GlobalProvider/ElectronAppStateSync.desktop.tsx
@@ -1,8 +1,7 @@
'use client';
import { useWatchBroadcast } from '@lobechat/electron-client-ipc';
-import { Flexbox } from '@lobehub/ui';
-import { Button, createModal } from '@lobehub/ui/base-ui';
+import { Button, createModal, Flexbox } from '@lobehub/ui';
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/GlobalProvider/ServerVersionOutdatedAlert.tsx b/src/layout/GlobalProvider/ServerVersionOutdatedAlert.tsx
index 46ce1877e6e..5bfeac0e32d 100644
--- a/src/layout/GlobalProvider/ServerVersionOutdatedAlert.tsx
+++ b/src/layout/GlobalProvider/ServerVersionOutdatedAlert.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useTheme } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon, useTheme } from '@lobehub/ui';
import { TriangleAlert, X } from 'lucide-react';
import { useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/layout/SPAGlobalProvider/Locale.test.tsx b/src/layout/SPAGlobalProvider/Locale.test.tsx
deleted file mode 100644
index fec07517f53..00000000000
--- a/src/layout/SPAGlobalProvider/Locale.test.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * @vitest-environment happy-dom
- */
-import { render, waitFor } from '@testing-library/react';
-import { type PropsWithChildren, useEffect } from 'react';
-import { beforeEach, describe, expect, it, vi } from 'vitest';
-
-const { getAntdLocale } = vi.hoisted(() => ({ getAntdLocale: vi.fn() }));
-
-vi.mock('@/utils/locale', () => ({ getAntdLocale }));
-vi.mock('@/utils/dayjsLocale', () => ({
- loadDayjsLocaleModule: vi.fn(async () => ({ default: {} })),
- normalizeDayjsLocale: (lang: string) => lang,
-}));
-vi.mock('@/locales/create', () => ({
- createI18nNext: () => ({
- init: vi.fn(async () => {}),
- instance: { isInitialized: true, language: 'zh-CN', off: vi.fn(), on: vi.fn() },
- }),
-}));
-vi.mock('@/layout/GlobalProvider/Editor', () => ({
- default: ({ children }: PropsWithChildren) => children,
-}));
-
-const Locale = (await import('./Locale')).default;
-
-let mounts = 0;
-
-const MountCounter = () => {
- useEffect(() => {
- mounts += 1;
- }, []);
- return <div>child</div>;
-};
-
-describe('Locale', () => {
- beforeEach(() => {
- mounts = 0;
- getAntdLocale.mockReset();
- });
-
- it('keeps the subtree mounted when the antd locale resolves', async () => {
- let resolveLocale: (value: unknown) => void = () => {};
- getAntdLocale.mockReturnValue(
- new Promise((resolve) => {
- resolveLocale = resolve;
- }),
- );
-
- render(
- <Locale defaultLang="zh-CN">
- <MountCounter />
- </Locale>,
- );
- expect(mounts).toBe(1);
-
- resolveLocale({ locale: 'zh-cn' });
- await waitFor(() => expect(getAntdLocale).toHaveBeenCalled());
- await new Promise((r) => setTimeout(r, 0));
-
- // antd's ConfigProvider only wraps children in `LocaleProvider` when `locale` is
- // truthy — a falsy-to-resolved transition would insert a node and remount everything.
- expect(mounts).toBe(1);
- });
-});
diff --git a/src/layout/SPAGlobalProvider/Locale.tsx b/src/layout/SPAGlobalProvider/Locale.tsx
index bd39a7b5e5f..604110ff0d7 100644
--- a/src/layout/SPAGlobalProvider/Locale.tsx
+++ b/src/layout/SPAGlobalProvider/Locale.tsx
@@ -1,15 +1,11 @@
-import { ConfigProvider } from 'antd';
-import enUS from 'antd/locale/en_US';
import dayjs from 'dayjs';
import type { PropsWithChildren } from 'react';
import { memo, useEffect, useState } from 'react';
-import { isRtlLang } from 'rtl-detect';
import Editor from '@/layout/GlobalProvider/Editor';
import { createI18nNext } from '@/locales/create';
import type { DayjsLocaleGlobEntry } from '@/utils/dayjsLocale';
import { loadDayjsLocaleModule, normalizeDayjsLocale } from '@/utils/dayjsLocale';
-import { getAntdLocale } from '@/utils/locale';
const dayjsLocaleLoaders: Record<string, DayjsLocaleGlobEntry> = {
'ar': () => import('dayjs/locale/ar'),
@@ -49,14 +45,11 @@ const updateDayjs = async (lang: string) => {
};
interface LocaleLayoutProps extends PropsWithChildren {
- antdLocale?: any;
defaultLang?: string;
}
-const Locale = memo<LocaleLayoutProps>(({ children, defaultLang, antdLocale }) => {
+const Locale = memo<LocaleLayoutProps>(({ children, defaultLang }) => {
const [i18n] = useState(() => createI18nNext(defaultLang));
- const [lang, setLang] = useState(defaultLang);
- const [locale, setLocale] = useState(antdLocale);
// Set dayjs locale immediately on mount (don't wait for i18n init) to avoid
// "a few seconds ago" showing in English when UI is already in Chinese
@@ -64,24 +57,6 @@ const Locale = memo<LocaleLayoutProps>(({ children, defaultLang, antdLocale }) =
if (defaultLang) updateDayjs(defaultLang);
}, [defaultLang]);
- // Load the antd locale for the initial language too — `languageChanged` can fire
- // before the listener below is registered, leaving ConfigProvider without a locale
- // (antd then falls back to en_US, and pro-components intl to zh-CN)
- useEffect(() => {
- if (locale || !defaultLang) return;
- let canceled = false;
- getAntdLocale(defaultLang)
- .then((initialLocale) => {
- if (!canceled) setLocale((prev: any) => prev ?? initialLocale);
- })
- .catch((error) => {
- console.error(`antd locale for ${defaultLang} not found`, error);
- });
- return () => {
- canceled = true;
- };
- }, [defaultLang, locale]);
-
if (!i18n.instance.isInitialized)
i18n.init().then(async () => {
const resolvedLang = i18n.instance.language || defaultLang;
@@ -89,39 +64,13 @@ const Locale = memo<LocaleLayoutProps>(({ children, defaultLang, antdLocale }) =
});
useEffect(() => {
- const handleLang = async (lng: string) => {
- setLang(lng);
- const newLocale = await getAntdLocale(lng);
- setLocale(newLocale);
- await updateDayjs(lng);
- };
-
- i18n.instance.on('languageChanged', handleLang);
+ i18n.instance.on('languageChanged', updateDayjs);
return () => {
- i18n.instance.off('languageChanged', handleLang);
+ i18n.instance.off('languageChanged', updateDayjs);
};
}, [i18n]);
- const documentDir = isRtlLang(lang!) ? 'rtl' : 'ltr';
-
- return (
- <ConfigProvider
- direction={documentDir}
- // antd only wraps children in `LocaleProvider` when `locale` is truthy. Going
- // from undefined to a resolved locale therefore inserts a node into the tree and
- // remounts every provider below — the whole app boots twice. Keep the shape stable.
- locale={locale ?? enUS}
- theme={{
- components: {
- Button: {
- contentFontSizeSM: 12,
- },
- },
- }}
- >
- <Editor>{children}</Editor>
- </ConfigProvider>
- );
+ return <Editor>{children}</Editor>;
});
Locale.displayName = 'Locale';
diff --git a/src/layout/SPAGlobalProvider/index.test.tsx b/src/layout/SPAGlobalProvider/index.test.tsx
index 22f9d313224..5aa64dc664c 100644
--- a/src/layout/SPAGlobalProvider/index.test.tsx
+++ b/src/layout/SPAGlobalProvider/index.test.tsx
@@ -29,14 +29,6 @@ vi.mock('@lobehub/ui', async (importOriginal) => {
...(await importOriginal<object>()),
ContextMenuHost: () => React.createElement('div', { 'data-testid': 'context-menu-host' }),
setContextMenuInterceptor: vi.fn(),
- };
-});
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
- const React = await import('react');
-
- return {
- ...(await importOriginal<object>()),
ModalHost: () => React.createElement('div', { 'data-testid': 'base-modal-host' }),
ToastHost: () => React.createElement('div', { 'data-testid': 'toast-host' }),
};
diff --git a/src/layout/SPAGlobalProvider/index.tsx b/src/layout/SPAGlobalProvider/index.tsx
index ea0dc5f7a86..4a750003c25 100644
--- a/src/layout/SPAGlobalProvider/index.tsx
+++ b/src/layout/SPAGlobalProvider/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { ContextMenuHost, TooltipGroup } from '@lobehub/ui';
-import { ModalHost, ToastHost } from '@lobehub/ui/base-ui';
-import { StyleProvider } from 'antd-style';
+import { ContextMenuHost, ModalHost, ToastHost, TooltipGroup } from '@lobehub/ui';
import { domMax, LazyMotion } from 'motion/react';
import { Component, type CSSProperties, lazy, memo, type PropsWithChildren, Suspense } from 'react';
@@ -99,14 +97,12 @@ const SPAGlobalProvider = memo<PropsWithChildren>(({ children }) => {
<DragUploadProvider>
<LazyMotion features={domMax}>
<TooltipGroup layoutAnimation={false}>
- <StyleProvider speedy={import.meta.env.PROD}>
- <LobeAnalyticsProviderWrapper>
- <CacheHydrationGate>
- <BuiltinAgentInitialization />
- <DevDockLayout>{children}</DevDockLayout>
- </CacheHydrationGate>
- </LobeAnalyticsProviderWrapper>
- </StyleProvider>
+ <LobeAnalyticsProviderWrapper>
+ <CacheHydrationGate>
+ <BuiltinAgentInitialization />
+ <DevDockLayout>{children}</DevDockLayout>
+ </CacheHydrationGate>
+ </LobeAnalyticsProviderWrapper>
</TooltipGroup>
<ModalHost />
<ToastHost />
diff --git a/src/routes/(main)/(create)/components/GenerationModelItem.tsx b/src/routes/(main)/(create)/components/GenerationModelItem.tsx
index 9157c45a585..487b517525f 100644
--- a/src/routes/(main)/(create)/components/GenerationModelItem.tsx
+++ b/src/routes/(main)/(create)/components/GenerationModelItem.tsx
@@ -2,9 +2,7 @@
import { BRANDING_PROVIDER } from '@lobechat/business-const';
import { CREDITS_PER_DOLLAR } from '@lobechat/const/currency';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Popover, Text } from '@lobehub/ui';
import type { AiModelForSelect } from 'model-bank';
import numeral from 'numeral';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/(create)/features/GenerationFeed/index.tsx b/src/routes/(main)/(create)/features/GenerationFeed/index.tsx
index 534b0b8c5d2..8fc0663824c 100644
--- a/src/routes/(main)/(create)/features/GenerationFeed/index.tsx
+++ b/src/routes/(main)/(create)/features/GenerationFeed/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { useAutoAnimate } from '@formkit/auto-animate/react';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
+import { Divider, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { Fragment, memo, useEffect, useRef } from 'react';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationInvalidAPIKey.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationInvalidAPIKey.tsx
index 0f0e2a07bbf..cd2753ed6b5 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationInvalidAPIKey.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationInvalidAPIKey.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { ModelProvider } from 'model-bank/modelProvider';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.test.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.test.tsx
index fed65f2b462..02ee22d9aed 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.test.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.test.tsx
@@ -20,33 +20,43 @@ const componentMocks = vi.hoisted(() => ({
segmented: undefined as SegmentedCapture | undefined,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- ActionIcon: ({ title }: { title?: ReactNode }) => (
- <button aria-label={typeof title === 'string' ? title : 'action'} type="button" />
- ),
- Segmented: (props: SegmentedCapture) => {
- componentMocks.segmented = props;
- return (
- <div data-testid="mode-toggle-group">
- {props.options?.map((option) => (
- <span key={option.value}>{option.icon}</span>
- ))}
- </div>
- );
- },
- Select: () => <div data-testid="mode-select" />,
-}));
-
-vi.mock('antd-style', async (importOriginal) => ({
- ...((await importOriginal()) as Record<string, unknown>),
- createStaticStyles: () => ({
- heroSelect: 'hero-select',
- heroText: 'hero-text',
- toolbarItem: 'toolbar-item',
- toolbarLabel: 'toolbar-label',
- }),
-}));
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ ActionIcon: ({ title }: { title?: ReactNode }) => (
+ <button aria-label={typeof title === 'string' ? title : 'action'} type="button" />
+ ),
+ Segmented: (props: SegmentedCapture) => {
+ componentMocks.segmented = props;
+ return (
+ <div data-testid="mode-toggle-group">
+ {props.options?.map((option) => (
+ <span key={option.value}>{option.icon}</span>
+ ))}
+ </div>
+ );
+ },
+ Select: () => <div data-testid="mode-select" />,
+ }),
+ async (importOriginal) => ({
+ ...((await importOriginal()) as Record<string, unknown>),
+ createStaticStyles: () => ({
+ heroSelect: 'hero-select',
+ heroText: 'hero-text',
+ toolbarItem: 'toolbar-item',
+ toolbarLabel: 'toolbar-label',
+ }),
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('@/features/Workspace/useWorkspaceAwareNavigate', () => ({
useWorkspaceAwareNavigate: () => componentMocks.navigate,
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.tsx
index dae7aec8443..b10c54eb9fa 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationMediaModeSegment.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Segmented, type SegmentedOptions, Select, type SelectProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
+import { Segmented, type SegmentedOptions, Select, type SelectProps } from '@lobehub/ui';
import { ImageIcon, Video } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx
index fb9504eb843..8d45472d34a 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Alert } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Alert, createStaticStyles, cx } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptBlockedNotice.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptBlockedNotice.tsx
index 43f2fcb4c01..7ba19e6f41c 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptBlockedNotice.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptBlockedNotice.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Alert } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptInput.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptInput.tsx
index 25c4ba9d948..9e20bb5765b 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptInput.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationPromptInput.tsx
@@ -1,9 +1,7 @@
'use client';
import { ChatInput, ChatInputActionBar, SendButton } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { TextArea } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, TextArea } from '@lobehub/ui';
import type { KeyboardEvent, ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationVisibilitySelector.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationVisibilitySelector.tsx
index eb34d94594d..f9509584d1c 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationVisibilitySelector.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationVisibilitySelector.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, createStaticStyles, cssVar, Icon } from '@lobehub/ui';
import { LockIcon, UsersIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/ImagePreviewHeader.tsx b/src/routes/(main)/(create)/features/GenerationInput/ImagePreviewHeader.tsx
index fa1f7cacafd..43825b99045 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/ImagePreviewHeader.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/ImagePreviewHeader.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import type { PropsWithChildren } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/InlineImageReference.tsx b/src/routes/(main)/(create)/features/GenerationInput/InlineImageReference.tsx
index de8c6e44443..03347c968ab 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/InlineImageReference.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/InlineImageReference.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo, useState } from 'react';
import UploadCard, { UPLOAD_CARD_SIZE, type UploadData } from './UploadCard';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/InlineVideoFrames.tsx b/src/routes/(main)/(create)/features/GenerationInput/InlineVideoFrames.tsx
index c595e215f72..ad1987c22ca 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/InlineVideoFrames.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/InlineVideoFrames.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { ArrowLeftRight } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx b/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx
index a1a6920f20e..8ef32629871 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { ActionIcon, Spin } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { ActionIcon, Block, createStaticStyles, cssVar, cx, Spin } from '@lobehub/ui';
import { Plus, X } from 'lucide-react';
import type { ChangeEvent, CSSProperties } from 'react';
import { memo, useCallback, useRef, useState } from 'react';
diff --git a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/GridItem.tsx b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/GridItem.tsx
index 8a6af10ba18..5290dfb0fbc 100644
--- a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/GridItem.tsx
+++ b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/GridItem.tsx
@@ -1,8 +1,7 @@
'use client';
-import { ContextMenuTrigger, Flexbox, type GenericItemType, Tooltip } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ContextMenuTrigger, type DropdownItem, Flexbox, Tooltip } from '@lobehub/ui';
+import { Avatar, createStaticStyles, cx } from '@lobehub/ui';
import type { CSSProperties, MouseEvent } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -40,7 +39,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
}));
interface TopicItemProps {
- contextMenuItems?: GenericItemType[] | (() => GenericItemType[]);
+ contextMenuItems?: DropdownItem[] | (() => DropdownItem[]);
isActive?: boolean;
isLoading?: boolean;
isUpdating?: boolean;
diff --git a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/ListItem.tsx b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/ListItem.tsx
index d0ebda3fd10..66befa7204d 100644
--- a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/ListItem.tsx
+++ b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/ListItem.tsx
@@ -1,8 +1,7 @@
'use client';
-import { type GenericItemType } from '@lobehub/ui';
-import { ActionIcon, Avatar } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { type DropdownItem } from '@lobehub/ui';
+import { ActionIcon, Avatar, cssVar } from '@lobehub/ui';
import { Trash } from 'lucide-react';
import type { CSSProperties, MouseEvent } from 'react';
import { memo } from 'react';
@@ -14,7 +13,7 @@ import { type ImageGenerationTopic } from '@/types/generation';
import { useGenerationTopicContext } from '../StoreContext';
interface TopicItemProps {
- contextMenuItems?: GenericItemType[] | (() => GenericItemType[]);
+ contextMenuItems?: DropdownItem[] | (() => DropdownItem[]);
isActive?: boolean;
isLoading?: boolean;
isUpdating?: boolean;
diff --git a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/index.tsx b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/index.tsx
index fb7b7ffd046..ecd1671e3a7 100644
--- a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/index.tsx
+++ b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/Item/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { type MenuProps } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, Icon, toast, Tooltip } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { EyeOffIcon, Trash, UsersIcon } from 'lucide-react';
import type { CSSProperties } from 'react';
import { memo, useState } from 'react';
@@ -111,7 +110,7 @@ const TopicItem = memo<TopicItemProps>(({ topic, showMoreInfo, style }) => {
});
};
- const menuItems: MenuProps['items'] = [
+ const menuItems: DropdownItem[] = [
...(canPublish
? [
{
diff --git a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/SkeletonList.tsx b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/SkeletonList.tsx
index f4c053628de..f0700104499 100644
--- a/src/routes/(main)/(create)/features/GenerationLayout/Body/List/SkeletonList.tsx
+++ b/src/routes/(main)/(create)/features/GenerationLayout/Body/List/SkeletonList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Grid } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Grid, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const SkeletonList = memo<{ count?: number }>(({ count = 6 }) => {
diff --git a/src/routes/(main)/(create)/features/GenerationLayout/Body/index.tsx b/src/routes/(main)/(create)/features/GenerationLayout/Body/index.tsx
index 2a9f5488ae9..e7db869493c 100644
--- a/src/routes/(main)/(create)/features/GenerationLayout/Body/index.tsx
+++ b/src/routes/(main)/(create)/features/GenerationLayout/Body/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, Tabs, Text } from '@lobehub/ui/base-ui';
+import { Accordion, Flexbox, Icon, Tabs, Text } from '@lobehub/ui';
import { LayoutGrid, ListIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/features/GenerationLayout/style.ts b/src/routes/(main)/(create)/features/GenerationLayout/style.ts
index 24edd9b5d8b..9f11a20ec9e 100644
--- a/src/routes/(main)/(create)/features/GenerationLayout/style.ts
+++ b/src/routes/(main)/(create)/features/GenerationLayout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
mainContainer: css`
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/AspectRatioSelect/index.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/AspectRatioSelect/index.tsx
index 5b67f664702..0343165a826 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/AspectRatioSelect/index.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/AspectRatioSelect/index.tsx
@@ -1,9 +1,7 @@
'use client';
import type { GridProps } from '@lobehub/ui';
-import { Block, Center, Grid } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Center, cssVar, Grid, Text } from '@lobehub/ui';
import type { ReactNode } from 'react';
import { memo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/CfgSliderInput.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/CfgSliderInput.tsx
index 7eaa1a92368..c3629273813 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/CfgSliderInput.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/CfgSliderInput.tsx
@@ -1,4 +1,4 @@
-import { SliderWithInput } from '@lobehub/ui/base-ui';
+import { SliderWithInput } from '@lobehub/ui';
import { memo } from 'react';
import { useGenerationConfigParam } from '@/store/image/slices/generationConfig/hooks';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/DimensionControlGroup.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/DimensionControlGroup.tsx
index 1ac82880f06..9d07708a77d 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/DimensionControlGroup.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/DimensionControlGroup.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, SliderWithInput } from '@lobehub/ui/base-ui';
+import { ActionIcon, Flexbox, SliderWithInput } from '@lobehub/ui';
import { LockIcon, UnlockIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageNum.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageNum.tsx
index 88e641eff91..b4df5625293 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageNum.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageNum.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, InputNumber, Tabs, type TabsItem } from '@lobehub/ui/base-ui';
+import { ActionIcon, InputNumber, Tabs, type TabsItem } from '@lobehub/ui';
import { Check, Plus, X } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageUpload.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageUpload.tsx
index 67958a02a85..cf8ff3dd87e 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageUpload.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/ImageUpload.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Center, createStaticStyles, cssVar, cx, toast } from '@lobehub/ui';
import { Image as ImageIcon, X } from 'lucide-react';
import { type FC } from 'react';
import React, { memo, useEffect, useRef, useState } from 'react';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/InputNumber/index.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/InputNumber/index.tsx
index 2dbb062130a..a45653643a8 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/InputNumber/index.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/InputNumber/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { Button, InputNumber } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, InputNumber, Tooltip } from '@lobehub/ui';
import { Dices } from 'lucide-react';
import { MAX_SEED } from 'model-bank/standardParameters';
import { type CSSProperties } from 'react';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx
index 58c64e4cc24..29cd4c23acb 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx
@@ -1,4 +1,4 @@
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/ResolutionSelect.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/ResolutionSelect.tsx
index 2d7c4dc2090..b777d0a41a6 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/ResolutionSelect.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/ResolutionSelect.tsx
@@ -1,4 +1,4 @@
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Tabs } from '@lobehub/ui';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/Select/index.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/Select/index.tsx
index 7613e41d892..cb6be9cbf47 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/Select/index.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/Select/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { type GridProps } from '@lobehub/ui';
-import { Block, Center, Grid } from '@lobehub/ui';
-import { Select, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Center, cssVar, Grid, Select, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
import useMergeState from 'use-merge-value';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/StepsSliderInput.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/StepsSliderInput.tsx
index 52fdbc1c9b1..982e13ad855 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/StepsSliderInput.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/StepsSliderInput.tsx
@@ -1,4 +1,4 @@
-import { SliderWithInput } from '@lobehub/ui/base-ui';
+import { SliderWithInput } from '@lobehub/ui';
import { memo } from 'react';
import { useGenerationConfigParam } from '@/store/image/slices/generationConfig/hooks';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/hooks/useUploadFilesValidation.ts b/src/routes/(main)/(create)/image/features/ConfigPanel/hooks/useUploadFilesValidation.ts
index 486874797ff..4db65496b65 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/hooks/useUploadFilesValidation.ts
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/hooks/useUploadFilesValidation.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/style.ts b/src/routes/(main)/(create)/image/features/ConfigPanel/style.ts
index d7b859ae237..eb56e403389 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/style.ts
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const configPanelStyles = createStaticStyles(({ css, cssVar }) => ({
dragOver: css`
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/BatchItem.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/BatchItem.tsx
index fc8382044ce..63078331309 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/BatchItem.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/BatchItem.tsx
@@ -1,9 +1,18 @@
'use client';
import { useAutoAnimate } from '@formkit/auto-animate/react';
-import { ActionIconGroup, Block, Flexbox, Grid, Image, Markdown } from '@lobehub/ui';
-import { Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIconGroup,
+ Block,
+ createStaticStyles,
+ Flexbox,
+ Grid,
+ Image,
+ Markdown,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { omit } from 'es-toolkit/compat';
import { CopyIcon, RotateCcwSquareIcon, Trash2 } from 'lucide-react';
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ActionButtons.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ActionButtons.tsx
index 168afc6c0d3..83db2fb1b03 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ActionButtons.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ActionButtons.tsx
@@ -1,8 +1,7 @@
'use client';
-import { type ActionIconGroupProps } from '@lobehub/ui';
+import { type ActionIconGroupProps, type ActionIconProps } from '@lobehub/ui';
import { ActionIconGroup } from '@lobehub/ui';
-import { type ActionIconProps } from '@lobehub/ui/base-ui';
import { Dices, Download, Trash2 } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ElapsedTime.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ElapsedTime.tsx
index 16419dd7df0..746899cbd44 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ElapsedTime.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ElapsedTime.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { useEffect, useRef, useState } from 'react';
interface ElapsedTimeProps {
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ErrorState.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ErrorState.tsx
index 8e35d6b9493..0cb544d6e61 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ErrorState.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/ErrorState.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Center, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Center, cssVar, Icon, Text } from '@lobehub/ui';
import { ImageOffIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/LoadingState.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/LoadingState.tsx
index d749ba629e1..3078e432a1b 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/LoadingState.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/LoadingState.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Center } from '@lobehub/ui';
-import { Spin } from '@lobehub/ui/base-ui';
+import { Block, Center, Spin } from '@lobehub/ui';
import React, { memo } from 'react';
import { AsyncTaskStatus } from '@/types/asyncTask';
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/index.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/index.tsx
index 3d0be22513c..5f1a41e50f4 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/index.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/styles.ts b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/styles.ts
index a41f7a47dac..a77096c345f 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/styles.ts
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/GenerationItem/styles.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles, cx, keyframes } from 'antd-style';
+import { createStaticStyles, cx, keyframes } from '@lobehub/ui';
const shimmer = keyframes`
0% {
diff --git a/src/routes/(main)/(create)/image/features/GenerationFeed/ReferenceImages.tsx b/src/routes/(main)/(create)/image/features/GenerationFeed/ReferenceImages.tsx
index 137061dc00b..3854b2f7fe5 100644
--- a/src/routes/(main)/(create)/image/features/GenerationFeed/ReferenceImages.tsx
+++ b/src/routes/(main)/(create)/image/features/GenerationFeed/ReferenceImages.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Image } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Image } from '@lobehub/ui';
import { QuoteIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/(create)/image/features/ImageWorkspace/SkeletonList.tsx b/src/routes/(main)/(create)/image/features/ImageWorkspace/SkeletonList.tsx
index bddff615aaa..f3211d77c18 100644
--- a/src/routes/(main)/(create)/image/features/ImageWorkspace/SkeletonList.tsx
+++ b/src/routes/(main)/(create)/image/features/ImageWorkspace/SkeletonList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Center, Flexbox, Grid } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Block, Center, Flexbox, Grid, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import PromptInput from '@/routes/(main)/(create)/image/features/PromptInput';
diff --git a/src/routes/(main)/(create)/image/features/PromptInput/index.tsx b/src/routes/(main)/(create)/image/features/PromptInput/index.tsx
index e76a549e13e..083caadfc92 100644
--- a/src/routes/(main)/(create)/image/features/PromptInput/index.tsx
+++ b/src/routes/(main)/(create)/image/features/PromptInput/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Divider, Switch, Tabs, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Divider, Flexbox, Switch, Tabs, Text } from '@lobehub/ui';
import { Images } from 'lucide-react';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/image/features/PromptInput/useImageReferenceUpload.ts b/src/routes/(main)/(create)/image/features/PromptInput/useImageReferenceUpload.ts
index b4b3ebddb83..e9812446dd7 100644
--- a/src/routes/(main)/(create)/image/features/PromptInput/useImageReferenceUpload.ts
+++ b/src/routes/(main)/(create)/image/features/PromptInput/useImageReferenceUpload.ts
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/BatchItem.tsx b/src/routes/(main)/(create)/video/features/GenerationFeed/BatchItem.tsx
index 747a35fa1a7..0c5dfc80a5a 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/BatchItem.tsx
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/BatchItem.tsx
@@ -1,8 +1,16 @@
'use client';
-import { ActionIconGroup, Block, Flexbox, Markdown } from '@lobehub/ui';
-import { Button, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ ActionIconGroup,
+ Block,
+ Button,
+ createStaticStyles,
+ Flexbox,
+ Markdown,
+ Tag,
+ Text,
+ toast,
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { CopyIcon, RotateCcwSquareIcon, SquarePenIcon, Trash2, XIcon } from 'lucide-react';
import { type RuntimeVideoGenParams } from 'model-bank';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/EditSourceLink.tsx b/src/routes/(main)/(create)/video/features/GenerationFeed/EditSourceLink.tsx
index 8985d379158..2967a1be0fa 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/EditSourceLink.tsx
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/EditSourceLink.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Image } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Image, Text } from '@lobehub/ui';
import { CornerDownRightIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoErrorItem.tsx b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoErrorItem.tsx
index 214efcf8158..be0e12d9d0c 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoErrorItem.tsx
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoErrorItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Center, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, Center, cssVar, Icon, Text } from '@lobehub/ui';
import { VideoOffIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoLoadingItem.tsx b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoLoadingItem.tsx
index 3fcfac5cb45..2546c3b3d3c 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoLoadingItem.tsx
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoLoadingItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Center } from '@lobehub/ui';
-import { Progress, Spin } from '@lobehub/ui/base-ui';
+import { Block, Center, Progress, Spin } from '@lobehub/ui';
import { memo } from 'react';
import { MAX_ESTIMATED_PROGRESS, useEstimatedProgress } from '@/hooks/useEstimatedProgress';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoReferenceFrames.tsx b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoReferenceFrames.tsx
index 4e45c3bf8d2..75ba4f10804 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoReferenceFrames.tsx
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoReferenceFrames.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Image } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Image } from '@lobehub/ui';
import { QuoteIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoSuccessItem.tsx b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoSuccessItem.tsx
index 71677347c5a..e4d60d2f8a0 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/VideoSuccessItem.tsx
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/VideoSuccessItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Block, createStaticStyles, cx } from '@lobehub/ui';
import { SquarePenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/GenerationFeed/videoVersion.ts b/src/routes/(main)/(create)/video/features/GenerationFeed/videoVersion.ts
index 8c9427588fa..a9cd93ed953 100644
--- a/src/routes/(main)/(create)/video/features/GenerationFeed/videoVersion.ts
+++ b/src/routes/(main)/(create)/video/features/GenerationFeed/videoVersion.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { useMemo } from 'react';
import { useVideoStore } from '@/store/video';
diff --git a/src/routes/(main)/(create)/video/features/PromptInput/EditingVideoHeader.tsx b/src/routes/(main)/(create)/video/features/PromptInput/EditingVideoHeader.tsx
index 04c3763db08..944db4d256d 100644
--- a/src/routes/(main)/(create)/video/features/PromptInput/EditingVideoHeader.tsx
+++ b/src/routes/(main)/(create)/video/features/PromptInput/EditingVideoHeader.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Image } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox, Image, Text } from '@lobehub/ui';
import { LocateFixedIcon, SquarePenIcon, VideoIcon, XIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/PromptInput/index.tsx b/src/routes/(main)/(create)/video/features/PromptInput/index.tsx
index 35813d3e83c..0d490e6b6d2 100644
--- a/src/routes/(main)/(create)/video/features/PromptInput/index.tsx
+++ b/src/routes/(main)/(create)/video/features/PromptInput/index.tsx
@@ -1,16 +1,16 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
ActionIcon,
Divider,
+ Flexbox,
InputNumber,
Segmented,
SliderWithInput,
Switch,
Tabs,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { Clock3, Dices } from 'lucide-react';
import { type KeyboardEvent, memo, useCallback, useEffect, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/PromptInput/useVideoReferenceUpload.ts b/src/routes/(main)/(create)/video/features/PromptInput/useVideoReferenceUpload.ts
index 514b922a0e2..1b8a50cfed7 100644
--- a/src/routes/(main)/(create)/video/features/PromptInput/useVideoReferenceUpload.ts
+++ b/src/routes/(main)/(create)/video/features/PromptInput/useVideoReferenceUpload.ts
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/(create)/video/features/VideoWorkspace/SkeletonList.tsx b/src/routes/(main)/(create)/video/features/VideoWorkspace/SkeletonList.tsx
index 14ef878c771..8392339c05c 100644
--- a/src/routes/(main)/(create)/video/features/VideoWorkspace/SkeletonList.tsx
+++ b/src/routes/(main)/(create)/video/features/VideoWorkspace/SkeletonList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Center, Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Block, Center, Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import PromptInput from '@/routes/(main)/(create)/video/features/PromptInput';
diff --git a/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/ShareToggle.tsx b/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/ShareToggle.tsx
index 1ac43286460..ecab1d1eead 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/ShareToggle.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/ShareToggle.tsx
@@ -1,8 +1,7 @@
'use client';
import { type UserCredSummary } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Segmented, Switch, Text, toast } from '@lobehub/ui/base-ui';
+import { Flexbox, Segmented, Switch, Text, toast } from '@lobehub/ui';
import { useMutation } from '@tanstack/react-query';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/index.tsx
index 689574c28c7..bf8a7c838f8 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/credential/features/PersonalCredsSection/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx
index 6a903cf7aa6..2eb30839338 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/credential/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Block, Empty, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Button, Tabs, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import {
+ Block,
+ Button,
+ createStaticStyles,
+ Empty,
+ Flexbox,
+ Icon,
+ Tabs,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { Plus, UserRoundIcon, UsersIcon } from 'lucide-react';
import { useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx
index a76b1a271e7..3b8531b0522 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { DeviceVisibility } from '@lobechat/types';
-import { Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Icon, Tabs } from '@lobehub/ui';
import { LockIcon, UsersIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx
index bfd8f39a624..3d217f0729a 100644
--- a/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx
+++ b/src/routes/(main)/[workspaceSlug]/settings/environments/index.tsx
@@ -1,8 +1,7 @@
'use client';
import type { EnvironmentVisibility } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tabs } from '@lobehub/ui';
import { LockIcon, UsersIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/_layout/index.desktop.tsx b/src/routes/(main)/_layout/index.desktop.tsx
index f5444efc88a..5b423109752 100644
--- a/src/routes/(main)/_layout/index.desktop.tsx
+++ b/src/routes/(main)/_layout/index.desktop.tsx
@@ -2,8 +2,7 @@
import { HotkeyScopeEnum } from '@lobechat/const/hotkeys';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { type CSSProperties, type FC } from 'react';
import { Suspense } from 'react';
import { HotkeysProvider } from 'react-hotkeys-hook';
diff --git a/src/routes/(main)/_layout/index.tsx b/src/routes/(main)/_layout/index.tsx
index 3fe2dd438be..2a672023179 100644
--- a/src/routes/(main)/_layout/index.tsx
+++ b/src/routes/(main)/_layout/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { HotkeyScopeEnum } from '@lobechat/const/hotkeys';
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { type FC } from 'react';
import { Suspense } from 'react';
import { HotkeysProvider } from 'react-hotkeys-hook';
diff --git a/src/routes/(main)/_layout/style.ts b/src/routes/(main)/_layout/style.ts
index 66b13594994..4ec1d629d24 100644
--- a/src/routes/(main)/_layout/style.ts
+++ b/src/routes/(main)/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container - non-PWA mode (no top border)
diff --git a/src/routes/(main)/agent/_layout/style.ts b/src/routes/(main)/agent/_layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/routes/(main)/agent/_layout/style.ts
+++ b/src/routes/(main)/agent/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/routes/(main)/agent/channel/Header.tsx b/src/routes/(main)/agent/channel/Header.tsx
index 3a1a8cbfc22..55dff7f954a 100644
--- a/src/routes/(main)/agent/channel/Header.tsx
+++ b/src/routes/(main)/agent/channel/Header.tsx
@@ -1,9 +1,17 @@
'use client';
import { exportJSONFile } from '@lobechat/utils/client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
-import { ActionIcon, confirmModal, DropdownMenu, Switch, Tag, toast } from '@lobehub/ui/base-ui';
+import type { DropdownItem } from '@lobehub/ui';
+import {
+ ActionIcon,
+ confirmModal,
+ DropdownMenu,
+ Flexbox,
+ Icon,
+ Switch,
+ Tag,
+ toast,
+} from '@lobehub/ui';
import {
BookOpen,
Download,
diff --git a/src/routes/(main)/agent/channel/index.tsx b/src/routes/(main)/agent/channel/index.tsx
index 8075954e32a..9c0dfdb6e2b 100644
--- a/src/routes/(main)/agent/channel/index.tsx
+++ b/src/routes/(main)/agent/channel/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo, useCallback, useMemo } from 'react';
import { useNavigate, useParams } from 'react-router';
diff --git a/src/routes/(main)/agent/channel/permission.test.tsx b/src/routes/(main)/agent/channel/permission.test.tsx
index 592ae4d970c..ee34102b524 100644
--- a/src/routes/(main)/agent/channel/permission.test.tsx
+++ b/src/routes/(main)/agent/channel/permission.test.tsx
@@ -1,7 +1,7 @@
/**
* @vitest-environment happy-dom
*/
-import { useForm } from '@lobehub/ui/base-ui/form';
+import { useForm } from '@lobehub/ui/form';
import { fireEvent, render, screen, waitFor, within } from '@testing-library/react';
import type { ReactNode } from 'react';
import { describe, expect, it, vi } from 'vitest';
@@ -31,27 +31,6 @@ vi.mock('react-router', async (importOriginal) => ({
Link: ({ children }: { children?: ReactNode }) => <a>{children}</a>,
}));
-vi.mock('antd', async (importOriginal) => {
- const actual = (await importOriginal()) as { App: Record<string, unknown> } & Record<
- string,
- unknown
- >;
-
- return {
- ...actual,
- App: {
- ...actual.App,
- useApp: () => ({
- message: {
- error: vi.fn(),
- success: vi.fn(),
- warning: vi.fn(),
- },
- }),
- },
- };
-});
-
vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({
useActiveWorkspaceId: () => mocks.activeWorkspaceId,
}));
@@ -112,7 +91,7 @@ vi.mock('@/hooks/useAppOrigin', () => ({
useAppOrigin: () => 'https://example.test',
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...((await importOriginal()) as Record<string, unknown>),
ActionIcon: ({
'aria-label': ariaLabel,
diff --git a/src/routes/(main)/agent/features/Conversation/ConversationArea.tsx b/src/routes/(main)/agent/features/Conversation/ConversationArea.tsx
index 683a1d59a20..f1e64dc97bb 100644
--- a/src/routes/(main)/agent/features/Conversation/ConversationArea.tsx
+++ b/src/routes/(main)/agent/features/Conversation/ConversationArea.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo, Suspense, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx
index ad37800f270..e0535f0c553 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/useMenu.tsx b/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/useMenu.tsx
index da34e62f39e..a84aaf0a1a3 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/useMenu.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/useMenu.tsx
@@ -1,8 +1,16 @@
'use client';
-import type { DropdownItem } from '@lobehub/ui';
-import { Block, copyToClipboard, Flexbox, Icon } from '@lobehub/ui';
-import { confirmModal, type ModalInstance, Text, toast } from '@lobehub/ui/base-ui';
+import {
+ Block,
+ confirmModal,
+ copyToClipboard,
+ type DropdownItem,
+ Flexbox,
+ Icon,
+ type ModalInstance,
+ Text,
+ toast,
+} from '@lobehub/ui';
import {
Clock3Icon,
Copy,
diff --git a/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.test.tsx b/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.test.tsx
index b7b352b7a5d..beef50eeb66 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.test.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.test.tsx
@@ -1,7 +1,7 @@
/**
* @vitest-environment happy-dom
*/
-import type * as BaseUI from '@lobehub/ui/base-ui';
+import type * as BaseUI from '@lobehub/ui';
import { render } from '@testing-library/react';
import type { ComponentProps, ComponentType, ReactNode } from 'react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -19,7 +19,7 @@ const mocks = vi.hoisted(() => ({
const actionIconPropsSpy = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = await importOriginal<typeof BaseUI>();
return {
...actual,
diff --git a/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx
index 79085a3d8c7..957ec7ca023 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Share2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/Tags/MemberCountTag.tsx b/src/routes/(main)/agent/features/Conversation/Header/Tags/MemberCountTag.tsx
index 065e78f50b1..f4a0ad5b444 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/Tags/MemberCountTag.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/Tags/MemberCountTag.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tag, Tooltip } from '@lobehub/ui';
import { Users } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/Tags/ThreadSwitcher.tsx b/src/routes/(main)/agent/features/Conversation/Header/Tags/ThreadSwitcher.tsx
index 9c0c442cbb1..59ab6f43d6d 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/Tags/ThreadSwitcher.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/Tags/ThreadSwitcher.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Popover } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Popover } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/Tags/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/Tags/index.tsx
index 8c007f28555..980f158db57 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/Tags/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/Tags/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.test.tsx b/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.test.tsx
index 5bd40e03860..76127e3684d 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.test.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.test.tsx
@@ -1,4 +1,4 @@
-import type * as BaseUI from '@lobehub/ui/base-ui';
+import type * as BaseUI from '@lobehub/ui';
import { fireEvent, render, screen } from '@testing-library/react';
import type { ComponentProps } from 'react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -14,7 +14,7 @@ const mocks = vi.hoisted(() => ({
const actionIconPropsSpy = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = await importOriginal<typeof BaseUI>();
return {
...actual,
diff --git a/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.tsx
index b50910c5d80..e70a93a20e3 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/TerminalPanelToggle/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { HotkeyEnum } from '@lobechat/const/hotkeys';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { SquareTerminalIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/WorkingPanelToggle/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/WorkingPanelToggle/index.tsx
index 641138c4486..dca7a29f748 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/WorkingPanelToggle/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/WorkingPanelToggle/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@lobechat/const';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { LayoutDashboardIcon, PanelRightOpenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/index.tsx
index 2adf9289a9f..ace4558c0d1 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { AgentMigrationBadge, useAgentTransferJob } from '@/features/AgentTransferMigration';
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ApiModeModelBar.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ApiModeModelBar.tsx
index 3de84c3c7f5..473026b6ec3 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ApiModeModelBar.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ApiModeModelBar.tsx
@@ -3,8 +3,7 @@
import { isServerDefaultHeterogeneousAgentType } from '@lobechat/heterogeneous-agents';
import type { HeterogeneousApiConfig } from '@lobechat/types';
import { applyTopicModelToHeterogeneousProvider } from '@lobechat/types';
-import { TooltipGroup } from '@lobehub/ui';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select, TooltipGroup } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroPlus.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroPlus.tsx
index e482c253db4..807484f23fa 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroPlus.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroPlus.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import dayjs from 'dayjs';
import {
CalendarClockIcon,
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ScheduledSendChip.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ScheduledSendChip.tsx
index c09f532bd8f..bf4b2c3609e 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ScheduledSendChip.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/ScheduledSendChip.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { CalendarClockIcon, XIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx
index 53e2d8a5220..b7c39282bb7 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx
@@ -3,8 +3,7 @@
import { HETEROGENEOUS_TYPE_LABELS } from '@lobechat/heterogeneous-agents';
import { isHeteroSelectorAvailable } from '@lobechat/types';
import { type ChatInputActionsProps } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button } from '@lobehub/ui/base-ui';
+import { Alert, Button, Flexbox } from '@lobehub/ui';
import { memo, type ReactNode, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/MainChatInput/AgentConfigError.tsx b/src/routes/(main)/agent/features/Conversation/MainChatInput/AgentConfigError.tsx
index adbd4898569..d4c7bdc054d 100644
--- a/src/routes/(main)/agent/features/Conversation/MainChatInput/AgentConfigError.tsx
+++ b/src/routes/(main)/agent/features/Conversation/MainChatInput/AgentConfigError.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Alert, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Alert, Button, createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/features/Conversation/MainChatInput/useSendMenuItems.tsx b/src/routes/(main)/agent/features/Conversation/MainChatInput/useSendMenuItems.tsx
index 1cff5324281..1f3ae7cdd9a 100644
--- a/src/routes/(main)/agent/features/Conversation/MainChatInput/useSendMenuItems.tsx
+++ b/src/routes/(main)/agent/features/Conversation/MainChatInput/useSendMenuItems.tsx
@@ -1,7 +1,7 @@
'use client';
import { HotkeyEnum, KeyEnum } from '@lobechat/const/hotkeys';
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Flexbox, Hotkey, Icon } from '@lobehub/ui';
import { BotMessageSquare, LucideCheck, MessageSquarePlus } from 'lucide-react';
import { useCallback, useMemo } from 'react';
@@ -20,7 +20,7 @@ import { preferenceSelectors, settingsSelectors } from '@/store/user/selectors';
* - Add AI Message
* - Add User Message
*/
-export const useSendMenuItems = (): MenuProps['items'] => {
+export const useSendMenuItems = (): DropdownItem[] => {
const { t } = useTranslation('chat');
const storeApi = useConversationStoreApi();
diff --git a/src/routes/(main)/agent/features/Portal/features/Body.tsx b/src/routes/(main)/agent/features/Portal/features/Body.tsx
index a46080d035d..56f1b32a141 100644
--- a/src/routes/(main)/agent/features/Portal/features/Body.tsx
+++ b/src/routes/(main)/agent/features/Portal/features/Body.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { css, cx } from 'antd-style';
+import { css, cx, Flexbox } from '@lobehub/ui';
import { type PropsWithChildren } from 'react';
const body = css`
diff --git a/src/routes/(main)/agent/features/Portal/features/Portal.tsx b/src/routes/(main)/agent/features/Portal/features/Portal.tsx
index 1c97abd3771..bfa63779f09 100644
--- a/src/routes/(main)/agent/features/Portal/features/Portal.tsx
+++ b/src/routes/(main)/agent/features/Portal/features/Portal.tsx
@@ -1,7 +1,7 @@
'use client';
-import { DraggablePanel, type DraggablePanelProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles, useResponsive } from 'antd-style';
+import { DraggablePanel, type DraggablePanelProps } from '@lobehub/ui';
+import { createStaticStyles, useResponsive } from '@lobehub/ui';
import { type PropsWithChildren } from 'react';
import { Activity, memo, useState } from 'react';
diff --git a/src/routes/(main)/agent/features/TelemetryNotification.tsx b/src/routes/(main)/agent/features/TelemetryNotification.tsx
index 8fd058c8044..807905ebffe 100644
--- a/src/routes/(main)/agent/features/TelemetryNotification.tsx
+++ b/src/routes/(main)/agent/features/TelemetryNotification.tsx
@@ -1,9 +1,7 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, Button, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { LucideArrowUpRightFromSquare, TelescopeIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/profile/features/AgentSettings/index.tsx b/src/routes/(main)/agent/profile/features/AgentSettings/index.tsx
index cbcf413bce4..4756c319a0e 100644
--- a/src/routes/(main)/agent/profile/features/AgentSettings/index.tsx
+++ b/src/routes/(main)/agent/profile/features/AgentSettings/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import Content from './Content';
diff --git a/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx b/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx
index 5153585bbd0..98da241919d 100644
--- a/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx
+++ b/src/routes/(main)/agent/profile/features/EditorCanvas/index.test.tsx
@@ -128,7 +128,7 @@ vi.mock('@/components/InfoTooltip', () => ({
),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: {
error: (...args: unknown[]) => messageError(...args),
diff --git a/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx b/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx
index ec4df3e3fb6..108393dc52a 100644
--- a/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx
+++ b/src/routes/(main)/agent/profile/features/EditorCanvas/index.tsx
@@ -3,9 +3,7 @@
import type { IEditor } from '@lobehub/editor';
import { ReactMentionPlugin, ReactTablePlugin, ReactToolbarPlugin } from '@lobehub/editor';
import { Editor } from '@lobehub/editor/react';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { CodeXmlIcon, LetterTextIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
diff --git a/src/routes/(main)/agent/profile/features/EditorCanvas/useSlashItems.tsx b/src/routes/(main)/agent/profile/features/EditorCanvas/useSlashItems.tsx
index 3b012779ce7..332bad82733 100644
--- a/src/routes/(main)/agent/profile/features/EditorCanvas/useSlashItems.tsx
+++ b/src/routes/(main)/agent/profile/features/EditorCanvas/useSlashItems.tsx
@@ -8,7 +8,7 @@ import {
INSERT_TABLE_COMMAND,
INSERT_UNORDERED_LIST_COMMAND,
} from '@lobehub/editor';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import {
Heading1Icon,
Heading2Icon,
diff --git a/src/routes/(main)/agent/profile/features/Header/AgentForkTag.tsx b/src/routes/(main)/agent/profile/features/Header/AgentForkTag.tsx
index 9bdebe79116..33cb3c02df7 100644
--- a/src/routes/(main)/agent/profile/features/Header/AgentForkTag.tsx
+++ b/src/routes/(main)/agent/profile/features/Header/AgentForkTag.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import { GitFork } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/profile/features/Header/AgentStatusTag.tsx b/src/routes/(main)/agent/profile/features/Header/AgentStatusTag.tsx
index 940590962b2..59e78840ceb 100644
--- a/src/routes/(main)/agent/profile/features/Header/AgentStatusTag.tsx
+++ b/src/routes/(main)/agent/profile/features/Header/AgentStatusTag.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/profile/features/Header/AgentVersionReviewTag.tsx b/src/routes/(main)/agent/profile/features/Header/AgentVersionReviewTag.tsx
index ee8657e7cfd..6763a3ba764 100644
--- a/src/routes/(main)/agent/profile/features/Header/AgentVersionReviewTag.tsx
+++ b/src/routes/(main)/agent/profile/features/Header/AgentVersionReviewTag.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/profile/features/Header/index.tsx b/src/routes/(main)/agent/profile/features/Header/index.tsx
index 588c17fea97..97eb89ab12c 100644
--- a/src/routes/(main)/agent/profile/features/Header/index.tsx
+++ b/src/routes/(main)/agent/profile/features/Header/index.tsx
@@ -1,8 +1,7 @@
import { isDesktop } from '@lobechat/const';
import { getActivePluginIds, type LobeAgentConfig } from '@lobechat/types';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, confirmModal, type ModalInstance, toast } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
+import { ActionIcon, confirmModal, type ModalInstance, toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import type { TFunction } from 'i18next';
import {
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.test.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.test.tsx
index 3cf3994d4d3..3611c3bc7a3 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.test.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.test.tsx
@@ -56,7 +56,7 @@ const mocks = vi.hoisted(() => {
};
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...((await importOriginal()) as Record<string, unknown>),
ActionIcon: (props: Record<string, unknown>) => {
mocks.actionIconProps.all.push(props);
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.tsx
index 2263e608be4..3ab2dcac2fc 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/AgentHeader.tsx
@@ -1,9 +1,7 @@
'use client';
import { agentSecondaryDisplayName } from '@lobechat/types';
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Button, cssVar, Flexbox, Text, Tooltip } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { PencilIcon, SparklesIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/CloudHeterogeneousConfig.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/CloudHeterogeneousConfig.tsx
index 38c28e9a39b..288e780d2cb 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/CloudHeterogeneousConfig.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/CloudHeterogeneousConfig.tsx
@@ -2,10 +2,12 @@
import { type HeterogeneousProviderConfig, type UserCredSummary } from '@lobechat/types';
import { Github } from '@lobehub/icons';
-import { Flexbox } from '@lobehub/ui';
import {
Avatar,
Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
Input,
InputPassword,
Select,
@@ -13,8 +15,7 @@ import {
Tag,
Text,
toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { CheckCircle2, KeyRound, X } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.test.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.test.tsx
index 6d77feb591a..b3e8ddbf4bb 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.test.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.test.tsx
@@ -61,120 +61,130 @@ vi.mock('@lobechat/heterogeneous-agents/client', () => ({
isLocalRuntimeHeterogeneousType: (type: string) => type === 'deepseek-harness',
}));
-vi.mock('@lobehub/ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- CopyButton: () => <button type="button">Copy</button>,
- Flexbox: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
- Icon: () => <span>Icon</span>,
- Input: ({
- onBlur,
- onChange,
- onKeyDown,
- placeholder,
- ref,
- value,
- }: {
- onBlur?: () => void;
- onChange?: (event: { target: { value: string } }) => void;
- onKeyDown?: (event: { key: string; preventDefault: () => void }) => void;
- placeholder?: string;
- ref?: React.Ref<HTMLInputElement>;
- value?: string;
- }) => (
- <input
- placeholder={placeholder}
- ref={ref}
- value={value}
- onBlur={onBlur}
- onChange={(event) => {
- onChange?.({ target: { value: event.target.value } });
- }}
- onKeyDown={(event) => {
- onKeyDown?.({ key: event.key, preventDefault: () => event.preventDefault() });
- }}
- />
- ),
- Tooltip: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
- TooltipGroup: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
-}));
-
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
- ...(await importOriginal<object>()),
- ActionIcon: ({
- 'aria-label': ariaLabel,
- className,
- onClick,
- }: {
- 'aria-label'?: string;
- 'className'?: string;
- 'onClick'?: () => void;
- }) => (
- <button aria-label={ariaLabel} className={className} type="button" onClick={onClick}>
- Refresh
- </button>
- ),
- Button: ({ children, onClick }: { children?: ReactNode; onClick?: () => void }) => (
- <button type="button" onClick={onClick}>
- {children}
- </button>
- ),
- Segmented: ({
- disabled,
- onChange,
- options,
- }: {
- disabled?: boolean;
- onChange?: (value: string) => void;
- options: Array<{ disabled?: boolean; label: ReactNode; value: string }>;
- }) => (
- <div>
- {options.map((option) => (
- <button
- disabled={disabled || option.disabled}
- key={option.value}
- type="button"
- onClick={() => onChange?.(option.value)}
- >
- {option.label}
+vi.mock('@lobehub/ui', async (importOriginal) => {
+ const actual = await importOriginal<Record<string, unknown>>();
+ const factories: ((original: typeof importOriginal) => unknown)[] = [
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ CopyButton: () => <button type="button">Copy</button>,
+ Flexbox: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
+ Icon: () => <span>Icon</span>,
+ Input: ({
+ onBlur,
+ onChange,
+ onKeyDown,
+ placeholder,
+ ref,
+ value,
+ }: {
+ onBlur?: () => void;
+ onChange?: (event: { target: { value: string } }) => void;
+ onKeyDown?: (event: { key: string; preventDefault: () => void }) => void;
+ placeholder?: string;
+ ref?: React.Ref<HTMLInputElement>;
+ value?: string;
+ }) => (
+ <input
+ placeholder={placeholder}
+ ref={ref}
+ value={value}
+ onBlur={onBlur}
+ onChange={(event) => {
+ onChange?.({ target: { value: event.target.value } });
+ }}
+ onKeyDown={(event) => {
+ onKeyDown?.({ key: event.key, preventDefault: () => event.preventDefault() });
+ }}
+ />
+ ),
+ Tooltip: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
+ TooltipGroup: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
+ }),
+ async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ ActionIcon: ({
+ 'aria-label': ariaLabel,
+ className,
+ onClick,
+ }: {
+ 'aria-label'?: string;
+ 'className'?: string;
+ 'onClick'?: () => void;
+ }) => (
+ <button aria-label={ariaLabel} className={className} type="button" onClick={onClick}>
+ Refresh
</button>
- ))}
- </div>
- ),
- Select: ({
- onChange,
- options,
- value,
- }: {
- onChange?: (value: string) => void;
- options?: Array<{
- disabled?: boolean;
- label?: ReactNode;
- options?: Array<{ disabled?: boolean; label: ReactNode; value: string }>;
- value?: string;
- }>;
- value?: string;
- }) => (
- <select value={value} onChange={(event) => onChange?.(event.target.value)}>
- {options?.flatMap((option) =>
- option.options
- ? option.options.map((child) => (
- <option disabled={child.disabled} key={child.value} value={child.value}>
- {child.label}
- </option>
- ))
- : option.value
- ? [
- <option disabled={option.disabled} key={option.value} value={option.value}>
- {option.label}
- </option>,
- ]
- : [],
- )}
- </select>
- ),
- Tag: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
- Text: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
-}));
+ ),
+ Button: ({ children, onClick }: { children?: ReactNode; onClick?: () => void }) => (
+ <button type="button" onClick={onClick}>
+ {children}
+ </button>
+ ),
+ Segmented: ({
+ disabled,
+ onChange,
+ options,
+ }: {
+ disabled?: boolean;
+ onChange?: (value: string) => void;
+ options: Array<{ disabled?: boolean; label: ReactNode; value: string }>;
+ }) => (
+ <div>
+ {options.map((option) => (
+ <button
+ disabled={disabled || option.disabled}
+ key={option.value}
+ type="button"
+ onClick={() => onChange?.(option.value)}
+ >
+ {option.label}
+ </button>
+ ))}
+ </div>
+ ),
+ Select: ({
+ onChange,
+ options,
+ value,
+ }: {
+ onChange?: (value: string) => void;
+ options?: Array<{
+ disabled?: boolean;
+ label?: ReactNode;
+ options?: Array<{ disabled?: boolean; label: ReactNode; value: string }>;
+ value?: string;
+ }>;
+ value?: string;
+ }) => (
+ <select value={value} onChange={(event) => onChange?.(event.target.value)}>
+ {options?.flatMap((option) =>
+ option.options
+ ? option.options.map((child) => (
+ <option disabled={child.disabled} key={child.value} value={child.value}>
+ {child.label}
+ </option>
+ ))
+ : option.value
+ ? [
+ <option disabled={option.disabled} key={option.value} value={option.value}>
+ {option.label}
+ </option>,
+ ]
+ : [],
+ )}
+ </select>
+ ),
+ Tag: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
+ Text: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
+ }),
+ ];
+ const merged: Record<string, unknown> = { ...actual };
+ for (const factory of factories) {
+ const part = (await factory(importOriginal)) as Record<string, unknown>;
+ for (const [key, value] of Object.entries(part)) if (value !== actual[key]) merged[key] = value;
+ }
+ return merged;
+});
vi.mock('react-i18next', () => ({
useTranslation: () => ({
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.tsx
index f117b6a1206..f4894b24dc8 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/HeterogeneousAgentStatusCard.tsx
@@ -12,9 +12,23 @@ import type {
HeterogeneousAuthMode,
HeterogeneousProviderConfig,
} from '@lobechat/types';
-import { CopyButton, Flexbox, Icon, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Button, Input, Segmented, Select, Spin, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Button,
+ CopyButton,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Segmented,
+ Select,
+ Spin,
+ Tag,
+ Text,
+ Tooltip,
+ TooltipGroup,
+} from '@lobehub/ui';
import { CheckCircle2, KeyRound, PencilLine, RefreshCw, XCircle } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -239,7 +253,7 @@ const LocalRuntimeStatusCard = memo<{ provider: HeterogeneousProviderConfig }>((
<Flexbox horizontal align="center" flex={1} gap={8} justify="space-between">
<Flexbox horizontal align="center" gap={8}>
<Icon
- color={configured ? 'var(--ant-color-success)' : 'var(--ant-color-warning)'}
+ color={configured ? 'var(--lobe-color-success)' : 'var(--lobe-color-warning)'}
icon={configured ? CheckCircle2 : KeyRound}
size={16}
/>
@@ -589,7 +603,7 @@ const CliHeterogeneousAgentStatusCard = memo<HeterogeneousAgentStatusCardProps>(
if (!status || !status.available) {
return (
<Flexbox horizontal align="center" gap={8} style={{ flexWrap: 'wrap' }}>
- <Icon color="var(--ant-color-error)" icon={XCircle} size={16} />
+ <Icon color="var(--lobe-color-error)" icon={XCircle} size={16} />
<Text className={styles.unavailableText}>
{t('heterogeneousStatus.unavailable', { name: displayName })}
</Text>
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/MentionDropdown.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/MentionDropdown.tsx
index 2e2c1a91c85..c0ea5d690f4 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/MentionDropdown.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/MentionDropdown.tsx
@@ -1,6 +1,5 @@
import { type MenuRenderProps } from '@lobehub/editor';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo, useEffect, useLayoutEffect, useRef, useState } from 'react';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/useMentionItems.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/useMentionItems.tsx
index 97e438ddb11..390e2de7e57 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/useMentionItems.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/MentionList/useMentionItems.tsx
@@ -6,8 +6,7 @@ import { apiPrompt, toolPrompt } from '@lobechat/prompts';
import { type ToolManifest } from '@lobechat/types';
import { type IEditor } from '@lobehub/editor';
import { INSERT_MENTION_COMMAND } from '@lobehub/editor';
-import { Icon, Image } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Image } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useCallback, useMemo } from 'react';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx
index 76e607f70b8..400a14c89fa 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/RemoteAgentConfigCard.tsx
@@ -5,18 +5,21 @@ import {
type RemoteHeterogeneousAgentType,
} from '@lobechat/heterogeneous-agents';
import type { HeterogeneousProviderConfig } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
ActionIcon,
Button as BaseButton,
Button,
createModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
Select,
Tag,
Text,
+ Tooltip,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { t as i18nT } from 'i18next';
import { BotIcon, CheckCircle2, MonitorSmartphone, RefreshCw, XCircle } from 'lucide-react';
import { memo, useCallback, useEffect, useState } from 'react';
@@ -187,7 +190,7 @@ const ChangeDeviceContent = memo<ChangeDeviceContentProps>(
)}
{capabilityOk && (
<Flexbox horizontal align="center" gap={4}>
- <Icon color="var(--ant-color-success)" icon={CheckCircle2} size={14} />
+ <Icon color="var(--lobe-color-success)" icon={CheckCircle2} size={14} />
<Tag color="success" style={{ marginInlineEnd: 0 }}>
{capabilityResult?.version ?? t('platformAgentConfig.availability.available')}
</Tag>
@@ -195,7 +198,7 @@ const ChangeDeviceContent = memo<ChangeDeviceContentProps>(
)}
{capabilityBad && (
<Flexbox horizontal align="center" gap={4}>
- <Icon color="var(--ant-color-error)" icon={XCircle} size={14} />
+ <Icon color="var(--lobe-color-error)" icon={XCircle} size={14} />
<Tag color="error" style={{ marginInlineEnd: 0 }}>
{t('platformAgentConfig.availability.notInstalled')}
</Tag>
@@ -336,7 +339,7 @@ const RemoteAgentConfigCard = memo<RemoteAgentConfigCardProps>(
if (capabilityResult.available) {
return (
<Flexbox horizontal align="center" gap={4}>
- <Icon color="var(--ant-color-success)" icon={CheckCircle2} size={14} />
+ <Icon color="var(--lobe-color-success)" icon={CheckCircle2} size={14} />
<Tag color="success" style={{ marginInlineEnd: 0 }}>
{capabilityResult.version ?? t('platformAgentConfig.availability.available')}
</Tag>
@@ -345,7 +348,7 @@ const RemoteAgentConfigCard = memo<RemoteAgentConfigCardProps>(
}
return (
<Flexbox horizontal align="center" gap={4}>
- <Icon color="var(--ant-color-error)" icon={XCircle} size={14} />
+ <Icon color="var(--lobe-color-error)" icon={XCircle} size={14} />
<Tag color="error" style={{ marginInlineEnd: 0 }}>
{t('platformAgentConfig.availability.notInstalled')}
</Tag>
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.test.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.test.tsx
index 4c8e0a49dcc..ef9f99634d2 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.test.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.test.tsx
@@ -1,4 +1,4 @@
-import type * as BaseUI from '@lobehub/ui/base-ui';
+import type * as BaseUI from '@lobehub/ui';
import { act, render, screen } from '@testing-library/react';
import type { ComponentType } from 'react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -24,7 +24,7 @@ const testState = vi.hoisted(() => ({
const selectPropsSpy = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = await importOriginal<typeof BaseUI>();
const ActualSelect = actual.Select as ComponentType<Record<string, unknown>>;
return {
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.tsx
index 371837f8eb0..75c50dbc996 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentDevicePolicy.tsx
@@ -2,10 +2,8 @@
import { HETEROGENEOUS_TYPE_LABELS } from '@lobechat/heterogeneous-agents';
import type { DeviceExecutionTarget, DeviceListItem, LobeAgentAgencyConfig } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import type { SelectOptions } from '@lobehub/ui/base-ui';
-import { Select } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import type { SelectOptions } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox, Select } from '@lobehub/ui';
import { MonitorSmartphone } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentPolicyCard.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentPolicyCard.tsx
index bafa451857b..c028efa8beb 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentPolicyCard.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/WorkspaceAgentPolicyCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Flexbox, Icon, Text } from '@lobehub/ui';
import type { LucideIcon } from 'lucide-react';
import type { ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/index.tsx b/src/routes/(main)/agent/profile/features/ProfileEditor/index.tsx
index fc7cee506af..0fe211a35c0 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/index.tsx
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/index.tsx
@@ -7,10 +7,8 @@ import {
isServerDefaultHeterogeneousAgentType,
} from '@lobechat/heterogeneous-agents';
import type { HeterogeneousApiConfig, HeterogeneousAuthMode } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import type { TabsItem } from '@lobehub/ui/base-ui';
-import { Alert, Button, Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import type { TabsItem } from '@lobehub/ui';
+import { Alert, Button, createStaticStyles, cssVar, Flexbox, Tabs } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { ChevronDown, Wrench } from 'lucide-react';
import React, { memo } from 'react';
diff --git a/src/routes/(main)/agent/profile/features/ProfileEditor/useAutoName.ts b/src/routes/(main)/agent/profile/features/ProfileEditor/useAutoName.ts
index a2ad3557b47..981fb3233ae 100644
--- a/src/routes/(main)/agent/profile/features/ProfileEditor/useAutoName.ts
+++ b/src/routes/(main)/agent/profile/features/ProfileEditor/useAutoName.ts
@@ -1,5 +1,5 @@
import { randomAgentName } from '@lobechat/const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/_layout/Header.tsx b/src/routes/(main)/community/(detail)/_layout/Header.tsx
index 01e372123a8..83631bd823b 100644
--- a/src/routes/(main)/community/(detail)/_layout/Header.tsx
+++ b/src/routes/(main)/community/(detail)/_layout/Header.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, cssVar, Flexbox } from '@lobehub/ui';
import { ArrowLeft } from 'lucide-react';
import { memo } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/routes/(main)/community/(detail)/_layout/Header/style.ts b/src/routes/(main)/community/(detail)/_layout/Header/style.ts
index 846f08bed07..49c10d5bf3a 100644
--- a/src/routes/(main)/community/(detail)/_layout/Header/style.ts
+++ b/src/routes/(main)/community/(detail)/_layout/Header/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Header container
diff --git a/src/routes/(main)/community/(detail)/_layout/style.ts b/src/routes/(main)/community/(detail)/_layout/style.ts
index e546291c1b4..d639a0b0e3d 100644
--- a/src/routes/(main)/community/(detail)/_layout/style.ts
+++ b/src/routes/(main)/community/(detail)/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Content container
diff --git a/src/routes/(main)/community/(detail)/agent/features/AgentForkTag.tsx b/src/routes/(main)/community/(detail)/agent/features/AgentForkTag.tsx
index c800ce24974..4afe95c0a22 100644
--- a/src/routes/(main)/community/(detail)/agent/features/AgentForkTag.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/AgentForkTag.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import { GitFork } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/Block.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/Block.tsx
index 98abda4f0aa..997bea56a57 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/Block.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/Block.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/KnowledgeItem.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/KnowledgeItem.tsx
index 5e67d0f3090..74eb0e75560 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/KnowledgeItem.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/KnowledgeItem.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => {
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.test.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.test.tsx
index 3462490306a..1408bbd8e2f 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.test.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.test.tsx
@@ -27,23 +27,17 @@ vi.mock('react-i18next', () => ({
useTranslation: () => ({ t: (key: string) => key }),
}));
-vi.mock('antd-style', () => ({
- createStaticStyles: () => ({}),
- cssVar: new Proxy({}, { get: () => 'var(--x)' }),
- cx: (...args: unknown[]) => args.filter(Boolean).join(' '),
-}));
-
vi.mock('@lobechat/builtin-tools', () => ({ builtinTools: [] }));
vi.mock('@lobehub/ui', () => ({
+ Avatar: () => null,
Block: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
+ createStaticStyles: () => ({}),
+ cssVar: new Proxy({}, { get: () => 'var(--x)' }),
+ cx: (...args: unknown[]) => args.filter(Boolean).join(' '),
Flexbox: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
Icon: () => null,
Image: () => null,
-}));
-
-vi.mock('@lobehub/ui/base-ui', () => ({
- Avatar: () => null,
Skeleton: { Text: () => <div data-testid="skeleton" /> },
Tag: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
Text: ({ children }: { children?: ReactNode }) => <span>{children}</span>,
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.tsx
index 0161ff8a950..a2c2635d42d 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Capabilities/PluginItem.tsx
@@ -7,9 +7,19 @@ import {
OFFICIAL_SITE,
} from '@lobechat/const';
import { type DiscoverPluginDetail, type PluginSource } from '@lobechat/types';
-import { Block, Flexbox, Icon, Image } from '@lobehub/ui';
-import { Avatar, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import {
+ Avatar,
+ Block,
+ createStaticStyles,
+ cssVar,
+ cx,
+ Flexbox,
+ Icon,
+ Image,
+ Skeleton,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Nav.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Nav.tsx
index 50bd94c2770..c1fec66c73b 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Nav.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Nav.tsx
@@ -1,9 +1,7 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs, Tag } from '@lobehub/ui';
import {
BookOpenIcon,
HistoryIcon,
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Overview/index.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Overview/index.tsx
index dd2c5e442ef..5780caafa59 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Overview/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Overview/index.tsx
@@ -1,8 +1,6 @@
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Accordion } from '@lobehub/ui/base-ui';
+import { Accordion, Block, Flexbox, useTheme } from '@lobehub/ui';
import { ChatList } from '@lobehub/ui/chat';
-import { useTheme } from 'antd-style';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/TagList.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/TagList.tsx
index 45f60d0f130..a4311ec8696 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/TagList.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/TagList.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Tag } from '@lobehub/ui';
import qs from 'query-string';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/index.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/index.tsx
index 36a36850e16..ab5e89d3c98 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/SystemRole/index.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { MessageCircleHeartIcon, MessageCircleQuestionIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/Versions/index.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/Versions/index.tsx
index da7772fb27e..1f08f203fdb 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/Versions/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/Versions/index.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { CheckIcon, MinusIcon } from 'lucide-react';
import qs from 'query-string';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Details/index.tsx b/src/routes/(main)/community/(detail)/agent/features/Details/index.tsx
index 0a20f1c533a..f65f525ceaa 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Details/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Details/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useQueryState } from '@/hooks/useQueryParam';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Header.tsx b/src/routes/(main)/community/(detail)/agent/features/Header.tsx
index f55df53799f..c17717e1547 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Header.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Header.tsx
@@ -1,9 +1,21 @@
'use client';
import { MCP } from '@lobehub/icons';
-import { Flexbox, Icon, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+ TooltipGroup,
+ useResponsive,
+} from '@lobehub/ui';
import {
BookmarkCheckIcon,
BookmarkIcon,
diff --git a/src/routes/(main)/community/(detail)/agent/features/Sidebar/ActionButton/ForkAndChat.tsx b/src/routes/(main)/community/(detail)/agent/features/Sidebar/ActionButton/ForkAndChat.tsx
index 3b27c714376..b23ed77b550 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Sidebar/ActionButton/ForkAndChat.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Sidebar/ActionButton/ForkAndChat.tsx
@@ -1,9 +1,7 @@
'use client';
import { AGENT_CHAT_URL } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Select, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Select, toast } from '@lobehub/ui';
import { customAlphabet } from 'nanoid/non-secure';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Sidebar/Related/Item.tsx b/src/routes/(main)/community/(detail)/agent/features/Sidebar/Related/Item.tsx
index bc35785d065..f01cfe17ab8 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Sidebar/Related/Item.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Sidebar/Related/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { type DiscoverAssistantItem } from '@/types/discover';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Sidebar/Summary/index.tsx b/src/routes/(main)/community/(detail)/agent/features/Sidebar/Summary/index.tsx
index dab15ee5145..31f68b97b78 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Sidebar/Summary/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Sidebar/Summary/index.tsx
@@ -1,5 +1,4 @@
-import { Accordion } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Accordion, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/agent/features/Sidebar/TocList/index.tsx b/src/routes/(main)/community/(detail)/agent/features/Sidebar/TocList/index.tsx
index fd072163c98..46fd4ef7666 100644
--- a/src/routes/(main)/community/(detail)/agent/features/Sidebar/TocList/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/Sidebar/TocList/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { type AnchorProps } from '@lobehub/ui/base-ui';
+import { type AnchorProps } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/agent/features/StatusPage/index.tsx b/src/routes/(main)/community/(detail)/agent/features/StatusPage/index.tsx
index f6390077f63..fe82146c99e 100644
--- a/src/routes/(main)/community/(detail)/agent/features/StatusPage/index.tsx
+++ b/src/routes/(main)/community/(detail)/agent/features/StatusPage/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Button, Result, Text } from '@lobehub/ui/base-ui';
+import { Button, FluentEmoji, Result, Text } from '@lobehub/ui';
import { CircleAlertIcon, FolderOpenIcon } from 'lucide-react';
import { memo } from 'react';
import { Trans, useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/features/FollowButton.tsx b/src/routes/(main)/community/(detail)/features/FollowButton.tsx
index 61e788d10d4..76bf2f69ebd 100644
--- a/src/routes/(main)/community/(detail)/features/FollowButton.tsx
+++ b/src/routes/(main)/community/(detail)/features/FollowButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/features/ShareButton.tsx b/src/routes/(main)/community/(detail)/features/ShareButton.tsx
index 34d5ad6eafc..2c2ba560cf8 100644
--- a/src/routes/(main)/community/(detail)/features/ShareButton.tsx
+++ b/src/routes/(main)/community/(detail)/features/ShareButton.tsx
@@ -1,6 +1,18 @@
-import { Center, CopyButton, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Input, Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ Center,
+ CopyButton,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Skeleton,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { startCase } from 'es-toolkit/compat';
import { LinkIcon, Share2Icon } from 'lucide-react';
import { type ComponentProps, type ReactNode } from 'react';
diff --git a/src/routes/(main)/community/(detail)/features/Toc/Heading.tsx b/src/routes/(main)/community/(detail)/features/Toc/Heading.tsx
index fb80cc0bbca..c2c91142b63 100644
--- a/src/routes/(main)/community/(detail)/features/Toc/Heading.tsx
+++ b/src/routes/(main)/community/(detail)/features/Toc/Heading.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { kebabCase } from 'es-toolkit/compat';
import { Heading2, Heading3, Heading4, Heading5 } from 'lucide-react';
import { type ComponentProps, type FC, type ReactNode } from 'react';
diff --git a/src/routes/(main)/community/(detail)/features/Toc/index.tsx b/src/routes/(main)/community/(detail)/features/Toc/index.tsx
index ff833e91431..34ee0e0fbc2 100644
--- a/src/routes/(main)/community/(detail)/features/Toc/index.tsx
+++ b/src/routes/(main)/community/(detail)/features/Toc/index.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Anchor, type AnchorProps } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, responsive } from 'antd-style';
+import { Anchor, type AnchorProps } from '@lobehub/ui';
+import { createStaticStyles, cx, responsive } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { SCROLL_PARENT_ID } from '@/routes/(main)/community/features/const';
diff --git a/src/routes/(main)/community/(detail)/features/Toc/useToc.tsx b/src/routes/(main)/community/(detail)/features/Toc/useToc.tsx
index 7e2ad01ddbb..a36d40543bf 100644
--- a/src/routes/(main)/community/(detail)/features/Toc/useToc.tsx
+++ b/src/routes/(main)/community/(detail)/features/Toc/useToc.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type AnchorProps } from '@lobehub/ui/base-ui';
+import { type AnchorProps } from '@lobehub/ui';
import { unionBy } from 'es-toolkit/compat';
import { type FC, type PropsWithChildren } from 'react';
import { createContext, use, useState } from 'react';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Details/Nav.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Details/Nav.tsx
index f1e49d52225..5421c15b030 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Details/Nav.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Details/Nav.tsx
@@ -1,9 +1,7 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs } from '@lobehub/ui';
import { BookOpenIcon, HistoryIcon, SquareUserIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Details/Overview/index.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Details/Overview/index.tsx
index a04d17d7d77..11a1bfd2458 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Details/Overview/index.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Details/Overview/index.tsx
@@ -1,8 +1,15 @@
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Block, Flexbox, Grid } from '@lobehub/ui';
-import { Accordion, Avatar, Text } from '@lobehub/ui/base-ui';
+import {
+ Accordion,
+ Avatar,
+ Block,
+ createStaticStyles,
+ Flexbox,
+ Grid,
+ Text,
+ useTheme,
+} from '@lobehub/ui';
import { ChatList } from '@lobehub/ui/chat';
-import { createStaticStyles, useTheme } from 'antd-style';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/TagList.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/TagList.tsx
index 36629f863dd..5895cd2c124 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/TagList.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/TagList.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag as AntdTag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag as AntdTag } from '@lobehub/ui';
import { memo } from 'react';
interface TagListProps {
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/index.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/index.tsx
index 678dec033b4..d9050770dcc 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/index.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Details/SystemRole/index.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { MessageCircleHeartIcon, MessageCircleQuestionIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Details/Versions/index.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Details/Versions/index.tsx
index c7d02d8e605..68dafaa65cc 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Details/Versions/index.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Details/Versions/index.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { CheckIcon, MinusIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Details/index.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Details/index.tsx
index 1ba4bbebe1e..01ef51502fc 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Details/index.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Details/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useQueryState } from '@/hooks/useQueryParam';
@@ -19,11 +18,7 @@ const Details = memo<{ mobile?: boolean }>(({ mobile: isMobile }) => {
return (
<Flexbox gap={24}>
- <Nav
- activeTab={activeTab as GroupAgentNavKey}
- mobile={mobile}
- setActiveTab={setActiveTab}
- />
+ <Nav activeTab={activeTab as GroupAgentNavKey} mobile={mobile} setActiveTab={setActiveTab} />
<Flexbox
gap={48}
horizontal={!mobile}
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/GroupAgentForkTag.tsx b/src/routes/(main)/community/(detail)/group_agent/features/GroupAgentForkTag.tsx
index 84ad14e9922..56c43acdc07 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/GroupAgentForkTag.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/GroupAgentForkTag.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import { GitFork } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Header.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Header.tsx
index 92069ead47d..e68309b8c46 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Header.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Header.tsx
@@ -1,8 +1,20 @@
'use client';
-import { Flexbox, Icon, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Tag,
+ Text,
+ toast,
+ Tooltip,
+ TooltipGroup,
+ useResponsive,
+} from '@lobehub/ui';
import { BookmarkCheckIcon, BookmarkIcon, DotIcon, GitBranchIcon, UsersIcon } from 'lucide-react';
import qs from 'query-string';
import { memo, useState } from 'react';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx
index ef1b1119d0e..29109da347b 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Select, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Select, toast } from '@lobehub/ui';
import { customAlphabet } from 'nanoid/non-secure';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/Summary/index.tsx b/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/Summary/index.tsx
index fcb44f36ff4..de2f59a18ad 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/Summary/index.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/Sidebar/Summary/index.tsx
@@ -1,5 +1,4 @@
-import { Accordion } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Accordion, cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/group_agent/features/StatusPage/index.tsx b/src/routes/(main)/community/(detail)/group_agent/features/StatusPage/index.tsx
index 9a4f5b63e16..e7e313d4102 100644
--- a/src/routes/(main)/community/(detail)/group_agent/features/StatusPage/index.tsx
+++ b/src/routes/(main)/community/(detail)/group_agent/features/StatusPage/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { FluentEmoji } from '@lobehub/ui';
-import { Button, Result, Text } from '@lobehub/ui/base-ui';
+import { Button, FluentEmoji, Result, Text } from '@lobehub/ui';
import { CircleAlertIcon, FolderOpenIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/mcp/features/Details/Versions/index.tsx b/src/routes/(main)/community/(detail)/mcp/features/Details/Versions/index.tsx
index 1bdb37f8863..b7022eeadbd 100644
--- a/src/routes/(main)/community/(detail)/mcp/features/Details/Versions/index.tsx
+++ b/src/routes/(main)/community/(detail)/mcp/features/Details/Versions/index.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Block, cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { CheckIcon, MinusIcon } from 'lucide-react';
import qs from 'query-string';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/(detail)/mcp/features/Details/index.tsx b/src/routes/(main)/community/(detail)/mcp/features/Details/index.tsx
index 2271cd43cca..04c96370b99 100644
--- a/src/routes/(main)/community/(detail)/mcp/features/Details/index.tsx
+++ b/src/routes/(main)/community/(detail)/mcp/features/Details/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import Agents from '@/features/MCPPluginDetail/Agents';
diff --git a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ActionButton/index.tsx b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ActionButton/index.tsx
index 2ea27e97d27..78925e32418 100644
--- a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ActionButton/index.tsx
+++ b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ActionButton/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, Flexbox, Icon } from '@lobehub/ui';
import { Trash2Icon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ConnectionTypeAlert.tsx b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ConnectionTypeAlert.tsx
index dbbde212fa2..c125b1edb3f 100644
--- a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ConnectionTypeAlert.tsx
+++ b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/ConnectionTypeAlert.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert } from '@lobehub/ui/base-ui';
+import { Alert, Flexbox, Icon } from '@lobehub/ui';
import { Blend, Cloud, LaptopMinimalIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/Related/Item.tsx b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/Related/Item.tsx
index 0f936a35c6c..8be4196221f 100644
--- a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/Related/Item.tsx
+++ b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/Related/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { type DiscoverMcpItem } from '@/types/discover';
diff --git a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/TocList/index.tsx b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/TocList/index.tsx
index 188027e867f..09ed6478c8d 100644
--- a/src/routes/(main)/community/(detail)/mcp/features/Sidebar/TocList/index.tsx
+++ b/src/routes/(main)/community/(detail)/mcp/features/Sidebar/TocList/index.tsx
@@ -1,7 +1,7 @@
'use client';
import { Flexbox } from '@lobehub/ui';
-import { type AnchorProps } from '@lobehub/ui/base-ui';
+import { type AnchorProps } from '@lobehub/ui';
import { startCase } from 'es-toolkit/compat';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/model/features/Details/Nav.tsx b/src/routes/(main)/community/(detail)/model/features/Details/Nav.tsx
index 2a52a06b73f..47596ca56ae 100644
--- a/src/routes/(main)/community/(detail)/model/features/Details/Nav.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Details/Nav.tsx
@@ -1,9 +1,7 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs } from '@lobehub/ui';
import { BookOpenIcon, ListIcon, Settings2Icon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/model/features/Details/Overview/ProviderList/index.tsx b/src/routes/(main)/community/(detail)/model/features/Details/Overview/ProviderList/index.tsx
index b69d99a83fb..48c46dc9bdc 100644
--- a/src/routes/(main)/community/(detail)/model/features/Details/Overview/ProviderList/index.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Details/Overview/ProviderList/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Block, cssVar, Flexbox, Icon, Tooltip, TooltipGroup } from '@lobehub/ui';
import { BadgeCheck, BookIcon, ChevronRightIcon, KeyIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/model/features/Details/Overview/index.tsx b/src/routes/(main)/community/(detail)/model/features/Details/Overview/index.tsx
index fb986176226..c960b93f915 100644
--- a/src/routes/(main)/community/(detail)/model/features/Details/Overview/index.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Details/Overview/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/model/features/Details/Parameter/ParameterItem.tsx b/src/routes/(main)/community/(detail)/model/features/Details/Parameter/ParameterItem.tsx
index 8b2098595a1..05a8a0b8f0c 100644
--- a/src/routes/(main)/community/(detail)/model/features/Details/Parameter/ParameterItem.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Details/Parameter/ParameterItem.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Divider, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/routes/(main)/community/(detail)/model/features/Details/Parameter/index.tsx b/src/routes/(main)/community/(detail)/model/features/Details/Parameter/index.tsx
index 4108010cbb6..ca059712d60 100644
--- a/src/routes/(main)/community/(detail)/model/features/Details/Parameter/index.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Details/Parameter/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Accordion, Tag } from '@lobehub/ui/base-ui';
+import { Accordion, Flexbox, Icon, Tag } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import {
ChartColumnBig,
diff --git a/src/routes/(main)/community/(detail)/model/features/Details/index.tsx b/src/routes/(main)/community/(detail)/model/features/Details/index.tsx
index 5cb95ae4ca6..d6b82109f01 100644
--- a/src/routes/(main)/community/(detail)/model/features/Details/index.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Details/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useQueryState } from '@/hooks/useQueryParam';
diff --git a/src/routes/(main)/community/(detail)/model/features/Header.tsx b/src/routes/(main)/community/(detail)/model/features/Header.tsx
index 1e58cc27c78..860a95c2168 100644
--- a/src/routes/(main)/community/(detail)/model/features/Header.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Header.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useResponsive } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text, useResponsive } from '@lobehub/ui';
import { DotIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/model/features/Sidebar/ActionButton/ChatWithModel.tsx b/src/routes/(main)/community/(detail)/model/features/Sidebar/ActionButton/ChatWithModel.tsx
index 2d55ae9c3e6..7ab21f6da1a 100644
--- a/src/routes/(main)/community/(detail)/model/features/Sidebar/ActionButton/ChatWithModel.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Sidebar/ActionButton/ChatWithModel.tsx
@@ -1,8 +1,6 @@
'use client';
-import { DropdownMenu } from '@lobehub/ui';
-import { Button, SplitButton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, DropdownMenu, SplitButton } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/routes/(main)/community/(detail)/model/features/Sidebar/Related/Item.tsx b/src/routes/(main)/community/(detail)/model/features/Sidebar/Related/Item.tsx
index 8fde2b88547..3f6b79b8b1e 100644
--- a/src/routes/(main)/community/(detail)/model/features/Sidebar/Related/Item.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Sidebar/Related/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/model/features/Sidebar/RelatedProviders/Item.tsx b/src/routes/(main)/community/(detail)/model/features/Sidebar/RelatedProviders/Item.tsx
index 84de3f0fc24..bc5df504521 100644
--- a/src/routes/(main)/community/(detail)/model/features/Sidebar/RelatedProviders/Item.tsx
+++ b/src/routes/(main)/community/(detail)/model/features/Sidebar/RelatedProviders/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/organization/features/FollowStats.tsx b/src/routes/(main)/community/(detail)/organization/features/FollowStats.tsx
index e6e949067b0..7b2fbd3230f 100644
--- a/src/routes/(main)/community/(detail)/organization/features/FollowStats.tsx
+++ b/src/routes/(main)/community/(detail)/organization/features/FollowStats.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/organization/features/Header/Banner.tsx b/src/routes/(main)/community/(detail)/organization/features/Header/Banner.tsx
index 478ce09f2f2..b2ce527211c 100644
--- a/src/routes/(main)/community/(detail)/organization/features/Header/Banner.tsx
+++ b/src/routes/(main)/community/(detail)/organization/features/Header/Banner.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Center, createStaticStyles, responsive } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/routes/(main)/community/(detail)/organization/features/Header/index.tsx b/src/routes/(main)/community/(detail)/organization/features/Header/index.tsx
index 568cf7008e8..b1b8d044e77 100644
--- a/src/routes/(main)/community/(detail)/organization/features/Header/index.tsx
+++ b/src/routes/(main)/community/(detail)/organization/features/Header/index.tsx
@@ -1,9 +1,7 @@
'use client';
import { SiGithub, SiX } from '@icons-pack/react-simple-icons';
-import { Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Avatar, cssVar, Flexbox, Tag, Text, Tooltip, TooltipGroup } from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Details/Nav.tsx b/src/routes/(main)/community/(detail)/provider/features/Details/Nav.tsx
index 71c6231aea6..5fd47cb9a53 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Details/Nav.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Details/Nav.tsx
@@ -1,9 +1,7 @@
'use client';
import { BRANDING_PROVIDER, SOCIAL_URL } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Icon, Tabs } from '@lobehub/ui';
import { BookOpenIcon, BrainCircuitIcon, ListIcon, SquareArrowOutUpRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Details/Overview/ModelList/index.tsx b/src/routes/(main)/community/(detail)/provider/features/Details/Overview/ModelList/index.tsx
index 6e60241c9d6..65f06a02018 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Details/Overview/ModelList/index.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Details/Overview/ModelList/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { ActionIcon, Block, cssVar, Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
import { ChevronRightIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Details/Overview/index.tsx b/src/routes/(main)/community/(detail)/provider/features/Details/Overview/index.tsx
index 1a514006206..09ec6bff692 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Details/Overview/index.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Details/Overview/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Details/index.tsx b/src/routes/(main)/community/(detail)/provider/features/Details/index.tsx
index 42b3b0b6ec2..90f715c28e8 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Details/index.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Details/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { useResponsive } from 'antd-style';
+import { Flexbox, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useQueryState } from '@/hooks/useQueryParam';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Header.tsx b/src/routes/(main)/community/(detail)/provider/features/Header.tsx
index 173bfa38c45..89767cad8ef 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Header.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Header.tsx
@@ -1,9 +1,7 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Flexbox, stopPropagation } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { cssVar, useResponsive } from 'antd-style';
+import { ActionIcon, cssVar, Flexbox, stopPropagation, useResponsive } from '@lobehub/ui';
import { GlobeIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/ProviderConfig.tsx b/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/ProviderConfig.tsx
index 66f33b757b5..0a2ac290ab8 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/ProviderConfig.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/ProviderConfig.tsx
@@ -1,8 +1,7 @@
'use client';
import { isDesktop } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { Button, SplitButton } from '@lobehub/ui/base-ui';
+import { Button, Icon, SplitButton } from '@lobehub/ui';
import { SquareArrowOutUpRight } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/index.tsx b/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/index.tsx
index 920ad52077f..97b76724dde 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/index.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Sidebar/ActionButton/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Sidebar/Related/Item.tsx b/src/routes/(main)/community/(detail)/provider/features/Sidebar/Related/Item.tsx
index d5bc4be271a..f435b41f9b8 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Sidebar/Related/Item.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Sidebar/Related/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/provider/features/Sidebar/RelatedModels/Item.tsx b/src/routes/(main)/community/(detail)/provider/features/Sidebar/RelatedModels/Item.tsx
index b30af5ee3c9..517358e1bbe 100644
--- a/src/routes/(main)/community/(detail)/provider/features/Sidebar/RelatedModels/Item.tsx
+++ b/src/routes/(main)/community/(detail)/provider/features/Sidebar/RelatedModels/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/FollowStats.tsx b/src/routes/(main)/community/(detail)/user/features/FollowStats.tsx
index 65945c26d55..e2145d34b80 100644
--- a/src/routes/(main)/community/(detail)/user/features/FollowStats.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/FollowStats.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/Header/Banner.tsx b/src/routes/(main)/community/(detail)/user/features/Header/Banner.tsx
index 078d8075e6a..66fbf62ac9e 100644
--- a/src/routes/(main)/community/(detail)/user/features/Header/Banner.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/Header/Banner.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Center, createStaticStyles, responsive } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/routes/(main)/community/(detail)/user/features/Header/index.tsx b/src/routes/(main)/community/(detail)/user/features/Header/index.tsx
index aec7f247a2a..da7bc90ae96 100644
--- a/src/routes/(main)/community/(detail)/user/features/Header/index.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/Header/index.tsx
@@ -1,9 +1,17 @@
'use client';
import { SiGithub, SiX } from '@icons-pack/react-simple-icons';
-import { Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ cssVar,
+ Flexbox,
+ Tag,
+ Text,
+ Tooltip,
+ TooltipGroup,
+} from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/StatusFilter.tsx b/src/routes/(main)/community/(detail)/user/features/StatusFilter.tsx
index 8df9ed2fa8c..20d50324db3 100644
--- a/src/routes/(main)/community/(detail)/user/features/StatusFilter.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/StatusFilter.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx b/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx
index dc704ea34f2..8e7a8249e9b 100644
--- a/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/SubmitRepoModal.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Input, Text, toast } from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+import { Flexbox, Input, Text, toast } from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/UserAgentCard.tsx b/src/routes/(main)/community/(detail)/user/features/UserAgentCard.tsx
index a923dd5486e..5ed7d13a430 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserAgentCard.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserAgentCard.tsx
@@ -1,16 +1,21 @@
'use client';
import {
+ Avatar,
Block,
+ createStaticStyles,
+ cx,
DropdownMenu,
Flexbox,
Icon,
stopPropagation,
+ Tag as AntTag,
+ Tag,
+ Text,
+ toast,
Tooltip,
TooltipGroup,
} from '@lobehub/ui';
-import { Avatar, Tag as AntTag, Tag, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
import {
AlertTriangle,
ClockIcon,
diff --git a/src/routes/(main)/community/(detail)/user/features/UserAgentList.tsx b/src/routes/(main)/community/(detail)/user/features/UserAgentList.tsx
index 94fad2293fa..c26d2d8c771 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserAgentList.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserAgentList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, SearchBar } from '@lobehub/ui';
-import { Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Pagination, SearchBar, Tag, Text } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/UserGroupCard.tsx b/src/routes/(main)/community/(detail)/user/features/UserGroupCard.tsx
index 154e40e5c81..f85463dfaaa 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserGroupCard.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserGroupCard.tsx
@@ -1,16 +1,20 @@
'use client';
import {
+ Avatar,
Block,
+ createStaticStyles,
+ cx,
DropdownMenu,
Flexbox,
Icon,
stopPropagation,
+ Tag as AntTag,
+ Tag,
+ Text,
Tooltip,
TooltipGroup,
} from '@lobehub/ui';
-import { Avatar, Tag as AntTag, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
import {
AlertTriangle,
ClockIcon,
diff --git a/src/routes/(main)/community/(detail)/user/features/UserGroupList.tsx b/src/routes/(main)/community/(detail)/user/features/UserGroupList.tsx
index f245c09b562..6143d51fcc5 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserGroupList.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserGroupList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, SearchBar } from '@lobehub/ui';
-import { Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Pagination, SearchBar, Tag, Text } from '@lobehub/ui';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/UserPluginCard.tsx b/src/routes/(main)/community/(detail)/user/features/UserPluginCard.tsx
index 4e450d6ffe4..aeca5c0c7eb 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserPluginCard.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserPluginCard.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Avatar, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Block, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/routes/(main)/community/(detail)/user/features/UserPluginList.tsx b/src/routes/(main)/community/(detail)/user/features/UserPluginList.tsx
index 7c1aaca65f3..351e7d800f2 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserPluginList.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserPluginList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Input, Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Icon, Input, Pagination, Tag, Text } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/UserSkillCard.tsx b/src/routes/(main)/community/(detail)/user/features/UserSkillCard.tsx
index c4bce76fac3..4bf0d011ee1 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserSkillCard.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserSkillCard.tsx
@@ -1,9 +1,18 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Block, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { ClockIcon, FileTextIcon, StarIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/UserSkillList.tsx b/src/routes/(main)/community/(detail)/user/features/UserSkillList.tsx
index 23966e5ec49..9ac73bc1216 100644
--- a/src/routes/(main)/community/(detail)/user/features/UserSkillList.tsx
+++ b/src/routes/(main)/community/(detail)/user/features/UserSkillList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Button, Input, Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Button, Flexbox, Grid, Icon, Input, Pagination, Tag, Text } from '@lobehub/ui';
import { Plus, SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/user/features/useUserDetail.ts b/src/routes/(main)/community/(detail)/user/features/useUserDetail.ts
index 0acd652c9af..8c29c8b5c4f 100644
--- a/src/routes/(main)/community/(detail)/user/features/useUserDetail.ts
+++ b/src/routes/(main)/community/(detail)/user/features/useUserDetail.ts
@@ -1,6 +1,6 @@
'use client';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
+import { confirmModal, toast } from '@lobehub/ui';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/Header/Banner.tsx b/src/routes/(main)/community/(detail)/workspace/features/Header/Banner.tsx
index 478ce09f2f2..b2ce527211c 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/Header/Banner.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/Header/Banner.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { createStaticStyles, responsive } from 'antd-style';
+import { Center, createStaticStyles, responsive } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/routes/(main)/community/(detail)/workspace/features/Header/index.tsx b/src/routes/(main)/community/(detail)/workspace/features/Header/index.tsx
index 07c9a224e3f..b42d4dd796e 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/Header/index.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/Header/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox, Tooltip, TooltipGroup } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ cssVar,
+ Flexbox,
+ Skeleton,
+ Text,
+ Tooltip,
+ TooltipGroup,
+} from '@lobehub/ui';
import { ExternalLink, Globe, Settings } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceAgentList.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceAgentList.tsx
index 84742b39efd..a4155275802 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceAgentList.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceAgentList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Input, Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Icon, Input, Pagination, Tag, Text } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceContent.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceContent.tsx
index 06bed7403e1..dc41b7ea739 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceContent.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceContent.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
+import { Button, Center, Flexbox, Icon, Text } from '@lobehub/ui';
import { Building2 } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceGroupList.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceGroupList.tsx
index 30502fcb503..1e5262c5a8c 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceGroupList.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceGroupList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Input, Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Icon, Input, Pagination, Tag, Text } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspacePluginList.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspacePluginList.tsx
index 845ac3e9ede..9c23cacedcf 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspacePluginList.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspacePluginList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Input, Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Icon, Input, Pagination, Tag, Text } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx
index 15854ad01cf..1cf74ea3f9c 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/Content.tsx
@@ -1,20 +1,23 @@
'use client';
import { OFFICIAL_URL } from '@lobechat/const';
-import { Center, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import {
Accordion,
Button,
+ Center,
+ cssVar,
+ Flexbox,
+ Icon,
Input,
Spin,
Text,
TextArea,
toast,
+ Tooltip,
Upload,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { cssVar } from 'antd-style';
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { CircleHelp, Globe, ImagePlus, Trash2 } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/index.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/index.tsx
index c139abc0aa6..073e516acc5 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/index.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceProfileModal/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import type { ModalInstance } from '@lobehub/ui/base-ui';
-import { createModal, Text } from '@lobehub/ui/base-ui';
+import type { ModalInstance } from '@lobehub/ui';
+import { createModal, Flexbox, Text } from '@lobehub/ui';
import { t } from 'i18next';
import type { DiscoverUserInfo } from '@/types/discover';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceSkillList.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceSkillList.tsx
index 7d66a7060e6..8d0a9030292 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceSkillList.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceSkillList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Grid, Icon } from '@lobehub/ui';
-import { Input, Pagination, Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Grid, Icon, Input, Pagination, Tag, Text } from '@lobehub/ui';
import { SearchIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceStatusFilter.tsx b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceStatusFilter.tsx
index 8ae63ed8d57..d0092a2f238 100644
--- a/src/routes/(main)/community/(detail)/workspace/features/WorkspaceStatusFilter.tsx
+++ b/src/routes/(main)/community/(detail)/workspace/features/WorkspaceStatusFilter.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Select } from '@lobehub/ui/base-ui';
+import { Select } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/(home)/features/CreatorRewardBanner.tsx b/src/routes/(main)/community/(list)/(home)/features/CreatorRewardBanner.tsx
index e29233dab5c..f9660c85d6c 100644
--- a/src/routes/(main)/community/(list)/(home)/features/CreatorRewardBanner.tsx
+++ b/src/routes/(main)/community/(list)/(home)/features/CreatorRewardBanner.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx, responsive } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox, responsive } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/_layout/Footer.tsx b/src/routes/(main)/community/(list)/_layout/Footer.tsx
index cf095320eda..6e17110001a 100644
--- a/src/routes/(main)/community/(list)/_layout/Footer.tsx
+++ b/src/routes/(main)/community/(list)/_layout/Footer.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { Button, createStaticStyles, cx, Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/_layout/Header.tsx b/src/routes/(main)/community/(list)/_layout/Header.tsx
index 4124eec6525..22ef5138b5b 100644
--- a/src/routes/(main)/community/(list)/_layout/Header.tsx
+++ b/src/routes/(main)/community/(list)/_layout/Header.tsx
@@ -1,6 +1,6 @@
'use client';
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/routes/(main)/community/(list)/_layout/Header/style.ts b/src/routes/(main)/community/(list)/_layout/Header/style.ts
index 846f08bed07..49c10d5bf3a 100644
--- a/src/routes/(main)/community/(list)/_layout/Header/style.ts
+++ b/src/routes/(main)/community/(list)/_layout/Header/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Header container
diff --git a/src/routes/(main)/community/(list)/_layout/style.ts b/src/routes/(main)/community/(list)/_layout/style.ts
index 2079d69ffcc..0e52f08d58d 100644
--- a/src/routes/(main)/community/(list)/_layout/style.ts
+++ b/src/routes/(main)/community/(list)/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
diff --git a/src/routes/(main)/community/(list)/agent/_layout/style.ts b/src/routes/(main)/community/(list)/agent/_layout/style.ts
index 2de133da16b..dd210644e40 100644
--- a/src/routes/(main)/community/(list)/agent/_layout/style.ts
+++ b/src/routes/(main)/community/(list)/agent/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Main container
diff --git a/src/routes/(main)/community/(list)/agent/features/Category/index.tsx b/src/routes/(main)/community/(list)/agent/features/Category/index.tsx
index ab2bf9d48f1..ab24ed69395 100644
--- a/src/routes/(main)/community/(list)/agent/features/Category/index.tsx
+++ b/src/routes/(main)/community/(list)/agent/features/Category/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import qs from 'query-string';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/community/(list)/agent/features/List/Item.tsx b/src/routes/(main)/community/(list)/agent/features/List/Item.tsx
index 8c044c3f4e9..daf38d94189 100644
--- a/src/routes/(main)/community/(list)/agent/features/List/Item.tsx
+++ b/src/routes/(main)/community/(list)/agent/features/List/Item.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, Block, createStaticStyles, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import { ClockIcon } from 'lucide-react';
import qs from 'query-string';
import React, { memo, useCallback } from 'react';
diff --git a/src/routes/(main)/community/(list)/agent/features/List/TokenTag.tsx b/src/routes/(main)/community/(list)/agent/features/List/TokenTag.tsx
index cdc57b4d287..0683c6e28f4 100644
--- a/src/routes/(main)/community/(list)/agent/features/List/TokenTag.tsx
+++ b/src/routes/(main)/community/(list)/agent/features/List/TokenTag.tsx
@@ -1,7 +1,5 @@
import { MCP } from '@lobehub/icons';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Tag, Tooltip } from '@lobehub/ui';
import { BookTextIcon, CoinsIcon, GitForkIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/features/Pagination.tsx b/src/routes/(main)/community/(list)/features/Pagination.tsx
index e9cd95e8b80..a8fdc6e316b 100644
--- a/src/routes/(main)/community/(list)/features/Pagination.tsx
+++ b/src/routes/(main)/community/(list)/features/Pagination.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Pagination as Page } from '@lobehub/ui/base-ui';
-import { useResponsive } from 'antd-style';
+import { Pagination as Page, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useLocation } from 'react-router';
diff --git a/src/routes/(main)/community/(list)/features/SortButton/index.tsx b/src/routes/(main)/community/(list)/features/SortButton/index.tsx
index d5a25b2a326..f24e8aeec2d 100644
--- a/src/routes/(main)/community/(list)/features/SortButton/index.tsx
+++ b/src/routes/(main)/community/(list)/features/SortButton/index.tsx
@@ -1,6 +1,5 @@
import { type DropdownItem, type DropdownMenuCheckboxItem } from '@lobehub/ui';
-import { DropdownMenu, Icon } from '@lobehub/ui';
-import { Button } from '@lobehub/ui/base-ui';
+import { Button, DropdownMenu, Icon } from '@lobehub/ui';
import { ArrowDownWideNarrow, ChevronDown } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/mcp/_layout/style.ts b/src/routes/(main)/community/(list)/mcp/_layout/style.ts
index 2de133da16b..dd210644e40 100644
--- a/src/routes/(main)/community/(list)/mcp/_layout/style.ts
+++ b/src/routes/(main)/community/(list)/mcp/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Main container
diff --git a/src/routes/(main)/community/(list)/mcp/features/Category/index.tsx b/src/routes/(main)/community/(list)/mcp/features/Category/index.tsx
index ae499d4c31b..dcaaf6b69eb 100644
--- a/src/routes/(main)/community/(list)/mcp/features/Category/index.tsx
+++ b/src/routes/(main)/community/(list)/mcp/features/Category/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import qs from 'query-string';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/community/(list)/mcp/features/List/ConnectionTypeTag.tsx b/src/routes/(main)/community/(list)/mcp/features/List/ConnectionTypeTag.tsx
index 4ac07d4febc..1fe254bb82f 100644
--- a/src/routes/(main)/community/(list)/mcp/features/List/ConnectionTypeTag.tsx
+++ b/src/routes/(main)/community/(list)/mcp/features/List/ConnectionTypeTag.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Tooltip } from '@lobehub/ui';
import { Blend, Cloud, LaptopMinimalIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/mcp/features/List/Item.tsx b/src/routes/(main)/community/(list)/mcp/features/List/Item.tsx
index b7fe82ebba6..e336f686044 100644
--- a/src/routes/(main)/community/(list)/mcp/features/List/Item.tsx
+++ b/src/routes/(main)/community/(list)/mcp/features/List/Item.tsx
@@ -1,10 +1,20 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Block, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Avatar,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Tag,
+ Text,
+ Tooltip,
+} from '@lobehub/ui';
import { Spotlight } from '@lobehub/ui/awesome';
-import { ActionIcon, Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
import { ClockIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/model/_layout/style.ts b/src/routes/(main)/community/(list)/model/_layout/style.ts
index 2de133da16b..dd210644e40 100644
--- a/src/routes/(main)/community/(list)/model/_layout/style.ts
+++ b/src/routes/(main)/community/(list)/model/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Main container
diff --git a/src/routes/(main)/community/(list)/model/features/Category/index.tsx b/src/routes/(main)/community/(list)/model/features/Category/index.tsx
index ed1ff8a3d47..2cc4fa8c9ea 100644
--- a/src/routes/(main)/community/(list)/model/features/Category/index.tsx
+++ b/src/routes/(main)/community/(list)/model/features/Category/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import qs from 'query-string';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/community/(list)/model/features/List/Item.tsx b/src/routes/(main)/community/(list)/model/features/List/Item.tsx
index 54f4ff0cf2a..6cc9ddd669e 100644
--- a/src/routes/(main)/community/(list)/model/features/List/Item.tsx
+++ b/src/routes/(main)/community/(list)/model/features/List/Item.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon, Popover } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Icon, Popover, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { ClockIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/(list)/model/features/List/ModelTypeIcon.tsx b/src/routes/(main)/community/(list)/model/features/List/ModelTypeIcon.tsx
index cf61145df91..67514c2ba6b 100644
--- a/src/routes/(main)/community/(list)/model/features/List/ModelTypeIcon.tsx
+++ b/src/routes/(main)/community/(list)/model/features/List/ModelTypeIcon.tsx
@@ -1,5 +1,4 @@
-import { Icon, Tooltip } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon, Tooltip } from '@lobehub/ui';
import { startCase } from 'es-toolkit/compat';
import { type LucideIcon } from 'lucide-react';
import {
diff --git a/src/routes/(main)/community/(list)/provider/features/List/Item.tsx b/src/routes/(main)/community/(list)/provider/features/List/Item.tsx
index 6153a6c0da0..d5f82ff58e1 100644
--- a/src/routes/(main)/community/(list)/provider/features/List/Item.tsx
+++ b/src/routes/(main)/community/(list)/provider/features/List/Item.tsx
@@ -1,7 +1,14 @@
import { Github } from '@lobehub/icons';
-import { Block, Flexbox, MaskShadow, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ MaskShadow,
+ stopPropagation,
+ Text,
+} from '@lobehub/ui';
import { GlobeIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/(list)/skill/_layout/style.ts b/src/routes/(main)/community/(list)/skill/_layout/style.ts
index 68b70b458ae..7f150ec3518 100644
--- a/src/routes/(main)/community/(list)/skill/_layout/style.ts
+++ b/src/routes/(main)/community/(list)/skill/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
mainContainer: css`
diff --git a/src/routes/(main)/community/(list)/skill/features/Category/index.tsx b/src/routes/(main)/community/(list)/skill/features/Category/index.tsx
index 7c7a4b83b50..90d7fdb8e3f 100644
--- a/src/routes/(main)/community/(list)/skill/features/Category/index.tsx
+++ b/src/routes/(main)/community/(list)/skill/features/Category/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import qs from 'query-string';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/community/(list)/skill/features/List/Item.tsx b/src/routes/(main)/community/(list)/skill/features/List/Item.tsx
index 10b8e26c781..da11c9718d0 100644
--- a/src/routes/(main)/community/(list)/skill/features/List/Item.tsx
+++ b/src/routes/(main)/community/(list)/skill/features/List/Item.tsx
@@ -1,10 +1,19 @@
'use client';
import { Github } from '@lobehub/icons';
-import { Block, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
+import {
+ ActionIcon,
+ Avatar,
+ Block,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ stopPropagation,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { Spotlight } from '@lobehub/ui/awesome';
-import { ActionIcon, Avatar, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
import { ClockIcon, FileTextIcon, StarIcon } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/community/_layout/style.ts b/src/routes/(main)/community/_layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/routes/(main)/community/_layout/style.ts
+++ b/src/routes/(main)/community/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/routes/(main)/community/components/CardBanner.tsx b/src/routes/(main)/community/components/CardBanner.tsx
index 31008079d82..73e07fedd05 100644
--- a/src/routes/(main)/community/components/CardBanner.tsx
+++ b/src/routes/(main)/community/components/CardBanner.tsx
@@ -1,7 +1,5 @@
import { type DivProps } from '@lobehub/ui';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Avatar, createStaticStyles, cssVar, cx, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/components/CategoryMenu.tsx b/src/routes/(main)/community/components/CategoryMenu.tsx
index 44668246a5f..4ff383e3927 100644
--- a/src/routes/(main)/community/components/CategoryMenu.tsx
+++ b/src/routes/(main)/community/components/CategoryMenu.tsx
@@ -1,7 +1,7 @@
'use client';
-import { List, type ListClickInfo, type ListItemType } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { List, type ListClickInfo, type ListItemType } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { type CSSProperties, memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/routes/(main)/community/components/ListLoading.tsx b/src/routes/(main)/community/components/ListLoading.tsx
index 1bdda5e29d0..4c463c91351 100644
--- a/src/routes/(main)/community/components/ListLoading.tsx
+++ b/src/routes/(main)/community/components/ListLoading.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { cssVar, useResponsive } from 'antd-style';
+import { cssVar, Flexbox, Skeleton, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import {
diff --git a/src/routes/(main)/community/components/Statistic.tsx b/src/routes/(main)/community/components/Statistic.tsx
index 055e3ff6897..767710a2a69 100644
--- a/src/routes/(main)/community/components/Statistic.tsx
+++ b/src/routes/(main)/community/components/Statistic.tsx
@@ -1,7 +1,5 @@
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';
import { HelpCircleIcon } from 'lucide-react';
import { type CSSProperties, type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/components/Title.tsx b/src/routes/(main)/community/components/Title.tsx
index 52d6b9c46c7..a4ef7f2ff84 100644
--- a/src/routes/(main)/community/components/Title.tsx
+++ b/src/routes/(main)/community/components/Title.tsx
@@ -1,9 +1,15 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, responsive, useResponsive } from 'antd-style';
+import {
+ Button,
+ createStaticStyles,
+ Flexbox,
+ Icon,
+ responsive,
+ Tag,
+ useResponsive,
+} from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/features/Search.tsx b/src/routes/(main)/community/features/Search.tsx
index 6fa374ff3ee..ef3994a1e8c 100644
--- a/src/routes/(main)/community/features/Search.tsx
+++ b/src/routes/(main)/community/features/Search.tsx
@@ -1,8 +1,7 @@
'use client';
import { type SearchBarProps } from '@lobehub/ui';
-import { SearchBar } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, SearchBar } from '@lobehub/ui';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import urlJoin from 'url-join';
diff --git a/src/routes/(main)/community/features/Title.tsx b/src/routes/(main)/community/features/Title.tsx
index 4822874c306..f667584a8ec 100644
--- a/src/routes/(main)/community/features/Title.tsx
+++ b/src/routes/(main)/community/features/Title.tsx
@@ -1,8 +1,7 @@
'use client';
import { type FlexboxProps } from '@lobehub/ui';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox, Icon } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/community/features/UserAvatar/index.tsx b/src/routes/(main)/community/features/UserAvatar/index.tsx
index 4fef13f7f5f..f346c754cdb 100644
--- a/src/routes/(main)/community/features/UserAvatar/index.tsx
+++ b/src/routes/(main)/community/features/UserAvatar/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Avatar, Button, Skeleton } from '@lobehub/ui/base-ui';
+import { Avatar, Button, Skeleton } from '@lobehub/ui';
import { UserCircleIcon } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/_layout/Sidebar/Body/BenchmarkList.tsx b/src/routes/(main)/eval/_layout/Sidebar/Body/BenchmarkList.tsx
index 7ac90ab2cc6..64717ef708a 100644
--- a/src/routes/(main)/eval/_layout/Sidebar/Body/BenchmarkList.tsx
+++ b/src/routes/(main)/eval/_layout/Sidebar/Body/BenchmarkList.tsx
@@ -1,13 +1,13 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import {
Activity,
Award,
diff --git a/src/routes/(main)/eval/_layout/Sidebar/Body/DatasetList.tsx b/src/routes/(main)/eval/_layout/Sidebar/Body/DatasetList.tsx
index c5cd4b9281b..a7ed5e43379 100644
--- a/src/routes/(main)/eval/_layout/Sidebar/Body/DatasetList.tsx
+++ b/src/routes/(main)/eval/_layout/Sidebar/Body/DatasetList.tsx
@@ -1,13 +1,13 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { Database } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/_layout/Sidebar/Body/ExperimentList.tsx b/src/routes/(main)/eval/_layout/Sidebar/Body/ExperimentList.tsx
index 0a5671b82c2..7fd9d1cd280 100644
--- a/src/routes/(main)/eval/_layout/Sidebar/Body/ExperimentList.tsx
+++ b/src/routes/(main)/eval/_layout/Sidebar/Body/ExperimentList.tsx
@@ -1,14 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
Button,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { Beaker, RotateCw } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/_layout/Sidebar/Body/index.tsx b/src/routes/(main)/eval/_layout/Sidebar/Body/index.tsx
index 79e3f1ef264..ae11fd35a73 100644
--- a/src/routes/(main)/eval/_layout/Sidebar/Body/index.tsx
+++ b/src/routes/(main)/eval/_layout/Sidebar/Body/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import { LayoutDashboardIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/_layout/style.ts b/src/routes/(main)/eval/_layout/style.ts
index 24edd9b5d8b..9f11a20ec9e 100644
--- a/src/routes/(main)/eval/_layout/style.ts
+++ b/src/routes/(main)/eval/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
mainContainer: css`
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/DatasetList.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/DatasetList.tsx
index 52877f5c6ae..1dc0e500cd3 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/DatasetList.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/DatasetList.tsx
@@ -1,13 +1,13 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { Database } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/RunList.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/RunList.tsx
index f35b436a6aa..56dd4b3fb64 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/RunList.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/RunList.tsx
@@ -1,13 +1,13 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import { CheckCircle2, CircleDot, CircleSlash, Loader2, Play, XCircle } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/index.tsx
index a43601ed8b5..b549f5e7f3b 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Body/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import { LayoutDashboard } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Header/BenchmarkHead.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Header/BenchmarkHead.tsx
index b0ed98e7d7a..ac7b35d9ba9 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Header/BenchmarkHead.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/Sidebar/Header/BenchmarkHead.tsx
@@ -1,9 +1,17 @@
'use client';
import { type DropdownItem } from '@lobehub/ui';
-import { Block, Center, DropdownMenu, stopPropagation } from '@lobehub/ui';
-import { ActionIcon, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Center,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Skeleton,
+ stopPropagation,
+ Text,
+} from '@lobehub/ui';
import {
Activity,
Award,
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/style.ts b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/style.ts
index 3f5b4911769..dcd4f4834a2 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/_layout/style.ts
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
mainContainer: css`
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/BenchmarkHeader/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/BenchmarkHeader/index.tsx
index 5ad2ee11e20..3576c03a918 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/BenchmarkHeader/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/BenchmarkHeader/index.tsx
@@ -3,8 +3,7 @@
import type { AgentEvalRunListItem } from '@lobechat/types';
import { formatCost } from '@lobechat/utils';
import { type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { Button, confirmModal, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, confirmModal, createStaticStyles, cssVar, Text } from '@lobehub/ui';
import {
CircleDollarSign,
Clock,
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/DatasetCard.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/DatasetCard.tsx
index f0dde829464..1fb34331a32 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/DatasetCard.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/DatasetCard.tsx
@@ -1,6 +1,16 @@
-import { Block, DropdownMenu, Flexbox } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, Spin, Tag, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Block,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ DropdownMenu,
+ Flexbox,
+ Spin,
+ Tag,
+ toast,
+} from '@lobehub/ui';
import { ArrowRight, ChevronRight, Database, Ellipsis, Pencil, Play, Trash2 } from 'lucide-react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/EmptyState.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/EmptyState.tsx
index 1c78de15db5..2c5e935d112 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/EmptyState.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/EmptyState.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Block, Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Database, Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseEmptyState.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseEmptyState.tsx
index 6dd72e04fbb..cf6db101cf7 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseEmptyState.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseEmptyState.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { Database, FileUp, Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCasePreviewPanel.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCasePreviewPanel.tsx
index 0910c945b6f..29fcccd5142 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCasePreviewPanel.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCasePreviewPanel.tsx
@@ -1,6 +1,4 @@
-import { CopyButton, Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, CopyButton, createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import { X } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseTable.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseTable.tsx
index d6b490cc696..4b30c690e61 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseTable.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/TestCaseTable.tsx
@@ -1,14 +1,5 @@
-import { DropdownMenu, Flexbox } from '@lobehub/ui';
-import {
- ActionIcon,
- Button,
- Input,
- Pagination,
- Table,
- type TableColumn,
- Text,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, DropdownMenu, Flexbox } from '@lobehub/ui';
+import { ActionIcon, Button, Input, Pagination, Table, type TableColumn, Text } from '@lobehub/ui';
import { Ellipsis, ExternalLink, FileUp, Pencil, Plus, Search, Trash2 } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -373,7 +364,7 @@ const TestCaseTable = memo<TestCaseTableProps>(
</div>
<div className={styles.table}>
<Table
- classNames={{ header: styles.tableHeader }}
+ classNames={{ header: { cell: styles.tableHeader } }}
columns={columns}
dataSource={testCases}
pagination={false}
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/index.tsx
index 485bf8bf8ca..24c587f9ff9 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/DatasetsTab/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Block, Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, Skeleton, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Block,
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Skeleton,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -74,13 +82,10 @@ const DatasetsTab = memo<DatasetsTabProps>(
const total = useEvalStore(testCaseSelectors.testCaseTotal(caseQuery));
const loading = useEvalStore(testCaseSelectors.isLoadingTestCases(caseQuery));
- const handleRefreshTestCases = useCallback(
- async () => {
- await refreshTestCases();
- onRefresh();
- },
- [refreshTestCases, onRefresh],
- );
+ const handleRefreshTestCases = useCallback(async () => {
+ await refreshTestCases();
+ onRefresh();
+ }, [refreshTestCases, onRefresh]);
const filteredCases = testCases.filter((c: any) => {
if (diffFilter !== 'all' && c.metadata?.difficulty !== diffFilter) return false;
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx
index 11993619b2d..db4101bf5da 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx
@@ -1,20 +1,21 @@
'use client';
import { AGENT_PROFILE_URL, DEFAULT_INBOX_AVATAR, INBOX_SESSION_ID } from '@lobechat/const';
-import { Flexbox } from '@lobehub/ui';
import {
Accordion,
ActionIcon,
Avatar,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
Input,
InputNumber,
Select,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { SquareArrowOutUpRight } from 'lucide-react';
import { type FC, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Footer.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Footer.tsx
index 9a4355ef95e..98723c60a65 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Footer.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Footer.tsx
@@ -1,8 +1,7 @@
'use client';
import { type DropdownItem, DropdownMenu, Flexbox } from '@lobehub/ui';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, createStaticStyles, ModalFooter, useModalContext } from '@lobehub/ui';
import { ChevronDown } from 'lucide-react';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/index.tsx
index 24df9a3cd4d..6f4b194e4b6 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import RunCreateContent, { type RunCreateContentProps } from './Content';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx
index 4cc04cd45f9..b91d8fde298 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx
@@ -2,19 +2,20 @@
import { AGENT_PROFILE_URL, DEFAULT_INBOX_AVATAR, INBOX_SESSION_ID } from '@lobechat/const';
import type { AgentEvalRunStatus, EvalRunInputConfig } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
import {
Accordion,
ActionIcon,
Avatar,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
Input,
InputNumber,
Select,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { SquareArrowOutUpRight } from 'lucide-react';
import { type FC, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Footer.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Footer.tsx
index 9e7e57447b3..29797c361b6 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Footer.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/index.tsx
index a026183fe54..43847fe0035 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/EmptyState.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/EmptyState.tsx
index 201b96918b3..cc3d11d5c27 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/EmptyState.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/EmptyState.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { Activity, Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/RunCard.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/RunCard.tsx
index 8ad240fa67d..db1e947f224 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/RunCard.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/RunCard.tsx
@@ -1,7 +1,6 @@
import type { AgentEvalRunListItem } from '@lobechat/types';
import { type DropdownItem, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { confirmModal, createStaticStyles, cssVar, toast } from '@lobehub/ui';
import {
AlertTriangle,
ArrowRight,
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/index.tsx
index 0c9a82349d0..326ad26309c 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunsTab/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, Select, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Select, Text } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/index.tsx
index ccd6276ffb4..e6b121866f7 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
import {
Activity,
Award,
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/CaseBanner/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/CaseBanner/index.tsx
index 96f39ea2e10..ec1b3447a16 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/CaseBanner/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/CaseBanner/index.tsx
@@ -2,9 +2,7 @@
import type { EvalRunTopicResult } from '@lobechat/types';
import { formatCost, formatShortenNumber } from '@lobechat/utils';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import {
ArrowLeft,
ChevronLeft,
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/ChatArea/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/ChatArea/index.tsx
index bf6072a49f6..2f34825fd4f 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/ChatArea/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/ChatArea/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/InfoSidebar/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/InfoSidebar/index.tsx
index 7eb62bd7e51..eb885d548fa 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/InfoSidebar/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/features/InfoSidebar/index.tsx
@@ -2,9 +2,15 @@
import type { EvalRubricScore } from '@lobechat/types';
import { formatCost, formatShortenNumber } from '@lobechat/utils';
-import { Flexbox, Highlighter } from '@lobehub/ui';
-import { Accordion, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Accordion,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Highlighter,
+ Tag,
+ Text,
+} from '@lobehub/ui';
import { memo, type ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/index.tsx
index e27b42f6629..6e7c15a944f 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/cases/[caseId]/index.tsx
@@ -1,9 +1,7 @@
'use client';
import type { EvalThreadResult } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Tabs } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Content.tsx
index ce1ca14ae44..608c304f03a 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Content.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Content.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Badge, Checkbox, Table, type TableColumn, Tag, Text, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Badge, Checkbox, Table, type TableColumn, Tag, Text, Tooltip } from '@lobehub/ui';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { type FC, memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Footer.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Footer.tsx
index 7a1d3b4fde5..2a34fc64838 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Footer.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/index.tsx
index 2a7e9a5d888..141768d5864 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/BatchResumeModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import BatchResumeContent from './Content';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/CaseResultsTable/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/CaseResultsTable/index.tsx
index 25635891c0d..654656f24cf 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/CaseResultsTable/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/CaseResultsTable/index.tsx
@@ -2,7 +2,7 @@
import type { EvalThreadResult } from '@lobechat/types';
import { formatCost, formatShortenNumber } from '@lobechat/utils';
-import { Flexbox, Icon } from '@lobehub/ui';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import {
ActionIcon,
Badge,
@@ -12,8 +12,7 @@ import {
type TableColumn,
Tag,
Tooltip,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
import { Footprints, Play, RotateCcw, SearchIcon } from 'lucide-react';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/BenchmarkCharts.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/BenchmarkCharts.tsx
index bf14bcdc7f1..990da611577 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/BenchmarkCharts.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/BenchmarkCharts.tsx
@@ -1,8 +1,7 @@
'use client';
import { BarChart } from '@lobehub/charts';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cssVar, useTheme } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, useTheme } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/ScatterPlot.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/ScatterPlot.tsx
index 0bce6a56e98..daca3d145b0 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/ScatterPlot.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/ScatterPlot.tsx
@@ -1,9 +1,7 @@
'use client';
import { formatCost, formatShortenNumber } from '@lobechat/utils';
-import { Flexbox } from '@lobehub/ui';
-import { Divider, Tag, Tooltip } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useTheme } from 'antd-style';
+import { createStaticStyles, cssVar, Divider, Flexbox, Tag, Tooltip, useTheme } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/StatusDonut.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/StatusDonut.tsx
index f885677957b..28ce3bbbe5a 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/StatusDonut.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/Charts/StatusDonut.tsx
@@ -1,7 +1,7 @@
'use client';
import { DonutChart } from '@lobehub/charts';
-import { useTheme } from 'antd-style';
+import { useTheme } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/IdleState/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/IdleState/index.tsx
index 50604e3dd14..d7e14c746cd 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/IdleState/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/IdleState/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Button, confirmModal, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Button, confirmModal, createStaticStyles, cssVar, cx, Icon, toast } from '@lobehub/ui';
import { Brain, ChartBar, MessageSquare, Play } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/PendingState/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/PendingState/index.tsx
index 3740ec7a2c1..7dcda9599dc 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/PendingState/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/PendingState/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { Brain, ChartBar, Clock, MessageSquare } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunHeader/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunHeader/index.tsx
index 2b4bb4b149a..4fb73b10ad3 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunHeader/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunHeader/index.tsx
@@ -2,9 +2,20 @@
import { AGENT_PROFILE_URL } from '@lobechat/const';
import type { AgentEvalRunDetail } from '@lobechat/types';
-import { copyToClipboard, Flexbox, Highlighter, Markdown } from '@lobehub/ui';
-import { ActionIcon, Avatar, Button, confirmModal, Tag, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ ActionIcon,
+ Avatar,
+ Button,
+ confirmModal,
+ copyToClipboard,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Highlighter,
+ Markdown,
+ Tag,
+ toast,
+} from '@lobehub/ui';
import {
ArrowLeft,
ChevronDown,
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunningState/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunningState/index.tsx
index d2fef000075..2d6d3fe8af4 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunningState/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/RunningState/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx, Icon } from '@lobehub/ui';
import { Brain, ChartBar, Loader2, MessageSquare } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/StatsCards/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/StatsCards/index.tsx
index 9f5d453ac0a..e69d8f3b730 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/StatsCards/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/features/StatsCards/index.tsx
@@ -2,9 +2,7 @@
import type { EvalRunMetrics } from '@lobechat/types';
import { formatCost, formatShortenNumber } from '@lobechat/utils';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { CheckCircle2, Clock, DollarSign, Hash } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/index.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/index.tsx
index 39a15617ac5..3af745100f3 100644
--- a/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/index.tsx
+++ b/src/routes/(main)/eval/bench/[benchmarkId]/runs/[runId]/index.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, Progress, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Progress,
+ Text,
+} from '@lobehub/ui';
import { Play, RotateCcw } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/cases/[caseId]/index.tsx b/src/routes/(main)/eval/cases/[caseId]/index.tsx
index 905065e0ac2..a8eb103ed96 100644
--- a/src/routes/(main)/eval/cases/[caseId]/index.tsx
+++ b/src/routes/(main)/eval/cases/[caseId]/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Center } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Center, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/routes/(main)/eval/datasets/[datasetId]/index.tsx b/src/routes/(main)/eval/datasets/[datasetId]/index.tsx
index ff09d250d38..887befa04fb 100644
--- a/src/routes/(main)/eval/datasets/[datasetId]/index.tsx
+++ b/src/routes/(main)/eval/datasets/[datasetId]/index.tsx
@@ -1,8 +1,14 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Button,
+ confirmModal,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Text,
+ toast,
+} from '@lobehub/ui';
import { ArrowLeft, Database, Pencil, Plus, Trash2 } from 'lucide-react';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/BenchmarkCard/index.tsx b/src/routes/(main)/eval/features/BenchmarkCard/index.tsx
index 4fbc9c635d1..08a200152e0 100644
--- a/src/routes/(main)/eval/features/BenchmarkCard/index.tsx
+++ b/src/routes/(main)/eval/features/BenchmarkCard/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Button, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Flexbox, Icon, Tag, Text } from '@lobehub/ui';
import {
Activity,
ArrowRight,
diff --git a/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx b/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx
index afc2123bd6e..8ad79bc6136 100644
--- a/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx
+++ b/src/routes/(main)/eval/features/BenchmarkEditModal/Content.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Input, Select, TextArea, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { cssVar } from 'antd-style';
+import { cssVar, Input, Select, TextArea, toast, useModalContext } from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/BenchmarkEditModal/Footer.tsx b/src/routes/(main)/eval/features/BenchmarkEditModal/Footer.tsx
index 2c36ceafd17..5a65d1f50af 100644
--- a/src/routes/(main)/eval/features/BenchmarkEditModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/BenchmarkEditModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/BenchmarkEditModal/index.tsx b/src/routes/(main)/eval/features/BenchmarkEditModal/index.tsx
index 22171183b68..a072ca50127 100644
--- a/src/routes/(main)/eval/features/BenchmarkEditModal/index.tsx
+++ b/src/routes/(main)/eval/features/BenchmarkEditModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx b/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx
index cc00171a0b5..401603b05d6 100644
--- a/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx
+++ b/src/routes/(main)/eval/features/CreateBenchmarkModal/Content.tsx
@@ -1,8 +1,7 @@
'use client';
-import { Input, Select, TextArea, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { cssVar } from 'antd-style';
+import { cssVar, Input, Select, TextArea, toast, useModalContext } from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/CreateBenchmarkModal/Footer.tsx b/src/routes/(main)/eval/features/CreateBenchmarkModal/Footer.tsx
index d39211447c4..b6c744468ed 100644
--- a/src/routes/(main)/eval/features/CreateBenchmarkModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/CreateBenchmarkModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/CreateBenchmarkModal/index.tsx b/src/routes/(main)/eval/features/CreateBenchmarkModal/index.tsx
index e955149d082..a3f3262a073 100644
--- a/src/routes/(main)/eval/features/CreateBenchmarkModal/index.tsx
+++ b/src/routes/(main)/eval/features/CreateBenchmarkModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx b/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx
index ab9201f2681..991ebbb0c89 100644
--- a/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx
+++ b/src/routes/(main)/eval/features/DatasetCreateModal/Content.tsx
@@ -1,9 +1,19 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Input, Select, Text, TextArea, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Select,
+ Text,
+ TextArea,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { CheckIcon } from 'lucide-react';
import { type FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetCreateModal/Footer.tsx b/src/routes/(main)/eval/features/DatasetCreateModal/Footer.tsx
index f415364586c..34c1fccc10d 100644
--- a/src/routes/(main)/eval/features/DatasetCreateModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/DatasetCreateModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetCreateModal/index.tsx b/src/routes/(main)/eval/features/DatasetCreateModal/index.tsx
index e5bddb81dae..0836e5fd216 100644
--- a/src/routes/(main)/eval/features/DatasetCreateModal/index.tsx
+++ b/src/routes/(main)/eval/features/DatasetCreateModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx b/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx
index db80b96919d..a7417fc3720 100644
--- a/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx
+++ b/src/routes/(main)/eval/features/DatasetEditModal/Content.tsx
@@ -1,9 +1,19 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Input, Select, Text, TextArea, toast, useModalContext } from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Center,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Input,
+ Select,
+ Text,
+ TextArea,
+ toast,
+ useModalContext,
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { CheckIcon } from 'lucide-react';
import { type FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetEditModal/Footer.tsx b/src/routes/(main)/eval/features/DatasetEditModal/Footer.tsx
index d2dffbf88b4..d615cec315a 100644
--- a/src/routes/(main)/eval/features/DatasetEditModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/DatasetEditModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetEditModal/index.tsx b/src/routes/(main)/eval/features/DatasetEditModal/index.tsx
index 739d46de3c8..e78a2f71a0a 100644
--- a/src/routes/(main)/eval/features/DatasetEditModal/index.tsx
+++ b/src/routes/(main)/eval/features/DatasetEditModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/features/DatasetImportModal/Content.tsx b/src/routes/(main)/eval/features/DatasetImportModal/Content.tsx
index b3c9aa93a81..103fa09d6cd 100644
--- a/src/routes/(main)/eval/features/DatasetImportModal/Content.tsx
+++ b/src/routes/(main)/eval/features/DatasetImportModal/Content.tsx
@@ -1,6 +1,6 @@
'use client';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { type FC, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetImportModal/Footer.tsx b/src/routes/(main)/eval/features/DatasetImportModal/Footer.tsx
index b6bb7691854..282a10d6e27 100644
--- a/src/routes/(main)/eval/features/DatasetImportModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/DatasetImportModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetImportModal/MappingStep.tsx b/src/routes/(main)/eval/features/DatasetImportModal/MappingStep.tsx
index de45cf8eb4e..f3fda134e63 100644
--- a/src/routes/(main)/eval/features/DatasetImportModal/MappingStep.tsx
+++ b/src/routes/(main)/eval/features/DatasetImportModal/MappingStep.tsx
@@ -1,8 +1,15 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Checkbox, Input, Select, Table, type TableColumn, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import {
+ Checkbox,
+ cssVar,
+ Flexbox,
+ Input,
+ Select,
+ Table,
+ type TableColumn,
+ Text,
+} from '@lobehub/ui';
import { memo, type ReactNode, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetImportModal/UploadStep.tsx b/src/routes/(main)/eval/features/DatasetImportModal/UploadStep.tsx
index d219cbfd3d2..bc5c628dda1 100644
--- a/src/routes/(main)/eval/features/DatasetImportModal/UploadStep.tsx
+++ b/src/routes/(main)/eval/features/DatasetImportModal/UploadStep.tsx
@@ -1,9 +1,7 @@
'use client';
import { type FileUploadState } from '@lobechat/types';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Progress, Tag, Upload } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Center, createStaticStyles, Flexbox, Icon, Progress, Tag, Upload } from '@lobehub/ui';
import { CloudUpload, ImportIcon } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/DatasetImportModal/const.ts b/src/routes/(main)/eval/features/DatasetImportModal/const.ts
index bd1fc71e31a..51e1886388f 100644
--- a/src/routes/(main)/eval/features/DatasetImportModal/const.ts
+++ b/src/routes/(main)/eval/features/DatasetImportModal/const.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
export const ROLE_COLORS: Partial<Record<string, string>> = {
choices: cssVar.colorWarning,
diff --git a/src/routes/(main)/eval/features/DatasetImportModal/index.tsx b/src/routes/(main)/eval/features/DatasetImportModal/index.tsx
index 1f5a276dedd..3d00cd12f01 100644
--- a/src/routes/(main)/eval/features/DatasetImportModal/index.tsx
+++ b/src/routes/(main)/eval/features/DatasetImportModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import DatasetImportContent from './Content';
diff --git a/src/routes/(main)/eval/features/Experiments/BenchmarksSection.tsx b/src/routes/(main)/eval/features/Experiments/BenchmarksSection.tsx
index 524bd8fe23e..8993a163bba 100644
--- a/src/routes/(main)/eval/features/Experiments/BenchmarksSection.tsx
+++ b/src/routes/(main)/eval/features/Experiments/BenchmarksSection.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AgentEvalExperimentDetail } from '@lobechat/types';
-import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, Block, createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { ChevronRight, Database } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/DatasetRow.tsx b/src/routes/(main)/eval/features/Experiments/DatasetRow.tsx
index 691bffcc0a3..6c3fa952325 100644
--- a/src/routes/(main)/eval/features/Experiments/DatasetRow.tsx
+++ b/src/routes/(main)/eval/features/Experiments/DatasetRow.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AgentEvalDatasetListItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, Button, createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ChevronRight, Database, Play } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx b/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx
index a524b56732b..a4bf9fa77cf 100644
--- a/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx
+++ b/src/routes/(main)/eval/features/Experiments/ExperimentCreateModal.tsx
@@ -10,8 +10,8 @@ import {
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm } from '@lobehub/ui/base-ui/form';
+} from '@lobehub/ui';
+import { Form, useForm } from '@lobehub/ui/form';
import { t } from 'i18next';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/ExperimentDetailPage.tsx b/src/routes/(main)/eval/features/Experiments/ExperimentDetailPage.tsx
index 2686743286c..9bf4ea1c56e 100644
--- a/src/routes/(main)/eval/features/Experiments/ExperimentDetailPage.tsx
+++ b/src/routes/(main)/eval/features/Experiments/ExperimentDetailPage.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useParams } from 'react-router';
diff --git a/src/routes/(main)/eval/features/Experiments/ExperimentHeader.tsx b/src/routes/(main)/eval/features/Experiments/ExperimentHeader.tsx
index 20beb8f26be..cfb1b8fb96a 100644
--- a/src/routes/(main)/eval/features/Experiments/ExperimentHeader.tsx
+++ b/src/routes/(main)/eval/features/Experiments/ExperimentHeader.tsx
@@ -1,16 +1,8 @@
'use client';
import type { AgentEvalExperimentDetail } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import {
- Button,
- confirmModal,
- type DropdownItem,
- DropdownMenu,
- Text,
- toast,
-} from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox } from '@lobehub/ui';
+import { Button, confirmModal, type DropdownItem, DropdownMenu, Text, toast } from '@lobehub/ui';
import { Ellipsis, Pencil, Trash2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/ExperimentStats.tsx b/src/routes/(main)/eval/features/Experiments/ExperimentStats.tsx
index 345532fb764..68f36ae95cc 100644
--- a/src/routes/(main)/eval/features/Experiments/ExperimentStats.tsx
+++ b/src/routes/(main)/eval/features/Experiments/ExperimentStats.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AgentEvalExperimentDetail } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/RunRow.tsx b/src/routes/(main)/eval/features/Experiments/RunRow.tsx
index 11845112d16..af8af28df65 100644
--- a/src/routes/(main)/eval/features/Experiments/RunRow.tsx
+++ b/src/routes/(main)/eval/features/Experiments/RunRow.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AgentEvalRunListItem } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Flexbox, Text } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/eval/features/Experiments/RunsSection.tsx b/src/routes/(main)/eval/features/Experiments/RunsSection.tsx
index ab02cb66ea6..68852de57e5 100644
--- a/src/routes/(main)/eval/features/Experiments/RunsSection.tsx
+++ b/src/routes/(main)/eval/features/Experiments/RunsSection.tsx
@@ -1,8 +1,7 @@
'use client';
import type { AgentEvalExperimentDetail } from '@lobechat/types';
-import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { FlaskConical } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/ScopedDatasetsSection.tsx b/src/routes/(main)/eval/features/Experiments/ScopedDatasetsSection.tsx
index 09972c7f809..7d930ed73ba 100644
--- a/src/routes/(main)/eval/features/Experiments/ScopedDatasetsSection.tsx
+++ b/src/routes/(main)/eval/features/Experiments/ScopedDatasetsSection.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Empty, Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Empty, Flexbox } from '@lobehub/ui';
import { Database } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/Experiments/SummaryCard.tsx b/src/routes/(main)/eval/features/Experiments/SummaryCard.tsx
index 0da02a8033c..317d0b8fac3 100644
--- a/src/routes/(main)/eval/features/Experiments/SummaryCard.tsx
+++ b/src/routes/(main)/eval/features/Experiments/SummaryCard.tsx
@@ -1,9 +1,7 @@
'use client';
import type { AgentEvalExperimentListItem } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { ArrowRight, Beaker } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/SegmentBar.tsx b/src/routes/(main)/eval/features/SegmentBar.tsx
index 5ede726cb8b..dee1c2e84cd 100644
--- a/src/routes/(main)/eval/features/SegmentBar.tsx
+++ b/src/routes/(main)/eval/features/SegmentBar.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/routes/(main)/eval/features/Sparkline.tsx b/src/routes/(main)/eval/features/Sparkline.tsx
index 64b153d3751..0ffddf2e556 100644
--- a/src/routes/(main)/eval/features/Sparkline.tsx
+++ b/src/routes/(main)/eval/features/Sparkline.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css }) => ({
diff --git a/src/routes/(main)/eval/features/StatusBadge.tsx b/src/routes/(main)/eval/features/StatusBadge.tsx
index 69f023e8c91..45df12bfb06 100644
--- a/src/routes/(main)/eval/features/StatusBadge.tsx
+++ b/src/routes/(main)/eval/features/StatusBadge.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import { Activity, CheckCircle2, Clock, Hourglass, Pause, XCircle } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx b/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx
index 7fe6c1243be..906e73fe3c4 100644
--- a/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx
+++ b/src/routes/(main)/eval/features/TestCaseCreateModal/Content.tsx
@@ -1,17 +1,18 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
Accordion,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
Input,
Select,
Text,
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseCreateModal/Footer.tsx b/src/routes/(main)/eval/features/TestCaseCreateModal/Footer.tsx
index f3d16eb6d97..363a41c580f 100644
--- a/src/routes/(main)/eval/features/TestCaseCreateModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/TestCaseCreateModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseCreateModal/index.tsx b/src/routes/(main)/eval/features/TestCaseCreateModal/index.tsx
index 1d7d9f2a4cb..5e031e6fcfe 100644
--- a/src/routes/(main)/eval/features/TestCaseCreateModal/index.tsx
+++ b/src/routes/(main)/eval/features/TestCaseCreateModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/features/TestCaseDetail/MessageBlock.tsx b/src/routes/(main)/eval/features/TestCaseDetail/MessageBlock.tsx
index 34349ebfa0e..1c15cef55af 100644
--- a/src/routes/(main)/eval/features/TestCaseDetail/MessageBlock.tsx
+++ b/src/routes/(main)/eval/features/TestCaseDetail/MessageBlock.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseDetail/Transcript.tsx b/src/routes/(main)/eval/features/TestCaseDetail/Transcript.tsx
index 8f97d36dcce..bced35cf7bd 100644
--- a/src/routes/(main)/eval/features/TestCaseDetail/Transcript.tsx
+++ b/src/routes/(main)/eval/features/TestCaseDetail/Transcript.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { ChevronRight } from 'lucide-react';
import { memo, type ReactNode, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseDetail/index.tsx b/src/routes/(main)/eval/features/TestCaseDetail/index.tsx
index 67ce998a279..7a54b5916b9 100644
--- a/src/routes/(main)/eval/features/TestCaseDetail/index.tsx
+++ b/src/routes/(main)/eval/features/TestCaseDetail/index.tsx
@@ -1,8 +1,16 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Breadcrumb, Button, Tag, Text, TextArea, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import {
+ Breadcrumb,
+ Button,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Tag,
+ Text,
+ TextArea,
+ toast,
+} from '@lobehub/ui';
import { FileText, Pencil } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseEditModal/Content.test.tsx b/src/routes/(main)/eval/features/TestCaseEditModal/Content.test.tsx
index 0eeb60a9e3b..2a002decc2a 100644
--- a/src/routes/(main)/eval/features/TestCaseEditModal/Content.test.tsx
+++ b/src/routes/(main)/eval/features/TestCaseEditModal/Content.test.tsx
@@ -5,7 +5,7 @@ import TestCaseEditContent from './Content';
const mocks = vi.hoisted(() => ({ close: vi.fn(), updateTestCase: vi.fn() }));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
useModalContext: () => ({ close: mocks.close }),
}));
diff --git a/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx b/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx
index 519e854a1cb..b439115ff47 100644
--- a/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx
+++ b/src/routes/(main)/eval/features/TestCaseEditModal/Content.tsx
@@ -1,17 +1,18 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
Accordion,
+ createStaticStyles,
+ cssVar,
+ Flexbox,
Input,
Select,
Text,
TextArea,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import { Form, useForm, useWatch } from '@lobehub/ui/base-ui/form';
-import { createStaticStyles, cssVar } from 'antd-style';
+} from '@lobehub/ui';
+import { Form, useForm, useWatch } from '@lobehub/ui/form';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseEditModal/Footer.tsx b/src/routes/(main)/eval/features/TestCaseEditModal/Footer.tsx
index 94e5e1596e3..530c54faefd 100644
--- a/src/routes/(main)/eval/features/TestCaseEditModal/Footer.tsx
+++ b/src/routes/(main)/eval/features/TestCaseEditModal/Footer.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Button, ModalFooter, useModalContext } from '@lobehub/ui/base-ui';
+import { Button, ModalFooter, useModalContext } from '@lobehub/ui';
import { type FC } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/eval/features/TestCaseEditModal/index.tsx b/src/routes/(main)/eval/features/TestCaseEditModal/index.tsx
index c29912aabe0..3f8639c6e7f 100644
--- a/src/routes/(main)/eval/features/TestCaseEditModal/index.tsx
+++ b/src/routes/(main)/eval/features/TestCaseEditModal/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { type ModalInstance } from '@lobehub/ui/base-ui';
+import { type ModalInstance } from '@lobehub/ui';
import { t } from 'i18next';
import { createFormModal } from '@/utils/createFormModal';
diff --git a/src/routes/(main)/eval/index.tsx b/src/routes/(main)/eval/index.tsx
index 18dc365dbdc..a778f07b4c2 100644
--- a/src/routes/(main)/eval/index.tsx
+++ b/src/routes/(main)/eval/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Empty, Flexbox } from '@lobehub/ui';
-import { Button, Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Button, createStaticStyles, cssVar, Empty, Flexbox, Skeleton, Text } from '@lobehub/ui';
import { Database, FlaskConical, Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx
index 49278ae0188..2f68ac703b0 100644
--- a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AgentItem.tsx
@@ -1,10 +1,8 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Checkbox, Text } from '@lobehub/ui/base-ui';
+import { Avatar, Checkbox, createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import { useHover } from 'ahooks';
-import { createStaticStyles } from 'antd-style';
import { X } from 'lucide-react';
import { memo, useRef } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AvailableAgentList.tsx b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AvailableAgentList.tsx
index b324b880cc0..4badf692ff6 100644
--- a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AvailableAgentList.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/AvailableAgentList.tsx
@@ -1,9 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, SearchBar } from '@lobehub/ui';
-import { Skeleton, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, SearchBar, Skeleton, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { type ChangeEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/SelectedAgentList.tsx b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/SelectedAgentList.tsx
index 79a305bc3bc..d9af51f2209 100644
--- a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/SelectedAgentList.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/SelectedAgentList.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/index.tsx b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/index.tsx
index 8eb3285b4b1..0ee82266d5e 100644
--- a/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/AddGroupMemberModal/index.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Divider } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Divider, Flexbox } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useSWR from 'swr';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Body.tsx b/src/routes/(main)/group/_layout/Sidebar/Body.tsx
index e89ba5271b6..4fbbe8a81b8 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Body.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Body.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import Members from './Members';
import Topic from './Topic';
diff --git a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx
index d77cce360cb..d79e3d2c2db 100644
--- a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx
@@ -1,9 +1,7 @@
'use client';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, Flexbox } from '@lobehub/ui';
import { UserMinus } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMemberItem.tsx b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMemberItem.tsx
index a0eb2bbacdd..60a69327c38 100644
--- a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMemberItem.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMemberItem.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
+import { Avatar, Flexbox, Tag } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/MemberItem.tsx b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/MemberItem.tsx
index d10600dee0b..8450edfe762 100644
--- a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/MemberItem.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/MemberItem.tsx
@@ -1,8 +1,6 @@
'use client';
-import { SortableList } from '@lobehub/ui';
-import { Avatar, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Avatar, createStaticStyles, SortableList, Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/index.tsx b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/index.tsx
index c8368d58457..6ce84bea151 100644
--- a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/SortMembersModal/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { type AgentGroupMember } from '@lobechat/types';
-import { Flexbox, SortableList } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, SortableList } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Header/Agent/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Header/Agent/index.tsx
index a7557037a55..8469b8c19d9 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Header/Agent/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Header/Agent/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { ActionIcon, Block, Text } from '@lobehub/ui';
import { ChevronsUpDownIcon } from 'lucide-react';
import { type PropsWithChildren } from 'react';
import React, { memo } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Members/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Members/index.tsx
index 2db60245592..3d1d6a23f83 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Members/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Members/index.tsx
@@ -1,6 +1,5 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
@@ -8,9 +7,10 @@ import {
accordionStyles,
AccordionTrigger,
ActionIcon,
+ cx,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import { ArrowUpDown, Loader2Icon, UserPlus } from 'lucide-react';
import { type MouseEvent } from 'react';
import { memo, useState } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/Actions.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/Actions.tsx
index 654faf3fa53..93feab8fe3c 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/Actions.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/Actions.tsx
@@ -1,5 +1,4 @@
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/Filter.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/Filter.tsx
index 25010ce02c5..455c18c790e 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/Filter.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/Filter.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon, DropdownMenu } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { ListFilter } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Actions.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Actions.tsx
index 73bca2db2fb..be1dce25cf0 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Actions.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Actions.tsx
@@ -1,6 +1,5 @@
import type { DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Editing.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Editing.tsx
index fe0ad72ca24..e119995e111 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Editing.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/Editing.tsx
@@ -1,5 +1,4 @@
-import { Popover, stopPropagation } from '@lobehub/ui';
-import { Input } from '@lobehub/ui/base-ui';
+import { Input, Popover, stopPropagation } from '@lobehub/ui';
import { memo, useCallback, useState } from 'react';
import { useOverlayPopoverPortalProps } from '@/features/NavPanel/OverlayContainer';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/index.tsx
index 291ad07d03c..bc8042f943c 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/index.tsx
@@ -1,8 +1,16 @@
import { GROUP_CHAT_TOPIC_URL } from '@lobechat/const';
import type { ChatTopicStatus } from '@lobechat/types';
-import { Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Skeleton, Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, useTheme } from 'antd-style';
+import {
+ createStaticStyles,
+ cssVar,
+ Flexbox,
+ Icon,
+ Skeleton,
+ Tag,
+ Text,
+ Tooltip,
+ useTheme,
+} from '@lobehub/ui';
import { HashIcon, MessageSquareDashed } from 'lucide-react';
import { AnimatePresence } from 'motion/react';
import * as m from 'motion/react-m';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/useDropdownMenu.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/useDropdownMenu.tsx
index 017d1f5e98c..bdafc1f62e0 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/useDropdownMenu.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/List/Item/useDropdownMenu.tsx
@@ -1,8 +1,7 @@
import { GROUP_CHAT_TOPIC_URL } from '@lobechat/const';
import type { ChatTopicStatus } from '@lobechat/types';
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { toast } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { Icon, toast } from '@lobehub/ui';
import {
Archive,
ArchiveRestore,
@@ -40,7 +39,7 @@ export const useTopicItemDropdownMenu = ({
id,
status,
toggleEditing,
-}: TopicItemDropdownMenuProps): (() => MenuProps['items']) => {
+}: TopicItemDropdownMenuProps): (() => DropdownItem[]) => {
const { t } = useTranslation(['topic', 'common']);
const navigate = useWorkspaceAwareNavigate();
@@ -190,7 +189,7 @@ export const useTopicItemDropdownMenu = ({
},
sfSymbol: 'trash',
},
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
id,
isCompleted,
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx
index 2f1006723f4..d850a099f32 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/GroupItem.tsx
@@ -1,11 +1,11 @@
-import { Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
AccordionTrigger,
+ Flexbox,
Text,
-} from '@lobehub/ui/base-ui';
+} from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/index.tsx
index 3871153947f..7ac86d0ba64 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ByTimeMode/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { AccordionRoot } from '@lobehub/ui/base-ui';
+import { AccordionRoot, Flexbox } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { MoreHorizontal } from 'lucide-react';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx
index 73bca2db2fb..be1dce25cf0 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Actions.tsx
@@ -1,6 +1,5 @@
import type { DropdownItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/index.tsx
index a4cc1e8003a..5d771ca5cd4 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/index.tsx
@@ -1,5 +1,4 @@
-import { Icon } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Icon } from '@lobehub/ui';
import { CornerDownRight } from 'lucide-react';
import { memo, useCallback } from 'react';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx
index 25cdbe987a7..1e557545cea 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/useDropdownMenu.tsx
@@ -1,6 +1,5 @@
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal } from '@lobehub/ui/base-ui';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, Icon } from '@lobehub/ui';
import { PencilLine, Trash } from 'lucide-react';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
@@ -17,7 +16,7 @@ interface ThreadItemDropdownMenuProps {
export const useThreadItemDropdownMenu = ({
id,
title,
-}: ThreadItemDropdownMenuProps): (() => MenuProps['items']) => {
+}: ThreadItemDropdownMenuProps): (() => DropdownItem[]) => {
const { t } = useTranslation(['thread', 'common']);
const { allowed: canEditThread } = usePermission('edit_own_content');
@@ -64,6 +63,6 @@ export const useThreadItemDropdownMenu = ({
},
sfSymbol: 'trash',
},
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [id, canEditThread, removeThread, title, updateThreadTitle, t]);
};
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx
index 70b946ad840..b354416e6e3 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/index.tsx
@@ -1,16 +1,17 @@
'use client';
-import { ContextMenuTrigger, Flexbox } from '@lobehub/ui';
import {
AccordionHeader,
AccordionItem,
AccordionPanel,
accordionStyles,
AccordionTrigger,
+ ContextMenuTrigger,
+ cx,
+ Flexbox,
Spin,
Text,
-} from '@lobehub/ui/base-ui';
-import { cx } from 'antd-style';
+} from '@lobehub/ui';
import React, { memo, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.test.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.test.tsx
index 5e0f892e2e1..8a2fe491b78 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.test.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.test.tsx
@@ -42,7 +42,7 @@ vi.mock('@/store/user', () => ({
useUserStore: () => userMock.currentUserId,
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
confirmModal: confirmModalMock,
toast: messageMock,
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.tsx
index eae72aa2c4e..bc9c7cea287 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/useDropdownMenu.tsx
@@ -1,7 +1,5 @@
-import { type MenuProps } from '@lobehub/ui';
-import { Icon } from '@lobehub/ui';
-import { confirmModal, toast, Upload } from '@lobehub/ui/base-ui';
-import { css, cx } from 'antd-style';
+import { type DropdownItem } from '@lobehub/ui';
+import { confirmModal, css, cx, Icon, toast, Upload } from '@lobehub/ui';
import { Archive, Hash, Import, LucideCheck, Trash } from 'lucide-react';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -34,7 +32,7 @@ type TopicMaintenanceScope = 'own' | 'workspace';
export const useTopicActionsDropdownMenu = (
options: UseTopicActionsDropdownMenuOptions = {},
-): MenuProps['items'] => {
+): DropdownItem[] => {
const { t } = useTranslation(['topic', 'common']);
const { onUploadClose } = options;
const activeWorkspaceId = useActiveWorkspaceId();
@@ -232,7 +230,7 @@ export const useTopicActionsDropdownMenu = (
},
]
: []),
- ].filter(Boolean) as MenuProps['items'];
+ ].filter(Boolean) as DropdownItem[];
}, [
topicPageSize,
updateSystemStatus,
diff --git a/src/routes/(main)/group/_layout/Sidebar/Topic/useFilterMenu.tsx b/src/routes/(main)/group/_layout/Sidebar/Topic/useFilterMenu.tsx
index 7d9a6ab547d..80b9e89a59f 100644
--- a/src/routes/(main)/group/_layout/Sidebar/Topic/useFilterMenu.tsx
+++ b/src/routes/(main)/group/_layout/Sidebar/Topic/useFilterMenu.tsx
@@ -1,5 +1,5 @@
+import type { DropdownItem } from '@lobehub/ui';
import { Icon } from '@lobehub/ui';
-import type { DropdownItem } from '@lobehub/ui/base-ui';
import { LucideCheck } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/_layout/style.ts b/src/routes/(main)/group/_layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/routes/(main)/group/_layout/style.ts
+++ b/src/routes/(main)/group/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/routes/(main)/group/features/Conversation/AgentWelcome/OpeningQuestions.tsx b/src/routes/(main)/group/features/Conversation/AgentWelcome/OpeningQuestions.tsx
index 0149b99c04c..8e22768e962 100644
--- a/src/routes/(main)/group/features/Conversation/AgentWelcome/OpeningQuestions.tsx
+++ b/src/routes/(main)/group/features/Conversation/AgentWelcome/OpeningQuestions.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Block, Flexbox, Tooltip } from '@lobehub/ui';
-import { createStaticStyles, cx, responsive } from 'antd-style';
+import { Block, createStaticStyles, cx, Flexbox, responsive, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/features/Conversation/AgentWelcome/index.tsx b/src/routes/(main)/group/features/Conversation/AgentWelcome/index.tsx
index bfd7fb1c8e1..6189a4f93ab 100644
--- a/src/routes/(main)/group/features/Conversation/AgentWelcome/index.tsx
+++ b/src/routes/(main)/group/features/Conversation/AgentWelcome/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Markdown, Text } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import React, { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/features/Conversation/ConversationArea.tsx b/src/routes/(main)/group/features/Conversation/ConversationArea.tsx
index 80bc30f689f..07bebd195e5 100644
--- a/src/routes/(main)/group/features/Conversation/ConversationArea.tsx
+++ b/src/routes/(main)/group/features/Conversation/ConversationArea.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { memo, Suspense } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.test.tsx b/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.test.tsx
index db038fced13..36bd8786f3a 100644
--- a/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.test.tsx
+++ b/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.test.tsx
@@ -1,7 +1,7 @@
/**
* @vitest-environment happy-dom
*/
-import type * as BaseUI from '@lobehub/ui/base-ui';
+import type * as BaseUI from '@lobehub/ui';
import { render } from '@testing-library/react';
import type { ComponentProps, ReactNode } from 'react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
@@ -19,7 +19,7 @@ const mocks = vi.hoisted(() => ({
const actionIconPropsSpy = vi.hoisted(() => vi.fn());
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = await importOriginal<typeof BaseUI>();
return {
...actual,
diff --git a/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.tsx b/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.tsx
index 0a8de7b6971..7cca8a1b820 100644
--- a/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.tsx
+++ b/src/routes/(main)/group/features/Conversation/Header/ShareButton/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { Share2 } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/features/Conversation/Header/index.tsx b/src/routes/(main)/group/features/Conversation/Header/index.tsx
index 1ec96333e51..f5ce89a8e78 100644
--- a/src/routes/(main)/group/features/Conversation/Header/index.tsx
+++ b/src/routes/(main)/group/features/Conversation/Header/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { memo, Suspense } from 'react';
import { AgentMigrationBadge } from '@/features/AgentTransferMigration';
diff --git a/src/routes/(main)/group/features/Conversation/MainChatInput/useSendMenuItems.tsx b/src/routes/(main)/group/features/Conversation/MainChatInput/useSendMenuItems.tsx
index 00dd98a4822..5abf3ae1f64 100644
--- a/src/routes/(main)/group/features/Conversation/MainChatInput/useSendMenuItems.tsx
+++ b/src/routes/(main)/group/features/Conversation/MainChatInput/useSendMenuItems.tsx
@@ -1,7 +1,7 @@
'use client';
import { HotkeyEnum, KeyEnum } from '@lobechat/const/hotkeys';
-import { type MenuProps } from '@lobehub/ui';
+import { type DropdownItem } from '@lobehub/ui';
import { Flexbox, Hotkey, Icon } from '@lobehub/ui';
import { BotMessageSquare, LucideCheck, MessageSquarePlus } from 'lucide-react';
import { useCallback, useMemo } from 'react';
@@ -19,7 +19,7 @@ import { preferenceSelectors, settingsSelectors } from '@/store/user/selectors';
* - Add AI Message
* - Add User Message
*/
-export const useSendMenuItems = (): MenuProps['items'] => {
+export const useSendMenuItems = (): DropdownItem[] => {
const { t } = useTranslation('chat');
const storeApi = useConversationStoreApi();
diff --git a/src/routes/(main)/group/features/TelemetryNotification.tsx b/src/routes/(main)/group/features/TelemetryNotification.tsx
index 8fd058c8044..807905ebffe 100644
--- a/src/routes/(main)/group/features/TelemetryNotification.tsx
+++ b/src/routes/(main)/group/features/TelemetryNotification.tsx
@@ -1,9 +1,7 @@
'use client';
import { BRANDING_NAME } from '@lobechat/business-const';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Avatar, Button } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { Avatar, Button, createStaticStyles, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { LucideArrowUpRightFromSquare, TelescopeIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/profile/features/AgentBuilder/TopicSelector.tsx b/src/routes/(main)/group/profile/features/AgentBuilder/TopicSelector.tsx
index efc817dfaec..7ea2232e995 100644
--- a/src/routes/(main)/group/profile/features/AgentBuilder/TopicSelector.tsx
+++ b/src/routes/(main)/group/profile/features/AgentBuilder/TopicSelector.tsx
@@ -1,7 +1,5 @@
import { type DropdownMenuCheckboxItem } from '@lobehub/ui';
-import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon, Tag } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { ActionIcon, createStaticStyles, DropdownMenu, Tag } from '@lobehub/ui';
import { Clock3Icon, PlusIcon } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/profile/features/AgentBuilder/index.tsx b/src/routes/(main)/group/profile/features/AgentBuilder/index.tsx
index 744357b3888..5376ee36829 100644
--- a/src/routes/(main)/group/profile/features/AgentBuilder/index.tsx
+++ b/src/routes/(main)/group/profile/features/AgentBuilder/index.tsx
@@ -1,6 +1,5 @@
import { BUILTIN_AGENT_SLUGS } from '@lobechat/builtin-agents';
-import { DraggablePanel } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, DraggablePanel } from '@lobehub/ui';
import { memo } from 'react';
import ConversationSegmentSkeleton from '@/components/Skeleton/Conversation/Segment';
diff --git a/src/routes/(main)/group/profile/features/AgentSettings/index.tsx b/src/routes/(main)/group/profile/features/AgentSettings/index.tsx
index 634ff34426c..8bc57f1cdc8 100644
--- a/src/routes/(main)/group/profile/features/AgentSettings/index.tsx
+++ b/src/routes/(main)/group/profile/features/AgentSettings/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ModalInstance } from '@lobehub/ui';
import Content from './Content';
diff --git a/src/routes/(main)/group/profile/features/GroupProfile/GroupForkTag.tsx b/src/routes/(main)/group/profile/features/GroupProfile/GroupForkTag.tsx
index a23079fc06d..3a622561c9e 100644
--- a/src/routes/(main)/group/profile/features/GroupProfile/GroupForkTag.tsx
+++ b/src/routes/(main)/group/profile/features/GroupProfile/GroupForkTag.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Icon, Tag } from '@lobehub/ui';
import { GitFork } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/profile/features/GroupProfile/GroupHeader.tsx b/src/routes/(main)/group/profile/features/GroupProfile/GroupHeader.tsx
index ba9f4282863..3fd773e2877 100644
--- a/src/routes/(main)/group/profile/features/GroupProfile/GroupHeader.tsx
+++ b/src/routes/(main)/group/profile/features/GroupProfile/GroupHeader.tsx
@@ -1,8 +1,7 @@
'use client';
import { EDITOR_DEBOUNCE_TIME } from '@lobechat/const';
-import { Block, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Input, Skeleton, toast } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Icon, Input, Skeleton, toast, Tooltip } from '@lobehub/ui';
import { debounce } from 'es-toolkit/compat';
import isEqual from 'fast-deep-equal';
import { PaletteIcon } from 'lucide-react';
diff --git a/src/routes/(main)/group/profile/features/GroupProfile/GroupStatusTag.tsx b/src/routes/(main)/group/profile/features/GroupProfile/GroupStatusTag.tsx
index 29e5832036e..fe6d05d97dc 100644
--- a/src/routes/(main)/group/profile/features/GroupProfile/GroupStatusTag.tsx
+++ b/src/routes/(main)/group/profile/features/GroupProfile/GroupStatusTag.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/routes/(main)/group/profile/features/GroupProfile/GroupVersionReviewTag.tsx b/src/routes/(main)/group/profile/features/GroupProfile/GroupVersionReviewTag.tsx
index ddc57bcd681..011aab60a6a 100644
--- a/src/routes/(main)/group/profile/features/GroupProfile/GroupVersionReviewTag.tsx
+++ b/src/routes/(main)/group/profile/features/GroupProfile/GroupVersionReviewTag.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router';
diff --git a/src/routes/(main)/group/profile/features/GroupProfile/index.tsx b/src/routes/(main)/group/profile/features/GroupProfile/index.tsx
index a0f5dcea579..3e8f3092e6e 100644
--- a/src/routes/(main)/group/profile/features/GroupProfile/index.tsx
+++ b/src/routes/(main)/group/profile/features/GroupProfile/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { DropdownMenu, Flexbox, Icon } from '@lobehub/ui';
-import { ActionIcon, Button, Divider, type ModalInstance } from '@lobehub/ui/base-ui';
-import { useTheme } from 'antd-style';
+import { DropdownMenu, Flexbox, Icon, useTheme } from '@lobehub/ui';
+import { ActionIcon, Button, Divider, type ModalInstance } from '@lobehub/ui';
import { MoreHorizontalIcon, PlayIcon, Settings2Icon, UsersIcon } from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/profile/features/Header/AgentBuilderToggle.tsx b/src/routes/(main)/group/profile/features/Header/AgentBuilderToggle.tsx
index bc382c64b1d..23b7471cff0 100644
--- a/src/routes/(main)/group/profile/features/Header/AgentBuilderToggle.tsx
+++ b/src/routes/(main)/group/profile/features/Header/AgentBuilderToggle.tsx
@@ -1,4 +1,4 @@
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { BotMessageSquareIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/group/profile/features/Header/ChromeTabs/index.tsx b/src/routes/(main)/group/profile/features/Header/ChromeTabs/index.tsx
index edf6a7c4166..72053188e53 100644
--- a/src/routes/(main)/group/profile/features/Header/ChromeTabs/index.tsx
+++ b/src/routes/(main)/group/profile/features/Header/ChromeTabs/index.tsx
@@ -1,8 +1,7 @@
'use client';
-import { DropdownMenu, Flexbox, type MenuProps, Tooltip } from '@lobehub/ui';
-import { Avatar } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { type DropdownItem, DropdownMenu, Flexbox, Tooltip } from '@lobehub/ui';
+import { Avatar, createStaticStyles, cx } from '@lobehub/ui';
import { Plus } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo, useEffect, useRef } from 'react';
@@ -119,7 +118,7 @@ interface ChromeTabsProps {
* When provided, the add button becomes a dropdown trigger showing these items.
* Otherwise it falls back to calling `onAdd` directly on click.
*/
- addMenuItems?: MenuProps['items'];
+ addMenuItems?: DropdownItem[];
items: ChromeTabItem[];
onAdd?: () => void;
onChange: (id: string) => void;
diff --git a/src/routes/(main)/group/profile/features/Header/index.tsx b/src/routes/(main)/group/profile/features/Header/index.tsx
index 98238da4859..3004ab72e3e 100644
--- a/src/routes/(main)/group/profile/features/Header/index.tsx
+++ b/src/routes/(main)/group/profile/features/Header/index.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Flexbox, Icon, type MenuProps } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { type DropdownItem, Flexbox, Icon } from '@lobehub/ui';
+import { createStaticStyles } from '@lobehub/ui';
import { Crown, Sparkles, Users, UsersRound } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -107,7 +107,7 @@ const Header = memo(() => {
if (newAgentId) setSelectedTabId(newAgentId);
};
- const addMenuItems = useMemo<MenuProps['items']>(
+ const addMenuItems = useMemo<DropdownItem[]>(
() => [
{
icon: <Icon icon={Sparkles} />,
diff --git a/src/routes/(main)/group/profile/features/MemberProfile/AgentHeader.tsx b/src/routes/(main)/group/profile/features/MemberProfile/AgentHeader.tsx
index 42d9e47197b..67d38fe866c 100644
--- a/src/routes/(main)/group/profile/features/MemberProfile/AgentHeader.tsx
+++ b/src/routes/(main)/group/profile/features/MemberProfile/AgentHeader.tsx
@@ -1,8 +1,7 @@
'use client';
import { DEFAULT_AVATAR, EDITOR_DEBOUNCE_TIME } from '@lobechat/const';
-import { Block, Flexbox, Icon, Tooltip } from '@lobehub/ui';
-import { Input, Skeleton, toast } from '@lobehub/ui/base-ui';
+import { Block, Flexbox, Icon, Input, Skeleton, toast, Tooltip } from '@lobehub/ui';
import { debounce } from 'es-toolkit/compat';
import isEqual from 'fast-deep-equal';
import { PaletteIcon } from 'lucide-react';
diff --git a/src/routes/(main)/group/profile/features/MemberProfile/index.tsx b/src/routes/(main)/group/profile/features/MemberProfile/index.tsx
index 7f786e12852..aaea4eaf7d9 100644
--- a/src/routes/(main)/group/profile/features/MemberProfile/index.tsx
+++ b/src/routes/(main)/group/profile/features/MemberProfile/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Button, Divider } from '@lobehub/ui/base-ui';
+import { Alert, Button, Divider, Flexbox, Icon } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { InfoIcon, PlayIcon } from 'lucide-react';
import React, { memo, useCallback, useEffect, useMemo } from 'react';
diff --git a/src/routes/(main)/home/index.tsx b/src/routes/(main)/home/index.tsx
index 6cee45fdc76..27c351bd6c6 100644
--- a/src/routes/(main)/home/index.tsx
+++ b/src/routes/(main)/home/index.tsx
@@ -1,4 +1,4 @@
-import { ScrollArea } from '@lobehub/ui/base-ui';
+import { ScrollArea } from '@lobehub/ui';
import { type FC } from 'react';
import HomePageTracker from '@/components/Analytics/HomePageTracker';
diff --git a/src/routes/(main)/memory/(home)/features/Persona/PersonaDetail.tsx b/src/routes/(main)/memory/(home)/features/Persona/PersonaDetail.tsx
index d118b9ed3db..070f9cc281b 100644
--- a/src/routes/(main)/memory/(home)/features/Persona/PersonaDetail.tsx
+++ b/src/routes/(main)/memory/(home)/features/Persona/PersonaDetail.tsx
@@ -1,5 +1,4 @@
-import { Markdown } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Markdown } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/routes/(main)/memory/(home)/features/Persona/PersonaHeader.tsx b/src/routes/(main)/memory/(home)/features/Persona/PersonaHeader.tsx
index f77ec9bf0e7..7f3c99975e8 100644
--- a/src/routes/(main)/memory/(home)/features/Persona/PersonaHeader.tsx
+++ b/src/routes/(main)/memory/(home)/features/Persona/PersonaHeader.tsx
@@ -1,6 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Button, confirmModal, Text, toast } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Button, confirmModal, createStaticStyles, Flexbox, Text, toast } from '@lobehub/ui';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/(home)/features/Persona/PersonaSummary.tsx b/src/routes/(main)/memory/(home)/features/Persona/PersonaSummary.tsx
index fa581eaaabc..17690ab7795 100644
--- a/src/routes/(main)/memory/(home)/features/Persona/PersonaSummary.tsx
+++ b/src/routes/(main)/memory/(home)/features/Persona/PersonaSummary.tsx
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
import { memo } from 'react';
const styles = createStaticStyles(({ css, cssVar }) => ({
diff --git a/src/routes/(main)/memory/(home)/features/Persona/index.tsx b/src/routes/(main)/memory/(home)/features/Persona/index.tsx
index 322105e5a92..50bbf74eb1b 100644
--- a/src/routes/(main)/memory/(home)/features/Persona/index.tsx
+++ b/src/routes/(main)/memory/(home)/features/Persona/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { cx } from 'antd-style';
+import { cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { openEditorModal } from '@/features/EditorModal';
diff --git a/src/routes/(main)/memory/(home)/features/RoleTagCloud/TagCloudCanvas.tsx b/src/routes/(main)/memory/(home)/features/RoleTagCloud/TagCloudCanvas.tsx
index e7fe6df97e0..11a9d1aecfd 100644
--- a/src/routes/(main)/memory/(home)/features/RoleTagCloud/TagCloudCanvas.tsx
+++ b/src/routes/(main)/memory/(home)/features/RoleTagCloud/TagCloudCanvas.tsx
@@ -1,7 +1,7 @@
+import { useTheme } from '@lobehub/ui';
import { Billboard, Html, OrbitControls, Text } from '@react-three/drei';
import type { ThreeEvent } from '@react-three/fiber';
import { Canvas, useFrame } from '@react-three/fiber';
-import { useTheme } from 'antd-style';
import { memo, Suspense, useEffect, useMemo, useRef, useState } from 'react';
import * as THREE from 'three';
diff --git a/src/routes/(main)/memory/(home)/features/RoleTagCloud/index.tsx b/src/routes/(main)/memory/(home)/features/RoleTagCloud/index.tsx
index 9a30c4bd28c..9457ce7cd01 100644
--- a/src/routes/(main)/memory/(home)/features/RoleTagCloud/index.tsx
+++ b/src/routes/(main)/memory/(home)/features/RoleTagCloud/index.tsx
@@ -1,6 +1,4 @@
-import { Block } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { ActionIcon, Block, createStaticStyles, cx } from '@lobehub/ui';
import { MaximizeIcon, MinimizeIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
diff --git a/src/routes/(main)/memory/_layout/style.ts b/src/routes/(main)/memory/_layout/style.ts
index 431e17cd31e..ea3f8047a08 100644
--- a/src/routes/(main)/memory/_layout/style.ts
+++ b/src/routes/(main)/memory/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css, cssVar }) => ({
// Main container
diff --git a/src/routes/(main)/memory/activities/features/ActivityDetail.tsx b/src/routes/(main)/memory/activities/features/ActivityDetail.tsx
index 6959df39de5..5c195486004 100644
--- a/src/routes/(main)/memory/activities/features/ActivityDetail.tsx
+++ b/src/routes/(main)/memory/activities/features/ActivityDetail.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
+import { Flexbox, Tag, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/activities/features/ActivityDropdown.tsx b/src/routes/(main)/memory/activities/features/ActivityDropdown.tsx
index b1f5a644c08..c0832480868 100644
--- a/src/routes/(main)/memory/activities/features/ActivityDropdown.tsx
+++ b/src/routes/(main)/memory/activities/features/ActivityDropdown.tsx
@@ -1,5 +1,5 @@
import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui';
import { MoreHorizontal, Pencil, Trash2 } from 'lucide-react';
import { type KeyboardEvent, type MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/activities/features/List/GridView/ActivityCard.tsx b/src/routes/(main)/memory/activities/features/List/GridView/ActivityCard.tsx
index 6cf7696a08b..7f59cd607ad 100644
--- a/src/routes/(main)/memory/activities/features/List/GridView/ActivityCard.tsx
+++ b/src/routes/(main)/memory/activities/features/List/GridView/ActivityCard.tsx
@@ -1,5 +1,5 @@
import { type ActivityListItem } from '@lobechat/types';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/activities/index.tsx b/src/routes/(main)/memory/activities/index.tsx
index 70458a798a0..04bfaae6108 100644
--- a/src/routes/(main)/memory/activities/index.tsx
+++ b/src/routes/(main)/memory/activities/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tag } from '@lobehub/ui';
import { CalendarClockIcon } from 'lucide-react';
import { type FC } from 'react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/routes/(main)/memory/contexts/features/ContextDetail.tsx b/src/routes/(main)/memory/contexts/features/ContextDetail.tsx
index e31bee9f4f7..3460764fa91 100644
--- a/src/routes/(main)/memory/contexts/features/ContextDetail.tsx
+++ b/src/routes/(main)/memory/contexts/features/ContextDetail.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Tooltip } from '@lobehub/ui';
-import { Badge, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Badge, Center, cssVar, Flexbox, Text, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/contexts/features/ContextDropdown.tsx b/src/routes/(main)/memory/contexts/features/ContextDropdown.tsx
index 68a0b6eaec1..09552624b72 100644
--- a/src/routes/(main)/memory/contexts/features/ContextDropdown.tsx
+++ b/src/routes/(main)/memory/contexts/features/ContextDropdown.tsx
@@ -1,5 +1,5 @@
import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui';
import { MoreHorizontal, Pencil, Trash2 } from 'lucide-react';
import { type KeyboardEvent, type MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/contexts/features/List/GridView/ContextCard.tsx b/src/routes/(main)/memory/contexts/features/List/GridView/ContextCard.tsx
index c18069a7a33..0a4ce53f590 100644
--- a/src/routes/(main)/memory/contexts/features/List/GridView/ContextCard.tsx
+++ b/src/routes/(main)/memory/contexts/features/List/GridView/ContextCard.tsx
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/contexts/index.tsx b/src/routes/(main)/memory/contexts/index.tsx
index a5466d38bc6..5e6b28bdfbc 100644
--- a/src/routes/(main)/memory/contexts/index.tsx
+++ b/src/routes/(main)/memory/contexts/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tag } from '@lobehub/ui';
import { BrainCircuitIcon } from 'lucide-react';
import { type FC } from 'react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/routes/(main)/memory/features/ActionBar/PurgeButton.tsx b/src/routes/(main)/memory/features/ActionBar/PurgeButton.tsx
index 382530c8140..1b4a00e6d0c 100644
--- a/src/routes/(main)/memory/features/ActionBar/PurgeButton.tsx
+++ b/src/routes/(main)/memory/features/ActionBar/PurgeButton.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Icon, Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button, confirmModal, toast } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, confirmModal, Icon, toast, Tooltip } from '@lobehub/ui';
import { Trash2Icon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/features/CateTag.tsx b/src/routes/(main)/memory/features/CateTag.tsx
index 2f60cfc5ca3..74854ae0d2b 100644
--- a/src/routes/(main)/memory/features/CateTag.tsx
+++ b/src/routes/(main)/memory/features/CateTag.tsx
@@ -1,4 +1,4 @@
-import { Tag } from '@lobehub/ui/base-ui';
+import { Tag } from '@lobehub/ui';
import { memo } from 'react';
import { useCateColor } from './useCateColor';
diff --git a/src/routes/(main)/memory/features/DetailLoading.tsx b/src/routes/(main)/memory/features/DetailLoading.tsx
index f1a4c2f37cb..c10024ffbae 100644
--- a/src/routes/(main)/memory/features/DetailLoading.tsx
+++ b/src/routes/(main)/memory/features/DetailLoading.tsx
@@ -1,5 +1,4 @@
-import { Flexbox } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
+import { Flexbox, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
const DetailLoading = memo(() => {
diff --git a/src/routes/(main)/memory/features/DetailNotFound.tsx b/src/routes/(main)/memory/features/DetailNotFound.tsx
index ead8f89b1dc..8661c8eeffa 100644
--- a/src/routes/(main)/memory/features/DetailNotFound.tsx
+++ b/src/routes/(main)/memory/features/DetailNotFound.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Center, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Center, cssVar, Flexbox, Icon, Text } from '@lobehub/ui';
import { FileQuestionIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/features/FilterBar.tsx b/src/routes/(main)/memory/features/FilterBar.tsx
index 726aaba0041..fc4f833bac6 100644
--- a/src/routes/(main)/memory/features/FilterBar.tsx
+++ b/src/routes/(main)/memory/features/FilterBar.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon, SearchBar } from '@lobehub/ui';
-import { Select } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, SearchBar, Select } from '@lobehub/ui';
import { ArrowDownNarrowWide, Search } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/features/GridView/GridCard.tsx b/src/routes/(main)/memory/features/GridView/GridCard.tsx
index eebea230ca5..51d589ae648 100644
--- a/src/routes/(main)/memory/features/GridView/GridCard.tsx
+++ b/src/routes/(main)/memory/features/GridView/GridCard.tsx
@@ -1,6 +1,4 @@
-import { Block, Center, Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Block, Center, createStaticStyles, cssVar, cx, Flexbox, Tag, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/features/GridView/index.tsx b/src/routes/(main)/memory/features/GridView/index.tsx
index a53f6abca0b..331556519f1 100644
--- a/src/routes/(main)/memory/features/GridView/index.tsx
+++ b/src/routes/(main)/memory/features/GridView/index.tsx
@@ -1,5 +1,4 @@
-import { type DivProps } from '@lobehub/ui';
-import { Grid } from '@lobehub/ui';
+import { type DivProps, Grid } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
import { VirtuosoGrid } from 'react-virtuoso';
diff --git a/src/routes/(main)/memory/features/HashTags.tsx b/src/routes/(main)/memory/features/HashTags.tsx
index 1aca0a780a9..b15646db445 100644
--- a/src/routes/(main)/memory/features/HashTags.tsx
+++ b/src/routes/(main)/memory/features/HashTags.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Icon, Tag } from '@lobehub/ui';
import { HashIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/features/HighlightedContent.tsx b/src/routes/(main)/memory/features/HighlightedContent.tsx
index 2670a05abab..5393e4d9675 100644
--- a/src/routes/(main)/memory/features/HighlightedContent.tsx
+++ b/src/routes/(main)/memory/features/HighlightedContent.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Markdown } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox, Markdown, Text } from '@lobehub/ui';
import { memo } from 'react';
interface HighlightedContentProps {
diff --git a/src/routes/(main)/memory/features/Loading.tsx b/src/routes/(main)/memory/features/Loading.tsx
index d22d7ffdab1..62817504b8a 100644
--- a/src/routes/(main)/memory/features/Loading.tsx
+++ b/src/routes/(main)/memory/features/Loading.tsx
@@ -1,6 +1,4 @@
-import { Flexbox, Grid } from '@lobehub/ui';
-import { Skeleton } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Grid, Skeleton } from '@lobehub/ui';
import { memo } from 'react';
import { type ViewMode } from './ViewModeSwitcher';
diff --git a/src/routes/(main)/memory/features/MemoryAnalysis/AnalysisTrigger.tsx b/src/routes/(main)/memory/features/MemoryAnalysis/AnalysisTrigger.tsx
index 14417c99b7c..c4019e75f64 100644
--- a/src/routes/(main)/memory/features/MemoryAnalysis/AnalysisTrigger.tsx
+++ b/src/routes/(main)/memory/features/MemoryAnalysis/AnalysisTrigger.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Tooltip } from '@lobehub/ui';
-import { ActionIcon, Button } from '@lobehub/ui/base-ui';
+import { ActionIcon, Button, Tooltip } from '@lobehub/ui';
import { CalendarClockIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx b/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx
index cc9ef5ce05c..68e8ed45ab9 100644
--- a/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx
+++ b/src/routes/(main)/memory/features/MemoryAnalysis/DateRangeModal.tsx
@@ -4,14 +4,14 @@ import { Flexbox } from '@lobehub/ui';
import {
Button,
createModal,
- DateRangePicker,
- type DateRangeValue,
+ DayjsDateRangePicker as DateRangePicker,
+ type DayjsDateRangeValue,
type ModalInstance,
Text,
toast,
useModalContext,
-} from '@lobehub/ui/base-ui';
-import dayjs from 'dayjs';
+} from '@lobehub/ui';
+import dayjs, { type Dayjs } from 'dayjs';
import { t as i18nT } from 'i18next';
import { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -24,17 +24,17 @@ const DateRangeContent = memo(() => {
const { close } = useModalContext();
const { refresh } = useMemoryAnalysisAsyncTask();
- const [range, setRange] = useState<DateRangeValue>([null, null]);
+ const [range, setRange] = useState<DayjsDateRangeValue | null>(null);
const [submitting, setSubmitting] = useState(false);
- const disabledDate = useCallback((current: Date) => dayjs(current).isAfter(dayjs(), 'day'), []);
+ const disabledDate = useCallback((current: Dayjs) => current.isAfter(dayjs(), 'day'), []);
const footerNote = useMemo(
() =>
- range[0] || range[1]
+ range?.[0] || range?.[1]
? t('analysis.modal.rangeSelected', {
- end: range[1] ? dayjs(range[1]).format('YYYY/MM/DD') : t('analysis.range.end'),
- start: range[0] ? dayjs(range[0]).format('YYYY/MM/DD') : t('analysis.range.start'),
+ end: range[1] ? range[1].format('YYYY/MM/DD') : t('analysis.range.end'),
+ start: range[0] ? range[0].format('YYYY/MM/DD') : t('analysis.range.start'),
})
: t('analysis.modal.rangePlaceholder'),
[range, t],
@@ -43,10 +43,10 @@ const DateRangeContent = memo(() => {
const handleSubmit = async () => {
setSubmitting(true);
try {
- const [from, to] = range;
+ const [from, to] = range ?? [null, null];
const result = await memoryExtractionService.requestFromChatTopics({
- fromDate: from ?? undefined,
- toDate: to ? dayjs(to).endOf('day').toDate() : undefined,
+ fromDate: from?.toDate(),
+ toDate: to?.endOf('day').toDate(),
});
await refresh();
diff --git a/src/routes/(main)/memory/features/MemoryAnalysis/Status.tsx b/src/routes/(main)/memory/features/MemoryAnalysis/Status.tsx
index dc781ecd0f2..868ba2251fb 100644
--- a/src/routes/(main)/memory/features/MemoryAnalysis/Status.tsx
+++ b/src/routes/(main)/memory/features/MemoryAnalysis/Status.tsx
@@ -1,8 +1,7 @@
'use client';
import { AsyncTaskStatus } from '@lobechat/types';
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Alert, Progress, Text } from '@lobehub/ui/base-ui';
+import { Alert, Flexbox, Icon, Progress, Text } from '@lobehub/ui';
import { Loader2Icon, TriangleAlertIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/features/ProgressIcon.tsx b/src/routes/(main)/memory/features/ProgressIcon.tsx
index 0aab87d19ea..0b1d4329e24 100644
--- a/src/routes/(main)/memory/features/ProgressIcon.tsx
+++ b/src/routes/(main)/memory/features/ProgressIcon.tsx
@@ -1,7 +1,5 @@
-import { Flexbox, Tooltip } from '@lobehub/ui';
-import type { ProgressProps } from '@lobehub/ui/base-ui';
-import { Progress, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import type { ProgressProps } from '@lobehub/ui';
+import { cssVar, Flexbox, Progress, Text, Tooltip } from '@lobehub/ui';
import { memo } from 'react';
interface ProgressIconProps extends Omit<ProgressProps, 'percent'> {
diff --git a/src/routes/(main)/memory/features/SourceLink.tsx b/src/routes/(main)/memory/features/SourceLink.tsx
index 5322427e208..c9c755a58b8 100644
--- a/src/routes/(main)/memory/features/SourceLink.tsx
+++ b/src/routes/(main)/memory/features/SourceLink.tsx
@@ -1,7 +1,5 @@
import { AGENT_CHAT_TOPIC_URL } from '@lobechat/const';
-import { Icon } from '@lobehub/ui';
-import { Button, Text } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { Button, cssVar, Icon, Text } from '@lobehub/ui';
import { Link2 } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/features/Time.tsx b/src/routes/(main)/memory/features/Time.tsx
index 681cdf68b74..95634057a1c 100644
--- a/src/routes/(main)/memory/features/Time.tsx
+++ b/src/routes/(main)/memory/features/Time.tsx
@@ -1,4 +1,4 @@
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import { useActivityTime } from '@/hooks/useActivityTime';
diff --git a/src/routes/(main)/memory/features/TimeLineView/PeriodGroup.tsx b/src/routes/(main)/memory/features/TimeLineView/PeriodGroup.tsx
index c28d2270925..5f4e0434cba 100644
--- a/src/routes/(main)/memory/features/TimeLineView/PeriodGroup.tsx
+++ b/src/routes/(main)/memory/features/TimeLineView/PeriodGroup.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox, Text } from '@lobehub/ui';
import dayjs from 'dayjs';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/features/TimeLineView/TimeLineCard.tsx b/src/routes/(main)/memory/features/TimeLineView/TimeLineCard.tsx
index 064f692dc9a..9e0c7ca3ff9 100644
--- a/src/routes/(main)/memory/features/TimeLineView/TimeLineCard.tsx
+++ b/src/routes/(main)/memory/features/TimeLineView/TimeLineCard.tsx
@@ -1,6 +1,4 @@
-import { Block, Flexbox } from '@lobehub/ui';
-import { Tag, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { Block, createStaticStyles, cssVar, cx, Flexbox, Tag, Text } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/features/TimeLineView/index.tsx b/src/routes/(main)/memory/features/TimeLineView/index.tsx
index 34ab1190533..523559b7a00 100644
--- a/src/routes/(main)/memory/features/TimeLineView/index.tsx
+++ b/src/routes/(main)/memory/features/TimeLineView/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx } from '@lobehub/ui';
import dayjs from 'dayjs';
import { type ReactNode } from 'react';
import { memo, useMemo } from 'react';
diff --git a/src/routes/(main)/memory/features/ViewModeSwitcher.tsx b/src/routes/(main)/memory/features/ViewModeSwitcher.tsx
index 854994d7264..78700080caa 100644
--- a/src/routes/(main)/memory/features/ViewModeSwitcher.tsx
+++ b/src/routes/(main)/memory/features/ViewModeSwitcher.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { CalendarDaysIcon, LayoutDashboardIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/features/useCateColor.ts b/src/routes/(main)/memory/features/useCateColor.ts
index 286f5f8acf8..b528f1d8c8d 100644
--- a/src/routes/(main)/memory/features/useCateColor.ts
+++ b/src/routes/(main)/memory/features/useCateColor.ts
@@ -1,4 +1,4 @@
-import { useTheme } from 'antd-style';
+import { useTheme } from '@lobehub/ui';
import { darken, lighten, mix, rgba, saturate } from 'polished';
import { useMemo } from 'react';
diff --git a/src/routes/(main)/memory/identities/features/IdentityDetail.tsx b/src/routes/(main)/memory/identities/features/IdentityDetail.tsx
index ea8e657bdc7..ef6a95b3969 100644
--- a/src/routes/(main)/memory/identities/features/IdentityDetail.tsx
+++ b/src/routes/(main)/memory/identities/features/IdentityDetail.tsx
@@ -1,6 +1,6 @@
'use client';
-import { Text } from '@lobehub/ui/base-ui';
+import { Text } from '@lobehub/ui';
import { memo } from 'react';
import AsyncBoundary from '@/components/AsyncBoundary';
diff --git a/src/routes/(main)/memory/identities/features/IdentityDropdown.tsx b/src/routes/(main)/memory/identities/features/IdentityDropdown.tsx
index 599c2f860a6..5bfa49d33c8 100644
--- a/src/routes/(main)/memory/identities/features/IdentityDropdown.tsx
+++ b/src/routes/(main)/memory/identities/features/IdentityDropdown.tsx
@@ -1,5 +1,5 @@
import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui';
import { MoreHorizontal, Pencil, Trash2 } from 'lucide-react';
import { type KeyboardEvent, type MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/identities/features/SegmentedBar.tsx b/src/routes/(main)/memory/identities/features/SegmentedBar.tsx
index 0340e2653c4..9e1e96350b0 100644
--- a/src/routes/(main)/memory/identities/features/SegmentedBar.tsx
+++ b/src/routes/(main)/memory/identities/features/SegmentedBar.tsx
@@ -1,4 +1,4 @@
-import { Tabs } from '@lobehub/ui/base-ui';
+import { Tabs } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/identities/index.tsx b/src/routes/(main)/memory/identities/index.tsx
index 9c265c979f9..df163462824 100644
--- a/src/routes/(main)/memory/identities/index.tsx
+++ b/src/routes/(main)/memory/identities/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tag } from '@lobehub/ui';
import { BrainCircuitIcon } from 'lucide-react';
import { type FC } from 'react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/routes/(main)/memory/preferences/features/PreferenceDetail.tsx b/src/routes/(main)/memory/preferences/features/PreferenceDetail.tsx
index d86071b8f2b..229972fa027 100644
--- a/src/routes/(main)/memory/preferences/features/PreferenceDetail.tsx
+++ b/src/routes/(main)/memory/preferences/features/PreferenceDetail.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Block, Flexbox, Icon } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles } from 'antd-style';
+import { Block, createStaticStyles, Flexbox, Icon, Text } from '@lobehub/ui';
import { BotIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(main)/memory/preferences/features/PreferenceDropdown.tsx b/src/routes/(main)/memory/preferences/features/PreferenceDropdown.tsx
index 4b1f37d2c35..028ce3c9e6b 100644
--- a/src/routes/(main)/memory/preferences/features/PreferenceDropdown.tsx
+++ b/src/routes/(main)/memory/preferences/features/PreferenceDropdown.tsx
@@ -1,5 +1,5 @@
import { DropdownMenu } from '@lobehub/ui';
-import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui/base-ui';
+import { ActionIcon, type ActionIconProps, confirmModal } from '@lobehub/ui';
import { MoreHorizontal, Pencil, Trash2 } from 'lucide-react';
import { type KeyboardEvent, type MouseEvent } from 'react';
import { memo } from 'react';
diff --git a/src/routes/(main)/memory/preferences/index.tsx b/src/routes/(main)/memory/preferences/index.tsx
index 15890ac3e36..2d97aebf0a6 100644
--- a/src/routes/(main)/memory/preferences/index.tsx
+++ b/src/routes/(main)/memory/preferences/index.tsx
@@ -1,5 +1,4 @@
-import { Flexbox, Icon } from '@lobehub/ui';
-import { Tag } from '@lobehub/ui/base-ui';
+import { Flexbox, Icon, Tag } from '@lobehub/ui';
import { BrainCircuitIcon } from 'lucide-react';
import { type FC } from 'react';
import { memo, useCallback, useState } from 'react';
diff --git a/src/routes/(mobile)/_layout/NavBar.tsx b/src/routes/(mobile)/_layout/NavBar.tsx
index 67e5dfd1372..712781021a8 100644
--- a/src/routes/(mobile)/_layout/NavBar.tsx
+++ b/src/routes/(mobile)/_layout/NavBar.tsx
@@ -1,9 +1,8 @@
'use client';
-import { Icon } from '@lobehub/ui';
+import { createStaticStyles, Icon } from '@lobehub/ui';
import { type TabBarProps } from '@lobehub/ui/mobile';
import { TabBar } from '@lobehub/ui/mobile';
-import { createStaticStyles } from 'antd-style';
import { Compass, MessageSquare, User } from 'lucide-react';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(mobile)/chat/_layout/style.ts b/src/routes/(mobile)/chat/_layout/style.ts
index c7df4b11fc9..c05a133036e 100644
--- a/src/routes/(mobile)/chat/_layout/style.ts
+++ b/src/routes/(mobile)/chat/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Main container
diff --git a/src/routes/(mobile)/chat/features/ChatHeader/ChatHeaderTitle.tsx b/src/routes/(mobile)/chat/features/ChatHeader/ChatHeaderTitle.tsx
index 53540c5a24e..fbfb5d03129 100644
--- a/src/routes/(mobile)/chat/features/ChatHeader/ChatHeaderTitle.tsx
+++ b/src/routes/(mobile)/chat/features/ChatHeader/ChatHeaderTitle.tsx
@@ -1,7 +1,5 @@
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, cssVar, Flexbox } from '@lobehub/ui';
import { ChatHeader } from '@lobehub/ui/mobile';
-import { cssVar } from 'antd-style';
import { ChevronDown } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(mobile)/chat/settings/index.tsx b/src/routes/(mobile)/chat/settings/index.tsx
index d6eae8e7883..b98b101c241 100644
--- a/src/routes/(mobile)/chat/settings/index.tsx
+++ b/src/routes/(mobile)/chat/settings/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Tabs } from '@lobehub/ui/base-ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Tabs } from '@lobehub/ui';
import { memo, useState } from 'react';
import MobileContentLayout from '@/components/server/MobileNavLayout';
diff --git a/src/routes/(mobile)/community/(list)/_layout/Header.tsx b/src/routes/(mobile)/community/(list)/_layout/Header.tsx
index bcf671483bb..6b34d6cad6c 100644
--- a/src/routes/(mobile)/community/(list)/_layout/Header.tsx
+++ b/src/routes/(mobile)/community/(list)/_layout/Header.tsx
@@ -1,9 +1,7 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon, createStaticStyles, Flexbox } from '@lobehub/ui';
import { ChatHeader } from '@lobehub/ui/mobile';
-import { createStaticStyles } from 'antd-style';
import { SearchIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/routes/(mobile)/community/(list)/_layout/Nav.tsx b/src/routes/(mobile)/community/(list)/_layout/Nav.tsx
index 7e676d4160d..82ec45dc402 100644
--- a/src/routes/(mobile)/community/(list)/_layout/Nav.tsx
+++ b/src/routes/(mobile)/community/(list)/_layout/Nav.tsx
@@ -1,8 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { ActionIcon, Drawer } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { ActionIcon, createStaticStyles, cssVar, Drawer, Flexbox } from '@lobehub/ui';
import { MenuIcon } from 'lucide-react';
import { memo, useState } from 'react';
diff --git a/src/routes/(mobile)/community/(list)/_layout/style.ts b/src/routes/(mobile)/community/(list)/_layout/style.ts
index f510518a039..88ae94c30d3 100644
--- a/src/routes/(mobile)/community/(list)/_layout/style.ts
+++ b/src/routes/(mobile)/community/(list)/_layout/style.ts
@@ -1,4 +1,4 @@
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles } from '@lobehub/ui';
export const styles = createStaticStyles(({ css }) => ({
// Main container
diff --git a/src/routes/(mobile)/me/(home)/features/Header.tsx b/src/routes/(mobile)/me/(home)/features/Header.tsx
index e01aa58e7e4..c4200c74915 100644
--- a/src/routes/(mobile)/me/(home)/features/Header.tsx
+++ b/src/routes/(mobile)/me/(home)/features/Header.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { ChatHeader } from '@lobehub/ui/mobile';
import { Moon, Sun } from 'lucide-react';
import { useTheme as useNextThemesTheme } from 'next-themes';
diff --git a/src/routes/(mobile)/me/settings/features/Category.tsx b/src/routes/(mobile)/me/settings/features/Category.tsx
index 367484d30dc..bb9ee86c630 100644
--- a/src/routes/(mobile)/me/settings/features/Category.tsx
+++ b/src/routes/(mobile)/me/settings/features/Category.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createStaticStyles, cssVar } from 'antd-style';
+import { createStaticStyles, cssVar } from '@lobehub/ui';
import { Fragment, memo } from 'react';
import Cell from '@/components/Cell';
diff --git a/src/routes/(popup)/_layout/PinOnTopButton.tsx b/src/routes/(popup)/_layout/PinOnTopButton.tsx
index 37627272869..632fcf3ec07 100644
--- a/src/routes/(popup)/_layout/PinOnTopButton.tsx
+++ b/src/routes/(popup)/_layout/PinOnTopButton.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ActionIcon } from '@lobehub/ui/base-ui';
+import { ActionIcon } from '@lobehub/ui';
import { PinIcon, PinOffIcon } from 'lucide-react';
import { memo, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/routes/(popup)/_layout/TitleBar.tsx b/src/routes/(popup)/_layout/TitleBar.tsx
index aedfd570277..6c17a6b47d3 100644
--- a/src/routes/(popup)/_layout/TitleBar.tsx
+++ b/src/routes/(popup)/_layout/TitleBar.tsx
@@ -1,8 +1,7 @@
'use client';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cx, Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import { useWatchThemeUpdate } from '@/features/Electron/system/useWatchThemeUpdate';
diff --git a/src/routes/(popup)/_layout/index.tsx b/src/routes/(popup)/_layout/index.tsx
index dab312b8ed1..c2f695648ed 100644
--- a/src/routes/(popup)/_layout/index.tsx
+++ b/src/routes/(popup)/_layout/index.tsx
@@ -1,8 +1,7 @@
'use client';
import { HotkeyScopeEnum } from '@lobechat/const/hotkeys';
-import { Flexbox } from '@lobehub/ui';
-import { createStaticStyles } from 'antd-style';
+import { createStaticStyles, Flexbox } from '@lobehub/ui';
import { type FC } from 'react';
import { HotkeysProvider } from 'react-hotkeys-hook';
import { Outlet } from 'react-router';
diff --git a/src/routes/(popup)/agent/[aid]/QuickChatAgentSwitcher.tsx b/src/routes/(popup)/agent/[aid]/QuickChatAgentSwitcher.tsx
index 9ef4ebd0b0f..04eee2d9460 100644
--- a/src/routes/(popup)/agent/[aid]/QuickChatAgentSwitcher.tsx
+++ b/src/routes/(popup)/agent/[aid]/QuickChatAgentSwitcher.tsx
@@ -2,9 +2,16 @@
import { INBOX_SESSION_ID } from '@lobechat/const';
import { agentDisplayName } from '@lobechat/types';
-import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';
-import { Avatar, Input } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import {
+ Avatar,
+ createStaticStyles,
+ cx,
+ Flexbox,
+ Icon,
+ Input,
+ Popover,
+ Tooltip,
+} from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
diff --git a/src/routes/(popup)/processes/index.tsx b/src/routes/(popup)/processes/index.tsx
index b463c4a989a..ed6e9e0867d 100644
--- a/src/routes/(popup)/processes/index.tsx
+++ b/src/routes/(popup)/processes/index.tsx
@@ -1,7 +1,6 @@
'use client';
-import { Flexbox } from '@lobehub/ui';
-import { cssVar } from 'antd-style';
+import { cssVar, Flexbox } from '@lobehub/ui';
import { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/src/services/electron/desktopExportService.tsx b/src/services/electron/desktopExportService.tsx
index b0df9794f87..8b4137201ad 100644
--- a/src/services/electron/desktopExportService.tsx
+++ b/src/services/electron/desktopExportService.tsx
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import i18next from 'i18next';
import { localFileService } from './localFileService';
diff --git a/src/skeleton-gallery.tsx b/src/skeleton-gallery.tsx
index 15fbd13b193..3d4f48fd9b8 100644
--- a/src/skeleton-gallery.tsx
+++ b/src/skeleton-gallery.tsx
@@ -1,4 +1,8 @@
-import { Flexbox, ThemeProvider } from '@lobehub/ui';
+import '@lobehub/ui/theme.css';
+import '@lobehub/ui/global.css';
+import '@lobehub/ui/style.css';
+
+import { Flexbox } from '@lobehub/ui';
import { type ReactNode, Suspense } from 'react';
import { createRoot } from 'react-dom/client';
@@ -18,7 +22,7 @@ const Case = ({ children, title }: { children: ReactNode; title: string }) => (
);
createRoot(document.querySelector('#root')!).render(
- <ThemeProvider>
+ <>
<Flexbox style={{ margin: '0 auto', maxWidth: 900 }} width={'100%'}>
<Case title="ArticleSkeleton — title + 3 rows">
<ArticleSkeleton rows={3} />
@@ -48,5 +52,5 @@ createRoot(document.querySelector('#root')!).render(
<ConversationListSkeleton />
</Case>
</Flexbox>
- </ThemeProvider>,
+ </>,
);
diff --git a/src/spa/BootShell/AppShellSkeleton.tsx b/src/spa/BootShell/AppShellSkeleton.tsx
index fa4092ff768..0490186a235 100644
--- a/src/spa/BootShell/AppShellSkeleton.tsx
+++ b/src/spa/BootShell/AppShellSkeleton.tsx
@@ -1,9 +1,8 @@
'use client';
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { Flexbox } from '@lobehub/ui';
+import { createStaticStyles, Flexbox, keyframes } from '@lobehub/ui';
import { LobeHub } from '@lobehub/ui/brand';
-import { createStaticStyles, keyframes } from 'antd-style';
import { memo, useEffect, useLayoutEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -20,7 +19,7 @@ import { readBootShellGeometry } from './geometry';
// antd emits its design tokens as `.lobe-vars{--ant-*: …}` — a plain global
// class rule, not a `:root` one. The shell renders outside `AppTheme`, so it has
-// to opt into that class itself or every `var(--ant-*)` below resolves to its
+// to opt into that class itself or every `var(--lobe-*)` below resolves to its
// fallback.
const CSS_VAR_CLASS = 'lobe-vars';
diff --git a/src/spa/BootShell/geometry.ts b/src/spa/BootShell/geometry.ts
index 4763c39ea5e..96beaf151ba 100644
--- a/src/spa/BootShell/geometry.ts
+++ b/src/spa/BootShell/geometry.ts
@@ -1,4 +1,4 @@
-import { cssVar } from 'antd-style';
+import { cssVar } from '@lobehub/ui';
import { isDesktop } from '@/const/version';
import { MAC_VIBRANCY_BACKGROUND } from '@/features/Electron/system/macWindowFullscreen';
diff --git a/src/spa/initialize/floatingLayers.test.ts b/src/spa/initialize/floatingLayers.test.ts
index 365ac845984..ace8cf4698a 100644
--- a/src/spa/initialize/floatingLayers.test.ts
+++ b/src/spa/initialize/floatingLayers.test.ts
@@ -1,5 +1,5 @@
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { getFloatingCollisionPadding, setFloatingCollisionPadding } from '@lobehub/ui/base-ui';
+import { getFloatingCollisionPadding, setFloatingCollisionPadding } from '@lobehub/ui';
import { afterEach, describe, expect, it } from 'vitest';
import { reserveTitleBarForFloatingLayers } from './floatingLayers';
diff --git a/src/spa/initialize/floatingLayers.ts b/src/spa/initialize/floatingLayers.ts
index 6ca714f90fe..256cae6de5d 100644
--- a/src/spa/initialize/floatingLayers.ts
+++ b/src/spa/initialize/floatingLayers.ts
@@ -1,5 +1,5 @@
import { TITLE_BAR_HEIGHT } from '@lobechat/desktop-bridge';
-import { setFloatingCollisionPadding } from '@lobehub/ui/base-ui';
+import { setFloatingCollisionPadding } from '@lobehub/ui';
export const reserveTitleBarForFloatingLayers = () => {
setFloatingCollisionPadding({ top: TITLE_BAR_HEIGHT });
diff --git a/src/store/agent/slices/agent/action.test.ts b/src/store/agent/slices/agent/action.test.ts
index fa4358271e6..8665b450870 100644
--- a/src/store/agent/slices/agent/action.test.ts
+++ b/src/store/agent/slices/agent/action.test.ts
@@ -1,6 +1,6 @@
import { DEFAULT_AGENT_CONFIG } from '@lobechat/const';
import { CHAT_GROUP_SESSION_ID_PREFIX } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook, waitFor } from '@testing-library/react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -44,7 +44,7 @@ vi.mock('@/services/agentDocument', () => ({
resolveAgentDocumentsContext: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/store/agent/slices/agent/action.ts b/src/store/agent/slices/agent/action.ts
index b87ee634a7a..dd58004457c 100644
--- a/src/store/agent/slices/agent/action.ts
+++ b/src/store/agent/slices/agent/action.ts
@@ -6,7 +6,7 @@ import {
isChatGroupSessionId,
type LobeAgentAgencyConfig,
} from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t } from 'i18next';
import { produce } from 'immer';
diff --git a/src/store/aiInfra/slices/aiModel/action.test.ts b/src/store/aiInfra/slices/aiModel/action.test.ts
index 290e8c70d98..c99e4fa0ef4 100644
--- a/src/store/aiInfra/slices/aiModel/action.test.ts
+++ b/src/store/aiInfra/slices/aiModel/action.test.ts
@@ -1,6 +1,6 @@
import { randomUUID } from 'node:crypto';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook, waitFor } from '@testing-library/react';
import type * as I18nextModule from 'i18next';
import { t } from 'i18next';
@@ -29,7 +29,7 @@ vi.mock('i18next', async (importOriginal) => {
};
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/store/aiInfra/slices/aiModel/action.ts b/src/store/aiInfra/slices/aiModel/action.ts
index 471237eeabc..63617c59479 100644
--- a/src/store/aiInfra/slices/aiModel/action.ts
+++ b/src/store/aiInfra/slices/aiModel/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t } from 'i18next';
import type {
diff --git a/src/store/chat/slices/agentRun/actions/__tests__/heterogeneousAgentExecutor.test.ts b/src/store/chat/slices/agentRun/actions/__tests__/heterogeneousAgentExecutor.test.ts
index 0cdfabdadbd..ec9c63e7905 100644
--- a/src/store/chat/slices/agentRun/actions/__tests__/heterogeneousAgentExecutor.test.ts
+++ b/src/store/chat/slices/agentRun/actions/__tests__/heterogeneousAgentExecutor.test.ts
@@ -39,7 +39,7 @@ const mockUpdateToolMessage = vi.fn();
const mockGetMessages = vi.fn();
const mockToastInfo = vi.fn();
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: { info: (...args: unknown[]) => mockToastInfo(...args) },
}));
diff --git a/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts b/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts
index 980d965e929..7bb3203ec22 100644
--- a/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts
+++ b/src/store/chat/slices/agentRun/actions/entries/conversationLifecycle.ts
@@ -27,7 +27,7 @@ import {
resolveAgentAgencyConfig,
} from '@lobechat/types';
import { generateEntityId, nanoid } from '@lobechat/utils';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { type ChatInputEditor } from '@/features/ChatInput';
diff --git a/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts b/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts
index 4fe631a71ce..d6e583af56a 100644
--- a/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts
+++ b/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts
@@ -53,7 +53,7 @@ import {
unwrapServerDefaultHeterogeneousModel,
} from '@lobechat/types';
import { createNanoId } from '@lobechat/utils';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { getActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
diff --git a/src/store/chat/slices/topic/action.test.ts b/src/store/chat/slices/topic/action.test.ts
index 38206498994..ba891190bd3 100644
--- a/src/store/chat/slices/topic/action.test.ts
+++ b/src/store/chat/slices/topic/action.test.ts
@@ -2,7 +2,7 @@ import { DEFAULT_MODEL, DEFAULT_PROVIDER } from '@lobechat/business-const';
import { TOPIC_TITLE_JSON_SCHEMA } from '@lobechat/prompts';
import type { LobeUser, UIChatMessage } from '@lobechat/types';
import { RequestTrigger } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook, waitFor } from '@testing-library/react';
import { type Mock } from 'vitest';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -37,7 +37,7 @@ const topicListSyncKey = (containerKey: string, scope = cacheScope.get()) =>
pageSize: 20,
});
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = await importOriginal<{ toast: Record<string, unknown> }>();
return { ...actual, toast: { ...actual.toast, error: vi.fn() } };
});
diff --git a/src/store/chat/slices/topic/action.ts b/src/store/chat/slices/topic/action.ts
index 08270b42559..9721ffa39ac 100644
--- a/src/store/chat/slices/topic/action.ts
+++ b/src/store/chat/slices/topic/action.ts
@@ -15,7 +15,7 @@ import {
type UIChatMessage,
type UpdateTopicMetadataInput,
} from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t } from 'i18next';
import type { AiModelReasoningConfig } from 'model-bank';
diff --git a/src/store/document/slices/editor/action.ts b/src/store/document/slices/editor/action.ts
index b6175b904b6..556abf0092e 100644
--- a/src/store/document/slices/editor/action.ts
+++ b/src/store/document/slices/editor/action.ts
@@ -2,7 +2,7 @@
import type { IEditor } from '@lobehub/editor';
import type { EditorState as LobehubEditorState } from '@lobehub/editor/react';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t } from 'i18next';
diff --git a/src/store/file/slices/chat/action.test.ts b/src/store/file/slices/chat/action.test.ts
index fd7f1d98a20..3362bee8a76 100644
--- a/src/store/file/slices/chat/action.test.ts
+++ b/src/store/file/slices/chat/action.test.ts
@@ -1,5 +1,5 @@
import type { ChatContextContent } from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -24,7 +24,7 @@ const mockAgentMode = ({
vi.spyOn(agentByIdSelectors, 'isAgentHeterogeneousById').mockReturnValue(() => heterogeneous);
};
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/store/file/slices/chat/action.ts b/src/store/file/slices/chat/action.ts
index 62f26a7df53..6c95c11b49f 100644
--- a/src/store/file/slices/chat/action.ts
+++ b/src/store/file/slices/chat/action.ts
@@ -1,7 +1,7 @@
import { SHARE_VISITOR_MAX_FILE_SIZE } from '@lobechat/const';
import { type ChatContextContent } from '@lobechat/types';
import { COMPRESSIBLE_IMAGE_TYPES, compressImageFile } from '@lobechat/utils/compressImage';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { Buffer } from 'buffer.js';
import { t } from 'i18next';
diff --git a/src/store/file/slices/fileManager/action.ts b/src/store/file/slices/fileManager/action.ts
index 4514e9df314..989a33a9592 100644
--- a/src/store/file/slices/fileManager/action.ts
+++ b/src/store/file/slices/fileManager/action.ts
@@ -4,7 +4,7 @@ import {
sanitizeFolderName,
topologicalSortFolders,
} from '@lobechat/utils';
-import { toast, type ToastInstance } from '@lobehub/ui/base-ui';
+import { toast, type ToastInstance } from '@lobehub/ui';
import { t } from 'i18next';
import pMap from 'p-map';
diff --git a/src/store/file/slices/upload/action.test.ts b/src/store/file/slices/upload/action.test.ts
index d17c85dab09..121ea2a314c 100644
--- a/src/store/file/slices/upload/action.test.ts
+++ b/src/store/file/slices/upload/action.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { fileTypeFromBlob } from 'file-type';
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -12,7 +12,7 @@ import { getImageDimensions } from '@/utils/client/imageDimensions';
import { useFileStore as useStore } from '../../store';
// Mock necessary modules
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
diff --git a/src/store/file/slices/upload/action.ts b/src/store/file/slices/upload/action.ts
index 9efdc5dd6ac..3f327ba8eba 100644
--- a/src/store/file/slices/upload/action.ts
+++ b/src/store/file/slices/upload/action.ts
@@ -1,5 +1,5 @@
import { LOBE_CHAT_CLOUD } from '@lobechat/business-const';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { handleFileUploadError } from '@/business/client/handleFileUploadError';
diff --git a/src/store/home/slices/sidebarUI/action.test.ts b/src/store/home/slices/sidebarUI/action.test.ts
index f238b849ea8..d74aca36bb4 100644
--- a/src/store/home/slices/sidebarUI/action.test.ts
+++ b/src/store/home/slices/sidebarUI/action.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { afterEach, describe, expect, it, vi } from 'vitest';
@@ -16,7 +16,7 @@ import { getSessionStoreState } from '@/store/session';
import { useUserStore } from '@/store/user';
// Mock dependencies
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: {
error: vi.fn(),
diff --git a/src/store/home/slices/sidebarUI/action.ts b/src/store/home/slices/sidebarUI/action.ts
index aefb3360c63..04815bf8d78 100644
--- a/src/store/home/slices/sidebarUI/action.ts
+++ b/src/store/home/slices/sidebarUI/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { agentService } from '@/services/agent';
diff --git a/src/store/image/slices/createImage/action.test.ts b/src/store/image/slices/createImage/action.test.ts
index 974ca25fdc2..d1f7298b692 100644
--- a/src/store/image/slices/createImage/action.test.ts
+++ b/src/store/image/slices/createImage/action.test.ts
@@ -9,7 +9,7 @@ const { isGenerationPromptModerationErrorMock, toastErrorMock } = vi.hoisted(()
toastErrorMock: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<Record<string, unknown>>()),
toast: { error: toastErrorMock },
}));
diff --git a/src/store/image/slices/createImage/action.ts b/src/store/image/slices/createImage/action.ts
index f398ee2f778..c4b301dd8af 100644
--- a/src/store/image/slices/createImage/action.ts
+++ b/src/store/image/slices/createImage/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { handleLobeHubModelDeprecatedError } from '@/business/client/handleLobeHubModelDeprecatedError';
diff --git a/src/store/session/slices/session/action.test.ts b/src/store/session/slices/session/action.test.ts
index ad1f523f0b7..bdf1c728e2f 100644
--- a/src/store/session/slices/session/action.test.ts
+++ b/src/store/session/slices/session/action.test.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { act, renderHook } from '@testing-library/react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -30,7 +30,7 @@ vi.mock('@/services/chatGroup', () => ({
},
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
toast: {
error: vi.fn(),
diff --git a/src/store/session/slices/session/action.ts b/src/store/session/slices/session/action.ts
index 15a040e433f..8edd03b907c 100644
--- a/src/store/session/slices/session/action.ts
+++ b/src/store/session/slices/session/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t } from 'i18next';
import { type SWRResponse } from 'swr';
diff --git a/src/store/session/slices/sessionGroup/action.ts b/src/store/session/slices/sessionGroup/action.ts
index 495502bb752..2d22cadf382 100644
--- a/src/store/session/slices/sessionGroup/action.ts
+++ b/src/store/session/slices/sessionGroup/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { sessionService } from '@/services/session';
diff --git a/src/store/task/slices/config/action.test.ts b/src/store/task/slices/config/action.test.ts
index f6fa1f8524a..c01299b5fde 100644
--- a/src/store/task/slices/config/action.test.ts
+++ b/src/store/task/slices/config/action.test.ts
@@ -26,7 +26,7 @@ vi.mock('@/libs/swr', () => ({
useClientDataSWR: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
@@ -123,7 +123,7 @@ describe('TaskConfigSliceAction', () => {
});
it('rolls back and marks the save failed when the PUT rejects', async () => {
- const { toast } = await import('@lobehub/ui/base-ui');
+ const { toast } = await import('@lobehub/ui');
vi.mocked(taskService.updateCheckpoint).mockRejectedValue(new Error('fail'));
await useTaskStore.getState().updateCheckpoint('T-1', { onAgentRequest: true });
@@ -400,7 +400,7 @@ describe('TaskConfigSliceAction', () => {
});
it('rolls the optimistic patch back, marks the save failed, and offers a retry', async () => {
- const { toast } = await import('@lobehub/ui/base-ui');
+ const { toast } = await import('@lobehub/ui');
useTaskStore.setState({
taskDetailMap: {
'T-1': {
diff --git a/src/store/task/slices/detail/action.test.ts b/src/store/task/slices/detail/action.test.ts
index c21de5603cc..b38940df35c 100644
--- a/src/store/task/slices/detail/action.test.ts
+++ b/src/store/task/slices/detail/action.test.ts
@@ -3,7 +3,7 @@ import {
readTaskExecutionConfig,
toTaskExecutionConfigPatch,
} from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { renderHook } from '@testing-library/react';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
@@ -55,7 +55,7 @@ vi.mock('@/libs/swr', () => ({
useClientDataSWR: vi.fn(),
}));
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+vi.mock('@lobehub/ui', async (importOriginal) => ({
...(await importOriginal<object>()),
...(await import('~base-ui-stubs')).baseUiStubs,
}));
@@ -686,7 +686,7 @@ describe('TaskDetailSliceAction', () => {
});
it('should propagate error, mark saveStatus failed, refresh, and toast on failure', async () => {
- const { toast } = await import('@lobehub/ui/base-ui');
+ const { toast } = await import('@lobehub/ui');
useTaskStore.setState({
taskDetailMap: {
'T-1': { identifier: 'T-1', instruction: 'Test', status: 'backlog' },
@@ -708,7 +708,7 @@ describe('TaskDetailSliceAction', () => {
it('should reload retry content after an editor autosave failure rolls back', async () => {
const { mutate } = await import('@/libs/swr');
- const { toast } = await import('@lobehub/ui/base-ui');
+ const { toast } = await import('@lobehub/ui');
useTaskStore.setState({
activeTaskId: 'T-1',
taskDetailMap: {
diff --git a/src/store/task/slices/detail/action.ts b/src/store/task/slices/detail/action.ts
index 2d569ad5733..c6aecccc71e 100644
--- a/src/store/task/slices/detail/action.ts
+++ b/src/store/task/slices/detail/action.ts
@@ -4,7 +4,7 @@ import {
readTaskExecutionConfig,
toTaskExecutionConfigPatch,
} from '@lobechat/types';
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import isEqual from 'fast-deep-equal';
import { t } from 'i18next';
diff --git a/src/store/utils/saveToast.ts b/src/store/utils/saveToast.ts
index 589cb01ab88..594b33daad2 100644
--- a/src/store/utils/saveToast.ts
+++ b/src/store/utils/saveToast.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { normalizeAsyncError } from '@/libs/swr/normalizeError';
diff --git a/src/store/video/slices/createVideo/action.ts b/src/store/video/slices/createVideo/action.ts
index 46e6c74f6ea..e231f5be83b 100644
--- a/src/store/video/slices/createVideo/action.ts
+++ b/src/store/video/slices/createVideo/action.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
import { t } from 'i18next';
import { type RuntimeVideoGenParams, type RuntimeVideoGenParamsKeys } from 'model-bank';
diff --git a/src/styles/antdOverride.ts b/src/styles/antdOverride.ts
deleted file mode 100644
index e8c2acd6e7f..00000000000
--- a/src/styles/antdOverride.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { isDesktop } from '@lobechat/const';
-import { type Theme } from 'antd-style';
-import { css } from 'antd-style';
-import { rgba } from 'polished';
-
-const antdOverride = ({ token }: { prefixCls: string; token: Theme }) => css`
- .${token.prefixCls}-popover {
- z-index: 1100;
- }
-
- .${token.prefixCls}-menu-item-selected {
- .${token.prefixCls}-menu-title-content {
- color: ${token.colorText};
- }
- }
-
- .${token.prefixCls}-modal-mask, .${token.prefixCls}-drawer-mask {
- background: ${rgba(token.colorBgLayout, 0.5)} !important;
- backdrop-filter: blur(2px);
- }
-
- ${
- isDesktop &&
- css`
- .${token.prefixCls}-modal-mask.${token.prefixCls}-modal-mask-blur {
- background: ${rgba(token.colorBgLayout, 0.8)} !important;
- backdrop-filter: none !important;
- }
- `
- }
-`;
-
-export default antdOverride;
diff --git a/src/styles/electron.ts b/src/styles/electron.ts
index b57ea6a6eee..9d8a9c917a9 100644
--- a/src/styles/electron.ts
+++ b/src/styles/electron.ts
@@ -1,4 +1,4 @@
-import { css, cx } from 'antd-style';
+import { css, cx } from '@lobehub/ui';
export const draggable = cx(css`
-webkit-app-region: drag;
diff --git a/src/styles/global.ts b/src/styles/global.ts
index 4399eb1e794..2b679cb64bc 100644
--- a/src/styles/global.ts
+++ b/src/styles/global.ts
@@ -1,6 +1,5 @@
-import { CLASSNAMES } from '@lobehub/ui';
-import type { Theme } from 'antd-style';
-import { css } from 'antd-style';
+import type { LobeTheme } from '@lobehub/ui';
+import { CLASSNAMES, css } from '@lobehub/ui';
import {
MAC_PANEL_BG_VAR,
@@ -10,7 +9,7 @@ import {
// fix ios input keyboard
// overflow: hidden;
// ref: https://zhuanlan.zhihu.com/p/113855026
-const genGlobalStyle = ({ token }: { prefixCls: string; token: Theme }) => css`
+const genGlobalStyle = ({ token }: { prefixCls: string; token: LobeTheme }) => css`
html,
body,
#__next {
diff --git a/src/styles/index.ts b/src/styles/index.ts
index ea646781702..614261008eb 100644
--- a/src/styles/index.ts
+++ b/src/styles/index.ts
@@ -1,14 +1,10 @@
-import { createGlobalStyle } from 'antd-style';
+import { createGlobalStyle } from '@lobehub/ui';
-import antdOverride from './antdOverride';
import global from './global';
const prefixCls = 'ant';
-export const GlobalStyle = createGlobalStyle(({ theme }) => [
- global({ prefixCls, token: theme }),
- antdOverride({ prefixCls, token: theme }),
-]);
+export const GlobalStyle = createGlobalStyle(({ theme }) => [global({ prefixCls, token: theme })]);
export { shinyTextStyles } from './loading';
export * from './text';
diff --git a/src/styles/loading.ts b/src/styles/loading.ts
index 749c0678503..416b2a04971 100644
--- a/src/styles/loading.ts
+++ b/src/styles/loading.ts
@@ -1,5 +1,5 @@
import { shinyTextStyles as sharedShinyTextStyles } from '@lobechat/shared-tool-ui/styles';
-import { createStaticStyles, css } from 'antd-style';
+import { createStaticStyles, css } from '@lobehub/ui';
export const dotLoading = css`
&::after {
diff --git a/src/styles/text.ts b/src/styles/text.ts
index 9cf9e38b889..6ae137d5cf9 100644
--- a/src/styles/text.ts
+++ b/src/styles/text.ts
@@ -1,5 +1,4 @@
-import { textGroupStyles } from '@lobehub/ui/base-ui';
-import { createStaticStyles, css, cx } from 'antd-style';
+import { createStaticStyles, css, cx, textGroupStyles } from '@lobehub/ui';
export const lineEllipsis = (line: number) =>
cx(css`
diff --git a/src/types/global.d.ts b/src/types/global.d.ts
index 88d64dde74b..35e5edb0a97 100644
--- a/src/types/global.d.ts
+++ b/src/types/global.d.ts
@@ -1,23 +1,11 @@
-import 'antd-style';
+import '@lobehub/ui';
import { type IEditor } from '@lobehub/editor';
-import { type LobeCustomStylish, type LobeCustomToken } from '@lobehub/ui';
-import { type AntdToken } from 'antd-style/lib/types/theme';
import { type ChatInputEditor } from '@/features/ChatInput';
import { type SPAServerConfig } from './spaServerConfig';
-declare module 'antd-style' {
- export interface CustomToken extends LobeCustomToken {}
-
- export interface CustomStylish extends LobeCustomStylish {}
-}
-
-declare module 'styled-components' {
- export interface DefaultTheme extends AntdToken, LobeCustomToken {}
-}
-
declare global {
interface Window {
__DEBUG_PROXY__: boolean | undefined;
diff --git a/src/utils/chunkError.ts b/src/utils/chunkError.ts
index ff4f625793c..c292871a1bc 100644
--- a/src/utils/chunkError.ts
+++ b/src/utils/chunkError.ts
@@ -1,4 +1,4 @@
-import { toast } from '@lobehub/ui/base-ui';
+import { toast } from '@lobehub/ui';
const CHUNK_ERROR_PATTERNS = [
'Failed to fetch dynamically imported module', // Chrome / Vite
diff --git a/src/utils/client/preloadLang.test.ts b/src/utils/client/preloadLang.test.ts
index 5d3c55f0c12..53e82ed734c 100644
--- a/src/utils/client/preloadLang.test.ts
+++ b/src/utils/client/preloadLang.test.ts
@@ -2,8 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { preloadLang } from './preloadLang';
-const { getAntdLocale, load } = vi.hoisted(() => ({
- getAntdLocale: vi.fn(() => Promise.resolve({})),
+const { load } = vi.hoisted(() => ({
load: vi.fn(),
}));
@@ -17,8 +16,6 @@ vi.mock('i18next', () => ({
},
}));
-vi.mock('@/utils/locale', () => ({ getAntdLocale }));
-
describe('preloadLang', () => {
beforeEach(() => {
vi.useFakeTimers();
@@ -37,7 +34,6 @@ describe('preloadLang', () => {
vi.runAllTimers();
expect(load).toHaveBeenCalledWith('zh-CN', ['common', 'chat', 'setting'], expect.any(Function));
- expect(getAntdLocale).toHaveBeenCalledWith('zh-CN');
});
it('should resolve "auto" to the system language so the preloaded bundle matches switchLang', () => {
diff --git a/src/utils/client/preloadLang.ts b/src/utils/client/preloadLang.ts
index 6afb4ec6554..a6477a1ca3f 100644
--- a/src/utils/client/preloadLang.ts
+++ b/src/utils/client/preloadLang.ts
@@ -1,7 +1,6 @@
import i18n from 'i18next';
import { type LocaleMode } from '@/types/locale';
-import { getAntdLocale } from '@/utils/locale';
import { resolveLang } from './switchLang';
@@ -37,6 +36,5 @@ export const preloadLang = (locale: LocaleMode) => {
const lang = resolveLang(locale);
loadNamespaces(lang);
- getAntdLocale(lang).catch(() => {});
}, HOVER_INTENT_DELAY);
};
diff --git a/src/utils/createFormModal.tsx b/src/utils/createFormModal.tsx
index bc67de891e5..1362f9d00c1 100644
--- a/src/utils/createFormModal.tsx
+++ b/src/utils/createFormModal.tsx
@@ -1,6 +1,6 @@
'use client';
-import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui/base-ui';
+import { createModal, type ImperativeModalProps, type ModalInstance } from '@lobehub/ui';
import { type ReactNode } from 'react';
let formIdSeed = 0;
diff --git a/src/utils/locale.ts b/src/utils/locale.ts
index 5dbaf4408ba..0dd8228306c 100644
--- a/src/utils/locale.ts
+++ b/src/utils/locale.ts
@@ -15,21 +15,6 @@ const supportedAcceptLanguageLocales = locales.map((locale) =>
locale === 'ar' ? 'ar-EG' : locale,
);
-export const getAntdLocale = async (lang?: string) => {
- let normalLang: any = normalizeLocale(lang);
-
- // due to antd only have ar-EG locale, we need to convert ar to ar-EG
- // refs: https://ant.design/docs/react/i18n
-
- // And we don't want to handle it in `normalizeLocale` function
- // because of other locale files are all `ar` not `ar-EG`
- if (normalLang === 'ar') normalLang = 'ar-EG';
-
- const { default: locale } = await import(`antd/locale/${normalLang.replace('-', '_')}.js`);
-
- return locale;
-};
-
/**
* Parse the browser language and return the fallback language
*/
diff --git a/src/utils/locale.vite.test.ts b/src/utils/locale.vite.test.ts
deleted file mode 100644
index eebf3162587..00000000000
--- a/src/utils/locale.vite.test.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { describe, expect, it, vi } from 'vitest';
-
-const moduleEvaluation = vi.hoisted(() => ({
- english: vi.fn(),
- simplifiedChinese: vi.fn(),
-}));
-
-vi.mock('antd/es/locale/en_US.js', () => {
- moduleEvaluation.english();
-
- return { default: { locale: 'en' } };
-});
-
-vi.mock('antd/es/locale/zh_CN.js', () => {
- moduleEvaluation.simplifiedChinese();
-
- return { default: { locale: 'zh-cn' } };
-});
-
-describe('getAntdLocale.vite', () => {
- it('evaluates only the requested antd locale', async () => {
- const { getAntdLocale } = await import('./locale.vite');
-
- expect(moduleEvaluation.english).not.toHaveBeenCalled();
- expect(moduleEvaluation.simplifiedChinese).not.toHaveBeenCalled();
-
- await expect(getAntdLocale('zh-CN')).resolves.toEqual({ locale: 'zh-cn' });
- expect(moduleEvaluation.simplifiedChinese).toHaveBeenCalledOnce();
- expect(moduleEvaluation.english).not.toHaveBeenCalled();
- });
-});
diff --git a/src/utils/locale.vite.ts b/src/utils/locale.vite.ts
deleted file mode 100644
index 9ba0ade9def..00000000000
--- a/src/utils/locale.vite.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { normalizeLocale } from '@/locales/resources';
-
-// Use antd ESM locale (es/locale) - CJS locale (locale/*.js) uses module.exports and breaks in Vite.
-// Patterns are file-relative (not root-absolute) so the map stays correct no
-// matter which app's vite root builds this module (repo root, apps/workbench).
-const antdLocaleLoaders = import.meta.glob(
- '../../node_modules/antd/es/locale/{ar_EG,bg_BG,de_DE,en_US,es_ES,fa_IR,fr_FR,it_IT,ja_JP,ko_KR,nl_NL,pl_PL,pt_BR,ru_RU,tr_TR,vi_VN,zh_CN,zh_TW}.js',
-);
-
-export const getAntdLocale = async (lang?: string) => {
- let normalLang: any = normalizeLocale(lang);
-
- // due to antd only have ar-EG locale, we need to convert ar to ar-EG
- // refs: https://ant.design/docs/react/i18n
- if (normalLang === 'ar') normalLang = 'ar-EG';
-
- const localePath = `../../node_modules/antd/es/locale/${normalLang.replace('-', '_')}.js`;
- const loadLocale = antdLocaleLoaders[localePath];
-
- if (!loadLocale) {
- throw new Error(`Unsupported antd locale: ${normalLang}`);
- }
-
- const mod = (await loadLocale()) as Record<string, unknown>;
- return mod.default;
-};
diff --git a/src/utils/router.tsx b/src/utils/router.tsx
index ad01949c803..195345d017f 100644
--- a/src/utils/router.tsx
+++ b/src/utils/router.tsx
@@ -1,6 +1,6 @@
'use client';
-import { ConfigProvider, ThemeProvider } from '@lobehub/ui';
+import { ConfigProvider, ThemeScope } from '@lobehub/ui';
import * as m from 'motion/react-m';
import { type ComponentType, type ReactElement, type ReactNode } from 'react';
import { lazy, memo, Suspense } from 'react';
@@ -153,14 +153,9 @@ export const ErrorBoundary = ({ resetPath }: ErrorBoundaryProps) => {
return (
<ConfigProvider motion={m}>
- <ThemeProvider
- appearance={appearance}
- defaultAppearance={appearance}
- defaultThemeMode={appearance}
- theme={{ cssVar: { key: 'lobe-vars' } }}
- >
+ <ThemeScope appearance={appearance}>
<ErrorCapture error={error} resetPath={resetPath} />
- </ThemeProvider>
+ </ThemeScope>
</ConfigProvider>
);
};
diff --git a/tests/mocks/baseUiStubs.tsx b/tests/mocks/baseUiStubs.tsx
index f4e632df9af..f2930788b22 100644
--- a/tests/mocks/baseUiStubs.tsx
+++ b/tests/mocks/baseUiStubs.tsx
@@ -5,7 +5,7 @@
* simplified DOM, composed over the real module so no export ever goes missing:
*
* ```ts
- * vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+ * vi.mock('@lobehub/ui', async (importOriginal) => ({
* ...(await importOriginal<object>()),
* ...(await import('~base-ui-stubs')).baseUiStubs,
* }));
diff --git a/tests/setup.ts b/tests/setup.ts
index d5724334588..673f5057a91 100644
--- a/tests/setup.ts
+++ b/tests/setup.ts
@@ -235,7 +235,7 @@ const TestBaseUISwitch = (props: TestBaseUISwitchProps) => {
// base-ui Button requires the app-level motion provider. Unit tests exercise
// consuming components, so a native button keeps interaction behavior stable.
-vi.mock('@lobehub/ui/base-ui', async (importOriginal) => {
+vi.mock('@lobehub/ui', async (importOriginal) => {
const actual = (await importOriginal()) as Record<string, unknown>;
return {
diff --git a/vitest.config.mts b/vitest.config.mts
index 7ab2f94d08b..68ebd0712e3 100644
--- a/vitest.config.mts
+++ b/vitest.config.mts
@@ -203,13 +203,6 @@ export default defineConfig({
client: {
enabled: true,
rolldownOptions: {
- // CJS deps bundled into the chunk (antd-style) call `require('react/jsx-runtime')`.
- // Rolldown's ESM interop only works when a real `require` is in scope, and the dep
- // optimizer cannot set `output.banner`, so inject the shim through `output.intro`.
- output: {
- intro:
- 'import { createRequire as __vitestCreateRequire } from "node:module"; const require = __vitestCreateRequire(import.meta.url);',
- },
// Dep optimization bypasses Vite plugins, so mirror the resolveId hacks here.
plugins: [
{
@@ -233,14 +226,16 @@ export default defineConfig({
],
},
// Setting `exclude` here replaces the root optimizeDeps.exclude; the node
- // builtins must stay listed or vite swaps them for browser shims
- exclude: ['crypto', 'util', 'tty'],
+ // builtins must stay listed or vite swaps them for browser shims.
+ // Vitest itself excludes `react`, which externalizes every `react/*`
+ // subpath, but vite only builds a `require()` facade for exact entries,
+ // so CJS deps in the chunk (re-resizable) need the jsx runtimes listed.
+ exclude: ['crypto', 'util', 'tty', 'react/jsx-runtime', 'react/jsx-dev-runtime'],
// Every imported subpath must be prebundled together: a subpath left to
// vite-node loads a second copy of the library whose MotionProvider /
// modal-stack contexts don't match the chunk's
include: [
'@lobehub/ui',
- '@lobehub/ui/base-ui',
'@lobehub/ui/icons',
'@lobehub/ui/mobile',
'@lobehub/ui/chat',